From c5dc49711ca4937ecc0fba81017983e77a45e411 Mon Sep 17 00:00:00 2001 From: saubyk <39208279+saubyk@users.noreply.github.com> Date: Sun, 19 Jul 2026 18:22:50 -0700 Subject: [PATCH] Drop crypto-browserify polyfills by moving 2FA TOTP to WebCrypto The frontend build pulled in crypto-browserify, stream-browserify and vm-browserify (via tsconfig paths) only because otplib's @otplib/plugin-crypto requires Node's crypto. That chain carried the last production npm audit findings - the elliptic advisory (GHSA-848j-6mx2-7j84, no fixed release) plus browserify-sign/create-ecdh (issue #1634, item 3). The two-factor-auth settings dialog is the only browser consumer of otplib. It now uses a small WebCrypto TOTP service (src/app/shared/services/totp.service.ts, RFC 6238: HMAC-SHA1, 6 digits, 30s step) instead, so otplib is no longer bundled and the three polyfills plus their tsconfig path mappings are removed. The backend still verifies login tokens with otplib, so the new service must match it exactly - verified byte-for-byte against otplib and the RFC 6238 test vectors (generateSecret/keyuri/generate/check parity). Existing authenticator enrollments keep working. token check() is now async (WebCrypto's digest is promise-based); the dialog's verify handler was updated to match, and the value was never used for control flow. Production npm audit now reports zero vulnerabilities (from 13, incl. 2 critical, at the start of this cleanup series). Verified on the docker fixture: enrolled a 2FA secret from the new service, confirmed the backend otplib accepts a token it produces at login, rejected wrong/absent tokens. Unit spec covers RFC 6238 vectors, keyuri parity and base32 round-trip; both API suites and the full frontend suite (204 specs) pass. --- frontend/17.6019ad086792cc08.js | 1 - frontend/17.da5e0b6abb96d103.js | 1 + frontend/190.0e6572086349bd7c.js | 1 + frontend/190.496d0a0b94483d54.js | 1 - frontend/193.5eec0042e2c6f1a7.js | 1 + frontend/193.b6974b544ca80922.js | 1 - frontend/3rdpartylicenses.txt | 1719 ----------------- frontend/853.8e8db9dc1adcdad0.js | 1 - frontend/853.e46ed60b577aec33.js | 1 + frontend/index.html | 2 +- frontend/main.2342107661e2489f.js | 1 + frontend/main.408918db3309e4a9.js | 1 - frontend/polyfills.17d9756e1f282744.js | 1 + frontend/polyfills.8896a5234c2940fd.js | 1 - frontend/runtime.785eb15c327b373a.js | 1 + frontend/runtime.83748f1197fe7ea8.js | 1 - package-lock.json | 664 +------ package.json | 3 - release-notes/Release-notes-0.15.9.md | 22 + .../two-factor-auth.component.ts | 30 +- src/app/shared/services/totp.service.spec.ts | 50 + src/app/shared/services/totp.service.ts | 95 + tsconfig.json | 8 +- 23 files changed, 202 insertions(+), 2405 deletions(-) delete mode 100644 frontend/17.6019ad086792cc08.js create mode 100644 frontend/17.da5e0b6abb96d103.js create mode 100644 frontend/190.0e6572086349bd7c.js delete mode 100644 frontend/190.496d0a0b94483d54.js create mode 100644 frontend/193.5eec0042e2c6f1a7.js delete mode 100644 frontend/193.b6974b544ca80922.js delete mode 100644 frontend/853.8e8db9dc1adcdad0.js create mode 100644 frontend/853.e46ed60b577aec33.js create mode 100644 frontend/main.2342107661e2489f.js delete mode 100644 frontend/main.408918db3309e4a9.js create mode 100644 frontend/polyfills.17d9756e1f282744.js delete mode 100644 frontend/polyfills.8896a5234c2940fd.js create mode 100644 frontend/runtime.785eb15c327b373a.js delete mode 100644 frontend/runtime.83748f1197fe7ea8.js create mode 100644 src/app/shared/services/totp.service.spec.ts create mode 100644 src/app/shared/services/totp.service.ts diff --git a/frontend/17.6019ad086792cc08.js b/frontend/17.6019ad086792cc08.js deleted file mode 100644 index ba2c93a6..00000000 --- a/frontend/17.6019ad086792cc08.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[17],{89017(wp,Jt,C){C.d(Jt,{ECLModule:()=>Tp});var d=C(72200),W=C(38132),L=C(43694),qt=C(9881),t=C(73664),H=C(67575),_=C(52920);function Qt(i,s){1&i&&t.nrm(0,"mat-progress-bar",3)}let vt=(()=>{var i;class s{constructor(n){this.router=n,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof L.Z:this.loading=!0;break;case a instanceof L.wF:case a instanceof L.j5:case a instanceof L.L6:this.loading=!1}})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(a,o){1&a&&(t.j41(0,"div",1),t.DNE(1,Qt,1,0,"mat-progress-bar",2),t.nrm(2,"router-outlet",null,0),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",o.loading))},dependencies:[d.bT,H.HM,_.DJ,_.sA,_.UI,L.n3],encapsulation:2,data:{animation:[qt.E]}}))}return i(),s})();var h=C(21413),g=C(56977),pt=C(53993),St=C(90614),E=C(45383),c=C(4416),J=C(79647),b=C(72730),r=C(2615),A=C(98570),I=C(59640),$=C(82571),D=C(20060),Zt=C(22598),x=C(25596),Rt=C(82885),ut=C(12629),dt=C(59115),S=C(16038),G=C(96850);const kt=i=>({backgroundColor:i});function Wt(i,s){if(1&i&&t.nrm(0,"span",6),2&i){const e=t.XpG();t.Y8G("ngStyle",t.eq3(1,kt,null==e.information?null:e.information.color))}}function Kt(i,s){if(1&i&&(t.j41(0,"div")(1,"h4",1),t.EFF(2,"Color"),t.k0s(),t.j41(3,"div",2),t.nrm(4,"span",7),t.EFF(5),t.nI1(6,"uppercase"),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.Y8G("ngStyle",t.eq3(4,kt,null==e.information?null:e.information.color)),t.R7$(),t.SpI(" ",t.bMT(6,2,null==e.information?null:e.information.color)," ")}}function te(i,s){if(1&i&&(t.j41(0,"span",2),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}let ee=(()=>{var i;class s{constructor(n){this.commonService=n,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[t.OA$],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div")(2,"h4",1),t.EFF(3,"Alias"),t.k0s(),t.j41(4,"div",2),t.EFF(5),t.DNE(6,Wt,1,3,"span",3),t.k0s()(),t.DNE(7,Kt,7,6,"div",4),t.j41(8,"div")(9,"h4",1),t.EFF(10,"Implementation"),t.k0s(),t.j41(11,"div",2),t.EFF(12),t.k0s()(),t.j41(13,"div")(14,"h4",1),t.EFF(15,"Chain"),t.k0s(),t.DNE(16,te,2,1,"span",5),t.k0s()()),2&a&&(t.R7$(5),t.SpI(" ",null==o.information?null:o.information.alias," "),t.R7$(),t.Y8G("ngIf",!o.showColorFieldSeparately),t.R7$(),t.Y8G("ngIf",o.showColorFieldSeparately),t.R7$(5),t.JRh(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),t.R7$(4),t.Y8G("ngForOf",o.chains))},dependencies:[d.Sq,d.bT,d.B3,_.DJ,_.sA,_.UI,S.eI,d.Pc],encapsulation:2}))}return i(),s})();function ne(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div")(2,"h4",3),t.EFF(3,"Lightning"),t.k0s(),t.j41(4,"div",4),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.nrm(7,"mat-progress-bar",5),t.k0s(),t.j41(8,"div")(9,"h4",3),t.EFF(10,"On-chain"),t.k0s(),t.j41(11,"div",4),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.nrm(14,"mat-progress-bar",5),t.k0s(),t.j41(15,"div")(16,"h4",3),t.EFF(17,"Total"),t.k0s(),t.j41(18,"div",4),t.EFF(19),t.nI1(20,"number"),t.k0s()()()),2&i){const e=t.XpG();t.R7$(5),t.SpI("",t.bMT(6,7,e.balances.lightning)," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.balances.lightning/e.balances.total*100)),t.R7$(5),t.SpI("",t.bMT(13,9,e.balances.onchain)," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.balances.onchain/e.balances.total*100)),t.R7$(5),t.SpI("",t.bMT(20,11,e.balances.total)," Sats")}}function ie(i,s){if(1&i&&(t.j41(0,"div",6)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let ae=(()=>{var i;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,ne,21,13,"div",1)(1,ie,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,H.HM,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();function oe(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t.EFF(4,"Daily"),t.k0s(),t.j41(5,"div",5),t.EFF(6),t.nI1(7,"number"),t.k0s()(),t.j41(8,"div")(9,"h4",4),t.EFF(10,"Weekly"),t.k0s(),t.j41(11,"div",5),t.EFF(12),t.nI1(13,"number"),t.k0s()(),t.j41(14,"div")(15,"h4",4),t.EFF(16,"Monthly"),t.k0s(),t.j41(17,"div",5),t.EFF(18),t.nI1(19,"number"),t.k0s()()(),t.j41(20,"div",3)(21,"div")(22,"h4",4),t.EFF(23,"Transactions"),t.k0s(),t.j41(24,"div",5),t.EFF(25),t.nI1(26,"number"),t.k0s()(),t.j41(27,"div")(28,"h4",4),t.EFF(29,"Transactions"),t.k0s(),t.j41(30,"div",5),t.EFF(31),t.nI1(32,"number"),t.k0s()(),t.j41(33,"div")(34,"h4",4),t.EFF(35,"Transactions"),t.k0s(),t.j41(36,"div",5),t.EFF(37),t.nI1(38,"number"),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(6),t.SpI("",t.bMT(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.R7$(6),t.SpI("",t.bMT(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.R7$(6),t.SpI("",t.bMT(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.R7$(7),t.JRh(t.bMT(26,12,null==e.fees?null:e.fees.daily_txs)),t.R7$(6),t.JRh(t.bMT(32,14,null==e.fees?null:e.fees.weekly_txs)),t.R7$(6),t.JRh(t.bMT(38,16,null==e.fees?null:e.fees.monthly_txs))}}function se(i,s){if(1&i&&(t.j41(0,"div",6)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let le=(()=>{var i;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees?.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const a=10**(Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[t.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,oe,39,18,"div",1)(1,se,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();function re(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t.EFF(4,"Active"),t.k0s(),t.j41(5,"div",5),t.nrm(6,"span",6),t.EFF(7),t.nI1(8,"number"),t.k0s()(),t.j41(9,"div")(10,"h4",4),t.EFF(11,"Pending"),t.k0s(),t.j41(12,"div",5),t.nrm(13,"span",7),t.EFF(14),t.nI1(15,"number"),t.k0s()(),t.j41(16,"div")(17,"h4",4),t.EFF(18,"Inactive"),t.k0s(),t.j41(19,"div",5),t.nrm(20,"span",8),t.EFF(21),t.nI1(22,"number"),t.k0s()()(),t.j41(23,"div",3)(24,"div")(25,"h4",4),t.EFF(26,"Capacity"),t.k0s(),t.j41(27,"div",5),t.EFF(28),t.nI1(29,"number"),t.k0s()(),t.j41(30,"div")(31,"h4",4),t.EFF(32,"Capacity"),t.k0s(),t.j41(33,"div",5),t.EFF(34),t.nI1(35,"number"),t.k0s()(),t.j41(36,"div")(37,"h4",4),t.EFF(38,"Capacity"),t.k0s(),t.j41(39,"div",5),t.EFF(40),t.nI1(41,"number"),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(7),t.JRh(t.bMT(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.R7$(7),t.JRh(t.bMT(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.R7$(7),t.JRh(t.bMT(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.R7$(7),t.SpI("",t.bMT(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.R7$(6),t.SpI("",t.bMT(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.R7$(6),t.SpI("",t.bMT(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function ce(i,s){if(1&i&&(t.j41(0,"div",9)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let me=(()=>{var i;class s{constructor(){this.channelsStatus={}}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,re,42,18,"div",1)(1,ce,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();var N=C(88834),y=C(69588),tt=C(71997),Q=C(40455),B=C(10497);const pe=()=>["../connections/channels/open"],ue=(i,s)=>({filterColumn:i,filterValue:s});function de(i,s){if(1&i&&(t.j41(0,"div",19)(1,"a",20),t.EFF(2),t.nI1(3,"slice"),t.k0s(),t.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t.EFF(7,"Local:"),t.k0s(),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.j41(10,"mat-hint",22),t.nrm(11,"fa-icon",23),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.j41(14,"mat-hint",24)(15,"strong",8),t.EFF(16,"Remote:"),t.k0s(),t.EFF(17),t.nI1(18,"number"),t.k0s()(),t.nrm(19,"mat-progress-bar",25),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.mNQ(e.alias||e.shortChannelId))("matTooltipDisabled",t.mNQ((e.alias||e.shortChannelId).length<26))("routerLink",t.lJ4(26,pe))("state",t.l_i(27,ue,e.alias?"alias":"shortChannelId",e.alias||e.shortChannelId)),t.R7$(),t.Lme(" ",t.brH(3,14,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.R7$(6),t.SpI("",t.i5U(9,18,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.R7$(3),t.Y8G("icon",n.faBalanceScale),t.R7$(),t.SpI(" (",t.bMT(13,21,(null==e?null:e.balancedness)||0),") "),t.R7$(5),t.SpI("",t.i5U(18,23,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0))}}function he(i,s){if(1&i&&(t.j41(0,"div",17),t.DNE(1,de,20,30,"div",18),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.allChannels)}}function fe(i,s){if(1&i&&(t.j41(0,"div",3)(1,"div",4)(2,"span",5),t.EFF(3,"Total Capacity"),t.k0s(),t.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t.EFF(7,"Local:"),t.k0s(),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.j41(10,"mat-hint",9),t.nrm(11,"fa-icon",10),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.j41(14,"mat-hint",11)(15,"strong",8),t.EFF(16,"Remote:"),t.k0s(),t.EFF(17),t.nI1(18,"number"),t.k0s()(),t.nrm(19,"mat-progress-bar",12),t.k0s(),t.j41(20,"div",13),t.nrm(21,"mat-divider",14),t.k0s(),t.j41(22,"div",15),t.DNE(23,he,2,1,"div",16),t.k0s()()),2&i){const e=t.XpG(),n=t.sdS(2);t.R7$(8),t.SpI("",t.i5U(9,8,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.R7$(3),t.Y8G("icon",e.faBalanceScale),t.R7$(),t.SpI(" (",t.bMT(13,11,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.R7$(5),t.SpI("",t.i5U(18,13,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0)),t.R7$(4),t.Y8G("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",n)}}function _e(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",26),t.EFF(1," No channels available. "),t.j41(2,"button",27),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.goToChannels())}),t.EFF(3,"Open Channel"),t.k0s()()}}function ge(i,s){if(1&i&&(t.j41(0,"div",28)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let Ce=(()=>{var i;class s{constructor(n){this.router=n,this.faBalanceScale=E.GR4,this.faDumbbell=E.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,fe,24,16,"div",2)(1,_e,4,0,"ng-template",null,0,t.C5r)(3,ge,3,1,"ng-template",null,1,t.C5r),2&a){const l=t.sdS(4);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.Sq,d.bT,D.aY,N.$z,y.MV,tt.q,H.HM,_.DJ,_.sA,_.UI,Q.oV,B.Ld,W.Wk,d.P9,d.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return i(),s})();const ye=(i,s,e)=>({"mb-4":i,"mb-2":s,"mb-1":e}),be=()=>["../connections/channels/open"],Fe=(i,s)=>({filterColumn:i,filterValue:s});function Ee(i,s){if(1&i&&(t.j41(0,"mat-hint",19)(1,"strong",20),t.EFF(2,"Capacity: "),t.k0s(),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.SpI("",t.i5U(4,1,e.toRemote||0,"1.0-0")," Sats")}}function xe(i,s){if(1&i&&(t.j41(0,"mat-hint",19)(1,"strong",20),t.EFF(2,"Capacity: "),t.k0s(),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.SpI("",t.i5U(4,1,e.toLocal||0,"1.0-0")," Sats")}}function Le(i,s){if(1&i&&t.nrm(0,"mat-progress-bar",21),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.Y8G("value",t.mNQ(n.totalLiquidity>0?(+e.toRemote||0)/n.totalLiquidity*100:0))}}function ve(i,s){if(1&i&&t.nrm(0,"mat-progress-bar",21),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.Y8G("value",t.mNQ(n.totalLiquidity>0?(+e.toLocal||0)/n.totalLiquidity*100:0))}}function Se(i,s){if(1&i&&(t.j41(0,"div",14)(1,"a",15),t.EFF(2),t.nI1(3,"slice"),t.k0s(),t.j41(4,"div",16),t.DNE(5,Ee,5,4,"mat-hint",17)(6,xe,5,4,"mat-hint",17),t.k0s(),t.DNE(7,Le,1,2,"mat-progress-bar",18)(8,ve,1,2,"mat-progress-bar",18),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.mNQ(e.alias||e.shortChannelId))("matTooltipDisabled",t.mNQ((e.alias||e.shortChannelId).length<26))("routerLink",t.lJ4(16,be))("state",t.l_i(17,Fe,e.alias?"alias":"shortChannelId",e.alias||e.shortChannelId)),t.R7$(),t.Lme(" ",t.brH(3,12,e.alias||e.shortChannelId||"",0,24),"",(e.alias||e.shortChannelId||"").length>25?"...":""," "),t.R7$(3),t.Y8G("ngIf","In"===n.direction),t.R7$(),t.Y8G("ngIf","Out"===n.direction),t.R7$(),t.Y8G("ngIf","In"===n.direction),t.R7$(),t.Y8G("ngIf","Out"===n.direction)}}function Re(i,s){if(1&i&&(t.j41(0,"div",12),t.DNE(1,Se,9,20,"div",13),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.allChannels)}}function ke(i,s){if(1&i&&(t.j41(0,"div",3)(1,"div",4)(2,"span",5),t.EFF(3,"Total Capacity"),t.k0s(),t.j41(4,"mat-hint",6),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.nrm(7,"mat-progress-bar",7),t.k0s(),t.j41(8,"div",8),t.nrm(9,"mat-divider",9),t.k0s(),t.j41(10,"div",10),t.DNE(11,Re,2,1,"div",11),t.k0s()()),2&i){const e=t.XpG(),n=t.sdS(2);t.Y8G("ngClass",t.sMw(7,ye,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.R7$(5),t.SpI("",t.i5U(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.R7$(6),t.Y8G("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",n)}}function Ie(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",24),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.goToChannels())}),t.EFF(1,"Open Channel"),t.k0s()}}function Te(i,s){if(1&i&&(t.j41(0,"div",22),t.EFF(1," No channels available. "),t.DNE(2,Ie,2,0,"button",23),t.k0s()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngIf","Out"===e.direction)}}function we(i,s){if(1&i&&(t.j41(0,"div",25)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let je=(()=>{var i;class s{constructor(n,a){this.router=n,this.commonService=a,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix),t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,ke,12,11,"div",2)(1,Te,3,1,"ng-template",null,0,t.C5r)(3,we,3,1,"ng-template",null,1,t.C5r),2&a){const l=t.sdS(4);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.YU,d.Sq,d.bT,N.$z,y.MV,tt.q,H.HM,_.DJ,_.sA,_.UI,S.PW,Q.oV,B.Ld,W.Wk,d.P9,d.QX],encapsulation:2}))}return i(),s})();var Z=C(96697),w=C(96695),v=C(2042),p=C(19295),R=C(96183),X=C(5964),j=C(95428),V=C(51585),ht=C(13017),K=C(11747),nt=C(51534),f=C(89417),Y=C(33746),et=C(89587);const De=["paymentReq"];function Ge(i,s){if(1&i&&(t.j41(0,"span",23),t.nrm(1,"fa-icon",24),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function Pe(i,s){if(1&i&&t.nrm(0,"span",25),2&i){const e=t.XpG(2);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function Ae(i,s){if(1&i&&(t.j41(0,"mat-hint",20),t.EFF(1),t.DNE(2,Ge,2,1,"span",21)(3,Pe,1,1,"span",22),t.EFF(4),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI(" ",e.paymentDecodedHintPre," "),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.SpI(" ",e.paymentDecodedHintPost," ")}}function Ne(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment request is required."),t.k0s())}function Be(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.paymentDecodedHint)}}function Me(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment amount is required."),t.k0s())}function $e(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-form-field",4)(1,"mat-label"),t.EFF(2,"Amount (Sats)"),t.k0s(),t.j41(3,"input",26,2),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.paymentAmount,a)||(o.paymentAmount=a),r.Njj(a)}),t.bIt("change",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onAmountChange(a))}),t.k0s(),t.j41(5,"mat-hint"),t.EFF(6,"It is a zero amount invoice, enter amount to be paid."),t.k0s(),t.DNE(7,Me,2,0,"mat-error",14),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.R50("ngModel",e.paymentAmount),t.R7$(4),t.Y8G("ngIf",!e.paymentAmount)}}function Ve(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.paymentError)}}function Oe(i,s){if(1&i&&(t.j41(0,"div",27),t.nrm(1,"fa-icon",28),t.DNE(2,Ve,2,1,"span",14),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.paymentError)}}let He=(()=>{var i;class s{constructor(n,a,o,l,m,u,T,F){this.dialogRef=n,this.store=a,this.eclEffects=o,this.logger=l,this.commonService=m,this.decimalPipe=u,this.actions=T,this.dataService=F,this.faExclamationTriangle=E.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.feeLimitTypes=c.nv,this.paymentError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.activeChannels=n.activeChannels,this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||n.type===c.Uu.SEND_PAYMENT_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"SendPayment"===n.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=n.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,Z.s)(1)).subscribe({next:n=>{this.paymentDecoded=n,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""))},error:n=>{this.logger.error(n),this.paymentDecodedHintPre="ERROR: "+(n.message?n.message:"string"==typeof n?n:JSON.stringify(n)),this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,j.Fd)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(n){this.paymentRequest=n&&"string"==typeof n?n.trim():n,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,Z.s)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.convertedCurrency=o,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""))},error:a=>{this.logger.error(a),this.paymentDecodedHintPre="ERROR: "+(a.message?a.message:"string"==typeof a?a:JSON.stringify(a)),this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(n){delete this.paymentDecoded.amount,this.paymentDecoded.amount=n}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(I.il),t.rXU(ht.B),t.rXU(A.gP),t.rXU($.h),t.rXU(d.QX),t.rXU(K.En),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(a,o){if(1&a&&t.GBs(De,5),2&a){let l;t.mGM(l=t.lsd())&&(o.paymentReq=l.first)}},standalone:!1,decls:26,vars:7,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["paymentAmt","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t.EFF(5,"Send Payment"),t.k0s()(),t.j41(6,"button",8),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",9)(9,"form",10,0)(11,"mat-form-field",11)(12,"mat-label"),t.EFF(13,"Payment Request"),t.k0s(),t.j41(14,"textarea",12,1),t.bIt("ngModelChange",function(u){return r.eBV(l),r.Njj(o.onPaymentRequestEntry(u))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),t.k0s(),t.DNE(16,Ae,5,4,"mat-hint",13)(17,Ne,2,0,"mat-error",14)(18,Be,2,1,"mat-error",14),t.k0s(),t.DNE(19,$e,8,2,"mat-form-field",15)(20,Oe,3,2,"div",16),t.j41(21,"div",17)(22,"button",18),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(23,"Clear Fields"),t.k0s(),t.j41(24,"button",19),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onSendPayment())}),t.EFF(25,"Send Payment"),t.k0s()()()()()()}if(2&a){const l=t.sdS(15);t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(8),t.Y8G("ngModel",o.paymentRequest),t.R7$(2),t.Y8G("ngIf",o.paymentRequest&&""!==o.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",!o.paymentRequest),t.R7$(),t.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),t.R7$(),t.Y8G("ngIf",o.zeroAmtInvoice),t.R7$(),t.Y8G("ngIf",""!==o.paymentError)}},dependencies:[d.bT,f.qT,f.me,f.BC,f.cb,f.YS,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,_.DJ,_.sA,_.UI,et.N],encapsulation:2}))}return i(),s})();var U=C(9454);const Ye=["scrollContainer"];function Xe(i,s){if(1&i&&(t.j41(0,"div",9)(1,"div",2)(2,"h4",11),t.EFF(3,"Description"),t.k0s(),t.j41(4,"span",12),t.EFF(5),t.k0s()()()),2&i){const e=t.XpG();t.R7$(5),t.JRh(e.description)}}function Ue(i,s){1&i&&t.nrm(0,"mat-divider",14)}function ze(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-expansion-panel",23),t.bIt("opened",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onExpansionOpen(!0))})("closed",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onExpansionOpen(!1))}),t.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t.EFF(4),t.k0s(),t.j41(5,"h4",25),t.EFF(6),t.nI1(7,"number"),t.k0s()()(),t.j41(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t.EFF(12,"Fees (mSats)"),t.k0s(),t.j41(13,"span",12),t.EFF(14),t.nI1(15,"number"),t.k0s()(),t.j41(16,"div",26)(17,"h4",11),t.EFF(18,"Date/Time"),t.k0s(),t.j41(19,"span",12),t.EFF(20),t.nI1(21,"date"),t.k0s()()(),t.nrm(22,"mat-divider",14),t.j41(23,"div",9)(24,"div",2)(25,"h4",11),t.EFF(26,"ID"),t.k0s(),t.j41(27,"span",27),t.EFF(28),t.k0s()()(),t.nrm(29,"mat-divider",14),t.j41(30,"div",9)(31,"div",2)(32,"h4",11),t.EFF(33,"To Channel"),t.k0s(),t.j41(34,"span",27),t.EFF(35),t.k0s()()()()()}if(2&i){const e=s.$implicit,n=s.index,a=t.XpG();t.Y8G("expanded",a.expansionOpen),t.R7$(4),t.SpI("Part ",n+1),t.R7$(2),t.SpI("",t.bMT(7,7,e.amount)," (Sats)"),t.R7$(8),t.JRh(t.bMT(15,9,e.feesPaid)),t.R7$(6),t.JRh(t.i5U(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.R7$(8),t.JRh(e.id),t.R7$(7),t.JRh(e.toChannelAlias)}}let Je=(()=>{var i;class s{constructor(n,a){this.dialogRef=n,this.data=a,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(n){this.expansionOpen=n}onClose(){this.dialogRef.close(!1)}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(a,o){if(1&a&&t.GBs(Ye,5),2&a){let l;t.mGM(l=t.lsd())&&(o.scrollContainer=l.first)}},standalone:!1,decls:66,vars:15,consts:[["scrollContainer",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"opened","closed","expanded"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Payment Information"),t.k0s()(),t.j41(6,"button",6),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7,0)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t.EFF(14,"Amount (Sats)"),t.k0s(),t.j41(15,"span",12),t.EFF(16),t.nI1(17,"number"),t.k0s()(),t.j41(18,"div",13)(19,"h4",11),t.EFF(20,"Date/Time"),t.k0s(),t.j41(21,"span",12),t.EFF(22),t.nI1(23,"date"),t.k0s()()(),t.nrm(24,"mat-divider",14),t.j41(25,"div",9)(26,"div",2)(27,"h4",11),t.EFF(28,"ID"),t.k0s(),t.j41(29,"span",12),t.EFF(30),t.k0s()()(),t.nrm(31,"mat-divider",14),t.j41(32,"div",9)(33,"div",2)(34,"h4",11),t.EFF(35,"Payment Hash"),t.k0s(),t.j41(36,"span",12),t.EFF(37),t.k0s()()(),t.nrm(38,"mat-divider",14),t.j41(39,"div",9)(40,"div",2)(41,"h4",11),t.EFF(42,"Payment Preimage"),t.k0s(),t.j41(43,"span",12),t.EFF(44),t.k0s()()(),t.nrm(45,"mat-divider",14),t.j41(46,"div",9)(47,"div",2)(48,"h4",11),t.EFF(49,"Recipient Node"),t.k0s(),t.j41(50,"span",12),t.EFF(51),t.k0s()()(),t.nrm(52,"mat-divider",14),t.DNE(53,Xe,6,1,"div",15)(54,Ue,1,0,"mat-divider",16),t.j41(55,"div",9)(56,"div",2)(57,"mat-accordion"),t.DNE(58,ze,36,14,"mat-expansion-panel",17),t.k0s()()()()(),t.j41(59,"div",18)(60,"button",19),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onScrollDown())}),t.j41(61,"mat-icon",20),t.EFF(62,"arrow_downward"),t.k0s()()(),t.j41(63,"div",21)(64,"button",22),t.EFF(65,"OK"),t.k0s()()()()}2&a&&(t.R7$(16),t.JRh(t.bMT(17,10,o.payment.recipientAmount)),t.R7$(6),t.JRh(t.i5U(23,12,o.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.R7$(8),t.JRh(o.payment.id),t.R7$(7),t.JRh(o.payment.paymentHash),t.R7$(7),t.JRh(o.payment.paymentPreimage),t.R7$(7),t.JRh(o.payment.recipientNodeAlias),t.R7$(2),t.Y8G("ngIf",o.description),t.R7$(),t.Y8G("ngIf",o.description),t.R7$(4),t.Y8G("ngForOf",o.payment.parts),t.R7$(6),t.Y8G("mat-dialog-close",!1))},dependencies:[d.Sq,d.bT,V.tx,N.$z,N.$0,x.m2,x.MM,U.BS,U.GK,U.Z2,U.WN,ut.An,tt.q,_.DJ,_.sA,_.UI,B.Ld,d.QX,d.vh],encapsulation:2}))}return i(),s})();var k=C(11771),lt=C(37541),q=C(52929),z=C(23029);const qe=["sendPaymentForm"],Qe=()=>["all"],Ze=i=>({"error-border":i}),We=()=>["no_payment"],O=i=>({width:i}),Ke=i=>({"display-none":i});function tn(i,s){if(1&i&&(t.j41(0,"span",18),t.nrm(1,"fa-icon",19),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function en(i,s){if(1&i&&t.nrm(0,"span",20),2&i){const e=t.XpG(3);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function nn(i,s){if(1&i&&(t.j41(0,"mat-hint",15),t.EFF(1),t.DNE(2,tn,2,1,"span",16)(3,en,1,1,"span",17),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.paymentDecodedHintPre," "),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.SpI(" ",e.paymentDecodedHintPost," ")}}function an(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment request is required."),t.k0s())}function on(i,s){if(1&i){const e=t.RV6();t.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),t.EFF(4,"Payment Request"),t.k0s(),t.j41(5,"textarea",9,1),t.bIt("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onPaymentRequestEntry(a))})("matTextareaAutosize",function(){return r.eBV(e),r.Njj(!0)}),t.k0s(),t.DNE(7,nn,5,4,"mat-hint",10)(8,an,2,0,"mat-error",11),t.k0s(),t.j41(9,"div",12)(10,"button",13),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.resetData())}),t.EFF(11,"Clear Field"),t.k0s(),t.j41(12,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSendPayment())}),t.EFF(13,"Send Payment"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(5),t.Y8G("ngModel",e.paymentRequest),t.R7$(2),t.Y8G("ngIf",e.paymentRequest&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",!e.paymentRequest)}}function sn(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",21)(1,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.openSendPaymentModal())}),t.EFF(2,"Send Payment"),t.k0s()()}}function ln(i,s){if(1&i&&(t.j41(0,"mat-option",66),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function rn(i,s){1&i&&t.nrm(0,"mat-progress-bar",67)}function cn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Date/Time"),t.k0s())}function mn(i,s){if(1&i&&(t.j41(0,"td",69),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function pn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"ID"),t.k0s())}function un(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.id)}}function dn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Destination Node ID"),t.k0s())}function hn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeId)}}function fn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Destination"),t.k0s())}function _n(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeAlias)}}function gn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Description"),t.k0s())}function Cn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description)}}function yn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Payment Hash"),t.k0s())}function bn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function Fn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Preimage"),t.k0s())}function En(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentPreimage)}}function xn(i,s){1&i&&(t.j41(0,"th",72),t.EFF(1,"Amount (Sats)"),t.k0s())}function Ln(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",73),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.recipientAmount))}}function vn(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",74)(1,"div",75)(2,"mat-select",76),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",77),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function Sn(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",78)(1,"button",79),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onPaymentClick(a))}),t.EFF(2,"View Info"),t.k0s()()}}function Rn(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No payment available."),t.k0s())}function kn(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting payments..."),t.k0s())}function In(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function Tn(i,s){if(1&i&&(t.j41(0,"td",80),t.DNE(1,Rn,2,0,"p",11)(2,kn,2,0,"p",11)(3,In,2,1,"p",11),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function wn(i,s){if(1&i&&(t.j41(0,"span",81),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function jn(i,s){if(1&i&&(t.qex(0),t.DNE(1,wn,3,4,"span",82),t.bVm()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Dn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",81),t.EFF(2),t.k0s(),t.DNE(3,jn,2,1,"ng-container",11),t.k0s()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" Total Attempts: ",(null==e||null==e.parts?null:e.parts.length)||0," "),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Gn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.id)}}function Pn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Gn,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function An(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Pn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.id),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Nn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.toChannelId)}}function Bn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Nn,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Mn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Bn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeId),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function $n(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.toChannelAlias)}}function Vn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,$n,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function On(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Vn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeAlias),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Hn(i,s){if(1&i&&(t.j41(0,"span",84),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,e.amount,"1.0-0")," ")}}function Yn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Hn,3,4,"span",85),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Xn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",84),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.DNE(4,Yn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.i5U(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.R7$(2),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Un(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function zn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Un,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Jn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,zn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function qn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Qn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,qn,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Zn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Qn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Wn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Kn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Wn,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function ti(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Kn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentPreimage),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function ei(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",89)(1,"button",90),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onPartClick(a,o))}),t.EFF(2),t.k0s()()}if(2&i){const e=s.index;t.R7$(2),t.SpI("View ",e+1)}}function ni(i,s){if(1&i&&(t.j41(0,"div"),t.DNE(1,ei,3,1,"div",88),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function ii(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",69)(1,"span",86)(2,"button",87),t.bIt("click",function(){const a=r.eBV(e).$implicit;return r.Njj(a.is_expanded=!a.is_expanded)}),t.EFF(3),t.k0s()(),t.DNE(4,ni,2,1,"div",11),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(3),t.JRh(null!=e&&e.is_expanded?"Hide":"Show"),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function ai(i,s){1&i&&t.nrm(0,"tr",91)}function oi(i,s){if(1&i&&t.nrm(0,"tr",92),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Ke,(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function si(i,s){1&i&&t.nrm(0,"tr",93)}function li(i,s){1&i&&t.nrm(0,"tr",91)}function ri(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",22)(1,"div",23)(2,"div",24),t.nrm(3,"fa-icon",25),t.j41(4,"span",26),t.EFF(5,"Payments History"),t.k0s()(),t.j41(6,"div",27)(7,"mat-form-field",28)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",29),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,ln,2,2,"mat-option",30),t.k0s()()(),t.j41(13,"mat-form-field",28)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",31),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()(),t.j41(17,"div",32)(18,"div",33),t.DNE(19,rn,1,0,"mat-progress-bar",34),t.j41(20,"table",35,2),t.qex(22,36),t.DNE(23,cn,2,0,"th",37)(24,mn,3,4,"td",38),t.bVm(),t.qex(25,39),t.DNE(26,pn,2,0,"th",37)(27,un,4,4,"td",38),t.bVm(),t.qex(28,40),t.DNE(29,dn,2,0,"th",37)(30,hn,4,4,"td",38),t.bVm(),t.qex(31,41),t.DNE(32,fn,2,0,"th",37)(33,_n,4,4,"td",38),t.bVm(),t.qex(34,42),t.DNE(35,gn,2,0,"th",37)(36,Cn,4,4,"td",38),t.bVm(),t.qex(37,43),t.DNE(38,yn,2,0,"th",37)(39,bn,4,4,"td",38),t.bVm(),t.qex(40,44),t.DNE(41,Fn,2,0,"th",37)(42,En,4,4,"td",38),t.bVm(),t.qex(43,45),t.DNE(44,xn,2,0,"th",46)(45,Ln,4,3,"td",38),t.bVm(),t.qex(46,47),t.DNE(47,vn,6,0,"th",48)(48,Sn,3,0,"td",49),t.bVm(),t.qex(49,50),t.DNE(50,Tn,4,3,"td",51),t.bVm(),t.qex(51,52),t.DNE(52,Dn,4,2,"td",38),t.bVm(),t.qex(53,53),t.DNE(54,An,5,5,"td",38),t.bVm(),t.qex(55,54),t.DNE(56,Mn,5,5,"td",38),t.bVm(),t.qex(57,55),t.DNE(58,On,5,5,"td",38),t.bVm(),t.qex(59,56),t.DNE(60,Xn,5,5,"td",38),t.bVm(),t.qex(61,57),t.DNE(62,Jn,5,5,"td",38),t.bVm(),t.qex(63,58),t.DNE(64,Zn,5,5,"td",38),t.bVm(),t.qex(65,59),t.DNE(66,ti,5,5,"td",38),t.bVm(),t.qex(67,60),t.DNE(68,ii,5,2,"td",38),t.bVm(),t.DNE(69,ai,1,0,"tr",61)(70,oi,1,3,"tr",62)(71,si,1,0,"tr",63)(72,li,1,0,"tr",64),t.k0s()()(),t.nrm(73,"mat-paginator",65),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.Y8G("icon",e.faHistory),t.R7$(7),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(17,Qe).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter),t.R7$(3),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.payments)("ngClass",t.eq3(18,Ze,""!==e.errorMessage)),t.R7$(49),t.Y8G("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.R7$(),t.Y8G("matFooterRowDef",t.lJ4(20,We)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let It=(()=>{var i;class s{constructor(n,a,o,l,m,u,T,F){this.logger=n,this.commonService=a,this.store=o,this.rtlEffects=l,this.decimalPipe=m,this.dataService=u,this.datePipe=T,this.camelCaseWithSpaces=F,this.calledFrom="transactions",this.convertedCurrency=null,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:c.md,sortBy:"firstPartTimestamp",sortOrder:c.oi.DESCENDING},this.faHistory=E.Int,this.newlyAddedPayment="",this.information={},this.payments=new p.I6([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(a=>this.partColumns.push("group_"+a)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.CK)({payload:{count:1e6,skip:0}}))),this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=n.payments&&n.payments.sent&&n.payments.sent.length>0?n.payments.sent:[],this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(n)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.payments.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.firstPartTimestamp?this.datePipe.transform(new Date(n.firstPartTimestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"firstPartTimestamp":o=this.datePipe.transform(new Date(n.firstPartTimestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadPaymentsTable(n){this.payments=new p.I6(n?[...n]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(a,o)=>{switch(o){case"firstPartTimestamp":return this.commonService.sortByKey(a.parts,"timestamp","number",this.sort?.direction),a.firstPartTimestamp;case"id":return this.commonService.sortByKey(a.parts,"id","string",this.sort?.direction),a.id;case"recipientNodeAlias":return this.commonService.sortByKey(a.parts,"toChannelAlias","string",this.sort?.direction),a.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(a.parts,"amount","number",this.sort?.direction),a.recipientAmount;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,Z.s)(1)).subscribe(n=>{this.paymentDecoded=n,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:c.UN.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:c.UN.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,Z.s)(1)).subscribe(a=>{a&&(this.store.dispatch((0,j.Fd)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:c.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:c.UN.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:c.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,Z.s)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,j.Fd)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(n){this.paymentRequest=n,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,Z.s)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.amount?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:o=>{this.convertedCurrency=o,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}openSendPaymentModal(){this.store.dispatch((0,k.xO)({payload:{data:{component:He}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(n,a){return a.parts&&a.parts.length>1}onPaymentClick(n){n.paymentHash&&""!==n.paymentHash.trim()?this.dataService.decodePayments(n.paymentHash).pipe((0,Z.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showPaymentView(n,a.length&&a.length>0?a[0]:[])},0)},error:a=>{this.showPaymentView(n,[])}}):this.showPaymentView(n,[])}showPaymentView(n,a){this.store.dispatch((0,k.xO)({payload:{data:{sentPaymentInfo:a,payment:n,component:Je}}}))}onPartClick(n,a){a.paymentHash&&""!==a.paymentHash.trim()?this.dataService.decodePayments(a.paymentHash).pipe((0,Z.s)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(n,a,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(n,a,[])}}):this.showPartView(n,a,[])}showPartView(n,a,o){const l=[[{key:"paymentHash",value:a.paymentHash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"paymentPreimage",value:a.paymentPreimage,title:"Payment Preimage",width:100,type:c.UN.STRING}],[{key:"toChannelId",value:n.toChannelId,title:"Channel",width:100,type:c.UN.STRING}],[{key:"id",value:n.id,title:"Part ID",width:50,type:c.UN.STRING},{key:"timestamp",value:n.timestamp,title:"Time",width:50,type:c.UN.DATE_TIME}],[{key:"amount",value:n.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER},{key:"feesPaid",value:n.feesPaid,title:"Fee (Sats)",width:50,type:c.UN.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&l.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:c.UN.STRING}]),this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Payment Part Information",message:l}}}))}onPageChange(n){this.store.dispatch((0,j.CK)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const n=JSON.parse(JSON.stringify(this.payments.data)),a=n?.reduce((o,l)=>(l.paymentHash&&""!==l.paymentHash.trim()&&(o=""===o?l.paymentHash:o+","+l.paymentHash),o),"");this.dataService.decodePayments(a).pipe((0,g.Q)(this.unSubs[5])).subscribe(o=>{o.forEach((m,u)=>{m.length>0&&m[0].paymentRequest&&m[0].paymentRequest.description&&""!==m[0].paymentRequest.description&&(n[u].description=m[0].paymentRequest.description)});const l=n?.reduce((m,u)=>m.concat(u),[]);this.commonService.downloadFile(l,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(lt.H),t.rXU(d.QX),t.rXU(nt.u),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(a,o){if(1&a&&(t.GBs(qe,5),t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first),t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["class","part-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",3),t.DNE(1,on,14,3,"form",4)(2,sn,3,0,"div",5)(3,ri,74,21,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf","home"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.BC,f.cb,f.YS,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,y.MV,y.TL,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.ZF,B.Ld,d.QX,d.vh],styles:[".mat-column-group_actions[_ngcontent-%COMP%] .part-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .part-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.part-row-span[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:11rem}"]}))}return i(),s})();var it=C(56114);function ci(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Description is required."),t.k0s())}function mi(i,s){1&i&&(t.j41(0,"span",29),t.EFF(1,"= "),t.k0s())}function pi(i,s){if(1&i&&(t.j41(0,"span",30),t.nrm(1,"fa-icon",31),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function ui(i,s){if(1&i&&t.nrm(0,"span",32),2&i){const e=t.XpG();t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function di(i,s){if(1&i&&(t.j41(0,"mat-option",33),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(t.bMT(2,2,e))}}function hi(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.invoiceError)}}function fi(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.DNE(2,hi,2,1,"span",11),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.invoiceError)}}let _i=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.dialogRef=n,this.data=a,this.store=o,this.decimalPipe=l,this.commonService=m,this.actions=u,this.faExclamationTriangle=E.zpE,this.convertedCurrency=null,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.timeUnitEnum=c.F7,this.timeUnits=c.SY,this.selTimeUnit=c.F7.SECS,this.invoiceError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===n.payload.action&&(n.payload.status===c.wn.ERROR&&(this.invoiceError=n.payload.message),n.payload.status===c.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(n){if(this.invoiceError="",!this.description)return!0;let a=this.expiry?this.expiry:c.It;this.expiry&&this.selTimeUnit!==c.F7.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,c.F7.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,j.iO)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=c.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:n=>{this.convertedCurrency=n,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:n=>{this.invoiceValueHint="Conversion Error: "+n}}))}onTimeUnitChange(n){this.expiry&&this.selTimeUnit!==n.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,n.value)),this.selTimeUnit=n.value}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(d.QX),t.rXU($.h),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-create-invoices"]],standalone:!1,decls:46,vars:19,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","name","description","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","type","number","name","exp",3,"ngModelChange","step","min","ngModel"],["fxLayout","column","fxFlex","26"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Create Invoice"),t.k0s()(),t.j41(6,"button",6),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),t.EFF(13,"Description"),t.k0s(),t.j41(14,"input",10),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.description,u)||(o.description=u),r.Njj(u)}),t.k0s(),t.DNE(15,ci,2,0,"mat-error",11),t.k0s(),t.j41(16,"div",12)(17,"mat-form-field",13)(18,"mat-label"),t.EFF(19,"Amount"),t.k0s(),t.j41(20,"input",14),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.invoiceValue,u)||(o.invoiceValue=u),r.Njj(u)}),t.bIt("keyup",function(){return r.eBV(l),r.Njj(o.onInvoiceValueChange())}),t.k0s(),t.j41(21,"span",15),t.EFF(22,"Sats "),t.k0s(),t.j41(23,"mat-hint",16),t.DNE(24,mi,2,0,"span",17)(25,pi,2,1,"span",18)(26,ui,1,1,"span",19),t.EFF(27),t.k0s()(),t.j41(28,"mat-form-field",20)(29,"mat-label"),t.EFF(30,"Expiry"),t.k0s(),t.j41(31,"input",21),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.expiry,u)||(o.expiry=u),r.Njj(u)}),t.k0s(),t.j41(32,"span",15),t.EFF(33),t.nI1(34,"titlecase"),t.k0s()(),t.j41(35,"mat-form-field",22)(36,"mat-label"),t.EFF(37,"Time Unit"),t.k0s(),t.j41(38,"mat-select",23),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.onTimeUnitChange(u))}),t.DNE(39,di,3,4,"mat-option",24),t.k0s()()(),t.DNE(40,fi,3,2,"div",25),t.j41(41,"div",26)(42,"button",27),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(43,"Clear Field"),t.k0s(),t.j41(44,"button",28),t.bIt("click",function(){r.eBV(l);const u=t.sdS(10);return r.Njj(o.onAddInvoice(u))}),t.EFF(45,"Create Invoice"),t.k0s()()()()()()}2&a&&(t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(8),t.R50("ngModel",o.description),t.R7$(),t.Y8G("ngIf",!o.description),t.R7$(5),t.Y8G("step",100)("min",1),t.R50("ngModel",o.invoiceValue),t.R7$(4),t.Y8G("ngIf",""!==o.invoiceValueHint),t.R7$(),t.Y8G("ngIf",o.convertedCurrency&&"FA"===o.convertedCurrency.iconType&&""!==o.invoiceValueHint),t.R7$(),t.Y8G("ngIf",o.convertedCurrency&&"SVG"===o.convertedCurrency.iconType&&""!==o.invoiceValueHint),t.R7$(),t.SpI(" ",o.invoiceValueHint," "),t.R7$(4),t.Y8G("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),t.R50("ngModel",o.expiry),t.R7$(2),t.SpI("",t.bMT(34,17,o.selTimeUnit)," "),t.R7$(5),t.Y8G("value",o.selTimeUnit),t.R7$(),t.Y8G("ngForOf",o.timeUnits),t.R7$(),t.Y8G("ngIf",""!==o.invoiceError))},dependencies:[d.Sq,d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,_.DJ,_.sA,_.UI,R.VO,z.wT,et.N,it.V,d.PV],encapsulation:2}))}return i(),s})();var gi=C(86439);const Ci=()=>["all"],yi=i=>({"error-border":i}),bi=()=>["no_invoice"],ft=i=>({"mr-0":i}),_t=i=>({width:i}),Fi=i=>({"display-none":i});function Ei(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Description is required."),t.k0s())}function xi(i,s){1&i&&(t.j41(0,"span",21),t.EFF(1,"= "),t.k0s())}function Li(i,s){if(1&i&&(t.j41(0,"span",22),t.nrm(1,"fa-icon",23),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function vi(i,s){if(1&i&&t.nrm(0,"span",24),2&i){const e=t.XpG(2);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function Si(i,s){if(1&i){const e=t.RV6();t.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),t.EFF(4,"Description"),t.k0s(),t.j41(5,"input",9),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.description,a)||(o.description=a),r.Njj(a)}),t.k0s(),t.DNE(6,Ei,2,0,"mat-error",10),t.k0s(),t.j41(7,"mat-form-field",11)(8,"mat-label"),t.EFF(9,"Amount"),t.k0s(),t.j41(10,"input",12,1),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.invoiceValue,a)||(o.invoiceValue=a),r.Njj(a)}),t.bIt("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onInvoiceValueChange())}),t.k0s(),t.j41(12,"span",13),t.EFF(13,"Sats "),t.k0s(),t.j41(14,"mat-hint",14),t.DNE(15,xi,2,0,"span",15)(16,Li,2,1,"span",16)(17,vi,1,1,"span",17),t.EFF(18),t.k0s()(),t.j41(19,"div",18)(20,"button",19),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.resetData())}),t.EFF(21,"Clear Field"),t.k0s(),t.j41(22,"button",20),t.bIt("click",function(){r.eBV(e);const a=t.sdS(1),o=t.XpG();return r.Njj(o.onAddInvoice(a))}),t.EFF(23,"Create Invoice"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(5),t.R50("ngModel",e.description),t.R7$(),t.Y8G("ngIf",!e.description),t.R7$(4),t.Y8G("step",100)("min",1),t.R50("ngModel",e.invoiceValue),t.R7$(5),t.Y8G("ngIf",""!==e.invoiceValueHint),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),t.R7$(),t.SpI(" ",e.invoiceValueHint," ")}}function Ri(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",25)(1,"button",26),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.openCreateInvoiceModal())}),t.EFF(2,"Create Invoice"),t.k0s()()}}function ki(i,s){if(1&i&&(t.j41(0,"mat-option",63),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Ii(i,s){1&i&&t.nrm(0,"mat-progress-bar",64)}function Ti(i,s){1&i&&t.nrm(0,"th",65)}function wi(i,s){if(1&i&&t.nrm(0,"span",70),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function ji(i,s){if(1&i&&t.nrm(0,"span",71),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function Di(i,s){if(1&i&&t.nrm(0,"span",72),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function Gi(i,s){if(1&i&&(t.j41(0,"td",66),t.DNE(1,wi,1,3,"span",67)(2,ji,1,3,"span",68)(3,Di,1,3,"span",69),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","received"===(null==e?null:e.status)),t.R7$(),t.Y8G("ngIf","unpaid"===(null==e?null:e.status)),t.R7$(),t.Y8G("ngIf",!(null!=e&&e.status)||"expired"===(null==e?null:e.status)||"unknown"===(null==e?null:e.status))}}function Pi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Created"),t.k0s())}function Ai(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Ni(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Expiry"),t.k0s())}function Bi(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.expiresAt),"dd/MMM/y HH:mm")||"-")}}function Mi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Settled"),t.k0s())}function $i(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.receivedAt),"dd/MMM/y HH:mm")||"-")}}function Vi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Node ID"),t.k0s())}function Oi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Hi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Description"),t.k0s())}function Yi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description)}}function Xi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Payment Hash"),t.k0s())}function Ui(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function zi(i,s){1&i&&(t.j41(0,"th",76),t.EFF(1,"Amount (Sats)"),t.k0s())}function Ji(i,s){if(1&i&&(t.j41(0,"td",66)(1,"span",77),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(null!=e&&e.amount?t.i5U(3,1,null==e?null:e.amount,"1.0-0"):"-")}}function qi(i,s){1&i&&(t.j41(0,"th",78),t.EFF(1," Amount Settled (Sats)"),t.k0s())}function Qi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"span",77),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(null!=e&&e.amountSettled?t.i5U(3,1,null==e?null:e.amountSettled,"1.0-0"):"-")}}function Zi(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",79)(1,"div",80)(2,"mat-select",81),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",82),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function Wi(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",83)(1,"div",80)(2,"mat-select",84),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",82),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onInvoiceClick(a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",82),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onRefreshInvoice(a))}),t.EFF(7,"Refresh"),t.k0s()()()()}}function Ki(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No invoice available."),t.k0s())}function ta(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting invoices..."),t.k0s())}function ea(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function na(i,s){if(1&i&&(t.j41(0,"td",85),t.DNE(1,Ki,2,0,"p",10)(2,ta,2,0,"p",10)(3,ea,2,1,"p",10),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function ia(i,s){if(1&i&&t.nrm(0,"tr",86),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Fi,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function aa(i,s){1&i&&t.nrm(0,"tr",87)}function oa(i,s){1&i&&t.nrm(0,"tr",88)}function sa(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",27)(1,"div",28)(2,"div",29),t.nrm(3,"fa-icon",30),t.j41(4,"span",31),t.EFF(5,"Invoices History"),t.k0s()(),t.j41(6,"div",32)(7,"mat-form-field",33)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",34),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,ki,2,2,"mat-option",35),t.k0s()()(),t.j41(13,"mat-form-field",33)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",36),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()(),t.j41(17,"div",37),t.DNE(18,Ii,1,0,"mat-progress-bar",38),t.j41(19,"table",39,2),t.qex(21,40),t.DNE(22,Ti,1,0,"th",41)(23,Gi,4,3,"td",42),t.bVm(),t.qex(24,43),t.DNE(25,Pi,2,0,"th",44)(26,Ai,3,4,"td",42),t.bVm(),t.qex(27,45),t.DNE(28,Ni,2,0,"th",44)(29,Bi,3,4,"td",42),t.bVm(),t.qex(30,46),t.DNE(31,Mi,2,0,"th",44)(32,$i,3,4,"td",42),t.bVm(),t.qex(33,47),t.DNE(34,Vi,2,0,"th",44)(35,Oi,4,4,"td",42),t.bVm(),t.qex(36,48),t.DNE(37,Hi,2,0,"th",44)(38,Yi,4,4,"td",42),t.bVm(),t.qex(39,49),t.DNE(40,Xi,2,0,"th",44)(41,Ui,4,4,"td",42),t.bVm(),t.qex(42,50),t.DNE(43,zi,2,0,"th",51)(44,Ji,4,4,"td",42),t.bVm(),t.qex(45,52),t.DNE(46,qi,2,0,"th",53)(47,Qi,4,4,"td",42),t.bVm(),t.qex(48,54),t.DNE(49,Zi,6,0,"th",55)(50,Wi,8,0,"td",56),t.bVm(),t.qex(51,57),t.DNE(52,na,4,3,"td",58),t.bVm(),t.DNE(53,ia,1,3,"tr",59)(54,aa,1,0,"tr",60)(55,oa,1,0,"tr",61),t.k0s()(),t.nrm(56,"mat-paginator",62),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.Y8G("icon",e.faHistory),t.R7$(7),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,Ci).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter),t.R7$(2),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.invoices)("ngClass",t.eq3(16,yi,""!==e.errorMessage)),t.R7$(34),t.Y8G("matFooterRowDef",t.lJ4(18,bi)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Tt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.logger=n,this.store=a,this.decimalPipe=o,this.commonService=l,this.datePipe=m,this.actions=u,this.camelCaseWithSpaces=T,this.calledFrom="transactions",this.faHistory=E.Int,this.convertedCurrency=null,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:c.md,sortBy:"expiresAt",sortOrder:c.oi.DESCENDING},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new p.I6([]),this.invoiceJSONArr=[],this.information={},this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.Do)({payload:{count:1e6,skip:0}}))),this.logger.info(this.displayedColumns)}),this.store.select(b.rN).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=n.invoices&&n.invoices.length>0?n.invoices:[],this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,X.p)(n=>n.type===c.Uu.SET_LOOKUP_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.SET_LOOKUP_ECL&&this.invoiceJSONArr&&this.sort&&this.paginator&&n.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(n.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,k.xO)({payload:{data:{pageSize:this.pageSize,component:_i}}}))}onAddInvoice(n){if(!this.description)return!0;const a=this.expiry?this.expiry:c.It;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,j.iO)({payload:o})),this.resetData()}onInvoiceClick(n){this.store.dispatch((0,k.xO)({payload:{data:{invoice:n,newlyAdded:!1,component:gi.Z}}}))}onRefreshInvoice(n){this.store.dispatch((0,j.Yi)({payload:n.paymentHash}))}updateInvoicesData(n){this.invoiceJSONArr=this.invoiceJSONArr?.map(a=>a.paymentHash===n.paymentHash?n:a)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.invoices.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(1e3*n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"status":o=n?.status&&"expired"!==n?.status&&"unknown"!==n?.status?n.status?.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":o=this.datePipe.transform(new Date(1e3*(n[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"amount":case"amountSettled":o=n[this.selFilterBy]?.toString()||"-";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===o.indexOf(a):o.includes(a)}}loadInvoicesTable(n){this.invoices=new p.I6(n?[...n]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:n=>{this.convertedCurrency=n,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:n=>{this.invoiceValueHint="Conversion Error: "+n}}))}onPageChange(n){this.store.dispatch((0,j.Do)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(d.QX),t.rXU($.h),t.rXU(d.vh),t.rXU(K.En),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["invcVal","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","tabindex","2","name","description","required","true",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","3","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",3),t.DNE(1,Si,24,9,"form",4)(2,Ri,3,0,"div",5)(3,sa,57,19,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf","home"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,it.V,d.QX,d.vh],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const wt=i=>({"dashboard-card-content":!0,"error-border":i}),la=i=>({"p-0":i});function ra(i,s){if(1&i&&(t.j41(0,"button",28)(1,"mat-icon"),t.EFF(2,"more_vert"),t.k0s()()),2&i){t.XpG();const e=t.sdS(11);t.Y8G("matMenuTriggerFor",e)}}function ca(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG().$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function ma(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){r.eBV(e);const a=t.XpG(3);return r.Njj(a.onsortChannelsBy())}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(3);t.R7$(),t.SpI("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score")}}function pa(i,s){1&i&&t.nrm(0,"mat-progress-bar",30)}function ua(i,s){if(1&i&&t.nrm(0,"rtl-ecl-node-info",31),2&i){const e=t.XpG(3);t.Y8G("information",e.information)("showColorFieldSeparately",!1)}}function da(i,s){if(1&i&&t.nrm(0,"rtl-ecl-balances-info",32),2&i){const e=t.XpG(3);t.Y8G("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function ha(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-capacity-info",33),2&i){const e=t.XpG(3);t.Y8G("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function fa(i,s){if(1&i&&t.nrm(0,"rtl-ecl-fee-info",34),2&i){const e=t.XpG(3);t.Y8G("fees",e.fees)("errorMessage",e.errorMessages[1])}}function _a(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-status-info",35),2&i){const e=t.XpG(3);t.Y8G("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function ga(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find information!"),t.k0s())}function Ca(i,s){if(1&i&&(t.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),t.nrm(5,"fa-icon",14),t.j41(6,"span"),t.EFF(7),t.k0s()(),t.j41(8,"div"),t.DNE(9,ra,3,1,"button",15),t.j41(10,"mat-menu",16,1),t.DNE(12,ca,2,1,"button",17)(13,ma,2,1,"button",18),t.k0s()()()(),t.j41(14,"mat-card-content",19),t.DNE(15,pa,1,0,"mat-progress-bar",20),t.j41(16,"div",21),t.DNE(17,ua,1,2,"rtl-ecl-node-info",22)(18,da,1,2,"rtl-ecl-balances-info",23)(19,ha,1,4,"rtl-ecl-channel-capacity-info",24)(20,fa,1,2,"rtl-ecl-fee-info",25)(21,_a,1,2,"rtl-ecl-channel-status-info",26)(22,ga,2,0,"h3",27),t.k0s()()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("colspan",e.cols)("rowspan",e.rows),t.R7$(5),t.Y8G("icon",e.icon),t.R7$(2),t.JRh(e.title),t.R7$(2),t.Y8G("ngIf",e.links[0]),t.R7$(3),t.Y8G("ngForOf",e.goToOptions),t.R7$(),t.Y8G("ngIf","capacity"===e.id),t.R7$(),t.Y8G("fxFlex",t.mNQ("capacity"===e.id?90:70))("ngClass",t.eq3(17,wt,"node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||"fee"===e.id&&n.apiCallStatusFees.status===n.apiCallStatusEnum.ERROR)),t.R7$(),t.Y8G("ngIf","node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||"fee"===e.id&&n.apiCallStatusFees.status===n.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngSwitch",e.id),t.R7$(),t.Y8G("ngSwitchCase","node"),t.R7$(),t.Y8G("ngSwitchCase","balance"),t.R7$(),t.Y8G("ngSwitchCase","capacity"),t.R7$(),t.Y8G("ngSwitchCase","fee"),t.R7$(),t.Y8G("ngSwitchCase","status")}}function ya(i,s){if(1&i&&(t.j41(0,"div",5)(1,"div",6),t.nrm(2,"fa-icon",7),t.j41(3,"span",8),t.EFF(4),t.k0s()(),t.j41(5,"mat-grid-list",9),t.DNE(6,Ca,23,19,"mat-grid-tile",10),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.R7$(2),t.JRh(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.R7$(),t.Y8G("rowHeight",e.operatorCardHeight),t.R7$(),t.Y8G("ngForOf",e.operatorCards)}}function ba(i,s){if(1&i&&(t.j41(0,"button",28)(1,"mat-icon"),t.EFF(2,"more_vert"),t.k0s()()),2&i){t.XpG();const e=t.sdS(9);t.Y8G("matMenuTriggerFor",e)}}function Fa(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Ea(i,s){if(1&i&&(t.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),t.nrm(3,"fa-icon",14),t.j41(4,"span"),t.EFF(5),t.k0s()(),t.j41(6,"div"),t.DNE(7,ba,3,1,"button",15),t.j41(8,"mat-menu",16,2),t.DNE(10,Fa,2,1,"button",17),t.k0s()()()()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.Y8G("icon",e.icon),t.R7$(2),t.JRh(e.title),t.R7$(2),t.Y8G("ngIf",e.links[0]),t.R7$(3),t.Y8G("ngForOf",e.goToOptions)}}function xa(i,s){1&i&&t.nrm(0,"mat-progress-bar",30)}function La(i,s){if(1&i&&t.nrm(0,"rtl-ecl-node-info",45),2&i){const e=t.XpG(3);t.Y8G("information",e.information)}}function va(i,s){if(1&i&&t.nrm(0,"rtl-ecl-balances-info",32),2&i){const e=t.XpG(3);t.Y8G("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Sa(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-liquidity-info",46),2&i){const e=t.XpG(3);t.Y8G("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function Ra(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-liquidity-info",47),2&i){const e=t.XpG(3);t.Y8G("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function ka(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Ia(i,s){if(1&i&&(t.j41(0,"span",48)(1,"mat-tab-group",49)(2,"mat-tab",50),t.nrm(3,"rtl-ecl-lightning-invoices",51),t.k0s(),t.j41(4,"mat-tab",52),t.nrm(5,"rtl-ecl-lightning-payments",53),t.k0s()(),t.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),t.EFF(9,"more_vert"),t.k0s()(),t.j41(10,"mat-menu",16,3),t.DNE(12,ka,2,1,"button",17),t.k0s()()()),2&i){const e=t.sdS(11),n=t.XpG().$implicit;t.R7$(7),t.Y8G("matMenuTriggerFor",e),t.R7$(5),t.Y8G("ngForOf",n.goToOptions)}}function Ta(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find information!"),t.k0s())}function wa(i,s){if(1&i&&(t.j41(0,"mat-grid-tile",11)(1,"mat-card",38),t.DNE(2,Ea,11,4,"mat-card-header",39),t.j41(3,"mat-card-content",40),t.DNE(4,xa,1,0,"mat-progress-bar",20),t.j41(5,"div",21),t.DNE(6,La,1,1,"rtl-ecl-node-info",41)(7,va,1,2,"rtl-ecl-balances-info",23)(8,Sa,1,3,"rtl-ecl-channel-liquidity-info",42)(9,Ra,1,3,"rtl-ecl-channel-liquidity-info",43)(10,Ia,13,2,"span",44)(11,Ta,2,0,"h3",27),t.k0s()()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("colspan",e.cols)("rowspan",e.rows),t.R7$(),t.Y8G("ngClass",t.eq3(14,la,"transactions"===e.id)),t.R7$(),t.Y8G("ngIf","transactions"!==e.id),t.R7$(),t.Y8G("fxFlex",t.mNQ("transactions"===e.id?100:"balance"===e.id?70:90))("ngClass",t.eq3(16,wt,"node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR)),t.R7$(),t.Y8G("ngIf","node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngSwitch",e.id),t.R7$(),t.Y8G("ngSwitchCase","node"),t.R7$(),t.Y8G("ngSwitchCase","balance"),t.R7$(),t.Y8G("ngSwitchCase","inboundLiq"),t.R7$(),t.Y8G("ngSwitchCase","outboundLiq"),t.R7$(),t.Y8G("ngSwitchCase","transactions")}}function ja(i,s){if(1&i&&(t.j41(0,"div",36),t.nrm(1,"fa-icon",7),t.j41(2,"span",8),t.EFF(3),t.k0s()(),t.j41(4,"mat-grid-list",37),t.DNE(5,wa,12,18,"mat-grid-tile",10),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faSmile),t.R7$(2),t.SpI("Welcome ",e.information.alias,"! Your node is up and running."),t.R7$(),t.Y8G("rowHeight",e.merchantCardHeight),t.R7$(),t.Y8G("ngForOf",e.merchantCards)}}let Da=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.store=a,this.commonService=o,this.router=l,this.faSmile=St.Qpm,this.faFrown=St.wB1,this.faAngleDoubleDown=E.WxX,this.faAngleDoubleUp=E.$sC,this.faChartPie=E.W1p,this.faBolt=E.zm_,this.faServer=E.D6w,this.faNetworkWired=E.eGi,this.userPersonaEnum=c.HW,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:c.wn.COMPLETED},this.apiCallStatusFees={status:c.wn.COMPLETED},this.apiCallStatusOCBal={status:c.wn.COMPLETED},this.apiCallStatusAllChannels={status:c.wn.COMPLETED},this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===c.f7.SM||this.screenSize===c.f7.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.b_).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=n.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=n.information}),this.store.select(b.oR).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessages[1]="",this.apiCallStatusFees=n.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=n.fees}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[3]),(0,pt.E)(this.store.select(b.DW))).subscribe(([n,a])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=n.apiCallStatus,this.apiCallStatusOCBal=a.apiCallStatus,this.apiCallStatusAllChannels.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=n.activeChannels,this.onchainBalance=a.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=n.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const o=n.lightningBalance.localBalance?+n.lightningBalance.localBalance:0,l=n.lightningBalance.remoteBalance?+n.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:o,remoteBalance:l,balancedness:+(1-Math.abs((o-l)/(o+l))).toFixed(3)},this.channelsStatus=n.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(u=>(u.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(u=>(u.toLocal||0)>0),"toLocal"))),this.channels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(u.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(u.toLocal||0)}),this.logger.info(n)})}onNavigateTo(n){this.router.navigateByUrl("/ecl/"+n)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((n,a)=>{const o=+(n.toLocal||0)+ +(n.toRemote||0),l=+(a.toLocal||0)+ +(a.toRemote||0);return o>l?-1:o{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU($.h),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home",1,"h-100"],["label","Pay"],["calledFrom","home"],[1,"underline"]],template:function(a,o){if(1&a&&t.DNE(0,ya,7,4,"div",4)(1,ja,6,4,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",(null==o.selNode?null:o.selNode.settings.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[d.YU,d.Sq,d.bT,d.ux,d.e1,d.fG,D.aY,Zt.iY,x.RN,x.m2,x.MM,x.dh,Rt.B_,Rt.NS,ut.An,dt.kk,dt.fb,dt.Cp,H.HM,_.DJ,_.sA,_.UI,S.PW,G.mq,G.T8,ee,ae,le,me,Ce,je,It,Tt],encapsulation:2}))}return i(),s})();const Ga=["form"];function Pa(i,s){if(1&i&&(t.j41(0,"div",30),t.nrm(1,"fa-icon",31),t.j41(2,"span",32)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",33)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function Aa(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Bitcoin address is required."),t.k0s())}function Na(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.amountError)}}function Ba(i,s){if(1&i&&(t.j41(0,"mat-option",34),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e)}}function Ma(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Target Confirmation Blocks is required."),t.k0s())}function $a(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.sendFundError)}}function Va(i,s){if(1&i&&(t.j41(0,"div",35),t.nrm(1,"fa-icon",31),t.DNE(2,$a,2,1,"span",15),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.sendFundError)}}let jt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.logger=a,this.dataService=o,this.store=l,this.commonService=m,this.decimalPipe=u,this.actions=T,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.addressTypes=[],this.selectedAddress=c.Ld[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=c.A0,this.selAmountUnit=c.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=c.k,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.amountError="Amount is Required.",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[0])).subscribe({next:n=>{this.recommendedFee=n},error:n=>{this.logger.error(n)}}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.fiatConversion=n.settings.fiatConversion,this.amountUnits=n.settings.currencyUnits,this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||n.type===c.Uu.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(n=>{n.type===c.Uu.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,k.UI)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"SendOnchainFunds"===n.payload.action&&(this.sendFundError=n.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==c.BQ.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit,c.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:n=>{this.transaction.amount=parseInt(n[c.BQ.SATS]),this.selAmountUnit=c.BQ.SATS,this.store.dispatch((0,j.Lz)({payload:this.transaction}))},error:n=>{this.selAmountUnit=c.BQ.SATS,this.amountError="Conversion Error: "+n}}):this.store.dispatch((0,j.Lz)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(n){const a=this,o=this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit;let l=n.value===this.amountUnits[2]?c.BQ.OTHER:n.value;this.transaction.amount&&this.selAmountUnit!==n.value&&this.commonService.convertCurrency(this.transaction.amount,o,l,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:m=>{this.selAmountUnit=n.value,a.transaction.amount=+a.decimalPipe.transform(m[l],a.currencyUnitFormats[l]).replace(/,/g,"")},error:m=>{this.amountError="Conversion Error: "+m,this.selAmountUnit=o,l=o}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(A.gP),t.rXU(nt.u),t.rXU(I.il),t.rXU($.h),t.rXU(d.QX),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(a,o){if(1&a&&t.GBs(Ga,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:45,vars:16,consts:[["form","ngForm"],["addrs","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex","55"],["matInput","","autoFocus","","name","addr","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start center"],["matInput","","type","number","name","blocks","required","true",3,"ngModelChange","step","min","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),t.EFF(5,"Send Payment"),t.k0s()(),t.j41(6,"button",9),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",10),t.DNE(9,Pa,16,6,"div",11),t.j41(10,"form",12,0),t.bIt("submit",function(){return r.eBV(l),r.Njj(o.onSendFunds())})("reset",function(){return r.eBV(l),r.Njj(o.resetData())}),t.j41(12,"mat-form-field",13)(13,"mat-label"),t.EFF(14,"Bitcoin Address"),t.k0s(),t.j41(15,"input",14,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.address,u)||(o.transaction.address=u),r.Njj(u)}),t.k0s(),t.DNE(17,Aa,2,0,"mat-error",15),t.k0s(),t.j41(18,"mat-form-field",16)(19,"mat-label"),t.EFF(20,"Amount"),t.k0s(),t.j41(21,"input",17,2),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.amount,u)||(o.transaction.amount=u),r.Njj(u)}),t.k0s(),t.j41(23,"span",18),t.EFF(24),t.k0s(),t.DNE(25,Na,2,1,"mat-error",15),t.k0s(),t.j41(26,"mat-form-field",19)(27,"mat-label"),t.EFF(28,"Amount Unit"),t.k0s(),t.j41(29,"mat-select",20),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.onAmountUnitChange(u))}),t.DNE(30,Ba,2,2,"mat-option",21),t.k0s()(),t.j41(31,"div",22)(32,"mat-form-field",23)(33,"mat-label"),t.EFF(34,"Target Confirmation Blocks"),t.k0s(),t.j41(35,"input",24,3),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.blocks,u)||(o.transaction.blocks=u),r.Njj(u)}),t.k0s(),t.DNE(37,Ma,2,0,"mat-error",15),t.k0s()(),t.nrm(38,"div",25),t.DNE(39,Va,3,2,"div",26),t.j41(40,"div",27)(41,"button",28),t.EFF(42,"Clear Fields"),t.k0s(),t.j41(43,"button",29),t.EFF(44,"Send Funds"),t.k0s()()()()()()}2&a&&(t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(3),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(6),t.R50("ngModel",o.transaction.address),t.R7$(2),t.Y8G("ngIf",!o.transaction.address),t.R7$(4),t.Y8G("step",100)("min",0),t.R50("ngModel",o.transaction.amount),t.R7$(3),t.SpI("",o.selAmountUnit," "),t.R7$(),t.Y8G("ngIf",!o.transaction.amount),t.R7$(4),t.Y8G("value",o.selAmountUnit),t.R7$(),t.Y8G("ngForOf",o.amountUnits),t.R7$(5),t.Y8G("step",1)("min",0),t.R50("ngModel",o.transaction.blocks),t.R7$(2),t.Y8G("ngIf",!o.transaction.blocks),t.R7$(2),t.Y8G("ngIf",""!==o.sendFundError))},dependencies:[d.Sq,d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.TL,y.yw,_.DJ,_.sA,_.UI,R.VO,z.wT,et.N,it.V],encapsulation:2}))}return i(),s})();var gt=C(25837);const Oa=()=>["all"],Ha=i=>({"error-border":i}),Ya=()=>["no_transaction"],Ct=i=>({width:i}),Xa=i=>({"display-none":i});function Ua(i,s){if(1&i&&(t.j41(0,"mat-option",34),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function za(i,s){1&i&&t.nrm(0,"mat-progress-bar",35)}function Ja(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Date/Time"),t.k0s())}function qa(i,s){if(1&i&&(t.j41(0,"td",37),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Qa(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Address"),t.k0s())}function Za(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.address)}}function Wa(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Blockhash"),t.k0s())}function Ka(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.blockHash)}}function to(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Transaction ID"),t.k0s())}function eo(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.txid)}}function no(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Amount (Sats)"),t.k0s())}function io(i,s){if(1&i&&(t.j41(0,"span",43),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.amount))}}function ao(i,s){if(1&i&&(t.j41(0,"span",44),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.SpI("(",t.bMT(2,1,-1*(null==e?null:e.amount)),")")}}function oo(i,s){if(1&i&&(t.j41(0,"td",37),t.DNE(1,io,3,3,"span",41)(2,ao,3,3,"span",42),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",(null==e?null:e.amount)>0||0===(null==e?null:e.amount)),t.R7$(),t.Y8G("ngIf",(null==e?null:e.amount)<0)}}function so(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Fees (Sats)"),t.k0s())}function lo(i,s){if(1&i&&(t.j41(0,"td",37)(1,"span",43),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.fees))}}function ro(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Confirmations"),t.k0s())}function co(i,s){if(1&i&&(t.j41(0,"td",37)(1,"span",43),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.bMT(3,1,null==e?null:e.confirmations)," ")}}function mo(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",48),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function po(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",49)(1,"button",50),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onTransactionClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function uo(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No transaction available."),t.k0s())}function ho(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting transactions..."),t.k0s())}function fo(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function _o(i,s){if(1&i&&(t.j41(0,"td",51),t.DNE(1,uo,2,0,"p",52)(2,ho,2,0,"p",52)(3,fo,2,1,"p",52),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function go(i,s){if(1&i&&t.nrm(0,"tr",53),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Xa,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function Co(i,s){1&i&&t.nrm(0,"tr",54)}function yo(i,s){1&i&&t.nrm(0,"tr",55)}let bo=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.commonService=a,this.store=o,this.datePipe=l,this.camelCaseWithSpaces=m,this.faHistory=E.Int,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.displayedColumns=[],this.listTransactions=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.apiCallStatus.status===c.wn.COMPLETED&&(this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.mh)({payload:{count:1e3,skip:0}}))),this.logger.info(this.displayedColumns))}),this.store.select(b.gN).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),n.transactions&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadTransactionsTable(n.transactions),this.logger.info(n)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.listTransactions.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(1e3*n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"timestamp":o=this.datePipe.transform(new Date(1e3*(n[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}onTransactionClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:n.blockHash||n.blockId_opt,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"txid",value:n.txid,title:"Transaction ID",width:100,explorerLink:"tx"}],[{key:"timestamp",value:n.timestamp,title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"confirmations",value:n.confirmations,title:"Number of Confirmations",width:50,type:c.UN.NUMBER}],[{key:"fees",value:n.fees,title:"Fees (Sats)",width:50,type:c.UN.NUMBER},{key:"amount",value:n.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"address",value:n.address,title:"Address",width:100,type:c.UN.STRING}]]}}}))}loadTransactionsTable(n){this.listTransactions=new p.I6([...n]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onPageChange(n){this.store.dispatch((0,j.mh)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Transactions")}])],decls:52,vars:19,consts:[["table",""],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3),t.nrm(3,"fa-icon",4),t.j41(4,"span",5),t.EFF(5,"Transaction History"),t.k0s()(),t.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,Ua,2,2,"mat-option",9),t.k0s()()(),t.j41(13,"mat-form-field",7)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",10),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(17,"div",11)(18,"div",12),t.DNE(19,za,1,0,"mat-progress-bar",13),t.j41(20,"table",14,0),t.qex(22,15),t.DNE(23,Ja,2,0,"th",16)(24,qa,3,4,"td",17),t.bVm(),t.qex(25,18),t.DNE(26,Qa,2,0,"th",16)(27,Za,4,4,"td",17),t.bVm(),t.qex(28,19),t.DNE(29,Wa,2,0,"th",16)(30,Ka,4,4,"td",17),t.bVm(),t.qex(31,20),t.DNE(32,to,2,0,"th",16)(33,eo,4,4,"td",17),t.bVm(),t.qex(34,21),t.DNE(35,no,2,0,"th",22)(36,oo,3,2,"td",17),t.bVm(),t.qex(37,23),t.DNE(38,so,2,0,"th",22)(39,lo,4,3,"td",17),t.bVm(),t.qex(40,24),t.DNE(41,ro,2,0,"th",22)(42,co,4,3,"td",17),t.bVm(),t.qex(43,25),t.DNE(44,mo,6,0,"th",26)(45,po,3,0,"td",27),t.bVm(),t.qex(46,28),t.DNE(47,_o,4,3,"td",29),t.bVm(),t.DNE(48,go,1,3,"tr",30)(49,Co,1,0,"tr",31)(50,yo,1,0,"tr",32),t.k0s(),t.nrm(51,"mat-paginator",33),t.k0s()()()}2&a&&(t.R7$(3),t.Y8G("icon",o.faHistory),t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,Oa).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(3),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.listTransactions)("ngClass",t.eq3(16,Ha,""!==o.errorMessage)),t.R7$(28),t.Y8G("matFooterRowDef",t.lJ4(18,Ya)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.ZF,B.Ld,d.QX,d.vh],encapsulation:2}))}return i(),s})();function Fo(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Eo=(()=>{var i;class s{constructor(n,a){this.store=n,this.router=a,this.faExchangeAlt=E._qq,this.faChartPie=E.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.onchainBalance.total||0},{title:"Confirmed",dataValue:a.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:a.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,k.xO)({payload:{data:{component:jt}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain"]],standalone:!1,decls:23,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"On-chain Balance"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),t.nrm(7,"rtl-currency-unit-converter",6),t.k0s()()(),t.j41(8,"div",1),t.nrm(9,"fa-icon",2),t.j41(10,"span",3),t.EFF(11,"On-chain Transactions"),t.k0s()(),t.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),t.DNE(16,Fo,2,4,"div",9),t.k0s(),t.nrm(17,"mat-tab-nav-panel",null,0),t.j41(19,"div",10),t.nrm(20,"router-outlet"),t.k0s(),t.j41(21,"div",10),t.nrm(22,"rtl-ecl-on-chain-transaction-history",11),t.k0s()()()()),2&a){const l=t.sdS(18);t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faExchangeAlt),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,gt.f,L.n3,W.Wk,bo],encapsulation:2}))}return i(),s})();var Dt=C(1975);function xo(i,s){if(1&i&&(t.j41(0,"span",10),t.EFF(1,"Channels"),t.k0s()),2&i){const e=t.XpG();t.Y8G("matBadge",t.mNQ(e.activeChannels))}}function Lo(i,s){if(1&i&&(t.j41(0,"span",10),t.EFF(1,"Peers"),t.k0s()),2&i){const e=t.XpG();t.Y8G("matBadge",t.mNQ(e.activePeers))}}let vo=(()=>{var i;class s{constructor(n,a){this.store=n,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=E.gdJ,this.faChartPie=E.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(n=>n.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n instanceof L.gx)).subscribe({next:n=>{this.activeLink=this.links.findIndex(a=>a.link===n.urlAfterRedirects.substring(n.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.activePeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.activeChannels=n.channelsStatus&&n.channelsStatus.active&&n.channelsStatus.active.channels?n.channelsStatus.active.channels:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.balances=[{title:"Total Balance",dataValue:n.onchainBalance.total||0},{title:"Confirmed",dataValue:n.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:n.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(n){this.router.navigateByUrl("/ecl/connections/"+this.links[n.index].link)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-connections"]],standalone:!1,decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(a,o){1&a&&(t.j41(0,"div",0),t.nrm(1,"fa-icon",1),t.j41(2,"span",2),t.EFF(3,"On-chain Balance"),t.k0s()(),t.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t.nrm(7,"rtl-currency-unit-converter",5),t.k0s()()(),t.j41(8,"div",0),t.nrm(9,"fa-icon",1),t.j41(10,"span",2),t.EFF(11,"Connections"),t.k0s()(),t.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.mxI("selectedIndexChange",function(m){return t.DH7(o.activeLink,m)||(o.activeLink=m),m}),t.bIt("selectedTabChange",function(m){return o.onSelectedTabChange(m)}),t.j41(16,"mat-tab"),t.DNE(17,xo,2,2,"ng-template",8),t.k0s(),t.j41(18,"mat-tab"),t.DNE(19,Lo,2,2,"ng-template",8),t.k0s()(),t.j41(20,"div",9),t.nrm(21,"router-outlet"),t.k0s()()()()),2&a&&(t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faUsers),t.R7$(6),t.R50("selectedIndex",o.activeLink))},dependencies:[D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,Dt.k,G.ES,G.mq,G.T8,gt.f,L.n3],encapsulation:2}))}return i(),s})();function So(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Ro=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.store=a,this.router=o,this.faExchangeAlt=E._qq,this.faChartPie=E.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1]),(0,pt.E)(this.store.select(J._c))).subscribe(([a,o])=>{this.currencyUnits=o?.settings.currencyUnits||[],this.balances=o&&o.settings.userPersona===c.HW.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Lightning Balance"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),t.nrm(7,"rtl-currency-unit-converter",6),t.k0s()()(),t.j41(8,"div",7),t.nrm(9,"fa-icon",2),t.j41(10,"span",3),t.EFF(11,"Lightning Transactions"),t.k0s()(),t.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),t.DNE(16,So,2,4,"div",10),t.k0s(),t.nrm(17,"mat-tab-nav-panel",null,0),t.j41(19,"div",11),t.nrm(20,"router-outlet"),t.k0s()()()()),2&a){const l=t.sdS(18);t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faExchangeAlt),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,gt.f,L.n3,W.Wk],encapsulation:2}))}return i(),s})();function ko(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Io=(()=>{var i;class s{constructor(n){this.router=n,this.faMapSigns=E.knH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing"]],standalone:!1,decls:15,vars:3,consts:[["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1)(1,"div",2),t.nrm(2,"fa-icon",3),t.j41(3,"span",4),t.EFF(4,"Routing"),t.k0s()(),t.j41(5,"div",5)(6,"mat-card",6)(7,"mat-card-content",7)(8,"div",8)(9,"nav",9),t.DNE(10,ko,2,4,"div",10),t.k0s(),t.nrm(11,"mat-tab-nav-panel",null,0),t.k0s(),t.j41(13,"div",11),t.nrm(14,"router-outlet"),t.k0s()()()()()),2&a){const l=t.sdS(12);t.R7$(2),t.Y8G("icon",o.faMapSigns),t.R7$(7),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();var rt=C(5951),Gt=C(30450),at=C(36013);const To=["peersForm"],wo=["stepper"];function jo(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG();t.JRh(e.peerFormLabel)}}function Do(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Address is required."),t.k0s())}function Go(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(2),t.JRh(e.peerConnectionError)}}function Po(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG();t.JRh(e.channelFormLabel)}}function Ao(i,s){if(1&i&&(t.j41(0,"div",36),t.nrm(1,"fa-icon",35),t.j41(2,"span",13)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",37)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function No(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function Bo(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount must be a positive number."),t.k0s())}function Mo(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function $o(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function Vo(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(2),t.JRh(e.channelConnectionError)}}let Pt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.data=a,this.store=o,this.formBuilder=l,this.actions=m,this.logger=u,this.dataService=T,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[f.k0.required]],peerAddress:[this.peerAddress,[f.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[f.k0.required,f.k0.min(1),f.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],feeRate:[null],hiddenAmount:["",[f.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n,this.channelFormGroup.controls.isPrivate.setValue(!!n?.settings.unannouncedChannels)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(n=>n.type===c.Uu.NEWLY_ADDED_PEER_ECL||n.type===c.Uu.FETCH_CHANNELS_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.NEWLY_ADDED_PEER_ECL&&(this.logger.info(n.payload),this.flgEditable=!1,this.newlyAddedPeer=n.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),n.type===c.Uu.FETCH_CHANNELS_ECL&&this.dialogRef.close(),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&("SaveNewPeer"===n.payload.action?this.peerConnectionError=n.payload.message:"SaveNewChannel"===n.payload.action&&(this.channelConnectionError=n.payload.message))}),this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[2])).subscribe({next:n=>{this.recommendedFee=n},error:n=>{this.logger.error(n)}})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,j.sq)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){return this.channelFormGroup.controls.feeRate.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.feeRate.value?(this.channelFormGroup.controls.feeRate.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||(this.channelConnectionError="",void this.store.dispatch((0,j.vL)({payload:{nodeId:this.newlyAddedPeer?.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}})))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(n){switch(n.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}n.selectedIndex{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(f.ze),t.rXU(K.En),t.rXU(A.gP),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(a,o){if(1&a&&(t.GBs(To,5),t.GBs(wo,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first),t.mGM(l=t.lsd())&&(o.stepper=l.first)}},standalone:!1,decls:59,vars:25,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","35","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxLayout","column","fxFlex","40"],["matInput","","formControlName","feeRate","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","20","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Connect to a new peer"),t.k0s()(),t.j41(6,"button",6),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.stepSelectionChanged(u))}),t.j41(12,"mat-step",10)(13,"form",11),t.DNE(14,jo,1,1,"ng-template",12),t.j41(15,"mat-form-field",13)(16,"mat-label"),t.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),t.k0s(),t.nrm(18,"input",14),t.DNE(19,Do,2,0,"mat-error",15),t.k0s(),t.DNE(20,Go,4,2,"div",16),t.j41(21,"div",17)(22,"button",18),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onConnectPeer())}),t.EFF(23),t.k0s()()()(),t.j41(24,"mat-step",10)(25,"form",19),t.DNE(26,Po,1,1,"ng-template",20),t.j41(27,"div",21),t.DNE(28,Ao,16,6,"div",22),t.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),t.EFF(32,"Amount"),t.k0s(),t.nrm(33,"input",25),t.j41(34,"mat-hint"),t.EFF(35),t.nI1(36,"number"),t.k0s(),t.j41(37,"span",26),t.EFF(38," Sats "),t.k0s(),t.DNE(39,No,2,0,"mat-error",15)(40,Bo,2,0,"mat-error",15)(41,Mo,2,1,"mat-error",15),t.k0s(),t.j41(42,"mat-form-field",27)(43,"mat-label"),t.EFF(44,"Fee (Sats/vByte)"),t.k0s(),t.nrm(45,"input",28),t.j41(46,"mat-hint"),t.EFF(47),t.k0s(),t.DNE(48,$o,2,1,"mat-error",15),t.k0s(),t.j41(49,"div",29)(50,"mat-slide-toggle",30),t.EFF(51,"Private Channel"),t.k0s()()()(),t.DNE(52,Vo,4,2,"div",16),t.j41(53,"div",17)(54,"button",31),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onOpenChannel())}),t.EFF(55),t.k0s()()()()(),t.j41(56,"div",32)(57,"button",33),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(58),t.k0s()()()()()()}2&a&&(t.R7$(10),t.Y8G("linear",!0),t.R7$(2),t.Y8G("stepControl",o.peerFormGroup)("editable",o.flgEditable),t.R7$(),t.Y8G("formGroup",o.peerFormGroup),t.R7$(6),t.Y8G("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),t.R7$(),t.Y8G("ngIf",""!==o.peerConnectionError),t.R7$(3),t.JRh(""!==o.peerConnectionError?"Retry":"Add Peer"),t.R7$(),t.Y8G("stepControl",o.channelFormGroup)("editable",o.flgEditable),t.R7$(),t.Y8G("formGroup",o.channelFormGroup),t.R7$(3),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(5),t.Y8G("step",1e3),t.R7$(2),t.SpI("Remaining: ",t.bMT(36,23,o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0))),t.R7$(4),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),t.R7$(4),t.Y8G("step",1)("min",o.recommendedFee.minimumFee||0),t.R7$(2),t.SpI("Mempool Min: ",o.recommendedFee.minimumFee," (Sats/vByte)"),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.feeRate.errors?null:o.channelFormGroup.controls.feeRate.errors.minimum),t.R7$(4),t.Y8G("ngIf",""!==o.channelConnectionError),t.R7$(3),t.JRh(""!==o.channelConnectionError?"Retry":"Open Channel"),t.R7$(3),t.JRh(null!=o.newlyAddedPeer&&o.newlyAddedPeer.nodeId?"Do It Later":"Close"))},dependencies:[d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.j4,f.JD,D.aY,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,_.DJ,_.sA,_.UI,Gt.sG,at.V5,at.Ti,at.M6,et.N,it.V,d.QX],encapsulation:2}))}return i(),s})();var At=C(95416),Nt=C(29157);const Oo=i=>({"background-color":i});function Ho(i,s){if(1&i&&(t.j41(0,"span",10)(1,"div"),t.EFF(2),t.nI1(3,"titlecase"),t.k0s()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(2),t.Lme("",n.nodeFeaturesEnum[e.key]||e.key,": ",t.bMT(3,2,e.value))}}function Yo(i,s){1&i&&(t.j41(0,"th",24),t.EFF(1,"Address"),t.k0s())}function Xo(i,s){if(1&i&&(t.j41(0,"td",25),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Uo(i,s){1&i&&(t.j41(0,"th",26)(1,"div",27),t.EFF(2,"Actions"),t.k0s()())}function zo(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",28)(1,"div",29)(2,"mat-select",30),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",31),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onConnectNode(a))}),t.EFF(5,"Connect"),t.k0s(),t.j41(6,"mat-option",32),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG(2);return r.Njj(o.onCopyNodeURI(a))}),t.EFF(7,"Copy URI"),t.k0s()()()()}if(2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(6),t.Y8G("payload",(null==n.lookupResult?null:n.lookupResult.nodeId)+"@"+e)}}function Jo(i,s){1&i&&t.nrm(0,"tr",33)}function qo(i,s){1&i&&t.nrm(0,"tr",34)}function Qo(i,s){if(1&i&&(t.j41(0,"div",2),t.nrm(1,"mat-divider",3),t.j41(2,"div",4)(3,"div",5)(4,"h4",6),t.EFF(5,"Alias"),t.k0s(),t.j41(6,"span",7),t.EFF(7),t.j41(8,"span",8),t.EFF(9),t.k0s()()(),t.j41(10,"div",9)(11,"h4",6),t.EFF(12,"Pub Key"),t.k0s(),t.j41(13,"span",10),t.EFF(14),t.k0s()()(),t.nrm(15,"mat-divider",3),t.j41(16,"div",4)(17,"div",5)(18,"h4",6),t.EFF(19,"Date/Time"),t.k0s(),t.j41(20,"span",7),t.EFF(21),t.nI1(22,"date"),t.k0s()(),t.j41(23,"div",9)(24,"h4",6),t.EFF(25,"Features"),t.k0s(),t.DNE(26,Ho,4,4,"span",11),t.nI1(27,"keyvalue"),t.k0s()(),t.nrm(28,"mat-divider",3),t.j41(29,"div",4)(30,"div",12)(31,"h4",6),t.EFF(32,"Signature"),t.k0s(),t.j41(33,"span",7),t.EFF(34),t.k0s()()(),t.nrm(35,"mat-divider",3),t.j41(36,"div",2)(37,"h4",13),t.EFF(38,"Addresses"),t.k0s(),t.j41(39,"div",14)(40,"table",15,0),t.qex(42,16),t.DNE(43,Yo,2,0,"th",17)(44,Xo,2,1,"td",18),t.bVm(),t.qex(45,19),t.DNE(46,Uo,3,0,"th",20)(47,zo,8,1,"td",21),t.bVm(),t.DNE(48,Jo,1,0,"tr",22)(49,qo,1,0,"tr",23),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(null==e.lookupResult?null:e.lookupResult.alias),t.R7$(),t.Y8G("ngStyle",t.eq3(19,Oo,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.R7$(),t.JRh(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.R7$(5),t.JRh(null==e.lookupResult?null:e.lookupResult.nodeId),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.i5U(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.R7$(5),t.Y8G("ngForOf",t.bMT(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(null==e.lookupResult?null:e.lookupResult.signature),t.R7$(),t.Y8G("inset",!0),t.R7$(5),t.Y8G("dataSource",e.addresses),t.R7$(8),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns)}}let Zo=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.snackBar=a,this.store=o,this.lookupResult={},this.addresses=new p.I6([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=c.Uq,this.information={},this.availableBalance=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.addresses=new p.I6(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.information=n}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.availableBalance=n.onchainBalance.total||0})}onConnectNode(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{peer:this.lookupResult.nodeId?{nodeId:this.lookupResult.nodeId,address:n}:null,information:this.information,balance:this.availableBalance},component:Pt}}}))}onCopyNodeURI(n){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+n)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(At.UG),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(a,o){if(1&a&&t.GBs(v.B4,5),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first)}},inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&t.DNE(0,Qo,50,21,"div",1),2&a&&t.Y8G("ngIf",o.lookupResult)},dependencies:[d.Sq,d.bT,d.B3,tt.q,_.DJ,_.sA,_.UI,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,B.Ld,Nt.U,d.PV,d.vh,d.lG],encapsulation:2}))}return i(),s})();const Wo=["form"],Ko=i=>({"mt-1":!0,"mt-2":i});function ts(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function es(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function ns(i,s){if(1&i&&(t.j41(0,"div"),t.nrm(1,"rtl-ecl-node-lookup",25),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("lookupResult",e.nodeLookupValue)}}function is(i,s){if(1&i&&(t.j41(0,"span",23),t.DNE(1,ns,2,1,"div",24),t.k0s()),2&i){const e=t.XpG(2),n=t.sdS(23);t.R7$(),t.Y8G("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",n)}}function as(i,s){1&i&&(t.j41(0,"span"),t.EFF(1,' fxFlex="100"'),t.j41(2,"h3"),t.EFF(3,"Error! Unable to find details!"),t.k0s()())}function os(i,s){if(1&i&&(t.j41(0,"div",17)(1,"div",18)(2,"span",19),t.EFF(3),t.k0s()(),t.j41(4,"div",20),t.DNE(5,is,2,2,"span",21)(6,as,4,0,"span",22),t.k0s()()),2&i){const e=t.XpG();t.R7$(3),t.SpI("",e.lookupFields[e.selectedFieldId].name," Details"),t.R7$(),t.Y8G("ngSwitch",e.selectedFieldId),t.R7$(),t.Y8G("ngSwitchCase",0)}}function ss(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find details!"),t.k0s())}let ls=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.commonService=a,this.store=o,this.actions=l,this.lookupKeyCtrl=new f.hs,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=E.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKeyCtrl.setValue(window.history.state.lookupValue||"")),this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n.type===c.Uu.SET_LOOKUP_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{if(n.type===c.Uu.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=n.payload[0]?JSON.parse(JSON.stringify(n.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(n.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"Lookup"===n.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,j.zU)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(n){this.resetData(),this.selectedFieldId=n.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lookups"]],viewQuery:function(a,o){if(1&a&&t.GBs(Wo,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:24,vars:9,consts:[["form","ngForm"],["key",""],["errorBlock",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"div",4)(2,"mat-card-content",5)(3,"form",6,0)(5,"div",7)(6,"mat-radio-group",8)(7,"mat-radio-button",9),t.EFF(8,"Node"),t.k0s()()(),t.j41(9,"mat-form-field",10)(10,"mat-label"),t.EFF(11),t.k0s(),t.nrm(12,"input",11,1),t.DNE(14,ts,2,1,"mat-error",12)(15,es,2,1,"mat-error",12),t.k0s(),t.j41(16,"div",13)(17,"button",14),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(18,"Clear"),t.k0s(),t.j41(19,"button",15),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onLookup())}),t.EFF(20,"Lookup"),t.k0s()()(),t.DNE(21,os,7,3,"div",16),t.k0s()()(),t.DNE(22,ss,2,0,"ng-template",null,2,t.C5r)}2&a&&(t.R7$(7),t.Y8G("value",0),t.R7$(2),t.Y8G("ngClass",t.eq3(7,Ko,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.R7$(2),t.JRh((null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key"),t.R7$(),t.Y8G("formControl",o.lookupKeyCtrl),t.R7$(2),t.Y8G("ngIf",null==o.lookupKeyCtrl.errors?null:o.lookupKeyCtrl.errors.required),t.R7$(),t.Y8G("ngIf",null==o.lookupKeyCtrl.errors?null:o.lookupKeyCtrl.errors.invalid),t.R7$(6),t.Y8G("ngIf",o.flgSetLookupValue))},dependencies:[d.YU,d.bT,d.ux,d.e1,d.fG,f.qT,f.me,f.BC,f.cb,f.YS,f.cV,f.l_,N.$z,x.m2,Y.fg,y.rl,y.nJ,y.TL,rt.VT,rt._g,_.DJ,_.sA,_.UI,S.PW,Zo],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return i(),s})();var rs=C(80396);let cs=(()=>{var i;class s{constructor(n,a){this.store=n,this.eclEffects=a,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,j.XT)()),this.eclEffects.setNewAddress.pipe((0,Z.s)(1)).subscribe(n=>{this.newAddress=n,setTimeout(()=>{this.store.dispatch((0,k.xO)({payload:{data:{address:this.newAddress,addressType:"",component:rs.f}}}))},0)})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(ht.B))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-receive"]],standalone:!1,decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.onGenerateAddress()}),t.EFF(3,"Generate Address"),t.k0s()()())},dependencies:[N.$z,_.DJ,_.sA,_.UI],encapsulation:2}))}return i(),s})(),ms=(()=>{var i;class s{constructor(n,a){this.store=n,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.activatedRoute.data.pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.sweepAll=n.sweepAll})}openSendFundsModal(){this.store.dispatch((0,k.xO)({payload:{data:{sweepAll:this.sweepAll,component:jt}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.nX))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-send"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.openSendFundsModal()}),t.EFF(3),t.k0s()()()),2&a&&(t.R7$(3),t.JRh(o.sweepAll?"Sweep All":"Send Funds"))},dependencies:[N.$z,_.DJ,_.sA,_.UI],encapsulation:2}))}return i(),s})();var yt=C(99172),Bt=C(96354),ct=C(22628),ps=C(60092);const us=["form"];function ds(i,s){if(1&i&&(t.j41(0,"mat-option",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function hs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Peer alias is required."),t.k0s())}function fs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Peer not found in the list."),t.k0s())}function _s(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-form-field",6)(1,"mat-label"),t.EFF(2,"Peer Alias"),t.k0s(),t.j41(3,"input",33),t.bIt("change",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.k0s(),t.j41(4,"mat-autocomplete",34,4),t.bIt("optionSelected",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.DNE(6,ds,2,2,"mat-option",35),t.nI1(7,"async"),t.k0s(),t.DNE(8,hs,2,0,"mat-error",20)(9,fs,2,0,"mat-error",20),t.k0s()}if(2&i){const e=t.sdS(5),n=t.XpG();t.R7$(3),t.Y8G("formControl",n.selectedPeer)("matAutocomplete",e),t.R7$(),t.Y8G("displayWith",n.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(7,6,n.filteredPeers)),t.R7$(2),t.Y8G("ngIf",null==n.selectedPeer.errors?null:n.selectedPeer.errors.required),t.R7$(),t.Y8G("ngIf",null==n.selectedPeer.errors?null:n.selectedPeer.errors.notfound)}}function gs(i,s){1&i&&t.eu8(0)}function Cs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function ys(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function bs(i,s){if(1&i&&(t.j41(0,"div",37),t.nrm(1,"fa-icon",38),t.j41(2,"span",39)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",40)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function Fs(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function Es(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.channelConnectionError)}}function xs(i,s){if(1&i&&(t.j41(0,"div",41),t.nrm(1,"fa-icon",38),t.DNE(2,Es,2,1,"span",20),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.channelConnectionError)}}function Ls(i,s){if(1&i&&(t.j41(0,"mat-expansion-panel",43)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t.EFF(4,"Peer: \xa0"),t.k0s(),t.j41(5,"strong",44),t.EFF(6),t.k0s()()(),t.j41(7,"div",13)(8,"div",5)(9,"div",6)(10,"h4",45),t.EFF(11,"Pubkey"),t.k0s(),t.j41(12,"span",46),t.EFF(13),t.k0s()()(),t.nrm(14,"mat-divider",47),t.j41(15,"div",5)(16,"div",48)(17,"h4",45),t.EFF(18,"Address"),t.k0s(),t.j41(19,"span",49),t.EFF(20),t.k0s()(),t.j41(21,"div",48)(22,"h4",45),t.EFF(23,"State"),t.k0s(),t.j41(24,"span",49),t.EFF(25),t.nI1(26,"titlecase"),t.k0s()()()()()),2&i){const e=t.XpG(2);t.R7$(6),t.JRh((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.R7$(7),t.JRh(e.peer.nodeId),t.R7$(7),t.JRh(null==e.peer?null:e.peer.address),t.R7$(5),t.JRh(t.bMT(26,4,null==e.peer?null:e.peer.state))}}function vs(i,s){if(1&i&&t.DNE(0,Ls,27,6,"mat-expansion-panel",42),2&i){const e=t.XpG();t.Y8G("ngIf",e.peer)}}let Mt=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.dialogRef=a,this.data=o,this.store=l,this.actions=m,this.dataService=u,this.selectedPeer=new f.hs,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(o=>{this.selNode=o,this.isPrivate=!!o?.settings.unannouncedChannels}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(o=>o.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||o.type===c.Uu.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===c.wn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===c.Uu.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let n="",a="";this.sortedPeers=this.peers.sort((o,l)=>(n=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",a=l.alias?l.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",na?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,yt.Z)(""),(0,Bt.T)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,Bt.T)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(n){return this.sortedPeers?.filter(a=>0===a.alias?.toLowerCase().indexOf(n?n.toLowerCase():""))}displayFn(n){return n&&n.alias?n.alias:n&&n.nodeId?n.nodeId:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const n=this.peers?.filter(a=>a.alias?.length===this.selectedPeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===n.length&&n[0].nodeId&&(this.selectedPubkey=n[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(n){this.advancedTitle="Advanced Options",n?this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate):this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:a=>{this.recommendedFee=a},error:a=>{this.logger.error(a)}})}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.feeRate&&this.recommendedFee.minimumFee>this.feeRate)return!0;const n={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(n.feeRate=this.feeRate),this.store.dispatch((0,j.vL)({payload:n}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(K.En),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(a,o){if(1&a&&t.GBs(us,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:56,vars:21,consts:[["form","ngForm"],["amount","ngModel"],["fee","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","1","required","","name","amount",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxFlex","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","name","fee","tabindex","7",3,"ngModelChange","step","min","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["type","text","aria-label","Peers","matInput","","tabindex","1","required","",3,"change","formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),t.EFF(5),t.k0s()(),t.j41(6,"button",10),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",11)(9,"form",12,0),t.bIt("submit",function(){return r.eBV(l),r.Njj(o.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(o.resetData())}),t.j41(11,"div",13),t.DNE(12,_s,10,8,"mat-form-field",14),t.k0s(),t.DNE(13,gs,1,0,"ng-container",15),t.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),t.EFF(18,"Amount"),t.k0s(),t.j41(19,"input",18,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.fundingAmount,u)||(o.fundingAmount=u),r.Njj(u)}),t.k0s(),t.j41(21,"mat-hint"),t.EFF(22),t.nI1(23,"number"),t.k0s(),t.j41(24,"span",19),t.EFF(25,"Sats "),t.k0s(),t.DNE(26,Cs,2,0,"mat-error",20)(27,ys,2,1,"mat-error",20),t.k0s(),t.j41(28,"div",21)(29,"mat-slide-toggle",22),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.isPrivate,u)||(o.isPrivate=u),r.Njj(u)}),t.EFF(30,"Private Channel"),t.k0s()()(),t.j41(31,"mat-expansion-panel",23),t.bIt("closed",function(){return r.eBV(l),r.Njj(o.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(o.onAdvancedPanelToggle(!1))}),t.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),t.EFF(35),t.k0s()()(),t.j41(36,"div",24),t.DNE(37,bs,16,6,"div",25),t.j41(38,"div",16)(39,"div",26)(40,"mat-form-field",27)(41,"mat-label"),t.EFF(42,"Fee (Sats/vByte)"),t.k0s(),t.j41(43,"input",28,2),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.feeRate,u)||(o.feeRate=u),r.Njj(u)}),t.k0s(),t.j41(45,"mat-hint"),t.EFF(46),t.k0s(),t.DNE(47,Fs,2,1,"mat-error",20),t.k0s()()()()()(),t.DNE(48,xs,3,2,"div",29),t.j41(49,"div",30)(50,"button",31),t.EFF(51,"Clear Fields"),t.k0s(),t.j41(52,"button",32),t.EFF(53,"Open Channel"),t.k0s()()()()()(),t.DNE(54,vs,1,1,"ng-template",null,3,t.C5r)}if(2&a){const l=t.sdS(20),m=t.sdS(55);t.R7$(5),t.JRh(o.alertTitle),t.R7$(7),t.Y8G("ngIf",!o.peer&&o.peers&&o.peers.length>0),t.R7$(),t.Y8G("ngTemplateOutlet",m),t.R7$(6),t.Y8G("step",1e3)("min",1)("max",o.totalBalance),t.R50("ngModel",o.fundingAmount),t.R7$(3),t.SpI("Remaining: ",t.bMT(23,19,o.totalBalance-(o.fundingAmount?o.fundingAmount:0))),t.R7$(4),t.Y8G("ngIf",null==l.errors?null:l.errors.required),t.R7$(),t.Y8G("ngIf",null==l.errors?null:l.errors.max),t.R7$(2),t.R50("ngModel",o.isPrivate),t.R7$(6),t.JRh(o.advancedTitle),t.R7$(2),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(6),t.Y8G("step",1)("min",o.recommendedFee.minimumFee),t.R50("ngModel",o.feeRate),t.R7$(3),t.SpI("Mempool Min: ",o.recommendedFee.minimumFee," (Sats/vByte)"),t.R7$(),t.Y8G("ngIf",o.feeRate&&o.feeRate{var i;class s{constructor(n,a,o){this.logger=n,this.store=a,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(n=>n.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n instanceof L.gx)).subscribe({next:n=>{this.activeLink=this.links.findIndex(a=>a.link===n.urlAfterRedirects.substring(n.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.numOfOpenChannels=n.channelsStatus&&n.channelsStatus.active&&n.channelsStatus.active.channels?n.channelsStatus.active.channels:0,this.numOfPendingChannels=n.channelsStatus&&n.channelsStatus.pending&&n.channelsStatus.pending.channels?n.channelsStatus.pending.channels:0,this.numOfInactiveChannels=n.channelsStatus&&n.channelsStatus.inactive&&n.channelsStatus.inactive.channels?n.channelsStatus.inactive.channels:0,this.logger.info(n)}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.peers=n.peers}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[5])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,k.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Mt}}}))}onSelectedTabChange(n){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[n.index].link)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channels-tables"]],standalone:!1,decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.onOpenChannel()}),t.EFF(3,"Open Channel"),t.k0s()(),t.j41(4,"div",3)(5,"mat-tab-group",4),t.mxI("selectedIndexChange",function(m){return t.DH7(o.activeLink,m)||(o.activeLink=m),m}),t.bIt("selectedTabChange",function(m){return o.onSelectedTabChange(m)}),t.j41(6,"mat-tab"),t.DNE(7,Ss,2,2,"ng-template",5),t.k0s(),t.j41(8,"mat-tab"),t.DNE(9,Rs,2,2,"ng-template",5),t.k0s(),t.j41(10,"mat-tab"),t.DNE(11,ks,2,2,"ng-template",5),t.k0s()(),t.j41(12,"div",6),t.nrm(13,"router-outlet"),t.k0s()()()),2&a&&(t.R7$(5),t.R50("selectedIndex",o.activeLink))},dependencies:[N.$z,_.DJ,_.sA,_.UI,Dt.k,G.ES,G.mq,G.T8,L.n3],encapsulation:2}))}return i(),s})();const Ts=i=>({"xs-scroll-y":i}),ws=(i,s)=>({"mt-2":i,"mt-1":s});function js(i,s){if(1&i&&(t.j41(0,"div",12)(1,"h4",13),t.EFF(2,"Short Channel ID"),t.k0s(),t.j41(3,"span",14),t.EFF(4),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.JRh(e.channel.shortChannelId)}}function Ds(i,s){if(1&i&&(t.j41(0,"div",12)(1,"h4",13),t.EFF(2,"State"),t.k0s(),t.j41(3,"span",17),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.JRh(t.bMT(5,1,e.channel.state))}}function Gs(i,s){if(1&i&&(t.j41(0,"div")(1,"div",10)(2,"div",12)(3,"h4",13),t.EFF(4,"Local Balance (Sats)"),t.k0s(),t.j41(5,"span",17),t.EFF(6),t.nI1(7,"number"),t.k0s()(),t.j41(8,"div",12)(9,"h4",13),t.EFF(10,"Remote Balance (Sats)"),t.k0s(),t.j41(11,"span",17),t.EFF(12),t.nI1(13,"number"),t.k0s()()(),t.nrm(14,"mat-divider",15),t.j41(15,"div",10)(16,"div",12)(17,"h4",13),t.EFF(18,"Base Fee (mSats)"),t.k0s(),t.j41(19,"span",17),t.EFF(20),t.nI1(21,"number"),t.k0s()(),t.j41(22,"div",12)(23,"h4",13),t.EFF(24,"Fee Rate (mili mSats)"),t.k0s(),t.j41(25,"span",17),t.EFF(26),t.nI1(27,"number"),t.k0s()()(),t.nrm(28,"mat-divider",15),t.k0s()),2&i){const e=t.XpG();t.R7$(6),t.JRh(t.bMT(7,6,e.channel.toLocal)),t.R7$(6),t.JRh(t.bMT(13,8,e.channel.toRemote)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.bMT(21,10,e.channel.feeBaseMsat)),t.R7$(6),t.JRh(t.bMT(27,12,e.channel.feeProportionalMillionths)),t.R7$(2),t.Y8G("inset",!0)}}function Ps(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Show Advanced"),t.k0s())}function As(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Hide Advanced"),t.k0s())}function Ns(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",23),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onShowAdvanced())}),t.DNE(1,Ps,2,0,"p",24)(2,As,2,0,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.sdS(3),n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.showAdvanced)("ngIfElse",e)}}function Bs(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",25),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onCopyChanID(a))}),t.EFF(1,"Copy Short Channel ID"),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("payload",e.channel.shortChannelId)}}function Ms(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",26),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onCopyChanID(a))}),t.EFF(1,"Copy Channel ID"),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("payload",e.channel.channelId)}}let bt=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.dialogRef=n,this.data=a,this.logger=o,this.commonService=l,this.snackBar=m,this.router=u,this.faReceipt=E.Mf0,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(n){this.snackBar.open("open"===this.channelsType?"Short channel ID "+n+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+n)}onGoToLink(n,a){this.router.navigateByUrl("/ecl/graph/lookups",{state:{lookupType:n,lookupValue:a}}),this.onClose()}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(A.gP),t.rXU($.h),t.rXU(At.UG),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-information"]],standalone:!1,decls:59,vars:27,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","1","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","2","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","4","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","4","type","submit","rtlClipboard","",3,"copied","payload"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),t.nrm(4,"fa-icon",5),t.j41(5,"span",6),t.EFF(6,"Channel Information"),t.k0s()(),t.j41(7,"button",7),t.bIt("click",function(){return o.onClose()}),t.EFF(8,"X"),t.k0s()(),t.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10),t.DNE(12,js,5,1,"div",11),t.j41(13,"div",12)(14,"h4",13),t.EFF(15,"Peer Alias"),t.k0s(),t.j41(16,"span",14),t.EFF(17),t.k0s()(),t.DNE(18,Ds,6,3,"div",11),t.k0s(),t.nrm(19,"mat-divider",15),t.j41(20,"div",10)(21,"div",2)(22,"h4",13),t.EFF(23,"Channel ID"),t.k0s(),t.j41(24,"span",14),t.EFF(25),t.k0s()()(),t.nrm(26,"mat-divider",15),t.j41(27,"div",10)(28,"div",2)(29,"h4",13),t.EFF(30,"Peer Public Key"),t.k0s(),t.j41(31,"span",16),t.bIt("click",function(){return o.onGoToLink("0",o.channel.nodeId)}),t.EFF(32),t.k0s()()(),t.nrm(33,"mat-divider",15),t.j41(34,"div",10)(35,"div",2)(36,"h4",13),t.EFF(37,"State"),t.k0s(),t.j41(38,"span",17),t.EFF(39),t.nI1(40,"titlecase"),t.k0s()()(),t.nrm(41,"mat-divider",15),t.j41(42,"div",10)(43,"div",12)(44,"h4",13),t.EFF(45,"Private"),t.k0s(),t.j41(46,"span",17),t.EFF(47),t.k0s()(),t.j41(48,"div",12)(49,"h4",13),t.EFF(50,"Initiator"),t.k0s(),t.j41(51,"span",17),t.EFF(52),t.k0s()()(),t.nrm(53,"mat-divider",15),t.DNE(54,Gs,29,14,"div",18),t.j41(55,"div",19),t.DNE(56,Ns,4,2,"button",20)(57,Bs,2,1,"button",21)(58,Ms,2,1,"button",22),t.k0s()()()()()),2&a&&(t.R7$(4),t.Y8G("icon",o.faReceipt),t.R7$(5),t.Y8G("ngClass",t.eq3(22,Ts,o.screenSize===o.screenSizeEnum.XS)),t.R7$(3),t.Y8G("ngIf","open"===o.channelsType),t.R7$(5),t.JRh(o.channel.alias),t.R7$(),t.Y8G("ngIf","open"!==o.channelsType),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(o.channel.channelId),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.SpI(" ",o.channel.nodeId," "),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.bMT(40,20,o.channel.state)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(o.channel.announceChannel?"No":"Yes"),t.R7$(5),t.JRh(o.channel.isInitiator?"Yes":"No"),t.R7$(),t.Y8G("inset",!0),t.R7$(),t.Y8G("ngIf",o.showAdvanced&&"open"===o.channelsType),t.R7$(),t.Y8G("ngClass",t.l_i(24,ws,!o.showAdvanced,o.showAdvanced)),t.R7$(),t.Y8G("ngIf","open"===o.channelsType),t.R7$(),t.Y8G("ngIf","open"===o.channelsType),t.R7$(),t.Y8G("ngIf","open"!==o.channelsType))},dependencies:[d.YU,d.bT,D.aY,N.$z,x.m2,x.MM,tt.q,_.DJ,_.sA,_.UI,S.PW,Q.oV,Nt.U,et.N,d.QX,d.PV],encapsulation:2}))}return i(),s})();var Ft=C(7673),Et=C(1001),$s=C(16949);const ot=(i,s)=>({"small-svg":i,"large-svg":s});function Vs(i,s){1&i&&t.eu8(0)}function Os(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",6),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",7),t.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.k0s(),r.joV(),t.j41(41,"div",47)(42,"mat-card-title"),t.EFF(43,"Circular rebalancing explained."),t.k0s()(),t.j41(44,"div",48)(45,"mat-card-subtitle",49),t.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Hs(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",51),t.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),t.j41(65,"defs")(66,"linearGradient",90),t.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),t.k0s(),t.j41(70,"linearGradient",94),t.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),t.k0s(),t.j41(74,"linearGradient",95),t.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),t.k0s(),t.j41(78,"linearGradient",96),t.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),t.k0s(),t.j41(82,"linearGradient",97),t.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),t.k0s(),t.j41(86,"linearGradient",98),t.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),t.k0s()()(),r.joV(),t.j41(90,"div",47)(91,"mat-card-title"),t.EFF(92,"Step 1: Unbalanced channel"),t.k0s()(),t.j41(93,"div",48)(94,"mat-card-subtitle",49),t.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ys(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",99),t.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),t.j41(49,"defs")(50,"linearGradient",137),t.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),t.k0s(),t.j41(54,"linearGradient",138),t.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),t.k0s(),t.j41(58,"linearGradient",139),t.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),t.k0s()()(),r.joV(),t.j41(62,"div",47)(63,"mat-card-title"),t.EFF(64,"Step 2: Invoice/Payment"),t.k0s()(),t.j41(65,"div",48)(66,"mat-card-subtitle",49),t.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Xs(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",140),t.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),t.j41(42,"defs")(43,"linearGradient",180),t.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),t.k0s()()(),r.joV(),t.j41(47,"div",47)(48,"mat-card-title"),t.EFF(49,"Step 3: Rebalance amount"),t.k0s()(),t.j41(50,"div",48)(51,"mat-card-subtitle",49),t.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Us(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",140),t.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),t.j41(41,"defs")(42,"linearGradient",199),t.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),t.k0s()()(),r.joV(),t.j41(46,"div",47)(47,"mat-card-title"),t.EFF(48,"Rebalance successful!"),t.k0s()(),t.j41(49,"div",48)(50,"mat-card-subtitle",49),t.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let zs=(()=>{var i;class s{constructor(n){this.commonService=n,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.bkB,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(n){2===n.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===n.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(a,o){if(1&a&&t.DNE(0,Vs,1,0,"ng-container",5)(1,Os,47,5,"ng-template",null,0,t.C5r)(3,Hs,96,5,"ng-template",null,1,t.C5r)(5,Ys,68,5,"ng-template",null,2,t.C5r)(7,Xs,53,5,"ng-template",null,3,t.C5r)(9,Us,52,5,"ng-template",null,4,t.C5r),2&a){const l=t.sdS(2),m=t.sdS(4),u=t.sdS(6),T=t.sdS(8),F=t.sdS(10);t.Y8G("ngTemplateOutlet",1===o.stepNumber?l:2===o.stepNumber?m:3===o.stepNumber?u:4===o.stepNumber?T:F)}},dependencies:[d.YU,d.T3,x.Lc,x.dh,_.DJ,_.sA,_.UI,S.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[$s.k]}}))}return i(),s})();const Js=["stepper"],qs=()=>[1,2,3,4,5],Qs=(i,s)=>({"dot-primary":i,"dot-primary-lighter":s});function Zs(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG(2);t.JRh(e.inputFormLabel)}}function Ws(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function Ks(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount must be a positive number."),t.k0s())}function tl(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.toLocal,".")}}function el(i,s){if(1&i&&(t.j41(0,"mat-option",50),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.Lme("",e.alias," - ",e.shortChannelId)}}function nl(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Receive from Peer is required."),t.k0s())}function il(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Receive from Peer not found in the list."),t.k0s())}function al(i,s){1&i&&t.EFF(0,"Status")}function ol(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function sl(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(""!==e.rebalanceStatus.invoice?"check":"close")}}function ll(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function rl(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.rebalanceStatus.paymentRoute?"check":"close")}}function cl(i,s){if(1&i&&(t.j41(0,"span",42),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",e," ")}}function ml(i,s){if(1&i&&(t.j41(0,"div",7),t.DNE(1,cl,2,1,"span",53),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.rebalanceStatus.paymentRoute.split(","))}}function pl(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function ul(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(!e.rebalanceStatus.paymentStatus||null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"close":"check")}}function dl(i,s){1&i&&t.nrm(0,"div",7)}function hl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",54),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onRestart())}),t.EFF(1,"Start Again"),t.k0s()}}function fl(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),t.EFF(5,"Channel Rebalance"),t.k0s()(),t.j41(6,"div",12)(7,"button",13),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.showInfo())}),t.EFF(8,"?"),t.k0s(),t.j41(9,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onClose())}),t.EFF(10,"X"),t.k0s()()()(),t.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),t.nrm(15,"fa-icon",18),t.j41(16,"span"),t.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.k0s()()(),t.j41(18,"div",19)(19,"p",20)(20,"strong"),t.EFF(21,"Channel Peer:\xa0"),t.k0s(),t.EFF(22),t.nI1(23,"titlecase"),t.k0s(),t.j41(24,"p",20)(25,"strong"),t.EFF(26,"Channel ID:\xa0"),t.k0s(),t.EFF(27),t.k0s()(),t.j41(28,"mat-vertical-stepper",21,3)(30,"mat-step",22)(31,"form",23),t.DNE(32,Zs,1,1,"ng-template",24),t.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),t.EFF(36,"Amount"),t.k0s(),t.nrm(37,"input",27),t.j41(38,"mat-hint"),t.EFF(39),t.k0s(),t.j41(40,"span",28),t.EFF(41,"Sats"),t.k0s(),t.DNE(42,Ws,2,0,"mat-error",29)(43,Ks,2,0,"mat-error",29)(44,tl,2,1,"mat-error",29),t.k0s(),t.j41(45,"mat-form-field",30)(46,"mat-label"),t.EFF(47,"Receive from Peer"),t.k0s(),t.j41(48,"input",31),t.bIt("change",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.k0s(),t.j41(49,"mat-autocomplete",32,4),t.bIt("optionSelected",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.DNE(51,el,2,3,"mat-option",33),t.nI1(52,"async"),t.k0s(),t.DNE(53,nl,2,0,"mat-error",29)(54,il,2,0,"mat-error",29),t.k0s()(),t.j41(55,"div",34)(56,"button",35),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onRebalance())}),t.EFF(57,"Rebalance"),t.k0s()()()(),t.j41(58,"mat-step",36)(59,"form",23),t.DNE(60,al,1,0,"ng-template",24),t.j41(61,"div",37),t.DNE(62,ol,1,0,"mat-progress-bar",38),t.j41(63,"mat-expansion-panel",39)(64,"mat-expansion-panel-header")(65,"mat-panel-title")(66,"span",40),t.EFF(67),t.DNE(68,sl,2,1,"mat-icon",41),t.k0s()()(),t.j41(69,"div",7)(70,"span",42),t.EFF(71),t.k0s()()(),t.DNE(72,ll,1,0,"mat-progress-bar",38),t.j41(73,"mat-expansion-panel",39)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",40),t.EFF(77),t.DNE(78,rl,2,1,"mat-icon",41),t.k0s()()(),t.DNE(79,ml,2,1,"div",5),t.k0s(),t.DNE(80,pl,1,0,"mat-progress-bar",38),t.j41(81,"mat-expansion-panel",43)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",40),t.EFF(85),t.DNE(86,ul,2,1,"mat-icon",41),t.k0s()()(),t.DNE(87,dl,1,0,"div",44),t.k0s()(),t.j41(88,"h4",45),t.EFF(89),t.k0s(),t.j41(90,"div",46),t.DNE(91,hl,2,0,"button",47),t.k0s()()()(),t.j41(92,"div",48)(93,"button",49),t.EFF(94,"Close"),t.k0s()()()()()}if(2&i){const e=t.sdS(50),n=t.XpG(),a=t.sdS(2);t.Y8G("@opacityAnimation",void 0),t.R7$(15),t.Y8G("icon",n.faInfoCircle),t.R7$(7),t.JRh(t.bMT(23,38,n.selChannel.alias)),t.R7$(5),t.JRh(n.selChannel.shortChannelId),t.R7$(),t.Y8G("linear",!0),t.R7$(2),t.Y8G("stepControl",n.inputFormGroup)("editable",n.flgEditable),t.R7$(),t.Y8G("formGroup",n.inputFormGroup),t.R7$(6),t.Y8G("step",100),t.R7$(2),t.Lme("(Local Bal: ",null==n.selChannel?null:n.selChannel.toLocal,", Remaining: ",(null==n.selChannel?null:n.selChannel.toLocal)-(n.inputFormGroup.controls.rebalanceAmount.value?n.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.R7$(3),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.required),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.min),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.max),t.R7$(4),t.Y8G("matAutocomplete",e),t.R7$(),t.Y8G("displayWith",n.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(52,40,n.filteredActiveChannels)),t.R7$(2),t.Y8G("ngIf",null==n.inputFormGroup.controls.selRebalancePeer.errors?null:n.inputFormGroup.controls.selRebalancePeer.errors.required),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.selRebalancePeer.errors?null:n.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.R7$(4),t.Y8G("stepControl",n.statusFormGroup),t.R7$(),t.Y8G("formGroup",n.statusFormGroup),t.R7$(3),t.Y8G("ngIf",""===n.rebalanceStatus.invoice),t.R7$(5),t.JRh(""===n.rebalanceStatus.invoice?"Searching invoice...":n.rebalanceStatus.flgReusingInvoice?"Invoice re-used":"Invoice generated"),t.R7$(),t.Y8G("ngIf",""!==n.rebalanceStatus.invoice),t.R7$(3),t.JRh(n.rebalanceStatus.invoice),t.R7$(),t.Y8G("ngIf",!(null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error||n.rebalanceStatus.paymentRoute||"pending"===(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type))),t.R7$(5),t.JRh(null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Route failed":n.rebalanceStatus.paymentRoute?"Route used":"Searching route..."),t.R7$(),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus),t.R7$(),t.Y8G("ngIf",""!==n.rebalanceStatus.paymentRoute),t.R7$(),t.Y8G("ngIf",!n.rebalanceStatus.paymentStatus),t.R7$(),t.Y8G("expanded",!!n.rebalanceStatus.paymentStatus),t.R7$(4),t.JRh(n.rebalanceStatus.paymentStatus&&"pending"!==(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)?null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Payment failed":"sent"===(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)?"Payment successful":"":"Payment status pending..."),t.R7$(),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus&&"pending"!==(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)),t.R7$(),t.Y8G("ngIf",!n.rebalanceStatus.paymentStatus)("ngIfElse",a),t.R7$(2),t.JRh(n.rebalanceStatus.paymentStatus?n.rebalanceStatus.paymentStatus&&null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Rebalance Failed.":"Rebalance Successful.":""),t.R7$(2),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error),t.R7$(2),t.Y8G("mat-dialog-close",!1)}}function _l(i,s){1&i&&t.eu8(0)}function gl(i,s){if(1&i&&t.DNE(0,_l,1,0,"ng-container",55),2&i){const e=t.XpG(),n=t.sdS(4),a=t.sdS(6);t.Y8G("ngTemplateOutlet",e.rebalanceStatus.paymentStatus.error?n:a)}}function Cl(i,s){if(1&i&&(t.j41(0,"div",7)(1,"span",42),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.SpI("Error: ",e.rebalanceStatus.paymentStatus.error)}}function yl(i,s){if(1&i&&(t.j41(0,"div",7)(1,"div",56)(2,"div",57)(3,"h4",58),t.EFF(4,"Total Fees (Sats)"),t.k0s(),t.j41(5,"span",42),t.EFF(6),t.k0s()(),t.j41(7,"div",57)(8,"h4",58),t.EFF(9,"Number of Hops"),t.k0s(),t.j41(10,"span",42),t.EFF(11),t.k0s()()(),t.nrm(12,"mat-divider",59),t.j41(13,"div",56)(14,"div",60)(15,"h4",58),t.EFF(16,"Payment Hash"),t.k0s(),t.j41(17,"span",42),t.EFF(18),t.k0s()()(),t.nrm(19,"mat-divider",59),t.j41(20,"div",56)(21,"div",60)(22,"h4",58),t.EFF(23,"Payment ID"),t.k0s(),t.j41(24,"span",42),t.EFF(25),t.k0s()()(),t.nrm(26,"mat-divider",59),t.j41(27,"div",56)(28,"div",60)(29,"h4",58),t.EFF(30,"Parent ID"),t.k0s(),t.j41(31,"span",42),t.EFF(32),t.k0s()()()()),2&i){let e;const n=t.XpG();t.R7$(6),t.JRh(n.rebalanceStatus.paymentStatus.feesPaid?n.rebalanceStatus.paymentStatus.feesPaid/1e3:0),t.R7$(5),t.JRh(n.rebalanceStatus.paymentRoute&&""!==n.rebalanceStatus.paymentRoute?null==(e=n.rebalanceStatus.paymentRoute.split(","))?null:e.length:0),t.R7$(7),t.JRh(n.rebalanceStatus.paymentHash),t.R7$(7),t.JRh(n.rebalanceStatus.paymentDetails.paymentId),t.R7$(7),t.JRh(n.rebalanceStatus.paymentDetails.parentId)}}function bl(i,s){if(1&i){const e=t.RV6();t.j41(0,"span",76),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onStepChanged(a))}),t.nrm(1,"p",77),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.l_i(1,Qs,n.stepNumber===e,n.stepNumber!==e))}}function Fl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",78),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(4))}),t.EFF(1,"Back"),t.k0s()}}function El(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",79),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(1,"Close"),t.k0s()}}function xl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",80),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(1,"Close"),t.k0s()}}function Ll(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",81),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(a.stepNumber-1))}),t.EFF(1,"Back"),t.k0s()}}function vl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",82),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(a.stepNumber+1))}),t.EFF(1,"Next"),t.k0s()}}function Sl(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",61)(1,"div",62)(2,"mat-card-header",63)(3,"div",64),t.nrm(4,"span",11),t.k0s(),t.j41(5,"div",65)(6,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(7,"X"),t.k0s()()(),t.j41(8,"mat-card-content",66)(9,"rtl-ecl-channel-rebalance-infographics",67),t.mxI("stepNumberChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.stepNumber,a)||(o.stepNumber=a),r.Njj(a)}),t.k0s()(),t.j41(10,"div",68),t.DNE(11,bl,2,4,"span",69),t.k0s(),t.j41(12,"div",70),t.DNE(13,Fl,2,0,"button",71)(14,El,2,0,"button",72)(15,xl,2,0,"button",73)(16,Ll,2,0,"button",74)(17,vl,2,0,"button",75),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@opacityAnimation",void 0),t.R7$(9),t.Y8G("animationDirection",e.animationDirection),t.R50("stepNumber",e.stepNumber),t.R7$(2),t.Y8G("ngForOf",t.lJ4(9,qs)),t.R7$(2),t.Y8G("ngIf",5===e.stepNumber),t.R7$(),t.Y8G("ngIf",5===e.stepNumber),t.R7$(),t.Y8G("ngIf",e.stepNumber<5),t.R7$(),t.Y8G("ngIf",e.stepNumber>1&&e.stepNumber<5),t.R7$(),t.Y8G("ngIf",e.stepNumber<5)}}let Rl=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.data=a,this.logger=o,this.dataService=l,this.formBuilder=m,this.store=u,this.decimalPipe=T,this.faInfoCircle=E.iW_,this.information={},this.selChannel={},this.activeChannels=[],this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.inputFormLabel="Amount to rebalance",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.animationDirection="forward",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){let n="",a="";this.information=this.data.message?.information||{},this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(o=>o.channelId!==this.selChannel.channelId&&o.toRemote&&o.toRemote>0)||[],this.activeChannels=this.activeChannels.sort((o,l)=>(n=o.alias?o.alias.toLowerCase():o.shortChannelId?o.shortChannelId.toLowerCase():"",a=l.alias?l.alias.toLowerCase():o.shortChannelId?o.shortChannelId.toLowerCase():"",na?1:0)),this.inputFormGroup=this.formBuilder.group({rebalanceAmount:["",[f.k0.required,f.k0.min(1),f.k0.max(this.selChannel.toLocal||0)]],selRebalancePeer:[null,f.k0.required]}),this.statusFormGroup=this.formBuilder.group({}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,g.Q)(this.unSubs[0]),(0,yt.Z)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ft.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,g.Q)(this.unSubs[1]),(0,yt.Z)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ft.of)(this.filterActiveChannels()))})}stepSelectionChanged(n){switch(n.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.alias?this.inputFormGroup.controls.selRebalancePeer.value.alias:this.inputFormGroup.controls.selRebalancePeer.value.nodeId.substring(0,15)+"..."):"Amount to rebalance"}}onRebalance(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.selChannel.toLocal&&this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.toLocal||!this.inputFormGroup.controls.selRebalancePeer.value.nodeId)return this.inputFormGroup.controls.selRebalancePeer.value.nodeId||this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0;this.stepper.next(),this.flgEditable=!1,this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.dataService.circularRebalance(1e3*this.inputFormGroup.controls.rebalanceAmount.value,this.selChannel.shortChannelId,this.selChannel.nodeId,this.inputFormGroup.controls.selRebalancePeer.value.shortChannelId,this.inputFormGroup.controls.selRebalancePeer.value.nodeId,[this.information.nodeId||""]).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:n=>{this.logger.info(n),this.rebalanceStatus=n,this.flgEditable=!0,this.store.dispatch((0,j.$Q)())},error:n=>{this.logger.error(n),this.rebalanceStatus=n,this.flgEditable=!0}})}filterActiveChannels(){return this.activeChannels?.filter(n=>n.toRemote&&n.toRemote>=this.inputFormGroup.controls.rebalanceAmount.value&&n.channelId!==this.selChannel.channelId&&(0===n.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===n.channelId?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const n=this.activeChannels?.filter(a=>a.alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));n&&n.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(n[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(n){return n&&n.alias?n.alias:n&&n.shortChannelId?n.shortChannelId:""}showInfo(){this.flgShowInfo=!0}onStepChanged(n){this.animationDirection=n{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(A.gP),t.rXU(nt.u),t.rXU(f.ok),t.rXU(I.il),t.rXU(d.QX))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-rebalance"]],viewQuery:function(a,o){if(1&a&&t.GBs(Js,5),2&a){let l;t.mGM(l=t.lsd())&&(o.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],["fxFlex","100","color","primary","mode","indeterminate"],[1,"ml-1","icon-small"],["class","foreground-secondary-text",4,"ngFor","ngForOf"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(a,o){1&a&&t.DNE(0,fl,95,42,"div",5)(1,gl,1,1,"ng-template",null,0,t.C5r)(3,Cl,3,1,"ng-template",null,1,t.C5r)(5,yl,33,5,"ng-template",null,2,t.C5r)(7,Sl,18,10,"div",6),2&a&&(t.Y8G("ngIf",!o.flgShowInfo),t.R7$(7),t.Y8G("ngIf",o.flgShowInfo))},dependencies:[d.YU,d.Sq,d.bT,d.T3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.j4,f.JD,D.aY,V.tx,N.$z,x.m2,x.MM,U.GK,U.Z2,U.WN,ut.An,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,tt.q,H.HM,_.DJ,_.sA,_.UI,S.PW,z.wT,at.V5,at.Ti,at.M6,ct.$3,ct.pN,et.N,zs,d.Jj,d.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[Et.C]}}))}return i(),s})();const kl=()=>["all"],Il=i=>({"error-border":i}),Tl=()=>["no_peer"],xt=i=>({width:i}),wl=i=>({"display-none":i});function jl(i,s){if(1&i&&(t.j41(0,"mat-option",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Dl(i,s){1&i&&t.nrm(0,"mat-progress-bar",37)}function Gl(i,s){1&i&&t.nrm(0,"th",38)}function Pl(i,s){if(1&i&&(t.j41(0,"span",42),t.nrm(1,"fa-icon",43),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function Al(i,s){if(1&i&&(t.j41(0,"span",44),t.nrm(1,"fa-icon",43),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function Nl(i,s){if(1&i&&(t.j41(0,"td",39),t.DNE(1,Pl,2,1,"span",40)(2,Al,2,1,"span",41),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!(null!=e&&e.announceChannel)),t.R7$(),t.Y8G("ngIf",null==e?null:e.announceChannel)}}function Bl(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Short Channel ID"),t.k0s())}function Ml(i,s){if(1&i&&(t.j41(0,"td",39),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.shortChannelId)}}function $l(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Channel ID"),t.k0s())}function Vl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ol(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Alias"),t.k0s())}function Hl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function Yl(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Node ID"),t.k0s())}function Xl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Ul(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Initiator"),t.k0s())}function zl(i,s){if(1&i&&(t.j41(0,"td",39),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function Jl(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Base Fee (mSats)"),t.k0s())}function ql(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function Ql(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Fee Rate (mili mSats)"),t.k0s())}function Zl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function Wl(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function Kl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function tr(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function er(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function nr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Balance Score"),t.k0s())}function ir(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",50)(2,"mat-hint",51),t.EFF(3),t.nI1(4,"number"),t.k0s()(),t.nrm(5,"mat-progress-bar",52),t.k0s()),2&i){const e=s.$implicit;t.R7$(3),t.JRh(t.bMT(4,3,(null==e?null:e.balancedness)||0)),t.R7$(2),t.Y8G("value",t.mNQ(null!=e&&e.toLocal&&(null==e?null:e.toLocal)>0?+(null==e?null:e.toLocal)/(+(null==e?null:e.toLocal)+ +(null==e?null:e.toRemote))*100:0))}}function ar(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",53)(1,"div",54)(2,"mat-select",55),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",56),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onChannelUpdate("all"))}),t.EFF(5,"Update Fee Policy"),t.k0s(),t.j41(6,"mat-option",56),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(7,"Download CSV"),t.k0s()()()()}}function or(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",57)(1,"div",54)(2,"mat-select",58),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",56),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelUpdate(a))}),t.EFF(7,"Update Fee Policy"),t.k0s(),t.j41(8,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onCircularRebalance(a))}),t.EFF(9,"Circular Rebalance"),t.k0s(),t.j41(10,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!1))}),t.EFF(11,"Close Channel"),t.k0s(),t.j41(12,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!0))}),t.EFF(13,"Force Close"),t.k0s()()()()}}function sr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No peers connected. Add a peer in order to open a channel."),t.k0s())}function lr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No channel available."),t.k0s())}function rr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting channels..."),t.k0s())}function cr(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function mr(i,s){if(1&i&&(t.j41(0,"td",59),t.DNE(1,sr,2,0,"p",60)(2,lr,2,0,"p",60)(3,rr,2,0,"p",60)(4,cr,2,1,"p",60),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function pr(i,s){if(1&i&&t.nrm(0,"tr",61),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,wl,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function ur(i,s){1&i&&t.nrm(0,"tr",62)}function dr(i,s){1&i&&t.nrm(0,"tr",63)}let hr=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=l,this.router=m,this.camelCaseWithSpaces=u,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=n.activeChannels,this.activeChannels&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onCircularRebalance(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{channels:this.activeChannels,selChannel:n,information:this.information},component:Rl}}}))}onChannelUpdate(n){"all"!==n&&n?.state&&"NORMAL"!==n?.state||(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"string"==typeof n&&"all"===n?"Update fee policy for all channels":"Update fee policy for Channel: "+(n?.alias||n?.shortChannelId?n?.alias&&n?.shortChannelId?n?.alias+" ("+n?.shortChannelId+")":n?.alias?n?.alias:n?.shortChannelId:n?.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:c.UN.NUMBER,inputValue:n&&typeof n?.feeBaseMsat<"u"?n?.feeBaseMsat:1e3,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:c.UN.NUMBER,inputValue:n&&typeof n?.feeProportionalMillionths<"u"?n?.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(l=>{if(l){const m=l[0].inputValue,u=l[1].inputValue;let T=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let F="";"all"===n?(this.activeChannels.forEach(P=>{F=F+","+P.nodeId}),F=F.substring(1),T={baseFeeMsat:m,feeRate:u,nodeIds:F}):T={baseFeeMsat:m,feeRate:u,nodeId:n?.nodeId}}else{let F="";"all"===n?(this.activeChannels.forEach(P=>{F=F+","+P.channelId}),F=F.substring(1),T={baseFeeMsat:m,feeRate:u,channelIds:F}):T={baseFeeMsat:m,feeRate:u,channelId:n?.channelId}}this.store.dispatch((0,j.fy)({payload:T}))}}),this.applyFilter())}percentHintFunction(n){return(n/1e4).toString()+"%"}onChannelClose(n,a){this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId):"Closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[6])).subscribe(u=>{u&&this.store.dispatch((0,j.w0)({payload:{channelId:n.channelId,force:a}}))})}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"open",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU($.h),t.rXU(L.Ix),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:60,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,jl,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,Dl,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,Gl,1,0,"th",13)(20,Nl,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,Bl,2,0,"th",16)(23,Ml,2,1,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,$l,2,0,"th",16)(26,Vl,4,4,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,Ol,2,0,"th",16)(29,Hl,4,4,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,Yl,2,0,"th",16)(32,Xl,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,Ul,2,0,"th",16)(35,zl,2,1,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,Jl,2,0,"th",22)(38,ql,4,4,"td",14),t.bVm(),t.qex(39,23),t.DNE(40,Ql,2,0,"th",22)(41,Zl,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,Wl,2,0,"th",22)(44,Kl,4,4,"td",14),t.bVm(),t.qex(45,25),t.DNE(46,tr,2,0,"th",22)(47,er,4,4,"td",14),t.bVm(),t.qex(48,26),t.DNE(49,nr,2,0,"th",16)(50,ir,6,5,"td",14),t.bVm(),t.qex(51,27),t.DNE(52,ar,8,0,"th",28)(53,or,14,0,"td",29),t.bVm(),t.qex(54,30),t.DNE(55,mr,5,4,"td",31),t.bVm(),t.DNE(56,pr,1,3,"tr",32)(57,ur,1,0,"tr",33)(58,dr,1,0,"tr",34),t.k0s()(),t.nrm(59,"mat-paginator",35),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,kl).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,Il,""!==o.errorMessage)),t.R7$(40),t.Y8G("matFooterRowDef",t.lJ4(17,Tl)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,Y.fg,y.rl,y.nJ,y.MV,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return i(),s})();const fr=()=>["all"],_r=i=>({"error-border":i}),gr=()=>["no_channel"],$t=i=>({width:i}),Cr=i=>({"display-none":i});function yr(i,s){if(1&i&&(t.j41(0,"mat-option",33),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function br(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Fr(i,s){1&i&&t.nrm(0,"th",35)}function Er(i,s){if(1&i&&(t.j41(0,"span",39),t.nrm(1,"fa-icon",40),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function xr(i,s){if(1&i&&(t.j41(0,"span",41),t.nrm(1,"fa-icon",40),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function Lr(i,s){if(1&i&&(t.j41(0,"td",36),t.DNE(1,Er,2,1,"span",37)(2,xr,2,1,"span",38),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!(null!=e&&e.announceChannel)),t.R7$(),t.Y8G("ngIf",null==e?null:e.announceChannel)}}function vr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"State"),t.k0s())}function Sr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.state))}}function Rr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Channel ID"),t.k0s())}function kr(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",43)(2,"span",44),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,$t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ir(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Alias"),t.k0s())}function Tr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.alias)}}function wr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Node ID"),t.k0s())}function jr(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",43)(2,"span",44),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,$t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Dr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Initiator"),t.k0s())}function Gr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function Pr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function Ar(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",46),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Nr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function Br(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",46),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Mr(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",50),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function $r(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",51)(1,"button",52),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function Vr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No pending channel available."),t.k0s())}function Or(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting pending channels..."),t.k0s())}function Hr(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function Yr(i,s){if(1&i&&(t.j41(0,"td",53),t.DNE(1,Vr,2,0,"p",54)(2,Or,2,0,"p",54)(3,Hr,2,1,"p",54),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Xr(i,s){if(1&i&&t.nrm(0,"tr",55),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Cr,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Ur(i,s){1&i&&t.nrm(0,"tr",56)}function zr(i,s){1&i&&t.nrm(0,"tr",57)}let Jr=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.store=a,this.commonService=o,this.camelCaseWithSpaces=l,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=n.pendingChannels,this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"pending",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:51,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,yr,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,br,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,Fr,1,0,"th",13)(20,Lr,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,vr,2,0,"th",16)(23,Sr,3,3,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,Rr,2,0,"th",16)(26,kr,4,4,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,Ir,2,0,"th",16)(29,Tr,2,1,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,wr,2,0,"th",16)(32,jr,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,Dr,2,0,"th",16)(35,Gr,2,1,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,Pr,2,0,"th",22)(38,Ar,4,4,"td",14),t.bVm(),t.qex(39,23),t.DNE(40,Nr,2,0,"th",22)(41,Br,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,Mr,6,0,"th",25)(44,$r,3,0,"td",26),t.bVm(),t.qex(45,27),t.DNE(46,Yr,4,3,"td",28),t.bVm(),t.DNE(47,Xr,1,3,"tr",29)(48,Ur,1,0,"tr",30)(49,zr,1,0,"tr",31),t.k0s()(),t.nrm(50,"mat-paginator",32),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,fr).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,_r,""!==o.errorMessage)),t.R7$(31),t.Y8G("matFooterRowDef",t.lJ4(17,gr)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.PV],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const qr=()=>["all"],Qr=i=>({"error-border":i}),Zr=()=>["no_peer"],Vt=i=>({"mr-0":i}),Ot=i=>({width:i}),Wr=i=>({"display-none":i});function Kr(i,s){if(1&i&&(t.j41(0,"mat-option",35),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function t1(i,s){1&i&&t.nrm(0,"mat-progress-bar",36)}function e1(i,s){1&i&&t.nrm(0,"th",37)}function n1(i,s){if(1&i&&t.nrm(0,"span",41),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Vt,e.screenSize===e.screenSizeEnum.XS))}}function i1(i,s){if(1&i&&t.nrm(0,"span",42),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Vt,e.screenSize===e.screenSizeEnum.XS))}}function a1(i,s){if(1&i&&(t.j41(0,"td",38),t.DNE(1,n1,1,3,"span",39)(2,i1,1,3,"span",40),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","CONNECTED"===e.state),t.R7$(),t.Y8G("ngIf","DISCONNECTED"===e.state)}}function o1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Alias"),t.k0s())}function s1(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",44)(2,"span",45),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ot,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function l1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Node ID"),t.k0s())}function r1(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",44)(2,"span",45),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ot,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function c1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Network Address"),t.k0s())}function m1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",null==e?null:e.address," ")}}function p1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Channels"),t.k0s())}function u1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.channels)}}function d1(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function h1(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG().$implicit,o=t.XpG();return r.Njj(o.onPeerDetach(a))}),t.EFF(1,"Disconnect"),t.k0s()}}function f1(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG().$implicit,o=t.XpG();return r.Njj(o.onConnectPeer(a))}),t.EFF(1,"Reconnect"),t.k0s()}}function _1(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",50)(1,"div",47)(2,"mat-select",48),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",49),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onPeerClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",49),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onOpenChannel(a))}),t.EFF(7,"Open Channel"),t.k0s(),t.DNE(8,h1,2,0,"mat-option",51)(9,f1,2,0,"mat-option",51),t.k0s()()()}if(2&i){const e=s.$implicit;t.R7$(8),t.Y8G("ngIf","CONNECTED"===e.state),t.R7$(),t.Y8G("ngIf","DISCONNECTED"===e.state)}}function g1(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No connected peer."),t.k0s())}function C1(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting peers..."),t.k0s())}function y1(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function b1(i,s){if(1&i&&(t.j41(0,"td",52),t.DNE(1,g1,2,0,"p",53)(2,C1,2,0,"p",53)(3,y1,2,1,"p",53),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function F1(i,s){if(1&i&&t.nrm(0,"tr",54),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Wr,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function E1(i,s){1&i&&t.nrm(0,"tr",55)}function x1(i,s){1&i&&t.nrm(0,"tr",56)}let L1=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.store=a,this.rtlEffects=o,this.actions=l,this.commonService=m,this.camelCaseWithSpaces=u,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.faUsers=E.gdJ,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new p.I6([]),this.information={},this.availableBalance=0,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=n.peers,this.loadPeersTable(this.peersData),this.logger.info(n)}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.availableBalance=n.onchainBalance.total||0}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,X.p)(n=>n.type===c.Uu.SET_PEERS_ECL)).subscribe(n=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(n,a){const o=[[{key:"nodeId",value:n.nodeId,title:"Public Key",width:100}],[{key:"address",value:n.address,title:"Address",width:50},{key:"alias",value:n.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(n.state||""),title:"State",width:50},{key:"channels",value:n.channels,title:"Channels",width:50}]];this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:n.nodeId,goToName:"Graph lookup",goToLink:"/ecl/graph/lookups",showQRName:"Public Key",showQRField:n.nodeId,message:o}}}))}onConnectPeer(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{peer:n.nodeId?n:null,information:this.information,balance:this.availableBalance},component:Pt}}}))}onOpenChannel(n){this.store.dispatch((0,k.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:n,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Mt}}}))}onPeerDetach(n){this.store.dispatch(n&&n.channels&&n.channels>0?(0,k.xO)({payload:{data:{type:c.A$.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(n.alias?n.alias:n.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,j.Lc)({payload:{nodeId:n.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.peers.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"state":o=n?.state?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===o.indexOf(a):o.includes(a)}}loadPeersTable(n){this.peers=new p.I6(n?[...n]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU(K.En),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-peers"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Peers")}])],decls:50,vars:19,consts:[["peersForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",2)(1,"form",3,0)(3,"button",4),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onConnectPeer({}))}),t.EFF(4,"Add Peer"),t.k0s()(),t.j41(5,"div",5)(6,"div",6)(7,"div",7),t.nrm(8,"fa-icon",8),t.j41(9,"span",9),t.EFF(10,"Peers"),t.k0s()(),t.j41(11,"div",10)(12,"mat-form-field",11)(13,"mat-label"),t.EFF(14,"Filter By"),t.k0s(),t.j41(15,"mat-select",12),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(16,"perfect-scrollbar"),t.DNE(17,Kr,2,2,"mat-option",13),t.k0s()()(),t.j41(18,"mat-form-field",11)(19,"mat-label"),t.EFF(20,"Filter"),t.k0s(),t.j41(21,"input",14),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(22,"div",15),t.DNE(23,t1,1,0,"mat-progress-bar",16),t.j41(24,"table",17,1),t.qex(26,18),t.DNE(27,e1,1,0,"th",19)(28,a1,3,2,"td",20),t.bVm(),t.qex(29,21),t.DNE(30,o1,2,0,"th",22)(31,s1,4,4,"td",20),t.bVm(),t.qex(32,23),t.DNE(33,l1,2,0,"th",22)(34,r1,4,4,"td",20),t.bVm(),t.qex(35,24),t.DNE(36,c1,2,0,"th",22)(37,m1,2,1,"td",20),t.bVm(),t.qex(38,25),t.DNE(39,p1,2,0,"th",22)(40,u1,2,1,"td",20),t.bVm(),t.qex(41,26),t.DNE(42,d1,6,0,"th",27)(43,_1,10,2,"td",28),t.bVm(),t.qex(44,29),t.DNE(45,b1,4,3,"td",30),t.bVm(),t.DNE(46,F1,1,3,"tr",31)(47,E1,1,0,"tr",32)(48,x1,1,0,"tr",33),t.k0s()(),t.nrm(49,"mat-paginator",34),t.k0s()()}2&a&&(t.R7$(8),t.Y8G("icon",o.faUsers),t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,qr).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.peers)("ngClass",t.eq3(16,Qr,""!==o.errorMessage)),t.R7$(22),t.Y8G("matFooterRowDef",t.lJ4(18,Zr)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.BC,f.cb,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const v1=["queryRoutesForm"],S1=i=>({"overflow-auto error-border":i,"overflow-auto":!0}),Ht=i=>({"max-width":i});function R1(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Destination Node ID is required."),t.k0s())}function k1(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function I1(i,s){1&i&&t.nrm(0,"mat-progress-bar",23)}function T1(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1," Alias"),t.k0s())}function w1(i,s){if(1&i&&(t.j41(0,"td",41)(1,"span",42)(2,"span",43),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ht,n.screenSize===n.screenSizeEnum.XS?"6rem":"30rem")),t.R7$(2),t.JRh(null==e?null:e.alias)}}function j1(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1," ID"),t.k0s())}function D1(i,s){if(1&i&&(t.j41(0,"td",41)(1,"span",42)(2,"span",43),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ht,n.screenSize===n.screenSizeEnum.XS?"6rem":"30rem")),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function G1(i,s){1&i&&(t.j41(0,"th",40)(1,"div",44),t.EFF(2,"Actions"),t.k0s()())}function P1(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",45)(1,"button",46),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onHopClick(a))}),t.EFF(2,"View Info"),t.k0s()()}}function A1(i,s){1&i&&t.nrm(0,"tr",47)}function N1(i,s){1&i&&t.nrm(0,"tr",48)}function B1(i,s){if(1&i&&(t.j41(0,"div",24)(1,"mat-expansion-panel",25)(2,"mat-expansion-panel-header")(3,"mat-panel-title",26)(4,"span",27),t.EFF(5),t.k0s(),t.j41(6,"span",28),t.EFF(7),t.nI1(8,"number"),t.k0s()()(),t.j41(9,"mat-panel-description",29)(10,"div",30)(11,"table",31,2),t.qex(13,32),t.DNE(14,T1,2,0,"th",33)(15,w1,4,4,"td",34),t.bVm(),t.qex(16,35),t.DNE(17,j1,2,0,"th",33)(18,D1,4,4,"td",34),t.bVm(),t.qex(19,36),t.DNE(20,G1,3,0,"th",33)(21,P1,3,0,"td",37),t.bVm(),t.DNE(22,A1,1,0,"tr",38)(23,N1,1,0,"tr",39),t.k0s()()()()()),2&i){const e=s.$implicit,n=s.index,a=t.XpG();t.R7$(5),t.SpI("Route ",n+1),t.R7$(2),t.JRh(t.bMT(8,6,e.amount/1e3)),t.R7$(4),t.Y8G("dataSource",a.qrHops[n])("ngClass",t.eq3(8,S1,"error"===a.flgLoading[0])),t.R7$(11),t.Y8G("matHeaderRowDef",a.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",a.displayedColumns)}}let M1=(()=>{var i;class s{constructor(n,a,o){this.store=n,this.eclEffects=a,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=E.TBz,this.faExclamationTriangle=E.zpE,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new p.I6([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{n&&n.routes&&n.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=n.routes,this.allQRoutes.forEach((a,o)=>{this.qrHops[o]=new p.I6([...a.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,j.T4)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(n){this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:n.alias,title:"Alias",width:100,type:c.UN.STRING}],[{key:"nodeId",value:n.nodeId,title:"Node ID",width:100,type:c.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(ht.B),t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(a,o){if(1&a&&t.GBs(v1,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:32,vars:10,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table[i]",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","nodeId","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","column","fxFlex","100"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"form",4,0),t.bIt("ngSubmit",function(){r.eBV(l);const u=t.sdS(2);return r.Njj(u.form.valid&&o.onQueryRoutes())}),t.j41(3,"div",5),t.nrm(4,"fa-icon",6),t.j41(5,"span"),t.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.k0s()(),t.j41(7,"mat-form-field",7)(8,"mat-label"),t.EFF(9,"Destination Node ID"),t.k0s(),t.j41(10,"input",8,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.nodeId,u)||(o.nodeId=u),r.Njj(u)}),t.k0s(),t.DNE(12,R1,2,0,"mat-error",9),t.k0s(),t.j41(13,"mat-form-field",10)(14,"mat-label"),t.EFF(15,"Amount (Sats)"),t.k0s(),t.j41(16,"input",11),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.amount,u)||(o.amount=u),r.Njj(u)}),t.k0s(),t.DNE(17,k1,2,0,"mat-error",9),t.k0s(),t.j41(18,"div",12)(19,"button",13),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(20,"Clear"),t.k0s(),t.j41(21,"button",14),t.EFF(22,"Query Route"),t.k0s()()(),t.j41(23,"div",15)(24,"div",16),t.nrm(25,"fa-icon",17),t.j41(26,"span",18),t.EFF(27,"Transaction Route"),t.k0s()()(),t.DNE(28,I1,1,0,"mat-progress-bar",19),t.j41(29,"div",20)(30,"div",21),t.DNE(31,B1,24,10,"div",22),t.k0s()()()}2&a&&(t.R7$(4),t.Y8G("icon",o.faExclamationTriangle),t.R7$(6),t.R50("ngModel",o.nodeId),t.R7$(2),t.Y8G("ngIf",!o.nodeId),t.R7$(4),t.Y8G("step",1e3)("min",0),t.R50("ngModel",o.amount),t.R7$(),t.Y8G("ngIf",!o.amount),t.R7$(8),t.Y8G("icon",o.faRoute),t.R7$(3),t.Y8G("ngIf",!0===o.flgLoading[0]),t.R7$(3),t.Y8G("ngForOf",o.allQRoutes))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,N.$z,U.GK,U.Z2,U.WN,U.Q6,Y.fg,y.rl,y.nJ,y.TL,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,B.Ld,it.V,d.QX],encapsulation:2}))}return i(),s})();const $1=()=>["all"],V1=i=>({"error-border":i}),O1=()=>["no_channel"],Lt=i=>({width:i}),H1=i=>({"display-none":i});function Y1(i,s){if(1&i&&(t.j41(0,"mat-option",35),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function X1(i,s){1&i&&t.nrm(0,"mat-progress-bar",36)}function U1(i,s){1&i&&t.nrm(0,"th",37)}function z1(i,s){if(1&i&&(t.j41(0,"span",41),t.nrm(1,"fa-icon",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function J1(i,s){if(1&i&&(t.j41(0,"span",43),t.nrm(1,"fa-icon",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function q1(i,s){if(1&i&&(t.j41(0,"td",38),t.DNE(1,z1,2,1,"span",39)(2,J1,2,1,"span",40),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!e.announceChannel),t.R7$(),t.Y8G("ngIf",e.announceChannel)}}function Q1(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"State"),t.k0s())}function Z1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.state))}}function W1(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Short Channel ID"),t.k0s())}function K1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.shortChannelId)}}function tc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Channel ID"),t.k0s())}function ec(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function nc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Alias"),t.k0s())}function ic(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.alias)}}function ac(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Node ID"),t.k0s())}function oc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function sc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Initiator"),t.k0s())}function lc(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function rc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function cc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"span",48),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function mc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function pc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"span",48),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function uc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Balance Score"),t.k0s())}function dc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",49)(2,"mat-hint",50),t.EFF(3),t.nI1(4,"number"),t.k0s()(),t.nrm(5,"mat-progress-bar",51),t.k0s()),2&i){const e=s.$implicit;t.R7$(3),t.JRh(t.bMT(4,3,(null==e?null:e.balancedness)||0)),t.R7$(2),t.Y8G("value",t.mNQ(e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0))}}function hc(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",52)(1,"div",53)(2,"mat-select",54),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function fc(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",56)(1,"div",53)(2,"mat-select",57),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",55),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!0))}),t.EFF(7,"Force Close"),t.k0s()()()()}}function _c(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No inactive channel available."),t.k0s())}function gc(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting inactive channels..."),t.k0s())}function Cc(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function yc(i,s){if(1&i&&(t.j41(0,"td",58),t.DNE(1,_c,2,0,"p",59)(2,gc,2,0,"p",59)(3,Cc,2,1,"p",59),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function bc(i,s){if(1&i&&t.nrm(0,"tr",60),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,H1,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Fc(i,s){1&i&&t.nrm(0,"tr",61)}function Ec(i,s){1&i&&t.nrm(0,"tr",62)}let xc=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=l,this.camelCaseWithSpaces=m,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=n.inactiveChannels,this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(n,a){this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId):"Closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(u=>{u&&this.store.dispatch((0,j.w0)({payload:{channelId:n.channelId||"",force:a}}))})}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"inactive",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:57,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,Y1,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,X1,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,U1,1,0,"th",13)(20,q1,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,Q1,2,0,"th",16)(23,Z1,3,3,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,W1,2,0,"th",16)(26,K1,2,1,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,tc,2,0,"th",16)(29,ec,4,4,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,nc,2,0,"th",16)(32,ic,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,ac,2,0,"th",16)(35,oc,4,4,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,sc,2,0,"th",16)(38,lc,2,1,"td",14),t.bVm(),t.qex(39,22),t.DNE(40,rc,2,0,"th",23)(41,cc,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,mc,2,0,"th",23)(44,pc,4,4,"td",14),t.bVm(),t.qex(45,25),t.DNE(46,uc,2,0,"th",16)(47,dc,6,5,"td",14),t.bVm(),t.qex(48,26),t.DNE(49,hc,6,0,"th",27)(50,fc,8,0,"td",28),t.bVm(),t.qex(51,29),t.DNE(52,yc,4,3,"td",30),t.bVm(),t.DNE(53,bc,1,3,"tr",31)(54,Fc,1,0,"tr",32)(55,Ec,1,0,"tr",33),t.k0s()(),t.nrm(56,"mat-paginator",34),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,$1).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,V1,""!==o.errorMessage)),t.R7$(37),t.Y8G("matFooterRowDef",t.lJ4(17,O1)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,Y.fg,y.rl,y.nJ,y.MV,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.PV],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}))}return i(),s})();const Lc=()=>["all"],vc=()=>["no_event"],Sc=i=>({"ml-0":i}),st=i=>({width:i}),Rc=i=>({"display-none":i});function kc(i,s){if(1&i&&(t.j41(0,"div",6),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.errorMessage)}}function Ic(i,s){if(1&i&&(t.j41(0,"mat-option",14),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Tc(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",7),t.nrm(1,"div",8),t.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),t.EFF(5,"Filter By"),t.k0s(),t.j41(6,"mat-select",11),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(7,"perfect-scrollbar"),t.DNE(8,Ic,2,2,"mat-option",12),t.k0s()()(),t.j41(9,"mat-form-field",10)(10,"mat-label"),t.EFF(11,"Filter"),t.k0s(),t.j41(12,"input",13),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()()}if(2&i){const e=t.XpG();t.R7$(6),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(3,Lc).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter)}}function wc(i,s){1&i&&t.nrm(0,"mat-progress-bar",42)}function jc(i,s){1&i&&t.nrm(0,"th",43)}function Dc(i,s){if(1&i&&(t.nrm(0,"span",46),t.nI1(1,"camelcase")),2&i){const e=t.XpG().$implicit,n=t.XpG(2);t.Y8G("matTooltip",t.mNQ(t.bMT(1,3,null==e?null:e.type)))("ngClass",t.eq3(5,Sc,n.screenSize===n.screenSizeEnum.XS))}}function Gc(i,s){if(1&i&&(t.j41(0,"td",44),t.DNE(1,Dc,2,7,"span",45),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","payment-relayed"!==(null==e?null:e.type))}}function Pc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Date/Time"),t.k0s())}function Ac(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function Nc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel ID"),t.k0s())}function Bc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.fromChannelId)}}function Mc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel Short ID"),t.k0s())}function $c(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.fromShortChannelId)}}function Vc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel"),t.k0s())}function Oc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.fromChannelAlias)}}function Hc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel ID"),t.k0s())}function Yc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.toChannelId)}}function Xc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel Short ID"),t.k0s())}function Uc(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.toShortChannelId)}}function zc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel"),t.k0s())}function Jc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.toChannelAlias)}}function qc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Payment Hash"),t.k0s())}function Qc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function Zc(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Amount In (Sats)"),t.k0s())}function Wc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.amountIn))}}function Kc(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Amount Out (Sats)"),t.k0s())}function tm(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.amountOut))}}function em(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Fee Earned (Sats)"),t.k0s())}function nm(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function im(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",52)(1,"div",53)(2,"mat-select",54),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function am(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",56)(1,"button",57),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG(2);return r.Njj(l.onForwardingEventClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function om(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No forwarding history available."),t.k0s())}function sm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting forwarding history..."),t.k0s())}function lm(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function rm(i,s){if(1&i&&(t.j41(0,"td",58),t.DNE(1,om,2,0,"p",59)(2,sm,2,0,"p",59)(3,lm,2,1,"p",59),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function cm(i,s){if(1&i&&t.nrm(0,"tr",60),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Rc,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function mm(i,s){1&i&&t.nrm(0,"tr",61)}function pm(i,s){1&i&&t.nrm(0,"tr",62)}function um(i,s){if(1&i&&(t.j41(0,"div",15),t.DNE(1,wc,1,0,"mat-progress-bar",16),t.j41(2,"table",17,0),t.qex(4,18),t.DNE(5,jc,1,0,"th",19)(6,Gc,2,1,"td",20),t.bVm(),t.qex(7,21),t.DNE(8,Pc,2,0,"th",22)(9,Ac,3,4,"td",20),t.bVm(),t.qex(10,23),t.DNE(11,Nc,2,0,"th",22)(12,Bc,4,4,"td",20),t.bVm(),t.qex(13,24),t.DNE(14,Mc,2,0,"th",22)(15,$c,2,1,"td",20),t.bVm(),t.qex(16,25),t.DNE(17,Vc,2,0,"th",22)(18,Oc,4,4,"td",20),t.bVm(),t.qex(19,26),t.DNE(20,Hc,2,0,"th",22)(21,Yc,4,4,"td",20),t.bVm(),t.qex(22,27),t.DNE(23,Xc,2,0,"th",22)(24,Uc,2,1,"td",20),t.bVm(),t.qex(25,28),t.DNE(26,zc,2,0,"th",22)(27,Jc,4,4,"td",20),t.bVm(),t.qex(28,29),t.DNE(29,qc,2,0,"th",22)(30,Qc,4,4,"td",20),t.bVm(),t.qex(31,30),t.DNE(32,Zc,2,0,"th",31)(33,Wc,4,3,"td",20),t.bVm(),t.qex(34,32),t.DNE(35,Kc,2,0,"th",31)(36,tm,4,3,"td",20),t.bVm(),t.qex(37,33),t.DNE(38,em,2,0,"th",31)(39,nm,4,3,"td",20),t.bVm(),t.qex(40,34),t.DNE(41,im,6,0,"th",35)(42,am,3,0,"td",36),t.bVm(),t.qex(43,37),t.DNE(44,rm,4,3,"td",38),t.bVm(),t.DNE(45,cm,1,3,"tr",39)(46,mm,1,0,"tr",40)(47,pm,1,0,"tr",41),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.forwardingHistoryEvents),t.R7$(43),t.Y8G("matFooterRowDef",t.lJ4(7,vc)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns)}}function dm(i,s){if(1&i&&t.nrm(0,"mat-paginator",63),2&i){const e=t.XpG();t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Yt=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.commonService=a,this.store=o,this.datePipe=l,this.camelCaseWithSpaces=m,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(n){n.eventsData&&(this.apiCallStatus={status:c.wn.COMPLETED,action:"FetchPayments"},this.eventsData=n.eventsData.currentValue,n.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),n.selFilter&&!n.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=n.pageSettings.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=n.payments&&n.payments.relayed?n.payments.relayed:[],this.eventsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData)})}ngAfterViewInit(){setTimeout(()=>{this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)},0)}onForwardingEventClick(n,a){const o=[[{key:"paymentHash",value:n.paymentHash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"timestamp",value:Math.round((n.timestamp||0)/1e3),title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"fee",value:(n.amountIn||0)-(n.amountOut||0),title:"Fee Earned (Sats)",width:50,type:c.UN.NUMBER}],[{key:"amountIn",value:n.amountIn,title:"Amount In (Sats)",width:50,type:c.UN.NUMBER},{key:"amountOut",value:n.amountOut,title:"Amount Out (Sats)",width:50,type:c.UN.NUMBER}],[{key:"fromChannelAlias",value:n.fromChannelAlias,title:"From Channel Alias",width:50,type:c.UN.STRING},{key:"fromShortChannelId",value:n.fromShortChannelId,title:"From Short Channel ID",width:50,type:c.UN.STRING}],[{key:"fromChannelId",value:n.fromChannelId,title:"From Channel ID",width:100,type:c.UN.STRING}],[{key:"toChannelAlias",value:n.toChannelAlias,title:"To Channel Alias",width:50,type:c.UN.STRING},{key:"toShortChannelId",value:n.toShortChannelId,title:"To Short Channel ID",width:50,type:c.UN.STRING}],[{key:"toChannelId",value:n.toChannelId,title:"To Channel ID",width:100,type:c.UN.STRING}]];"payment-relayed"!==n.type&&o?.unshift([{key:"type",value:this.commonService.camelCase(n.type),title:"Relay Type",width:100,type:c.UN.STRING}]),this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Event Information",message:o}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(n){const a=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column):this.commonService.titleCase(n)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"timestamp":o=this.datePipe.transform(new Date(n.timestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":o=(n.amountIn-n.amountOut).toString()||"0";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadForwardingEventsTable(n){this.forwardingHistoryEvents=new p.I6([...n]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>"fee"===o?a.amountIn-a.amountOut:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Events")}]),t.OA$],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(a,o){1&a&&(t.j41(0,"div",1),t.DNE(1,kc,2,1,"div",2)(2,Tc,13,4,"div",3)(3,um,48,8,"div",4)(4,dm,1,3,"mat-paginator",5),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",""!==o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.vh,q.ZE],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-actions[_ngcontent-%COMP%]{min-height:3.55rem}"]}))}return i(),s})();const hm=["tableIn"],fm=["tableOut"],_m=["paginatorIn"],gm=["paginatorOut"],Cm=(i,s)=>({"mt-2":i,"mt-1":s}),ym=()=>["no_incoming_event"],bm=i=>({"mt-2":i}),Fm=()=>["no_outgoing_event"],mt=i=>({width:i}),Xt=i=>({"display-none":i});function Em(i,s){if(1&i&&(t.j41(0,"div",7),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.errorMessage)}}function xm(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Lm(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Channel ID"),t.k0s())}function vm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Sm(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Peer Alias"),t.k0s())}function Rm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function km(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Events"),t.k0s())}function Im(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.events))}}function Tm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Amount (Sats)"),t.k0s())}function wm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalAmount))}}function jm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Fee (Sats)"),t.k0s())}function Dm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalFee))}}function Gm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No incoming routing peer available."),t.k0s())}function Pm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting incoming routing peers..."),t.k0s())}function Am(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function Nm(i,s){if(1&i&&(t.j41(0,"td",41),t.DNE(1,Gm,2,0,"p",42)(2,Pm,2,0,"p",42)(3,Am,2,1,"p",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Bm(i,s){if(1&i&&t.nrm(0,"tr",43),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Xt,(null==e.routingPeersIncoming?null:e.routingPeersIncoming.data)&&(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)>0))}}function Mm(i,s){1&i&&t.nrm(0,"tr",44)}function $m(i,s){1&i&&t.nrm(0,"tr",45)}function Vm(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Om(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Channel ID"),t.k0s())}function Hm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ym(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Peer Alias"),t.k0s())}function Xm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function Um(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Events"),t.k0s())}function zm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.events))}}function Jm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Amount (Sats)"),t.k0s())}function qm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalAmount))}}function Qm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Fee (Sats)"),t.k0s())}function Zm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalFee))}}function Wm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No outgoing routing peer available."),t.k0s())}function Km(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting outgoing routing peers..."),t.k0s())}function tp(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function ep(i,s){if(1&i&&(t.j41(0,"td",41),t.DNE(1,Wm,2,0,"p",42)(2,Km,2,0,"p",42)(3,tp,2,1,"p",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function np(i,s){if(1&i&&t.nrm(0,"tr",43),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Xt,(null==e.routingPeersOutgoing?null:e.routingPeersOutgoing.data)&&(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)>0))}}function ip(i,s){1&i&&t.nrm(0,"tr",44)}function ap(i,s){1&i&&t.nrm(0,"tr",45)}function op(i,s){if(1&i&&(t.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),t.EFF(4,"Incoming"),t.k0s(),t.nrm(5,"div",12),t.k0s(),t.j41(6,"div",13),t.DNE(7,xm,1,0,"mat-progress-bar",14),t.j41(8,"table",15,0),t.qex(10,16),t.DNE(11,Lm,2,0,"th",17)(12,vm,4,4,"td",18),t.bVm(),t.qex(13,19),t.DNE(14,Sm,2,0,"th",17)(15,Rm,4,4,"td",18),t.bVm(),t.qex(16,20),t.DNE(17,km,2,0,"th",21)(18,Im,4,3,"td",18),t.bVm(),t.qex(19,22),t.DNE(20,Tm,2,0,"th",21)(21,wm,4,3,"td",18),t.bVm(),t.qex(22,23),t.DNE(23,jm,2,0,"th",21)(24,Dm,4,3,"td",18),t.bVm(),t.qex(25,24),t.DNE(26,Nm,4,3,"td",25),t.bVm(),t.DNE(27,Bm,1,3,"tr",26)(28,Mm,1,0,"tr",27)(29,$m,1,0,"tr",28),t.k0s()(),t.nrm(30,"mat-paginator",29,1),t.k0s(),t.j41(32,"div",30)(33,"div",10)(34,"div",11),t.EFF(35,"Outgoing"),t.k0s(),t.nrm(36,"div",12),t.k0s(),t.j41(37,"div",31),t.DNE(38,Vm,1,0,"mat-progress-bar",14),t.j41(39,"table",32,2),t.qex(41,16),t.DNE(42,Om,2,0,"th",17)(43,Hm,4,4,"td",18),t.bVm(),t.qex(44,19),t.DNE(45,Ym,2,0,"th",17)(46,Xm,4,4,"td",18),t.bVm(),t.qex(47,20),t.DNE(48,Um,2,0,"th",21)(49,zm,4,3,"td",18),t.bVm(),t.qex(50,22),t.DNE(51,Jm,2,0,"th",21)(52,qm,4,3,"td",18),t.bVm(),t.qex(53,23),t.DNE(54,Qm,2,0,"th",21)(55,Zm,4,3,"td",18),t.bVm(),t.qex(56,33),t.DNE(57,ep,4,3,"td",25),t.bVm(),t.DNE(58,np,1,3,"tr",26)(59,ip,1,0,"tr",27)(60,ap,1,0,"tr",28),t.k0s(),t.nrm(61,"mat-paginator",29,3),t.k0s()()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngClass",t.l_i(22,Cm,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.R7$(5),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersIncoming),t.R7$(19),t.Y8G("matFooterRowDef",t.lJ4(25,ym)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.R7$(3),t.Y8G("ngClass",t.eq3(26,bm,e.screenSize!==e.screenSizeEnum.LG)),t.R7$(5),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersOutgoing),t.R7$(19),t.Y8G("matFooterRowDef",t.lJ4(28,Fm)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let sp=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.commonService=a,this.store=o,this.camelCaseWithSpaces=l,this.nodePageDefs=c.WW,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:c.md,sortBy:"totalFee",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new p.I6([]),this.routingPeersOutgoing=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=n.payments&&n.payments.relayed?n.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(n)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(n,a)=>{let o="";return o="all"===this.selFilterByIn?JSON.stringify(n).toLowerCase():"string"==typeof n[this.selFilterByIn]?n[this.selFilterByIn].toLowerCase():"boolean"==typeof n[this.selFilterByIn]?n[this.selFilterByIn]?"yes":"no":n[this.selFilterByIn].toString(),o.includes(a)},this.routingPeersOutgoing.filterPredicate=(n,a)=>{let o="";switch(this.selFilterByOut){case"all":o=JSON.stringify(n).toLowerCase();break;case"total_amount":case"total_fee":o=(+(n[this.selFilterByOut]||0)/1e3).toString()||"";break;default:o="string"==typeof n[this.selFilterByOut]?n[this.selFilterByOut].toLowerCase():"boolean"==typeof n[this.selFilterByOut]?n[this.selFilterByOut]?"yes":"no":n[this.selFilterByOut].toString()}return o.includes(a)}}loadRoutingPeersTable(n){if(n.length>0){const a=this.groupRoutingPeers(n);this.routingPeersIncoming=new p.I6(a[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new p.I6(a[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new p.I6([]),this.routingPeersOutgoing=new p.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(n){const a=[],o=[];return n.forEach(l=>{const m=a.find(T=>T.channelId===l.fromChannelId),u=o.find(T=>T.channelId===l.toChannelId);m?(m.events++,m.totalAmount=+m.totalAmount+ +l.amountIn,m.totalFee=l.amountIn-l.amountOut+ +m.totalFee):a.push({channelId:l.fromChannelId,alias:l.fromChannelAlias,events:1,totalAmount:+l.amountIn,totalFee:l.amountIn-l.amountOut}),u?(u.events++,u.totalAmount=+u.totalAmount+ +l.amountOut,u.totalFee=l.amountIn-l.amountOut+ +u.totalFee):o.push({channelId:l.toChannelId,alias:l.toChannelAlias,events:1,totalAmount:+l.amountOut,totalFee:l.amountIn-l.amountOut})}),[this.commonService.sortDescByKey(a,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(a,o){if(1&a&&(t.GBs(hm,5,v.B4),t.GBs(fm,5,v.B4),t.GBs(_m,5),t.GBs(gm,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sortIn=l.first),t.mGM(l=t.lsd())&&(o.sortOut=l.first),t.mGM(l=t.lsd())&&(o.paginatorIn=l.first),t.mGM(l=t.lsd())&&(o.paginatorOut=l.first)}},standalone:!1,features:[t.Jv_([{provide:w.xX,useValue:(0,c.on)("Peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","no_outgoing_event"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",4),t.DNE(1,Em,2,1,"div",5)(2,op,63,29,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",""!==o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage))},dependencies:[d.YU,d.bT,d.B3,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.Ld,d.QX],encapsulation:2}))}return i(),s})();function lp(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",8),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let rp=(()=>{var i;class s{constructor(n){this.router=n,this.faChartBar=E.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Reports"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),t.DNE(8,lp,2,4,"div",7),t.k0s(),t.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),t.k0s()()()),2&a){const l=t.sdS(10);t.R7$(),t.Y8G("icon",o.faChartBar),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();var Ut=C(51993),zt=C(24655);function cp(i,s){if(1&i&&(t.j41(0,"div",14),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG();t.Y8G("@fadeIn",e.totalFeeSat),t.R7$(),t.Lme("",t.i5U(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.bMT(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function mp(i,s){1&i&&(t.j41(0,"div",15),t.EFF(1,"No routing report for the selected period"),t.k0s())}function pp(i,s){if(1&i&&(t.j41(0,"span")(1,"span",17),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.j41(4,"span",17),t.EFF(5),t.nI1(6,"number"),t.k0s()()),2&i){const e=s.model,n=t.XpG(2);t.R7$(2),t.SpI("Events: ",t.bMT(3,2,(n.selReportBy===n.reportBy.EVENTS?e.value:e.extra.totalEvents)||0)),t.R7$(3),t.SpI("Fee: ",t.i5U(6,4,(n.selReportBy===n.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"))}}function up(i,s){if(1&i){const e=t.RV6();t.j41(0,"ngx-charts-bar-vertical",16),t.bIt("select",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartBarSelected(a))})("mouseup",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartMouseUp(a))}),t.DNE(1,pp,7,7,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function dp(i,s){if(1&i&&t.nrm(0,"rtl-ecl-forwarding-history",18),2&i){const e=t.XpG();t.Y8G("eventsData",e.filteredEventsBySelectedPeriod)("selFilter",e.eventFilterValue)}}let hp=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.commonService=a,this.store=o,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=c.aR,this.selReportBy=c.aR.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.events=n.payments&&n.payments.relayed?n.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(n)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=n.width/10;break;case c.f7.LG:this.screenPaddingX=n.width/16;break;default:this.screenPaddingX=n.width/20}this.view=[n.width-this.screenPaddingX,n.height/2.2],this.logger.info("Container Size: "+JSON.stringify(n)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(n,a){const o=Math.round(n.getTime()/1e3),l=Math.round(a.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()+" To "+a.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(m=>{Math.floor((m.timestamp||0)/1e3)>=o&&Math.floor((m.timestamp||0)/1e3)0&&"ngx-charts"===n.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(n){this.eventFilterValue=this.reportPeriod===c.rs[1]?n.name+"/"+this.startDate.getFullYear():n.name.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(n){const a=Math.round(n.getTime()/1e3),o=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()),this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)o.push({name:c.KR[l].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod?.map(l=>{const m=new Date(l.timestamp||0).getMonth();return o[m].value=o[m].value+((l.amountIn||0)-(l.amountOut||0)),o[m].extra.totalEvents=o[m].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let l=0;l{const m=Math.floor((Math.floor((l.timestamp||0)/1e3)-a)/this.secondsInADay);return o[m].value=o[m].value+((l.amountIn||0)-(l.amountOut||0)),o[m].extra.totalEvents=o[m].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),o}prepareEventsReport(n){const a=Math.round(n.getTime()/1e3),o=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()),this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)o.push({name:c.KR[l].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod?.map(l=>{const m=new Date(l.timestamp||0).getMonth();return o[m].value=o[m].value+1,o[m].extra.totalFees=o[m].extra.totalFees+((l.amountIn||0)-(l.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let l=0;l{const m=Math.floor((Math.floor((l.timestamp||0)/1e3)-a)/this.secondsInADay);return o[m].value=o[m].value+1,o[m].extra.totalFees=o[m].extra.totalFees+((l.amountIn||0)-(l.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),o}onSelectionChange(n){const a=n.selDate.getMonth(),o=n.selDate.getFullYear();this.reportPeriod=n.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(n,a){return 1===n&&a%4==0?c.KR[n].days+1:c.KR[n].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(a,o){1&a&&t.bIt("mouseup",function(m){return o.onChartMouseUp(m)})},standalone:!1,decls:17,vars:9,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),t.bIt("stepChanged",function(m){return o.onSelectionChange(m)}),t.k0s(),t.j41(2,"div",3)(3,"mat-radio-group",4),t.mxI("ngModelChange",function(m){return t.DH7(o.selReportBy,m)||(o.selReportBy=m),m}),t.bIt("change",function(){return o.onSelReportByChange()}),t.j41(4,"span",5),t.EFF(5,"Report By: "),t.k0s(),t.j41(6,"mat-radio-button",6),t.EFF(7,"Fees"),t.k0s(),t.j41(8,"mat-radio-button",7),t.EFF(9,"Events"),t.k0s()()(),t.j41(10,"div",8),t.DNE(11,cp,4,8,"div",9)(12,mp,2,0,"div",10),t.j41(13,"div",11),t.DNE(14,up,3,11,"ngx-charts-bar-vertical",12),t.k0s(),t.j41(15,"div",11),t.DNE(16,dp,1,2,"rtl-ecl-forwarding-history",13),t.k0s()()()),2&a&&(t.R7$(3),t.R50("ngModel",o.selReportBy),t.R7$(3),t.Y8G("value",t.mNQ(o.reportBy.FEES)),t.R7$(2),t.Y8G("value",t.mNQ(o.reportBy.EVENTS)),t.R7$(3),t.Y8G("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),t.R7$(),t.Y8G("ngIf",o.routingReportData.length<=0||o.filteredEventsBySelectedPeriod.length<=0),t.R7$(2),t.Y8G("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),t.R7$(2),t.Y8G("ngIf",o.filteredEventsBySelectedPeriod.length>0))},dependencies:[d.bT,f.BC,f.vS,rt.VT,rt._g,_.DJ,_.sA,_.UI,Ut.L8,zt.m,Yt,d.QX],encapsulation:2,data:{animation:[Et.q]}}))}return i(),s})();var fp=C(5085);function _p(i,s){if(1&i&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Lme(" Paid ",t.i5U(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.bMT(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function gp(i,s){if(1&i&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Lme(" Received ",t.i5U(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.bMT(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Cp(i,s){if(1&i&&(t.j41(0,"div",9),t.DNE(1,_p,4,7,"div",10)(2,gp,4,7,"div",10),t.k0s()),2&i){const e=t.XpG();t.Y8G("@fadeIn",e.transactionsReportSummary),t.R7$(),t.Y8G("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.R7$(),t.Y8G("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function yp(i,s){1&i&&(t.j41(0,"div",12),t.EFF(1,"No transactions report for the selected period"),t.k0s())}function bp(i,s){if(1&i&&(t.j41(0,"span",14),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=s.model;t.R7$(),t.LHq("",e.name,": ",t.i5U(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.bMT(3,7,(null==e.extra?null:e.extra.total)||0))}}function Fp(i,s){if(1&i){const e=t.RV6();t.j41(0,"ngx-charts-bar-vertical-2d",13),t.bIt("select",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartBarSelected(a))})("mouseup",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartMouseUp(a))}),t.DNE(1,bp,4,9,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function Ep(i,s){if(1&i&&t.nrm(0,"rtl-transactions-report-table",15),2&i){const e=t.XpG();t.Y8G("displayedColumns",e.displayedColumns)("tableSetting",e.tableSetting)("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("selFilter",e.transactionFilterValue)}}let xp=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.commonService=a,this.store=o,this.scrollRanges=c.rs,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"date",sortOrder:c.oi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1]),(0,pt.E)(this.store.select(b.rN))).subscribe(([n,a])=>{this.payments=n.payments.sent?n.payments.sent:[],this.invoices=a.invoices?a.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=n.width/10;break;case c.f7.LG:this.screenPaddingX=n.width/16;break;default:this.screenPaddingX=n.width/20}this.view=[n.width-this.screenPaddingX,n.height/2.2],this.logger.info("Container Size: "+JSON.stringify(n)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(n){"svg"===n.srcElement.tagName&&n.srcElement.classList.length>0&&"ngx-charts"===n.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(n){this.transactionFilterValue=this.reportPeriod===c.rs[1]?n.series.toString()+"/"+this.startDate.getFullYear():n.series.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(n,a){const o=Math.round(n.getTime()/1e3),l=Math.round(a.getTime()/1e3),m=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const u=this.payments?.filter(F=>F.firstPartTimestamp&&Math.floor(F.firstPartTimestamp/1e3)>=o&&Math.floor(F.firstPartTimestamp/1e3)"received"===F.status&&F.timestamp&&F.timestamp>=o&&F.timestamp{const P=new Date(F.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(F.recipientAmount||0),m[P].series[0].value=m[P].series[0].value+F.recipientAmount,m[P].series[0].extra.total=m[P].series[0].extra.total+1,this.transactionsReportSummary}),T?.map(F=>{const P=new Date(1e3*(F.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(F.amountSettled||0),m[P].series[1].value=m[P].series[1].value+F.amountSettled,m[P].series[1].extra.total=m[P].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let F=0;F{const P=Math.floor((Math.floor((F.firstPartTimestamp||0)/1e3)-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(F.recipientAmount||0),m[P].series[0].value=m[P].series[0].value+F.recipientAmount,m[P].series[0].extra.total=m[P].series[0].extra.total+1,this.transactionsReportSummary}),T?.map(F=>{const P=Math.floor(((F.timestamp||0)-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(F.amountSettled||0),m[P].series[1].value=m[P].series[1].value+F.amountSettled,m[P].series[1].extra.total=m[P].series[1].extra.total+1,this.transactionsReportSummary})}return m}prepareTableData(){return this.transactionsReportData?.reduce((n,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?n.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):n,[])}onSelectionChange(n){const a=n.selDate.getMonth(),o=n.selDate.getFullYear();this.reportPeriod=n.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(n,a){return 1===n&&a%4==0?c.KR[n].days+1:c.KR[n].days}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(a,o){1&a&&t.bIt("mouseup",function(m){return o.onChartMouseUp(m)})},standalone:!1,decls:9,vars:4,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),t.bIt("stepChanged",function(m){return o.onSelectionChange(m)}),t.k0s(),t.j41(2,"div",3),t.DNE(3,Cp,3,3,"div",4)(4,yp,2,0,"div",5),t.j41(5,"div",6),t.DNE(6,Fp,3,13,"ngx-charts-bar-vertical-2d",7),t.k0s(),t.j41(7,"div",6),t.DNE(8,Ep,1,5,"rtl-transactions-report-table",8),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0),t.R7$(),t.Y8G("ngIf",o.transactionsNonZeroReportData.length<=0),t.R7$(2),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0),t.R7$(2),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0))},dependencies:[d.bT,_.DJ,_.sA,_.UI,Ut.Dl,zt.m,fp.T,d.QX],encapsulation:2,data:{animation:[Et.q]}}))}return i(),s})();var M=C(17186),Lp=C(90013);function vp(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",9),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Sp=(()=>{var i;class s{constructor(n){this.router=n,this.faSearch=E.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Graph Lookups"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),t.DNE(8,vp,2,4,"div",7),t.k0s(),t.nrm(9,"mat-tab-nav-panel",null,0),t.j41(11,"div",8),t.nrm(12,"router-outlet"),t.k0s()()()()),2&a){const l=t.sdS(10);t.R7$(),t.Y8G("icon",o.faSearch),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();const Rp=[{path:"",component:vt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Da,canActivate:[(0,M.fe)()]},{path:"onchain",component:Eo,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:cs,canActivate:[(0,M.fe)()]},{path:"send",component:ms,canActivate:[(0,M.fe)()]}]},{path:"connections",component:vo,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Is,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:hr,canActivate:[(0,M.fe)()]},{path:"pending",component:Jr,canActivate:[(0,M.fe)()]},{path:"inactive",component:xc,canActivate:[(0,M.fe)()]}]},{path:"peers",component:L1,data:{sweepAll:!1},canActivate:[(0,M.fe)()]}]},{path:"transactions",component:Ro,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:It,canActivate:[(0,M.fe)()]},{path:"invoices",component:Tt,canActivate:[(0,M.fe)()]}]},{path:"routing",component:Io,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Yt,canActivate:[(0,M.fe)()]},{path:"peers",component:sp,canActivate:[(0,M.fe)()]}]},{path:"reports",component:rp,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:hp,canActivate:[(0,M.fe)()]},{path:"transactions",component:xp,canActivate:[(0,M.fe)()]}]},{path:"graph",component:Sp,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:ls,canActivate:[(0,M.fe)()]},{path:"queryroutes",component:M1,canActivate:[(0,M.fe)()]}]},{path:"**",component:Lp.X}]}],kp=W.iI.forChild(Rp);var Ip=C(19029);let Tp=(()=>{var i;class s{static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275mod=t.$C({type:s,bootstrap:[vt]}),this.\u0275inj=r.G2t({imports:[d.MD,Ip.G,kp]}))}return i(),s})()}}]); \ No newline at end of file diff --git a/frontend/17.da5e0b6abb96d103.js b/frontend/17.da5e0b6abb96d103.js new file mode 100644 index 00000000..8a893ce9 --- /dev/null +++ b/frontend/17.da5e0b6abb96d103.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[17],{9017(wp,Jt,C){C.d(Jt,{ECLModule:()=>Tp});var d=C(2200),W=C(8132),L=C(3694),qt=C(9881),t=C(3664),H=C(7575),_=C(2920);function Qt(i,s){1&i&&t.nrm(0,"mat-progress-bar",3)}let vt=(()=>{var i;class s{constructor(n){this.router=n,this.loading=!1,this.router.events.subscribe(a=>{switch(!0){case a instanceof L.Z:this.loading=!0;break;case a instanceof L.wF:case a instanceof L.j5:case a instanceof L.L6:this.loading=!1}})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(a,o){1&a&&(t.j41(0,"div",1),t.DNE(1,Qt,1,0,"mat-progress-bar",2),t.nrm(2,"router-outlet",null,0),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",o.loading))},dependencies:[d.bT,H.HM,_.DJ,_.sA,_.UI,L.n3],encapsulation:2,data:{animation:[qt.E]}}))}return i(),s})();var h=C(1413),g=C(6977),pt=C(3993),St=C(614),E=C(5383),c=C(4416),J=C(9647),b=C(2730),r=C(2615),A=C(8570),I=C(9640),$=C(2571),D=C(60),Zt=C(2598),x=C(5596),Rt=C(2885),ut=C(2629),dt=C(9115),S=C(6038),G=C(6850);const kt=i=>({backgroundColor:i});function Wt(i,s){if(1&i&&t.nrm(0,"span",6),2&i){const e=t.XpG();t.Y8G("ngStyle",t.eq3(1,kt,null==e.information?null:e.information.color))}}function Kt(i,s){if(1&i&&(t.j41(0,"div")(1,"h4",1),t.EFF(2,"Color"),t.k0s(),t.j41(3,"div",2),t.nrm(4,"span",7),t.EFF(5),t.nI1(6,"uppercase"),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.Y8G("ngStyle",t.eq3(4,kt,null==e.information?null:e.information.color)),t.R7$(),t.SpI(" ",t.bMT(6,2,null==e.information?null:e.information.color)," ")}}function te(i,s){if(1&i&&(t.j41(0,"span",2),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}let ee=(()=>{var i;class s{constructor(n){this.commonService=n,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[t.OA$],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div")(2,"h4",1),t.EFF(3,"Alias"),t.k0s(),t.j41(4,"div",2),t.EFF(5),t.DNE(6,Wt,1,3,"span",3),t.k0s()(),t.DNE(7,Kt,7,6,"div",4),t.j41(8,"div")(9,"h4",1),t.EFF(10,"Implementation"),t.k0s(),t.j41(11,"div",2),t.EFF(12),t.k0s()(),t.j41(13,"div")(14,"h4",1),t.EFF(15,"Chain"),t.k0s(),t.DNE(16,te,2,1,"span",5),t.k0s()()),2&a&&(t.R7$(5),t.SpI(" ",null==o.information?null:o.information.alias," "),t.R7$(),t.Y8G("ngIf",!o.showColorFieldSeparately),t.R7$(),t.Y8G("ngIf",o.showColorFieldSeparately),t.R7$(5),t.JRh(null!=o.information&&o.information.lnImplementation||null!=o.information&&o.information.version?(null==o.information?null:o.information.lnImplementation)+" "+(null==o.information?null:o.information.version):""),t.R7$(4),t.Y8G("ngForOf",o.chains))},dependencies:[d.Sq,d.bT,d.B3,_.DJ,_.sA,_.UI,S.eI,d.Pc],encapsulation:2}))}return i(),s})();function ne(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div")(2,"h4",3),t.EFF(3,"Lightning"),t.k0s(),t.j41(4,"div",4),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.nrm(7,"mat-progress-bar",5),t.k0s(),t.j41(8,"div")(9,"h4",3),t.EFF(10,"On-chain"),t.k0s(),t.j41(11,"div",4),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.nrm(14,"mat-progress-bar",5),t.k0s(),t.j41(15,"div")(16,"h4",3),t.EFF(17,"Total"),t.k0s(),t.j41(18,"div",4),t.EFF(19),t.nI1(20,"number"),t.k0s()()()),2&i){const e=t.XpG();t.R7$(5),t.SpI("",t.bMT(6,7,e.balances.lightning)," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.balances.lightning/e.balances.total*100)),t.R7$(5),t.SpI("",t.bMT(13,9,e.balances.onchain)," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.balances.onchain/e.balances.total*100)),t.R7$(5),t.SpI("",t.bMT(20,11,e.balances.total)," Sats")}}function ie(i,s){if(1&i&&(t.j41(0,"div",6)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let ae=(()=>{var i;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,ne,21,13,"div",1)(1,ie,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,H.HM,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();function oe(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t.EFF(4,"Daily"),t.k0s(),t.j41(5,"div",5),t.EFF(6),t.nI1(7,"number"),t.k0s()(),t.j41(8,"div")(9,"h4",4),t.EFF(10,"Weekly"),t.k0s(),t.j41(11,"div",5),t.EFF(12),t.nI1(13,"number"),t.k0s()(),t.j41(14,"div")(15,"h4",4),t.EFF(16,"Monthly"),t.k0s(),t.j41(17,"div",5),t.EFF(18),t.nI1(19,"number"),t.k0s()()(),t.j41(20,"div",3)(21,"div")(22,"h4",4),t.EFF(23,"Transactions"),t.k0s(),t.j41(24,"div",5),t.EFF(25),t.nI1(26,"number"),t.k0s()(),t.j41(27,"div")(28,"h4",4),t.EFF(29,"Transactions"),t.k0s(),t.j41(30,"div",5),t.EFF(31),t.nI1(32,"number"),t.k0s()(),t.j41(33,"div")(34,"h4",4),t.EFF(35,"Transactions"),t.k0s(),t.j41(36,"div",5),t.EFF(37),t.nI1(38,"number"),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(6),t.SpI("",t.bMT(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.R7$(6),t.SpI("",t.bMT(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.R7$(6),t.SpI("",t.bMT(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.R7$(7),t.JRh(t.bMT(26,12,null==e.fees?null:e.fees.daily_txs)),t.R7$(6),t.JRh(t.bMT(32,14,null==e.fees?null:e.fees.weekly_txs)),t.R7$(6),t.JRh(t.bMT(38,16,null==e.fees?null:e.fees.monthly_txs))}}function se(i,s){if(1&i&&(t.j41(0,"div",6)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let le=(()=>{var i;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees?.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const a=10**(Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/a)*a/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[t.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,oe,39,18,"div",1)(1,se,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();function re(i,s){if(1&i&&(t.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t.EFF(4,"Active"),t.k0s(),t.j41(5,"div",5),t.nrm(6,"span",6),t.EFF(7),t.nI1(8,"number"),t.k0s()(),t.j41(9,"div")(10,"h4",4),t.EFF(11,"Pending"),t.k0s(),t.j41(12,"div",5),t.nrm(13,"span",7),t.EFF(14),t.nI1(15,"number"),t.k0s()(),t.j41(16,"div")(17,"h4",4),t.EFF(18,"Inactive"),t.k0s(),t.j41(19,"div",5),t.nrm(20,"span",8),t.EFF(21),t.nI1(22,"number"),t.k0s()()(),t.j41(23,"div",3)(24,"div")(25,"h4",4),t.EFF(26,"Capacity"),t.k0s(),t.j41(27,"div",5),t.EFF(28),t.nI1(29,"number"),t.k0s()(),t.j41(30,"div")(31,"h4",4),t.EFF(32,"Capacity"),t.k0s(),t.j41(33,"div",5),t.EFF(34),t.nI1(35,"number"),t.k0s()(),t.j41(36,"div")(37,"h4",4),t.EFF(38,"Capacity"),t.k0s(),t.j41(39,"div",5),t.EFF(40),t.nI1(41,"number"),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(7),t.JRh(t.bMT(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.R7$(7),t.JRh(t.bMT(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.R7$(7),t.JRh(t.bMT(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.R7$(7),t.SpI("",t.bMT(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.R7$(6),t.SpI("",t.bMT(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.R7$(6),t.SpI("",t.bMT(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function ce(i,s){if(1&i&&(t.j41(0,"div",9)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let me=(()=>{var i;class s{constructor(){this.channelsStatus={}}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,re,42,18,"div",1)(1,ce,3,1,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.bT,_.DJ,_.sA,_.UI,d.QX],encapsulation:2}))}return i(),s})();var N=C(8834),y=C(9588),tt=C(1997),Q=C(455),B=C(497);const pe=()=>["../connections/channels/open"],ue=(i,s)=>({filterColumn:i,filterValue:s});function de(i,s){if(1&i&&(t.j41(0,"div",19)(1,"a",20),t.EFF(2),t.nI1(3,"slice"),t.k0s(),t.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t.EFF(7,"Local:"),t.k0s(),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.j41(10,"mat-hint",22),t.nrm(11,"fa-icon",23),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.j41(14,"mat-hint",24)(15,"strong",8),t.EFF(16,"Remote:"),t.k0s(),t.EFF(17),t.nI1(18,"number"),t.k0s()(),t.nrm(19,"mat-progress-bar",25),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.mNQ(e.alias||e.shortChannelId))("matTooltipDisabled",t.mNQ((e.alias||e.shortChannelId).length<26))("routerLink",t.lJ4(26,pe))("state",t.l_i(27,ue,e.alias?"alias":"shortChannelId",e.alias||e.shortChannelId)),t.R7$(),t.Lme(" ",t.brH(3,14,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.R7$(6),t.SpI("",t.i5U(9,18,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.R7$(3),t.Y8G("icon",n.faBalanceScale),t.R7$(),t.SpI(" (",t.bMT(13,21,(null==e?null:e.balancedness)||0),") "),t.R7$(5),t.SpI("",t.i5U(18,23,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0))}}function he(i,s){if(1&i&&(t.j41(0,"div",17),t.DNE(1,de,20,30,"div",18),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.allChannels)}}function fe(i,s){if(1&i&&(t.j41(0,"div",3)(1,"div",4)(2,"span",5),t.EFF(3,"Total Capacity"),t.k0s(),t.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t.EFF(7,"Local:"),t.k0s(),t.EFF(8),t.nI1(9,"number"),t.k0s(),t.j41(10,"mat-hint",9),t.nrm(11,"fa-icon",10),t.EFF(12),t.nI1(13,"number"),t.k0s(),t.j41(14,"mat-hint",11)(15,"strong",8),t.EFF(16,"Remote:"),t.k0s(),t.EFF(17),t.nI1(18,"number"),t.k0s()(),t.nrm(19,"mat-progress-bar",12),t.k0s(),t.j41(20,"div",13),t.nrm(21,"mat-divider",14),t.k0s(),t.j41(22,"div",15),t.DNE(23,he,2,1,"div",16),t.k0s()()),2&i){const e=t.XpG(),n=t.sdS(2);t.R7$(8),t.SpI("",t.i5U(9,8,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.R7$(3),t.Y8G("icon",e.faBalanceScale),t.R7$(),t.SpI(" (",t.bMT(13,11,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.R7$(5),t.SpI("",t.i5U(18,13,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.R7$(2),t.Y8G("value",t.mNQ(null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0)),t.R7$(4),t.Y8G("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",n)}}function _e(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",26),t.EFF(1," No channels available. "),t.j41(2,"button",27),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.goToChannels())}),t.EFF(3,"Open Channel"),t.k0s()()}}function ge(i,s){if(1&i&&(t.j41(0,"div",28)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let Ce=(()=>{var i;class s{constructor(n){this.router=n,this.faBalanceScale=E.GR4,this.faDumbbell=E.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,fe,24,16,"div",2)(1,_e,4,0,"ng-template",null,0,t.C5r)(3,ge,3,1,"ng-template",null,1,t.C5r),2&a){const l=t.sdS(4);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.Sq,d.bT,D.aY,N.$z,y.MV,tt.q,H.HM,_.DJ,_.sA,_.UI,Q.oV,B.Ld,W.Wk,d.P9,d.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return i(),s})();const ye=(i,s,e)=>({"mb-4":i,"mb-2":s,"mb-1":e}),be=()=>["../connections/channels/open"],Fe=(i,s)=>({filterColumn:i,filterValue:s});function Ee(i,s){if(1&i&&(t.j41(0,"mat-hint",19)(1,"strong",20),t.EFF(2,"Capacity: "),t.k0s(),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.SpI("",t.i5U(4,1,e.toRemote||0,"1.0-0")," Sats")}}function xe(i,s){if(1&i&&(t.j41(0,"mat-hint",19)(1,"strong",20),t.EFF(2,"Capacity: "),t.k0s(),t.EFF(3),t.nI1(4,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.SpI("",t.i5U(4,1,e.toLocal||0,"1.0-0")," Sats")}}function Le(i,s){if(1&i&&t.nrm(0,"mat-progress-bar",21),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.Y8G("value",t.mNQ(n.totalLiquidity>0?(+e.toRemote||0)/n.totalLiquidity*100:0))}}function ve(i,s){if(1&i&&t.nrm(0,"mat-progress-bar",21),2&i){const e=t.XpG().$implicit,n=t.XpG(3);t.Y8G("value",t.mNQ(n.totalLiquidity>0?(+e.toLocal||0)/n.totalLiquidity*100:0))}}function Se(i,s){if(1&i&&(t.j41(0,"div",14)(1,"a",15),t.EFF(2),t.nI1(3,"slice"),t.k0s(),t.j41(4,"div",16),t.DNE(5,Ee,5,4,"mat-hint",17)(6,xe,5,4,"mat-hint",17),t.k0s(),t.DNE(7,Le,1,2,"mat-progress-bar",18)(8,ve,1,2,"mat-progress-bar",18),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(3);t.R7$(),t.Y8G("matTooltip",t.mNQ(e.alias||e.shortChannelId))("matTooltipDisabled",t.mNQ((e.alias||e.shortChannelId).length<26))("routerLink",t.lJ4(16,be))("state",t.l_i(17,Fe,e.alias?"alias":"shortChannelId",e.alias||e.shortChannelId)),t.R7$(),t.Lme(" ",t.brH(3,12,e.alias||e.shortChannelId||"",0,24),"",(e.alias||e.shortChannelId||"").length>25?"...":""," "),t.R7$(3),t.Y8G("ngIf","In"===n.direction),t.R7$(),t.Y8G("ngIf","Out"===n.direction),t.R7$(),t.Y8G("ngIf","In"===n.direction),t.R7$(),t.Y8G("ngIf","Out"===n.direction)}}function Re(i,s){if(1&i&&(t.j41(0,"div",12),t.DNE(1,Se,9,20,"div",13),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.allChannels)}}function ke(i,s){if(1&i&&(t.j41(0,"div",3)(1,"div",4)(2,"span",5),t.EFF(3,"Total Capacity"),t.k0s(),t.j41(4,"mat-hint",6),t.EFF(5),t.nI1(6,"number"),t.k0s(),t.nrm(7,"mat-progress-bar",7),t.k0s(),t.j41(8,"div",8),t.nrm(9,"mat-divider",9),t.k0s(),t.j41(10,"div",10),t.DNE(11,Re,2,1,"div",11),t.k0s()()),2&i){const e=t.XpG(),n=t.sdS(2);t.Y8G("ngClass",t.sMw(7,ye,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),t.R7$(5),t.SpI("",t.i5U(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.R7$(6),t.Y8G("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",n)}}function Ie(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",24),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.goToChannels())}),t.EFF(1,"Open Channel"),t.k0s()}}function Te(i,s){if(1&i&&(t.j41(0,"div",22),t.EFF(1," No channels available. "),t.DNE(2,Ie,2,0,"button",23),t.k0s()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngIf","Out"===e.direction)}}function we(i,s){if(1&i&&(t.j41(0,"div",25)(1,"p"),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.JRh(e.errorMessage)}}let je=(()=>{var i;class s{constructor(n,a){this.router=n,this.commonService=a,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix),t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(a,o){if(1&a&&t.DNE(0,ke,12,11,"div",2)(1,Te,3,1,"ng-template",null,0,t.C5r)(3,we,3,1,"ng-template",null,1,t.C5r),2&a){const l=t.sdS(4);t.Y8G("ngIf",""===(null==o.errorMessage?null:o.errorMessage.trim()))("ngIfElse",l)}},dependencies:[d.YU,d.Sq,d.bT,N.$z,y.MV,tt.q,H.HM,_.DJ,_.sA,_.UI,S.PW,Q.oV,B.Ld,W.Wk,d.P9,d.QX],encapsulation:2}))}return i(),s})();var Z=C(6697),w=C(6695),v=C(2042),p=C(1676),R=C(6183),X=C(5964),j=C(5428),V=C(1585),ht=C(3017),K=C(1747),nt=C(1534),f=C(9417),Y=C(3746),et=C(9587);const De=["paymentReq"];function Ge(i,s){if(1&i&&(t.j41(0,"span",23),t.nrm(1,"fa-icon",24),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function Pe(i,s){if(1&i&&t.nrm(0,"span",25),2&i){const e=t.XpG(2);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function Ae(i,s){if(1&i&&(t.j41(0,"mat-hint",20),t.EFF(1),t.DNE(2,Ge,2,1,"span",21)(3,Pe,1,1,"span",22),t.EFF(4),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI(" ",e.paymentDecodedHintPre," "),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.SpI(" ",e.paymentDecodedHintPost," ")}}function Ne(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment request is required."),t.k0s())}function Be(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.paymentDecodedHint)}}function Me(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment amount is required."),t.k0s())}function $e(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-form-field",4)(1,"mat-label"),t.EFF(2,"Amount (Sats)"),t.k0s(),t.j41(3,"input",26,2),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.paymentAmount,a)||(o.paymentAmount=a),r.Njj(a)}),t.bIt("change",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onAmountChange(a))}),t.k0s(),t.j41(5,"mat-hint"),t.EFF(6,"It is a zero amount invoice, enter amount to be paid."),t.k0s(),t.DNE(7,Me,2,0,"mat-error",14),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.R50("ngModel",e.paymentAmount),t.R7$(4),t.Y8G("ngIf",!e.paymentAmount)}}function Ve(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.paymentError)}}function Oe(i,s){if(1&i&&(t.j41(0,"div",27),t.nrm(1,"fa-icon",28),t.DNE(2,Ve,2,1,"span",14),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.paymentError)}}let He=(()=>{var i;class s{constructor(n,a,o,l,m,u,T,F){this.dialogRef=n,this.store=a,this.eclEffects=o,this.logger=l,this.commonService=m,this.decimalPipe=u,this.actions=T,this.dataService=F,this.faExclamationTriangle=E.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.feeLimitTypes=c.nv,this.paymentError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.activeChannels=n.activeChannels,this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||n.type===c.Uu.SEND_PAYMENT_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"SendPayment"===n.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=n.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,Z.s)(1)).subscribe({next:n=>{this.paymentDecoded=n,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""))},error:n=>{this.logger.error(n),this.paymentDecodedHintPre="ERROR: "+(n.message?n.message:"string"==typeof n?n:JSON.stringify(n)),this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,j.Fd)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(n){this.paymentRequest=n&&"string"==typeof n?n.trim():n,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,Z.s)(1)).subscribe({next:a=>{this.paymentDecoded=a,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.convertedCurrency=o,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""))},error:a=>{this.logger.error(a),this.paymentDecodedHintPre="ERROR: "+(a.message?a.message:"string"==typeof a?a:JSON.stringify(a)),this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(n){delete this.paymentDecoded.amount,this.paymentDecoded.amount=n}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(I.il),t.rXU(ht.B),t.rXU(A.gP),t.rXU($.h),t.rXU(d.QX),t.rXU(K.En),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(a,o){if(1&a&&t.GBs(De,5),2&a){let l;t.mGM(l=t.lsd())&&(o.paymentReq=l.first)}},standalone:!1,decls:26,vars:7,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["paymentAmt","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),t.EFF(5,"Send Payment"),t.k0s()(),t.j41(6,"button",8),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",9)(9,"form",10,0)(11,"mat-form-field",11)(12,"mat-label"),t.EFF(13,"Payment Request"),t.k0s(),t.j41(14,"textarea",12,1),t.bIt("ngModelChange",function(u){return r.eBV(l),r.Njj(o.onPaymentRequestEntry(u))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),t.k0s(),t.DNE(16,Ae,5,4,"mat-hint",13)(17,Ne,2,0,"mat-error",14)(18,Be,2,1,"mat-error",14),t.k0s(),t.DNE(19,$e,8,2,"mat-form-field",15)(20,Oe,3,2,"div",16),t.j41(21,"div",17)(22,"button",18),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(23,"Clear Fields"),t.k0s(),t.j41(24,"button",19),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onSendPayment())}),t.EFF(25,"Send Payment"),t.k0s()()()()()()}if(2&a){const l=t.sdS(15);t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(8),t.Y8G("ngModel",o.paymentRequest),t.R7$(2),t.Y8G("ngIf",o.paymentRequest&&""!==o.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",!o.paymentRequest),t.R7$(),t.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),t.R7$(),t.Y8G("ngIf",o.zeroAmtInvoice),t.R7$(),t.Y8G("ngIf",""!==o.paymentError)}},dependencies:[d.bT,f.qT,f.me,f.BC,f.cb,f.YS,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,_.DJ,_.sA,_.UI,et.N],encapsulation:2}))}return i(),s})();var U=C(9454);const Ye=["scrollContainer"];function Xe(i,s){if(1&i&&(t.j41(0,"div",9)(1,"div",2)(2,"h4",11),t.EFF(3,"Description"),t.k0s(),t.j41(4,"span",12),t.EFF(5),t.k0s()()()),2&i){const e=t.XpG();t.R7$(5),t.JRh(e.description)}}function Ue(i,s){1&i&&t.nrm(0,"mat-divider",14)}function ze(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-expansion-panel",23),t.bIt("opened",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onExpansionOpen(!0))})("closed",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onExpansionOpen(!1))}),t.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t.EFF(4),t.k0s(),t.j41(5,"h4",25),t.EFF(6),t.nI1(7,"number"),t.k0s()()(),t.j41(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t.EFF(12,"Fees (mSats)"),t.k0s(),t.j41(13,"span",12),t.EFF(14),t.nI1(15,"number"),t.k0s()(),t.j41(16,"div",26)(17,"h4",11),t.EFF(18,"Date/Time"),t.k0s(),t.j41(19,"span",12),t.EFF(20),t.nI1(21,"date"),t.k0s()()(),t.nrm(22,"mat-divider",14),t.j41(23,"div",9)(24,"div",2)(25,"h4",11),t.EFF(26,"ID"),t.k0s(),t.j41(27,"span",27),t.EFF(28),t.k0s()()(),t.nrm(29,"mat-divider",14),t.j41(30,"div",9)(31,"div",2)(32,"h4",11),t.EFF(33,"To Channel"),t.k0s(),t.j41(34,"span",27),t.EFF(35),t.k0s()()()()()}if(2&i){const e=s.$implicit,n=s.index,a=t.XpG();t.Y8G("expanded",a.expansionOpen),t.R7$(4),t.SpI("Part ",n+1),t.R7$(2),t.SpI("",t.bMT(7,7,e.amount)," (Sats)"),t.R7$(8),t.JRh(t.bMT(15,9,e.feesPaid)),t.R7$(6),t.JRh(t.i5U(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.R7$(8),t.JRh(e.id),t.R7$(7),t.JRh(e.toChannelAlias)}}let Je=(()=>{var i;class s{constructor(n,a){this.dialogRef=n,this.data=a,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(n){this.expansionOpen=n}onClose(){this.dialogRef.close(!1)}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(a,o){if(1&a&&t.GBs(Ye,5),2&a){let l;t.mGM(l=t.lsd())&&(o.scrollContainer=l.first)}},standalone:!1,decls:66,vars:15,consts:[["scrollContainer",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"opened","closed","expanded"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Payment Information"),t.k0s()(),t.j41(6,"button",6),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7,0)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t.EFF(14,"Amount (Sats)"),t.k0s(),t.j41(15,"span",12),t.EFF(16),t.nI1(17,"number"),t.k0s()(),t.j41(18,"div",13)(19,"h4",11),t.EFF(20,"Date/Time"),t.k0s(),t.j41(21,"span",12),t.EFF(22),t.nI1(23,"date"),t.k0s()()(),t.nrm(24,"mat-divider",14),t.j41(25,"div",9)(26,"div",2)(27,"h4",11),t.EFF(28,"ID"),t.k0s(),t.j41(29,"span",12),t.EFF(30),t.k0s()()(),t.nrm(31,"mat-divider",14),t.j41(32,"div",9)(33,"div",2)(34,"h4",11),t.EFF(35,"Payment Hash"),t.k0s(),t.j41(36,"span",12),t.EFF(37),t.k0s()()(),t.nrm(38,"mat-divider",14),t.j41(39,"div",9)(40,"div",2)(41,"h4",11),t.EFF(42,"Payment Preimage"),t.k0s(),t.j41(43,"span",12),t.EFF(44),t.k0s()()(),t.nrm(45,"mat-divider",14),t.j41(46,"div",9)(47,"div",2)(48,"h4",11),t.EFF(49,"Recipient Node"),t.k0s(),t.j41(50,"span",12),t.EFF(51),t.k0s()()(),t.nrm(52,"mat-divider",14),t.DNE(53,Xe,6,1,"div",15)(54,Ue,1,0,"mat-divider",16),t.j41(55,"div",9)(56,"div",2)(57,"mat-accordion"),t.DNE(58,ze,36,14,"mat-expansion-panel",17),t.k0s()()()()(),t.j41(59,"div",18)(60,"button",19),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onScrollDown())}),t.j41(61,"mat-icon",20),t.EFF(62,"arrow_downward"),t.k0s()()(),t.j41(63,"div",21)(64,"button",22),t.EFF(65,"OK"),t.k0s()()()()}2&a&&(t.R7$(16),t.JRh(t.bMT(17,10,o.payment.recipientAmount)),t.R7$(6),t.JRh(t.i5U(23,12,o.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.R7$(8),t.JRh(o.payment.id),t.R7$(7),t.JRh(o.payment.paymentHash),t.R7$(7),t.JRh(o.payment.paymentPreimage),t.R7$(7),t.JRh(o.payment.recipientNodeAlias),t.R7$(2),t.Y8G("ngIf",o.description),t.R7$(),t.Y8G("ngIf",o.description),t.R7$(4),t.Y8G("ngForOf",o.payment.parts),t.R7$(6),t.Y8G("mat-dialog-close",!1))},dependencies:[d.Sq,d.bT,V.tx,N.$z,N.$0,x.m2,x.MM,U.BS,U.GK,U.Z2,U.WN,ut.An,tt.q,_.DJ,_.sA,_.UI,B.Ld,d.QX,d.vh],encapsulation:2}))}return i(),s})();var k=C(1771),lt=C(7541),q=C(2929),z=C(3029);const qe=["sendPaymentForm"],Qe=()=>["all"],Ze=i=>({"error-border":i}),We=()=>["no_payment"],O=i=>({width:i}),Ke=i=>({"display-none":i});function tn(i,s){if(1&i&&(t.j41(0,"span",18),t.nrm(1,"fa-icon",19),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function en(i,s){if(1&i&&t.nrm(0,"span",20),2&i){const e=t.XpG(3);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function nn(i,s){if(1&i&&(t.j41(0,"mat-hint",15),t.EFF(1),t.DNE(2,tn,2,1,"span",16)(3,en,1,1,"span",17),t.EFF(4),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI(" ",e.paymentDecodedHintPre," "),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),t.R7$(),t.SpI(" ",e.paymentDecodedHintPost," ")}}function an(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Payment request is required."),t.k0s())}function on(i,s){if(1&i){const e=t.RV6();t.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),t.EFF(4,"Payment Request"),t.k0s(),t.j41(5,"textarea",9,1),t.bIt("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onPaymentRequestEntry(a))})("matTextareaAutosize",function(){return r.eBV(e),r.Njj(!0)}),t.k0s(),t.DNE(7,nn,5,4,"mat-hint",10)(8,an,2,0,"mat-error",11),t.k0s(),t.j41(9,"div",12)(10,"button",13),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.resetData())}),t.EFF(11,"Clear Field"),t.k0s(),t.j41(12,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSendPayment())}),t.EFF(13,"Send Payment"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(5),t.Y8G("ngModel",e.paymentRequest),t.R7$(2),t.Y8G("ngIf",e.paymentRequest&&""!==e.paymentDecodedHintPre),t.R7$(),t.Y8G("ngIf",!e.paymentRequest)}}function sn(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",21)(1,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.openSendPaymentModal())}),t.EFF(2,"Send Payment"),t.k0s()()}}function ln(i,s){if(1&i&&(t.j41(0,"mat-option",66),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function rn(i,s){1&i&&t.nrm(0,"mat-progress-bar",67)}function cn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Date/Time"),t.k0s())}function mn(i,s){if(1&i&&(t.j41(0,"td",69),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function pn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"ID"),t.k0s())}function un(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.id)}}function dn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Destination Node ID"),t.k0s())}function hn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeId)}}function fn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Destination"),t.k0s())}function _n(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeAlias)}}function gn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Description"),t.k0s())}function Cn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description)}}function yn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Payment Hash"),t.k0s())}function bn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function Fn(i,s){1&i&&(t.j41(0,"th",68),t.EFF(1,"Preimage"),t.k0s())}function En(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",70)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentPreimage)}}function xn(i,s){1&i&&(t.j41(0,"th",72),t.EFF(1,"Amount (Sats)"),t.k0s())}function Ln(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",73),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.recipientAmount))}}function vn(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",74)(1,"div",75)(2,"mat-select",76),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",77),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function Sn(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",78)(1,"button",79),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onPaymentClick(a))}),t.EFF(2,"View Info"),t.k0s()()}}function Rn(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No payment available."),t.k0s())}function kn(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting payments..."),t.k0s())}function In(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function Tn(i,s){if(1&i&&(t.j41(0,"td",80),t.DNE(1,Rn,2,0,"p",11)(2,kn,2,0,"p",11)(3,In,2,1,"p",11),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function wn(i,s){if(1&i&&(t.j41(0,"span",81),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function jn(i,s){if(1&i&&(t.qex(0),t.DNE(1,wn,3,4,"span",82),t.bVm()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Dn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",81),t.EFF(2),t.k0s(),t.DNE(3,jn,2,1,"ng-container",11),t.k0s()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" Total Attempts: ",(null==e||null==e.parts?null:e.parts.length)||0," "),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Gn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.id)}}function Pn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Gn,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function An(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Pn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.id),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Nn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.toChannelId)}}function Bn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Nn,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Mn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Bn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeId),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function $n(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(2,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.toChannelAlias)}}function Vn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,$n,4,4,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function On(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Vn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.recipientNodeAlias),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Hn(i,s){if(1&i&&(t.j41(0,"span",84),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,e.amount,"1.0-0")," ")}}function Yn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Hn,3,4,"span",85),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Xn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"span",84),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.DNE(4,Yn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.i5U(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.R7$(2),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Un(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function zn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Un,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Jn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,zn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function qn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Qn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,qn,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function Zn(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Qn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function Wn(i,s){if(1&i&&(t.j41(0,"span",81)(1,"span",83)(2,"span",71),t.EFF(3),t.nI1(4,"number"),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngStyle",t.eq3(5,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.SpI("Fee Paid: ",t.i5U(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Kn(i,s){if(1&i&&(t.j41(0,"span"),t.DNE(1,Wn,5,7,"span",82),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function ti(i,s){if(1&i&&(t.j41(0,"td",69)(1,"div",83)(2,"span",71),t.EFF(3),t.k0s()(),t.DNE(4,Kn,2,1,"span",11),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(3,O,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentPreimage),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function ei(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",89)(1,"button",90),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onPartClick(a,o))}),t.EFF(2),t.k0s()()}if(2&i){const e=s.index;t.R7$(2),t.SpI("View ",e+1)}}function ni(i,s){if(1&i&&(t.j41(0,"div"),t.DNE(1,ei,3,1,"div",88),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.Y8G("ngForOf",null==e?null:e.parts)}}function ii(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",69)(1,"span",86)(2,"button",87),t.bIt("click",function(){const a=r.eBV(e).$implicit;return r.Njj(a.is_expanded=!a.is_expanded)}),t.EFF(3),t.k0s()(),t.DNE(4,ni,2,1,"div",11),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(3),t.JRh(null!=e&&e.is_expanded?"Hide":"Show"),t.R7$(),t.Y8G("ngIf",null==e?null:e.is_expanded)}}function ai(i,s){1&i&&t.nrm(0,"tr",91)}function oi(i,s){if(1&i&&t.nrm(0,"tr",92),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Ke,(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function si(i,s){1&i&&t.nrm(0,"tr",93)}function li(i,s){1&i&&t.nrm(0,"tr",91)}function ri(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",22)(1,"div",23)(2,"div",24),t.nrm(3,"fa-icon",25),t.j41(4,"span",26),t.EFF(5,"Payments History"),t.k0s()(),t.j41(6,"div",27)(7,"mat-form-field",28)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",29),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,ln,2,2,"mat-option",30),t.k0s()()(),t.j41(13,"mat-form-field",28)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",31),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()(),t.j41(17,"div",32)(18,"div",33),t.DNE(19,rn,1,0,"mat-progress-bar",34),t.j41(20,"table",35,2),t.qex(22,36),t.DNE(23,cn,2,0,"th",37)(24,mn,3,4,"td",38),t.bVm(),t.qex(25,39),t.DNE(26,pn,2,0,"th",37)(27,un,4,4,"td",38),t.bVm(),t.qex(28,40),t.DNE(29,dn,2,0,"th",37)(30,hn,4,4,"td",38),t.bVm(),t.qex(31,41),t.DNE(32,fn,2,0,"th",37)(33,_n,4,4,"td",38),t.bVm(),t.qex(34,42),t.DNE(35,gn,2,0,"th",37)(36,Cn,4,4,"td",38),t.bVm(),t.qex(37,43),t.DNE(38,yn,2,0,"th",37)(39,bn,4,4,"td",38),t.bVm(),t.qex(40,44),t.DNE(41,Fn,2,0,"th",37)(42,En,4,4,"td",38),t.bVm(),t.qex(43,45),t.DNE(44,xn,2,0,"th",46)(45,Ln,4,3,"td",38),t.bVm(),t.qex(46,47),t.DNE(47,vn,6,0,"th",48)(48,Sn,3,0,"td",49),t.bVm(),t.qex(49,50),t.DNE(50,Tn,4,3,"td",51),t.bVm(),t.qex(51,52),t.DNE(52,Dn,4,2,"td",38),t.bVm(),t.qex(53,53),t.DNE(54,An,5,5,"td",38),t.bVm(),t.qex(55,54),t.DNE(56,Mn,5,5,"td",38),t.bVm(),t.qex(57,55),t.DNE(58,On,5,5,"td",38),t.bVm(),t.qex(59,56),t.DNE(60,Xn,5,5,"td",38),t.bVm(),t.qex(61,57),t.DNE(62,Jn,5,5,"td",38),t.bVm(),t.qex(63,58),t.DNE(64,Zn,5,5,"td",38),t.bVm(),t.qex(65,59),t.DNE(66,ti,5,5,"td",38),t.bVm(),t.qex(67,60),t.DNE(68,ii,5,2,"td",38),t.bVm(),t.DNE(69,ai,1,0,"tr",61)(70,oi,1,3,"tr",62)(71,si,1,0,"tr",63)(72,li,1,0,"tr",64),t.k0s()()(),t.nrm(73,"mat-paginator",65),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.Y8G("icon",e.faHistory),t.R7$(7),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(17,Qe).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter),t.R7$(3),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.payments)("ngClass",t.eq3(18,Ze,""!==e.errorMessage)),t.R7$(49),t.Y8G("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.R7$(),t.Y8G("matFooterRowDef",t.lJ4(20,We)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let It=(()=>{var i;class s{constructor(n,a,o,l,m,u,T,F){this.logger=n,this.commonService=a,this.store=o,this.rtlEffects=l,this.decimalPipe=m,this.dataService=u,this.datePipe=T,this.camelCaseWithSpaces=F,this.calledFrom="transactions",this.convertedCurrency=null,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:c.md,sortBy:"firstPartTimestamp",sortOrder:c.oi.DESCENDING},this.faHistory=E.Int,this.newlyAddedPayment="",this.information={},this.payments=new p.I6([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(a=>this.partColumns.push("group_"+a)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.CK)({payload:{count:1e6,skip:0}}))),this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=n.payments&&n.payments.sent&&n.payments.sent.length>0?n.payments.sent:[],this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(n)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.payments.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.firstPartTimestamp?this.datePipe.transform(new Date(n.firstPartTimestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"firstPartTimestamp":o=this.datePipe.transform(new Date(n.firstPartTimestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadPaymentsTable(n){this.payments=new p.I6(n?[...n]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(a,o)=>{switch(o){case"firstPartTimestamp":return this.commonService.sortByKey(a.parts,"timestamp","number",this.sort?.direction),a.firstPartTimestamp;case"id":return this.commonService.sortByKey(a.parts,"id","string",this.sort?.direction),a.id;case"recipientNodeAlias":return this.commonService.sortByKey(a.parts,"toChannelAlias","string",this.sort?.direction),a.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(a.parts,"amount","number",this.sort?.direction),a.recipientAmount;default:return a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null}},this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,Z.s)(1)).subscribe(n=>{this.paymentDecoded=n,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:c.UN.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:c.UN.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,Z.s)(1)).subscribe(a=>{a&&(this.store.dispatch((0,j.Fd)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:c.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:c.UN.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:c.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,Z.s)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,j.Fd)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(n){this.paymentRequest=n,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,Z.s)(1)).subscribe(a=>{this.paymentDecoded=a,this.paymentDecoded.amount?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:o=>{this.convertedCurrency=o,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}openSendPaymentModal(){this.store.dispatch((0,k.xO)({payload:{data:{component:He}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(n,a){return a.parts&&a.parts.length>1}onPaymentClick(n){n.paymentHash&&""!==n.paymentHash.trim()?this.dataService.decodePayments(n.paymentHash).pipe((0,Z.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showPaymentView(n,a.length&&a.length>0?a[0]:[])},0)},error:a=>{this.showPaymentView(n,[])}}):this.showPaymentView(n,[])}showPaymentView(n,a){this.store.dispatch((0,k.xO)({payload:{data:{sentPaymentInfo:a,payment:n,component:Je}}}))}onPartClick(n,a){a.paymentHash&&""!==a.paymentHash.trim()?this.dataService.decodePayments(a.paymentHash).pipe((0,Z.s)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(n,a,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(n,a,[])}}):this.showPartView(n,a,[])}showPartView(n,a,o){const l=[[{key:"paymentHash",value:a.paymentHash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"paymentPreimage",value:a.paymentPreimage,title:"Payment Preimage",width:100,type:c.UN.STRING}],[{key:"toChannelId",value:n.toChannelId,title:"Channel",width:100,type:c.UN.STRING}],[{key:"id",value:n.id,title:"Part ID",width:50,type:c.UN.STRING},{key:"timestamp",value:n.timestamp,title:"Time",width:50,type:c.UN.DATE_TIME}],[{key:"amount",value:n.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER},{key:"feesPaid",value:n.feesPaid,title:"Fee (Sats)",width:50,type:c.UN.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&l.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:c.UN.STRING}]),this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Payment Part Information",message:l}}}))}onPageChange(n){this.store.dispatch((0,j.CK)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const n=JSON.parse(JSON.stringify(this.payments.data)),a=n?.reduce((o,l)=>(l.paymentHash&&""!==l.paymentHash.trim()&&(o=""===o?l.paymentHash:o+","+l.paymentHash),o),"");this.dataService.decodePayments(a).pipe((0,g.Q)(this.unSubs[5])).subscribe(o=>{o.forEach((m,u)=>{m.length>0&&m[0].paymentRequest&&m[0].paymentRequest.description&&""!==m[0].paymentRequest.description&&(n[u].description=m[0].paymentRequest.description)});const l=n?.reduce((m,u)=>m.concat(u),[]);this.commonService.downloadFile(l,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(lt.H),t.rXU(d.QX),t.rXU(nt.u),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(a,o){if(1&a&&(t.GBs(qe,5),t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first),t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["class","part-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"part-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",3),t.DNE(1,on,14,3,"form",4)(2,sn,3,0,"div",5)(3,ri,74,21,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf","home"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.BC,f.cb,f.YS,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,y.MV,y.TL,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.ZF,B.Ld,d.QX,d.vh],styles:[".mat-column-group_actions[_ngcontent-%COMP%] .part-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .part-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.part-row-span[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:11rem}"]}))}return i(),s})();var it=C(6114);function ci(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Description is required."),t.k0s())}function mi(i,s){1&i&&(t.j41(0,"span",29),t.EFF(1,"= "),t.k0s())}function pi(i,s){if(1&i&&(t.j41(0,"span",30),t.nrm(1,"fa-icon",31),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function ui(i,s){if(1&i&&t.nrm(0,"span",32),2&i){const e=t.XpG();t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function di(i,s){if(1&i&&(t.j41(0,"mat-option",33),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(t.bMT(2,2,e))}}function hi(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.invoiceError)}}function fi(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.DNE(2,hi,2,1,"span",11),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.invoiceError)}}let _i=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.dialogRef=n,this.data=a,this.store=o,this.decimalPipe=l,this.commonService=m,this.actions=u,this.faExclamationTriangle=E.zpE,this.convertedCurrency=null,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.timeUnitEnum=c.F7,this.timeUnits=c.SY,this.selTimeUnit=c.F7.SECS,this.invoiceError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===n.payload.action&&(n.payload.status===c.wn.ERROR&&(this.invoiceError=n.payload.message),n.payload.status===c.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(n){if(this.invoiceError="",!this.description)return!0;let a=this.expiry?this.expiry:c.It;this.expiry&&this.selTimeUnit!==c.F7.SECS&&(a=this.commonService.convertTime(this.expiry,this.selTimeUnit,c.F7.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,j.iO)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=c.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:n=>{this.convertedCurrency=n,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:n=>{this.invoiceValueHint="Conversion Error: "+n}}))}onTimeUnitChange(n){this.expiry&&this.selTimeUnit!==n.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,n.value)),this.selTimeUnit=n.value}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(d.QX),t.rXU($.h),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-create-invoices"]],standalone:!1,decls:46,vars:19,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","name","description","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","type","number","name","exp",3,"ngModelChange","step","min","ngModel"],["fxLayout","column","fxFlex","26"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Create Invoice"),t.k0s()(),t.j41(6,"button",6),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),t.EFF(13,"Description"),t.k0s(),t.j41(14,"input",10),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.description,u)||(o.description=u),r.Njj(u)}),t.k0s(),t.DNE(15,ci,2,0,"mat-error",11),t.k0s(),t.j41(16,"div",12)(17,"mat-form-field",13)(18,"mat-label"),t.EFF(19,"Amount"),t.k0s(),t.j41(20,"input",14),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.invoiceValue,u)||(o.invoiceValue=u),r.Njj(u)}),t.bIt("keyup",function(){return r.eBV(l),r.Njj(o.onInvoiceValueChange())}),t.k0s(),t.j41(21,"span",15),t.EFF(22,"Sats "),t.k0s(),t.j41(23,"mat-hint",16),t.DNE(24,mi,2,0,"span",17)(25,pi,2,1,"span",18)(26,ui,1,1,"span",19),t.EFF(27),t.k0s()(),t.j41(28,"mat-form-field",20)(29,"mat-label"),t.EFF(30,"Expiry"),t.k0s(),t.j41(31,"input",21),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.expiry,u)||(o.expiry=u),r.Njj(u)}),t.k0s(),t.j41(32,"span",15),t.EFF(33),t.nI1(34,"titlecase"),t.k0s()(),t.j41(35,"mat-form-field",22)(36,"mat-label"),t.EFF(37,"Time Unit"),t.k0s(),t.j41(38,"mat-select",23),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.onTimeUnitChange(u))}),t.DNE(39,di,3,4,"mat-option",24),t.k0s()()(),t.DNE(40,fi,3,2,"div",25),t.j41(41,"div",26)(42,"button",27),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(43,"Clear Field"),t.k0s(),t.j41(44,"button",28),t.bIt("click",function(){r.eBV(l);const u=t.sdS(10);return r.Njj(o.onAddInvoice(u))}),t.EFF(45,"Create Invoice"),t.k0s()()()()()()}2&a&&(t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(8),t.R50("ngModel",o.description),t.R7$(),t.Y8G("ngIf",!o.description),t.R7$(5),t.Y8G("step",100)("min",1),t.R50("ngModel",o.invoiceValue),t.R7$(4),t.Y8G("ngIf",""!==o.invoiceValueHint),t.R7$(),t.Y8G("ngIf",o.convertedCurrency&&"FA"===o.convertedCurrency.iconType&&""!==o.invoiceValueHint),t.R7$(),t.Y8G("ngIf",o.convertedCurrency&&"SVG"===o.convertedCurrency.iconType&&""!==o.invoiceValueHint),t.R7$(),t.SpI(" ",o.invoiceValueHint," "),t.R7$(4),t.Y8G("step",o.selTimeUnit===o.timeUnitEnum.SECS?300:o.selTimeUnit===o.timeUnitEnum.MINS?10:o.selTimeUnit===o.timeUnitEnum.HOURS?2:1)("min",1),t.R50("ngModel",o.expiry),t.R7$(2),t.SpI("",t.bMT(34,17,o.selTimeUnit)," "),t.R7$(5),t.Y8G("value",o.selTimeUnit),t.R7$(),t.Y8G("ngForOf",o.timeUnits),t.R7$(),t.Y8G("ngIf",""!==o.invoiceError))},dependencies:[d.Sq,d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,_.DJ,_.sA,_.UI,R.VO,z.wT,et.N,it.V,d.PV],encapsulation:2}))}return i(),s})();var gi=C(6439);const Ci=()=>["all"],yi=i=>({"error-border":i}),bi=()=>["no_invoice"],ft=i=>({"mr-0":i}),_t=i=>({width:i}),Fi=i=>({"display-none":i});function Ei(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Description is required."),t.k0s())}function xi(i,s){1&i&&(t.j41(0,"span",21),t.EFF(1,"= "),t.k0s())}function Li(i,s){if(1&i&&(t.j41(0,"span",22),t.nrm(1,"fa-icon",23),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.convertedCurrency.symbol)}}function vi(i,s){if(1&i&&t.nrm(0,"span",24),2&i){const e=t.XpG(2);t.Y8G("innerHTML",e.convertedCurrency.symbol,t.npT)}}function Si(i,s){if(1&i){const e=t.RV6();t.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),t.EFF(4,"Description"),t.k0s(),t.j41(5,"input",9),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.description,a)||(o.description=a),r.Njj(a)}),t.k0s(),t.DNE(6,Ei,2,0,"mat-error",10),t.k0s(),t.j41(7,"mat-form-field",11)(8,"mat-label"),t.EFF(9,"Amount"),t.k0s(),t.j41(10,"input",12,1),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.invoiceValue,a)||(o.invoiceValue=a),r.Njj(a)}),t.bIt("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onInvoiceValueChange())}),t.k0s(),t.j41(12,"span",13),t.EFF(13,"Sats "),t.k0s(),t.j41(14,"mat-hint",14),t.DNE(15,xi,2,0,"span",15)(16,Li,2,1,"span",16)(17,vi,1,1,"span",17),t.EFF(18),t.k0s()(),t.j41(19,"div",18)(20,"button",19),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.resetData())}),t.EFF(21,"Clear Field"),t.k0s(),t.j41(22,"button",20),t.bIt("click",function(){r.eBV(e);const a=t.sdS(1),o=t.XpG();return r.Njj(o.onAddInvoice(a))}),t.EFF(23,"Create Invoice"),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(5),t.R50("ngModel",e.description),t.R7$(),t.Y8G("ngIf",!e.description),t.R7$(4),t.Y8G("step",100)("min",1),t.R50("ngModel",e.invoiceValue),t.R7$(5),t.Y8G("ngIf",""!==e.invoiceValueHint),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),t.R7$(),t.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),t.R7$(),t.SpI(" ",e.invoiceValueHint," ")}}function Ri(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",25)(1,"button",26),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.openCreateInvoiceModal())}),t.EFF(2,"Create Invoice"),t.k0s()()}}function ki(i,s){if(1&i&&(t.j41(0,"mat-option",63),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Ii(i,s){1&i&&t.nrm(0,"mat-progress-bar",64)}function Ti(i,s){1&i&&t.nrm(0,"th",65)}function wi(i,s){if(1&i&&t.nrm(0,"span",70),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function ji(i,s){if(1&i&&t.nrm(0,"span",71),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function Di(i,s){if(1&i&&t.nrm(0,"span",72),2&i){const e=t.XpG(3);t.Y8G("ngClass",t.eq3(1,ft,e.screenSize===e.screenSizeEnum.XS))}}function Gi(i,s){if(1&i&&(t.j41(0,"td",66),t.DNE(1,wi,1,3,"span",67)(2,ji,1,3,"span",68)(3,Di,1,3,"span",69),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","received"===(null==e?null:e.status)),t.R7$(),t.Y8G("ngIf","unpaid"===(null==e?null:e.status)),t.R7$(),t.Y8G("ngIf",!(null!=e&&e.status)||"expired"===(null==e?null:e.status)||"unknown"===(null==e?null:e.status))}}function Pi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Created"),t.k0s())}function Ai(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Ni(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Expiry"),t.k0s())}function Bi(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.expiresAt),"dd/MMM/y HH:mm")||"-")}}function Mi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Date Settled"),t.k0s())}function $i(i,s){if(1&i&&(t.j41(0,"td",66),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.receivedAt),"dd/MMM/y HH:mm")||"-")}}function Vi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Node ID"),t.k0s())}function Oi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Hi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Description"),t.k0s())}function Yi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.description)}}function Xi(i,s){1&i&&(t.j41(0,"th",73),t.EFF(1,"Payment Hash"),t.k0s())}function Ui(i,s){if(1&i&&(t.j41(0,"td",66)(1,"div",74)(2,"span",75),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,_t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function zi(i,s){1&i&&(t.j41(0,"th",76),t.EFF(1,"Amount (Sats)"),t.k0s())}function Ji(i,s){if(1&i&&(t.j41(0,"td",66)(1,"span",77),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(null!=e&&e.amount?t.i5U(3,1,null==e?null:e.amount,"1.0-0"):"-")}}function qi(i,s){1&i&&(t.j41(0,"th",78),t.EFF(1," Amount Settled (Sats)"),t.k0s())}function Qi(i,s){if(1&i&&(t.j41(0,"td",66)(1,"span",77),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(null!=e&&e.amountSettled?t.i5U(3,1,null==e?null:e.amountSettled,"1.0-0"):"-")}}function Zi(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",79)(1,"div",80)(2,"mat-select",81),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",82),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function Wi(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",83)(1,"div",80)(2,"mat-select",84),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",82),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onInvoiceClick(a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",82),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onRefreshInvoice(a))}),t.EFF(7,"Refresh"),t.k0s()()()()}}function Ki(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No invoice available."),t.k0s())}function ta(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting invoices..."),t.k0s())}function ea(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function na(i,s){if(1&i&&(t.j41(0,"td",85),t.DNE(1,Ki,2,0,"p",10)(2,ta,2,0,"p",10)(3,ea,2,1,"p",10),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function ia(i,s){if(1&i&&t.nrm(0,"tr",86),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Fi,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function aa(i,s){1&i&&t.nrm(0,"tr",87)}function oa(i,s){1&i&&t.nrm(0,"tr",88)}function sa(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",27)(1,"div",28)(2,"div",29),t.nrm(3,"fa-icon",30),t.j41(4,"span",31),t.EFF(5,"Invoices History"),t.k0s()(),t.j41(6,"div",32)(7,"mat-form-field",33)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",34),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,ki,2,2,"mat-option",35),t.k0s()()(),t.j41(13,"mat-form-field",33)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",36),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()(),t.j41(17,"div",37),t.DNE(18,Ii,1,0,"mat-progress-bar",38),t.j41(19,"table",39,2),t.qex(21,40),t.DNE(22,Ti,1,0,"th",41)(23,Gi,4,3,"td",42),t.bVm(),t.qex(24,43),t.DNE(25,Pi,2,0,"th",44)(26,Ai,3,4,"td",42),t.bVm(),t.qex(27,45),t.DNE(28,Ni,2,0,"th",44)(29,Bi,3,4,"td",42),t.bVm(),t.qex(30,46),t.DNE(31,Mi,2,0,"th",44)(32,$i,3,4,"td",42),t.bVm(),t.qex(33,47),t.DNE(34,Vi,2,0,"th",44)(35,Oi,4,4,"td",42),t.bVm(),t.qex(36,48),t.DNE(37,Hi,2,0,"th",44)(38,Yi,4,4,"td",42),t.bVm(),t.qex(39,49),t.DNE(40,Xi,2,0,"th",44)(41,Ui,4,4,"td",42),t.bVm(),t.qex(42,50),t.DNE(43,zi,2,0,"th",51)(44,Ji,4,4,"td",42),t.bVm(),t.qex(45,52),t.DNE(46,qi,2,0,"th",53)(47,Qi,4,4,"td",42),t.bVm(),t.qex(48,54),t.DNE(49,Zi,6,0,"th",55)(50,Wi,8,0,"td",56),t.bVm(),t.qex(51,57),t.DNE(52,na,4,3,"td",58),t.bVm(),t.DNE(53,ia,1,3,"tr",59)(54,aa,1,0,"tr",60)(55,oa,1,0,"tr",61),t.k0s()(),t.nrm(56,"mat-paginator",62),t.k0s()}if(2&i){const e=t.XpG();t.R7$(3),t.Y8G("icon",e.faHistory),t.R7$(7),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,Ci).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter),t.R7$(2),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.invoices)("ngClass",t.eq3(16,yi,""!==e.errorMessage)),t.R7$(34),t.Y8G("matFooterRowDef",t.lJ4(18,bi)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Tt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.logger=n,this.store=a,this.decimalPipe=o,this.commonService=l,this.datePipe=m,this.actions=u,this.camelCaseWithSpaces=T,this.calledFrom="transactions",this.faHistory=E.Int,this.convertedCurrency=null,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:c.md,sortBy:"expiresAt",sortOrder:c.oi.DESCENDING},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new p.I6([]),this.invoiceJSONArr=[],this.information={},this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.Do)({payload:{count:1e6,skip:0}}))),this.logger.info(this.displayedColumns)}),this.store.select(b.rN).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=n.invoices&&n.invoices.length>0?n.invoices:[],this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,X.p)(n=>n.type===c.Uu.SET_LOOKUP_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.SET_LOOKUP_ECL&&this.invoiceJSONArr&&this.sort&&this.paginator&&n.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(n.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,k.xO)({payload:{data:{pageSize:this.pageSize,component:_i}}}))}onAddInvoice(n){if(!this.description)return!0;const a=this.expiry?this.expiry:c.It;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:a,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:a},this.store.dispatch((0,j.iO)({payload:o})),this.resetData()}onInvoiceClick(n){this.store.dispatch((0,k.xO)({payload:{data:{invoice:n,newlyAdded:!1,component:gi.Z}}}))}onRefreshInvoice(n){this.store.dispatch((0,j.Yi)({payload:n.paymentHash}))}updateInvoicesData(n){this.invoiceJSONArr=this.invoiceJSONArr?.map(a=>a.paymentHash===n.paymentHash?n:a)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.invoices.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(1e3*n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"status":o=n?.status&&"expired"!==n?.status&&"unknown"!==n?.status?n.status?.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":o=this.datePipe.transform(new Date(1e3*(n[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"amount":case"amountSettled":o=n[this.selFilterBy]?.toString()||"-";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===o.indexOf(a):o.includes(a)}}loadInvoicesTable(n){this.invoices=new p.I6(n?[...n]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:n=>{this.convertedCurrency=n,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:n=>{this.invoiceValueHint="Conversion Error: "+n}}))}onPageChange(n){this.store.dispatch((0,j.Do)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(d.QX),t.rXU($.h),t.rXU(d.vh),t.rXU(K.En),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["invcVal","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","tabindex","2","name","description","required","true",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","3","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",3),t.DNE(1,Si,24,9,"form",4)(2,Ri,3,0,"div",5)(3,sa,57,19,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf","home"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom),t.R7$(),t.Y8G("ngIf","transactions"===o.calledFrom))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,it.V,d.QX,d.vh],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const wt=i=>({"dashboard-card-content":!0,"error-border":i}),la=i=>({"p-0":i});function ra(i,s){if(1&i&&(t.j41(0,"button",28)(1,"mat-icon"),t.EFF(2,"more_vert"),t.k0s()()),2&i){t.XpG();const e=t.sdS(11);t.Y8G("matMenuTriggerFor",e)}}function ca(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG().$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function ma(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){r.eBV(e);const a=t.XpG(3);return r.Njj(a.onsortChannelsBy())}),t.EFF(1),t.k0s()}if(2&i){const e=t.XpG(3);t.R7$(),t.SpI("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score")}}function pa(i,s){1&i&&t.nrm(0,"mat-progress-bar",30)}function ua(i,s){if(1&i&&t.nrm(0,"rtl-ecl-node-info",31),2&i){const e=t.XpG(3);t.Y8G("information",e.information)("showColorFieldSeparately",!1)}}function da(i,s){if(1&i&&t.nrm(0,"rtl-ecl-balances-info",32),2&i){const e=t.XpG(3);t.Y8G("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function ha(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-capacity-info",33),2&i){const e=t.XpG(3);t.Y8G("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function fa(i,s){if(1&i&&t.nrm(0,"rtl-ecl-fee-info",34),2&i){const e=t.XpG(3);t.Y8G("fees",e.fees)("errorMessage",e.errorMessages[1])}}function _a(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-status-info",35),2&i){const e=t.XpG(3);t.Y8G("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function ga(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find information!"),t.k0s())}function Ca(i,s){if(1&i&&(t.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),t.nrm(5,"fa-icon",14),t.j41(6,"span"),t.EFF(7),t.k0s()(),t.j41(8,"div"),t.DNE(9,ra,3,1,"button",15),t.j41(10,"mat-menu",16,1),t.DNE(12,ca,2,1,"button",17)(13,ma,2,1,"button",18),t.k0s()()()(),t.j41(14,"mat-card-content",19),t.DNE(15,pa,1,0,"mat-progress-bar",20),t.j41(16,"div",21),t.DNE(17,ua,1,2,"rtl-ecl-node-info",22)(18,da,1,2,"rtl-ecl-balances-info",23)(19,ha,1,4,"rtl-ecl-channel-capacity-info",24)(20,fa,1,2,"rtl-ecl-fee-info",25)(21,_a,1,2,"rtl-ecl-channel-status-info",26)(22,ga,2,0,"h3",27),t.k0s()()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("colspan",e.cols)("rowspan",e.rows),t.R7$(5),t.Y8G("icon",e.icon),t.R7$(2),t.JRh(e.title),t.R7$(2),t.Y8G("ngIf",e.links[0]),t.R7$(3),t.Y8G("ngForOf",e.goToOptions),t.R7$(),t.Y8G("ngIf","capacity"===e.id),t.R7$(),t.Y8G("fxFlex",t.mNQ("capacity"===e.id?90:70))("ngClass",t.eq3(17,wt,"node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||"fee"===e.id&&n.apiCallStatusFees.status===n.apiCallStatusEnum.ERROR)),t.R7$(),t.Y8G("ngIf","node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||"fee"===e.id&&n.apiCallStatusFees.status===n.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngSwitch",e.id),t.R7$(),t.Y8G("ngSwitchCase","node"),t.R7$(),t.Y8G("ngSwitchCase","balance"),t.R7$(),t.Y8G("ngSwitchCase","capacity"),t.R7$(),t.Y8G("ngSwitchCase","fee"),t.R7$(),t.Y8G("ngSwitchCase","status")}}function ya(i,s){if(1&i&&(t.j41(0,"div",5)(1,"div",6),t.nrm(2,"fa-icon",7),t.j41(3,"span",8),t.EFF(4),t.k0s()(),t.j41(5,"mat-grid-list",9),t.DNE(6,Ca,23,19,"mat-grid-tile",10),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.R7$(2),t.JRh(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.R7$(),t.Y8G("rowHeight",e.operatorCardHeight),t.R7$(),t.Y8G("ngForOf",e.operatorCards)}}function ba(i,s){if(1&i&&(t.j41(0,"button",28)(1,"mat-icon"),t.EFF(2,"more_vert"),t.k0s()()),2&i){t.XpG();const e=t.sdS(9);t.Y8G("matMenuTriggerFor",e)}}function Fa(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Ea(i,s){if(1&i&&(t.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),t.nrm(3,"fa-icon",14),t.j41(4,"span"),t.EFF(5),t.k0s()(),t.j41(6,"div"),t.DNE(7,ba,3,1,"button",15),t.j41(8,"mat-menu",16,2),t.DNE(10,Fa,2,1,"button",17),t.k0s()()()()),2&i){const e=t.XpG().$implicit;t.R7$(3),t.Y8G("icon",e.icon),t.R7$(2),t.JRh(e.title),t.R7$(2),t.Y8G("ngIf",e.links[0]),t.R7$(3),t.Y8G("ngForOf",e.goToOptions)}}function xa(i,s){1&i&&t.nrm(0,"mat-progress-bar",30)}function La(i,s){if(1&i&&t.nrm(0,"rtl-ecl-node-info",45),2&i){const e=t.XpG(3);t.Y8G("information",e.information)}}function va(i,s){if(1&i&&t.nrm(0,"rtl-ecl-balances-info",32),2&i){const e=t.XpG(3);t.Y8G("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Sa(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-liquidity-info",46),2&i){const e=t.XpG(3);t.Y8G("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function Ra(i,s){if(1&i&&t.nrm(0,"rtl-ecl-channel-liquidity-info",47),2&i){const e=t.XpG(3);t.Y8G("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function ka(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",29),t.bIt("click",function(){const a=r.eBV(e).index,o=t.XpG(2).$implicit,l=t.XpG(2);return r.Njj(l.onNavigateTo(o.links[a]))}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Ia(i,s){if(1&i&&(t.j41(0,"span",48)(1,"mat-tab-group",49)(2,"mat-tab",50),t.nrm(3,"rtl-ecl-lightning-invoices",51),t.k0s(),t.j41(4,"mat-tab",52),t.nrm(5,"rtl-ecl-lightning-payments",53),t.k0s()(),t.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),t.EFF(9,"more_vert"),t.k0s()(),t.j41(10,"mat-menu",16,3),t.DNE(12,ka,2,1,"button",17),t.k0s()()()),2&i){const e=t.sdS(11),n=t.XpG().$implicit;t.R7$(7),t.Y8G("matMenuTriggerFor",e),t.R7$(5),t.Y8G("ngForOf",n.goToOptions)}}function Ta(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find information!"),t.k0s())}function wa(i,s){if(1&i&&(t.j41(0,"mat-grid-tile",11)(1,"mat-card",38),t.DNE(2,Ea,11,4,"mat-card-header",39),t.j41(3,"mat-card-content",40),t.DNE(4,xa,1,0,"mat-progress-bar",20),t.j41(5,"div",21),t.DNE(6,La,1,1,"rtl-ecl-node-info",41)(7,va,1,2,"rtl-ecl-balances-info",23)(8,Sa,1,3,"rtl-ecl-channel-liquidity-info",42)(9,Ra,1,3,"rtl-ecl-channel-liquidity-info",43)(10,Ia,13,2,"span",44)(11,Ta,2,0,"h3",27),t.k0s()()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("colspan",e.cols)("rowspan",e.rows),t.R7$(),t.Y8G("ngClass",t.eq3(14,la,"transactions"===e.id)),t.R7$(),t.Y8G("ngIf","transactions"!==e.id),t.R7$(),t.Y8G("fxFlex",t.mNQ("transactions"===e.id?100:"balance"===e.id?70:90))("ngClass",t.eq3(16,wt,"node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.ERROR)),t.R7$(),t.Y8G("ngIf","node"===e.id&&n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED||"balance"===e.id&&(n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED||n.apiCallStatusOCBal.status===n.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&n.apiCallStatusAllChannels.status===n.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngSwitch",e.id),t.R7$(),t.Y8G("ngSwitchCase","node"),t.R7$(),t.Y8G("ngSwitchCase","balance"),t.R7$(),t.Y8G("ngSwitchCase","inboundLiq"),t.R7$(),t.Y8G("ngSwitchCase","outboundLiq"),t.R7$(),t.Y8G("ngSwitchCase","transactions")}}function ja(i,s){if(1&i&&(t.j41(0,"div",36),t.nrm(1,"fa-icon",7),t.j41(2,"span",8),t.EFF(3),t.k0s()(),t.j41(4,"mat-grid-list",37),t.DNE(5,wa,12,18,"mat-grid-tile",10),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faSmile),t.R7$(2),t.SpI("Welcome ",e.information.alias,"! Your node is up and running."),t.R7$(),t.Y8G("rowHeight",e.merchantCardHeight),t.R7$(),t.Y8G("ngForOf",e.merchantCards)}}let Da=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.store=a,this.commonService=o,this.router=l,this.faSmile=St.Qpm,this.faFrown=St.wB1,this.faAngleDoubleDown=E.WxX,this.faAngleDoubleUp=E.$sC,this.faChartPie=E.W1p,this.faBolt=E.zm_,this.faServer=E.D6w,this.faNetworkWired=E.eGi,this.userPersonaEnum=c.HW,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:c.wn.COMPLETED},this.apiCallStatusFees={status:c.wn.COMPLETED},this.apiCallStatusOCBal={status:c.wn.COMPLETED},this.apiCallStatusAllChannels={status:c.wn.COMPLETED},this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===c.f7.SM||this.screenSize===c.f7.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n}),this.store.select(b.b_).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=n.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=n.information}),this.store.select(b.oR).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessages[1]="",this.apiCallStatusFees=n.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=n.fees}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[3]),(0,pt.E)(this.store.select(b.DW))).subscribe(([n,a])=>{this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=n.apiCallStatus,this.apiCallStatusOCBal=a.apiCallStatus,this.apiCallStatusAllChannels.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=n.activeChannels,this.onchainBalance=a.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=n.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const o=n.lightningBalance.localBalance?+n.lightningBalance.localBalance:0,l=n.lightningBalance.remoteBalance?+n.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:o,remoteBalance:l,balancedness:+(1-Math.abs((o-l)/(o+l))).toFixed(3)},this.channelsStatus=n.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(u=>(u.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels?.filter(u=>(u.toLocal||0)>0),"toLocal"))),this.channels.forEach(u=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(u.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(u.toLocal||0)}),this.logger.info(n)})}onNavigateTo(n){this.router.navigateByUrl("/ecl/"+n)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((n,a)=>{const o=+(n.toLocal||0)+ +(n.toRemote||0),l=+(a.toLocal||0)+ +(a.toRemote||0);return o>l?-1:o{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU($.h),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home",1,"h-100"],["label","Pay"],["calledFrom","home"],[1,"underline"]],template:function(a,o){if(1&a&&t.DNE(0,ya,7,4,"div",4)(1,ja,6,4,"ng-template",null,0,t.C5r),2&a){const l=t.sdS(2);t.Y8G("ngIf",(null==o.selNode?null:o.selNode.settings.userPersona)===o.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[d.YU,d.Sq,d.bT,d.ux,d.e1,d.fG,D.aY,Zt.iY,x.RN,x.m2,x.MM,x.dh,Rt.B_,Rt.NS,ut.An,dt.kk,dt.fb,dt.Cp,H.HM,_.DJ,_.sA,_.UI,S.PW,G.mq,G.T8,ee,ae,le,me,Ce,je,It,Tt],encapsulation:2}))}return i(),s})();const Ga=["form"];function Pa(i,s){if(1&i&&(t.j41(0,"div",30),t.nrm(1,"fa-icon",31),t.j41(2,"span",32)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",33)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function Aa(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Bitcoin address is required."),t.k0s())}function Na(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.amountError)}}function Ba(i,s){if(1&i&&(t.j41(0,"mat-option",34),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e)}}function Ma(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Target Confirmation Blocks is required."),t.k0s())}function $a(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.sendFundError)}}function Va(i,s){if(1&i&&(t.j41(0,"div",35),t.nrm(1,"fa-icon",31),t.DNE(2,$a,2,1,"span",15),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.sendFundError)}}let jt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.logger=a,this.dataService=o,this.store=l,this.commonService=m,this.decimalPipe=u,this.actions=T,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.addressTypes=[],this.selectedAddress=c.Ld[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=c.A0,this.selAmountUnit=c.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=c.k,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.amountError="Amount is Required.",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[0])).subscribe({next:n=>{this.recommendedFee=n},error:n=>{this.logger.error(n)}}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.fiatConversion=n.settings.fiatConversion,this.amountUnits=n.settings.currencyUnits,this.logger.info(n)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,X.p)(n=>n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||n.type===c.Uu.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(n=>{n.type===c.Uu.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,k.UI)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"SendOnchainFunds"===n.payload.action&&(this.sendFundError=n.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==c.BQ.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit,c.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:n=>{this.transaction.amount=parseInt(n[c.BQ.SATS]),this.selAmountUnit=c.BQ.SATS,this.store.dispatch((0,j.Lz)({payload:this.transaction}))},error:n=>{this.selAmountUnit=c.BQ.SATS,this.amountError="Conversion Error: "+n}}):this.store.dispatch((0,j.Lz)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(n){const a=this,o=this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit;let l=n.value===this.amountUnits[2]?c.BQ.OTHER:n.value;this.transaction.amount&&this.selAmountUnit!==n.value&&this.commonService.convertCurrency(this.transaction.amount,o,l,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:m=>{this.selAmountUnit=n.value,a.transaction.amount=+a.decimalPipe.transform(m[l],a.currencyUnitFormats[l]).replace(/,/g,"")},error:m=>{this.amountError="Conversion Error: "+m,this.selAmountUnit=o,l=o}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(A.gP),t.rXU(nt.u),t.rXU(I.il),t.rXU($.h),t.rXU(d.QX),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(a,o){if(1&a&&t.GBs(Ga,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:45,vars:16,consts:[["form","ngForm"],["addrs","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex","55"],["matInput","","autoFocus","","name","addr","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start center"],["matInput","","type","number","name","blocks","required","true",3,"ngModelChange","step","min","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),t.EFF(5,"Send Payment"),t.k0s()(),t.j41(6,"button",9),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",10),t.DNE(9,Pa,16,6,"div",11),t.j41(10,"form",12,0),t.bIt("submit",function(){return r.eBV(l),r.Njj(o.onSendFunds())})("reset",function(){return r.eBV(l),r.Njj(o.resetData())}),t.j41(12,"mat-form-field",13)(13,"mat-label"),t.EFF(14,"Bitcoin Address"),t.k0s(),t.j41(15,"input",14,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.address,u)||(o.transaction.address=u),r.Njj(u)}),t.k0s(),t.DNE(17,Aa,2,0,"mat-error",15),t.k0s(),t.j41(18,"mat-form-field",16)(19,"mat-label"),t.EFF(20,"Amount"),t.k0s(),t.j41(21,"input",17,2),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.amount,u)||(o.transaction.amount=u),r.Njj(u)}),t.k0s(),t.j41(23,"span",18),t.EFF(24),t.k0s(),t.DNE(25,Na,2,1,"mat-error",15),t.k0s(),t.j41(26,"mat-form-field",19)(27,"mat-label"),t.EFF(28,"Amount Unit"),t.k0s(),t.j41(29,"mat-select",20),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.onAmountUnitChange(u))}),t.DNE(30,Ba,2,2,"mat-option",21),t.k0s()(),t.j41(31,"div",22)(32,"mat-form-field",23)(33,"mat-label"),t.EFF(34,"Target Confirmation Blocks"),t.k0s(),t.j41(35,"input",24,3),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.transaction.blocks,u)||(o.transaction.blocks=u),r.Njj(u)}),t.k0s(),t.DNE(37,Ma,2,0,"mat-error",15),t.k0s()(),t.nrm(38,"div",25),t.DNE(39,Va,3,2,"div",26),t.j41(40,"div",27)(41,"button",28),t.EFF(42,"Clear Fields"),t.k0s(),t.j41(43,"button",29),t.EFF(44,"Send Funds"),t.k0s()()()()()()}2&a&&(t.R7$(6),t.Y8G("mat-dialog-close",!1),t.R7$(3),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(6),t.R50("ngModel",o.transaction.address),t.R7$(2),t.Y8G("ngIf",!o.transaction.address),t.R7$(4),t.Y8G("step",100)("min",0),t.R50("ngModel",o.transaction.amount),t.R7$(3),t.SpI("",o.selAmountUnit," "),t.R7$(),t.Y8G("ngIf",!o.transaction.amount),t.R7$(4),t.Y8G("value",o.selAmountUnit),t.R7$(),t.Y8G("ngForOf",o.amountUnits),t.R7$(5),t.Y8G("step",1)("min",0),t.R50("ngModel",o.transaction.blocks),t.R7$(2),t.Y8G("ngIf",!o.transaction.blocks),t.R7$(2),t.Y8G("ngIf",""!==o.sendFundError))},dependencies:[d.Sq,d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,V.tx,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.TL,y.yw,_.DJ,_.sA,_.UI,R.VO,z.wT,et.N,it.V],encapsulation:2}))}return i(),s})();var gt=C(5837);const Oa=()=>["all"],Ha=i=>({"error-border":i}),Ya=()=>["no_transaction"],Ct=i=>({width:i}),Xa=i=>({"display-none":i});function Ua(i,s){if(1&i&&(t.j41(0,"mat-option",34),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function za(i,s){1&i&&t.nrm(0,"mat-progress-bar",35)}function Ja(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Date/Time"),t.k0s())}function qa(i,s){if(1&i&&(t.j41(0,"td",37),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.i5U(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Qa(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Address"),t.k0s())}function Za(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.address)}}function Wa(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Blockhash"),t.k0s())}function Ka(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.blockHash)}}function to(i,s){1&i&&(t.j41(0,"th",36),t.EFF(1,"Transaction ID"),t.k0s())}function eo(i,s){if(1&i&&(t.j41(0,"td",37)(1,"div",38)(2,"span",39),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ct,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.txid)}}function no(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Amount (Sats)"),t.k0s())}function io(i,s){if(1&i&&(t.j41(0,"span",43),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.amount))}}function ao(i,s){if(1&i&&(t.j41(0,"span",44),t.EFF(1),t.nI1(2,"number"),t.k0s()),2&i){const e=t.XpG().$implicit;t.R7$(),t.SpI("(",t.bMT(2,1,-1*(null==e?null:e.amount)),")")}}function oo(i,s){if(1&i&&(t.j41(0,"td",37),t.DNE(1,io,3,3,"span",41)(2,ao,3,3,"span",42),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",(null==e?null:e.amount)>0||0===(null==e?null:e.amount)),t.R7$(),t.Y8G("ngIf",(null==e?null:e.amount)<0)}}function so(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Fees (Sats)"),t.k0s())}function lo(i,s){if(1&i&&(t.j41(0,"td",37)(1,"span",43),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.fees))}}function ro(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1,"Confirmations"),t.k0s())}function co(i,s){if(1&i&&(t.j41(0,"td",37)(1,"span",43),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.bMT(3,1,null==e?null:e.confirmations)," ")}}function mo(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",48),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function po(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",49)(1,"button",50),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onTransactionClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function uo(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No transaction available."),t.k0s())}function ho(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting transactions..."),t.k0s())}function fo(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function _o(i,s){if(1&i&&(t.j41(0,"td",51),t.DNE(1,uo,2,0,"p",52)(2,ho,2,0,"p",52)(3,fo,2,1,"p",52),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function go(i,s){if(1&i&&t.nrm(0,"tr",53),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Xa,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function Co(i,s){1&i&&t.nrm(0,"tr",54)}function yo(i,s){1&i&&t.nrm(0,"tr",55)}let bo=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.commonService=a,this.store=o,this.datePipe=l,this.camelCaseWithSpaces=m,this.faHistory=E.Int,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.displayedColumns=[],this.listTransactions=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.totalRecords=0,this.flgInit=!1,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.apiCallStatus.status===c.wn.COMPLETED&&(this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.flgInit||(this.flgInit=!0,this.store.dispatch((0,j.mh)({payload:{count:1e3,skip:0}}))),this.logger.info(this.displayedColumns))}),this.store.select(b.gN).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),n.transactions&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadTransactionsTable(n.transactions),this.logger.info(n)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.listTransactions.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(1e3*n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"timestamp":o=this.datePipe.transform(new Date(1e3*(n[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}onTransactionClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:n.blockHash||n.blockId_opt,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"txid",value:n.txid,title:"Transaction ID",width:100,explorerLink:"tx"}],[{key:"timestamp",value:n.timestamp,title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"confirmations",value:n.confirmations,title:"Number of Confirmations",width:50,type:c.UN.NUMBER}],[{key:"fees",value:n.fees,title:"Fees (Sats)",width:50,type:c.UN.NUMBER},{key:"amount",value:n.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"address",value:n.address,title:"Address",width:100,type:c.UN.STRING}]]}}}))}loadTransactionsTable(n){this.listTransactions=new p.I6([...n]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onPageChange(n){this.store.dispatch((0,j.mh)({payload:{count:this.pageSize,skip:n.pageIndex*n.pageSize}}))}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Transactions")}])],decls:52,vars:19,consts:[["table",""],["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"div",3),t.nrm(3,"fa-icon",4),t.j41(4,"span",5),t.EFF(5,"Transaction History"),t.k0s()(),t.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),t.EFF(9,"Filter By"),t.k0s(),t.j41(10,"mat-select",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(11,"perfect-scrollbar"),t.DNE(12,Ua,2,2,"mat-option",9),t.k0s()()(),t.j41(13,"mat-form-field",7)(14,"mat-label"),t.EFF(15,"Filter"),t.k0s(),t.j41(16,"input",10),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(17,"div",11)(18,"div",12),t.DNE(19,za,1,0,"mat-progress-bar",13),t.j41(20,"table",14,0),t.qex(22,15),t.DNE(23,Ja,2,0,"th",16)(24,qa,3,4,"td",17),t.bVm(),t.qex(25,18),t.DNE(26,Qa,2,0,"th",16)(27,Za,4,4,"td",17),t.bVm(),t.qex(28,19),t.DNE(29,Wa,2,0,"th",16)(30,Ka,4,4,"td",17),t.bVm(),t.qex(31,20),t.DNE(32,to,2,0,"th",16)(33,eo,4,4,"td",17),t.bVm(),t.qex(34,21),t.DNE(35,no,2,0,"th",22)(36,oo,3,2,"td",17),t.bVm(),t.qex(37,23),t.DNE(38,so,2,0,"th",22)(39,lo,4,3,"td",17),t.bVm(),t.qex(40,24),t.DNE(41,ro,2,0,"th",22)(42,co,4,3,"td",17),t.bVm(),t.qex(43,25),t.DNE(44,mo,6,0,"th",26)(45,po,3,0,"td",27),t.bVm(),t.qex(46,28),t.DNE(47,_o,4,3,"td",29),t.bVm(),t.DNE(48,go,1,3,"tr",30)(49,Co,1,0,"tr",31)(50,yo,1,0,"tr",32),t.k0s(),t.nrm(51,"mat-paginator",33),t.k0s()()()}2&a&&(t.R7$(3),t.Y8G("icon",o.faHistory),t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,Oa).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(3),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.listTransactions)("ngClass",t.eq3(16,Ha,""!==o.errorMessage)),t.R7$(28),t.Y8G("matFooterRowDef",t.lJ4(18,Ya)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.ZF,B.Ld,d.QX,d.vh],encapsulation:2}))}return i(),s})();function Fo(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Eo=(()=>{var i;class s{constructor(n,a){this.store=n,this.router=a,this.faExchangeAlt=E._qq,this.faChartPie=E.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(a=>{this.selNode=a}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[2])).subscribe(a=>{this.balances=[{title:"Total Balance",dataValue:a.onchainBalance.total||0},{title:"Confirmed",dataValue:a.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:a.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,k.xO)({payload:{data:{component:jt}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain"]],standalone:!1,decls:23,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"On-chain Balance"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),t.nrm(7,"rtl-currency-unit-converter",6),t.k0s()()(),t.j41(8,"div",1),t.nrm(9,"fa-icon",2),t.j41(10,"span",3),t.EFF(11,"On-chain Transactions"),t.k0s()(),t.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),t.DNE(16,Fo,2,4,"div",9),t.k0s(),t.nrm(17,"mat-tab-nav-panel",null,0),t.j41(19,"div",10),t.nrm(20,"router-outlet"),t.k0s(),t.j41(21,"div",10),t.nrm(22,"rtl-ecl-on-chain-transaction-history",11),t.k0s()()()()),2&a){const l=t.sdS(18);t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faExchangeAlt),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,gt.f,L.n3,W.Wk,bo],encapsulation:2}))}return i(),s})();var Dt=C(1975);function xo(i,s){if(1&i&&(t.j41(0,"span",10),t.EFF(1,"Channels"),t.k0s()),2&i){const e=t.XpG();t.Y8G("matBadge",t.mNQ(e.activeChannels))}}function Lo(i,s){if(1&i&&(t.j41(0,"span",10),t.EFF(1,"Peers"),t.k0s()),2&i){const e=t.XpG();t.Y8G("matBadge",t.mNQ(e.activePeers))}}let vo=(()=>{var i;class s{constructor(n,a){this.store=n,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=E.gdJ,this.faChartPie=E.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(n=>n.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n instanceof L.gx)).subscribe({next:n=>{this.activeLink=this.links.findIndex(a=>a.link===n.urlAfterRedirects.substring(n.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.activePeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.activeChannels=n.channelsStatus&&n.channelsStatus.active&&n.channelsStatus.active.channels?n.channelsStatus.active.channels:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.balances=[{title:"Total Balance",dataValue:n.onchainBalance.total||0},{title:"Confirmed",dataValue:n.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:n.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(n){this.router.navigateByUrl("/ecl/connections/"+this.links[n.index].link)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-connections"]],standalone:!1,decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(a,o){1&a&&(t.j41(0,"div",0),t.nrm(1,"fa-icon",1),t.j41(2,"span",2),t.EFF(3,"On-chain Balance"),t.k0s()(),t.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t.nrm(7,"rtl-currency-unit-converter",5),t.k0s()()(),t.j41(8,"div",0),t.nrm(9,"fa-icon",1),t.j41(10,"span",2),t.EFF(11,"Connections"),t.k0s()(),t.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.mxI("selectedIndexChange",function(m){return t.DH7(o.activeLink,m)||(o.activeLink=m),m}),t.bIt("selectedTabChange",function(m){return o.onSelectedTabChange(m)}),t.j41(16,"mat-tab"),t.DNE(17,xo,2,2,"ng-template",8),t.k0s(),t.j41(18,"mat-tab"),t.DNE(19,Lo,2,2,"ng-template",8),t.k0s()(),t.j41(20,"div",9),t.nrm(21,"router-outlet"),t.k0s()()()()),2&a&&(t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faUsers),t.R7$(6),t.R50("selectedIndex",o.activeLink))},dependencies:[D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,Dt.k,G.ES,G.mq,G.T8,gt.f,L.n3],encapsulation:2}))}return i(),s})();function So(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Ro=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.store=a,this.router=o,this.faExchangeAlt=E._qq,this.faChartPie=E.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1]),(0,pt.E)(this.store.select(J._c))).subscribe(([a,o])=>{this.currencyUnits=o?.settings.currencyUnits||[],this.balances=o&&o.settings.userPersona===c.HW.OPERATOR?[{title:"Local Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:a.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:a.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(a)})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Lightning Balance"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),t.nrm(7,"rtl-currency-unit-converter",6),t.k0s()()(),t.j41(8,"div",7),t.nrm(9,"fa-icon",2),t.j41(10,"span",3),t.EFF(11,"Lightning Transactions"),t.k0s()(),t.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),t.DNE(16,So,2,4,"div",10),t.k0s(),t.nrm(17,"mat-tab-nav-panel",null,0),t.j41(19,"div",11),t.nrm(20,"router-outlet"),t.k0s()()()()),2&a){const l=t.sdS(18);t.R7$(),t.Y8G("icon",o.faChartPie),t.R7$(6),t.Y8G("values",o.balances),t.R7$(2),t.Y8G("icon",o.faExchangeAlt),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,gt.f,L.n3,W.Wk],encapsulation:2}))}return i(),s})();function ko(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",12),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Io=(()=>{var i;class s{constructor(n){this.router=n,this.faMapSigns=E.knH,this.events=[],this.flgLoading=[!0],this.errorMessage="",this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing"]],standalone:!1,decls:15,vars:3,consts:[["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1)(1,"div",2),t.nrm(2,"fa-icon",3),t.j41(3,"span",4),t.EFF(4,"Routing"),t.k0s()(),t.j41(5,"div",5)(6,"mat-card",6)(7,"mat-card-content",7)(8,"div",8)(9,"nav",9),t.DNE(10,ko,2,4,"div",10),t.k0s(),t.nrm(11,"mat-tab-nav-panel",null,0),t.k0s(),t.j41(13,"div",11),t.nrm(14,"router-outlet"),t.k0s()()()()()),2&a){const l=t.sdS(12);t.R7$(2),t.Y8G("icon",o.faMapSigns),t.R7$(7),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();var rt=C(5951),Gt=C(450),at=C(6013);const To=["peersForm"],wo=["stepper"];function jo(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG();t.JRh(e.peerFormLabel)}}function Do(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Address is required."),t.k0s())}function Go(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(2),t.JRh(e.peerConnectionError)}}function Po(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG();t.JRh(e.channelFormLabel)}}function Ao(i,s){if(1&i&&(t.j41(0,"div",36),t.nrm(1,"fa-icon",35),t.j41(2,"span",13)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",37)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function No(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function Bo(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount must be a positive number."),t.k0s())}function Mo(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function $o(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function Vo(i,s){if(1&i&&(t.j41(0,"div",34),t.nrm(1,"fa-icon",35),t.j41(2,"span"),t.EFF(3),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(2),t.JRh(e.channelConnectionError)}}let Pt=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.data=a,this.store=o,this.formBuilder=l,this.actions=m,this.logger=u,this.dataService=T,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.peerAddress="",this.totalBalance=0,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[f.k0.required]],peerAddress:[this.peerAddress,[f.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[f.k0.required,f.k0.min(1),f.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],feeRate:[null],hiddenAmount:["",[f.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.selNode=n,this.channelFormGroup.controls.isPrivate.setValue(!!n?.settings.unannouncedChannels)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(n=>n.type===c.Uu.NEWLY_ADDED_PEER_ECL||n.type===c.Uu.FETCH_CHANNELS_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{n.type===c.Uu.NEWLY_ADDED_PEER_ECL&&(this.logger.info(n.payload),this.flgEditable=!1,this.newlyAddedPeer=n.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),n.type===c.Uu.FETCH_CHANNELS_ECL&&this.dialogRef.close(),n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&("SaveNewPeer"===n.payload.action?this.peerConnectionError=n.payload.message:"SaveNewChannel"===n.payload.action&&(this.channelConnectionError=n.payload.message))}),this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[2])).subscribe({next:n=>{this.recommendedFee=n},error:n=>{this.logger.error(n)}})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,j.sq)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){return this.channelFormGroup.controls.feeRate.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.feeRate.value?(this.channelFormGroup.controls.feeRate.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||(this.channelConnectionError="",void this.store.dispatch((0,j.vL)({payload:{nodeId:this.newlyAddedPeer?.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}})))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(n){switch(n.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}n.selectedIndex{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(f.ze),t.rXU(K.En),t.rXU(A.gP),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(a,o){if(1&a&&(t.GBs(To,5),t.GBs(wo,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first),t.mGM(l=t.lsd())&&(o.stepper=l.first)}},standalone:!1,decls:59,vars:25,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","35","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxLayout","column","fxFlex","40"],["matInput","","formControlName","feeRate","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","20","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),t.EFF(5,"Connect to a new peer"),t.k0s()(),t.j41(6,"button",6),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),t.bIt("selectionChange",function(u){return r.eBV(l),r.Njj(o.stepSelectionChanged(u))}),t.j41(12,"mat-step",10)(13,"form",11),t.DNE(14,jo,1,1,"ng-template",12),t.j41(15,"mat-form-field",13)(16,"mat-label"),t.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),t.k0s(),t.nrm(18,"input",14),t.DNE(19,Do,2,0,"mat-error",15),t.k0s(),t.DNE(20,Go,4,2,"div",16),t.j41(21,"div",17)(22,"button",18),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onConnectPeer())}),t.EFF(23),t.k0s()()()(),t.j41(24,"mat-step",10)(25,"form",19),t.DNE(26,Po,1,1,"ng-template",20),t.j41(27,"div",21),t.DNE(28,Ao,16,6,"div",22),t.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),t.EFF(32,"Amount"),t.k0s(),t.nrm(33,"input",25),t.j41(34,"mat-hint"),t.EFF(35),t.nI1(36,"number"),t.k0s(),t.j41(37,"span",26),t.EFF(38," Sats "),t.k0s(),t.DNE(39,No,2,0,"mat-error",15)(40,Bo,2,0,"mat-error",15)(41,Mo,2,1,"mat-error",15),t.k0s(),t.j41(42,"mat-form-field",27)(43,"mat-label"),t.EFF(44,"Fee (Sats/vByte)"),t.k0s(),t.nrm(45,"input",28),t.j41(46,"mat-hint"),t.EFF(47),t.k0s(),t.DNE(48,$o,2,1,"mat-error",15),t.k0s(),t.j41(49,"div",29)(50,"mat-slide-toggle",30),t.EFF(51,"Private Channel"),t.k0s()()()(),t.DNE(52,Vo,4,2,"div",16),t.j41(53,"div",17)(54,"button",31),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onOpenChannel())}),t.EFF(55),t.k0s()()()()(),t.j41(56,"div",32)(57,"button",33),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(58),t.k0s()()()()()()}2&a&&(t.R7$(10),t.Y8G("linear",!0),t.R7$(2),t.Y8G("stepControl",o.peerFormGroup)("editable",o.flgEditable),t.R7$(),t.Y8G("formGroup",o.peerFormGroup),t.R7$(6),t.Y8G("ngIf",null==o.peerFormGroup.controls.peerAddress.errors?null:o.peerFormGroup.controls.peerAddress.errors.required),t.R7$(),t.Y8G("ngIf",""!==o.peerConnectionError),t.R7$(3),t.JRh(""!==o.peerConnectionError?"Retry":"Add Peer"),t.R7$(),t.Y8G("stepControl",o.channelFormGroup)("editable",o.flgEditable),t.R7$(),t.Y8G("formGroup",o.channelFormGroup),t.R7$(3),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(5),t.Y8G("step",1e3),t.R7$(2),t.SpI("Remaining: ",t.bMT(36,23,o.totalBalance-(o.channelFormGroup.controls.fundingAmount.value?o.channelFormGroup.controls.fundingAmount.value:0))),t.R7$(4),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.required),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.min),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.fundingAmount.errors?null:o.channelFormGroup.controls.fundingAmount.errors.max),t.R7$(4),t.Y8G("step",1)("min",o.recommendedFee.minimumFee||0),t.R7$(2),t.SpI("Mempool Min: ",o.recommendedFee.minimumFee," (Sats/vByte)"),t.R7$(),t.Y8G("ngIf",null==o.channelFormGroup.controls.feeRate.errors?null:o.channelFormGroup.controls.feeRate.errors.minimum),t.R7$(4),t.Y8G("ngIf",""!==o.channelConnectionError),t.R7$(3),t.JRh(""!==o.channelConnectionError?"Retry":"Open Channel"),t.R7$(3),t.JRh(null!=o.newlyAddedPeer&&o.newlyAddedPeer.nodeId?"Do It Later":"Close"))},dependencies:[d.bT,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.j4,f.JD,D.aY,N.$z,x.m2,x.MM,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,_.DJ,_.sA,_.UI,Gt.sG,at.V5,at.Ti,at.M6,et.N,it.V,d.QX],encapsulation:2}))}return i(),s})();var At=C(5416),Nt=C(9157);const Oo=i=>({"background-color":i});function Ho(i,s){if(1&i&&(t.j41(0,"span",10)(1,"div"),t.EFF(2),t.nI1(3,"titlecase"),t.k0s()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(2),t.Lme("",n.nodeFeaturesEnum[e.key]||e.key,": ",t.bMT(3,2,e.value))}}function Yo(i,s){1&i&&(t.j41(0,"th",24),t.EFF(1,"Address"),t.k0s())}function Xo(i,s){if(1&i&&(t.j41(0,"td",25),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(e)}}function Uo(i,s){1&i&&(t.j41(0,"th",26)(1,"div",27),t.EFF(2,"Actions"),t.k0s()())}function zo(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",28)(1,"div",29)(2,"mat-select",30),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",31),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onConnectNode(a))}),t.EFF(5,"Connect"),t.k0s(),t.j41(6,"mat-option",32),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG(2);return r.Njj(o.onCopyNodeURI(a))}),t.EFF(7,"Copy URI"),t.k0s()()()()}if(2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(6),t.Y8G("payload",(null==n.lookupResult?null:n.lookupResult.nodeId)+"@"+e)}}function Jo(i,s){1&i&&t.nrm(0,"tr",33)}function qo(i,s){1&i&&t.nrm(0,"tr",34)}function Qo(i,s){if(1&i&&(t.j41(0,"div",2),t.nrm(1,"mat-divider",3),t.j41(2,"div",4)(3,"div",5)(4,"h4",6),t.EFF(5,"Alias"),t.k0s(),t.j41(6,"span",7),t.EFF(7),t.j41(8,"span",8),t.EFF(9),t.k0s()()(),t.j41(10,"div",9)(11,"h4",6),t.EFF(12,"Pub Key"),t.k0s(),t.j41(13,"span",10),t.EFF(14),t.k0s()()(),t.nrm(15,"mat-divider",3),t.j41(16,"div",4)(17,"div",5)(18,"h4",6),t.EFF(19,"Date/Time"),t.k0s(),t.j41(20,"span",7),t.EFF(21),t.nI1(22,"date"),t.k0s()(),t.j41(23,"div",9)(24,"h4",6),t.EFF(25,"Features"),t.k0s(),t.DNE(26,Ho,4,4,"span",11),t.nI1(27,"keyvalue"),t.k0s()(),t.nrm(28,"mat-divider",3),t.j41(29,"div",4)(30,"div",12)(31,"h4",6),t.EFF(32,"Signature"),t.k0s(),t.j41(33,"span",7),t.EFF(34),t.k0s()()(),t.nrm(35,"mat-divider",3),t.j41(36,"div",2)(37,"h4",13),t.EFF(38,"Addresses"),t.k0s(),t.j41(39,"div",14)(40,"table",15,0),t.qex(42,16),t.DNE(43,Yo,2,0,"th",17)(44,Xo,2,1,"td",18),t.bVm(),t.qex(45,19),t.DNE(46,Uo,3,0,"th",20)(47,zo,8,1,"td",21),t.bVm(),t.DNE(48,Jo,1,0,"tr",22)(49,qo,1,0,"tr",23),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(null==e.lookupResult?null:e.lookupResult.alias),t.R7$(),t.Y8G("ngStyle",t.eq3(19,Oo,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.R7$(),t.JRh(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.R7$(5),t.JRh(null==e.lookupResult?null:e.lookupResult.nodeId),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.i5U(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.R7$(5),t.Y8G("ngForOf",t.bMT(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(null==e.lookupResult?null:e.lookupResult.signature),t.R7$(),t.Y8G("inset",!0),t.R7$(5),t.Y8G("dataSource",e.addresses),t.R7$(8),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns)}}let Zo=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.snackBar=a,this.store=o,this.lookupResult={},this.addresses=new p.I6([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=c.Uq,this.information={},this.availableBalance=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.addresses=new p.I6(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.information=n}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.availableBalance=n.onchainBalance.total||0})}onConnectNode(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{peer:this.lookupResult.nodeId?{nodeId:this.lookupResult.nodeId,address:n}:null,information:this.information,balance:this.availableBalance},component:Pt}}}))}onCopyNodeURI(n){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+n)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(At.UG),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(a,o){if(1&a&&t.GBs(v.B4,5),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first)}},inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&t.DNE(0,Qo,50,21,"div",1),2&a&&t.Y8G("ngIf",o.lookupResult)},dependencies:[d.Sq,d.bT,d.B3,tt.q,_.DJ,_.sA,_.UI,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,B.Ld,Nt.U,d.PV,d.vh,d.lG],encapsulation:2}))}return i(),s})();const Wo=["form"],Ko=i=>({"mt-1":!0,"mt-2":i});function ts(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function es(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function ns(i,s){if(1&i&&(t.j41(0,"div"),t.nrm(1,"rtl-ecl-node-lookup",25),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.Y8G("lookupResult",e.nodeLookupValue)}}function is(i,s){if(1&i&&(t.j41(0,"span",23),t.DNE(1,ns,2,1,"div",24),t.k0s()),2&i){const e=t.XpG(2),n=t.sdS(23);t.R7$(),t.Y8G("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",n)}}function as(i,s){1&i&&(t.j41(0,"span"),t.EFF(1,' fxFlex="100"'),t.j41(2,"h3"),t.EFF(3,"Error! Unable to find details!"),t.k0s()())}function os(i,s){if(1&i&&(t.j41(0,"div",17)(1,"div",18)(2,"span",19),t.EFF(3),t.k0s()(),t.j41(4,"div",20),t.DNE(5,is,2,2,"span",21)(6,as,4,0,"span",22),t.k0s()()),2&i){const e=t.XpG();t.R7$(3),t.SpI("",e.lookupFields[e.selectedFieldId].name," Details"),t.R7$(),t.Y8G("ngSwitch",e.selectedFieldId),t.R7$(),t.Y8G("ngSwitchCase",0)}}function ss(i,s){1&i&&(t.j41(0,"h3"),t.EFF(1,"Error! Unable to find details!"),t.k0s())}let ls=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.commonService=a,this.store=o,this.actions=l,this.lookupKeyCtrl=new f.hs,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=E.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKeyCtrl.setValue(window.history.state.lookupValue||"")),this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n.type===c.Uu.SET_LOOKUP_ECL||n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL)).subscribe(n=>{if(n.type===c.Uu.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=n.payload[0]?JSON.parse(JSON.stringify(n.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(n.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}n.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&n.payload.status===c.wn.ERROR&&"Lookup"===n.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,j.zU)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(n){this.resetData(),this.selectedFieldId=n.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(K.En))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-lookups"]],viewQuery:function(a,o){if(1&a&&t.GBs(Wo,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:24,vars:9,consts:[["form","ngForm"],["key",""],["errorBlock",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"div",4)(2,"mat-card-content",5)(3,"form",6,0)(5,"div",7)(6,"mat-radio-group",8)(7,"mat-radio-button",9),t.EFF(8,"Node"),t.k0s()()(),t.j41(9,"mat-form-field",10)(10,"mat-label"),t.EFF(11),t.k0s(),t.nrm(12,"input",11,1),t.DNE(14,ts,2,1,"mat-error",12)(15,es,2,1,"mat-error",12),t.k0s(),t.j41(16,"div",13)(17,"button",14),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(18,"Clear"),t.k0s(),t.j41(19,"button",15),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onLookup())}),t.EFF(20,"Lookup"),t.k0s()()(),t.DNE(21,os,7,3,"div",16),t.k0s()()(),t.DNE(22,ss,2,0,"ng-template",null,2,t.C5r)}2&a&&(t.R7$(7),t.Y8G("value",0),t.R7$(2),t.Y8G("ngClass",t.eq3(7,Ko,o.screenSize===o.screenSizeEnum.XS||o.screenSize===o.screenSizeEnum.SM)),t.R7$(2),t.JRh((null==o.lookupFields[o.selectedFieldId]?null:o.lookupFields[o.selectedFieldId].placeholder)||"Lookup Key"),t.R7$(),t.Y8G("formControl",o.lookupKeyCtrl),t.R7$(2),t.Y8G("ngIf",null==o.lookupKeyCtrl.errors?null:o.lookupKeyCtrl.errors.required),t.R7$(),t.Y8G("ngIf",null==o.lookupKeyCtrl.errors?null:o.lookupKeyCtrl.errors.invalid),t.R7$(6),t.Y8G("ngIf",o.flgSetLookupValue))},dependencies:[d.YU,d.bT,d.ux,d.e1,d.fG,f.qT,f.me,f.BC,f.cb,f.YS,f.cV,f.l_,N.$z,x.m2,Y.fg,y.rl,y.nJ,y.TL,rt.VT,rt._g,_.DJ,_.sA,_.UI,S.PW,Zo],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return i(),s})();var rs=C(396);let cs=(()=>{var i;class s{constructor(n,a){this.store=n,this.eclEffects=a,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,j.XT)()),this.eclEffects.setNewAddress.pipe((0,Z.s)(1)).subscribe(n=>{this.newAddress=n,setTimeout(()=>{this.store.dispatch((0,k.xO)({payload:{data:{address:this.newAddress,addressType:"",component:rs.f}}}))},0)})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(ht.B))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-receive"]],standalone:!1,decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.onGenerateAddress()}),t.EFF(3,"Generate Address"),t.k0s()()())},dependencies:[N.$z,_.DJ,_.sA,_.UI],encapsulation:2}))}return i(),s})(),ms=(()=>{var i;class s{constructor(n,a){this.store=n,this.activatedRoute=a,this.sweepAll=!1,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.activatedRoute.data.pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.sweepAll=n.sweepAll})}openSendFundsModal(){this.store.dispatch((0,k.xO)({payload:{data:{sweepAll:this.sweepAll,component:jt}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(L.nX))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-on-chain-send"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.openSendFundsModal()}),t.EFF(3),t.k0s()()()),2&a&&(t.R7$(3),t.JRh(o.sweepAll?"Sweep All":"Send Funds"))},dependencies:[N.$z,_.DJ,_.sA,_.UI],encapsulation:2}))}return i(),s})();var yt=C(9172),Bt=C(6354),ct=C(2628),ps=C(92);const us=["form"];function ds(i,s){if(1&i&&(t.j41(0,"mat-option",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.JRh(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function hs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Peer alias is required."),t.k0s())}function fs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Peer not found in the list."),t.k0s())}function _s(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-form-field",6)(1,"mat-label"),t.EFF(2,"Peer Alias"),t.k0s(),t.j41(3,"input",33),t.bIt("change",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.k0s(),t.j41(4,"mat-autocomplete",34,4),t.bIt("optionSelected",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.DNE(6,ds,2,2,"mat-option",35),t.nI1(7,"async"),t.k0s(),t.DNE(8,hs,2,0,"mat-error",20)(9,fs,2,0,"mat-error",20),t.k0s()}if(2&i){const e=t.sdS(5),n=t.XpG();t.R7$(3),t.Y8G("formControl",n.selectedPeer)("matAutocomplete",e),t.R7$(),t.Y8G("displayWith",n.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(7,6,n.filteredPeers)),t.R7$(2),t.Y8G("ngIf",null==n.selectedPeer.errors?null:n.selectedPeer.errors.required),t.R7$(),t.Y8G("ngIf",null==n.selectedPeer.errors?null:n.selectedPeer.errors.notfound)}}function gs(i,s){1&i&&t.eu8(0)}function Cs(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function ys(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function bs(i,s){if(1&i&&(t.j41(0,"div",37),t.nrm(1,"fa-icon",38),t.j41(2,"span",39)(3,"div"),t.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),t.k0s(),t.j41(5,"span",40)(6,"span"),t.EFF(7),t.k0s(),t.j41(8,"span"),t.EFF(9),t.k0s(),t.j41(10,"span"),t.EFF(11),t.k0s(),t.j41(12,"span"),t.EFF(13),t.k0s(),t.j41(14,"span"),t.EFF(15),t.k0s()()()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faInfoCircle),t.R7$(6),t.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),t.R7$(2),t.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),t.R7$(2),t.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),t.R7$(2),t.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),t.R7$(2),t.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function Fs(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function Es(i,s){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.channelConnectionError)}}function xs(i,s){if(1&i&&(t.j41(0,"div",41),t.nrm(1,"fa-icon",38),t.DNE(2,Es,2,1,"span",20),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("icon",e.faExclamationTriangle),t.R7$(),t.Y8G("ngIf",""!==e.channelConnectionError)}}function Ls(i,s){if(1&i&&(t.j41(0,"mat-expansion-panel",43)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t.EFF(4,"Peer: \xa0"),t.k0s(),t.j41(5,"strong",44),t.EFF(6),t.k0s()()(),t.j41(7,"div",13)(8,"div",5)(9,"div",6)(10,"h4",45),t.EFF(11,"Pubkey"),t.k0s(),t.j41(12,"span",46),t.EFF(13),t.k0s()()(),t.nrm(14,"mat-divider",47),t.j41(15,"div",5)(16,"div",48)(17,"h4",45),t.EFF(18,"Address"),t.k0s(),t.j41(19,"span",49),t.EFF(20),t.k0s()(),t.j41(21,"div",48)(22,"h4",45),t.EFF(23,"State"),t.k0s(),t.j41(24,"span",49),t.EFF(25),t.nI1(26,"titlecase"),t.k0s()()()()()),2&i){const e=t.XpG(2);t.R7$(6),t.JRh((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.R7$(7),t.JRh(e.peer.nodeId),t.R7$(7),t.JRh(null==e.peer?null:e.peer.address),t.R7$(5),t.JRh(t.bMT(26,4,null==e.peer?null:e.peer.state))}}function vs(i,s){if(1&i&&t.DNE(0,Ls,27,6,"mat-expansion-panel",42),2&i){const e=t.XpG();t.Y8G("ngIf",e.peer)}}let Mt=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.dialogRef=a,this.data=o,this.store=l,this.actions=m,this.dataService=u,this.selectedPeer=new f.hs,this.faExclamationTriangle=E.zpE,this.faInfoCircle=E.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(J._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(o=>{this.selNode=o,this.isPrivate=!!o?.settings.unannouncedChannels}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,X.p)(o=>o.type===c.Uu.UPDATE_API_CALL_STATUS_ECL||o.type===c.Uu.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===c.Uu.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===c.wn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===c.Uu.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let n="",a="";this.sortedPeers=this.peers.sort((o,l)=>(n=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",a=l.alias?l.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",na?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,yt.Z)(""),(0,Bt.T)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,Bt.T)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(n){return this.sortedPeers?.filter(a=>0===a.alias?.toLowerCase().indexOf(n?n.toLowerCase():""))}displayFn(n){return n&&n.alias?n.alias:n&&n.nodeId?n.nodeId:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const n=this.peers?.filter(a=>a.alias?.length===this.selectedPeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===n.length&&n[0].nodeId&&(this.selectedPubkey=n[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(n){this.advancedTitle="Advanced Options",n?this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate):this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:a=>{this.recommendedFee=a},error:a=>{this.logger.error(a)}})}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.feeRate&&this.recommendedFee.minimumFee>this.feeRate)return!0;const n={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(n.feeRate=this.feeRate),this.store.dispatch((0,j.vL)({payload:n}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(V.CP),t.rXU(V.Vh),t.rXU(I.il),t.rXU(K.En),t.rXU(nt.u))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(a,o){if(1&a&&t.GBs(us,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:56,vars:21,consts:[["form","ngForm"],["amount","ngModel"],["fee","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","1","required","","name","amount",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","fxLayoutAlign","start center"],["tabindex","2","color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxFlex","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","name","fee","tabindex","7",3,"ngModelChange","step","min","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["type","text","aria-label","Peers","matInput","","tabindex","1","required","",3,"change","formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),t.EFF(5),t.k0s()(),t.j41(6,"button",10),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onClose())}),t.EFF(7,"X"),t.k0s()(),t.j41(8,"mat-card-content",11)(9,"form",12,0),t.bIt("submit",function(){return r.eBV(l),r.Njj(o.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(o.resetData())}),t.j41(11,"div",13),t.DNE(12,_s,10,8,"mat-form-field",14),t.k0s(),t.DNE(13,gs,1,0,"ng-container",15),t.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),t.EFF(18,"Amount"),t.k0s(),t.j41(19,"input",18,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.fundingAmount,u)||(o.fundingAmount=u),r.Njj(u)}),t.k0s(),t.j41(21,"mat-hint"),t.EFF(22),t.nI1(23,"number"),t.k0s(),t.j41(24,"span",19),t.EFF(25,"Sats "),t.k0s(),t.DNE(26,Cs,2,0,"mat-error",20)(27,ys,2,1,"mat-error",20),t.k0s(),t.j41(28,"div",21)(29,"mat-slide-toggle",22),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.isPrivate,u)||(o.isPrivate=u),r.Njj(u)}),t.EFF(30,"Private Channel"),t.k0s()()(),t.j41(31,"mat-expansion-panel",23),t.bIt("closed",function(){return r.eBV(l),r.Njj(o.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(o.onAdvancedPanelToggle(!1))}),t.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),t.EFF(35),t.k0s()()(),t.j41(36,"div",24),t.DNE(37,bs,16,6,"div",25),t.j41(38,"div",16)(39,"div",26)(40,"mat-form-field",27)(41,"mat-label"),t.EFF(42,"Fee (Sats/vByte)"),t.k0s(),t.j41(43,"input",28,2),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.feeRate,u)||(o.feeRate=u),r.Njj(u)}),t.k0s(),t.j41(45,"mat-hint"),t.EFF(46),t.k0s(),t.DNE(47,Fs,2,1,"mat-error",20),t.k0s()()()()()(),t.DNE(48,xs,3,2,"div",29),t.j41(49,"div",30)(50,"button",31),t.EFF(51,"Clear Fields"),t.k0s(),t.j41(52,"button",32),t.EFF(53,"Open Channel"),t.k0s()()()()()(),t.DNE(54,vs,1,1,"ng-template",null,3,t.C5r)}if(2&a){const l=t.sdS(20),m=t.sdS(55);t.R7$(5),t.JRh(o.alertTitle),t.R7$(7),t.Y8G("ngIf",!o.peer&&o.peers&&o.peers.length>0),t.R7$(),t.Y8G("ngTemplateOutlet",m),t.R7$(6),t.Y8G("step",1e3)("min",1)("max",o.totalBalance),t.R50("ngModel",o.fundingAmount),t.R7$(3),t.SpI("Remaining: ",t.bMT(23,19,o.totalBalance-(o.fundingAmount?o.fundingAmount:0))),t.R7$(4),t.Y8G("ngIf",null==l.errors?null:l.errors.required),t.R7$(),t.Y8G("ngIf",null==l.errors?null:l.errors.max),t.R7$(2),t.R50("ngModel",o.isPrivate),t.R7$(6),t.JRh(o.advancedTitle),t.R7$(2),t.Y8G("ngIf",o.recommendedFee.minimumFee),t.R7$(6),t.Y8G("step",1)("min",o.recommendedFee.minimumFee),t.R50("ngModel",o.feeRate),t.R7$(3),t.SpI("Mempool Min: ",o.recommendedFee.minimumFee," (Sats/vByte)"),t.R7$(),t.Y8G("ngIf",o.feeRate&&o.feeRate{var i;class s{constructor(n,a,o){this.logger=n,this.store=a,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(n=>n.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(n=>n instanceof L.gx)).subscribe({next:n=>{this.activeLink=this.links.findIndex(a=>a.link===n.urlAfterRedirects.substring(n.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.numOfOpenChannels=n.channelsStatus&&n.channelsStatus.active&&n.channelsStatus.active.channels?n.channelsStatus.active.channels:0,this.numOfPendingChannels=n.channelsStatus&&n.channelsStatus.pending&&n.channelsStatus.pending.channels?n.channelsStatus.pending.channels:0,this.numOfInactiveChannels=n.channelsStatus&&n.channelsStatus.inactive&&n.channelsStatus.inactive.channels?n.channelsStatus.inactive.channels:0,this.logger.info(n)}),this.store.select(J._c).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.selNode=n}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.peers=n.peers}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[5])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,k.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Mt}}}))}onSelectedTabChange(n){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[n.index].link)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channels-tables"]],standalone:!1,decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(a,o){1&a&&(t.j41(0,"div",0)(1,"div",1)(2,"button",2),t.bIt("click",function(){return o.onOpenChannel()}),t.EFF(3,"Open Channel"),t.k0s()(),t.j41(4,"div",3)(5,"mat-tab-group",4),t.mxI("selectedIndexChange",function(m){return t.DH7(o.activeLink,m)||(o.activeLink=m),m}),t.bIt("selectedTabChange",function(m){return o.onSelectedTabChange(m)}),t.j41(6,"mat-tab"),t.DNE(7,Ss,2,2,"ng-template",5),t.k0s(),t.j41(8,"mat-tab"),t.DNE(9,Rs,2,2,"ng-template",5),t.k0s(),t.j41(10,"mat-tab"),t.DNE(11,ks,2,2,"ng-template",5),t.k0s()(),t.j41(12,"div",6),t.nrm(13,"router-outlet"),t.k0s()()()),2&a&&(t.R7$(5),t.R50("selectedIndex",o.activeLink))},dependencies:[N.$z,_.DJ,_.sA,_.UI,Dt.k,G.ES,G.mq,G.T8,L.n3],encapsulation:2}))}return i(),s})();const Ts=i=>({"xs-scroll-y":i}),ws=(i,s)=>({"mt-2":i,"mt-1":s});function js(i,s){if(1&i&&(t.j41(0,"div",12)(1,"h4",13),t.EFF(2,"Short Channel ID"),t.k0s(),t.j41(3,"span",14),t.EFF(4),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.JRh(e.channel.shortChannelId)}}function Ds(i,s){if(1&i&&(t.j41(0,"div",12)(1,"h4",13),t.EFF(2,"State"),t.k0s(),t.j41(3,"span",17),t.EFF(4),t.nI1(5,"titlecase"),t.k0s()()),2&i){const e=t.XpG();t.R7$(4),t.JRh(t.bMT(5,1,e.channel.state))}}function Gs(i,s){if(1&i&&(t.j41(0,"div")(1,"div",10)(2,"div",12)(3,"h4",13),t.EFF(4,"Local Balance (Sats)"),t.k0s(),t.j41(5,"span",17),t.EFF(6),t.nI1(7,"number"),t.k0s()(),t.j41(8,"div",12)(9,"h4",13),t.EFF(10,"Remote Balance (Sats)"),t.k0s(),t.j41(11,"span",17),t.EFF(12),t.nI1(13,"number"),t.k0s()()(),t.nrm(14,"mat-divider",15),t.j41(15,"div",10)(16,"div",12)(17,"h4",13),t.EFF(18,"Base Fee (mSats)"),t.k0s(),t.j41(19,"span",17),t.EFF(20),t.nI1(21,"number"),t.k0s()(),t.j41(22,"div",12)(23,"h4",13),t.EFF(24,"Fee Rate (mili mSats)"),t.k0s(),t.j41(25,"span",17),t.EFF(26),t.nI1(27,"number"),t.k0s()()(),t.nrm(28,"mat-divider",15),t.k0s()),2&i){const e=t.XpG();t.R7$(6),t.JRh(t.bMT(7,6,e.channel.toLocal)),t.R7$(6),t.JRh(t.bMT(13,8,e.channel.toRemote)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.bMT(21,10,e.channel.feeBaseMsat)),t.R7$(6),t.JRh(t.bMT(27,12,e.channel.feeProportionalMillionths)),t.R7$(2),t.Y8G("inset",!0)}}function Ps(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Show Advanced"),t.k0s())}function As(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Hide Advanced"),t.k0s())}function Ns(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",23),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onShowAdvanced())}),t.DNE(1,Ps,2,0,"p",24)(2,As,2,0,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.sdS(3),n=t.XpG();t.R7$(),t.Y8G("ngIf",!n.showAdvanced)("ngIfElse",e)}}function Bs(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",25),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onCopyChanID(a))}),t.EFF(1,"Copy Short Channel ID"),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("payload",e.channel.shortChannelId)}}function Ms(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",26),t.bIt("copied",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onCopyChanID(a))}),t.EFF(1,"Copy Channel ID"),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("payload",e.channel.channelId)}}let bt=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.dialogRef=n,this.data=a,this.logger=o,this.commonService=l,this.snackBar=m,this.router=u,this.faReceipt=E.Mf0,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(n){this.snackBar.open("open"===this.channelsType?"Short channel ID "+n+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+n)}onGoToLink(n,a){this.router.navigateByUrl("/ecl/graph/lookups",{state:{lookupType:n,lookupValue:a}}),this.onClose()}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(A.gP),t.rXU($.h),t.rXU(At.UG),t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-information"]],standalone:!1,decls:59,vars:27,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","1","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","2","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","4","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","2",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","4","type","submit","rtlClipboard","",3,"copied","payload"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),t.nrm(4,"fa-icon",5),t.j41(5,"span",6),t.EFF(6,"Channel Information"),t.k0s()(),t.j41(7,"button",7),t.bIt("click",function(){return o.onClose()}),t.EFF(8,"X"),t.k0s()(),t.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10),t.DNE(12,js,5,1,"div",11),t.j41(13,"div",12)(14,"h4",13),t.EFF(15,"Peer Alias"),t.k0s(),t.j41(16,"span",14),t.EFF(17),t.k0s()(),t.DNE(18,Ds,6,3,"div",11),t.k0s(),t.nrm(19,"mat-divider",15),t.j41(20,"div",10)(21,"div",2)(22,"h4",13),t.EFF(23,"Channel ID"),t.k0s(),t.j41(24,"span",14),t.EFF(25),t.k0s()()(),t.nrm(26,"mat-divider",15),t.j41(27,"div",10)(28,"div",2)(29,"h4",13),t.EFF(30,"Peer Public Key"),t.k0s(),t.j41(31,"span",16),t.bIt("click",function(){return o.onGoToLink("0",o.channel.nodeId)}),t.EFF(32),t.k0s()()(),t.nrm(33,"mat-divider",15),t.j41(34,"div",10)(35,"div",2)(36,"h4",13),t.EFF(37,"State"),t.k0s(),t.j41(38,"span",17),t.EFF(39),t.nI1(40,"titlecase"),t.k0s()()(),t.nrm(41,"mat-divider",15),t.j41(42,"div",10)(43,"div",12)(44,"h4",13),t.EFF(45,"Private"),t.k0s(),t.j41(46,"span",17),t.EFF(47),t.k0s()(),t.j41(48,"div",12)(49,"h4",13),t.EFF(50,"Initiator"),t.k0s(),t.j41(51,"span",17),t.EFF(52),t.k0s()()(),t.nrm(53,"mat-divider",15),t.DNE(54,Gs,29,14,"div",18),t.j41(55,"div",19),t.DNE(56,Ns,4,2,"button",20)(57,Bs,2,1,"button",21)(58,Ms,2,1,"button",22),t.k0s()()()()()),2&a&&(t.R7$(4),t.Y8G("icon",o.faReceipt),t.R7$(5),t.Y8G("ngClass",t.eq3(22,Ts,o.screenSize===o.screenSizeEnum.XS)),t.R7$(3),t.Y8G("ngIf","open"===o.channelsType),t.R7$(5),t.JRh(o.channel.alias),t.R7$(),t.Y8G("ngIf","open"!==o.channelsType),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(o.channel.channelId),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.SpI(" ",o.channel.nodeId," "),t.R7$(),t.Y8G("inset",!0),t.R7$(6),t.JRh(t.bMT(40,20,o.channel.state)),t.R7$(2),t.Y8G("inset",!0),t.R7$(6),t.JRh(o.channel.announceChannel?"No":"Yes"),t.R7$(5),t.JRh(o.channel.isInitiator?"Yes":"No"),t.R7$(),t.Y8G("inset",!0),t.R7$(),t.Y8G("ngIf",o.showAdvanced&&"open"===o.channelsType),t.R7$(),t.Y8G("ngClass",t.l_i(24,ws,!o.showAdvanced,o.showAdvanced)),t.R7$(),t.Y8G("ngIf","open"===o.channelsType),t.R7$(),t.Y8G("ngIf","open"===o.channelsType),t.R7$(),t.Y8G("ngIf","open"!==o.channelsType))},dependencies:[d.YU,d.bT,D.aY,N.$z,x.m2,x.MM,tt.q,_.DJ,_.sA,_.UI,S.PW,Q.oV,Nt.U,et.N,d.QX,d.PV],encapsulation:2}))}return i(),s})();var Ft=C(7673),Et=C(1001),$s=C(6949);const ot=(i,s)=>({"small-svg":i,"large-svg":s});function Vs(i,s){1&i&&t.eu8(0)}function Os(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",6),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",7),t.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),t.k0s(),r.joV(),t.j41(41,"div",47)(42,"mat-card-title"),t.EFF(43,"Circular rebalancing explained."),t.k0s()(),t.j41(44,"div",48)(45,"mat-card-subtitle",49),t.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Hs(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",51),t.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),t.j41(65,"defs")(66,"linearGradient",90),t.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),t.k0s(),t.j41(70,"linearGradient",94),t.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),t.k0s(),t.j41(74,"linearGradient",95),t.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),t.k0s(),t.j41(78,"linearGradient",96),t.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),t.k0s(),t.j41(82,"linearGradient",97),t.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),t.k0s(),t.j41(86,"linearGradient",98),t.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),t.k0s()()(),r.joV(),t.j41(90,"div",47)(91,"mat-card-title"),t.EFF(92,"Step 1: Unbalanced channel"),t.k0s()(),t.j41(93,"div",48)(94,"mat-card-subtitle",49),t.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Ys(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",99),t.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),t.j41(49,"defs")(50,"linearGradient",137),t.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),t.k0s(),t.j41(54,"linearGradient",138),t.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),t.k0s(),t.j41(58,"linearGradient",139),t.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),t.k0s()()(),r.joV(),t.j41(62,"div",47)(63,"mat-card-title"),t.EFF(64,"Step 2: Invoice/Payment"),t.k0s()(),t.j41(65,"div",48)(66,"mat-card-subtitle",49),t.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Xs(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",140),t.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),t.j41(42,"defs")(43,"linearGradient",180),t.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),t.k0s()()(),r.joV(),t.j41(47,"div",47)(48,"mat-card-title"),t.EFF(49,"Step 3: Rebalance amount"),t.k0s()(),t.j41(50,"div",48)(51,"mat-card-subtitle",49),t.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}function Us(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",50),t.bIt("swipe",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onSwipe(a))}),r.qSk(),t.j41(1,"svg",140),t.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),t.j41(41,"defs")(42,"linearGradient",199),t.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),t.k0s()()(),r.joV(),t.j41(46,"div",47)(47,"mat-card-title"),t.EFF(48,"Rebalance successful!"),t.k0s()(),t.j41(49,"div",48)(50,"mat-card-subtitle",49),t.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@sliderAnimation",e.animationDirection),t.R7$(),t.Y8G("ngClass",t.l_i(2,ot,e.screenSize===e.screenSizeEnum.XS,e.screenSize!==e.screenSizeEnum.XS))}}let zs=(()=>{var i;class s{constructor(n){this.commonService=n,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new t.bkB,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(n){2===n.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===n.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(a,o){if(1&a&&t.DNE(0,Vs,1,0,"ng-container",5)(1,Os,47,5,"ng-template",null,0,t.C5r)(3,Hs,96,5,"ng-template",null,1,t.C5r)(5,Ys,68,5,"ng-template",null,2,t.C5r)(7,Xs,53,5,"ng-template",null,3,t.C5r)(9,Us,52,5,"ng-template",null,4,t.C5r),2&a){const l=t.sdS(2),m=t.sdS(4),u=t.sdS(6),T=t.sdS(8),F=t.sdS(10);t.Y8G("ngTemplateOutlet",1===o.stepNumber?l:2===o.stepNumber?m:3===o.stepNumber?u:4===o.stepNumber?T:F)}},dependencies:[d.YU,d.T3,x.Lc,x.dh,_.DJ,_.sA,_.UI,S.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[$s.k]}}))}return i(),s})();const Js=["stepper"],qs=()=>[1,2,3,4,5],Qs=(i,s)=>({"dot-primary":i,"dot-primary-lighter":s});function Zs(i,s){if(1&i&&t.EFF(0),2&i){const e=t.XpG(2);t.JRh(e.inputFormLabel)}}function Ws(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function Ks(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount must be a positive number."),t.k0s())}function tl(i,s){if(1&i&&(t.j41(0,"mat-error"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI("Amount must be less than or equal to ",null==e.selChannel?null:e.selChannel.toLocal,".")}}function el(i,s){if(1&i&&(t.j41(0,"mat-option",50),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.Y8G("value",e),t.R7$(),t.Lme("",e.alias," - ",e.shortChannelId)}}function nl(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Receive from Peer is required."),t.k0s())}function il(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Receive from Peer not found in the list."),t.k0s())}function al(i,s){1&i&&t.EFF(0,"Status")}function ol(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function sl(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(""!==e.rebalanceStatus.invoice?"check":"close")}}function ll(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function rl(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.rebalanceStatus.paymentRoute?"check":"close")}}function cl(i,s){if(1&i&&(t.j41(0,"span",42),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",e," ")}}function ml(i,s){if(1&i&&(t.j41(0,"div",7),t.DNE(1,cl,2,1,"span",53),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngForOf",e.rebalanceStatus.paymentRoute.split(","))}}function pl(i,s){1&i&&t.nrm(0,"mat-progress-bar",51)}function ul(i,s){if(1&i&&(t.j41(0,"mat-icon",52),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(!e.rebalanceStatus.paymentStatus||null!=e.rebalanceStatus.paymentStatus&&e.rebalanceStatus.paymentStatus.error?"close":"check")}}function dl(i,s){1&i&&t.nrm(0,"div",7)}function hl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",54),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onRestart())}),t.EFF(1,"Start Again"),t.k0s()}}function fl(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),t.EFF(5,"Channel Rebalance"),t.k0s()(),t.j41(6,"div",12)(7,"button",13),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.showInfo())}),t.EFF(8,"?"),t.k0s(),t.j41(9,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onClose())}),t.EFF(10,"X"),t.k0s()()()(),t.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),t.nrm(15,"fa-icon",18),t.j41(16,"span"),t.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),t.k0s()()(),t.j41(18,"div",19)(19,"p",20)(20,"strong"),t.EFF(21,"Channel Peer:\xa0"),t.k0s(),t.EFF(22),t.nI1(23,"titlecase"),t.k0s(),t.j41(24,"p",20)(25,"strong"),t.EFF(26,"Channel ID:\xa0"),t.k0s(),t.EFF(27),t.k0s()(),t.j41(28,"mat-vertical-stepper",21,3)(30,"mat-step",22)(31,"form",23),t.DNE(32,Zs,1,1,"ng-template",24),t.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),t.EFF(36,"Amount"),t.k0s(),t.nrm(37,"input",27),t.j41(38,"mat-hint"),t.EFF(39),t.k0s(),t.j41(40,"span",28),t.EFF(41,"Sats"),t.k0s(),t.DNE(42,Ws,2,0,"mat-error",29)(43,Ks,2,0,"mat-error",29)(44,tl,2,1,"mat-error",29),t.k0s(),t.j41(45,"mat-form-field",30)(46,"mat-label"),t.EFF(47,"Receive from Peer"),t.k0s(),t.j41(48,"input",31),t.bIt("change",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.k0s(),t.j41(49,"mat-autocomplete",32,4),t.bIt("optionSelected",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onSelectedPeerChanged())}),t.DNE(51,el,2,3,"mat-option",33),t.nI1(52,"async"),t.k0s(),t.DNE(53,nl,2,0,"mat-error",29)(54,il,2,0,"mat-error",29),t.k0s()(),t.j41(55,"div",34)(56,"button",35),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onRebalance())}),t.EFF(57,"Rebalance"),t.k0s()()()(),t.j41(58,"mat-step",36)(59,"form",23),t.DNE(60,al,1,0,"ng-template",24),t.j41(61,"div",37),t.DNE(62,ol,1,0,"mat-progress-bar",38),t.j41(63,"mat-expansion-panel",39)(64,"mat-expansion-panel-header")(65,"mat-panel-title")(66,"span",40),t.EFF(67),t.DNE(68,sl,2,1,"mat-icon",41),t.k0s()()(),t.j41(69,"div",7)(70,"span",42),t.EFF(71),t.k0s()()(),t.DNE(72,ll,1,0,"mat-progress-bar",38),t.j41(73,"mat-expansion-panel",39)(74,"mat-expansion-panel-header")(75,"mat-panel-title")(76,"span",40),t.EFF(77),t.DNE(78,rl,2,1,"mat-icon",41),t.k0s()()(),t.DNE(79,ml,2,1,"div",5),t.k0s(),t.DNE(80,pl,1,0,"mat-progress-bar",38),t.j41(81,"mat-expansion-panel",43)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",40),t.EFF(85),t.DNE(86,ul,2,1,"mat-icon",41),t.k0s()()(),t.DNE(87,dl,1,0,"div",44),t.k0s()(),t.j41(88,"h4",45),t.EFF(89),t.k0s(),t.j41(90,"div",46),t.DNE(91,hl,2,0,"button",47),t.k0s()()()(),t.j41(92,"div",48)(93,"button",49),t.EFF(94,"Close"),t.k0s()()()()()}if(2&i){const e=t.sdS(50),n=t.XpG(),a=t.sdS(2);t.Y8G("@opacityAnimation",void 0),t.R7$(15),t.Y8G("icon",n.faInfoCircle),t.R7$(7),t.JRh(t.bMT(23,38,n.selChannel.alias)),t.R7$(5),t.JRh(n.selChannel.shortChannelId),t.R7$(),t.Y8G("linear",!0),t.R7$(2),t.Y8G("stepControl",n.inputFormGroup)("editable",n.flgEditable),t.R7$(),t.Y8G("formGroup",n.inputFormGroup),t.R7$(6),t.Y8G("step",100),t.R7$(2),t.Lme("(Local Bal: ",null==n.selChannel?null:n.selChannel.toLocal,", Remaining: ",(null==n.selChannel?null:n.selChannel.toLocal)-(n.inputFormGroup.controls.rebalanceAmount.value?n.inputFormGroup.controls.rebalanceAmount.value:0),")"),t.R7$(3),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.required),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.min),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.rebalanceAmount.errors?null:n.inputFormGroup.controls.rebalanceAmount.errors.max),t.R7$(4),t.Y8G("matAutocomplete",e),t.R7$(),t.Y8G("displayWith",n.displayFn),t.R7$(2),t.Y8G("ngForOf",t.bMT(52,40,n.filteredActiveChannels)),t.R7$(2),t.Y8G("ngIf",null==n.inputFormGroup.controls.selRebalancePeer.errors?null:n.inputFormGroup.controls.selRebalancePeer.errors.required),t.R7$(),t.Y8G("ngIf",null==n.inputFormGroup.controls.selRebalancePeer.errors?null:n.inputFormGroup.controls.selRebalancePeer.errors.notfound),t.R7$(4),t.Y8G("stepControl",n.statusFormGroup),t.R7$(),t.Y8G("formGroup",n.statusFormGroup),t.R7$(3),t.Y8G("ngIf",""===n.rebalanceStatus.invoice),t.R7$(5),t.JRh(""===n.rebalanceStatus.invoice?"Searching invoice...":n.rebalanceStatus.flgReusingInvoice?"Invoice re-used":"Invoice generated"),t.R7$(),t.Y8G("ngIf",""!==n.rebalanceStatus.invoice),t.R7$(3),t.JRh(n.rebalanceStatus.invoice),t.R7$(),t.Y8G("ngIf",!(null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error||n.rebalanceStatus.paymentRoute||"pending"===(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type))),t.R7$(5),t.JRh(null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Route failed":n.rebalanceStatus.paymentRoute?"Route used":"Searching route..."),t.R7$(),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus),t.R7$(),t.Y8G("ngIf",""!==n.rebalanceStatus.paymentRoute),t.R7$(),t.Y8G("ngIf",!n.rebalanceStatus.paymentStatus),t.R7$(),t.Y8G("expanded",!!n.rebalanceStatus.paymentStatus),t.R7$(4),t.JRh(n.rebalanceStatus.paymentStatus&&"pending"!==(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)?null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Payment failed":"sent"===(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)?"Payment successful":"":"Payment status pending..."),t.R7$(),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus&&"pending"!==(null==n.rebalanceStatus.paymentStatus?null:n.rebalanceStatus.paymentStatus.type)),t.R7$(),t.Y8G("ngIf",!n.rebalanceStatus.paymentStatus)("ngIfElse",a),t.R7$(2),t.JRh(n.rebalanceStatus.paymentStatus?n.rebalanceStatus.paymentStatus&&null!=n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error?"Rebalance Failed.":"Rebalance Successful.":""),t.R7$(2),t.Y8G("ngIf",n.rebalanceStatus.paymentStatus&&n.rebalanceStatus.paymentStatus.error),t.R7$(2),t.Y8G("mat-dialog-close",!1)}}function _l(i,s){1&i&&t.eu8(0)}function gl(i,s){if(1&i&&t.DNE(0,_l,1,0,"ng-container",55),2&i){const e=t.XpG(),n=t.sdS(4),a=t.sdS(6);t.Y8G("ngTemplateOutlet",e.rebalanceStatus.paymentStatus.error?n:a)}}function Cl(i,s){if(1&i&&(t.j41(0,"div",7)(1,"span",42),t.EFF(2),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.SpI("Error: ",e.rebalanceStatus.paymentStatus.error)}}function yl(i,s){if(1&i&&(t.j41(0,"div",7)(1,"div",56)(2,"div",57)(3,"h4",58),t.EFF(4,"Total Fees (Sats)"),t.k0s(),t.j41(5,"span",42),t.EFF(6),t.k0s()(),t.j41(7,"div",57)(8,"h4",58),t.EFF(9,"Number of Hops"),t.k0s(),t.j41(10,"span",42),t.EFF(11),t.k0s()()(),t.nrm(12,"mat-divider",59),t.j41(13,"div",56)(14,"div",60)(15,"h4",58),t.EFF(16,"Payment Hash"),t.k0s(),t.j41(17,"span",42),t.EFF(18),t.k0s()()(),t.nrm(19,"mat-divider",59),t.j41(20,"div",56)(21,"div",60)(22,"h4",58),t.EFF(23,"Payment ID"),t.k0s(),t.j41(24,"span",42),t.EFF(25),t.k0s()()(),t.nrm(26,"mat-divider",59),t.j41(27,"div",56)(28,"div",60)(29,"h4",58),t.EFF(30,"Parent ID"),t.k0s(),t.j41(31,"span",42),t.EFF(32),t.k0s()()()()),2&i){let e;const n=t.XpG();t.R7$(6),t.JRh(n.rebalanceStatus.paymentStatus.feesPaid?n.rebalanceStatus.paymentStatus.feesPaid/1e3:0),t.R7$(5),t.JRh(n.rebalanceStatus.paymentRoute&&""!==n.rebalanceStatus.paymentRoute?null==(e=n.rebalanceStatus.paymentRoute.split(","))?null:e.length:0),t.R7$(7),t.JRh(n.rebalanceStatus.paymentHash),t.R7$(7),t.JRh(n.rebalanceStatus.paymentDetails.paymentId),t.R7$(7),t.JRh(n.rebalanceStatus.paymentDetails.parentId)}}function bl(i,s){if(1&i){const e=t.RV6();t.j41(0,"span",76),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onStepChanged(a))}),t.nrm(1,"p",77),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngClass",t.l_i(1,Qs,n.stepNumber===e,n.stepNumber!==e))}}function Fl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",78),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(4))}),t.EFF(1,"Back"),t.k0s()}}function El(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",79),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(1,"Close"),t.k0s()}}function xl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",80),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(1,"Close"),t.k0s()}}function Ll(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",81),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(a.stepNumber-1))}),t.EFF(1,"Back"),t.k0s()}}function vl(i,s){if(1&i){const e=t.RV6();t.j41(0,"button",82),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onStepChanged(a.stepNumber+1))}),t.EFF(1,"Next"),t.k0s()}}function Sl(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",61)(1,"div",62)(2,"mat-card-header",63)(3,"div",64),t.nrm(4,"span",11),t.k0s(),t.j41(5,"div",65)(6,"button",14),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return a.flgShowInfo=!1,r.Njj(a.stepNumber=1)}),t.EFF(7,"X"),t.k0s()()(),t.j41(8,"mat-card-content",66)(9,"rtl-ecl-channel-rebalance-infographics",67),t.mxI("stepNumberChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.stepNumber,a)||(o.stepNumber=a),r.Njj(a)}),t.k0s()(),t.j41(10,"div",68),t.DNE(11,bl,2,4,"span",69),t.k0s(),t.j41(12,"div",70),t.DNE(13,Fl,2,0,"button",71)(14,El,2,0,"button",72)(15,xl,2,0,"button",73)(16,Ll,2,0,"button",74)(17,vl,2,0,"button",75),t.k0s()()()}if(2&i){const e=t.XpG();t.Y8G("@opacityAnimation",void 0),t.R7$(9),t.Y8G("animationDirection",e.animationDirection),t.R50("stepNumber",e.stepNumber),t.R7$(2),t.Y8G("ngForOf",t.lJ4(9,qs)),t.R7$(2),t.Y8G("ngIf",5===e.stepNumber),t.R7$(),t.Y8G("ngIf",5===e.stepNumber),t.R7$(),t.Y8G("ngIf",e.stepNumber<5),t.R7$(),t.Y8G("ngIf",e.stepNumber>1&&e.stepNumber<5),t.R7$(),t.Y8G("ngIf",e.stepNumber<5)}}let Rl=(()=>{var i;class s{constructor(n,a,o,l,m,u,T){this.dialogRef=n,this.data=a,this.logger=o,this.dataService=l,this.formBuilder=m,this.store=u,this.decimalPipe=T,this.faInfoCircle=E.iW_,this.information={},this.selChannel={},this.activeChannels=[],this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.inputFormLabel="Amount to rebalance",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.animationDirection="forward",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){let n="",a="";this.information=this.data.message?.information||{},this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(o=>o.channelId!==this.selChannel.channelId&&o.toRemote&&o.toRemote>0)||[],this.activeChannels=this.activeChannels.sort((o,l)=>(n=o.alias?o.alias.toLowerCase():o.shortChannelId?o.shortChannelId.toLowerCase():"",a=l.alias?l.alias.toLowerCase():o.shortChannelId?o.shortChannelId.toLowerCase():"",na?1:0)),this.inputFormGroup=this.formBuilder.group({rebalanceAmount:["",[f.k0.required,f.k0.min(1),f.k0.max(this.selChannel.toLocal||0)]],selRebalancePeer:[null,f.k0.required]}),this.statusFormGroup=this.formBuilder.group({}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,g.Q)(this.unSubs[0]),(0,yt.Z)(0)).subscribe(o=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,Ft.of)(o?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,g.Q)(this.unSubs[1]),(0,yt.Z)("")).subscribe(o=>{"string"==typeof o&&(this.filteredActiveChannels=(0,Ft.of)(this.filterActiveChannels()))})}stepSelectionChanged(n){switch(n.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.alias?this.inputFormGroup.controls.selRebalancePeer.value.alias:this.inputFormGroup.controls.selRebalancePeer.value.nodeId.substring(0,15)+"..."):"Amount to rebalance"}}onRebalance(){if(!this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.rebalanceAmount.value<=0||this.selChannel.toLocal&&this.inputFormGroup.controls.rebalanceAmount.value>+this.selChannel.toLocal||!this.inputFormGroup.controls.selRebalancePeer.value.nodeId)return this.inputFormGroup.controls.selRebalancePeer.value.nodeId||this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0;this.stepper.next(),this.flgEditable=!1,this.rebalanceStatus={flgReusingInvoice:!1,invoice:"",paymentRoute:"",paymentHash:"",paymentDetails:null,paymentStatus:null},this.dataService.circularRebalance(1e3*this.inputFormGroup.controls.rebalanceAmount.value,this.selChannel.shortChannelId,this.selChannel.nodeId,this.inputFormGroup.controls.selRebalancePeer.value.shortChannelId,this.inputFormGroup.controls.selRebalancePeer.value.nodeId,[this.information.nodeId||""]).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:n=>{this.logger.info(n),this.rebalanceStatus=n,this.flgEditable=!0,this.store.dispatch((0,j.$Q)())},error:n=>{this.logger.error(n),this.rebalanceStatus=n,this.flgEditable=!0}})}filterActiveChannels(){return this.activeChannels?.filter(n=>n.toRemote&&n.toRemote>=this.inputFormGroup.controls.rebalanceAmount.value&&n.channelId!==this.selChannel.channelId&&(0===n.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===n.channelId?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const n=this.activeChannels?.filter(a=>a.alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===a.alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));n&&n.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(n[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(n){return n&&n.alias?n.alias:n&&n.shortChannelId?n.shortChannelId:""}showInfo(){this.flgShowInfo=!0}onStepChanged(n){this.animationDirection=n{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(V.CP),t.rXU(V.Vh),t.rXU(A.gP),t.rXU(nt.u),t.rXU(f.ok),t.rXU(I.il),t.rXU(d.QX))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-rebalance"]],viewQuery:function(a,o){if(1&a&&t.GBs(Js,5),2&a){let l;t.mGM(l=t.lsd())&&(o.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],["fxFlex","100","color","primary","mode","indeterminate"],[1,"ml-1","icon-small"],["class","foreground-secondary-text",4,"ngFor","ngForOf"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(a,o){1&a&&t.DNE(0,fl,95,42,"div",5)(1,gl,1,1,"ng-template",null,0,t.C5r)(3,Cl,3,1,"ng-template",null,1,t.C5r)(5,yl,33,5,"ng-template",null,2,t.C5r)(7,Sl,18,10,"div",6),2&a&&(t.Y8G("ngIf",!o.flgShowInfo),t.R7$(7),t.Y8G("ngIf",o.flgShowInfo))},dependencies:[d.YU,d.Sq,d.bT,d.T3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.j4,f.JD,D.aY,V.tx,N.$z,x.m2,x.MM,U.GK,U.Z2,U.WN,ut.An,Y.fg,y.rl,y.nJ,y.MV,y.TL,y.yw,tt.q,H.HM,_.DJ,_.sA,_.UI,S.PW,z.wT,at.V5,at.Ti,at.M6,ct.$3,ct.pN,et.N,zs,d.Jj,d.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[Et.C]}}))}return i(),s})();const kl=()=>["all"],Il=i=>({"error-border":i}),Tl=()=>["no_peer"],xt=i=>({width:i}),wl=i=>({"display-none":i});function jl(i,s){if(1&i&&(t.j41(0,"mat-option",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Dl(i,s){1&i&&t.nrm(0,"mat-progress-bar",37)}function Gl(i,s){1&i&&t.nrm(0,"th",38)}function Pl(i,s){if(1&i&&(t.j41(0,"span",42),t.nrm(1,"fa-icon",43),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function Al(i,s){if(1&i&&(t.j41(0,"span",44),t.nrm(1,"fa-icon",43),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function Nl(i,s){if(1&i&&(t.j41(0,"td",39),t.DNE(1,Pl,2,1,"span",40)(2,Al,2,1,"span",41),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!(null!=e&&e.announceChannel)),t.R7$(),t.Y8G("ngIf",null==e?null:e.announceChannel)}}function Bl(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Short Channel ID"),t.k0s())}function Ml(i,s){if(1&i&&(t.j41(0,"td",39),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.shortChannelId)}}function $l(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Channel ID"),t.k0s())}function Vl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ol(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Alias"),t.k0s())}function Hl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function Yl(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Node ID"),t.k0s())}function Xl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",46)(2,"span",47),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,xt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Ul(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Initiator"),t.k0s())}function zl(i,s){if(1&i&&(t.j41(0,"td",39),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function Jl(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Base Fee (mSats)"),t.k0s())}function ql(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function Ql(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Fee Rate (mili mSats)"),t.k0s())}function Zl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function Wl(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function Kl(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function tr(i,s){1&i&&(t.j41(0,"th",48),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function er(i,s){if(1&i&&(t.j41(0,"td",39)(1,"span",49),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function nr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Balance Score"),t.k0s())}function ir(i,s){if(1&i&&(t.j41(0,"td",39)(1,"div",50)(2,"mat-hint",51),t.EFF(3),t.nI1(4,"number"),t.k0s()(),t.nrm(5,"mat-progress-bar",52),t.k0s()),2&i){const e=s.$implicit;t.R7$(3),t.JRh(t.bMT(4,3,(null==e?null:e.balancedness)||0)),t.R7$(2),t.Y8G("value",t.mNQ(null!=e&&e.toLocal&&(null==e?null:e.toLocal)>0?+(null==e?null:e.toLocal)/(+(null==e?null:e.toLocal)+ +(null==e?null:e.toRemote))*100:0))}}function ar(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",53)(1,"div",54)(2,"mat-select",55),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",56),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onChannelUpdate("all"))}),t.EFF(5,"Update Fee Policy"),t.k0s(),t.j41(6,"mat-option",56),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(7,"Download CSV"),t.k0s()()()()}}function or(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",57)(1,"div",54)(2,"mat-select",58),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",56),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelUpdate(a))}),t.EFF(7,"Update Fee Policy"),t.k0s(),t.j41(8,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onCircularRebalance(a))}),t.EFF(9,"Circular Rebalance"),t.k0s(),t.j41(10,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!1))}),t.EFF(11,"Close Channel"),t.k0s(),t.j41(12,"mat-option",56),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!0))}),t.EFF(13,"Force Close"),t.k0s()()()()}}function sr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No peers connected. Add a peer in order to open a channel."),t.k0s())}function lr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No channel available."),t.k0s())}function rr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting channels..."),t.k0s())}function cr(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function mr(i,s){if(1&i&&(t.j41(0,"td",59),t.DNE(1,sr,2,0,"p",60)(2,lr,2,0,"p",60)(3,rr,2,0,"p",60)(4,cr,2,1,"p",60),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function pr(i,s){if(1&i&&t.nrm(0,"tr",61),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,wl,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function ur(i,s){1&i&&t.nrm(0,"tr",62)}function dr(i,s){1&i&&t.nrm(0,"tr",63)}let hr=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=l,this.router=m,this.camelCaseWithSpaces=u,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=n.activeChannels,this.activeChannels&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onCircularRebalance(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{channels:this.activeChannels,selChannel:n,information:this.information},component:Rl}}}))}onChannelUpdate(n){"all"!==n&&n?.state&&"NORMAL"!==n?.state||(this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"string"==typeof n&&"all"===n?"Update fee policy for all channels":"Update fee policy for Channel: "+(n?.alias||n?.shortChannelId?n?.alias&&n?.shortChannelId?n?.alias+" ("+n?.shortChannelId+")":n?.alias?n?.alias:n?.shortChannelId:n?.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:c.UN.NUMBER,inputValue:n&&typeof n?.feeBaseMsat<"u"?n?.feeBaseMsat:1e3,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:c.UN.NUMBER,inputValue:n&&typeof n?.feeProportionalMillionths<"u"?n?.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(l=>{if(l){const m=l[0].inputValue,u=l[1].inputValue;let T=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let F="";"all"===n?(this.activeChannels.forEach(P=>{F=F+","+P.nodeId}),F=F.substring(1),T={baseFeeMsat:m,feeRate:u,nodeIds:F}):T={baseFeeMsat:m,feeRate:u,nodeId:n?.nodeId}}else{let F="";"all"===n?(this.activeChannels.forEach(P=>{F=F+","+P.channelId}),F=F.substring(1),T={baseFeeMsat:m,feeRate:u,channelIds:F}):T={baseFeeMsat:m,feeRate:u,channelId:n?.channelId}}this.store.dispatch((0,j.fy)({payload:T}))}}),this.applyFilter())}percentHintFunction(n){return(n/1e4).toString()+"%"}onChannelClose(n,a){this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId):"Closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[6])).subscribe(u=>{u&&this.store.dispatch((0,j.w0)({payload:{channelId:n.channelId,force:a}}))})}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"open",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU($.h),t.rXU(L.Ix),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:60,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,jl,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,Dl,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,Gl,1,0,"th",13)(20,Nl,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,Bl,2,0,"th",16)(23,Ml,2,1,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,$l,2,0,"th",16)(26,Vl,4,4,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,Ol,2,0,"th",16)(29,Hl,4,4,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,Yl,2,0,"th",16)(32,Xl,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,Ul,2,0,"th",16)(35,zl,2,1,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,Jl,2,0,"th",22)(38,ql,4,4,"td",14),t.bVm(),t.qex(39,23),t.DNE(40,Ql,2,0,"th",22)(41,Zl,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,Wl,2,0,"th",22)(44,Kl,4,4,"td",14),t.bVm(),t.qex(45,25),t.DNE(46,tr,2,0,"th",22)(47,er,4,4,"td",14),t.bVm(),t.qex(48,26),t.DNE(49,nr,2,0,"th",16)(50,ir,6,5,"td",14),t.bVm(),t.qex(51,27),t.DNE(52,ar,8,0,"th",28)(53,or,14,0,"td",29),t.bVm(),t.qex(54,30),t.DNE(55,mr,5,4,"td",31),t.bVm(),t.DNE(56,pr,1,3,"tr",32)(57,ur,1,0,"tr",33)(58,dr,1,0,"tr",34),t.k0s()(),t.nrm(59,"mat-paginator",35),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,kl).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,Il,""!==o.errorMessage)),t.R7$(40),t.Y8G("matFooterRowDef",t.lJ4(17,Tl)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,Y.fg,y.rl,y.nJ,y.MV,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return i(),s})();const fr=()=>["all"],_r=i=>({"error-border":i}),gr=()=>["no_channel"],$t=i=>({width:i}),Cr=i=>({"display-none":i});function yr(i,s){if(1&i&&(t.j41(0,"mat-option",33),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function br(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Fr(i,s){1&i&&t.nrm(0,"th",35)}function Er(i,s){if(1&i&&(t.j41(0,"span",39),t.nrm(1,"fa-icon",40),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function xr(i,s){if(1&i&&(t.j41(0,"span",41),t.nrm(1,"fa-icon",40),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function Lr(i,s){if(1&i&&(t.j41(0,"td",36),t.DNE(1,Er,2,1,"span",37)(2,xr,2,1,"span",38),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!(null!=e&&e.announceChannel)),t.R7$(),t.Y8G("ngIf",null==e?null:e.announceChannel)}}function vr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"State"),t.k0s())}function Sr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.state))}}function Rr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Channel ID"),t.k0s())}function kr(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",43)(2,"span",44),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,$t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ir(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Alias"),t.k0s())}function Tr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.alias)}}function wr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Node ID"),t.k0s())}function jr(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",43)(2,"span",44),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,$t,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function Dr(i,s){1&i&&(t.j41(0,"th",42),t.EFF(1,"Initiator"),t.k0s())}function Gr(i,s){if(1&i&&(t.j41(0,"td",36),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function Pr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function Ar(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",46),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Nr(i,s){1&i&&(t.j41(0,"th",45),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function Br(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",46),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Mr(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",50),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function $r(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",51)(1,"button",52),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function Vr(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No pending channel available."),t.k0s())}function Or(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting pending channels..."),t.k0s())}function Hr(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function Yr(i,s){if(1&i&&(t.j41(0,"td",53),t.DNE(1,Vr,2,0,"p",54)(2,Or,2,0,"p",54)(3,Hr,2,1,"p",54),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Xr(i,s){if(1&i&&t.nrm(0,"tr",55),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Cr,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Ur(i,s){1&i&&t.nrm(0,"tr",56)}function zr(i,s){1&i&&t.nrm(0,"tr",57)}let Jr=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.store=a,this.commonService=o,this.camelCaseWithSpaces=l,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=n.pendingChannels,this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"pending",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:51,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,yr,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,br,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,Fr,1,0,"th",13)(20,Lr,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,vr,2,0,"th",16)(23,Sr,3,3,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,Rr,2,0,"th",16)(26,kr,4,4,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,Ir,2,0,"th",16)(29,Tr,2,1,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,wr,2,0,"th",16)(32,jr,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,Dr,2,0,"th",16)(35,Gr,2,1,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,Pr,2,0,"th",22)(38,Ar,4,4,"td",14),t.bVm(),t.qex(39,23),t.DNE(40,Nr,2,0,"th",22)(41,Br,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,Mr,6,0,"th",25)(44,$r,3,0,"td",26),t.bVm(),t.qex(45,27),t.DNE(46,Yr,4,3,"td",28),t.bVm(),t.DNE(47,Xr,1,3,"tr",29)(48,Ur,1,0,"tr",30)(49,zr,1,0,"tr",31),t.k0s()(),t.nrm(50,"mat-paginator",32),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,fr).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,_r,""!==o.errorMessage)),t.R7$(31),t.Y8G("matFooterRowDef",t.lJ4(17,gr)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.PV],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const qr=()=>["all"],Qr=i=>({"error-border":i}),Zr=()=>["no_peer"],Vt=i=>({"mr-0":i}),Ot=i=>({width:i}),Wr=i=>({"display-none":i});function Kr(i,s){if(1&i&&(t.j41(0,"mat-option",35),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function t1(i,s){1&i&&t.nrm(0,"mat-progress-bar",36)}function e1(i,s){1&i&&t.nrm(0,"th",37)}function n1(i,s){if(1&i&&t.nrm(0,"span",41),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Vt,e.screenSize===e.screenSizeEnum.XS))}}function i1(i,s){if(1&i&&t.nrm(0,"span",42),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Vt,e.screenSize===e.screenSizeEnum.XS))}}function a1(i,s){if(1&i&&(t.j41(0,"td",38),t.DNE(1,n1,1,3,"span",39)(2,i1,1,3,"span",40),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","CONNECTED"===e.state),t.R7$(),t.Y8G("ngIf","DISCONNECTED"===e.state)}}function o1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Alias"),t.k0s())}function s1(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",44)(2,"span",45),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ot,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function l1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Node ID"),t.k0s())}function r1(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",44)(2,"span",45),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ot,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function c1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Network Address"),t.k0s())}function m1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",null==e?null:e.address," ")}}function p1(i,s){1&i&&(t.j41(0,"th",43),t.EFF(1,"Channels"),t.k0s())}function u1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.channels)}}function d1(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function h1(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG().$implicit,o=t.XpG();return r.Njj(o.onPeerDetach(a))}),t.EFF(1,"Disconnect"),t.k0s()}}function f1(i,s){if(1&i){const e=t.RV6();t.j41(0,"mat-option",49),t.bIt("click",function(){r.eBV(e);const a=t.XpG().$implicit,o=t.XpG();return r.Njj(o.onConnectPeer(a))}),t.EFF(1,"Reconnect"),t.k0s()}}function _1(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",50)(1,"div",47)(2,"mat-select",48),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",49),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onPeerClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",49),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onOpenChannel(a))}),t.EFF(7,"Open Channel"),t.k0s(),t.DNE(8,h1,2,0,"mat-option",51)(9,f1,2,0,"mat-option",51),t.k0s()()()}if(2&i){const e=s.$implicit;t.R7$(8),t.Y8G("ngIf","CONNECTED"===e.state),t.R7$(),t.Y8G("ngIf","DISCONNECTED"===e.state)}}function g1(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No connected peer."),t.k0s())}function C1(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting peers..."),t.k0s())}function y1(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function b1(i,s){if(1&i&&(t.j41(0,"td",52),t.DNE(1,g1,2,0,"p",53)(2,C1,2,0,"p",53)(3,y1,2,1,"p",53),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function F1(i,s){if(1&i&&t.nrm(0,"tr",54),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,Wr,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function E1(i,s){1&i&&t.nrm(0,"tr",55)}function x1(i,s){1&i&&t.nrm(0,"tr",56)}let L1=(()=>{var i;class s{constructor(n,a,o,l,m,u){this.logger=n,this.store=a,this.rtlEffects=o,this.actions=l,this.commonService=m,this.camelCaseWithSpaces=u,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.faUsers=E.gdJ,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new p.I6([]),this.information={},this.availableBalance=0,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.information=n}),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=n.peers,this.loadPeersTable(this.peersData),this.logger.info(n)}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.availableBalance=n.onchainBalance.total||0}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,X.p)(n=>n.type===c.Uu.SET_PEERS_ECL)).subscribe(n=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(n,a){const o=[[{key:"nodeId",value:n.nodeId,title:"Public Key",width:100}],[{key:"address",value:n.address,title:"Address",width:50},{key:"alias",value:n.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(n.state||""),title:"State",width:50},{key:"channels",value:n.channels,title:"Channels",width:50}]];this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:n.nodeId,goToName:"Graph lookup",goToLink:"/ecl/graph/lookups",showQRName:"Public Key",showQRField:n.nodeId,message:o}}}))}onConnectPeer(n){this.store.dispatch((0,k.xO)({payload:{data:{message:{peer:n.nodeId?n:null,information:this.information,balance:this.availableBalance},component:Pt}}}))}onOpenChannel(n){this.store.dispatch((0,k.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:n,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Mt}}}))}onPeerDetach(n){this.store.dispatch(n&&n.channels&&n.channels>0?(0,k.xO)({payload:{data:{type:c.A$.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(n.alias?n.alias:n.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(a=>{a&&this.store.dispatch((0,j.Lc)({payload:{nodeId:n.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.peers.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"state":o=n?.state?.toLowerCase()||"";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===o.indexOf(a):o.includes(a)}}loadPeersTable(n){this.peers=new p.I6(n?[...n]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(a,o)=>a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU(K.En),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-peers"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Peers")}])],decls:50,vars:19,consts:[["peersForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",2)(1,"form",3,0)(3,"button",4),t.bIt("click",function(){return r.eBV(l),r.Njj(o.onConnectPeer({}))}),t.EFF(4,"Add Peer"),t.k0s()(),t.j41(5,"div",5)(6,"div",6)(7,"div",7),t.nrm(8,"fa-icon",8),t.j41(9,"span",9),t.EFF(10,"Peers"),t.k0s()(),t.j41(11,"div",10)(12,"mat-form-field",11)(13,"mat-label"),t.EFF(14,"Filter By"),t.k0s(),t.j41(15,"mat-select",12),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(16,"perfect-scrollbar"),t.DNE(17,Kr,2,2,"mat-option",13),t.k0s()()(),t.j41(18,"mat-form-field",11)(19,"mat-label"),t.EFF(20,"Filter"),t.k0s(),t.j41(21,"input",14),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(22,"div",15),t.DNE(23,t1,1,0,"mat-progress-bar",16),t.j41(24,"table",17,1),t.qex(26,18),t.DNE(27,e1,1,0,"th",19)(28,a1,3,2,"td",20),t.bVm(),t.qex(29,21),t.DNE(30,o1,2,0,"th",22)(31,s1,4,4,"td",20),t.bVm(),t.qex(32,23),t.DNE(33,l1,2,0,"th",22)(34,r1,4,4,"td",20),t.bVm(),t.qex(35,24),t.DNE(36,c1,2,0,"th",22)(37,m1,2,1,"td",20),t.bVm(),t.qex(38,25),t.DNE(39,p1,2,0,"th",22)(40,u1,2,1,"td",20),t.bVm(),t.qex(41,26),t.DNE(42,d1,6,0,"th",27)(43,_1,10,2,"td",28),t.bVm(),t.qex(44,29),t.DNE(45,b1,4,3,"td",30),t.bVm(),t.DNE(46,F1,1,3,"tr",31)(47,E1,1,0,"tr",32)(48,x1,1,0,"tr",33),t.k0s()(),t.nrm(49,"mat-paginator",34),t.k0s()()}2&a&&(t.R7$(8),t.Y8G("icon",o.faUsers),t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(15,qr).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.peers)("ngClass",t.eq3(16,Qr,""!==o.errorMessage)),t.R7$(22),t.Y8G("matFooterRowDef",t.lJ4(18,Zr)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.BC,f.cb,f.vS,f.cV,D.aY,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return i(),s})();const v1=["queryRoutesForm"],S1=i=>({"overflow-auto error-border":i,"overflow-auto":!0}),Ht=i=>({"max-width":i});function R1(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Destination Node ID is required."),t.k0s())}function k1(i,s){1&i&&(t.j41(0,"mat-error"),t.EFF(1,"Amount is required."),t.k0s())}function I1(i,s){1&i&&t.nrm(0,"mat-progress-bar",23)}function T1(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1," Alias"),t.k0s())}function w1(i,s){if(1&i&&(t.j41(0,"td",41)(1,"span",42)(2,"span",43),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ht,n.screenSize===n.screenSizeEnum.XS?"6rem":"30rem")),t.R7$(2),t.JRh(null==e?null:e.alias)}}function j1(i,s){1&i&&(t.j41(0,"th",40),t.EFF(1," ID"),t.k0s())}function D1(i,s){if(1&i&&(t.j41(0,"td",41)(1,"span",42)(2,"span",43),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,Ht,n.screenSize===n.screenSizeEnum.XS?"6rem":"30rem")),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function G1(i,s){1&i&&(t.j41(0,"th",40)(1,"div",44),t.EFF(2,"Actions"),t.k0s()())}function P1(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",45)(1,"button",46),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG(2);return r.Njj(o.onHopClick(a))}),t.EFF(2,"View Info"),t.k0s()()}}function A1(i,s){1&i&&t.nrm(0,"tr",47)}function N1(i,s){1&i&&t.nrm(0,"tr",48)}function B1(i,s){if(1&i&&(t.j41(0,"div",24)(1,"mat-expansion-panel",25)(2,"mat-expansion-panel-header")(3,"mat-panel-title",26)(4,"span",27),t.EFF(5),t.k0s(),t.j41(6,"span",28),t.EFF(7),t.nI1(8,"number"),t.k0s()()(),t.j41(9,"mat-panel-description",29)(10,"div",30)(11,"table",31,2),t.qex(13,32),t.DNE(14,T1,2,0,"th",33)(15,w1,4,4,"td",34),t.bVm(),t.qex(16,35),t.DNE(17,j1,2,0,"th",33)(18,D1,4,4,"td",34),t.bVm(),t.qex(19,36),t.DNE(20,G1,3,0,"th",33)(21,P1,3,0,"td",37),t.bVm(),t.DNE(22,A1,1,0,"tr",38)(23,N1,1,0,"tr",39),t.k0s()()()()()),2&i){const e=s.$implicit,n=s.index,a=t.XpG();t.R7$(5),t.SpI("Route ",n+1),t.R7$(2),t.JRh(t.bMT(8,6,e.amount/1e3)),t.R7$(4),t.Y8G("dataSource",a.qrHops[n])("ngClass",t.eq3(8,S1,"error"===a.flgLoading[0])),t.R7$(11),t.Y8G("matHeaderRowDef",a.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",a.displayedColumns)}}let M1=(()=>{var i;class s{constructor(n,a,o){this.store=n,this.eclEffects=a,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=E.TBz,this.faExclamationTriangle=E.zpE,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new p.I6([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{n&&n.routes&&n.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=n.routes,this.allQRoutes.forEach((a,o)=>{this.qrHops[o]=new p.I6([...a.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,j.T4)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(n){this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:n.alias,title:"Alias",width:100,type:c.UN.STRING}],[{key:"nodeId",value:n.nodeId,title:"Node ID",width:100,type:c.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(I.il),t.rXU(ht.B),t.rXU($.h))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(a,o){if(1&a&&t.GBs(v1,7),2&a){let l;t.mGM(l=t.lsd())&&(o.form=l.first)}},standalone:!1,decls:32,vars:10,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table[i]",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","nodeId","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","column","fxFlex","100"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",3)(1,"form",4,0),t.bIt("ngSubmit",function(){r.eBV(l);const u=t.sdS(2);return r.Njj(u.form.valid&&o.onQueryRoutes())}),t.j41(3,"div",5),t.nrm(4,"fa-icon",6),t.j41(5,"span"),t.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.k0s()(),t.j41(7,"mat-form-field",7)(8,"mat-label"),t.EFF(9,"Destination Node ID"),t.k0s(),t.j41(10,"input",8,1),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.nodeId,u)||(o.nodeId=u),r.Njj(u)}),t.k0s(),t.DNE(12,R1,2,0,"mat-error",9),t.k0s(),t.j41(13,"mat-form-field",10)(14,"mat-label"),t.EFF(15,"Amount (Sats)"),t.k0s(),t.j41(16,"input",11),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.amount,u)||(o.amount=u),r.Njj(u)}),t.k0s(),t.DNE(17,k1,2,0,"mat-error",9),t.k0s(),t.j41(18,"div",12)(19,"button",13),t.bIt("click",function(){return r.eBV(l),r.Njj(o.resetData())}),t.EFF(20,"Clear"),t.k0s(),t.j41(21,"button",14),t.EFF(22,"Query Route"),t.k0s()()(),t.j41(23,"div",15)(24,"div",16),t.nrm(25,"fa-icon",17),t.j41(26,"span",18),t.EFF(27,"Transaction Route"),t.k0s()()(),t.DNE(28,I1,1,0,"mat-progress-bar",19),t.j41(29,"div",20)(30,"div",21),t.DNE(31,B1,24,10,"div",22),t.k0s()()()}2&a&&(t.R7$(4),t.Y8G("icon",o.faExclamationTriangle),t.R7$(6),t.R50("ngModel",o.nodeId),t.R7$(2),t.Y8G("ngIf",!o.nodeId),t.R7$(4),t.Y8G("step",1e3)("min",0),t.R50("ngModel",o.amount),t.R7$(),t.Y8G("ngIf",!o.amount),t.R7$(8),t.Y8G("icon",o.faRoute),t.R7$(3),t.Y8G("ngIf",!0===o.flgLoading[0]),t.R7$(3),t.Y8G("ngForOf",o.allQRoutes))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.qT,f.me,f.Q0,f.BC,f.cb,f.YS,f.VZ,f.vS,f.cV,D.aY,N.$z,U.GK,U.Z2,U.WN,U.Q6,Y.fg,y.rl,y.nJ,y.TL,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.KS,p.$R,p.YZ,p.NB,B.Ld,it.V,d.QX],encapsulation:2}))}return i(),s})();const $1=()=>["all"],V1=i=>({"error-border":i}),O1=()=>["no_channel"],Lt=i=>({width:i}),H1=i=>({"display-none":i});function Y1(i,s){if(1&i&&(t.j41(0,"mat-option",35),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG();t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function X1(i,s){1&i&&t.nrm(0,"mat-progress-bar",36)}function U1(i,s){1&i&&t.nrm(0,"th",37)}function z1(i,s){if(1&i&&(t.j41(0,"span",41),t.nrm(1,"fa-icon",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEyeSlash)}}function J1(i,s){if(1&i&&(t.j41(0,"span",43),t.nrm(1,"fa-icon",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("icon",e.faEye)}}function q1(i,s){if(1&i&&(t.j41(0,"td",38),t.DNE(1,z1,2,1,"span",39)(2,J1,2,1,"span",40),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf",!e.announceChannel),t.R7$(),t.Y8G("ngIf",e.announceChannel)}}function Q1(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"State"),t.k0s())}function Z1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.nI1(2,"titlecase"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(t.bMT(2,1,null==e?null:e.state))}}function W1(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Short Channel ID"),t.k0s())}function K1(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.shortChannelId)}}function tc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Channel ID"),t.k0s())}function ec(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function nc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Alias"),t.k0s())}function ic(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(e.alias)}}function ac(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Node ID"),t.k0s())}function oc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",45)(2,"span",46),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG();t.R7$(),t.Y8G("ngStyle",t.eq3(2,Lt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.nodeId)}}function sc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Initiator"),t.k0s())}function lc(i,s){if(1&i&&(t.j41(0,"td",38),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null!=e&&e.isInitiator?"Yes":"No")}}function rc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Local Balance (Sats)"),t.k0s())}function cc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"span",48),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function mc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Remote Balance (Sats)"),t.k0s())}function pc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"span",48),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.SpI(" ",t.i5U(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function uc(i,s){1&i&&(t.j41(0,"th",44),t.EFF(1,"Balance Score"),t.k0s())}function dc(i,s){if(1&i&&(t.j41(0,"td",38)(1,"div",49)(2,"mat-hint",50),t.EFF(3),t.nI1(4,"number"),t.k0s()(),t.nrm(5,"mat-progress-bar",51),t.k0s()),2&i){const e=s.$implicit;t.R7$(3),t.JRh(t.bMT(4,3,(null==e?null:e.balancedness)||0)),t.R7$(2),t.Y8G("value",t.mNQ(e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0))}}function hc(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",52)(1,"div",53)(2,"mat-select",54),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function fc(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",56)(1,"div",53)(2,"mat-select",57),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG();return r.Njj(l.onChannelClick(o,a))}),t.EFF(5,"View Info"),t.k0s(),t.j41(6,"mat-option",55),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.onChannelClose(a,!0))}),t.EFF(7,"Force Close"),t.k0s()()()()}}function _c(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No inactive channel available."),t.k0s())}function gc(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting inactive channels..."),t.k0s())}function Cc(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.JRh(e.errorMessage)}}function yc(i,s){if(1&i&&(t.j41(0,"td",58),t.DNE(1,_c,2,0,"p",59)(2,gc,2,0,"p",59)(3,Cc,2,1,"p",59),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function bc(i,s){if(1&i&&t.nrm(0,"tr",60),2&i){const e=t.XpG();t.Y8G("ngClass",t.eq3(1,H1,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Fc(i,s){1&i&&t.nrm(0,"tr",61)}function Ec(i,s){1&i&&t.nrm(0,"tr",62)}let xc=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.store=a,this.rtlEffects=o,this.commonService=l,this.camelCaseWithSpaces=m,this.faEye=E.pS3,this.faEyeSlash=E.k6j,this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new p.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=c.G,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.Ou).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=n.inactiveChannels,this.loadChannelsTable(),this.logger.info(n)}),this.store.select(b.p3).pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{this.information=n}),this.store.select(b.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(n=>{this.numPeers=n.peers&&n.peers.length?n.peers.length:0}),this.store.select(b.DW).pipe((0,g.Q)(this.unSubs[4])).subscribe(n=>{this.totalBalance=n.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(n,a){this.store.dispatch((0,k.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:a?"Force Close Channel":"Close Channel",titleMessage:a?"Force closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId):"Closing channel: "+(n.alias||n.shortChannelId?n.alias&&n.shortChannelId?n.alias+" ("+n.shortChannelId+")":n.alias?n.alias:n.shortChannelId:n.channelId),noBtnText:"Cancel",yesBtnText:a?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[5])).subscribe(u=>{u&&this.store.dispatch((0,j.w0)({payload:{channelId:n.channelId||"",force:a}}))})}onChannelClick(n,a){this.store.dispatch((0,k.xO)({payload:{data:{channel:n,channelsType:"inactive",component:bt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):"announceChannel"===n?"Private":this.commonService.titleCase(n)}setFilterPredicate(){this.channels.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(n).toLowerCase();break;case"announceChannel":o=n?.announceChannel?"public":"private";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadChannelsTable(){this.channels=new p.I6([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(n,a)=>n[a]&&isNaN(n[a])?n[a].toLocaleLowerCase():n[a]?+n[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU(I.il),t.rXU(lt.H),t.rXU($.h),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Channels")}])],decls:57,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isInitiator"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){if(1&a){const l=t.RV6();t.j41(0,"div",1)(1,"div",2),t.nrm(2,"div",3),t.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),t.EFF(6,"Filter By"),t.k0s(),t.j41(7,"mat-select",6),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilterBy,u)||(o.selFilterBy=u),r.Njj(u)}),t.bIt("selectionChange",function(){return r.eBV(l),o.selFilter="",r.Njj(o.applyFilter())}),t.j41(8,"perfect-scrollbar"),t.DNE(9,Y1,2,2,"mat-option",7),t.k0s()()(),t.j41(10,"mat-form-field",5)(11,"mat-label"),t.EFF(12,"Filter"),t.k0s(),t.j41(13,"input",8),t.mxI("ngModelChange",function(u){return r.eBV(l),t.DH7(o.selFilter,u)||(o.selFilter=u),r.Njj(u)}),t.bIt("input",function(){return r.eBV(l),r.Njj(o.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(o.applyFilter())}),t.k0s()()()(),t.j41(14,"div",9),t.DNE(15,X1,1,0,"mat-progress-bar",10),t.j41(16,"table",11,0),t.qex(18,12),t.DNE(19,U1,1,0,"th",13)(20,q1,3,2,"td",14),t.bVm(),t.qex(21,15),t.DNE(22,Q1,2,0,"th",16)(23,Z1,3,3,"td",14),t.bVm(),t.qex(24,17),t.DNE(25,W1,2,0,"th",16)(26,K1,2,1,"td",14),t.bVm(),t.qex(27,18),t.DNE(28,tc,2,0,"th",16)(29,ec,4,4,"td",14),t.bVm(),t.qex(30,19),t.DNE(31,nc,2,0,"th",16)(32,ic,4,4,"td",14),t.bVm(),t.qex(33,20),t.DNE(34,ac,2,0,"th",16)(35,oc,4,4,"td",14),t.bVm(),t.qex(36,21),t.DNE(37,sc,2,0,"th",16)(38,lc,2,1,"td",14),t.bVm(),t.qex(39,22),t.DNE(40,rc,2,0,"th",23)(41,cc,4,4,"td",14),t.bVm(),t.qex(42,24),t.DNE(43,mc,2,0,"th",23)(44,pc,4,4,"td",14),t.bVm(),t.qex(45,25),t.DNE(46,uc,2,0,"th",16)(47,dc,6,5,"td",14),t.bVm(),t.qex(48,26),t.DNE(49,hc,6,0,"th",27)(50,fc,8,0,"td",28),t.bVm(),t.qex(51,29),t.DNE(52,yc,4,3,"td",30),t.bVm(),t.DNE(53,bc,1,3,"tr",31)(54,Fc,1,0,"tr",32)(55,Ec,1,0,"tr",33),t.k0s()(),t.nrm(56,"mat-paginator",34),t.k0s()}2&a&&(t.R7$(7),t.R50("ngModel",o.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(14,$1).concat(o.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",o.selFilter),t.R7$(2),t.Y8G("ngIf",o.apiCallStatus.status===o.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",o.tableSetting.sortBy)("matSortDirection",o.tableSetting.sortOrder)("dataSource",o.channels)("ngClass",t.eq3(15,V1,""!==o.errorMessage)),t.R7$(37),t.Y8G("matFooterRowDef",t.lJ4(17,O1)),t.R7$(),t.Y8G("matHeaderRowDef",o.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",o.displayedColumns),t.R7$(),t.Y8G("pageSize",o.pageSize)("pageSizeOptions",o.pageSizeOptions)("showFirstLastButtons",o.screenSize!==o.screenSizeEnum.XS))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,D.aY,Y.fg,y.rl,y.nJ,y.MV,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.PV],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}))}return i(),s})();const Lc=()=>["all"],vc=()=>["no_event"],Sc=i=>({"ml-0":i}),st=i=>({width:i}),Rc=i=>({"display-none":i});function kc(i,s){if(1&i&&(t.j41(0,"div",6),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.errorMessage)}}function Ic(i,s){if(1&i&&(t.j41(0,"mat-option",14),t.EFF(1),t.k0s()),2&i){const e=s.$implicit,n=t.XpG(2);t.Y8G("value",e),t.R7$(),t.JRh(n.getLabel(e))}}function Tc(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",7),t.nrm(1,"div",8),t.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),t.EFF(5,"Filter By"),t.k0s(),t.j41(6,"mat-select",11),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilterBy,a)||(o.selFilterBy=a),r.Njj(a)}),t.bIt("selectionChange",function(){r.eBV(e);const a=t.XpG();return a.selFilter="",r.Njj(a.applyFilter())}),t.j41(7,"perfect-scrollbar"),t.DNE(8,Ic,2,2,"mat-option",12),t.k0s()()(),t.j41(9,"mat-form-field",10)(10,"mat-label"),t.EFF(11,"Filter"),t.k0s(),t.j41(12,"input",13),t.mxI("ngModelChange",function(a){r.eBV(e);const o=t.XpG();return t.DH7(o.selFilter,a)||(o.selFilter=a),r.Njj(a)}),t.bIt("input",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())})("keyup",function(){r.eBV(e);const a=t.XpG();return r.Njj(a.applyFilter())}),t.k0s()()()()}if(2&i){const e=t.XpG();t.R7$(6),t.R50("ngModel",e.selFilterBy),t.R7$(2),t.Y8G("ngForOf",t.lJ4(3,Lc).concat(e.displayedColumns.slice(0,-1))),t.R7$(4),t.R50("ngModel",e.selFilter)}}function wc(i,s){1&i&&t.nrm(0,"mat-progress-bar",42)}function jc(i,s){1&i&&t.nrm(0,"th",43)}function Dc(i,s){if(1&i&&(t.nrm(0,"span",46),t.nI1(1,"camelcase")),2&i){const e=t.XpG().$implicit,n=t.XpG(2);t.Y8G("matTooltip",t.mNQ(t.bMT(1,3,null==e?null:e.type)))("ngClass",t.eq3(5,Sc,n.screenSize===n.screenSizeEnum.XS))}}function Gc(i,s){if(1&i&&(t.j41(0,"td",44),t.DNE(1,Dc,2,7,"span",45),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.Y8G("ngIf","payment-relayed"!==(null==e?null:e.type))}}function Pc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Date/Time"),t.k0s())}function Ac(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function Nc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel ID"),t.k0s())}function Bc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.fromChannelId)}}function Mc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel Short ID"),t.k0s())}function $c(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.fromShortChannelId)}}function Vc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"In Channel"),t.k0s())}function Oc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.fromChannelAlias)}}function Hc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel ID"),t.k0s())}function Yc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.toChannelId)}}function Xc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel Short ID"),t.k0s())}function Uc(i,s){if(1&i&&(t.j41(0,"td",44),t.EFF(1),t.k0s()),2&i){const e=s.$implicit;t.R7$(),t.JRh(null==e?null:e.toShortChannelId)}}function zc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Out Channel"),t.k0s())}function Jc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.toChannelAlias)}}function qc(i,s){1&i&&(t.j41(0,"th",47),t.EFF(1,"Payment Hash"),t.k0s())}function Qc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"div",48)(2,"span",49),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,st,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.paymentHash)}}function Zc(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Amount In (Sats)"),t.k0s())}function Wc(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.amountIn))}}function Kc(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Amount Out (Sats)"),t.k0s())}function tm(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,null==e?null:e.amountOut))}}function em(i,s){1&i&&(t.j41(0,"th",50),t.EFF(1,"Fee Earned (Sats)"),t.k0s())}function nm(i,s){if(1&i&&(t.j41(0,"td",44)(1,"span",51),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function im(i,s){if(1&i){const e=t.RV6();t.j41(0,"th",52)(1,"div",53)(2,"mat-select",54),t.nrm(3,"mat-select-trigger"),t.j41(4,"mat-option",55),t.bIt("click",function(){r.eBV(e);const a=t.XpG(2);return r.Njj(a.onDownloadCSV())}),t.EFF(5,"Download CSV"),t.k0s()()()()}}function am(i,s){if(1&i){const e=t.RV6();t.j41(0,"td",56)(1,"button",57),t.bIt("click",function(a){const o=r.eBV(e).$implicit,l=t.XpG(2);return r.Njj(l.onForwardingEventClick(o,a))}),t.EFF(2,"View Info"),t.k0s()()}}function om(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No forwarding history available."),t.k0s())}function sm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting forwarding history..."),t.k0s())}function lm(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function rm(i,s){if(1&i&&(t.j41(0,"td",58),t.DNE(1,om,2,0,"p",59)(2,sm,2,0,"p",59)(3,lm,2,1,"p",59),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function cm(i,s){if(1&i&&t.nrm(0,"tr",60),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Rc,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function mm(i,s){1&i&&t.nrm(0,"tr",61)}function pm(i,s){1&i&&t.nrm(0,"tr",62)}function um(i,s){if(1&i&&(t.j41(0,"div",15),t.DNE(1,wc,1,0,"mat-progress-bar",16),t.j41(2,"table",17,0),t.qex(4,18),t.DNE(5,jc,1,0,"th",19)(6,Gc,2,1,"td",20),t.bVm(),t.qex(7,21),t.DNE(8,Pc,2,0,"th",22)(9,Ac,3,4,"td",20),t.bVm(),t.qex(10,23),t.DNE(11,Nc,2,0,"th",22)(12,Bc,4,4,"td",20),t.bVm(),t.qex(13,24),t.DNE(14,Mc,2,0,"th",22)(15,$c,2,1,"td",20),t.bVm(),t.qex(16,25),t.DNE(17,Vc,2,0,"th",22)(18,Oc,4,4,"td",20),t.bVm(),t.qex(19,26),t.DNE(20,Hc,2,0,"th",22)(21,Yc,4,4,"td",20),t.bVm(),t.qex(22,27),t.DNE(23,Xc,2,0,"th",22)(24,Uc,2,1,"td",20),t.bVm(),t.qex(25,28),t.DNE(26,zc,2,0,"th",22)(27,Jc,4,4,"td",20),t.bVm(),t.qex(28,29),t.DNE(29,qc,2,0,"th",22)(30,Qc,4,4,"td",20),t.bVm(),t.qex(31,30),t.DNE(32,Zc,2,0,"th",31)(33,Wc,4,3,"td",20),t.bVm(),t.qex(34,32),t.DNE(35,Kc,2,0,"th",31)(36,tm,4,3,"td",20),t.bVm(),t.qex(37,33),t.DNE(38,em,2,0,"th",31)(39,nm,4,3,"td",20),t.bVm(),t.qex(40,34),t.DNE(41,im,6,0,"th",35)(42,am,3,0,"td",36),t.bVm(),t.qex(43,37),t.DNE(44,rm,4,3,"td",38),t.bVm(),t.DNE(45,cm,1,3,"tr",39)(46,mm,1,0,"tr",40)(47,pm,1,0,"tr",41),t.k0s()()),2&i){const e=t.XpG();t.R7$(),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.forwardingHistoryEvents),t.R7$(43),t.Y8G("matFooterRowDef",t.lJ4(7,vc)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns)}}function dm(i,s){if(1&i&&t.nrm(0,"mat-paginator",63),2&i){const e=t.XpG();t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Yt=(()=>{var i;class s{constructor(n,a,o,l,m){this.logger=n,this.commonService=a,this.store=o,this.datePipe=l,this.camelCaseWithSpaces=m,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=c.WW,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(n){n.eventsData&&(this.apiCallStatus={status:c.wn.COMPLETED,action:"FetchPayments"},this.eventsData=n.eventsData.currentValue,n.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),n.selFilter&&!n.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=n.pageSettings.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.pageId)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=n.payments&&n.payments.relayed?n.payments.relayed:[],this.eventsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData)})}ngAfterViewInit(){setTimeout(()=>{this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)},0)}onForwardingEventClick(n,a){const o=[[{key:"paymentHash",value:n.paymentHash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"timestamp",value:Math.round((n.timestamp||0)/1e3),title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"fee",value:(n.amountIn||0)-(n.amountOut||0),title:"Fee Earned (Sats)",width:50,type:c.UN.NUMBER}],[{key:"amountIn",value:n.amountIn,title:"Amount In (Sats)",width:50,type:c.UN.NUMBER},{key:"amountOut",value:n.amountOut,title:"Amount Out (Sats)",width:50,type:c.UN.NUMBER}],[{key:"fromChannelAlias",value:n.fromChannelAlias,title:"From Channel Alias",width:50,type:c.UN.STRING},{key:"fromShortChannelId",value:n.fromShortChannelId,title:"From Short Channel ID",width:50,type:c.UN.STRING}],[{key:"fromChannelId",value:n.fromChannelId,title:"From Channel ID",width:100,type:c.UN.STRING}],[{key:"toChannelAlias",value:n.toChannelAlias,title:"To Channel Alias",width:50,type:c.UN.STRING},{key:"toShortChannelId",value:n.toShortChannelId,title:"To Short Channel ID",width:50,type:c.UN.STRING}],[{key:"toChannelId",value:n.toChannelId,title:"To Channel ID",width:100,type:c.UN.STRING}]];"payment-relayed"!==n.type&&o?.unshift([{key:"type",value:this.commonService.camelCase(n.type),title:"Relay Type",width:100,type:c.UN.STRING}]),this.store.dispatch((0,k.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Event Information",message:o}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(n){const a=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column):this.commonService.titleCase(n)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(n,a)=>{let o="";switch(this.selFilterBy){case"all":o=(n.timestamp?this.datePipe.transform(new Date(n.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(n).toLowerCase();break;case"timestamp":o=this.datePipe.transform(new Date(n.timestamp||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":o=(n.amountIn-n.amountOut).toString()||"0";break;default:o=typeof n[this.selFilterBy]>"u"?"":"string"==typeof n[this.selFilterBy]?n[this.selFilterBy].toLowerCase():"boolean"==typeof n[this.selFilterBy]?n[this.selFilterBy]?"yes":"no":n[this.selFilterBy].toString()}return o.includes(a)}}loadForwardingEventsTable(n){this.forwardingHistoryEvents=new p.I6([...n]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(a,o)=>"fee"===o?a.amountIn-a.amountOut:a[o]&&isNaN(a[o])?a[o].toLocaleLowerCase():a[o]?+a[o]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(d.vh),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(a,o){if(1&a&&(t.GBs(v.B4,5),t.GBs(w.iy,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sort=l.first),t.mGM(l=t.lsd())&&(o.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[t.Jv_([{provide:R.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:w.xX,useValue:(0,c.on)("Events")}]),t.OA$],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(a,o){1&a&&(t.j41(0,"div",1),t.DNE(1,kc,2,1,"div",2)(2,Tc,13,4,"div",3)(3,um,48,8,"div",4)(4,dm,1,3,"mat-paginator",5),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",""!==o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage))},dependencies:[d.YU,d.Sq,d.bT,d.B3,f.me,f.BC,f.vS,N.$z,Y.fg,y.rl,y.nJ,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,R.VO,R.$2,z.wT,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,Q.oV,w.iy,B.ZF,B.Ld,d.QX,d.vh,q.ZE],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-actions[_ngcontent-%COMP%]{min-height:3.55rem}"]}))}return i(),s})();const hm=["tableIn"],fm=["tableOut"],_m=["paginatorIn"],gm=["paginatorOut"],Cm=(i,s)=>({"mt-2":i,"mt-1":s}),ym=()=>["no_incoming_event"],bm=i=>({"mt-2":i}),Fm=()=>["no_outgoing_event"],mt=i=>({width:i}),Xt=i=>({"display-none":i});function Em(i,s){if(1&i&&(t.j41(0,"div",7),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.errorMessage)}}function xm(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Lm(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Channel ID"),t.k0s())}function vm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Sm(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Peer Alias"),t.k0s())}function Rm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function km(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Events"),t.k0s())}function Im(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.events))}}function Tm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Amount (Sats)"),t.k0s())}function wm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalAmount))}}function jm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Fee (Sats)"),t.k0s())}function Dm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalFee))}}function Gm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No incoming routing peer available."),t.k0s())}function Pm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting incoming routing peers..."),t.k0s())}function Am(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function Nm(i,s){if(1&i&&(t.j41(0,"td",41),t.DNE(1,Gm,2,0,"p",42)(2,Pm,2,0,"p",42)(3,Am,2,1,"p",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Bm(i,s){if(1&i&&t.nrm(0,"tr",43),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Xt,(null==e.routingPeersIncoming?null:e.routingPeersIncoming.data)&&(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)>0))}}function Mm(i,s){1&i&&t.nrm(0,"tr",44)}function $m(i,s){1&i&&t.nrm(0,"tr",45)}function Vm(i,s){1&i&&t.nrm(0,"mat-progress-bar",34)}function Om(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Channel ID"),t.k0s())}function Hm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.channelId)}}function Ym(i,s){1&i&&(t.j41(0,"th",35),t.EFF(1,"Peer Alias"),t.k0s())}function Xm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"div",37)(2,"span",38),t.EFF(3),t.k0s()()()),2&i){const e=s.$implicit,n=t.XpG(2);t.R7$(),t.Y8G("ngStyle",t.eq3(2,mt,n.screenSize===n.screenSizeEnum.XS?"6rem":n.colWidth)),t.R7$(2),t.JRh(null==e?null:e.alias)}}function Um(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Events"),t.k0s())}function zm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.events))}}function Jm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Amount (Sats)"),t.k0s())}function qm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalAmount))}}function Qm(i,s){1&i&&(t.j41(0,"th",39),t.EFF(1,"Fee (Sats)"),t.k0s())}function Zm(i,s){if(1&i&&(t.j41(0,"td",36)(1,"span",40),t.EFF(2),t.nI1(3,"number"),t.k0s()()),2&i){const e=s.$implicit;t.R7$(2),t.JRh(t.bMT(3,1,e.totalFee))}}function Wm(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"No outgoing routing peer available."),t.k0s())}function Km(i,s){1&i&&(t.j41(0,"p"),t.EFF(1,"Getting outgoing routing peers..."),t.k0s())}function tp(i,s){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(3);t.R7$(),t.JRh(e.errorMessage)}}function ep(i,s){if(1&i&&(t.j41(0,"td",41),t.DNE(1,Wm,2,0,"p",42)(2,Km,2,0,"p",42)(3,tp,2,1,"p",42),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function np(i,s){if(1&i&&t.nrm(0,"tr",43),2&i){const e=t.XpG(2);t.Y8G("ngClass",t.eq3(1,Xt,(null==e.routingPeersOutgoing?null:e.routingPeersOutgoing.data)&&(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)>0))}}function ip(i,s){1&i&&t.nrm(0,"tr",44)}function ap(i,s){1&i&&t.nrm(0,"tr",45)}function op(i,s){if(1&i&&(t.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),t.EFF(4,"Incoming"),t.k0s(),t.nrm(5,"div",12),t.k0s(),t.j41(6,"div",13),t.DNE(7,xm,1,0,"mat-progress-bar",14),t.j41(8,"table",15,0),t.qex(10,16),t.DNE(11,Lm,2,0,"th",17)(12,vm,4,4,"td",18),t.bVm(),t.qex(13,19),t.DNE(14,Sm,2,0,"th",17)(15,Rm,4,4,"td",18),t.bVm(),t.qex(16,20),t.DNE(17,km,2,0,"th",21)(18,Im,4,3,"td",18),t.bVm(),t.qex(19,22),t.DNE(20,Tm,2,0,"th",21)(21,wm,4,3,"td",18),t.bVm(),t.qex(22,23),t.DNE(23,jm,2,0,"th",21)(24,Dm,4,3,"td",18),t.bVm(),t.qex(25,24),t.DNE(26,Nm,4,3,"td",25),t.bVm(),t.DNE(27,Bm,1,3,"tr",26)(28,Mm,1,0,"tr",27)(29,$m,1,0,"tr",28),t.k0s()(),t.nrm(30,"mat-paginator",29,1),t.k0s(),t.j41(32,"div",30)(33,"div",10)(34,"div",11),t.EFF(35,"Outgoing"),t.k0s(),t.nrm(36,"div",12),t.k0s(),t.j41(37,"div",31),t.DNE(38,Vm,1,0,"mat-progress-bar",14),t.j41(39,"table",32,2),t.qex(41,16),t.DNE(42,Om,2,0,"th",17)(43,Hm,4,4,"td",18),t.bVm(),t.qex(44,19),t.DNE(45,Ym,2,0,"th",17)(46,Xm,4,4,"td",18),t.bVm(),t.qex(47,20),t.DNE(48,Um,2,0,"th",21)(49,zm,4,3,"td",18),t.bVm(),t.qex(50,22),t.DNE(51,Jm,2,0,"th",21)(52,qm,4,3,"td",18),t.bVm(),t.qex(53,23),t.DNE(54,Qm,2,0,"th",21)(55,Zm,4,3,"td",18),t.bVm(),t.qex(56,33),t.DNE(57,ep,4,3,"td",25),t.bVm(),t.DNE(58,np,1,3,"tr",26)(59,ip,1,0,"tr",27)(60,ap,1,0,"tr",28),t.k0s(),t.nrm(61,"mat-paginator",29,3),t.k0s()()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("ngClass",t.l_i(22,Cm,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.R7$(5),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersIncoming),t.R7$(19),t.Y8G("matFooterRowDef",t.lJ4(25,ym)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.R7$(3),t.Y8G("ngClass",t.eq3(26,bm,e.screenSize!==e.screenSizeEnum.LG)),t.R7$(5),t.Y8G("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.R7$(),t.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersOutgoing),t.R7$(19),t.Y8G("matFooterRowDef",t.lJ4(28,Fm)),t.R7$(),t.Y8G("matHeaderRowDef",e.displayedColumns),t.R7$(),t.Y8G("matRowDefColumns",e.displayedColumns),t.R7$(),t.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let sp=(()=>{var i;class s{constructor(n,a,o,l){this.logger=n,this.commonService=a,this.store=o,this.camelCaseWithSpaces=l,this.nodePageDefs=c.WW,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:c.md,sortBy:"totalFee",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new p.I6([]),this.routingPeersOutgoing=new p.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{this.errorMessage="",this.apiCallStatus=n.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=n.payments&&n.payments.relayed?n.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(n)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(n){const a=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===n);return a?a.label?a.label:this.camelCaseWithSpaces.transform(a.column,"_"):this.commonService.titleCase(n)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(n,a)=>{let o="";return o="all"===this.selFilterByIn?JSON.stringify(n).toLowerCase():"string"==typeof n[this.selFilterByIn]?n[this.selFilterByIn].toLowerCase():"boolean"==typeof n[this.selFilterByIn]?n[this.selFilterByIn]?"yes":"no":n[this.selFilterByIn].toString(),o.includes(a)},this.routingPeersOutgoing.filterPredicate=(n,a)=>{let o="";switch(this.selFilterByOut){case"all":o=JSON.stringify(n).toLowerCase();break;case"total_amount":case"total_fee":o=(+(n[this.selFilterByOut]||0)/1e3).toString()||"";break;default:o="string"==typeof n[this.selFilterByOut]?n[this.selFilterByOut].toLowerCase():"boolean"==typeof n[this.selFilterByOut]?n[this.selFilterByOut]?"yes":"no":n[this.selFilterByOut].toString()}return o.includes(a)}}loadRoutingPeersTable(n){if(n.length>0){const a=this.groupRoutingPeers(n);this.routingPeersIncoming=new p.I6(a[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new p.I6(a[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new p.I6([]),this.routingPeersOutgoing=new p.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(n){const a=[],o=[];return n.forEach(l=>{const m=a.find(T=>T.channelId===l.fromChannelId),u=o.find(T=>T.channelId===l.toChannelId);m?(m.events++,m.totalAmount=+m.totalAmount+ +l.amountIn,m.totalFee=l.amountIn-l.amountOut+ +m.totalFee):a.push({channelId:l.fromChannelId,alias:l.fromChannelAlias,events:1,totalAmount:+l.amountIn,totalFee:l.amountIn-l.amountOut}),u?(u.events++,u.totalAmount=+u.totalAmount+ +l.amountOut,u.totalFee=l.amountIn-l.amountOut+ +u.totalFee):o.push({channelId:l.toChannelId,alias:l.toChannelAlias,events:1,totalAmount:+l.amountOut,totalFee:l.amountIn-l.amountOut})}),[this.commonService.sortDescByKey(a,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il),t.rXU(q.Qu))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(a,o){if(1&a&&(t.GBs(hm,5,v.B4),t.GBs(fm,5,v.B4),t.GBs(_m,5),t.GBs(gm,5)),2&a){let l;t.mGM(l=t.lsd())&&(o.sortIn=l.first),t.mGM(l=t.lsd())&&(o.sortOut=l.first),t.mGM(l=t.lsd())&&(o.paginatorIn=l.first),t.mGM(l=t.lsd())&&(o.paginatorOut=l.first)}},standalone:!1,features:[t.Jv_([{provide:w.xX,useValue:(0,c.on)("Peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","no_outgoing_event"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(a,o){1&a&&(t.j41(0,"div",4),t.DNE(1,Em,2,1,"div",5)(2,op,63,29,"div",6),t.k0s()),2&a&&(t.R7$(),t.Y8G("ngIf",""!==o.errorMessage),t.R7$(),t.Y8G("ngIf",""===o.errorMessage))},dependencies:[d.YU,d.bT,d.B3,H.HM,_.DJ,_.sA,_.UI,S.PW,S.eI,v.B4,v.aE,p.Zl,p.tL,p.ji,p.cC,p.YV,p.iL,p.Zq,p.xW,p.KS,p.$R,p.Qo,p.YZ,p.NB,p.iF,w.iy,B.Ld,d.QX],encapsulation:2}))}return i(),s})();function lp(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",8),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let rp=(()=>{var i;class s{constructor(n){this.router=n,this.faChartBar=E.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Reports"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),t.DNE(8,lp,2,4,"div",7),t.k0s(),t.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),t.k0s()()()),2&a){const l=t.sdS(10);t.R7$(),t.Y8G("icon",o.faChartBar),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();var Ut=C(1993),zt=C(4655);function cp(i,s){if(1&i&&(t.j41(0,"div",14),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG();t.Y8G("@fadeIn",e.totalFeeSat),t.R7$(),t.Lme("",t.i5U(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.bMT(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function mp(i,s){1&i&&(t.j41(0,"div",15),t.EFF(1,"No routing report for the selected period"),t.k0s())}function pp(i,s){if(1&i&&(t.j41(0,"span")(1,"span",17),t.EFF(2),t.nI1(3,"number"),t.k0s(),t.j41(4,"span",17),t.EFF(5),t.nI1(6,"number"),t.k0s()()),2&i){const e=s.model,n=t.XpG(2);t.R7$(2),t.SpI("Events: ",t.bMT(3,2,(n.selReportBy===n.reportBy.EVENTS?e.value:e.extra.totalEvents)||0)),t.R7$(3),t.SpI("Fee: ",t.i5U(6,4,(n.selReportBy===n.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"))}}function up(i,s){if(1&i){const e=t.RV6();t.j41(0,"ngx-charts-bar-vertical",16),t.bIt("select",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartBarSelected(a))})("mouseup",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartMouseUp(a))}),t.DNE(1,pp,7,7,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function dp(i,s){if(1&i&&t.nrm(0,"rtl-ecl-forwarding-history",18),2&i){const e=t.XpG();t.Y8G("eventsData",e.filteredEventsBySelectedPeriod)("selFilter",e.eventFilterValue)}}let hp=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.commonService=a,this.store=o,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=c.aR,this.selReportBy=c.aR.FEES,this.totalFeeSat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.events=n.payments&&n.payments.relayed?n.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(n)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[1])).subscribe(n=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=n.width/10;break;case c.f7.LG:this.screenPaddingX=n.width/16;break;default:this.screenPaddingX=n.width/20}this.view=[n.width-this.screenPaddingX,n.height/2.2],this.logger.info("Container Size: "+JSON.stringify(n)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(n,a){const o=Math.round(n.getTime()/1e3),l=Math.round(a.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()+" To "+a.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(m=>{Math.floor((m.timestamp||0)/1e3)>=o&&Math.floor((m.timestamp||0)/1e3)0&&"ngx-charts"===n.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(n){this.eventFilterValue=this.reportPeriod===c.rs[1]?n.name+"/"+this.startDate.getFullYear():n.name.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(n){const a=Math.round(n.getTime()/1e3),o=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()),this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)o.push({name:c.KR[l].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod?.map(l=>{const m=new Date(l.timestamp||0).getMonth();return o[m].value=o[m].value+((l.amountIn||0)-(l.amountOut||0)),o[m].extra.totalEvents=o[m].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let l=0;l{const m=Math.floor((Math.floor((l.timestamp||0)/1e3)-a)/this.secondsInADay);return o[m].value=o[m].value+((l.amountIn||0)-(l.amountOut||0)),o[m].extra.totalEvents=o[m].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),o}prepareEventsReport(n){const a=Math.round(n.getTime()/1e3),o=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+n.toLocaleString()),this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)o.push({name:c.KR[l].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod?.map(l=>{const m=new Date(l.timestamp||0).getMonth();return o[m].value=o[m].value+1,o[m].extra.totalFees=o[m].extra.totalFees+((l.amountIn||0)-(l.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let l=0;l{const m=Math.floor((Math.floor((l.timestamp||0)/1e3)-a)/this.secondsInADay);return o[m].value=o[m].value+1,o[m].extra.totalFees=o[m].extra.totalFees+((l.amountIn||0)-(l.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((l.amountIn||0)-(l.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),o}onSelectionChange(n){const a=n.selDate.getMonth(),o=n.selDate.getFullYear();this.reportPeriod=n.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(n,a){return 1===n&&a%4==0?c.KR[n].days+1:c.KR[n].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(a,o){1&a&&t.bIt("mouseup",function(m){return o.onChartMouseUp(m)})},standalone:!1,decls:17,vars:9,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),t.bIt("stepChanged",function(m){return o.onSelectionChange(m)}),t.k0s(),t.j41(2,"div",3)(3,"mat-radio-group",4),t.mxI("ngModelChange",function(m){return t.DH7(o.selReportBy,m)||(o.selReportBy=m),m}),t.bIt("change",function(){return o.onSelReportByChange()}),t.j41(4,"span",5),t.EFF(5,"Report By: "),t.k0s(),t.j41(6,"mat-radio-button",6),t.EFF(7,"Fees"),t.k0s(),t.j41(8,"mat-radio-button",7),t.EFF(9,"Events"),t.k0s()()(),t.j41(10,"div",8),t.DNE(11,cp,4,8,"div",9)(12,mp,2,0,"div",10),t.j41(13,"div",11),t.DNE(14,up,3,11,"ngx-charts-bar-vertical",12),t.k0s(),t.j41(15,"div",11),t.DNE(16,dp,1,2,"rtl-ecl-forwarding-history",13),t.k0s()()()),2&a&&(t.R7$(3),t.R50("ngModel",o.selReportBy),t.R7$(3),t.Y8G("value",t.mNQ(o.reportBy.FEES)),t.R7$(2),t.Y8G("value",t.mNQ(o.reportBy.EVENTS)),t.R7$(3),t.Y8G("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),t.R7$(),t.Y8G("ngIf",o.routingReportData.length<=0||o.filteredEventsBySelectedPeriod.length<=0),t.R7$(2),t.Y8G("ngIf",o.routingReportData.length>0&&o.filteredEventsBySelectedPeriod.length>0),t.R7$(2),t.Y8G("ngIf",o.filteredEventsBySelectedPeriod.length>0))},dependencies:[d.bT,f.BC,f.vS,rt.VT,rt._g,_.DJ,_.sA,_.UI,Ut.L8,zt.m,Yt,d.QX],encapsulation:2,data:{animation:[Et.q]}}))}return i(),s})();var fp=C(5085);function _p(i,s){if(1&i&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Lme(" Paid ",t.i5U(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.bMT(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function gp(i,s){if(1&i&&(t.j41(0,"div",11),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.Lme(" Received ",t.i5U(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.bMT(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Cp(i,s){if(1&i&&(t.j41(0,"div",9),t.DNE(1,_p,4,7,"div",10)(2,gp,4,7,"div",10),t.k0s()),2&i){const e=t.XpG();t.Y8G("@fadeIn",e.transactionsReportSummary),t.R7$(),t.Y8G("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.R7$(),t.Y8G("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function yp(i,s){1&i&&(t.j41(0,"div",12),t.EFF(1,"No transactions report for the selected period"),t.k0s())}function bp(i,s){if(1&i&&(t.j41(0,"span",14),t.EFF(1),t.nI1(2,"number"),t.nI1(3,"number"),t.k0s()),2&i){const e=s.model;t.R7$(),t.LHq("",e.name,": ",t.i5U(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.bMT(3,7,(null==e.extra?null:e.extra.total)||0))}}function Fp(i,s){if(1&i){const e=t.RV6();t.j41(0,"ngx-charts-bar-vertical-2d",13),t.bIt("select",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartBarSelected(a))})("mouseup",function(a){r.eBV(e);const o=t.XpG();return r.Njj(o.onChartMouseUp(a))}),t.DNE(1,bp,4,9,"ng-template",null,0,t.C5r),t.k0s()}if(2&i){const e=t.XpG();t.Y8G("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:8)}}function Ep(i,s){if(1&i&&t.nrm(0,"rtl-transactions-report-table",15),2&i){const e=t.XpG();t.Y8G("displayedColumns",e.displayedColumns)("tableSetting",e.tableSetting)("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("selFilter",e.transactionFilterValue)}}let xp=(()=>{var i;class s{constructor(n,a,o){this.logger=n,this.commonService=a,this.store=o,this.scrollRanges=c.rs,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"date",sortOrder:c.oi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(b.jZ).pipe((0,g.Q)(this.unSubs[0])).subscribe(n=>{this.tableSetting=n.pageSettings.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId)||c.X8.find(a=>a.pageId===this.PAGE_ID)?.tables.find(a=>a.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(b.KT).pipe((0,g.Q)(this.unSubs[1]),(0,pt.E)(this.store.select(b.rN))).subscribe(([n,a])=>{this.payments=n.payments.sent?n.payments.sent:[],this.invoices=a.invoices?a.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[2])).subscribe(n=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=n.width/10;break;case c.f7.LG:this.screenPaddingX=n.width/16;break;default:this.screenPaddingX=n.width/20}this.view=[n.width-this.screenPaddingX,n.height/2.2],this.logger.info("Container Size: "+JSON.stringify(n)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(n){"svg"===n.srcElement.tagName&&n.srcElement.classList.length>0&&"ngx-charts"===n.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(n){this.transactionFilterValue=this.reportPeriod===c.rs[1]?n.series.toString()+"/"+this.startDate.getFullYear():n.series.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(n,a){const o=Math.round(n.getTime()/1e3),l=Math.round(a.getTime()/1e3),m=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const u=this.payments?.filter(F=>F.firstPartTimestamp&&Math.floor(F.firstPartTimestamp/1e3)>=o&&Math.floor(F.firstPartTimestamp/1e3)"received"===F.status&&F.timestamp&&F.timestamp>=o&&F.timestamp{const P=new Date(F.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(F.recipientAmount||0),m[P].series[0].value=m[P].series[0].value+F.recipientAmount,m[P].series[0].extra.total=m[P].series[0].extra.total+1,this.transactionsReportSummary}),T?.map(F=>{const P=new Date(1e3*(F.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(F.amountSettled||0),m[P].series[1].value=m[P].series[1].value+F.amountSettled,m[P].series[1].extra.total=m[P].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let F=0;F{const P=Math.floor((Math.floor((F.firstPartTimestamp||0)/1e3)-o)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(F.recipientAmount||0),m[P].series[0].value=m[P].series[0].value+F.recipientAmount,m[P].series[0].extra.total=m[P].series[0].extra.total+1,this.transactionsReportSummary}),T?.map(F=>{const P=Math.floor(((F.timestamp||0)-o)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(F.amountSettled||0),m[P].series[1].value=m[P].series[1].value+F.amountSettled,m[P].series[1].extra.total=m[P].series[1].extra.total+1,this.transactionsReportSummary})}return m}prepareTableData(){return this.transactionsReportData?.reduce((n,a)=>a.series[0].extra.total>0||a.series[1].extra.total>0?n.concat({date:a.date,amount_paid:a.series[0].value,num_payments:a.series[0].extra.total,amount_received:a.series[1].value,num_invoices:a.series[1].extra.total}):n,[])}onSelectionChange(n){const a=n.selDate.getMonth(),o=n.selDate.getFullYear();this.reportPeriod=n.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,a,1,0,0,0),this.endDate=new Date(o,a,this.getMonthDays(a,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(n,a){return 1===n&&a%4==0?c.KR[n].days+1:c.KR[n].days}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(A.gP),t.rXU($.h),t.rXU(I.il))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(a,o){1&a&&t.bIt("mouseup",function(m){return o.onChartMouseUp(m)})},standalone:!1,decls:9,vars:4,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(a,o){1&a&&(t.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),t.bIt("stepChanged",function(m){return o.onSelectionChange(m)}),t.k0s(),t.j41(2,"div",3),t.DNE(3,Cp,3,3,"div",4)(4,yp,2,0,"div",5),t.j41(5,"div",6),t.DNE(6,Fp,3,13,"ngx-charts-bar-vertical-2d",7),t.k0s(),t.j41(7,"div",6),t.DNE(8,Ep,1,5,"rtl-transactions-report-table",8),t.k0s()()()),2&a&&(t.R7$(3),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0),t.R7$(),t.Y8G("ngIf",o.transactionsNonZeroReportData.length<=0),t.R7$(2),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0),t.R7$(2),t.Y8G("ngIf",o.transactionsNonZeroReportData.length>0))},dependencies:[d.bT,_.DJ,_.sA,_.UI,Ut.Dl,zt.m,fp.T,d.QX],encapsulation:2,data:{animation:[Et.q]}}))}return i(),s})();var M=C(7186),Lp=C(13);function vp(i,s){if(1&i){const e=t.RV6();t.j41(0,"div",9),t.bIt("click",function(){const a=r.eBV(e).$implicit,o=t.XpG();return r.Njj(o.activeLink=a.link)}),t.EFF(1),t.k0s()}if(2&i){const e=s.$implicit,n=t.XpG();t.Y8G("routerLink",t.mNQ(e.link))("active",n.activeLink===e.link),t.R7$(),t.JRh(e.name)}}let Sp=(()=>{var i;class s{constructor(n){this.router=n,this.faSearch=E.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const n=this.links.find(a=>this.router.url.includes(a.link));this.activeLink=n?n.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,X.p)(a=>a instanceof L.gx)).subscribe({next:a=>{const o=this.links.find(l=>a.urlAfterRedirects.includes(l.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)(t.rXU(L.Ix))},this.\u0275cmp=t.VBU({type:s,selectors:[["rtl-ecl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(a,o){if(1&a&&(t.j41(0,"div",1),t.nrm(1,"fa-icon",2),t.j41(2,"span",3),t.EFF(3,"Graph Lookups"),t.k0s()(),t.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),t.DNE(8,vp,2,4,"div",7),t.k0s(),t.nrm(9,"mat-tab-nav-panel",null,0),t.j41(11,"div",8),t.nrm(12,"router-outlet"),t.k0s()()()()),2&a){const l=t.sdS(10);t.R7$(),t.Y8G("icon",o.faSearch),t.R7$(6),t.Y8G("tabPanel",l),t.R7$(),t.Y8G("ngForOf",o.links)}},dependencies:[d.Sq,D.aY,x.RN,x.m2,_.DJ,_.sA,_.UI,G.Bu,G.hQ,G.Ql,L.n3,W.Wk],encapsulation:2}))}return i(),s})();const Rp=[{path:"",component:vt,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Da,canActivate:[(0,M.fe)()]},{path:"onchain",component:Eo,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:cs,canActivate:[(0,M.fe)()]},{path:"send",component:ms,canActivate:[(0,M.fe)()]}]},{path:"connections",component:vo,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Is,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:hr,canActivate:[(0,M.fe)()]},{path:"pending",component:Jr,canActivate:[(0,M.fe)()]},{path:"inactive",component:xc,canActivate:[(0,M.fe)()]}]},{path:"peers",component:L1,data:{sweepAll:!1},canActivate:[(0,M.fe)()]}]},{path:"transactions",component:Ro,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:It,canActivate:[(0,M.fe)()]},{path:"invoices",component:Tt,canActivate:[(0,M.fe)()]}]},{path:"routing",component:Io,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Yt,canActivate:[(0,M.fe)()]},{path:"peers",component:sp,canActivate:[(0,M.fe)()]}]},{path:"reports",component:rp,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:hp,canActivate:[(0,M.fe)()]},{path:"transactions",component:xp,canActivate:[(0,M.fe)()]}]},{path:"graph",component:Sp,canActivate:[(0,M.fe)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:ls,canActivate:[(0,M.fe)()]},{path:"queryroutes",component:M1,canActivate:[(0,M.fe)()]}]},{path:"**",component:Lp.X}]}],kp=W.iI.forChild(Rp);var Ip=C(9029);let Tp=(()=>{var i;class s{static#t=i=()=>(this.\u0275fac=function(a){return new(a||s)},this.\u0275mod=t.$C({type:s,bootstrap:[vt]}),this.\u0275inj=r.G2t({imports:[d.MD,Ip.G,kp]}))}return i(),s})()}}]); \ No newline at end of file diff --git a/frontend/190.0e6572086349bd7c.js b/frontend/190.0e6572086349bd7c.js new file mode 100644 index 00000000..7981f8d3 --- /dev/null +++ b/frontend/190.0e6572086349bd7c.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[190],{9190(Ze,xe,S){"use strict";S.d(xe,{LNDModule:()=>PC});var y=S(2200),le=S(8132),j=S(3694),re=S(9881),e=S(3664),D=S(7575),b=S(2920);function T(t,s){1&t&&e.nrm(0,"mat-progress-bar",3)}let _e=(()=>{var t;class s{constructor(i){this.router=i,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof j.Z:this.loading=!0;break;case o instanceof j.wF:case o instanceof j.j5:case o instanceof j.L6:this.loading=!1}})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lnd-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,T,1,0,"mat-progress-bar",2),e.nrm(2,"router-outlet",null,0),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.loading))},dependencies:[y.bT,D.HM,b.DJ,b.sA,b.UI,j.n3],encapsulation:2,data:{animation:[re.E]}}))}return t(),s})();var C=S(1413),x=S(6977),me=S(3993),L=S(5964),q=S(614),I=S(5383),p=S(4416),W=S(9647),E=S(3536),r=S(2615),V=S(8570),G=S(9640),ce=S(1747),z=S(2571),ee=S(60),Ke=S(2598),B=S(5596),Le=S(2885),ke=S(2629),$e=S(9115),U=S(6038),J=S(6850),X=S(6695),A=S(2042),_=S(1676),O=S(6183),ne=S(1585),N=S(190),g=S(9417),$=S(8834),Z=S(3746),R=S(9588),ae=S(3029),Re=S(450),fe=S(455),pe=S(9587),ye=S(6114);function Ue(t,s){1&t&&(e.j41(0,"span",32),e.EFF(1,"= "),e.k0s())}function et(t,s){if(1&t&&(e.j41(0,"span",33),e.nrm(1,"fa-icon",34),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Xe(t,s){if(1&t&&e.nrm(0,"span",35),2&t){const n=e.XpG();e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function Ee(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(e.bMT(2,2,n))}}function Ie(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.invoiceError)}}function tt(t,s){if(1&t&&(e.j41(0,"div",37),e.nrm(1,"fa-icon",38),e.DNE(2,Ie,2,1,"span",39),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.invoiceError)}}let nt=(()=>{var t;class s{constructor(i,o,a,l,h,f){this.dialogRef=i,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=h,this.actions=f,this.faExclamationTriangle=I.zpE,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=p.md,this.timeUnitEnum=p.F7,this.timeUnits=p.SY,this.selTimeUnit=p.F7.SECS,this.invoiceError="",this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.actions.pipe((0,x.Q)(this.unSubs[2]),(0,L.p)(i=>i.type===p.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===p.QP.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===i.payload.action&&(this.invoiceError=i.payload.message,i.payload.status===p.wn.ERROR&&(this.invoiceError=i.payload.message),i.payload.status===p.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(i){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==p.F7.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,p.F7.SECS):this.expiry:p.It,this.store.dispatch((0,N.VK)({payload:{uiMessage:p.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:this.isAmp,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.isAmp=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=p.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,p.BQ.SATS,p.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,x.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,p.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onTimeUnitChange(i){this.expiry&&this.selTimeUnit!==i.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,i.value)),this.selTimeUnit=i.value}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(G.il),e.rXU(y.QX),e.rXU(z.h),e.rXU(ce.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-create-invoices"]],standalone:!1,decls:55,vars:20,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start end"],["matInput","","type","number","name","invoiceValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","24","fxLayoutAlign","start end"],["matInput","","type","number","name","expiry",3,"ngModelChange","step","min","ngModel"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"ml-2"],["fxFlex","49","fxLayoutAlign","start start"],["color","primary","name","private",3,"ngModelChange","ngModel"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["color","primary","name","amp",3,"ngModelChange","ngModel"],["matTooltip","Atomic multipath payment invoice","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Create Invoice"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),e.EFF(13,"Memo"),e.k0s(),e.j41(14,"input",10),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.memo,f)||(a.memo=f),r.Njj(f)}),e.k0s()(),e.j41(15,"mat-form-field",11)(16,"mat-label"),e.EFF(17,"Amount"),e.k0s(),e.j41(18,"input",12),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.invoiceValue,f)||(a.invoiceValue=f),r.Njj(f)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onInvoiceValueChange())}),e.k0s(),e.j41(19,"span",13),e.EFF(20,"Sats "),e.k0s(),e.j41(21,"mat-hint",14),e.DNE(22,Ue,2,0,"span",15)(23,et,2,1,"span",16)(24,Xe,1,1,"span",17),e.EFF(25),e.k0s()(),e.j41(26,"mat-form-field",18)(27,"mat-label"),e.EFF(28,"Expiry"),e.k0s(),e.j41(29,"input",19),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.expiry,f)||(a.expiry=f),r.Njj(f)}),e.k0s(),e.j41(30,"span",13),e.EFF(31),e.nI1(32,"titlecase"),e.k0s()(),e.j41(33,"mat-form-field",18)(34,"mat-label"),e.EFF(35,"Time Unit"),e.k0s(),e.j41(36,"mat-select",20),e.bIt("selectionChange",function(f){return r.eBV(l),r.Njj(a.onTimeUnitChange(f))}),e.DNE(37,Ee,3,4,"mat-option",21),e.k0s()(),e.j41(38,"div",22)(39,"div",23)(40,"mat-slide-toggle",24),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.private,f)||(a.private=f),r.Njj(f)}),e.EFF(41,"Private Routing Hints"),e.k0s(),e.j41(42,"mat-icon",25),e.EFF(43,"info_outline"),e.k0s()(),e.j41(44,"div",23)(45,"mat-slide-toggle",26),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.isAmp,f)||(a.isAmp=f),r.Njj(f)}),e.EFF(46,"AMP Invoice"),e.k0s(),e.j41(47,"mat-icon",27),e.EFF(48,"info_outline"),e.k0s()()(),e.DNE(49,tt,3,2,"div",28),e.j41(50,"div",29)(51,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(52,"Clear Field"),e.k0s(),e.j41(53,"button",31),e.bIt("click",function(){r.eBV(l);const f=e.sdS(10);return r.Njj(a.onAddInvoice(f))}),e.EFF(54,"Create Invoice"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.R50("ngModel",a.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",a.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"FA"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"SVG"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.SpI(" ",a.invoiceValueHint," "),e.R7$(4),e.Y8G("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.R50("ngModel",a.expiry),e.R7$(2),e.SpI("",e.bMT(32,18,a.selTimeUnit)," "),e.R7$(5),e.Y8G("value",a.selTimeUnit),e.R7$(),e.Y8G("ngForOf",a.timeUnits),e.R7$(3),e.R50("ngModel",a.private),e.R7$(5),e.R50("ngModel",a.isAmp),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceError))},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.VZ,g.vS,g.cV,ee.aY,ne.tx,$.$z,B.m2,B.MM,ke.An,Z.fg,R.rl,R.nJ,R.MV,R.yw,b.DJ,b.sA,b.UI,O.VO,ae.wT,Re.sG,fe.oV,pe.N,ye.V,y.PV],encapsulation:2}))}return t(),s})();var Me=S(6391),Y=S(1771),ue=S(2929),K=S(497);const je=()=>["all"],ve=t=>({"error-border":t}),Oe=()=>["no_invoice"],Ge=t=>({"mr-0":t}),ge=t=>({width:t}),it=t=>({"display-none":t});function u(t,s){1&t&&(e.j41(0,"span",19),e.EFF(1,"= "),e.k0s())}function c(t,s){if(1&t&&(e.j41(0,"span",20),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function m(t,s){if(1&t&&e.nrm(0,"span",22),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function d(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",6,0)(2,"mat-form-field",7)(3,"mat-label"),e.EFF(4,"Memo"),e.k0s(),e.j41(5,"input",8),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.memo,o)||(a.memo=o),r.Njj(o)}),e.k0s()(),e.j41(6,"mat-form-field",9)(7,"mat-label"),e.EFF(8,"Amount"),e.k0s(),e.j41(9,"input",10),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.invoiceValue,o)||(a.invoiceValue=o),r.Njj(o)}),e.bIt("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInvoiceValueChange())}),e.k0s(),e.j41(10,"span",11),e.EFF(11,"Sats "),e.k0s(),e.j41(12,"mat-hint",12),e.DNE(13,u,2,0,"span",13)(14,c,2,1,"span",14)(15,m,1,1,"span",15),e.EFF(16),e.k0s()(),e.j41(17,"div",16)(18,"button",17),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(19,"Clear Field"),e.k0s(),e.j41(20,"button",18),e.bIt("click",function(){r.eBV(n);const o=e.sdS(1),a=e.XpG();return r.Njj(a.onAddInvoice(o))}),e.EFF(21,"Create Invoice"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",n.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.SpI(" ",n.invoiceValueHint," ")}}function F(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openCreateInvoiceModal())}),e.EFF(2,"Create Invoice"),e.k0s()()}}function v(t,s){if(1&t&&(e.j41(0,"mat-option",72),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function k(t,s){1&t&&e.nrm(0,"mat-progress-bar",73)}function H(t,s){1&t&&e.nrm(0,"th",74)}function se(t,s){if(1&t&&e.nrm(0,"span",80),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ge,n.screenSize===n.screenSizeEnum.XS))}}function ie(t,s){if(1&t&&e.nrm(0,"span",81),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ge,n.screenSize===n.screenSizeEnum.XS))}}function oe(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ge,n.screenSize===n.screenSizeEnum.XS))}}function te(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ge,n.screenSize===n.screenSizeEnum.XS))}}function Ot(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,se,1,3,"span",76)(2,ie,1,3,"span",77)(3,oe,1,3,"span",78)(4,te,1,3,"span",79),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","OPEN"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","SETTLED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","ACCEPTED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","CANCELED"===(null==n?null:n.state))}}function Vt(t,s){1&t&&e.nrm(0,"th",84)}function Yt(t,s){if(1&t&&(e.j41(0,"span",87),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Ut(t,s){if(1&t&&(e.j41(0,"span",88),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEye)}}function Xt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Yt,2,1,"span",85)(2,Ut,2,1,"span",86),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Ht(t,s){1&t&&e.nrm(0,"th",89)}function qt(t,s){if(1&t&&(e.j41(0,"span",92),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnToDots)}}function zt(t,s){if(1&t&&(e.j41(0,"span",93),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnRight)}}function Jt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,qt,2,1,"span",90)(2,zt,2,1,"span",91),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.is_keysend),e.R7$(),e.Y8G("ngIf",!n.is_keysend)}}function Qt(t,s){1&t&&e.nrm(0,"th",94)}function Wt(t,s){if(1&t&&(e.j41(0,"span",97),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faMoneyBill1)}}function Zt(t,s){if(1&t&&(e.j41(0,"span",98),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faBurst)}}function Kt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Wt,2,1,"span",95)(2,Zt,2,1,"span",96),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",!n.is_amp),e.R7$(),e.Y8G("ngIf",n.is_amp)}}function en(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Created"),e.k0s())}function tn(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm"))}}function nn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Settled"),e.k0s())}function an(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(0!=+(null==n?null:n.settle_date)?e.i5U(2,1,1e3*+(null==n?null:n.settle_date),"dd/MMM/y HH:mm"):"-")}}function sn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Memo"),e.k0s())}function on(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.memo)}}function ln(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage"),e.k0s())}function rn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_preimage)}}function cn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage Hash"),e.k0s())}function pn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_hash)}}function mn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Address"),e.k0s())}function un(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_addr)}}function hn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Request"),e.k0s())}function dn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function _n(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Description Hash"),e.k0s())}function fn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ge,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function gn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Expiry"),e.k0s())}function Cn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.expiry)," ")}}function yn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"CLTV Expiry"),e.k0s())}function bn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.cltv_expiry)," ")}}function Fn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Add Index"),e.k0s())}function xn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.add_index)," ")}}function vn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Settle Index"),e.k0s())}function Tn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.settle_index)," ")}}function kn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount (Sats)"),e.k0s())}function Sn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.value)," ")}}function Rn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount Settled (Sats)"),e.k0s())}function En(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_paid_sat)," ")}}function In(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",104)(1,"div",105)(2,"mat-select",106),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function wn(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",108)(1,"div",105)(2,"mat-select",109),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onInvoiceClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onRefreshInvoice(o))}),e.EFF(7,"Refresh"),e.k0s()()()()}}function Ln(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No invoice available."),e.k0s())}function jn(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting invoices..."),e.k0s())}function Gn(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Dn(t,s){if(1&t&&(e.j41(0,"td",110),e.DNE(1,Ln,2,0,"p",111)(2,jn,2,0,"p",111)(3,Gn,2,1,"p",111),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Nn(t,s){if(1&t&&e.nrm(0,"tr",112),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,it,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Pn(t,s){1&t&&e.nrm(0,"tr",113)}function Bn(t,s){1&t&&e.nrm(0,"tr",114)}function An(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"div",27),e.nrm(3,"fa-icon",28),e.j41(4,"span",29),e.EFF(5,"Invoices History"),e.k0s()(),e.j41(6,"div",30)(7,"mat-form-field",31)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,v,2,2,"mat-option",33),e.k0s()()(),e.j41(13,"mat-form-field",31)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",34),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",35),e.DNE(18,k,1,0,"mat-progress-bar",36),e.j41(19,"table",37,1),e.qex(21,38),e.DNE(22,H,1,0,"th",39)(23,Ot,5,4,"td",40),e.bVm(),e.qex(24,41),e.DNE(25,Vt,1,0,"th",42)(26,Xt,3,2,"td",40),e.bVm(),e.qex(27,43),e.DNE(28,Ht,1,0,"th",44)(29,Jt,3,2,"td",40),e.bVm(),e.qex(30,45),e.DNE(31,Qt,1,0,"th",46)(32,Kt,3,2,"td",40),e.bVm(),e.qex(33,47),e.DNE(34,en,2,0,"th",48)(35,tn,3,4,"td",40),e.bVm(),e.qex(36,49),e.DNE(37,nn,2,0,"th",48)(38,an,3,4,"td",40),e.bVm(),e.qex(39,50),e.DNE(40,sn,2,0,"th",48)(41,on,4,4,"td",40),e.bVm(),e.qex(42,51),e.DNE(43,ln,2,0,"th",48)(44,rn,4,4,"td",40),e.bVm(),e.qex(45,52),e.DNE(46,cn,2,0,"th",48)(47,pn,4,4,"td",40),e.bVm(),e.qex(48,53),e.DNE(49,mn,2,0,"th",48)(50,un,4,4,"td",40),e.bVm(),e.qex(51,54),e.DNE(52,hn,2,0,"th",48)(53,dn,4,4,"td",40),e.bVm(),e.qex(54,55),e.DNE(55,_n,2,0,"th",48)(56,fn,4,4,"td",40),e.bVm(),e.qex(57,56),e.DNE(58,gn,2,0,"th",57)(59,Cn,4,3,"td",40),e.bVm(),e.qex(60,58),e.DNE(61,yn,2,0,"th",57)(62,bn,4,3,"td",40),e.bVm(),e.qex(63,59),e.DNE(64,Fn,2,0,"th",57)(65,xn,4,3,"td",40),e.bVm(),e.qex(66,60),e.DNE(67,vn,2,0,"th",57)(68,Tn,4,3,"td",40),e.bVm(),e.qex(69,61),e.DNE(70,kn,2,0,"th",57)(71,Sn,4,3,"td",40),e.bVm(),e.qex(72,62),e.DNE(73,Rn,2,0,"th",57)(74,En,4,3,"td",40),e.bVm(),e.qex(75,63),e.DNE(76,In,6,0,"th",64)(77,wn,8,0,"td",65),e.bVm(),e.qex(78,66),e.DNE(79,Dn,4,3,"td",67),e.bVm(),e.DNE(80,Nn,1,3,"tr",68)(81,Pn,1,0,"tr",69)(82,Bn,1,0,"tr",70),e.k0s(),e.j41(83,"mat-paginator",71),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,je).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(2),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",e.eq3(17,ve,""!==n.errorMessage)),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(19,Oe)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalInvoices)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let gt=(()=>{var t;class s{constructor(i,o,a,l,h,f,P){this.logger=i,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=h,this.actions=f,this.camelCaseWithReplace=P,this.calledFrom="transactions",this.faEye=I.pS3,this.faEyeSlash=I.k6j,this.faHistory=I.Int,this.faArrowsTurnToDots=I.If6,this.faArrowsTurnRight=I.peG,this.faBurst=I.M29,this.faMoneyBill1=I.Ccf,this.convertedCurrency=null,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:p.md,sortBy:"creation_date",sortOrder:p.oi.DESCENDING},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.invoices=new _.I6([]),this.information={},this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=p.md,this.pageSizeOptions=p.xp,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.rN).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=i.listInvoices.total_invoices||0,this.firstOffset=+(i.listInvoices.first_index_offset||-1),this.lastOffset=+(i.listInvoices.last_index_offset||-1),this.invoicesData=i.listInvoices.invoices||[],this.invoicesData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoicesData),this.logger.info(i)}),this.actions.pipe((0,x.Q)(this.unSubs[4]),(0,L.p)(i=>i.type===p.QP.SET_LOOKUP_LND||i.type===p.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===p.QP.SET_LOOKUP_LND&&this.invoicesData&&this.sort&&this.paginator&&i.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(i.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(i){const o=this.expiry?this.expiry:p.It;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,N.VK)({payload:{uiMessage:p.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:!1,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(i){this.store.dispatch((0,Y.xO)({payload:{data:{invoice:i,newlyAdded:!1,component:Me.H}}}))}onRefreshInvoice(i){i&&i.r_hash&&this.store.dispatch((0,N.Yi)({payload:{openSnackBar:!0,paymentHash:Buffer.from(i.r_hash.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}updateInvoicesData(i){this.invoicesData=this.invoicesData?.map(o=>o.r_hash===i.r_hash?i:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.invoices.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.settle_date?this.datePipe.transform(new Date(1e3*i.settle_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"creation_date":case"settle_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"private":a=i?.private?"private":"public";break;case"is_keysend":a=i?.is_keysend?"keysend invoices":"non keysend invoices";break;case"is_amp":a=i?.is_amp?"atomic multi path payment":"non atomic payment";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_keysend"===this.selFilterBy||"is_amp"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadInvoicesTable(i){this.invoices=new _.I6(i?[...i]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.previousPageIndex&&i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0),this.store.dispatch((0,N.Do)({payload:{num_max_invoices:i.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,p.BQ.SATS,p.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,x.Q)(this.unSubs[5])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,p.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,Y.xO)({payload:{data:{pageSize:this.pageSize,component:nt}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(y.QX),e.rXU(z.h),e.rXU(y.vh),e.rXU(ce.En),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-invoices"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","tabindex","1","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","2","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","is_keysend"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend",4,"matHeaderCellDef"],["matColumnDef","is_amp"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP",4,"matHeaderCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","settle_date"],["matColumnDef","memo"],["matColumnDef","r_preimage"],["matColumnDef","r_hash"],["matColumnDef","payment_addr"],["matColumnDef","payment_request"],["matColumnDef","description_hash"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cltv_expiry"],["matColumnDef","add_index"],["matColumnDef","settle_index"],["matColumnDef","value"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","6",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend"],["class","mr-1","matTooltip","Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Non Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["matTooltip","Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["matTooltip","Non Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP"],["class","mr-1","matTooltip","Non Atomic Payment","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",4,"ngIf"],["matTooltip","Non Atomic Payment","matTooltipPosition","right",1,"mr-1"],["matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","6"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,d,22,8,"form",3)(2,F,3,0,"div",4)(3,An,84,20,"div",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.qT,g.me,g.Q0,g.BC,g.cb,g.VZ,g.vS,g.cV,ee.aY,$.$z,Z.fg,R.rl,R.nJ,R.MV,R.yw,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,fe.oV,X.iy,K.ZF,K.Ld,ye.V,y.QX,y.vh],styles:[".mat-column-state[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%], .mat-column-is_keysend[_ngcontent-%COMP%], .mat-column-is_amp[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();var be=S(6697),Fe=S(1534),he=S(9454),De=S(2628);const $n=["paymentReq"];function Mn(t,s){if(1&t&&(e.j41(0,"span",36),e.nrm(1,"fa-icon",37),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function On(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function Vn(t,s){if(1&t&&(e.j41(0,"mat-hint",33),e.EFF(1),e.DNE(2,Mn,2,1,"span",34)(3,On,1,1,"span",35),e.EFF(4),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function Yn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function Un(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.paymentDecodedHint)}}function Xn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment amount is required."),e.k0s())}function Hn(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",6)(1,"mat-label"),e.EFF(2,"Amount (Sats)"),e.k0s(),e.j41(3,"input",39,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.paymentAmount,o)||(a.paymentAmount=o),r.Njj(o)}),e.bIt("change",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountChange(o))}),e.k0s(),e.j41(5,"mat-hint"),e.EFF(6,"It is a zero amount invoice, enter amount to be paid."),e.k0s(),e.DNE(7,Xn,2,0,"mat-error",16),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.R50("ngModel",n.paymentAmount),e.R7$(4),e.Y8G("ngIf",!n.paymentAmount)}}function qn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",null==n?null:n.name," ")}}function zn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.selFeeLimitType?null:n.selFeeLimitType.placeholder," is required.")}}function Jn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh((null==n?null:n.remote_alias)||(null==n?null:n.chan_id))}}function Qn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Channel not found in the list."),e.k0s())}function Wn(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentError)}}function Zn(t,s){if(1&t&&(e.j41(0,"div",41),e.nrm(1,"fa-icon",42),e.DNE(2,Wn,2,1,"span",16),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.paymentError)}}let Kn=(()=>{var t;class s{constructor(i,o,a,l,h,f,P){this.dialogRef=i,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=h,this.actions=f,this.dataService=P,this.faExclamationTriangle=I.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new g.hs,this.isAmp=!1,this.feeLimit=null,this.selFeeLimitType=p.nv[0],this.feeLimitTypes=p.nv,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[1])).subscribe(a=>{this.activeChannels=a.channels&&a.channels.length?a.channels?.filter(l=>l.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,x.Q)(this.unSubs[2]),(0,L.p)(a=>a.type===p.QP.UPDATE_API_CALL_STATUS_LND||a.type===p.QP.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===p.QP.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===p.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===p.wn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let i="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",io?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,x.Q)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(i=>0===(i.remote_alias?i.remote_alias.toLowerCase():i.chan_id?i.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(i.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const i=this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(o=>{const a=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"";return a.length===this.selectedChannelCtrl.value.length&&0===a.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];i&&i.length>0?(this.selectedChannelCtrl.setValue(i[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;if(this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis){this.zeroAmtInvoice=!1;const i={uiMessage:p.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,p.C6)(this.selFeeLimitType.id,this.feeLimit,+this.paymentDecoded.num_satoshis||0),fromDialog:!0};this.store.dispatch((0,N.Fd)({payload:i}))}else{this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount?.toString()||"";const i={uiMessage:p.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,amt:this.paymentAmount||0,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,p.C6)(this.selFeeLimitType.id,this.feeLimit,this.paymentAmount||0),fromDialog:!0};this.store.dispatch((0,N.Fd)({payload:i}))}}onAmountChange(i){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,be.s)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,p.BQ.SATS,p.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"BTC",this.selNode.settings.fiatConversion).pipe((0,x.Q)(this.unSubs[4])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(a.OTHER?a.OTHER:0,p.k.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHintPre="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")},error:o=>{this.logger.error(o),this.paymentDecodedHintPre="ERROR: "+o.message,this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(i,o){if(i&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.isAmp=!1,this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=p.nv[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(G.il),e.rXU(V.gP),e.rXU(z.h),e.rXU(y.QX),e.rXU(ce.En),e.rXU(Fe.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(o,a){if(1&o&&e.GBs($n,5),2&o){let l;e.mGM(l=e.lsd())&&(a.paymentReq=l.first)}},standalone:!1,decls:53,vars:22,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["fLmt","ngModel"],["auto","matAutocomplete"],["paymentAmt","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","27","fxLayoutAlign","start end"],["tabindex","5",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","33"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModelChange","step","min","disabled","ngModel"],["fxLayout","column","fxFlex","37","fxLayoutAlign","start end"],["type","text","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],["fxFlex","25","tabindex","8","color","primary","name","isAmp",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","10",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5,"Send Payment"),e.k0s()(),e.j41(6,"button",10),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0)(11,"mat-form-field",13)(12,"mat-label"),e.EFF(13,"Payment Request"),e.k0s(),e.j41(14,"textarea",14,1),e.bIt("ngModelChange",function(f){return r.eBV(l),r.Njj(a.onPaymentRequestEntry(f))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),e.k0s(),e.DNE(16,Vn,5,4,"mat-hint",15)(17,Yn,2,0,"mat-error",16)(18,Un,2,1,"mat-error",16),e.k0s(),e.DNE(19,Hn,8,2,"mat-form-field",17),e.j41(20,"mat-expansion-panel",18),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0,!1))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1,!1))}),e.j41(21,"mat-expansion-panel-header")(22,"mat-panel-title")(23,"span"),e.EFF(24),e.k0s()()(),e.j41(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),e.EFF(28,"Fee Limits"),e.k0s(),e.j41(29,"mat-select",21),e.mxI("valueChange",function(f){return r.eBV(l),e.DH7(a.selFeeLimitType,f)||(a.selFeeLimitType=f),r.Njj(f)}),e.DNE(30,qn,2,2,"mat-option",22),e.k0s()(),e.j41(31,"mat-form-field",23)(32,"mat-label"),e.EFF(33),e.k0s(),e.j41(34,"input",24,2),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.feeLimit,f)||(a.feeLimit=f),r.Njj(f)}),e.k0s(),e.DNE(36,zn,2,1,"mat-error",16),e.k0s(),e.j41(37,"mat-form-field",25)(38,"mat-label"),e.EFF(39,"First Outgoing Channel"),e.k0s(),e.nrm(40,"input",26),e.j41(41,"mat-autocomplete",27,3),e.bIt("optionSelected",function(){return r.eBV(l),r.Njj(a.onSelectedChannelChanged())}),e.DNE(43,Jn,2,2,"mat-option",22),e.k0s(),e.DNE(44,Qn,2,0,"mat-error",16),e.k0s(),e.j41(45,"mat-slide-toggle",28),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.isAmp,f)||(a.isAmp=f),r.Njj(f)}),e.EFF(46,"AMP Payment"),e.k0s()()(),e.DNE(47,Zn,3,2,"div",29),e.j41(48,"div",30)(49,"button",31),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(50,"Clear Fields"),e.k0s(),e.j41(51,"button",32),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSendPayment())}),e.EFF(52,"Send Payment"),e.k0s()()()()()()}if(2&o){const l=e.sdS(15),h=e.sdS(42);e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.Y8G("ngModel",a.paymentRequest),e.R7$(2),e.Y8G("ngIf",a.paymentRequest&&""!==a.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!a.paymentRequest),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),e.R7$(),e.Y8G("ngIf",a.zeroAmtInvoice),e.R7$(5),e.JRh(a.advancedTitle),e.R7$(5),e.R50("value",a.selFeeLimitType),e.R7$(),e.Y8G("ngForOf",a.feeLimitTypes),e.R7$(3),e.JRh(null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder),e.R7$(),e.Y8G("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.R50("ngModel",a.feeLimit),e.R7$(2),e.Y8G("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.R7$(4),e.Y8G("formControl",a.selectedChannelCtrl)("matAutocomplete",h),e.R7$(),e.Y8G("displayWith",a.displayFn),e.R7$(2),e.Y8G("ngForOf",a.filteredMinAmtActvChannels),e.R7$(),e.Y8G("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.R7$(),e.R50("ngModel",a.isAmp),e.R7$(2),e.Y8G("ngIf",""!==a.paymentError)}},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.vS,g.cV,g.l_,ee.aY,ne.tx,$.$z,B.m2,B.MM,he.GK,he.Z2,he.WN,Z.fg,R.rl,R.nJ,R.MV,R.TL,b.DJ,b.sA,b.UI,O.VO,ae.wT,Re.sG,De.$3,De.pN,pe.N,ye.V],encapsulation:2}))}return t(),s})();var Ve=S(7541);const ei=["sendPaymentForm"],ti=()=>["all"],ni=t=>({"error-border":t}),ii=()=>["no_payment"],Ne=t=>({"mr-0":t}),Se=t=>({width:t}),ai=t=>({"display-none":t});function si(t,s){if(1&t&&(e.j41(0,"span",18),e.nrm(1,"fa-icon",19),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function oi(t,s){if(1&t&&e.nrm(0,"span",20),2&t){const n=e.XpG(3);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function li(t,s){if(1&t&&(e.j41(0,"mat-hint",15),e.EFF(1),e.DNE(2,si,2,1,"span",16)(3,oi,1,1,"span",17),e.EFF(4),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function ri(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function ci(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),e.EFF(4,"Payment Request"),e.k0s(),e.j41(5,"textarea",9,1),e.bIt("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return r.eBV(n),r.Njj(!0)}),e.k0s(),e.DNE(7,li,5,4,"mat-hint",10)(8,ri,2,0,"mat-error",11),e.k0s(),e.j41(9,"div",12)(10,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendPayment())}),e.EFF(13,"Send Payment"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngModel",n.paymentRequest),e.R7$(2),e.Y8G("ngIf",n.paymentRequest&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!n.paymentRequest)}}function pi(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openSendPaymentModal())}),e.EFF(2,"Send Payment"),e.k0s()()}}function mi(t,s){if(1&t&&(e.j41(0,"mat-option",76),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function ui(t,s){1&t&&e.nrm(0,"mat-progress-bar",77)}function hi(t,s){1&t&&e.nrm(0,"th",78)}function di(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function _i(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function fi(t,s){if(1&t&&(e.j41(0,"td",79),e.DNE(1,di,1,3,"span",80)(2,_i,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status))}}function gi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Creation Date"),e.k0s())}function Ci(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm")," ")}}function yi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Hash"),e.k0s())}function bi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash)}}function Fi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Request"),e.k0s())}function xi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function vi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Preimage"),e.k0s())}function Ti(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage)}}function ki(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description"),e.k0s())}function Si(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description)}}function Ri(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description Hash"),e.k0s())}function Ei(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function Ii(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Failure Reason"),e.k0s())}function wi(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.brH(2,1,null==n?null:n.failure_reason,"failure_reason","_")," ")}}function Li(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Payment Index"),e.k0s())}function ji(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.payment_index))}}function Gi(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Fee (Sats)"),e.k0s())}function Di(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.fee))}}function Ni(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Value (Sats)"),e.k0s())}function Pi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.value))}}function Bi(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Hops"),e.k0s())}function Ai(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh((null==n||null==n.htlcs[0]||null==n.htlcs[0].route||null==n.htlcs[0].route.hops?null:n.htlcs[0].route.hops.length)||0)}}function $i(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",89)(1,"div",90)(2,"mat-select",91),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",92),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Mi(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",93)(1,"button",94),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onPaymentClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Oi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No payment available."),e.k0s())}function Vi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting payments..."),e.k0s())}function Yi(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Ui(t,s){if(1&t&&(e.j41(0,"td",95),e.DNE(1,Oi,2,0,"p",11)(2,Vi,2,0,"p",11)(3,Yi,2,1,"p",11),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Xi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function Hi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function qi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function zi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,Ne,n.screenSize===n.screenSizeEnum.XS))}}function Ji(t,s){if(1&t&&(e.j41(0,"span",96),e.DNE(1,qi,1,3,"span",80)(2,zi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===n.status),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==n.status)}}function Qi(t,s){if(1&t&&(e.qex(0),e.DNE(1,Ji,3,2,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Wi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.DNE(2,Xi,1,3,"span",80)(3,Hi,1,3,"span",81),e.k0s(),e.DNE(4,Qi,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Zi(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,n.attempt_time_ns/1e6,"dd/MMM/y HH:mm")," ")}}function Ki(t,s){if(1&t&&(e.qex(0),e.DNE(1,Zi,3,4,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ea(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.k0s(),e.DNE(3,Ki,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Total Attempts: ",null==n||null==n.htlcs?null:n.htlcs.length," "),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ta(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.index;e.R7$(),e.SpI(" HTLC ",n+1," ")}}function na(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ta,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ia(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,na,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function aa(t,s){1&t&&e.nrm(0,"span",96)}function sa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,aa,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function oa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,sa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function la(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.preimage," ")}}function ra(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,la,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ca(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,ra,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function pa(t,s){1&t&&e.nrm(0,"span",96)}function ma(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,pa,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ua(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,ma,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ha(t,s){1&t&&e.nrm(0,"span",96)}function da(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ha,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function _a(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,da,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,Se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function fa(t,s){1&t&&e.nrm(0,"span",96)}function ga(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,fa,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ca(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.nI1(3,"camelcaseWithReplace"),e.k0s(),e.DNE(4,ga,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.brH(3,2,null==n?null:n.failure_reason,"failure_reason","_")," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ya(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,n.attempt_id)," ")}}function ba(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ya,3,3,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Fa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ba,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==n?null:n.payment_index)),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function xa(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_fees,"1.0-0")," ")}}function va(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,xa,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ta(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,va,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.fee,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ka(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_amt,"1.0-0")," ")}}function Sa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ka,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ra(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,Sa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.value,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ea(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,(null==n.route||null==n.route.hops?null:n.route.hops.length)||0,"1.0-0")," ")}}function Ia(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ea,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function wa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2,"-"),e.k0s(),e.DNE(3,Ia,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function La(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",104)(1,"button",105),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function ja(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,La,3,1,"div",103),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ga(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",79)(1,"span",101)(2,"button",102),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!(null!=o&&o.is_expanded))}),e.EFF(3),e.k0s()(),e.DNE(4,ja,2,1,"div",11),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(null!=n&&n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Da(t,s){1&t&&e.nrm(0,"tr",106)}function Na(t,s){if(1&t&&e.nrm(0,"tr",107),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,ai,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Pa(t,s){1&t&&e.nrm(0,"tr",108)}function Ba(t,s){1&t&&e.nrm(0,"tr",106)}function Aa(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"div",25),e.nrm(3,"fa-icon",26),e.j41(4,"span",27),e.EFF(5,"Payments History"),e.k0s()(),e.j41(6,"div",28)(7,"mat-form-field",29)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",30),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,mi,2,2,"mat-option",31),e.k0s()()(),e.j41(13,"mat-form-field",29)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",33)(18,"div",34),e.DNE(19,ui,1,0,"mat-progress-bar",35),e.j41(20,"table",36,2),e.qex(22,37),e.DNE(23,hi,1,0,"th",38)(24,fi,3,2,"td",39),e.bVm(),e.qex(25,40),e.DNE(26,gi,2,0,"th",41)(27,Ci,3,4,"td",39),e.bVm(),e.qex(28,42),e.DNE(29,yi,2,0,"th",41)(30,bi,4,4,"td",39),e.bVm(),e.qex(31,43),e.DNE(32,Fi,2,0,"th",41)(33,xi,4,4,"td",39),e.bVm(),e.qex(34,44),e.DNE(35,vi,2,0,"th",41)(36,Ti,4,4,"td",39),e.bVm(),e.qex(37,45),e.DNE(38,ki,2,0,"th",41)(39,Si,4,4,"td",39),e.bVm(),e.qex(40,46),e.DNE(41,Ri,2,0,"th",41)(42,Ei,4,4,"td",39),e.bVm(),e.qex(43,47),e.DNE(44,Ii,2,0,"th",41)(45,wi,3,5,"td",39),e.bVm(),e.qex(46,48),e.DNE(47,Li,2,0,"th",49)(48,ji,4,3,"td",39),e.bVm(),e.qex(49,50),e.DNE(50,Gi,2,0,"th",49)(51,Di,4,3,"td",39),e.bVm(),e.qex(52,51),e.DNE(53,Ni,2,0,"th",49)(54,Pi,4,3,"td",39),e.bVm(),e.qex(55,52),e.DNE(56,Bi,2,0,"th",49)(57,Ai,3,1,"td",39),e.bVm(),e.qex(58,53),e.DNE(59,$i,6,0,"th",54)(60,Mi,3,0,"td",55),e.bVm(),e.qex(61,56),e.DNE(62,Ui,4,3,"td",57),e.bVm(),e.qex(63,58),e.DNE(64,Wi,5,3,"td",39),e.bVm(),e.qex(65,59),e.DNE(66,ea,4,2,"td",39),e.bVm(),e.qex(67,60),e.DNE(68,ia,5,5,"td",39),e.bVm(),e.qex(69,61),e.DNE(70,oa,5,5,"td",39),e.bVm(),e.qex(71,62),e.DNE(72,ca,5,5,"td",39),e.bVm(),e.qex(73,63),e.DNE(74,ua,5,5,"td",39),e.bVm(),e.qex(75,64),e.DNE(76,_a,5,5,"td",39),e.bVm(),e.qex(77,65),e.DNE(78,Ca,5,6,"td",39),e.bVm(),e.qex(79,66),e.DNE(80,Fa,5,4,"td",39),e.bVm(),e.qex(81,67),e.DNE(82,Ta,5,5,"td",39),e.bVm(),e.qex(83,68),e.DNE(84,Ra,5,5,"td",39),e.bVm(),e.qex(85,69),e.DNE(86,wa,4,1,"td",39),e.bVm(),e.qex(87,70),e.DNE(88,Ga,5,2,"td",39),e.bVm(),e.DNE(89,Da,1,0,"tr",71)(90,Na,1,3,"tr",72)(91,Pa,1,0,"tr",73)(92,Ba,1,0,"tr",74),e.k0s(),e.j41(93,"mat-paginator",75),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(18,ti).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(3),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",e.eq3(19,ni,""!==n.errorMessage)),e.R7$(69),e.Y8G("matRowDefColumns",n.htlcColumns)("matRowDefWhen",n.is_group),e.R7$(),e.Y8G("matFooterRowDef",e.lJ4(21,ii)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalPayments)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ct=(()=>{var t;class s{constructor(i,o,a,l,h,f,P,w){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=h,this.decimalPipe=f,this.datePipe=P,this.camelCaseWithReplace=w,this.calledFrom="transactions",this.faHistory=I.Int,this.convertedCurrency=null,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:p.md,sortBy:"creation_date",sortOrder:p.oi.DESCENDING},this.newlyAddedPayment="",this.information={},this.peers=[],this.payments=new _.I6([]),this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(E.os).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.peers=i.peers}),this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.htlcColumns=[],this.displayedColumns.map(o=>this.htlcColumns.push("group_"+o)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.KT).pipe((0,x.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=i.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(i.listPayments.first_index_offset||-1),this.lastOffset=+(i.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(i)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,be.s)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,Y.I1)({payload:{data:{type:p.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:p.UN.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:p.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:p.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,be.s)(1)).subscribe(o=>{o&&(this.store.dispatch((0,N.Fd)({payload:{uiMessage:p.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,Y.I1)({payload:{data:{type:p.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:p.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:p.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:p.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,be.s)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,N.Fd)({payload:{uiMessage:p.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,amt:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,Y.xO)({payload:{data:{component:Kn}}}))}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,be.s)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,p.BQ.SATS,p.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,x.Q)(this.unSubs[6])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,p.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0);const l=i.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(i,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(i){const o=this;return new Promise((a,l)=>{const h=o.peers.find(f=>f.pub_key===i.pub_key);h&&h.alias?a("
Channel: "+h.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(i.pub_key||"",!1).pipe((0,x.Q)(o.unSubs[7])).subscribe({next:f=>a("
Channel: "+(f.node&&f.node.alias?f.node.alias.padEnd(20):i.pub_key?.substring(0,17)+"...")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"),error:f=>a("
Channel: "+(i.pub_key?i.pub_key?.substring(0,17)+"...":"")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
")})})}onHTLCClick(i,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,be.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(i,o,a)},0)},error:a=>{this.showHTLCView(i,o)}}):this.showHTLCView(i,o)}showHTLCView(i,o,a){i.route&&i.route.hops&&i.route.hops.length?Promise.all(i.route.hops.map(l=>this.getHopDetails(l))).then(l=>{this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,l),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}):this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,[]),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}prepareData(i,o,a,l){const h=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:p.UN.STRING}],[{key:"preimage",value:i.preimage,title:"Preimage",width:100,type:p.UN.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:p.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:33,type:p.UN.STRING},{key:"attempt_time_ns",value:+(i.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:p.UN.DATE_TIME},{key:"resolve_time_ns",value:+(i.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:p.UN.DATE_TIME}],[{key:"total_amt",value:i.route?.total_amt,title:"Amount (Sats)",width:33,type:p.UN.NUMBER},{key:"total_fees",value:i.route?.total_fees,title:"Fee (Sats)",width:33,type:p.UN.NUMBER},{key:"total_time_lock",value:i.route?.total_time_lock,title:"Total Time Lock",width:34,type:p.UN.NUMBER}],[{key:"hops",value:l,title:"Hops",width:100,type:p.UN.ARRAY}]];return a&&a.description&&""!==a.description&&h.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:p.UN.STRING}]),h}onPaymentClick(i){if(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>0){const o=i.htlcs[0].route.hops?.reduce((a,l)=>l.pub_key&&""===a?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,x.Q)(this.unSubs[8])).subscribe(a=>{this.showPaymentView(i,a?.reduce((l,h)=>""===l?h:l+"\n"+h,""))})}else this.showPaymentView(i,"")}showPaymentView(i,o){const a=[[{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:p.UN.STRING}],[{key:"payment_preimage",value:i.payment_preimage,title:"Payment Preimage",width:100,type:p.UN.STRING}],[{key:"payment_request",value:i.payment_request,title:"Payment Request",width:100,type:p.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:50,type:p.UN.STRING},{key:"creation_date",value:i.creation_date,title:"Creation Date",width:50,type:p.UN.DATE_TIME}],[{key:"value_msat",value:i.value_msat,title:"Value (mSats)",width:50,type:p.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:50,type:p.UN.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:p.UN.STRING}]];i.payment_request&&""!==i.payment_request.trim()?this.dataService.decodePayment(i.payment_request,!1).pipe((0,be.s)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:p.UN.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Payment Information",message:i,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.payments.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"status":case"group_status":a="SUCCEEDED"===i?.status?"succeeded":"failed";break;case"creation_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"failure_reason":case"group_failure_reason":a=this.camelCaseWithReplace.transform(i.failure_reason||"","failure_reason","_").trim().toLowerCase();break;case"hops":a=i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length?i.htlcs[0].route.hops.length.toString():"0";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"failure_reason"===this.selFilterBy||"group_failure_reason"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPaymentsTable(i){this.payments=new _.I6(i?[...i]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const i=JSON.parse(JSON.stringify(this.payments.data)),o=i?.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,x.Q)(this.unSubs[9])).subscribe(a=>{let l=0;a.forEach((f,P)=>{if(f){for(;i[P+l].payment_hash!==f.payment_hash;)l+=1;i[P+l].description=f.description}});const h=i?.reduce((f,P)=>f.concat(P),[]);this.commonService.downloadFile(h,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(Fe.u),e.rXU(G.il),e.rXU(Ve.H),e.rXU(y.QX),e.rXU(y.vh),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-payments"]],viewQuery:function(o,a){if(1&o&&(e.GBs(ei,5),e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","payment_hash"],["matColumnDef","payment_request"],["matColumnDef","payment_preimage"],["matColumnDef","description"],["matColumnDef","description_hash"],["matColumnDef","failure_reason"],["matColumnDef","payment_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fee"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_status"],["matColumnDef","group_creation_date"],["matColumnDef","group_payment_hash"],["matColumnDef","group_payment_request"],["matColumnDef","group_payment_preimage"],["matColumnDef","group_description"],["matColumnDef","group_description_hash"],["matColumnDef","group_failure_reason"],["matColumnDef","group_payment_index"],["matColumnDef","group_fee"],["matColumnDef","group_value"],["matColumnDef","group_hops"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",3),e.DNE(1,ci,14,3,"form",4)(2,pi,3,0,"div",5)(3,Aa,94,22,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,ee.aY,$.$z,Z.fg,R.rl,R.nJ,R.MV,R.TL,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,fe.oV,X.iy,K.ZF,K.Ld,y.QX,y.vh,ue.VD],styles:[".mat-column-status[_ngcontent-%COMP%], .mat-column-group_status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_status[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type), .mat-column-group_creation_date[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.htlc-row-span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{margin-top:-.3rem;position:absolute}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:11rem}"]}))}return t(),s})();const yt=t=>({backgroundColor:t});function $a(t,s){if(1&t&&e.nrm(0,"span",8),2&t){const n=e.XpG();e.Y8G("ngStyle",e.eq3(1,yt,null==n.information?null:n.information.color))}}function Ma(t,s){if(1&t&&(e.j41(0,"div")(1,"h4",1),e.EFF(2,"Color"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"span",9),e.EFF(5),e.nI1(6,"uppercase"),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.Y8G("ngStyle",e.eq3(4,yt,null==n.information?null:n.information.color)),e.R7$(),e.SpI(" ",e.bMT(6,2,null==n.information?null:n.information.color)," ")}}function Oa(t,s){1&t&&e.nrm(0,"span",10)}function Va(t,s){1&t&&e.nrm(0,"span",11)}function Ya(t,s){if(1&t&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}let bt=(()=>{var t;class s{constructor(i){this.commonService=i,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(i=>{this.chains.push(this.commonService.titleCase(i.chain)+" "+this.commonService.titleCase(i.network))}))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[e.OA$],decls:19,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","dot green mr-1","matTooltip","Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","dot red mr-1","matTooltip","Not Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"],["matTooltip","Synced to Chain","matTooltipPosition","right",1,"dot","green","mr-1"],["matTooltip","Not Synced to Chain","matTooltipPosition","right",1,"dot","red","mr-1"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div")(2,"h4",1),e.EFF(3,"Alias"),e.k0s(),e.j41(4,"div",2),e.EFF(5),e.DNE(6,$a,1,3,"span",3),e.k0s()(),e.DNE(7,Ma,7,6,"div",4),e.j41(8,"div")(9,"h4",1),e.EFF(10,"Implementation"),e.k0s(),e.j41(11,"div",2),e.EFF(12),e.k0s()(),e.j41(13,"div")(14,"h4",1),e.EFF(15,"Chain"),e.k0s(),e.DNE(16,Oa,1,0,"span",5)(17,Va,1,0,"span",6)(18,Ya,2,1,"span",7),e.k0s()()),2&o&&(e.R7$(5),e.SpI(" ",null==a.information?null:a.information.alias," "),e.R7$(),e.Y8G("ngIf",!a.showColorFieldSeparately),e.R7$(),e.Y8G("ngIf",a.showColorFieldSeparately),e.R7$(5),e.JRh(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.R7$(4),e.Y8G("ngIf",null==a.information?null:a.information.synced_to_chain),e.R7$(),e.Y8G("ngIf",!(null!=a.information&&a.information.synced_to_chain)),e.R7$(),e.Y8G("ngForOf",a.chains))},dependencies:[y.Sq,y.bT,y.B3,b.DJ,b.sA,b.UI,U.eI,fe.oV,y.Pc],encapsulation:2}))}return t(),s})();function Ua(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div")(2,"h4",3),e.EFF(3,"Lightning"),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",5),e.k0s(),e.j41(8,"div")(9,"h4",3),e.EFF(10,"On-chain"),e.k0s(),e.j41(11,"div",4),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.nrm(14,"mat-progress-bar",5),e.k0s(),e.j41(15,"div")(16,"h4",3),e.EFF(17,"Total"),e.k0s(),e.j41(18,"div",4),e.EFF(19),e.nI1(20,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,7,null==n.balances?null:n.balances.lightning)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.lightning)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(13,9,null==n.balances?null:n.balances.onchain)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.onchain)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(20,11,null==n.balances?null:n.balances.total)," Sats")}}function Xa(t,s){if(1&t&&(e.j41(0,"div",6)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Ha=(()=>{var t;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ua,21,13,"div",1)(1,Xa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[y.bT,D.HM,b.DJ,b.sA,b.UI,y.QX],encapsulation:2}))}return t(),s})();function qa(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Daily"),e.k0s(),e.j41(5,"div",5),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div")(9,"h4",4),e.EFF(10,"Weekly"),e.k0s(),e.j41(11,"div",5),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div")(15,"h4",4),e.EFF(16,"Monthly"),e.k0s(),e.j41(17,"div",5),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",6),e.nrm(21,"h4",7)(22,"span",5),e.k0s()(),e.j41(23,"div",3)(24,"div")(25,"h4",4),e.EFF(26,"Transactions"),e.k0s(),e.j41(27,"div",5),e.EFF(28),e.nI1(29,"number"),e.k0s()(),e.j41(30,"div")(31,"h4",4),e.EFF(32,"Transactions"),e.k0s(),e.j41(33,"div",5),e.EFF(34),e.nI1(35,"number"),e.k0s()(),e.j41(36,"div")(37,"h4",4),e.EFF(38,"Transactions"),e.k0s(),e.j41(39,"div",5),e.EFF(40),e.nI1(41,"number"),e.k0s()(),e.j41(42,"div",6),e.nrm(43,"h4",7)(44,"span",5),e.k0s()()()),2&t){const n=e.XpG();e.R7$(6),e.SpI("",e.bMT(7,6,null==n.fees?null:n.fees.day_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(13,8,null==n.fees?null:n.fees.week_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(19,10,null==n.fees?null:n.fees.month_fee_sum)," Sats"),e.R7$(10),e.JRh(e.bMT(29,12,null==n.fees?null:n.fees.daily_tx_count)),e.R7$(6),e.JRh(e.bMT(35,14,null==n.fees?null:n.fees.weekly_tx_count)),e.R7$(6),e.JRh(e.bMT(41,16,null==n.fees?null:n.fees.monthly_tx_count))}}function za(t,s){if(1&t&&(e.j41(0,"div",8)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Ft=(()=>{var t;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const o=10**(Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[e.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,qa,45,18,"div",1)(1,za,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[y.bT,b.DJ,b.sA,b.UI,y.QX],encapsulation:2}))}return t(),s})();function Ja(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Active"),e.k0s(),e.j41(5,"div",5),e.nrm(6,"span",6),e.EFF(7),e.nI1(8,"number"),e.k0s()(),e.j41(9,"div")(10,"h4",4),e.EFF(11,"Pending"),e.k0s(),e.j41(12,"div",5),e.nrm(13,"span",7),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"div")(17,"h4",4),e.EFF(18,"Inactive"),e.k0s(),e.j41(19,"div",5),e.nrm(20,"span",8),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"div")(24,"h4",4),e.EFF(25,"Closing"),e.k0s(),e.j41(26,"div",5),e.nrm(27,"span",9),e.EFF(28),e.nI1(29,"number"),e.k0s()()(),e.j41(30,"div",3)(31,"div")(32,"h4",4),e.EFF(33,"Capacity"),e.k0s(),e.j41(34,"div",5),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div")(38,"h4",4),e.EFF(39,"Capacity"),e.k0s(),e.j41(40,"div",5),e.EFF(41),e.nI1(42,"number"),e.k0s()(),e.j41(43,"div")(44,"h4",4),e.EFF(45,"Capacity"),e.k0s(),e.j41(46,"div",5),e.EFF(47),e.nI1(48,"number"),e.k0s()(),e.j41(49,"div")(50,"h4",4),e.EFF(51,"Capacity"),e.k0s(),e.j41(52,"div",5),e.EFF(53),e.nI1(54,"number"),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(7),e.JRh(e.bMT(8,8,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(15,10,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(22,12,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(29,14,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.num_channels)||0)),e.R7$(7),e.SpI("",e.bMT(36,16,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(42,18,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(48,20,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(54,22,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.capacity)||0)," Sats")}}function Qa(t,s){if(1&t&&(e.j41(0,"div",10)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let xt=(()=>{var t;class s{constructor(){this.channelsStatus={}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ja,55,24,"div",1)(1,Qa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[y.bT,b.DJ,b.sA,b.UI,y.QX],encapsulation:2}))}return t(),s})();var Te=S(1997);const Wa=()=>["../connections/channels/open"],Za=(t,s)=>({filterColumn:t,filterValue:s});function Ka(t,s){if(1&t&&(e.j41(0,"div",19)(1,"a",20),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",22),e.nrm(11,"fa-icon",23),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",24)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",25),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(24,Wa))("state",e.l_i(25,Za,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,14,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(6),e.SpI("",e.bMT(9,18,n.local_balance||0)," Sats"),e.R7$(3),e.Y8G("icon",i.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,20,n.balancedness||0),") "),e.R7$(5),e.SpI("",e.bMT(18,22,n.remote_balance||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function es(t,s){if(1&t&&(e.j41(0,"div",17),e.DNE(1,Ka,20,28,"div",18),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function ts(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",9),e.nrm(11,"fa-icon",10),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",11)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",12),e.k0s(),e.j41(20,"div",13),e.nrm(21,"mat-divider",14),e.k0s(),e.j41(22,"div",15),e.DNE(23,es,2,1,"div",16),e.k0s()()),2&t){const n=e.XpG(),i=e.sdS(2);e.R7$(8),e.SpI("",e.bMT(9,8,(null==n.channelBalances?null:n.channelBalances.localBalance)||0)," Sats"),e.R7$(3),e.Y8G("icon",n.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),e.R7$(5),e.SpI("",e.bMT(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0)),e.R7$(4),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function ns(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",26),e.EFF(1," No channels available. "),e.j41(2,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.goToChannels())}),e.EFF(3,"Open Channel"),e.k0s()()}}function is(t,s){if(1&t&&(e.j41(0,"div",28)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let as=(()=>{var t;class s{constructor(i){this.router=i,this.faBalanceScale=I.GR4,this.faDumbbell=I.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,ts,24,14,"div",2)(1,ns,4,0,"ng-template",null,0,e.C5r)(3,is,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[y.Sq,y.bT,ee.aY,$.$z,R.MV,Te.q,D.HM,b.DJ,b.sA,b.UI,fe.oV,K.Ld,le.Wk,y.P9,y.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return t(),s})();var vt=S(1092),Tt=S(4104);const ss=(t,s,n)=>({"mb-4":t,"mb-2":s,"mb-1":n}),os=()=>["../connections/channels/open"],ls=(t,s)=>({filterColumn:t,filterValue:s});function rs(t,s){if(1&t&&(e.j41(0,"mat-hint",19)(1,"strong",20),e.EFF(2,"Capacity: "),e.k0s(),e.EFF(3),e.nI1(4,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.SpI("",e.bMT(4,1,n.remote_balance||0)," Sats")}}function cs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2).$implicit,a=e.XpG(3);return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function ps(t,s){if(1&t&&(e.j41(0,"div",21)(1,"mat-hint",22)(2,"strong",20),e.EFF(3,"Capacity: "),e.k0s(),e.EFF(4),e.nI1(5,"number"),e.k0s(),e.DNE(6,cs,2,0,"button",23),e.k0s()),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.SpI("",e.bMT(5,2,n.local_balance||0)," Sats"),e.R7$(2),e.Y8G("ngIf",i.showLoop)}}function ms(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.remote_balance||0)/i.totalLiquidity*100:0))}}function us(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.local_balance||0)/i.totalLiquidity*100:0))}}function hs(t,s){if(1&t&&(e.j41(0,"div",13)(1,"a",14),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",15),e.DNE(5,rs,5,3,"mat-hint",16)(6,ps,7,4,"div",17),e.k0s(),e.DNE(7,ms,1,2,"mat-progress-bar",18)(8,us,1,2,"mat-progress-bar",18),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(16,os))("state",e.l_i(17,ls,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,12,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(3),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction),e.R7$(),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction)}}function ds(t,s){if(1&t&&(e.j41(0,"div",11),e.DNE(1,hs,9,20,"div",12),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function _s(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"mat-hint",6),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",7),e.k0s(),e.j41(8,"div",8),e.nrm(9,"mat-divider",9),e.k0s(),e.DNE(10,ds,2,1,"div",10),e.k0s()),2&t){const n=e.XpG(),i=e.sdS(2);e.Y8G("ngClass",e.sMw(6,ss,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),e.R7$(5),e.SpI("",e.bMT(6,4,n.totalLiquidity)," Sats"),e.R7$(5),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function fs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.goToChannels())}),e.EFF(1,"Open Channel"),e.k0s()}}function gs(t,s){if(1&t&&(e.j41(0,"div",26),e.EFF(1," No channels available. "),e.DNE(2,fs,2,0,"button",27),e.k0s()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","Out"===n.direction)}}function Cs(t,s){if(1&t&&(e.j41(0,"div",29)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let ys=(()=>{var t;class s{constructor(i,o,a,l){this.router=i,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=p.f7,this.unSubs=[new C.B,new C.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.showLoop=!(!i?.settings.swapServerUrl||""===i.settings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,x.Q)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,Y.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:p.C7.LOOP_OUT,component:vt.D}}}))})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix),e.rXU(Tt.Q),e.rXU(z.h),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","80","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","end center","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","20","fxLayoutAlign","end center","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,_s,11,10,"div",2)(1,gs,3,1,"ng-template",null,0,e.C5r)(3,Cs,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[y.YU,y.Sq,y.bT,$.$z,R.MV,Te.q,D.HM,b.DJ,b.sA,b.UI,U.PW,fe.oV,K.Ld,le.Wk,y.P9,y.QX],encapsulation:2}))}return t(),s})();const kt=t=>({"dashboard-card-content":!0,"error-border":t}),bs=t=>({"p-0":t});function Fs(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(11);e.Y8G("matMenuTriggerFor",n)}}function xs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG().$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function vs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG(3);return r.Njj(o.onsortChannelsBy())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG(3);e.R7$(),e.SpI("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score")}}function Ts(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function ks(t,s){if(1&t&&e.nrm(0,"rtl-node-info",31),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!1)}}function Ss(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function Rs(t,s){if(1&t&&e.nrm(0,"rtl-channel-capacity-info",33),2&t){const n=e.XpG(3);e.Y8G("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[3])}}function Es(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",34),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[1])}}function Is(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",35),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function ws(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ls(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),e.nrm(5,"fa-icon",14),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"div"),e.DNE(9,Fs,3,1,"button",15),e.j41(10,"mat-menu",16,1),e.DNE(12,xs,2,1,"button",17)(13,vs,2,1,"button",18),e.k0s()()()(),e.j41(14,"mat-card-content",19),e.DNE(15,Ts,1,0,"mat-progress-bar",20),e.j41(16,"div",21),e.DNE(17,ks,1,2,"rtl-node-info",22)(18,Ss,1,2,"rtl-balances-info",23)(19,Rs,1,4,"rtl-channel-capacity-info",24)(20,Es,1,2,"rtl-fee-info",25)(21,Is,1,2,"rtl-channel-status-info",26)(22,ws,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(5),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions),e.R7$(),e.Y8G("ngIf","capacity"===n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("node"===n.id||"balance"===n.id?70:"fee"===n.id||"status"===n.id?78:90))("ngClass",e.eq3(17,kt,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR))),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","capacity"),e.R7$(),e.Y8G("ngSwitchCase","fee"),e.R7$(),e.Y8G("ngSwitchCase","status")}}function js(t,s){if(1&t&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"span",8),e.EFF(4),e.k0s()(),e.j41(5,"mat-grid-list",9),e.DNE(6,Ls,23,19,"mat-grid-tile",10),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),e.R7$(2),e.JRh(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.R7$(),e.Y8G("rowHeight",n.operatorCardHeight),e.R7$(),e.Y8G("ngForOf",n.operatorCards)}}function Gs(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(9);e.Y8G("matMenuTriggerFor",n)}}function Ds(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Ns(t,s){if(1&t&&(e.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),e.nrm(3,"fa-icon",14),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div"),e.DNE(7,Gs,3,1,"button",15),e.j41(8,"mat-menu",16,2),e.DNE(10,Ds,2,1,"button",17),e.k0s()()()()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions)}}function Ps(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Bs(t,s){if(1&t&&e.nrm(0,"rtl-node-info",46),2&t){const n=e.XpG(3);e.Y8G("information",n.information)}}function As(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function $s(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",47),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[3])}}function Ms(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",48),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[3])}}function Os(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Vs(t,s){if(1&t&&(e.j41(0,"span",49)(1,"mat-tab-group",50)(2,"mat-tab",51),e.nrm(3,"rtl-lightning-invoices",52),e.k0s(),e.j41(4,"mat-tab",53),e.nrm(5,"rtl-lightning-payments",52),e.k0s()(),e.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),e.EFF(9,"more_vert"),e.k0s()(),e.j41(10,"mat-menu",16,3),e.DNE(12,Os,2,1,"button",17),e.k0s()()()),2&t){const n=e.sdS(11),i=e.XpG().$implicit;e.R7$(7),e.Y8G("matMenuTriggerFor",n),e.R7$(5),e.Y8G("ngForOf",i.goToOptions)}}function Ys(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Us(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",38),e.DNE(2,Ns,11,4,"mat-card-header",39),e.j41(3,"mat-card-content",40),e.DNE(4,Ps,1,0,"mat-progress-bar",20),e.j41(5,"div",41),e.DNE(6,Bs,1,1,"rtl-node-info",42)(7,As,1,2,"rtl-balances-info",23)(8,$s,1,3,"rtl-channel-liquidity-info",43)(9,Ms,1,3,"rtl-channel-liquidity-info",44)(10,Vs,13,2,"span",45)(11,Ys,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(),e.Y8G("ngClass",e.eq3(14,bs,"transactions"===n.id)),e.R7$(),e.Y8G("ngIf","transactions"!==n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("transactions"===n.id?100:"balance"===n.id?70:90))("ngClass",e.eq3(16,kt,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","inboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","outboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","transactions")}}function Xs(t,s){if(1&t&&(e.j41(0,"div",36),e.nrm(1,"fa-icon",7),e.j41(2,"span",8),e.EFF(3),e.k0s()(),e.j41(4,"mat-grid-list",37),e.DNE(5,Us,12,18,"mat-grid-tile",10),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faSmile),e.R7$(2),e.SpI("Welcome ",n.information.alias,"! Your node is up and running."),e.R7$(),e.Y8G("rowHeight",n.merchantCardHeight),e.R7$(),e.Y8G("ngForOf",n.merchantCards)}}let Hs=(()=>{var t;class s{constructor(i,o,a,l,h){switch(this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.router=h,this.faSmile=q.Qpm,this.faFrown=q.wB1,this.faAngleDoubleDown=I.WxX,this.faAngleDoubleUp=I.$sC,this.faChartPie=I.W1p,this.faBolt=I.zm_,this.faServer=I.D6w,this.faNetworkWired=I.eGi,this.flgChildInfoUpdated=!1,this.userPersonaEnum=p.HW,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.screenSizeEnum=p.f7,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case p.f7.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case p.f7.SM:case p.f7.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(E.gj).pipe((0,x.Q)(this.unSubs[0]),(0,me.E)(this.store.select(W._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===p.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(E.oR).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===p.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=i.apiCallStatus,this.apiCallStatusBlockchainBalance.status===p.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=i.blockchainBalance.total_balance&&+i.blockchainBalance.total_balance>=0?+i.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(E.Uv).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===p.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===p.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const o=i.lightningBalance&&i.lightningBalance.local?+i.lightningBalance.local:0,a=i.lightningBalance&&i.lightningBalance.remote?+i.lightningBalance.remote:0;this.channelBalances={localBalance:o,remoteBalance:a,balancedness:+(1-Math.abs((o-a)/(o+a))).toFixed(3)},this.balances.lightning=i.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=i.channelsSummary.active?.num_channels||0,this.inactiveChannels=i.channelsSummary.inactive?.num_channels||0,this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=i.channels?.filter(h=>!0===h.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(h=>h.remote_balance&&h.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(h=>h.local_balance&&h.local_balance>0),"local_balance"))),this.allChannels.forEach(h=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(h.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(h.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(i)}),this.actions.pipe((0,x.Q)(this.unSubs[5]),(0,L.p)(i=>i.type===p.QP.FETCH_FEES_LND||i.type===p.QP.SET_FEES_LND)).subscribe(i=>{i.type===p.QP.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),i.type===p.QP.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(i){"inactive"===i?this.router.navigateByUrl("/lnd/connections",{state:{filterColumn:"active",filterValue:i}}):this.router.navigateByUrl("/lnd/"+i)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((i,o)=>{const a=+(i.local_balance||0)+ +(i.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(ce.En),e.rXU(z.h),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home"],["label","Pay"],[1,"underline"]],template:function(o,a){if(1&o&&e.DNE(0,js,7,4,"div",4)(1,Xs,6,4,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",(null==a.selNode?null:a.selNode.settings.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[y.YU,y.Sq,y.bT,y.ux,y.e1,y.fG,ee.aY,Ke.iY,B.RN,B.m2,B.MM,B.dh,Le.B_,Le.NS,ke.An,$e.kk,$e.fb,$e.Cp,D.HM,b.DJ,b.sA,b.UI,U.PW,J.mq,J.T8,gt,Ct,bt,Ha,Ft,xt,as,ys],encapsulation:2}))}return t(),s})();var at=S(1975),st=S(5837);function qs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Channels"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activeChannels))}}function zs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Peers"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activePeers))}}let Js=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.logger=o,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=I.gdJ,this.faChartPie=I.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(i=>i instanceof j.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(E.os).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.activePeers=i.peers&&i.peers.length?i.peers.length:0,this.logger.info(i)}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.activeChannels=i.channelsSummary.active?.num_channels||0,this.logger.info(i)}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[4])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:i.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:i.blockchainBalance.unconfirmed_balance||0}],this.logger.info(i)})}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il),e.rXU(V.gP),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connections"]],standalone:!1,decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),e.nrm(7,"rtl-currency-unit-converter",5),e.k0s()()(),e.j41(8,"div",0),e.nrm(9,"fa-icon",1),e.j41(10,"span",2),e.EFF(11,"Connections"),e.k0s()(),e.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),e.mxI("selectedIndexChange",function(h){return e.DH7(a.activeLink,h)||(a.activeLink=h),h}),e.bIt("selectedTabChange",function(h){return a.onSelectedTabChange(h)}),e.j41(16,"mat-tab"),e.DNE(17,qs,2,2,"ng-template",8),e.k0s(),e.j41(18,"mat-tab"),e.DNE(19,zs,2,2,"ng-template",8),e.k0s()(),e.j41(20,"div",9),e.nrm(21,"router-outlet"),e.k0s()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faUsers),e.R7$(6),e.R50("selectedIndex",a.activeLink))},dependencies:[ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,at.k,J.ES,J.mq,J.T8,st.f,j.n3],encapsulation:2}))}return t(),s})();var ot=S(9172),St=S(6354),Rt=S(92);const Qs=["form"];function Ws(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n.alias?n.alias:n.pub_key?n.pub_key:"")}}function Zs(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer alias is required."),e.k0s())}function Ks(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer not found in the list."),e.k0s())}function eo(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",38)(1,"mat-label"),e.EFF(2,"Peer Alias"),e.k0s(),e.nrm(3,"input",39),e.j41(4,"mat-autocomplete",40,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(6,Ws,2,2,"mat-option",28),e.nI1(7,"async"),e.k0s(),e.DNE(8,Zs,2,0,"mat-error",20)(9,Ks,2,0,"mat-error",20),e.k0s()}if(2&t){const n=e.sdS(5),i=e.XpG();e.R7$(3),e.Y8G("formControl",i.selectedPeer)("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,6,i.filteredPeers)),e.R7$(2),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function to(t,s){1&t&&e.eu8(0)}function no(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function io(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Amount must be less than or equal to ",n.totalBalance,".")}}function ao(t,s){if(1&t&&(e.j41(0,"div",42),e.nrm(1,"fa-icon",43),e.j41(2,"span",6)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",44)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function so(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function oo(t,s){if(1&t&&(e.j41(0,"mat-hint"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Mempool Min: ",n.recommendedFee.minimumFee," (Sats/vByte)")}}function lo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Target Confirmation Blocks is required."),e.k0s())}function ro(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fee is required."),e.k0s())}function co(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lower than min feerate ",n.recommendedFee.minimumFee," in the mempool.")}}function po(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",32)(1,"mat-slide-toggle",45),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.taprootChannel,o)||(a.taprootChannel=o),r.Njj(o)}),e.EFF(2,"Taproot Channel"),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.R50("ngModel",n.taprootChannel)}}function mo(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.channelConnectionError)}}function uo(t,s){if(1&t&&(e.j41(0,"div",46),e.nrm(1,"fa-icon",43),e.DNE(2,mo,2,1,"span",20),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.channelConnectionError)}}function ho(t,s){if(1&t&&(e.j41(0,"mat-expansion-panel",48)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),e.EFF(4,"Peer: \xa0"),e.k0s(),e.j41(5,"strong",49),e.EFF(6),e.k0s()()(),e.j41(7,"div",13)(8,"div",50)(9,"div",38)(10,"h4",51),e.EFF(11,"Pubkey"),e.k0s(),e.j41(12,"span",52),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",53),e.j41(15,"div",50)(16,"div",54)(17,"h4",51),e.EFF(18,"Address"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()(),e.j41(21,"div",54)(22,"h4",51),e.EFF(23,"Inbound"),e.k0s(),e.j41(24,"span",55),e.EFF(25),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.address)),e.R7$(7),e.JRh(n.peer.pub_key),e.R7$(7),e.JRh(null==n.peer?null:n.peer.address),e.R7$(5),e.JRh(null!=n.peer&&n.peer.inbound?"True":"False")}}function _o(t,s){if(1&t&&e.DNE(0,ho,26,4,"mat-expansion-panel",47),2&t){const n=e.XpG();e.Y8G("ngIf",n.peer)}}let Et=(()=>{var t;class s{constructor(i,o,a,l,h,f,P){this.logger=i,this.dialogRef=o,this.data=a,this.store=l,this.actions=h,this.commonService=f,this.dataService=P,this.selectedPeer=new g.hs,this.amount=new g.hs,this.faExclamationTriangle=I.zpE,this.faInfoCircle=I.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.isTaprootAvailable=!1,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=p.XG,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.isTaprootAvailable=this.commonService.isVersionCompatible(this.information.version,"0.17.0")):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[],this.isTaprootAvailable=!1),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a,this.isPrivate=!!a?.settings.unannouncedChannels}),this.actions.pipe((0,x.Q)(this.unSubs[1]),(0,L.p)(a=>a.type===p.QP.UPDATE_API_CALL_STATUS_LND||a.type===p.QP.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===p.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===p.wn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===p.QP.FETCH_CHANNELS_LND&&this.dialogRef.close()});let i="",o="";this.sortedPeers=this.peers.sort((a,l)=>(i=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",io?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,x.Q)(this.unSubs[2]),(0,ot.Z)(""),(0,St.T)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,St.T)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(i){return this.sortedPeers?.filter(o=>0===o.alias?.toLowerCase().indexOf(i?i.toLowerCase():""))}displayFn(i){return i&&i.alias?i.alias:i&&i.pub_key?i.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const i=this.peers?.filter(o=>o.alias?.length===this.selectedPeer.value.length&&0===o.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===i.length&&i[0].pub_key&&(this.selectedPubkey=i[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue||"2"===this.selTransType&&this.recommendedFee.minimumFee>+this.transTypeValue)return!0;this.store.dispatch((0,N.vL)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed,commitmentType:this.taprootChannel?5:null}}))}onAdvancedPanelToggle(i){this.advancedTitle=i?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Taproot Channel: "+(this.taprootChannel?"Yes":"No")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}onSelTransTypeChanged(i){this.transTypeValue="",i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,x.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(G.il),e.rXU(ce.En),e.rXU(z.h),e.rXU(Fe.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-open-channel"]],viewQuery:function(o,a){if(1&o&&e.GBs(Qs,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:66,vars:30,consts:[["form","ngForm"],["amt","ngModel"],["transTypeVal","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","type","number","required","","name","amnt",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxFlex","49"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","name","transTpValue",3,"ngModelChange","required","disabled","step","min","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-2"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["color","primary","name","spendUnconfirmed",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit"],["fxFlex","100"],["type","text","aria-label","Peers","matInput","","required","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["color","primary","name","taprootChannel",3,"ngModelChange","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5),e.k0s()(),e.j41(6,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.j41(11,"div",13),e.DNE(12,eo,10,8,"mat-form-field",14),e.k0s(),e.DNE(13,to,1,0,"ng-container",15),e.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),e.EFF(18,"Amount"),e.k0s(),e.j41(19,"input",18,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.fundingAmount,f)||(a.fundingAmount=f),r.Njj(f)}),e.k0s(),e.j41(21,"mat-hint"),e.EFF(22),e.nI1(23,"number"),e.k0s(),e.j41(24,"span",19),e.EFF(25," Sats "),e.k0s(),e.DNE(26,no,2,0,"mat-error",20)(27,io,2,1,"mat-error",20),e.k0s(),e.j41(28,"div",21)(29,"mat-slide-toggle",22),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.isPrivate,f)||(a.isPrivate=f),r.Njj(f)}),e.EFF(30,"Private Channel"),e.k0s()()(),e.j41(31,"mat-expansion-panel",23),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1))}),e.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),e.EFF(35),e.k0s()()(),e.j41(36,"div",24),e.DNE(37,ao,16,6,"div",25),e.j41(38,"div",16)(39,"mat-form-field",26)(40,"mat-label"),e.EFF(41,"Transaction Type"),e.k0s(),e.j41(42,"mat-select",27),e.mxI("valueChange",function(f){return r.eBV(l),e.DH7(a.selTransType,f)||(a.selTransType=f),r.Njj(f)}),e.bIt("selectionChange",function(f){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(f))}),e.DNE(43,so,2,2,"mat-option",28),e.k0s()(),e.j41(44,"mat-form-field",26)(45,"mat-label"),e.EFF(46),e.k0s(),e.j41(47,"input",29,2),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.transTypeValue,f)||(a.transTypeValue=f),r.Njj(f)}),e.k0s(),e.DNE(49,oo,2,1,"mat-hint",20)(50,lo,2,0,"mat-error",20)(51,ro,2,0,"mat-error",20)(52,co,2,1,"mat-error",20),e.k0s()(),e.j41(53,"div",30),e.DNE(54,po,3,1,"div",31),e.j41(55,"div",32)(56,"mat-slide-toggle",33),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.spendUnconfirmed,f)||(a.spendUnconfirmed=f),r.Njj(f)}),e.EFF(57,"Spend Unconfirmed Output"),e.k0s()()()()()(),e.DNE(58,uo,3,2,"div",34),e.j41(59,"div",35)(60,"button",36),e.EFF(61,"Clear Fields"),e.k0s(),e.j41(62,"button",37),e.EFF(63,"Open Channel"),e.k0s()()()()()(),e.DNE(64,_o,1,1,"ng-template",null,3,e.C5r)}if(2&o){const l=e.sdS(20),h=e.sdS(65);e.R7$(5),e.JRh(a.alertTitle),e.R7$(7),e.Y8G("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.R7$(),e.Y8G("ngTemplateOutlet",h),e.R7$(6),e.Y8G("step",1e3)("min",1)("max",a.totalBalance),e.R50("ngModel",a.fundingAmount),e.R7$(3),e.SpI("(Remaining: ",e.bMT(23,28,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.R7$(4),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.max),e.R7$(2),e.R50("ngModel",a.isPrivate),e.R7$(6),e.JRh(a.advancedTitle),e.R7$(2),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("step",1)("min","2"===a.selTransType?a.recommendedFee.minimumFee:0),e.R50("ngModel",a.transTypeValue),e.R7$(2),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf","1"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&a.transTypeValue&&+a.transTypeValue{var t;class s{constructor(i,o,a,l,h,f,P,w,M){this.dialogRef=i,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=h,this.actions=f,this.logger=P,this.commonService=w,this.dataService=M,this.faExclamationTriangle=I.zpE,this.faInfoCircle=I.iW_,this.peerAddress="",this.totalBalance=0,this.transTypes=p.XG,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.isTaprootAvailable=!1,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.totalBalance=this.data.message?.balance||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[g.k0.required]],peerAddress:[this.data.message?.peer?.pub_key?this.data.message?.peer?.pub_key+(this.data.message?.peer?.address?"@"+this.data.message?.peer?.address:""):"",[g.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[g.k0.required,g.k0.min(1),g.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],selTransType:[p.XG[0].id],transTypeValue:[{value:"",disabled:!0}],taprootChannel:[!1],spendUnconfirmed:[!1],hiddenAmount:["",[g.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(E.gj).pipe((0,x.Q)(this.unSubs[0]),(0,me.E)(this.store.select(W._c))).subscribe(([o,a])=>{this.selNode=a,this.channelFormGroup.controls.isPrivate.setValue(!!a?.settings.unannouncedChannels),this.isTaprootAvailable=this.commonService.isVersionCompatible(o.information.version,"0.17.0")}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,x.Q)(this.unSubs[1])).subscribe(o=>{o===p.XG[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([g.k0.required]))}),this.actions.pipe((0,x.Q)(this.unSubs[2]),(0,L.p)(o=>o.type===p.QP.NEWLY_ADDED_PEER_LND||o.type===p.QP.FETCH_PENDING_CHANNELS_LND||o.type===p.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===p.QP.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===p.QP.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===p.QP.UPDATE_API_CALL_STATUS_LND&&o.payload.status===p.wn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const i=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";i>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,i),a=this.peerFormGroup.controls.peerAddress.value.substring(i+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,N.t0)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,be.s)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(i,o){this.store.dispatch((0,N.sq)({payload:{pubkey:i,host:o,perm:!1}}))}onOpenChannel(){return"2"===this.channelFormGroup.controls.selTransType.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.transTypeValue.value?(this.channelFormGroup.controls.transTypeValue.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||(this.channelConnectionError="",void this.store.dispatch((0,N.vL)({payload:{selectedPeerPubkey:this.newlyAddedPeer?.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value,commitmentType:this.channelFormGroup.controls.taprootChannel.value?5:null}})))}onSelTransTypeChanged(i){this.channelFormGroup.controls.transTypeValue.setValue(""),i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,x.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}i.selectedIndex{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(G.il),e.rXU(Pe.L),e.rXU(g.ze),e.rXU(ce.En),e.rXU(V.gP),e.rXU(z.h),e.rXU(Fe.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connect-peer"]],viewQuery:function(o,a){if(1&o&&(e.GBs(fo,5),e.GBs(go,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:70,vars:31,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","50"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"step","min","required"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["tabindex","6","color","primary","formControlName","taprootChannel","name","taprootChannel",1,"ps-2"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Connect to a new peer"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function(f){return r.eBV(l),r.Njj(a.stepSelectionChanged(f))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,Co,1,1,"ng-template",12),e.j41(15,"mat-form-field",13)(16,"mat-label"),e.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),e.k0s(),e.nrm(18,"input",14),e.DNE(19,yo,2,0,"mat-error",15),e.k0s(),e.DNE(20,bo,4,2,"div",16),e.j41(21,"div",17)(22,"button",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(23),e.k0s()()()(),e.j41(24,"mat-step",10)(25,"form",19),e.DNE(26,Fo,1,1,"ng-template",20),e.j41(27,"div",21),e.DNE(28,xo,16,6,"div",22),e.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),e.EFF(32,"Amount"),e.k0s(),e.nrm(33,"input",25),e.j41(34,"mat-hint"),e.EFF(35),e.nI1(36,"number"),e.k0s(),e.j41(37,"span",26),e.EFF(38," Sats "),e.k0s(),e.DNE(39,vo,2,0,"mat-error",15)(40,To,2,0,"mat-error",15)(41,ko,2,1,"mat-error",15),e.k0s(),e.j41(42,"div",27)(43,"mat-slide-toggle",28),e.EFF(44,"Private Channel"),e.k0s()()(),e.j41(45,"div",29)(46,"mat-form-field",30)(47,"mat-label"),e.EFF(48,"Transaction Type"),e.k0s(),e.j41(49,"mat-select",31),e.bIt("selectionChange",function(f){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(f))}),e.DNE(50,So,2,2,"mat-option",32),e.k0s()(),e.j41(51,"mat-form-field",33)(52,"mat-label"),e.EFF(53),e.k0s(),e.nrm(54,"input",34),e.DNE(55,Ro,2,1,"mat-hint",15)(56,Eo,2,1,"mat-error",15)(57,Io,2,1,"mat-error",15),e.k0s()(),e.j41(58,"div",29),e.DNE(59,wo,3,0,"div",35),e.j41(60,"div",36)(61,"mat-slide-toggle",37),e.EFF(62,"Spend Unconfirmed Output"),e.k0s()()()(),e.DNE(63,Lo,4,2,"div",16),e.j41(64,"div",17)(65,"button",38),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onOpenChannel())}),e.EFF(66),e.k0s()()()()(),e.j41(67,"div",39)(68,"button",40),e.EFF(69),e.k0s()()()()()()}2&o&&(e.R7$(10),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.peerFormGroup),e.R7$(6),e.Y8G("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.R7$(),e.Y8G("ngIf",""!==a.peerConnectionError),e.R7$(3),e.JRh(""!==a.peerConnectionError?"Retry":"Add Peer"),e.R7$(),e.Y8G("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.channelFormGroup),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.SpI("Remaining: ",e.bMT(36,29,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0))),e.R7$(4),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.R7$(9),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("step",1)("min","2"===a.channelFormGroup.controls.selTransType.value?a.recommendedFee.minimumFee:0)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.R7$(),e.Y8G("ngIf",a.channelFormGroup.controls.transTypeValue.value&&(null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.minimum)),e.R7$(2),e.Y8G("ngIf",a.isTaprootAvailable),e.R7$(4),e.Y8G("ngIf",""!==a.channelConnectionError),e.R7$(3),e.JRh(""!==a.channelConnectionError?"Retry":"Open Channel"),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.j4,g.JD,ee.aY,ne.tx,$.$z,B.m2,B.MM,Z.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,b.DJ,b.sA,b.UI,O.VO,ae.wT,Re.sG,de.V5,de.Ti,de.M6,pe.N,ye.V,y.QX],encapsulation:2}))}return t(),s})();const jo=()=>["all"],Go=t=>({"error-border":t}),Do=()=>["no_peer"],lt=t=>({width:t}),No=t=>({"display-none":t});function Po(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Bo(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Ao(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Alias"),e.k0s())}function $o(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,lt,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Mo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Public Key"),e.k0s())}function Oo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,lt,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Vo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Address"),e.k0s())}function Yo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,lt,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.address)}}function Uo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Sync Type"),e.k0s())}function Xo(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,null==n?null:n.sync_type,"sync","_"))}}function Ho(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Inbound"),e.k0s())}function qo(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.inbound?"Yes":"No")}}function zo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Sent"),e.k0s())}function Jo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_sent)," ")}}function Qo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Received"),e.k0s())}function Wo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_recv)," ")}}function Zo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Sent"),e.k0s())}function Ko(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_sent)," ")}}function el(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Received"),e.k0s())}function tl(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_recv)," ")}}function nl(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Ping Time ("),e.j41(2,"span"),e.EFF(3,"\xb5"),e.k0s(),e.EFF(4,"s)"),e.k0s())}function il(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.ping_time)," ")}}function al(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function sl(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",51)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onPeerClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenChannel(o))}),e.EFF(7,"Open Channel"),e.k0s(),e.j41(8,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onPeerDetach(o))}),e.EFF(9,"Disconnect"),e.k0s()()()()}}function ol(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No connected peer."),e.k0s())}function ll(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting peers..."),e.k0s())}function rl(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function cl(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,ol,2,0,"p",53)(2,ll,2,0,"p",53)(3,rl,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function pl(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,No,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function ml(t,s){1&t&&e.nrm(0,"tr",55)}function ul(t,s){1&t&&e.nrm(0,"tr",56)}let hl=(()=>{var t;class s{constructor(i,o,a,l,h){this.logger=i,this.store=o,this.rtlEffects=a,this.commonService=l,this.camelCaseWithReplace=h,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:p.md,sortBy:"alias",sortOrder:p.oi.DESCENDING},this.availableBalance=0,this.faUsers=I.gdJ,this.displayedColumns=[],this.peersData=[],this.peers=new _.I6([]),this.information={},this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0}),this.store.select(E.os).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=i.peers,this.peersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPeersTable(this.peersData),this.logger.info(i)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:i.pub_key,goToName:"Graph lookup",goToLink:"/lnd/graph/lookups",showQRName:"Public Key",showQRField:i.pub_key,message:[[{key:"pub_key",value:i.pub_key,title:"Public Key",width:100}],[{key:"address",value:i.address,title:"Address",width:100}],[{key:"alias",value:i.alias,title:"Alias",width:40},{key:"inbound",value:i.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:i.ping_time,title:"Ping Time (\xb5s)",width:30,type:p.UN.NUMBER}],[{key:"sat_sent",value:i.sat_sent,title:"Satoshis Sent",width:50,type:p.UN.NUMBER},{key:"sat_recv",value:i.sat_recv,title:"Satoshis Received",width:50,type:p.UN.NUMBER}],[{key:"bytes_sent",value:i.bytes_sent,title:"Bytes Sent",width:50,type:p.UN.NUMBER},{key:"bytes_recv",value:i.bytes_recv,title:"Bytes Received",width:50,type:p.UN.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,Y.xO)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:It}}}))}onOpenChannel(i){this.store.dispatch((0,Y.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:i,information:this.information,balance:this.availableBalance},component:Et}}}))}onPeerDetach(i){this.store.dispatch((0,Y.I1)({payload:{data:{type:p.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(i.alias?i.alias:i.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,x.Q)(this.unSubs[4])).subscribe(a=>{a&&this.store.dispatch((0,N.ed)({payload:{pubkey:i.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.peers.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"sync_type":a=this.camelCaseWithReplace.transform(i.sync_type||"","sync","_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"sync_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPeersTable(i){this.peers=new _.I6(i?[...i]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(Ve.H),e.rXU(z.h),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Peers")}])],decls:64,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","address"],["matColumnDef","sync_type"],["matColumnDef","inbound"],["matColumnDef","bytes_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","bytes_recv"],["matColumnDef","sat_sent"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(3,"Add Peer"),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"fa-icon",7),e.j41(8,"span",8),e.EFF(9,"Connected Peers"),e.k0s()(),e.j41(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),e.EFF(13,"Filter By"),e.k0s(),e.j41(14,"mat-select",11),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(15,"perfect-scrollbar"),e.DNE(16,Po,2,2,"mat-option",12),e.k0s()()(),e.j41(17,"mat-form-field",10)(18,"mat-label"),e.EFF(19,"Filter"),e.k0s(),e.j41(20,"input",13),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(21,"div",14),e.DNE(22,Bo,1,0,"mat-progress-bar",15),e.j41(23,"table",16,0),e.qex(25,17),e.DNE(26,Ao,2,0,"th",18)(27,$o,4,4,"td",19),e.bVm(),e.qex(28,20),e.DNE(29,Mo,2,0,"th",18)(30,Oo,4,4,"td",19),e.bVm(),e.qex(31,21),e.DNE(32,Vo,2,0,"th",18)(33,Yo,4,4,"td",19),e.bVm(),e.qex(34,22),e.DNE(35,Uo,2,0,"th",18)(36,Xo,3,5,"td",19),e.bVm(),e.qex(37,23),e.DNE(38,Ho,2,0,"th",18)(39,qo,2,1,"td",19),e.bVm(),e.qex(40,24),e.DNE(41,zo,2,0,"th",25)(42,Jo,4,3,"td",19),e.bVm(),e.qex(43,26),e.DNE(44,Qo,2,0,"th",25)(45,Wo,4,3,"td",19),e.bVm(),e.qex(46,27),e.DNE(47,Zo,2,0,"th",25)(48,Ko,4,3,"td",19),e.bVm(),e.qex(49,28),e.DNE(50,el,2,0,"th",25)(51,tl,4,3,"td",19),e.bVm(),e.qex(52,29),e.DNE(53,nl,5,0,"th",25)(54,il,4,3,"td",19),e.bVm(),e.qex(55,30),e.DNE(56,al,6,0,"th",31)(57,sl,10,0,"td",32),e.bVm(),e.qex(58,33),e.DNE(59,cl,4,3,"td",34),e.bVm(),e.DNE(60,pl,1,3,"tr",35)(61,ml,1,0,"tr",36)(62,ul,1,0,"tr",37),e.k0s()(),e.nrm(63,"mat-paginator",38),e.k0s()()}2&o&&(e.R7$(7),e.Y8G("icon",a.faUsers),e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(15,jo).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",e.eq3(16,Go,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(18,Do)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,ee.aY,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.ZF,K.Ld,y.QX,ue.VD],encapsulation:2}))}return t(),s})();function dl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Open"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numOpenChannels))}}function _l(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Pending"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numPendingChannels))}}function fl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Closed"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numClosedChannels))}}function gl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Active HTLCs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numActiveHTLCs))}}let Cl=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(i=>i instanceof j.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.numOpenChannels=i.channels&&i.channels.length?i.channels.length:0,this.numActiveHTLCs=i.channels?.reduce((o,a)=>o+(a.pending_htlcs&&a.pending_htlcs.length>0?a.pending_htlcs.length:0),0),this.logger.info(i)}),this.store.select(E.Uv).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.numPendingChannels=i.pendingChannelsSummary.total_channels?i.pendingChannelsSummary.total_channels:0}),this.store.select(E.Bw).pipe((0,x.Q)(this.unSubs[4])).subscribe(i=>{this.numClosedChannels=i.closedChannels&&i.closedChannels.length?i.closedChannels.length:0}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[5])).subscribe(i=>{this.totalBalance=+(i.blockchainBalance.total_balance||0)}),this.store.select(E.os).pipe((0,x.Q)(this.unSubs[6])).subscribe(i=>{this.peers=i.peers,this.peers.forEach(o=>{(!o.alias||""===o.alias)&&(o.alias=o.pub_key?.substring(0,20))}),this.logger.info(i)})}onOpenChannel(){this.store.dispatch((0,Y.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Et}}}))}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channels-tables"]],standalone:!1,decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.onOpenChannel()}),e.EFF(3,"Open Channel"),e.k0s()(),e.j41(4,"div",3)(5,"mat-tab-group",4),e.mxI("selectedIndexChange",function(h){return e.DH7(a.activeLink,h)||(a.activeLink=h),h}),e.bIt("selectedTabChange",function(h){return a.onSelectedTabChange(h)}),e.j41(6,"mat-tab"),e.DNE(7,dl,2,2,"ng-template",5),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,_l,2,2,"ng-template",5),e.k0s(),e.j41(10,"mat-tab"),e.DNE(11,fl,2,2,"ng-template",5),e.k0s(),e.j41(12,"mat-tab"),e.DNE(13,gl,2,2,"ng-template",5),e.k0s()(),e.j41(14,"div",6),e.nrm(15,"router-outlet"),e.k0s()()()),2&o&&(e.R7$(5),e.R50("selectedIndex",a.activeLink))},dependencies:[$.$z,b.DJ,b.sA,b.UI,at.k,J.ES,J.mq,J.T8,j.n3],encapsulation:2}))}return t(),s})();var we=S(5416),He=S(9157);const yl=t=>({"xs-scroll-y":t});function bl(t,s){if(1&t){const n=e.RV6();e.j41(0,"fa-icon",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExplorerClicked())}),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("matTooltip",e.mNQ("Link to "+(null==n.selNode||null==n.selNode.settings?null:n.selNode.settings.blockExplorerUrl)))("icon",n.faUpRightFromSquare)}}function Fl(t,s){if(1&t&&(e.j41(0,"div")(1,"div",10)(2,"div",19)(3,"h4",12),e.EFF(4,"Commit Fee"),e.k0s(),e.j41(5,"span",20),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div",19)(9,"h4",12),e.EFF(10,"Commit Weight"),e.k0s(),e.j41(11,"span",20),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div",19)(15,"h4",12),e.EFF(16,"Fee/KW"),e.k0s(),e.j41(17,"span",20),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",19)(21,"h4",12),e.EFF(22,"Static Remote Key"),e.k0s(),e.j41(23,"span",20),e.EFF(24),e.k0s()()(),e.nrm(25,"mat-divider",15),e.j41(26,"div",10)(27,"div",19)(28,"h4",12),e.EFF(29),e.k0s(),e.j41(30,"span",20),e.EFF(31),e.nI1(32,"number"),e.k0s()(),e.j41(33,"div",19)(34,"h4",12),e.EFF(35),e.k0s(),e.j41(36,"span",20),e.EFF(37),e.nI1(38,"number"),e.k0s()(),e.j41(39,"div",19)(40,"h4",12),e.EFF(41,"Unsettled Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"CSV Delay"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.nrm(51,"mat-divider",15),e.j41(52,"div",10)(53,"div",19)(54,"h4",12),e.EFF(55,"Local Reserve (Sats)"),e.k0s(),e.j41(56,"span",20),e.EFF(57),e.nI1(58,"number"),e.k0s()(),e.j41(59,"div",19)(60,"h4",12),e.EFF(61,"Remote Reserve (Sats)"),e.k0s(),e.j41(62,"span",20),e.EFF(63),e.nI1(64,"number"),e.k0s()(),e.j41(65,"div",19)(66,"h4",12),e.EFF(67,"Lifetime (Seconds)"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.nI1(70,"number"),e.k0s()(),e.j41(71,"div",19)(72,"h4",12),e.EFF(73,"Pending HTLCs"),e.k0s(),e.j41(74,"span",20),e.EFF(75),e.nI1(76,"number"),e.k0s()()(),e.nrm(77,"mat-divider",15),e.k0s()),2&t){const n=e.XpG();e.R7$(6),e.JRh(e.bMT(7,17,n.channel.commit_fee)),e.R7$(6),e.JRh(e.bMT(13,19,n.channel.commit_weight)),e.R7$(6),e.JRh(e.bMT(19,21,n.channel.fee_per_kw)),e.R7$(6),e.JRh(n.channel.static_remote_key?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.R7$(2),e.JRh(e.bMT(32,23,n.channel.total_satoshis_sent)),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.R7$(2),e.JRh(e.bMT(38,25,n.channel.total_satoshis_received)),e.R7$(6),e.JRh(e.bMT(44,27,n.channel.unsettled_balance)),e.R7$(6),e.JRh(e.bMT(50,29,n.channel.csv_delay)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(58,31,n.channel.local_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(64,33,n.channel.remote_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(70,35,n.channel.lifetime)),e.R7$(6),e.JRh(e.bMT(76,37,null==n.channel||null==n.channel.pending_htlcs?null:n.channel.pending_htlcs.length)),e.R7$(2),e.Y8G("inset",!0)}}function xl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Show Advanced"),e.k0s())}function vl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Hide Advanced"),e.k0s())}function Tl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onCopyChanID(o))}),e.EFF(1,"Copy Channel ID"),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("payload",n.channel.chan_id)}}function kl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"OK"),e.k0s()}}let rt=(()=>{var t;class s{constructor(i,o,a,l,h,f){this.dialogRef=i,this.data=o,this.logger=a,this.commonService=l,this.snackBar=h,this.router=f,this.faReceipt=I.Mf0,this.faUpRightFromSquare=I.k02,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=p.f7}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.selNode=this.data.selNode,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(i){this.snackBar.open("Channel ID "+i+" copied."),this.logger.info("Copied Text: "+i)}onExplorerClicked(){this.selNode?.settings?.blockExplorerUrl&&window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.channel.channel_point,"_blank")}onGoToLink(i,o){this.router.navigateByUrl("/lnd/graph/lookups",{state:{lookupType:i,lookupValue:o}}),this.onClose()}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(V.gP),e.rXU(z.h),e.rXU(we.UG),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-information"]],standalone:!1,decls:95,vars:37,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],["tabindex","4","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","5",1,"foreground-secondary-text"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["tabindex","6","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Channel Information"),e.k0s()(),e.j41(7,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(8,"X"),e.k0s()(),e.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"h4",12),e.EFF(14,"Channel ID"),e.k0s(),e.j41(15,"span",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("1",a.channel.chan_id))}),e.EFF(16),e.k0s()(),e.j41(17,"div",11)(18,"h4",12),e.EFF(19,"Peer Alias"),e.k0s(),e.j41(20,"span",14),e.EFF(21),e.k0s()()(),e.nrm(22,"mat-divider",15),e.j41(23,"div",10)(24,"div",2)(25,"h4",12),e.EFF(26,"Channel Point"),e.k0s(),e.j41(27,"span",16),e.EFF(28),e.DNE(29,bl,1,3,"fa-icon",17),e.k0s()()(),e.nrm(30,"mat-divider",15),e.j41(31,"div",10)(32,"div",2)(33,"h4",12),e.EFF(34,"Peer Public Key"),e.k0s(),e.j41(35,"span",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("0",a.channel.remote_pubkey))}),e.EFF(36),e.k0s()()(),e.nrm(37,"mat-divider",15),e.j41(38,"div",10)(39,"div",19)(40,"h4",12),e.EFF(41,"Local Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"Remote Balance"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()(),e.j41(51,"div",19)(52,"h4",12),e.EFF(53,"Capacity"),e.k0s(),e.j41(54,"span",20),e.EFF(55),e.nI1(56,"number"),e.k0s()(),e.j41(57,"div",19)(58,"h4",12),e.EFF(59,"Uptime (Seconds)"),e.k0s(),e.j41(60,"span",20),e.EFF(61),e.nI1(62,"number"),e.k0s()()(),e.nrm(63,"mat-divider",15),e.j41(64,"div",10)(65,"div",19)(66,"h4",12),e.EFF(67,"Active"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.k0s()(),e.j41(70,"div",19)(71,"h4",12),e.EFF(72,"Private"),e.k0s(),e.j41(73,"span",20),e.EFF(74),e.k0s()(),e.j41(75,"div",19)(76,"h4",12),e.EFF(77,"Initiator"),e.k0s(),e.j41(78,"span",20),e.EFF(79),e.k0s()(),e.j41(80,"div",19)(81,"h4",12),e.EFF(82,"Number of Updates"),e.k0s(),e.j41(83,"span",20),e.EFF(84),e.nI1(85,"number"),e.k0s()()(),e.nrm(86,"mat-divider",15),e.DNE(87,Fl,78,39,"div",21),e.j41(88,"div",22)(89,"button",23),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onShowAdvanced())}),e.DNE(90,xl,2,0,"p",24)(91,vl,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(93,Tl,2,1,"button",25)(94,kl,2,0,"button",26),e.k0s()()()()()}if(2&o){const l=e.sdS(92);e.R7$(4),e.Y8G("icon",a.faReceipt),e.R7$(5),e.Y8G("ngClass",e.eq3(35,yl,a.screenSize===a.screenSizeEnum.XS)),e.R7$(7),e.SpI(" ",a.channel.chan_id," "),e.R7$(5),e.JRh(a.channel.remote_alias),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.channel_point," "),e.R7$(),e.Y8G("ngIf",null==a.selNode||null==a.selNode.settings?null:a.selNode.settings.blockExplorerUrl),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.remote_pubkey," "),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(44,25,a.channel.local_balance)),e.R7$(6),e.JRh(e.bMT(50,27,a.channel.remote_balance)),e.R7$(6),e.JRh(e.bMT(56,29,a.channel.capacity)),e.R7$(6),e.JRh(e.bMT(62,31,a.channel.uptime)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.channel.active?"Yes":"No"),e.R7$(5),e.JRh(a.channel.private?"Yes":"No"),e.R7$(5),e.JRh(a.channel.initiator?"Yes":"No"),e.R7$(5),e.JRh(e.bMT(85,33,a.channel.num_updates)),e.R7$(2),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",a.showAdvanced),e.R7$(3),e.Y8G("ngIf",!a.showAdvanced)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf",a.showCopy),e.R7$(),e.Y8G("ngIf",!a.showCopy)}},dependencies:[y.YU,y.bT,ee.aY,$.$z,B.m2,B.MM,Te.q,b.DJ,b.sA,b.UI,U.PW,fe.oV,He.U,pe.N,y.QX],encapsulation:2}))}return t(),s})();var ct=S(7673),pt=S(1001),Sl=S(6949);const Ye=(t,s)=>({"small-svg":t,"large-svg":s});function Rl(t,s){1&t&&e.eu8(0)}function El(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),e.k0s(),r.joV(),e.j41(41,"div",47)(42,"mat-card-title"),e.EFF(43,"Circular rebalancing explained."),e.k0s()(),e.j41(44,"div",48)(45,"mat-card-subtitle",49),e.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Ye,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Il(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),e.j41(65,"defs")(66,"linearGradient",90),e.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),e.k0s(),e.j41(70,"linearGradient",94),e.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),e.k0s(),e.j41(74,"linearGradient",95),e.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),e.k0s(),e.j41(78,"linearGradient",96),e.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),e.k0s(),e.j41(82,"linearGradient",97),e.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),e.k0s(),e.j41(86,"linearGradient",98),e.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),e.k0s()()(),r.joV(),e.j41(90,"div",47)(91,"mat-card-title"),e.EFF(92,"Step 1: Unbalanced channel"),e.k0s()(),e.j41(93,"div",48)(94,"mat-card-subtitle",49),e.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Ye,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function wl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",99),e.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),e.j41(49,"defs")(50,"linearGradient",137),e.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),e.k0s(),e.j41(54,"linearGradient",138),e.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),e.k0s(),e.j41(58,"linearGradient",139),e.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),e.k0s()()(),r.joV(),e.j41(62,"div",47)(63,"mat-card-title"),e.EFF(64,"Step 2: Invoice/Payment"),e.k0s()(),e.j41(65,"div",48)(66,"mat-card-subtitle",49),e.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Ye,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ll(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),e.j41(42,"defs")(43,"linearGradient",180),e.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),e.k0s()()(),r.joV(),e.j41(47,"div",47)(48,"mat-card-title"),e.EFF(49,"Step 3: Rebalance amount"),e.k0s()(),e.j41(50,"div",48)(51,"mat-card-subtitle",49),e.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Ye,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function jl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),e.j41(41,"defs")(42,"linearGradient",199),e.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),e.k0s()()(),r.joV(),e.j41(46,"div",47)(47,"mat-card-title"),e.EFF(48,"Rebalance successful!"),e.k0s()(),e.j41(49,"div",48)(50,"mat-card-subtitle",49),e.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Ye,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let Gl=(()=>{var t;class s{constructor(i){this.commonService=i,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=p.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(i){2===i.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===i.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(o,a){if(1&o&&e.DNE(0,Rl,1,0,"ng-container",5)(1,El,47,5,"ng-template",null,0,e.C5r)(3,Il,96,5,"ng-template",null,1,e.C5r)(5,wl,68,5,"ng-template",null,2,e.C5r)(7,Ll,53,5,"ng-template",null,3,e.C5r)(9,jl,52,5,"ng-template",null,4,e.C5r),2&o){const l=e.sdS(2),h=e.sdS(4),f=e.sdS(6),P=e.sdS(8),w=e.sdS(10);e.Y8G("ngTemplateOutlet",1===a.stepNumber?l:2===a.stepNumber?h:3===a.stepNumber?f:4===a.stepNumber?P:w)}},dependencies:[y.YU,y.T3,B.Lc,B.dh,b.DJ,b.sA,b.UI,U.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[Sl.k]}}))}return t(),s})();const Dl=["stepper"],Nl=()=>[1,2,3,4,5],Pl=(t,s)=>({"dot-primary":t,"dot-primary-lighter":s});function Bl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.inputFormLabel)}}function Al(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function $l(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount must be a positive number."),e.k0s())}function Ml(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.local_balance,".")}}function Ol(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.Lme("",n.remote_alias," - ",n.chan_id)}}function Vl(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer is required."),e.k0s())}function Yl(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer not found in the list."),e.k0s())}function Ul(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.feeFormLabel)}}function Xl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function Hl(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," is required.")}}function ql(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," must be a positive number.")}}function zl(t,s){1&t&&e.EFF(0,"Invoice/Payment")}function Jl(t,s){1&t&&(e.j41(0,"mat-icon",55),e.EFF(1,"check"),e.k0s())}function Ql(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Wl(t,s){if(1&t&&(e.j41(0,"mat-icon",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(null!=n.paymentStatus&&n.paymentStatus.error?"close":"check")}}function Zl(t,s){1&t&&e.nrm(0,"div",7)}function Kl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function er(t,s){if(1&t&&(e.j41(0,"h4",57),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentStatus&&n.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function nr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),e.EFF(5,"Channel Rebalance"),e.k0s()(),e.j41(6,"div",12)(7,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(10,"X"),e.k0s()()()(),e.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),e.nrm(15,"fa-icon",18),e.j41(16,"span"),e.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.k0s()()(),e.j41(18,"div",19)(19,"p",20)(20,"strong"),e.EFF(21,"Channel Peer:\xa0"),e.k0s(),e.EFF(22),e.nI1(23,"titlecase"),e.k0s(),e.j41(24,"p",20)(25,"strong"),e.EFF(26,"Channel ID:\xa0"),e.k0s(),e.EFF(27),e.k0s()(),e.j41(28,"mat-vertical-stepper",21,3),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.j41(30,"mat-step",22)(31,"form",23),e.DNE(32,Bl,1,1,"ng-template",24),e.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),e.EFF(36,"Amount"),e.k0s(),e.nrm(37,"input",27),e.j41(38,"mat-hint"),e.EFF(39),e.k0s(),e.j41(40,"span",28),e.EFF(41,"Sats"),e.k0s(),e.DNE(42,Al,2,0,"mat-error",29)(43,$l,2,0,"mat-error",29)(44,Ml,2,1,"mat-error",29),e.k0s(),e.j41(45,"mat-form-field",30)(46,"mat-label"),e.EFF(47,"Receive from Peer"),e.k0s(),e.j41(48,"input",31),e.bIt("change",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.k0s(),e.j41(49,"mat-autocomplete",32,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(51,Ol,2,3,"mat-option",33),e.nI1(52,"async"),e.k0s(),e.DNE(53,Vl,2,0,"mat-error",29)(54,Yl,2,0,"mat-error",29),e.k0s()(),e.j41(55,"div",34)(56,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectFee())}),e.EFF(57,"Select Fee"),e.k0s()()()(),e.j41(58,"mat-step",22)(59,"form",23),e.DNE(60,Ul,1,1,"ng-template",36),e.j41(61,"div",25)(62,"div",25)(63,"mat-form-field",30)(64,"mat-label"),e.EFF(65,"Fee Limits"),e.k0s(),e.j41(66,"mat-select",37),e.DNE(67,Xl,2,2,"mat-option",33),e.k0s()(),e.j41(68,"mat-form-field",26)(69,"mat-label"),e.EFF(70),e.k0s(),e.nrm(71,"input",38),e.DNE(72,Hl,2,1,"mat-error",29)(73,ql,2,1,"mat-error",29),e.k0s()()(),e.j41(74,"div",34)(75,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRebalance())}),e.EFF(76,"Rebalance"),e.k0s()()()(),e.j41(77,"mat-step",40)(78,"form",23),e.DNE(79,zl,1,0,"ng-template",24),e.j41(80,"div",41)(81,"mat-expansion-panel",42)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",43),e.EFF(85),e.DNE(86,Jl,2,0,"mat-icon",44),e.k0s()()(),e.j41(87,"div",7)(88,"span",45),e.EFF(89),e.k0s()()(),e.DNE(90,Ql,1,0,"mat-progress-bar",46),e.j41(91,"mat-expansion-panel",47)(92,"mat-expansion-panel-header")(93,"mat-panel-title")(94,"span",43),e.EFF(95),e.DNE(96,Wl,2,1,"mat-icon",44),e.k0s()()(),e.DNE(97,Zl,1,0,"div",48),e.k0s(),e.DNE(98,Kl,1,0,"mat-progress-bar",46),e.k0s(),e.DNE(99,er,2,1,"h4",49),e.j41(100,"div",50),e.DNE(101,tr,2,0,"button",51),e.k0s()()()(),e.j41(102,"div",52)(103,"button",53),e.EFF(104,"Close"),e.k0s()()()()()}if(2&t){const n=e.sdS(50),i=e.XpG(),o=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(15),e.Y8G("icon",i.faInfoCircle),e.R7$(7),e.JRh(e.bMT(23,42,i.selChannel.remote_alias)),e.R7$(5),e.JRh(i.selChannel.chan_id),e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",i.inputFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.inputFormGroup),e.R7$(6),e.Y8G("step",100),e.R7$(2),e.Lme("(Local Bal: ",null==i.selChannel?null:i.selChannel.local_balance,", Remaining: ",(null==i.selChannel?null:i.selChannel.local_balance)-(i.inputFormGroup.controls.rebalanceAmount.value?i.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.R7$(3),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.max),e.R7$(4),e.Y8G("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(52,44,i.filteredActiveChannels)),e.R7$(2),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.R7$(4),e.Y8G("stepControl",i.feeFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.feeFormGroup),e.R7$(8),e.Y8G("ngForOf",i.feeLimitTypes),e.R7$(3),e.JRh(i.feeFormGroup.controls.selFeeLimitType.value?i.feeFormGroup.controls.selFeeLimitType.value.placeholder:i.feeLimitTypes[0].placeholder),e.R7$(),e.Y8G("step",1),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.required),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.min),e.R7$(4),e.Y8G("stepControl",i.statusFormGroup),e.R7$(),e.Y8G("formGroup",i.statusFormGroup),e.R7$(7),e.JRh(i.flgInvoiceGenerated?i.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated),e.R7$(3),e.JRh(i.paymentRequest),e.R7$(),e.Y8G("ngIf",!i.flgInvoiceGenerated),e.R7$(),e.Y8G("expanded",(i.flgInvoiceGenerated||i.flgReusingInvoice)&&i.flgPaymentSent),e.R7$(4),e.JRh(i.flgInvoiceGenerated||i.flgPaymentSent?i.flgPaymentSent?null!=i.paymentStatus&&i.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.R7$(),e.Y8G("ngIf",i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",!i.paymentStatus)("ngIfElse",o),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&!i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&i.flgPaymentSent),e.R7$(2),e.Y8G("ngIf",i.paymentStatus&&i.paymentStatus.error),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function ir(t,s){1&t&&e.eu8(0)}function ar(t,s){if(1&t&&e.DNE(0,ir,1,0,"ng-container",59),2&t){const n=e.XpG(),i=e.sdS(4),o=e.sdS(6);e.Y8G("ngTemplateOutlet",n.paymentStatus.error?i:o)}}function sr(t,s){if(1&t&&(e.j41(0,"div",7)(1,"span",45),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Error: ",n.paymentStatus.error)}}function or(t,s){if(1&t&&(e.j41(0,"div",7)(1,"div",60)(2,"div",61)(3,"h4",62),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",45),e.EFF(6),e.k0s()()(),e.nrm(7,"mat-divider",63),e.j41(8,"div",60)(9,"div",64)(10,"h4",62),e.EFF(11),e.k0s(),e.j41(12,"span",45),e.EFF(13),e.k0s()(),e.j41(14,"div",64)(15,"h4",62),e.EFF(16,"Number of Hops"),e.k0s(),e.j41(17,"span",45),e.EFF(18),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(6),e.JRh(n.paymentStatus.payment_hash),e.R7$(5),e.SpI("Total Fees (",n.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.R7$(2),e.JRh(n.paymentStatus.payment_route.total_fees_msat?n.paymentStatus.payment_route.total_fees_msat:n.paymentStatus.payment_route.total_fees?n.paymentStatus.payment_route.total_fees:0),e.R7$(5),e.JRh(n.paymentStatus&&n.paymentStatus.payment_route&&n.paymentStatus.payment_route.hops&&n.paymentStatus.payment_route.hops.length?n.paymentStatus.payment_route.hops.length:0)}}function lr(t,s){if(1&t){const n=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onStepChanged(o))}),e.nrm(1,"p",81),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,Pl,i.stepNumber===n,i.stepNumber!==n))}}function rr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function cr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function mr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function ur(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function hr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),e.nrm(4,"span",11),e.k0s(),e.j41(5,"div",69)(6,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",70)(9,"rtl-channel-rebalance-infographics",71),e.mxI("stepNumberChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.stepNumber,o)||(a.stepNumber=o),r.Njj(o)}),e.k0s()(),e.j41(10,"div",72),e.DNE(11,lr,2,4,"span",73),e.k0s(),e.j41(12,"div",74),e.DNE(13,rr,2,0,"button",75)(14,cr,2,0,"button",76)(15,pr,2,0,"button",77)(16,mr,2,0,"button",78)(17,ur,2,0,"button",79),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("animationDirection",n.animationDirection),e.R50("stepNumber",n.stepNumber),e.R7$(2),e.Y8G("ngForOf",e.lJ4(9,Nl)),e.R7$(2),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber>1&&n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber<5)}}let dr=(()=>{var t;class s{constructor(i,o,a,l,h,f,P,w){this.dialogRef=i,this.data=o,this.logger=a,this.store=l,this.actions=h,this.formBuilder=f,this.decimalPipe=P,this.commonService=w,this.faInfoCircle=I.iW_,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=p.f7,this.animationDirection="forward",this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let i="",o="";this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(a=>a.active&&a.chan_id!==this.selChannel.chan_id&&a.remote_balance&&a.remote_balance>0)||[],this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",io?1:0)),p.nv.forEach((a,l)=>{l>0&&this.feeLimitTypes.push(a)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[g.k0.required]],rebalanceAmount:["",[g.k0.required,g.k0.min(1),g.k0.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,g.k0.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],g.k0.required],feeLimit:["",[g.k0.required,g.k0.min(0)]],hiddenFeeLimit:["",[g.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(E.rN).pipe((0,x.Q)(this.unSubs[0])).subscribe(a=>{this.invoices=a.listInvoices,this.logger.info(a)}),this.actions.pipe((0,x.Q)(this.unSubs[1]),(0,L.p)(a=>a.type===p.QP.SET_QUERY_ROUTES_LND||a.type===p.QP.SEND_PAYMENT_STATUS_LND||a.type===p.QP.NEWLY_SAVED_INVOICE_LND)).subscribe(a=>{a.type===p.QP.SET_QUERY_ROUTES_LND&&(this.queryRoute=a.payload),a.type===p.QP.SEND_PAYMENT_STATUS_LND&&(this.logger.info(a.payload),this.flgPaymentSent=!0,this.paymentStatus=a.payload,this.flgEditable=!0),a.type===p.QP.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(a.payload),this.flgInvoiceGenerated=!0,this.sendPayment(a.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,x.Q)(this.unSubs[2]),(0,ot.Z)(0)).subscribe(a=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,ct.of)(a?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,x.Q)(this.unSubs[3]),(0,ot.Z)("")).subscribe(a=>{"string"==typeof a&&(this.filteredActiveChannels=(0,ct.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops?.length:"Select rebalance fee"}i.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const i=this.findUnsettledInvoice();i?(this.flgReusingInvoice=!0,this.sendPayment(i.payment_request||"")):this.store.dispatch((0,N.VK)({payload:{uiMessage:p.MZ.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",value:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:p.It,is_amp:!1,pageSize:p.md,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices?.find(i=>(!i.settle_date||0==+i.settle_date)&&i.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==i.state)}sendPayment(i){if(this.flgInvoiceGenerated=!0,this.paymentRequest=i,"percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0){const o={uiMessage:p.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:Math.ceil((0,p.C6)("fixed",this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0)),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,N.Fd)({payload:o}))}else{const o={uiMessage:p.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:(0,p.C6)(this.feeFormGroup.controls.selFeeLimitType.value.id,this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,N.Fd)({payload:o}))}}filterActiveChannels(){return this.activeChannels?.filter(i=>i.remote_balance&&i.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&i.chan_id!==this.selChannel.chan_id&&(0===i.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===i.chan_id?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const i=this.activeChannels?.filter(o=>o.remote_alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===o.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));i&&i.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(i[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(i){this.animationDirection=i{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(V.gP),e.rXU(G.il),e.rXU(ce.En),e.rXU(g.ze),e.rXU(y.QX),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance"]],viewQuery:function(o,a){if(1&o&&e.GBs(Dl,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(o,a){1&o&&e.DNE(0,nr,105,46,"div",5)(1,ar,1,1,"ng-template",null,0,e.C5r)(3,sr,3,1,"ng-template",null,1,e.C5r)(5,or,19,4,"ng-template",null,2,e.C5r)(7,hr,18,10,"div",6),2&o&&(e.Y8G("ngIf",!a.flgShowInfo),e.R7$(7),e.Y8G("ngIf",a.flgShowInfo))},dependencies:[y.YU,y.Sq,y.bT,y.T3,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.j4,g.JD,ee.aY,ne.tx,$.$z,B.m2,B.MM,he.GK,he.Z2,he.WN,ke.An,Z.fg,R.rl,R.nJ,R.MV,R.TL,R.yw,Te.q,D.HM,b.DJ,b.sA,b.UI,U.PW,O.VO,ae.wT,de.V5,de.Ti,de.M6,De.$3,De.pN,pe.N,Gl,y.Jj,y.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[pt.C]}}))}return t(),s})();function _r(t,s){if(1&t&&(e.j41(0,"div",17)(1,"p",18)(2,"mat-icon",19),e.EFF(3,"close"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.JRh(n.errorMsg)}}function fr(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span"),e.EFF(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle)}}function gr(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span",30)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",31)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function Cr(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function yr(t,s){1&t&&(e.j41(0,"mat-form-field",33)(1,"mat-label"),e.EFF(2,"Default"),e.k0s(),e.nrm(3,"input",34),e.k0s())}function br(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function Fr(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",36,0),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,br,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function xr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function vr(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",38,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,xr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function Tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20),e.DNE(1,fr,4,1,"div",21)(2,gr,16,6,"div",21),e.j41(3,"div",22)(4,"mat-form-field",23)(5,"mat-label"),e.EFF(6,"Transaction Type"),e.k0s(),e.j41(7,"mat-select",24),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSelTransTypeChanged(o))}),e.DNE(8,Cr,2,2,"mat-option",25),e.k0s()(),e.DNE(9,yr,4,0,"mat-form-field",26)(10,Fr,6,4,"mat-form-field",27)(11,vr,6,4,"mat-form-field",27),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channelToClose.active),e.R7$(),e.Y8G("ngIf",n.recommendedFee.minimumFee),e.R7$(5),e.Y8G("disabled",!n.channelToClose.active),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","0"===n.selTransType),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType)}}function kr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(1,"Clear"),e.k0s()}}function Sr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onCloseChannel())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG();e.R7$(),e.JRh(n.channelToClose.active?"Close Channel":"Force Close")}}function Rr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"Ok"),e.k0s()}}let Er=(()=>{var t;class s{constructor(i,o,a,l,h,f){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.actions=h,this.logger=f,this.transTypes=p.XG,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=I.zpE,this.faInfoCircle=I.iW_,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new C.B,new C.B]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(i=>i.type===p.QP.UPDATE_API_CALL_STATUS_LND||i.type===p.QP.SET_CHANNELS_LND)).subscribe(i=>{if(i.type===p.QP.SET_CHANNELS_LND){const o=i.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}i.type===p.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===p.wn.ERROR&&"FetchAllChannels"===i.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+i.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const i={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(i.targetConf=this.blocks),this.fees&&(i.satPerVByte=this.fees),this.store.dispatch((0,N.w0)({payload:i})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onSelTransTypeChanged(i){"2"===i.value&&this.dataService.getRecommendedFeeRates().pipe((0,x.Q)(this.unSubs[1])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(Fe.u),e.rXU(G.il),e.rXU(ce.En),e.rXU(V.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-close-channel"]],standalone:!1,decls:19,vars:7,consts:[["blcks","ngModel"],["clchfee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","48"],[3,"valueChange","selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","48"],["matInput","","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["matInput","","type","number","name","ccfees","required","",3,"ngModelChange","step","min","ngModel"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),e.EFF(5),e.k0s()(),e.j41(6,"button",7),e.bIt("click",function(){return a.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",8)(9,"form",9)(10,"div",10)(11,"p",11),e.EFF(12),e.k0s(),e.DNE(13,_r,5,1,"div",12)(14,Tr,12,8,"div",13),e.k0s(),e.j41(15,"div",14),e.DNE(16,kr,2,0,"button",15)(17,Sr,2,1,"button",16)(18,Rr,2,0,"button",16),e.k0s()()()()()),2&o&&(e.R7$(5),e.JRh(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.R7$(7),e.SpI("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(2),e.Y8G("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs))},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.vS,g.cV,ee.aY,$.$z,B.m2,B.MM,ke.An,Z.fg,R.rl,R.nJ,R.TL,b.DJ,b.sA,b.UI,O.VO,ae.wT,ye.V],encapsulation:2}))}return t(),s})();const Ir=()=>["all"],wr=t=>({"error-border":t}),Lr=()=>["no_channel"],qe=t=>({width:t}),jr=t=>({"display-none":t});function Gr(t,s){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Dr(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function Nr(t,s){1&t&&e.nrm(0,"th",51)}function Pr(t,s){1&t&&e.nrm(0,"span",55)}function Br(t,s){1&t&&e.nrm(0,"span",56)}function Ar(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Pr,1,0,"span",53)(2,Br,1,0,"span",54),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.active),e.R7$(),e.Y8G("ngIf",!n.active)}}function $r(t,s){1&t&&e.nrm(0,"th",57)}function Mr(t,s){if(1&t&&(e.j41(0,"span",60),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Or(t,s){if(1&t&&(e.j41(0,"span",62),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEye)}}function Vr(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Mr,2,1,"span",58)(2,Or,2,1,"span",59),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Yr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Peer"),e.k0s())}function Ur(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_alias)}}function Xr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Pubkey"),e.k0s())}function Hr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_pubkey)}}function qr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel Point"),e.k0s())}function zr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel_point)}}function Jr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel ID"),e.k0s())}function Qr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.chan_id)}}function Wr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Initiator"),e.k0s())}function Zr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.initiator?"Yes":"No")}}function Kr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Static Remote Key"),e.k0s())}function e1(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.static_remote_key?"Yes":"No")}}function t1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function n1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function i1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function a1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function s1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function o1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function l1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Weight"),e.k0s())}function r1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function c1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Fee/KW"),e.k0s())}function p1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function m1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Updates"),e.k0s())}function u1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function h1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function d1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function _1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Capacity (Sats)"),e.k0s())}function f1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function g1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function C1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function y1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function b1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function F1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Sent"),e.k0s())}function x1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_sent)," ")}}function v1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Received"),e.k0s())}function T1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_received)," ")}}function k1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function S1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_balance)," ")}}function R1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function E1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_balance)," ")}}function I1(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Balance Score"),e.k0s())}function w1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",68)(2,"mat-hint",69),e.EFF(3),e.nI1(4,"number"),e.k0s()(),e.nrm(5,"mat-progress-bar",70),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.JRh(e.bMT(4,3,n.balancedness||0)),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function L1(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",71)(1,"div",72)(2,"mat-select",73),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onChannelUpdate("all"))}),e.EFF(5,"Update Fee Policy"),e.k0s(),e.j41(6,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(7,"Download CSV"),e.k0s()()()()}}function j1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onCircularRebalance(o))}),e.EFF(1,"Circular Rebalance"),e.k0s()}}function G1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function D1(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",75)(1,"div",72)(2,"mat-select",76),e.nrm(3,"mat-select-trigger"),e.j41(4,"perfect-scrollbar")(5,"mat-option",74),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(6,"View Info"),e.k0s(),e.j41(7,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onViewRemotePolicy(o))}),e.EFF(8,"View Remote Fee "),e.k0s(),e.j41(9,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelUpdate(o))}),e.EFF(10,"Update Fee Policy"),e.k0s(),e.DNE(11,j1,2,0,"mat-option",77)(12,G1,2,0,"mat-option",77),e.j41(13,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelClose(o))}),e.EFF(14,"Close Channel"),e.k0s()()()()()}if(2&t){const n=e.XpG();e.R7$(11),e.Y8G("ngIf",+n.versionsArr[0]>0||+n.versionsArr[1]>=9),e.R7$(),e.Y8G("ngIf",n.selNode.swapServerUrl)}}function N1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No peers connected. Add a peer in order to open a channel."),e.k0s())}function P1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function B1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function A1(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function $1(t,s){if(1&t&&(e.j41(0,"td",78),e.DNE(1,N1,2,0,"p",79)(2,P1,2,0,"p",79)(3,B1,2,0,"p",79)(4,A1,2,1,"p",79),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.ERROR)}}function M1(t,s){if(1&t&&e.nrm(0,"tr",80),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,jr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function O1(t,s){1&t&&e.nrm(0,"tr",81)}function V1(t,s){1&t&&e.nrm(0,"tr",82)}let Y1=(()=>{var t;class s{constructor(i,o,a,l,h,f,P,w){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=h,this.decimalPipe=f,this.loopService=P,this.camelCaseWithReplace=w,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open",recordsPerPage:p.md,sortBy:"balancedness",sortOrder:p.oi.DESCENDING},this.timeUnit="mins:secs",this.userPersonaEnum=p.HW,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new _.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.versionsArr=[],this.faEye=I.pS3,this.faEyeSlash=I.k6j,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.unshift("active"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.os).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.numPeers=i.peers&&i.peers.length?i.peers.length:0}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[4])).subscribe(i=>{this.totalBalance=i.blockchainBalance?.total_balance?+i.blockchainBalance?.total_balance:0}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(i.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(i){this.store.dispatch((0,N.ij)({payload:{uiMessage:p.MZ.GET_REMOTE_POLICY,channelID:i.chan_id?.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,be.s)(1)).subscribe(o=>{if(!o.fee_base_msat&&!o.fee_rate_milli_msat&&!o.time_lock_delta)return!1;const a=[[{key:"fee_base_msat",value:o.fee_base_msat,title:"Base Fees (mSats)",width:25,type:p.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:p.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:p.UN.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:o.time_lock_delta,title:"Time Lock Delta",width:25,type:p.UN.NUMBER}]],l="Remote policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point);setTimeout(()=>{this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:l,message:a}}}))},0)})}onCircularRebalance(i){this.store.dispatch((0,Y.xO)({payload:{data:{message:{channels:this.channelsData,selChannel:i},component:dr}}}))}onChannelUpdate(i){"all"===i?(this.store.dispatch((0,Y.I1)({payload:{data:{type:p.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:p.UN.NUMBER,inputValue:1e3,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:p.UN.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:p.UN.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,x.Q)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,N.fy)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,N.ij)({payload:{uiMessage:p.MZ.GET_CHAN_POLICY,channelID:i.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,be.s)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,Y.I1)({payload:{data:{type:p.A$.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:p.UN.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:p.UN.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:p.UN.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:p.UN.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:p.UN.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,x.Q)(this.unSubs[7])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:i.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,N.fy)({payload:a}))}})),this.applyFilter()}onChannelClose(i){i.active&&this.store.dispatch((0,N.$Q)()),this.store.dispatch((0,Y.xO)({payload:{data:{channel:i,component:Er}}}))}onChannelClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:rt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.active?"active":"inactive")+(i.chan_id?i.chan_id.toLowerCase():"")+(i.remote_pubkey?i.remote_pubkey.toLowerCase():"")+(i.remote_alias?i.remote_alias.toLowerCase():"")+(i.capacity?i.capacity:"")+(i.local_balance?i.local_balance:"")+(i.remote_balance?i.remote_balance:"")+(i.total_satoshis_sent?i.total_satoshis_sent:"")+(i.total_satoshis_received?i.total_satoshis_received:"")+(i.commit_fee?i.commit_fee:"")+(i.private?"private":"public");break;case"active":a=i?.active?"active":"inactive";break;case"private":a=i?.private?"private":"public";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"active"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadChannelsTable(i){this.channels=new _.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}calculateUptime(i){let f=60,P=1,w=0;switch(i.forEach(M=>{M.uptime&&+M.uptime>w&&(w=+M.uptime)}),!0){case w<3600:this.timeUnit="Mins:Secs",f=60,P=1;break;case w>=3600&&w<86400:this.timeUnit="Hrs:Mins",f=3600,P=60;break;case w>=86400&&w<31536e3:this.timeUnit="Days:Hrs",f=86400,P=3600;break;case w>31536e3:this.timeUnit="Yrs:Days",f=31536e3,P=86400;break;default:this.timeUnit="Mins:Secs",f=60,P=1}return i.forEach(M=>{M.uptime_str=M.uptime?this.decimalPipe.transform(Math.floor(+M.uptime/f),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+M.uptime%f/P),"2.0-0"):"---",M.lifetime_str=M.lifetime?this.decimalPipe.transform(Math.floor(+M.lifetime/f),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+M.lifetime%f/P),"2.0-0"):"---"}),i}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,x.Q)(this.unSubs[8])).subscribe(o=>{this.store.dispatch((0,Y.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:p.C7.LOOP_OUT,component:vt.D}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(i){return(i/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(Pe.L),e.rXU(z.h),e.rXU(Ve.H),e.rXU(y.QX),e.rXU(Tt.Q),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-open-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Channels")}])],decls:96,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","active"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","initiator"],["matColumnDef","static_remote_key"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active"],["mat-cell",""],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot grey","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","grey"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Gr,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,Dr,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Nr,1,0,"th",13)(20,Ar,3,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,$r,1,0,"th",16)(23,Vr,3,2,"td",14),e.bVm(),e.qex(24,17),e.DNE(25,Yr,2,0,"th",18)(26,Ur,4,4,"td",14),e.bVm(),e.qex(27,19),e.DNE(28,Xr,2,0,"th",18)(29,Hr,4,4,"td",14),e.bVm(),e.qex(30,20),e.DNE(31,qr,2,0,"th",18)(32,zr,4,4,"td",14),e.bVm(),e.qex(33,21),e.DNE(34,Jr,2,0,"th",18)(35,Qr,4,4,"td",14),e.bVm(),e.qex(36,22),e.DNE(37,Wr,2,0,"th",18)(38,Zr,2,1,"td",14),e.bVm(),e.qex(39,23),e.DNE(40,Kr,2,0,"th",18)(41,e1,2,1,"td",14),e.bVm(),e.qex(42,24),e.DNE(43,t1,2,1,"th",25)(44,n1,3,1,"td",14),e.bVm(),e.qex(45,26),e.DNE(46,i1,2,1,"th",25)(47,a1,3,1,"td",14),e.bVm(),e.qex(48,27),e.DNE(49,s1,2,0,"th",25)(50,o1,4,3,"td",14),e.bVm(),e.qex(51,28),e.DNE(52,l1,2,0,"th",25)(53,r1,4,3,"td",14),e.bVm(),e.qex(54,29),e.DNE(55,c1,2,0,"th",25)(56,p1,4,3,"td",14),e.bVm(),e.qex(57,30),e.DNE(58,m1,2,0,"th",25)(59,u1,4,3,"td",14),e.bVm(),e.qex(60,31),e.DNE(61,h1,2,0,"th",25)(62,d1,4,3,"td",14),e.bVm(),e.qex(63,32),e.DNE(64,_1,2,0,"th",25)(65,f1,4,3,"td",14),e.bVm(),e.qex(66,33),e.DNE(67,g1,2,0,"th",25)(68,C1,4,3,"td",14),e.bVm(),e.qex(69,34),e.DNE(70,y1,2,0,"th",25)(71,b1,4,3,"td",14),e.bVm(),e.qex(72,35),e.DNE(73,F1,2,0,"th",25)(74,x1,4,3,"td",14),e.bVm(),e.qex(75,36),e.DNE(76,v1,2,0,"th",25)(77,T1,4,3,"td",14),e.bVm(),e.qex(78,37),e.DNE(79,k1,2,0,"th",25)(80,S1,4,3,"td",14),e.bVm(),e.qex(81,38),e.DNE(82,R1,2,0,"th",25)(83,E1,4,3,"td",14),e.bVm(),e.qex(84,39),e.DNE(85,I1,2,0,"th",18)(86,w1,6,5,"td",14),e.bVm(),e.qex(87,40),e.DNE(88,L1,8,0,"th",41)(89,D1,15,2,"td",42),e.bVm(),e.qex(90,43),e.DNE(91,$1,5,4,"td",44),e.bVm(),e.DNE(92,M1,1,3,"tr",45)(93,O1,1,0,"tr",46)(94,V1,1,0,"tr",47),e.k0s()(),e.nrm(95,"mat-paginator",48),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Ir).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,wr,""!==a.errorMessage)),e.R7$(76),e.Y8G("matFooterRowDef",e.lJ4(17,Lr)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,ee.aY,Z.fg,R.rl,R.nJ,R.MV,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,fe.oV,X.iy,K.ZF,K.Ld,y.QX],styles:[".mat-column-active[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return t(),s})();const U1=["outputIdx"];function X1(t,s){if(1&t&&(e.j41(0,"div",31),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3,"Change output balance "),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.EFF(7," (Sats) may be insufficient for fee bumping, depending on the prevailing fee rates."),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(4),e.JRh(e.bMT(6,2,n.dustOutputValue))}}function H1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Index for change output is required."),e.k0s())}function q1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid index value."),e.k0s())}function z1(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function J1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function Q1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",33,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,J1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function W1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function Z1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",34,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,W1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function K1(t,s){if(1&t&&(e.j41(0,"div",35),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(2),e.JRh(n.bumpFeeError)}}let wt=(()=>{var t;class s{set outputIndx(i){i&&(this.outputIdx=i)}constructor(i,o,a,l,h){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=h,this.faUpRightFromSquare=I.k02,this.txid="",this.outputIndex=null,this.transTypes=[...p.XG],this.selTransType="2",this.blocks=null,this.fees=null,this.faCopy=I.jPR,this.faInfoCircle=I.iW_,this.faExclamationTriangle=I.zpE,this.bumpFeeError="",this.flgShowDustWarning=!1,this.dustOutputValue=0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){if(this.transTypes=this.transTypes.splice(1),this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[];this.txid=i[0]||(this.data.pendingChannel.channel&&this.data.pendingChannel.channel.channel_point?this.data.pendingChannel.channel.channel_point:""),this.outputIndex=i[1]&&""!==i[1]&&0==+i[1]?1:0}else this.data.selUTXO&&this.data.selUTXO.outpoint&&(this.txid=this.data.selUTXO.outpoint.txid_str||"",this.outputIndex=this.data.selUTXO.outpoint.output_index||0);this.logger.info(this.txid,this.outputIndex),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.logger.info(this.selNode)}),this.dataService.getRecommendedFeeRates().pipe((0,x.Q)(this.unSubs[1])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.dataService.getBlockExplorerTransaction(this.txid).pipe((0,x.Q)(this.unSubs[2])).subscribe({next:i=>{this.dustOutputValue=i.vout[this.outputIndex].value,this.flgShowDustWarning=this.dustOutputValue<1e3},error:i=>{this.logger.error(i)}})}onBumpFee(){if(this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[],o=i.length>1&&i[1]&&""!==i[1]?+i[1]:null;if(o&&this.outputIndex===o)return this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0}if(!this.outputIndex&&0!==this.outputIndex||"1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;this.dataService.bumpFee(this.txid,this.outputIndex,this.blocks||null,this.fees||null).pipe((0,x.Q)(this.unSubs[3])).subscribe({next:i=>{this.dialogRef.close(!1)},error:i=>{this.logger.error(i),this.bumpFeeError=i.message?i.message:i}})}onExplorerClicked(){window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.txid,"_blank")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(V.gP),e.rXU(Fe.u),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-bump-fee"]],viewQuery:function(o,a){if(1&o&&e.GBs(U1,5),2&o){let l;e.mGM(l=e.lsd())&&(a.outputIndx=l.first)}},standalone:!1,decls:48,vars:20,consts:[["outputIndx","ngModel"],["blcks","ngModel"],["fee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end"],["autoFocus","","matInput","","type","number","required","","name","outputIndx",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","32"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"],["fxFlex","100",1,"alert","alert-warn"],[3,"value"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","fees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e.EFF(5,"Bump Fee"),e.k0s()(),e.j41(6,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",9)(9,"form",10)(10,"div",11)(11,"p",12),e.EFF(12),e.j41(13,"fa-icon",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onExplorerClicked())}),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.nrm(16,"fa-icon",16),e.j41(17,"span",17)(18,"div"),e.EFF(19,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(20,"div"),e.EFF(21),e.k0s(),e.j41(22,"div"),e.EFF(23),e.k0s(),e.j41(24,"div"),e.EFF(25),e.k0s()()(),e.DNE(26,X1,8,4,"div",18),e.j41(27,"div",19)(28,"mat-form-field",20)(29,"mat-label"),e.EFF(30,"Index for Change Output"),e.k0s(),e.j41(31,"input",21,0),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.outputIndex,f)||(a.outputIndex=f),r.Njj(f)}),e.k0s(),e.DNE(33,H1,2,0,"mat-error",22)(34,q1,2,0,"mat-error",22),e.k0s(),e.j41(35,"mat-form-field",23)(36,"mat-label"),e.EFF(37,"Transaction Type"),e.k0s(),e.j41(38,"mat-select",24),e.mxI("valueChange",function(f){return r.eBV(l),e.DH7(a.selTransType,f)||(a.selTransType=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.blocks=null,r.Njj(a.fees=null)}),e.DNE(39,z1,2,2,"mat-option",25),e.k0s()(),e.DNE(40,Q1,6,4,"mat-form-field",26)(41,Z1,6,4,"mat-form-field",26),e.k0s(),e.DNE(42,K1,4,2,"div",27),e.k0s()(),e.j41(43,"div",28)(44,"button",29),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(45,"Clear"),e.k0s(),e.j41(46,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBumpFee())}),e.EFF(47),e.k0s()()()()()()}if(2&o){const l=e.sdS(32);e.R7$(12),e.SpI(" ",a.txid?"Bump fee for transaction ID: "+a.txid:"Bump fee: "," "),e.R7$(),e.Y8G("matTooltip",e.mNQ("Link to "+a.selNode.settings.blockExplorerUrl))("icon",a.faUpRightFromSquare),e.R7$(3),e.Y8G("icon",a.faInfoCircle),e.R7$(5),e.SpI("- High: ",a.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",a.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",a.recommendedFee.hourFee||"Unknown"),e.R7$(),e.Y8G("ngIf",a.flgShowDustWarning),e.R7$(5),e.Y8G("step",1)("min",0),e.R50("ngModel",a.outputIndex),e.R7$(2),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.OutputIndexError),e.R7$(4),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(),e.Y8G("ngIf","1"===a.selTransType),e.R7$(),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf",""!==a.bumpFeeError),e.R7$(5),e.JRh(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.vS,g.cV,ee.aY,$.$z,B.m2,B.MM,Z.fg,R.rl,R.nJ,R.TL,b.DJ,b.sA,b.UI,O.VO,ae.wT,fe.oV,pe.N,ye.V,y.QX],encapsulation:2}))}return t(),s})();const ze=t=>({"error-border bordered-box":t,"bordered-box":!0}),ec=()=>["no_pending_open"],tc=()=>["no_pending_force_closing"],nc=()=>["no_pending_closing"],ic=()=>["no_pending_wait_closing"],Ce=t=>({width:t}),mt=t=>({"display-none":t}),ac=t=>({"py-0":!0,"display-none":t});function sc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function oc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function lc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function rc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function cc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function pc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function mc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function uc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function dc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function _c(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function fc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function gc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Confirmation Height"),e.k0s())}function Cc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.confirmation_height))}}function yc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function bc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_fee))}}function Fc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Weight"),e.k0s())}function xc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_weight))}}function vc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Fee/KW"),e.k0s())}function Tc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_per_kw))}}function kc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Sc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Rc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function Ec(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ic(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function wc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Lc(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function jc(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"div",48)(2,"mat-select",50),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBumpFee(o))}),e.EFF(7,"Bump Fee"),e.k0s()()()()}}function Gc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Dc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Nc(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Pc(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Gc,2,0,"p",53)(2,Dc,2,0,"p",53)(3,Nc,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Bc(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,mt,n.pendingOpenChannels&&(null==n.pendingOpenChannels?null:n.pendingOpenChannels.data)&&(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)>0))}}function Ac(t,s){1&t&&e.nrm(0,"tr",55)}function $c(t,s){1&t&&e.nrm(0,"tr",56)}function Mc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Oc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Vc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Yc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Uc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Xc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Hc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function qc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function zc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function Jc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function Qc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function Wc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Zc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Kc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function ep(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function tp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Maturity Height"),e.k0s())}function np(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.maturity_height))}}function ip(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Blocks till Maturity"),e.k0s())}function ap(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.blocks_til_maturity))}}function sp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Recovered Balance (Sats)"),e.k0s())}function op(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.recovered_balance))}}function lp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function rp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function cp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function pp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function mp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function up(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function hp(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function dp(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",57),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onForceClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function _p(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function fp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function gp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Cp(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,_p,2,0,"p",53)(2,fp,2,0,"p",53)(3,gp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function yp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,mt,n.pendingForceClosingChannels&&(null==n.pendingForceClosingChannels?null:n.pendingForceClosingChannels.data)&&(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)>0))}}function bp(t,s){1&t&&e.nrm(0,"tr",55)}function Fp(t,s){1&t&&e.nrm(0,"tr",56)}function xp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function vp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Tp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function kp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Sp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Rp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Ep(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Ip(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function wp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function Lp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function jp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function Gp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Dp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Np(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Pp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Bp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function Ap(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function $p(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Op(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function Vp(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",58),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Yp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Up(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Xp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Hp(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Yp,2,0,"p",53)(2,Up,2,0,"p",53)(3,Xp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function qp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,mt,n.pendingClosingChannels&&(null==n.pendingClosingChannels?null:n.pendingClosingChannels.data)&&(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)>0))}}function zp(t,s){1&t&&e.nrm(0,"tr",55)}function Jp(t,s){1&t&&e.nrm(0,"tr",56)}function Qp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Wp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Zp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Kp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function em(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function tm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function nm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function im(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function am(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ce,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function sm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function om(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function lm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function rm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function cm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function pm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function mm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function um(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function hm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function dm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function _m(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function fm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function gm(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function Cm(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",59),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onWaitClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function ym(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function bm(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Fm(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function xm(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,ym,2,0,"p",53)(2,bm,2,0,"p",53)(3,Fm,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function vm(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,ac,n.pendingWaitClosingChannels&&(null==n.pendingWaitClosingChannels?null:n.pendingWaitClosingChannels.data)&&(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)>0))}}function Tm(t,s){1&t&&e.nrm(0,"tr",55)}function km(t,s){1&t&&e.nrm(0,"tr",56)}let Sm=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.commonService=a,this.PAGE_ID="peers_channels",this.openTableSetting={tableId:"pending_open",recordsPerPage:p.md,sortBy:"capacity",sortOrder:p.oi.DESCENDING},this.forceClosingTableSetting={tableId:"pending_force_closing",recordsPerPage:p.md,sortBy:"limbo_balance",sortOrder:p.oi.DESCENDING},this.closingTableSetting={tableId:"pending_closing",recordsPerPage:p.md,sortBy:"capacity",sortOrder:p.oi.DESCENDING},this.waitingCloseTableSetting={tableId:"pending_waiting_close",recordsPerPage:p.md,sortBy:"limbo_balance",sortOrder:p.oi.DESCENDING},this.information={},this.pendingChannels={},this.displayedOpenColumns=[],this.pendingOpenChannelsLength=0,this.pendingOpenChannels=new _.I6([]),this.displayedForceClosingColumns=[],this.pendingForceClosingChannelsLength=0,this.pendingForceClosingChannels=new _.I6([]),this.displayedClosingColumns=[],this.pendingClosingChannelsLength=0,this.pendingClosingChannels=new _.I6([]),this.displayedWaitClosingColumns=[],this.pendingWaitClosingChannelsLength=0,this.pendingWaitClosingChannels=new _.I6([]),this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.openTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId),this.displayedOpenColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.openTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.openTableSetting.columnSelection)),this.displayedOpenColumns.push("actions"),this.logger.info(this.displayedOpenColumns),this.forceClosingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId),this.displayedForceClosingColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelection)),this.displayedForceClosingColumns.push("actions"),this.logger.info(this.displayedForceClosingColumns),this.closingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId),this.displayedClosingColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.closingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.closingTableSetting.columnSelection)),this.displayedClosingColumns.push("actions"),this.logger.info(this.displayedClosingColumns),this.waitingCloseTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId),this.displayedWaitClosingColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelection)),this.displayedWaitClosingColumns.push("actions"),this.logger.info(this.displayedWaitClosingColumns)}),this.store.select(E.Uv).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=i.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(i)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(i){const o=JSON.parse(JSON.stringify(i,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:p.UN.STRING,explorerLink:"tx"}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:p.UN.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:p.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:p.UN.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:p.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:p.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:p.UN.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:p.UN.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:p.UN.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:p.UN.NUMBER}]]}}}))}onBumpFee(i){this.store.dispatch((0,Y.xO)({payload:{data:{pendingChannel:i,component:wt}}}))}onForceClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:p.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:p.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:p.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:p.UN.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:p.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:p.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:p.UN.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:p.UN.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:p.UN.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:p.UN.NUMBER}]]}}}))}onClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:p.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:p.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:p.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:p.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:p.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:p.UN.NUMBER}]]}}}))}onWaitClosingClick(i){const o=JSON.parse(JSON.stringify(i,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(i.commitments,["local_txid"],2)),h={};Object.assign(h,o,a,l),this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:h.local_txid,title:"Transaction ID",width:100,type:p.UN.STRING}],[{key:"channel_point",value:h.channel_point,title:"Channel Point",width:100,type:p.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:h.remote_alias,title:"Peer Alias",width:25,type:p.UN.STRING},{key:"remote_node_pub",value:h.remote_node_pub,title:"Peer Node Pubkey",width:75,type:p.UN.STRING}],[{key:"capacity",value:h.capacity,title:"Capacity",width:25,type:p.UN.NUMBER},{key:"limbo_balance",value:h.limbo_balance,title:"Limbo Balance",width:25,type:p.UN.NUMBER},{key:"local_balance",value:h.local_balance,title:"Local Balance",width:25,type:p.UN.NUMBER},{key:"remote_balance",value:h.remote_balance,title:"Remote Balance",width:25,type:p.UN.NUMBER}]]}}}))}loadOpenChannelsTable(i){this.pendingOpenChannelsLength=i.length?i.length:0,this.pendingOpenChannels=new _.I6([...i]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(i){this.pendingForceClosingChannelsLength=i.length?i.length:0,this.pendingForceClosingChannels=new _.I6([...i]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(i){this.pendingClosingChannelsLength=i.length?i.length:0,this.pendingClosingChannels=new _.I6([...i]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(i){this.pendingWaitClosingChannelsLength=i.length?i.length:0,this.pendingWaitClosingChannels=new _.I6([...i]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-pending-table"]],viewQuery:function(o,a){if(1&o&&e.GBs(A.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Channels")}])],decls:202,vars:52,consts:[["table",""],["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_node_pub"],["matColumnDef","channel_point"],["matColumnDef","initiator"],["matColumnDef","commitment_type"],["matColumnDef","confirmation_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","capacity"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","closing_txid"],["matColumnDef","limbo_balance"],["matColumnDef","maturity_height"],["matColumnDef","blocks_til_maturity"],["matColumnDef","recovered_balance"],["matColumnDef","no_pending_force_closing"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-stroked-button","","color","primary","type","button","tabindex","2",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","3",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"span",2),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"mat-accordion",3),e.DNE(5,sc,1,0,"mat-progress-bar",4),e.j41(6,"mat-expansion-panel",5)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),e.EFF(9),e.k0s()(),e.j41(10,"div",6),e.DNE(11,oc,1,0,"mat-progress-bar",4),e.j41(12,"table",7,0),e.qex(14,8),e.DNE(15,lc,2,0,"th",9)(16,rc,4,4,"td",10),e.bVm(),e.qex(17,11),e.DNE(18,cc,2,0,"th",9)(19,pc,4,4,"td",10),e.bVm(),e.qex(20,12),e.DNE(21,mc,2,0,"th",9)(22,uc,4,4,"td",10),e.bVm(),e.qex(23,13),e.DNE(24,hc,2,0,"th",9)(25,dc,3,4,"td",10),e.bVm(),e.qex(26,14),e.DNE(27,_c,2,0,"th",9)(28,fc,3,5,"td",10),e.bVm(),e.qex(29,15),e.DNE(30,gc,2,0,"th",16)(31,Cc,4,3,"td",10),e.bVm(),e.qex(32,17),e.DNE(33,yc,2,0,"th",16)(34,bc,4,3,"td",10),e.bVm(),e.qex(35,18),e.DNE(36,Fc,2,0,"th",16)(37,xc,4,3,"td",10),e.bVm(),e.qex(38,19),e.DNE(39,vc,2,0,"th",16)(40,Tc,4,3,"td",10),e.bVm(),e.qex(41,20),e.DNE(42,kc,2,0,"th",16)(43,Sc,4,3,"td",10),e.bVm(),e.qex(44,21),e.DNE(45,Rc,2,0,"th",16)(46,Ec,4,3,"td",10),e.bVm(),e.qex(47,22),e.DNE(48,Ic,2,0,"th",16)(49,wc,4,3,"td",10),e.bVm(),e.qex(50,23),e.DNE(51,Lc,3,0,"th",24)(52,jc,8,0,"td",25),e.bVm(),e.qex(53,26),e.DNE(54,Pc,4,3,"td",27),e.bVm(),e.DNE(55,Bc,1,3,"tr",28)(56,Ac,1,0,"tr",29)(57,$c,1,0,"tr",30),e.k0s()()(),e.DNE(58,Mc,1,0,"mat-progress-bar",4),e.j41(59,"mat-expansion-panel",5)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),e.EFF(62),e.k0s()(),e.j41(63,"div",6)(64,"table",31,0),e.qex(66,32),e.DNE(67,Oc,2,0,"th",9)(68,Vc,4,4,"td",10),e.bVm(),e.qex(69,8),e.DNE(70,Yc,2,0,"th",9)(71,Uc,4,4,"td",10),e.bVm(),e.qex(72,11),e.DNE(73,Xc,2,0,"th",9)(74,Hc,4,4,"td",10),e.bVm(),e.qex(75,12),e.DNE(76,qc,2,0,"th",9)(77,zc,4,4,"td",10),e.bVm(),e.qex(78,13),e.DNE(79,Jc,2,0,"th",9)(80,Qc,3,4,"td",10),e.bVm(),e.qex(81,14),e.DNE(82,Wc,2,0,"th",9)(83,Zc,3,5,"td",10),e.bVm(),e.qex(84,33),e.DNE(85,Kc,2,0,"th",16)(86,ep,4,3,"td",10),e.bVm(),e.qex(87,34),e.DNE(88,tp,2,0,"th",16)(89,np,4,3,"td",10),e.bVm(),e.qex(90,35),e.DNE(91,ip,2,0,"th",16)(92,ap,4,3,"td",10),e.bVm(),e.qex(93,36),e.DNE(94,sp,2,0,"th",16)(95,op,4,3,"td",10),e.bVm(),e.qex(96,20),e.DNE(97,lp,2,0,"th",16)(98,rp,4,3,"td",10),e.bVm(),e.qex(99,21),e.DNE(100,cp,2,0,"th",16)(101,pp,4,3,"td",10),e.bVm(),e.qex(102,22),e.DNE(103,mp,2,0,"th",16)(104,up,4,3,"td",10),e.bVm(),e.qex(105,23),e.DNE(106,hp,3,0,"th",24)(107,dp,3,0,"td",25),e.bVm(),e.qex(108,37),e.DNE(109,Cp,4,3,"td",27),e.bVm(),e.DNE(110,yp,1,3,"tr",28)(111,bp,1,0,"tr",29)(112,Fp,1,0,"tr",30),e.k0s()()(),e.DNE(113,xp,1,0,"mat-progress-bar",4),e.j41(114,"mat-expansion-panel",5)(115,"mat-expansion-panel-header")(116,"mat-panel-title"),e.EFF(117),e.k0s()(),e.j41(118,"div",6)(119,"table",31,0),e.qex(121,32),e.DNE(122,vp,2,0,"th",9)(123,Tp,4,4,"td",10),e.bVm(),e.qex(124,8),e.DNE(125,kp,2,0,"th",9)(126,Sp,4,4,"td",10),e.bVm(),e.qex(127,11),e.DNE(128,Rp,2,0,"th",9)(129,Ep,4,4,"td",10),e.bVm(),e.qex(130,12),e.DNE(131,Ip,2,0,"th",9)(132,wp,4,4,"td",10),e.bVm(),e.qex(133,13),e.DNE(134,Lp,2,0,"th",9)(135,jp,3,4,"td",10),e.bVm(),e.qex(136,14),e.DNE(137,Gp,2,0,"th",9)(138,Dp,3,5,"td",10),e.bVm(),e.qex(139,20),e.DNE(140,Np,2,0,"th",16)(141,Pp,4,3,"td",10),e.bVm(),e.qex(142,21),e.DNE(143,Bp,2,0,"th",16)(144,Ap,4,3,"td",10),e.bVm(),e.qex(145,22),e.DNE(146,$p,2,0,"th",16)(147,Mp,4,3,"td",10),e.bVm(),e.qex(148,23),e.DNE(149,Op,3,0,"th",24)(150,Vp,3,0,"td",25),e.bVm(),e.qex(151,38),e.DNE(152,Hp,4,3,"td",27),e.bVm(),e.DNE(153,qp,1,3,"tr",28)(154,zp,1,0,"tr",29)(155,Jp,1,0,"tr",30),e.k0s()()(),e.DNE(156,Qp,1,0,"mat-progress-bar",4),e.j41(157,"mat-expansion-panel",5)(158,"mat-expansion-panel-header")(159,"mat-panel-title"),e.EFF(160),e.k0s()(),e.j41(161,"div",6)(162,"table",31,0),e.qex(164,32),e.DNE(165,Wp,2,0,"th",9)(166,Zp,4,4,"td",10),e.bVm(),e.qex(167,8),e.DNE(168,Kp,2,0,"th",9)(169,em,4,4,"td",10),e.bVm(),e.qex(170,11),e.DNE(171,tm,2,0,"th",9)(172,nm,4,4,"td",10),e.bVm(),e.qex(173,12),e.DNE(174,im,2,0,"th",9)(175,am,4,4,"td",10),e.bVm(),e.qex(176,13),e.DNE(177,sm,2,0,"th",9)(178,om,3,4,"td",10),e.bVm(),e.qex(179,14),e.DNE(180,lm,2,0,"th",9)(181,rm,3,5,"td",10),e.bVm(),e.qex(182,33),e.DNE(183,cm,2,0,"th",16)(184,pm,4,3,"td",10),e.bVm(),e.qex(185,20),e.DNE(186,mm,2,0,"th",16)(187,um,4,3,"td",10),e.bVm(),e.qex(188,21),e.DNE(189,hm,2,0,"th",16)(190,dm,4,3,"td",10),e.bVm(),e.qex(191,22),e.DNE(192,_m,2,0,"th",16)(193,fm,4,3,"td",10),e.bVm(),e.qex(194,23),e.DNE(195,gm,3,0,"th",24)(196,Cm,3,0,"td",25),e.bVm(),e.qex(197,39),e.DNE(198,xm,4,3,"td",27),e.bVm(),e.DNE(199,vm,1,3,"tr",28)(200,Tm,1,0,"tr",29)(201,km,1,0,"tr",30),e.k0s()()()()()),2&o&&(e.R7$(2),e.SpI("Total Limbo Balance: ",e.bMT(3,38,a.pendingChannels.total_limbo_balance)," Sats"),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Open (",a.pendingOpenChannelsLength,")"),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.openTableSetting.sortBy)("matSortDirection",a.openTableSetting.sortOrder)("dataSource",a.pendingOpenChannels)("ngClass",e.eq3(40,ze,""!==a.errorMessage)),e.R7$(43),e.Y8G("matFooterRowDef",e.lJ4(42,ec)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedOpenColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedOpenColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.forceClosingTableSetting.sortBy)("matSortDirection",a.forceClosingTableSetting.sortOrder)("dataSource",a.pendingForceClosingChannels)("ngClass",e.eq3(43,ze,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(45,tc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedForceClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedForceClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Closing (",a.pendingClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.closingTableSetting.sortBy)("matSortDirection",a.closingTableSetting.sortOrder)("dataSource",a.pendingClosingChannels)("ngClass",e.eq3(46,ze,""!==a.errorMessage)),e.R7$(34),e.Y8G("matFooterRowDef",e.lJ4(48,nc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.waitingCloseTableSetting.sortBy)("matSortDirection",a.waitingCloseTableSetting.sortOrder)("dataSource",a.pendingWaitClosingChannels)("ngClass",e.eq3(49,ze,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(51,ic)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedWaitClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedWaitClosingColumns))},dependencies:[y.YU,y.bT,y.B3,$.$z,he.BS,he.GK,he.Z2,he.WN,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,K.Ld,y.QX,ue.VD],styles:["tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}))}return t(),s})();const Rm=()=>["all"],Em=t=>({"error-border":t,"overflow-auto":!0}),Im=()=>["no_closed_channel"],Be=t=>({width:t}),wm=t=>({"display-none":t});function Lm(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function jm(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function Gm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Type"),e.k0s())}function Dm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"mat-icon",41),e.EFF(3,"info_outline"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(2),e.Y8G("matTooltip",i.channelClosureType[n.close_type].tooltip),e.R7$(2),e.SpI(" ",i.channelClosureType[n.close_type].name," ")}}function Nm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Peer"),e.k0s())}function Pm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function Bm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Pubkey"),e.k0s())}function Am(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function $m(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel Point"),e.k0s())}function Mm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Om(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel ID"),e.k0s())}function Vm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Ym(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Closing Tx Hash"),e.k0s())}function Um(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.closing_tx_hash)}}function Xm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Chain Hash"),e.k0s())}function Hm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Be,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chain_hash)}}function qm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Open Initiator"),e.k0s())}function zm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.open_initiator,"initiator_"))}}function Jm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Initiator"),e.k0s())}function Qm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.close_initiator,"initiator_"))}}function Wm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Timelocked Balance (Sats)"),e.k0s())}function Zm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.time_locked_balance)," ")}}function Km(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function eu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function tu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Close Height"),e.k0s())}function nu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.close_height)," ")}}function iu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Settled Balance (Sats)"),e.k0s())}function au(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.settled_balance)," ")}}function su(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function ou(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",39)(1,"span",45)(2,"button",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onClosedChannelClick(a,o))}),e.EFF(3,"View Info"),e.k0s()()()}}function lu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No closed channel available."),e.k0s())}function ru(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting closed channels..."),e.k0s())}function cu(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function pu(t,s){if(1&t&&(e.j41(0,"td",51),e.DNE(1,lu,2,0,"p",52)(2,ru,2,0,"p",52)(3,cu,2,1,"p",52),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function mu(t,s){if(1&t&&e.nrm(0,"tr",53),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,wm,(null==n.closedChannels?null:n.closedChannels.data)&&(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)>0))}}function uu(t,s){1&t&&e.nrm(0,"tr",54)}function hu(t,s){1&t&&e.nrm(0,"tr",55)}let du=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.commonService=a,this.camelCaseWithReplace=l,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"closed",recordsPerPage:p.md,sortBy:"close_type",sortOrder:p.oi.DESCENDING},this.channelClosureType=p.tj,this.faHistory=I.Int,this.displayedColumns=[],this.closedChannelsData=[],this.closedChannels=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.Bw).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=i.closedChannels,this.closedChannelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(i)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.closedChannels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"close_type":a=i.close_type&&this.channelClosureType[i.close_type]&&this.channelClosureType[i.close_type].name?this.channelClosureType[i.close_type].name.toLowerCase():"";break;case"open_initiator":case"close_initiator":a=this.camelCaseWithReplace.transform(i[this.selFilterBy]||"","initiator_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"close_type"===this.selFilterBy||"open_initiator"===this.selFilterBy||"close_initiator"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onClosedChannelClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[i.close_type].name,title:"Close Type",width:30,type:p.UN.STRING},{key:"settled_balance",value:i.settled_balance,title:"Settled Balance",width:30,type:p.UN.NUMBER},{key:"time_locked_balance",value:i.time_locked_balance,title:"Time Locked Balance",width:40,type:p.UN.NUMBER}],[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:30},{key:"capacity",value:i.capacity,title:"Capacity",width:30,type:p.UN.NUMBER},{key:"close_height",value:i.close_height,title:"Close Height",width:40,type:p.UN.NUMBER}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:i.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:i.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:p.UN.STRING}]]}}}))}loadClosedChannelsTable(i){this.closedChannels=new _.I6([...i]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(z.h),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-closed-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Channels")}])],decls:66,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","closing_tx_hash"],["matColumnDef","chain_hash"],["matColumnDef","open_initiator"],["matColumnDef","close_initiator"],["matColumnDef","time_locked_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","capacity"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Lm,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,jm,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Gm,2,0,"th",13)(20,Dm,5,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Nm,2,0,"th",13)(23,Pm,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Bm,2,0,"th",13)(26,Am,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,$m,2,0,"th",13)(29,Mm,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Om,2,0,"th",13)(32,Vm,4,4,"td",14),e.bVm(),e.qex(33,19),e.DNE(34,Ym,2,0,"th",13)(35,Um,4,4,"td",14),e.bVm(),e.qex(36,20),e.DNE(37,Xm,2,0,"th",13)(38,Hm,4,4,"td",14),e.bVm(),e.qex(39,21),e.DNE(40,qm,2,0,"th",13)(41,zm,3,4,"td",14),e.bVm(),e.qex(42,22),e.DNE(43,Jm,2,0,"th",13)(44,Qm,3,4,"td",14),e.bVm(),e.qex(45,23),e.DNE(46,Wm,2,0,"th",24)(47,Zm,4,3,"td",14),e.bVm(),e.qex(48,25),e.DNE(49,Km,2,0,"th",24)(50,eu,4,3,"td",14),e.bVm(),e.qex(51,26),e.DNE(52,tu,2,0,"th",24)(53,nu,4,3,"td",14),e.bVm(),e.qex(54,27),e.DNE(55,iu,2,0,"th",24)(56,au,4,3,"td",14),e.bVm(),e.qex(57,28),e.DNE(58,su,6,0,"th",29)(59,ou,4,0,"td",14),e.bVm(),e.qex(60,30),e.DNE(61,pu,4,3,"td",31),e.bVm(),e.DNE(62,mu,1,3,"tr",32)(63,uu,1,0,"tr",33)(64,hu,1,0,"tr",34),e.k0s()(),e.nrm(65,"mat-paginator",35),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Rm).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.closedChannels)("ngClass",e.eq3(15,Em,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(17,Im)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,$.$z,ke.An,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,fe.oV,X.iy,K.ZF,K.Ld,y.QX,ue.VD],encapsulation:2}))}return t(),s})();const _u=()=>["all"],fu=t=>({"error-border":t}),gu=()=>["no_channel"],Cu=t=>({"display-none":t});function yu(t,s){if(1&t&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function bu(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function Fu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Amount (Sats)"),e.k0s())}function xu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.amount)," ")}}function vu(t,s){if(1&t&&(e.qex(0),e.DNE(1,xu,3,3,"span",39),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Tu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,vu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Active HTLCs: ",null==n||null==n.pending_htlcs?null:n.pending_htlcs.length," "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function ku(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Alias/Incoming"),e.k0s())}function Su(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null!=n&&n.incoming?"Yes":"No"," ")}}function Ru(t,s){if(1&t&&(e.qex(0),e.DNE(1,Su,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Eu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Ru,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(null==n?null:n.remote_alias),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Iu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Forwarding Channel"),e.k0s())}function wu(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.forwarding_channel," ")}}function Lu(t,s){if(1&t&&(e.qex(0),e.DNE(1,wu,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function ju(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Lu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Gu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"HTLC Index"),e.k0s()())}function Du(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.htlc_index)," ")}}function Nu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Du,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Pu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Nu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Bu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Forwarding HTLC Index"),e.k0s()())}function Au(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.forwarding_htlc_index)," ")}}function $u(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Au,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Mu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,$u,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Ou(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Expiration Height"),e.k0s()())}function Vu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n?null:n.expiration_height,"1.0-0")," ")}}function Yu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Vu,3,4,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Uu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Yu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Xu(t,s){1&t&&(e.j41(0,"th",43)(1,"span",40),e.EFF(2,"Hash Lock"),e.k0s()())}function Hu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.hash_lock," ")}}function qu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Hu,2,1,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function zu(t,s){if(1&t&&(e.j41(0,"td",44)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,qu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Ju(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Qu(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",53)(1,"button",54),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG();return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function Wu(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,Qu,3,1,"div",52),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Zu(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"span",50)(2,"button",51),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!o.is_expanded)}),e.EFF(3),e.k0s()(),e.DNE(4,Wu,2,1,"div",38),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Ku(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No active htlc available."),e.k0s())}function eh(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting active htlcs..."),e.k0s())}function th(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function nh(t,s){if(1&t&&(e.j41(0,"td",55),e.DNE(1,Ku,2,0,"p",38)(2,eh,2,0,"p",38)(3,th,2,1,"p",38),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function ih(t,s){if(1&t&&e.nrm(0,"tr",56),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Cu,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function ah(t,s){1&t&&e.nrm(0,"tr",57)}function sh(t,s){1&t&&e.nrm(0,"tr",58)}let oh=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"active_HTLCs",recordsPerPage:p.md,sortBy:"expiration_height",sortOrder:p.oi.DESCENDING},this.channels=new _.I6([]),this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=i.channels?.filter(o=>o.pending_htlcs&&o.pending_htlcs.length>0)||[],this.channelsJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.channelsJSONArr.length>0&&this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:p.UN.STRING}],[{key:"amount",value:i.amount,title:"Amount (Sats)",width:50,type:p.UN.NUMBER},{key:"incoming",value:i.incoming?"Yes":"No",title:"Incoming",width:50,type:p.UN.STRING}],[{key:"expiration_height",value:i.expiration_height,title:"Expiration Height",width:50,type:p.UN.NUMBER},{key:"hash_lock",value:i.hash_lock,title:"Hash Lock",width:50,type:p.UN.STRING}]]}}}))}onChannelClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{channel:i,showCopy:!0,component:rt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?(i.remote_alias?i.remote_alias.toLowerCase():"")+i.pending_htlcs?.map(l=>JSON.stringify(l)+(l.incoming?"yes":"no")):typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadHTLCsTable(i){this.channels=new _.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",this.sort?.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data))?.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("HTLCs")}])],decls:48,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","forwarding_channel"],["matColumnDef","htlc_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","forwarding_htlc_index"],["matColumnDef","expiration_height"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayout","column","fxLayoutAlign","center end",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],["fxLayoutAlign","end center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayout","column","fxLayoutAlign","center end",1,"px-2"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,yu,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,bu,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Fu,2,0,"th",13)(20,Tu,4,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,ku,2,0,"th",13)(23,Eu,4,2,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Iu,2,0,"th",13)(26,ju,4,2,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Gu,3,0,"th",18)(29,Pu,4,2,"td",14),e.bVm(),e.qex(30,19),e.DNE(31,Bu,3,0,"th",18)(32,Mu,4,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Ou,3,0,"th",18)(35,Uu,4,2,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Xu,3,0,"th",22)(38,zu,4,2,"td",23),e.bVm(),e.qex(39,24),e.DNE(40,Ju,6,0,"th",25)(41,Zu,5,2,"td",26),e.bVm(),e.qex(42,27),e.DNE(43,nh,4,3,"td",28),e.bVm(),e.DNE(44,ih,1,3,"tr",29)(45,ah,1,0,"tr",30)(46,sh,1,0,"tr",31),e.k0s()(),e.nrm(47,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,_u).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,fu,""!==a.errorMessage)),e.R7$(28),e.Y8G("matFooterRowDef",e.lJ4(17,gu)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,g.me,g.BC,g.vS,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.ZF,K.Ld,y.QX],styles:[".mat-column-amount[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem;padding-right:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-column-actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:7rem}"]}))}return t(),s})();function lh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Wallet password is required."),e.k0s())}let rh=(()=>{var t;class s{constructor(i){this.store=i,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,N.WE)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-unlock-wallet"]],standalone:!1,decls:14,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","name","walletPassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Password"),e.k0s(),e.j41(5,"input",3),e.mxI("ngModelChange",function(h){return e.DH7(a.walletPassword,h)||(a.walletPassword=h),h}),e.k0s(),e.j41(6,"mat-hint"),e.EFF(7,"Enter Wallet Password"),e.k0s(),e.DNE(8,lh,2,0,"mat-error",4),e.k0s(),e.j41(9,"div",5)(10,"button",6),e.bIt("click",function(){return a.resetData()}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",7),e.bIt("click",function(){return a.onUnlockWallet()}),e.EFF(13,"Unlock Wallet"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.walletPassword),e.R7$(3),e.Y8G("ngIf",!a.walletPassword))},dependencies:[y.bT,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,$.$z,Z.fg,R.rl,R.nJ,R.MV,R.TL,b.DJ,b.sA,b.UI,pe.N],encapsulation:2}))}return t(),s})();var ch=S(7768);function ph(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",6),e.EFF(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.k0s(),e.j41(4,"div",7)(5,"button",8),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!1,r.Njj(o.warnRes=!0)}),e.EFF(6,"Do Not Proceed"),e.k0s(),e.j41(7,"button",9),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!0,r.Njj(o.warnRes=!0)}),e.EFF(8,"Proceed"),e.k0s()()()()}}function mh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.k0s(),e.j41(3,"div",7)(4,"button",12),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.warnRes=!1)}),e.EFF(5,"Go Back"),e.k0s()()()}}function uh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function hh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password must be at least 8 characters in length."),e.k0s())}function dh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password is required."),e.k0s())}function _h(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password must be at least 8 characters in length."),e.k0s())}function fh(t,s){1&t&&(e.j41(0,"div",41)(1,"mat-icon",42),e.EFF(2,"cancel"),e.k0s(),e.EFF(3,"Passwords do not match. "),e.k0s())}function gh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Cipher seed is required."),e.k0s())}function Ch(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.k0s())}function yh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Passphrase is required."),e.k0s())}function bh(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"vpn_key"),e.k0s())}function Fh(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"swap_calls"),e.k0s())}function xh(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"fingerprint"),e.k0s())}function vh(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-vertical-stepper",13,0)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",17),e.j41(8,"mat-hint"),e.EFF(9,"Enter Wallet Password"),e.k0s(),e.DNE(10,uh,2,0,"mat-error",2)(11,hh,2,0,"mat-error",2),e.k0s(),e.j41(12,"mat-form-field",16)(13,"mat-label"),e.EFF(14,"Confirm Password"),e.k0s(),e.nrm(15,"input",18),e.j41(16,"mat-hint"),e.EFF(17,"Confirm Wallet Password"),e.k0s(),e.DNE(18,dh,2,0,"mat-error",2)(19,_h,2,0,"mat-error",2),e.k0s(),e.DNE(20,fh,4,0,"div",19),e.j41(21,"div",20)(22,"button",21),e.EFF(23,"Next"),e.k0s()()()(),e.j41(24,"mat-step",22)(25,"form",23)(26,"div",24)(27,"mat-slide-toggle",25),e.EFF(28,"Existing Cipher"),e.k0s(),e.j41(29,"mat-form-field",26)(30,"mat-label"),e.EFF(31,"Comma separated array of 24 words cipher seed"),e.k0s(),e.nrm(32,"input",27),e.j41(33,"mat-hint"),e.EFF(34,"Cipher Seed"),e.k0s(),e.DNE(35,gh,2,0,"mat-error",2)(36,Ch,2,0,"mat-error",2),e.k0s()(),e.j41(37,"div",28)(38,"button",29),e.EFF(39,"Back"),e.k0s(),e.j41(40,"button",30),e.EFF(41,"Next"),e.k0s()()()(),e.j41(42,"mat-step",31)(43,"form",23)(44,"div",24)(45,"mat-slide-toggle",32),e.EFF(46,"Existing Passphrase"),e.k0s(),e.j41(47,"mat-form-field",33)(48,"mat-label"),e.EFF(49,"Passphrase"),e.k0s(),e.nrm(50,"input",34),e.j41(51,"mat-hint"),e.EFF(52,"Enter Passphrase"),e.k0s(),e.DNE(53,yh,2,0,"mat-error",2),e.k0s()(),e.j41(54,"div",28)(55,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(56,"Clear"),e.k0s(),e.j41(57,"button",36),e.EFF(58,"Back"),e.k0s(),e.j41(59,"button",37),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInitWallet())}),e.EFF(60,"Initialize Wallet"),e.k0s()()()(),e.DNE(61,bh,2,0,"ng-template",38)(62,Fh,2,0,"ng-template",39)(63,xh,2,0,"ng-template",40),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",n.passwordFormGroup),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.R7$(),e.Y8G("ngIf",(null==n.passwordFormGroup.errors?null:n.passwordFormGroup.errors.unmatchedPasswords)&&(n.passwordFormGroup.controls.initWalletPassword.touched||n.passwordFormGroup.controls.initWalletPassword.dirty)&&(n.passwordFormGroup.controls.initWalletConfirmPassword.touched||n.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.R7$(4),e.Y8G("stepControl",n.cipherFormGroup),e.R7$(),e.Y8G("formGroup",n.cipherFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.required),e.R7$(),e.Y8G("ngIf",!(null!=n.cipherFormGroup.controls.cipherSeed.errors&&n.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.R7$(6),e.Y8G("stepControl",n.passphraseFormGroup),e.R7$(),e.Y8G("formGroup",n.passphraseFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.passphraseFormGroup.controls.passphrase.errors?null:n.passphraseFormGroup.controls.passphrase.errors.required)}}function Th(t,s){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function kh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",43),e.EFF(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.k0s(),e.j41(4,"div",44),e.DNE(5,Th,2,1,"span",45),e.k0s(),e.j41(6,"div",46),e.EFF(7,"Wallet initialization is done."),e.k0s(),e.j41(8,"div",46),e.EFF(9,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(10,"div",46),e.EFF(11,"Click continue only after writing down the seed."),e.k0s(),e.j41(12,"div",7)(13,"button",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(14,"Go To Home"),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngForOf",n.genSeedResponse)}}function Sh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Something went wrong! Unable to initialize wallet!"),e.k0s(),e.j41(4,"div",7)(5,"button",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(6,"Restart"),e.k0s()()()()}}function Rh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Wallet recovery is done."),e.k0s(),e.j41(4,"div",46),e.EFF(5,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(6,"div",7)(7,"button",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(8,"Go To Home"),e.k0s()()()()}}function Eh(t){const s=t.get("initWalletPassword"),n=t.get("initWalletConfirmPassword");return s&&n&&s.value!==n.value?{unmatchedPasswords:!0}:null}function Ih(t){const s=t.value.toString().trim().split(",")||[];return s&&24!==s.length?{invalidCipher:!0}:null}let wh=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[g.k0.required,g.k0.minLength(8)]],initWalletConfirmPassword:["",[g.k0.required,g.k0.minLength(8)]]},{validators:Eh}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[Ih]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,x.Q)(this.unsubs[0])).subscribe(i=>{i?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,x.Q)(this.unsubs[1])).subscribe(i=>{i?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,x.Q)(this.unsubs[2])).subscribe(i=>{this.initWalletResponse=i}),this.lndEffects.genSeedResponse.pipe((0,x.Q)(this.unsubs[3])).subscribe(i=>{this.genSeedResponse=i,this.store.dispatch((0,N.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const i=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,N.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i}}))}else this.store.dispatch((0,N.oX)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,N.X9)()),this.store.dispatch((0,N.Br)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il),e.rXU(g.ze),e.rXU(Pe.L))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-initialize-wallet"]],viewQuery:function(o,a){if(1&o&&e.GBs(de.M6,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,features:[e.Jv_([{provide:ch.x8,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["stepper",""],["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["labelPosition","before","fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["labelPosition","before","fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,ph,9,0,"div",2)(2,mh,6,0,"div",3)(3,vh,64,15,"mat-vertical-stepper",4)(4,kh,15,1,"div",2)(5,Sh,7,0,"div",2)(6,Rh,9,0,"div",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.insecureLND&&!a.warnRes),e.R7$(),e.Y8G("ngIf",a.warnRes&&!a.proceed),e.R7$(),e.Y8G("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},dependencies:[y.Sq,y.bT,g.qT,g.me,g.BC,g.cb,g.YS,g.cV,g.j4,g.JD,$.$z,ke.An,Z.fg,R.rl,R.nJ,R.MV,R.TL,b.DJ,b.sA,b.UI,Re.sG,de.V5,de.M6,de.F7,de.FR,de.xJ],encapsulation:2}))}return t(),s})(),Lh=(()=>{var t;class s{constructor(){this.faWallet=I.BA1}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-wallet"]],standalone:!1,decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Unlock"],["label","Initialize"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"Wallet"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group",5)(8,"mat-tab",6),e.nrm(9,"rtl-unlock-wallet"),e.k0s(),e.j41(10,"mat-tab",7),e.nrm(11,"rtl-initialize-wallet"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faWallet))},dependencies:[ee.aY,B.RN,B.m2,b.DJ,b.sA,J.mq,J.T8,rh,wh],encapsulation:2}))}return t(),s})();function jh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Gh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faExchangeAlt=I._qq,this.faChartPie=I.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[1]),(0,me.E)(this.store.select(W._c))).subscribe(([o,a])=>{this.currencyUnits=a?.settings.currencyUnits||[],this.balances=a?.settings.userPersona===p.HW.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Lightning Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",7),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"Lightning Transactions"),e.k0s()(),e.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),e.DNE(16,jh,2,4,"div",10),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",11),e.nrm(20,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,st.f,j.n3,le.Wk],encapsulation:2}))}return t(),s})();function Dh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Nh=(()=>{var t;class s{constructor(i){this.router=i,this.faSearch=I.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Graph Lookups"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Dh,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faSearch),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,j.n3,le.Wk],encapsulation:2}))}return t(),s})();const Ph=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),ut=t=>({width:t});function Bh(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Destination pubkey is required."),e.k0s())}function Ah(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function $h(t,s){1&t&&e.nrm(0,"mat-progress-bar",39)}function Mh(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Hop"),e.k0s())}function Oh(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.hop_sequence)}}function Vh(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer"),e.k0s())}function Yh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ut,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pubkey_alias)}}function Uh(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer Pubkey"),e.k0s())}function Xh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ut,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Hh(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Channel ID"),e.k0s())}function qh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ut,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function zh(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"TLV Payload"),e.k0s())}function Jh(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.tlv_payload?"Yes":"No")}}function Qh(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Expiry"),e.k0s())}function Wh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.expiry))}}function Zh(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Kh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.chan_capacity))}}function ed(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Amount To Fwd (Sats)"),e.k0s())}function td(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_to_forward)," ")}}function nd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Fee (mSats)"),e.k0s())}function id(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.fee_msat)," ")}}function ad(t,s){1&t&&(e.j41(0,"th",46)(1,"div",47),e.EFF(2,"Actions"),e.k0s()())}function sd(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onHopClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function od(t,s){1&t&&e.nrm(0,"tr",50)}function ld(t,s){1&t&&e.nrm(0,"tr",51)}let rd=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.colWidth="20rem",this.PAGE_ID="graph_lookup",this.tableSetting={tableId:"query_routes",recordsPerPage:p.md,sortBy:"hop_sequence",sortOrder:p.oi.ASCENDING},this.destinationPubkey="",this.amount=null,this.qrHops=new _.I6([]),this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=I.TBz,this.faExclamationTriangle=I.zpE,this.screenSize="",this.screenSizeEnum=p.f7,this.unSubs=[new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.lndEffects.setQueryRoutes.pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.qrHops=new _.I6([]),i.routes&&i.routes.length&&i.routes.length>0&&i.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new _.I6([...i.routes[0].hops]),this.qrHops.data=i.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new _.I6([]),this.flgLoading[0]=!0,this.store.dispatch((0,N.T4)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:i.hop_sequence,title:"Sequence",width:33,type:p.UN.NUMBER},{key:"amt_to_forward",value:i.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:p.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:34,type:p.UN.NUMBER}],[{key:"chan_capacity",value:i.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:p.UN.NUMBER},{key:"expiry",value:i.expiry,title:"Expiry",width:50,type:p.UN.NUMBER}],[{key:"pubkey_alias",value:i.pubkey_alias,title:"Peer Alias",width:50,type:p.UN.STRING},{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:p.UN.STRING}],[{key:"pub_key",value:i.pub_key,title:"Peer Pubkey",width:100,type:p.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(Pe.L),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-query-routes"]],viewQuery:function(o,a){if(1&o&&e.GBs(A.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,decls:64,vars:17,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table",""],["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","destinationPubkey","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["matColumnDef","pub_key"],["matColumnDef","chan_id"],["matColumnDef","tlv_payload"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","chan_capacity"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"form",4,0),e.bIt("ngSubmit",function(){r.eBV(l);const f=e.sdS(2);return r.Njj(f.form.valid&&a.onQueryRoutes())}),e.j41(3,"div",5),e.nrm(4,"fa-icon",6),e.j41(5,"span"),e.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.k0s()(),e.j41(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Destination Pubkey"),e.k0s(),e.j41(10,"input",8,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.destinationPubkey,f)||(a.destinationPubkey=f),r.Njj(f)}),e.k0s(),e.DNE(12,Bh,2,0,"mat-error",9),e.k0s(),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"Amount (Sats)"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.amount,f)||(a.amount=f),r.Njj(f)}),e.k0s(),e.DNE(17,Ah,2,0,"mat-error",9),e.k0s(),e.j41(18,"div",12)(19,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(20,"Clear"),e.k0s(),e.j41(21,"button",14),e.EFF(22,"Query Route"),e.k0s()()(),e.j41(23,"div",15)(24,"div",16),e.nrm(25,"fa-icon",17),e.j41(26,"span",18),e.EFF(27,"Transaction Route"),e.k0s()()(),e.j41(28,"div",19),e.DNE(29,$h,1,0,"mat-progress-bar",20),e.j41(30,"table",21,2),e.qex(32,22),e.DNE(33,Mh,2,0,"th",23)(34,Oh,2,1,"td",24),e.bVm(),e.qex(35,25),e.DNE(36,Vh,2,0,"th",23)(37,Yh,4,4,"td",24),e.bVm(),e.qex(38,26),e.DNE(39,Uh,2,0,"th",23)(40,Xh,4,4,"td",24),e.bVm(),e.qex(41,27),e.DNE(42,Hh,2,0,"th",23)(43,qh,4,4,"td",24),e.bVm(),e.qex(44,28),e.DNE(45,zh,2,0,"th",23)(46,Jh,2,1,"td",24),e.bVm(),e.qex(47,29),e.DNE(48,Qh,2,0,"th",30)(49,Wh,4,3,"td",24),e.bVm(),e.qex(50,31),e.DNE(51,Zh,2,0,"th",30)(52,Kh,4,3,"td",24),e.bVm(),e.qex(53,32),e.DNE(54,ed,2,0,"th",30)(55,td,4,3,"td",24),e.bVm(),e.qex(56,33),e.DNE(57,nd,2,0,"th",30)(58,id,4,3,"td",24),e.bVm(),e.qex(59,34),e.DNE(60,ad,3,0,"th",35)(61,sd,3,0,"td",36),e.bVm(),e.DNE(62,od,1,0,"tr",37)(63,ld,1,0,"tr",38),e.k0s()()()}2&o&&(e.R7$(4),e.Y8G("icon",a.faExclamationTriangle),e.R7$(6),e.R50("ngModel",a.destinationPubkey),e.R7$(2),e.Y8G("ngIf",!a.destinationPubkey),e.R7$(4),e.Y8G("step",1e3)("min",0),e.R50("ngModel",a.amount),e.R7$(),e.Y8G("ngIf",!a.amount),e.R7$(8),e.Y8G("icon",a.faRoute),e.R7$(4),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.qrHops)("ngClass",e.eq3(15,Ph,"error"===a.flgLoading[0])),e.R7$(32),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns))},dependencies:[y.YU,y.bT,y.B3,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.vS,g.cV,ee.aY,$.$z,Z.fg,R.rl,R.nJ,R.TL,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.KS,_.$R,_.YZ,_.NB,K.Ld,ye.V,y.QX],encapsulation:2}))}return t(),s})();var Ae=S(5951);function cd(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1"),e.k0s())}function pd(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1 (Your Node)"),e.k0s())}function md(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2"),e.k0s())}function ud(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2 (Your Node)"),e.k0s())}function hd(t,s){if(1&t&&(e.j41(0,"div",1),e.nrm(1,"mat-divider",2),e.j41(2,"div",3)(3,"div",4)(4,"h4",5),e.EFF(5,"Channel ID"),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s()(),e.j41(8,"div",7)(9,"h4",5),e.EFF(10,"Channel Point"),e.k0s(),e.j41(11,"span",6),e.EFF(12),e.k0s()()(),e.nrm(13,"mat-divider",8),e.j41(14,"div",3)(15,"div",4)(16,"h4",5),e.EFF(17,"Last Update"),e.k0s(),e.j41(18,"span",6),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div",7)(22,"h4",5),e.EFF(23,"Capacity (Sats)"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()()(),e.nrm(27,"mat-divider",8),e.j41(28,"div",9)(29,"div",10)(30,"div",11),e.DNE(31,cd,2,0,"h3",12)(32,pd,2,0,"h3",12),e.k0s(),e.nrm(33,"mat-divider",8),e.j41(34,"div",13)(35,"h4",5),e.EFF(36,"Pubkey"),e.k0s(),e.j41(37,"span",6),e.EFF(38),e.k0s()(),e.nrm(39,"mat-divider",8),e.j41(40,"div",14)(41,"h4",5),e.EFF(42,"Time Lock Delta"),e.k0s(),e.j41(43,"span",6),e.EFF(44),e.k0s()(),e.nrm(45,"mat-divider",8),e.j41(46,"div",14)(47,"h4",5),e.EFF(48,"Min HTLC"),e.k0s(),e.j41(49,"span",6),e.EFF(50),e.k0s()(),e.nrm(51,"mat-divider",8),e.j41(52,"div",14)(53,"h4",5),e.EFF(54,"Max HTLC"),e.k0s(),e.j41(55,"span",6),e.EFF(56),e.k0s()(),e.nrm(57,"mat-divider",8),e.j41(58,"div",14)(59,"h4",5),e.EFF(60,"Fee Base Msat"),e.k0s(),e.j41(61,"span",6),e.EFF(62),e.k0s()(),e.nrm(63,"mat-divider",8),e.j41(64,"div",14)(65,"h4",5),e.EFF(66,"Fee Rate Milli Msat"),e.k0s(),e.j41(67,"span",6),e.EFF(68),e.k0s()(),e.nrm(69,"mat-divider",8),e.j41(70,"div",14)(71,"h4",5),e.EFF(72,"Disabled"),e.k0s(),e.j41(73,"span",6),e.EFF(74),e.k0s()()(),e.j41(75,"div",10)(76,"div"),e.DNE(77,md,2,0,"h3",12)(78,ud,2,0,"h3",12),e.k0s(),e.nrm(79,"mat-divider",8),e.j41(80,"div",13)(81,"h4",5),e.EFF(82,"Pubkey"),e.k0s(),e.j41(83,"span",6),e.EFF(84),e.k0s()(),e.nrm(85,"mat-divider",8),e.j41(86,"div",14)(87,"h4",5),e.EFF(88,"Time Lock Delta"),e.k0s(),e.j41(89,"span",6),e.EFF(90),e.k0s()(),e.nrm(91,"mat-divider",8),e.j41(92,"div",14)(93,"h4",5),e.EFF(94,"Min HTLC"),e.k0s(),e.j41(95,"span",6),e.EFF(96),e.k0s()(),e.nrm(97,"mat-divider",8),e.j41(98,"div",14)(99,"h4",5),e.EFF(100,"Max HTLC"),e.k0s(),e.j41(101,"span",6),e.EFF(102),e.k0s()(),e.nrm(103,"mat-divider",8),e.j41(104,"div",14)(105,"h4",5),e.EFF(106,"Fee Base Msat"),e.k0s(),e.j41(107,"span",6),e.EFF(108),e.k0s()(),e.nrm(109,"mat-divider",8),e.j41(110,"div",14)(111,"h4",5),e.EFF(112,"Fee Rate Milli Msat"),e.k0s(),e.j41(113,"span",6),e.EFF(114),e.k0s()(),e.nrm(115,"mat-divider",8),e.j41(116,"div",14)(117,"h4",5),e.EFF(118,"Disabled"),e.k0s(),e.j41(119,"span",6),e.EFF(120),e.k0s()()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.channel_id),e.R7$(5),e.JRh(n.lookupResult.chan_point),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(20,39,1e3*n.lookupResult.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(26,42,n.lookupResult.capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(4),e.Y8G("ngIf",!n.node1_match),e.R7$(),e.Y8G("ngIf",n.node1_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node1_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node1_policy&&n.lookupResult.node1_policy.disabled?"Yes":"No"),e.R7$(3),e.Y8G("ngIf",!n.node2_match),e.R7$(),e.Y8G("ngIf",n.node2_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node2_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node2_policy&&n.lookupResult.node2_policy.disabled?"Yes":"No")}}let dd=(()=>{var t;class s{constructor(i){this.store=i,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.lookupResult.node1_pub===i.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===i.identity_pubkey&&(this.node2_match=!0)})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(o,a){1&o&&e.DNE(0,hd,121,44,"div",0),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[y.bT,Te.q,b.DJ,b.sA,b.UI,y.QX,y.vh],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}))}return t(),s})();const _d=t=>({"background-color":t});function fd(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i.nodeFeaturesEnum[n.value.name]||n.value.name,": ",n.value.is_required?"Mandatory":"Optional")}}function gd(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Network"),e.k0s())}function Cd(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.network)}}function yd(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Address"),e.k0s())}function bd(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.addr)}}function Fd(t,s){1&t&&(e.j41(0,"th",29)(1,"div",30),e.EFF(2,"Actions"),e.k0s()())}function xd(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",31)(1,"div",32)(2,"mat-select",33),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",34),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onConnectNode(o))}),e.EFF(5,"Connect"),e.k0s(),e.j41(6,"mat-option",35),e.bIt("copied",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onCopyNodeURI(o))}),e.EFF(7,"Copy URI"),e.k0s()()()()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(6),e.Y8G("payload",i.lookupResult.node.pub_key+"@"+n.addr)}}function vd(t,s){1&t&&e.nrm(0,"tr",36)}function Td(t,s){1&t&&e.nrm(0,"tr",37)}function kd(t,s){if(1&t&&(e.j41(0,"div",2),e.nrm(1,"mat-divider",3),e.j41(2,"div",4)(3,"div",5)(4,"h4",6),e.EFF(5,"Alias"),e.k0s(),e.j41(6,"span",7),e.EFF(7),e.j41(8,"span",8),e.EFF(9),e.k0s()()(),e.j41(10,"div",9)(11,"h4",6),e.EFF(12,"Pub Key"),e.k0s(),e.j41(13,"span",10),e.EFF(14),e.k0s()()(),e.nrm(15,"mat-divider",11),e.j41(16,"div",4)(17,"div",5)(18,"h4",6),e.EFF(19,"Last Update"),e.k0s(),e.j41(20,"span",7),e.EFF(21),e.nI1(22,"date"),e.k0s()(),e.j41(23,"div",9)(24,"h4",6),e.EFF(25,"Total Capacity (Sats)"),e.k0s(),e.j41(26,"span",7),e.EFF(27),e.nI1(28,"number"),e.k0s()()(),e.nrm(29,"mat-divider",11),e.j41(30,"div",4)(31,"div",5)(32,"h4",6),e.EFF(33,"Number of Channels"),e.k0s(),e.j41(34,"span",7),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div",12)(38,"h4",6),e.EFF(39,"Features"),e.k0s(),e.DNE(40,fd,2,2,"span",13),e.nI1(41,"keyvalue"),e.k0s()(),e.nrm(42,"mat-divider",11),e.j41(43,"div",14)(44,"h4",15),e.EFF(45,"Addresses"),e.k0s(),e.j41(46,"div",16)(47,"table",17,0),e.qex(49,18),e.DNE(50,gd,2,0,"th",19)(51,Cd,2,1,"td",20),e.bVm(),e.qex(52,21),e.DNE(53,yd,2,0,"th",19)(54,bd,2,1,"td",20),e.bVm(),e.qex(55,22),e.DNE(56,Fd,3,0,"th",23)(57,xd,8,1,"td",24),e.bVm(),e.DNE(58,vd,1,0,"tr",25)(59,Td,1,0,"tr",26),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.node.alias),e.R7$(),e.Y8G("ngStyle",e.eq3(24,_d,null==n.lookupResult.node?null:n.lookupResult.node.color)),e.R7$(),e.JRh(null==n.lookupResult.node?null:n.lookupResult.node.color),e.R7$(5),e.JRh(n.lookupResult.node.pub_key),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(22,15,1e3*n.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(28,18,n.lookupResult.total_capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(36,20,n.lookupResult.num_channels)),e.R7$(5),e.Y8G("ngForOf",e.bMT(41,22,n.lookupResult.node.features)),e.R7$(2),e.Y8G("inset",!0),e.R7$(5),e.Y8G("dataSource",n.lookupResult.node.addresses),e.R7$(11),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}let Sd=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.snackBar=o,this.store=a,this.nodeFeaturesEnum=p._U,this.displayedColumns=["network","addr","actions"],this.information={},this.availableBalance=0,this.unSubs=[new C.B,new C.B,new C.B]}ngOnInit(){this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0})}onCopyNodeURI(i){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+i)}onConnectNode(i){this.store.dispatch((0,Y.xO)({payload:{data:{message:{peer:{pub_key:this.lookupResult.node?.pub_key,address:i.addr},information:this.information,balance:this.availableBalance},component:It}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(we.UG),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&e.DNE(0,kd,60,26,"div",1),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[y.Sq,y.bT,y.B3,Te.q,b.DJ,b.sA,b.UI,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.KS,_.$R,_.YZ,_.NB,K.Ld,He.U,y.QX,y.vh,y.lG],encapsulation:2}))}return t(),s})();const Rd=t=>({"mt-1":!0,"mt-2":t}),Ed=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function Id(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function wd(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Ld(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function jd(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,Ld,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,Ed,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function Gd(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-node-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Dd(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-channel-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Nd(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function Pd(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,Gd,2,1,"span",25)(6,Dd,2,1,"span",25)(7,Nd,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let Lt=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=I.MjD,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKey=window.history.state.lookupValue||""),this.actions.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(i=>i.type===p.QP.SET_LOOKUP_LND||i.type===p.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===p.QP.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&i.payload.hasOwnProperty("node")||1===this.selectedFieldId&&i.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!i.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!i.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),i.type===p.QP.UPDATE_API_CALL_STATUS_LND&&"Lookup"===i.payload.action&&(this.errorMessage="",i.payload.status===p.wn.ERROR&&(this.errorMessage="object"==typeof i.payload.message?JSON.stringify(i.payload.message):i.payload.message),i.payload.status===p.wn.INITIATED&&(this.errorMessage=p.MZ.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,N.zU)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,N.ij)({payload:{uiMessage:p.MZ.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(ce.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookups"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selectedFieldId,f)||(a.selectedFieldId=f),r.Njj(f)}),e.bIt("change",function(f){return r.eBV(l),r.Njj(a.onSelectChange(f))}),e.DNE(7,Id,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.lookupKey,f)||(a.lookupKey=f),r.Njj(f)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,wd,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,jd,3,5,"div",15)(20,Pd,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,Rd,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[y.YU,y.Sq,y.bT,y.ux,y.e1,y.fG,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,$.$z,B.m2,Z.fg,R.rl,R.nJ,R.TL,D.HM,Ae.VT,Ae._g,b.DJ,b.sA,b.UI,U.PW,dd,Sd],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return t(),s})();var ht=S(5084);function Bd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function Ad(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function $d(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Md=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faMapSigns=I.knH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B,new C.B]}ngOnInit(){this.onEventsFetch();const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,N.kv)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,N.uK)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,N.kv)({payload:{forwarding_events:[]}})),this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing"]],standalone:!1,decls:41,vars:16,consts:[["routingForm","ngForm"],["strtDate","ngModel"],["startDatepicker",""],["enDate","ngModel"],["endDatepicker",""],["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","name","startDate","tabindex","1",3,"ngModelChange","matDatepicker","max","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],[4,"ngIf"],["matInput","","name","endDate","tabindex","2",3,"ngModelChange","matDatepicker","min","max","ngModel"],["fxLayout","row",1,""],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","5","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["tabindex","5","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",6)(1,"div",7),e.nrm(2,"fa-icon",8),e.j41(3,"span",9),e.EFF(4,"Routing"),e.k0s()(),e.j41(5,"div",10)(6,"mat-card",11)(7,"mat-card-content",12)(8,"form",13,0),e.bIt("ngSubmit",function(){return r.eBV(l),r.Njj(a.onEventsFetch())}),e.j41(10,"div",14)(11,"mat-form-field",15)(12,"mat-label"),e.EFF(13,"Start Date"),e.k0s(),e.j41(14,"input",16,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.startDate,f)||(a.startDate=f),r.Njj(f)}),e.k0s(),e.nrm(16,"mat-datepicker-toggle",17)(17,"mat-datepicker",18,2),e.DNE(19,Bd,2,0,"mat-error",19),e.k0s(),e.j41(20,"mat-form-field",15)(21,"mat-label"),e.EFF(22,"End Date"),e.k0s(),e.j41(23,"input",20,3),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.endDate,f)||(a.endDate=f),r.Njj(f)}),e.k0s(),e.nrm(25,"mat-datepicker-toggle",17)(26,"mat-datepicker",18,4),e.DNE(28,Ad,2,0,"mat-error",19),e.k0s()(),e.j41(29,"div",21)(30,"button",22),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(31,"Clear"),e.k0s(),e.j41(32,"button",23),e.EFF(33,"Fetch Events"),e.k0s()()(),e.j41(34,"div",24)(35,"nav",25),e.DNE(36,$d,2,4,"div",26),e.k0s(),e.nrm(37,"mat-tab-nav-panel",null,5),e.k0s(),e.j41(39,"div",27),e.nrm(40,"router-outlet"),e.k0s()()()()()}if(2&o){const l=e.sdS(15),h=e.sdS(18),f=e.sdS(24),P=e.sdS(27),w=e.sdS(38);e.R7$(2),e.Y8G("icon",a.faMapSigns),e.R7$(12),e.Y8G("matDatepicker",h)("max",a.today),e.R50("ngModel",a.startDate),e.R7$(2),e.Y8G("for",h),e.R7$(),e.Y8G("startAt",a.startDate),e.R7$(2),e.Y8G("ngIf",l.errors),e.R7$(4),e.Y8G("matDatepicker",P)("min",a.startDate)("max",a.today),e.R50("ngModel",a.endDate),e.R7$(2),e.Y8G("for",P),e.R7$(),e.Y8G("startAt",a.endDate),e.R7$(2),e.Y8G("ngIf",f.errors),e.R7$(7),e.Y8G("tabPanel",w),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,y.bT,g.qT,g.me,g.BC,g.cb,g.vS,g.cV,ee.aY,$.$z,B.RN,B.m2,ht.Vh,ht.bZ,ht.bU,Z.fg,R.rl,R.nJ,R.TL,R.yw,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,Rt.z,ye.V,j.n3,le.Wk],encapsulation:2}))}return t(),s})();const Od=()=>["all"],Vd=()=>["no_event"],Je=t=>({width:t}),Yd=t=>({"display-none":t});function Ud(t,s){if(1&t&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function Xd(t,s){if(1&t&&(e.j41(0,"mat-option",14),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Hd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7),e.nrm(1,"div",8),e.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",11),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Xd,2,2,"mat-option",12),e.k0s()()(),e.j41(9,"mat-form-field",10)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",13),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(6),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,Od).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function qd(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function zd(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Timestamp"),e.k0s())}function Jd(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.timestamp,"dd/MMM/y HH:mm"))}}function Qd(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Alias"),e.k0s())}function Wd(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Je,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_in)}}function Zd(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Channel"),e.k0s())}function Kd(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Je,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_in)}}function e_(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Alias"),e.k0s())}function t_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Je,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_out)}}function n_(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Channel"),e.k0s())}function i_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Je,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_out)}}function a_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Inbound Amount (Sats)"),e.k0s())}function s_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_in))}}function o_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Outbound Amount (Sats)"),e.k0s())}function l_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_out))}}function r_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Fee (mSats)"),e.k0s())}function c_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_msat))}}function p_(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",44)(1,"div",45)(2,"mat-select",46),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function m_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onForwardingEventClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function u_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No forwarding history available."),e.k0s())}function h_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting forwarding history..."),e.k0s())}function d_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function __(t,s){if(1&t&&(e.j41(0,"td",50),e.DNE(1,u_,2,0,"p",51)(2,h_,2,0,"p",51)(3,d_,2,1,"p",51),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function f_(t,s){if(1&t&&e.nrm(0,"tr",52),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Yd,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function g_(t,s){1&t&&e.nrm(0,"tr",53)}function C_(t,s){1&t&&e.nrm(0,"tr",54)}function y_(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,qd,1,0,"mat-progress-bar",16),e.j41(2,"table",17,0),e.qex(4,18),e.DNE(5,zd,2,0,"th",19)(6,Jd,3,4,"td",20),e.bVm(),e.qex(7,21),e.DNE(8,Qd,2,0,"th",19)(9,Wd,4,4,"td",20),e.bVm(),e.qex(10,22),e.DNE(11,Zd,2,0,"th",19)(12,Kd,4,4,"td",20),e.bVm(),e.qex(13,23),e.DNE(14,e_,2,0,"th",19)(15,t_,4,4,"td",20),e.bVm(),e.qex(16,24),e.DNE(17,n_,2,0,"th",19)(18,i_,4,4,"td",20),e.bVm(),e.qex(19,25),e.DNE(20,a_,2,0,"th",26)(21,s_,4,3,"td",20),e.bVm(),e.qex(22,27),e.DNE(23,o_,2,0,"th",26)(24,l_,4,3,"td",20),e.bVm(),e.qex(25,28),e.DNE(26,r_,2,0,"th",26)(27,c_,4,3,"td",20),e.bVm(),e.qex(28,29),e.DNE(29,p_,6,0,"th",30)(30,m_,3,0,"td",31),e.bVm(),e.qex(31,32),e.DNE(32,__,4,3,"td",33),e.bVm(),e.DNE(33,f_,1,3,"tr",34)(34,g_,1,0,"tr",35)(35,C_,1,0,"tr",36),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(7,Vd)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function b_(t,s){if(1&t&&e.nrm(0,"mat-paginator",55),2&t){const n=e.XpG();e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let jt=(()=>{var t;class s{constructor(i,o,a,l,h){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=h,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:p.md,sortBy:"timestamp",sortOrder:p.oi.DESCENDING},this.forwardingHistoryData=[],this.displayedColumns=[],this.forwardingHistoryEvents=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:p.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,i.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),i.selFilter&&!i.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=i.pageSettings.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.Ie).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=i.forwardingHistory.forwarding_events||[],this.forwardingHistoryData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory))})}ngAfterViewInit(){setTimeout(()=>{this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)},0)}onForwardingEventClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:i.timestamp,title:"Timestamp",width:25,type:p.UN.DATE_TIME},{key:"amt_in",value:i.amt_in,title:"Inbound Amount (Sats)",width:25,type:p.UN.NUMBER},{key:"amt_out",value:i.amt_out,title:"Outbound Amount (Sats)",width:25,type:p.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:25,type:p.UN.NUMBER}],[{key:"alias_in",value:i.alias_in,title:"Inbound Peer Alias",width:25,type:p.UN.STRING},{key:"chan_id_in",value:i.chan_id_in,title:"Inbound Channel ID",width:25,type:p.UN.STRING},{key:"alias_out",value:i.alias_out,title:"Outbound Peer Alias",width:25,type:p.UN.STRING},{key:"chan_id_out",value:i.chan_id_out,title:"Outbound Channel ID",width:25,type:p.UN.STRING}]]}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(i){const o=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.timestamp?this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"timestamp":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadForwardingEventsTable(i){this.forwardingHistoryEvents=new _.I6(i?[...i]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(y.vh),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-forwarding-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Events")}]),e.OA$],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","chan_id_in"],["matColumnDef","alias_out"],["matColumnDef","chan_id_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,Ud,2,1,"div",2)(2,Hd,13,4,"div",3)(3,y_,36,8,"div",4)(4,b_,1,3,"mat-paginator",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.ZF,K.Ld,y.QX,y.vh],encapsulation:2}))}return t(),s})();const F_=["tableIn"],x_=["tableOut"],v_=["paginatorIn"],T_=["paginatorOut"],k_=(t,s)=>({"mt-2":t,"mt-1":s}),S_=()=>["no_incoming_event"],R_=t=>({"mt-2":t}),E_=()=>["no_outgoing_event"],Qe=t=>({width:t}),Gt=t=>({"display-none":t});function I_(t,s){if(1&t&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function w_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function L_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function j_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function G_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function D_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function N_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function P_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function B_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function A_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function $_(t,s){1&t&&(e.j41(0,"th",41)(1,"div",42),e.EFF(2,"Actions"),e.k0s()())}function M_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",43)(1,"button",44),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onRoutingPeerClick(a,o,"in"))}),e.EFF(2,"View Info"),e.k0s()()}}function O_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No incoming routing peer available."),e.k0s())}function V_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting incoming routing peers..."),e.k0s())}function Y_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function U_(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,O_,2,0,"p",46)(2,V_,2,0,"p",46)(3,Y_,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function X_(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Gt,(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function H_(t,s){1&t&&e.nrm(0,"tr",48)}function q_(t,s){1&t&&e.nrm(0,"tr",49)}function z_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function J_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function Q_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function W_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function Z_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Qe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function K_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function e0(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function t0(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function n0(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function i0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No outgoing routing peer available."),e.k0s())}function a0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting outgoing routing peers..."),e.k0s())}function s0(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function o0(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,i0,2,0,"p",46)(2,a0,2,0,"p",46)(3,s0,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function l0(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Gt,(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function r0(t,s){1&t&&e.nrm(0,"tr",48)}function c0(t,s){1&t&&e.nrm(0,"tr",49)}function p0(t,s){if(1&t&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),e.EFF(4,"Incoming"),e.k0s(),e.nrm(5,"div",12),e.k0s(),e.j41(6,"div",13),e.DNE(7,w_,1,0,"mat-progress-bar",14),e.j41(8,"table",15,0),e.qex(10,16),e.DNE(11,L_,2,0,"th",17)(12,j_,4,4,"td",18),e.bVm(),e.qex(13,19),e.DNE(14,G_,2,0,"th",17)(15,D_,4,4,"td",18),e.bVm(),e.qex(16,20),e.DNE(17,N_,2,0,"th",21)(18,P_,4,3,"td",18),e.bVm(),e.qex(19,22),e.DNE(20,B_,2,0,"th",21)(21,A_,4,3,"td",18),e.bVm(),e.qex(22,23),e.DNE(23,$_,3,0,"th",24)(24,M_,3,0,"td",25),e.bVm(),e.qex(25,26),e.DNE(26,U_,4,3,"td",27),e.bVm(),e.DNE(27,X_,1,3,"tr",28)(28,H_,1,0,"tr",29)(29,q_,1,0,"tr",30),e.k0s()(),e.nrm(30,"mat-paginator",31,1),e.k0s(),e.j41(32,"div",9)(33,"div",10)(34,"div",11),e.EFF(35,"Outgoing"),e.k0s(),e.nrm(36,"div",12),e.k0s(),e.j41(37,"div",13),e.DNE(38,z_,1,0,"mat-progress-bar",14),e.j41(39,"table",32,2),e.qex(41,16),e.DNE(42,J_,2,0,"th",17)(43,Q_,4,4,"td",18),e.bVm(),e.qex(44,19),e.DNE(45,W_,2,0,"th",17)(46,Z_,4,4,"td",18),e.bVm(),e.qex(47,20),e.DNE(48,K_,2,0,"th",21)(49,e0,4,3,"td",18),e.bVm(),e.qex(50,22),e.DNE(51,t0,2,0,"th",21)(52,n0,4,3,"td",18),e.bVm(),e.qex(53,33),e.DNE(54,o0,4,3,"td",27),e.bVm(),e.DNE(55,l0,1,3,"tr",28)(56,r0,1,0,"tr",29)(57,c0,1,0,"tr",30),e.k0s()(),e.nrm(58,"mat-paginator",31,3),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(18,k_,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersIncoming),e.R7$(19),e.Y8G("matFooterRowDef",e.lJ4(21,S_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),e.R7$(3),e.Y8G("ngClass",e.eq3(22,R_,n.screenSize!==n.screenSizeEnum.LG)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersOutgoing),e.R7$(16),e.Y8G("matFooterRowDef",e.lJ4(24,E_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let m0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=p._1,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:p.md,sortBy:"total_amount",sortOrder:p.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new _.I6([]),this.routingPeersOutgoing=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.Ie).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(i,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:p.UN.STRING},{key:"alias",value:i.alias,title:"Peer Alias",width:50,type:p.UN.STRING}],[{key:"events",value:i.events,title:"Events",width:50,type:p.UN.NUMBER},{key:"total_amount",value:i.total_amount,title:"Total Amount (Sats)",width:50,type:p.UN.NUMBER}]]}}}))}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterByIn?JSON.stringify(i).toLowerCase():"string"==typeof i[this.selFilterByIn]?i[this.selFilterByIn].toLowerCase():"boolean"==typeof i[this.selFilterByIn]?i[this.selFilterByIn]?"yes":"no":i[this.selFilterByIn].toString(),a.includes(o)},this.routingPeersOutgoing.filterPredicate=(i,o)=>{let a="";switch(this.selFilterByOut){case"all":a=JSON.stringify(i).toLowerCase();break;case"total_amount":case"total_fee":a=(+(i[this.selFilterByOut]||0)/1e3).toString()||"";break;default:a="string"==typeof i[this.selFilterByOut]?i[this.selFilterByOut].toLowerCase():"boolean"==typeof i[this.selFilterByOut]?i[this.selFilterByOut]?"yes":"no":i[this.selFilterByOut].toString()}return a.includes(o)}}loadRoutingPeersTable(i){if(i.length>0){const o=this.groupRoutingPeers(i);this.routingPeersIncoming=new _.I6(o[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||p.oi.DESCENDING,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new _.I6(o[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||p.oi.DESCENDING,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new _.I6([]),this.routingPeersOutgoing=new _.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(i){const o=[],a=[];return i.forEach(l=>{const h=o.find(P=>P.chan_id===l.chan_id_in),f=a.find(P=>P.chan_id===l.chan_id_out);h?(h.events++,h.total_amount=+h.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),f?(f.events++,f.total_amount=+f.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(F_,5,A.B4),e.GBs(x_,5,A.B4),e.GBs(v_,5),e.GBs(T_,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sortIn=l.first),e.mGM(l=e.lsd())&&(a.sortOut=l.first),e.mGM(l=e.lsd())&&(a.paginatorIn=l.first),e.mGM(l=e.lsd())&&(a.paginatorOut=l.first)}},standalone:!1,features:[e.Jv_([{provide:X.xX,useValue:(0,p.on)("Routing peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["matColumnDef","no_outgoing_event"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,I_,2,1,"div",5)(2,p0,60,25,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[y.YU,y.bT,y.B3,$.$z,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.Ld,y.QX],encapsulation:2}))}return t(),s})();function u0(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let h0=(()=>{var t;class s{constructor(i){this.router=i,this.faChartBar=I.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Reports"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,u0,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),e.k0s()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faChartBar),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,J.Bu,J.hQ,J.Ql,j.n3,le.Wk],encapsulation:2}))}return t(),s})();var Dt=S(1993),Nt=S(4655);const d0=t=>({"error-border":t});function _0(t,s){1&t&&e.nrm(0,"mat-progress-bar",17)}function f0(t,s){if(1&t&&(e.j41(0,"div",18),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.events.total_fee_msat),e.R7$(),e.Lme("",e.i5U(2,3,n.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.bMT(3,6,(null==n.events||null==n.events.forwarding_events?null:n.events.forwarding_events.length)||0)," Events")}}function g0(t,s){1&t&&(e.j41(0,"div",19),e.EFF(1,"No routing report for the selected period"),e.k0s())}function C0(t,s){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,d0,"Getting Forwarding History..."!==n.errorMessage&&""!==n.errorMessage)),e.R7$(),e.JRh(n.errorMessage)}}function y0(t,s){if(1&t&&(e.j41(0,"span")(1,"span",22),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"span",22),e.EFF(5),e.nI1(6,"number"),e.k0s()()),2&t){const n=s.model,i=e.XpG(2);e.R7$(2),e.SpI("Events: ",e.bMT(3,2,(i.selReportBy===i.reportBy.EVENTS?n.value:n.extra.totalEvents)||0)),e.R7$(3),e.SpI("Fee: ",e.i5U(6,4,(i.selReportBy===i.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"))}}function b0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical",21),e.bIt("select",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,y0,7,7,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function F0(t,s){if(1&t&&e.nrm(0,"rtl-forwarding-history",23),2&t){const n=e.XpG();e.Y8G("eventsData",null==n.events?null:n.events.forwarding_events)("selFilter",n.eventFilterValue)}}let x0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=p.rs[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=p.aR,this.selReportBy=p.aR.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.unSubs=[new C.B,new C.B,new C.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===p.f7.XS||this.screenSize===p.f7.SM),this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{i.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{switch(this.screenSize){case p.f7.MD:this.screenPaddingX=i.width/10;break;case p.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(i,o){this.errorMessage=p.MZ.GET_FORWARDING_HISTORY;const a=Math.round(i.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,x.Q)(this.unSubs[2])).subscribe({next:h=>{this.errorMessage="",h.forwarding_events&&h.forwarding_events.length?(h.forwarding_events=h.forwarding_events.reverse(),this.events=h,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(i):this.prepareFeeReport(i)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:h=>{this.errorMessage=h}})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(i){this.eventFilterValue=this.reportPeriod===p.rs[1]?i.name+"/"+this.startDate.getFullYear():i.name.toString().padStart(2,"0")+"/"+p.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===p.rs[1]){for(let l=0;l<12;l++)a.push({name:p.KR[l].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events?.map(l=>{const h=new Date(1e3*+(l.timestamp||0)).getMonth();return a[h].value=a[h].value+ +(l.fee_msat||0)/1e3,a[h].extra.totalEvents=a[h].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const h=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[h].value=a[h].value+ +(l.fee_msat||0)/1e3,a[h].extra.totalEvents=a[h].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}prepareEventsReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===p.rs[1]){for(let l=0;l<12;l++)a.push({name:p.KR[l].name,value:0,extra:{totalFees:0}});this.events.forwarding_events?.map(l=>{const h=new Date(1e3*+(l.timestamp||0)).getMonth();return a[h].value=a[h].value+1,a[h].extra.totalFees=a[h].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const h=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[h].value=a[h].value+1,a[h].extra.totalFees=a[h].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===p.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?p.KR[i].days+1:p.KR[i].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(Fe.u),e.rXU(z.h),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(h){return a.onChartMouseUp(h)})},standalone:!1,decls:20,vars:11,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),e.bIt("stepChanged",function(h){return a.onSelectionChange(h)}),e.k0s(),e.j41(2,"div",3)(3,"mat-radio-group",4),e.mxI("ngModelChange",function(h){return e.DH7(a.selReportBy,h)||(a.selReportBy=h),h}),e.bIt("change",function(){return a.onSelReportByChange()}),e.j41(4,"span",5),e.EFF(5,"Report By: "),e.k0s(),e.j41(6,"mat-radio-button",6),e.EFF(7,"Fees"),e.k0s(),e.j41(8,"mat-radio-button",7),e.EFF(9,"Events"),e.k0s()()(),e.DNE(10,_0,1,0,"mat-progress-bar",8),e.j41(11,"div",9),e.DNE(12,f0,4,8,"div",10)(13,g0,2,0,"div",11)(14,C0,2,4,"div",12),e.j41(15,"div",13),e.DNE(16,b0,3,11,"ngx-charts-bar-vertical",14),e.k0s()(),e.j41(17,"div",15)(18,"div",13),e.DNE(19,F0,1,2,"rtl-forwarding-history",16),e.k0s()()()),2&o&&(e.R7$(3),e.R50("ngModel",a.selReportBy),e.R7$(3),e.Y8G("value",e.mNQ(a.reportBy.FEES)),e.R7$(2),e.Y8G("value",e.mNQ(a.reportBy.EVENTS)),e.R7$(2),e.Y8G("ngIf","Getting Forwarding History..."===a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(),e.Y8G("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(3),e.Y8G("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},dependencies:[y.YU,y.bT,g.BC,g.vS,D.HM,Ae.VT,Ae._g,b.DJ,b.sA,b.UI,U.PW,Dt.L8,Nt.m,jt,y.QX],encapsulation:2,data:{animation:[pt.q]}}))}return t(),s})();var v0=S(9584),T0=S(5085);function k0(t,s){1&t&&(e.j41(0,"div",12),e.nrm(1,"mat-progress-bar",13),e.j41(2,"span"),e.EFF(3,"Getting transactions data..."),e.k0s()())}function S0(t,s){if(1&t&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function R0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Paid ",e.i5U(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function E0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Received ",e.i5U(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function I0(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,R0,4,7,"div",16)(2,E0,4,7,"div",16),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.transactionsReportSummary),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod>0),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function w0(t,s){1&t&&(e.j41(0,"div",18),e.EFF(1,"No transactions report for the selected period"),e.k0s())}function L0(t,s){if(1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=s.model;e.R7$(),e.LHq("",n.name,": ",e.i5U(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",e.bMT(3,7,(null==n.extra?null:n.extra.total)||0))}}function j0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical-2d",20),e.bIt("select",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,L0,4,9,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG(2);e.Y8G("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function G0(t,s){if(1&t&&(e.j41(0,"div",10),e.DNE(1,j0,3,13,"ngx-charts-bar-vertical-2d",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.transactionsReportData.length>0&&n.transactionsNonZeroReportData.length>0)}}function D0(t,s){if(1&t&&e.nrm(0,"rtl-transactions-report-table",22),2&t){const n=e.XpG();e.Y8G("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let N0=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.scrollRanges=p.rs,this.reportPeriod=p.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:p.md,sortBy:"date",sortOrder:p.oi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===p.f7.XS||this.screenSize===p.f7.SM),this.store.select(v0.av).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.n_).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{i.apiCallStatus.status===p.wn.UN_INITIATED&&this.store.dispatch((0,N.tG)()),this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=i.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=i.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(i)}),this.commonService.containerSizeUpdated.pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{switch(this.screenSize){case p.f7.MD:this.screenPaddingX=i.width/10;break;case p.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(i){this.transactionFilterValue=this.reportPeriod===p.rs[1]?i.series+"/"+this.startDate.getFullYear():i.series.toString().padStart(2,"0")+"/"+p.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(i,o){const a=Math.round(i.getTime()/1e3),l=Math.round(o.getTime()/1e3),h=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const f=this.payments?.filter(w=>"SUCCEEDED"===w.status&&w.creation_date&&w.creation_date>=a&&w.creation_datew.settled&&w.creation_date&&+w.creation_date>=a&&+w.creation_date{const M=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),h[M].series[0].value=h[M].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,h[M].series[0].extra.total=h[M].series[0].extra.total+1,this.transactionsReportSummary}),P?.map(w=>{const M=new Date(1e3*+(w.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),h[M].series[1].value=h[M].series[1].value+ +(w.amt_paid_msat||0)/1e3,h[M].series[1].extra.total=h[M].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let w=0;w{const M=Math.floor((+(w.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(w.value_msat||0)+ +(w.fee_msat||0),h[M].series[0].value=h[M].series[0].value+(+(w.value_msat||0)+ +(w.fee_msat||0))/1e3,h[M].series[0].extra.total=h[M].series[0].extra.total+1,this.transactionsReportSummary}),P?.map(w=>{const M=Math.floor((+(w.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(w.amt_paid_msat||0),h[M].series[1].value=h[M].series[1].value+ +(w.amt_paid_msat||0)/1e3,h[M].series[1].extra.total=h[M].series[1].extra.total+1,this.transactionsReportSummary})}return h}prepareTableData(){return this.transactionsReportData?.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===p.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?p.KR[i].days+1:p.KR[i].days}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(h){return a.onChartMouseUp(h)})},standalone:!1,decls:11,vars:6,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"rtl-horizontal-scroller",4),e.bIt("stepChanged",function(h){return a.onSelectionChange(h)}),e.k0s(),e.DNE(4,k0,4,0,"div",5)(5,S0,2,1,"div",6)(6,I0,3,3,"div",7)(7,w0,2,0,"div",8)(8,G0,2,1,"div",9),e.j41(9,"div",10),e.DNE(10,D0,1,5,"rtl-transactions-report-table",11),e.k0s()()()()),2&o&&(e.R7$(4),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(2),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},dependencies:[y.bT,D.HM,b.DJ,b.sA,b.UI,Dt.Dl,Nt.m,T0.T,y.QX],encapsulation:2,data:{animation:[pt.q]}}))}return t(),s})();const P0=["form"];function B0(t,s){if(1&t&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"span"),e.EFF(3,'Bump fee option will be disabled for unconfirmed UTXOs where label text includes "sweep" in its value.'),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle)}}function A0(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"UTXO Label is required."),e.k0s())}function $0(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.labelError)}}function M0(t,s){if(1&t&&(e.j41(0,"div",19),e.nrm(1,"fa-icon",18),e.DNE(2,$0,2,1,"span",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.labelError)}}let O0=(()=>{var t;class s{constructor(i,o,a,l,h,f){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.snackBar=h,this.commonService=f,this.faExclamationTriangle=I.zpE,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,x.Q)(this.unSubs[0])).subscribe({next:i=>{this.store.dispatch((0,N.mh)()),this.store.dispatch((0,N.SM)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:i=>{this.labelError=i}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(Fe.u),e.rXU(G.il),e.rXU(we.UG),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(o,a){if(1&o&&e.GBs(P0,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:24,vars:7,consts:[["form","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","100"],["autoFocus","","matInput","","name","label","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Label UTXO"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onLabelUTXO())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.DNE(11,B0,4,1,"div",9),e.nI1(12,"lowercase"),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"UTXO Label"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.label,f)||(a.label=f),r.Njj(f)}),e.k0s(),e.DNE(17,A0,2,0,"mat-error",12),e.k0s(),e.DNE(18,M0,3,2,"div",13),e.j41(19,"div",14)(20,"button",15),e.EFF(21,"Clear"),e.k0s(),e.j41(22,"button",16),e.EFF(23,"Label UTXO"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(5),e.Y8G("ngIf",e.bMT(12,5,a.label).includes("sweep")&&"0"===a.utxo.confirmations),e.R7$(5),e.R50("ngModel",a.label),e.R7$(),e.Y8G("ngIf",!a.label),e.R7$(),e.Y8G("ngIf",""!==a.labelError))},dependencies:[y.bT,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,ee.aY,ne.tx,$.$z,B.m2,B.MM,Z.fg,R.rl,R.nJ,R.TL,b.DJ,b.sA,b.UI,pe.N,y.GH],encapsulation:2}))}return t(),s})();const Pt=()=>["all"],V0=t=>({"error-border":t}),Y0=()=>["no_utxo"],dt=t=>({width:t}),U0=t=>({"display-none":t});function X0(t,s){if(1&t&&(e.j41(0,"mat-option",34),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function H0(t,s){1&t&&e.nrm(0,"mat-progress-bar",35)}function q0(t,s){1&t&&e.nrm(0,"th",36)}function z0(t,s){1&t&&(e.j41(0,"span",39)(1,"mat-icon",40),e.EFF(2,"warning"),e.k0s()())}function J0(t,s){if(1&t&&(e.j41(0,"td",37),e.DNE(1,z0,3,0,"span",38),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(),o=e.sdS(52);e.R7$(),e.Y8G("ngIf",n.amount_sat0))}}function yf(t,s){1&t&&e.nrm(0,"tr",57)}function bf(t,s){1&t&&e.nrm(0,"tr",58)}function Ff(t,s){1&t&&e.nrm(0,"mat-icon",40)}let xf=(()=>{var t;class s{constructor(i,o,a,l,h,f,P,w){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=h,this.decimalPipe=f,this.camelCaseWithReplace=P,this.snackBar=w,this.isDustUTXO=!1,this.dustAmount=1e3,this.faMoneyBillWave=I.ymQ,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"utxos",recordsPerPage:p.md,sortBy:"tx_id",sortOrder:p.oi.DESCENDING},this.addressType=p.aG,this.displayedColumns=[],this.listUTXOs=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}ngOnInit(){this.tableSetting.tableId=this.isDustUTXO?"dust_utxos":"utxos",this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.ah).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.utxos&&i.utxos.length>0&&(this.dustUtxos=i.utxos?.filter(o=>+(o.amount_sat||0)0&&this.dustUtxos.length>0&&!this.isDustUTXO&&this.displayedColumns.unshift("is_dust"),this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(i)})}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):"is_dust"===i?"Dust":this.commonService.titleCase(i)}setFilterPredicate(){this.listUTXOs.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.label?i.label.toLowerCase():"")+(i.outpoint?.txid_str?i.outpoint.txid_str.toLowerCase():"")+(i.outpoint?.output_index?i.outpoint?.output_index:"")+(i.outpoint?.txid_bytes?i.outpoint?.txid_bytes.toLowerCase():"")+(i.address?i.address.toLowerCase():"")+(i.address_type?this.addressType[i.address_type].name.toLowerCase():"")+(i.amount_sat?i.amount_sat:"")+(i.confirmations?i.confirmations:"");break;case"is_dust":a=+(i?.amount_sat||0)"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_dust"===this.selFilterBy||"address_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onUTXOClick(i){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:i.outpoint?.txid_str,title:"Transaction ID",width:100,type:p.UN.STRING,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:p.UN.STRING}],[{key:"output_index",value:i.outpoint?.output_index,title:"Output Index",width:34,type:p.UN.NUMBER},{key:"amount_sat",value:i.amount_sat,title:"Amount (Sats)",width:33,type:p.UN.NUMBER},{key:"confirmations",value:i.confirmations,title:"Confirmations",width:33,type:p.UN.NUMBER}],[{key:"address_type",value:i.address_type?this.addressType[i.address_type].name:"",title:"Address Type",width:34},{key:"address",value:i.address,title:"Address",width:66}],[{key:"pk_script",value:i.pk_script,title:"PK Script",width:100,type:p.UN.STRING}]]}}}))}loadUTXOsTable(i){this.listUTXOs=new _.I6([...i]),this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"is_dust":return+(o.amount_sat||0){a&&this.dataService.leaseUTXO(i.outpoint?.txid_bytes||"",i.outpoint?.output_index||0).pipe((0,x.Q)(this.unSubs[0])).subscribe({next:l=>{this.snackBar.open("The UTXO has been leased till "+new Date(l).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:l=>{this.snackBar.open(l+" UTXO not leased.","",{panelClass:"rtl-warn-snack-bar"})}})})}onBumpFee(i){this.store.dispatch((0,Y.xO)({payload:{data:{selUTXO:i,component:wt}}}))}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(Fe.u),e.rXU(G.il),e.rXU(Ve.H),e.rXU(y.QX),e.rXU(ue.VD),e.rXU(we.UG))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{isDustUTXO:"isDustUTXO",dustAmount:"dustAmount"},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("UTXOs")}]),e.OA$],decls:53,vars:19,consts:[["table",""],["emptySpace",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","is_dust"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","label"],["matColumnDef","address_type"],["matColumnDef","address"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust"],["mat-cell",""],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row","fxLayoutAlign","start center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-form-field",5)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",6),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,X0,2,2,"mat-option",7),e.k0s()()(),e.j41(9,"mat-form-field",5)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",8),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",9)(14,"div",10),e.DNE(15,H0,1,0,"mat-progress-bar",11),e.j41(16,"table",12,0),e.qex(18,13),e.DNE(19,q0,1,0,"th",14)(20,J0,2,2,"td",15),e.bVm(),e.qex(21,16),e.DNE(22,Q0,2,0,"th",17)(23,W0,4,4,"td",15),e.bVm(),e.qex(24,18),e.DNE(25,Z0,2,0,"th",19)(26,K0,3,1,"td",15),e.bVm(),e.qex(27,20),e.DNE(28,ef,2,0,"th",17)(29,tf,4,4,"td",15),e.bVm(),e.qex(30,21),e.DNE(31,nf,2,0,"th",17)(32,af,3,1,"td",15),e.bVm(),e.qex(33,22),e.DNE(34,sf,2,0,"th",17)(35,of,4,4,"td",15),e.bVm(),e.qex(36,23),e.DNE(37,lf,2,0,"th",19)(38,rf,4,3,"td",15),e.bVm(),e.qex(39,24),e.DNE(40,cf,2,0,"th",19)(41,pf,4,3,"td",15),e.bVm(),e.qex(42,25),e.DNE(43,mf,6,0,"th",26)(44,hf,12,3,"td",27),e.bVm(),e.qex(45,28),e.DNE(46,gf,4,3,"td",29),e.bVm(),e.DNE(47,Cf,1,3,"tr",30)(48,yf,1,0,"tr",31)(49,bf,1,0,"tr",32),e.k0s(),e.nrm(50,"mat-paginator",33),e.k0s()()(),e.DNE(51,Ff,1,0,"ng-template",null,1,e.C5r)}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",a.utxos&&a.utxos.length>0&&a.dustUtxos&&a.dustUtxos.length>0&&!a.isDustUTXO?e.lJ4(14,Pt).concat(a.displayedColumns.slice(0,-1)):e.lJ4(15,Pt).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listUTXOs)("ngClass",e.eq3(16,V0,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(18,Y0)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,ke.An,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,fe.oV,X.iy,K.ZF,K.Ld,y.GH,y.QX],styles:[".mat-column-is_dust[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();const vf=()=>["all"],Tf=t=>({"error-border":t}),kf=()=>["no_transaction"],_t=t=>({width:t}),Sf=t=>({"display-none":t});function Rf(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Ef(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function If(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Date/Time"),e.k0s())}function wf(t,s){if(1&t&&(e.j41(0,"td",35),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.time_stamp,"dd/MMM/y HH:mm"))}}function Lf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Label"),e.k0s())}function jf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,_t,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.label)}}function Gf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Block Hash"),e.k0s())}function Df(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,_t,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.block_hash)}}function Nf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Transaction Hash"),e.k0s())}function Pf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,_t,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.tx_hash)}}function Bf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Amount (Sats)"),e.k0s())}function Af(t,s){if(1&t&&(e.j41(0,"span",41),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,n.amount))}}function $f(t,s){if(1&t&&(e.j41(0,"span",42),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,-1*n.amount),")")}}function Mf(t,s){if(1&t&&(e.j41(0,"td",35),e.DNE(1,Af,3,3,"span",39)(2,$f,3,3,"span",40),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.amount>0||0===n.amount),e.R7$(),e.Y8G("ngIf",n.amount<0)}}function Of(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Fees (Sats)"),e.k0s())}function Vf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_fees))}}function Yf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Block Height"),e.k0s())}function Uf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.block_height))}}function Xf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Confirmations"),e.k0s())}function Hf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==n?null:n.num_confirmations)," ")}}function qf(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",43)(1,"div",44)(2,"mat-select",45),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",46),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function zf(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",47)(1,"button",48),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onTransactionClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Jf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No transaction available."),e.k0s())}function Qf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting transactions..."),e.k0s())}function Wf(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Zf(t,s){if(1&t&&(e.j41(0,"td",49),e.DNE(1,Jf,2,0,"p",50)(2,Qf,2,0,"p",50)(3,Wf,2,1,"p",50),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Kf(t,s){if(1&t&&e.nrm(0,"tr",51),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Sf,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function e2(t,s){1&t&&e.nrm(0,"tr",52)}function t2(t,s){1&t&&e.nrm(0,"tr",53)}let n2=(()=>{var t;class s{constructor(i,o,a,l,h){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=h,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transactions",recordsPerPage:p.md,sortBy:"time_stamp",sortOrder:p.oi.DESCENDING},this.faHistory=I.Int,this.displayedColumns=[],this.listTransactions=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.gN).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.transactions&&i.transactions.length>0&&(this.transactions=i.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(i)})}onTransactionClick(i){this.store.dispatch((0,Y.xO)({payload:{data:{type:p.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:i.block_hash,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"tx_hash",value:i.tx_hash,title:"Transaction Hash",width:100,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:p.UN.STRING}],[{key:"time_stamp",value:i.time_stamp,title:"Date/Time",width:50,type:p.UN.DATE_TIME},{key:"block_height",value:i.block_height,title:"Block Height",width:50,type:p.UN.NUMBER}],[{key:"num_confirmations",value:i.num_confirmations,title:"Number of Confirmations",width:34,type:p.UN.NUMBER},{key:"total_fees",value:i.total_fees,title:"Total Fees (Sats)",width:33,type:p.UN.NUMBER},{key:"amount",value:i.amount,title:"Amount (Sats)",width:33,type:p.UN.NUMBER}],[{key:"dest_addresses",value:i.dest_addresses,title:"Destination Addresses",width:100,type:p.UN.ARRAY}]],scrollable:i.dest_addresses&&i.dest_addresses.length>5}}}))}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.listTransactions.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.time_stamp?this.datePipe.transform(new Date(1e3*i.time_stamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"time_stamp":a=this.datePipe.transform(new Date(1e3*(i?.time_stamp||0)),"dd/MMM/YYYY HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadTransactionsTable(i){this.listTransactions=new _.I6([...i]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(y.vh),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Transactions")}]),e.OA$],decls:51,vars:18,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","block_hash"],["matColumnDef","tx_hash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",5),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilterBy,f)||(a.selFilterBy=f),r.Njj(f)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Rf,2,2,"mat-option",6),e.k0s()()(),e.j41(9,"mat-form-field",4)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",7),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",8)(14,"div",9),e.DNE(15,Ef,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,If,2,0,"th",13)(20,wf,3,4,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Lf,2,0,"th",13)(23,jf,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Gf,2,0,"th",13)(26,Df,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Nf,2,0,"th",13)(29,Pf,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Bf,2,0,"th",19)(32,Mf,3,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Of,2,0,"th",19)(35,Vf,4,3,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Yf,2,0,"th",19)(38,Uf,4,3,"td",14),e.bVm(),e.qex(39,22),e.DNE(40,Xf,2,0,"th",19)(41,Hf,4,3,"td",14),e.bVm(),e.qex(42,23),e.DNE(43,qf,6,0,"th",24)(44,zf,3,0,"td",25),e.bVm(),e.qex(45,26),e.DNE(46,Zf,4,3,"td",27),e.bVm(),e.DNE(47,Kf,1,3,"tr",28)(48,e2,1,0,"tr",29)(49,t2,1,0,"tr",30),e.k0s(),e.nrm(50,"mat-paginator",31),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,vf).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",e.eq3(15,Tf,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(17,kf)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.ZF,K.Ld,y.QX,y.vh],encapsulation:2}))}return t(),s})();function i2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numUtxos))}}function a2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Transactions"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numTransactions))}}function s2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Dust UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numDustUtxos))}}let o2=(()=>{var t;class s{constructor(i,o){this.logger=i,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.bkB,this.DUST_AMOUNT=1e3,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new C.B,new C.B,new C.B]}ngOnInit(){this.store.dispatch((0,N.mh)()),this.store.dispatch((0,N.SM)()),this.store.select(E.ah).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{i.utxos&&i.utxos.length>0&&(this.numUtxos=i.utxos.length,this.numDustUtxos=i.utxos?.filter(o=>o.amount_sat&&+o.amount_sat{i.transactions&&i.transactions.length>0&&(this.numTransactions=i.transactions.length),this.logger.info(i)})}onSelectedIndexChanged(i){this.selectedTableIndexChange.emit(i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},standalone:!1,decls:11,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO","dustAmount"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-tab-group",1),e.bIt("selectedIndexChange",function(h){return a.onSelectedIndexChanged(h)}),e.j41(2,"mat-tab"),e.DNE(3,i2,2,2,"ng-template",2),e.nrm(4,"rtl-on-chain-utxos",3),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,a2,2,2,"ng-template",2),e.nrm(7,"rtl-on-chain-transaction-history",4),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,s2,2,2,"ng-template",2),e.nrm(10,"rtl-on-chain-utxos",3),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("selectedIndex",a.selectedTableIndex),e.R7$(3),e.Y8G("isDustUTXO",!1)("dustAmount",a.DUST_AMOUNT),e.R7$(6),e.Y8G("isDustUTXO",!0)("dustAmount",a.DUST_AMOUNT))},dependencies:[b.DJ,b.sA,b.UI,at.k,J.ES,J.mq,J.T8,xf,n2],encapsulation:2}))}return t(),s})();const l2=(t,s)=>[t,s];function r2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=null==o?null:o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("active",i.activeLink===(null==n?null:n.link))("routerLink",e.l_i(3,l2,null==n?null:n.link,null==i.selectedTable?null:i.selectedTable.name)),e.R7$(),e.JRh(null==n?null:n.name)}}let c2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.router=o,this.activatedRoute=a,this.faExchangeAlt=I._qq,this.faChartPie=I.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new C.B,new C.B,new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(E.$7).pipe((0,x.Q)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(i){this.selectedTable=this.tables.find(o=>o.id===i)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il),e.rXU(j.Ix),e.rXU(j.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain"]],standalone:!1,decls:23,vars:6,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndexChange","selectedTableIndex"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",1),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"On-chain Transactions"),e.k0s()(),e.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),e.DNE(16,r2,2,6,"div",9),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",10),e.nrm(20,"router-outlet"),e.k0s(),e.j41(21,"div",11)(22,"rtl-utxo-tables",12),e.bIt("selectedTableIndexChange",function(f){return r.eBV(l),r.Njj(a.onSelectedTableIndexChanged(f))}),e.k0s()()()()()}if(2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links),e.R7$(6),e.Y8G("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,st.f,j.n3,le.Wk,o2],encapsulation:2}))}return t(),s})();var p2=S(396);function m2(t,s){if(1&t&&(e.j41(0,"mat-option",6),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.addressTp," ")}}let u2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.lndEffects=o,this.commonService=a,this.addressTypes=[],this.selectedAddressType=p.Ld[2],this.newAddress="",this.flgVersionCompatible=!0,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.store.select(E.pI).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(i.version,"0.15.0"),this.addressTypes=this.flgVersionCompatible?p.Ld:p.Ld.filter(o=>"4"!==o.addressId)})}onGenerateAddress(){this.store.dispatch((0,N.XT)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,be.s)(1)).subscribe(i=>{this.newAddress=i,setTimeout(()=>{this.store.dispatch((0,Y.xO)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:p2.f}}}))},0)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il),e.rXU(Pe.L),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-receive"]],standalone:!1,decls:10,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.gt-sm","start center"],["fxLayout","column","fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["name","address_type","tabindex","1",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","tabindex","2",3,"click"],[3,"value"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Address Type"),e.k0s(),e.j41(5,"mat-select",3),e.mxI("ngModelChange",function(h){return e.DH7(a.selectedAddressType,h)||(a.selectedAddressType=h),h}),e.DNE(6,m2,2,2,"mat-option",4),e.k0s()(),e.j41(7,"div")(8,"button",5),e.bIt("click",function(){return a.onGenerateAddress()}),e.EFF(9,"Generate Address"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.selectedAddressType),e.R7$(),e.Y8G("ngForOf",a.addressTypes))},dependencies:[y.Sq,g.BC,g.vS,$.$z,R.rl,R.nJ,b.DJ,b.sA,b.UI,O.VO,ae.wT],encapsulation:2}))}return t(),s})();var h2=S(2852);const d2=["form"],_2=["formSweepAll"],f2=["stepper"];function g2(t,s){if(1&t&&(e.j41(0,"div",16),e.nrm(1,"fa-icon",17),e.j41(2,"span",18)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",19)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function C2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function y2(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.amountError)}}function b2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n)}}function F2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function x2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function v2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",41,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionBlocks,o)||(a.transactionBlocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,x2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionBlocks),e.R7$(2),e.Y8G("ngIf",!n.transactionBlocks)}}function T2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function k2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",42,5),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionFees,o)||(a.transactionFees=o),r.Njj(o)}),e.k0s(),e.DNE(5,T2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionFees),e.R7$(2),e.Y8G("ngIf",!n.transactionFees)}}function S2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function R2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,S2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function E2(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",20,1),e.bIt("submit",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())})("reset",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.j41(2,"mat-form-field",21)(3,"mat-label"),e.EFF(4,"Bitcoin Address"),e.k0s(),e.j41(5,"input",22,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAddress,o)||(a.transactionAddress=o),r.Njj(o)}),e.k0s(),e.DNE(7,C2,2,0,"mat-error",23),e.k0s(),e.j41(8,"mat-form-field",24)(9,"mat-label"),e.EFF(10,"Amount"),e.k0s(),e.j41(11,"input",25,3),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAmount,o)||(a.transactionAmount=o),r.Njj(o)}),e.k0s(),e.j41(13,"span",26),e.EFF(14),e.k0s(),e.DNE(15,y2,2,1,"mat-error",23),e.k0s(),e.j41(16,"mat-form-field",27)(17,"mat-label"),e.EFF(18,"Amount Unit"),e.k0s(),e.j41(19,"mat-select",28),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountUnitChange(o))}),e.DNE(20,b2,2,2,"mat-option",29),e.k0s()(),e.j41(21,"div",30)(22,"mat-form-field",31)(23,"mat-label"),e.EFF(24,"Transaction Type"),e.k0s(),e.j41(25,"mat-select",32),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.DNE(26,F2,2,2,"mat-option",29),e.k0s()(),e.DNE(27,v2,6,4,"mat-form-field",33)(28,k2,6,4,"mat-form-field",33),e.k0s(),e.nrm(29,"div",34),e.DNE(30,R2,3,2,"div",35),e.j41(31,"div",36)(32,"button",37),e.EFF(33,"Clear Fields"),e.k0s(),e.j41(34,"button",38),e.EFF(35,"Send Funds"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.transactionAddress),e.R7$(2),e.Y8G("ngIf",!n.transactionAddress),e.R7$(4),e.Y8G("step",100)("min",0),e.R50("ngModel",n.transactionAmount),e.R7$(3),e.SpI("",n.selAmountUnit," "),e.R7$(),e.Y8G("ngIf",!n.transactionAmount),e.R7$(4),e.Y8G("value",n.selAmountUnit),e.R7$(),e.Y8G("ngForOf",n.amountUnits),e.R7$(5),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType),e.R7$(2),e.Y8G("ngIf",""!==n.sendFundError)}}function I2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(3);e.JRh(n.passwordFormLabel)}}function w2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function L2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-step",47)(1,"form",66),e.DNE(2,I2,1,1,"ng-template",60),e.j41(3,"div",7)(4,"mat-form-field",18)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",67),e.DNE(8,w2,2,0,"mat-error",23),e.k0s()(),e.j41(9,"div",68)(10,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onAuthenticate())}),e.EFF(11,"Confirm"),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.Y8G("stepControl",n.passwordFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.password.errors?null:n.passwordFormGroup.controls.password.errors.required)}}function j2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.sendFundFormLabel)}}function G2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function D2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function N2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function P2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.nrm(3,"input",70),e.DNE(4,N2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionBlocks.errors?null:n.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function B2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function A2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.nrm(3,"input",71),e.DNE(4,B2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionFees.errors?null:n.sendFundFormGroup.controls.transactionFees.errors.required)}}function $2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.confirmFormLabel)}}function M2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function O2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,M2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function V2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",44)(1,"mat-vertical-stepper",45,6),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.DNE(3,L2,12,4,"mat-step",46),e.j41(4,"mat-step",47)(5,"form",48),e.DNE(6,j2,1,1,"ng-template",49),e.j41(7,"div",50)(8,"mat-form-field",51)(9,"mat-label"),e.EFF(10,"Bitcoin Address"),e.k0s(),e.nrm(11,"input",52),e.DNE(12,G2,2,0,"mat-error",23),e.k0s(),e.j41(13,"mat-form-field",53)(14,"mat-label"),e.EFF(15,"Transaction Type"),e.k0s(),e.j41(16,"mat-select",54),e.DNE(17,D2,2,2,"mat-option",29),e.k0s()(),e.DNE(18,P2,5,3,"mat-form-field",55)(19,A2,5,3,"mat-form-field",55),e.k0s(),e.j41(20,"div",56)(21,"button",57),e.EFF(22,"Next"),e.k0s()()()(),e.j41(23,"mat-step",58)(24,"form",59),e.DNE(25,$2,1,1,"ng-template",60),e.j41(26,"div",44)(27,"div",61),e.nrm(28,"fa-icon",62),e.j41(29,"span"),e.EFF(30,"You are about to sweep all funds from RTL. Are you sure?"),e.k0s()(),e.DNE(31,O2,3,2,"div",35),e.j41(32,"div",56)(33,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())}),e.EFF(34,"Sweep All Funds"),e.k0s()()()()()(),e.j41(35,"div",64)(36,"button",65),e.EFF(37),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("ngIf",!n.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("stepControl",n.sendFundFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.sendFundFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionAddress.errors?null:n.sendFundFormGroup.controls.transactionAddress.errors.required),e.R7$(5),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(4),e.Y8G("stepControl",n.confirmFormGroup),e.R7$(),e.Y8G("formGroup",n.confirmFormGroup),e.R7$(4),e.Y8G("icon",n.faExclamationTriangle),e.R7$(3),e.Y8G("ngIf",""!==n.sendFundError),e.R7$(5),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(n.flgValidated?"Close":"Cancel")}}let Y2=(()=>{var t;class s{constructor(i,o,a,l,h,f,P,w,M,BC,AC){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=h,this.rtlEffects=f,this.commonService=P,this.decimalPipe=w,this.snackBar=M,this.actions=BC,this.formBuilder=AC,this.faExclamationTriangle=I.zpE,this.faInfoCircle=I.iW_,this.sweepAll=!1,this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=p.A0,this.selAmountUnit=p.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=p.k,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,x.Q)(this.unSubs[0])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[g.k0.required]],password:["",[g.k0.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",g.k0.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",g.k0.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{"1"===i?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([g.k0.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([g.k0.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(W.qv).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.appConfig=i}),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.fiatConversion=i.settings.fiatConversion,this.amountUnits=i.settings.currencyUnits,this.logger.info(i)}),this.actions.pipe((0,x.Q)(this.unSubs[4]),(0,L.p)(i=>i.type===p.QP.UPDATE_API_CALL_STATUS_LND||i.type===p.QP.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(i=>{i.type===p.QP.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,Y.UI)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),i.type===p.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===p.wn.ERROR&&"SetChannelTransaction"===i.payload.action&&(this.sendFundError=i.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Y.oz)({payload:h2(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,be.s)(1)).subscribe(i=>{"ERROR"!==i?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const i={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(i.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(i.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(i.fees=this.sendFundFormGroup.controls.transactionFees.value)):(i.address=this.transactionAddress,"1"===this.selTransType&&(i.blocks=this.transactionBlocks),"2"===this.selTransType&&(i.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==p.BQ.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?p.BQ.OTHER:this.selAmountUnit,p.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,x.Q)(this.unSubs[5])).subscribe({next:o=>{this.selAmountUnit=p.BQ.SATS,i.amount=+(this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]])?.replace(/,/g,"")||0),this.store.dispatch((0,N.aB)({payload:i}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=p.BQ.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,N.aB)({payload:i}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(i){switch(this.sendFundError="",i.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}i.selectedIndex{this.selAmountUnit=i.value,o.transactionAmount=+(o.decimalPipe.transform(f[l],o.currencyUnitFormats[l])?.replace(/,/g,"")||0)},error:f=>{o.transactionAmount=null,this.amountError="Conversion Error: "+f,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(ne.CP),e.rXU(ne.Vh),e.rXU(V.gP),e.rXU(Fe.u),e.rXU(G.il),e.rXU(Ve.H),e.rXU(z.h),e.rXU(y.QX),e.rXU(we.UG),e.rXU(ce.En),e.rXU(g.ze))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(o,a){if(1&o&&(e.GBs(d2,7),e.GBs(_2,5),e.GBs(f2,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.formSweepAll=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:13,vars:5,consts:[["sweepAllBlock",""],["form","ngForm"],["address","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fees","ngModel"],["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex.gt-sm","55"],["autoFocus","","matInput","","name","address","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex.gt-sm","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex","48"],[3,"valueChange","value"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],[3,"value"],["fxFlex","48"],["matInput","","type","number","name","blcks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","chainFees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","name","address","required",""],["fxLayout","column","fxFlex.gt-sm","25"],["formControlName","selTransType"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","type","password","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","type","number","name","blcks","required","",3,"step","min"],["matInput","","formControlName","transactionFees","type","number","name","chainFees","required","",3,"step","min"]],template:function(o,a){if(1&o&&(e.j41(0,"div",7)(1,"div",8)(2,"mat-card-header",9)(3,"div",10)(4,"span",11),e.EFF(5),e.k0s()(),e.j41(6,"button",12),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",13),e.DNE(9,g2,16,6,"div",14)(10,E2,36,14,"form",15),e.k0s()()(),e.DNE(11,V2,38,15,"ng-template",null,0,e.C5r)),2&o){const l=e.sdS(12);e.R7$(5),e.JRh(a.sweepAll?"Sweep All Funds":"Send Funds"),e.R7$(),e.Y8G("mat-dialog-close",!1),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(),e.Y8G("ngIf",!a.sweepAll)("ngIfElse",l)}},dependencies:[y.Sq,y.bT,g.qT,g.me,g.Q0,g.BC,g.cb,g.YS,g.VZ,g.vS,g.cV,g.j4,g.JD,ee.aY,ne.tx,$.$z,B.m2,B.MM,Z.fg,R.rl,R.nJ,R.TL,R.yw,b.DJ,b.sA,b.UI,O.VO,ae.wT,de.V5,de.Ti,de.M6,de.F7,pe.N,ye.V],encapsulation:2}))}return t(),s})(),Bt=(()=>{var t;class s{constructor(i,o){this.store=i,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new C.B,new C.B]}ngOnInit(){this.activatedRoute.data.pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.sweepAll=i.sweepAll})}openSendFundsModal(){this.store.dispatch((0,Y.xO)({payload:{data:{sweepAll:this.sweepAll,component:Y2}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(G.il),e.rXU(j.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.openSendFundsModal()}),e.EFF(3),e.k0s()()()),2&o&&(e.R7$(3),e.JRh(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[$.$z,b.DJ,b.sA,b.UI],encapsulation:2}))}return t(),s})();const U2=t=>({"mt-1":t}),At=t=>({"dashboard-card-content":!0,"error-border":t});function X2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function H2(t,s){if(1&t&&e.nrm(0,"rtl-node-info",27),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!0)}}function q2(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",28),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function z2(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",29),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[2])}}function J2(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),e.nrm(4,"fa-icon",17),e.j41(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),e.DNE(10,X2,1,0,"mat-progress-bar",21),e.j41(11,"div",22),e.DNE(12,H2,1,2,"rtl-node-info",23)(13,q2,1,2,"rtl-channel-status-info",24)(14,z2,1,2,"rtl-fee-info",25),e.k0s()()()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(3),e.Y8G("ngClass",e.eq3(10,At,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","status"),e.R7$(),e.Y8G("ngSwitchCase","fee")}}function Q2(t,s){if(1&t&&(e.j41(0,"mat-grid-list",11),e.DNE(1,J2,15,12,"mat-grid-tile",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.nodeCards)}}function W2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function Z2(t,s){1&t&&e.eu8(0)}function K2(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,Z2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function eg(t,s){1&t&&e.eu8(0)}function tg(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,eg,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(13);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function ng(t,s){1&t&&e.eu8(0)}function ig(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,ng,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(15);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function ag(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",32),e.DNE(3,W2,1,0,"mat-progress-bar",21),e.j41(4,"div",22),e.DNE(5,K2,2,1,"div",33)(6,tg,2,1,"div",33)(7,ig,2,1,"div",33),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(2),e.Y8G("ngClass",e.eq3(8,At,i.apiCallStatusNetwork.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf",i.apiCallStatusNetwork.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","general"),e.R7$(),e.Y8G("ngSwitchCase","channels"),e.R7$(),e.Y8G("ngSwitchCase","degrees")}}function sg(t,s){if(1&t&&(e.j41(0,"div",36)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessages[1])}}function og(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Network Capacity"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Number of Nodes"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Number of Channels"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,3,n.networkInfo.total_network_capacity)," Sats"),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.num_nodes)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.num_channels))}}function lg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Channel Size"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Channel Size"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Min Channel Size"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,3,n.networkInfo.max_channel_size)),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.avg_channel_size)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.min_channel_size))}}function rg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Out Degree"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Out Degree"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",40),e.nrm(14,"h4",38)(15,"span",39),e.k0s()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,n.networkInfo.max_out_degree)),e.R7$(6),e.JRh(e.i5U(12,4,n.networkInfo.avg_out_degree,"1.0-2"))}}let cg=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.faProjectDiagram=I.qFF,this.faBolt=I.zm_,this.faServer=I.D6w,this.faNetworkWired=I.eGi,this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=p.f7,this.userPersonaEnum=p.HW,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.f7.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(E.gj).pipe((0,x.Q)(this.unSubs[0]),(0,me.E)(this.store.select(W._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===p.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(E.tA).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusNetwork=i.apiCallStatus,this.apiCallStatusNetwork.status===p.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=i.networkInfo}),this.store.select(E.oR).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===p.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(E.Uv).pipe((0,x.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===p.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===p.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-network-info"]],standalone:!1,decls:16,vars:6,consts:[["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",1,"mt-2",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,Q2,2,1,"mat-grid-list",5),e.j41(2,"div",6),e.nrm(3,"fa-icon",7),e.j41(4,"span",8),e.EFF(5,"Network"),e.k0s()(),e.j41(6,"mat-grid-list",9),e.DNE(7,ag,8,10,"mat-grid-tile",10),e.k0s()(),e.DNE(8,sg,3,1,"ng-template",null,0,e.C5r)(10,og,19,9,"ng-template",null,1,e.C5r)(12,lg,19,9,"ng-template",null,2,e.C5r)(14,rg,16,7,"ng-template",null,3,e.C5r)),2&o&&(e.R7$(),e.Y8G("ngIf",a.selNode.settings.userPersona!==a.userPersonaEnum.OPERATOR),e.R7$(),e.Y8G("ngClass",e.eq3(4,U2,a.screenSize!==a.screenSizeEnum.XS)),e.R7$(),e.Y8G("icon",a.faProjectDiagram),e.R7$(4),e.Y8G("ngForOf",a.networkCards))},dependencies:[y.YU,y.Sq,y.bT,y.T3,y.ux,y.e1,ee.aY,B.RN,B.m2,Le.B_,Le.NS,D.HM,b.DJ,b.sA,b.UI,U.PW,bt,Ft,xt,y.QX],encapsulation:2}))}return t(),s})();function pg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let mg=(()=>{var t;class s{constructor(i){this.router=i,this.faDownload=I.cbP,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-backup"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Channels Backup"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,pg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faDownload),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,j.n3,le.Wk],encapsulation:2}))}return t(),s})();const ug=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),hg=()=>["no_channel"],dg=t=>({"max-width":t}),_g=t=>({"display-none":t});function fg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",24)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRestoreChannels({}))}),e.EFF(5,"Restore All"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function gg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"h4",29),e.EFF(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function Cg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function yg(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function bg(t,s){1&t&&(e.j41(0,"th",31),e.EFF(1,"Channel Point"),e.k0s())}function Fg(t,s){if(1&t&&(e.j41(0,"td",32)(1,"div",33)(2,"span",34),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,dg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function xg(t,s){1&t&&(e.j41(0,"th",35)(1,"div",36),e.EFF(2,"Actions"),e.k0s()())}function vg(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",32)(1,"span",37)(2,"button",38),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onRestoreChannels(o))}),e.EFF(3,"Restore"),e.k0s()()()}}function Tg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No singular channel backups available."),e.k0s())}function kg(t,s){if(1&t&&(e.j41(0,"td",39),e.DNE(1,Tg,2,0,"p",40),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channels||!n.channels.data||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}function Sg(t,s){if(1&t&&e.nrm(0,"tr",41),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,_g,n.channels&&n.channels.data&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Rg(t,s){1&t&&e.nrm(0,"tr",42)}function Eg(t,s){1&t&&e.nrm(0,"tr",43)}let Ig=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=p.md,this.pageSizeOptions=p.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new _.I6([]),this.allRestoreExists=!1,this.flgLoading=[!0],this.selFilter="",this.screenSize="",this.screenSizeEnum=p.f7,this.unSubs=[new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,N.$J)()),this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.lndEffects.setRestoreChannelList.pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.allRestoreExists=i.all_restore_exists,this.channelsData=i.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||i&&i.files)&&(this.flgLoading[0]=!1),this.logger.info(i)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(i){this.store.dispatch((0,N.Lf)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(i){this.channels=new _.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(Pe.L),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-restore-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:X.xX,useValue:(0,p.on)("Channels")}])],decls:28,vars:16,consts:[["table",""],["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.DNE(1,fg,6,1,"div",2)(2,gg,5,1,"div",3)(3,Cg,3,1,"div",3),e.j41(4,"div",4),e.nrm(5,"div",5),e.j41(6,"div",6),e.nrm(7,"div",7),e.j41(8,"mat-form-field",8)(9,"mat-label"),e.EFF(10,"Filter"),e.k0s(),e.j41(11,"input",9),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(12,"div",10),e.DNE(13,yg,1,0,"mat-progress-bar",11),e.j41(14,"table",12,0),e.qex(16,13),e.DNE(17,bg,2,0,"th",14)(18,Fg,4,4,"td",15),e.bVm(),e.qex(19,16),e.DNE(20,xg,3,0,"th",17)(21,vg,4,0,"td",15),e.bVm(),e.qex(22,18),e.DNE(23,kg,2,1,"td",19),e.bVm(),e.DNE(24,Sg,1,3,"tr",20)(25,Rg,1,0,"tr",21)(26,Eg,1,0,"tr",22),e.k0s()(),e.nrm(27,"mat-paginator",23),e.k0s()}2&o&&(e.R7$(),e.Y8G("ngIf",a.allRestoreExists),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(13,ug,"error"===a.flgLoading[0])),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(15,hg)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.bT,y.B3,g.me,g.BC,g.vS,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.Ld],encapsulation:2}))}return t(),s})();const wg=t=>({"error-border":t}),Lg=()=>["no_channel"],jg=t=>({"max-width":t}),Gg=t=>({"display-none":t});function Dg(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Ng(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Channel Point"),e.k0s())}function Pg(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,jg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Bg(t,s){1&t&&(e.j41(0,"th",38)(1,"div",39),e.EFF(2,"Actions"),e.k0s()())}function Ag(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",40)(1,"div",39)(2,"mat-select",41),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",42),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBackupChannels(o))}),e.EFF(7,"Backup"),e.k0s(),e.j41(8,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onDownloadBackup(o))}),e.EFF(9,"Download Backup"),e.k0s(),e.j41(10,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onVerifyChannels(o))}),e.EFF(11,"Verify"),e.k0s()()()()}}function $g(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function Mg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function Og(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Vg(t,s){if(1&t&&(e.j41(0,"td",43),e.DNE(1,$g,2,0,"p",44)(2,Mg,2,0,"p",44)(3,Og,2,1,"p",44),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Yg(t,s){if(1&t&&e.nrm(0,"tr",45),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Gg,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Ug(t,s){1&t&&e.nrm(0,"tr",46)}function Xg(t,s){1&t&&e.nrm(0,"tr",47)}let Hg=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=I.iW_,this.faExclamationTriangle=I.zpE,this.faArchive=I.Oh6,this.pageSize=p.md,this.pageSizeOptions=p.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new _.I6([]),this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(W._c).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=i.channels,this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(i)}),this.actions.pipe((0,x.Q)(this.unSubs[2]),(0,L.p)(i=>i.type===p.QP.SET_CHANNELS_LND||i.type===p.aU.SHOW_FILE)).subscribe(i=>{i.type===p.QP.SET_CHANNELS_LND&&(this.selectedChannel=null),i.type===p.aU.SHOW_FILE&&(this.commonService.downloadFile(i.payload,"channel-"+(this.selectedChannel?.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(i){this.store.dispatch((0,N.H2)({payload:{uiMessage:p.MZ.BACKUP_CHANNEL,channelPoint:i.channel_point?i.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(i){this.store.dispatch((0,N.L)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}onDownloadBackup(i){this.selectedChannel=i,this.store.dispatch((0,Y.t2)({payload:{channelPoint:i.channel_point?i.channel_point:"all"}}))}onChannelClick(i,o){this.store.dispatch((0,Y.xO)({payload:{data:{channel:i,showCopy:!1,component:rt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(i){this.channels=new _.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(G.il),e.rXU(ce.En),e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-backup-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:O.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:X.xX,useValue:(0,p.on)("Channels")}])],decls:46,vars:17,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Save your backup files in a redundant location."),e.k0s()(),e.j41(6,"div",5),e.nrm(7,"fa-icon",4),e.j41(8,"span")(9,"strong"),e.EFF(10,"Backup Folder Location: "),e.k0s(),e.EFF(11),e.k0s()(),e.j41(12,"div",6)(13,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerifyChannels({}))}),e.EFF(14,"Verify All"),e.k0s(),e.j41(15,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBackupChannels({}))}),e.EFF(16,"Backup All"),e.k0s(),e.j41(17,"button",9),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onDownloadBackup({}))}),e.EFF(18,"Download Backup"),e.k0s()()(),e.j41(19,"div",10)(20,"div",11),e.nrm(21,"fa-icon",12),e.j41(22,"span",13),e.EFF(23,"Backups"),e.k0s()(),e.j41(24,"div",14),e.nrm(25,"div",15),e.j41(26,"mat-form-field",16)(27,"mat-label"),e.EFF(28,"Filter"),e.k0s(),e.j41(29,"input",17),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selFilter,f)||(a.selFilter=f),r.Njj(f)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(30,"div",18),e.DNE(31,Dg,1,0,"mat-progress-bar",19),e.j41(32,"table",20,0),e.qex(34,21),e.DNE(35,Ng,2,0,"th",22)(36,Pg,4,4,"td",23),e.bVm(),e.qex(37,24),e.DNE(38,Bg,3,0,"th",25)(39,Ag,12,0,"td",26),e.bVm(),e.qex(40,27),e.DNE(41,Vg,4,3,"td",28),e.bVm(),e.DNE(42,Yg,1,3,"tr",29)(43,Ug,1,0,"tr",30)(44,Xg,1,0,"tr",31),e.k0s()(),e.nrm(45,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(3),e.Y8G("icon",a.faExclamationTriangle),e.R7$(4),e.Y8G("icon",a.faInfoCircle),e.R7$(4),e.SpI("",a.selNode.settings.channelBackupPath,"."),e.R7$(10),e.Y8G("icon",a.faArchive),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(14,wg,""!==a.errorMessage)),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(16,Lg)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[y.YU,y.bT,y.B3,g.me,g.BC,g.vS,ee.aY,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,O.$2,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.Ld],encapsulation:2}))}return t(),s})();function qg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let zg=(()=>{var t;class s{constructor(i){this.router=i,this.faUserCheck=I.pCJ,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new C.B,new C.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(o=>o instanceof j.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(j.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign-verify-message"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Sign/Verify Message"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,qg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faUserCheck),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[y.Sq,ee.aY,B.RN,B.m2,b.DJ,b.sA,b.UI,J.Bu,J.hQ,J.Ql,j.n3,le.Wk],encapsulation:2}))}return t(),s})();function Jg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}let Qg=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new C.B,new C.B]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.signedMessage=this.message,this.signature=i.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(i){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+i)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Fe.u),e.rXU(we.UG),e.rXU(V.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign"]],standalone:!1,decls:22,vars:5,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"signature-box","bordered-box","read-only"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"form",2,0)(3,"mat-form-field",3)(4,"mat-label"),e.EFF(5,"Message to sign"),e.k0s(),e.j41(6,"textarea",4),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.message,f)||(a.message=f),r.Njj(f)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onMessageChange())}),e.k0s(),e.DNE(7,Jg,2,0,"mat-error",5),e.k0s(),e.j41(8,"div",6)(9,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(10,"Clear Field"),e.k0s(),e.j41(11,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSign())}),e.EFF(12,"Sign"),e.k0s()(),e.nrm(13,"mat-divider",9),e.j41(14,"div",10)(15,"p"),e.EFF(16,"Generated Signature"),e.k0s()(),e.j41(17,"div",11),e.EFF(18),e.k0s(),e.j41(19,"div",12)(20,"button",13),e.bIt("copied",function(f){return r.eBV(l),r.Njj(a.onCopyField(f))}),e.EFF(21,"Copy Signature"),e.k0s()()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(6),e.Y8G("inset",!0),e.R7$(5),e.JRh(a.signature),e.R7$(2),e.Y8G("payload",a.signature))},dependencies:[y.bT,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,$.$z,Z.fg,R.rl,R.nJ,R.TL,Te.q,b.DJ,b.sA,b.UI,He.U,pe.N],styles:[".signature-box[_ngcontent-%COMP%]{padding:1rem}"]}))}return t(),s})();function Wg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}function Zg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Signature is required."),e.k0s())}function Kg(t,s){1&t&&(e.j41(0,"p",13)(1,"mat-icon",14),e.EFF(2,"close"),e.k0s(),e.EFF(3,"Verification failed, please check message and signature"),e.k0s())}function e4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Pubkey Used"),e.k0s())}function t4(t,s){if(1&t&&(e.j41(0,"div",20)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(2),e.JRh(null==n.verifyRes?null:n.verifyRes.pubkey)}}function n4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onCopyField(o))}),e.EFF(2,"Copy Pubkey"),e.k0s()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payload",null==n.verifyRes?null:n.verifyRes.pubkey)}}function i4(t,s){if(1&t&&(e.j41(0,"div",15),e.nrm(1,"mat-divider",16),e.j41(2,"div",17),e.DNE(3,e4,2,0,"p",6),e.k0s(),e.DNE(4,t4,3,1,"div",18)(5,n4,3,1,"div",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(2),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid)}}let a4=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new C.B,new C.B]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.verifyRes=i,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(i){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Fe.u),e.rXU(we.UG),e.rXU(V.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-verify"]],standalone:!1,decls:21,vars:6,consts:[["form","ngForm"],["sign","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","signature","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Message to verify"),e.k0s(),e.j41(6,"textarea",5),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.message,f)||(a.message=f),r.Njj(f)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(7,Wg,2,0,"mat-error",6),e.k0s(),e.j41(8,"mat-form-field",4)(9,"mat-label"),e.EFF(10,"Signature provided"),e.k0s(),e.j41(11,"input",7,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.signature,f)||(a.signature=f),r.Njj(f)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(13,Zg,2,0,"mat-error",6),e.k0s(),e.DNE(14,Kg,4,0,"p",8),e.j41(15,"div",9)(16,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(17,"Clear Fields"),e.k0s(),e.j41(18,"button",11),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerify())}),e.EFF(19,"Verify"),e.k0s()(),e.DNE(20,i4,6,4,"div",12),e.k0s()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(4),e.R50("ngModel",a.signature),e.R7$(2),e.Y8G("ngIf",!a.signature),e.R7$(),e.Y8G("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.R7$(6),e.Y8G("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},dependencies:[y.bT,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,$.$z,ke.An,Z.fg,R.rl,R.nJ,R.TL,Te.q,b.DJ,b.sA,b.UI,He.U,pe.N],encapsulation:2}))}return t(),s})();var s4=S(13),Q=S(7186);const o4=()=>["all"],l4=()=>["no_non_routing_event"],We=t=>({"max-width":t}),r4=t=>({"display-none":t});function c4(t,s){if(1&t&&(e.j41(0,"div",5),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function p4(t,s){if(1&t&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function m4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Non Routing Peers"),e.k0s(),e.j41(3,"div",12)(4,"mat-form-field",13)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",14),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG(2);return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,p4,2,2,"mat-option",15),e.k0s()()(),e.j41(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",16),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,o4).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function u4(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function h4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel ID"),e.k0s())}function d4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,We,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function _4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Alias"),e.k0s())}function f4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,We,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function g4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Pubkey"),e.k0s())}function C4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,We,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function y4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel Point"),e.k0s())}function b4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,We,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function F4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function x4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function v4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function T4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function k4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function S4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function R4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Weight"),e.k0s())}function E4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function I4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Fee/KW"),e.k0s())}function w4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function L4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Updates"),e.k0s())}function j4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function G4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function D4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function N4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Capacity (Sats)"),e.k0s())}function P4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function B4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function A4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function $4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function M4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function O4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Sent"),e.k0s())}function V4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_sent))}}function Y4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Received"),e.k0s())}function U4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_received))}}function X4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function H4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.local_balance))}}function q4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function z4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.remote_balance))}}function J4(t,s){1&t&&(e.j41(0,"th",57)(1,"div",58),e.EFF(2,"Actions"),e.k0s()())}function Q4(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",59)(1,"button",60),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(3);return r.Njj(a.onManagePeer(o))}),e.EFF(2,"Manage"),e.k0s()()}}function W4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"All peers are routing."),e.k0s())}function Z4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting non routing peers..."),e.k0s())}function K4(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.JRh(n.errorMessage)}}function eC(t,s){if(1&t&&(e.j41(0,"td",61),e.DNE(1,W4,2,0,"p",62)(2,Z4,2,0,"p",62)(3,K4,2,1,"p",62),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function tC(t,s){if(1&t&&e.nrm(0,"tr",63),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,r4,(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)>0))}}function nC(t,s){1&t&&e.nrm(0,"tr",64)}function iC(t,s){1&t&&e.nrm(0,"tr",65)}function aC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,u4,1,0,"mat-progress-bar",19),e.j41(2,"table",20,1),e.qex(4,21),e.DNE(5,h4,2,0,"th",22)(6,d4,4,4,"td",23),e.bVm(),e.qex(7,24),e.DNE(8,_4,2,0,"th",22)(9,f4,4,4,"td",23),e.bVm(),e.qex(10,25),e.DNE(11,g4,2,0,"th",22)(12,C4,4,4,"td",23),e.bVm(),e.qex(13,26),e.DNE(14,y4,2,0,"th",22)(15,b4,4,4,"td",23),e.bVm(),e.qex(16,27),e.DNE(17,F4,2,1,"th",28)(18,x4,3,1,"td",23),e.bVm(),e.qex(19,29),e.DNE(20,v4,2,1,"th",28)(21,T4,3,1,"td",23),e.bVm(),e.qex(22,30),e.DNE(23,k4,2,0,"th",28)(24,S4,4,3,"td",23),e.bVm(),e.qex(25,31),e.DNE(26,R4,2,0,"th",28)(27,E4,4,3,"td",23),e.bVm(),e.qex(28,32),e.DNE(29,I4,2,0,"th",28)(30,w4,4,3,"td",23),e.bVm(),e.qex(31,33),e.DNE(32,L4,2,0,"th",28)(33,j4,4,3,"td",23),e.bVm(),e.qex(34,34),e.DNE(35,G4,2,0,"th",28)(36,D4,4,3,"td",23),e.bVm(),e.qex(37,35),e.DNE(38,N4,2,0,"th",28)(39,P4,4,3,"td",23),e.bVm(),e.qex(40,36),e.DNE(41,B4,2,0,"th",28)(42,A4,4,3,"td",23),e.bVm(),e.qex(43,37),e.DNE(44,$4,2,0,"th",28)(45,M4,4,3,"td",23),e.bVm(),e.qex(46,38),e.DNE(47,O4,2,0,"th",28)(48,V4,4,3,"td",23),e.bVm(),e.qex(49,39),e.DNE(50,Y4,2,0,"th",28)(51,U4,4,3,"td",23),e.bVm(),e.qex(52,40),e.DNE(53,X4,2,0,"th",28)(54,H4,4,3,"td",23),e.bVm(),e.qex(55,41),e.DNE(56,q4,2,0,"th",28)(57,z4,4,3,"td",23),e.bVm(),e.qex(58,42),e.DNE(59,J4,3,0,"th",43)(60,Q4,3,0,"td",44),e.bVm(),e.qex(61,45),e.DNE(62,eC,4,3,"td",46),e.bVm(),e.DNE(63,tC,1,3,"tr",47)(64,nC,1,0,"tr",48)(65,iC,1,0,"tr",49),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.nonRoutingPeers),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(7,l4)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function sC(t,s){if(1&t&&(e.j41(0,"div",6),e.DNE(1,m4,14,4,"div",7)(2,aC,66,8,"div",8),e.nrm(3,"mat-paginator",9,0),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let oC=(()=>{var t;class s{constructor(i,o,a,l,h,f,P){this.logger=i,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=h,this.decimalPipe=f,this.camelCaseWithReplace=P,this.nodePageDefs=p._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"non_routing_peers",recordsPerPage:p.md,sortBy:"remote_alias",sortOrder:p.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.nonRoutingPeers=new _.I6([]),this.pageSize=p.md,this.pageSizeOptions=p.xp,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.selFilter="",this.activeChannels=[],this.timeUnit="mins:secs",this.apiCallStatus=null,this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B,new C.B,new C.B,new C.B,new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(E.$G).pipe((0,x.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||p.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===p.f7.XS||this.screenSize===p.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:p.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(E.Ie).pipe((0,x.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)}),this.store.select(E.BM).pipe((0,x.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===p.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=i.channels,this.logger.info(i)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}calculateUptime(i){let f=60,P=1,w=0;switch(i.forEach(M=>{M.uptime&&+M.uptime>w&&(w=+M.uptime)}),!0){case w<3600:this.timeUnit="Mins:Secs",f=60,P=1;break;case w>=3600&&w<86400:this.timeUnit="Hrs:Mins",f=3600,P=60;break;case w>=86400&&w<31536e3:this.timeUnit="Days:Hrs",f=86400,P=3600;break;case w>31536e3:this.timeUnit="Yrs:Days",f=31536e3,P=86400;break;default:this.timeUnit="Mins:Secs",f=60,P=1}return i.forEach(M=>{M.uptime_str=M.uptime?this.decimalPipe.transform(Math.floor(+M.uptime/f),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+M.uptime%f/P),"2.0-0"):"---",M.lifetime_str=M.lifetime?this.decimalPipe.transform(Math.floor(+M.lifetime/f),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+M.lifetime%f/P),"2.0-0"):"---"}),i}onManagePeer(i){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filterValue:i.chan_id}})}applyFilter(){this.nonRoutingPeers.filter=this.selFilter.toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.nonRoutingPeers.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?JSON.stringify(i).toLowerCase():typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadNonRoutingPeersTable(i){if(i.length>0){const o=this.calculateUptime(this.activeChannels?.filter(a=>i.findIndex(l=>l.chan_id_in===a.chan_id||l.chan_id_out===a.chan_id)<0));this.nonRoutingPeers=new _.I6(o),this.nonRoutingPeers.sort=this.sort,this.nonRoutingPeers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.nonRoutingPeers)}else this.nonRoutingPeers=new _.I6([]);this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(j.Ix),e.rXU(j.nX),e.rXU(y.QX),e.rXU(ue.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-non-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(A.B4,5),e.GBs(X.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:X.xX,useValue:(0,p.on)("Non routing peers")}])],decls:3,vars:2,consts:[["paginator",""],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,c4,2,1,"div",3)(2,sC,5,5,"div",4),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[y.YU,y.Sq,y.bT,y.B3,g.me,g.BC,g.vS,$.$z,Z.fg,R.rl,R.nJ,D.HM,b.DJ,b.sA,b.UI,U.PW,U.eI,O.VO,ae.wT,A.B4,A.aE,_.Zl,_.tL,_.ji,_.cC,_.YV,_.iL,_.Zq,_.xW,_.KS,_.$R,_.Qo,_.YZ,_.NB,_.iF,X.iy,K.ZF,K.Ld,y.QX],encapsulation:2}))}return t(),s})();var $t=S(3838);let lC=(()=>{var t;class s{constructor(i){this.dataService=i,this.paths="",this.unSubs=[new C.B,new C.B]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const i=this.payment.htlcs[0].route.hops?.reduce((o,a)=>""===o&&a.pub_key?a.pub_key:o+","+a.pub_key,"");this.dataService.getAliasesFromPubkeys(i,!0).pipe((0,x.Q)(this.unSubs[0])).subscribe(o=>{this.paths=o?.reduce((a,l)=>""===a?l:a+"\n"+l,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,be.s)(1)).subscribe(i=>{i&&i.description&&""!==i.description&&(this.payment.description=i.description)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Fe.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},standalone:!1,decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",4),e.EFF(6),e.k0s()(),e.nrm(7,"mat-divider",5),e.j41(8,"div",2)(9,"h4",3),e.EFF(10,"Payment Preimage"),e.k0s(),e.j41(11,"span",4)(12,"div"),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",5),e.j41(15,"div",2)(16,"h4",3),e.EFF(17,"Payment Request"),e.k0s(),e.j41(18,"span",4)(19,"div"),e.EFF(20),e.k0s()()(),e.nrm(21,"mat-divider",5),e.j41(22,"div",2)(23,"h4",3),e.EFF(24,"Description"),e.k0s(),e.j41(25,"span",4)(26,"div"),e.EFF(27),e.k0s()()(),e.nrm(28,"mat-divider",5),e.j41(29,"div",6)(30,"div",7)(31,"h4",3),e.EFF(32,"Status"),e.k0s(),e.j41(33,"span",4)(34,"div"),e.EFF(35),e.k0s()()(),e.j41(36,"div",7)(37,"h4",3),e.EFF(38,"Creation Date"),e.k0s(),e.j41(39,"span",4)(40,"div"),e.EFF(41),e.k0s()()()(),e.nrm(42,"mat-divider",5),e.j41(43,"div",6)(44,"div",7)(45,"h4",3),e.EFF(46,"Value (mSats)"),e.k0s(),e.j41(47,"span",4)(48,"div"),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.j41(51,"div",7)(52,"h4",3),e.EFF(53,"Fee (mSats)"),e.k0s(),e.j41(54,"span",4)(55,"div"),e.EFF(56),e.nI1(57,"number"),e.k0s()()()(),e.nrm(58,"mat-divider",5),e.j41(59,"div",2)(60,"h4",3),e.EFF(61,"Path"),e.k0s(),e.j41(62,"span",4)(63,"div"),e.EFF(64),e.k0s()()(),e.nrm(65,"mat-divider",5),e.k0s()()),2&o&&(e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_hash),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_preimage),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_request),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.description),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(null==a.payment?null:a.payment.status),e.R7$(6),e.JRh(null==a.payment?null:a.payment.creation_date),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(e.bMT(50,16,null==a.payment?null:a.payment.value_msat)),e.R7$(7),e.JRh(e.bMT(57,18,null==a.payment?null:a.payment.fee_msat)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.paths),e.R7$(),e.Y8G("inset",!0))},dependencies:[B.m2,Te.q,b.DJ,b.sA,b.UI,y.QX],encapsulation:2}))}return t(),s})();var rC=S(8288);const Mt=t=>({"display-none":t}),ft=t=>({"mr-0":t});function cC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function pC(t,s){1&t&&(e.j41(0,"span",23),e.EFF(1,"N/A"),e.k0s())}function mC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function uC(t,s){1&t&&(e.j41(0,"span",24),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function hC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}function dC(t,s){1&t&&(e.qex(0),e.EFF(1," (zero amount) "),e.bVm())}function _C(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ft,n.screenSize===n.screenSizeEnum.XS))}}function fC(t,s){if(1&t&&e.nrm(0,"span",39),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ft,n.screenSize===n.screenSizeEnum.XS))}}function gC(t,s){if(1&t&&e.nrm(0,"span",40),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ft,n.screenSize===n.screenSizeEnum.XS))}}function CC(t,s){if(1&t&&(e.j41(0,"div",27)(1,"div",32)(2,"span",33),e.DNE(3,_C,1,3,"span",34)(4,fC,1,3,"span",35)(5,gC,1,3,"span",36),e.EFF(6),e.k0s(),e.j41(7,"span",37),e.EFF(8),e.nI1(9,"number"),e.k0s()(),e.nrm(10,"mat-divider",16),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SETTLED"===n.state),e.R7$(),e.Y8G("ngIf","ACCEPTED"===n.state),e.R7$(),e.Y8G("ngIf","CANCELED"===n.state),e.R7$(),e.SpI(" ",n.chan_id," "),e.R7$(2),e.JRh(e.i5U(9,6,+n.amt_msat/1e3||0,i.getDecimalFormat(n))),e.R7$(2),e.Y8G("inset",!0)}}function yC(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",11)(1,"mat-expansion-panel",25),e.bIt("opened",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.flgOpened=!0)})("closed",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExpansionClosed())}),e.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),e.EFF(5,"HTLCs"),e.k0s()()(),e.j41(6,"div",27)(7,"div",28)(8,"span",29),e.EFF(9,"Channel ID"),e.k0s(),e.j41(10,"span",30),e.EFF(11,"Amount (Sats)"),e.k0s()(),e.nrm(12,"mat-divider",16),e.DNE(13,CC,11,9,"div",31),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(12),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngForOf",null==n.invoice?null:n.invoice.htlcs)}}function bC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}let FC=(()=>{var t;class s{constructor(i){this.commonService=i,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=p.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===p.f7.XS&&(this.qrWidth=220)}getDecimalFormat(i){return i.amt_msat<1e3?"1.0-4":"1.0-0"}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(z.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},standalone:!1,decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,cC,1,2,"qr-code",2)(3,pC,2,0,"span",3),e.k0s(),e.j41(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),e.DNE(8,mC,1,2,"qr-code",2)(9,uC,2,0,"span",8),e.k0s(),e.DNE(10,hC,1,1,"mat-divider",9),e.j41(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),e.EFF(15),e.k0s(),e.j41(16,"span",14),e.EFF(17),e.nI1(18,"number"),e.DNE(19,dC,2,0,"ng-container",15),e.k0s()(),e.j41(20,"div",12)(21,"h4",13),e.EFF(22,"Amount Settled"),e.k0s(),e.j41(23,"span",14)(24,"div"),e.EFF(25),e.nI1(26,"number"),e.k0s()()()(),e.nrm(27,"mat-divider",16),e.j41(28,"div",11)(29,"div",12)(30,"h4",13),e.EFF(31,"Date Created"),e.k0s(),e.j41(32,"span",14),e.EFF(33),e.nI1(34,"date"),e.k0s()(),e.j41(35,"div",12)(36,"h4",13),e.EFF(37,"Date Settled"),e.k0s(),e.j41(38,"span",14),e.EFF(39),e.nI1(40,"date"),e.k0s()()(),e.nrm(41,"mat-divider",16),e.j41(42,"div",11)(43,"div",17)(44,"h4",13),e.EFF(45,"Memo"),e.k0s(),e.j41(46,"span",14),e.EFF(47),e.k0s()()(),e.nrm(48,"mat-divider",16),e.j41(49,"div",11)(50,"div",17)(51,"h4",13),e.EFF(52,"Payment Request"),e.k0s(),e.j41(53,"span",18),e.EFF(54),e.k0s()()(),e.nrm(55,"mat-divider",16),e.j41(56,"div",11)(57,"div",17)(58,"h4",13),e.EFF(59,"Payment Hash"),e.k0s(),e.j41(60,"span",18),e.EFF(61),e.k0s()()(),e.j41(62,"div"),e.nrm(63,"mat-divider",16),e.j41(64,"div",11)(65,"div",17)(66,"h4",13),e.EFF(67,"Preimage"),e.k0s(),e.j41(68,"span",18),e.EFF(69),e.k0s()()(),e.nrm(70,"mat-divider",16),e.j41(71,"div",11)(72,"div",19)(73,"h4",13),e.EFF(74,"State"),e.k0s(),e.j41(75,"span",18),e.EFF(76),e.k0s()(),e.j41(77,"div",20)(78,"h4",13),e.EFF(79,"Expiry"),e.k0s(),e.j41(80,"span",18),e.EFF(81),e.k0s()(),e.j41(82,"div",20)(83,"h4",13),e.EFF(84,"Private Routing Hints"),e.k0s(),e.j41(85,"span",18),e.EFF(86),e.k0s()()(),e.nrm(87,"mat-divider",16),e.DNE(88,yC,14,2,"div",21)(89,bC,1,1,"mat-divider",9),e.k0s()()()()()()),2&o&&(e.R7$(),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(41,Mt,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(4),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(43,Mt,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.R7$(5),e.JRh(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.R7$(2),e.SpI("",e.bMT(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.R7$(2),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.R7$(6),e.SpI("",e.bMT(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.i5U(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.memo),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_hash)||""),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.state),e.R7$(5),e.JRh(null==a.invoice?null:a.invoice.expiry),e.R7$(5),e.JRh(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},dependencies:[y.YU,y.Sq,y.bT,B.m2,he.GK,he.Z2,he.WN,Te.q,b.DJ,b.sA,b.UI,U.PW,fe.oV,rC.Um,K.Ld,y.QX,y.vh],encapsulation:2}))}return t(),s})();const xC=t=>({"mt-1":!0,"mt-2":t}),vC=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function TC(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function kC(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function SC(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function RC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,SC,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,vC,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function EC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-payment-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payment",n.lookupValue)}}function IC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-invoice-lookup",29),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("invoice",n.lookupValue)}}function wC(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function LC(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,EC,2,1,"span",25)(6,IC,2,1,"span",25)(7,wC,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let jC=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=I.MjD,this.screenSize="",this.screenSizeEnum=p.f7,this.errorMessage="",this.apiCallStatusEnum=p.wn,this.unSubs=[new C.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,x.Q)(this.unSubs[0]),(0,L.p)(i=>i.type===p.QP.SET_LOOKUP_LND)).subscribe(i=>{this.flgSetLookupValue=!i.payload.error,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.errorMessage=i.payload.error?this.commonService.extractErrorMessage(i.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,N.jk)({payload:$t.hp.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,N.Yi)({payload:{openSnackBar:!1,paymentHash:$t.hp.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(V.gP),e.rXU(z.h),e.rXU(G.il),e.rXU(ce.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookup-transactions"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.selectedFieldId,f)||(a.selectedFieldId=f),r.Njj(f)}),e.bIt("change",function(f){return r.eBV(l),r.Njj(a.onSelectChange(f))}),e.DNE(7,TC,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(f){return r.eBV(l),e.DH7(a.lookupKey,f)||(a.lookupKey=f),r.Njj(f)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,kC,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,RC,3,5,"div",15)(20,LC,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,xC,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[y.YU,y.Sq,y.bT,y.ux,y.e1,y.fG,g.qT,g.me,g.BC,g.cb,g.YS,g.vS,g.cV,$.$z,B.m2,Z.fg,R.rl,R.nJ,R.TL,D.HM,Ae.VT,Ae._g,b.DJ,b.sA,b.UI,U.PW,lC,FC],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return t(),s})();const GC=[{path:"",component:_e,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Hs,canActivate:[(0,Q.jn)()]},{path:"wallet",component:Lh,canActivate:[Q.q_]},{path:"onchain",component:c2,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:u2,canActivate:[(0,Q.jn)()]},{path:"send/:selTab",component:Bt,data:{sweepAll:!1},canActivate:[(0,Q.jn)()]},{path:"sweep/:selTab",component:Bt,data:{sweepAll:!0},canActivate:[(0,Q.jn)()]}]},{path:"connections",component:Js,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Cl,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Y1,canActivate:[(0,Q.jn)()]},{path:"pending",component:Sm,canActivate:[(0,Q.jn)()]},{path:"closed",component:du,canActivate:[(0,Q.jn)()]},{path:"activehtlcs",component:oh,canActivate:[(0,Q.jn)()]}]},{path:"peers",component:hl,data:{sweepAll:!1},canActivate:[(0,Q.jn)()]}]},{path:"transactions",component:Gh,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Ct,canActivate:[(0,Q.jn)()]},{path:"invoices",component:gt,canActivate:[(0,Q.jn)()]},{path:"lookuptransactions",component:jC,canActivate:[(0,Q.jn)()]}]},{path:"messages",component:zg,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Qg,canActivate:[(0,Q.jn)()]},{path:"verify",component:a4,canActivate:[(0,Q.jn)()]}]},{path:"channelbackup",component:mg,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:Hg,canActivate:[(0,Q.jn)()]},{path:"restore",component:Ig,canActivate:[(0,Q.jn)()]}]},{path:"routing",component:Md,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:jt,canActivate:[(0,Q.jn)()]},{path:"peers",component:m0,canActivate:[(0,Q.jn)()]},{path:"nonroutingprs",component:oC,canActivate:[(0,Q.jn)()]}]},{path:"reports",component:h0,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:x0,canActivate:[(0,Q.jn)()]},{path:"transactions",component:N0,canActivate:[(0,Q.jn)()]}]},{path:"graph",component:Nh,canActivate:[(0,Q.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Lt,canActivate:[(0,Q.jn)()]},{path:"queryroutes",component:rd,canActivate:[(0,Q.jn)()]}]},{path:"lookups",component:Lt,canActivate:[(0,Q.jn)()]},{path:"network",component:cg,canActivate:[(0,Q.jn)()]},{path:"**",component:s4.X},{path:"rates",redirectTo:"network"}]}],DC=le.iI.forChild(GC);var NC=S(9029);let PC=(()=>{var t;class s{static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275mod=e.$C({type:s,bootstrap:[_e]}),this.\u0275inj=r.G2t({imports:[y.MD,NC.G,DC]}))}return t(),s})()},3981(Ze,xe){"use strict";xe.byteLength=function b(L){var q=D(L),p=q[1];return 3*(q[0]+p)/4-p},xe.toByteArray=function _e(L){var q,G,I=D(L),p=I[0],W=I[1],E=new le(function T(L,q,I){return 3*(q+I)/4-I}(0,p,W)),r=0,V=W>0?p-4:p;for(G=0;G>16&255,E[r++]=q>>8&255,E[r++]=255&q;return 2===W&&(q=y[L.charCodeAt(G)]<<2|y[L.charCodeAt(G+1)]>>4,E[r++]=255&q),1===W&&(q=y[L.charCodeAt(G)]<<10|y[L.charCodeAt(G+1)]<<4|y[L.charCodeAt(G+2)]>>2,E[r++]=q>>8&255,E[r++]=255&q),E},xe.fromByteArray=function me(L){for(var q,I=L.length,p=I%3,W=[],E=16383,r=0,V=I-p;rV?V:r+E));return 1===p?W.push(S[(q=L[I-1])>>2]+S[q<<4&63]+"=="):2===p&&W.push(S[(q=(L[I-2]<<8)+L[I-1])>>10]+S[q>>4&63]+S[q<<2&63]+"="),W.join("")};for(var S=[],y=[],le=typeof Uint8Array<"u"?Uint8Array:Array,j="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",re=0;re<64;++re)S[re]=j[re],y[j.charCodeAt(re)]=re;function D(L){var q=L.length;if(q%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var I=L.indexOf("=");return-1===I&&(I=q),[I,I===q?0:4-I%4]}function C(L){return S[L>>18&63]+S[L>>12&63]+S[L>>6&63]+S[63&L]}function x(L,q,I){for(var W=[],E=q;Ee)throw new RangeError('The value "'+u+'" is invalid for option "size"');const c=new Uint8Array(u);return Object.setPrototypeOf(c,T.prototype),c}function T(u,c,m){if("number"==typeof u){if("string"==typeof c)throw new TypeError('The "string" argument must be of type string. Received type number');return me(u)}return _e(u,c,m)}function _e(u,c,m){if("string"==typeof u)return function L(u,c){if(("string"!=typeof c||""===c)&&(c="utf8"),!T.isEncoding(c))throw new TypeError("Unknown encoding: "+c);const m=0|V(u,c);let d=b(m);const F=d.write(u,c);return F!==m&&(d=d.slice(0,F)),d}(u,c);if(ArrayBuffer.isView(u))return function I(u){if(ve(u,Uint8Array)){const c=new Uint8Array(u);return p(c.buffer,c.byteOffset,c.byteLength)}return q(u)}(u);if(null==u)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u);if(ve(u,ArrayBuffer)||u&&ve(u.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ve(u,SharedArrayBuffer)||u&&ve(u.buffer,SharedArrayBuffer)))return p(u,c,m);if("number"==typeof u)throw new TypeError('The "value" argument must not be of type number. Received type number');const d=u.valueOf&&u.valueOf();if(null!=d&&d!==u)return T.from(d,c,m);const F=function W(u){if(T.isBuffer(u)){const c=0|E(u.length),m=b(c);return 0===m.length||u.copy(m,0,0,c),m}return void 0!==u.length?"number"!=typeof u.length||Oe(u.length)?b(0):q(u):"Buffer"===u.type&&Array.isArray(u.data)?q(u.data):void 0}(u);if(F)return F;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof u[Symbol.toPrimitive])return T.from(u[Symbol.toPrimitive]("string"),c,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof u)}function C(u){if("number"!=typeof u)throw new TypeError('"size" argument must be of type number');if(u<0)throw new RangeError('The value "'+u+'" is invalid for option "size"')}function me(u){return C(u),b(u<0?0:0|E(u))}function q(u){const c=u.length<0?0:0|E(u.length),m=b(c);for(let d=0;d=e)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+e.toString(16)+" bytes");return 0|u}function V(u,c){if(T.isBuffer(u))return u.length;if(ArrayBuffer.isView(u)||ve(u,ArrayBuffer))return u.byteLength;if("string"!=typeof u)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof u);const m=u.length,d=arguments.length>2&&!0===arguments[2];if(!d&&0===m)return 0;let F=!1;for(;;)switch(c){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return Me(u).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*m;case"hex":return m>>>1;case"base64":return K(u).length;default:if(F)return d?-1:Me(u).length;c=(""+c).toLowerCase(),F=!0}}function G(u,c,m){let d=!1;if((void 0===c||c<0)&&(c=0),c>this.length||((void 0===m||m>this.length)&&(m=this.length),m<=0)||(m>>>=0)<=(c>>>=0))return"";for(u||(u="utf8");;)switch(u){case"hex":return ne(this,c,m);case"utf8":case"utf-8":return J(this,c,m);case"ascii":return _(this,c,m);case"latin1":case"binary":return O(this,c,m);case"base64":return U(this,c,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,c,m);default:if(d)throw new TypeError("Unknown encoding: "+u);u=(u+"").toLowerCase(),d=!0}}function ce(u,c,m){const d=u[c];u[c]=u[m],u[m]=d}function z(u,c,m,d,F){if(0===u.length)return-1;if("string"==typeof m?(d=m,m=0):m>2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),Oe(m=+m)&&(m=F?0:u.length-1),m<0&&(m=u.length+m),m>=u.length){if(F)return-1;m=u.length-1}else if(m<0){if(!F)return-1;m=0}if("string"==typeof c&&(c=T.from(c,d)),T.isBuffer(c))return 0===c.length?-1:ee(u,c,m,d,F);if("number"==typeof c)return c&=255,"function"==typeof Uint8Array.prototype.indexOf?F?Uint8Array.prototype.indexOf.call(u,c,m):Uint8Array.prototype.lastIndexOf.call(u,c,m):ee(u,[c],m,d,F);throw new TypeError("val must be string, number or Buffer")}function ee(u,c,m,d,F){let ie,v=1,k=u.length,H=c.length;if(void 0!==d&&("ucs2"===(d=String(d).toLowerCase())||"ucs-2"===d||"utf16le"===d||"utf-16le"===d)){if(u.length<2||c.length<2)return-1;v=2,k/=2,H/=2,m/=2}function se(oe,te){return 1===v?oe[te]:oe.readUInt16BE(te*v)}if(F){let oe=-1;for(ie=m;iek&&(m=k-H),ie=m;ie>=0;ie--){let oe=!0;for(let te=0;teF&&(d=F):d=F;const v=c.length;let k;for(d>v/2&&(d=v/2),k=0;k>8,F=m%256,v.push(F),v.push(d);return v}(c,u.length-m),u,m,d)}function U(u,c,m){return le.fromByteArray(0===c&&m===u.length?u:u.slice(c,m))}function J(u,c,m){m=Math.min(u.length,m);const d=[];let F=c;for(;F239?4:v>223?3:v>191?2:1;if(F+H<=m){let se,ie,oe,te;switch(H){case 1:v<128&&(k=v);break;case 2:se=u[F+1],128==(192&se)&&(te=(31&v)<<6|63&se,te>127&&(k=te));break;case 3:se=u[F+1],ie=u[F+2],128==(192&se)&&128==(192&ie)&&(te=(15&v)<<12|(63&se)<<6|63&ie,te>2047&&(te<55296||te>57343)&&(k=te));break;case 4:se=u[F+1],ie=u[F+2],oe=u[F+3],128==(192&se)&&128==(192&ie)&&128==(192&oe)&&(te=(15&v)<<18|(63&se)<<12|(63&ie)<<6|63&oe,te>65535&&te<1114112&&(k=te))}}null===k?(k=65533,H=1):k>65535&&(k-=65536,d.push(k>>>10&1023|55296),k=56320|1023&k),d.push(k),F+=H}return function A(u){const c=u.length;if(c<=X)return String.fromCharCode.apply(String,u);let m="",d=0;for(;dF.length?(T.isBuffer(k)||(k=T.from(k)),k.copy(F,v)):Uint8Array.prototype.set.call(F,k,v);else{if(!T.isBuffer(k))throw new TypeError('"list" argument must be an Array of Buffers');k.copy(F,v)}v+=k.length}return F},T.byteLength=V,T.prototype._isBuffer=!0,T.prototype.swap16=function(){const c=this.length;if(c%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(c+=" ... "),""},re&&(T.prototype[re]=T.prototype.inspect),T.prototype.compare=function(c,m,d,F,v){if(ve(c,Uint8Array)&&(c=T.from(c,c.offset,c.byteLength)),!T.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(void 0===m&&(m=0),void 0===d&&(d=c?c.length:0),void 0===F&&(F=0),void 0===v&&(v=this.length),m<0||d>c.length||F<0||v>this.length)throw new RangeError("out of range index");if(F>=v&&m>=d)return 0;if(F>=v)return-1;if(m>=d)return 1;if(this===c)return 0;let k=(v>>>=0)-(F>>>=0),H=(d>>>=0)-(m>>>=0);const se=Math.min(k,H),ie=this.slice(F,v),oe=c.slice(m,d);for(let te=0;te>>=0,isFinite(d)?(d>>>=0,void 0===F&&(F="utf8")):(F=d,d=void 0)}const v=this.length-m;if((void 0===d||d>v)&&(d=v),c.length>0&&(d<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let k=!1;for(;;)switch(F){case"hex":return Ke(this,c,m,d);case"utf8":case"utf-8":return B(this,c,m,d);case"ascii":case"latin1":case"binary":return Le(this,c,m,d);case"base64":return ke(this,c,m,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e(this,c,m,d);default:if(k)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),k=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const X=4096;function _(u,c,m){let d="";m=Math.min(u.length,m);for(let F=c;Fd)&&(m=d);let F="";for(let v=c;vm)throw new RangeError("Trying to access beyond buffer length")}function $(u,c,m,d,F,v){if(!T.isBuffer(u))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>F||cu.length)throw new RangeError("Index out of range")}function Z(u,c,m,d,F){Xe(c,d,F,u,m,7);let v=Number(c&BigInt(4294967295));u[m++]=v,v>>=8,u[m++]=v,v>>=8,u[m++]=v,v>>=8,u[m++]=v;let k=Number(c>>BigInt(32)&BigInt(4294967295));return u[m++]=k,k>>=8,u[m++]=k,k>>=8,u[m++]=k,k>>=8,u[m++]=k,m}function R(u,c,m,d,F){Xe(c,d,F,u,m,7);let v=Number(c&BigInt(4294967295));u[m+7]=v,v>>=8,u[m+6]=v,v>>=8,u[m+5]=v,v>>=8,u[m+4]=v;let k=Number(c>>BigInt(32)&BigInt(4294967295));return u[m+3]=k,k>>=8,u[m+2]=k,k>>=8,u[m+1]=k,k>>=8,u[m]=k,m+8}function ae(u,c,m,d,F,v){if(m+d>u.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function Re(u,c,m,d,F){return c=+c,m>>>=0,F||ae(u,0,m,4),j.write(u,c,m,d,23,4),m+4}function fe(u,c,m,d,F){return c=+c,m>>>=0,F||ae(u,0,m,8),j.write(u,c,m,d,52,8),m+8}T.prototype.slice=function(c,m){const d=this.length;(c=~~c)<0?(c+=d)<0&&(c=0):c>d&&(c=d),(m=void 0===m?d:~~m)<0?(m+=d)<0&&(m=0):m>d&&(m=d),m>>=0,m>>>=0,d||g(c,m,this.length);let F=this[c],v=1,k=0;for(;++k>>=0,m>>>=0,d||g(c,m,this.length);let F=this[c+--m],v=1;for(;m>0&&(v*=256);)F+=this[c+--m]*v;return F},T.prototype.readUint8=T.prototype.readUInt8=function(c,m){return c>>>=0,m||g(c,1,this.length),this[c]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(c,m){return c>>>=0,m||g(c,2,this.length),this[c]|this[c+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(c,m){return c>>>=0,m||g(c,2,this.length),this[c]<<8|this[c+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(c,m){return c>>>=0,m||g(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+16777216*this[c+3]},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(c,m){return c>>>=0,m||g(c,4,this.length),16777216*this[c]+(this[c+1]<<16|this[c+2]<<8|this[c+3])},T.prototype.readBigUInt64LE=ge(function(c){Ee(c>>>=0,"offset");const m=this[c],d=this[c+7];(void 0===m||void 0===d)&&Ie(c,this.length-8);const F=m+256*this[++c]+65536*this[++c]+this[++c]*2**24,v=this[++c]+256*this[++c]+65536*this[++c]+d*2**24;return BigInt(F)+(BigInt(v)<>>=0,"offset");const m=this[c],d=this[c+7];(void 0===m||void 0===d)&&Ie(c,this.length-8);const F=m*2**24+65536*this[++c]+256*this[++c]+this[++c],v=this[++c]*2**24+65536*this[++c]+256*this[++c]+d;return(BigInt(F)<>>=0,m>>>=0,d||g(c,m,this.length);let F=this[c],v=1,k=0;for(;++k=v&&(F-=Math.pow(2,8*m)),F},T.prototype.readIntBE=function(c,m,d){c>>>=0,m>>>=0,d||g(c,m,this.length);let F=m,v=1,k=this[c+--F];for(;F>0&&(v*=256);)k+=this[c+--F]*v;return v*=128,k>=v&&(k-=Math.pow(2,8*m)),k},T.prototype.readInt8=function(c,m){return c>>>=0,m||g(c,1,this.length),128&this[c]?-1*(255-this[c]+1):this[c]},T.prototype.readInt16LE=function(c,m){c>>>=0,m||g(c,2,this.length);const d=this[c]|this[c+1]<<8;return 32768&d?4294901760|d:d},T.prototype.readInt16BE=function(c,m){c>>>=0,m||g(c,2,this.length);const d=this[c+1]|this[c]<<8;return 32768&d?4294901760|d:d},T.prototype.readInt32LE=function(c,m){return c>>>=0,m||g(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},T.prototype.readInt32BE=function(c,m){return c>>>=0,m||g(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},T.prototype.readBigInt64LE=ge(function(c){Ee(c>>>=0,"offset");const m=this[c],d=this[c+7];return(void 0===m||void 0===d)&&Ie(c,this.length-8),(BigInt(this[c+4]+256*this[c+5]+65536*this[c+6]+(d<<24))<>>=0,"offset");const m=this[c],d=this[c+7];(void 0===m||void 0===d)&&Ie(c,this.length-8);const F=(m<<24)+65536*this[++c]+256*this[++c]+this[++c];return(BigInt(F)<>>=0,m||g(c,4,this.length),j.read(this,c,!0,23,4)},T.prototype.readFloatBE=function(c,m){return c>>>=0,m||g(c,4,this.length),j.read(this,c,!1,23,4)},T.prototype.readDoubleLE=function(c,m){return c>>>=0,m||g(c,8,this.length),j.read(this,c,!0,52,8)},T.prototype.readDoubleBE=function(c,m){return c>>>=0,m||g(c,8,this.length),j.read(this,c,!1,52,8)},T.prototype.writeUintLE=T.prototype.writeUIntLE=function(c,m,d,F){c=+c,m>>>=0,d>>>=0,F||$(this,c,m,d,Math.pow(2,8*d)-1,0);let v=1,k=0;for(this[m]=255&c;++k>>=0,d>>>=0,F||$(this,c,m,d,Math.pow(2,8*d)-1,0);let v=d-1,k=1;for(this[m+v]=255&c;--v>=0&&(k*=256);)this[m+v]=c/k&255;return m+d},T.prototype.writeUint8=T.prototype.writeUInt8=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,1,255,0),this[m]=255&c,m+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,2,65535,0),this[m]=255&c,this[m+1]=c>>>8,m+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,2,65535,0),this[m]=c>>>8,this[m+1]=255&c,m+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,4,4294967295,0),this[m+3]=c>>>24,this[m+2]=c>>>16,this[m+1]=c>>>8,this[m]=255&c,m+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,4,4294967295,0),this[m]=c>>>24,this[m+1]=c>>>16,this[m+2]=c>>>8,this[m+3]=255&c,m+4},T.prototype.writeBigUInt64LE=ge(function(c,m=0){return Z(this,c,m,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=ge(function(c,m=0){return R(this,c,m,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(c,m,d,F){if(c=+c,m>>>=0,!F){const se=Math.pow(2,8*d-1);$(this,c,m,d,se-1,-se)}let v=0,k=1,H=0;for(this[m]=255&c;++v>>=0,!F){const se=Math.pow(2,8*d-1);$(this,c,m,d,se-1,-se)}let v=d-1,k=1,H=0;for(this[m+v]=255&c;--v>=0&&(k*=256);)c<0&&0===H&&0!==this[m+v+1]&&(H=1),this[m+v]=(c/k|0)-H&255;return m+d},T.prototype.writeInt8=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,1,127,-128),c<0&&(c=255+c+1),this[m]=255&c,m+1},T.prototype.writeInt16LE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,2,32767,-32768),this[m]=255&c,this[m+1]=c>>>8,m+2},T.prototype.writeInt16BE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,2,32767,-32768),this[m]=c>>>8,this[m+1]=255&c,m+2},T.prototype.writeInt32LE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,4,2147483647,-2147483648),this[m]=255&c,this[m+1]=c>>>8,this[m+2]=c>>>16,this[m+3]=c>>>24,m+4},T.prototype.writeInt32BE=function(c,m,d){return c=+c,m>>>=0,d||$(this,c,m,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[m]=c>>>24,this[m+1]=c>>>16,this[m+2]=c>>>8,this[m+3]=255&c,m+4},T.prototype.writeBigInt64LE=ge(function(c,m=0){return Z(this,c,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=ge(function(c,m=0){return R(this,c,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeFloatLE=function(c,m,d){return Re(this,c,m,!0,d)},T.prototype.writeFloatBE=function(c,m,d){return Re(this,c,m,!1,d)},T.prototype.writeDoubleLE=function(c,m,d){return fe(this,c,m,!0,d)},T.prototype.writeDoubleBE=function(c,m,d){return fe(this,c,m,!1,d)},T.prototype.copy=function(c,m,d,F){if(!T.isBuffer(c))throw new TypeError("argument should be a Buffer");if(d||(d=0),!F&&0!==F&&(F=this.length),m>=c.length&&(m=c.length),m||(m=0),F>0&&F=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),c.length-m>>=0,d=void 0===d?this.length:d>>>0,c||(c=0),"number"==typeof c)for(v=m;v=d+4;m-=3)c=`_${u.slice(m-3,m)}${c}`;return`${u.slice(0,m)}${c}`}function Xe(u,c,m,d,F,v){if(u>m||u3?0===c||c===BigInt(0)?`>= 0${k} and < 2${k} ** ${8*(v+1)}${k}`:`>= -(2${k} ** ${8*(v+1)-1}${k}) and < 2 ** ${8*(v+1)-1}${k}`:`>= ${c}${k} and <= ${m}${k}`,new pe.ERR_OUT_OF_RANGE("value",H,u)}!function et(u,c,m){Ee(c,"offset"),(void 0===u[c]||void 0===u[c+m])&&Ie(c,u.length-(m+1))}(d,F,v)}function Ee(u,c){if("number"!=typeof u)throw new pe.ERR_INVALID_ARG_TYPE(c,"number",u)}function Ie(u,c,m){throw Math.floor(u)!==u?(Ee(u,m),new pe.ERR_OUT_OF_RANGE(m||"offset","an integer",u)):c<0?new pe.ERR_BUFFER_OUT_OF_BOUNDS:new pe.ERR_OUT_OF_RANGE(m||"offset",`>= ${m?1:0} and <= ${c}`,u)}ye("ERR_BUFFER_OUT_OF_BOUNDS",function(u){return u?`${u} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ye("ERR_INVALID_ARG_TYPE",function(u,c){return`The "${u}" argument must be of type number. Received type ${typeof c}`},TypeError),ye("ERR_OUT_OF_RANGE",function(u,c,m){let d=`The value of "${u}" is out of range.`,F=m;return Number.isInteger(m)&&Math.abs(m)>2**32?F=Ue(String(m)):"bigint"==typeof m&&(F=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(F=Ue(F)),F+="n"),d+=` It must be ${c}. Received ${F}`,d},RangeError);const tt=/[^+/0-9A-Za-z-_]/g;function Me(u,c){let m;c=c||1/0;const d=u.length;let F=null;const v=[];for(let k=0;k55295&&m<57344){if(!F){if(m>56319){(c-=3)>-1&&v.push(239,191,189);continue}if(k+1===d){(c-=3)>-1&&v.push(239,191,189);continue}F=m;continue}if(m<56320){(c-=3)>-1&&v.push(239,191,189),F=m;continue}m=65536+(F-55296<<10|m-56320)}else F&&(c-=3)>-1&&v.push(239,191,189);if(F=null,m<128){if((c-=1)<0)break;v.push(m)}else if(m<2048){if((c-=2)<0)break;v.push(m>>6|192,63&m|128)}else if(m<65536){if((c-=3)<0)break;v.push(m>>12|224,m>>6&63|128,63&m|128)}else{if(!(m<1114112))throw new Error("Invalid code point");if((c-=4)<0)break;v.push(m>>18|240,m>>12&63|128,m>>6&63|128,63&m|128)}}return v}function K(u){return le.toByteArray(function nt(u){if((u=(u=u.split("=")[0]).trim().replace(tt,"")).length<2)return"";for(;u.length%4!=0;)u+="=";return u}(u))}function je(u,c,m,d){let F;for(F=0;F=c.length||F>=u.length);++F)c[F+m]=u[F];return F}function ve(u,c){return u instanceof c||null!=u&&null!=u.constructor&&null!=u.constructor.name&&u.constructor.name===c.name}function Oe(u){return u!=u}const Ge=function(){const u="0123456789abcdef",c=new Array(256);for(let m=0;m<16;++m){const d=16*m;for(let F=0;F<16;++F)c[d+F]=u[m]+u[F]}return c}();function ge(u){return typeof BigInt>"u"?it:u}function it(){throw new Error("BigInt not supported")}},2020(Ze,xe){xe.read=function(S,y,le,j,re){var e,D,b=8*re-j-1,T=(1<>1,C=-7,x=le?re-1:0,me=le?-1:1,L=S[y+x];for(x+=me,e=L&(1<<-C)-1,L>>=-C,C+=b;C>0;e=256*e+S[y+x],x+=me,C-=8);for(D=e&(1<<-C)-1,e>>=-C,C+=j;C>0;D=256*D+S[y+x],x+=me,C-=8);if(0===e)e=1-_e;else{if(e===T)return D?NaN:1/0*(L?-1:1);D+=Math.pow(2,j),e-=_e}return(L?-1:1)*D*Math.pow(2,e-j)},xe.write=function(S,y,le,j,re,e){var D,b,T,_e=8*e-re-1,C=(1<<_e)-1,x=C>>1,me=23===re?Math.pow(2,-24)-Math.pow(2,-77):0,L=j?0:e-1,q=j?1:-1,I=y<0||0===y&&1/y<0?1:0;for(y=Math.abs(y),isNaN(y)||y===1/0?(b=isNaN(y)?1:0,D=C):(D=Math.floor(Math.log(y)/Math.LN2),y*(T=Math.pow(2,-D))<1&&(D--,T*=2),(y+=D+x>=1?me/T:me*Math.pow(2,1-x))*T>=2&&(D++,T/=2),D+x>=C?(b=0,D=C):D+x>=1?(b=(y*T-1)*Math.pow(2,re),D+=x):(b=y*Math.pow(2,x-1)*Math.pow(2,re),D=0));re>=8;S[le+L]=255&b,L+=q,b/=256,re-=8);for(D=D<0;S[le+L]=255&D,L+=q,D/=256,_e-=8);S[le+L-q]|=128*I}}}]); \ No newline at end of file diff --git a/frontend/190.496d0a0b94483d54.js b/frontend/190.496d0a0b94483d54.js deleted file mode 100644 index fd3fd0d5..00000000 --- a/frontend/190.496d0a0b94483d54.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[190],{39190(AC,ut,y){y.d(ut,{LNDModule:()=>NC});var _=y(72200),ie=y(38132),w=y(43694),dt=y(9881),e=y(73664),V=y(67575),f=y(52920);function ht(t,s){1&t&&e.nrm(0,"mat-progress-bar",3)}let Be=(()=>{var t;class s{constructor(i){this.router=i,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof w.Z:this.loading=!0;break;case o instanceof w.wF:case o instanceof w.j5:case o instanceof w.L6:this.loading=!1}})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lnd-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,ht,1,0,"mat-progress-bar",2),e.nrm(2,"router-outlet",null,0),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.loading))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,w.n3],encapsulation:2,data:{animation:[dt.E]}}))}return t(),s})();var h=y(21413),g=y(56977),ge=y(53993),U=y(5964),Oe=y(90614),x=y(45383),c=y(4416),H=y(79647),F=y(63536),r=y(2615),D=y(98570),L=y(59640),K=y(11747),$=y(82571),O=y(20060),_t=y(22598),k=y(25596),Ce=y(82885),oe=y(12629),Se=y(59115),j=y(16038),A=y(96850),G=y(96695),R=y(2042),u=y(19295),E=y(96183),Y=y(51585),T=y(190),d=y(89417),N=y(88834),M=y(33746),C=y(69588),X=y(23029),he=y(30450),ee=y(40455),te=y(89587),ae=y(56114);function ft(t,s){1&t&&(e.j41(0,"span",32),e.EFF(1,"= "),e.k0s())}function gt(t,s){if(1&t&&(e.j41(0,"span",33),e.nrm(1,"fa-icon",34),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Ct(t,s){if(1&t&&e.nrm(0,"span",35),2&t){const n=e.XpG();e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function yt(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(e.bMT(2,2,n))}}function bt(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.invoiceError)}}function Ft(t,s){if(1&t&&(e.j41(0,"div",37),e.nrm(1,"fa-icon",38),e.DNE(2,bt,2,1,"span",39),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.invoiceError)}}let xt=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.store=a,this.decimalPipe=l,this.commonService=p,this.actions=m,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.memo="",this.isAmp=!1,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.timeUnitEnum=c.F7,this.timeUnits=c.SY,this.selTimeUnit=c.F7.SECS,this.invoiceError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"SaveNewInvoice"===i.payload.action&&(this.invoiceError=i.payload.message,i.payload.status===c.wn.ERROR&&(this.invoiceError=i.payload.message),i.payload.status===c.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(i){this.invoiceError="";let o=0;o=this.expiry?this.selTimeUnit!==c.F7.SECS?this.commonService.convertTime(this.expiry,this.selTimeUnit,c.F7.SECS):this.expiry:c.It,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:this.isAmp,pageSize:this.pageSize,openModal:!0}}))}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.isAmp=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=c.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onTimeUnitChange(i){this.expiry&&this.selTimeUnit!==i.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,i.value)),this.selTimeUnit=i.value}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-create-invoices"]],standalone:!1,decls:55,vars:20,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","autoFocus","","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start end"],["matInput","","type","number","name","invoiceValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","24","fxLayoutAlign","start end"],["matInput","","type","number","name","expiry",3,"ngModelChange","step","min","ngModel"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"ml-2"],["fxFlex","49","fxLayoutAlign","start start"],["color","primary","name","private",3,"ngModelChange","ngModel"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["color","primary","name","amp",3,"ngModelChange","ngModel"],["matTooltip","Atomic multipath payment invoice","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Create Invoice"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),e.EFF(13,"Memo"),e.k0s(),e.j41(14,"input",10),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.memo,m)||(a.memo=m),r.Njj(m)}),e.k0s()(),e.j41(15,"mat-form-field",11)(16,"mat-label"),e.EFF(17,"Amount"),e.k0s(),e.j41(18,"input",12),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.invoiceValue,m)||(a.invoiceValue=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onInvoiceValueChange())}),e.k0s(),e.j41(19,"span",13),e.EFF(20,"Sats "),e.k0s(),e.j41(21,"mat-hint",14),e.DNE(22,ft,2,0,"span",15)(23,gt,2,1,"span",16)(24,Ct,1,1,"span",17),e.EFF(25),e.k0s()(),e.j41(26,"mat-form-field",18)(27,"mat-label"),e.EFF(28,"Expiry"),e.k0s(),e.j41(29,"input",19),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.expiry,m)||(a.expiry=m),r.Njj(m)}),e.k0s(),e.j41(30,"span",13),e.EFF(31),e.nI1(32,"titlecase"),e.k0s()(),e.j41(33,"mat-form-field",18)(34,"mat-label"),e.EFF(35,"Time Unit"),e.k0s(),e.j41(36,"mat-select",20),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onTimeUnitChange(m))}),e.DNE(37,yt,3,4,"mat-option",21),e.k0s()(),e.j41(38,"div",22)(39,"div",23)(40,"mat-slide-toggle",24),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.private,m)||(a.private=m),r.Njj(m)}),e.EFF(41,"Private Routing Hints"),e.k0s(),e.j41(42,"mat-icon",25),e.EFF(43,"info_outline"),e.k0s()(),e.j41(44,"div",23)(45,"mat-slide-toggle",26),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Invoice"),e.k0s(),e.j41(47,"mat-icon",27),e.EFF(48,"info_outline"),e.k0s()()(),e.DNE(49,Ft,3,2,"div",28),e.j41(50,"div",29)(51,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(52,"Clear Field"),e.k0s(),e.j41(53,"button",31),e.bIt("click",function(){r.eBV(l);const m=e.sdS(10);return r.Njj(a.onAddInvoice(m))}),e.EFF(54,"Create Invoice"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.R50("ngModel",a.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",a.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"FA"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.Y8G("ngIf",a.convertedCurrency&&"SVG"===a.convertedCurrency.iconType&&""!==a.invoiceValueHint),e.R7$(),e.SpI(" ",a.invoiceValueHint," "),e.R7$(4),e.Y8G("step",a.selTimeUnit===a.timeUnitEnum.SECS?300:a.selTimeUnit===a.timeUnitEnum.MINS?10:a.selTimeUnit===a.timeUnitEnum.HOURS?2:1)("min",1),e.R50("ngModel",a.expiry),e.R7$(2),e.SpI("",e.bMT(32,18,a.selTimeUnit)," "),e.R7$(5),e.Y8G("value",a.selTimeUnit),e.R7$(),e.Y8G("ngForOf",a.timeUnits),e.R7$(3),e.R50("ngModel",a.private),e.R7$(5),e.R50("ngModel",a.isAmp),e.R7$(4),e.Y8G("ngIf",""!==a.invoiceError))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.MV,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ee.oV,te.N,ae.V,_.PV],encapsulation:2}))}return t(),s})();var vt=y(46391),I=y(11771),J=y(52929),B=y(10497);const Tt=()=>["all"],kt=t=>({"error-border":t}),St=()=>["no_invoice"],ye=t=>({"mr-0":t}),re=t=>({width:t}),Rt=t=>({"display-none":t});function Et(t,s){1&t&&(e.j41(0,"span",19),e.EFF(1,"= "),e.k0s())}function It(t,s){if(1&t&&(e.j41(0,"span",20),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Lt(t,s){if(1&t&&e.nrm(0,"span",22),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function wt(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",6,0)(2,"mat-form-field",7)(3,"mat-label"),e.EFF(4,"Memo"),e.k0s(),e.j41(5,"input",8),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.memo,o)||(a.memo=o),r.Njj(o)}),e.k0s()(),e.j41(6,"mat-form-field",9)(7,"mat-label"),e.EFF(8,"Amount"),e.k0s(),e.j41(9,"input",10),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.invoiceValue,o)||(a.invoiceValue=o),r.Njj(o)}),e.bIt("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInvoiceValueChange())}),e.k0s(),e.j41(10,"span",11),e.EFF(11,"Sats "),e.k0s(),e.j41(12,"mat-hint",12),e.DNE(13,Et,2,0,"span",13)(14,It,2,1,"span",14)(15,Lt,1,1,"span",15),e.EFF(16),e.k0s()(),e.j41(17,"div",16)(18,"button",17),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(19,"Clear Field"),e.k0s(),e.j41(20,"button",18),e.bIt("click",function(){r.eBV(n);const o=e.sdS(1),a=e.XpG();return r.Njj(a.onAddInvoice(o))}),e.EFF(21,"Create Invoice"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.memo),e.R7$(4),e.Y8G("step",100)("min",1),e.R50("ngModel",n.invoiceValue),e.R7$(4),e.Y8G("ngIf",""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.invoiceValueHint),e.R7$(),e.SpI(" ",n.invoiceValueHint," ")}}function jt(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openCreateInvoiceModal())}),e.EFF(2,"Create Invoice"),e.k0s()()}}function Gt(t,s){if(1&t&&(e.j41(0,"mat-option",72),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Dt(t,s){1&t&&e.nrm(0,"mat-progress-bar",73)}function Nt(t,s){1&t&&e.nrm(0,"th",74)}function Pt(t,s){if(1&t&&e.nrm(0,"span",80),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function $t(t,s){if(1&t&&e.nrm(0,"span",81),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function At(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Mt(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,ye,n.screenSize===n.screenSizeEnum.XS))}}function Bt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Pt,1,3,"span",76)(2,$t,1,3,"span",77)(3,At,1,3,"span",78)(4,Mt,1,3,"span",79),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","OPEN"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","SETTLED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","ACCEPTED"===(null==n?null:n.state)),e.R7$(),e.Y8G("ngIf","CANCELED"===(null==n?null:n.state))}}function Ot(t,s){1&t&&e.nrm(0,"th",84)}function Vt(t,s){if(1&t&&(e.j41(0,"span",87),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Yt(t,s){if(1&t&&(e.j41(0,"span",88),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faEye)}}function Xt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Vt,2,1,"span",85)(2,Yt,2,1,"span",86),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Ut(t,s){1&t&&e.nrm(0,"th",89)}function Ht(t,s){if(1&t&&(e.j41(0,"span",92),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnToDots)}}function qt(t,s){if(1&t&&(e.j41(0,"span",93),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faArrowsTurnRight)}}function zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Ht,2,1,"span",90)(2,qt,2,1,"span",91),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.is_keysend),e.R7$(),e.Y8G("ngIf",!n.is_keysend)}}function Jt(t,s){1&t&&e.nrm(0,"th",94)}function Qt(t,s){if(1&t&&(e.j41(0,"span",97),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faMoneyBill1)}}function Wt(t,s){if(1&t&&(e.j41(0,"span",98),e.nrm(1,"fa-icon",21),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.faBurst)}}function Zt(t,s){if(1&t&&(e.j41(0,"td",75),e.DNE(1,Qt,2,1,"span",95)(2,Wt,2,1,"span",96),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",!n.is_amp),e.R7$(),e.Y8G("ngIf",n.is_amp)}}function Kt(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Created"),e.k0s())}function en(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm"))}}function tn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Date Settled"),e.k0s())}function nn(t,s){if(1&t&&(e.j41(0,"td",75),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(0!=+(null==n?null:n.settle_date)?e.i5U(2,1,1e3*+(null==n?null:n.settle_date),"dd/MMM/y HH:mm"):"-")}}function an(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Memo"),e.k0s())}function sn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.memo)}}function on(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage"),e.k0s())}function ln(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_preimage)}}function rn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Preimage Hash"),e.k0s())}function cn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.r_hash)}}function pn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Address"),e.k0s())}function mn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_addr)}}function un(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Payment Request"),e.k0s())}function dn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function hn(t,s){1&t&&(e.j41(0,"th",99),e.EFF(1,"Description Hash"),e.k0s())}function _n(t,s){if(1&t&&(e.j41(0,"td",75)(1,"div",100)(2,"span",101),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,re,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function fn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Expiry"),e.k0s())}function gn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.expiry)," ")}}function Cn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"CLTV Expiry"),e.k0s())}function yn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.cltv_expiry)," ")}}function bn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Add Index"),e.k0s())}function Fn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.add_index)," ")}}function xn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Settle Index"),e.k0s())}function vn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.settle_index)," ")}}function Tn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount (Sats)"),e.k0s())}function kn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.value)," ")}}function Sn(t,s){1&t&&(e.j41(0,"th",102),e.EFF(1,"Amount Settled (Sats)"),e.k0s())}function Rn(t,s){if(1&t&&(e.j41(0,"td",75)(1,"span",103),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_paid_sat)," ")}}function En(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",104)(1,"div",105)(2,"mat-select",106),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function In(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",108)(1,"div",105)(2,"mat-select",109),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onInvoiceClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",107),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onRefreshInvoice(o))}),e.EFF(7,"Refresh"),e.k0s()()()()}}function Ln(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No invoice available."),e.k0s())}function wn(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting invoices..."),e.k0s())}function jn(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Gn(t,s){if(1&t&&(e.j41(0,"td",110),e.DNE(1,Ln,2,0,"p",111)(2,wn,2,0,"p",111)(3,jn,2,1,"p",111),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.invoices&&n.invoices.data)||(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Dn(t,s){if(1&t&&e.nrm(0,"tr",112),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Rt,(null==n.invoices?null:n.invoices.data)&&(null==n.invoices||null==n.invoices.data?null:n.invoices.data.length)>0))}}function Nn(t,s){1&t&&e.nrm(0,"tr",113)}function Pn(t,s){1&t&&e.nrm(0,"tr",114)}function $n(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",25)(1,"div",26)(2,"div",27),e.nrm(3,"fa-icon",28),e.j41(4,"span",29),e.EFF(5,"Invoices History"),e.k0s()(),e.j41(6,"div",30)(7,"mat-form-field",31)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,Gt,2,2,"mat-option",33),e.k0s()()(),e.j41(13,"mat-form-field",31)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",34),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",35),e.DNE(18,Dt,1,0,"mat-progress-bar",36),e.j41(19,"table",37,1),e.qex(21,38),e.DNE(22,Nt,1,0,"th",39)(23,Bt,5,4,"td",40),e.bVm(),e.qex(24,41),e.DNE(25,Ot,1,0,"th",42)(26,Xt,3,2,"td",40),e.bVm(),e.qex(27,43),e.DNE(28,Ut,1,0,"th",44)(29,zt,3,2,"td",40),e.bVm(),e.qex(30,45),e.DNE(31,Jt,1,0,"th",46)(32,Zt,3,2,"td",40),e.bVm(),e.qex(33,47),e.DNE(34,Kt,2,0,"th",48)(35,en,3,4,"td",40),e.bVm(),e.qex(36,49),e.DNE(37,tn,2,0,"th",48)(38,nn,3,4,"td",40),e.bVm(),e.qex(39,50),e.DNE(40,an,2,0,"th",48)(41,sn,4,4,"td",40),e.bVm(),e.qex(42,51),e.DNE(43,on,2,0,"th",48)(44,ln,4,4,"td",40),e.bVm(),e.qex(45,52),e.DNE(46,rn,2,0,"th",48)(47,cn,4,4,"td",40),e.bVm(),e.qex(48,53),e.DNE(49,pn,2,0,"th",48)(50,mn,4,4,"td",40),e.bVm(),e.qex(51,54),e.DNE(52,un,2,0,"th",48)(53,dn,4,4,"td",40),e.bVm(),e.qex(54,55),e.DNE(55,hn,2,0,"th",48)(56,_n,4,4,"td",40),e.bVm(),e.qex(57,56),e.DNE(58,fn,2,0,"th",57)(59,gn,4,3,"td",40),e.bVm(),e.qex(60,58),e.DNE(61,Cn,2,0,"th",57)(62,yn,4,3,"td",40),e.bVm(),e.qex(63,59),e.DNE(64,bn,2,0,"th",57)(65,Fn,4,3,"td",40),e.bVm(),e.qex(66,60),e.DNE(67,xn,2,0,"th",57)(68,vn,4,3,"td",40),e.bVm(),e.qex(69,61),e.DNE(70,Tn,2,0,"th",57)(71,kn,4,3,"td",40),e.bVm(),e.qex(72,62),e.DNE(73,Sn,2,0,"th",57)(74,Rn,4,3,"td",40),e.bVm(),e.qex(75,63),e.DNE(76,En,6,0,"th",64)(77,In,8,0,"td",65),e.bVm(),e.qex(78,66),e.DNE(79,Gn,4,3,"td",67),e.bVm(),e.DNE(80,Dn,1,3,"tr",68)(81,Nn,1,0,"tr",69)(82,Pn,1,0,"tr",70),e.k0s(),e.j41(83,"mat-paginator",71),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,Tt).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(2),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.invoices)("ngClass",e.eq3(17,kt,""!==n.errorMessage)),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(19,St)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalInvoices)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ve=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.store=o,this.decimalPipe=a,this.commonService=l,this.datePipe=p,this.actions=m,this.camelCaseWithReplace=v,this.calledFrom="transactions",this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.faHistory=x.Int,this.faArrowsTurnToDots=x.If6,this.faArrowsTurnRight=x.peG,this.faBurst=x.M29,this.faMoneyBill1=x.Ccf,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedInvoiceMemo=null,this.newlyAddedInvoiceValue=null,this.memo="",this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoicesData=[],this.invoices=new u.I6([]),this.information={},this.selFilter="",this.private=!1,this.expiryStep=100,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.firstOffset=-1,this.lastOffset=-1,this.totalInvoices=0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalInvoices=i.listInvoices.total_invoices||0,this.firstOffset=+(i.listInvoices.first_index_offset||-1),this.lastOffset=+(i.listInvoices.last_index_offset||-1),this.invoicesData=i.listInvoices.invoices||[],this.invoicesData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoicesData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&this.invoicesData&&this.sort&&this.paginator&&i.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(i.payload))),this.loadInvoicesTable(this.invoicesData))})}ngAfterViewInit(){this.invoicesData.length>0&&this.loadInvoicesTable(this.invoicesData)}onAddInvoice(i){const o=this.expiry?this.expiry:c.It;this.newlyAddedInvoiceMemo=this.memo,this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.ADD_INVOICE,memo:this.memo,value:this.invoiceValue,private:this.private,expiry:o,is_amp:!1,pageSize:this.pageSize,openModal:!0}})),this.resetData()}onInvoiceClick(i){this.store.dispatch((0,I.xO)({payload:{data:{invoice:i,newlyAdded:!1,component:vt.H}}}))}onRefreshInvoice(i){i&&i.r_hash&&this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!0,paymentHash:Buffer.from(i.r_hash.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}updateInvoicesData(i){this.invoicesData=this.invoicesData?.map(o=>o.r_hash===i.r_hash?i:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.invoices.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.settle_date?this.datePipe.transform(new Date(1e3*i.settle_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"creation_date":case"settle_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"private":a=i?.private?"private":"public";break;case"is_keysend":a=i?.is_keysend?"keysend invoices":"non keysend invoices";break;case"is_amp":a=i?.is_amp?"atomic multi path payment":"non atomic payment";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_keysend"===this.selFilterBy||"is_amp"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadInvoicesTable(i){this.invoices=new u.I6(i?[...i]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.invoices)}resetData(){this.memo="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.previousPageIndex&&i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0),this.store.dispatch((0,T.Do)({payload:{num_max_invoices:i.pageSize,index_offset:a,reversed:o}}))}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,c.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}openCreateInvoiceModal(){this.store.dispatch((0,I.xO)({payload:{data:{pageSize:this.pageSize,component:xt}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_.QX),e.rXU($.h),e.rXU(_.vh),e.rXU(K.En),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-invoices"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end start"],["matInput","","tabindex","1","name","memo",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","type","number","tabindex","2","name","invValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","5",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","is_keysend"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend",4,"matHeaderCellDef"],["matColumnDef","is_amp"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP",4,"matHeaderCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","settle_date"],["matColumnDef","memo"],["matColumnDef","r_preimage"],["matColumnDef","r_hash"],["matColumnDef","payment_addr"],["matColumnDef","payment_request"],["matColumnDef","description_hash"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cltv_expiry"],["matColumnDef","add_index"],["matColumnDef","settle_index"],["matColumnDef","value"],["matColumnDef","amt_paid_sat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","6",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot grey","matTooltip","Open","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Canceled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Open","matTooltipPosition","right",1,"dot","grey",3,"ngClass"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Canceled","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Keysend"],["class","mr-1","matTooltip","Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Non Keysend Invoices","matTooltipPosition","right",4,"ngIf"],["matTooltip","Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["matTooltip","Non Keysend Invoices","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","AMP"],["class","mr-1","matTooltip","Non Atomic Payment","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",4,"ngIf"],["matTooltip","Non Atomic Payment","matTooltipPosition","right",1,"mr-1"],["matTooltip","Atomic Multi Path Payment","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","6"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,wt,22,8,"form",3)(2,jt,3,0,"div",4)(3,$n,84,20,"div",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.yw,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,ae.V,_.QX,_.vh],styles:[".mat-column-state[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%], .mat-column-is_keysend[_ngcontent-%COMP%], .mat-column-is_amp[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();var W=y(96697),Z=y(51534),q=y(9454),ce=y(22628);const An=["paymentReq"];function Mn(t,s){if(1&t&&(e.j41(0,"span",36),e.nrm(1,"fa-icon",37),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function Bn(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(2);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function On(t,s){if(1&t&&(e.j41(0,"mat-hint",33),e.EFF(1),e.DNE(2,Mn,2,1,"span",34)(3,Bn,1,1,"span",35),e.EFF(4),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function Vn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function Yn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.paymentDecodedHint)}}function Xn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment amount is required."),e.k0s())}function Un(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",6)(1,"mat-label"),e.EFF(2,"Amount (Sats)"),e.k0s(),e.j41(3,"input",39,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.paymentAmount,o)||(a.paymentAmount=o),r.Njj(o)}),e.bIt("change",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountChange(o))}),e.k0s(),e.j41(5,"mat-hint"),e.EFF(6,"It is a zero amount invoice, enter amount to be paid."),e.k0s(),e.DNE(7,Xn,2,0,"mat-error",16),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.R50("ngModel",n.paymentAmount),e.R7$(4),e.Y8G("ngIf",!n.paymentAmount)}}function Hn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",null==n?null:n.name," ")}}function qn(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.selFeeLimitType?null:n.selFeeLimitType.placeholder," is required.")}}function zn(t,s){if(1&t&&(e.j41(0,"mat-option",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh((null==n?null:n.remote_alias)||(null==n?null:n.chan_id))}}function Jn(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Channel not found in the list."),e.k0s())}function Qn(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentError)}}function Wn(t,s){if(1&t&&(e.j41(0,"div",41),e.nrm(1,"fa-icon",42),e.DNE(2,Qn,2,1,"span",16),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.paymentError)}}let Zn=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.dialogRef=i,this.store=o,this.logger=a,this.commonService=l,this.decimalPipe=p,this.actions=m,this.dataService=v,this.faExclamationTriangle=x.zpE,this.convertedCurrency=null,this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.showAdvanced=!1,this.activeChannels=[],this.filteredMinAmtActvChannels=[],this.selectedChannelCtrl=new d.hs,this.isAmp=!1,this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.feeLimitTypes=c.nv,this.advancedTitle="Advanced Options",this.paymentError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(a=>{this.activeChannels=a.channels&&a.channels.length?a.channels?.filter(l=>l.active):[],this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND)).subscribe(a=>{a.type===c.QP.SEND_PAYMENT_STATUS_LND&&this.dialogRef.close(),a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SendPayment"===a.payload.action&&(delete this.paymentDecoded.num_satoshis,this.paymentError=a.payload.message)});let i="",o="";this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():l.chan_id?l.chan_id.toLowerCase():"",io?1:0)),this.selectedChannelCtrl.valueChanges.pipe((0,g.Q)(this.unSubs[3])).subscribe(a=>{"string"==typeof a&&(this.filteredMinAmtActvChannels=this.filterChannels())})}filterChannels(){return this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(i=>0===(i.remote_alias?i.remote_alias.toLowerCase():i.chan_id?i.chan_id.toLowerCase():"").indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")&&(i.local_balance||0)>=+(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)):[]}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}onSelectedChannelChanged(){if(this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.length>0&&"string"==typeof this.selectedChannelCtrl.value){const i=this.activeChannels&&this.activeChannels.length?this.activeChannels?.filter(o=>{const a=o.remote_alias?o.remote_alias.toLowerCase():o.chan_id?o.chan_id.toLowerCase():"";return a.length===this.selectedChannelCtrl.value.length&&0===a.indexOf(this.selectedChannelCtrl.value?this.selectedChannelCtrl.value.toLowerCase():"")}):[];i&&i.length>0?(this.selectedChannelCtrl.setValue(i[0]),this.selectedChannelCtrl.setErrors(null)):this.selectedChannelCtrl.setErrors({notfound:!0})}}onSendPayment(){if(this.selectedChannelCtrl.value&&"string"==typeof this.selectedChannelCtrl.value&&this.onSelectedChannelChanged(),!this.paymentRequest||this.zeroAmtInvoice&&(!this.paymentAmount||this.paymentAmount<=0)||"string"==typeof this.selectedChannelCtrl.value)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.onPaymentRequestEntry(this.paymentRequest)}sendPayment(){if(this.selFeeLimitType!==this.feeLimitTypes[0]&&!this.feeLimit)return!0;if(this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis){this.zeroAmtInvoice=!1;const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,+this.paymentDecoded.num_satoshis||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}else{this.zeroAmtInvoice=!0,this.paymentDecoded.num_satoshis=this.paymentAmount?.toString()||"";const i={uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:this.isAmp,amt:this.paymentAmount||0,outgoing_chan_ids:this.selectedChannelCtrl.value?.chan_id?[this.selectedChannelCtrl.value.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.selFeeLimitType.id,this.feeLimit,this.paymentAmount||0),fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:i}))}}onAmountChange(i){delete this.paymentDecoded.num_satoshis}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentAmount=null,this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentRequest&&this.paymentRequest.length>100&&(this.paymentReq.control.setErrors(null),this.zeroAmtInvoice=!1,this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,W.s)(1)).subscribe({next:o=>{this.paymentDecoded=o,this.selectedChannelCtrl.setValue(null),this.onAdvancedPanelToggle(!0,!0),this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.filteredMinAmtActvChannels=this.filterChannels(),this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"BTC",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[4])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(a.OTHER?a.OTHER:0,c.k.OTHER)+") | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None")+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis)+" Sats | Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")):(this.zeroAmtInvoice=!0,this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.paymentDecodedHintPre="Memo: "+(this.paymentDecoded.description?this.paymentDecoded.description:"None"),this.paymentDecodedHintPost="")},error:o=>{this.logger.error(o),this.paymentDecodedHintPre="ERROR: "+o.message,this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})}}))}onAdvancedPanelToggle(i,o){if(i&&!o){const a=this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.remote_alias?this.selectedChannelCtrl.value.remote_alias:this.selectedChannelCtrl.value&&this.selectedChannelCtrl.value.chan_id?this.selectedChannelCtrl.value.chan_id:"";this.advancedTitle="Advanced Options | "+this.selFeeLimitType.name+("none"===this.selFeeLimitType.id?"":": "+this.feeLimit)+(""!==a?" | First Outgoing Channel: "+a:"")}else this.advancedTitle="Advanced Options"}resetData(){this.paymentDecoded={},this.paymentRequest="",this.isAmp=!1,this.selectedChannelCtrl.setValue(null),this.filteredMinAmtActvChannels=this.activeChannels,this.filteredMinAmtActvChannels.length&&this.filteredMinAmtActvChannels.length>0?this.selectedChannelCtrl.enable():this.selectedChannelCtrl.disable(),this.feeLimit=null,this.selFeeLimitType=c.nv[0],this.advancedTitle="Advanced Options",this.zeroAmtInvoice=!1,this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(L.il),e.rXU(D.gP),e.rXU($.h),e.rXU(_.QX),e.rXU(K.En),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-send-payments"]],viewQuery:function(o,a){if(1&o&&e.GBs(An,5),2&o){let l;e.mGM(l=e.lsd())&&(a.paymentReq=l.first)}},standalone:!1,decls:53,vars:22,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["fLmt","ngModel"],["auto","matAutocomplete"],["paymentAmt","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayoutAlign","space-between stretch","fxLayout","column"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","name","paymentRequest","rows","4","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxFlex","100","fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","27","fxLayoutAlign","start end"],["tabindex","5",3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","33"],["matInput","","type","number","name","feeLmt","required","","tabindex","6",3,"ngModelChange","step","min","disabled","ngModel"],["fxLayout","column","fxFlex","37","fxLayoutAlign","start end"],["type","text","aria-label","First Outgoing Channel","matInput","","tabindex","7",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],["fxFlex","25","tabindex","8","color","primary","name","isAmp",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-button","","id","sendBtn","color","primary","tabindex","10",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5,"Send Payment"),e.k0s()(),e.j41(6,"button",10),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0)(11,"mat-form-field",13)(12,"mat-label"),e.EFF(13,"Payment Request"),e.k0s(),e.j41(14,"textarea",14,1),e.bIt("ngModelChange",function(m){return r.eBV(l),r.Njj(a.onPaymentRequestEntry(m))})("matTextareaAutosize",function(){return r.eBV(l),r.Njj(!0)}),e.k0s(),e.DNE(16,On,5,4,"mat-hint",15)(17,Vn,2,0,"mat-error",16)(18,Yn,2,1,"mat-error",16),e.k0s(),e.DNE(19,Un,8,2,"mat-form-field",17),e.j41(20,"mat-expansion-panel",18),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0,!1))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1,!1))}),e.j41(21,"mat-expansion-panel-header")(22,"mat-panel-title")(23,"span"),e.EFF(24),e.k0s()()(),e.j41(25,"div",19)(26,"mat-form-field",20)(27,"mat-label"),e.EFF(28,"Fee Limits"),e.k0s(),e.j41(29,"mat-select",21),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selFeeLimitType,m)||(a.selFeeLimitType=m),r.Njj(m)}),e.DNE(30,Hn,2,2,"mat-option",22),e.k0s()(),e.j41(31,"mat-form-field",23)(32,"mat-label"),e.EFF(33),e.k0s(),e.j41(34,"input",24,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.feeLimit,m)||(a.feeLimit=m),r.Njj(m)}),e.k0s(),e.DNE(36,qn,2,1,"mat-error",16),e.k0s(),e.j41(37,"mat-form-field",25)(38,"mat-label"),e.EFF(39,"First Outgoing Channel"),e.k0s(),e.nrm(40,"input",26),e.j41(41,"mat-autocomplete",27,3),e.bIt("optionSelected",function(){return r.eBV(l),r.Njj(a.onSelectedChannelChanged())}),e.DNE(43,zn,2,2,"mat-option",22),e.k0s(),e.DNE(44,Jn,2,0,"mat-error",16),e.k0s(),e.j41(45,"mat-slide-toggle",28),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isAmp,m)||(a.isAmp=m),r.Njj(m)}),e.EFF(46,"AMP Payment"),e.k0s()()(),e.DNE(47,Wn,3,2,"div",29),e.j41(48,"div",30)(49,"button",31),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(50,"Clear Fields"),e.k0s(),e.j41(51,"button",32),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSendPayment())}),e.EFF(52,"Send Payment"),e.k0s()()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(42);e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(8),e.Y8G("ngModel",a.paymentRequest),e.R7$(2),e.Y8G("ngIf",a.paymentRequest&&""!==a.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!a.paymentRequest),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.decodeError),e.R7$(),e.Y8G("ngIf",a.zeroAmtInvoice),e.R7$(5),e.JRh(a.advancedTitle),e.R7$(5),e.R50("value",a.selFeeLimitType),e.R7$(),e.Y8G("ngForOf",a.feeLimitTypes),e.R7$(3),e.JRh(null==a.selFeeLimitType?null:a.selFeeLimitType.placeholder),e.R7$(),e.Y8G("step",1)("min",0)("disabled",a.selFeeLimitType===a.feeLimitTypes[0]),e.R50("ngModel",a.feeLimit),e.R7$(2),e.Y8G("ngIf",a.selFeeLimitType!==a.feeLimitTypes[0]&&!a.feeLimit),e.R7$(4),e.Y8G("formControl",a.selectedChannelCtrl)("matAutocomplete",p),e.R7$(),e.Y8G("displayWith",a.displayFn),e.R7$(2),e.Y8G("ngForOf",a.filteredMinAmtActvChannels),e.R7$(),e.Y8G("ngIf",null==a.selectedChannelCtrl.errors?null:a.selectedChannelCtrl.errors.notfound),e.R7$(),e.R50("ngModel",a.isAmp),e.R7$(2),e.Y8G("ngIf",""!==a.paymentError)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.l_,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,ce.$3,ce.pN,te.N,ae.V],encapsulation:2}))}return t(),s})();var _e=y(37541);const Kn=["sendPaymentForm"],ei=()=>["all"],ti=t=>({"error-border":t}),ni=()=>["no_payment"],pe=t=>({"mr-0":t}),se=t=>({width:t}),ii=t=>({"display-none":t});function ai(t,s){if(1&t&&(e.j41(0,"span",18),e.nrm(1,"fa-icon",19),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("icon",n.convertedCurrency.symbol)}}function si(t,s){if(1&t&&e.nrm(0,"span",20),2&t){const n=e.XpG(3);e.Y8G("innerHTML",n.convertedCurrency.symbol,e.npT)}}function oi(t,s){if(1&t&&(e.j41(0,"mat-hint",15),e.EFF(1),e.DNE(2,ai,2,1,"span",16)(3,si,1,1,"span",17),e.EFF(4),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI(" ",n.paymentDecodedHintPre," "),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"FA"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",n.convertedCurrency&&"SVG"===n.convertedCurrency.iconType&&""!==n.paymentDecodedHintPre),e.R7$(),e.SpI(" ",n.paymentDecodedHintPost," ")}}function li(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Payment request is required."),e.k0s())}function ri(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),e.EFF(4,"Payment Request"),e.k0s(),e.j41(5,"textarea",9,1),e.bIt("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return r.eBV(n),r.Njj(!0)}),e.k0s(),e.DNE(7,oi,5,4,"mat-hint",10)(8,li,2,0,"mat-error",11),e.k0s(),e.j41(9,"div",12)(10,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendPayment())}),e.EFF(13,"Send Payment"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngModel",n.paymentRequest),e.R7$(2),e.Y8G("ngIf",n.paymentRequest&&""!==n.paymentDecodedHintPre),e.R7$(),e.Y8G("ngIf",!n.paymentRequest)}}function ci(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.openSendPaymentModal())}),e.EFF(2,"Send Payment"),e.k0s()()}}function pi(t,s){if(1&t&&(e.j41(0,"mat-option",76),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function mi(t,s){1&t&&e.nrm(0,"mat-progress-bar",77)}function ui(t,s){1&t&&e.nrm(0,"th",78)}function di(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function hi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function _i(t,s){if(1&t&&(e.j41(0,"td",79),e.DNE(1,di,1,3,"span",80)(2,hi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status))}}function fi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Creation Date"),e.k0s())}function gi(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,1e3*(null==n?null:n.creation_date),"dd/MMM/y HH:mm")," ")}}function Ci(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Hash"),e.k0s())}function yi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash)}}function bi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Request"),e.k0s())}function Fi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request)}}function xi(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Payment Preimage"),e.k0s())}function vi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage)}}function Ti(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description"),e.k0s())}function ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description)}}function Si(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Description Hash"),e.k0s())}function Ri(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",85)(2,"span",86),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash)}}function Ei(t,s){1&t&&(e.j41(0,"th",84),e.EFF(1,"Failure Reason"),e.k0s())}function Ii(t,s){if(1&t&&(e.j41(0,"td",79),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.brH(2,1,null==n?null:n.failure_reason,"failure_reason","_")," ")}}function Li(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Payment Index"),e.k0s())}function wi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.payment_index))}}function ji(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Fee (Sats)"),e.k0s())}function Gi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.fee))}}function Di(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Value (Sats)"),e.k0s())}function Ni(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.value))}}function Pi(t,s){1&t&&(e.j41(0,"th",87),e.EFF(1,"Hops"),e.k0s())}function $i(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",88),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh((null==n||null==n.htlcs[0]||null==n.htlcs[0].route||null==n.htlcs[0].route.hops?null:n.htlcs[0].route.hops.length)||0)}}function Ai(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",89)(1,"div",90)(2,"mat-select",91),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",92),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Mi(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",93)(1,"button",94),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onPaymentClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Bi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No payment available."),e.k0s())}function Oi(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting payments..."),e.k0s())}function Vi(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Yi(t,s){if(1&t&&(e.j41(0,"td",95),e.DNE(1,Bi,2,0,"p",11)(2,Oi,2,0,"p",11)(3,Vi,2,1,"p",11),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.payments&&n.payments.data)||(null==n.payments||null==n.payments.data?null:n.payments.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Xi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Ui(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function Hi(t,s){if(1&t&&e.nrm(0,"span",82),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function qi(t,s){if(1&t&&e.nrm(0,"span",83),2&t){const n=e.XpG(5);e.Y8G("ngClass",e.eq3(1,pe,n.screenSize===n.screenSizeEnum.XS))}}function zi(t,s){if(1&t&&(e.j41(0,"span",96),e.DNE(1,Hi,1,3,"span",80)(2,qi,1,3,"span",81),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf","SUCCEEDED"===n.status),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==n.status)}}function Ji(t,s){if(1&t&&(e.qex(0),e.DNE(1,zi,3,2,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Qi(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.DNE(2,Xi,1,3,"span",80)(3,Ui,1,3,"span",81),e.k0s(),e.DNE(4,Ji,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.Y8G("ngIf","SUCCEEDED"===(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf","SUCCEEDED"!==(null==n?null:n.status)),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Wi(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,n.attempt_time_ns/1e6,"dd/MMM/y HH:mm")," ")}}function Zi(t,s){if(1&t&&(e.qex(0),e.DNE(1,Wi,3,4,"span",97),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ki(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.k0s(),e.DNE(3,Zi,2,1,"ng-container",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Total Attempts: ",null==n||null==n.htlcs?null:n.htlcs.length," "),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ea(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.index;e.R7$(),e.SpI(" HTLC ",n+1," ")}}function ta(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ea,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function na(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,ta,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ia(t,s){1&t&&e.nrm(0,"span",96)}function aa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ia,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,aa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_request),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function oa(t,s){if(1&t&&(e.j41(0,"span",96),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.preimage," ")}}function la(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,oa,2,1,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ra(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,la,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.payment_preimage),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ca(t,s){1&t&&e.nrm(0,"span",96)}function pa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ca,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ma(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,pa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function ua(t,s){1&t&&e.nrm(0,"span",96)}function da(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,ua,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ha(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",98)(2,"span",86),e.EFF(3),e.k0s()(),e.DNE(4,da,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(3,se,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.description_hash),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function _a(t,s){1&t&&e.nrm(0,"span",96)}function fa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,_a,1,0,"span",97),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ga(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",96),e.EFF(2),e.nI1(3,"camelcaseWithReplace"),e.k0s(),e.DNE(4,fa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.brH(3,2,null==n?null:n.failure_reason,"failure_reason","_")," "),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ca(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,n.attempt_id)," ")}}function ya(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ca,3,3,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ba(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ya,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,2,null==n?null:n.payment_index)),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Fa(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_fees,"1.0-0")," ")}}function xa(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Fa,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function va(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,xa,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.fee,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ta(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n.route?null:n.route.total_amt,"1.0-0")," ")}}function ka(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ta,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Sa(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.DNE(4,ka,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.i5U(3,2,null==n?null:n.value,"1.0-0")),e.R7$(2),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ra(t,s){if(1&t&&(e.j41(0,"span",99),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,(null==n.route||null==n.route.hops?null:n.route.hops.length)||0,"1.0-0")," ")}}function Ea(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ra,3,4,"span",100),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function Ia(t,s){if(1&t&&(e.j41(0,"td",79)(1,"span",99),e.EFF(2,"-"),e.k0s(),e.DNE(3,Ea,2,1,"span",11),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function La(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",104)(1,"button",105),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function wa(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,La,3,1,"div",103),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.htlcs)}}function ja(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",79)(1,"span",101)(2,"button",102),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!(null!=o&&o.is_expanded))}),e.EFF(3),e.k0s()(),e.DNE(4,wa,2,1,"div",11),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(null!=n&&n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",null==n?null:n.is_expanded)}}function Ga(t,s){1&t&&e.nrm(0,"tr",106)}function Da(t,s){if(1&t&&e.nrm(0,"tr",107),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,ii,(null==n.payments?null:n.payments.data)&&(null==n.payments||null==n.payments.data?null:n.payments.data.length)>0))}}function Na(t,s){1&t&&e.nrm(0,"tr",108)}function Pa(t,s){1&t&&e.nrm(0,"tr",106)}function $a(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",23)(1,"div",24)(2,"div",25),e.nrm(3,"fa-icon",26),e.j41(4,"span",27),e.EFF(5,"Payments History"),e.k0s()(),e.j41(6,"div",28)(7,"mat-form-field",29)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",30),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,pi,2,2,"mat-option",31),e.k0s()()(),e.j41(13,"mat-form-field",29)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",32),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()(),e.j41(17,"div",33)(18,"div",34),e.DNE(19,mi,1,0,"mat-progress-bar",35),e.j41(20,"table",36,2),e.qex(22,37),e.DNE(23,ui,1,0,"th",38)(24,_i,3,2,"td",39),e.bVm(),e.qex(25,40),e.DNE(26,fi,2,0,"th",41)(27,gi,3,4,"td",39),e.bVm(),e.qex(28,42),e.DNE(29,Ci,2,0,"th",41)(30,yi,4,4,"td",39),e.bVm(),e.qex(31,43),e.DNE(32,bi,2,0,"th",41)(33,Fi,4,4,"td",39),e.bVm(),e.qex(34,44),e.DNE(35,xi,2,0,"th",41)(36,vi,4,4,"td",39),e.bVm(),e.qex(37,45),e.DNE(38,Ti,2,0,"th",41)(39,ki,4,4,"td",39),e.bVm(),e.qex(40,46),e.DNE(41,Si,2,0,"th",41)(42,Ri,4,4,"td",39),e.bVm(),e.qex(43,47),e.DNE(44,Ei,2,0,"th",41)(45,Ii,3,5,"td",39),e.bVm(),e.qex(46,48),e.DNE(47,Li,2,0,"th",49)(48,wi,4,3,"td",39),e.bVm(),e.qex(49,50),e.DNE(50,ji,2,0,"th",49)(51,Gi,4,3,"td",39),e.bVm(),e.qex(52,51),e.DNE(53,Di,2,0,"th",49)(54,Ni,4,3,"td",39),e.bVm(),e.qex(55,52),e.DNE(56,Pi,2,0,"th",49)(57,$i,3,1,"td",39),e.bVm(),e.qex(58,53),e.DNE(59,Ai,6,0,"th",54)(60,Mi,3,0,"td",55),e.bVm(),e.qex(61,56),e.DNE(62,Yi,4,3,"td",57),e.bVm(),e.qex(63,58),e.DNE(64,Qi,5,3,"td",39),e.bVm(),e.qex(65,59),e.DNE(66,Ki,4,2,"td",39),e.bVm(),e.qex(67,60),e.DNE(68,na,5,5,"td",39),e.bVm(),e.qex(69,61),e.DNE(70,sa,5,5,"td",39),e.bVm(),e.qex(71,62),e.DNE(72,ra,5,5,"td",39),e.bVm(),e.qex(73,63),e.DNE(74,ma,5,5,"td",39),e.bVm(),e.qex(75,64),e.DNE(76,ha,5,5,"td",39),e.bVm(),e.qex(77,65),e.DNE(78,ga,5,6,"td",39),e.bVm(),e.qex(79,66),e.DNE(80,ba,5,4,"td",39),e.bVm(),e.qex(81,67),e.DNE(82,va,5,5,"td",39),e.bVm(),e.qex(83,68),e.DNE(84,Sa,5,5,"td",39),e.bVm(),e.qex(85,69),e.DNE(86,Ia,4,1,"td",39),e.bVm(),e.qex(87,70),e.DNE(88,ja,5,2,"td",39),e.bVm(),e.DNE(89,Ga,1,0,"tr",71)(90,Da,1,3,"tr",72)(91,Na,1,0,"tr",73)(92,Pa,1,0,"tr",74),e.k0s(),e.j41(93,"mat-paginator",75),e.bIt("page",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onPageChange(o))}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("icon",n.faHistory),e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(18,ei).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter),e.R7$(3),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.payments)("ngClass",e.eq3(19,ti,""!==n.errorMessage)),e.R7$(69),e.Y8G("matRowDefColumns",n.htlcColumns)("matRowDefWhen",n.is_group),e.R7$(),e.Y8G("matFooterRowDef",e.lJ4(21,ni)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("length",n.totalPayments)("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let Ye=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.datePipe=v,this.camelCaseWithReplace=b,this.calledFrom="transactions",this.faHistory=x.Int,this.convertedCurrency=null,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:c.md,sortBy:"creation_date",sortOrder:c.oi.DESCENDING},this.newlyAddedPayment="",this.information={},this.peers=[],this.payments=new u.I6([]),this.totalPayments=100,this.paymentJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.firstOffset=-1,this.lastOffset=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.peers=i.peers}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.htlcColumns=[],this.displayedColumns.map(o=>this.htlcColumns.push("group_"+o)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.KT).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=i.listPayments.payments||[],this.totalPayments=this.paymentJSONArr.length,this.firstOffset=+(i.listPayments.first_index_offset||-1),this.lastOffset=+(i.listPayments.last_index_offset||-1),this.paymentJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize)),this.logger.info(i)})}ngAfterViewInit(){this.paymentJSONArr&&this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr.slice(0,this.pageSize))}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp?(this.paymentDecoded.num_satoshis=this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis?(+this.paymentDecoded.num_msat/1e3).toString():"0",this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.payment_hash||"",this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis&&""!==this.paymentDecoded.num_satoshis&&"0"!==this.paymentDecoded.num_satoshis?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:c.UN.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.num_satoshis,title:"Amount (Sats)",width:50,type:c.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(o=>{o&&(this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"destination",value:this.paymentDecoded.destination,title:"Destination",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:c.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:c.UN.NUMBER},{key:"cltv_expiry",value:this.paymentDecoded.cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,getInputs:[{placeholder:"Amount (Sats)",inputType:c.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,W.s)(1)).subscribe(a=>{a&&(this.paymentDecoded.num_satoshis=a[0].inputValue,this.store.dispatch((0,T.Fd)({payload:{uiMessage:c.MZ.SEND_PAYMENT,payment_request:this.paymentRequest,amp:!1,amt:a[0].inputValue,fromDialog:!1}})),this.resetData())}))}openSendPaymentModal(){this.store.dispatch((0,I.xO)({payload:{data:{component:Zn}}}))}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.s)(1)).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.num_msat&&!this.paymentDecoded.num_satoshis&&(this.paymentDecoded.num_satoshis=(+this.paymentDecoded.num_msat/1e3).toString()),this.paymentDecoded.num_satoshis?this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.num_satoshis,c.BQ.SATS,c.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,g.Q)(this.unSubs[6])).subscribe({next:a=>{this.convertedCurrency=a,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,c.k.OTHER)+") | Memo: "+this.paymentDecoded.description},error:a=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.num_satoshis?this.paymentDecoded.num_satoshis:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}onPageChange(i){let o=!0,a=this.lastOffset;this.pageSize=i.pageSize,0===i.pageIndex?(o=!0,a=0):i.pageIndexi.previousPageIndex&&i.length>(i.pageIndex+1)*i.pageSize?(o=!0,a=this.firstOffset):i.length<=(i.pageIndex+1)*i.pageSize&&(o=!1,a=0);const l=i.pageIndex*this.pageSize;this.loadPaymentsTable(this.paymentJSONArr.slice(l,l+this.pageSize))}is_group(i,o){return o.htlcs&&o.htlcs.length>1}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}getHopDetails(i){const o=this;return new Promise((a,l)=>{const p=o.peers.find(m=>m.pub_key===i.pub_key);p&&p.alias?a("
Channel: "+p.alias.padEnd(20)+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"):o.dataService.getAliasesFromPubkeys(i.pub_key||"",!1).pipe((0,g.Q)(o.unSubs[7])).subscribe({next:m=>a("
Channel: "+(m.node&&m.node.alias?m.node.alias.padEnd(20):i.pub_key?.substring(0,17)+"...")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
"),error:m=>a("
Channel: "+(i.pub_key?i.pub_key?.substring(0,17)+"...":"")+"			Amount (Sats): "+o.decimalPipe.transform(i.amt_to_forward)+"
")})})}onHTLCClick(i,o){o.payment_request&&""!==o.payment_request.trim()?this.dataService.decodePayment(o.payment_request,!1).pipe((0,W.s)(1)).subscribe({next:a=>{setTimeout(()=>{this.showHTLCView(i,o,a)},0)},error:a=>{this.showHTLCView(i,o)}}):this.showHTLCView(i,o)}showHTLCView(i,o,a){i.route&&i.route.hops&&i.route.hops.length?Promise.all(i.route.hops.map(l=>this.getHopDetails(l))).then(l=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,l),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}):this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:this.prepareData(i,o,a,[]),scrollable:i.route&&i.route.hops&&i.route.hops.length>1}}}))}prepareData(i,o,a,l){const p=[[{key:"payment_hash",value:o.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"preimage",value:i.preimage,title:"Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:o.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:33,type:c.UN.STRING},{key:"attempt_time_ns",value:+(i.attempt_time_ns||0)/1e9,title:"Attempt Time",width:33,type:c.UN.DATE_TIME},{key:"resolve_time_ns",value:+(i.resolve_time_ns||0)/1e9,title:"Resolve Time",width:34,type:c.UN.DATE_TIME}],[{key:"total_amt",value:i.route?.total_amt,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"total_fees",value:i.route?.total_fees,title:"Fee (Sats)",width:33,type:c.UN.NUMBER},{key:"total_time_lock",value:i.route?.total_time_lock,title:"Total Time Lock",width:34,type:c.UN.NUMBER}],[{key:"hops",value:l,title:"Hops",width:100,type:c.UN.ARRAY}]];return a&&a.description&&""!==a.description&&p.splice(3,0,[{key:"description",value:a.description,title:"Description",width:100,type:c.UN.STRING}]),p}onPaymentClick(i){if(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>0){const o=i.htlcs[0].route.hops?.reduce((a,l)=>l.pub_key&&""===a?l.pub_key:a+","+l.pub_key,"");this.dataService.getAliasesFromPubkeys(o,!0).pipe((0,g.Q)(this.unSubs[8])).subscribe(a=>{this.showPaymentView(i,a?.reduce((l,p)=>""===l?p:l+"\n"+p,""))})}else this.showPaymentView(i,"")}showPaymentView(i,o){const a=[[{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:c.UN.STRING}],[{key:"payment_preimage",value:i.payment_preimage,title:"Payment Preimage",width:100,type:c.UN.STRING}],[{key:"payment_request",value:i.payment_request,title:"Payment Request",width:100,type:c.UN.STRING}],[{key:"status",value:i.status,title:"Status",width:50,type:c.UN.STRING},{key:"creation_date",value:i.creation_date,title:"Creation Date",width:50,type:c.UN.DATE_TIME}],[{key:"value_msat",value:i.value_msat,title:"Value (mSats)",width:50,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:50,type:c.UN.NUMBER}],[{key:"path",value:o,title:"Path",width:100,type:c.UN.STRING}]];i.payment_request&&""!==i.payment_request.trim()?this.dataService.decodePayment(i.payment_request,!1).pipe((0,W.s)(1)).subscribe(l=>{l&&l.description&&""!==l.description&&a.splice(3,0,[{key:"description",value:l.description,title:"Description",width:100,type:c.UN.STRING}]),setTimeout(()=>{this.openPaymentAlert(a,!!(i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length>1))},0)}):this.openPaymentAlert(a,!1)}openPaymentAlert(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Payment Information",message:i,scrollable:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.payments.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.creation_date?this.datePipe.transform(new Date(1e3*i.creation_date),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"status":case"group_status":a="SUCCEEDED"===i?.status?"succeeded":"failed";break;case"creation_date":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"failure_reason":case"group_failure_reason":a=this.camelCaseWithReplace.transform(i.failure_reason||"","failure_reason","_").trim().toLowerCase();break;case"hops":a=i.htlcs&&i.htlcs[0]&&i.htlcs[0].route&&i.htlcs[0].route.hops&&i.htlcs[0].route.hops.length?i.htlcs[0].route.hops.length.toString():"0";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"failure_reason"===this.selFilterBy||"group_failure_reason"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPaymentsTable(i){this.payments=new u.I6(i?[...i]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,a)=>"hops"===a?o.htlcs.length&&o.htlcs[0]&&o.htlcs[0].route&&o.htlcs[0].route.hops&&o.htlcs[0].route.hops.length?o.htlcs[0].route.hops.length:0:o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const i=JSON.parse(JSON.stringify(this.payments.data)),o=i?.reduce((a,l)=>(l.payment_request&&""!==l.payment_request.trim()&&(a=""===a?l.payment_request:a+","+l.payment_request),a),"");this.dataService.decodePayments(o).pipe((0,g.Q)(this.unSubs[9])).subscribe(a=>{let l=0;a.forEach((m,v)=>{if(m){for(;i[v+l].payment_hash!==m.payment_hash;)l+=1;i[v+l].description=m.description}});const p=i?.reduce((m,v)=>m.concat(v),[]);this.commonService.downloadFile(p,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lightning-payments"]],viewQuery:function(o,a){if(1&o&&(e.GBs(Kn,5),e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","4",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","creation_date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","payment_hash"],["matColumnDef","payment_request"],["matColumnDef","payment_preimage"],["matColumnDef","description"],["matColumnDef","description_hash"],["matColumnDef","failure_reason"],["matColumnDef","payment_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fee"],["matColumnDef","value"],["matColumnDef","hops"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_status"],["matColumnDef","group_creation_date"],["matColumnDef","group_payment_hash"],["matColumnDef","group_payment_request"],["matColumnDef","group_payment_preimage"],["matColumnDef","group_description"],["matColumnDef","group_description_hash"],["matColumnDef","group_failure_reason"],["matColumnDef","group_payment_index"],["matColumnDef","group_fee"],["matColumnDef","group_value"],["matColumnDef","group_hops"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"page","length","pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Succeeded","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Failed","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Succeeded","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Failed","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",3),e.DNE(1,ri,14,3,"form",4)(2,ci,3,0,"div",5)(3,$a,94,22,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf","home"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom),e.R7$(),e.Y8G("ngIf","transactions"===a.calledFrom))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,_.vh,J.VD],styles:[".mat-column-status[_ngcontent-%COMP%], .mat-column-group_status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_status[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type), .mat-column-group_creation_date[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.htlc-row-span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{margin-top:-.3rem;position:absolute}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:11rem}"]}))}return t(),s})();const Xe=t=>({backgroundColor:t});function Aa(t,s){if(1&t&&e.nrm(0,"span",8),2&t){const n=e.XpG();e.Y8G("ngStyle",e.eq3(1,Xe,null==n.information?null:n.information.color))}}function Ma(t,s){if(1&t&&(e.j41(0,"div")(1,"h4",1),e.EFF(2,"Color"),e.k0s(),e.j41(3,"div",2),e.nrm(4,"span",9),e.EFF(5),e.nI1(6,"uppercase"),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.Y8G("ngStyle",e.eq3(4,Xe,null==n.information?null:n.information.color)),e.R7$(),e.SpI(" ",e.bMT(6,2,null==n.information?null:n.information.color)," ")}}function Ba(t,s){1&t&&e.nrm(0,"span",10)}function Oa(t,s){1&t&&e.nrm(0,"span",11)}function Va(t,s){if(1&t&&(e.j41(0,"span",2),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}let Ue=(()=>{var t;class s{constructor(i){this.commonService=i,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(i=>{this.chains.push(this.commonService.titleCase(i.chain)+" "+this.commonService.titleCase(i.network))}))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[e.OA$],decls:19,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","dot green mr-1","matTooltip","Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","dot red mr-1","matTooltip","Not Synced to Chain","matTooltipPosition","right",4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"],["matTooltip","Synced to Chain","matTooltipPosition","right",1,"dot","green","mr-1"],["matTooltip","Not Synced to Chain","matTooltipPosition","right",1,"dot","red","mr-1"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div")(2,"h4",1),e.EFF(3,"Alias"),e.k0s(),e.j41(4,"div",2),e.EFF(5),e.DNE(6,Aa,1,3,"span",3),e.k0s()(),e.DNE(7,Ma,7,6,"div",4),e.j41(8,"div")(9,"h4",1),e.EFF(10,"Implementation"),e.k0s(),e.j41(11,"div",2),e.EFF(12),e.k0s()(),e.j41(13,"div")(14,"h4",1),e.EFF(15,"Chain"),e.k0s(),e.DNE(16,Ba,1,0,"span",5)(17,Oa,1,0,"span",6)(18,Va,2,1,"span",7),e.k0s()()),2&o&&(e.R7$(5),e.SpI(" ",null==a.information?null:a.information.alias," "),e.R7$(),e.Y8G("ngIf",!a.showColorFieldSeparately),e.R7$(),e.Y8G("ngIf",a.showColorFieldSeparately),e.R7$(5),e.JRh(null!=a.information&&a.information.lnImplementation||null!=a.information&&a.information.version?(null==a.information?null:a.information.lnImplementation)+" "+(null==a.information?null:a.information.version):""),e.R7$(4),e.Y8G("ngIf",null==a.information?null:a.information.synced_to_chain),e.R7$(),e.Y8G("ngIf",!(null!=a.information&&a.information.synced_to_chain)),e.R7$(),e.Y8G("ngForOf",a.chains))},dependencies:[_.Sq,_.bT,_.B3,f.DJ,f.sA,f.UI,j.eI,ee.oV,_.Pc],encapsulation:2}))}return t(),s})();function Ya(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div")(2,"h4",3),e.EFF(3,"Lightning"),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",5),e.k0s(),e.j41(8,"div")(9,"h4",3),e.EFF(10,"On-chain"),e.k0s(),e.j41(11,"div",4),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.nrm(14,"mat-progress-bar",5),e.k0s(),e.j41(15,"div")(16,"h4",3),e.EFF(17,"Total"),e.k0s(),e.j41(18,"div",4),e.EFF(19),e.nI1(20,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,7,null==n.balances?null:n.balances.lightning)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.lightning)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(13,9,null==n.balances?null:n.balances.onchain)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ((null==n.balances?null:n.balances.onchain)/(null==n.balances?null:n.balances.total)*100)),e.R7$(5),e.SpI("",e.bMT(20,11,null==n.balances?null:n.balances.total)," Sats")}}function Xa(t,s){if(1&t&&(e.j41(0,"div",6)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Ua=(()=>{var t;class s{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ya,21,13,"div",1)(1,Xa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function Ha(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Daily"),e.k0s(),e.j41(5,"div",5),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div")(9,"h4",4),e.EFF(10,"Weekly"),e.k0s(),e.j41(11,"div",5),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div")(15,"h4",4),e.EFF(16,"Monthly"),e.k0s(),e.j41(17,"div",5),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",6),e.nrm(21,"h4",7)(22,"span",5),e.k0s()(),e.j41(23,"div",3)(24,"div")(25,"h4",4),e.EFF(26,"Transactions"),e.k0s(),e.j41(27,"div",5),e.EFF(28),e.nI1(29,"number"),e.k0s()(),e.j41(30,"div")(31,"h4",4),e.EFF(32,"Transactions"),e.k0s(),e.j41(33,"div",5),e.EFF(34),e.nI1(35,"number"),e.k0s()(),e.j41(36,"div")(37,"h4",4),e.EFF(38,"Transactions"),e.k0s(),e.j41(39,"div",5),e.EFF(40),e.nI1(41,"number"),e.k0s()(),e.j41(42,"div",6),e.nrm(43,"h4",7)(44,"span",5),e.k0s()()()),2&t){const n=e.XpG();e.R7$(6),e.SpI("",e.bMT(7,6,null==n.fees?null:n.fees.day_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(13,8,null==n.fees?null:n.fees.week_fee_sum)," Sats"),e.R7$(6),e.SpI("",e.bMT(19,10,null==n.fees?null:n.fees.month_fee_sum)," Sats"),e.R7$(10),e.JRh(e.bMT(29,12,null==n.fees?null:n.fees.daily_tx_count)),e.R7$(6),e.JRh(e.bMT(35,14,null==n.fees?null:n.fees.weekly_tx_count)),e.R7$(6),e.JRh(e.bMT(41,16,null==n.fees?null:n.fees.monthly_tx_count))}}function qa(t,s){if(1&t&&(e.j41(0,"div",8)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let He=(()=>{var t;class s{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){if(this.fees.month_fee_sum){this.totalFees=[{name:"Monthly",value:this.fees.month_fee_sum},{name:"Weekly",value:this.fees.week_fee_sum||0},{name:"Daily ",value:this.fees.day_fee_sum||0}];const o=10**(Math.ceil(Math.log(this.fees.month_fee_sum+1)/Math.LN10)-1);this.maxFeeValue=Math.ceil(this.fees.month_fee_sum/o)*o/5||100,Object.assign(this,this.totalFees)}else this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100,Object.assign(this,this.totalFees)}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,features:[e.OA$],decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"],[1,"dashboard-info-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,Ha,45,18,"div",1)(1,qa,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();function za(t,s){if(1&t&&(e.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),e.EFF(4,"Active"),e.k0s(),e.j41(5,"div",5),e.nrm(6,"span",6),e.EFF(7),e.nI1(8,"number"),e.k0s()(),e.j41(9,"div")(10,"h4",4),e.EFF(11,"Pending"),e.k0s(),e.j41(12,"div",5),e.nrm(13,"span",7),e.EFF(14),e.nI1(15,"number"),e.k0s()(),e.j41(16,"div")(17,"h4",4),e.EFF(18,"Inactive"),e.k0s(),e.j41(19,"div",5),e.nrm(20,"span",8),e.EFF(21),e.nI1(22,"number"),e.k0s()(),e.j41(23,"div")(24,"h4",4),e.EFF(25,"Closing"),e.k0s(),e.j41(26,"div",5),e.nrm(27,"span",9),e.EFF(28),e.nI1(29,"number"),e.k0s()()(),e.j41(30,"div",3)(31,"div")(32,"h4",4),e.EFF(33,"Capacity"),e.k0s(),e.j41(34,"div",5),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div")(38,"h4",4),e.EFF(39,"Capacity"),e.k0s(),e.j41(40,"div",5),e.EFF(41),e.nI1(42,"number"),e.k0s()(),e.j41(43,"div")(44,"h4",4),e.EFF(45,"Capacity"),e.k0s(),e.j41(46,"div",5),e.EFF(47),e.nI1(48,"number"),e.k0s()(),e.j41(49,"div")(50,"h4",4),e.EFF(51,"Capacity"),e.k0s(),e.j41(52,"div",5),e.EFF(53),e.nI1(54,"number"),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(7),e.JRh(e.bMT(8,8,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(15,10,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(22,12,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.num_channels)||0)),e.R7$(7),e.JRh(e.bMT(29,14,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.num_channels)||0)),e.R7$(7),e.SpI("",e.bMT(36,16,(null==n.channelsStatus||null==n.channelsStatus.active?null:n.channelsStatus.active.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(42,18,(null==n.channelsStatus||null==n.channelsStatus.pending?null:n.channelsStatus.pending.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(48,20,(null==n.channelsStatus||null==n.channelsStatus.inactive?null:n.channelsStatus.inactive.capacity)||0)," Sats"),e.R7$(6),e.SpI("",e.bMT(54,22,(null==n.channelsStatus||null==n.channelsStatus.closing?null:n.channelsStatus.closing.capacity)||0)," Sats")}}function Ja(t,s){if(1&t&&(e.j41(0,"div",10)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let qe=(()=>{var t;class s{constructor(){this.channelsStatus={}}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],[1,"dot","tiny-dot","red"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,za,55,24,"div",1)(1,Ja,3,1,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf"," "===a.errorMessage)("ngIfElse",l)}},dependencies:[_.bT,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var ne=y(71997);const Qa=()=>["../connections/channels/open"],Wa=(t,s)=>({filterColumn:t,filterValue:s});function Za(t,s){if(1&t&&(e.j41(0,"div",19)(1,"a",20),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",22),e.nrm(11,"fa-icon",23),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",24)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",25),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(24,Qa))("state",e.l_i(25,Wa,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,14,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(6),e.SpI("",e.bMT(9,18,n.local_balance||0)," Sats"),e.R7$(3),e.Y8G("icon",i.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,20,n.balancedness||0),") "),e.R7$(5),e.SpI("",e.bMT(18,22,n.remote_balance||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function Ka(t,s){if(1&t&&(e.j41(0,"div",17),e.DNE(1,Za,20,28,"div",18),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function es(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),e.EFF(7,"Local:"),e.k0s(),e.EFF(8),e.nI1(9,"number"),e.k0s(),e.j41(10,"mat-hint",9),e.nrm(11,"fa-icon",10),e.EFF(12),e.nI1(13,"number"),e.k0s(),e.j41(14,"mat-hint",11)(15,"strong",8),e.EFF(16,"Remote:"),e.k0s(),e.EFF(17),e.nI1(18,"number"),e.k0s()(),e.nrm(19,"mat-progress-bar",12),e.k0s(),e.j41(20,"div",13),e.nrm(21,"mat-divider",14),e.k0s(),e.j41(22,"div",15),e.DNE(23,Ka,2,1,"div",16),e.k0s()()),2&t){const n=e.XpG(),i=e.sdS(2);e.R7$(8),e.SpI("",e.bMT(9,8,(null==n.channelBalances?null:n.channelBalances.localBalance)||0)," Sats"),e.R7$(3),e.Y8G("icon",n.faBalanceScale),e.R7$(),e.SpI(" (",e.bMT(13,10,(null==n.channelBalances?null:n.channelBalances.balancedness)||0),") "),e.R7$(5),e.SpI("",e.bMT(18,12,(null==n.channelBalances?null:n.channelBalances.remoteBalance)||0)," Sats"),e.R7$(2),e.Y8G("value",e.mNQ(null!=n.channelBalances&&n.channelBalances.localBalance&&(null==n.channelBalances?null:n.channelBalances.localBalance)>0?+(null==n.channelBalances?null:n.channelBalances.localBalance)/(+(null==n.channelBalances?null:n.channelBalances.localBalance)+ +(null==n.channelBalances?null:n.channelBalances.remoteBalance))*100:0)),e.R7$(4),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function ts(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",26),e.EFF(1," No channels available. "),e.j41(2,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.goToChannels())}),e.EFF(3,"Open Channel"),e.k0s()()}}function ns(t,s){if(1&t&&(e.j41(0,"div",28)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let is=(()=>{var t;class s{constructor(i){this.router=i,this.faBalanceScale=x.GR4,this.faDumbbell=x.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/lnd/connections")}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",allChannels:"allChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,es,24,14,"div",2)(1,ts,4,0,"ng-template",null,0,e.C5r)(3,ns,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.Sq,_.bT,O.aY,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return t(),s})();var ze=y(1092),Je=y(4104);const as=(t,s,n)=>({"mb-4":t,"mb-2":s,"mb-1":n}),ss=()=>["../connections/channels/open"],os=(t,s)=>({filterColumn:t,filterValue:s});function ls(t,s){if(1&t&&(e.j41(0,"mat-hint",19)(1,"strong",20),e.EFF(2,"Capacity: "),e.k0s(),e.EFF(3),e.nI1(4,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.SpI("",e.bMT(4,1,n.remote_balance||0)," Sats")}}function rs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",24),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2).$implicit,a=e.XpG(3);return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function cs(t,s){if(1&t&&(e.j41(0,"div",21)(1,"mat-hint",22)(2,"strong",20),e.EFF(3,"Capacity: "),e.k0s(),e.EFF(4),e.nI1(5,"number"),e.k0s(),e.DNE(6,rs,2,0,"button",23),e.k0s()),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.R7$(4),e.SpI("",e.bMT(5,2,n.local_balance||0)," Sats"),e.R7$(2),e.Y8G("ngIf",i.showLoop)}}function ps(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.remote_balance||0)/i.totalLiquidity*100:0))}}function ms(t,s){if(1&t&&e.nrm(0,"mat-progress-bar",25),2&t){const n=e.XpG().$implicit,i=e.XpG(3);e.Y8G("value",e.mNQ(i.totalLiquidity>0?(+n.local_balance||0)/i.totalLiquidity*100:0))}}function us(t,s){if(1&t&&(e.j41(0,"div",13)(1,"a",14),e.EFF(2),e.nI1(3,"slice"),e.k0s(),e.j41(4,"div",15),e.DNE(5,ls,5,3,"mat-hint",16)(6,cs,7,4,"div",17),e.k0s(),e.DNE(7,ps,1,2,"mat-progress-bar",18)(8,ms,1,2,"mat-progress-bar",18),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("matTooltip",e.mNQ(n.remote_alias||n.remote_pubkey))("matTooltipDisabled",e.mNQ((n.remote_alias||n.remote_pubkey).length<26))("routerLink",e.lJ4(16,ss))("state",e.l_i(17,os,n.remote_alias?"remote_alias":"remote_pubkey",n.remote_alias||n.remote_pubkey)),e.R7$(),e.Lme(" ",e.brH(3,12,n.remote_alias||n.remote_pubkey||"",0,24),"",(n.remote_alias||n.remote_pubkey||"").length>25?"...":""," "),e.R7$(3),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction),e.R7$(),e.Y8G("ngIf","In"===i.direction),e.R7$(),e.Y8G("ngIf","Out"===i.direction)}}function ds(t,s){if(1&t&&(e.j41(0,"div",11),e.DNE(1,us,9,20,"div",12),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngForOf",n.allChannels)}}function hs(t,s){if(1&t&&(e.j41(0,"div",3)(1,"div",4)(2,"span",5),e.EFF(3,"Total Capacity"),e.k0s(),e.j41(4,"mat-hint",6),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.nrm(7,"mat-progress-bar",7),e.k0s(),e.j41(8,"div",8),e.nrm(9,"mat-divider",9),e.k0s(),e.DNE(10,ds,2,1,"div",10),e.k0s()),2&t){const n=e.XpG(),i=e.sdS(2);e.Y8G("ngClass",e.sMw(6,as,n.screenSize===n.screenSizeEnum.XS||n.screenSize===n.screenSizeEnum.SM,n.screenSize===n.screenSizeEnum.MD,n.screenSize===n.screenSizeEnum.LG||n.screenSize===n.screenSizeEnum.XL)),e.R7$(5),e.SpI("",e.bMT(6,4,n.totalLiquidity)," Sats"),e.R7$(5),e.Y8G("ngIf",n.allChannels&&n.allChannels.length>0)("ngIfElse",i)}}function _s(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.goToChannels())}),e.EFF(1,"Open Channel"),e.k0s()}}function fs(t,s){if(1&t&&(e.j41(0,"div",26),e.EFF(1," No channels available. "),e.DNE(2,_s,2,0,"button",27),e.k0s()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngIf","Out"===n.direction)}}function gs(t,s){if(1&t&&(e.j41(0,"div",29)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessage)}}let Cs=(()=>{var t;class s{constructor(i,o,a,l){this.router=i,this.loopService=o,this.commonService=a,this.store=l,this.targetConf=6,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.showLoop=!(!i?.settings.swapServerUrl||""===i.settings.swapServerUrl.trim())})}goToChannels(){this.router.navigateByUrl("/lnd/connections")}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix),e.rXU(Je.Q),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[3,"perfectScrollbar",4,"ngIf","ngIfElse"],[3,"perfectScrollbar"],["fxLayout","column",4,"ngFor","ngForOf"],["fxLayout","column"],[1,"dashboard-capacity-header","mt-2",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["class","font-size-90 color-primary",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],[1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxFlex","80","fxLayoutAlign","start start",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","end center","class","button-link-dashboard","color","primary","mat-button","","aria-label","Loop Out",3,"click",4,"ngIf"],["fxFlex","20","fxLayoutAlign","end center","color","primary","mat-button","","aria-label","Loop Out",1,"button-link-dashboard",3,"click"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,a){if(1&o&&e.DNE(0,hs,11,10,"div",2)(1,fs,3,1,"ng-template",null,0,e.C5r)(3,gs,3,1,"ng-template",null,1,e.C5r),2&o){const l=e.sdS(4);e.Y8G("ngIf",""===(null==a.errorMessage?null:a.errorMessage.trim()))("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,N.$z,C.MV,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,ee.oV,B.Ld,ie.Wk,_.P9,_.QX],encapsulation:2}))}return t(),s})();const Qe=t=>({"dashboard-card-content":!0,"error-border":t}),ys=t=>({"p-0":t});function bs(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(11);e.Y8G("matMenuTriggerFor",n)}}function Fs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG().$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function xs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG(3);return r.Njj(o.onsortChannelsBy())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG(3);e.R7$(),e.SpI("Sort By ","Balance Score"===n.sortField?"Capacity":"Balance Score")}}function vs(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ts(t,s){if(1&t&&e.nrm(0,"rtl-node-info",31),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!1)}}function ks(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function Ss(t,s){if(1&t&&e.nrm(0,"rtl-channel-capacity-info",33),2&t){const n=e.XpG(3);e.Y8G("sortBy",n.sortField)("channelBalances",n.channelBalances)("allChannels",n.allChannelsCapacity)("errorMessage",n.errorMessages[3])}}function Rs(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",34),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[1])}}function Es(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",35),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function Is(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ls(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),e.nrm(5,"fa-icon",14),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"div"),e.DNE(9,bs,3,1,"button",15),e.j41(10,"mat-menu",16,1),e.DNE(12,Fs,2,1,"button",17)(13,xs,2,1,"button",18),e.k0s()()()(),e.j41(14,"mat-card-content",19),e.DNE(15,vs,1,0,"mat-progress-bar",20),e.j41(16,"div",21),e.DNE(17,Ts,1,2,"rtl-node-info",22)(18,ks,1,2,"rtl-balances-info",23)(19,Ss,1,4,"rtl-channel-capacity-info",24)(20,Rs,1,2,"rtl-fee-info",25)(21,Es,1,2,"rtl-channel-status-info",26)(22,Is,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(5),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions),e.R7$(),e.Y8G("ngIf","capacity"===n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("node"===n.id||"balance"===n.id?70:"fee"===n.id||"status"===n.id?78:90))("ngClass",e.eq3(17,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR))),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||"capacity"===n.id&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","capacity"),e.R7$(),e.Y8G("ngSwitchCase","fee"),e.R7$(),e.Y8G("ngSwitchCase","status")}}function ws(t,s){if(1&t&&(e.j41(0,"div",5)(1,"div",6),e.nrm(2,"fa-icon",7),e.j41(3,"span",8),e.EFF(4),e.k0s()(),e.j41(5,"mat-grid-list",9),e.DNE(6,Ls,23,19,"mat-grid-tile",10),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("icon",n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.ERROR?n.faFrown:n.faSmile),e.R7$(2),e.JRh(n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.COMPLETED?"Welcome "+n.information.alias+"! Your node is up and running.":n.apiCallStatusNodeInfo.status===n.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),e.R7$(),e.Y8G("rowHeight",n.operatorCardHeight),e.R7$(),e.Y8G("ngForOf",n.operatorCards)}}function js(t,s){if(1&t&&(e.j41(0,"button",28)(1,"mat-icon"),e.EFF(2,"more_vert"),e.k0s()()),2&t){e.XpG();const n=e.sdS(9);e.Y8G("matMenuTriggerFor",n)}}function Gs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Ds(t,s){if(1&t&&(e.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),e.nrm(3,"fa-icon",14),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.j41(6,"div"),e.DNE(7,js,3,1,"button",15),e.j41(8,"mat-menu",16,2),e.DNE(10,Gs,2,1,"button",17),e.k0s()()()()),2&t){const n=e.XpG().$implicit;e.R7$(3),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(2),e.Y8G("ngIf",n.links[0]),e.R7$(3),e.Y8G("ngForOf",n.goToOptions)}}function Ns(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function Ps(t,s){if(1&t&&e.nrm(0,"rtl-node-info",46),2&t){const n=e.XpG(3);e.Y8G("information",n.information)}}function $s(t,s){if(1&t&&e.nrm(0,"rtl-balances-info",32),2&t){const n=e.XpG(3);e.Y8G("balances",n.balances)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[2])}}function As(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",47),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalInboundLiquidity)("allChannels",n.allInboundChannels)("errorMessage",n.errorMessages[3])}}function Ms(t,s){if(1&t&&e.nrm(0,"rtl-channel-liquidity-info",48),2&t){const n=e.XpG(3);e.Y8G("totalLiquidity",n.totalOutboundLiquidity)("allChannels",n.allOutboundChannels)("errorMessage",n.errorMessages[3])}}function Bs(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){const o=r.eBV(n).index,a=e.XpG(2).$implicit,l=e.XpG(2);return r.Njj(l.onNavigateTo(a.links[o]))}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Os(t,s){if(1&t&&(e.j41(0,"span",49)(1,"mat-tab-group",50)(2,"mat-tab",51),e.nrm(3,"rtl-lightning-invoices",52),e.k0s(),e.j41(4,"mat-tab",53),e.nrm(5,"rtl-lightning-payments",52),e.k0s()(),e.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),e.EFF(9,"more_vert"),e.k0s()(),e.j41(10,"mat-menu",16,3),e.DNE(12,Bs,2,1,"button",17),e.k0s()()()),2&t){const n=e.sdS(11),i=e.XpG().$implicit;e.R7$(7),e.Y8G("matMenuTriggerFor",n),e.R7$(5),e.Y8G("ngForOf",i.goToOptions)}}function Vs(t,s){1&t&&(e.j41(0,"h3"),e.EFF(1,"Error! Unable to find information!"),e.k0s())}function Ys(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",11)(1,"mat-card",38),e.DNE(2,Ds,11,4,"mat-card-header",39),e.j41(3,"mat-card-content",40),e.DNE(4,Ns,1,0,"mat-progress-bar",20),e.j41(5,"div",41),e.DNE(6,Ps,1,1,"rtl-node-info",42)(7,$s,1,2,"rtl-balances-info",23)(8,As,1,3,"rtl-channel-liquidity-info",43)(9,Ms,1,3,"rtl-channel-liquidity-info",44)(10,Os,13,2,"span",45)(11,Vs,2,0,"h3",27),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(),e.Y8G("ngClass",e.eq3(14,ys,"transactions"===n.id)),e.R7$(),e.Y8G("ngIf","transactions"!==n.id),e.R7$(),e.Y8G("fxFlex",e.mNQ("transactions"===n.id?100:"balance"===n.id?70:90))("ngClass",e.eq3(16,Qe,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBlockchainBalance.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===n.id||"outboundLiq"===n.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","balance"),e.R7$(),e.Y8G("ngSwitchCase","inboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","outboundLiq"),e.R7$(),e.Y8G("ngSwitchCase","transactions")}}function Xs(t,s){if(1&t&&(e.j41(0,"div",36),e.nrm(1,"fa-icon",7),e.j41(2,"span",8),e.EFF(3),e.k0s()(),e.j41(4,"mat-grid-list",37),e.DNE(5,Ys,12,18,"mat-grid-tile",10),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faSmile),e.R7$(2),e.SpI("Welcome ",n.information.alias,"! Your node is up and running."),e.R7$(),e.Y8G("rowHeight",n.merchantCardHeight),e.R7$(),e.Y8G("ngForOf",n.merchantCards)}}let Us=(()=>{var t;class s{constructor(i,o,a,l,p){switch(this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.router=p,this.faSmile=Oe.Qpm,this.faFrown=Oe.wB1,this.faAngleDoubleDown=x.WxX,this.faAngleDoubleUp=x.$sC,this.faChartPie=x.W1p,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.flgChildInfoUpdated=!1,this.userPersonaEnum=c.HW,this.activeChannels=0,this.inactiveChannels=0,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.balances={onchain:-1,lightning:-1,total:0},this.allChannels=[],this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.screenSizeEnum=c.f7,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusFees=null,this.apiCallStatusBlockchainBalance=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize){case c.f7.XS:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:6},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}];break;case c.f7.SM:case c.f7.MD:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}];break;default:this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}]}}ngOnInit(){this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusBlockchainBalance=i.apiCallStatus,this.apiCallStatusBlockchainBalance.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusBlockchainBalance.message?JSON.stringify(this.apiCallStatusBlockchainBalance.message):this.apiCallStatusBlockchainBalance.message?this.apiCallStatusBlockchainBalance.message:""),this.balances.onchain=i.blockchainBalance.total_balance&&+i.blockchainBalance.total_balance>=0?+i.blockchainBalance.total_balance:0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:"");const o=i.lightningBalance&&i.lightningBalance.local?+i.lightningBalance.local:0,a=i.lightningBalance&&i.lightningBalance.remote?+i.lightningBalance.remote:0;this.channelBalances={localBalance:o,remoteBalance:a,balancedness:+(1-Math.abs((o-a)/(o+a))).toFixed(3)},this.balances.lightning=i.lightningBalance.local||0,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances),this.activeChannels=i.channelsSummary.active?.num_channels||0,this.inactiveChannels=i.channelsSummary.inactive?.num_channels||0,this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannels=i.channels?.filter(p=>!0===p.active),this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.remote_balance&&p.remote_balance>0),"remote_balance"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.allChannels?.filter(p=>p.local_balance&&p.local_balance>0),"local_balance"))),this.allChannels.forEach(p=>{this.totalInboundLiquidity=this.totalInboundLiquidity+ +(p.remote_balance||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+ +(p.local_balance||0)}),this.flgChildInfoUpdated=!!(this.balances.lightning>=0&&this.balances.onchain>=0&&this.fees.month_fee_sum&&this.fees.month_fee_sum>=0),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[5]),(0,U.p)(i=>i.type===c.QP.FETCH_FEES_LND||i.type===c.QP.SET_FEES_LND)).subscribe(i=>{i.type===c.QP.FETCH_FEES_LND&&(this.flgChildInfoUpdated=!1),i.type===c.QP.SET_FEES_LND&&(this.flgChildInfoUpdated=!0)})}onNavigateTo(i){"inactive"===i?this.router.navigateByUrl("/lnd/connections",{state:{filterColumn:"active",filterValue:i}}):this.router.navigateByUrl("/lnd/"+i)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.allChannels.sort((i,o)=>{const a=+(i.local_balance||0)+ +(i.remote_balance||0),l=+(o.local_balance||0)+ +(o.remote_balance||0);return a>l?-1:a{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","allChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"ngSwitch"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","allChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","allChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home"],["label","Pay"],[1,"underline"]],template:function(o,a){if(1&o&&e.DNE(0,ws,7,4,"div",4)(1,Xs,6,4,"ng-template",null,0,e.C5r),2&o){const l=e.sdS(2);e.Y8G("ngIf",(null==a.selNode?null:a.selNode.settings.userPersona)===a.userPersonaEnum.OPERATOR)("ngIfElse",l)}},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,O.aY,_t.iY,k.RN,k.m2,k.MM,k.dh,Ce.B_,Ce.NS,oe.An,Se.kk,Se.fb,Se.Cp,V.HM,f.DJ,f.sA,f.UI,j.PW,A.mq,A.T8,Ve,Ye,Ue,Ua,He,qe,is,Cs],encapsulation:2}))}return t(),s})();var Re=y(1975),Ee=y(25837);function Hs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Channels"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activeChannels))}}function qs(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1,"Peers"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.activePeers))}}let zs=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.logger=o,this.router=a,this.activePeers=0,this.activeChannels=0,this.faUsers=x.gdJ,this.faChartPie=x.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.activePeers=i.peers&&i.peers.length?i.peers.length:0,this.logger.info(i)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.activeChannels=i.channelsSummary.active?.num_channels||0,this.logger.info(i)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:i.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:i.blockchainBalance.unconfirmed_balance||0}],this.logger.info(i)})}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(D.gP),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connections"]],standalone:!1,decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),e.nrm(7,"rtl-currency-unit-converter",5),e.k0s()()(),e.j41(8,"div",0),e.nrm(9,"fa-icon",1),e.j41(10,"span",2),e.EFF(11,"Connections"),e.k0s()(),e.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(16,"mat-tab"),e.DNE(17,Hs,2,2,"ng-template",8),e.k0s(),e.j41(18,"mat-tab"),e.DNE(19,qs,2,2,"ng-template",8),e.k0s()(),e.j41(20,"div",9),e.nrm(21,"router-outlet"),e.k0s()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faUsers),e.R7$(6),e.R50("selectedIndex",a.activeLink))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ee.f,w.n3],encapsulation:2}))}return t(),s})();var Ie=y(99172),We=y(96354),Ze=y(60092);const Js=["form"];function Qs(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n.alias?n.alias:n.pub_key?n.pub_key:"")}}function Ws(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer alias is required."),e.k0s())}function Zs(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Peer not found in the list."),e.k0s())}function Ks(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",38)(1,"mat-label"),e.EFF(2,"Peer Alias"),e.k0s(),e.nrm(3,"input",39),e.j41(4,"mat-autocomplete",40,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(6,Qs,2,2,"mat-option",28),e.nI1(7,"async"),e.k0s(),e.DNE(8,Ws,2,0,"mat-error",20)(9,Zs,2,0,"mat-error",20),e.k0s()}if(2&t){const n=e.sdS(5),i=e.XpG();e.R7$(3),e.Y8G("formControl",i.selectedPeer)("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(7,6,i.filteredPeers)),e.R7$(2),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function eo(t,s){1&t&&e.eu8(0)}function to(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function no(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Amount must be less than or equal to ",n.totalBalance,".")}}function io(t,s){if(1&t&&(e.j41(0,"div",42),e.nrm(1,"fa-icon",43),e.j41(2,"span",6)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",44)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function ao(t,s){if(1&t&&(e.j41(0,"mat-option",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function so(t,s){if(1&t&&(e.j41(0,"mat-hint"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Mempool Min: ",n.recommendedFee.minimumFee," (Sats/vByte)")}}function oo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Target Confirmation Blocks is required."),e.k0s())}function lo(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fee is required."),e.k0s())}function ro(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lower than min feerate ",n.recommendedFee.minimumFee," in the mempool.")}}function co(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",32)(1,"mat-slide-toggle",45),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.taprootChannel,o)||(a.taprootChannel=o),r.Njj(o)}),e.EFF(2,"Taproot Channel"),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.R50("ngModel",n.taprootChannel)}}function po(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.channelConnectionError)}}function mo(t,s){if(1&t&&(e.j41(0,"div",46),e.nrm(1,"fa-icon",43),e.DNE(2,po,2,1,"span",20),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.channelConnectionError)}}function uo(t,s){if(1&t&&(e.j41(0,"mat-expansion-panel",48)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),e.EFF(4,"Peer: \xa0"),e.k0s(),e.j41(5,"strong",49),e.EFF(6),e.k0s()()(),e.j41(7,"div",13)(8,"div",50)(9,"div",38)(10,"h4",51),e.EFF(11,"Pubkey"),e.k0s(),e.j41(12,"span",52),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",53),e.j41(15,"div",50)(16,"div",54)(17,"h4",51),e.EFF(18,"Address"),e.k0s(),e.j41(19,"span",55),e.EFF(20),e.k0s()(),e.j41(21,"div",54)(22,"h4",51),e.EFF(23,"Inbound"),e.k0s(),e.j41(24,"span",55),e.EFF(25),e.k0s()()()()()),2&t){const n=e.XpG(2);e.R7$(6),e.JRh((null==n.peer?null:n.peer.alias)||(null==n.peer?null:n.peer.address)),e.R7$(7),e.JRh(n.peer.pub_key),e.R7$(7),e.JRh(null==n.peer?null:n.peer.address),e.R7$(5),e.JRh(null!=n.peer&&n.peer.inbound?"True":"False")}}function ho(t,s){if(1&t&&e.DNE(0,uo,26,4,"mat-expansion-panel",47),2&t){const n=e.XpG();e.Y8G("ngIf",n.peer)}}let Ke=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.dialogRef=o,this.data=a,this.store=l,this.actions=p,this.commonService=m,this.dataService=v,this.selectedPeer=new d.hs,this.amount=new d.hs,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.selTransType="0",this.isTaprootAvailable=!1,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.transTypeValue="",this.transTypes=c.XG,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[],this.isTaprootAvailable=this.commonService.isVersionCompatible(this.information.version,"0.17.0")):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[],this.isTaprootAvailable=!1),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.selNode=a,this.isPrivate=!!a?.settings.unannouncedChannels}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.UPDATE_API_CALL_STATUS_LND||a.type===c.QP.FETCH_CHANNELS_LND)).subscribe(a=>{a.type===c.QP.UPDATE_API_CALL_STATUS_LND&&a.payload.status===c.wn.ERROR&&"SaveNewChannel"===a.payload.action&&(this.channelConnectionError=a.payload.message),a.type===c.QP.FETCH_CHANNELS_LND&&this.dialogRef.close()});let i="",o="";this.sortedPeers=this.peers.sort((a,l)=>(i=a.alias?a.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",o=l.alias?l.alias.toLowerCase():a.pub_key?a.pub_key.toLowerCase():"",io?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(""),(0,We.T)(a=>"string"==typeof a?a:a.alias?a.alias:a.pub_key),(0,We.T)(a=>a?this.filterPeers(a):this.sortedPeers.slice()))}filterPeers(i){return this.sortedPeers?.filter(o=>0===o.alias?.toLowerCase().indexOf(i?i.toLowerCase():""))}displayFn(i){return i&&i.alias?i.alias:i&&i.pub_key?i.pub_key:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.pub_key?this.selectedPeer.value.pub_key:null,"string"==typeof this.selectedPeer.value){const i=this.peers?.filter(o=>o.alias?.length===this.selectedPeer.value.length&&0===o.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===i.length&&i[0].pub_key&&(this.selectedPubkey=i[0].pub_key)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.taprootChannel=!1,this.spendUnconfirmed=!1,this.selTransType="0",this.transTypeValue="",this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||("1"===this.selTransType||"2"===this.selTransType)&&!this.transTypeValue||"2"===this.selTransType&&this.recommendedFee.minimumFee>+this.transTypeValue)return!0;this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.peer&&this.peer.pub_key?this.peer.pub_key:this.selectedPubkey,fundingAmount:this.fundingAmount,private:this.isPrivate,transType:this.selTransType,transTypeValue:this.transTypeValue,spendUnconfirmed:this.spendUnconfirmed,commitmentType:this.taprootChannel?5:null}}))}onAdvancedPanelToggle(i){this.advancedTitle=i?"Advanced Options | "+("1"===this.selTransType?"Target Confirmation Blocks: ":"2"===this.selTransType?"Fee (Sats/vByte): ":"Default")+("1"===this.selTransType||"2"===this.selTransType?this.transTypeValue:"")+" | Taproot Channel: "+(this.taprootChannel?"Yes":"No")+" | Spend Unconfirmed Output: "+(this.spendUnconfirmed?"Yes":"No"):"Advanced Options"}onSelTransTypeChanged(i){this.transTypeValue="",i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(K.En),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-open-channel"]],viewQuery:function(o,a){if(1&o&&e.GBs(Js,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:66,vars:30,consts:[["form","ngForm"],["amt","ngModel"],["transTypeVal","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["fxLayout","row","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","type","number","required","","name","amnt",3,"ngModelChange","step","min","max","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","35","fxLayoutAlign","start center"],["color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxFlex","49"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number","name","transTpValue",3,"ngModelChange","required","disabled","step","min","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-2"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["color","primary","name","spendUnconfirmed",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit"],["fxFlex","100"],["type","text","aria-label","Peers","matInput","","required","",3,"formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["color","primary","name","taprootChannel",3,"ngModelChange","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayout","row"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"mat-card-header",7)(3,"div",8)(4,"span",9),e.EFF(5),e.k0s()(),e.j41(6,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",11)(9,"form",12,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onOpenChannel())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.j41(11,"div",13),e.DNE(12,Ks,10,8,"mat-form-field",14),e.k0s(),e.DNE(13,eo,1,0,"ng-container",15),e.j41(14,"div",13)(15,"div",16)(16,"mat-form-field",17)(17,"mat-label"),e.EFF(18,"Amount"),e.k0s(),e.j41(19,"input",18,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.fundingAmount,m)||(a.fundingAmount=m),r.Njj(m)}),e.k0s(),e.j41(21,"mat-hint"),e.EFF(22),e.nI1(23,"number"),e.k0s(),e.j41(24,"span",19),e.EFF(25," Sats "),e.k0s(),e.DNE(26,to,2,0,"mat-error",20)(27,no,2,1,"mat-error",20),e.k0s(),e.j41(28,"div",21)(29,"mat-slide-toggle",22),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.isPrivate,m)||(a.isPrivate=m),r.Njj(m)}),e.EFF(30,"Private Channel"),e.k0s()()(),e.j41(31,"mat-expansion-panel",23),e.bIt("closed",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!0))})("opened",function(){return r.eBV(l),r.Njj(a.onAdvancedPanelToggle(!1))}),e.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),e.EFF(35),e.k0s()()(),e.j41(36,"div",24),e.DNE(37,io,16,6,"div",25),e.j41(38,"div",16)(39,"mat-form-field",26)(40,"mat-label"),e.EFF(41,"Transaction Type"),e.k0s(),e.j41(42,"mat-select",27),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(43,ao,2,2,"mat-option",28),e.k0s()(),e.j41(44,"mat-form-field",26)(45,"mat-label"),e.EFF(46),e.k0s(),e.j41(47,"input",29,2),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.transTypeValue,m)||(a.transTypeValue=m),r.Njj(m)}),e.k0s(),e.DNE(49,so,2,1,"mat-hint",20)(50,oo,2,0,"mat-error",20)(51,lo,2,0,"mat-error",20)(52,ro,2,1,"mat-error",20),e.k0s()(),e.j41(53,"div",30),e.DNE(54,co,3,1,"div",31),e.j41(55,"div",32)(56,"mat-slide-toggle",33),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.spendUnconfirmed,m)||(a.spendUnconfirmed=m),r.Njj(m)}),e.EFF(57,"Spend Unconfirmed Output"),e.k0s()()()()()(),e.DNE(58,mo,3,2,"div",34),e.j41(59,"div",35)(60,"button",36),e.EFF(61,"Clear Fields"),e.k0s(),e.j41(62,"button",37),e.EFF(63,"Open Channel"),e.k0s()()()()()(),e.DNE(64,ho,1,1,"ng-template",null,3,e.C5r)}if(2&o){const l=e.sdS(20),p=e.sdS(65);e.R7$(5),e.JRh(a.alertTitle),e.R7$(7),e.Y8G("ngIf",!a.peer&&a.peers&&a.peers.length>0),e.R7$(),e.Y8G("ngTemplateOutlet",p),e.R7$(6),e.Y8G("step",1e3)("min",1)("max",a.totalBalance),e.R50("ngModel",a.fundingAmount),e.R7$(3),e.SpI("(Remaining: ",e.bMT(23,28,a.totalBalance-(a.fundingAmount?a.fundingAmount:0)),")"),e.R7$(4),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.max),e.R7$(2),e.R50("ngModel",a.isPrivate),e.R7$(6),e.JRh(a.advancedTitle),e.R7$(2),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.selTransType?"Default":"1"===a.selTransType?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("required","0"!==a.selTransType)("disabled","0"===a.selTransType)("step",1)("min","2"===a.selTransType?a.recommendedFee.minimumFee:0),e.R50("ngModel",a.transTypeValue),e.R7$(2),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf","1"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&!a.transTypeValue),e.R7$(),e.Y8G("ngIf","2"===a.selTransType&&a.transTypeValue&&+a.transTypeValue{var t;class s{constructor(i,o,a,l,p,m,v,b,S){this.dialogRef=i,this.data=o,this.store=a,this.lndEffects=l,this.formBuilder=p,this.actions=m,this.logger=v,this.commonService=b,this.dataService=S,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.peerAddress="",this.totalBalance=0,this.transTypes=c.XG,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.isTaprootAvailable=!1,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.totalBalance=this.data.message?.balance||0,this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.k0.required]],peerAddress:[this.data.message?.peer?.pub_key?this.data.message?.peer?.pub_key+(this.data.message?.peer?.address?"@"+this.data.message?.peer?.address:""):"",[d.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],selTransType:[c.XG[0].id],transTypeValue:[{value:"",disabled:!0}],taprootChannel:[!1],spendUnconfirmed:[!1],hiddenAmount:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.selNode=a,this.channelFormGroup.controls.isPrivate.setValue(!!a?.settings.unannouncedChannels),this.isTaprootAvailable=this.commonService.isVersionCompatible(o.information.version,"0.17.0")}),this.channelFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{o===c.XG[0].id?(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.disable(),this.channelFormGroup.controls.transTypeValue.setValidators(null),this.channelFormGroup.controls.transTypeValue.setErrors(null)):(this.channelFormGroup.controls.transTypeValue.setValue(""),this.channelFormGroup.controls.transTypeValue.enable(),this.channelFormGroup.controls.transTypeValue.setValidators([d.k0.required]))}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(o=>o.type===c.QP.NEWLY_ADDED_PEER_LND||o.type===c.QP.FETCH_PENDING_CHANNELS_LND||o.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(o=>{o.type===c.QP.NEWLY_ADDED_PEER_LND&&(this.logger.info(o.payload),this.flgEditable=!1,this.newlyAddedPeer=o.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),o.type===c.QP.FETCH_PENDING_CHANNELS_LND&&this.dialogRef.close(),o.type===c.QP.UPDATE_API_CALL_STATUS_LND&&o.payload.status===c.wn.ERROR&&("SaveNewPeer"===o.payload.action||"FetchGraphNode"===o.payload.action?this.peerConnectionError=o.payload.message:"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="";const i=this.peerFormGroup.controls.peerAddress.value.search("@");let o="",a="";i>-1?(o=this.peerFormGroup.controls.peerAddress.value.substring(0,i),a=this.peerFormGroup.controls.peerAddress.value.substring(i+1),this.connectPeerWithParams(o,a)):(this.store.dispatch((0,T.t0)({payload:{pubkey:this.peerFormGroup.controls.peerAddress.value}})),this.lndEffects.setGraphNode.pipe((0,W.s)(1)).subscribe(l=>{setTimeout(()=>{a=l.node.addresses&&l.node.addresses.length&&l.node.addresses.length>0&&l.node.addresses[0].addr?l.node.addresses[0].addr:"",this.connectPeerWithParams(this.peerFormGroup.controls.peerAddress.value,a)},0)}))}connectPeerWithParams(i,o){this.store.dispatch((0,T.sq)({payload:{pubkey:i,host:o,perm:!1}}))}onOpenChannel(){return"2"===this.channelFormGroup.controls.selTransType.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.transTypeValue.value?(this.channelFormGroup.controls.transTypeValue.setErrors({minimum:!0}),!0):!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||"1"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||"2"===this.channelFormGroup.controls.selTransType.value&&!this.channelFormGroup.controls.transTypeValue.value||(this.channelConnectionError="",void this.store.dispatch((0,T.vL)({payload:{selectedPeerPubkey:this.newlyAddedPeer?.pub_key,fundingAmount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,transType:this.channelFormGroup.controls.selTransType.value,transTypeValue:this.channelFormGroup.controls.transTypeValue.value,spendUnconfirmed:this.channelFormGroup.controls.spendUnconfirmed.value,commitmentType:this.channelFormGroup.controls.taprootChannel.value?5:null}})))}onSelTransTypeChanged(i){this.channelFormGroup.controls.transTypeValue.setValue(""),i.value===this.transTypes[2].id&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+this.newlyAddedPeer?.alias:"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}i.selectedIndex{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(L.il),e.rXU(me.L),e.rXU(d.ze),e.rXU(K.En),e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-connect-peer"]],viewQuery:function(o,a){if(1&o&&(e.GBs(_o,5),e.GBs(fo,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:70,vars:31,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start end"],["matInput","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["tabindex","3","formControlName","selTransType",3,"selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","50"],["matInput","","formControlName","transTypeValue","type","number","name","transTypeValue","tabindex","4",3,"step","min","required"],["fxFlex","50","fxLayoutAlign","start center",4,"ngIf"],["fxFlex","50","fxLayoutAlign","start center"],["tabindex","6","color","primary","formControlName","spendUnconfirmed","name","spendUnconfirmed"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["tabindex","6","color","primary","formControlName","taprootChannel","name","taprootChannel",1,"ps-2"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Connect to a new peer"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.stepSelectionChanged(m))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,go,1,1,"ng-template",12),e.j41(15,"mat-form-field",13)(16,"mat-label"),e.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),e.k0s(),e.nrm(18,"input",14),e.DNE(19,Co,2,0,"mat-error",15),e.k0s(),e.DNE(20,yo,4,2,"div",16),e.j41(21,"div",17)(22,"button",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(23),e.k0s()()()(),e.j41(24,"mat-step",10)(25,"form",19),e.DNE(26,bo,1,1,"ng-template",20),e.j41(27,"div",21),e.DNE(28,Fo,16,6,"div",22),e.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),e.EFF(32,"Amount"),e.k0s(),e.nrm(33,"input",25),e.j41(34,"mat-hint"),e.EFF(35),e.nI1(36,"number"),e.k0s(),e.j41(37,"span",26),e.EFF(38," Sats "),e.k0s(),e.DNE(39,xo,2,0,"mat-error",15)(40,vo,2,0,"mat-error",15)(41,To,2,1,"mat-error",15),e.k0s(),e.j41(42,"div",27)(43,"mat-slide-toggle",28),e.EFF(44,"Private Channel"),e.k0s()()(),e.j41(45,"div",29)(46,"mat-form-field",30)(47,"mat-label"),e.EFF(48,"Transaction Type"),e.k0s(),e.j41(49,"mat-select",31),e.bIt("selectionChange",function(m){return r.eBV(l),r.Njj(a.onSelTransTypeChanged(m))}),e.DNE(50,ko,2,2,"mat-option",32),e.k0s()(),e.j41(51,"mat-form-field",33)(52,"mat-label"),e.EFF(53),e.k0s(),e.nrm(54,"input",34),e.DNE(55,So,2,1,"mat-hint",15)(56,Ro,2,1,"mat-error",15)(57,Eo,2,1,"mat-error",15),e.k0s()(),e.j41(58,"div",29),e.DNE(59,Io,3,0,"div",35),e.j41(60,"div",36)(61,"mat-slide-toggle",37),e.EFF(62,"Spend Unconfirmed Output"),e.k0s()()()(),e.DNE(63,Lo,4,2,"div",16),e.j41(64,"div",17)(65,"button",38),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onOpenChannel())}),e.EFF(66),e.k0s()()()()(),e.j41(67,"div",39)(68,"button",40),e.EFF(69),e.k0s()()()()()()}2&o&&(e.R7$(10),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",a.peerFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.peerFormGroup),e.R7$(6),e.Y8G("ngIf",null==a.peerFormGroup.controls.peerAddress.errors?null:a.peerFormGroup.controls.peerAddress.errors.required),e.R7$(),e.Y8G("ngIf",""!==a.peerConnectionError),e.R7$(3),e.JRh(""!==a.peerConnectionError?"Retry":"Add Peer"),e.R7$(),e.Y8G("stepControl",a.channelFormGroup)("editable",a.flgEditable),e.R7$(),e.Y8G("formGroup",a.channelFormGroup),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.SpI("Remaining: ",e.bMT(36,29,a.totalBalance-(a.channelFormGroup.controls.fundingAmount.value?a.channelFormGroup.controls.fundingAmount.value:0))),e.R7$(4),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.fundingAmount.errors?null:a.channelFormGroup.controls.fundingAmount.errors.max),e.R7$(9),e.Y8G("ngForOf",a.transTypes),e.R7$(3),e.JRh("0"===a.channelFormGroup.controls.selTransType.value?"Default":"1"===a.channelFormGroup.controls.selTransType.value?"Target Confirmation Blocks":"Fee (Sats/vByte)"),e.R7$(),e.Y8G("step",1)("min","2"===a.channelFormGroup.controls.selTransType.value?a.recommendedFee.minimumFee:0)("required","0"!==a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===a.channelFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf",null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.required),e.R7$(),e.Y8G("ngIf",a.channelFormGroup.controls.transTypeValue.value&&(null==a.channelFormGroup.controls.transTypeValue.errors?null:a.channelFormGroup.controls.transTypeValue.errors.minimum)),e.R7$(2),e.Y8G("ngIf",a.isTaprootAvailable),e.R7$(4),e.Y8G("ngIf",""!==a.channelConnectionError),e.R7$(3),e.JRh(""!==a.channelConnectionError?"Retry":"Open Channel"),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(null!=a.newlyAddedPeer&&a.newlyAddedPeer.pub_key?"Do It Later":"Close"))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,he.sG,z.V5,z.Ti,z.M6,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const wo=()=>["all"],jo=t=>({"error-border":t}),Go=()=>["no_peer"],Le=t=>({width:t}),Do=t=>({"display-none":t});function No(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Po(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function $o(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Alias"),e.k0s())}function Ao(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Mo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Public Key"),e.k0s())}function Bo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Oo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Address"),e.k0s())}function Vo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Le,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.address)}}function Yo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Sync Type"),e.k0s())}function Xo(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,null==n?null:n.sync_type,"sync","_"))}}function Uo(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Inbound"),e.k0s())}function Ho(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.inbound?"Yes":"No")}}function qo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Sent"),e.k0s())}function zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_sent)," ")}}function Jo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Bytes Received"),e.k0s())}function Qo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.bytes_recv)," ")}}function Wo(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Sent"),e.k0s())}function Zo(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_sent)," ")}}function Ko(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Sats Received"),e.k0s())}function el(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.sat_recv)," ")}}function tl(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Ping Time ("),e.j41(2,"span"),e.EFF(3,"\xb5"),e.k0s(),e.EFF(4,"s)"),e.k0s())}function nl(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.ping_time)," ")}}function il(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function al(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",51)(1,"div",48)(2,"mat-select",49),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onPeerClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenChannel(o))}),e.EFF(7,"Open Channel"),e.k0s(),e.j41(8,"mat-option",50),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onPeerDetach(o))}),e.EFF(9,"Disconnect"),e.k0s()()()()}}function sl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No connected peer."),e.k0s())}function ol(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting peers..."),e.k0s())}function ll(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function rl(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,sl,2,0,"p",53)(2,ol,2,0,"p",53)(3,ll,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.peers&&n.peers.data)||(null==n.peers.data?null:n.peers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function cl(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Do,(null==n.peers?null:n.peers.data)&&(null==n.peers||null==n.peers.data?null:n.peers.data.length)>0))}}function pl(t,s){1&t&&e.nrm(0,"tr",55)}function ml(t,s){1&t&&e.nrm(0,"tr",56)}let ul=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.store=o,this.rtlEffects=a,this.commonService=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:c.md,sortBy:"alias",sortOrder:c.oi.DESCENDING},this.availableBalance=0,this.faUsers=x.gdJ,this.displayedColumns=[],this.peersData=[],this.peers=new u.I6([]),this.information={},this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=i.peers,this.peersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPeersTable(this.peersData),this.logger.info(i)})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:i.pub_key,goToName:"Graph lookup",goToLink:"/lnd/graph/lookups",showQRName:"Public Key",showQRField:i.pub_key,message:[[{key:"pub_key",value:i.pub_key,title:"Public Key",width:100}],[{key:"address",value:i.address,title:"Address",width:100}],[{key:"alias",value:i.alias,title:"Alias",width:40},{key:"inbound",value:i.inbound?"True":"False",title:"Inbound",width:30},{key:"ping_time",value:i.ping_time,title:"Ping Time (\xb5s)",width:30,type:c.UN.NUMBER}],[{key:"sat_sent",value:i.sat_sent,title:"Satoshis Sent",width:50,type:c.UN.NUMBER},{key:"sat_recv",value:i.sat_recv,title:"Satoshis Received",width:50,type:c.UN.NUMBER}],[{key:"bytes_sent",value:i.bytes_sent,title:"Bytes Sent",width:50,type:c.UN.NUMBER},{key:"bytes_recv",value:i.bytes_recv,title:"Bytes Received",width:50,type:c.UN.NUMBER}]]}}}))}onConnectPeer(){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:null,information:this.information,balance:this.availableBalance},component:et}}}))}onOpenChannel(i){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:i,information:this.information,balance:this.availableBalance},component:Ke}}}))}onPeerDetach(i){this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(i.alias?i.alias:i.pub_key),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[4])).subscribe(a=>{a&&this.store.dispatch((0,T.ed)({payload:{pubkey:i.pub_key}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.peers.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"sync_type":a=this.camelCaseWithReplace.transform(i.sync_type||"","sync","_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"sync_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadPeersTable(i){this.peers=new u.I6(i?[...i]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Peers")}])],decls:64,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pub_key"],["matColumnDef","address"],["matColumnDef","sync_type"],["matColumnDef","inbound"],["matColumnDef","bytes_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","bytes_recv"],["matColumnDef","sat_sent"],["matColumnDef","sat_recv"],["matColumnDef","ping_time"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"button",3),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onConnectPeer())}),e.EFF(3,"Add Peer"),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.nrm(7,"fa-icon",7),e.j41(8,"span",8),e.EFF(9,"Connected Peers"),e.k0s()(),e.j41(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),e.EFF(13,"Filter By"),e.k0s(),e.j41(14,"mat-select",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(15,"perfect-scrollbar"),e.DNE(16,No,2,2,"mat-option",12),e.k0s()()(),e.j41(17,"mat-form-field",10)(18,"mat-label"),e.EFF(19,"Filter"),e.k0s(),e.j41(20,"input",13),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(21,"div",14),e.DNE(22,Po,1,0,"mat-progress-bar",15),e.j41(23,"table",16,0),e.qex(25,17),e.DNE(26,$o,2,0,"th",18)(27,Ao,4,4,"td",19),e.bVm(),e.qex(28,20),e.DNE(29,Mo,2,0,"th",18)(30,Bo,4,4,"td",19),e.bVm(),e.qex(31,21),e.DNE(32,Oo,2,0,"th",18)(33,Vo,4,4,"td",19),e.bVm(),e.qex(34,22),e.DNE(35,Yo,2,0,"th",18)(36,Xo,3,5,"td",19),e.bVm(),e.qex(37,23),e.DNE(38,Uo,2,0,"th",18)(39,Ho,2,1,"td",19),e.bVm(),e.qex(40,24),e.DNE(41,qo,2,0,"th",25)(42,zo,4,3,"td",19),e.bVm(),e.qex(43,26),e.DNE(44,Jo,2,0,"th",25)(45,Qo,4,3,"td",19),e.bVm(),e.qex(46,27),e.DNE(47,Wo,2,0,"th",25)(48,Zo,4,3,"td",19),e.bVm(),e.qex(49,28),e.DNE(50,Ko,2,0,"th",25)(51,el,4,3,"td",19),e.bVm(),e.qex(52,29),e.DNE(53,tl,5,0,"th",25)(54,nl,4,3,"td",19),e.bVm(),e.qex(55,30),e.DNE(56,il,6,0,"th",31)(57,al,10,0,"td",32),e.bVm(),e.qex(58,33),e.DNE(59,rl,4,3,"td",34),e.bVm(),e.DNE(60,cl,1,3,"tr",35)(61,pl,1,0,"tr",36)(62,ml,1,0,"tr",37),e.k0s()(),e.nrm(63,"mat-paginator",38),e.k0s()()}2&o&&(e.R7$(7),e.Y8G("icon",a.faUsers),e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(15,wo).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.peers)("ngClass",e.eq3(16,jo,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(18,Go)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();function dl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Open"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numOpenChannels))}}function hl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Pending"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numPendingChannels))}}function _l(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Closed"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numClosedChannels))}}function fl(t,s){if(1&t&&(e.j41(0,"span",7),e.EFF(1,"Active HTLCs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numActiveHTLCs))}}let gl=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.numOpenChannels=0,this.numPendingChannels=0,this.numClosedChannels=0,this.numActiveHTLCs=0,this.peers=[],this.information={},this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"closed",name:"Closed"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i instanceof w.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.numOpenChannels=i.channels&&i.channels.length?i.channels.length:0,this.numActiveHTLCs=i.channels?.reduce((o,a)=>o+(a.pending_htlcs&&a.pending_htlcs.length>0?a.pending_htlcs.length:0),0),this.logger.info(i)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPendingChannels=i.pendingChannelsSummary.total_channels?i.pendingChannelsSummary.total_channels:0}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.numClosedChannels=i.closedChannels&&i.closedChannels.length?i.closedChannels.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.totalBalance=+(i.blockchainBalance.total_balance||0)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[6])).subscribe(i=>{this.peers=i.peers,this.peers.forEach(o=>{(!o.alias||""===o.alias)&&(o.alias=o.pub_key?.substring(0,20))}),this.logger.info(i)})}onOpenChannel(){this.store.dispatch((0,I.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ke}}}))}onSelectedTabChange(i){this.router.navigateByUrl("/lnd/connections/channels/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channels-tables"]],standalone:!1,decls:16,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.onOpenChannel()}),e.EFF(3,"Open Channel"),e.k0s()(),e.j41(4,"div",3)(5,"mat-tab-group",4),e.mxI("selectedIndexChange",function(p){return e.DH7(a.activeLink,p)||(a.activeLink=p),p}),e.bIt("selectedTabChange",function(p){return a.onSelectedTabChange(p)}),e.j41(6,"mat-tab"),e.DNE(7,dl,2,2,"ng-template",5),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,hl,2,2,"ng-template",5),e.k0s(),e.j41(10,"mat-tab"),e.DNE(11,_l,2,2,"ng-template",5),e.k0s(),e.j41(12,"mat-tab"),e.DNE(13,fl,2,2,"ng-template",5),e.k0s()(),e.j41(14,"div",6),e.nrm(15,"router-outlet"),e.k0s()()()),2&o&&(e.R7$(5),e.R50("selectedIndex",a.activeLink))},dependencies:[N.$z,f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,w.n3],encapsulation:2}))}return t(),s})();var le=y(95416),be=y(29157);const Cl=t=>({"xs-scroll-y":t});function yl(t,s){if(1&t){const n=e.RV6();e.j41(0,"fa-icon",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExplorerClicked())}),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("matTooltip",e.mNQ("Link to "+(null==n.selNode||null==n.selNode.settings?null:n.selNode.settings.blockExplorerUrl)))("icon",n.faUpRightFromSquare)}}function bl(t,s){if(1&t&&(e.j41(0,"div")(1,"div",10)(2,"div",19)(3,"h4",12),e.EFF(4,"Commit Fee"),e.k0s(),e.j41(5,"span",20),e.EFF(6),e.nI1(7,"number"),e.k0s()(),e.j41(8,"div",19)(9,"h4",12),e.EFF(10,"Commit Weight"),e.k0s(),e.j41(11,"span",20),e.EFF(12),e.nI1(13,"number"),e.k0s()(),e.j41(14,"div",19)(15,"h4",12),e.EFF(16,"Fee/KW"),e.k0s(),e.j41(17,"span",20),e.EFF(18),e.nI1(19,"number"),e.k0s()(),e.j41(20,"div",19)(21,"h4",12),e.EFF(22,"Static Remote Key"),e.k0s(),e.j41(23,"span",20),e.EFF(24),e.k0s()()(),e.nrm(25,"mat-divider",15),e.j41(26,"div",10)(27,"div",19)(28,"h4",12),e.EFF(29),e.k0s(),e.j41(30,"span",20),e.EFF(31),e.nI1(32,"number"),e.k0s()(),e.j41(33,"div",19)(34,"h4",12),e.EFF(35),e.k0s(),e.j41(36,"span",20),e.EFF(37),e.nI1(38,"number"),e.k0s()(),e.j41(39,"div",19)(40,"h4",12),e.EFF(41,"Unsettled Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"CSV Delay"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.nrm(51,"mat-divider",15),e.j41(52,"div",10)(53,"div",19)(54,"h4",12),e.EFF(55,"Local Reserve (Sats)"),e.k0s(),e.j41(56,"span",20),e.EFF(57),e.nI1(58,"number"),e.k0s()(),e.j41(59,"div",19)(60,"h4",12),e.EFF(61,"Remote Reserve (Sats)"),e.k0s(),e.j41(62,"span",20),e.EFF(63),e.nI1(64,"number"),e.k0s()(),e.j41(65,"div",19)(66,"h4",12),e.EFF(67,"Lifetime (Seconds)"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.nI1(70,"number"),e.k0s()(),e.j41(71,"div",19)(72,"h4",12),e.EFF(73,"Pending HTLCs"),e.k0s(),e.j41(74,"span",20),e.EFF(75),e.nI1(76,"number"),e.k0s()()(),e.nrm(77,"mat-divider",15),e.k0s()),2&t){const n=e.XpG();e.R7$(6),e.JRh(e.bMT(7,17,n.channel.commit_fee)),e.R7$(6),e.JRh(e.bMT(13,19,n.channel.commit_weight)),e.R7$(6),e.JRh(e.bMT(19,21,n.channel.fee_per_kw)),e.R7$(6),e.JRh(n.channel.static_remote_key?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Sent":"Total Satoshis Sent"),e.R7$(2),e.JRh(e.bMT(32,23,n.channel.total_satoshis_sent)),e.R7$(4),e.JRh(n.screenSize===n.screenSizeEnum.XS?"Total Sats Recv":"Total Satoshis Received"),e.R7$(2),e.JRh(e.bMT(38,25,n.channel.total_satoshis_received)),e.R7$(6),e.JRh(e.bMT(44,27,n.channel.unsettled_balance)),e.R7$(6),e.JRh(e.bMT(50,29,n.channel.csv_delay)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(58,31,n.channel.local_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(64,33,n.channel.remote_chan_reserve_sat)),e.R7$(6),e.JRh(e.bMT(70,35,n.channel.lifetime)),e.R7$(6),e.JRh(e.bMT(76,37,null==n.channel||null==n.channel.pending_htlcs?null:n.channel.pending_htlcs.length)),e.R7$(2),e.Y8G("inset",!0)}}function Fl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Show Advanced"),e.k0s())}function xl(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Hide Advanced"),e.k0s())}function vl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",28),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onCopyChanID(o))}),e.EFF(1,"Copy Channel ID"),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("payload",n.channel.chan_id)}}function Tl(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",29),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"OK"),e.k0s()}}let we=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.logger=a,this.commonService=l,this.snackBar=p,this.router=m,this.faReceipt=x.Mf0,this.faUpRightFromSquare=x.k02,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.selNode=this.data.selNode,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(i){this.snackBar.open("Channel ID "+i+" copied."),this.logger.info("Copied Text: "+i)}onExplorerClicked(){this.selNode?.settings?.blockExplorerUrl&&window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.channel.channel_point,"_blank")}onGoToLink(i,o){this.router.navigateByUrl("/lnd/graph/lookups",{state:{lookupType:i,lookupValue:o}}),this.onClose()}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU($.h),e.rXU(le.UG),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-information"]],standalone:!1,decls:95,vars:37,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],["tabindex","4","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["tabindex","5",1,"foreground-secondary-text"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["tabindex","6","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],["fxFlex","25"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Channel Information"),e.k0s()(),e.j41(7,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(8,"X"),e.k0s()(),e.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"h4",12),e.EFF(14,"Channel ID"),e.k0s(),e.j41(15,"span",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("1",a.channel.chan_id))}),e.EFF(16),e.k0s()(),e.j41(17,"div",11)(18,"h4",12),e.EFF(19,"Peer Alias"),e.k0s(),e.j41(20,"span",14),e.EFF(21),e.k0s()()(),e.nrm(22,"mat-divider",15),e.j41(23,"div",10)(24,"div",2)(25,"h4",12),e.EFF(26,"Channel Point"),e.k0s(),e.j41(27,"span",16),e.EFF(28),e.DNE(29,yl,1,3,"fa-icon",17),e.k0s()()(),e.nrm(30,"mat-divider",15),e.j41(31,"div",10)(32,"div",2)(33,"h4",12),e.EFF(34,"Peer Public Key"),e.k0s(),e.j41(35,"span",18),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onGoToLink("0",a.channel.remote_pubkey))}),e.EFF(36),e.k0s()()(),e.nrm(37,"mat-divider",15),e.j41(38,"div",10)(39,"div",19)(40,"h4",12),e.EFF(41,"Local Balance"),e.k0s(),e.j41(42,"span",20),e.EFF(43),e.nI1(44,"number"),e.k0s()(),e.j41(45,"div",19)(46,"h4",12),e.EFF(47,"Remote Balance"),e.k0s(),e.j41(48,"span",20),e.EFF(49),e.nI1(50,"number"),e.k0s()(),e.j41(51,"div",19)(52,"h4",12),e.EFF(53,"Capacity"),e.k0s(),e.j41(54,"span",20),e.EFF(55),e.nI1(56,"number"),e.k0s()(),e.j41(57,"div",19)(58,"h4",12),e.EFF(59,"Uptime (Seconds)"),e.k0s(),e.j41(60,"span",20),e.EFF(61),e.nI1(62,"number"),e.k0s()()(),e.nrm(63,"mat-divider",15),e.j41(64,"div",10)(65,"div",19)(66,"h4",12),e.EFF(67,"Active"),e.k0s(),e.j41(68,"span",20),e.EFF(69),e.k0s()(),e.j41(70,"div",19)(71,"h4",12),e.EFF(72,"Private"),e.k0s(),e.j41(73,"span",20),e.EFF(74),e.k0s()(),e.j41(75,"div",19)(76,"h4",12),e.EFF(77,"Initiator"),e.k0s(),e.j41(78,"span",20),e.EFF(79),e.k0s()(),e.j41(80,"div",19)(81,"h4",12),e.EFF(82,"Number of Updates"),e.k0s(),e.j41(83,"span",20),e.EFF(84),e.nI1(85,"number"),e.k0s()()(),e.nrm(86,"mat-divider",15),e.DNE(87,bl,78,39,"div",21),e.j41(88,"div",22)(89,"button",23),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onShowAdvanced())}),e.DNE(90,Fl,2,0,"p",24)(91,xl,2,0,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(93,vl,2,1,"button",25)(94,Tl,2,0,"button",26),e.k0s()()()()()}if(2&o){const l=e.sdS(92);e.R7$(4),e.Y8G("icon",a.faReceipt),e.R7$(5),e.Y8G("ngClass",e.eq3(35,Cl,a.screenSize===a.screenSizeEnum.XS)),e.R7$(7),e.SpI(" ",a.channel.chan_id," "),e.R7$(5),e.JRh(a.channel.remote_alias),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.channel_point," "),e.R7$(),e.Y8G("ngIf",null==a.selNode||null==a.selNode.settings?null:a.selNode.settings.blockExplorerUrl),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.SpI(" ",a.channel.remote_pubkey," "),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(44,25,a.channel.local_balance)),e.R7$(6),e.JRh(e.bMT(50,27,a.channel.remote_balance)),e.R7$(6),e.JRh(e.bMT(56,29,a.channel.capacity)),e.R7$(6),e.JRh(e.bMT(62,31,a.channel.uptime)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.channel.active?"Yes":"No"),e.R7$(5),e.JRh(a.channel.private?"Yes":"No"),e.R7$(5),e.JRh(a.channel.initiator?"Yes":"No"),e.R7$(5),e.JRh(e.bMT(85,33,a.channel.num_updates)),e.R7$(2),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",a.showAdvanced),e.R7$(3),e.Y8G("ngIf",!a.showAdvanced)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf",a.showCopy),e.R7$(),e.Y8G("ngIf",!a.showCopy)}},dependencies:[_.YU,_.bT,O.aY,N.$z,k.m2,k.MM,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,be.U,te.N,_.QX],encapsulation:2}))}return t(),s})();var je=y(7673),Ge=y(1001),kl=y(16949);const fe=(t,s)=>({"small-svg":t,"large-svg":s});function Sl(t,s){1&t&&e.eu8(0)}function Rl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17)(12,"path",18)(13,"path",19)(14,"path",20)(15,"path",21)(16,"path",22)(17,"path",23)(18,"path",24)(19,"path",25)(20,"path",26)(21,"path",27)(22,"path",28)(23,"path",29)(24,"path",30)(25,"path",31)(26,"path",32)(27,"path",33)(28,"path",34)(29,"path",35)(30,"path",36)(31,"path",37)(32,"path",38)(33,"path",39)(34,"path",40)(35,"path",41)(36,"path",42)(37,"path",43)(38,"path",44)(39,"path",45)(40,"path",46),e.k0s(),r.joV(),e.j41(41,"div",47)(42,"mat-card-title"),e.EFF(43,"Circular rebalancing explained."),e.k0s()(),e.j41(44,"div",48)(45,"mat-card-subtitle",49),e.EFF(46," Circular payments are a completely off-chain rebalancing strategy where a node makes a payment to itself across a circular path of chained payment channels. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function El(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",51),e.nrm(2,"path",52)(3,"path",53)(4,"path",54)(5,"path",55)(6,"path",56)(7,"path",57)(8,"path",58)(9,"path",59)(10,"path",60)(11,"path",61)(12,"path",62)(13,"path",63)(14,"path",64)(15,"path",65)(16,"path",66)(17,"path",67)(18,"path",68)(19,"path",69)(20,"path",70)(21,"path",71)(22,"path",72)(23,"path",73)(24,"path",74)(25,"path",75)(26,"path",76)(27,"path",77)(28,"path",78)(29,"path",79)(30,"path",80)(31,"path",81)(32,"path",82)(33,"path",52)(34,"path",53)(35,"path",54)(36,"path",55)(37,"path",56)(38,"path",57)(39,"path",58)(40,"path",59)(41,"path",60)(42,"path",83)(43,"path",84)(44,"path",63)(45,"path",85)(46,"path",86)(47,"path",87)(48,"path",67)(49,"path",68)(50,"path",69)(51,"path",70)(52,"path",71)(53,"path",72)(54,"path",73)(55,"path",74)(56,"path",75)(57,"path",76)(58,"path",77)(59,"path",78)(60,"path",79)(61,"path",80)(62,"path",88)(63,"path",82)(64,"path",89),e.j41(65,"defs")(66,"linearGradient",90),e.nrm(67,"stop",91)(68,"stop",92)(69,"stop",93),e.k0s(),e.j41(70,"linearGradient",94),e.nrm(71,"stop",91)(72,"stop",92)(73,"stop",93),e.k0s(),e.j41(74,"linearGradient",95),e.nrm(75,"stop",91)(76,"stop",92)(77,"stop",93),e.k0s(),e.j41(78,"linearGradient",96),e.nrm(79,"stop",91)(80,"stop",92)(81,"stop",93),e.k0s(),e.j41(82,"linearGradient",97),e.nrm(83,"stop",91)(84,"stop",92)(85,"stop",93),e.k0s(),e.j41(86,"linearGradient",98),e.nrm(87,"stop",91)(88,"stop",92)(89,"stop",93),e.k0s()()(),r.joV(),e.j41(90,"div",47)(91,"mat-card-title"),e.EFF(92,"Step 1: Unbalanced channel"),e.k0s()(),e.j41(93,"div",48)(94,"mat-card-subtitle",49),e.EFF(95," It starts with an unbalanced channel, that needs to be rebalanced in order to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Il(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",99),e.nrm(2,"path",100)(3,"path",101)(4,"path",102)(5,"path",103)(6,"path",104)(7,"path",105)(8,"path",106)(9,"path",107)(10,"path",108)(11,"path",109)(12,"path",110)(13,"path",111)(14,"path",112)(15,"path",113)(16,"path",114)(17,"path",52)(18,"path",115)(19,"path",116)(20,"path",117)(21,"path",118)(22,"path",119)(23,"path",120)(24,"path",121)(25,"path",122)(26,"path",83)(27,"path",84)(28,"path",123)(29,"path",124)(30,"path",125)(31,"path",126)(32,"path",67)(33,"path",127)(34,"path",128)(35,"path",129)(36,"path",130)(37,"path",131)(38,"path",132)(39,"path",74)(40,"path",75)(41,"path",133)(42,"path",77)(43,"path",78)(44,"path",79)(45,"path",80)(46,"path",134)(47,"path",135)(48,"path",136),e.j41(49,"defs")(50,"linearGradient",137),e.nrm(51,"stop",91)(52,"stop",92)(53,"stop",93),e.k0s(),e.j41(54,"linearGradient",138),e.nrm(55,"stop",91)(56,"stop",92)(57,"stop",93),e.k0s(),e.j41(58,"linearGradient",139),e.nrm(59,"stop",91)(60,"stop",92)(61,"stop",93),e.k0s()()(),r.joV(),e.j41(62,"div",47)(63,"mat-card-title"),e.EFF(64,"Step 2: Invoice/Payment"),e.k0s()(),e.j41(65,"div",48)(66,"mat-card-subtitle",49),e.EFF(67," All you have to do is make a payment to yourself in a favorable direction by generating and paying an invoice. This is taken care automatically by your node. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function Ll(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",141)(3,"path",142)(4,"path",143)(5,"path",144)(6,"path",145)(7,"path",146)(8,"path",147)(9,"path",148)(10,"path",149)(11,"path",150)(12,"path",151)(13,"path",152)(14,"path",153)(15,"path",154)(16,"path",155)(17,"path",156)(18,"path",157)(19,"path",158)(20,"path",159)(21,"path",160)(22,"path",161)(23,"path",162)(24,"path",163)(25,"path",164)(26,"path",163)(27,"path",165)(28,"path",166)(29,"path",167)(30,"path",168)(31,"path",169)(32,"path",170)(33,"path",171)(34,"path",172)(35,"path",173)(36,"path",174)(37,"path",175)(38,"path",176)(39,"path",177)(40,"path",178)(41,"path",179),e.j41(42,"defs")(43,"linearGradient",180),e.nrm(44,"stop",91)(45,"stop",92)(46,"stop",93),e.k0s()()(),r.joV(),e.j41(47,"div",47)(48,"mat-card-title"),e.EFF(49,"Step 3: Rebalance amount"),e.k0s()(),e.j41(50,"div",48)(51,"mat-card-subtitle",49),e.EFF(52," You will be moving part or all of the local balance to the remote side. For the route to be circular, there should be at least 3 nodes involved. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}function wl(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",50),e.bIt("swipe",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSwipe(o))}),r.qSk(),e.j41(1,"svg",140),e.nrm(2,"path",181)(3,"path",143)(4,"path",182)(5,"path",145)(6,"path",146)(7,"path",183)(8,"path",148)(9,"path",184)(10,"path",185)(11,"path",186)(12,"path",187)(13,"path",188)(14,"path",189)(15,"path",190)(16,"path",191)(17,"path",192)(18,"path",158)(19,"path",193)(20,"path",194)(21,"path",179)(22,"path",160)(23,"path",161)(24,"path",195)(25,"path",163)(26,"path",164)(27,"path",163)(28,"path",165)(29,"path",166)(30,"path",167)(31,"path",168)(32,"path",196)(33,"path",170)(34,"path",197)(35,"path",172)(36,"path",173)(37,"path",174)(38,"path",175)(39,"path",176)(40,"path",198),e.j41(41,"defs")(42,"linearGradient",199),e.nrm(43,"stop",91)(44,"stop",92)(45,"stop",93),e.k0s()()(),r.joV(),e.j41(46,"div",47)(47,"mat-card-title"),e.EFF(48,"Rebalance successful!"),e.k0s()(),e.j41(49,"div",48)(50,"mat-card-subtitle",49),e.EFF(51," Your channel is successfully rebalanced and is able to continue to route payments. "),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@sliderAnimation",n.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,fe,n.screenSize===n.screenSizeEnum.XS,n.screenSize!==n.screenSizeEnum.XS))}}let jl=(()=>{var t;class s{constructor(i){this.commonService=i,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(i){2===i.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===i.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance-infographics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["infoStepBlock1",""],["infoStepBlock2",""],["infoStepBlock3",""],["infoStepBlock4",""],["infoStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between starts",3,"swipe"],["fxFlex","30","viewBox","0 0 246 154","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M187.8 136C203.043 136 215.4 133.493 215.4 130.4C215.4 127.307 203.043 124.8 187.8 124.8C172.557 124.8 160.2 127.307 160.2 130.4C160.2 133.493 172.557 136 187.8 136Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M128.6 148.8C143.843 148.8 156.2 146.293 156.2 143.2C156.2 140.107 143.843 137.6 128.6 137.6C113.357 137.6 101 140.107 101 143.2C101 146.293 113.357 148.8 128.6 148.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["opacity","0.1","d","M100.2 117.421C100.2 117.421 99.0633 117.494 99.4998 117.722C99.9363 117.95 100.2 117.421 100.2 117.421Z","fill","black"],["opacity","0.1","d","M101 118.4C100.986 118.471 98.1102 119.483 98.673 119.933C99.2358 120.384 101 118.4 101 118.4Z","fill","black"],["opacity","0.1","d","M97.8 128.98C98.0492 128.966 100.509 128.241 101 128.89L97.8 128.98Z","fill","black"],["opacity","0.1","d","M100.2 129.709C100.2 129.709 100.563 129.362 100.926 129.543C101.289 129.725 100.2 129.709 100.2 129.709Z","fill","black"],["opacity","0.1","d","M101.8 132C101.8 132 101.641 133.198 101 133.6L101.8 132Z","fill","black"],["d","M119.223 21.4239L123.102 22.0818L118.209 50.9111L114.33 50.2532L119.223 21.4239Z",1,"fill-color-primary-darker"],["d","M127.4 137.844L128.262 144L129 137.6L127.4 137.844Z",1,"fill-color-29"],["d","M100.2 134.349V138.226L101 141.6H101.571L102.258 137.976L102.6 133.6L100.2 134.349Z",1,"fill-color-28"],["d","M110.75 50.4L104.806 87.6521C104.806 87.6521 96.0162 127.358 99.3581 135.2H103.57L116.2 58.9791L110.75 50.4Z",1,"fill-color-29"],["d","M125.308 45.6L129.979 83.02C129.979 83.02 133.381 130.691 129.656 138.4H125.976L119.4 53.9698L125.308 45.6Z",1,"fill-color-29"],["d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M110.017 36.2213C110.634 34.1443 112.565 32.7417 114.724 32.8019C118.318 32.893 123.873 33.5496 126.77 36.5268C131.261 41.1521 123.736 56.731 123.736 56.731C123.736 56.731 116.69 69.7545 110.267 53.2022C110.258 53.2159 107.595 44.3527 110.017 36.2213Z","fill","black"],["d","M112.922 39.2661C113.364 37.7699 114.731 36.7605 116.259 36.8012C118.804 36.8682 122.74 37.3423 124.787 39.4927C127.969 42.8316 122.638 54.0832 122.638 54.0832C122.638 54.0832 117.661 63.4872 113.092 51.5396C113.092 51.5327 111.203 45.1393 112.922 39.2661Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M131.383 131.52C131.69 131.628 131.968 131.791 132.2 132C131.813 131.613 130.708 131.42 130.166 131.24C129.495 131.019 128.764 130.793 128.2 130.4C129.29 130.705 130.354 131.079 131.383 131.52Z","fill","black"],["opacity","0.1","d","M94.2 24.8C96.1882 24.8 97.8 23.1882 97.8 21.2C97.8 19.2118 96.1882 17.6 94.2 17.6C92.2117 17.6 90.6 19.2118 90.6 21.2C90.6 23.1882 92.2117 24.8 94.2 24.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M107 12C110.314 12 113 9.31371 113 6C113 2.68629 110.314 0 107 0C103.686 0 101 2.68629 101 6C101 9.31371 103.686 12 107 12Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M99 40.8C102.314 40.8 105 38.1137 105 34.8C105 31.4863 102.314 28.8 99 28.8C95.6863 28.8 93 31.4863 93 34.8C93 38.1137 95.6863 40.8 99 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M223 67.2C224.988 67.2 226.6 65.5882 226.6 63.6C226.6 61.6118 224.988 60 223 60C221.012 60 219.4 61.6118 219.4 63.6C219.4 65.5882 221.012 67.2 223 67.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M210.2 54.4C213.514 54.4 216.2 51.7137 216.2 48.4C216.2 45.0863 213.514 42.4 210.2 42.4C206.886 42.4 204.2 45.0863 204.2 48.4C204.2 51.7137 206.886 54.4 210.2 54.4Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M218.2 83.2C221.514 83.2 224.2 80.5137 224.2 77.2C224.2 73.8863 221.514 71.2 218.2 71.2C214.886 71.2 212.2 73.8863 212.2 77.2C212.2 80.5137 214.886 83.2 218.2 83.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M23.8 72C24.9046 72 25.8 71.1046 25.8 70C25.8 68.8954 24.9046 68 23.8 68C22.6954 68 21.8 68.8954 21.8 70C21.8 71.1046 22.6954 72 23.8 72Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M33 65.6C34.7673 65.6 36.2 64.1673 36.2 62.4C36.2 60.6327 34.7673 59.2 33 59.2C31.2327 59.2 29.8 60.6327 29.8 62.4C29.8 64.1673 31.2327 65.6 33 65.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M17 71.2C18.7673 71.2 20.2 69.7673 20.2 68C20.2 66.2327 18.7673 64.8 17 64.8C15.2327 64.8 13.8 66.2327 13.8 68C13.8 69.7673 15.2327 71.2 17 71.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M171.8 60C172.905 60 173.8 59.1046 173.8 58C173.8 56.8954 172.905 56 171.8 56C170.695 56 169.8 56.8954 169.8 58C169.8 59.1046 170.695 60 171.8 60Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M180.2 53.6C181.967 53.6 183.4 52.1673 183.4 50.4C183.4 48.6327 181.967 47.2 180.2 47.2C178.433 47.2 177 48.6327 177 50.4C177 52.1673 178.433 53.6 180.2 53.6Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M164.2 59.2C165.967 59.2 167.4 57.7673 167.4 56C167.4 54.2327 165.967 52.8 164.2 52.8C162.433 52.8 161 54.2327 161 56C161 57.7673 162.433 59.2 164.2 59.2Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M51 40.8C55.6392 40.8 59.4 37.0392 59.4 32.4C59.4 27.7608 55.6392 24 51 24C46.3608 24 42.6 27.7608 42.6 32.4C42.6 37.0392 46.3608 40.8 51 40.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M98.6 64.8C101.251 64.8 103.4 62.651 103.4 60C103.4 57.349 101.251 55.2 98.6 55.2C95.949 55.2 93.8 57.349 93.8 60C93.8 62.651 95.949 64.8 98.6 64.8Z",1,"fill-color-primary-darker"],["opacity","0.1","d","M145.8 96.8C148.451 96.8 150.6 94.651 150.6 92C150.6 89.349 148.451 87.2 145.8 87.2C143.149 87.2 141 89.349 141 92C141 94.651 143.149 96.8 145.8 96.8Z",1,"fill-color-primary-darker"],["fill-rule","evenodd","clip-rule","evenodd","d","M59.8 136.8C75.0431 136.8 87.4 134.293 87.4 131.2C87.4 128.107 75.0431 125.6 59.8 125.6C44.557 125.6 32.2 128.107 32.2 131.2C32.2 134.293 44.557 136.8 59.8 136.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M217.4 152.8C232.643 152.8 245 150.293 245 147.2C245 144.107 232.643 141.6 217.4 141.6C202.157 141.6 189.8 144.107 189.8 147.2C189.8 150.293 202.157 152.8 217.4 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["fill-rule","evenodd","clip-rule","evenodd","d","M28.6 152.8C43.8431 152.8 56.2 150.293 56.2 147.2C56.2 144.107 43.8431 141.6 28.6 141.6C13.3569 141.6 1 144.107 1 147.2C1 150.293 13.3569 152.8 28.6 152.8Z","stroke-width","0.8","stroke-dasharray","4 4",1,"fill-color-1","stroke-color-primary"],["d","M122.425 44.7H119.162L120.372 41.0719C120.484 40.6219 120.147 40.2 119.725 40.2H115.675C115.337 40.2 115.028 40.4531 115 40.7906L114.1 47.5406C114.044 47.9625 114.353 48.3 114.775 48.3H118.094L116.8 53.7844C116.716 54.2063 117.025 54.6 117.447 54.6C117.7 54.6 117.925 54.4875 118.037 54.2625L122.987 45.7125C123.269 45.2906 122.931 44.7 122.425 44.7Z","fill","white"],["d","M23.5204 123.2C23.0498 123.2 22.6141 123.375 22.2807 123.669C21.9491 123.96 21.7189 124.369 21.6565 124.837L20.2164 135.712C20.1423 136.278 20.3237 136.811 20.6643 137.203C21.0076 137.598 21.5119 137.85 22.0804 137.85H26.4117L24.5687 145.68C24.4289 146.274 24.5836 146.851 24.9204 147.28C25.2626 147.716 25.7931 148 26.3959 148C26.7289 148 27.0539 147.911 27.3385 147.746C27.616 147.585 27.8553 147.351 28.0254 147.055L35.9453 133.28C36.3068 132.658 36.2644 131.95 35.9495 131.398C35.7868 131.113 35.551 130.871 35.2622 130.703C34.9905 130.544 34.6717 130.45 34.3203 130.45H30.1609L31.7043 124.49C31.5476 124.305 31.4051 124.176 31.278 124.085C31.004 123.89 30.5348 123.687 29.7238 123.539C28.6009 123.335 26.6977 123.2 23.5204 123.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M185.5 109.6C185.075 109.6 184.682 109.757 184.381 110.02C184.08 110.284 183.872 110.652 183.815 111.073L182.615 120.074C182.548 120.585 182.712 121.066 183.021 121.419C183.331 121.774 183.787 122 184.3 122H187.74L186.244 128.309C186.117 128.846 186.258 129.366 186.564 129.753C186.873 130.145 187.352 130.4 187.897 130.4C188.505 130.4 189.084 130.074 189.391 129.512L195.745 115.6H191.208L192.467 110.771C192.308 110.576 192.165 110.445 192.04 110.357C191.803 110.189 191.397 110.01 190.693 109.883C189.753 109.713 188.16 109.6 185.5 109.6Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M215.1 128C214.675 128 214.282 128.157 213.981 128.42C213.68 128.683 213.472 129.052 213.415 129.473L212.215 138.474C212.148 138.985 212.312 139.466 212.621 139.819C212.931 140.174 213.387 140.4 213.9 140.4H217.34L215.844 146.709C215.717 147.246 215.858 147.766 216.164 148.153C216.473 148.545 216.952 148.8 217.497 148.8C218.105 148.8 218.684 148.474 218.991 147.912L225.345 134H220.808L222.067 129.171C221.908 128.976 221.765 128.845 221.64 128.757C221.403 128.589 220.997 128.41 220.293 128.283C219.353 128.113 217.76 128 215.1 128Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["d","M55.9003 111.2C55.4754 111.2 55.0822 111.357 54.7812 111.62C54.4802 111.883 54.2716 112.252 54.215 112.673L53.0149 121.674C52.9475 122.185 53.112 122.666 53.4214 123.019C53.7314 123.374 54.1868 123.6 54.7004 123.6H58.1398L56.6444 129.909C56.5174 130.446 56.6576 130.966 56.9637 131.353C57.2728 131.745 57.7518 132 58.2966 132C58.9052 132 59.4843 131.674 59.7907 131.112L66.1452 117.2H61.6081L62.8674 112.371C62.7082 112.176 62.5651 112.045 62.4402 111.957C62.2025 111.789 61.7969 111.61 61.0927 111.483C60.1529 111.313 58.5599 111.2 55.9003 111.2Z","stroke-width","1.6",1,"stroke-color-primary","fill-color-17"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 210 124","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M90.1491 0H0V100.616H90.1491V0Z",1,"fill-color-10"],["d","M88.6575 67.1775H1.48926V98.4248H88.6575V67.1775Z","fill","white"],["d","M59.844 74.5891H8.64404V90.6009H59.844V74.5891Z",1,"fill-color-primary-darker"],["d","M76.3172 90.6426C80.8187 90.6426 84.4679 86.9934 84.4679 82.4919C84.4679 77.9904 80.8187 74.3412 76.3172 74.3412C71.8157 74.3412 68.1665 77.9904 68.1665 82.4919C68.1665 86.9934 71.8157 90.6426 76.3172 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6575 34.7129H1.48926V65.9602H88.6575V34.7129Z","fill","white"],["d","M59.844 42.1244H8.64404V58.1363H59.844V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3172 58.1801C80.8187 58.1801 84.4679 54.5309 84.4679 50.0294C84.4679 45.5279 80.8187 41.8787 76.3172 41.8787C71.8157 41.8787 68.1665 45.5279 68.1665 50.0294C68.1665 54.5309 71.8157 58.1801 76.3172 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6575 2.24823H1.48926V33.4955H88.6575V2.24823Z","fill","white"],["d","M59.844 9.66199H8.64404V25.6739H59.844V9.66199Z",1,"fill-color-primary-darker"],["d","M32.644 74.5891H8.64404V90.6009H32.644V74.5891Z",1,"fill-color-17"],["d","M45.444 42.1244H8.64404V58.1363H45.444V42.1244Z",1,"fill-color-17"],["d","M59.644 9.66199H8.64404V25.662H59.644V9.66199Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint0_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint2_linear)"],["d","M76.1507 25.3014C80.6522 25.3014 84.3014 21.6522 84.3014 17.1507C84.3014 12.6492 80.6522 9 76.1507 9C71.6492 9 68 12.6492 68 17.1507C68 21.6522 71.6492 25.3014 76.1507 25.3014Z",1,"fill-color-17"],["d","M193.435 36.7899H142.709V35.7444H119.709V36.7899H68.7744C67.8644 36.7899 66.9917 37.1514 66.3482 37.7949C65.7048 38.4384 65.3433 39.3111 65.3433 40.2211V109.679C65.3433 110.589 65.7048 111.462 66.3482 112.106C66.9917 112.749 67.8644 113.111 68.7744 113.111H193.435C195.33 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.345 36.7899 193.435 36.7899Z",1,"fill-color-19"],["d","M192.266 42.8538H69.9434V111.856H192.266V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.284 111.856H69.9434V42.8538L157.284 111.856Z","fill","black"],["d","M89.0832 106.693C95.577 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.577 83.1766 89.0832 83.1766C82.5894 83.1766 77.3252 88.4408 77.3252 94.9346C77.3252 101.428 82.5894 106.693 89.0832 106.693Z",1,"fill-color-25"],["d","M91.7005 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7005 103.772ZM91.7005 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7005 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7005 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0673H159.541V82.4548H170.967V80.0673Z",1,"fill-color-19"],["d","M184.781 61.4783H145.727V62.5015H184.781V61.4783Z",1,"fill-color-19"],["d","M184.781 64.7186H145.727V65.7418H184.781V64.7186Z",1,"fill-color-19"],["d","M184.781 67.9589H145.727V68.9821H184.781V67.9589Z",1,"fill-color-19"],["d","M184.781 71.1991H145.727V72.2224H184.781V71.1991Z",1,"fill-color-19"],["d","M184.781 74.4394H145.727V75.4626H184.781V74.4394Z",1,"fill-color-19"],["d","M184.781 44.2537H180.006V49.0288H184.781V44.2537Z",1,"fill-color-25"],["d","M186.998 51.2458H181.2V45.4474H186.998V51.2458ZM181.452 50.9937H186.746V45.6996H181.452V50.9937Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.115C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.261 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.042 109.589 156.01 109.621C155.978 109.653 155.96 109.696 155.96 109.741V110.601H153.402V109.741C153.402 109.696 153.384 109.653 153.352 109.621C153.32 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.089 109.589 114.057 109.621C114.025 109.653 114.007 109.696 114.007 109.741V110.601H111.449V109.741C111.449 109.696 111.431 109.653 111.399 109.621C111.367 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.148 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.4642V109.741C97.4642 109.696 97.4462 109.653 97.4142 109.621C97.3822 109.589 97.3388 109.571 97.2936 109.571H93.2006C93.1554 109.571 93.112 109.589 93.08 109.621C93.048 109.653 93.0301 109.696 93.0301 109.741V110.601H90.472V109.741C90.472 109.696 90.454 109.653 90.422 109.621C90.39 109.589 90.3467 109.571 90.3014 109.571H86.2085C86.1632 109.571 86.1198 109.589 86.0879 109.621C86.0559 109.653 86.0379 109.696 86.0379 109.741V110.601H83.4798V109.741C83.4798 109.696 83.4618 109.653 83.4299 109.621C83.3979 109.589 83.3545 109.571 83.3093 109.571H79.2163C79.171 109.571 79.1277 109.589 79.0957 109.621C79.0637 109.653 79.0457 109.696 79.0457 109.741V110.601H76.4876V109.741C76.4876 109.696 76.4697 109.653 76.4377 109.621C76.4057 109.589 76.3623 109.571 76.3171 109.571H72.2241C72.1789 109.571 72.1355 109.589 72.1035 109.621C72.0715 109.653 72.0536 109.696 72.0536 109.741V110.601H64.2087C61.9482 110.601 60.1157 112.434 60.1157 114.694V116.545C60.1157 118.806 61.9482 120.638 64.2087 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8456 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9773 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1718L88.0762 87.0663C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5347 96.5996L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M42 75H9V91H42V75Z",1,"fill-color-17"],["d","M42 42H9V58H42V42Z",1,"fill-color-17"],["d","M76.3176 26.3516C81.1704 26.3516 85.1044 22.4176 85.1044 17.5648C85.1044 12.712 81.1704 8.77802 76.3176 8.77802C71.4648 8.77802 67.5308 12.712 67.5308 17.5648C67.5308 22.4176 71.4648 26.3516 76.3176 26.3516Z","fill","url(#paint3_linear)"],["d","M76.3176 59.0334C81.1704 59.0334 85.1044 55.0994 85.1044 50.2466C85.1044 45.3938 81.1704 41.4598 76.3176 41.4598C71.4648 41.4598 67.5308 45.3938 67.5308 50.2466C67.5308 55.0994 71.4648 59.0334 76.3176 59.0334Z","fill","url(#paint4_linear)"],["d","M76.3176 91.4958C81.1704 91.4958 85.1044 87.5618 85.1044 82.709C85.1044 77.8562 81.1704 73.9222 76.3176 73.9222C71.4648 73.9222 67.5308 77.8562 67.5308 82.709C67.5308 87.5618 71.4648 91.4958 76.3176 91.4958Z","fill","url(#paint5_linear)"],["d","M205.185 113.031H193.247V112.171C193.247 112.125 193.229 112.082 193.197 112.05C193.165 112.018 193.121 112 193.076 112H188.983C188.938 112 188.895 112.018 188.863 112.05C188.831 112.082 188.813 112.125 188.813 112.171V113.031H186.254V112.171C186.254 112.125 186.237 112.082 186.205 112.05C186.173 112.018 186.129 112 186.084 112H181.991C181.946 112 181.902 112.018 181.87 112.05C181.838 112.082 181.82 112.125 181.82 112.171V113.031H179.262V112.171C179.262 112.125 179.244 112.082 179.212 112.05C179.18 112.018 179.137 112 179.092 112H174.999C174.954 112 174.91 112.018 174.878 112.05C174.846 112.082 174.828 112.125 174.828 112.171V113.031H172.27V112.171C172.27 112.125 172.252 112.082 172.22 112.05C172.188 112.018 172.145 112 172.1 112H168.007C167.961 112 167.918 112.018 167.886 112.05C167.854 112.082 167.836 112.125 167.836 112.171V113.031H165.278V112.171C165.278 112.125 165.26 112.082 165.228 112.05C165.196 112.018 165.153 112 165.107 112H161.014C160.969 112 160.926 112.018 160.894 112.05C160.862 112.082 160.844 112.125 160.844 112.171V113.031H158.286V112.171C158.286 112.125 158.268 112.082 158.236 112.05C158.204 112.018 158.16 112 158.115 112H154.022C153.977 112 153.934 112.018 153.902 112.05C153.87 112.082 153.852 112.125 153.852 112.171V113.031H151.294V112.171C151.294 112.125 151.276 112.082 151.244 112.05C151.212 112.018 151.168 112 151.123 112H119.061C119.016 112 118.973 112.018 118.941 112.05C118.909 112.082 118.891 112.125 118.891 112.171V113.031H116.333V112.171C116.333 112.125 116.315 112.082 116.283 112.05C116.251 112.018 116.207 112 116.162 112H112.069C112.024 112 111.981 112.018 111.949 112.05C111.917 112.082 111.899 112.125 111.899 112.171V113.031H109.341V112.171C109.341 112.125 109.323 112.082 109.291 112.05C109.259 112.018 109.215 112 109.17 112H105.077C105.032 112 104.988 112.018 104.956 112.05C104.924 112.082 104.907 112.125 104.907 112.171V113.031H102.348V112.171C102.348 112.125 102.33 112.082 102.298 112.05C102.266 112.018 102.223 112 102.178 112H98.0849C98.0397 112 97.9963 112.018 97.9643 112.05C97.9323 112.082 97.9144 112.125 97.9144 112.171V113.031H95.3563V112.171C95.3563 112.125 95.3383 112.082 95.3063 112.05C95.2743 112.018 95.2309 112 95.1857 112H91.0927C91.0475 112 91.0041 112.018 90.9721 112.05C90.9402 112.082 90.9222 112.125 90.9222 112.171V113.031H88.3641V112.171C88.3641 112.125 88.3461 112.082 88.3141 112.05C88.2822 112.018 88.2388 112 88.1935 112H84.1006C84.0553 112 84.0119 112.018 83.98 112.05C83.948 112.082 83.93 112.125 83.93 112.171V113.031H81.3719V112.171C81.3719 112.125 81.3539 112.082 81.322 112.05C81.29 112.018 81.2466 112 81.2014 112H77.1084C77.0632 112 77.0198 112.018 76.9878 112.05C76.9558 112.082 76.9378 112.125 76.9379 112.171V113.031H69.093C66.8325 113.031 65 114.863 65 117.124V118.974C65 121.235 66.8325 123.067 69.093 123.067H205.185C207.445 123.067 209.277 121.235 209.277 118.974V117.124C209.277 114.863 207.445 113.031 205.185 113.031Z",1,"fill-color-19"],["d","M78.375 20.625C78.375 19.5938 77.5312 18.75 76.5 18.75C75.4453 18.75 74.625 19.5938 74.625 20.625C74.625 21.6797 75.4453 22.5 76.5 22.5C77.5312 22.5 78.375 21.6797 78.375 20.625ZM74.8359 11.1094L75.1406 17.4844C75.1641 17.7656 75.4219 18 75.7031 18H77.2734C77.5547 18 77.8125 17.7656 77.8359 17.4844L78.1406 11.1094C78.1641 10.7812 77.9062 10.5 77.5781 10.5H75.3984C75.0703 10.5 74.8125 10.7812 74.8359 11.1094Z","fill","white"],["id","paint0_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["stop-color","#808080","stop-opacity","0.25"],["offset","0.54","stop-color","#808080","stop-opacity","0.12"],["offset","1","stop-color","#808080","stop-opacity","0.1"],["id","paint1_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["id","paint3_linear","x1","76.3176","y1","26.3516","x2","76.3176","y2","8.77802","gradientUnits","userSpaceOnUse"],["id","paint4_linear","x1","76.3176","y1","59.0334","x2","76.3176","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint5_linear","x1","76.3176","y1","91.4958","x2","76.3176","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 370 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["d","M327.488 99.9755C350.953 99.9755 369.975 80.9531 369.975 57.4877C369.975 34.0224 350.953 15 327.488 15C304.022 15 285 34.0224 285 57.4877C285 80.9531 304.022 99.9755 327.488 99.9755Z",1,"fill-color-25"],["d","M115.068 85.6077H349.8V86.5722H113L115.068 85.6077Z",1,"fill-color-19"],["d","M236.776 84.376H226.024V91.544H236.776V84.376Z",1,"fill-color-primary-lighter"],["d","M218.856 87.96H233.192V79H218.856V87.96ZM232.569 87.5704H219.479V79.3896H232.569V87.5704Z",1,"fill-color-19"],["d","M265 57.3624H357.392V120.307H265V57.3624Z",1,"fill-color-22"],["d","M362.545 50H271.626C271.016 50.0009 270.521 50.495 270.521 51.1048V112.577C270.521 112.87 270.638 113.151 270.845 113.358C271.052 113.565 271.333 113.681 271.626 113.681H362.545C362.838 113.681 363.119 113.565 363.326 113.358C363.533 113.151 363.65 112.87 363.65 112.577V51.1048C363.65 50.495 363.155 50.0009 362.545 50ZM362.913 112.577C362.913 112.674 362.875 112.768 362.806 112.837C362.736 112.907 362.643 112.945 362.545 112.945H271.626C271.528 112.945 271.434 112.907 271.365 112.837C271.296 112.768 271.258 112.674 271.258 112.577V51.1048C271.258 50.9015 271.423 50.7365 271.626 50.7365H362.545C362.748 50.7365 362.913 50.9015 362.913 51.1048V112.577Z",1,"fill-color-19"],["d","M316.364 93.4359H275.844C275.547 93.4359 275.307 93.6766 275.307 93.9735V97.6835C275.307 97.9804 275.547 98.2211 275.844 98.2211H316.364C316.661 98.2211 316.901 97.9804 316.901 97.6835V93.9735C316.901 93.6766 316.661 93.4359 316.364 93.4359Z",1,"fill-color-19"],["d","M354.814 89.3873H341.565C341.272 89.3873 340.991 89.5036 340.784 89.7108C340.577 89.918 340.46 90.199 340.46 90.492V100.798C340.46 101.091 340.577 101.372 340.784 101.579C340.991 101.786 341.272 101.903 341.565 101.903H354.814C355.107 101.903 355.388 101.786 355.595 101.579C355.803 101.372 355.919 101.091 355.919 100.798V90.492C355.919 90.199 355.803 89.918 355.595 89.7108C355.388 89.5036 355.107 89.3873 354.814 89.3873ZM355.182 100.798C355.182 101.001 355.017 101.166 354.814 101.166H341.565C341.362 101.166 341.197 101.001 341.197 100.798V90.492C341.196 90.3943 341.235 90.3004 341.304 90.2313C341.373 90.1622 341.467 90.1235 341.565 90.1238H354.814C354.912 90.1235 355.006 90.1622 355.075 90.2313C355.144 90.3004 355.183 90.3943 355.182 90.492V100.798Z",1,"fill-color-19"],["d","M352.168 91.7653H344.211C343.914 91.7653 343.673 92.006 343.673 92.3029V93.0965C343.673 93.3934 343.914 93.6341 344.211 93.6341H352.168C352.465 93.6341 352.706 93.3934 352.706 93.0965V92.3029C352.706 92.006 352.465 91.7653 352.168 91.7653Z",1,"fill-color-19"],["d","M352.168 94.71H344.211C343.914 94.71 343.673 94.9507 343.673 95.2476V96.0412C343.673 96.3381 343.914 96.5788 344.211 96.5788H352.168C352.465 96.5788 352.706 96.3381 352.706 96.0412V95.2476C352.706 94.9507 352.465 94.71 352.168 94.71Z",1,"fill-color-19"],["d","M352.168 97.6548H344.211C343.914 97.6548 343.673 97.8955 343.673 98.1924V98.986C343.673 99.2829 343.914 99.5236 344.211 99.5236H352.168C352.465 99.5236 352.706 99.2829 352.706 98.986V98.1924C352.706 97.8955 352.465 97.6548 352.168 97.6548Z",1,"fill-color-19"],["d","M295.014 54.4177H276.949C276.652 54.4177 276.411 54.6584 276.411 54.9553V61.9782C276.411 62.2752 276.652 62.5158 276.949 62.5158H295.014C295.311 62.5158 295.552 62.2752 295.552 61.9782V54.9553C295.552 54.6584 295.311 54.4177 295.014 54.4177Z",1,"fill-color-19"],["d","M312.293 105.198C319.455 105.198 325.261 99.3917 325.261 92.2295C325.261 85.0672 319.455 79.2611 312.293 79.2611C305.131 79.2611 299.325 85.0672 299.325 92.2295C299.325 99.3917 305.131 105.198 312.293 105.198Z",1,"fill-color-25"],["d","M315.18 101.976C308.655 101.976 302.773 98.0462 300.276 92.0183C297.78 85.9904 299.16 79.052 303.773 74.4384C308.387 69.8249 315.325 68.4448 321.353 70.9416C327.381 73.4384 331.311 79.3205 331.311 85.8451C331.301 94.75 324.085 101.966 315.18 101.976ZM315.18 69.9245C306.387 69.9245 299.259 77.0524 299.259 85.8451C299.259 94.6377 306.387 101.766 315.18 101.766C323.973 101.766 331.1 94.6377 331.1 85.8451C331.09 77.0565 323.968 69.9345 315.18 69.9245Z",1,"fill-color-19"],["d","M309.677 100.883C309.936 100.948 310.216 100.873 310.41 100.673L318.163 92.664C318.571 92.2458 318.371 91.5387 317.802 91.3966L314.249 90.5107L316.557 86.8411C316.797 86.4038 316.558 85.8537 316.074 85.7332L311.64 84.6277C311.271 84.5355 310.888 84.7313 310.748 85.0854L307.92 92.2295C307.751 92.6583 307.998 93.1384 308.444 93.2497L312.099 94.161L309.186 99.7958C308.959 100.236 309.206 100.766 309.677 100.883Z",1,"fill-color-21"],["d","M88.6576 67.1775H1.48938V98.4248H88.6576V67.1775Z","fill","white"],["d","M59.8442 74.589H8.64417V90.6009H59.8442V74.589Z",1,"fill-color-primary-darker"],["d","M76.3175 90.6426C80.819 90.6426 84.4682 86.9934 84.4682 82.4919C84.4682 77.9904 80.819 74.3412 76.3175 74.3412C71.8159 74.3412 68.1667 77.9904 68.1667 82.4919C68.1667 86.9934 71.8159 90.6426 76.3175 90.6426Z",1,"fill-color-primary-darker"],["d","M88.6576 34.7129H1.48938V65.9602H88.6576V34.7129Z","fill","white"],["d","M59.8442 42.1244H8.64417V58.1363H59.8442V42.1244Z",1,"fill-color-primary-darker"],["d","M76.3175 58.1801C80.819 58.1801 84.4682 54.531 84.4682 50.0294C84.4682 45.5279 80.819 41.8787 76.3175 41.8787C71.8159 41.8787 68.1667 45.5279 68.1667 50.0294C68.1667 54.531 71.8159 58.1801 76.3175 58.1801Z",1,"fill-color-primary-darker"],["d","M88.6576 2.24824H1.48938V33.4955H88.6576V2.24824Z","fill","white"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-primary-darker"],["d","M59.8442 9.66196H8.64417V25.6738H59.8442V9.66196Z",1,"fill-color-17"],["d","M76.7868 26.5736C81.6396 26.5736 85.5736 22.6396 85.5736 17.7868C85.5736 12.934 81.6396 9 76.7868 9C71.934 9 68 12.934 68 17.7868C68 22.6396 71.934 26.5736 76.7868 26.5736Z","fill","url(#paint0_linear)"],["d","M76.3174 59.0334C81.1702 59.0334 85.1042 55.0994 85.1042 50.2466C85.1042 45.3938 81.1702 41.4598 76.3174 41.4598C71.4646 41.4598 67.5306 45.3938 67.5306 50.2466C67.5306 55.0994 71.4646 59.0334 76.3174 59.0334Z","fill","url(#paint1_linear)"],["d","M76.3174 91.4958C81.1702 91.4958 85.1042 87.5618 85.1042 82.709C85.1042 77.8562 81.1702 73.9222 76.3174 73.9222C71.4646 73.9222 67.5306 77.8562 67.5306 82.709C67.5306 87.5618 71.4646 91.4958 76.3174 91.4958Z","fill","url(#paint2_linear)"],["d","M193.434 36.7899H142.709V35.7444H119.708V36.7899H68.7742C67.8642 36.7899 66.9915 37.1514 66.348 37.7949C65.7045 38.4384 65.343 39.3111 65.343 40.2211V109.679C65.343 110.589 65.7045 111.462 66.348 112.106C66.9915 112.749 67.8642 113.111 68.7742 113.111H193.434C195.329 113.111 196.866 111.574 196.866 109.679V40.2211C196.866 39.3111 196.504 38.4384 195.861 37.7949C195.217 37.1514 194.344 36.7899 193.434 36.7899Z",1,"fill-color-19"],["d","M192.265 42.8538H69.9432V111.856H192.265V42.8538Z",1,"fill-color-22"],["opacity","0.1","d","M157.283 111.856H69.9432V42.8538L157.283 111.856Z","fill","black"],["d","M89.0829 106.693C95.5767 106.693 100.841 101.428 100.841 94.9346C100.841 88.4408 95.5767 83.1766 89.0829 83.1766C82.5892 83.1766 77.325 88.4408 77.325 94.9346C77.325 101.428 82.5892 106.693 89.0829 106.693Z",1,"fill-color-25"],["d","M91.7004 103.772C85.7849 103.772 80.4518 100.208 78.188 94.7431C75.9242 89.2778 77.1755 82.987 81.3584 78.8041C85.5414 74.6211 91.8322 73.3698 97.2975 75.6336C102.763 77.8974 106.326 83.2305 106.326 89.1461C106.317 97.2199 99.7743 103.763 91.7004 103.772ZM91.7004 74.7115C83.7284 74.7115 77.2658 81.174 77.2658 89.1461C77.2658 97.1181 83.7284 103.581 91.7004 103.581C99.6725 103.581 106.135 97.1181 106.135 89.1461C106.126 81.1778 99.6687 74.7205 91.7004 74.7115Z",1,"fill-color-28"],["d","M170.967 80.0672H159.541V82.4548H170.967V80.0672Z",1,"fill-color-19"],["d","M184.781 67.9588H145.727V68.9821H184.781V67.9588Z",1,"fill-color-19"],["d","M200.3 110.601H188.362V109.741C188.362 109.696 188.344 109.653 188.312 109.621C188.28 109.589 188.237 109.571 188.192 109.571H184.099C184.054 109.571 184.01 109.589 183.978 109.621C183.946 109.653 183.928 109.696 183.928 109.741V110.601H181.37V109.741C181.37 109.696 181.352 109.653 181.32 109.621C181.288 109.589 181.245 109.571 181.2 109.571H177.107C177.061 109.571 177.018 109.589 176.986 109.621C176.954 109.653 176.936 109.696 176.936 109.741V110.601H174.378V109.741C174.378 109.696 174.36 109.653 174.328 109.621C174.296 109.589 174.253 109.571 174.207 109.571H170.114C170.069 109.571 170.026 109.589 169.994 109.621C169.962 109.653 169.944 109.696 169.944 109.741V110.601H167.386V109.741C167.386 109.696 167.368 109.653 167.336 109.621C167.304 109.589 167.26 109.571 167.215 109.571H163.122C163.077 109.571 163.034 109.589 163.002 109.621C162.97 109.653 162.952 109.696 162.952 109.741V110.601H160.394V109.741C160.394 109.696 160.376 109.653 160.344 109.621C160.312 109.589 160.268 109.571 160.223 109.571H156.13C156.085 109.571 156.041 109.589 156.009 109.621C155.977 109.653 155.96 109.696 155.96 109.741V110.601H153.401V109.741C153.401 109.696 153.383 109.653 153.351 109.621C153.319 109.589 153.276 109.571 153.231 109.571H149.138C149.093 109.571 149.049 109.589 149.017 109.621C148.985 109.653 148.967 109.696 148.967 109.741V110.601H146.409V109.741C146.409 109.696 146.391 109.653 146.359 109.621C146.327 109.589 146.284 109.571 146.239 109.571H114.177C114.132 109.571 114.088 109.589 114.056 109.621C114.024 109.653 114.006 109.696 114.006 109.741V110.601H111.448V109.741C111.448 109.696 111.43 109.653 111.398 109.621C111.366 109.589 111.323 109.571 111.278 109.571H107.185C107.14 109.571 107.096 109.589 107.064 109.621C107.032 109.653 107.014 109.696 107.014 109.741V110.601H104.456V109.741C104.456 109.696 104.438 109.653 104.406 109.621C104.374 109.589 104.331 109.571 104.286 109.571H100.193C100.147 109.571 100.104 109.589 100.072 109.621C100.04 109.653 100.022 109.696 100.022 109.741V110.601H97.464V109.741C97.464 109.696 97.4461 109.653 97.4141 109.621C97.3821 109.589 97.3387 109.571 97.2935 109.571H93.2005C93.1553 109.571 93.1119 109.589 93.0799 109.621C93.0479 109.653 93.03 109.696 93.03 109.741V110.601H90.4719V109.741C90.4719 109.696 90.4539 109.653 90.4219 109.621C90.3899 109.589 90.3465 109.571 90.3013 109.571H86.2083C86.1631 109.571 86.1197 109.589 86.0877 109.621C86.0558 109.653 86.0378 109.696 86.0378 109.741V110.601H83.4797V109.741C83.4797 109.696 83.4617 109.653 83.4297 109.621C83.3978 109.589 83.3544 109.571 83.3091 109.571H79.2162C79.1709 109.571 79.1276 109.589 79.0956 109.621C79.0636 109.653 79.0456 109.696 79.0456 109.741V110.601H76.4875V109.741C76.4875 109.696 76.4695 109.653 76.4376 109.621C76.4056 109.589 76.3622 109.571 76.317 109.571H72.224C72.1788 109.571 72.1354 109.589 72.1034 109.621C72.0714 109.653 72.0535 109.696 72.0535 109.741V110.601H64.2086C61.9481 110.601 60.1156 112.434 60.1156 114.694V116.545C60.1156 118.806 61.9481 120.638 64.2086 120.638H200.3C202.561 120.638 204.393 118.806 204.393 116.545V114.694C204.393 112.434 202.561 110.601 200.3 110.601Z",1,"fill-color-19"],["d","M86.1131 103.322C86.3717 103.386 86.6518 103.312 86.8457 103.112L94.5986 95.1027C95.007 94.6845 94.8072 93.9774 94.2376 93.8353L90.6843 92.9494L92.9925 89.2798C93.2324 88.8425 92.9934 88.2924 92.51 88.1719L88.0762 87.0664C87.7067 86.9742 87.3243 87.17 87.1837 87.5241L84.3559 94.6682C84.1868 95.097 84.4334 95.5771 84.8799 95.6884L88.5348 96.5997L85.6221 102.235C85.3946 102.675 85.642 103.204 86.1131 103.322Z",1,"fill-color-21"],["d","M78.125 21.625C78.125 20.5938 77.2812 19.75 76.25 19.75C75.1953 19.75 74.375 20.5938 74.375 21.625C74.375 22.6797 75.1953 23.5 76.25 23.5C77.2812 23.5 78.125 22.6797 78.125 21.625ZM74.5859 12.1094L74.8906 18.4844C74.9141 18.7656 75.1719 19 75.4531 19H77.0234C77.3047 19 77.5625 18.7656 77.5859 18.4844L77.8906 12.1094C77.9141 11.7812 77.6562 11.5 77.3281 11.5H75.1484C74.8203 11.5 74.5625 11.7812 74.5859 12.1094Z","fill","white"],["id","paint0_linear","x1","76.7868","y1","26.5736","x2","76.7868","y2","9","gradientUnits","userSpaceOnUse"],["id","paint1_linear","x1","76.3174","y1","59.0334","x2","76.3174","y2","41.4598","gradientUnits","userSpaceOnUse"],["id","paint2_linear","x1","76.3174","y1","91.4958","x2","76.3174","y2","73.9222","gradientUnits","userSpaceOnUse"],["fxFlex","30","viewBox","0 0 153 200","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/2000/svg",3,"ngClass"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary-lighter"],["d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M122.399 37H32.25V137.616H122.399V37Z",1,"fill-color-10"],["d","M120.908 104.178H33.7394V135.425H120.908V104.178Z","fill","white"],["d","M92.0943 111.589H40.8943V127.601H92.0943V111.589Z",1,"fill-color-primary-darker"],["d","M108.567 127.643C113.069 127.643 116.718 123.993 116.718 119.492C116.718 114.99 113.069 111.341 108.567 111.341C104.066 111.341 100.417 114.99 100.417 119.492C100.417 123.993 104.066 127.643 108.567 127.643Z",1,"fill-color-primary-darker"],["d","M120.908 71.7129H33.7394V102.96H120.908V71.7129Z","fill","white"],["d","M92.0943 79.1244H40.8943V95.1363H92.0943V79.1244Z",1,"fill-color-primary-darker"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.531 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.531 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7394V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6738H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M74.5 112H40.5V128H74.5V112Z",1,"fill-color-17"],["d","M74.5 79H40.5V95H74.5V79Z",1,"fill-color-17"],["d","M91.8943 46.662H40.8943V62.662H91.8943V46.662Z",1,"fill-color-17"],["d","M108.567 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.567 45.778C103.715 45.778 99.7806 49.712 99.7806 54.5648C99.7806 59.4176 103.715 63.3516 108.567 63.3516Z","fill","url(#paint0_linear)"],["d","M108.567 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.567 78.4598C103.715 78.4598 99.7806 82.3938 99.7806 87.2466C99.7806 92.0994 103.715 96.0334 108.567 96.0334Z",1,"fill-color-17"],["d","M108.567 128.496C113.42 128.496 117.354 124.562 117.354 119.709C117.354 114.856 113.42 110.922 108.567 110.922C103.715 110.922 99.7806 114.856 99.7806 119.709C99.7806 124.562 103.715 128.496 108.567 128.496Z",1,"fill-color-17"],["d","M108.401 62.3014C112.902 62.3014 116.551 58.6522 116.551 54.1507C116.551 49.6492 112.902 46 108.401 46C103.899 46 100.25 49.6492 100.25 54.1507C100.25 58.6522 103.899 62.3014 108.401 62.3014Z",1,"fill-color-17"],["d","M110.625 57.625C110.625 56.5938 109.781 55.75 108.75 55.75C107.695 55.75 106.875 56.5938 106.875 57.625C106.875 58.6797 107.695 59.5 108.75 59.5C109.781 59.5 110.625 58.6797 110.625 57.625ZM107.086 48.1094L107.391 54.4844C107.414 54.7656 107.672 55 107.953 55H109.523C109.805 55 110.062 54.7656 110.086 54.4844L110.391 48.1094C110.414 47.7812 110.156 47.5 109.828 47.5H107.648C107.32 47.5 107.062 47.7812 107.086 48.1094Z","fill","white"],["d","M141.711 111C141.008 111 140.656 111.859 141.164 112.367L146.164 117.367C146.477 117.68 146.984 117.68 147.297 117.367L152.297 112.367C152.805 111.859 152.453 111 151.75 111H141.711Z",1,"fill-color-17"],["d","M84.25 185.461C84.25 184.758 83.3906 184.406 82.8828 184.914L77.8828 189.914C77.5703 190.227 77.5703 190.734 77.8828 191.047L82.8828 196.047C83.3906 196.555 84.25 196.203 84.25 195.5V185.461Z",1,"fill-color-primary-darker"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-primary-darker"],["d","M133.75 174C142.31 174 149.25 167.06 149.25 158.5C149.25 149.94 142.31 143 133.75 143C125.19 143 118.25 149.94 118.25 158.5C118.25 167.06 125.19 174 133.75 174Z",1,"fill-color-25"],["d","M129.872 169.64C130.214 169.726 130.584 169.628 130.84 169.363L141.093 158.771C141.633 158.218 141.369 157.283 140.616 157.095L135.917 155.924L138.969 151.071C139.286 150.493 138.97 149.765 138.331 149.606L132.468 148.144C131.979 148.022 131.473 148.281 131.287 148.749L127.548 158.197C127.324 158.764 127.65 159.399 128.241 159.546L133.074 160.751L129.222 168.203C128.921 168.785 129.249 169.485 129.872 169.64Z",1,"fill-color-21"],["d","M19.75 174C28.3104 174 35.25 167.06 35.25 158.5C35.25 149.94 28.3104 143 19.75 143C11.1896 143 4.25 149.94 4.25 158.5C4.25 167.06 11.1896 174 19.75 174Z",1,"fill-color-25"],["d","M19.3208 167.769C23.2973 167.769 26.5208 164.545 26.5208 160.569C26.5208 156.592 23.2973 153.369 19.3208 153.369C15.3444 153.369 12.1208 156.592 12.1208 160.569C12.1208 164.545 15.3444 167.769 19.3208 167.769Z",1,"fill-color-22"],["d","M13.7656 153.188L12.4676 152.716C12.4676 152.716 15.1815 150.002 18.9572 150.238L17.8953 149.177C17.8953 149.177 20.4911 148.233 22.851 150.71C24.0915 152.013 25.5268 153.544 26.4216 155.269H27.8116L27.2314 156.429L29.2619 157.589L27.1778 157.381C27.3752 158.383 27.3073 159.418 26.9807 160.386L26.5087 161.684C26.5087 161.684 24.6208 157.908 24.6208 157.436V158.616C24.6208 158.616 23.3229 157.554 23.3229 156.846L22.615 157.672L22.261 156.374L17.8953 157.672L18.6032 156.61L15.8894 156.964L16.9514 155.666C16.9514 155.666 13.8836 157.2 13.7656 158.498C13.6476 159.796 12.1137 161.448 12.1137 161.448L11.4058 160.268C11.4058 160.268 10.3438 154.958 13.7656 153.188Z",1,"fill-color-21"],["d","M76.75 31C68.1896 31 61.25 24.0604 61.25 15.5C61.25 6.93959 68.1896 0 76.75 0C85.3104 0 92.25 6.93959 92.25 15.5C92.25 24.0604 85.3104 31 76.75 31Z",1,"fill-color-25"],["d","M77.1792 24.7687C73.2027 24.7687 69.9792 21.5452 69.9792 17.5687C69.9792 13.5923 73.2027 10.3687 77.1792 10.3687C81.1556 10.3687 84.3792 13.5923 84.3792 17.5687C84.3792 21.5452 81.1556 24.7687 77.1792 24.7687Z",1,"fill-color-22"],["d","M82.7344 10.1883L84.0324 9.71628C84.0324 9.71628 81.3185 7.00246 77.5428 7.23845L78.6047 6.17651C78.6047 6.17651 76.0089 5.23258 73.649 7.71041C72.4085 9.01295 70.9732 10.544 70.0784 12.2687H68.6884L69.2686 13.429L67.2381 14.5893L69.3222 14.3808C69.1248 15.3825 69.1927 16.4184 69.5193 17.3858L69.9913 18.6837C69.9913 18.6837 71.8792 14.9079 71.8792 14.4359V15.6159C71.8792 15.6159 73.1771 14.5539 73.1771 13.846L73.885 14.6719L74.239 13.374L78.6047 14.6719L77.8968 13.61L80.6106 13.964L79.5486 12.6661C79.5486 12.6661 82.6164 14.2 82.7344 15.4979C82.8524 16.7958 84.3863 18.4477 84.3863 18.4477L85.0942 17.2678C85.0942 17.2678 86.1562 11.9581 82.7344 10.1883Z",1,"fill-color-21"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.786 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.542 141.365 153.936Z",1,"fill-color-21"],["d","M140.968 160.376C141.521 160.376 141.968 159.928 141.968 159.376C141.968 158.823 141.521 158.376 140.968 158.376C140.416 158.376 139.968 158.823 139.968 159.376C139.968 159.928 140.416 160.376 140.968 160.376Z",1,"fill-color-22"],["d","M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z",1,"fill-color-22"],["d","M135.068 165.276C138.272 165.276 140.868 162.679 140.868 159.476C140.868 156.272 138.272 153.676 135.068 153.676C131.865 153.676 129.268 156.272 129.268 159.476C129.268 162.679 131.865 165.276 135.068 165.276Z",1,"fill-color-22"],["d","M140.384 153.575L136.049 151.304L130.062 152.233L128.824 157.704L131.907 157.585L132.768 155.576V157.552L134.191 157.498L135.017 154.298L135.533 157.704L140.591 157.601L140.384 153.575Z",1,"fill-color-21"],["d","M79.4007 199.301C83.9022 199.301 87.5514 195.652 87.5514 191.151C87.5514 186.649 83.9022 183 79.4007 183C74.8992 183 71.25 186.649 71.25 191.151C71.25 195.652 74.8992 199.301 79.4007 199.301Z",1,"fill-color-17"],["d","M82.9375 189.25H80.2188L81.2266 186.227C81.3203 185.852 81.0391 185.5 80.6875 185.5H77.3125C77.0313 185.5 76.7735 185.711 76.75 185.992L76 191.617C75.9531 191.969 76.211 192.25 76.5625 192.25H79.3281L78.25 196.82C78.1797 197.172 78.4375 197.5 78.7891 197.5C79 197.5 79.1875 197.406 79.2813 197.219L83.4063 190.094C83.6406 189.742 83.3594 189.25 82.9375 189.25Z","fill","white"],["d","M106.555 91.8125C106.789 92.0469 107.188 92.0469 107.422 91.8125L114.312 84.9219C114.547 84.6875 114.547 84.2891 114.312 84.0547L113.469 83.2109C113.234 82.9766 112.859 82.9766 112.625 83.2109L107 88.8359L104.352 86.2109C104.117 85.9766 103.742 85.9766 103.508 86.2109L102.664 87.0547C102.43 87.2891 102.43 87.6875 102.664 87.9219L106.555 91.8125Z","fill","white"],["d","M106.555 124.812C106.789 125.047 107.188 125.047 107.422 124.812L114.312 117.922C114.547 117.688 114.547 117.289 114.312 117.055L113.469 116.211C113.234 115.977 112.859 115.977 112.625 116.211L107 121.836L104.352 119.211C104.117 118.977 103.742 118.977 103.508 119.211L102.664 120.055C102.43 120.289 102.43 120.688 102.664 120.922L106.555 124.812Z","fill","white"],["id","paint0_linear","x1","108.567","y1","63.3516","x2","108.567","y2","45.778","gradientUnits","userSpaceOnUse"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.25 191C114.91 191 146.25 158.541 146.25 118.5C146.25 78.4594 114.91 46 76.25 46C37.5901 46 6.25 78.4594 6.25 118.5C6.25 158.541 37.5901 191 76.25 191Z","stroke-width","2","stroke-linecap","round","stroke-dasharray","7 7",1,"fill-color-0","stroke-color-primary"],["d","M120.908 104.177H33.7393V135.425H120.908V104.177Z","fill","white"],["d","M120.908 71.7129H33.7393V102.96H120.908V71.7129Z","fill","white"],["d","M108.567 95.1801C113.069 95.1801 116.718 91.5309 116.718 87.0294C116.718 82.5279 113.069 78.8787 108.567 78.8787C104.066 78.8787 100.417 82.5279 100.417 87.0294C100.417 91.5309 104.066 95.1801 108.567 95.1801Z",1,"fill-color-primary-darker"],["d","M120.908 39.2482H33.7393V70.4955H120.908V39.2482Z","fill","white"],["d","M92.0943 46.662H40.8943V62.6739H92.0943V46.662Z",1,"fill-color-primary-darker"],["d","M76 112H41V128H76V112Z",1,"fill-color-17"],["d","M70 79H41V95H70V79Z",1,"fill-color-17"],["d","M70 47H41V63H70V47Z",1,"fill-color-17"],["d","M108.568 63.3516C113.42 63.3516 117.354 59.4176 117.354 54.5648C117.354 49.712 113.42 45.778 108.568 45.778C103.715 45.778 99.7808 49.712 99.7808 54.5648C99.7808 59.4176 103.715 63.3516 108.568 63.3516Z","fill","url(#paint0_linear)"],["d","M108.568 96.0334C113.42 96.0334 117.354 92.0994 117.354 87.2466C117.354 82.3938 113.42 78.4598 108.568 78.4598C103.715 78.4598 99.7808 82.3938 99.7808 87.2466C99.7808 92.0994 103.715 96.0334 108.568 96.0334Z",1,"fill-color-17"],["d","M108.568 129.496C113.42 129.496 117.354 125.562 117.354 120.709C117.354 115.856 113.42 111.922 108.568 111.922C103.715 111.922 99.7808 115.856 99.7808 120.709C99.7808 125.562 103.715 129.496 108.568 129.496Z",1,"fill-color-17"],["d","M106.805 91.8125C107.039 92.0469 107.438 92.0469 107.672 91.8125L114.562 84.9219C114.797 84.6875 114.797 84.2891 114.562 84.0547L113.719 83.2109C113.484 82.9766 113.109 82.9766 112.875 83.2109L107.25 88.8359L104.602 86.2109C104.367 85.9766 103.992 85.9766 103.758 86.2109L102.914 87.0547C102.68 87.2891 102.68 87.6875 102.914 87.9219L106.805 91.8125Z","fill","white"],["d","M106.805 58.8125C107.039 59.0469 107.438 59.0469 107.672 58.8125L114.562 51.9219C114.797 51.6875 114.797 51.2891 114.562 51.0547L113.719 50.2109C113.484 49.9766 113.109 49.9766 112.875 50.2109L107.25 55.8359L104.602 53.2109C104.367 52.9766 103.992 52.9766 103.758 53.2109L102.914 54.0547C102.68 54.2891 102.68 54.6875 102.914 54.9219L106.805 58.8125Z","fill","white"],["d","M11.7891 120C12.4922 120 12.8437 119.141 12.3359 118.633L7.33593 113.633C7.02343 113.32 6.51562 113.32 6.20312 113.633L1.20312 118.633C0.695303 119.141 1.04687 120 1.74999 120H11.7891Z",1,"fill-color-17"],["d","M77.1792 24.7688C73.2027 24.7688 69.9792 21.5452 69.9792 17.5688C69.9792 13.5923 73.2027 10.3688 77.1792 10.3688C81.1556 10.3688 84.3792 13.5923 84.3792 17.5688C84.3792 21.5452 81.1556 24.7688 77.1792 24.7688Z",1,"fill-color-22"],["d","M141.365 153.936C139.147 150.189 134.759 150.014 134.759 150.014C134.759 150.014 130.483 149.467 127.74 155.175C125.183 160.495 121.655 165.632 127.172 166.877L128.168 163.776L128.785 167.108C129.571 167.165 130.359 167.178 131.146 167.149C137.055 166.958 142.681 167.204 142.5 165.084C142.259 162.266 143.499 157.543 141.365 153.936Z",1,"fill-color-21"],["d","M82.9374 189.25H80.2186L81.2265 186.227C81.3202 185.852 81.039 185.5 80.6874 185.5H77.3124C77.0311 185.5 76.7733 185.711 76.7499 185.992L75.9999 191.617C75.953 191.969 76.2108 192.25 76.5624 192.25H79.328L78.2499 196.82C78.1796 197.172 78.4374 197.5 78.789 197.5C78.9999 197.5 79.1874 197.406 79.2811 197.219L83.4061 190.094C83.6405 189.742 83.3593 189.25 82.9374 189.25Z","fill","white"],["id","paint0_linear","x1","108.568","y1","63.3516","x2","108.568","y2","45.778","gradientUnits","userSpaceOnUse"]],template:function(o,a){if(1&o&&e.DNE(0,Sl,1,0,"ng-container",5)(1,Rl,47,5,"ng-template",null,0,e.C5r)(3,El,96,5,"ng-template",null,1,e.C5r)(5,Il,68,5,"ng-template",null,2,e.C5r)(7,Ll,53,5,"ng-template",null,3,e.C5r)(9,wl,52,5,"ng-template",null,4,e.C5r),2&o){const l=e.sdS(2),p=e.sdS(4),m=e.sdS(6),v=e.sdS(8),b=e.sdS(10);e.Y8G("ngTemplateOutlet",1===a.stepNumber?l:2===a.stepNumber?p:3===a.stepNumber?m:4===a.stepNumber?v:b)}},dependencies:[_.YU,_.T3,k.Lc,k.dh,f.DJ,f.sA,f.UI,j.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:10%;min-height:10%;max-width:50%;margin:auto}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:50%;margin:auto}"],data:{animation:[kl.k]}}))}return t(),s})();const Gl=["stepper"],Dl=()=>[1,2,3,4,5],Nl=(t,s)=>({"dot-primary":t,"dot-primary-lighter":s});function Pl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.inputFormLabel)}}function $l(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Al(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount must be a positive number."),e.k0s())}function Ml(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",null==n.selChannel?null:n.selChannel.local_balance,".")}}function Bl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.Lme("",n.remote_alias," - ",n.chan_id)}}function Ol(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer is required."),e.k0s())}function Vl(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Receive from Peer not found in the list."),e.k0s())}function Yl(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.feeFormLabel)}}function Xl(t,s){if(1&t&&(e.j41(0,"mat-option",54),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.name," ")}}function Ul(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," is required.")}}function Hl(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.SpI("",n.feeFormGroup.controls.selFeeLimitType.value?n.feeFormGroup.controls.selFeeLimitType.value.placeholder:n.feeLimitTypes[0].placeholder," must be a positive number.")}}function ql(t,s){1&t&&e.EFF(0,"Invoice/Payment")}function zl(t,s){1&t&&(e.j41(0,"mat-icon",55),e.EFF(1,"check"),e.k0s())}function Jl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Ql(t,s){if(1&t&&(e.j41(0,"mat-icon",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(null!=n.paymentStatus&&n.paymentStatus.error?"close":"check")}}function Wl(t,s){1&t&&e.nrm(0,"div",7)}function Zl(t,s){1&t&&e.nrm(0,"mat-progress-bar",56)}function Kl(t,s){if(1&t&&(e.j41(0,"h4",57),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.paymentStatus&&n.paymentStatus.payment_hash?"Rebalance Successful.":"Rebalance Failed.")}}function er(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",58),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7)(1,"mat-card-header",8)(2,"div",9)(3,"div",10)(4,"span",11),e.EFF(5,"Channel Rebalance"),e.k0s()(),e.j41(6,"div",12)(7,"button",13),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(10,"X"),e.k0s()()()(),e.j41(11,"mat-card-content",15)(12,"div",7)(13,"div",16)(14,"div",17),e.nrm(15,"fa-icon",18),e.j41(16,"span"),e.EFF(17,"Circular Rebalance is a payment you make to *yourself* to affect a relative change in the balances of two channels. This is accomplished by sending payment out from the selected channel and receiving it back on the channel with the selected peer. Please note, you will be paying routing fee to balance the channels in this manner."),e.k0s()()(),e.j41(18,"div",19)(19,"p",20)(20,"strong"),e.EFF(21,"Channel Peer:\xa0"),e.k0s(),e.EFF(22),e.nI1(23,"titlecase"),e.k0s(),e.j41(24,"p",20)(25,"strong"),e.EFF(26,"Channel ID:\xa0"),e.k0s(),e.EFF(27),e.k0s()(),e.j41(28,"mat-vertical-stepper",21,3),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.j41(30,"mat-step",22)(31,"form",23),e.DNE(32,Pl,1,1,"ng-template",24),e.j41(33,"div",25)(34,"mat-form-field",26)(35,"mat-label"),e.EFF(36,"Amount"),e.k0s(),e.nrm(37,"input",27),e.j41(38,"mat-hint"),e.EFF(39),e.k0s(),e.j41(40,"span",28),e.EFF(41,"Sats"),e.k0s(),e.DNE(42,$l,2,0,"mat-error",29)(43,Al,2,0,"mat-error",29)(44,Ml,2,1,"mat-error",29),e.k0s(),e.j41(45,"mat-form-field",30)(46,"mat-label"),e.EFF(47,"Receive from Peer"),e.k0s(),e.j41(48,"input",31),e.bIt("change",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.k0s(),e.j41(49,"mat-autocomplete",32,4),e.bIt("optionSelected",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectedPeerChanged())}),e.DNE(51,Bl,2,3,"mat-option",33),e.nI1(52,"async"),e.k0s(),e.DNE(53,Ol,2,0,"mat-error",29)(54,Vl,2,0,"mat-error",29),e.k0s()(),e.j41(55,"div",34)(56,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSelectFee())}),e.EFF(57,"Select Fee"),e.k0s()()()(),e.j41(58,"mat-step",22)(59,"form",23),e.DNE(60,Yl,1,1,"ng-template",36),e.j41(61,"div",25)(62,"div",25)(63,"mat-form-field",30)(64,"mat-label"),e.EFF(65,"Fee Limits"),e.k0s(),e.j41(66,"mat-select",37),e.DNE(67,Xl,2,2,"mat-option",33),e.k0s()(),e.j41(68,"mat-form-field",26)(69,"mat-label"),e.EFF(70),e.k0s(),e.nrm(71,"input",38),e.DNE(72,Ul,2,1,"mat-error",29)(73,Hl,2,1,"mat-error",29),e.k0s()()(),e.j41(74,"div",34)(75,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRebalance())}),e.EFF(76,"Rebalance"),e.k0s()()()(),e.j41(77,"mat-step",40)(78,"form",23),e.DNE(79,ql,1,0,"ng-template",24),e.j41(80,"div",41)(81,"mat-expansion-panel",42)(82,"mat-expansion-panel-header")(83,"mat-panel-title")(84,"span",43),e.EFF(85),e.DNE(86,zl,2,0,"mat-icon",44),e.k0s()()(),e.j41(87,"div",7)(88,"span",45),e.EFF(89),e.k0s()()(),e.DNE(90,Jl,1,0,"mat-progress-bar",46),e.j41(91,"mat-expansion-panel",47)(92,"mat-expansion-panel-header")(93,"mat-panel-title")(94,"span",43),e.EFF(95),e.DNE(96,Ql,2,1,"mat-icon",44),e.k0s()()(),e.DNE(97,Wl,1,0,"div",48),e.k0s(),e.DNE(98,Zl,1,0,"mat-progress-bar",46),e.k0s(),e.DNE(99,Kl,2,1,"h4",49),e.j41(100,"div",50),e.DNE(101,er,2,0,"button",51),e.k0s()()()(),e.j41(102,"div",52)(103,"button",53),e.EFF(104,"Close"),e.k0s()()()()()}if(2&t){const n=e.sdS(50),i=e.XpG(),o=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(15),e.Y8G("icon",i.faInfoCircle),e.R7$(7),e.JRh(e.bMT(23,42,i.selChannel.remote_alias)),e.R7$(5),e.JRh(i.selChannel.chan_id),e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",i.inputFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.inputFormGroup),e.R7$(6),e.Y8G("step",100),e.R7$(2),e.Lme("(Local Bal: ",null==i.selChannel?null:i.selChannel.local_balance,", Remaining: ",(null==i.selChannel?null:i.selChannel.local_balance)-(i.inputFormGroup.controls.rebalanceAmount.value?i.inputFormGroup.controls.rebalanceAmount.value:0),")"),e.R7$(3),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.min),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.rebalanceAmount.errors?null:i.inputFormGroup.controls.rebalanceAmount.errors.max),e.R7$(4),e.Y8G("matAutocomplete",n),e.R7$(),e.Y8G("displayWith",i.displayFn),e.R7$(2),e.Y8G("ngForOf",e.bMT(52,44,i.filteredActiveChannels)),e.R7$(2),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.required),e.R7$(),e.Y8G("ngIf",null==i.inputFormGroup.controls.selRebalancePeer.errors?null:i.inputFormGroup.controls.selRebalancePeer.errors.notfound),e.R7$(4),e.Y8G("stepControl",i.feeFormGroup)("editable",i.flgEditable),e.R7$(),e.Y8G("formGroup",i.feeFormGroup),e.R7$(8),e.Y8G("ngForOf",i.feeLimitTypes),e.R7$(3),e.JRh(i.feeFormGroup.controls.selFeeLimitType.value?i.feeFormGroup.controls.selFeeLimitType.value.placeholder:i.feeLimitTypes[0].placeholder),e.R7$(),e.Y8G("step",1),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.required),e.R7$(),e.Y8G("ngIf",null==i.feeFormGroup.controls.feeLimit.errors?null:i.feeFormGroup.controls.feeLimit.errors.min),e.R7$(4),e.Y8G("stepControl",i.statusFormGroup),e.R7$(),e.Y8G("formGroup",i.statusFormGroup),e.R7$(7),e.JRh(i.flgInvoiceGenerated?i.flgReusingInvoice?"Invoice re-used":"Invoice generated":"Generating invoice..."),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated),e.R7$(3),e.JRh(i.paymentRequest),e.R7$(),e.Y8G("ngIf",!i.flgInvoiceGenerated),e.R7$(),e.Y8G("expanded",(i.flgInvoiceGenerated||i.flgReusingInvoice)&&i.flgPaymentSent),e.R7$(4),e.JRh(i.flgInvoiceGenerated||i.flgPaymentSent?i.flgPaymentSent?null!=i.paymentStatus&&i.paymentStatus.error?"Payment failed":"Payment successful":"Processing payment...":"Payment waiting for Invoice"),e.R7$(),e.Y8G("ngIf",i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",!i.paymentStatus)("ngIfElse",o),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&!i.flgPaymentSent),e.R7$(),e.Y8G("ngIf",i.flgInvoiceGenerated&&i.flgPaymentSent),e.R7$(2),e.Y8G("ngIf",i.paymentStatus&&i.paymentStatus.error),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function nr(t,s){1&t&&e.eu8(0)}function ir(t,s){if(1&t&&e.DNE(0,nr,1,0,"ng-container",59),2&t){const n=e.XpG(),i=e.sdS(4),o=e.sdS(6);e.Y8G("ngTemplateOutlet",n.paymentStatus.error?i:o)}}function ar(t,s){if(1&t&&(e.j41(0,"div",7)(1,"span",45),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Error: ",n.paymentStatus.error)}}function sr(t,s){if(1&t&&(e.j41(0,"div",7)(1,"div",60)(2,"div",61)(3,"h4",62),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",45),e.EFF(6),e.k0s()()(),e.nrm(7,"mat-divider",63),e.j41(8,"div",60)(9,"div",64)(10,"h4",62),e.EFF(11),e.k0s(),e.j41(12,"span",45),e.EFF(13),e.k0s()(),e.j41(14,"div",64)(15,"h4",62),e.EFF(16,"Number of Hops"),e.k0s(),e.j41(17,"span",45),e.EFF(18),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(6),e.JRh(n.paymentStatus.payment_hash),e.R7$(5),e.SpI("Total Fees (",n.paymentStatus.payment_route.total_fees_msat?"mSats":"Sats",")"),e.R7$(2),e.JRh(n.paymentStatus.payment_route.total_fees_msat?n.paymentStatus.payment_route.total_fees_msat:n.paymentStatus.payment_route.total_fees?n.paymentStatus.payment_route.total_fees:0),e.R7$(5),e.JRh(n.paymentStatus&&n.paymentStatus.payment_route&&n.paymentStatus.payment_route.hops&&n.paymentStatus.payment_route.hops.length?n.paymentStatus.payment_route.hops.length:0)}}function or(t,s){if(1&t){const n=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onStepChanged(o))}),e.nrm(1,"p",81),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,Nl,i.stepNumber===n,i.stepNumber!==n))}}function lr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function rr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function cr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function mr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onStepChanged(o.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function ur(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",65)(1,"div",66)(2,"mat-card-header",67)(3,"div",68),e.nrm(4,"span",11),e.k0s(),e.j41(5,"div",69)(6,"button",14),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.flgShowInfo=!1,r.Njj(o.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",70)(9,"rtl-channel-rebalance-infographics",71),e.mxI("stepNumberChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.stepNumber,o)||(a.stepNumber=o),r.Njj(o)}),e.k0s()(),e.j41(10,"div",72),e.DNE(11,or,2,4,"span",73),e.k0s(),e.j41(12,"div",74),e.DNE(13,lr,2,0,"button",75)(14,rr,2,0,"button",76)(15,cr,2,0,"button",77)(16,pr,2,0,"button",78)(17,mr,2,0,"button",79),e.k0s()()()}if(2&t){const n=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("animationDirection",n.animationDirection),e.R50("stepNumber",n.stepNumber),e.R7$(2),e.Y8G("ngForOf",e.lJ4(9,Dl)),e.R7$(2),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",5===n.stepNumber),e.R7$(),e.Y8G("ngIf",n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber>1&&n.stepNumber<5),e.R7$(),e.Y8G("ngIf",n.stepNumber<5)}}let dr=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.dialogRef=i,this.data=o,this.logger=a,this.store=l,this.actions=p,this.formBuilder=m,this.decimalPipe=v,this.commonService=b,this.faInfoCircle=x.iW_,this.invoices={},this.selChannel={},this.activeChannels=[],this.feeLimitTypes=[],this.queryRoute={},this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1,this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee",this.flgEditable=!0,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=c.f7,this.animationDirection="forward",this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize();let i="",o="";this.selChannel=this.data.message?.selChannel||{},this.activeChannels=this.data.message?.channels?.filter(a=>a.active&&a.chan_id!==this.selChannel.chan_id&&a.remote_balance&&a.remote_balance>0)||[],this.activeChannels=this.activeChannels.sort((a,l)=>(i=a.remote_alias?a.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",o=l.remote_alias?l.remote_alias.toLowerCase():a.chan_id?a.chan_id.toLowerCase():"",io?1:0)),c.nv.forEach((a,l)=>{l>0&&this.feeLimitTypes.push(a)}),this.inputFormGroup=this.formBuilder.group({hiddenAmount:["",[d.k0.required]],rebalanceAmount:["",[d.k0.required,d.k0.min(1),d.k0.max(this.selChannel.local_balance||0)]],selRebalancePeer:[null,d.k0.required]}),this.feeFormGroup=this.formBuilder.group({selFeeLimitType:[this.feeLimitTypes[0],d.k0.required],feeLimit:["",[d.k0.required,d.k0.min(0)]],hiddenFeeLimit:["",[d.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(F.rN).pipe((0,g.Q)(this.unSubs[0])).subscribe(a=>{this.invoices=a.listInvoices,this.logger.info(a)}),this.actions.pipe((0,g.Q)(this.unSubs[1]),(0,U.p)(a=>a.type===c.QP.SET_QUERY_ROUTES_LND||a.type===c.QP.SEND_PAYMENT_STATUS_LND||a.type===c.QP.NEWLY_SAVED_INVOICE_LND)).subscribe(a=>{a.type===c.QP.SET_QUERY_ROUTES_LND&&(this.queryRoute=a.payload),a.type===c.QP.SEND_PAYMENT_STATUS_LND&&(this.logger.info(a.payload),this.flgPaymentSent=!0,this.paymentStatus=a.payload,this.flgEditable=!0),a.type===c.QP.NEWLY_SAVED_INVOICE_LND&&(this.logger.info(a.payload),this.flgInvoiceGenerated=!0,this.sendPayment(a.payload.paymentRequest))}),this.inputFormGroup.get("rebalanceAmount")?.valueChanges.pipe((0,g.Q)(this.unSubs[2]),(0,Ie.Z)(0)).subscribe(a=>{this.inputFormGroup.controls.selRebalancePeer.setValue(""),this.inputFormGroup.controls.selRebalancePeer.setErrors(null),this.filteredActiveChannels=(0,je.of)(a?this.filterActiveChannels():this.activeChannels.slice())}),this.inputFormGroup.get("selRebalancePeer")?.valueChanges.pipe((0,g.Q)(this.unSubs[3]),(0,Ie.Z)("")).subscribe(a=>{"string"==typeof a&&(this.filteredActiveChannels=(0,je.of)(this.filterActiveChannels()))})}onSelectFee(){return this.inputFormGroup.controls.selRebalancePeer.value&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value&&this.onSelectedPeerChanged(),this.inputFormGroup.controls.selRebalancePeer.value&&"string"!=typeof this.inputFormGroup.controls.selRebalancePeer.value?!this.inputFormGroup.controls.rebalanceAmount.value||(0===this.stepper.selectedIndex&&(this.inputFormGroup.controls.hiddenAmount.setValue(this.inputFormGroup.controls.rebalanceAmount.value),this.stepper.next()),this.queryRoute=null,this.feeFormGroup.reset(),void this.feeFormGroup.controls.selFeeLimitType.setValue(this.feeLimitTypes[0])):(this.inputFormGroup.controls.selRebalancePeer.setErrors({required:!0}),!0)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.inputFormLabel="Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel="Select rebalance fee";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.rebalanceAmount.value||this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?"Rebalancing Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.rebalanceAmount.value?this.inputFormGroup.controls.rebalanceAmount.value:0)+" Sats | Peer: "+(this.inputFormGroup.controls.selRebalancePeer.value.remote_alias?this.inputFormGroup.controls.selRebalancePeer.value.remote_alias:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey.substring(0,15)+"..."):"Amount to rebalance",this.feeFormLabel=this.queryRoute&&this.queryRoute.routes&&this.queryRoute.routes.length>0&&(this.queryRoute.routes[0].total_fees_msat||this.queryRoute.routes[0].hops&&this.queryRoute.routes[0].hops.length)?this.feeFormGroup.controls.selFeeLimitType.value.placeholder+": "+this.decimalPipe.transform(this.feeFormGroup.controls.feeLimit.value?this.feeFormGroup.controls.feeLimit.value:0)+" | Hops: "+this.queryRoute.routes[0].hops?.length:"Select rebalance fee"}i.selectedIndex+this.selChannel.local_balance||!this.feeFormGroup.controls.feeLimit.value||this.feeFormGroup.controls.feeLimit.value<0||!this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey)return!0;this.feeFormGroup.controls.hiddenFeeLimit.setValue(this.feeFormGroup.controls.feeLimit.value),this.stepper.next(),this.flgEditable=!1,this.paymentRequest="",this.paymentStatus=null,this.flgReusingInvoice=!1,this.flgInvoiceGenerated=!1,this.flgPaymentSent=!1;const i=this.findUnsettledInvoice();i?(this.flgReusingInvoice=!0,this.sendPayment(i.payment_request||"")):this.store.dispatch((0,T.VK)({payload:{uiMessage:c.MZ.NO_SPINNER,memo:"Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats",value:this.inputFormGroup.controls.rebalanceAmount.value,private:!1,expiry:c.It,is_amp:!1,pageSize:c.md,openModal:!1}}))}findUnsettledInvoice(){return this.invoices.invoices?.find(i=>(!i.settle_date||0==+i.settle_date)&&i.memo==="Local-Rebalance-"+this.inputFormGroup.controls.rebalanceAmount.value+"-Sats"&&"CANCELED"!==i.state)}sendPayment(i){if(this.flgInvoiceGenerated=!0,this.paymentRequest=i,"percent"===this.feeFormGroup.controls.selFeeLimitType.value.id&&+this.feeFormGroup.controls.feeLimit.value%1!=0){const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:Math.ceil((0,c.C6)("fixed",this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0)),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}else{const o={uiMessage:c.MZ.NO_SPINNER,payment_request:i,amp:!1,outgoing_chan_ids:this.selChannel?.chan_id?[this.selChannel?.chan_id]:void 0,fee_limit_sat:(0,c.C6)(this.feeFormGroup.controls.selFeeLimitType.value.id,this.feeFormGroup.controls.feeLimit.value,this.inputFormGroup.controls.rebalanceAmount.value||0),allow_self_payment:!0,last_hop_pubkey:this.inputFormGroup.controls.selRebalancePeer.value.remote_pubkey,fromDialog:!0};this.store.dispatch((0,T.Fd)({payload:o}))}}filterActiveChannels(){return this.activeChannels?.filter(i=>i.remote_balance&&i.remote_balance>=this.inputFormGroup.controls.rebalanceAmount.value&&i.chan_id!==this.selChannel.chan_id&&(0===i.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")||0===i.chan_id?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():"")))}onSelectedPeerChanged(){if(this.inputFormGroup.controls.selRebalancePeer.value&&this.inputFormGroup.controls.selRebalancePeer.value.length>0&&"string"==typeof this.inputFormGroup.controls.selRebalancePeer.value){const i=this.activeChannels?.filter(o=>o.remote_alias?.length===this.inputFormGroup.controls.selRebalancePeer.value.length&&0===o.remote_alias?.toLowerCase().indexOf(this.inputFormGroup.controls.selRebalancePeer.value?this.inputFormGroup.controls.selRebalancePeer.value.toLowerCase():""));i&&i.length>0?(this.inputFormGroup.controls.selRebalancePeer.setValue(i[0]),this.inputFormGroup.controls.selRebalancePeer.setErrors(null)):this.inputFormGroup.controls.selRebalancePeer.setErrors({notfound:!0})}}displayFn(i){return i&&i.remote_alias?i.remote_alias:i&&i.chan_id?i.chan_id:""}showInfo(){this.flgShowInfo=!0}onStepChanged(i){this.animationDirection=i{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU(d.ze),e.rXU(_.QX),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-rebalance"]],viewQuery:function(o,a){if(1&o&&e.GBs(Gl,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:8,vars:2,consts:[["paymentStatusBlock",""],["paymentFailedBlock",""],["paymentSuccessfulBlock",""],["stepper",""],["auto","matAutocomplete"],["fxLayout","column",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column"],[1,"modal-info-header"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayoutAlign","start center"],[1,"page-title"],["fxLayoutAlign","end center"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","46"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","rebalanceAmount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start end"],["type","text","aria-label","Receive from Peer","matInput","","formControlName","selRebalancePeer","tabindex","2","required","",3,"change","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","submit",3,"click"],["matStepLabel","","disabled","true"],["tabindex","6","formControlName","selFeeLimitType","required",""],["matInput","","formControlName","feeLimit","type","number","tabindex","7","required","",3,"step"],["mat-button","","color","primary","tabindex","8","type","submit",3,"click"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel","mb-2"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[1,"foreground-secondary-text"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayoutAlign","start","class","font-bold-500 mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],[3,"value"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-1"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[4,"ngTemplateOutlet"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],["fxFlex","50"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(o,a){1&o&&e.DNE(0,tr,105,46,"div",5)(1,ir,1,1,"ng-template",null,0,e.C5r)(3,ar,3,1,"ng-template",null,1,e.C5r)(5,sr,19,4,"ng-template",null,2,e.C5r)(7,ur,18,10,"div",6),2&o&&(e.Y8G("ngIf",!a.flgShowInfo),e.R7$(7),e.Y8G("ngIf",a.flgShowInfo))},dependencies:[_.YU,_.Sq,_.bT,_.T3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,q.GK,q.Z2,q.WN,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,C.yw,ne.q,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,X.wT,z.V5,z.Ti,z.M6,ce.$3,ce.pN,te.N,jl,_.Jj,_.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[Ge.C]}}))}return t(),s})();function hr(t,s){if(1&t&&(e.j41(0,"div",17)(1,"p",18)(2,"mat-icon",19),e.EFF(3,"close"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=e.XpG();e.R7$(4),e.JRh(n.errorMsg)}}function _r(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span"),e.EFF(3,"Priority/Fee for force closing inactive channels cannot be modified."),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle)}}function fr(t,s){if(1&t&&(e.j41(0,"div",28),e.nrm(1,"fa-icon",29),e.j41(2,"span",30)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",31)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function gr(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Cr(t,s){1&t&&(e.j41(0,"mat-form-field",33)(1,"mat-label"),e.EFF(2,"Default"),e.k0s(),e.nrm(3,"input",34),e.k0s())}function yr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function br(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",36,0),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,yr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Fr(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function xr(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",35)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",38,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Fr,2,0,"mat-error",37),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function vr(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",20),e.DNE(1,_r,4,1,"div",21)(2,fr,16,6,"div",21),e.j41(3,"div",22)(4,"mat-form-field",23)(5,"mat-label"),e.EFF(6,"Transaction Type"),e.k0s(),e.j41(7,"mat-select",24),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onSelTransTypeChanged(o))}),e.DNE(8,gr,2,2,"mat-option",25),e.k0s()(),e.DNE(9,Cr,4,0,"mat-form-field",26)(10,br,6,4,"mat-form-field",27)(11,xr,6,4,"mat-form-field",27),e.k0s()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channelToClose.active),e.R7$(),e.Y8G("ngIf",n.recommendedFee.minimumFee),e.R7$(5),e.Y8G("disabled",!n.channelToClose.active),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","0"===n.selTransType),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType)}}function Tr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",39),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(1,"Clear"),e.k0s()}}function kr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onCloseChannel())}),e.EFF(1),e.k0s()}if(2&t){const n=e.XpG();e.R7$(),e.JRh(n.channelToClose.active?"Close Channel":"Force Close")}}function Sr(t,s){if(1&t){const n=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onClose())}),e.EFF(1,"Ok"),e.k0s()}}let Rr=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.actions=p,this.logger=m,this.transTypes=c.XG,this.selTransType="0",this.blocks=null,this.fees=null,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.flgPendingHtlcs=!1,this.errorMsg="Please wait for pending HTLCs to settle before attempting channel closure.",this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B]}ngOnInit(){this.channelToClose=this.data.channel,this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNELS_LND)).subscribe(i=>{if(i.type===c.QP.SET_CHANNELS_LND){const o=i.payload.find(a=>a.chan_id===this.data.channel.chan_id);o&&o.pending_htlcs&&o.pending_htlcs.length&&o.pending_htlcs.length>0&&(this.flgPendingHtlcs=!0)}i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"FetchAllChannels"===i.payload.action&&this.logger.error("Fetching latest channel information failed!\n"+i.payload.message)})}onCloseChannel(){if("1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;const i={channelPoint:this.channelToClose.channel_point,forcibly:!this.channelToClose.active};this.blocks&&(i.targetConf=this.blocks),this.fees&&(i.satPerVByte=this.fees),this.store.dispatch((0,T.w0)({payload:i})),this.dialogRef.close(!1)}resetData(){this.selTransType="0",this.blocks=null,this.fees=null}onSelTransTypeChanged(i){"2"===i.value&&this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}})}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(K.En),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-close-channel"]],standalone:!1,decls:19,vars:7,consts:[["blcks","ngModel"],["clchfee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],["fxLayoutAlign","start center",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","class","mr-1","default","",3,"click",4,"ngIf"],["mat-button","","color","primary","type","submit",3,"click",4,"ngIf"],["fxLayoutAlign","start center"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","48"],[3,"valueChange","selectionChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","48",4,"ngIf"],["fxFlex.gt-sm","48","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxFlex","48"],["matInput","","disabled",""],["fxFlex.gt-sm","48","fxLayoutAlign","start end"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["matInput","","type","number","name","ccfees","required","",3,"ngModelChange","step","min","ngModel"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),e.EFF(5),e.k0s()(),e.j41(6,"button",7),e.bIt("click",function(){return a.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",8)(9,"form",9)(10,"div",10)(11,"p",11),e.EFF(12),e.k0s(),e.DNE(13,hr,5,1,"div",12)(14,vr,12,8,"div",13),e.k0s(),e.j41(15,"div",14),e.DNE(16,Tr,2,0,"button",15)(17,kr,2,1,"button",16)(18,Sr,2,0,"button",16),e.k0s()()()()()),2&o&&(e.R7$(5),e.JRh(a.channelToClose.active?"Close Channel":"Force Close Channel"),e.R7$(7),e.SpI("",a.channelToClose.active?"Closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point):"Force closing channel: "+(a.channelToClose.remote_alias||a.channelToClose.chan_id?a.channelToClose.remote_alias&&a.channelToClose.chan_id?a.channelToClose.remote_alias+" ("+a.channelToClose.chan_id+")":a.channelToClose.remote_alias?a.channelToClose.remote_alias:a.channelToClose.chan_id:a.channelToClose.channel_point)," "),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(2),e.Y8G("ngIf",a.channelToClose.active&&!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",!a.flgPendingHtlcs),e.R7$(),e.Y8G("ngIf",a.flgPendingHtlcs))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,oe.An,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ae.V],encapsulation:2}))}return t(),s})();const Er=()=>["all"],Ir=t=>({"error-border":t}),Lr=()=>["no_channel"],Fe=t=>({width:t}),wr=t=>({"display-none":t});function jr(t,s){if(1&t&&(e.j41(0,"mat-option",49),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Gr(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function Dr(t,s){1&t&&e.nrm(0,"th",51)}function Nr(t,s){1&t&&e.nrm(0,"span",55)}function Pr(t,s){1&t&&e.nrm(0,"span",56)}function $r(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Nr,1,0,"span",53)(2,Pr,1,0,"span",54),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.active),e.R7$(),e.Y8G("ngIf",!n.active)}}function Ar(t,s){1&t&&e.nrm(0,"th",57)}function Mr(t,s){if(1&t&&(e.j41(0,"span",60),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEyeSlash)}}function Br(t,s){if(1&t&&(e.j41(0,"span",62),e.nrm(1,"fa-icon",61),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faEye)}}function Or(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Mr,2,1,"span",58)(2,Br,2,1,"span",59),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.private),e.R7$(),e.Y8G("ngIf",!n.private)}}function Vr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Peer"),e.k0s())}function Yr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_alias)}}function Xr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Pubkey"),e.k0s())}function Ur(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.remote_pubkey)}}function Hr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel Point"),e.k0s())}function qr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel_point)}}function zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Channel ID"),e.k0s())}function Jr(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",64)(2,"span",65),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Fe,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.chan_id)}}function Qr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Initiator"),e.k0s())}function Wr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.initiator?"Yes":"No")}}function Zr(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Static Remote Key"),e.k0s())}function Kr(t,s){if(1&t&&(e.j41(0,"td",52),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n.static_remote_key?"Yes":"No")}}function e1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function t1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function n1(t,s){if(1&t&&(e.j41(0,"th",66),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function i1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function a1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function s1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function o1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Commit Weight"),e.k0s())}function l1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function r1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Fee/KW"),e.k0s())}function c1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function p1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Updates"),e.k0s())}function m1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function u1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function d1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function h1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Capacity (Sats)"),e.k0s())}function _1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function f1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function g1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function C1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function y1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function b1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Sent"),e.k0s())}function F1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_sent)," ")}}function x1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Sats Received"),e.k0s())}function v1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.total_satoshis_received)," ")}}function T1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function k1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_balance)," ")}}function S1(t,s){1&t&&(e.j41(0,"th",66),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function R1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",67),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_balance)," ")}}function E1(t,s){1&t&&(e.j41(0,"th",63),e.EFF(1,"Balance Score"),e.k0s())}function I1(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",68)(2,"mat-hint",69),e.EFF(3),e.nI1(4,"number"),e.k0s()(),e.nrm(5,"mat-progress-bar",70),e.k0s()),2&t){const n=s.$implicit;e.R7$(3),e.JRh(e.bMT(4,3,n.balancedness||0)),e.R7$(2),e.Y8G("value",e.mNQ(n.local_balance&&n.local_balance>0?+n.local_balance/(+n.local_balance+ +n.remote_balance)*100:0))}}function L1(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",71)(1,"div",72)(2,"mat-select",73),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onChannelUpdate("all"))}),e.EFF(5,"Update Fee Policy"),e.k0s(),e.j41(6,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(7,"Download CSV"),e.k0s()()()()}}function w1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onCircularRebalance(o))}),e.EFF(1,"Circular Rebalance"),e.k0s()}}function j1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-option",74),e.bIt("click",function(){r.eBV(n);const o=e.XpG().$implicit,a=e.XpG();return r.Njj(a.onLoopOut(o))}),e.EFF(1,"Loop Out"),e.k0s()}}function G1(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",75)(1,"div",72)(2,"mat-select",76),e.nrm(3,"mat-select-trigger"),e.j41(4,"perfect-scrollbar")(5,"mat-option",74),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(6,"View Info"),e.k0s(),e.j41(7,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onViewRemotePolicy(o))}),e.EFF(8,"View Remote Fee "),e.k0s(),e.j41(9,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelUpdate(o))}),e.EFF(10,"Update Fee Policy"),e.k0s(),e.DNE(11,w1,2,0,"mat-option",77)(12,j1,2,0,"mat-option",77),e.j41(13,"mat-option",74),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onChannelClose(o))}),e.EFF(14,"Close Channel"),e.k0s()()()()()}if(2&t){const n=e.XpG();e.R7$(11),e.Y8G("ngIf",+n.versionsArr[0]>0||+n.versionsArr[1]>=9),e.R7$(),e.Y8G("ngIf",n.selNode.swapServerUrl)}}function D1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No peers connected. Add a peer in order to open a channel."),e.k0s())}function N1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function P1(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function $1(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function A1(t,s){if(1&t&&(e.j41(0,"td",78),e.DNE(1,D1,2,0,"p",79)(2,N1,2,0,"p",79)(3,P1,2,0,"p",79)(4,$1,2,1,"p",79),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.numPeers<1&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",n.numPeers>0&&(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&(null==n.apiCallStatus?null:n.apiCallStatus.status)===n.apiCallStatusEnum.ERROR)}}function M1(t,s){if(1&t&&e.nrm(0,"tr",80),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,wr,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function B1(t,s){1&t&&e.nrm(0,"tr",81)}function O1(t,s){1&t&&e.nrm(0,"tr",82)}let V1=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.rtlEffects=p,this.decimalPipe=m,this.loopService=v,this.camelCaseWithReplace=b,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open",recordsPerPage:c.md,sortBy:"balancedness",sortOrder:c.oi.DESCENDING},this.timeUnit="mins:secs",this.userPersonaEnum=c.HW,this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new u.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.selFilter="",this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.versionsArr=[],this.faEye=x.pS3,this.faEyeSlash=x.k6j,this.targetConf=6,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i,this.information&&this.information.version&&(this.versionsArr=this.information.version.split("."))}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.unshift("active"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.os).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.numPeers=i.peers&&i.peers.length?i.peers.length:0}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.totalBalance=i.blockchainBalance?.total_balance?+i.blockchainBalance?.total_balance:0}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=this.calculateUptime(i.channels),this.channelsData.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(i){this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_REMOTE_POLICY,channelID:i.chan_id?.toString()+"/"+this.information.identity_pubkey}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{if(!o.fee_base_msat&&!o.fee_rate_milli_msat&&!o.time_lock_delta)return!1;const a=[[{key:"fee_base_msat",value:o.fee_base_msat,title:"Base Fees (mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat,title:"Fee Rate (milli mSats)",width:25,type:c.UN.NUMBER},{key:"fee_rate_milli_msat",value:o.fee_rate_milli_msat/1e4,title:"Fee Rate (%)",width:25,type:c.UN.NUMBER,digitsInfo:"1.0-8"},{key:"time_lock_delta",value:o.time_lock_delta,title:"Time Lock Delta",width:25,type:c.UN.NUMBER}]],l="Remote policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point);setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:l,message:a}}}))},0)})}onCircularRebalance(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{channels:this.channelsData,selChannel:i},component:dr}}}))}onChannelUpdate(i){"all"===i?(this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All Channels",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:1e3,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:1,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:40,width:32}]}}})),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[6])).subscribe(a=>{a&&this.store.dispatch((0,T.fy)({payload:{baseFeeMsat:a[0].inputValue,feeRate:a[1].inputValue,timeLockDelta:a[2].inputValue,chanPoint:"all"}}))})):(this.myChanPolicy={fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0,min_htlc_msat:0,max_htlc_msat:0},this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.GET_CHAN_POLICY,channelID:i.chan_id.toString()}})),this.lndEffects.setLookup.pipe((0,W.s)(1)).subscribe(o=>{this.myChanPolicy=o.node1_pub===this.information.identity_pubkey?o.node1_policy:o.node2_pub===this.information.identity_pubkey?o.node2_policy:{fee_base_msat:0,fee_rate_milli_msat:0,time_lock_delta:0},this.logger.info(this.myChanPolicy);const a="Update fee policy for Channel: "+(i.remote_alias||i.chan_id?i.remote_alias&&i.chan_id?i.remote_alias+" ("+i.chan_id+")":i.remote_alias?i.remote_alias:i.chan_id:i.channel_point),l=[];setTimeout(()=>{this.store.dispatch((0,I.I1)({payload:{data:{type:c.A$.CONFIRM,alertTitle:"Update Fee Policy",titleMessage:a,noBtnText:"Cancel",yesBtnText:"Update Channel",message:l,flgShowInput:!0,hasAdvanced:!0,getInputs:[{placeholder:"Base Fee (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.fee_base_msat?0:this.myChanPolicy.fee_base_msat,step:100,width:32},{placeholder:"Fee Rate (mili mSat)",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.fee_rate_milli_msat,min:1,width:32,hintFunction:this.percentHintFunction},{placeholder:"Time Lock Delta",inputType:c.UN.NUMBER,inputValue:this.myChanPolicy.time_lock_delta,width:32},{placeholder:"Minimum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.min_htlc?0:this.myChanPolicy.min_htlc,width:49,advancedField:!0},{placeholder:"Maximum HTLC (mSat)",inputType:c.UN.NUMBER,inputValue:""===this.myChanPolicy.max_htlc_msat?0:this.myChanPolicy.max_htlc_msat,width:49,advancedField:!0}]}}}))},0)}),this.rtlEffects.closeConfirm.pipe((0,g.Q)(this.unSubs[7])).subscribe(o=>{if(o){const a={baseFeeMsat:o[0].inputValue,feeRate:o[1].inputValue,timeLockDelta:o[2].inputValue,chanPoint:i.channel_point};o.length>3&&o[3]&&o[4]&&(a.minHtlcMsat=o[3].inputValue,a.maxHtlcMsat=o[4].inputValue),this.store.dispatch((0,T.fy)({payload:a}))}})),this.applyFilter()}onChannelClose(i){i.active&&this.store.dispatch((0,T.$Q)()),this.store.dispatch((0,I.xO)({payload:{data:{channel:i,component:Rr}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.active?"active":"inactive")+(i.chan_id?i.chan_id.toLowerCase():"")+(i.remote_pubkey?i.remote_pubkey.toLowerCase():"")+(i.remote_alias?i.remote_alias.toLowerCase():"")+(i.capacity?i.capacity:"")+(i.local_balance?i.local_balance:"")+(i.remote_balance?i.remote_balance:"")+(i.total_satoshis_sent?i.total_satoshis_sent:"")+(i.total_satoshis_received?i.total_satoshis_received:"")+(i.commit_fee?i.commit_fee:"")+(i.private?"private":"public");break;case"active":a=i?.active?"active":"inactive";break;case"private":a=i?.private?"private":"public";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"active"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}loadChannelsTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onLoopOut(i){this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,g.Q)(this.unSubs[8])).subscribe(o=>{this.store.dispatch((0,I.xO)({payload:{minHeight:"56rem",data:{channel:i,minQuote:o[0],maxQuote:o[1],direction:c.C7.LOOP_OUT,component:ze.D}}}))})}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}percentHintFunction(i){return(i/1e4).toString()+"%"}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h),e.rXU(_e.H),e.rXU(_.QX),e.rXU(Je.Q),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-open-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:96,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","active"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private",4,"matHeaderCellDef"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","initiator"],["matColumnDef","static_remote_key"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active"],["mat-cell",""],["class","dot green","matTooltip","Active","matTooltipPosition","right",4,"ngIf"],["class","dot grey","matTooltip","Inactive","matTooltipPosition","right",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","grey"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Private"],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,jr,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,Gr,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Dr,1,0,"th",13)(20,$r,3,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Ar,1,0,"th",16)(23,Or,3,2,"td",14),e.bVm(),e.qex(24,17),e.DNE(25,Vr,2,0,"th",18)(26,Yr,4,4,"td",14),e.bVm(),e.qex(27,19),e.DNE(28,Xr,2,0,"th",18)(29,Ur,4,4,"td",14),e.bVm(),e.qex(30,20),e.DNE(31,Hr,2,0,"th",18)(32,qr,4,4,"td",14),e.bVm(),e.qex(33,21),e.DNE(34,zr,2,0,"th",18)(35,Jr,4,4,"td",14),e.bVm(),e.qex(36,22),e.DNE(37,Qr,2,0,"th",18)(38,Wr,2,1,"td",14),e.bVm(),e.qex(39,23),e.DNE(40,Zr,2,0,"th",18)(41,Kr,2,1,"td",14),e.bVm(),e.qex(42,24),e.DNE(43,e1,2,1,"th",25)(44,t1,3,1,"td",14),e.bVm(),e.qex(45,26),e.DNE(46,n1,2,1,"th",25)(47,i1,3,1,"td",14),e.bVm(),e.qex(48,27),e.DNE(49,a1,2,0,"th",25)(50,s1,4,3,"td",14),e.bVm(),e.qex(51,28),e.DNE(52,o1,2,0,"th",25)(53,l1,4,3,"td",14),e.bVm(),e.qex(54,29),e.DNE(55,r1,2,0,"th",25)(56,c1,4,3,"td",14),e.bVm(),e.qex(57,30),e.DNE(58,p1,2,0,"th",25)(59,m1,4,3,"td",14),e.bVm(),e.qex(60,31),e.DNE(61,u1,2,0,"th",25)(62,d1,4,3,"td",14),e.bVm(),e.qex(63,32),e.DNE(64,h1,2,0,"th",25)(65,_1,4,3,"td",14),e.bVm(),e.qex(66,33),e.DNE(67,f1,2,0,"th",25)(68,g1,4,3,"td",14),e.bVm(),e.qex(69,34),e.DNE(70,C1,2,0,"th",25)(71,y1,4,3,"td",14),e.bVm(),e.qex(72,35),e.DNE(73,b1,2,0,"th",25)(74,F1,4,3,"td",14),e.bVm(),e.qex(75,36),e.DNE(76,x1,2,0,"th",25)(77,v1,4,3,"td",14),e.bVm(),e.qex(78,37),e.DNE(79,T1,2,0,"th",25)(80,k1,4,3,"td",14),e.bVm(),e.qex(81,38),e.DNE(82,S1,2,0,"th",25)(83,R1,4,3,"td",14),e.bVm(),e.qex(84,39),e.DNE(85,E1,2,0,"th",18)(86,I1,6,5,"td",14),e.bVm(),e.qex(87,40),e.DNE(88,L1,8,0,"th",41)(89,G1,15,2,"td",42),e.bVm(),e.qex(90,43),e.DNE(91,A1,5,4,"td",44),e.bVm(),e.DNE(92,M1,1,3,"tr",45)(93,B1,1,0,"tr",46)(94,O1,1,0,"tr",47),e.k0s()(),e.nrm(95,"mat-paginator",48),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Er).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",(null==a.apiCallStatus?null:a.apiCallStatus.status)===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,Ir,""!==a.errorMessage)),e.R7$(76),e.Y8G("matFooterRowDef",e.lJ4(17,Lr)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,M.fg,C.rl,C.nJ,C.MV,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-active[_ngcontent-%COMP%], .mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return t(),s})();const Y1=["outputIdx"];function X1(t,s){if(1&t&&(e.j41(0,"div",31),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3,"Change output balance "),e.j41(4,"strong"),e.EFF(5),e.nI1(6,"number"),e.k0s(),e.EFF(7," (Sats) may be insufficient for fee bumping, depending on the prevailing fee rates."),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(4),e.JRh(e.bMT(6,2,n.dustOutputValue))}}function U1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Index for change output is required."),e.k0s())}function H1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid index value."),e.k0s())}function q1(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function z1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function J1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",33,1),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.blocks,o)||(a.blocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,z1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.blocks),e.R7$(2),e.Y8G("ngIf",!n.blocks)}}function Q1(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function W1(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",20)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",34,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.fees,o)||(a.fees=o),r.Njj(o)}),e.k0s(),e.DNE(5,Q1,2,0,"mat-error",22),e.k0s()}if(2&t){const n=e.XpG();e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.fees),e.R7$(2),e.Y8G("ngIf",!n.fees)}}function Z1(t,s){if(1&t&&(e.j41(0,"div",35),e.nrm(1,"fa-icon",16),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(2),e.JRh(n.bumpFeeError)}}let tt=(()=>{var t;class s{set outputIndx(i){i&&(this.outputIdx=i)}constructor(i,o,a,l,p){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.faUpRightFromSquare=x.k02,this.txid="",this.outputIndex=null,this.transTypes=[...c.XG],this.selTransType="2",this.blocks=null,this.fees=null,this.faCopy=x.jPR,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.bumpFeeError="",this.flgShowDustWarning=!1,this.dustOutputValue=0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){if(this.transTypes=this.transTypes.splice(1),this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[];this.txid=i[0]||(this.data.pendingChannel.channel&&this.data.pendingChannel.channel.channel_point?this.data.pendingChannel.channel.channel_point:""),this.outputIndex=i[1]&&""!==i[1]&&0==+i[1]?1:0}else this.data.selUTXO&&this.data.selUTXO.outpoint&&(this.txid=this.data.selUTXO.outpoint.txid_str||"",this.outputIndex=this.data.selUTXO.outpoint.output_index||0);this.logger.info(this.txid,this.outputIndex),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.logger.info(this.selNode)}),this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[1])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.dataService.getBlockExplorerTransaction(this.txid).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:i=>{this.dustOutputValue=i.vout[this.outputIndex].value,this.flgShowDustWarning=this.dustOutputValue<1e3},error:i=>{this.logger.error(i)}})}onBumpFee(){if(this.data.pendingChannel&&this.data.pendingChannel.channel){const i=this.data.pendingChannel.channel?.channel_point?.split(":")||[],o=i.length>1&&i[1]&&""!==i[1]?+i[1]:null;if(o&&this.outputIndex===o)return this.outputIdx.control.setErrors({pendingChannelOutputIndex:!0}),!0}if(!this.outputIndex&&0!==this.outputIndex||"1"===this.selTransType&&(!this.blocks||0===this.blocks)||"2"===this.selTransType&&(!this.fees||0===this.fees))return!0;this.dataService.bumpFee(this.txid,this.outputIndex,this.blocks||null,this.fees||null).pipe((0,g.Q)(this.unSubs[3])).subscribe({next:i=>{this.dialogRef.close(!1)},error:i=>{this.logger.error(i),this.bumpFeeError=i.message?i.message:i}})}onExplorerClicked(){window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.txid,"_blank")}resetData(){this.bumpFeeError="",this.selTransType="2",this.blocks=null,this.fees=null,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-bump-fee"]],viewQuery:function(o,a){if(1&o&&e.GBs(Y1,5),2&o){let l;e.mGM(l=e.lsd())&&(a.outputIndx=l.first)}},standalone:!1,decls:48,vars:20,consts:[["outputIndx","ngModel"],["blcks","ngModel"],["fee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end"],["autoFocus","","matInput","","type","number","required","","name","outputIndx",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","32"],[3,"valueChange","selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex.gt-sm","32","fxLayoutAlign","start end",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"],["fxFlex","100",1,"alert","alert-warn"],[3,"value"],["matInput","","type","number","name","blocks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","fees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e.EFF(5,"Bump Fee"),e.k0s()(),e.j41(6,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",9)(9,"form",10)(10,"div",11)(11,"p",12),e.EFF(12),e.j41(13,"fa-icon",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onExplorerClicked())}),e.k0s()(),e.j41(14,"div",14)(15,"div",15),e.nrm(16,"fa-icon",16),e.j41(17,"span",17)(18,"div"),e.EFF(19,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(20,"div"),e.EFF(21),e.k0s(),e.j41(22,"div"),e.EFF(23),e.k0s(),e.j41(24,"div"),e.EFF(25),e.k0s()()(),e.DNE(26,X1,8,4,"div",18),e.j41(27,"div",19)(28,"mat-form-field",20)(29,"mat-label"),e.EFF(30,"Index for Change Output"),e.k0s(),e.j41(31,"input",21,0),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.outputIndex,m)||(a.outputIndex=m),r.Njj(m)}),e.k0s(),e.DNE(33,U1,2,0,"mat-error",22)(34,H1,2,0,"mat-error",22),e.k0s(),e.j41(35,"mat-form-field",23)(36,"mat-label"),e.EFF(37,"Transaction Type"),e.k0s(),e.j41(38,"mat-select",24),e.mxI("valueChange",function(m){return r.eBV(l),e.DH7(a.selTransType,m)||(a.selTransType=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.blocks=null,r.Njj(a.fees=null)}),e.DNE(39,q1,2,2,"mat-option",25),e.k0s()(),e.DNE(40,J1,6,4,"mat-form-field",26)(41,W1,6,4,"mat-form-field",26),e.k0s(),e.DNE(42,Z1,4,2,"div",27),e.k0s()(),e.j41(43,"div",28)(44,"button",29),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(45,"Clear"),e.k0s(),e.j41(46,"button",30),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBumpFee())}),e.EFF(47),e.k0s()()()()()()}if(2&o){const l=e.sdS(32);e.R7$(12),e.SpI(" ",a.txid?"Bump fee for transaction ID: "+a.txid:"Bump fee: "," "),e.R7$(),e.Y8G("matTooltip",e.mNQ("Link to "+a.selNode.settings.blockExplorerUrl))("icon",a.faUpRightFromSquare),e.R7$(3),e.Y8G("icon",a.faInfoCircle),e.R7$(5),e.SpI("- High: ",a.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",a.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",a.recommendedFee.hourFee||"Unknown"),e.R7$(),e.Y8G("ngIf",a.flgShowDustWarning),e.R7$(5),e.Y8G("step",1)("min",0),e.R50("ngModel",a.outputIndex),e.R7$(2),e.Y8G("ngIf",null==l.errors?null:l.errors.required),e.R7$(),e.Y8G("ngIf",null==l.errors?null:l.errors.OutputIndexError),e.R7$(4),e.R50("value",a.selTransType),e.R7$(),e.Y8G("ngForOf",a.transTypes),e.R7$(),e.Y8G("ngIf","1"===a.selTransType),e.R7$(),e.Y8G("ngIf","2"===a.selTransType),e.R7$(),e.Y8G("ngIf",""!==a.bumpFeeError),e.R7$(5),e.JRh(""!==a.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,E.VO,X.wT,ee.oV,te.N,ae.V,_.QX],encapsulation:2}))}return t(),s})();const xe=t=>({"error-border bordered-box":t,"bordered-box":!0}),K1=()=>["no_pending_open"],ec=()=>["no_pending_force_closing"],tc=()=>["no_pending_closing"],nc=()=>["no_pending_wait_closing"],Q=t=>({width:t}),De=t=>({"display-none":t}),ic=t=>({"py-0":!0,"display-none":t});function ac(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function sc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function oc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function lc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function rc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function cc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function pc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function mc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function uc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function dc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function _c(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function fc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Confirmation Height"),e.k0s())}function gc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.confirmation_height))}}function Cc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_fee))}}function bc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Commit Weight"),e.k0s())}function Fc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.commit_weight))}}function xc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Fee/KW"),e.k0s())}function vc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_per_kw))}}function Tc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Sc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function Rc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ec(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Ic(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Lc(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function wc(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"div",48)(2,"mat-select",50),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onOpenClick(o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",51),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBumpFee(o))}),e.EFF(7,"Bump Fee"),e.k0s()()()()}}function jc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Gc(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Dc(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Nc(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,jc,2,0,"p",53)(2,Gc,2,0,"p",53)(3,Dc,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingOpenChannels||!(null!=n.pendingOpenChannels&&n.pendingOpenChannels.data)||(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Pc(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingOpenChannels&&(null==n.pendingOpenChannels?null:n.pendingOpenChannels.data)&&(null==n.pendingOpenChannels||null==n.pendingOpenChannels.data?null:n.pendingOpenChannels.data.length)>0))}}function $c(t,s){1&t&&e.nrm(0,"tr",55)}function Ac(t,s){1&t&&e.nrm(0,"tr",56)}function Mc(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Bc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Oc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Vc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Yc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Xc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Uc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Hc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function qc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function zc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function Jc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function Qc(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Wc(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Zc(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function Kc(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function ep(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Maturity Height"),e.k0s())}function tp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.maturity_height))}}function np(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Blocks till Maturity"),e.k0s())}function ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.blocks_til_maturity))}}function ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Recovered Balance (Sats)"),e.k0s())}function sp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.recovered_balance))}}function op(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function lp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function rp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function cp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function up(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function dp(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",57),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onForceClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function hp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function _p(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function fp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function gp(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,hp,2,0,"p",53)(2,_p,2,0,"p",53)(3,fp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingForceClosingChannels||!(null!=n.pendingForceClosingChannels&&n.pendingForceClosingChannels.data)||(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Cp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingForceClosingChannels&&(null==n.pendingForceClosingChannels?null:n.pendingForceClosingChannels.data)&&(null==n.pendingForceClosingChannels||null==n.pendingForceClosingChannels.data?null:n.pendingForceClosingChannels.data.length)>0))}}function yp(t,s){1&t&&e.nrm(0,"tr",55)}function bp(t,s){1&t&&e.nrm(0,"tr",56)}function Fp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function xp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function vp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Tp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function Sp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function Rp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function Ep(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function Ip(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function Lp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function wp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function jp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function Gp(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function Dp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Np(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function Pp(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function $p(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function Ap(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function Mp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function Bp(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function Op(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",58),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Vp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function Yp(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function Xp(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Up(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Vp,2,0,"p",53)(2,Yp,2,0,"p",53)(3,Xp,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingClosingChannels||!(null!=n.pendingClosingChannels&&n.pendingClosingChannels.data)||(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Hp(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,De,n.pendingClosingChannels&&(null==n.pendingClosingChannels?null:n.pendingClosingChannels.data)&&(null==n.pendingClosingChannels||null==n.pendingClosingChannels.data?null:n.pendingClosingChannels.data.length)>0))}}function qp(t,s){1&t&&e.nrm(0,"tr",55)}function zp(t,s){1&t&&e.nrm(0,"tr",56)}function Jp(t,s){1&t&&e.nrm(0,"mat-progress-bar",40)}function Qp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Closing Tx ID"),e.k0s())}function Wp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.closing_txid)}}function Zp(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Peer"),e.k0s())}function Kp(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_alias)}}function em(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Pubkey"),e.k0s())}function tm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.remote_node_pub)}}function nm(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Channel Point"),e.k0s())}function im(t,s){if(1&t&&(e.j41(0,"td",42)(1,"div",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Q,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(n.channel.channel_point)}}function am(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Initiator"),e.k0s())}function sm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.channel.initiator,"initiator_"))}}function om(t,s){1&t&&(e.j41(0,"th",41),e.EFF(1,"Commitment Type"),e.k0s())}function lm(t,s){if(1&t&&(e.j41(0,"td",42),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.brH(2,1,n.channel.commitment_type,"commitment_type","_"))}}function rm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Limbo Balance (Sats)"),e.k0s())}function cm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.limbo_balance))}}function pm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Capacity (Sats)"),e.k0s())}function mm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.capacity))}}function um(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function dm(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.local_balance))}}function hm(t,s){1&t&&(e.j41(0,"th",45),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function _m(t,s){if(1&t&&(e.j41(0,"td",42)(1,"span",46),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.channel.remote_balance))}}function fm(t,s){1&t&&(e.j41(0,"th",47)(1,"div",48),e.EFF(2,"Actions"),e.k0s()())}function gm(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"button",59),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onWaitClosingClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function Cm(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No pending channel."),e.k0s())}function ym(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting pending channels..."),e.k0s())}function bm(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Fm(t,s){if(1&t&&(e.j41(0,"td",52),e.DNE(1,Cm,2,0,"p",53)(2,ym,2,0,"p",53)(3,bm,2,1,"p",53),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!n.pendingWaitClosingChannels||!(null!=n.pendingWaitClosingChannels&&n.pendingWaitClosingChannels.data)||(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function xm(t,s){if(1&t&&e.nrm(0,"tr",54),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,ic,n.pendingWaitClosingChannels&&(null==n.pendingWaitClosingChannels?null:n.pendingWaitClosingChannels.data)&&(null==n.pendingWaitClosingChannels||null==n.pendingWaitClosingChannels.data?null:n.pendingWaitClosingChannels.data.length)>0))}}function vm(t,s){1&t&&e.nrm(0,"tr",55)}function Tm(t,s){1&t&&e.nrm(0,"tr",56)}let km=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.commonService=a,this.PAGE_ID="peers_channels",this.openTableSetting={tableId:"pending_open",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.forceClosingTableSetting={tableId:"pending_force_closing",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.closingTableSetting={tableId:"pending_closing",recordsPerPage:c.md,sortBy:"capacity",sortOrder:c.oi.DESCENDING},this.waitingCloseTableSetting={tableId:"pending_waiting_close",recordsPerPage:c.md,sortBy:"limbo_balance",sortOrder:c.oi.DESCENDING},this.information={},this.pendingChannels={},this.displayedOpenColumns=[],this.pendingOpenChannelsLength=0,this.pendingOpenChannels=new u.I6([]),this.displayedForceClosingColumns=[],this.pendingForceClosingChannelsLength=0,this.pendingForceClosingChannels=new u.I6([]),this.displayedClosingColumns=[],this.pendingClosingChannelsLength=0,this.pendingClosingChannels=new u.I6([]),this.displayedWaitClosingColumns=[],this.pendingWaitClosingChannelsLength=0,this.pendingWaitClosingChannels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.openTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.openTableSetting.tableId),this.displayedOpenColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.openTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.openTableSetting.columnSelection)),this.displayedOpenColumns.push("actions"),this.logger.info(this.displayedOpenColumns),this.forceClosingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.forceClosingTableSetting.tableId),this.displayedForceClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.forceClosingTableSetting.columnSelection)),this.displayedForceClosingColumns.push("actions"),this.logger.info(this.displayedForceClosingColumns),this.closingTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.closingTableSetting.tableId),this.displayedClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.closingTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.closingTableSetting.columnSelection)),this.displayedClosingColumns.push("actions"),this.logger.info(this.displayedClosingColumns),this.waitingCloseTableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.waitingCloseTableSetting.tableId),this.displayedWaitClosingColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.waitingCloseTableSetting.columnSelection)),this.displayedWaitClosingColumns.push("actions"),this.logger.info(this.displayedWaitClosingColumns)}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=i.pendingChannels,this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels),this.logger.info(i)})}ngAfterViewInit(){this.pendingChannels.pending_open_channels&&this.pendingChannels.pending_open_channels.length&&this.pendingChannels.pending_open_channels.length>0&&this.loadOpenChannelsTable(this.pendingChannels.pending_open_channels),this.pendingChannels.pending_force_closing_channels&&this.pendingChannels.pending_force_closing_channels.length&&this.pendingChannels.pending_force_closing_channels.length>0&&this.loadForceClosingChannelsTable(this.pendingChannels.pending_force_closing_channels),this.pendingChannels.pending_closing_channels&&this.pendingChannels.pending_closing_channels.length&&this.pendingChannels.pending_closing_channels.length>0&&this.loadClosingChannelsTable(this.pendingChannels.pending_closing_channels),this.pendingChannels.waiting_close_channels&&this.pendingChannels.waiting_close_channels.length&&this.pendingChannels.waiting_close_channels.length>0&&this.loadWaitClosingChannelsTable(this.pendingChannels.waiting_close_channels)}onOpenClick(i){const o=JSON.parse(JSON.stringify(i,["commit_weight","confirmation_height","fee_per_kw","commit_fee"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Opening Channel Information",message:[[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:100,type:c.UN.STRING}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:100,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"confirmation_height",value:l.confirmation_height,title:"Confirmation Height",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"fee_per_kw",value:l.fee_per_kw,title:"Fee/KW",width:25,type:c.UN.NUMBER},{key:"commit_weight",value:l.commit_weight,title:"Commit Weight",width:25,type:c.UN.NUMBER},{key:"commit_fee",value:l.commit_fee,title:"Commit Fee",width:50,type:c.UN.NUMBER}]]}}}))}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{pendingChannel:i,component:tt}}}))}onForceClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid","limbo_balance","maturity_height","blocks_til_maturity","recovered_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Force Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:l.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}],[{key:"maturity_height",value:l.maturity_height,title:"Maturity Height",width:25,type:c.UN.NUMBER},{key:"blocks_til_maturity",value:l.blocks_til_maturity,title:"Blocks Till Maturity",width:25,type:c.UN.NUMBER},{key:"recovered_balance",value:l.recovered_balance,title:"Recovered Balance",width:50,type:c.UN.NUMBER}]]}}}))}onClosingClick(i){const o=JSON.parse(JSON.stringify(i,["closing_txid"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l={};Object.assign(l,o,a),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closing Channel Information",message:[[{key:"closing_txid",value:l.closing_txid,title:"Closing Transaction ID",width:50,type:c.UN.STRING}],[{key:"channel_point",value:l.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:l.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:l.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:l.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"local_balance",value:l.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:l.remote_balance,title:"Remote Balance",width:50,type:c.UN.NUMBER}]]}}}))}onWaitClosingClick(i){const o=JSON.parse(JSON.stringify(i,["limbo_balance"],2)),a=JSON.parse(JSON.stringify(i.channel,["remote_alias","channel_point","remote_balance","local_balance","remote_node_pub","capacity"],2)),l=JSON.parse(JSON.stringify(i.commitments,["local_txid"],2)),p={};Object.assign(p,o,a,l),this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Wait Closing Channel Information",message:[[{key:"local_txid",value:p.local_txid,title:"Transaction ID",width:100,type:c.UN.STRING}],[{key:"channel_point",value:p.channel_point,title:"Channel Point",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"remote_alias",value:p.remote_alias,title:"Peer Alias",width:25,type:c.UN.STRING},{key:"remote_node_pub",value:p.remote_node_pub,title:"Peer Node Pubkey",width:75,type:c.UN.STRING}],[{key:"capacity",value:p.capacity,title:"Capacity",width:25,type:c.UN.NUMBER},{key:"limbo_balance",value:p.limbo_balance,title:"Limbo Balance",width:25,type:c.UN.NUMBER},{key:"local_balance",value:p.local_balance,title:"Local Balance",width:25,type:c.UN.NUMBER},{key:"remote_balance",value:p.remote_balance,title:"Remote Balance",width:25,type:c.UN.NUMBER}]]}}}))}loadOpenChannelsTable(i){this.pendingOpenChannelsLength=i.length?i.length:0,this.pendingOpenChannels=new u.I6([...i]),this.pendingOpenChannels.sort=this.sort,this.pendingOpenChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingOpenChannels)}loadForceClosingChannelsTable(i){this.pendingForceClosingChannelsLength=i.length?i.length:0,this.pendingForceClosingChannels=new u.I6([...i]),this.pendingForceClosingChannels.sort=this.sort,this.pendingForceClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingForceClosingChannels)}loadClosingChannelsTable(i){this.pendingClosingChannelsLength=i.length?i.length:0,this.pendingClosingChannels=new u.I6([...i]),this.pendingClosingChannels.sort=this.sort,this.pendingClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingClosingChannels)}loadWaitClosingChannelsTable(i){this.pendingWaitClosingChannelsLength=i.length?i.length:0,this.pendingWaitClosingChannels=new u.I6([...i]),this.pendingWaitClosingChannels.sort=this.sort,this.pendingWaitClosingChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.logger.info(this.pendingWaitClosingChannels)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-pending-table"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:202,vars:52,consts:[["table",""],["fxLayout","column",1,"mb-2"],[1,"page-title"],["displayMode","flat",1,"mt-1"],["mode","indeterminate",4,"ngIf"],["fxLayout","column",1,"flat-expansion-panel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","remote_alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_node_pub"],["matColumnDef","channel_point"],["matColumnDef","initiator"],["matColumnDef","commitment_type"],["matColumnDef","confirmation_height"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","capacity"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_pending_open"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","closing_txid"],["matColumnDef","limbo_balance"],["matColumnDef","maturity_height"],["matColumnDef","blocks_til_maturity"],["matColumnDef","recovered_balance"],["matColumnDef","no_pending_force_closing"],["matColumnDef","no_pending_closing"],["matColumnDef","no_pending_wait_closing"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","","fxLayoutAlign","start center",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-stroked-button","","color","primary","type","button","tabindex","2",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","3",1,"table-actions-button",3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"span",2),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"mat-accordion",3),e.DNE(5,ac,1,0,"mat-progress-bar",4),e.j41(6,"mat-expansion-panel",5)(7,"mat-expansion-panel-header")(8,"mat-panel-title"),e.EFF(9),e.k0s()(),e.j41(10,"div",6),e.DNE(11,sc,1,0,"mat-progress-bar",4),e.j41(12,"table",7,0),e.qex(14,8),e.DNE(15,oc,2,0,"th",9)(16,lc,4,4,"td",10),e.bVm(),e.qex(17,11),e.DNE(18,rc,2,0,"th",9)(19,cc,4,4,"td",10),e.bVm(),e.qex(20,12),e.DNE(21,pc,2,0,"th",9)(22,mc,4,4,"td",10),e.bVm(),e.qex(23,13),e.DNE(24,uc,2,0,"th",9)(25,dc,3,4,"td",10),e.bVm(),e.qex(26,14),e.DNE(27,hc,2,0,"th",9)(28,_c,3,5,"td",10),e.bVm(),e.qex(29,15),e.DNE(30,fc,2,0,"th",16)(31,gc,4,3,"td",10),e.bVm(),e.qex(32,17),e.DNE(33,Cc,2,0,"th",16)(34,yc,4,3,"td",10),e.bVm(),e.qex(35,18),e.DNE(36,bc,2,0,"th",16)(37,Fc,4,3,"td",10),e.bVm(),e.qex(38,19),e.DNE(39,xc,2,0,"th",16)(40,vc,4,3,"td",10),e.bVm(),e.qex(41,20),e.DNE(42,Tc,2,0,"th",16)(43,kc,4,3,"td",10),e.bVm(),e.qex(44,21),e.DNE(45,Sc,2,0,"th",16)(46,Rc,4,3,"td",10),e.bVm(),e.qex(47,22),e.DNE(48,Ec,2,0,"th",16)(49,Ic,4,3,"td",10),e.bVm(),e.qex(50,23),e.DNE(51,Lc,3,0,"th",24)(52,wc,8,0,"td",25),e.bVm(),e.qex(53,26),e.DNE(54,Nc,4,3,"td",27),e.bVm(),e.DNE(55,Pc,1,3,"tr",28)(56,$c,1,0,"tr",29)(57,Ac,1,0,"tr",30),e.k0s()()(),e.DNE(58,Mc,1,0,"mat-progress-bar",4),e.j41(59,"mat-expansion-panel",5)(60,"mat-expansion-panel-header")(61,"mat-panel-title"),e.EFF(62),e.k0s()(),e.j41(63,"div",6)(64,"table",31,0),e.qex(66,32),e.DNE(67,Bc,2,0,"th",9)(68,Oc,4,4,"td",10),e.bVm(),e.qex(69,8),e.DNE(70,Vc,2,0,"th",9)(71,Yc,4,4,"td",10),e.bVm(),e.qex(72,11),e.DNE(73,Xc,2,0,"th",9)(74,Uc,4,4,"td",10),e.bVm(),e.qex(75,12),e.DNE(76,Hc,2,0,"th",9)(77,qc,4,4,"td",10),e.bVm(),e.qex(78,13),e.DNE(79,zc,2,0,"th",9)(80,Jc,3,4,"td",10),e.bVm(),e.qex(81,14),e.DNE(82,Qc,2,0,"th",9)(83,Wc,3,5,"td",10),e.bVm(),e.qex(84,33),e.DNE(85,Zc,2,0,"th",16)(86,Kc,4,3,"td",10),e.bVm(),e.qex(87,34),e.DNE(88,ep,2,0,"th",16)(89,tp,4,3,"td",10),e.bVm(),e.qex(90,35),e.DNE(91,np,2,0,"th",16)(92,ip,4,3,"td",10),e.bVm(),e.qex(93,36),e.DNE(94,ap,2,0,"th",16)(95,sp,4,3,"td",10),e.bVm(),e.qex(96,20),e.DNE(97,op,2,0,"th",16)(98,lp,4,3,"td",10),e.bVm(),e.qex(99,21),e.DNE(100,rp,2,0,"th",16)(101,cp,4,3,"td",10),e.bVm(),e.qex(102,22),e.DNE(103,pp,2,0,"th",16)(104,mp,4,3,"td",10),e.bVm(),e.qex(105,23),e.DNE(106,up,3,0,"th",24)(107,dp,3,0,"td",25),e.bVm(),e.qex(108,37),e.DNE(109,gp,4,3,"td",27),e.bVm(),e.DNE(110,Cp,1,3,"tr",28)(111,yp,1,0,"tr",29)(112,bp,1,0,"tr",30),e.k0s()()(),e.DNE(113,Fp,1,0,"mat-progress-bar",4),e.j41(114,"mat-expansion-panel",5)(115,"mat-expansion-panel-header")(116,"mat-panel-title"),e.EFF(117),e.k0s()(),e.j41(118,"div",6)(119,"table",31,0),e.qex(121,32),e.DNE(122,xp,2,0,"th",9)(123,vp,4,4,"td",10),e.bVm(),e.qex(124,8),e.DNE(125,Tp,2,0,"th",9)(126,kp,4,4,"td",10),e.bVm(),e.qex(127,11),e.DNE(128,Sp,2,0,"th",9)(129,Rp,4,4,"td",10),e.bVm(),e.qex(130,12),e.DNE(131,Ep,2,0,"th",9)(132,Ip,4,4,"td",10),e.bVm(),e.qex(133,13),e.DNE(134,Lp,2,0,"th",9)(135,wp,3,4,"td",10),e.bVm(),e.qex(136,14),e.DNE(137,jp,2,0,"th",9)(138,Gp,3,5,"td",10),e.bVm(),e.qex(139,20),e.DNE(140,Dp,2,0,"th",16)(141,Np,4,3,"td",10),e.bVm(),e.qex(142,21),e.DNE(143,Pp,2,0,"th",16)(144,$p,4,3,"td",10),e.bVm(),e.qex(145,22),e.DNE(146,Ap,2,0,"th",16)(147,Mp,4,3,"td",10),e.bVm(),e.qex(148,23),e.DNE(149,Bp,3,0,"th",24)(150,Op,3,0,"td",25),e.bVm(),e.qex(151,38),e.DNE(152,Up,4,3,"td",27),e.bVm(),e.DNE(153,Hp,1,3,"tr",28)(154,qp,1,0,"tr",29)(155,zp,1,0,"tr",30),e.k0s()()(),e.DNE(156,Jp,1,0,"mat-progress-bar",4),e.j41(157,"mat-expansion-panel",5)(158,"mat-expansion-panel-header")(159,"mat-panel-title"),e.EFF(160),e.k0s()(),e.j41(161,"div",6)(162,"table",31,0),e.qex(164,32),e.DNE(165,Qp,2,0,"th",9)(166,Wp,4,4,"td",10),e.bVm(),e.qex(167,8),e.DNE(168,Zp,2,0,"th",9)(169,Kp,4,4,"td",10),e.bVm(),e.qex(170,11),e.DNE(171,em,2,0,"th",9)(172,tm,4,4,"td",10),e.bVm(),e.qex(173,12),e.DNE(174,nm,2,0,"th",9)(175,im,4,4,"td",10),e.bVm(),e.qex(176,13),e.DNE(177,am,2,0,"th",9)(178,sm,3,4,"td",10),e.bVm(),e.qex(179,14),e.DNE(180,om,2,0,"th",9)(181,lm,3,5,"td",10),e.bVm(),e.qex(182,33),e.DNE(183,rm,2,0,"th",16)(184,cm,4,3,"td",10),e.bVm(),e.qex(185,20),e.DNE(186,pm,2,0,"th",16)(187,mm,4,3,"td",10),e.bVm(),e.qex(188,21),e.DNE(189,um,2,0,"th",16)(190,dm,4,3,"td",10),e.bVm(),e.qex(191,22),e.DNE(192,hm,2,0,"th",16)(193,_m,4,3,"td",10),e.bVm(),e.qex(194,23),e.DNE(195,fm,3,0,"th",24)(196,gm,3,0,"td",25),e.bVm(),e.qex(197,39),e.DNE(198,Fm,4,3,"td",27),e.bVm(),e.DNE(199,xm,1,3,"tr",28)(200,vm,1,0,"tr",29)(201,Tm,1,0,"tr",30),e.k0s()()()()()),2&o&&(e.R7$(2),e.SpI("Total Limbo Balance: ",e.bMT(3,38,a.pendingChannels.total_limbo_balance)," Sats"),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Open (",a.pendingOpenChannelsLength,")"),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.openTableSetting.sortBy)("matSortDirection",a.openTableSetting.sortOrder)("dataSource",a.pendingOpenChannels)("ngClass",e.eq3(40,xe,""!==a.errorMessage)),e.R7$(43),e.Y8G("matFooterRowDef",e.lJ4(42,K1)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedOpenColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedOpenColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Force Closing (",a.pendingForceClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.forceClosingTableSetting.sortBy)("matSortDirection",a.forceClosingTableSetting.sortOrder)("dataSource",a.pendingForceClosingChannels)("ngClass",e.eq3(43,xe,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(45,ec)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedForceClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedForceClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Pending Closing (",a.pendingClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.closingTableSetting.sortBy)("matSortDirection",a.closingTableSetting.sortOrder)("dataSource",a.pendingClosingChannels)("ngClass",e.eq3(46,xe,""!==a.errorMessage)),e.R7$(34),e.Y8G("matFooterRowDef",e.lJ4(48,tc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedClosingColumns),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(4),e.SpI("Waiting Close (",a.pendingWaitClosingChannelsLength,")"),e.R7$(2),e.Y8G("matSortActive",a.waitingCloseTableSetting.sortBy)("matSortDirection",a.waitingCloseTableSetting.sortOrder)("dataSource",a.pendingWaitClosingChannels)("ngClass",e.eq3(49,xe,""!==a.errorMessage)),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(51,nc)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedWaitClosingColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedWaitClosingColumns))},dependencies:[_.YU,_.bT,_.B3,N.$z,q.BS,q.GK,q.Z2,q.WN,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,B.Ld,_.QX,J.VD],styles:["tr.mat-footer-row[_ngcontent-%COMP%] td.mat-footer-cell[_ngcontent-%COMP%]{border-bottom:none}"]}))}return t(),s})();const Sm=()=>["all"],Rm=t=>({"error-border":t,"overflow-auto":!0}),Em=()=>["no_closed_channel"],ue=t=>({width:t}),Im=t=>({"display-none":t});function Lm(t,s){if(1&t&&(e.j41(0,"mat-option",36),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function wm(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function jm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Type"),e.k0s())}function Gm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"mat-icon",41),e.EFF(3,"info_outline"),e.k0s(),e.EFF(4),e.k0s()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(2),e.Y8G("matTooltip",i.channelClosureType[n.close_type].tooltip),e.R7$(2),e.SpI(" ",i.channelClosureType[n.close_type].name," ")}}function Dm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Peer"),e.k0s())}function Nm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function Pm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Pubkey"),e.k0s())}function $m(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function Am(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel Point"),e.k0s())}function Mm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Bm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Channel ID"),e.k0s())}function Om(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Vm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Closing Tx Hash"),e.k0s())}function Ym(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.closing_tx_hash)}}function Xm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Chain Hash"),e.k0s())}function Um(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ue,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chain_hash)}}function Hm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Open Initiator"),e.k0s())}function qm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.open_initiator,"initiator_"))}}function zm(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Close Initiator"),e.k0s())}function Jm(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"camelcaseWithReplace"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,n.close_initiator,"initiator_"))}}function Qm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Timelocked Balance (Sats)"),e.k0s())}function Wm(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.time_locked_balance)," ")}}function Zm(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Km(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function eu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Close Height"),e.k0s())}function tu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.close_height)," ")}}function nu(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Settled Balance (Sats)"),e.k0s())}function iu(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.settled_balance)," ")}}function au(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",46)(1,"div",47)(2,"mat-select",48),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function su(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",39)(1,"span",45)(2,"button",50),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onClosedChannelClick(a,o))}),e.EFF(3,"View Info"),e.k0s()()()}}function ou(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No closed channel available."),e.k0s())}function lu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting closed channels..."),e.k0s())}function ru(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function cu(t,s){if(1&t&&(e.j41(0,"td",51),e.DNE(1,ou,2,0,"p",52)(2,lu,2,0,"p",52)(3,ru,2,1,"p",52),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.closedChannels&&n.closedChannels.data)||(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function pu(t,s){if(1&t&&e.nrm(0,"tr",53),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,Im,(null==n.closedChannels?null:n.closedChannels.data)&&(null==n.closedChannels||null==n.closedChannels.data?null:n.closedChannels.data.length)>0))}}function mu(t,s){1&t&&e.nrm(0,"tr",54)}function uu(t,s){1&t&&e.nrm(0,"tr",55)}let du=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.commonService=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"closed",recordsPerPage:c.md,sortBy:"close_type",sortOrder:c.oi.DESCENDING},this.channelClosureType=c.tj,this.faHistory=x.Int,this.displayedColumns=[],this.closedChannelsData=[],this.closedChannels=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Bw).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.closedChannelsData=i.closedChannels,this.closedChannelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadClosedChannelsTable(this.closedChannelsData),this.logger.info(i)})}ngAfterViewInit(){this.closedChannelsData.length>0&&this.loadClosedChannelsTable(this.closedChannelsData)}applyFilter(){this.closedChannels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.closedChannels.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=JSON.stringify(i).toLowerCase();break;case"close_type":a=i.close_type&&this.channelClosureType[i.close_type]&&this.channelClosureType[i.close_type].name?this.channelClosureType[i.close_type].name.toLowerCase():"";break;case"open_initiator":case"close_initiator":a=this.camelCaseWithReplace.transform(i[this.selFilterBy]||"","initiator_").trim().toLowerCase();break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"close_type"===this.selFilterBy||"open_initiator"===this.selFilterBy||"close_initiator"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onClosedChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Closed Channel Information",message:[[{key:"close_type",value:this.channelClosureType[i.close_type].name,title:"Close Type",width:30,type:c.UN.STRING},{key:"settled_balance",value:i.settled_balance,title:"Settled Balance",width:30,type:c.UN.NUMBER},{key:"time_locked_balance",value:i.time_locked_balance,title:"Time Locked Balance",width:40,type:c.UN.NUMBER}],[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:30},{key:"capacity",value:i.capacity,title:"Capacity",width:30,type:c.UN.NUMBER},{key:"close_height",value:i.close_height,title:"Close Height",width:40,type:c.UN.NUMBER}],[{key:"remote_alias",value:i.remote_alias,title:"Peer Alias",width:30},{key:"remote_pubkey",value:i.remote_pubkey,title:"Peer Public Key",width:70}],[{key:"channel_point",value:i.channel_point,title:"Channel Point",width:100}],[{key:"closing_tx_hash",value:i.closing_tx_hash,title:"Closing Transaction Hash",width:100,type:c.UN.STRING}]]}}}))}loadClosedChannelsTable(i){this.closedChannels=new u.I6([...i]),this.closedChannels.sort=this.sort,this.closedChannels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.closedChannels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.closedChannels)}onDownloadCSV(){this.closedChannels.data&&this.closedChannels.data.length>0&&this.commonService.downloadFile(this.closedChannels.data,"Closed-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU($.h),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-closed-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:66,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","close_type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","chan_id"],["matColumnDef","closing_tx_hash"],["matColumnDef","chain_hash"],["matColumnDef","open_initiator"],["matColumnDef","close_initiator"],["matColumnDef","time_locked_balance"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","capacity"],["matColumnDef","close_height"],["matColumnDef","settled_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_closed_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row","fxLayoutAlign","start center"],[1,"info-icon","info-icon-text",3,"matTooltip"],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Lm,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,wm,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,jm,2,0,"th",13)(20,Gm,5,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Dm,2,0,"th",13)(23,Nm,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Pm,2,0,"th",13)(26,$m,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Am,2,0,"th",13)(29,Mm,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Bm,2,0,"th",13)(32,Om,4,4,"td",14),e.bVm(),e.qex(33,19),e.DNE(34,Vm,2,0,"th",13)(35,Ym,4,4,"td",14),e.bVm(),e.qex(36,20),e.DNE(37,Xm,2,0,"th",13)(38,Um,4,4,"td",14),e.bVm(),e.qex(39,21),e.DNE(40,Hm,2,0,"th",13)(41,qm,3,4,"td",14),e.bVm(),e.qex(42,22),e.DNE(43,zm,2,0,"th",13)(44,Jm,3,4,"td",14),e.bVm(),e.qex(45,23),e.DNE(46,Qm,2,0,"th",24)(47,Wm,4,3,"td",14),e.bVm(),e.qex(48,25),e.DNE(49,Zm,2,0,"th",24)(50,Km,4,3,"td",14),e.bVm(),e.qex(51,26),e.DNE(52,eu,2,0,"th",24)(53,tu,4,3,"td",14),e.bVm(),e.qex(54,27),e.DNE(55,nu,2,0,"th",24)(56,iu,4,3,"td",14),e.bVm(),e.qex(57,28),e.DNE(58,au,6,0,"th",29)(59,su,4,0,"td",14),e.bVm(),e.qex(60,30),e.DNE(61,cu,4,3,"td",31),e.bVm(),e.DNE(62,pu,1,3,"tr",32)(63,mu,1,0,"tr",33)(64,uu,1,0,"tr",34),e.k0s()(),e.nrm(65,"mat-paginator",35),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,Sm).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.closedChannels)("ngClass",e.eq3(15,Rm,""!==a.errorMessage)),e.R7$(46),e.Y8G("matFooterRowDef",e.lJ4(17,Em)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.QX,J.VD],encapsulation:2}))}return t(),s})();const hu=()=>["all"],_u=t=>({"error-border":t}),fu=()=>["no_channel"],gu=t=>({"display-none":t});function Cu(t,s){if(1&t&&(e.j41(0,"mat-option",33),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function yu(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function bu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Amount (Sats)"),e.k0s())}function Fu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.amount)," ")}}function xu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Fu,3,3,"span",39),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function vu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,xu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" Active HTLCs: ",null==n||null==n.pending_htlcs?null:n.pending_htlcs.length," "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Tu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Alias/Incoming"),e.k0s())}function ku(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null!=n&&n.incoming?"Yes":"No"," ")}}function Su(t,s){if(1&t&&(e.qex(0),e.DNE(1,ku,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Ru(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Su,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(null==n?null:n.remote_alias),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Eu(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Forwarding Channel"),e.k0s())}function Iu(t,s){if(1&t&&(e.j41(0,"span",37),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.forwarding_channel," ")}}function Lu(t,s){if(1&t&&(e.qex(0),e.DNE(1,Iu,2,1,"span",41),e.bVm()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function wu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",37),e.EFF(2),e.k0s(),e.DNE(3,Lu,2,1,"ng-container",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function ju(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"HTLC Index"),e.k0s()())}function Gu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.htlc_index)," ")}}function Du(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Gu,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Nu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Du,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Pu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Forwarding HTLC Index"),e.k0s()())}function $u(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.bMT(2,1,null==n?null:n.forwarding_htlc_index)," ")}}function Au(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,$u,3,3,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Mu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Au,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Bu(t,s){1&t&&(e.j41(0,"th",42)(1,"span",40),e.EFF(2,"Expiration Height"),e.k0s()())}function Ou(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",e.i5U(2,1,null==n?null:n.expiration_height,"1.0-0")," ")}}function Vu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Ou,3,4,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Yu(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Vu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Xu(t,s){1&t&&(e.j41(0,"th",43)(1,"span",40),e.EFF(2,"Hash Lock"),e.k0s()())}function Uu(t,s){if(1&t&&(e.j41(0,"span",40),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.SpI(" ",null==n?null:n.hash_lock," ")}}function Hu(t,s){if(1&t&&(e.j41(0,"span"),e.DNE(1,Uu,2,1,"span",39),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function qu(t,s){if(1&t&&(e.j41(0,"td",44)(1,"span",40),e.EFF(2),e.k0s(),e.DNE(3,Hu,2,1,"span",38),e.k0s()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(" "),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function zu(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ju(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",53)(1,"button",54),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2).$implicit,l=e.XpG();return r.Njj(l.onHTLCClick(o,a))}),e.EFF(2),e.k0s()()}if(2&t){const n=s.index;e.R7$(2),e.SpI("View ",n+1)}}function Qu(t,s){if(1&t&&(e.j41(0,"div"),e.DNE(1,Ju,3,1,"div",52),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.Y8G("ngForOf",null==n?null:n.pending_htlcs)}}function Wu(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",49)(1,"span",50)(2,"button",51),e.bIt("click",function(){const o=r.eBV(n).$implicit;return r.Njj(o.is_expanded=!o.is_expanded)}),e.EFF(3),e.k0s()(),e.DNE(4,Qu,2,1,"div",38),e.k0s()}if(2&t){const n=s.$implicit;e.R7$(3),e.JRh(n.is_expanded?"Hide":"Show"),e.R7$(),e.Y8G("ngIf",n.is_expanded)}}function Zu(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No active htlc available."),e.k0s())}function Ku(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting active htlcs..."),e.k0s())}function ed(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function td(t,s){if(1&t&&(e.j41(0,"td",55),e.DNE(1,Zu,2,0,"p",38)(2,Ku,2,0,"p",38)(3,ed,2,1,"p",38),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function nd(t,s){if(1&t&&e.nrm(0,"tr",56),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,gu,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function id(t,s){1&t&&e.nrm(0,"tr",57)}function ad(t,s){1&t&&e.nrm(0,"tr",58)}let sd=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"active_HTLCs",recordsPerPage:c.md,sortBy:"expiration_height",sortOrder:c.oi.DESCENDING},this.channels=new u.I6([]),this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsJSONArr=i.channels?.filter(o=>o.pending_htlcs&&o.pending_htlcs.length>0)||[],this.channelsJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.channelsJSONArr.length>0&&this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"HTLC Information",message:[[{key:"remote_alias",value:o.remote_alias,title:"Alias",width:100,type:c.UN.STRING}],[{key:"amount",value:i.amount,title:"Amount (Sats)",width:50,type:c.UN.NUMBER},{key:"incoming",value:i.incoming?"Yes":"No",title:"Incoming",width:50,type:c.UN.STRING}],[{key:"expiration_height",value:i.expiration_height,title:"Expiration Height",width:50,type:c.UN.NUMBER},{key:"hash_lock",value:i.hash_lock,title:"Hash Lock",width:50,type:c.UN.STRING}]]}}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!0,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?(i.remote_alias?i.remote_alias.toLowerCase():"")+i.pending_htlcs?.map(l=>JSON.stringify(l)+(l.incoming?"yes":"no")):typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadHTLCsTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>{switch(a){case"amount":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o.pending_htlcs&&o.pending_htlcs.length?o.pending_htlcs.length:null;case"incoming":return this.commonService.sortByKey(o.pending_htlcs,a,"boolean",this.sort?.direction),o.remote_alias?o.remote_alias:o.remote_pubkey?o.remote_pubkey:null;case"expiration_height":case"hash_lock":return this.commonService.sortByKey(o.pending_htlcs,a,"number",this.sort?.direction),o;default:return o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data))?.reduce((a,l)=>a.concat(l.pending_htlcs?l.pending_htlcs:l),[])}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-active-htlcs-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("HTLCs")}])],decls:48,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","incoming"],["matColumnDef","forwarding_channel"],["matColumnDef","htlc_index"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","forwarding_htlc_index"],["matColumnDef","expiration_height"],["matColumnDef","hash_lock"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayout","column","fxLayoutAlign","center end",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["mat-header-cell","",1,"px-2"],["fxLayoutAlign","end center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayout","column","fxLayoutAlign","center end",1,"px-2"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2),e.nrm(2,"div",3),e.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,Cu,2,2,"mat-option",7),e.k0s()()(),e.j41(10,"mat-form-field",5)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(14,"div",9),e.DNE(15,yu,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,bu,2,0,"th",13)(20,vu,4,2,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Tu,2,0,"th",13)(23,Ru,4,2,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,Eu,2,0,"th",13)(26,wu,4,2,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,ju,3,0,"th",18)(29,Nu,4,2,"td",14),e.bVm(),e.qex(30,19),e.DNE(31,Pu,3,0,"th",18)(32,Mu,4,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bu,3,0,"th",18)(35,Yu,4,2,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Xu,3,0,"th",22)(38,qu,4,2,"td",23),e.bVm(),e.qex(39,24),e.DNE(40,zu,6,0,"th",25)(41,Wu,5,2,"td",26),e.bVm(),e.qex(42,27),e.DNE(43,td,4,3,"td",28),e.bVm(),e.DNE(44,nd,1,3,"tr",29)(45,id,1,0,"tr",30)(46,ad,1,0,"tr",31),e.k0s()(),e.nrm(47,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(7),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,hu).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.channels)("ngClass",e.eq3(15,_u,""!==a.errorMessage)),e.R7$(28),e.Y8G("matFooterRowDef",e.lJ4(17,fu)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],styles:[".mat-column-amount[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem;padding-right:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-column-actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_creation_date[_ngcontent-%COMP%]{min-width:7rem}"]}))}return t(),s})();function od(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Wallet password is required."),e.k0s())}let ld=(()=>{var t;class s{constructor(i){this.store=i,this.walletPassword=""}ngOnInit(){this.walletPassword=""}onUnlockWallet(){if(!this.walletPassword)return!0;this.store.dispatch((0,T.WE)({payload:{pwd:window.btoa(this.walletPassword)}}))}resetData(){this.walletPassword=""}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-unlock-wallet"]],standalone:!1,decls:14,vars:2,consts:[["fxLayout","column",1,"padding-gap","mb-2"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start"],["autoFocus","","matInput","","type","password","name","walletPassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","3",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"form",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Password"),e.k0s(),e.j41(5,"input",3),e.mxI("ngModelChange",function(p){return e.DH7(a.walletPassword,p)||(a.walletPassword=p),p}),e.k0s(),e.j41(6,"mat-hint"),e.EFF(7,"Enter Wallet Password"),e.k0s(),e.DNE(8,od,2,0,"mat-error",4),e.k0s(),e.j41(9,"div",5)(10,"button",6),e.bIt("click",function(){return a.resetData()}),e.EFF(11,"Clear Field"),e.k0s(),e.j41(12,"button",7),e.bIt("click",function(){return a.onUnlockWallet()}),e.EFF(13,"Unlock Wallet"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.walletPassword),e.R7$(3),e.Y8G("ngIf",!a.walletPassword))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,te.N],encapsulation:2}))}return t(),s})();var rd=y(97768);function cd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",6),e.EFF(3,"Warning: Your connection is unsecure, it's not safe to generate private keys over this connection.Are you sure you want to proceed?"),e.k0s(),e.j41(4,"div",7)(5,"button",8),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!1,r.Njj(o.warnRes=!0)}),e.EFF(6,"Do Not Proceed"),e.k0s(),e.j41(7,"button",9),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return o.proceed=!0,r.Njj(o.warnRes=!0)}),e.EFF(8,"Proceed"),e.k0s()()()()}}function pd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Please re-configure & re-start RTL after securing your LND connction. You can close this window now."),e.k0s(),e.j41(3,"div",7)(4,"button",12),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.warnRes=!1)}),e.EFF(5,"Go Back"),e.k0s()()()}}function md(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ud(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password must be at least 8 characters in length."),e.k0s())}function dd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password is required."),e.k0s())}function hd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Confirm password must be at least 8 characters in length."),e.k0s())}function _d(t,s){1&t&&(e.j41(0,"div",41)(1,"mat-icon",42),e.EFF(2,"cancel"),e.k0s(),e.EFF(3,"Passwords do not match. "),e.k0s())}function fd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Cipher seed is required."),e.k0s())}function gd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid Cipher. Enter comma separated 24 words cipher seed."),e.k0s())}function Cd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Passphrase is required."),e.k0s())}function yd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"vpn_key"),e.k0s())}function bd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"swap_calls"),e.k0s())}function Fd(t,s){1&t&&(e.j41(0,"mat-icon"),e.EFF(1,"fingerprint"),e.k0s())}function xd(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-vertical-stepper",13,0)(2,"mat-step",14)(3,"form",15)(4,"mat-form-field",16)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",17),e.j41(8,"mat-hint"),e.EFF(9,"Enter Wallet Password"),e.k0s(),e.DNE(10,md,2,0,"mat-error",2)(11,ud,2,0,"mat-error",2),e.k0s(),e.j41(12,"mat-form-field",16)(13,"mat-label"),e.EFF(14,"Confirm Password"),e.k0s(),e.nrm(15,"input",18),e.j41(16,"mat-hint"),e.EFF(17,"Confirm Wallet Password"),e.k0s(),e.DNE(18,dd,2,0,"mat-error",2)(19,hd,2,0,"mat-error",2),e.k0s(),e.DNE(20,_d,4,0,"div",19),e.j41(21,"div",20)(22,"button",21),e.EFF(23,"Next"),e.k0s()()()(),e.j41(24,"mat-step",22)(25,"form",23)(26,"div",24)(27,"mat-slide-toggle",25),e.EFF(28,"Existing Cipher"),e.k0s(),e.j41(29,"mat-form-field",26)(30,"mat-label"),e.EFF(31,"Comma separated array of 24 words cipher seed"),e.k0s(),e.nrm(32,"input",27),e.j41(33,"mat-hint"),e.EFF(34,"Cipher Seed"),e.k0s(),e.DNE(35,fd,2,0,"mat-error",2)(36,gd,2,0,"mat-error",2),e.k0s()(),e.j41(37,"div",28)(38,"button",29),e.EFF(39,"Back"),e.k0s(),e.j41(40,"button",30),e.EFF(41,"Next"),e.k0s()()()(),e.j41(42,"mat-step",31)(43,"form",23)(44,"div",24)(45,"mat-slide-toggle",32),e.EFF(46,"Existing Passphrase"),e.k0s(),e.j41(47,"mat-form-field",33)(48,"mat-label"),e.EFF(49,"Passphrase"),e.k0s(),e.nrm(50,"input",34),e.j41(51,"mat-hint"),e.EFF(52,"Enter Passphrase"),e.k0s(),e.DNE(53,Cd,2,0,"mat-error",2),e.k0s()(),e.j41(54,"div",28)(55,"button",35),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(56,"Clear"),e.k0s(),e.j41(57,"button",36),e.EFF(58,"Back"),e.k0s(),e.j41(59,"button",37),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onInitWallet())}),e.EFF(60,"Initialize Wallet"),e.k0s()()()(),e.DNE(61,yd,2,0,"ng-template",38)(62,bd,2,0,"ng-template",39)(63,Fd,2,0,"ng-template",40),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",n.passwordFormGroup),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletPassword.errors?null:n.passwordFormGroup.controls.initWalletPassword.errors.minlength),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.required),e.R7$(),e.Y8G("ngIf",null==n.passwordFormGroup.controls.initWalletConfirmPassword.errors?null:n.passwordFormGroup.controls.initWalletConfirmPassword.errors.minlength),e.R7$(),e.Y8G("ngIf",(null==n.passwordFormGroup.errors?null:n.passwordFormGroup.errors.unmatchedPasswords)&&(n.passwordFormGroup.controls.initWalletPassword.touched||n.passwordFormGroup.controls.initWalletPassword.dirty)&&(n.passwordFormGroup.controls.initWalletConfirmPassword.touched||n.passwordFormGroup.controls.initWalletConfirmPassword.dirty)),e.R7$(4),e.Y8G("stepControl",n.cipherFormGroup),e.R7$(),e.Y8G("formGroup",n.cipherFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.required),e.R7$(),e.Y8G("ngIf",!(null!=n.cipherFormGroup.controls.cipherSeed.errors&&n.cipherFormGroup.controls.cipherSeed.errors.required)&&(null==n.cipherFormGroup.controls.cipherSeed.errors?null:n.cipherFormGroup.controls.cipherSeed.errors.invalidCipher)),e.R7$(6),e.Y8G("stepControl",n.passphraseFormGroup),e.R7$(),e.Y8G("formGroup",n.passphraseFormGroup),e.R7$(10),e.Y8G("ngIf",null==n.passphraseFormGroup.controls.passphrase.errors?null:n.passphraseFormGroup.controls.passphrase.errors.required)}}function vd(t,s){if(1&t&&(e.j41(0,"span",48),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(n)}}function Td(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",43),e.EFF(3,"YOU MUST WRITE DOWN THIS SEED TO BE ABLE TO RESTORE THE WALLET!"),e.k0s(),e.j41(4,"div",44),e.DNE(5,vd,2,1,"span",45),e.k0s(),e.j41(6,"div",46),e.EFF(7,"Wallet initialization is done."),e.k0s(),e.j41(8,"div",46),e.EFF(9,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(10,"div",46),e.EFF(11,"Click continue only after writing down the seed."),e.k0s(),e.j41(12,"div",7)(13,"button",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(14,"Go To Home"),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(5),e.Y8G("ngForOf",n.genSeedResponse)}}function kd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Something went wrong! Unable to initialize wallet!"),e.k0s(),e.j41(4,"div",7)(5,"button",49),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.EFF(6,"Restart"),e.k0s()()()()}}function Sd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div")(1,"form",5)(2,"div",46),e.EFF(3,"Wallet recovery is done."),e.k0s(),e.j41(4,"div",46),e.EFF(5,"The node will be usable only after LND has synced completely with the network."),e.k0s(),e.j41(6,"div",7)(7,"button",50),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onGoToHome())}),e.EFF(8,"Go To Home"),e.k0s()()()()}}function Rd(t){const s=t.get("initWalletPassword"),n=t.get("initWalletConfirmPassword");return s&&n&&s.value!==n.value?{unmatchedPasswords:!0}:null}function Ed(t){const s=t.value.toString().trim().split(",")||[];return s&&24!==s.length?{invalidCipher:!0}:null}let Id=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.formBuilder=o,this.lndEffects=a,this.insecureLND=!1,this.genSeedResponse=[],this.initWalletResponse="",this.proceed=!0,this.warnRes=!1,this.unsubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.passwordFormGroup=this.formBuilder.group({initWalletPassword:["",[d.k0.required,d.k0.minLength(8)]],initWalletConfirmPassword:["",[d.k0.required,d.k0.minLength(8)]]},{validators:Rd}),this.cipherFormGroup=this.formBuilder.group({existingCipher:[!1],cipherSeed:[{value:"",disabled:!0},[Ed]]}),this.passphraseFormGroup=this.formBuilder.group({enterPassphrase:[!1],passphrase:[{value:"",disabled:!0}]}),this.cipherFormGroup.controls.existingCipher.valueChanges.pipe((0,g.Q)(this.unsubs[0])).subscribe(i=>{i?(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.enable()):(this.cipherFormGroup.controls.cipherSeed.setValue(""),this.cipherFormGroup.controls.cipherSeed.disable())}),this.passphraseFormGroup.controls.enterPassphrase.valueChanges.pipe((0,g.Q)(this.unsubs[1])).subscribe(i=>{i?(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.enable()):(this.passphraseFormGroup.controls.passphrase.setValue(""),this.passphraseFormGroup.controls.passphrase.disable())}),this.insecureLND=!window.location.protocol.includes("https:"),this.lndEffects.initWalletRes.pipe((0,g.Q)(this.unsubs[2])).subscribe(i=>{this.initWalletResponse=i}),this.lndEffects.genSeedResponse.pipe((0,g.Q)(this.unsubs[3])).subscribe(i=>{this.genSeedResponse=i,this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:this.genSeedResponse}}))})}onInitWallet(){if(this.passwordFormGroup.invalid||this.cipherFormGroup.invalid||this.passphraseFormGroup.invalid)return!0;if(this.cipherFormGroup.controls.existingCipher.value){const i=this.cipherFormGroup.controls.cipherSeed.value.toString().trim().split(",");this.store.dispatch((0,T.GZ)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i,passphrase:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}}:{payload:{pwd:window.btoa(this.passwordFormGroup.controls.initWalletPassword.value),cipher:i}}))}else this.store.dispatch((0,T.oX)(this.passphraseFormGroup.controls.enterPassphrase.value?{payload:window.btoa(this.passphraseFormGroup.controls.passphrase.value)}:{payload:""}))}onGoToHome(){setTimeout(()=>{this.store.dispatch((0,T.X9)()),this.store.dispatch((0,T.Br)({payload:{loadPage:"HOME"}}))},1e3)}resetData(){this.genSeedResponse=[],this.initWalletResponse=""}ngOnDestroy(){this.unsubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(d.ze),e.rXU(me.L))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-initialize-wallet"]],viewQuery:function(o,a){if(1&o&&e.GBs(z.M6,5),2&o){let l;e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,features:[e.Jv_([{provide:rd.x8,useValue:{displayDefaultIndicatorType:!1}}])],decls:7,vars:6,consts:[["stepper",""],["fxLayout","column",1,"padding-gap","mb-4"],[4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch",4,"ngIf"],[3,"linear",4,"ngIf"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-2"],["fxFlex","100","fxLayoutAlign","start"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","2",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","stretch stretch"],["fxFlex","100",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",3,"click"],[3,"linear"],["label","Wallet Password","state","password",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mt-1",3,"formGroup"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","type","password","name","initWalletPassword","formControlName","initWalletPassword","tabindex","5","required",""],["matInput","","type","password","name","initWalletConfirmPassword","formControlName","initWalletConfirmPassword","tabindex","6","required",""],["class","validation-error-message",4,"ngIf"],["fxLayout","row",1,"my-2"],["mat-flat-button","","color","primary","tabindex","7","type","submit","matStepperNext",""],["label","Cipher","state","cipher",3,"stepControl"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start",1,"mt-1",3,"formGroup"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch"],["labelPosition","before","fxFlex","20","tabindex","8","color","primary","formControlName","existingCipher","name","existingCipher",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start",1,"my-1"],["autofocus","","matInput","","type","input","name","cipherSeed","formControlName","cipherSeed","tabindex","9","required",""],["fxLayout","row",1,"mb-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","10","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","11","type","submit","matStepperNext","",1,"mt-1"],["label","Passphrase","state","passphrase",3,"stepControl"],["labelPosition","before","fxFlex","20","tabindex","10","color","primary","formControlName","enterPassphrase","name","enterPassphrase",1,"chkbox-wallet"],["fxLayout","column","fxFlex","75","fxLayoutAlign","start"],["matInput","","type","password","name","passphrase","formControlName","passphrase","tabindex","12","required",""],["mat-stroked-button","","color","warn","tabindex","13","type","reset",1,"mr-1","mt-1",3,"click"],["mat-stroked-button","","tabindex","14","color","primary","type","button","matStepperPrevious","",1,"mr-1","mt-1"],["mat-flat-button","","color","primary","tabindex","15","type","submit",1,"mt-1",3,"click"],["matStepperIcon","password"],["matStepperIcon","cipher"],["matStepperIcon","passphrase"],[1,"validation-error-message"],[1,"validation-error-icon","red"],["fxFlex","100","fxLayoutAlign","start",1,"blinker"],["fxFlex","40","fxLayout","row wrap",1,"mt-2"],["fxFlex","25","fxLayoutAlign","start","class","genseed-message",4,"ngFor","ngForOf"],["fxFlex","100","fxLayoutAlign","start",1,"mt-2"],["mat-flat-button","","color","primary","type","submit","tabindex","16",3,"click"],["fxFlex","25","fxLayoutAlign","start",1,"genseed-message"],["mat-stroked-button","","color","primary","tabindex","17","type","reset",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","18",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,cd,9,0,"div",2)(2,pd,6,0,"div",3)(3,xd,64,15,"mat-vertical-stepper",4)(4,Td,15,1,"div",2)(5,kd,7,0,"div",2)(6,Sd,9,0,"div",2),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",a.insecureLND&&!a.warnRes),e.R7$(),e.Y8G("ngIf",a.warnRes&&!a.proceed),e.R7$(),e.Y8G("ngIf",(!a.insecureLND||a.warnRes&&a.proceed)&&a.genSeedResponse.length<=0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""!==a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length>0&&""===a.initWalletResponse),e.R7$(),e.Y8G("ngIf",a.genSeedResponse.length<=0&&""!==a.initWalletResponse))},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.cV,d.j4,d.JD,N.$z,oe.An,M.fg,C.rl,C.nJ,C.MV,C.TL,f.DJ,f.sA,f.UI,he.sG,z.V5,z.M6,z.F7,z.FR,z.xJ],encapsulation:2}))}return t(),s})(),Ld=(()=>{var t;class s{constructor(){this.faWallet=x.BA1}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-wallet"]],standalone:!1,decls:12,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-stretch-tabs","false","mat-align-tabs","start"],["label","Unlock"],["label","Initialize"]],template:function(o,a){1&o&&(e.j41(0,"div",0),e.nrm(1,"fa-icon",1),e.j41(2,"span",2),e.EFF(3,"Wallet"),e.k0s()(),e.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"mat-tab-group",5)(8,"mat-tab",6),e.nrm(9,"rtl-unlock-wallet"),e.k0s(),e.j41(10,"mat-tab",7),e.nrm(11,"rtl-initialize-wallet"),e.k0s()()()()()),2&o&&(e.R7$(),e.Y8G("icon",a.faWallet))},dependencies:[O.aY,k.RN,k.m2,f.DJ,f.sA,A.mq,A.T8,ld,Id],encapsulation:2}))}return t(),s})();function wd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let jd=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.currencyUnits=[],this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"},{link:"lookuptransactions",name:"Lookup"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1]),(0,ge.E)(this.store.select(H._c))).subscribe(([o,a])=>{this.currencyUnits=a?.settings.currencyUnits||[],this.balances=a?.settings.userPersona===c.HW.OPERATOR?[{title:"Local Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.lightningBalance.local||0,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.lightningBalance.remote||0,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Lightning Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",7),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"Lightning Transactions"),e.k0s()(),e.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),e.DNE(16,wd,2,4,"div",10),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",11),e.nrm(20,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function Gd(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Dd=(()=>{var t;class s{constructor(i){this.router=i,this.faSearch=x.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Graph Lookups"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Gd,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faSearch),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Nd=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),Ne=t=>({width:t});function Pd(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Destination pubkey is required."),e.k0s())}function $d(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function Ad(t,s){1&t&&e.nrm(0,"mat-progress-bar",39)}function Md(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Hop"),e.k0s())}function Bd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.hop_sequence)}}function Od(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer"),e.k0s())}function Vd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pubkey_alias)}}function Yd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Peer Pubkey"),e.k0s())}function Xd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.pub_key)}}function Ud(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"Channel ID"),e.k0s())}function Hd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"div",42)(2,"span",43),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ne,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function qd(t,s){1&t&&(e.j41(0,"th",40),e.EFF(1,"TLV Payload"),e.k0s())}function zd(t,s){if(1&t&&(e.j41(0,"td",41),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null!=n&&n.tlv_payload?"Yes":"No")}}function Jd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Expiry"),e.k0s())}function Qd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.expiry))}}function Wd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Capacity (Sats)"),e.k0s())}function Zd(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==n?null:n.chan_capacity))}}function Kd(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Amount To Fwd (Sats)"),e.k0s())}function eh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.amt_to_forward)," ")}}function th(t,s){1&t&&(e.j41(0,"th",44),e.EFF(1,"Fee (mSats)"),e.k0s())}function nh(t,s){if(1&t&&(e.j41(0,"td",41)(1,"span",45),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,null==n?null:n.fee_msat)," ")}}function ih(t,s){1&t&&(e.j41(0,"th",46)(1,"div",47),e.EFF(2,"Actions"),e.k0s()())}function ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onHopClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function sh(t,s){1&t&&e.nrm(0,"tr",50)}function oh(t,s){1&t&&e.nrm(0,"tr",51)}let lh=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.colWidth="20rem",this.PAGE_ID="graph_lookup",this.tableSetting={tableId:"query_routes",recordsPerPage:c.md,sortBy:"hop_sequence",sortOrder:c.oi.ASCENDING},this.destinationPubkey="",this.amount=null,this.qrHops=new u.I6([]),this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=x.TBz,this.faExclamationTriangle=x.zpE,this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.lndEffects.setQueryRoutes.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.qrHops=new u.I6([]),i.routes&&i.routes.length&&i.routes.length>0&&i.routes[0].hops?(this.flgLoading[0]=!1,this.qrHops=new u.I6([...i.routes[0].hops]),this.qrHops.data=i.routes[0].hops):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.qrHops=new u.I6([]),this.flgLoading[0]=!0,this.store.dispatch((0,T.T4)({payload:{destPubkey:this.destinationPubkey,amount:this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1}onHopClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"hop_sequence",value:i.hop_sequence,title:"Sequence",width:33,type:c.UN.NUMBER},{key:"amt_to_forward",value:i.amt_to_forward,title:"Amount To Forward (Sats)",width:33,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:34,type:c.UN.NUMBER}],[{key:"chan_capacity",value:i.chan_capacity,title:"Channel Capacity (Sats)",width:50,type:c.UN.NUMBER},{key:"expiry",value:i.expiry,title:"Expiry",width:50,type:c.UN.NUMBER}],[{key:"pubkey_alias",value:i.pubkey_alias,title:"Peer Alias",width:50,type:c.UN.STRING},{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING}],[{key:"pub_key",value:i.pub_key,title:"Peer Pubkey",width:100,type:c.UN.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-query-routes"]],viewQuery:function(o,a){if(1&o&&e.GBs(R.B4,5),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first)}},standalone:!1,decls:64,vars:17,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table",""],["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","destinationPubkey","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-3","mb-1"],["fxFlex","70","fxLayoutAlign","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","hop_sequence"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","pubkey_alias"],["matColumnDef","pub_key"],["matColumnDef","chan_id"],["matColumnDef","tlv_payload"],["matColumnDef","expiry"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","chan_capacity"],["matColumnDef","amt_to_forward_msat"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",3)(1,"form",4,0),e.bIt("ngSubmit",function(){r.eBV(l);const m=e.sdS(2);return r.Njj(m.form.valid&&a.onQueryRoutes())}),e.j41(3,"div",5),e.nrm(4,"fa-icon",6),e.j41(5,"span"),e.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),e.k0s()(),e.j41(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Destination Pubkey"),e.k0s(),e.j41(10,"input",8,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.destinationPubkey,m)||(a.destinationPubkey=m),r.Njj(m)}),e.k0s(),e.DNE(12,Pd,2,0,"mat-error",9),e.k0s(),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"Amount (Sats)"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.amount,m)||(a.amount=m),r.Njj(m)}),e.k0s(),e.DNE(17,$d,2,0,"mat-error",9),e.k0s(),e.j41(18,"div",12)(19,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(20,"Clear"),e.k0s(),e.j41(21,"button",14),e.EFF(22,"Query Route"),e.k0s()()(),e.j41(23,"div",15)(24,"div",16),e.nrm(25,"fa-icon",17),e.j41(26,"span",18),e.EFF(27,"Transaction Route"),e.k0s()()(),e.j41(28,"div",19),e.DNE(29,Ad,1,0,"mat-progress-bar",20),e.j41(30,"table",21,2),e.qex(32,22),e.DNE(33,Md,2,0,"th",23)(34,Bd,2,1,"td",24),e.bVm(),e.qex(35,25),e.DNE(36,Od,2,0,"th",23)(37,Vd,4,4,"td",24),e.bVm(),e.qex(38,26),e.DNE(39,Yd,2,0,"th",23)(40,Xd,4,4,"td",24),e.bVm(),e.qex(41,27),e.DNE(42,Ud,2,0,"th",23)(43,Hd,4,4,"td",24),e.bVm(),e.qex(44,28),e.DNE(45,qd,2,0,"th",23)(46,zd,2,1,"td",24),e.bVm(),e.qex(47,29),e.DNE(48,Jd,2,0,"th",30)(49,Qd,4,3,"td",24),e.bVm(),e.qex(50,31),e.DNE(51,Wd,2,0,"th",30)(52,Zd,4,3,"td",24),e.bVm(),e.qex(53,32),e.DNE(54,Kd,2,0,"th",30)(55,eh,4,3,"td",24),e.bVm(),e.qex(56,33),e.DNE(57,th,2,0,"th",30)(58,nh,4,3,"td",24),e.bVm(),e.qex(59,34),e.DNE(60,ih,3,0,"th",35)(61,ah,3,0,"td",36),e.bVm(),e.DNE(62,sh,1,0,"tr",37)(63,oh,1,0,"tr",38),e.k0s()()()}2&o&&(e.R7$(4),e.Y8G("icon",a.faExclamationTriangle),e.R7$(6),e.R50("ngModel",a.destinationPubkey),e.R7$(2),e.Y8G("ngIf",!a.destinationPubkey),e.R7$(4),e.Y8G("step",1e3)("min",0),e.R50("ngModel",a.amount),e.R7$(),e.Y8G("ngIf",!a.amount),e.R7$(8),e.Y8G("icon",a.faRoute),e.R7$(4),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.qrHops)("ngClass",e.eq3(15,Nd,"error"===a.flgLoading[0])),e.R7$(32),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns))},dependencies:[_.YU,_.bT,_.B3,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,O.aY,N.$z,M.fg,C.rl,C.nJ,C.TL,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,ae.V,_.QX],encapsulation:2}))}return t(),s})();var de=y(5951);function rh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1"),e.k0s())}function ch(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 1 (Your Node)"),e.k0s())}function ph(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2"),e.k0s())}function mh(t,s){1&t&&(e.j41(0,"h3",15),e.EFF(1,"Node 2 (Your Node)"),e.k0s())}function uh(t,s){if(1&t&&(e.j41(0,"div",1),e.nrm(1,"mat-divider",2),e.j41(2,"div",3)(3,"div",4)(4,"h4",5),e.EFF(5,"Channel ID"),e.k0s(),e.j41(6,"span",6),e.EFF(7),e.k0s()(),e.j41(8,"div",7)(9,"h4",5),e.EFF(10,"Channel Point"),e.k0s(),e.j41(11,"span",6),e.EFF(12),e.k0s()()(),e.nrm(13,"mat-divider",8),e.j41(14,"div",3)(15,"div",4)(16,"h4",5),e.EFF(17,"Last Update"),e.k0s(),e.j41(18,"span",6),e.EFF(19),e.nI1(20,"date"),e.k0s()(),e.j41(21,"div",7)(22,"h4",5),e.EFF(23,"Capacity (Sats)"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()()(),e.nrm(27,"mat-divider",8),e.j41(28,"div",9)(29,"div",10)(30,"div",11),e.DNE(31,rh,2,0,"h3",12)(32,ch,2,0,"h3",12),e.k0s(),e.nrm(33,"mat-divider",8),e.j41(34,"div",13)(35,"h4",5),e.EFF(36,"Pubkey"),e.k0s(),e.j41(37,"span",6),e.EFF(38),e.k0s()(),e.nrm(39,"mat-divider",8),e.j41(40,"div",14)(41,"h4",5),e.EFF(42,"Time Lock Delta"),e.k0s(),e.j41(43,"span",6),e.EFF(44),e.k0s()(),e.nrm(45,"mat-divider",8),e.j41(46,"div",14)(47,"h4",5),e.EFF(48,"Min HTLC"),e.k0s(),e.j41(49,"span",6),e.EFF(50),e.k0s()(),e.nrm(51,"mat-divider",8),e.j41(52,"div",14)(53,"h4",5),e.EFF(54,"Max HTLC"),e.k0s(),e.j41(55,"span",6),e.EFF(56),e.k0s()(),e.nrm(57,"mat-divider",8),e.j41(58,"div",14)(59,"h4",5),e.EFF(60,"Fee Base Msat"),e.k0s(),e.j41(61,"span",6),e.EFF(62),e.k0s()(),e.nrm(63,"mat-divider",8),e.j41(64,"div",14)(65,"h4",5),e.EFF(66,"Fee Rate Milli Msat"),e.k0s(),e.j41(67,"span",6),e.EFF(68),e.k0s()(),e.nrm(69,"mat-divider",8),e.j41(70,"div",14)(71,"h4",5),e.EFF(72,"Disabled"),e.k0s(),e.j41(73,"span",6),e.EFF(74),e.k0s()()(),e.j41(75,"div",10)(76,"div"),e.DNE(77,ph,2,0,"h3",12)(78,mh,2,0,"h3",12),e.k0s(),e.nrm(79,"mat-divider",8),e.j41(80,"div",13)(81,"h4",5),e.EFF(82,"Pubkey"),e.k0s(),e.j41(83,"span",6),e.EFF(84),e.k0s()(),e.nrm(85,"mat-divider",8),e.j41(86,"div",14)(87,"h4",5),e.EFF(88,"Time Lock Delta"),e.k0s(),e.j41(89,"span",6),e.EFF(90),e.k0s()(),e.nrm(91,"mat-divider",8),e.j41(92,"div",14)(93,"h4",5),e.EFF(94,"Min HTLC"),e.k0s(),e.j41(95,"span",6),e.EFF(96),e.k0s()(),e.nrm(97,"mat-divider",8),e.j41(98,"div",14)(99,"h4",5),e.EFF(100,"Max HTLC"),e.k0s(),e.j41(101,"span",6),e.EFF(102),e.k0s()(),e.nrm(103,"mat-divider",8),e.j41(104,"div",14)(105,"h4",5),e.EFF(106,"Fee Base Msat"),e.k0s(),e.j41(107,"span",6),e.EFF(108),e.k0s()(),e.nrm(109,"mat-divider",8),e.j41(110,"div",14)(111,"h4",5),e.EFF(112,"Fee Rate Milli Msat"),e.k0s(),e.j41(113,"span",6),e.EFF(114),e.k0s()(),e.nrm(115,"mat-divider",8),e.j41(116,"div",14)(117,"h4",5),e.EFF(118,"Disabled"),e.k0s(),e.j41(119,"span",6),e.EFF(120),e.k0s()()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.channel_id),e.R7$(5),e.JRh(n.lookupResult.chan_point),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(20,39,1e3*n.lookupResult.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(26,42,n.lookupResult.capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(4),e.Y8G("ngIf",!n.node1_match),e.R7$(),e.Y8G("ngIf",n.node1_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node1_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node1_policy?null:n.lookupResult.node1_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node1_policy&&n.lookupResult.node1_policy.disabled?"Yes":"No"),e.R7$(3),e.Y8G("ngIf",!n.node2_match),e.R7$(),e.Y8G("ngIf",n.node2_match),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(n.lookupResult.node2_pub),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.time_lock_delta),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.min_htlc),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.max_htlc_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_base_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null==n.lookupResult.node2_policy?null:n.lookupResult.node2_policy.fee_rate_milli_msat),e.R7$(),e.Y8G("inset",!0),e.R7$(5),e.JRh(null!=n.lookupResult.node2_policy&&n.lookupResult.node2_policy.disabled?"Yes":"No")}}let dh=(()=>{var t;class s{constructor(i){this.store=i,this.node1_match=!1,this.node2_match=!1,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.lookupResult.node1_pub===i.identity_pubkey&&(this.node1_match=!0),this.lookupResult.node2_pub===i.identity_pubkey&&(this.node2_match=!0)})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxLayout","column","fxFlex","30","fxLayoutAlign","end start"],[1,"font-bold-500"],[1,"foreground-secondary-text"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start"],[1,"my-1",3,"inset"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],["fxLayout","column","fxFlex","20"],["fxLayout","column","fxFlex","10"],[1,"page-title","font-bold-500"]],template:function(o,a){1&o&&e.DNE(0,uh,121,44,"div",0),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.bT,ne.q,f.DJ,f.sA,f.UI,_.QX,_.vh],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}))}return t(),s})();const hh=t=>({"background-color":t});function _h(t,s){if(1&t&&(e.j41(0,"span",10),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Lme("",i.nodeFeaturesEnum[n.value.name]||n.value.name,": ",n.value.is_required?"Mandatory":"Optional")}}function fh(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Network"),e.k0s())}function gh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.network)}}function Ch(t,s){1&t&&(e.j41(0,"th",27),e.EFF(1,"Address"),e.k0s())}function yh(t,s){if(1&t&&(e.j41(0,"td",28),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(null==n?null:n.addr)}}function bh(t,s){1&t&&(e.j41(0,"th",29)(1,"div",30),e.EFF(2,"Actions"),e.k0s()())}function Fh(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",31)(1,"div",32)(2,"mat-select",33),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",34),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onConnectNode(o))}),e.EFF(5,"Connect"),e.k0s(),e.j41(6,"mat-option",35),e.bIt("copied",function(){const o=r.eBV(n).$implicit,a=e.XpG(2);return r.Njj(a.onCopyNodeURI(o))}),e.EFF(7,"Copy URI"),e.k0s()()()()}if(2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(6),e.Y8G("payload",i.lookupResult.node.pub_key+"@"+n.addr)}}function xh(t,s){1&t&&e.nrm(0,"tr",36)}function vh(t,s){1&t&&e.nrm(0,"tr",37)}function Th(t,s){if(1&t&&(e.j41(0,"div",2),e.nrm(1,"mat-divider",3),e.j41(2,"div",4)(3,"div",5)(4,"h4",6),e.EFF(5,"Alias"),e.k0s(),e.j41(6,"span",7),e.EFF(7),e.j41(8,"span",8),e.EFF(9),e.k0s()()(),e.j41(10,"div",9)(11,"h4",6),e.EFF(12,"Pub Key"),e.k0s(),e.j41(13,"span",10),e.EFF(14),e.k0s()()(),e.nrm(15,"mat-divider",11),e.j41(16,"div",4)(17,"div",5)(18,"h4",6),e.EFF(19,"Last Update"),e.k0s(),e.j41(20,"span",7),e.EFF(21),e.nI1(22,"date"),e.k0s()(),e.j41(23,"div",9)(24,"h4",6),e.EFF(25,"Total Capacity (Sats)"),e.k0s(),e.j41(26,"span",7),e.EFF(27),e.nI1(28,"number"),e.k0s()()(),e.nrm(29,"mat-divider",11),e.j41(30,"div",4)(31,"div",5)(32,"h4",6),e.EFF(33,"Number of Channels"),e.k0s(),e.j41(34,"span",7),e.EFF(35),e.nI1(36,"number"),e.k0s()(),e.j41(37,"div",12)(38,"h4",6),e.EFF(39,"Features"),e.k0s(),e.DNE(40,_h,2,2,"span",13),e.nI1(41,"keyvalue"),e.k0s()(),e.nrm(42,"mat-divider",11),e.j41(43,"div",14)(44,"h4",15),e.EFF(45,"Addresses"),e.k0s(),e.j41(46,"div",16)(47,"table",17,0),e.qex(49,18),e.DNE(50,fh,2,0,"th",19)(51,gh,2,1,"td",20),e.bVm(),e.qex(52,21),e.DNE(53,Ch,2,0,"th",19)(54,yh,2,1,"td",20),e.bVm(),e.qex(55,22),e.DNE(56,bh,3,0,"th",23)(57,Fh,8,1,"td",24),e.bVm(),e.DNE(58,xh,1,0,"tr",25)(59,vh,1,0,"tr",26),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(n.lookupResult.node.alias),e.R7$(),e.Y8G("ngStyle",e.eq3(24,hh,null==n.lookupResult.node?null:n.lookupResult.node.color)),e.R7$(),e.JRh(null==n.lookupResult.node?null:n.lookupResult.node.color),e.R7$(5),e.JRh(n.lookupResult.node.pub_key),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(22,15,1e3*n.lookupResult.node.last_update,"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(e.bMT(28,18,n.lookupResult.total_capacity)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.bMT(36,20,n.lookupResult.num_channels)),e.R7$(5),e.Y8G("ngForOf",e.bMT(41,22,n.lookupResult.node.features)),e.R7$(2),e.Y8G("inset",!0),e.R7$(5),e.Y8G("dataSource",n.lookupResult.node.addresses),e.R7$(11),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}let kh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.snackBar=o,this.store=a,this.nodeFeaturesEnum=c._U,this.displayedColumns=["network","addr","actions"],this.information={},this.availableBalance=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.information=i}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.availableBalance=i.blockchainBalance.total_balance||0})}onCopyNodeURI(i){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+i)}onConnectNode(i){this.store.dispatch((0,I.xO)({payload:{data:{message:{peer:{pub_key:this.lookupResult.node?.pub_key,address:i.addr},information:this.information,balance:this.availableBalance},component:et}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(le.UG),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-node-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1",3,"inset"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end start",1,"my-1"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","network"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addr"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&e.DNE(0,Th,60,26,"div",1),2&o&&e.Y8G("ngIf",a.lookupResult)},dependencies:[_.Sq,_.bT,_.B3,ne.q,f.DJ,f.sA,f.UI,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.KS,u.$R,u.YZ,u.NB,B.Ld,be.U,_.QX,_.vh,_.lG],encapsulation:2}))}return t(),s})();const Sh=t=>({"mt-1":!0,"mt-2":t}),Rh=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function Eh(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function Ih(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function Lh(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function wh(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,Lh,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,Rh,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function jh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-node-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Gh(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-channel-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("lookupResult",n.lookupValue)}}function Dh(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function Nh(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,jh,2,1,"span",25)(6,Gh,2,1,"span",25)(7,Dh,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let nt=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Channel ID"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKey=window.history.state.lookupValue||""),this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND||i.type===c.QP.UPDATE_API_CALL_STATUS_LND)).subscribe(i=>{i.type===c.QP.SET_LOOKUP_LND&&(this.errorMessage=0===this.selectedFieldId&&i.payload.hasOwnProperty("node")||1===this.selectedFieldId&&i.payload.hasOwnProperty("channel_id")?"":this.errorMessage,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.flgSetLookupValue=!(0!==this.selectedFieldId||!i.payload.hasOwnProperty("node"))||!(1!==this.selectedFieldId||!i.payload.hasOwnProperty("channel_id")),this.logger.info(this.lookupValue)),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&"Lookup"===i.payload.action&&(this.errorMessage="",i.payload.status===c.wn.ERROR&&(this.errorMessage="object"==typeof i.payload.message?JSON.stringify(i.payload.message):i.payload.message),i.payload.status===c.wn.INITIATED&&(this.errorMessage=c.MZ.GET_LOOKUP_DETAILS))})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.zU)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,T.ij)({payload:{uiMessage:c.MZ.SEARCHING_CHANNEL,channelID:this.lookupKey.trim()}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookups"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"lookupResult"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,Eh,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,Ih,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,wh,3,5,"div",15)(20,Nh,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,Sh,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,dh,kh],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return t(),s})();var Pe=y(25084);function Ph(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function $h(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Invalid date format."),e.k0s())}function Ah(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",28),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let Mh=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.store=o,this.router=a,this.faMapSigns=x.knH,this.today=new Date(Date.now()),this.lastMonthDay=new Date(this.today.getFullYear(),this.today.getMonth()-1,this.today.getDate()+1,0,0,0),this.yesterday=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate()-1,0,0,0),this.endDate=this.today,this.startDate=this.lastMonthDay,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"peers",name:"Routing Peers"},{link:"nonroutingprs",name:"Non Routing Peers"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.onEventsFetch();const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}onEventsFetch(){this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.endDate||(this.endDate=this.today),this.startDate||(this.startDate=new Date(this.endDate.getFullYear(),this.endDate.getMonth()-1,this.endDate.getDate()+1,0,0,0)),this.store.dispatch((0,T.uK)({payload:{end_time:Math.round(this.endDate.getTime()/1e3).toString(),start_time:Math.round(this.startDate.getTime()/1e3).toString()}}))}resetData(){this.endDate=this.today,this.startDate=this.lastMonthDay}ngOnDestroy(){this.resetData(),this.store.dispatch((0,T.kv)({payload:{forwarding_events:[]}})),this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing"]],standalone:!1,decls:41,vars:16,consts:[["routingForm","ngForm"],["strtDate","ngModel"],["startDatepicker",""],["enDate","ngModel"],["endDatepicker",""],["tabPanel",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"card-content-gap","mt-1"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mb-1",3,"ngSubmit"],["fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start"],["matInput","","name","startDate","tabindex","1",3,"ngModelChange","matDatepicker","max","ngModel"],["matSuffix","",3,"for"],[3,"startAt"],[4,"ngIf"],["matInput","","name","endDate","tabindex","2",3,"ngModelChange","matDatepicker","min","max","ngModel"],["fxLayout","row",1,""],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","5","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["tabindex","5","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",6)(1,"div",7),e.nrm(2,"fa-icon",8),e.j41(3,"span",9),e.EFF(4,"Routing"),e.k0s()(),e.j41(5,"div",10)(6,"mat-card",11)(7,"mat-card-content",12)(8,"form",13,0),e.bIt("ngSubmit",function(){return r.eBV(l),r.Njj(a.onEventsFetch())}),e.j41(10,"div",14)(11,"mat-form-field",15)(12,"mat-label"),e.EFF(13,"Start Date"),e.k0s(),e.j41(14,"input",16,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.startDate,m)||(a.startDate=m),r.Njj(m)}),e.k0s(),e.nrm(16,"mat-datepicker-toggle",17)(17,"mat-datepicker",18,2),e.DNE(19,Ph,2,0,"mat-error",19),e.k0s(),e.j41(20,"mat-form-field",15)(21,"mat-label"),e.EFF(22,"End Date"),e.k0s(),e.j41(23,"input",20,3),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.endDate,m)||(a.endDate=m),r.Njj(m)}),e.k0s(),e.nrm(25,"mat-datepicker-toggle",17)(26,"mat-datepicker",18,4),e.DNE(28,$h,2,0,"mat-error",19),e.k0s()(),e.j41(29,"div",21)(30,"button",22),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(31,"Clear"),e.k0s(),e.j41(32,"button",23),e.EFF(33,"Fetch Events"),e.k0s()()(),e.j41(34,"div",24)(35,"nav",25),e.DNE(36,Ah,2,4,"div",26),e.k0s(),e.nrm(37,"mat-tab-nav-panel",null,5),e.k0s(),e.j41(39,"div",27),e.nrm(40,"router-outlet"),e.k0s()()()()()}if(2&o){const l=e.sdS(15),p=e.sdS(18),m=e.sdS(24),v=e.sdS(27),b=e.sdS(38);e.R7$(2),e.Y8G("icon",a.faMapSigns),e.R7$(12),e.Y8G("matDatepicker",p)("max",a.today),e.R50("ngModel",a.startDate),e.R7$(2),e.Y8G("for",p),e.R7$(),e.Y8G("startAt",a.startDate),e.R7$(2),e.Y8G("ngIf",l.errors),e.R7$(4),e.Y8G("matDatepicker",v)("min",a.startDate)("max",a.today),e.R50("ngModel",a.endDate),e.R7$(2),e.Y8G("for",v),e.R7$(),e.Y8G("startAt",a.endDate),e.R7$(2),e.Y8G("ngIf",m.errors),e.R7$(7),e.Y8G("tabPanel",b),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.BC,d.cb,d.vS,d.cV,O.aY,N.$z,k.RN,k.m2,Pe.Vh,Pe.bZ,Pe.bU,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ze.z,ae.V,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const Bh=()=>["all"],Oh=()=>["no_event"],ve=t=>({width:t}),Vh=t=>({"display-none":t});function Yh(t,s){if(1&t&&(e.j41(0,"div",6),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function Xh(t,s){if(1&t&&(e.j41(0,"mat-option",14),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Uh(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",7),e.nrm(1,"div",8),e.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",11),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG();return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Xh,2,2,"mat-option",12),e.k0s()()(),e.j41(9,"mat-form-field",10)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",13),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG();e.R7$(6),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,Bh).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function Hh(t,s){1&t&&e.nrm(0,"mat-progress-bar",37)}function qh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Timestamp"),e.k0s())}function zh(t,s){if(1&t&&(e.j41(0,"td",39),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.timestamp,"dd/MMM/y HH:mm"))}}function Jh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Alias"),e.k0s())}function Qh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_in)}}function Wh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Inbound Channel"),e.k0s())}function Zh(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_in)}}function Kh(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Alias"),e.k0s())}function e_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias_out)}}function t_(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Outbound Channel"),e.k0s())}function n_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"div",40)(2,"span",41),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ve,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id_out)}}function i_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Inbound Amount (Sats)"),e.k0s())}function a_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_in))}}function s_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Outbound Amount (Sats)"),e.k0s())}function o_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.amt_out))}}function l_(t,s){1&t&&(e.j41(0,"th",42),e.EFF(1,"Fee (mSats)"),e.k0s())}function r_(t,s){if(1&t&&(e.j41(0,"td",39)(1,"span",43),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.fee_msat))}}function c_(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",44)(1,"div",45)(2,"mat-select",46),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",47),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function p_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",48)(1,"button",49),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onForwardingEventClick(a,o))}),e.EFF(2,"View Info"),e.k0s()()}}function m_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No forwarding history available."),e.k0s())}function u_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting forwarding history..."),e.k0s())}function d_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function h_(t,s){if(1&t&&(e.j41(0,"td",50),e.DNE(1,m_,2,0,"p",51)(2,u_,2,0,"p",51)(3,d_,2,1,"p",51),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.forwardingHistoryEvents&&n.forwardingHistoryEvents.data)||(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function __(t,s){if(1&t&&e.nrm(0,"tr",52),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,Vh,(null==n.forwardingHistoryEvents?null:n.forwardingHistoryEvents.data)&&(null==n.forwardingHistoryEvents||null==n.forwardingHistoryEvents.data?null:n.forwardingHistoryEvents.data.length)>0))}}function f_(t,s){1&t&&e.nrm(0,"tr",53)}function g_(t,s){1&t&&e.nrm(0,"tr",54)}function C_(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,Hh,1,0,"mat-progress-bar",16),e.j41(2,"table",17,0),e.qex(4,18),e.DNE(5,qh,2,0,"th",19)(6,zh,3,4,"td",20),e.bVm(),e.qex(7,21),e.DNE(8,Jh,2,0,"th",19)(9,Qh,4,4,"td",20),e.bVm(),e.qex(10,22),e.DNE(11,Wh,2,0,"th",19)(12,Zh,4,4,"td",20),e.bVm(),e.qex(13,23),e.DNE(14,Kh,2,0,"th",19)(15,e_,4,4,"td",20),e.bVm(),e.qex(16,24),e.DNE(17,t_,2,0,"th",19)(18,n_,4,4,"td",20),e.bVm(),e.qex(19,25),e.DNE(20,i_,2,0,"th",26)(21,a_,4,3,"td",20),e.bVm(),e.qex(22,27),e.DNE(23,s_,2,0,"th",26)(24,o_,4,3,"td",20),e.bVm(),e.qex(25,28),e.DNE(26,l_,2,0,"th",26)(27,r_,4,3,"td",20),e.bVm(),e.qex(28,29),e.DNE(29,c_,6,0,"th",30)(30,p_,3,0,"td",31),e.bVm(),e.qex(31,32),e.DNE(32,h_,4,3,"td",33),e.bVm(),e.DNE(33,__,1,3,"tr",34)(34,f_,1,0,"tr",35)(35,g_,1,0,"tr",36),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.forwardingHistoryEvents),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(7,Oh)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function y_(t,s){if(1&t&&e.nrm(0,"mat-paginator",55),2&t){const n=e.XpG();e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let it=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:c.md,sortBy:"timestamp",sortOrder:c.oi.DESCENDING},this.forwardingHistoryData=[],this.displayedColumns=[],this.forwardingHistoryEvents=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:c.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.forwardingHistoryData=this.eventsData,i.eventsData.firstChange||this.loadForwardingEventsTable(this.forwardingHistoryData)),i.selFilter&&!i.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=i.pageSettings.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.forwardingHistoryData=i.forwardingHistory.forwarding_events||[],this.forwardingHistoryData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory))})}ngAfterViewInit(){setTimeout(()=>{this.forwardingHistoryData.length>0&&this.loadForwardingEventsTable(this.forwardingHistoryData)},0)}onForwardingEventClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Event Information",message:[[{key:"timestamp",value:i.timestamp,title:"Timestamp",width:25,type:c.UN.DATE_TIME},{key:"amt_in",value:i.amt_in,title:"Inbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"amt_out",value:i.amt_out,title:"Outbound Amount (Sats)",width:25,type:c.UN.NUMBER},{key:"fee_msat",value:i.fee_msat,title:"Fee (mSats)",width:25,type:c.UN.NUMBER}],[{key:"alias_in",value:i.alias_in,title:"Inbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_in",value:i.chan_id_in,title:"Inbound Channel ID",width:25,type:c.UN.STRING},{key:"alias_out",value:i.alias_out,title:"Outbound Peer Alias",width:25,type:c.UN.STRING},{key:"chan_id_out",value:i.chan_id_out,title:"Outbound Channel ID",width:25,type:c.UN.STRING}]]}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(i){const o=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.timestamp?this.datePipe.transform(new Date(1e3*i.timestamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"timestamp":a=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadForwardingEventsTable(i){this.forwardingHistoryEvents=new u.I6(i?[...i]:[]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-forwarding-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Events")}]),e.OA$],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias_in"],["matColumnDef","chan_id_in"],["matColumnDef","alias_out"],["matColumnDef","chan_id_out"],["matColumnDef","amt_in"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amt_out"],["matColumnDef","fee_msat"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,a){1&o&&(e.j41(0,"div",1),e.DNE(1,Yh,2,1,"div",2)(2,Uh,13,4,"div",3)(3,C_,36,8,"div",4)(4,y_,1,3,"mat-paginator",5),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const b_=["tableIn"],F_=["tableOut"],x_=["paginatorIn"],v_=["paginatorOut"],T_=(t,s)=>({"mt-2":t,"mt-1":s}),k_=()=>["no_incoming_event"],S_=t=>({"mt-2":t}),R_=()=>["no_outgoing_event"],Te=t=>({width:t}),at=t=>({"display-none":t});function E_(t,s){if(1&t&&(e.j41(0,"div",7),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function I_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function L_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function w_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function j_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function G_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function D_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function N_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function P_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function $_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function A_(t,s){1&t&&(e.j41(0,"th",41)(1,"div",42),e.EFF(2,"Actions"),e.k0s()())}function M_(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",43)(1,"button",44),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG(2);return r.Njj(l.onRoutingPeerClick(a,o,"in"))}),e.EFF(2,"View Info"),e.k0s()()}}function B_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No incoming routing peer available."),e.k0s())}function O_(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting incoming routing peers..."),e.k0s())}function V_(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function Y_(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,B_,2,0,"p",46)(2,O_,2,0,"p",46)(3,V_,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersIncoming&&n.routingPeersIncoming.data)||(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function X_(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersIncoming||null==n.routingPeersIncoming.data?null:n.routingPeersIncoming.data.length)>0))}}function U_(t,s){1&t&&e.nrm(0,"tr",48)}function H_(t,s){1&t&&e.nrm(0,"tr",49)}function q_(t,s){1&t&&e.nrm(0,"mat-progress-bar",34)}function z_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Channel ID"),e.k0s())}function J_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function Q_(t,s){1&t&&(e.j41(0,"th",35),e.EFF(1,"Peer Alias"),e.k0s())}function W_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"div",37)(2,"span",38),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(),e.Y8G("ngStyle",e.eq3(2,Te,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.alias)}}function Z_(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Events"),e.k0s())}function K_(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.events))}}function e0(t,s){1&t&&(e.j41(0,"th",39),e.EFF(1,"Total Amount (Sats)"),e.k0s())}function t0(t,s){if(1&t&&(e.j41(0,"td",36)(1,"span",40),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_amount))}}function n0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No outgoing routing peer available."),e.k0s())}function i0(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting outgoing routing peers..."),e.k0s())}function a0(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.errorMessage)}}function s0(t,s){if(1&t&&(e.j41(0,"td",45),e.DNE(1,n0,2,0,"p",46)(2,i0,2,0,"p",46)(3,a0,2,1,"p",46),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.routingPeersOutgoing&&n.routingPeersOutgoing.data)||(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function o0(t,s){if(1&t&&e.nrm(0,"tr",47),2&t){const n=e.XpG(2);e.Y8G("ngClass",e.eq3(1,at,(null==n.routingPeersOutgoing||null==n.routingPeersOutgoing.data?null:n.routingPeersOutgoing.data.length)>0))}}function l0(t,s){1&t&&e.nrm(0,"tr",48)}function r0(t,s){1&t&&e.nrm(0,"tr",49)}function c0(t,s){if(1&t&&(e.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),e.EFF(4,"Incoming"),e.k0s(),e.nrm(5,"div",12),e.k0s(),e.j41(6,"div",13),e.DNE(7,I_,1,0,"mat-progress-bar",14),e.j41(8,"table",15,0),e.qex(10,16),e.DNE(11,L_,2,0,"th",17)(12,w_,4,4,"td",18),e.bVm(),e.qex(13,19),e.DNE(14,j_,2,0,"th",17)(15,G_,4,4,"td",18),e.bVm(),e.qex(16,20),e.DNE(17,D_,2,0,"th",21)(18,N_,4,3,"td",18),e.bVm(),e.qex(19,22),e.DNE(20,P_,2,0,"th",21)(21,$_,4,3,"td",18),e.bVm(),e.qex(22,23),e.DNE(23,A_,3,0,"th",24)(24,M_,3,0,"td",25),e.bVm(),e.qex(25,26),e.DNE(26,Y_,4,3,"td",27),e.bVm(),e.DNE(27,X_,1,3,"tr",28)(28,U_,1,0,"tr",29)(29,H_,1,0,"tr",30),e.k0s()(),e.nrm(30,"mat-paginator",31,1),e.k0s(),e.j41(32,"div",9)(33,"div",10)(34,"div",11),e.EFF(35,"Outgoing"),e.k0s(),e.nrm(36,"div",12),e.k0s(),e.j41(37,"div",13),e.DNE(38,q_,1,0,"mat-progress-bar",14),e.j41(39,"table",32,2),e.qex(41,16),e.DNE(42,z_,2,0,"th",17)(43,J_,4,4,"td",18),e.bVm(),e.qex(44,19),e.DNE(45,Q_,2,0,"th",17)(46,W_,4,4,"td",18),e.bVm(),e.qex(47,20),e.DNE(48,Z_,2,0,"th",21)(49,K_,4,3,"td",18),e.bVm(),e.qex(50,22),e.DNE(51,e0,2,0,"th",21)(52,t0,4,3,"td",18),e.bVm(),e.qex(53,33),e.DNE(54,s0,4,3,"td",27),e.bVm(),e.DNE(55,o0,1,3,"tr",28)(56,l0,1,0,"tr",29)(57,r0,1,0,"tr",30),e.k0s()(),e.nrm(58,"mat-paginator",31,3),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.Y8G("ngClass",e.l_i(18,T_,n.screenSize===n.screenSizeEnum.XS,n.screenSize===n.screenSizeEnum.SM)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersIncoming),e.R7$(19),e.Y8G("matFooterRowDef",e.lJ4(21,k_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS),e.R7$(3),e.Y8G("ngClass",e.eq3(22,S_,n.screenSize!==n.screenSizeEnum.LG)),e.R7$(5),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",n.routingPeersOutgoing),e.R7$(16),e.Y8G("matFooterRowDef",e.lJ4(24,R_)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let p0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.camelCaseWithReplace=l,this.nodePageDefs=c._1,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:c.md,sortBy:"total_amount",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadRoutingPeersTable(this.routingPeersData)}onRoutingPeerClick(i,o,a){let l=" Routing Information";l="in"===a?"Incoming"+l:"Outgoing"+l,this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:l,message:[[{key:"chan_id",value:i.chan_id,title:"Channel ID",width:50,type:c.UN.STRING},{key:"alias",value:i.alias,title:"Peer Alias",width:50,type:c.UN.STRING}],[{key:"events",value:i.events,title:"Events",width:50,type:c.UN.NUMBER},{key:"total_amount",value:i.total_amount,title:"Total Amount (Sats)",width:50,type:c.UN.NUMBER}]]}}}))}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterByIn?JSON.stringify(i).toLowerCase():"string"==typeof i[this.selFilterByIn]?i[this.selFilterByIn].toLowerCase():"boolean"==typeof i[this.selFilterByIn]?i[this.selFilterByIn]?"yes":"no":i[this.selFilterByIn].toString(),a.includes(o)},this.routingPeersOutgoing.filterPredicate=(i,o)=>{let a="";switch(this.selFilterByOut){case"all":a=JSON.stringify(i).toLowerCase();break;case"total_amount":case"total_fee":a=(+(i[this.selFilterByOut]||0)/1e3).toString()||"";break;default:a="string"==typeof i[this.selFilterByOut]?i[this.selFilterByOut].toLowerCase():"boolean"==typeof i[this.selFilterByOut]?i[this.selFilterByOut]?"yes":"no":i[this.selFilterByOut].toString()}return a.includes(o)}}loadRoutingPeersTable(i){if(i.length>0){const o=this.groupRoutingPeers(i);this.routingPeersIncoming=new u.I6(o[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new u.I6(o[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.sort.sort({id:this.tableSetting.sortBy||"total_amount",start:this.tableSetting.sortOrder||c.oi.DESCENDING,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new u.I6([]),this.routingPeersOutgoing=new u.I6([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(i){const o=[],a=[];return i.forEach(l=>{const p=o.find(v=>v.chan_id===l.chan_id_in),m=a.find(v=>v.chan_id===l.chan_id_out);p?(p.events++,p.total_amount=+p.total_amount+ +(l.amt_in||0)):o.push({chan_id:l.chan_id_in,alias:l.alias_in,events:1,total_amount:+(l.amt_in||0)}),m?(m.events++,m.total_amount=+m.total_amount+ +(l.amt_out||0)):a.push({chan_id:l.chan_id_out,alias:l.alias_out,events:1,total_amount:+(l.amt_out||0)})}),[this.commonService.sortDescByKey(o,"total_amount"),this.commonService.sortDescByKey(a,"total_amount")]}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(b_,5,R.B4),e.GBs(F_,5,R.B4),e.GBs(x_,5),e.GBs(v_,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sortIn=l.first),e.mGM(l=e.lsd())&&(a.sortOut=l.first),e.mGM(l=e.lsd())&&(a.paginatorIn=l.first),e.mGM(l=e.lsd())&&(a.paginatorOut=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Routing peers")}])],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between start",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mb-4"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_amount"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["matColumnDef","no_outgoing_event"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,E_,2,1,"div",5)(2,c0,60,25,"div",6),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.bT,_.B3,N.$z,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld,_.QX],encapsulation:2}))}return t(),s})();function m0(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",8),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let u0=(()=>{var t;class s{constructor(i){this.router=i,this.faChartBar=x.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Reports"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,m0,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),e.k0s()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faChartBar),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();var st=y(51993),ot=y(24655);const d0=t=>({"error-border":t});function h0(t,s){1&t&&e.nrm(0,"mat-progress-bar",17)}function _0(t,s){if(1&t&&(e.j41(0,"div",18),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.events.total_fee_msat),e.R7$(),e.Lme("",e.i5U(2,3,n.events.total_fee_msat/1e3||0,"1.0-2")," Sats/",e.bMT(3,6,(null==n.events||null==n.events.forwarding_events?null:n.events.forwarding_events.length)||0)," Events")}}function f0(t,s){1&t&&(e.j41(0,"div",19),e.EFF(1,"No routing report for the selected period"),e.k0s())}function g0(t,s){if(1&t&&(e.j41(0,"div",20),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(2,d0,"Getting Forwarding History..."!==n.errorMessage&&""!==n.errorMessage)),e.R7$(),e.JRh(n.errorMessage)}}function C0(t,s){if(1&t&&(e.j41(0,"span")(1,"span",22),e.EFF(2),e.nI1(3,"number"),e.k0s(),e.j41(4,"span",22),e.EFF(5),e.nI1(6,"number"),e.k0s()()),2&t){const n=s.model,i=e.XpG(2);e.R7$(2),e.SpI("Events: ",e.bMT(3,2,(i.selReportBy===i.reportBy.EVENTS?n.value:n.extra.totalEvents)||0)),e.R7$(3),e.SpI("Fee: ",e.i5U(6,4,(i.selReportBy===i.reportBy.EVENTS?n.extra.totalFees:n.value)||0,"1.0-2"))}}function y0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical",21),e.bIt("select",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,C0,7,7,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG();e.Y8G("view",n.view)("results",n.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function b0(t,s){if(1&t&&e.nrm(0,"rtl-forwarding-history",23),2&t){const n=e.XpG();e.Y8G("eventsData",null==n.events?null:n.events.forwarding_events)("selFilter",n.eventFilterValue)}}let F0=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.dataService=o,this.commonService=a,this.store=l,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.events={},this.eventFilterValue="",this.reportBy=c.aR,this.selReportBy=c.aR.FEES,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.identity_pubkey&&setTimeout(()=>{this.fetchEvents(this.startDate,this.endDate)},10)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}fetchEvents(i,o){this.errorMessage=c.MZ.GET_FORWARDING_HISTORY;const a=Math.round(i.getTime()/1e3).toString(),l=Math.round(o.getTime()/1e3).toString();this.dataService.getForwardingHistory("LND",a,l).pipe((0,g.Q)(this.unSubs[2])).subscribe({next:p=>{this.errorMessage="",p.forwarding_events&&p.forwarding_events.length?(p.forwarding_events=p.forwarding_events.reverse(),this.events=p,this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(i):this.prepareFeeReport(i)):(this.events={forwarding_events:[],total_fee_msat:0},this.routingReportData=[])},error:p=>{this.errorMessage=p}})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(i){this.eventFilterValue=this.reportPeriod===c.rs[1]?i.name+"/"+this.startDate.getFullYear():i.name.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalEvents:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+ +(l.fee_msat||0)/1e3,a[p].extra.totalEvents=a[p].extra.totalEvents+1,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}prepareEventsReport(i){const o=Math.round(i.getTime()/1e3),a=[];if(this.events.total_fee_msat=0,this.reportPeriod===c.rs[1]){for(let l=0;l<12;l++)a.push({name:c.KR[l].name,value:0,extra:{totalFees:0}});this.events.forwarding_events?.map(l=>{const p=new Date(1e3*+(l.timestamp||0)).getMonth();return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}else{for(let l=0;l{const p=Math.floor((+(l.timestamp||0)-o)/this.secondsInADay);return a[p].value=a[p].value+1,a[p].extra.totalFees=a[p].extra.totalFees+ +(l.fee_msat||0)/1e3,this.events.total_fee_msat=(this.events.total_fee_msat?this.events.total_fee_msat:0)+ +(l.fee_msat||0),this.events})}return a}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.fetchEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(Z.u),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-routing-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:20,vars:11,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["mode","indeterminate","class","mt-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x","my-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",3,"ngClass",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["mode","indeterminate",1,"mt-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1",3,"ngClass"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.j41(2,"div",3)(3,"mat-radio-group",4),e.mxI("ngModelChange",function(p){return e.DH7(a.selReportBy,p)||(a.selReportBy=p),p}),e.bIt("change",function(){return a.onSelReportByChange()}),e.j41(4,"span",5),e.EFF(5,"Report By: "),e.k0s(),e.j41(6,"mat-radio-button",6),e.EFF(7,"Fees"),e.k0s(),e.j41(8,"mat-radio-button",7),e.EFF(9,"Events"),e.k0s()()(),e.DNE(10,h0,1,0,"mat-progress-bar",8),e.j41(11,"div",9),e.DNE(12,_0,4,8,"div",10)(13,f0,2,0,"div",11)(14,g0,2,4,"div",12),e.j41(15,"div",13),e.DNE(16,y0,3,11,"ngx-charts-bar-vertical",14),e.k0s()(),e.j41(17,"div",15)(18,"div",13),e.DNE(19,b0,1,2,"rtl-forwarding-history",16),e.k0s()()()),2&o&&(e.R7$(3),e.R50("ngModel",a.selReportBy),e.R7$(3),e.Y8G("value",e.mNQ(a.reportBy.FEES)),e.R7$(2),e.Y8G("value",e.mNQ(a.reportBy.EVENTS)),e.R7$(2),e.Y8G("ngIf","Getting Forwarding History..."===a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(),e.Y8G("ngIf",(a.routingReportData.length<=0||a.events.forwarding_events.length<=0)&&""===a.errorMessage),e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(2),e.Y8G("ngIf",a.routingReportData.length>0&&a.events.forwarding_events&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0),e.R7$(3),e.Y8G("ngIf",a.events&&(null==a.events?null:a.events.forwarding_events)&&a.events.forwarding_events.length&&a.events.forwarding_events.length>0))},dependencies:[_.YU,_.bT,d.BC,d.vS,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,st.L8,ot.m,it,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();var x0=y(59584),v0=y(5085);function T0(t,s){1&t&&(e.j41(0,"div",12),e.nrm(1,"mat-progress-bar",13),e.j41(2,"span"),e.EFF(3,"Getting transactions data..."),e.k0s()())}function k0(t,s){if(1&t&&(e.j41(0,"div",14),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function S0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Paid ",e.i5U(2,2,n.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function R0(t,s){if(1&t&&(e.j41(0,"div",17),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Lme(" Received ",e.i5U(2,2,n.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",e.bMT(3,5,n.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function E0(t,s){if(1&t&&(e.j41(0,"div",15),e.DNE(1,S0,4,7,"div",16)(2,R0,4,7,"div",16),e.k0s()),2&t){const n=e.XpG();e.Y8G("@fadeIn",n.transactionsReportSummary),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.paymentsSelectedPeriod>0),e.R7$(),e.Y8G("ngIf",n.transactionsReportSummary.invoicesSelectedPeriod)}}function I0(t,s){1&t&&(e.j41(0,"div",18),e.EFF(1,"No transactions report for the selected period"),e.k0s())}function L0(t,s){if(1&t&&(e.j41(0,"span",21),e.EFF(1),e.nI1(2,"number"),e.nI1(3,"number"),e.k0s()),2&t){const n=s.model;e.R7$(),e.LHq("",n.name,": ",e.i5U(2,4,n.value||0,"1.0-2"),"/# ","Paid"===n.name?"Payments":"Invoices",": ",e.bMT(3,7,(null==n.extra?null:n.extra.total)||0))}}function w0(t,s){if(1&t){const n=e.RV6();e.j41(0,"ngx-charts-bar-vertical-2d",20),e.bIt("select",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartBarSelected(o))})("mouseup",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onChartMouseUp(o))}),e.DNE(1,L0,4,9,"ng-template",null,0,e.C5r),e.k0s()}if(2&t){const n=e.XpG(2);e.Y8G("view",n.view)("results",n.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",n.showYAxisLabel)("xAxisLabel",n.xAxisLabel)("yAxisLabel",n.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",n.reportPeriod===n.scrollRanges[0]?2:8)}}function j0(t,s){if(1&t&&(e.j41(0,"div",10),e.DNE(1,w0,3,13,"ngx-charts-bar-vertical-2d",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",n.transactionsReportData.length>0&&n.transactionsNonZeroReportData.length>0)}}function G0(t,s){if(1&t&&e.nrm(0,"rtl-transactions-report-table",22),2&t){const n=e.XpG();e.Y8G("displayedColumns",n.displayedColumns)("tableSetting",n.tableSetting)("dataList",n.transactionsNonZeroReportData)("dataRange",n.reportPeriod)("selFilter",n.transactionFilterValue)}}let D0=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.scrollRanges=c.rs,this.reportPeriod=c.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"date",sortOrder:c.oi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[{date:"",name:"1",series:[{extra:{total:0},name:"Paid",value:0},{extra:{total:0},name:"Received",value:0}]}],this.transactionsNonZeroReportData=[{amount_paid:0,amount_received:0,date:"",num_invoices:0,num_payments:0}],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===c.f7.XS||this.screenSize===c.f7.SM),this.store.select(x0.av).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.n_).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{i.apiCallStatus.status===c.wn.UN_INITIATED&&this.store.dispatch((0,T.tG)()),this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.payments=i.allLightningTransactions.listPaymentsAll.payments||[],this.invoices=i.allLightningTransactions.listInvoicesAll.invoices||[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()),this.logger.info(i)}),this.commonService.containerSizeUpdated.pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{switch(this.screenSize){case c.f7.MD:this.screenPaddingX=i.width/10;break;case c.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(i){this.transactionFilterValue=this.reportPeriod===c.rs[1]?i.series+"/"+this.startDate.getFullYear():i.series.toString().padStart(2,"0")+"/"+c.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(i,o){const a=Math.round(i.getTime()/1e3),l=Math.round(o.getTime()/1e3),p=[];this.transactionsNonZeroReportData=[],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const m=this.payments?.filter(b=>"SUCCEEDED"===b.status&&b.creation_date&&b.creation_date>=a&&b.creation_dateb.settled&&b.creation_date&&+b.creation_date>=a&&+b.creation_date{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=new Date(1e3*+(b.creation_date||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let b=0;b{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+ +(b.value_msat||0)+ +(b.fee_msat||0),p[S].series[0].value=p[S].series[0].value+(+(b.value_msat||0)+ +(b.fee_msat||0))/1e3,p[S].series[0].extra.total=p[S].series[0].extra.total+1,this.transactionsReportSummary}),v?.map(b=>{const S=Math.floor((+(b.creation_date||0)-a)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+ +(b.amt_paid_msat||0),p[S].series[1].value=p[S].series[1].value+ +(b.amt_paid_msat||0)/1e3,p[S].series[1].extra.total=p[S].series[1].extra.total+1,this.transactionsReportSummary})}return p}prepareTableData(){return this.transactionsReportData?.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(i){const o=i.selDate.getMonth(),a=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===c.rs[1]?(this.startDate=new Date(a,0,1,0,0,0),this.endDate=new Date(a,11,31,23,59,59)):(this.startDate=new Date(a,o,1,0,0,0),this.endDate=new Date(a,o,this.getMonthDays(o,a),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?c.KR[i].days+1:c.KR[i].days}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-transactions-report"]],hostBindings:function(o,a){1&o&&e.bIt("mouseup",function(p){return a.onChartMouseUp(p)})},standalone:!1,decls:11,vars:6,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],[3,"stepChanged"],["class","p-2",4,"ngIf"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],[1,"p-2"],["mode","indeterminate"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(o,a){1&o&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"rtl-horizontal-scroller",4),e.bIt("stepChanged",function(p){return a.onSelectionChange(p)}),e.k0s(),e.DNE(4,T0,4,0,"div",5)(5,k0,2,1,"div",6)(6,E0,3,3,"div",7)(7,I0,2,0,"div",8)(8,j0,2,1,"div",9),e.j41(9,"div",10),e.DNE(10,G0,1,5,"rtl-transactions-report-table",11),e.k0s()()()()),2&o&&(e.R7$(4),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.ERROR),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length<=0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED),e.R7$(2),e.Y8G("ngIf",a.transactionsNonZeroReportData.length>0&&a.apiCallStatus.status===a.apiCallStatusEnum.COMPLETED))},dependencies:[_.bT,V.HM,f.DJ,f.sA,f.UI,st.Dl,ot.m,v0.T,_.QX],encapsulation:2,data:{animation:[Ge.q]}}))}return t(),s})();const N0=["form"];function P0(t,s){if(1&t&&(e.j41(0,"div",17),e.nrm(1,"fa-icon",18),e.j41(2,"span"),e.EFF(3,'Bump fee option will be disabled for unconfirmed UTXOs where label text includes "sweep" in its value.'),e.k0s()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle)}}function $0(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"UTXO Label is required."),e.k0s())}function A0(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.labelError)}}function M0(t,s){if(1&t&&(e.j41(0,"div",19),e.nrm(1,"fa-icon",18),e.DNE(2,A0,2,1,"span",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.labelError)}}let B0=(()=>{var t;class s{constructor(i,o,a,l,p,m){this.dialogRef=i,this.data=o,this.dataService=a,this.store=l,this.snackBar=p,this.commonService=m,this.faExclamationTriangle=x.zpE,this.utxo=null,this.label="",this.labelError="",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.utxo=this.data.utxo,this.label=this.utxo.label||""}onLabelUTXO(){if(!this.label||""===this.label)return!0;this.labelError="",this.dataService.labelUTXO(this.utxo&&this.utxo.outpoint&&this.utxo.outpoint.txid_bytes?this.utxo.outpoint.txid_bytes:"",this.label,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.snackBar.open("Successfully labelled the UTXO."),this.dialogRef.close()},error:i=>{this.labelError=i}})}resetData(){this.labelError="",this.label=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(Z.u),e.rXU(L.il),e.rXU(le.UG),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-lebel-modal"]],viewQuery:function(o,a){if(1&o&&e.GBs(N0,7),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first)}},standalone:!1,decls:24,vars:7,consts:[["form","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","100"],["autoFocus","","matInput","","name","label","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Label UTXO"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("submit",function(){return r.eBV(l),r.Njj(a.onLabelUTXO())})("reset",function(){return r.eBV(l),r.Njj(a.resetData())}),e.DNE(11,P0,4,1,"div",9),e.nI1(12,"lowercase"),e.j41(13,"mat-form-field",10)(14,"mat-label"),e.EFF(15,"UTXO Label"),e.k0s(),e.j41(16,"input",11),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.label,m)||(a.label=m),r.Njj(m)}),e.k0s(),e.DNE(17,$0,2,0,"mat-error",12),e.k0s(),e.DNE(18,M0,3,2,"div",13),e.j41(19,"div",14)(20,"button",15),e.EFF(21,"Clear"),e.k0s(),e.j41(22,"button",16),e.EFF(23,"Label UTXO"),e.k0s()()()()()()}2&o&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(5),e.Y8G("ngIf",e.bMT(12,5,a.label).includes("sweep")&&"0"===a.utxo.confirmations),e.R7$(5),e.R50("ngModel",a.label),e.R7$(),e.Y8G("ngIf",!a.label),e.R7$(),e.Y8G("ngIf",""!==a.labelError))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,f.DJ,f.sA,f.UI,te.N,_.GH],encapsulation:2}))}return t(),s})();const lt=()=>["all"],O0=t=>({"error-border":t}),V0=()=>["no_utxo"],$e=t=>({width:t}),Y0=t=>({"display-none":t});function X0(t,s){if(1&t&&(e.j41(0,"mat-option",34),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function U0(t,s){1&t&&e.nrm(0,"mat-progress-bar",35)}function H0(t,s){1&t&&e.nrm(0,"th",36)}function q0(t,s){1&t&&(e.j41(0,"span",39)(1,"mat-icon",40),e.EFF(2,"warning"),e.k0s()())}function z0(t,s){if(1&t&&(e.j41(0,"td",37),e.DNE(1,q0,3,0,"span",38),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(),o=e.sdS(52);e.R7$(),e.Y8G("ngIf",n.amount_sat0))}}function Cf(t,s){1&t&&e.nrm(0,"tr",57)}function yf(t,s){1&t&&e.nrm(0,"tr",58)}function bf(t,s){1&t&&e.nrm(0,"mat-icon",40)}let Ff=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b){this.logger=i,this.commonService=o,this.dataService=a,this.store=l,this.rtlEffects=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.snackBar=b,this.isDustUTXO=!1,this.dustAmount=1e3,this.faMoneyBillWave=x.ymQ,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"utxos",recordsPerPage:c.md,sortBy:"tx_id",sortOrder:c.oi.DESCENDING},this.addressType=c.aG,this.displayedColumns=[],this.listUTXOs=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){!this.isDustUTXO&&this.utxos&&this.utxos.length>0&&this.loadUTXOsTable(this.utxos),this.isDustUTXO&&this.dustUtxos&&this.dustUtxos.length>0&&this.loadUTXOsTable(this.dustUtxos)}ngOnInit(){this.tableSetting.tableId=this.isDustUTXO?"dust_utxos":"utxos",this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.utxos&&i.utxos.length>0&&(this.dustUtxos=i.utxos?.filter(o=>+(o.amount_sat||0)0&&this.dustUtxos.length>0&&!this.isDustUTXO&&this.displayedColumns.unshift("is_dust"),this.loadUTXOsTable(this.isDustUTXO?this.dustUtxos:this.utxos)),this.logger.info(i)})}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):"is_dust"===i?"Dust":this.commonService.titleCase(i)}setFilterPredicate(){this.listUTXOs.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.label?i.label.toLowerCase():"")+(i.outpoint?.txid_str?i.outpoint.txid_str.toLowerCase():"")+(i.outpoint?.output_index?i.outpoint?.output_index:"")+(i.outpoint?.txid_bytes?i.outpoint?.txid_bytes.toLowerCase():"")+(i.address?i.address.toLowerCase():"")+(i.address_type?this.addressType[i.address_type].name.toLowerCase():"")+(i.amount_sat?i.amount_sat:"")+(i.confirmations?i.confirmations:"");break;case"is_dust":a=+(i?.amount_sat||0)"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_dust"===this.selFilterBy||"address_type"===this.selFilterBy?0===a.indexOf(o):a.includes(o)}}onUTXOClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"UTXO Information",message:[[{key:"txid",value:i.outpoint?.txid_str,title:"Transaction ID",width:100,type:c.UN.STRING,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"output_index",value:i.outpoint?.output_index,title:"Output Index",width:34,type:c.UN.NUMBER},{key:"amount_sat",value:i.amount_sat,title:"Amount (Sats)",width:33,type:c.UN.NUMBER},{key:"confirmations",value:i.confirmations,title:"Confirmations",width:33,type:c.UN.NUMBER}],[{key:"address_type",value:i.address_type?this.addressType[i.address_type].name:"",title:"Address Type",width:34},{key:"address",value:i.address,title:"Address",width:66}],[{key:"pk_script",value:i.pk_script,title:"PK Script",width:100,type:c.UN.STRING}]]}}}))}loadUTXOsTable(i){this.listUTXOs=new u.I6([...i]),this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=(o,a)=>{switch(a){case"is_dust":return+(o.amount_sat||0){a&&this.dataService.leaseUTXO(i.outpoint?.txid_bytes||"",i.outpoint?.output_index||0).pipe((0,g.Q)(this.unSubs[0])).subscribe({next:l=>{this.snackBar.open("The UTXO has been leased till "+new Date(l).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")},error:l=>{this.snackBar.open(l+" UTXO not leased.","",{panelClass:"rtl-warn-snack-bar"})}})})}onBumpFee(i){this.store.dispatch((0,I.xO)({payload:{data:{selUTXO:i,component:tt}}}))}onDownloadCSV(){this.listUTXOs.data&&this.listUTXOs.data.length>0&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU(_.QX),e.rXU(J.VD),e.rXU(le.UG))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-utxos"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},inputs:{isDustUTXO:"isDustUTXO",dustAmount:"dustAmount"},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("UTXOs")}]),e.OA$],decls:53,vars:19,consts:[["table",""],["emptySpace",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","is_dust"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","tx_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","label"],["matColumnDef","address_type"],["matColumnDef","address"],["matColumnDef","amount_sat"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Dust/Nondust"],["mat-cell",""],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row","fxLayoutAlign","start center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"mat-form-field",5)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",6),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,X0,2,2,"mat-option",7),e.k0s()()(),e.j41(9,"mat-form-field",5)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",8),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",9)(14,"div",10),e.DNE(15,U0,1,0,"mat-progress-bar",11),e.j41(16,"table",12,0),e.qex(18,13),e.DNE(19,H0,1,0,"th",14)(20,z0,2,2,"td",15),e.bVm(),e.qex(21,16),e.DNE(22,J0,2,0,"th",17)(23,Q0,4,4,"td",15),e.bVm(),e.qex(24,18),e.DNE(25,W0,2,0,"th",19)(26,Z0,3,1,"td",15),e.bVm(),e.qex(27,20),e.DNE(28,K0,2,0,"th",17)(29,ef,4,4,"td",15),e.bVm(),e.qex(30,21),e.DNE(31,tf,2,0,"th",17)(32,nf,3,1,"td",15),e.bVm(),e.qex(33,22),e.DNE(34,af,2,0,"th",17)(35,sf,4,4,"td",15),e.bVm(),e.qex(36,23),e.DNE(37,of,2,0,"th",19)(38,lf,4,3,"td",15),e.bVm(),e.qex(39,24),e.DNE(40,rf,2,0,"th",19)(41,cf,4,3,"td",15),e.bVm(),e.qex(42,25),e.DNE(43,pf,6,0,"th",26)(44,uf,12,3,"td",27),e.bVm(),e.qex(45,28),e.DNE(46,ff,4,3,"td",29),e.bVm(),e.DNE(47,gf,1,3,"tr",30)(48,Cf,1,0,"tr",31)(49,yf,1,0,"tr",32),e.k0s(),e.nrm(50,"mat-paginator",33),e.k0s()()(),e.DNE(51,bf,1,0,"ng-template",null,1,e.C5r)}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",a.utxos&&a.utxos.length>0&&a.dustUtxos&&a.dustUtxos.length>0&&!a.isDustUTXO?e.lJ4(14,lt).concat(a.displayedColumns.slice(0,-1)):e.lJ4(15,lt).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listUTXOs)("ngClass",e.eq3(16,O0,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(18,V0)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,oe.An,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,ee.oV,G.iy,B.ZF,B.Ld,_.GH,_.QX],styles:[".mat-column-is_dust[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return t(),s})();const xf=()=>["all"],vf=t=>({"error-border":t}),Tf=()=>["no_transaction"],Ae=t=>({width:t}),kf=t=>({"display-none":t});function Sf(t,s){if(1&t&&(e.j41(0,"mat-option",32),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function Rf(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Ef(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Date/Time"),e.k0s())}function If(t,s){if(1&t&&(e.j41(0,"td",35),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.JRh(e.i5U(2,1,1e3*n.time_stamp,"dd/MMM/y HH:mm"))}}function Lf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Label"),e.k0s())}function wf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.label)}}function jf(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Block Hash"),e.k0s())}function Gf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.block_hash)}}function Df(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Transaction Hash"),e.k0s())}function Nf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ae,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.tx_hash)}}function Pf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Amount (Sats)"),e.k0s())}function $f(t,s){if(1&t&&(e.j41(0,"span",41),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.JRh(e.bMT(2,1,n.amount))}}function Af(t,s){if(1&t&&(e.j41(0,"span",42),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI("(",e.bMT(2,1,-1*n.amount),")")}}function Mf(t,s){if(1&t&&(e.j41(0,"td",35),e.DNE(1,$f,3,3,"span",39)(2,Af,3,3,"span",40),e.k0s()),2&t){const n=s.$implicit;e.R7$(),e.Y8G("ngIf",n.amount>0||0===n.amount),e.R7$(),e.Y8G("ngIf",n.amount<0)}}function Bf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Fees (Sats)"),e.k0s())}function Of(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_fees))}}function Vf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Block Height"),e.k0s())}function Yf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.block_height))}}function Xf(t,s){1&t&&(e.j41(0,"th",38),e.EFF(1,"Confirmations"),e.k0s())}function Uf(t,s){if(1&t&&(e.j41(0,"td",35)(1,"span",41),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==n?null:n.num_confirmations)," ")}}function Hf(t,s){if(1&t){const n=e.RV6();e.j41(0,"th",43)(1,"div",44)(2,"mat-select",45),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",46),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function qf(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",47)(1,"button",48),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onTransactionClick(o))}),e.EFF(2,"View Info"),e.k0s()()}}function zf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No transaction available."),e.k0s())}function Jf(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting transactions..."),e.k0s())}function Qf(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Wf(t,s){if(1&t&&(e.j41(0,"td",49),e.DNE(1,zf,2,0,"p",50)(2,Jf,2,0,"p",50)(3,Qf,2,1,"p",50),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.listTransactions&&n.listTransactions.data)||(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Zf(t,s){if(1&t&&e.nrm(0,"tr",51),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,kf,(null==n.listTransactions?null:n.listTransactions.data)&&(null==n.listTransactions||null==n.listTransactions.data?null:n.listTransactions.data.length)>0))}}function Kf(t,s){1&t&&e.nrm(0,"tr",52)}function e2(t,s){1&t&&e.nrm(0,"tr",53)}let t2=(()=>{var t;class s{constructor(i,o,a,l,p){this.logger=i,this.commonService=o,this.store=a,this.datePipe=l,this.camelCaseWithReplace=p,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transactions",recordsPerPage:c.md,sortBy:"time_stamp",sortOrder:c.oi.DESCENDING},this.faHistory=x.Int,this.displayedColumns=[],this.listTransactions=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(){this.transactions&&this.transactions.length>0&&this.loadTransactionsTable(this.transactions)}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.gN).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.transactions&&i.transactions.length>0&&(this.transactions=i.transactions,this.loadTransactionsTable(this.transactions)),this.logger.info(i)})}onTransactionClick(i){this.store.dispatch((0,I.xO)({payload:{data:{type:c.A$.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"block_hash",value:i.block_hash,title:"Block Hash",width:100,explorerLink:"block"}],[{key:"tx_hash",value:i.tx_hash,title:"Transaction Hash",width:100,explorerLink:"tx"}],[{key:"label",value:i.label,title:"Label",width:100,type:c.UN.STRING}],[{key:"time_stamp",value:i.time_stamp,title:"Date/Time",width:50,type:c.UN.DATE_TIME},{key:"block_height",value:i.block_height,title:"Block Height",width:50,type:c.UN.NUMBER}],[{key:"num_confirmations",value:i.num_confirmations,title:"Number of Confirmations",width:34,type:c.UN.NUMBER},{key:"total_fees",value:i.total_fees,title:"Total Fees (Sats)",width:33,type:c.UN.NUMBER},{key:"amount",value:i.amount,title:"Amount (Sats)",width:33,type:c.UN.NUMBER}],[{key:"dest_addresses",value:i.dest_addresses,title:"Destination Addresses",width:100,type:c.UN.ARRAY}]],scrollable:i.dest_addresses&&i.dest_addresses.length>5}}}))}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.listTransactions.filterPredicate=(i,o)=>{let a="";switch(this.selFilterBy){case"all":a=(i.time_stamp?this.datePipe.transform(new Date(1e3*i.time_stamp),"dd/MMM/y HH:mm")?.toLowerCase():"")+JSON.stringify(i).toLowerCase();break;case"time_stamp":a=this.datePipe.transform(new Date(1e3*(i?.time_stamp||0)),"dd/MMM/YYYY HH:mm")?.toLowerCase()||"";break;default:a=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return a.includes(o)}}loadTransactionsTable(i){this.listTransactions=new u.I6([...i]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listTransactions)}onDownloadCSV(){this.listTransactions.data&&this.listTransactions.data.length>0&&this.commonService.downloadFile(this.listTransactions.data,"Transactions")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(_.vh),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-transaction-history"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Transactions")}]),e.OA$],decls:51,vars:18,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","end stretch","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","time_stamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","label"],["matColumnDef","block_hash"],["matColumnDef","tx_hash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_fees"],["matColumnDef","block_height"],["matColumnDef","num_confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Filter By"),e.k0s(),e.j41(6,"mat-select",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilterBy,m)||(a.selFilterBy=m),r.Njj(m)}),e.bIt("selectionChange",function(){return r.eBV(l),a.selFilter="",r.Njj(a.applyFilter())}),e.j41(7,"perfect-scrollbar"),e.DNE(8,Sf,2,2,"mat-option",6),e.k0s()()(),e.j41(9,"mat-form-field",4)(10,"mat-label"),e.EFF(11,"Filter"),e.k0s(),e.j41(12,"input",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(13,"div",8)(14,"div",9),e.DNE(15,Rf,1,0,"mat-progress-bar",10),e.j41(16,"table",11,0),e.qex(18,12),e.DNE(19,Ef,2,0,"th",13)(20,If,3,4,"td",14),e.bVm(),e.qex(21,15),e.DNE(22,Lf,2,0,"th",13)(23,wf,4,4,"td",14),e.bVm(),e.qex(24,16),e.DNE(25,jf,2,0,"th",13)(26,Gf,4,4,"td",14),e.bVm(),e.qex(27,17),e.DNE(28,Df,2,0,"th",13)(29,Nf,4,4,"td",14),e.bVm(),e.qex(30,18),e.DNE(31,Pf,2,0,"th",19)(32,Mf,3,2,"td",14),e.bVm(),e.qex(33,20),e.DNE(34,Bf,2,0,"th",19)(35,Of,4,3,"td",14),e.bVm(),e.qex(36,21),e.DNE(37,Vf,2,0,"th",19)(38,Yf,4,3,"td",14),e.bVm(),e.qex(39,22),e.DNE(40,Xf,2,0,"th",19)(41,Uf,4,3,"td",14),e.bVm(),e.qex(42,23),e.DNE(43,Hf,6,0,"th",24)(44,qf,3,0,"td",25),e.bVm(),e.qex(45,26),e.DNE(46,Wf,4,3,"td",27),e.bVm(),e.DNE(47,Zf,1,3,"tr",28)(48,Kf,1,0,"tr",29)(49,e2,1,0,"tr",30),e.k0s(),e.nrm(50,"mat-paginator",31),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(14,xf).concat(a.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",a.selFilter),e.R7$(3),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",a.tableSetting.sortBy)("matSortDirection",a.tableSetting.sortOrder)("dataSource",a.listTransactions)("ngClass",e.eq3(15,vf,""!==a.errorMessage)),e.R7$(31),e.Y8G("matFooterRowDef",e.lJ4(17,Tf)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();function n2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numUtxos))}}function i2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Transactions"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numTransactions))}}function a2(t,s){if(1&t&&(e.j41(0,"span",5),e.EFF(1,"Dust UTXOs"),e.k0s()),2&t){const n=e.XpG();e.Y8G("matBadge",e.mNQ(n.numDustUtxos))}}let s2=(()=>{var t;class s{constructor(i,o){this.logger=i,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new e.bkB,this.DUST_AMOUNT=1e3,this.numTransactions=0,this.numUtxos=0,this.numDustUtxos=0,this.unSubs=[new h.B,new h.B,new h.B]}ngOnInit(){this.store.dispatch((0,T.mh)()),this.store.dispatch((0,T.SM)()),this.store.select(F.ah).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{i.utxos&&i.utxos.length>0&&(this.numUtxos=i.utxos.length,this.numDustUtxos=i.utxos?.filter(o=>o.amount_sat&&+o.amount_sat{i.transactions&&i.transactions.length>0&&(this.numTransactions=i.transactions.length),this.logger.info(i)})}onSelectedIndexChanged(i){this.selectedTableIndexChange.emit(i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},standalone:!1,decls:11,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"isDustUTXO","dustAmount"],["fxLayout","row","fxFlex","100"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-tab-group",1),e.bIt("selectedIndexChange",function(p){return a.onSelectedIndexChanged(p)}),e.j41(2,"mat-tab"),e.DNE(3,n2,2,2,"ng-template",2),e.nrm(4,"rtl-on-chain-utxos",3),e.k0s(),e.j41(5,"mat-tab"),e.DNE(6,i2,2,2,"ng-template",2),e.nrm(7,"rtl-on-chain-transaction-history",4),e.k0s(),e.j41(8,"mat-tab"),e.DNE(9,a2,2,2,"ng-template",2),e.nrm(10,"rtl-on-chain-utxos",3),e.k0s()()()),2&o&&(e.R7$(),e.Y8G("selectedIndex",a.selectedTableIndex),e.R7$(3),e.Y8G("isDustUTXO",!1)("dustAmount",a.DUST_AMOUNT),e.R7$(6),e.Y8G("isDustUTXO",!0)("dustAmount",a.DUST_AMOUNT))},dependencies:[f.DJ,f.sA,f.UI,Re.k,A.ES,A.mq,A.T8,Ff,t2],encapsulation:2}))}return t(),s})();const o2=(t,s)=>[t,s];function l2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=null==o?null:o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("active",i.activeLink===(null==n?null:n.link))("routerLink",e.l_i(3,o2,null==n?null:n.link,null==i.selectedTable?null:i.selectedTable.name)),e.R7$(),e.JRh(null==n?null:n.name)}}let r2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.router=o,this.activatedRoute=a,this.faExchangeAlt=x._qq,this.faChartPie=x.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"trans"},{id:2,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new h.B,new h.B,new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link,this.selectedTable=this.tables.find(l=>l.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(F.$7).pipe((0,g.Q)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.blockchainBalance.total_balance||0},{title:"Confirmed",dataValue:o.blockchainBalance.confirmed_balance||0},{title:"Unconfirmed",dataValue:o.blockchainBalance.unconfirmed_balance||0}]})}onSelectedTableIndexChanged(i){this.selectedTable=this.tables.find(o=>o.id===i)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain"]],standalone:!1,decls:23,vars:6,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndexChange","selectedTableIndex"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"On-chain Balance"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),e.nrm(7,"rtl-currency-unit-converter",6),e.k0s()()(),e.j41(8,"div",1),e.nrm(9,"fa-icon",2),e.j41(10,"span",3),e.EFF(11,"On-chain Transactions"),e.k0s()(),e.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),e.DNE(16,l2,2,6,"div",9),e.k0s(),e.nrm(17,"mat-tab-nav-panel",null,0),e.j41(19,"div",10),e.nrm(20,"router-outlet"),e.k0s(),e.j41(21,"div",11)(22,"rtl-utxo-tables",12),e.bIt("selectedTableIndexChange",function(m){return r.eBV(l),r.Njj(a.onSelectedTableIndexChanged(m))}),e.k0s()()()()()}if(2&o){const l=e.sdS(18);e.R7$(),e.Y8G("icon",a.faChartPie),e.R7$(6),e.Y8G("values",a.balances),e.R7$(2),e.Y8G("icon",a.faExchangeAlt),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links),e.R7$(6),e.Y8G("selectedTableIndex",null==a.selectedTable?null:a.selectedTable.id)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,Ee.f,w.n3,ie.Wk,s2],encapsulation:2}))}return t(),s})();var c2=y(80396);function p2(t,s){if(1&t&&(e.j41(0,"mat-option",6),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.SpI(" ",n.addressTp," ")}}let m2=(()=>{var t;class s{constructor(i,o,a){this.store=i,this.lndEffects=o,this.commonService=a,this.addressTypes=[],this.selectedAddressType=c.Ld[2],this.newAddress="",this.flgVersionCompatible=!0,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.store.select(F.pI).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(i.version,"0.15.0"),this.addressTypes=this.flgVersionCompatible?c.Ld:c.Ld.filter(o=>"4"!==o.addressId)})}onGenerateAddress(){this.store.dispatch((0,T.XT)({payload:this.selectedAddressType})),this.lndEffects.setNewAddress.pipe((0,W.s)(1)).subscribe(i=>{this.newAddress=i,setTimeout(()=>{this.store.dispatch((0,I.xO)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:c2.f}}}))},0)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-receive"]],standalone:!1,decls:10,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.gt-sm","start center"],["fxLayout","column","fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["name","address_type","tabindex","1",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","tabindex","2",3,"click"],[3,"value"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),e.EFF(4,"Address Type"),e.k0s(),e.j41(5,"mat-select",3),e.mxI("ngModelChange",function(p){return e.DH7(a.selectedAddressType,p)||(a.selectedAddressType=p),p}),e.DNE(6,p2,2,2,"mat-option",4),e.k0s()(),e.j41(7,"div")(8,"button",5),e.bIt("click",function(){return a.onGenerateAddress()}),e.EFF(9,"Generate Address"),e.k0s()()()()),2&o&&(e.R7$(5),e.R50("ngModel",a.selectedAddressType),e.R7$(),e.Y8G("ngForOf",a.addressTypes))},dependencies:[_.Sq,d.BC,d.vS,N.$z,C.rl,C.nJ,f.DJ,f.sA,f.UI,E.VO,X.wT],encapsulation:2}))}return t(),s})();var u2=y(82852);const d2=["form"],h2=["formSweepAll"],_2=["stepper"];function f2(t,s){if(1&t&&(e.j41(0,"div",16),e.nrm(1,"fa-icon",17),e.j41(2,"span",18)(3,"div"),e.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),e.k0s(),e.j41(5,"span",19)(6,"span"),e.EFF(7),e.k0s(),e.j41(8,"span"),e.EFF(9),e.k0s(),e.j41(10,"span"),e.EFF(11),e.k0s(),e.j41(12,"span"),e.EFF(13),e.k0s(),e.j41(14,"span"),e.EFF(15),e.k0s()()()()),2&t){const n=e.XpG();e.R7$(),e.Y8G("icon",n.faInfoCircle),e.R7$(6),e.SpI("- High: ",n.recommendedFee.fastestFee||"Unknown"),e.R7$(2),e.SpI("- Medium: ",n.recommendedFee.halfHourFee||"Unknown"),e.R7$(2),e.SpI("- Low: ",n.recommendedFee.hourFee||"Unknown"),e.R7$(2),e.SpI("- Economy: ",n.recommendedFee.economyFee||"Unknown"),e.R7$(2),e.SpI("- Minimum: ",n.recommendedFee.minimumFee||"Unknown")}}function g2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function C2(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.amountError)}}function y2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n),e.R7$(),e.JRh(n)}}function b2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function F2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function x2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.j41(3,"input",41,4),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionBlocks,o)||(a.transactionBlocks=o),r.Njj(o)}),e.k0s(),e.DNE(5,F2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionBlocks),e.R7$(2),e.Y8G("ngIf",!n.transactionBlocks)}}function v2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function T2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-form-field",40)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.j41(3,"input",42,5),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.transactionFees,o)||(a.transactionFees=o),r.Njj(o)}),e.k0s(),e.DNE(5,v2,2,0,"mat-error",23),e.k0s()}if(2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R50("ngModel",n.transactionFees),e.R7$(2),e.Y8G("ngIf",!n.transactionFees)}}function k2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function S2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,k2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function R2(t,s){if(1&t){const n=e.RV6();e.j41(0,"form",20,1),e.bIt("submit",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())})("reset",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.resetData())}),e.j41(2,"mat-form-field",21)(3,"mat-label"),e.EFF(4,"Bitcoin Address"),e.k0s(),e.j41(5,"input",22,2),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAddress,o)||(a.transactionAddress=o),r.Njj(o)}),e.k0s(),e.DNE(7,g2,2,0,"mat-error",23),e.k0s(),e.j41(8,"mat-form-field",24)(9,"mat-label"),e.EFF(10,"Amount"),e.k0s(),e.j41(11,"input",25,3),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.transactionAmount,o)||(a.transactionAmount=o),r.Njj(o)}),e.k0s(),e.j41(13,"span",26),e.EFF(14),e.k0s(),e.DNE(15,C2,2,1,"mat-error",23),e.k0s(),e.j41(16,"mat-form-field",27)(17,"mat-label"),e.EFF(18,"Amount Unit"),e.k0s(),e.j41(19,"mat-select",28),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.onAmountUnitChange(o))}),e.DNE(20,y2,2,2,"mat-option",29),e.k0s()(),e.j41(21,"div",30)(22,"mat-form-field",31)(23,"mat-label"),e.EFF(24,"Transaction Type"),e.k0s(),e.j41(25,"mat-select",32),e.mxI("valueChange",function(o){r.eBV(n);const a=e.XpG();return e.DH7(a.selTransType,o)||(a.selTransType=o),r.Njj(o)}),e.DNE(26,b2,2,2,"mat-option",29),e.k0s()(),e.DNE(27,x2,6,4,"mat-form-field",33)(28,T2,6,4,"mat-form-field",33),e.k0s(),e.nrm(29,"div",34),e.DNE(30,S2,3,2,"div",35),e.j41(31,"div",36)(32,"button",37),e.EFF(33,"Clear Fields"),e.k0s(),e.j41(34,"button",38),e.EFF(35,"Send Funds"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(5),e.R50("ngModel",n.transactionAddress),e.R7$(2),e.Y8G("ngIf",!n.transactionAddress),e.R7$(4),e.Y8G("step",100)("min",0),e.R50("ngModel",n.transactionAmount),e.R7$(3),e.SpI("",n.selAmountUnit," "),e.R7$(),e.Y8G("ngIf",!n.transactionAmount),e.R7$(4),e.Y8G("value",n.selAmountUnit),e.R7$(),e.Y8G("ngForOf",n.amountUnits),e.R7$(5),e.R50("value",n.selTransType),e.R7$(),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.selTransType),e.R7$(),e.Y8G("ngIf","2"===n.selTransType),e.R7$(2),e.Y8G("ngIf",""!==n.sendFundError)}}function E2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(3);e.JRh(n.passwordFormLabel)}}function I2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function L2(t,s){if(1&t){const n=e.RV6();e.j41(0,"mat-step",47)(1,"form",66),e.DNE(2,E2,1,1,"ng-template",60),e.j41(3,"div",7)(4,"mat-form-field",18)(5,"mat-label"),e.EFF(6,"Password"),e.k0s(),e.nrm(7,"input",67),e.DNE(8,I2,2,0,"mat-error",23),e.k0s()(),e.j41(9,"div",68)(10,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.onAuthenticate())}),e.EFF(11,"Confirm"),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.Y8G("stepControl",n.passwordFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.passwordFormGroup.controls.password.errors?null:n.passwordFormGroup.controls.password.errors.required)}}function w2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.sendFundFormLabel)}}function j2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Bitcoin address is required."),e.k0s())}function G2(t,s){if(1&t&&(e.j41(0,"mat-option",39),e.EFF(1),e.k0s()),2&t){const n=s.$implicit;e.Y8G("value",n.id),e.R7$(),e.SpI(" ",n.name," ")}}function D2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Number of blocks is required."),e.k0s())}function N2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Number of Blocks"),e.k0s(),e.nrm(3,"input",70),e.DNE(4,D2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionBlocks.errors?null:n.sendFundFormGroup.controls.transactionBlocks.errors.required)}}function P2(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Fees is required."),e.k0s())}function $2(t,s){if(1&t&&(e.j41(0,"mat-form-field",69)(1,"mat-label"),e.EFF(2,"Fees (Sats/vByte)"),e.k0s(),e.nrm(3,"input",71),e.DNE(4,P2,2,0,"mat-error",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(3),e.Y8G("step",1)("min",0),e.R7$(),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionFees.errors?null:n.sendFundFormGroup.controls.transactionFees.errors.required)}}function A2(t,s){if(1&t&&e.EFF(0),2&t){const n=e.XpG(2);e.JRh(n.confirmFormLabel)}}function M2(t,s){if(1&t&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.JRh(n.sendFundError)}}function B2(t,s){if(1&t&&(e.j41(0,"div",43),e.nrm(1,"fa-icon",17),e.DNE(2,M2,2,1,"span",23),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("icon",n.faExclamationTriangle),e.R7$(),e.Y8G("ngIf",""!==n.sendFundError)}}function O2(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",44)(1,"mat-vertical-stepper",45,6),e.bIt("selectionChange",function(o){r.eBV(n);const a=e.XpG();return r.Njj(a.stepSelectionChanged(o))}),e.DNE(3,L2,12,4,"mat-step",46),e.j41(4,"mat-step",47)(5,"form",48),e.DNE(6,w2,1,1,"ng-template",49),e.j41(7,"div",50)(8,"mat-form-field",51)(9,"mat-label"),e.EFF(10,"Bitcoin Address"),e.k0s(),e.nrm(11,"input",52),e.DNE(12,j2,2,0,"mat-error",23),e.k0s(),e.j41(13,"mat-form-field",53)(14,"mat-label"),e.EFF(15,"Transaction Type"),e.k0s(),e.j41(16,"mat-select",54),e.DNE(17,G2,2,2,"mat-option",29),e.k0s()(),e.DNE(18,N2,5,3,"mat-form-field",55)(19,$2,5,3,"mat-form-field",55),e.k0s(),e.j41(20,"div",56)(21,"button",57),e.EFF(22,"Next"),e.k0s()()()(),e.j41(23,"mat-step",58)(24,"form",59),e.DNE(25,A2,1,1,"ng-template",60),e.j41(26,"div",44)(27,"div",61),e.nrm(28,"fa-icon",62),e.j41(29,"span"),e.EFF(30,"You are about to sweep all funds from RTL. Are you sure?"),e.k0s()(),e.DNE(31,B2,3,2,"div",35),e.j41(32,"div",56)(33,"button",63),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onSendFunds())}),e.EFF(34,"Sweep All Funds"),e.k0s()()()()()(),e.j41(35,"div",64)(36,"button",65),e.EFF(37),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(),e.Y8G("linear",!0),e.R7$(2),e.Y8G("ngIf",!n.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("stepControl",n.sendFundFormGroup)("editable",n.flgEditable),e.R7$(),e.Y8G("formGroup",n.sendFundFormGroup),e.R7$(7),e.Y8G("ngIf",null==n.sendFundFormGroup.controls.transactionAddress.errors?null:n.sendFundFormGroup.controls.transactionAddress.errors.required),e.R7$(5),e.Y8G("ngForOf",n.transTypes),e.R7$(),e.Y8G("ngIf","1"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(),e.Y8G("ngIf","2"===n.sendFundFormGroup.controls.selTransType.value),e.R7$(4),e.Y8G("stepControl",n.confirmFormGroup),e.R7$(),e.Y8G("formGroup",n.confirmFormGroup),e.R7$(4),e.Y8G("icon",n.faExclamationTriangle),e.R7$(3),e.Y8G("ngIf",""!==n.sendFundError),e.R7$(5),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(n.flgValidated?"Close":"Cancel")}}let V2=(()=>{var t;class s{constructor(i,o,a,l,p,m,v,b,S,PC,$C){this.dialogRef=i,this.data=o,this.logger=a,this.dataService=l,this.store=p,this.rtlEffects=m,this.commonService=v,this.decimalPipe=b,this.snackBar=S,this.actions=PC,this.formBuilder=$C,this.faExclamationTriangle=x.zpE,this.faInfoCircle=x.iW_,this.sweepAll=!1,this.addressTypes=[],this.selectedAddress={},this.blockchainBalance={},this.information={},this.newAddress="",this.transactionAddress="",this.transactionAmount=null,this.transactionFees=null,this.transactionBlocks=null,this.transTypes=[{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],this.selTransType="1",this.fiatConversion=!1,this.amountUnits=c.A0,this.selAmountUnit=c.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=c.k,this.sendFundError="",this.flgValidated=!1,this.flgEditable=!0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B]}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,g.Q)(this.unSubs[0])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[d.k0.required]],password:["",[d.k0.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",d.k0.required],transactionBlocks:[null],transactionFees:[null],selTransType:["1",d.k0.required]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.selTransType.valueChanges.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{"1"===i?(this.sendFundFormGroup.controls.transactionBlocks.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators(null),this.sendFundFormGroup.controls.transactionFees.setValue(null)):(this.sendFundFormGroup.controls.transactionBlocks.setValidators(null),this.sendFundFormGroup.controls.transactionBlocks.setValue(null),this.sendFundFormGroup.controls.transactionFees.setValidators([d.k0.required]),this.sendFundFormGroup.controls.transactionFees.setValue(null))}),this.store.select(H.qv).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.appConfig=i}),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.fiatConversion=i.settings.fiatConversion,this.amountUnits=i.settings.currencyUnits,this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[4]),(0,U.p)(i=>i.type===c.QP.UPDATE_API_CALL_STATUS_LND||i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND)).subscribe(i=>{i.type===c.QP.SET_CHANNEL_TRANSACTION_RES_LND&&(this.store.dispatch((0,I.UI)({payload:this.sweepAll?"All Funds Sent Successfully!":"Fund Sent Successfully!"})),this.dialogRef.close()),i.type===c.QP.UPDATE_API_CALL_STATUS_LND&&i.payload.status===c.wn.ERROR&&"SetChannelTransaction"===i.payload.action&&(this.sendFundError=i.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,I.oz)({payload:u2(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,W.s)(1)).subscribe(i=>{"ERROR"!==i?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="";const i={amount:this.transactionAmount?this.transactionAmount:0,sendAll:this.sweepAll};this.sweepAll?(i.address=this.sendFundFormGroup.controls.transactionAddress.value,"1"===this.sendFundFormGroup.controls.selTransType.value&&(i.blocks=this.sendFundFormGroup.controls.transactionBlocks.value),"2"===this.sendFundFormGroup.controls.selTransType.value&&(i.fees=this.sendFundFormGroup.controls.transactionFees.value)):(i.address=this.transactionAddress,"1"===this.selTransType&&(i.blocks=this.transactionBlocks),"2"===this.selTransType&&(i.fees=this.transactionFees)),this.transactionAmount&&this.selAmountUnit!==c.BQ.SATS?this.commonService.convertCurrency(this.transactionAmount,this.selAmountUnit===this.amountUnits[2]?c.BQ.OTHER:this.selAmountUnit,c.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,g.Q)(this.unSubs[5])).subscribe({next:o=>{this.selAmountUnit=c.BQ.SATS,i.amount=+(this.decimalPipe.transform(o[this.amountUnits[0]],this.currencyUnitFormats[this.amountUnits[0]])?.replace(/,/g,"")||0),this.store.dispatch((0,T.aB)({payload:i}))},error:o=>{this.transactionAmount=null,this.selAmountUnit=c.BQ.SATS,this.amountError="Conversion Error: "+o}}):this.store.dispatch((0,T.aB)({payload:i}))}get invalidValues(){return this.sweepAll?!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||"1"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionBlocks.value||this.sendFundFormGroup.controls.transactionBlocks.value<=0)||"2"===this.sendFundFormGroup.controls.selTransType.value&&(!this.sendFundFormGroup.controls.transactionFees.value||this.sendFundFormGroup.controls.transactionFees.value<=0):!this.transactionAddress||""===this.transactionAddress||!this.transactionAmount||this.transactionAmount<=0||"1"===this.selTransType&&(!this.transactionBlocks||this.transactionBlocks<=0)||"2"===this.selTransType&&(!this.transactionFees||this.transactionFees<=0)}resetData(){this.sendFundError="",this.selTransType="1",this.transactionAddress="",this.transactionBlocks=null,this.transactionFees=null,this.sweepAll||(this.transactionAmount=null)}stepSelectionChanged(i){switch(this.sendFundError="",i.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+" | "+this.transTypes[this.sendFundFormGroup.controls.selTransType.value-1].name+("2"===this.sendFundFormGroup.controls.selTransType.value?" (Sats/vByte)":"")+": "+("1"===this.sendFundFormGroup.controls.selTransType.value?this.sendFundFormGroup.controls.transactionBlocks.value:this.sendFundFormGroup.controls.transactionFees.value)}i.selectedIndex{this.selAmountUnit=i.value,o.transactionAmount=+(o.decimalPipe.transform(m[l],o.currencyUnitFormats[l])?.replace(/,/g,"")||0)},error:m=>{o.transactionAmount=null,this.amountError="Conversion Error: "+m,this.selAmountUnit=a,l=a}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Y.CP),e.rXU(Y.Vh),e.rXU(D.gP),e.rXU(Z.u),e.rXU(L.il),e.rXU(_e.H),e.rXU($.h),e.rXU(_.QX),e.rXU(le.UG),e.rXU(K.En),e.rXU(d.ze))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send-modal"]],viewQuery:function(o,a){if(1&o&&(e.GBs(d2,7),e.GBs(h2,5),e.GBs(_2,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.form=l.first),e.mGM(l=e.lsd())&&(a.formSweepAll=l.first),e.mGM(l=e.lsd())&&(a.stepper=l.first)}},standalone:!1,decls:13,vars:5,consts:[["sweepAllBlock",""],["form","ngForm"],["address","ngModel"],["amnt","ngModel"],["blocks","ngModel"],["fees","ngModel"],["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex.gt-sm","55"],["autoFocus","","matInput","","name","address","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex.gt-sm","30"],["matInput","","name","amt","type","number","required","",3,"ngModelChange","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex.gt-sm","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","60","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex","48"],[3,"valueChange","value"],["fxFlex","48",4,"ngIf"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],[3,"value"],["fxFlex","48"],["matInput","","type","number","name","blcks","required","",3,"ngModelChange","step","min","ngModel"],["matInput","","type","number","name","chainFees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","98","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between start"],["fxLayout","column","fxFlex.gt-sm","45"],["matInput","","formControlName","transactionAddress","name","address","required",""],["fxLayout","column","fxFlex.gt-sm","25"],["formControlName","selTransType"],["fxFlex.gt-sm","25","fxLayoutAlign","start end",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","type","button","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","type","password","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["fxFlex.gt-sm","25","fxLayoutAlign","start end"],["matInput","","formControlName","transactionBlocks","type","number","name","blcks","required","",3,"step","min"],["matInput","","formControlName","transactionFees","type","number","name","chainFees","required","",3,"step","min"]],template:function(o,a){if(1&o&&(e.j41(0,"div",7)(1,"div",8)(2,"mat-card-header",9)(3,"div",10)(4,"span",11),e.EFF(5),e.k0s()(),e.j41(6,"button",12),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",13),e.DNE(9,f2,16,6,"div",14)(10,R2,36,14,"form",15),e.k0s()()(),e.DNE(11,O2,38,15,"ng-template",null,0,e.C5r)),2&o){const l=e.sdS(12);e.R7$(5),e.JRh(a.sweepAll?"Sweep All Funds":"Send Funds"),e.R7$(),e.Y8G("mat-dialog-close",!1),e.R7$(3),e.Y8G("ngIf",a.recommendedFee.minimumFee),e.R7$(),e.Y8G("ngIf",!a.sweepAll)("ngIfElse",l)}},dependencies:[_.Sq,_.bT,d.qT,d.me,d.Q0,d.BC,d.cb,d.YS,d.VZ,d.vS,d.cV,d.j4,d.JD,O.aY,Y.tx,N.$z,k.m2,k.MM,M.fg,C.rl,C.nJ,C.TL,C.yw,f.DJ,f.sA,f.UI,E.VO,X.wT,z.V5,z.Ti,z.M6,z.F7,te.N,ae.V],encapsulation:2}))}return t(),s})(),rt=(()=>{var t;class s{constructor(i,o){this.store=i,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new h.B,new h.B]}ngOnInit(){this.activatedRoute.data.pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.sweepAll=i.sweepAll})}openSendFundsModal(){this.store.dispatch((0,I.xO)({payload:{data:{sweepAll:this.sweepAll,component:V2}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(L.il),e.rXU(w.nX))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-on-chain-send"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return a.openSendFundsModal()}),e.EFF(3),e.k0s()()()),2&o&&(e.R7$(3),e.JRh(a.sweepAll?"Sweep All":"Send Funds"))},dependencies:[N.$z,f.DJ,f.sA,f.UI],encapsulation:2}))}return t(),s})();const Y2=t=>({"mt-1":t}),ct=t=>({"dashboard-card-content":!0,"error-border":t});function X2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function U2(t,s){if(1&t&&e.nrm(0,"rtl-node-info",27),2&t){const n=e.XpG(3);e.Y8G("information",n.information)("showColorFieldSeparately",!0)}}function H2(t,s){if(1&t&&e.nrm(0,"rtl-channel-status-info",28),2&t){const n=e.XpG(3);e.Y8G("channelsStatus",n.channelsStatus)("errorMessage",n.errorMessages[3]+" "+n.errorMessages[4])}}function q2(t,s){if(1&t&&e.nrm(0,"rtl-fee-info",29),2&t){const n=e.XpG(3);e.Y8G("fees",n.fees)("errorMessage",n.errorMessages[2])}}function z2(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",13)(1,"div",14)(2,"div",15)(3,"div",16),e.nrm(4,"fa-icon",17),e.j41(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",18)(8,"mat-card",19)(9,"mat-card-content",20),e.DNE(10,X2,1,0,"mat-progress-bar",21),e.j41(11,"div",22),e.DNE(12,U2,1,2,"rtl-node-info",23)(13,H2,1,2,"rtl-channel-status-info",24)(14,q2,1,2,"rtl-fee-info",25),e.k0s()()()()()()),2&t){const n=s.$implicit,i=e.XpG(2);e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(4),e.Y8G("icon",n.icon),e.R7$(2),e.JRh(n.title),e.R7$(3),e.Y8G("ngClass",e.eq3(10,ct,"node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.ERROR)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf","node"===n.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===n.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusPendingChannels.status===i.apiCallStatusEnum.INITIATED)||"fee"===n.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","node"),e.R7$(),e.Y8G("ngSwitchCase","status"),e.R7$(),e.Y8G("ngSwitchCase","fee")}}function J2(t,s){if(1&t&&(e.j41(0,"mat-grid-list",11),e.DNE(1,z2,15,12,"mat-grid-tile",12),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngForOf",n.nodeCards)}}function Q2(t,s){1&t&&e.nrm(0,"mat-progress-bar",26)}function W2(t,s){1&t&&e.eu8(0)}function Z2(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,W2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function K2(t,s){1&t&&e.eu8(0)}function eg(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,K2,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(13);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function tg(t,s){1&t&&e.eu8(0)}function ng(t,s){if(1&t&&(e.j41(0,"div",34),e.DNE(1,tg,1,0,"ng-container",35),e.k0s()),2&t){const n=e.XpG(2),i=e.sdS(9),o=e.sdS(15);e.R7$(),e.Y8G("ngTemplateOutlet",n.apiCallStatusNetwork.status===n.apiCallStatusEnum.ERROR?i:o)}}function ig(t,s){if(1&t&&(e.j41(0,"mat-grid-tile",30)(1,"mat-card",31)(2,"mat-card-content",32),e.DNE(3,Q2,1,0,"mat-progress-bar",21),e.j41(4,"div",22),e.DNE(5,Z2,2,1,"div",33)(6,eg,2,1,"div",33)(7,ng,2,1,"div",33),e.k0s()()()()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("colspan",n.cols)("rowspan",n.rows),e.R7$(2),e.Y8G("ngClass",e.eq3(8,ct,i.apiCallStatusNetwork.status===i.apiCallStatusEnum.ERROR)),e.R7$(),e.Y8G("ngIf",i.apiCallStatusNetwork.status===i.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngSwitch",n.id),e.R7$(),e.Y8G("ngSwitchCase","general"),e.R7$(),e.Y8G("ngSwitchCase","channels"),e.R7$(),e.Y8G("ngSwitchCase","degrees")}}function ag(t,s){if(1&t&&(e.j41(0,"div",36)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.JRh(n.errorMessages[1])}}function sg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Network Capacity"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Number of Nodes"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Number of Channels"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.SpI("",e.bMT(6,3,n.networkInfo.total_network_capacity)," Sats"),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.num_nodes)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.num_channels))}}function og(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Channel Size"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Channel Size"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div")(14,"h4",38),e.EFF(15,"Min Channel Size"),e.k0s(),e.j41(16,"span",39),e.EFF(17),e.nI1(18,"number"),e.k0s()()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,3,n.networkInfo.max_channel_size)),e.R7$(6),e.JRh(e.bMT(12,5,n.networkInfo.avg_channel_size)),e.R7$(6),e.JRh(e.bMT(18,7,n.networkInfo.min_channel_size))}}function lg(t,s){if(1&t&&(e.j41(0,"div",37)(1,"div")(2,"h4",38),e.EFF(3,"Max Out Degree"),e.k0s(),e.j41(4,"div",39),e.EFF(5),e.nI1(6,"number"),e.k0s()(),e.j41(7,"div")(8,"h4",38),e.EFF(9,"Avg Out Degree"),e.k0s(),e.j41(10,"div",39),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",40),e.nrm(14,"h4",38)(15,"span",39),e.k0s()()),2&t){const n=e.XpG();e.R7$(5),e.JRh(e.bMT(6,2,n.networkInfo.max_out_degree)),e.R7$(6),e.JRh(e.i5U(12,4,n.networkInfo.avg_out_degree,"1.0-2"))}}let rg=(()=>{var t;class s{constructor(i,o,a){this.logger=i,this.commonService=o,this.store=a,this.faProjectDiagram=x.qFF,this.faBolt=x.zm_,this.faServer=x.D6w,this.faNetworkWired=x.eGi,this.information={},this.channelsStatus={},this.networkInfo={},this.networkCards=[],this.nodeCards=[],this.screenSize="",this.screenSizeEnum=c.f7,this.userPersonaEnum=c.HW,this.errorMessages=["","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusNetwork=null,this.apiCallStatusFees=null,this.apiCallStatusChannels=null,this.apiCallStatusPendingChannels=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS?(this.networkCards=[{id:"general",cols:3,rows:1},{id:"channels",cols:3,rows:1},{id:"degrees",cols:3,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:3,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:3,rows:1}]):(this.networkCards=[{id:"general",cols:1,rows:1},{id:"channels",cols:1,rows:1},{id:"degrees",cols:1,rows:1}],this.nodeCards=[{id:"node",icon:this.faServer,title:"Node Information",cols:1,rows:1},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:1,rows:1},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:1,rows:1}])}ngOnInit(){this.store.select(F.gj).pipe((0,g.Q)(this.unSubs[0]),(0,ge.E)(this.store.select(H._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apiCallStatus,this.apiCallStatusNodeInfo.status===c.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information}),this.store.select(F.tA).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusNetwork=i.apiCallStatus,this.apiCallStatusNetwork.status===c.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusNetwork.message?JSON.stringify(this.apiCallStatusNetwork.message):this.apiCallStatusNetwork.message?this.apiCallStatusNetwork.message:""),this.networkInfo=i.networkInfo}),this.store.select(F.oR).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusFees=i.apiCallStatus,this.apiCallStatusFees.status===c.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=i.fees}),this.store.select(F.Uv).pipe((0,g.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPendingChannels=i.apiCallStatus,this.apiCallStatusPendingChannels.status===c.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPendingChannels.message?JSON.stringify(this.apiCallStatusPendingChannels.message):this.apiCallStatusPendingChannels.message?this.apiCallStatusPendingChannels.message:""),this.channelsStatus.pending={num_channels:i.pendingChannelsSummary.open?.num_channels,capacity:i.pendingChannelsSummary.open?.limbo_balance},this.channelsStatus.closing={num_channels:(i.pendingChannelsSummary.closing?.num_channels||0)+(i.pendingChannelsSummary.force_closing?.num_channels||0)+(i.pendingChannelsSummary.waiting_close?.num_channels||0),capacity:i.pendingChannelsSummary.total_limbo_balance}}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===c.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active=i.channelsSummary.active,this.channelsStatus.inactive=i.channelsSummary.inactive,this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-network-info"]],standalone:!1,decls:16,vars:6,consts:[["errorBlock",""],["generalBlock",""],["channelsBlock",""],["degreesBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","3","rowHeight","330px",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container",3,"ngClass"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","3","rowHeight","250px"],["fxLayout","row",3,"colspan","rowspan",4,"ngFor","ngForOf"],["cols","3","rowHeight","330px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",1,"mt-2",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxLayout","row",3,"colspan","rowspan"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["fxFlex","100",4,"ngSwitchCase"],["fxFlex","100"],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxFlex","20"]],template:function(o,a){1&o&&(e.j41(0,"div",4),e.DNE(1,J2,2,1,"mat-grid-list",5),e.j41(2,"div",6),e.nrm(3,"fa-icon",7),e.j41(4,"span",8),e.EFF(5,"Network"),e.k0s()(),e.j41(6,"mat-grid-list",9),e.DNE(7,ig,8,10,"mat-grid-tile",10),e.k0s()(),e.DNE(8,ag,3,1,"ng-template",null,0,e.C5r)(10,sg,19,9,"ng-template",null,1,e.C5r)(12,og,19,9,"ng-template",null,2,e.C5r)(14,lg,16,7,"ng-template",null,3,e.C5r)),2&o&&(e.R7$(),e.Y8G("ngIf",a.selNode.settings.userPersona!==a.userPersonaEnum.OPERATOR),e.R7$(),e.Y8G("ngClass",e.eq3(4,Y2,a.screenSize!==a.screenSizeEnum.XS)),e.R7$(),e.Y8G("icon",a.faProjectDiagram),e.R7$(4),e.Y8G("ngForOf",a.networkCards))},dependencies:[_.YU,_.Sq,_.bT,_.T3,_.ux,_.e1,O.aY,k.RN,k.m2,Ce.B_,Ce.NS,V.HM,f.DJ,f.sA,f.UI,j.PW,Ue,He,qe,_.QX],encapsulation:2}))}return t(),s})();function cg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let pg=(()=>{var t;class s{constructor(i){this.router=i,this.faDownload=x.cbP,this.links=[{link:"bckup",name:"Backup"},{link:"restore",name:"Restore"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-backup"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Channels Backup"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,cg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faDownload),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();const mg=t=>({"overflow-auto error-border":t,"overflow-auto":!0}),ug=()=>["no_channel"],dg=t=>({"max-width":t}),hg=t=>({"display-none":t});function _g(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",24)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"div",26)(4,"button",27),e.bIt("click",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onRestoreChannels({}))}),e.EFF(5,"Restore All"),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function fg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s(),e.j41(3,"h4",29),e.EFF(4,"All channel backup file not found! To perform channel restoration, channel backup file/s must be placed at the above location."),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function gg(t,s){if(1&t&&(e.j41(0,"div",28)(1,"h4",25),e.EFF(2),e.k0s()()),2&t){const n=e.XpG();e.R7$(2),e.SpI("Restore folder location: ",n.selNode.settings.channelBackupPath,"/restore")}}function Cg(t,s){1&t&&e.nrm(0,"mat-progress-bar",30)}function yg(t,s){1&t&&(e.j41(0,"th",31),e.EFF(1,"Channel Point"),e.k0s())}function bg(t,s){if(1&t&&(e.j41(0,"td",32)(1,"div",33)(2,"span",34),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,dg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Fg(t,s){1&t&&(e.j41(0,"th",35)(1,"div",36),e.EFF(2,"Actions"),e.k0s()())}function xg(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",32)(1,"span",37)(2,"button",38),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onRestoreChannels(o))}),e.EFF(3,"Restore"),e.k0s()()()}}function vg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No singular channel backups available."),e.k0s())}function Tg(t,s){if(1&t&&(e.j41(0,"td",39),e.DNE(1,vg,2,0,"p",40),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",!n.channels||!n.channels.data||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)}}function kg(t,s){if(1&t&&e.nrm(0,"tr",41),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,hg,n.channels&&n.channels.data&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Sg(t,s){1&t&&e.nrm(0,"tr",42)}function Rg(t,s){1&t&&e.nrm(0,"tr",43)}let Eg=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.lndEffects=a,this.commonService=l,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.allRestoreExists=!1,this.flgLoading=[!0],this.selFilter="",this.screenSize="",this.screenSizeEnum=c.f7,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,T.$J)()),this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.lndEffects.setRestoreChannelList.pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.allRestoreExists=i.all_restore_exists,this.channelsData=i.files,this.channelsData.length>0&&this.loadRestoreTable(this.channelsData),("error"!==this.flgLoading[0]||i&&i.files)&&(this.flgLoading[0]=!1),this.logger.info(i)})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadRestoreTable(this.channelsData)}onRestoreChannels(i){this.store.dispatch((0,T.Lf)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadRestoreTable(i){this.channels=new u.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(me.L),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-restore-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:28,vars:16,consts:[["table",""],["fxLayout","column",1,"mt-2"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100"],["fxLayout","row",1,"mt-2"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","space-between start","fxLayout.gt-md","row wrap"],["fxFlex","100",1,"mt-1"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1),e.DNE(1,_g,6,1,"div",2)(2,fg,5,1,"div",3)(3,gg,3,1,"div",3),e.j41(4,"div",4),e.nrm(5,"div",5),e.j41(6,"div",6),e.nrm(7,"div",7),e.j41(8,"mat-form-field",8)(9,"mat-label"),e.EFF(10,"Filter"),e.k0s(),e.j41(11,"input",9),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(12,"div",10),e.DNE(13,Cg,1,0,"mat-progress-bar",11),e.j41(14,"table",12,0),e.qex(16,13),e.DNE(17,yg,2,0,"th",14)(18,bg,4,4,"td",15),e.bVm(),e.qex(19,16),e.DNE(20,Fg,3,0,"th",17)(21,xg,4,0,"td",15),e.bVm(),e.qex(22,18),e.DNE(23,Tg,2,1,"td",19),e.bVm(),e.DNE(24,kg,1,3,"tr",20)(25,Sg,1,0,"tr",21)(26,Rg,1,0,"tr",22),e.k0s()(),e.nrm(27,"mat-paginator",23),e.k0s()}2&o&&(e.R7$(),e.Y8G("ngIf",a.allRestoreExists),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&(!a.channels||(null==a.channels||null==a.channels.data?null:a.channels.data.length)<=0)),e.R7$(),e.Y8G("ngIf",!a.allRestoreExists&&a.channels&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)&&(null==a.channels||null==a.channels.data?null:a.channels.data.length)>0),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",!0===a.flgLoading[0]),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(13,mg,"error"===a.flgLoading[0])),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(15,ug)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();const Ig=t=>({"error-border":t}),Lg=()=>["no_channel"],wg=t=>({"max-width":t}),jg=t=>({"display-none":t});function Gg(t,s){1&t&&e.nrm(0,"mat-progress-bar",33)}function Dg(t,s){1&t&&(e.j41(0,"th",34),e.EFF(1,"Channel Point"),e.k0s())}function Ng(t,s){if(1&t&&(e.j41(0,"td",35)(1,"div",36)(2,"span",37),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,wg,i.screenSize===i.screenSizeEnum.XS?"25rem":"60rem")),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function Pg(t,s){1&t&&(e.j41(0,"th",38)(1,"div",39),e.EFF(2,"Actions"),e.k0s()())}function $g(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",40)(1,"div",39)(2,"mat-select",41),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",42),e.bIt("click",function(o){const a=r.eBV(n).$implicit,l=e.XpG();return r.Njj(l.onChannelClick(a,o))}),e.EFF(5,"View Info"),e.k0s(),e.j41(6,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onBackupChannels(o))}),e.EFF(7,"Backup"),e.k0s(),e.j41(8,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onDownloadBackup(o))}),e.EFF(9,"Download Backup"),e.k0s(),e.j41(10,"mat-option",42),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.onVerifyChannels(o))}),e.EFF(11,"Verify"),e.k0s()()()()}}function Ag(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"No channel available."),e.k0s())}function Mg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting channels..."),e.k0s())}function Bg(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.JRh(n.errorMessage)}}function Og(t,s){if(1&t&&(e.j41(0,"td",43),e.DNE(1,Ag,2,0,"p",44)(2,Mg,2,0,"p",44)(3,Bg,2,1,"p",44),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.channels&&n.channels.data)||(null==n.channels||null==n.channels.data?null:n.channels.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function Vg(t,s){if(1&t&&e.nrm(0,"tr",45),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(1,jg,(null==n.channels?null:n.channels.data)&&(null==n.channels||null==n.channels.data?null:n.channels.data.length)>0))}}function Yg(t,s){1&t&&e.nrm(0,"tr",46)}function Xg(t,s){1&t&&e.nrm(0,"tr",47)}let Ug=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.store=o,this.actions=a,this.commonService=l,this.faInfoCircle=x.iW_,this.faExclamationTriangle=x.zpE,this.faArchive=x.Oh6,this.pageSize=c.md,this.pageSizeOptions=c.xp,this.displayedColumns=["channel_point","actions"],this.channelsData=[],this.channels=new u.I6([]),this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(H._c).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=i.channels,this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadBackupTable(this.channelsData),this.logger.info(i)}),this.actions.pipe((0,g.Q)(this.unSubs[2]),(0,U.p)(i=>i.type===c.QP.SET_CHANNELS_LND||i.type===c.aU.SHOW_FILE)).subscribe(i=>{i.type===c.QP.SET_CHANNELS_LND&&(this.selectedChannel=null),i.type===c.aU.SHOW_FILE&&(this.commonService.downloadFile(i.payload,"channel-"+(this.selectedChannel?.channel_point?this.selectedChannel.channel_point:"all"),".bak",".bak"),this.selectedChannel=null)})}ngAfterViewInit(){this.channelsData.length>0&&this.loadBackupTable(this.channelsData)}onBackupChannels(i){this.store.dispatch((0,T.H2)({payload:{uiMessage:c.MZ.BACKUP_CHANNEL,channelPoint:i.channel_point?i.channel_point:"ALL",showMessage:""}}))}onVerifyChannels(i){this.store.dispatch((0,T.L)({payload:{channelPoint:i.channel_point?i.channel_point:"ALL"}}))}onDownloadBackup(i){this.selectedChannel=i,this.store.dispatch((0,I.t2)({payload:{channelPoint:i.channel_point?i.channel_point:"all"}}))}onChannelClick(i,o){this.store.dispatch((0,I.xO)({payload:{data:{channel:i,showCopy:!1,component:we}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}loadBackupTable(i){this.channels=new u.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,a)=>o[a]&&isNaN(o[a])?o[a].toLocaleLowerCase():o[a]?+o[a]:null,this.channels.paginator=this.paginator,this.channels.filterPredicate=(o,a)=>(o.channel_point?o.channel_point.toLowerCase():"").includes(a),this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU(L.il),e.rXU(K.En),e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-channel-backup-table"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:E.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:G.xX,useValue:(0,c.on)("Channels")}])],decls:46,vars:17,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","1",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","2",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["fxLayout","column","fxFlex","49"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"dataSource","ngClass"],["matColumnDef","channel_point"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Save your backup files in a redundant location."),e.k0s()(),e.j41(6,"div",5),e.nrm(7,"fa-icon",4),e.j41(8,"span")(9,"strong"),e.EFF(10,"Backup Folder Location: "),e.k0s(),e.EFF(11),e.k0s()(),e.j41(12,"div",6)(13,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerifyChannels({}))}),e.EFF(14,"Verify All"),e.k0s(),e.j41(15,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onBackupChannels({}))}),e.EFF(16,"Backup All"),e.k0s(),e.j41(17,"button",9),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onDownloadBackup({}))}),e.EFF(18,"Download Backup"),e.k0s()()(),e.j41(19,"div",10)(20,"div",11),e.nrm(21,"fa-icon",12),e.j41(22,"span",13),e.EFF(23,"Backups"),e.k0s()(),e.j41(24,"div",14),e.nrm(25,"div",15),e.j41(26,"mat-form-field",16)(27,"mat-label"),e.EFF(28,"Filter"),e.k0s(),e.j41(29,"input",17),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selFilter,m)||(a.selFilter=m),r.Njj(m)}),e.bIt("input",function(){return r.eBV(l),r.Njj(a.applyFilter())})("keyup",function(){return r.eBV(l),r.Njj(a.applyFilter())}),e.k0s()()()(),e.j41(30,"div",18),e.DNE(31,Gg,1,0,"mat-progress-bar",19),e.j41(32,"table",20,0),e.qex(34,21),e.DNE(35,Dg,2,0,"th",22)(36,Ng,4,4,"td",23),e.bVm(),e.qex(37,24),e.DNE(38,Pg,3,0,"th",25)(39,$g,12,0,"td",26),e.bVm(),e.qex(40,27),e.DNE(41,Og,4,3,"td",28),e.bVm(),e.DNE(42,Vg,1,3,"tr",29)(43,Yg,1,0,"tr",30)(44,Xg,1,0,"tr",31),e.k0s()(),e.nrm(45,"mat-paginator",32),e.k0s()}2&o&&(e.R7$(3),e.Y8G("icon",a.faExclamationTriangle),e.R7$(4),e.Y8G("icon",a.faInfoCircle),e.R7$(4),e.SpI("",a.selNode.settings.channelBackupPath,"."),e.R7$(10),e.Y8G("icon",a.faArchive),e.R7$(8),e.R50("ngModel",a.selFilter),e.R7$(2),e.Y8G("ngIf",a.apiCallStatus.status===a.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("dataSource",a.channels)("ngClass",e.eq3(14,Ig,""!==a.errorMessage)),e.R7$(10),e.Y8G("matFooterRowDef",e.lJ4(16,Lg)),e.R7$(),e.Y8G("matHeaderRowDef",a.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",a.displayedColumns),e.R7$(),e.Y8G("pageSize",a.pageSize)("pageSizeOptions",a.pageSizeOptions)("showFirstLastButtons",a.screenSize!==a.screenSizeEnum.XS))},dependencies:[_.YU,_.bT,_.B3,d.me,d.BC,d.vS,O.aY,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,E.$2,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.Ld],encapsulation:2}))}return t(),s})();function Hg(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",9),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG();return r.Njj(a.activeLink=o.link)}),e.EFF(1),e.k0s()}if(2&t){const n=s.$implicit,i=e.XpG();e.Y8G("routerLink",e.mNQ(n.link))("active",i.activeLink===n.link),e.R7$(),e.JRh(n.name)}}let qg=(()=>{var t;class s{constructor(i){this.router=i,this.faUserCheck=x.pCJ,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new h.B,new h.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(o=>o instanceof w.gx)).subscribe({next:o=>{const a=this.links.find(l=>o.urlAfterRedirects.includes(l.link));this.activeLink=a?a.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(w.Ix))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign-verify-message"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,a){if(1&o&&(e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Sign/Verify Message"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Hg,2,4,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8),e.nrm(12,"router-outlet"),e.k0s()()()()),2&o){const l=e.sdS(10);e.R7$(),e.Y8G("icon",a.faUserCheck),e.R7$(6),e.Y8G("tabPanel",l),e.R7$(),e.Y8G("ngForOf",a.links)}},dependencies:[_.Sq,O.aY,k.RN,k.m2,f.DJ,f.sA,f.UI,A.Bu,A.hQ,A.Ql,w.n3,ie.Wk],encapsulation:2}))}return t(),s})();function zg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}let Jg=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new h.B,new h.B]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.signedMessage=this.message,this.signature=i.signature})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(i){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+i)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-sign"]],standalone:!1,decls:22,vars:5,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"signature-box","bordered-box","read-only"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",1)(1,"form",2,0)(3,"mat-form-field",3)(4,"mat-label"),e.EFF(5,"Message to sign"),e.k0s(),e.j41(6,"textarea",4),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onMessageChange())}),e.k0s(),e.DNE(7,zg,2,0,"mat-error",5),e.k0s(),e.j41(8,"div",6)(9,"button",7),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(10,"Clear Field"),e.k0s(),e.j41(11,"button",8),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onSign())}),e.EFF(12,"Sign"),e.k0s()(),e.nrm(13,"mat-divider",9),e.j41(14,"div",10)(15,"p"),e.EFF(16,"Generated Signature"),e.k0s()(),e.j41(17,"div",11),e.EFF(18),e.k0s(),e.j41(19,"div",12)(20,"button",13),e.bIt("copied",function(m){return r.eBV(l),r.Njj(a.onCopyField(m))}),e.EFF(21,"Copy Signature"),e.k0s()()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(6),e.Y8G("inset",!0),e.R7$(5),e.JRh(a.signature),e.R7$(2),e.Y8G("payload",a.signature))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],styles:[".signature-box[_ngcontent-%COMP%]{padding:1rem}"]}))}return t(),s})();function Qg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Message is required."),e.k0s())}function Wg(t,s){1&t&&(e.j41(0,"mat-error"),e.EFF(1,"Signature is required."),e.k0s())}function Zg(t,s){1&t&&(e.j41(0,"p",13)(1,"mat-icon",14),e.EFF(2,"close"),e.k0s(),e.EFF(3,"Verification failed, please check message and signature"),e.k0s())}function Kg(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Pubkey Used"),e.k0s())}function e4(t,s){if(1&t&&(e.j41(0,"div",20)(1,"p"),e.EFF(2),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(2),e.JRh(null==n.verifyRes?null:n.verifyRes.pubkey)}}function t4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",21)(1,"button",22),e.bIt("copied",function(o){r.eBV(n);const a=e.XpG(2);return r.Njj(a.onCopyField(o))}),e.EFF(2,"Copy Pubkey"),e.k0s()()}if(2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payload",null==n.verifyRes?null:n.verifyRes.pubkey)}}function n4(t,s){if(1&t&&(e.j41(0,"div",15),e.nrm(1,"mat-divider",16),e.j41(2,"div",17),e.DNE(3,Kg,2,0,"p",6),e.k0s(),e.DNE(4,e4,3,1,"div",18)(5,t4,3,1,"div",19),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("inset",!0),e.R7$(2),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid),e.R7$(),e.Y8G("ngIf",n.verifyRes.valid)}}let i4=(()=>{var t;class s{constructor(i,o,a){this.dataService=i,this.snackBar=o,this.logger=a,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null},this.unSubs=[new h.B,new h.B]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.verifyRes=i,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",valid:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(i){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u),e.rXU(le.UG),e.rXU(D.gP))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-verify"]],standalone:!1,decls:21,vars:6,consts:[["form","ngForm"],["sign","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","signature","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2",3,"inset"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-form-field",4)(4,"mat-label"),e.EFF(5,"Message to verify"),e.k0s(),e.j41(6,"textarea",5),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.message,m)||(a.message=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(7,Qg,2,0,"mat-error",6),e.k0s(),e.j41(8,"mat-form-field",4)(9,"mat-label"),e.EFF(10,"Signature provided"),e.k0s(),e.j41(11,"input",7,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.signature,m)||(a.signature=m),r.Njj(m)}),e.bIt("keyup",function(){return r.eBV(l),r.Njj(a.onChange())}),e.k0s(),e.DNE(13,Wg,2,0,"mat-error",6),e.k0s(),e.DNE(14,Zg,4,0,"p",8),e.j41(15,"div",9)(16,"button",10),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(17,"Clear Fields"),e.k0s(),e.j41(18,"button",11),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onVerify())}),e.EFF(19,"Verify"),e.k0s()(),e.DNE(20,n4,6,4,"div",12),e.k0s()()}2&o&&(e.R7$(6),e.R50("ngModel",a.message),e.R7$(),e.Y8G("ngIf",!a.message),e.R7$(4),e.R50("ngModel",a.signature),e.R7$(2),e.Y8G("ngIf",!a.signature),e.R7$(),e.Y8G("ngIf",a.showVerifyStatus&&!a.verifyRes.valid),e.R7$(6),e.Y8G("ngIf",a.showVerifyStatus&&a.verifyRes.valid))},dependencies:[_.bT,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,oe.An,M.fg,C.rl,C.nJ,C.TL,ne.q,f.DJ,f.sA,f.UI,be.U,te.N],encapsulation:2}))}return t(),s})();var a4=y(90013),P=y(17186);const s4=()=>["all"],o4=()=>["no_non_routing_event"],ke=t=>({"max-width":t}),l4=t=>({"display-none":t});function r4(t,s){if(1&t&&(e.j41(0,"div",5),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.errorMessage)}}function c4(t,s){if(1&t&&(e.j41(0,"mat-option",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(3);e.Y8G("value",n),e.R7$(),e.JRh(i.getLabel(n))}}function p4(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",10)(1,"div",11),e.EFF(2,"Non Routing Peers"),e.k0s(),e.j41(3,"div",12)(4,"mat-form-field",13)(5,"mat-label"),e.EFF(6,"Filter By"),e.k0s(),e.j41(7,"mat-select",14),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilterBy,o)||(a.selFilterBy=o),r.Njj(o)}),e.bIt("selectionChange",function(){r.eBV(n);const o=e.XpG(2);return o.selFilter="",r.Njj(o.applyFilter())}),e.j41(8,"perfect-scrollbar"),e.DNE(9,c4,2,2,"mat-option",15),e.k0s()()(),e.j41(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Filter"),e.k0s(),e.j41(13,"input",16),e.mxI("ngModelChange",function(o){r.eBV(n);const a=e.XpG(2);return e.DH7(a.selFilter,o)||(a.selFilter=o),r.Njj(o)}),e.bIt("input",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())})("keyup",function(){r.eBV(n);const o=e.XpG(2);return r.Njj(o.applyFilter())}),e.k0s()()()()}if(2&t){const n=e.XpG(2);e.R7$(7),e.R50("ngModel",n.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(3,s4).concat(n.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",n.selFilter)}}function m4(t,s){1&t&&e.nrm(0,"mat-progress-bar",50)}function u4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel ID"),e.k0s())}function d4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.chan_id)}}function h4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Alias"),e.k0s())}function _4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_alias)}}function f4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Peer Pubkey"),e.k0s())}function g4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.remote_pubkey)}}function C4(t,s){1&t&&(e.j41(0,"th",51),e.EFF(1,"Channel Point"),e.k0s())}function y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"div",53)(2,"span",54),e.EFF(3),e.k0s()()()),2&t){const n=s.$implicit,i=e.XpG(3);e.R7$(),e.Y8G("ngStyle",e.eq3(2,ke,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),e.R7$(2),e.JRh(null==n?null:n.channel_point)}}function b4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Uptime (",n.timeUnit,")")}}function F4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.uptime_str," ")}}function x4(t,s){if(1&t&&(e.j41(0,"th",55),e.EFF(1),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.SpI("Lifetime (",n.timeUnit,")")}}function v4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",n.lifetime_str," ")}}function T4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Fee (Sats)"),e.k0s())}function k4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_fee)," ")}}function S4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Commit Weight"),e.k0s())}function R4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.commit_weight)," ")}}function E4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Fee/KW"),e.k0s())}function I4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.fee_per_kw)," ")}}function L4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Updates"),e.k0s())}function w4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.num_updates)," ")}}function j4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Unsettled Balance (Sats)"),e.k0s())}function G4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.unsettled_balance)," ")}}function D4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Capacity (Sats)"),e.k0s())}function N4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.capacity)," ")}}function P4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Reserve (Sats)"),e.k0s())}function $4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.local_chan_reserve_sat)," ")}}function A4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Reserve (Sats)"),e.k0s())}function M4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.SpI("",e.bMT(3,1,n.remote_chan_reserve_sat)," ")}}function B4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Sent"),e.k0s())}function O4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_sent))}}function V4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Sats Received"),e.k0s())}function Y4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.total_satoshis_received))}}function X4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Local Balance (Sats)"),e.k0s())}function U4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.local_balance))}}function H4(t,s){1&t&&(e.j41(0,"th",55),e.EFF(1,"Remote Balance (Sats)"),e.k0s())}function q4(t,s){if(1&t&&(e.j41(0,"td",52)(1,"span",56),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&t){const n=s.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,n.remote_balance))}}function z4(t,s){1&t&&(e.j41(0,"th",57)(1,"div",58),e.EFF(2,"Actions"),e.k0s()())}function J4(t,s){if(1&t){const n=e.RV6();e.j41(0,"td",59)(1,"button",60),e.bIt("click",function(){const o=r.eBV(n).$implicit,a=e.XpG(3);return r.Njj(a.onManagePeer(o))}),e.EFF(2,"Manage"),e.k0s()()}}function Q4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"All peers are routing."),e.k0s())}function W4(t,s){1&t&&(e.j41(0,"p"),e.EFF(1,"Getting non routing peers..."),e.k0s())}function Z4(t,s){if(1&t&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&t){const n=e.XpG(4);e.R7$(),e.JRh(n.errorMessage)}}function K4(t,s){if(1&t&&(e.j41(0,"td",61),e.DNE(1,Q4,2,0,"p",62)(2,W4,2,0,"p",62)(3,Z4,2,1,"p",62),e.k0s()),2&t){const n=e.XpG(3);e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.COMPLETED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("ngIf",(!(null!=n.nonRoutingPeers&&n.nonRoutingPeers.data)||(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)<1)&&n.apiCallStatus.status===n.apiCallStatusEnum.ERROR)}}function eC(t,s){if(1&t&&e.nrm(0,"tr",63),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,l4,(null==n.nonRoutingPeers||null==n.nonRoutingPeers.data?null:n.nonRoutingPeers.data.length)>0))}}function tC(t,s){1&t&&e.nrm(0,"tr",64)}function nC(t,s){1&t&&e.nrm(0,"tr",65)}function iC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,m4,1,0,"mat-progress-bar",19),e.j41(2,"table",20,1),e.qex(4,21),e.DNE(5,u4,2,0,"th",22)(6,d4,4,4,"td",23),e.bVm(),e.qex(7,24),e.DNE(8,h4,2,0,"th",22)(9,_4,4,4,"td",23),e.bVm(),e.qex(10,25),e.DNE(11,f4,2,0,"th",22)(12,g4,4,4,"td",23),e.bVm(),e.qex(13,26),e.DNE(14,C4,2,0,"th",22)(15,y4,4,4,"td",23),e.bVm(),e.qex(16,27),e.DNE(17,b4,2,1,"th",28)(18,F4,3,1,"td",23),e.bVm(),e.qex(19,29),e.DNE(20,x4,2,1,"th",28)(21,v4,3,1,"td",23),e.bVm(),e.qex(22,30),e.DNE(23,T4,2,0,"th",28)(24,k4,4,3,"td",23),e.bVm(),e.qex(25,31),e.DNE(26,S4,2,0,"th",28)(27,R4,4,3,"td",23),e.bVm(),e.qex(28,32),e.DNE(29,E4,2,0,"th",28)(30,I4,4,3,"td",23),e.bVm(),e.qex(31,33),e.DNE(32,L4,2,0,"th",28)(33,w4,4,3,"td",23),e.bVm(),e.qex(34,34),e.DNE(35,j4,2,0,"th",28)(36,G4,4,3,"td",23),e.bVm(),e.qex(37,35),e.DNE(38,D4,2,0,"th",28)(39,N4,4,3,"td",23),e.bVm(),e.qex(40,36),e.DNE(41,P4,2,0,"th",28)(42,$4,4,3,"td",23),e.bVm(),e.qex(43,37),e.DNE(44,A4,2,0,"th",28)(45,M4,4,3,"td",23),e.bVm(),e.qex(46,38),e.DNE(47,B4,2,0,"th",28)(48,O4,4,3,"td",23),e.bVm(),e.qex(49,39),e.DNE(50,V4,2,0,"th",28)(51,Y4,4,3,"td",23),e.bVm(),e.qex(52,40),e.DNE(53,X4,2,0,"th",28)(54,U4,4,3,"td",23),e.bVm(),e.qex(55,41),e.DNE(56,H4,2,0,"th",28)(57,q4,4,3,"td",23),e.bVm(),e.qex(58,42),e.DNE(59,z4,3,0,"th",43)(60,J4,3,0,"td",44),e.bVm(),e.qex(61,45),e.DNE(62,K4,4,3,"td",46),e.bVm(),e.DNE(63,eC,1,3,"tr",47)(64,tC,1,0,"tr",48)(65,nC,1,0,"tr",49),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("ngIf",n.apiCallStatus.status===n.apiCallStatusEnum.INITIATED),e.R7$(),e.Y8G("matSortActive",n.tableSetting.sortBy)("matSortDirection",n.tableSetting.sortOrder)("dataSource",n.nonRoutingPeers),e.R7$(61),e.Y8G("matFooterRowDef",e.lJ4(7,o4)),e.R7$(),e.Y8G("matHeaderRowDef",n.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",n.displayedColumns)}}function aC(t,s){if(1&t&&(e.j41(0,"div",6),e.DNE(1,p4,14,4,"div",7)(2,iC,66,8,"div",8),e.nrm(3,"mat-paginator",9,0),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("ngIf",""===n.errorMessage),e.R7$(),e.Y8G("pageSize",n.pageSize)("pageSizeOptions",n.pageSizeOptions)("showFirstLastButtons",n.screenSize!==n.screenSizeEnum.XS)}}let sC=(()=>{var t;class s{constructor(i,o,a,l,p,m,v){this.logger=i,this.commonService=o,this.store=a,this.router=l,this.activatedRoute=p,this.decimalPipe=m,this.camelCaseWithReplace=v,this.nodePageDefs=c._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"non_routing_peers",recordsPerPage:c.md,sortBy:"remote_alias",sortOrder:c.oi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.nonRoutingPeers=new u.I6([]),this.pageSize=c.md,this.pageSizeOptions=c.xp,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.selFilter="",this.activeChannels=[],this.timeUnit="mins:secs",this.apiCallStatus=null,this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B,new h.B,new h.B,new h.B,new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(F.$G).pipe((0,g.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||c.ZC.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===c.f7.XS||this.screenSize===c.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:c.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(F.Ie).pipe((0,g.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,i.apiCallStatus?.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=i.forwardingHistory.forwarding_events?i.forwardingHistory.forwarding_events:[],this.routingPeersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData),this.logger.info(i.apiCallStatus),this.logger.info(i.forwardingHistory)}),this.store.select(F.BM).pipe((0,g.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===c.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=i.channels,this.logger.info(i)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.loadNonRoutingPeersTable(this.routingPeersData)}calculateUptime(i){let m=60,v=1,b=0;switch(i.forEach(S=>{S.uptime&&+S.uptime>b&&(b=+S.uptime)}),!0){case b<3600:this.timeUnit="Mins:Secs",m=60,v=1;break;case b>=3600&&b<86400:this.timeUnit="Hrs:Mins",m=3600,v=60;break;case b>=86400&&b<31536e3:this.timeUnit="Days:Hrs",m=86400,v=3600;break;case b>31536e3:this.timeUnit="Yrs:Days",m=31536e3,v=86400;break;default:this.timeUnit="Mins:Secs",m=60,v=1}return i.forEach(S=>{S.uptime_str=S.uptime?this.decimalPipe.transform(Math.floor(+S.uptime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.uptime%m/v),"2.0-0"):"---",S.lifetime_str=S.lifetime?this.decimalPipe.transform(Math.floor(+S.lifetime/m),"2.0-0")+":"+this.decimalPipe.transform(Math.round(+S.lifetime%m/v),"2.0-0"):"---"}),i}onManagePeer(i){this.router.navigate(["../../","connections","channels","open"],{relativeTo:this.activatedRoute,state:{filterValue:i.chan_id}})}applyFilter(){this.nonRoutingPeers.filter=this.selFilter.toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(a=>a.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.nonRoutingPeers.filterPredicate=(i,o)=>{let a="";return a="all"===this.selFilterBy?JSON.stringify(i).toLowerCase():typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString(),a.includes(o)}}loadNonRoutingPeersTable(i){if(i.length>0){const o=this.calculateUptime(this.activeChannels?.filter(a=>i.findIndex(l=>l.chan_id_in===a.chan_id||l.chan_id_out===a.chan_id)<0));this.nonRoutingPeers=new u.I6(o),this.nonRoutingPeers.sort=this.sort,this.nonRoutingPeers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.nonRoutingPeers)}else this.nonRoutingPeers=new u.I6([]);this.applyFilter()}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(w.Ix),e.rXU(w.nX),e.rXU(_.QX),e.rXU(J.VD))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-non-routing-peers"]],viewQuery:function(o,a){if(1&o&&(e.GBs(R.B4,5),e.GBs(G.iy,5)),2&o){let l;e.mGM(l=e.lsd())&&(a.sort=l.first),e.mGM(l=e.lsd())&&(a.paginator=l.first)}},standalone:!1,features:[e.Jv_([{provide:G.xX,useValue:(0,c.on)("Non routing peers")}])],decls:3,vars:2,consts:[["paginator",""],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","chan_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","remote_alias"],["matColumnDef","remote_pubkey"],["matColumnDef","channel_point"],["matColumnDef","uptime_str"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","lifetime_str"],["matColumnDef","commit_fee"],["matColumnDef","commit_weight"],["matColumnDef","fee_per_kw"],["matColumnDef","num_updates"],["matColumnDef","unsettled_balance"],["matColumnDef","capacity"],["matColumnDef","local_chan_reserve_sat"],["matColumnDef","remote_chan_reserve_sat"],["matColumnDef","total_satoshis_sent"],["matColumnDef","total_satoshis_received"],["matColumnDef","local_balance"],["matColumnDef","remote_balance"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_non_routing_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,a){1&o&&(e.j41(0,"div",2),e.DNE(1,r4,2,1,"div",3)(2,aC,5,5,"div",4),e.k0s()),2&o&&(e.R7$(),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage))},dependencies:[_.YU,_.Sq,_.bT,_.B3,d.me,d.BC,d.vS,N.$z,M.fg,C.rl,C.nJ,V.HM,f.DJ,f.sA,f.UI,j.PW,j.eI,E.VO,X.wT,R.B4,R.aE,u.Zl,u.tL,u.ji,u.cC,u.YV,u.iL,u.Zq,u.xW,u.KS,u.$R,u.Qo,u.YZ,u.NB,u.iF,G.iy,B.ZF,B.Ld,_.QX],encapsulation:2}))}return t(),s})();var pt=y(83838);let oC=(()=>{var t;class s{constructor(i){this.dataService=i,this.paths="",this.unSubs=[new h.B,new h.B]}ngOnInit(){if(this.payment.htlcs&&this.payment.htlcs[0]&&this.payment.htlcs[0].route&&this.payment.htlcs[0].route.hops&&this.payment.htlcs[0].route.hops.length>0){const i=this.payment.htlcs[0].route.hops?.reduce((o,a)=>""===o&&a.pub_key?a.pub_key:o+","+a.pub_key,"");this.dataService.getAliasesFromPubkeys(i,!0).pipe((0,g.Q)(this.unSubs[0])).subscribe(o=>{this.paths=o?.reduce((a,l)=>""===a?l:a+"\n"+l,"")})}this.payment.payment_request&&""!==this.payment.payment_request.trim()&&this.dataService.decodePayment(this.payment.payment_request,!1).pipe((0,W.s)(1)).subscribe(i=>{i&&i.description&&""!==i.description&&(this.payment.description=i.description)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(Z.u))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-payment-lookup"]],inputs:{payment:"payment"},standalone:!1,decls:66,vars:20,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","50"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"mat-card-content",1)(2,"div",2)(3,"h4",3),e.EFF(4,"Payment Hash"),e.k0s(),e.j41(5,"span",4),e.EFF(6),e.k0s()(),e.nrm(7,"mat-divider",5),e.j41(8,"div",2)(9,"h4",3),e.EFF(10,"Payment Preimage"),e.k0s(),e.j41(11,"span",4)(12,"div"),e.EFF(13),e.k0s()()(),e.nrm(14,"mat-divider",5),e.j41(15,"div",2)(16,"h4",3),e.EFF(17,"Payment Request"),e.k0s(),e.j41(18,"span",4)(19,"div"),e.EFF(20),e.k0s()()(),e.nrm(21,"mat-divider",5),e.j41(22,"div",2)(23,"h4",3),e.EFF(24,"Description"),e.k0s(),e.j41(25,"span",4)(26,"div"),e.EFF(27),e.k0s()()(),e.nrm(28,"mat-divider",5),e.j41(29,"div",6)(30,"div",7)(31,"h4",3),e.EFF(32,"Status"),e.k0s(),e.j41(33,"span",4)(34,"div"),e.EFF(35),e.k0s()()(),e.j41(36,"div",7)(37,"h4",3),e.EFF(38,"Creation Date"),e.k0s(),e.j41(39,"span",4)(40,"div"),e.EFF(41),e.k0s()()()(),e.nrm(42,"mat-divider",5),e.j41(43,"div",6)(44,"div",7)(45,"h4",3),e.EFF(46,"Value (mSats)"),e.k0s(),e.j41(47,"span",4)(48,"div"),e.EFF(49),e.nI1(50,"number"),e.k0s()()(),e.j41(51,"div",7)(52,"h4",3),e.EFF(53,"Fee (mSats)"),e.k0s(),e.j41(54,"span",4)(55,"div"),e.EFF(56),e.nI1(57,"number"),e.k0s()()()(),e.nrm(58,"mat-divider",5),e.j41(59,"div",2)(60,"h4",3),e.EFF(61,"Path"),e.k0s(),e.j41(62,"span",4)(63,"div"),e.EFF(64),e.k0s()()(),e.nrm(65,"mat-divider",5),e.k0s()()),2&o&&(e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_hash),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_preimage),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.payment_request),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.payment?null:a.payment.description),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(null==a.payment?null:a.payment.status),e.R7$(6),e.JRh(null==a.payment?null:a.payment.creation_date),e.R7$(),e.Y8G("inset",!0),e.R7$(7),e.JRh(e.bMT(50,16,null==a.payment?null:a.payment.value_msat)),e.R7$(7),e.JRh(e.bMT(57,18,null==a.payment?null:a.payment.fee_msat)),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(a.paths),e.R7$(),e.Y8G("inset",!0))},dependencies:[k.m2,ne.q,f.DJ,f.sA,f.UI,_.QX],encapsulation:2}))}return t(),s})();var lC=y(38288);const mt=t=>({"display-none":t}),Me=t=>({"mr-0":t});function rC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function cC(t,s){1&t&&(e.j41(0,"span",23),e.EFF(1,"N/A"),e.k0s())}function pC(t,s){if(1&t&&e.nrm(0,"qr-code",22),2&t){const n=e.XpG();e.Y8G("value",null==n.invoice?null:n.invoice.payment_request)("size",n.qrWidth)}}function mC(t,s){1&t&&(e.j41(0,"span",24),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function uC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}function dC(t,s){1&t&&(e.qex(0),e.EFF(1," (zero amount) "),e.bVm())}function hC(t,s){if(1&t&&e.nrm(0,"span",38),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function _C(t,s){if(1&t&&e.nrm(0,"span",39),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function fC(t,s){if(1&t&&e.nrm(0,"span",40),2&t){const n=e.XpG(3);e.Y8G("ngClass",e.eq3(1,Me,n.screenSize===n.screenSizeEnum.XS))}}function gC(t,s){if(1&t&&(e.j41(0,"div",27)(1,"div",32)(2,"span",33),e.DNE(3,hC,1,3,"span",34)(4,_C,1,3,"span",35)(5,fC,1,3,"span",36),e.EFF(6),e.k0s(),e.j41(7,"span",37),e.EFF(8),e.nI1(9,"number"),e.k0s()(),e.nrm(10,"mat-divider",16),e.k0s()),2&t){const n=s.$implicit,i=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SETTLED"===n.state),e.R7$(),e.Y8G("ngIf","ACCEPTED"===n.state),e.R7$(),e.Y8G("ngIf","CANCELED"===n.state),e.R7$(),e.SpI(" ",n.chan_id," "),e.R7$(2),e.JRh(e.i5U(9,6,+n.amt_msat/1e3||0,i.getDecimalFormat(n))),e.R7$(2),e.Y8G("inset",!0)}}function CC(t,s){if(1&t){const n=e.RV6();e.j41(0,"div",11)(1,"mat-expansion-panel",25),e.bIt("opened",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.flgOpened=!0)})("closed",function(){r.eBV(n);const o=e.XpG();return r.Njj(o.onExpansionClosed())}),e.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",26),e.EFF(5,"HTLCs"),e.k0s()()(),e.j41(6,"div",27)(7,"div",28)(8,"span",29),e.EFF(9,"Channel ID"),e.k0s(),e.j41(10,"span",30),e.EFF(11,"Amount (Sats)"),e.k0s()(),e.nrm(12,"mat-divider",16),e.DNE(13,gC,11,9,"div",31),e.k0s()()()}if(2&t){const n=e.XpG();e.R7$(12),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngForOf",null==n.invoice?null:n.invoice.htlcs)}}function yC(t,s){1&t&&e.nrm(0,"mat-divider",16),2&t&&e.Y8G("inset",!0)}let bC=(()=>{var t;class s{constructor(i){this.commonService=i,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=c.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===c.f7.XS&&(this.qrWidth=220)}getDecimalFormat(i){return i.amt_msat<1e3?"1.0-4":"1.0-0"}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU($.h))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-invoice-lookup"]],inputs:{invoice:"invoice"},standalone:!1,decls:90,vars:45,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","20",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","80"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"perfectScrollbar"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],["fxFlex","33"],["fxLayout","row",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(o,a){1&o&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rC,1,2,"qr-code",2)(3,cC,2,0,"span",3),e.k0s(),e.j41(4,"div",4)(5,"mat-card-content",5)(6,"div",6)(7,"div",7),e.DNE(8,pC,1,2,"qr-code",2)(9,mC,2,0,"span",8),e.k0s(),e.DNE(10,uC,1,1,"mat-divider",9),e.j41(11,"div",10)(12,"div",11)(13,"div",12)(14,"h4",13),e.EFF(15),e.k0s(),e.j41(16,"span",14),e.EFF(17),e.nI1(18,"number"),e.DNE(19,dC,2,0,"ng-container",15),e.k0s()(),e.j41(20,"div",12)(21,"h4",13),e.EFF(22,"Amount Settled"),e.k0s(),e.j41(23,"span",14)(24,"div"),e.EFF(25),e.nI1(26,"number"),e.k0s()()()(),e.nrm(27,"mat-divider",16),e.j41(28,"div",11)(29,"div",12)(30,"h4",13),e.EFF(31,"Date Created"),e.k0s(),e.j41(32,"span",14),e.EFF(33),e.nI1(34,"date"),e.k0s()(),e.j41(35,"div",12)(36,"h4",13),e.EFF(37,"Date Settled"),e.k0s(),e.j41(38,"span",14),e.EFF(39),e.nI1(40,"date"),e.k0s()()(),e.nrm(41,"mat-divider",16),e.j41(42,"div",11)(43,"div",17)(44,"h4",13),e.EFF(45,"Memo"),e.k0s(),e.j41(46,"span",14),e.EFF(47),e.k0s()()(),e.nrm(48,"mat-divider",16),e.j41(49,"div",11)(50,"div",17)(51,"h4",13),e.EFF(52,"Payment Request"),e.k0s(),e.j41(53,"span",18),e.EFF(54),e.k0s()()(),e.nrm(55,"mat-divider",16),e.j41(56,"div",11)(57,"div",17)(58,"h4",13),e.EFF(59,"Payment Hash"),e.k0s(),e.j41(60,"span",18),e.EFF(61),e.k0s()()(),e.j41(62,"div"),e.nrm(63,"mat-divider",16),e.j41(64,"div",11)(65,"div",17)(66,"h4",13),e.EFF(67,"Preimage"),e.k0s(),e.j41(68,"span",18),e.EFF(69),e.k0s()()(),e.nrm(70,"mat-divider",16),e.j41(71,"div",11)(72,"div",19)(73,"h4",13),e.EFF(74,"State"),e.k0s(),e.j41(75,"span",18),e.EFF(76),e.k0s()(),e.j41(77,"div",20)(78,"h4",13),e.EFF(79,"Expiry"),e.k0s(),e.j41(80,"span",18),e.EFF(81),e.k0s()(),e.j41(82,"div",20)(83,"h4",13),e.EFF(84,"Private Routing Hints"),e.k0s(),e.j41(85,"span",18),e.EFF(86),e.k0s()()(),e.nrm(87,"mat-divider",16),e.DNE(88,CC,14,2,"div",21)(89,yC,1,1,"mat-divider",9),e.k0s()()()()()()),2&o&&(e.R7$(),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(41,mt,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(4),e.Y8G("fxLayoutAlign",null!=a.invoice&&a.invoice.payment_request&&""!==(null==a.invoice?null:a.invoice.payment_request)?"center start":"center center")("ngClass",e.eq3(43,mt,a.screenSize!==a.screenSizeEnum.XS&&a.screenSize!==a.screenSizeEnum.SM)),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.payment_request)&&""!==(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.payment_request)||""===(null==a.invoice?null:a.invoice.payment_request)),e.R7$(),e.Y8G("ngIf",a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM),e.R7$(5),e.JRh(a.screenSize===a.screenSizeEnum.XS?"Amount":"Amount Requested"),e.R7$(2),e.SpI("",e.bMT(18,31,(null==a.invoice?null:a.invoice.value)||0)," Sats"),e.R7$(2),e.Y8G("ngIf",!(null!=a.invoice&&a.invoice.value)||"0"===(null==a.invoice?null:a.invoice.value)),e.R7$(6),e.SpI("",e.bMT(26,33,null==a.invoice?null:a.invoice.amt_paid_sat)," Sats"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(e.i5U(34,35,1e3*(null==a.invoice?null:a.invoice.creation_date),"dd/MMM/y HH:mm")),e.R7$(6),e.JRh(0!=+(null==a.invoice?null:a.invoice.settle_date)?e.i5U(40,38,1e3*+(null==a.invoice?null:a.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.memo),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.payment_request)||"N/A"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_hash)||""),e.R7$(2),e.Y8G("inset",!0),e.R7$(6),e.JRh((null==a.invoice?null:a.invoice.r_preimage)||"-"),e.R7$(),e.Y8G("inset",!0),e.R7$(6),e.JRh(null==a.invoice?null:a.invoice.state),e.R7$(5),e.JRh(null==a.invoice?null:a.invoice.expiry),e.R7$(5),e.JRh(null!=a.invoice&&a.invoice.private?"Yes":"No"),e.R7$(),e.Y8G("inset",!0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0),e.R7$(),e.Y8G("ngIf",(null==a.invoice?null:a.invoice.htlcs)&&(null==a.invoice?null:a.invoice.htlcs.length)>0))},dependencies:[_.YU,_.Sq,_.bT,k.m2,q.GK,q.Z2,q.WN,ne.q,f.DJ,f.sA,f.UI,j.PW,ee.oV,lC.Um,B.Ld,_.QX,_.vh],encapsulation:2}))}return t(),s})();const FC=t=>({"mt-1":!0,"mt-2":t}),xC=t=>({"w-100 mt-2 p-2 error-border":t,"w-100 my-2 p-2":!0});function vC(t,s){if(1&t&&(e.j41(0,"mat-radio-button",17),e.EFF(1),e.k0s()),2&t){const n=s.$implicit,i=e.XpG();e.Y8G("value",n.id)("checked",i.selectedFieldId===n.id),e.R7$(),e.SpI(" ",n.name," ")}}function TC(t,s){if(1&t&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.SpI("",null==n.lookupFields[n.selectedFieldId]?null:n.lookupFields[n.selectedFieldId].placeholder," is required.")}}function kC(t,s){1&t&&e.nrm(0,"mat-progress-bar",20)}function SC(t,s){if(1&t&&(e.j41(0,"div",18),e.DNE(1,kC,1,0,"mat-progress-bar",19),e.EFF(2),e.k0s()),2&t){const n=e.XpG();e.Y8G("ngClass",e.eq3(3,xC,""!==n.errorMessage&&"Getting lookup details..."!==n.errorMessage)),e.R7$(),e.Y8G("ngIf","Getting lookup details..."===n.errorMessage),e.R7$(),e.SpI(" ",n.errorMessage," ")}}function RC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-payment-lookup",28),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("payment",n.lookupValue)}}function EC(t,s){if(1&t&&(e.j41(0,"span",27),e.nrm(1,"rtl-invoice-lookup",29),e.k0s()),2&t){const n=e.XpG(2);e.R7$(),e.Y8G("invoice",n.lookupValue)}}function IC(t,s){1&t&&(e.j41(0,"span"),e.EFF(1,' fxFlex="100"'),e.j41(2,"h3"),e.EFF(3,"Error! Unable to find details!"),e.k0s()())}function LC(t,s){if(1&t&&(e.j41(0,"div",21)(1,"div",22)(2,"span",23),e.EFF(3),e.k0s()(),e.j41(4,"div",24),e.DNE(5,RC,2,1,"span",25)(6,EC,2,1,"span",25)(7,IC,4,0,"span",26),e.k0s()()),2&t){const n=e.XpG();e.R7$(3),e.SpI("",n.lookupFields[n.selectedFieldId].name," Details"),e.R7$(),e.Y8G("ngSwitch",n.selectedFieldId),e.R7$(),e.Y8G("ngSwitchCase",0),e.R7$(),e.Y8G("ngSwitchCase",1)}}let wC=(()=>{var t;class s{constructor(i,o,a,l){this.logger=i,this.commonService=o,this.store=a,this.actions=l,this.lookupKey="",this.lookupValue={},this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Payment",placeholder:"Payment Hash"},{id:1,name:"Invoice",placeholder:"Payment Hash"}],this.faSearch=x.MjD,this.screenSize="",this.screenSizeEnum=c.f7,this.errorMessage="",this.apiCallStatusEnum=c.wn,this.unSubs=[new h.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,g.Q)(this.unSubs[0]),(0,U.p)(i=>i.type===c.QP.SET_LOOKUP_LND)).subscribe(i=>{this.flgSetLookupValue=!i.payload.error,this.lookupValue=JSON.parse(JSON.stringify(i.payload)),this.errorMessage=i.payload.error?this.commonService.extractErrorMessage(i.payload.error):"",this.logger.info(this.lookupValue)})}onLookup(){if(!this.lookupKey)return!0;switch(this.errorMessage="",this.flgSetLookupValue=!1,this.lookupValue={},this.selectedFieldId){case 0:this.store.dispatch((0,T.jk)({payload:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}));break;case 1:this.store.dispatch((0,T.Yi)({payload:{openSnackBar:!1,paymentHash:pt.Buffer.from(this.lookupKey.trim(),"hex").toString("base64")?.replace(/\+/g,"-")?.replace(/[/]/g,"_")}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.lookupKey="",this.lookupValue={},this.errorMessage=""}clearLookupValue(){this.lookupValue={},this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)(e.rXU(D.gP),e.rXU($.h),e.rXU(L.il),e.rXU(K.En))},this.\u0275cmp=e.VBU({type:s,selectors:[["rtl-lookup-transactions"]],standalone:!1,decls:21,vars:10,consts:[["form","ngForm"],["key",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass",4,"ngIf"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","row wrap","fxLayoutAlign","space-between center",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["mode","indeterminate"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mb-2"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[3,"payment"],[3,"invoice"]],template:function(o,a){if(1&o){const l=e.RV6();e.j41(0,"div",2)(1,"div",3)(2,"mat-card-content",4)(3,"form",5,0)(5,"div",6)(6,"mat-radio-group",7),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.selectedFieldId,m)||(a.selectedFieldId=m),r.Njj(m)}),e.bIt("change",function(m){return r.eBV(l),r.Njj(a.onSelectChange(m))}),e.DNE(7,vC,2,3,"mat-radio-button",8),e.k0s()(),e.j41(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10),e.k0s(),e.j41(11,"input",10,1),e.mxI("ngModelChange",function(m){return r.eBV(l),e.DH7(a.lookupKey,m)||(a.lookupKey=m),r.Njj(m)}),e.bIt("change",function(){return r.eBV(l),r.Njj(a.clearLookupValue())}),e.k0s(),e.DNE(13,TC,2,1,"mat-error",11),e.k0s(),e.j41(14,"div",12)(15,"button",13),e.bIt("click",function(){return r.eBV(l),r.Njj(a.resetData())}),e.EFF(16,"Clear"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){return r.eBV(l),r.Njj(a.onLookup())}),e.EFF(18,"Lookup"),e.k0s()()(),e.DNE(19,SC,3,5,"div",15)(20,LC,8,4,"div",16),e.k0s()()()}2&o&&(e.R7$(6),e.R50("ngModel",a.selectedFieldId),e.R7$(),e.Y8G("ngForOf",a.lookupFields),e.R7$(),e.Y8G("ngClass",e.eq3(8,FC,a.screenSize===a.screenSizeEnum.XS||a.screenSize===a.screenSizeEnum.SM)),e.R7$(2),e.JRh((null==a.lookupFields[a.selectedFieldId]?null:a.lookupFields[a.selectedFieldId].placeholder)||"Lookup Key"),e.R7$(),e.R50("ngModel",a.lookupKey),e.R7$(2),e.Y8G("ngIf",!a.lookupKey),e.R7$(6),e.Y8G("ngIf",""!==a.errorMessage),e.R7$(),e.Y8G("ngIf",""===a.errorMessage&&a.lookupValue&&a.flgSetLookupValue))},dependencies:[_.YU,_.Sq,_.bT,_.ux,_.e1,_.fG,d.qT,d.me,d.BC,d.cb,d.YS,d.vS,d.cV,N.$z,k.m2,M.fg,C.rl,C.nJ,C.TL,V.HM,de.VT,de._g,f.DJ,f.sA,f.UI,j.PW,oC,bC],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return t(),s})();const jC=[{path:"",component:Be,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Us,canActivate:[(0,P.jn)()]},{path:"wallet",component:Ld,canActivate:[P.q_]},{path:"onchain",component:r2,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:m2,canActivate:[(0,P.jn)()]},{path:"send/:selTab",component:rt,data:{sweepAll:!1},canActivate:[(0,P.jn)()]},{path:"sweep/:selTab",component:rt,data:{sweepAll:!0},canActivate:[(0,P.jn)()]}]},{path:"connections",component:zs,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:gl,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:V1,canActivate:[(0,P.jn)()]},{path:"pending",component:km,canActivate:[(0,P.jn)()]},{path:"closed",component:du,canActivate:[(0,P.jn)()]},{path:"activehtlcs",component:sd,canActivate:[(0,P.jn)()]}]},{path:"peers",component:ul,data:{sweepAll:!1},canActivate:[(0,P.jn)()]}]},{path:"transactions",component:jd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Ye,canActivate:[(0,P.jn)()]},{path:"invoices",component:Ve,canActivate:[(0,P.jn)()]},{path:"lookuptransactions",component:wC,canActivate:[(0,P.jn)()]}]},{path:"messages",component:qg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:Jg,canActivate:[(0,P.jn)()]},{path:"verify",component:i4,canActivate:[(0,P.jn)()]}]},{path:"channelbackup",component:pg,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"bckup"},{path:"bckup",component:Ug,canActivate:[(0,P.jn)()]},{path:"restore",component:Eg,canActivate:[(0,P.jn)()]}]},{path:"routing",component:Mh,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:it,canActivate:[(0,P.jn)()]},{path:"peers",component:p0,canActivate:[(0,P.jn)()]},{path:"nonroutingprs",component:sC,canActivate:[(0,P.jn)()]}]},{path:"reports",component:u0,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:F0,canActivate:[(0,P.jn)()]},{path:"transactions",component:D0,canActivate:[(0,P.jn)()]}]},{path:"graph",component:Dd,canActivate:[(0,P.jn)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"queryroutes",component:lh,canActivate:[(0,P.jn)()]}]},{path:"lookups",component:nt,canActivate:[(0,P.jn)()]},{path:"network",component:rg,canActivate:[(0,P.jn)()]},{path:"**",component:a4.X},{path:"rates",redirectTo:"network"}]}],GC=ie.iI.forChild(jC);var DC=y(19029);let NC=(()=>{var t;class s{static#e=t=()=>(this.\u0275fac=function(o){return new(o||s)},this.\u0275mod=e.$C({type:s,bootstrap:[Be]}),this.\u0275inj=r.G2t({imports:[_.MD,DC.G,GC]}))}return t(),s})()}}]); \ No newline at end of file diff --git a/frontend/193.5eec0042e2c6f1a7.js b/frontend/193.5eec0042e2c6f1a7.js new file mode 100644 index 00000000..2beeb400 --- /dev/null +++ b/frontend/193.5eec0042e2c6f1a7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[193],{5837(c1,j,t){t.d(j,{f:()=>U});var e=t(1413),T=t(6977),f=t(4416),c=t(9647),l=t(3664),B=t(2571),b=t(9640),P=t(2200),w=t(2629),S=t(2920),a=t(455),N=t(6850);function k(C,x){if(1&C&&(l.j41(0,"mat-icon",10),l.EFF(1,"info_outline"),l.k0s()),2&C){const v=l.XpG().$implicit;l.Y8G("matTooltip",v.tooltip)}}function R(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit;l.R7$(),l.SpI(" ",l.i5U(2,1,v.dataValue,"1.0-0")," ")}}function V(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit,n=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,v[n.currencyUnitEnum.BTC],n.currencyUnitFormats.BTC)," ")}}function O(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit,n=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,v[n.currencyUnitEnum.OTHER],n.currencyUnitFormats.OTHER)," ")}}function A(C,x){if(1&C&&(l.j41(0,"div",6)(1,"div",7),l.EFF(2),l.DNE(3,k,2,1,"mat-icon",8),l.k0s(),l.DNE(4,R,3,4,"span",9)(5,V,3,4,"span",9)(6,O,3,4,"span",9),l.k0s()),2&C){const v=x.$implicit,n=l.XpG().$implicit,z=l.XpG();l.R7$(2),l.SpI(" ",v.title," "),l.R7$(),l.Y8G("ngIf",v.tooltip),l.R7$(),l.Y8G("ngIf",n===z.currencyUnitEnum.SATS),l.R7$(),l.Y8G("ngIf",n===z.currencyUnitEnum.BTC),l.R7$(),l.Y8G("ngIf",z.fiatConversion&&n!==z.currencyUnitEnum.SATS&&n!==z.currencyUnitEnum.BTC&&""===z.conversionErrorMsg)}}function G(C,x){if(1&C&&(l.j41(0,"div",12)(1,"div",13),l.EFF(2),l.k0s()()),2&C){const v=l.XpG(2);l.R7$(2),l.JRh(v.conversionErrorMsg)}}function H(C,x){if(1&C&&(l.j41(0,"mat-tab",2)(1,"div",3),l.DNE(2,A,7,5,"div",4),l.k0s(),l.DNE(3,G,3,1,"div",5),l.k0s()),2&C){const v=x.$implicit,n=l.XpG();l.Y8G("label",l.mNQ(v)),l.R7$(2),l.Y8G("ngForOf",n.values),l.R7$(),l.Y8G("ngIf",n.fiatConversion&&v!==n.currencyUnitEnum.SATS&&v!==n.currencyUnitEnum.BTC&&""!==n.conversionErrorMsg)}}let U=(()=>{var C;class x{constructor(n,z){this.commonService=n,this.store=z,this.values=[],this.currencyUnitEnum=f.BQ,this.currencyUnitFormats=f.k,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new e.B,new e.B,new e.B,new e.B,new e.B]}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()}ngOnInit(){this.store.select(c._c).pipe((0,T.Q)(this.unSubs[0])).subscribe(n=>{this.fiatConversion=n.settings.fiatConversion,this.currencyUnits=n.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()})}getCurrencyValues(){this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.BTC,"",!0).pipe((0,T.Q)(this.unSubs[1])).subscribe(n=>{this.values[0][f.BQ.BTC]=n.BTC}),this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,T.Q)(this.unSubs[2])).subscribe({next:n=>{if(this.values[0][f.BQ.OTHER]=n.OTHER,n.unit&&""!==n.unit)for(let z=1;z{this.values[z][f.BQ.BTC]=F.BTC}),this.commonService.convertCurrency(g.dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,T.Q)(this.unSubs[4])).subscribe({next:F=>{this.values[z][f.BQ.OTHER]=F.OTHER},error:F=>{this.conversionErrorMsg="Conversion Error: "+F}})}},error:n=>{this.conversionErrorMsg="Conversion Error: "+n}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#a=C=()=>(this.\u0275fac=function(z){return new(z||x)(l.rXU(B.h),l.rXU(b.il))},this.\u0275cmp=l.VBU({type:x,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},standalone:!1,features:[l.OA$],decls:2,vars:1,consts:[["mat-stretch-tabs","false","mat-align-tabs","start"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","center start","class","cc-data-block",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","class","p-1 error-border mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center start",1,"cc-data-block"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"cc-data-title"],["matTooltipPosition","below","class","info-icon",3,"matTooltip",4,"ngIf"],["class","cc-data-value",4,"ngIf"],["matTooltipPosition","below",1,"info-icon",3,"matTooltip"],[1,"cc-data-value"],["fxLayout","row","fxFlex","100",1,"p-1","error-border","mt-1"],[1,"cc-data-block"]],template:function(z,g){1&z&&(l.j41(0,"mat-tab-group",0),l.DNE(1,H,4,4,"mat-tab",1),l.k0s()),2&z&&(l.R7$(),l.Y8G("ngForOf",g.currencyUnits))},dependencies:[P.Sq,P.bT,w.An,S.DJ,S.sA,S.UI,a.oV,N.mq,N.T8,P.QX],encapsulation:2}))}return C(),x})()},396(c1,j,t){t.d(j,{f:()=>v});var e=t(1585),T=t(5383),f=t(4416),c=t(3664),l=t(8570),B=t(2571),b=t(5416),P=t(2200),w=t(60),S=t(8834),a=t(5596),N=t(1997),k=t(2920),R=t(6038),V=t(8288),O=t(9157),A=t(9587);const G=n=>({"display-none":n});function H(n,z){if(1&n&&(c.j41(0,"div",20),c.nrm(1,"qr-code",21),c.k0s()),2&n){const g=c.XpG();c.Y8G("ngClass",c.eq3(3,G,g.screenSize===g.screenSizeEnum.XS||g.screenSize===g.screenSizeEnum.SM)),c.R7$(),c.Y8G("value",g.address)("size",g.qrWidth)}}function U(n,z){if(1&n&&(c.j41(0,"div",22),c.nrm(1,"qr-code",21),c.k0s()),2&n){const g=c.XpG();c.Y8G("ngClass",c.eq3(3,G,g.screenSize!==g.screenSizeEnum.XS&&g.screenSize!==g.screenSizeEnum.SM)),c.R7$(),c.Y8G("value",g.address)("size",g.qrWidth)}}function C(n,z){if(1&n&&(c.j41(0,"div",13)(1,"div",14)(2,"h4",15),c.EFF(3,"Address Type"),c.k0s(),c.j41(4,"span",23),c.EFF(5),c.k0s()()()),2&n){const g=c.XpG();c.R7$(5),c.JRh(g.addressType)}}function x(n,z){1&n&&c.nrm(0,"mat-divider",17)}let v=(()=>{var n;class z{constructor(F,I,y,W,Y){this.dialogRef=F,this.data=I,this.logger=y,this.commonService=W,this.snackBar=Y,this.faReceipt=T.Mf0,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=f.f7}ngOnInit(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyAddress(F){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+F)}static#a=n=()=>(this.\u0275fac=function(I){return new(I||z)(c.rXU(e.CP),c.rXU(e.Vh),c.rXU(l.gP),c.rXU(B.h),c.rXU(b.UG))},this.\u0275cmp=c.VBU({type:z,selectors:[["rtl-on-chain-generated-address"]],standalone:!1,decls:25,vars:8,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","2","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["autoFocus","","mat-button","","color","primary","tabindex","1","type","submit","rtlClipboard","",3,"copied","payload"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[1,"foreground-secondary-text"]],template:function(I,y){1&I&&(c.j41(0,"div",0),c.DNE(1,H,2,5,"div",1),c.j41(2,"div",2)(3,"mat-card-header",3)(4,"div",4),c.nrm(5,"fa-icon",5),c.j41(6,"span",6),c.EFF(7),c.k0s()(),c.j41(8,"button",7),c.bIt("click",function(){return y.onClose()}),c.EFF(9,"X"),c.k0s()(),c.j41(10,"mat-card-content",8)(11,"div",9),c.DNE(12,U,2,5,"div",10)(13,C,6,1,"div",11)(14,x,1,0,"mat-divider",12),c.j41(15,"div",13)(16,"div",14)(17,"h4",15),c.EFF(18,"Address"),c.k0s(),c.j41(19,"span",16),c.EFF(20),c.k0s()()(),c.nrm(21,"mat-divider",17),c.j41(22,"div",18)(23,"button",19),c.bIt("copied",function(Y){return y.onCopyAddress(Y)}),c.EFF(24,"Copy Address"),c.k0s()()()()()()),2&I&&(c.R7$(),c.Y8G("ngIf",y.address),c.R7$(4),c.Y8G("icon",y.faReceipt),c.R7$(2),c.JRh(y.screenSize===y.screenSizeEnum.XS?"Address":"Generated Address"),c.R7$(5),c.Y8G("ngIf",y.address),c.R7$(),c.Y8G("ngIf",""!==y.addressType),c.R7$(),c.Y8G("ngIf",""!==y.addressType),c.R7$(6),c.JRh(y.address),c.R7$(3),c.Y8G("payload",y.address))},dependencies:[P.YU,P.bT,w.aY,S.$z,a.m2,a.MM,N.q,k.DJ,k.sA,k.UI,R.PW,V.Um,O.U,A.N],encapsulation:2}))}return n(),z})()},4655(c1,j,t){t.d(j,{m:()=>J});var e=t(3664),T=t(6949),f=t(4416),c=t(2615),l=t(8570),B=t(2200),b=t(9417),P=t(2598),w=t(5084),S=t(2629),a=t(3746),N=t(9588),k=t(2920),R=t(6183),V=t(3029),O=t(3),A=t(9945);let G=(()=>{var p;class _ extends O.xW{constructor(i){super(i)}format(i,o){return"MMM YYYY"===o?f.KR[i.getMonth()].name+", "+i.getFullYear():"YYYY"===o?i.getFullYear().toString():i.getDate()+"/"+f.KR[i.getMonth()].name+"/"+i.getFullYear()}static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)(c.KVO(A.Ju,8))},this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac}))}return p(),_})();const H={parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},U={parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}};let C=(()=>{var p;class _{static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)},this.\u0275dir=e.FsC({type:_,selectors:[["","monthlyDate",""]],standalone:!1,features:[e.Jv_([{provide:A.MJ,useClass:G},{provide:A.de,useValue:H}])]}))}return p(),_})(),x=(()=>{var p;class _{static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)},this.\u0275dir=e.FsC({type:_,selectors:[["","yearlyDate",""]],standalone:!1,features:[e.Jv_([{provide:A.MJ,useClass:G},{provide:A.de,useValue:U}])]}))}return p(),_})();var v=t(92),n=t(6114);const z=["monthlyDatepicker"],g=["yearlyDatepicker"],F=()=>({animationDirection:"forward"}),I=()=>({animationDirection:"backward"}),y=()=>({animationDirection:""});function W(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,F))}}function Y(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,I))}}function Z(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,y))}}function q(p,_){if(1&p&&(e.j41(0,"mat-option",22),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&p){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI(" ",e.bMT(2,2,m)," ")}}function a1(p,_){if(1&p){const m=e.RV6();e.j41(0,"mat-form-field",23)(1,"mat-label"),e.EFF(2,"Monthly Date"),e.k0s(),e.j41(3,"input",24,1),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG(2);return e.DH7(d.selectedValue,o)||(d.selectedValue=o),c.Njj(o)}),e.k0s(),e.nrm(5,"mat-datepicker-toggle",25),e.j41(6,"mat-datepicker",26,2),e.bIt("monthSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onMonthSelected(o))})("dateSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onMonthSelected(o))}),e.k0s()()}if(2&p){const m=e.sdS(7),i=e.XpG(2);e.R7$(3),e.Y8G("matDatepicker",m)("min",i.first)("max",i.last),e.R50("ngModel",i.selectedValue),e.R7$(2),e.Y8G("for",m),e.R7$(),e.Y8G("startAt",i.selectedValue)}}function Q(p,_){if(1&p){const m=e.RV6();e.j41(0,"mat-form-field",27)(1,"mat-label"),e.EFF(2,"Yearly Date"),e.k0s(),e.j41(3,"input",28,3),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG(2);return e.DH7(d.selectedValue,o)||(d.selectedValue=o),c.Njj(o)}),e.k0s(),e.nrm(5,"mat-datepicker-toggle",25),e.j41(6,"mat-datepicker",29,4),e.bIt("yearSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))})("monthSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))})("dateSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))}),e.k0s()()}if(2&p){const m=e.sdS(7),i=e.XpG(2);e.R7$(3),e.Y8G("matDatepicker",m)("min",i.first)("max",i.last),e.R50("ngModel",i.selectedValue),e.R7$(2),e.Y8G("for",m),e.R7$(),e.Y8G("startAt",i.selectedValue)}}function e1(p,_){if(1&p){const m=e.RV6();e.j41(0,"div",14)(1,"div",15)(2,"mat-form-field",16)(3,"mat-label"),e.EFF(4,"Scroll Range"),e.k0s(),e.j41(5,"mat-select",17),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG();return e.DH7(d.selScrollRange,o)||(d.selScrollRange=o),c.Njj(o)}),e.bIt("selectionChange",function(o){c.eBV(m);const d=e.XpG();return c.Njj(d.onRangeChanged(o))}),e.DNE(6,q,3,4,"mat-option",18),e.k0s()()(),e.j41(7,"div",19),e.DNE(8,a1,8,6,"mat-form-field",20)(9,Q,8,6,"mat-form-field",21),e.k0s()()}if(2&p){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(5),e.R50("ngModel",m.selScrollRange),e.R7$(),e.Y8G("ngForOf",m.scrollRanges),e.R7$(2),e.Y8G("ngIf",m.selScrollRange===m.scrollRanges[0]),e.R7$(),e.Y8G("ngIf",m.selScrollRange===m.scrollRanges[1])}}let J=(()=>{var p;class _{constructor(i){this.logger=i,this.scrollRanges=f.rs,this.selScrollRange=this.scrollRanges[0],this.today=new Date(Date.now()),this.first=new Date(2018,0,1,0,0,0),this.last=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate(),0,0,0),this.disablePrev=!1,this.disableNext=!0,this.animationDirection="",this.selectedValue=this.last,this.stepChanged=new e.bkB}onRangeChanged(i){this.selScrollRange=i.value,this.onStepChange("LAST")}onMonthSelected(i){this.selectedValue=i,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(i){this.selectedValue=i,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(i){switch(this.logger.info(i),i){case"FIRST":this.animationDirection="backward",this.selectedValue!==this.first&&(this.selectedValue=this.first,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange}));break;case"PREVIOUS":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()-1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()-1,1,0,0,0),this.animationDirection="backward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"NEXT":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()+1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()+1,1,0,0,0),this.animationDirection="forward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"LAST":this.animationDirection="forward",this.selectedValue=this.last,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;default:this.animationDirection="",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange})}this.disablePrev=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()>=this.last.getFullYear():this.selectedValue.getFullYear()>=this.last.getFullYear()&&this.selectedValue.getMonth()>=this.last.getMonth(),this.logger.info(this.disablePrev),this.logger.info(this.disableNext),setTimeout(()=>{this.animationDirection=""},800)}onChartMouseUp(i){"monthlyDate"===i.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===i.srcElement.name&&this.yearlyDatepicker.open()}static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)(e.rXU(l.gP))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(o,d){if(1&o&&(e.GBs(z,5),e.GBs(g,5)),2&o){let E;e.mGM(E=e.lsd())&&(d.monthlyDatepicker=E.first),e.mGM(E=e.lsd())&&(d.yearlyDatepicker=E.first)}},hostBindings:function(o,d){1&o&&e.bIt("click",function(K){return d.onChartMouseUp(K)})},outputs:{stepChanged:"stepChanged"},standalone:!1,decls:20,vars:5,consts:[["controlsPanel",""],["monthlyDt","ngModel"],["monthlyDatepicker",""],["yearlyDt","ngModel"],["yearlyDatepicker",""],["fxLayout","row","fxLayoutAlign","space-between stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","20"],["mat-icon-button","","color","primary","type","button",1,"pr-4",3,"click"],["mat-icon-button","","color","primary","type","button",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","20"],["mat-icon-button","","color","primary","type","button",1,"pr-4",3,"click","disabled"],["mat-icon-button","","color","primary","type","button",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","58"],["fxFlex","50","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","end center",1,"font-bold-700"],["subscriptSizing","dynamic","fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","center end"],["name","selScrlRange",1,"font-bold-700",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","start center"],["monthlyDate","","fxLayoutAlign","center center",4,"ngIf"],["yearlyDate","","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["monthlyDate","","fxLayoutAlign","center center"],["matInput","","name","monthlyDate","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["matSuffix","",3,"for"],["startView","year",3,"monthSelected","dateSelected","startAt"],["yearlyDate","","fxLayoutAlign","center center"],["matInput","","name","yearlyDate","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["startView","multi-year",3,"yearSelected","monthSelected","dateSelected","startAt"]],template:function(o,d){if(1&o){const E=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"button",7),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("FIRST"))}),e.j41(3,"mat-icon"),e.EFF(4,"skip_previous"),e.k0s()(),e.j41(5,"button",8),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("PREVIOUS"))}),e.j41(6,"mat-icon"),e.EFF(7,"navigate_before"),e.k0s()()(),e.DNE(8,W,1,3,"ng-container",9)(9,Y,1,3,"ng-container",9)(10,Z,1,3,"ng-container",9),e.j41(11,"div",10)(12,"button",11),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("NEXT"))}),e.j41(13,"mat-icon"),e.EFF(14,"navigate_next"),e.k0s()(),e.j41(15,"button",12),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("LAST"))}),e.j41(16,"mat-icon"),e.EFF(17,"skip_next"),e.k0s()()()(),e.DNE(18,e1,10,5,"ng-template",null,0,e.C5r)}2&o&&(e.R7$(5),e.Y8G("disabled",d.disablePrev),e.R7$(3),e.Y8G("ngIf","forward"===d.animationDirection),e.R7$(),e.Y8G("ngIf","backward"===d.animationDirection),e.R7$(),e.Y8G("ngIf",""===d.animationDirection),e.R7$(2),e.Y8G("disabled",d.disableNext))},dependencies:[B.Sq,B.bT,B.T3,b.me,b.BC,b.vS,P.iY,w.Vh,w.bZ,w.bU,S.An,a.fg,N.rl,N.nJ,N.yw,k.DJ,k.sA,k.UI,R.VO,V.wT,C,x,v.z,n.V,B.PV],encapsulation:2,data:{animation:[T.k]}}))}return p(),_})()},5085(c1,j,t){t.d(j,{T:()=>K});var e=t(6695),T=t(2042),f=t(1676),c=t(6183),l=t(4416),B=t(1771),b=t(1413),P=t(6977),w=t(9647),S=t(2615),a=t(3664),N=t(2571),k=t(9640),R=t(2200),V=t(2929),O=t(9417),A=t(8834),G=t(3746),H=t(9588),U=t(2920),C=t(6038),x=t(3029),v=t(497);const n=()=>["all"],z=()=>["no_transaction"],g=s=>({"display-none":s});function F(s,L){if(1&s&&(a.j41(0,"mat-option",30),a.EFF(1),a.k0s()),2&s){const M=L.$implicit,r=a.XpG();a.Y8G("value",M),a.R7$(),a.JRh(r.getLabel(M))}}function I(s,L){1&s&&(a.j41(0,"th",31),a.EFF(1,"Date"),a.k0s())}function y(s,L){if(1&s&&(a.j41(0,"td",32),a.EFF(1),a.nI1(2,"date"),a.k0s()),2&s){const M=L.$implicit,r=a.XpG();a.R7$(),a.JRh(a.i5U(2,1,null==M?null:M.date,r.dataRange===r.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy"))}}function W(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"Amount Paid (Sats)"),a.k0s())}function Y(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.i5U(3,1,null==M?null:M.amount_paid,"1.0-2"))}}function Z(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"# Payments"),a.k0s())}function q(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.bMT(3,1,null==M?null:M.num_payments))}}function a1(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"Amount Received (Sats)"),a.k0s())}function Q(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.i5U(3,1,null==M?null:M.amount_received,"1.0-2"))}}function e1(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"# Invoices"),a.k0s())}function J(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.bMT(3,1,null==M?null:M.num_invoices))}}function p(s,L){if(1&s){const M=a.RV6();a.j41(0,"th",35)(1,"div",36)(2,"mat-select",37),a.nrm(3,"mat-select-trigger"),a.j41(4,"mat-option",38),a.bIt("click",function(){S.eBV(M);const h=a.XpG();return S.Njj(h.onDownloadCSV())}),a.EFF(5,"Download CSV"),a.k0s()()()()}}function _(s,L){if(1&s){const M=a.RV6();a.j41(0,"td",39)(1,"button",40),a.bIt("click",function(){const h=S.eBV(M).$implicit,u=a.XpG();return S.Njj(u.onTransactionClick(h))}),a.EFF(2,"View Info"),a.k0s()()}}function m(s,L){1&s&&(a.j41(0,"p"),a.EFF(1,"No transaction available."),a.k0s())}function i(s,L){if(1&s&&(a.j41(0,"td",41),a.DNE(1,m,2,0,"p",42),a.k0s()),2&s){const M=a.XpG();a.R7$(),a.Y8G("ngIf",!(null!=M.transactions&&M.transactions.data)||(null==M.transactions||null==M.transactions.data?null:M.transactions.data.length)<1)}}function o(s,L){if(1&s&&a.nrm(0,"tr",43),2&s){const M=a.XpG();a.Y8G("ngClass",a.eq3(1,g,(null==M.transactions?null:M.transactions.data)&&(null==M.transactions||null==M.transactions.data?null:M.transactions.data.length)>0))}}function d(s,L){1&s&&a.nrm(0,"tr",44)}function E(s,L){1&s&&a.nrm(0,"tr",45)}let K=(()=>{var s;class L{constructor(r,h,u,D){this.commonService=r,this.store=h,this.datePipe=u,this.camelCaseWithReplace=D,this.dataRange=l.rs[0],this.dataList=[],this.selFilter="",this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.tableSetting={tableId:"transactions",recordsPerPage:l.md,sortBy:"date",sortOrder:l.oi.DESCENDING},this.nodePageDefs=l._1,this.selFilterBy="all",this.timezoneOffset=60*new Date(Date.now()).getTimezoneOffset(),this.scrollRanges=l.rs,this.transactions=new f.I6([]),this.pageSize=l.md,this.pageSizeOptions=l.xp,this.screenSize="",this.screenSizeEnum=l.f7,this.unSubs=[new b.B,new b.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(r){r.dataList&&!r.dataList.firstChange&&(this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.loadTransactionsTable(this.dataList)),r.selFilter&&!r.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(w._c).pipe((0,P.Q)(this.unSubs[0])).subscribe(r=>{this.nodePageDefs="CLN"===r.lnImplementation?l.Jd:"ECL"===r.lnImplementation?l.WW:l._1}),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngAfterViewInit(){setTimeout(()=>{this.setTableWidgets()},0)}onTransactionClick(r){const h=[[{key:"date",value:this.datePipe.transform(r.date,this.dataRange===l.rs[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:l.UN.DATE}],[{key:"amount_paid",value:Math.round(r.amount_paid),title:"Amount Paid (Sats)",width:50,type:l.UN.NUMBER},{key:"num_payments",value:r.num_payments,title:"# Payments",width:50,type:l.UN.NUMBER}],[{key:"amount_received",value:Math.round(r.amount_received),title:"Amount Received (Sats)",width:50,type:l.UN.NUMBER},{key:"num_invoices",value:r.num_invoices,title:"# Invoices",width:50,type:l.UN.NUMBER}]];this.store.dispatch((0,B.xO)({payload:{data:{type:l.A$.INFORMATION,alertTitle:"Transaction Summary",message:h}}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.selFilter.trim().toLowerCase())}getLabel(r){const h=this.nodePageDefs.reports[this.tableSetting.tableId].allowedColumns.find(u=>u.column===r);return h?h.label?h.label:this.camelCaseWithReplace.transform(h.column,"_"):this.commonService.titleCase(r)}setFilterPredicate(){this.transactions.filterPredicate=(r,h)=>{let u="";switch(this.selFilterBy){case"all":u=(r.date?(this.datePipe.transform(r.date,"dd/MMM")+"/"+r.date.getFullYear()).toLowerCase():"")+JSON.stringify(r).toLowerCase();break;case"date":u=this.datePipe.transform(new Date(r[this.selFilterBy]||0),this.dataRange===this.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy")?.toLowerCase()||"";break;default:u=typeof r[this.selFilterBy]>"u"?"":"string"==typeof r[this.selFilterBy]?r[this.selFilterBy].toLowerCase():"boolean"==typeof r[this.selFilterBy]?r[this.selFilterBy]?"yes":"no":r[this.selFilterBy].toString()}return u.includes(h)}}loadTransactionsTable(r){this.transactions=new f.I6(r?[...r]:[]),this.setTableWidgets()}setTableWidgets(){this.transactions&&this.transactions.data&&this.transactions.data.length>0&&(this.transactions.sort=this.sort,this.transactions.sortingDataAccessor=(r,h)=>r[h]&&isNaN(r[h])?r[h].toLocaleLowerCase():r[h]?+r[h]:null,this.transactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter())}onDownloadCSV(){this.transactions.data&&this.transactions.data.length>0&&this.commonService.downloadFile(this.dataList,"Transactions-report-"+this.dataRange.toLowerCase())}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(),r.complete()})}static#a=s=()=>(this.\u0275fac=function(h){return new(h||L)(a.rXU(N.h),a.rXU(k.il),a.rXU(R.vh),a.rXU(V.VD))},this.\u0275cmp=a.VBU({type:L,selectors:[["rtl-transactions-report-table"]],viewQuery:function(h,u){if(1&h&&(a.GBs(T.B4,5),a.GBs(e.iy,5)),2&h){let D;a.mGM(D=a.lsd())&&(u.sort=D.first),a.mGM(D=a.lsd())&&(u.paginator=D.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",selFilter:"selFilter",displayedColumns:"displayedColumns",tableSetting:"tableSetting"},standalone:!1,features:[a.Jv_([{provide:c.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:e.xX,useValue:(0,l.on)("Transactions")}]),a.OA$],decls:43,vars:14,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount_paid"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","num_payments"],["matColumnDef","amount_received"],["matColumnDef","num_invoices"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(h,u){if(1&h){const D=a.RV6();a.j41(0,"div",1)(1,"div",2)(2,"div",3),a.nrm(3,"div",4),a.j41(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),a.EFF(7,"Filter By"),a.k0s(),a.j41(8,"mat-select",7),a.mxI("ngModelChange",function($){return S.eBV(D),a.DH7(u.selFilterBy,$)||(u.selFilterBy=$),S.Njj($)}),a.bIt("selectionChange",function(){return S.eBV(D),u.selFilter="",S.Njj(u.applyFilter())}),a.j41(9,"perfect-scrollbar"),a.DNE(10,F,2,2,"mat-option",8),a.k0s()()(),a.j41(11,"mat-form-field",6)(12,"mat-label"),a.EFF(13,"Filter"),a.k0s(),a.j41(14,"input",9),a.mxI("ngModelChange",function($){return S.eBV(D),a.DH7(u.selFilter,$)||(u.selFilter=$),S.Njj($)}),a.bIt("input",function(){return S.eBV(D),S.Njj(u.applyFilter())})("keyup",function(){return S.eBV(D),S.Njj(u.applyFilter())}),a.k0s()()()(),a.j41(15,"div",10)(16,"div",11)(17,"table",12,0),a.qex(19,13),a.DNE(20,I,2,0,"th",14)(21,y,3,4,"td",15),a.bVm(),a.qex(22,16),a.DNE(23,W,2,0,"th",17)(24,Y,4,4,"td",15),a.bVm(),a.qex(25,18),a.DNE(26,Z,2,0,"th",17)(27,q,4,3,"td",15),a.bVm(),a.qex(28,19),a.DNE(29,a1,2,0,"th",17)(30,Q,4,4,"td",15),a.bVm(),a.qex(31,20),a.DNE(32,e1,2,0,"th",17)(33,J,4,3,"td",15),a.bVm(),a.qex(34,21),a.DNE(35,p,6,0,"th",22)(36,_,3,0,"td",23),a.bVm(),a.qex(37,24),a.DNE(38,i,2,1,"td",25),a.bVm(),a.DNE(39,o,1,3,"tr",26)(40,d,1,0,"tr",27)(41,E,1,0,"tr",28),a.k0s(),a.nrm(42,"mat-paginator",29),a.k0s()()()()}2&h&&(a.R7$(8),a.R50("ngModel",u.selFilterBy),a.R7$(2),a.Y8G("ngForOf",a.lJ4(12,n).concat(u.displayedColumns.slice(0,-1))),a.R7$(4),a.R50("ngModel",u.selFilter),a.R7$(3),a.Y8G("matSortActive",u.tableSetting.sortBy)("matSortDirection",u.tableSetting.sortOrder)("dataSource",u.transactions),a.R7$(22),a.Y8G("matFooterRowDef",a.lJ4(13,z)),a.R7$(),a.Y8G("matHeaderRowDef",u.displayedColumns),a.R7$(),a.Y8G("matRowDefColumns",u.displayedColumns),a.R7$(),a.Y8G("pageSize",u.pageSize)("pageSizeOptions",u.pageSizeOptions)("showFirstLastButtons",u.screenSize!==u.screenSizeEnum.XS))},dependencies:[R.YU,R.Sq,R.bT,O.me,O.BC,O.vS,A.$z,G.fg,H.rl,H.nJ,U.DJ,U.sA,U.UI,C.PW,c.VO,c.$2,x.wT,T.B4,T.aE,f.Zl,f.tL,f.ji,f.cC,f.YV,f.iL,f.Zq,f.xW,f.KS,f.$R,f.Qo,f.YZ,f.NB,f.iF,e.iy,v.ZF,v.Ld,R.QX,R.vh],encapsulation:2}))}return s(),L})()},614(c1,j,t){t.d(j,{Qpm:()=>u2,wB1:()=>G1});var G1={prefix:"far",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM334.7 384.6C319.7 369 293.6 352 256 352s-63.7 17-78.7 32.6c-9.2 9.6-24.4 9.9-33.9 .7s-9.9-24.4-.7-33.9c22.1-23 60-47.4 113.3-47.4s91.2 24.4 113.3 47.4c9.2 9.6 8.9 24.8-.7 33.9s-24.8 8.9-33.9-.7zM144 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},u2={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm177.3 63.4C192.3 335 218.4 352 256 352s63.7-17 78.7-32.6c9.2-9.6 24.4-9.9 33.9-.7s9.9 24.4 .7 33.9c-22.1 23-60 47.4-113.3 47.4s-91.2-24.4-113.3-47.4c-9.2-9.6-8.9-24.8 .7-33.9s24.8-8.9 33.9 .7zM144 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]}}}]); \ No newline at end of file diff --git a/frontend/193.b6974b544ca80922.js b/frontend/193.b6974b544ca80922.js deleted file mode 100644 index d6095cbb..00000000 --- a/frontend/193.b6974b544ca80922.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[193],{25837(c1,j,t){t.d(j,{f:()=>U});var e=t(21413),T=t(56977),f=t(4416),c=t(79647),l=t(73664),B=t(82571),b=t(59640),P=t(72200),w=t(12629),S=t(52920),a=t(40455),N=t(96850);function k(C,x){if(1&C&&(l.j41(0,"mat-icon",10),l.EFF(1,"info_outline"),l.k0s()),2&C){const v=l.XpG().$implicit;l.Y8G("matTooltip",v.tooltip)}}function R(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit;l.R7$(),l.SpI(" ",l.i5U(2,1,v.dataValue,"1.0-0")," ")}}function V(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit,n=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,v[n.currencyUnitEnum.BTC],n.currencyUnitFormats.BTC)," ")}}function O(C,x){if(1&C&&(l.j41(0,"span",11),l.EFF(1),l.nI1(2,"number"),l.k0s()),2&C){const v=l.XpG().$implicit,n=l.XpG(2);l.R7$(),l.SpI(" ",l.i5U(2,1,v[n.currencyUnitEnum.OTHER],n.currencyUnitFormats.OTHER)," ")}}function A(C,x){if(1&C&&(l.j41(0,"div",6)(1,"div",7),l.EFF(2),l.DNE(3,k,2,1,"mat-icon",8),l.k0s(),l.DNE(4,R,3,4,"span",9)(5,V,3,4,"span",9)(6,O,3,4,"span",9),l.k0s()),2&C){const v=x.$implicit,n=l.XpG().$implicit,z=l.XpG();l.R7$(2),l.SpI(" ",v.title," "),l.R7$(),l.Y8G("ngIf",v.tooltip),l.R7$(),l.Y8G("ngIf",n===z.currencyUnitEnum.SATS),l.R7$(),l.Y8G("ngIf",n===z.currencyUnitEnum.BTC),l.R7$(),l.Y8G("ngIf",z.fiatConversion&&n!==z.currencyUnitEnum.SATS&&n!==z.currencyUnitEnum.BTC&&""===z.conversionErrorMsg)}}function G(C,x){if(1&C&&(l.j41(0,"div",12)(1,"div",13),l.EFF(2),l.k0s()()),2&C){const v=l.XpG(2);l.R7$(2),l.JRh(v.conversionErrorMsg)}}function H(C,x){if(1&C&&(l.j41(0,"mat-tab",2)(1,"div",3),l.DNE(2,A,7,5,"div",4),l.k0s(),l.DNE(3,G,3,1,"div",5),l.k0s()),2&C){const v=x.$implicit,n=l.XpG();l.Y8G("label",l.mNQ(v)),l.R7$(2),l.Y8G("ngForOf",n.values),l.R7$(),l.Y8G("ngIf",n.fiatConversion&&v!==n.currencyUnitEnum.SATS&&v!==n.currencyUnitEnum.BTC&&""!==n.conversionErrorMsg)}}let U=(()=>{var C;class x{constructor(n,z){this.commonService=n,this.store=z,this.values=[],this.currencyUnitEnum=f.BQ,this.currencyUnitFormats=f.k,this.currencyUnits=[],this.fiatConversion=!1,this.conversionErrorMsg="",this.unSubs=[new e.B,new e.B,new e.B,new e.B,new e.B]}ngOnChanges(){this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()}ngOnInit(){this.store.select(c._c).pipe((0,T.Q)(this.unSubs[0])).subscribe(n=>{this.fiatConversion=n.settings.fiatConversion,this.currencyUnits=n.settings.currencyUnits,this.fiatConversion||this.currencyUnits.splice(2,1),this.currencyUnits.length>1&&this.values[0]&&this.values[0].dataValue>=0&&this.getCurrencyValues()})}getCurrencyValues(){this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.BTC,"",!0).pipe((0,T.Q)(this.unSubs[1])).subscribe(n=>{this.values[0][f.BQ.BTC]=n.BTC}),this.commonService.convertCurrency(this.values[0].dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,T.Q)(this.unSubs[2])).subscribe({next:n=>{if(this.values[0][f.BQ.OTHER]=n.OTHER,n.unit&&""!==n.unit)for(let z=1;z{this.values[z][f.BQ.BTC]=F.BTC}),this.commonService.convertCurrency(g.dataValue,f.BQ.SATS,f.BQ.OTHER,this.currencyUnits[2],this.fiatConversion).pipe((0,T.Q)(this.unSubs[4])).subscribe({next:F=>{this.values[z][f.BQ.OTHER]=F.OTHER},error:F=>{this.conversionErrorMsg="Conversion Error: "+F}})}},error:n=>{this.conversionErrorMsg="Conversion Error: "+n}})}ngOnDestroy(){this.unSubs.forEach(n=>{n.next(null),n.complete()})}static#a=C=()=>(this.\u0275fac=function(z){return new(z||x)(l.rXU(B.h),l.rXU(b.il))},this.\u0275cmp=l.VBU({type:x,selectors:[["rtl-currency-unit-converter"]],inputs:{values:"values"},standalone:!1,features:[l.OA$],decls:2,vars:1,consts:[["mat-stretch-tabs","false","mat-align-tabs","start"],[3,"label",4,"ngFor","ngForOf"],[3,"label"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","center start","class","cc-data-block",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","100","class","p-1 error-border mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center start",1,"cc-data-block"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"cc-data-title"],["matTooltipPosition","below","class","info-icon",3,"matTooltip",4,"ngIf"],["class","cc-data-value",4,"ngIf"],["matTooltipPosition","below",1,"info-icon",3,"matTooltip"],[1,"cc-data-value"],["fxLayout","row","fxFlex","100",1,"p-1","error-border","mt-1"],[1,"cc-data-block"]],template:function(z,g){1&z&&(l.j41(0,"mat-tab-group",0),l.DNE(1,H,4,4,"mat-tab",1),l.k0s()),2&z&&(l.R7$(),l.Y8G("ngForOf",g.currencyUnits))},dependencies:[P.Sq,P.bT,w.An,S.DJ,S.sA,S.UI,a.oV,N.mq,N.T8,P.QX],encapsulation:2}))}return C(),x})()},80396(c1,j,t){t.d(j,{f:()=>v});var e=t(51585),T=t(45383),f=t(4416),c=t(73664),l=t(98570),B=t(82571),b=t(95416),P=t(72200),w=t(20060),S=t(88834),a=t(25596),N=t(71997),k=t(52920),R=t(16038),V=t(38288),O=t(29157),A=t(89587);const G=n=>({"display-none":n});function H(n,z){if(1&n&&(c.j41(0,"div",20),c.nrm(1,"qr-code",21),c.k0s()),2&n){const g=c.XpG();c.Y8G("ngClass",c.eq3(3,G,g.screenSize===g.screenSizeEnum.XS||g.screenSize===g.screenSizeEnum.SM)),c.R7$(),c.Y8G("value",g.address)("size",g.qrWidth)}}function U(n,z){if(1&n&&(c.j41(0,"div",22),c.nrm(1,"qr-code",21),c.k0s()),2&n){const g=c.XpG();c.Y8G("ngClass",c.eq3(3,G,g.screenSize!==g.screenSizeEnum.XS&&g.screenSize!==g.screenSizeEnum.SM)),c.R7$(),c.Y8G("value",g.address)("size",g.qrWidth)}}function C(n,z){if(1&n&&(c.j41(0,"div",13)(1,"div",14)(2,"h4",15),c.EFF(3,"Address Type"),c.k0s(),c.j41(4,"span",23),c.EFF(5),c.k0s()()()),2&n){const g=c.XpG();c.R7$(5),c.JRh(g.addressType)}}function x(n,z){1&n&&c.nrm(0,"mat-divider",17)}let v=(()=>{var n;class z{constructor(F,I,y,W,Y){this.dialogRef=F,this.data=I,this.logger=y,this.commonService=W,this.snackBar=Y,this.faReceipt=T.Mf0,this.address="",this.addressType="",this.qrWidth=230,this.screenSize="",this.screenSizeEnum=f.f7}ngOnInit(){this.address=this.data.address,this.addressType=this.data.addressType,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyAddress(F){this.snackBar.open("Generated address copied."),this.logger.info("Copied Text: "+F)}static#a=n=()=>(this.\u0275fac=function(I){return new(I||z)(c.rXU(e.CP),c.rXU(e.Vh),c.rXU(l.gP),c.rXU(B.h),c.rXU(b.UG))},this.\u0275cmp=c.VBU({type:z,selectors:[["rtl-on-chain-generated-address"]],standalone:!1,decls:25,vars:8,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","2","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start","class","modal-qr-code-container padding-gap-large",3,"ngClass",4,"ngIf"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-1"],["autoFocus","","mat-button","","color","primary","tabindex","1","type","submit","rtlClipboard","",3,"copied","payload"],["fxFlex","35","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],[1,"foreground-secondary-text"]],template:function(I,y){1&I&&(c.j41(0,"div",0),c.DNE(1,H,2,5,"div",1),c.j41(2,"div",2)(3,"mat-card-header",3)(4,"div",4),c.nrm(5,"fa-icon",5),c.j41(6,"span",6),c.EFF(7),c.k0s()(),c.j41(8,"button",7),c.bIt("click",function(){return y.onClose()}),c.EFF(9,"X"),c.k0s()(),c.j41(10,"mat-card-content",8)(11,"div",9),c.DNE(12,U,2,5,"div",10)(13,C,6,1,"div",11)(14,x,1,0,"mat-divider",12),c.j41(15,"div",13)(16,"div",14)(17,"h4",15),c.EFF(18,"Address"),c.k0s(),c.j41(19,"span",16),c.EFF(20),c.k0s()()(),c.nrm(21,"mat-divider",17),c.j41(22,"div",18)(23,"button",19),c.bIt("copied",function(Y){return y.onCopyAddress(Y)}),c.EFF(24,"Copy Address"),c.k0s()()()()()()),2&I&&(c.R7$(),c.Y8G("ngIf",y.address),c.R7$(4),c.Y8G("icon",y.faReceipt),c.R7$(2),c.JRh(y.screenSize===y.screenSizeEnum.XS?"Address":"Generated Address"),c.R7$(5),c.Y8G("ngIf",y.address),c.R7$(),c.Y8G("ngIf",""!==y.addressType),c.R7$(),c.Y8G("ngIf",""!==y.addressType),c.R7$(6),c.JRh(y.address),c.R7$(3),c.Y8G("payload",y.address))},dependencies:[P.YU,P.bT,w.aY,S.$z,a.m2,a.MM,N.q,k.DJ,k.sA,k.UI,R.PW,V.Um,O.U,A.N],encapsulation:2}))}return n(),z})()},24655(c1,j,t){t.d(j,{m:()=>J});var e=t(73664),T=t(16949),f=t(4416),c=t(2615),l=t(98570),B=t(72200),b=t(89417),P=t(22598),w=t(25084),S=t(12629),a=t(33746),N=t(69588),k=t(52920),R=t(96183),V=t(23029),O=t(3),A=t(19945);let G=(()=>{var p;class _ extends O.xW{constructor(i){super(i)}format(i,o){return"MMM YYYY"===o?f.KR[i.getMonth()].name+", "+i.getFullYear():"YYYY"===o?i.getFullYear().toString():i.getDate()+"/"+f.KR[i.getMonth()].name+"/"+i.getFullYear()}static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)(c.KVO(A.Ju,8))},this.\u0275prov=c.jDH({token:_,factory:_.\u0275fac}))}return p(),_})();const H={parse:{dateInput:"LL"},display:{dateInput:"MMM YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}},U={parse:{dateInput:"LL"},display:{dateInput:"YYYY",monthYearLabel:"YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"YYYY"}};let C=(()=>{var p;class _{static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)},this.\u0275dir=e.FsC({type:_,selectors:[["","monthlyDate",""]],standalone:!1,features:[e.Jv_([{provide:A.MJ,useClass:G},{provide:A.de,useValue:H}])]}))}return p(),_})(),x=(()=>{var p;class _{static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)},this.\u0275dir=e.FsC({type:_,selectors:[["","yearlyDate",""]],standalone:!1,features:[e.Jv_([{provide:A.MJ,useClass:G},{provide:A.de,useValue:U}])]}))}return p(),_})();var v=t(60092),n=t(56114);const z=["monthlyDatepicker"],g=["yearlyDatepicker"],F=()=>({animationDirection:"forward"}),I=()=>({animationDirection:"backward"}),y=()=>({animationDirection:""});function W(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,F))}}function Y(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,I))}}function Z(p,_){if(1&p&&e.eu8(0,13),2&p){e.XpG();const m=e.sdS(19);e.Y8G("ngTemplateOutlet",m)("ngTemplateOutletContext",e.lJ4(2,y))}}function q(p,_){if(1&p&&(e.j41(0,"mat-option",22),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&p){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI(" ",e.bMT(2,2,m)," ")}}function a1(p,_){if(1&p){const m=e.RV6();e.j41(0,"mat-form-field",23)(1,"mat-label"),e.EFF(2,"Monthly Date"),e.k0s(),e.j41(3,"input",24,1),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG(2);return e.DH7(d.selectedValue,o)||(d.selectedValue=o),c.Njj(o)}),e.k0s(),e.nrm(5,"mat-datepicker-toggle",25),e.j41(6,"mat-datepicker",26,2),e.bIt("monthSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onMonthSelected(o))})("dateSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onMonthSelected(o))}),e.k0s()()}if(2&p){const m=e.sdS(7),i=e.XpG(2);e.R7$(3),e.Y8G("matDatepicker",m)("min",i.first)("max",i.last),e.R50("ngModel",i.selectedValue),e.R7$(2),e.Y8G("for",m),e.R7$(),e.Y8G("startAt",i.selectedValue)}}function Q(p,_){if(1&p){const m=e.RV6();e.j41(0,"mat-form-field",27)(1,"mat-label"),e.EFF(2,"Yearly Date"),e.k0s(),e.j41(3,"input",28,3),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG(2);return e.DH7(d.selectedValue,o)||(d.selectedValue=o),c.Njj(o)}),e.k0s(),e.nrm(5,"mat-datepicker-toggle",25),e.j41(6,"mat-datepicker",29,4),e.bIt("yearSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))})("monthSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))})("dateSelected",function(o){c.eBV(m);const d=e.XpG(2);return c.Njj(d.onYearSelected(o))}),e.k0s()()}if(2&p){const m=e.sdS(7),i=e.XpG(2);e.R7$(3),e.Y8G("matDatepicker",m)("min",i.first)("max",i.last),e.R50("ngModel",i.selectedValue),e.R7$(2),e.Y8G("for",m),e.R7$(),e.Y8G("startAt",i.selectedValue)}}function e1(p,_){if(1&p){const m=e.RV6();e.j41(0,"div",14)(1,"div",15)(2,"mat-form-field",16)(3,"mat-label"),e.EFF(4,"Scroll Range"),e.k0s(),e.j41(5,"mat-select",17),e.mxI("ngModelChange",function(o){c.eBV(m);const d=e.XpG();return e.DH7(d.selScrollRange,o)||(d.selScrollRange=o),c.Njj(o)}),e.bIt("selectionChange",function(o){c.eBV(m);const d=e.XpG();return c.Njj(d.onRangeChanged(o))}),e.DNE(6,q,3,4,"mat-option",18),e.k0s()()(),e.j41(7,"div",19),e.DNE(8,a1,8,6,"mat-form-field",20)(9,Q,8,6,"mat-form-field",21),e.k0s()()}if(2&p){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(5),e.R50("ngModel",m.selScrollRange),e.R7$(),e.Y8G("ngForOf",m.scrollRanges),e.R7$(2),e.Y8G("ngIf",m.selScrollRange===m.scrollRanges[0]),e.R7$(),e.Y8G("ngIf",m.selScrollRange===m.scrollRanges[1])}}let J=(()=>{var p;class _{constructor(i){this.logger=i,this.scrollRanges=f.rs,this.selScrollRange=this.scrollRanges[0],this.today=new Date(Date.now()),this.first=new Date(2018,0,1,0,0,0),this.last=new Date(this.today.getFullYear(),this.today.getMonth(),this.today.getDate(),0,0,0),this.disablePrev=!1,this.disableNext=!0,this.animationDirection="",this.selectedValue=this.last,this.stepChanged=new e.bkB}onRangeChanged(i){this.selScrollRange=i.value,this.onStepChange("LAST")}onMonthSelected(i){this.selectedValue=i,this.onStepChange("SELECTED"),this.monthlyDatepicker.close()}onYearSelected(i){this.selectedValue=i,this.onStepChange("SELECTED"),this.yearlyDatepicker.close()}onStepChange(i){switch(this.logger.info(i),i){case"FIRST":this.animationDirection="backward",this.selectedValue!==this.first&&(this.selectedValue=this.first,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange}));break;case"PREVIOUS":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()-1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()-1,1,0,0,0),this.animationDirection="backward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"NEXT":this.selectedValue=this.selScrollRange===f.rs[1]?new Date(this.selectedValue.getFullYear()+1,0,1,0,0,0):new Date(this.selectedValue.getFullYear(),this.selectedValue.getMonth()+1,1,0,0,0),this.animationDirection="forward",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;case"LAST":this.animationDirection="forward",this.selectedValue=this.last,this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange});break;default:this.animationDirection="",this.stepChanged.emit({selDate:this.selectedValue,selScrollRange:this.selScrollRange})}this.disablePrev=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()<=this.first.getFullYear():this.selectedValue.getFullYear()<=this.first.getFullYear()&&this.selectedValue.getMonth()<=this.first.getMonth(),this.disableNext=this.selScrollRange===f.rs[1]?this.selectedValue.getFullYear()>=this.last.getFullYear():this.selectedValue.getFullYear()>=this.last.getFullYear()&&this.selectedValue.getMonth()>=this.last.getMonth(),this.logger.info(this.disablePrev),this.logger.info(this.disableNext),setTimeout(()=>{this.animationDirection=""},800)}onChartMouseUp(i){"monthlyDate"===i.srcElement.name?this.monthlyDatepicker.open():"yearlyDate"===i.srcElement.name&&this.yearlyDatepicker.open()}static#a=p=()=>(this.\u0275fac=function(o){return new(o||_)(e.rXU(l.gP))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-horizontal-scroller"]],viewQuery:function(o,d){if(1&o&&(e.GBs(z,5),e.GBs(g,5)),2&o){let E;e.mGM(E=e.lsd())&&(d.monthlyDatepicker=E.first),e.mGM(E=e.lsd())&&(d.yearlyDatepicker=E.first)}},hostBindings:function(o,d){1&o&&e.bIt("click",function(K){return d.onChartMouseUp(K)})},outputs:{stepChanged:"stepChanged"},standalone:!1,decls:20,vars:5,consts:[["controlsPanel",""],["monthlyDt","ngModel"],["monthlyDatepicker",""],["yearlyDt","ngModel"],["yearlyDatepicker",""],["fxLayout","row","fxLayoutAlign","space-between stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","20"],["mat-icon-button","","color","primary","type","button",1,"pr-4",3,"click"],["mat-icon-button","","color","primary","type","button",3,"click","disabled"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","20"],["mat-icon-button","","color","primary","type","button",1,"pr-4",3,"click","disabled"],["mat-icon-button","","color","primary","type","button",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","row","fxLayoutAlign","center center","fxFlex","58"],["fxFlex","50","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","end center",1,"font-bold-700"],["subscriptSizing","dynamic","fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","center end"],["name","selScrlRange",1,"font-bold-700",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayout","row","fxLayoutAlign","center center","fxLayoutAlign.gt-xs","start center"],["monthlyDate","","fxLayoutAlign","center center",4,"ngIf"],["yearlyDate","","fxLayoutAlign","center center",4,"ngIf"],[3,"value"],["monthlyDate","","fxLayoutAlign","center center"],["matInput","","name","monthlyDate","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["matSuffix","",3,"for"],["startView","year",3,"monthSelected","dateSelected","startAt"],["yearlyDate","","fxLayoutAlign","center center"],["matInput","","name","yearlyDate","readonly","",3,"ngModelChange","matDatepicker","min","max","ngModel"],["startView","multi-year",3,"yearSelected","monthSelected","dateSelected","startAt"]],template:function(o,d){if(1&o){const E=e.RV6();e.j41(0,"div",5)(1,"div",6)(2,"button",7),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("FIRST"))}),e.j41(3,"mat-icon"),e.EFF(4,"skip_previous"),e.k0s()(),e.j41(5,"button",8),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("PREVIOUS"))}),e.j41(6,"mat-icon"),e.EFF(7,"navigate_before"),e.k0s()()(),e.DNE(8,W,1,3,"ng-container",9)(9,Y,1,3,"ng-container",9)(10,Z,1,3,"ng-container",9),e.j41(11,"div",10)(12,"button",11),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("NEXT"))}),e.j41(13,"mat-icon"),e.EFF(14,"navigate_next"),e.k0s()(),e.j41(15,"button",12),e.bIt("click",function(){return c.eBV(E),c.Njj(d.onStepChange("LAST"))}),e.j41(16,"mat-icon"),e.EFF(17,"skip_next"),e.k0s()()()(),e.DNE(18,e1,10,5,"ng-template",null,0,e.C5r)}2&o&&(e.R7$(5),e.Y8G("disabled",d.disablePrev),e.R7$(3),e.Y8G("ngIf","forward"===d.animationDirection),e.R7$(),e.Y8G("ngIf","backward"===d.animationDirection),e.R7$(),e.Y8G("ngIf",""===d.animationDirection),e.R7$(2),e.Y8G("disabled",d.disableNext))},dependencies:[B.Sq,B.bT,B.T3,b.me,b.BC,b.vS,P.iY,w.Vh,w.bZ,w.bU,S.An,a.fg,N.rl,N.nJ,N.yw,k.DJ,k.sA,k.UI,R.VO,V.wT,C,x,v.z,n.V,B.PV],encapsulation:2,data:{animation:[T.k]}}))}return p(),_})()},5085(c1,j,t){t.d(j,{T:()=>K});var e=t(96695),T=t(2042),f=t(19295),c=t(96183),l=t(4416),B=t(11771),b=t(21413),P=t(56977),w=t(79647),S=t(2615),a=t(73664),N=t(82571),k=t(59640),R=t(72200),V=t(52929),O=t(89417),A=t(88834),G=t(33746),H=t(69588),U=t(52920),C=t(16038),x=t(23029),v=t(10497);const n=()=>["all"],z=()=>["no_transaction"],g=s=>({"display-none":s});function F(s,L){if(1&s&&(a.j41(0,"mat-option",30),a.EFF(1),a.k0s()),2&s){const M=L.$implicit,r=a.XpG();a.Y8G("value",M),a.R7$(),a.JRh(r.getLabel(M))}}function I(s,L){1&s&&(a.j41(0,"th",31),a.EFF(1,"Date"),a.k0s())}function y(s,L){if(1&s&&(a.j41(0,"td",32),a.EFF(1),a.nI1(2,"date"),a.k0s()),2&s){const M=L.$implicit,r=a.XpG();a.R7$(),a.JRh(a.i5U(2,1,null==M?null:M.date,r.dataRange===r.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy"))}}function W(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"Amount Paid (Sats)"),a.k0s())}function Y(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.i5U(3,1,null==M?null:M.amount_paid,"1.0-2"))}}function Z(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"# Payments"),a.k0s())}function q(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.bMT(3,1,null==M?null:M.num_payments))}}function a1(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"Amount Received (Sats)"),a.k0s())}function Q(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.i5U(3,1,null==M?null:M.amount_received,"1.0-2"))}}function e1(s,L){1&s&&(a.j41(0,"th",33),a.EFF(1,"# Invoices"),a.k0s())}function J(s,L){if(1&s&&(a.j41(0,"td",32)(1,"span",34),a.EFF(2),a.nI1(3,"number"),a.k0s()()),2&s){const M=L.$implicit;a.R7$(2),a.JRh(a.bMT(3,1,null==M?null:M.num_invoices))}}function p(s,L){if(1&s){const M=a.RV6();a.j41(0,"th",35)(1,"div",36)(2,"mat-select",37),a.nrm(3,"mat-select-trigger"),a.j41(4,"mat-option",38),a.bIt("click",function(){S.eBV(M);const h=a.XpG();return S.Njj(h.onDownloadCSV())}),a.EFF(5,"Download CSV"),a.k0s()()()()}}function _(s,L){if(1&s){const M=a.RV6();a.j41(0,"td",39)(1,"button",40),a.bIt("click",function(){const h=S.eBV(M).$implicit,u=a.XpG();return S.Njj(u.onTransactionClick(h))}),a.EFF(2,"View Info"),a.k0s()()}}function m(s,L){1&s&&(a.j41(0,"p"),a.EFF(1,"No transaction available."),a.k0s())}function i(s,L){if(1&s&&(a.j41(0,"td",41),a.DNE(1,m,2,0,"p",42),a.k0s()),2&s){const M=a.XpG();a.R7$(),a.Y8G("ngIf",!(null!=M.transactions&&M.transactions.data)||(null==M.transactions||null==M.transactions.data?null:M.transactions.data.length)<1)}}function o(s,L){if(1&s&&a.nrm(0,"tr",43),2&s){const M=a.XpG();a.Y8G("ngClass",a.eq3(1,g,(null==M.transactions?null:M.transactions.data)&&(null==M.transactions||null==M.transactions.data?null:M.transactions.data.length)>0))}}function d(s,L){1&s&&a.nrm(0,"tr",44)}function E(s,L){1&s&&a.nrm(0,"tr",45)}let K=(()=>{var s;class L{constructor(r,h,u,D){this.commonService=r,this.store=h,this.datePipe=u,this.camelCaseWithReplace=D,this.dataRange=l.rs[0],this.dataList=[],this.selFilter="",this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.tableSetting={tableId:"transactions",recordsPerPage:l.md,sortBy:"date",sortOrder:l.oi.DESCENDING},this.nodePageDefs=l._1,this.selFilterBy="all",this.timezoneOffset=60*new Date(Date.now()).getTimezoneOffset(),this.scrollRanges=l.rs,this.transactions=new f.I6([]),this.pageSize=l.md,this.pageSizeOptions=l.xp,this.screenSize="",this.screenSizeEnum=l.f7,this.unSubs=[new b.B,new b.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(r){r.dataList&&!r.dataList.firstChange&&(this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.loadTransactionsTable(this.dataList)),r.selFilter&&!r.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(w._c).pipe((0,P.Q)(this.unSubs[0])).subscribe(r=>{this.nodePageDefs="CLN"===r.lnImplementation?l.Jd:"ECL"===r.lnImplementation?l.WW:l._1}),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.md,this.dataList&&this.dataList.length>0&&this.loadTransactionsTable(this.dataList)}ngAfterViewInit(){setTimeout(()=>{this.setTableWidgets()},0)}onTransactionClick(r){const h=[[{key:"date",value:this.datePipe.transform(r.date,this.dataRange===l.rs[1]?"MMM/yyyy":"dd/MMM/yyyy"),title:"Date",width:100,type:l.UN.DATE}],[{key:"amount_paid",value:Math.round(r.amount_paid),title:"Amount Paid (Sats)",width:50,type:l.UN.NUMBER},{key:"num_payments",value:r.num_payments,title:"# Payments",width:50,type:l.UN.NUMBER}],[{key:"amount_received",value:Math.round(r.amount_received),title:"Amount Received (Sats)",width:50,type:l.UN.NUMBER},{key:"num_invoices",value:r.num_invoices,title:"# Invoices",width:50,type:l.UN.NUMBER}]];this.store.dispatch((0,B.xO)({payload:{data:{type:l.A$.INFORMATION,alertTitle:"Transaction Summary",message:h}}}))}applyFilter(){this.transactions&&(this.transactions.filter=this.selFilter.trim().toLowerCase())}getLabel(r){const h=this.nodePageDefs.reports[this.tableSetting.tableId].allowedColumns.find(u=>u.column===r);return h?h.label?h.label:this.camelCaseWithReplace.transform(h.column,"_"):this.commonService.titleCase(r)}setFilterPredicate(){this.transactions.filterPredicate=(r,h)=>{let u="";switch(this.selFilterBy){case"all":u=(r.date?(this.datePipe.transform(r.date,"dd/MMM")+"/"+r.date.getFullYear()).toLowerCase():"")+JSON.stringify(r).toLowerCase();break;case"date":u=this.datePipe.transform(new Date(r[this.selFilterBy]||0),this.dataRange===this.scrollRanges[1]?"MMM/yyyy":"dd/MMM/yyyy")?.toLowerCase()||"";break;default:u=typeof r[this.selFilterBy]>"u"?"":"string"==typeof r[this.selFilterBy]?r[this.selFilterBy].toLowerCase():"boolean"==typeof r[this.selFilterBy]?r[this.selFilterBy]?"yes":"no":r[this.selFilterBy].toString()}return u.includes(h)}}loadTransactionsTable(r){this.transactions=new f.I6(r?[...r]:[]),this.setTableWidgets()}setTableWidgets(){this.transactions&&this.transactions.data&&this.transactions.data.length>0&&(this.transactions.sort=this.sort,this.transactions.sortingDataAccessor=(r,h)=>r[h]&&isNaN(r[h])?r[h].toLocaleLowerCase():r[h]?+r[h]:null,this.transactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter())}onDownloadCSV(){this.transactions.data&&this.transactions.data.length>0&&this.commonService.downloadFile(this.dataList,"Transactions-report-"+this.dataRange.toLowerCase())}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(),r.complete()})}static#a=s=()=>(this.\u0275fac=function(h){return new(h||L)(a.rXU(N.h),a.rXU(k.il),a.rXU(R.vh),a.rXU(V.VD))},this.\u0275cmp=a.VBU({type:L,selectors:[["rtl-transactions-report-table"]],viewQuery:function(h,u){if(1&h&&(a.GBs(T.B4,5),a.GBs(e.iy,5)),2&h){let D;a.mGM(D=a.lsd())&&(u.sort=D.first),a.mGM(D=a.lsd())&&(u.paginator=D.first)}},inputs:{dataRange:"dataRange",dataList:"dataList",selFilter:"selFilter",displayedColumns:"displayedColumns",tableSetting:"tableSetting"},standalone:!1,features:[a.Jv_([{provide:c.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:e.xX,useValue:(0,l.on)("Transactions")}]),a.OA$],decls:43,vars:14,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount_paid"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","num_payments"],["matColumnDef","amount_received"],["matColumnDef","num_invoices"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_transaction"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(h,u){if(1&h){const D=a.RV6();a.j41(0,"div",1)(1,"div",2)(2,"div",3),a.nrm(3,"div",4),a.j41(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),a.EFF(7,"Filter By"),a.k0s(),a.j41(8,"mat-select",7),a.mxI("ngModelChange",function($){return S.eBV(D),a.DH7(u.selFilterBy,$)||(u.selFilterBy=$),S.Njj($)}),a.bIt("selectionChange",function(){return S.eBV(D),u.selFilter="",S.Njj(u.applyFilter())}),a.j41(9,"perfect-scrollbar"),a.DNE(10,F,2,2,"mat-option",8),a.k0s()()(),a.j41(11,"mat-form-field",6)(12,"mat-label"),a.EFF(13,"Filter"),a.k0s(),a.j41(14,"input",9),a.mxI("ngModelChange",function($){return S.eBV(D),a.DH7(u.selFilter,$)||(u.selFilter=$),S.Njj($)}),a.bIt("input",function(){return S.eBV(D),S.Njj(u.applyFilter())})("keyup",function(){return S.eBV(D),S.Njj(u.applyFilter())}),a.k0s()()()(),a.j41(15,"div",10)(16,"div",11)(17,"table",12,0),a.qex(19,13),a.DNE(20,I,2,0,"th",14)(21,y,3,4,"td",15),a.bVm(),a.qex(22,16),a.DNE(23,W,2,0,"th",17)(24,Y,4,4,"td",15),a.bVm(),a.qex(25,18),a.DNE(26,Z,2,0,"th",17)(27,q,4,3,"td",15),a.bVm(),a.qex(28,19),a.DNE(29,a1,2,0,"th",17)(30,Q,4,4,"td",15),a.bVm(),a.qex(31,20),a.DNE(32,e1,2,0,"th",17)(33,J,4,3,"td",15),a.bVm(),a.qex(34,21),a.DNE(35,p,6,0,"th",22)(36,_,3,0,"td",23),a.bVm(),a.qex(37,24),a.DNE(38,i,2,1,"td",25),a.bVm(),a.DNE(39,o,1,3,"tr",26)(40,d,1,0,"tr",27)(41,E,1,0,"tr",28),a.k0s(),a.nrm(42,"mat-paginator",29),a.k0s()()()()}2&h&&(a.R7$(8),a.R50("ngModel",u.selFilterBy),a.R7$(2),a.Y8G("ngForOf",a.lJ4(12,n).concat(u.displayedColumns.slice(0,-1))),a.R7$(4),a.R50("ngModel",u.selFilter),a.R7$(3),a.Y8G("matSortActive",u.tableSetting.sortBy)("matSortDirection",u.tableSetting.sortOrder)("dataSource",u.transactions),a.R7$(22),a.Y8G("matFooterRowDef",a.lJ4(13,z)),a.R7$(),a.Y8G("matHeaderRowDef",u.displayedColumns),a.R7$(),a.Y8G("matRowDefColumns",u.displayedColumns),a.R7$(),a.Y8G("pageSize",u.pageSize)("pageSizeOptions",u.pageSizeOptions)("showFirstLastButtons",u.screenSize!==u.screenSizeEnum.XS))},dependencies:[R.YU,R.Sq,R.bT,O.me,O.BC,O.vS,A.$z,G.fg,H.rl,H.nJ,U.DJ,U.sA,U.UI,C.PW,c.VO,c.$2,x.wT,T.B4,T.aE,f.Zl,f.tL,f.ji,f.cC,f.YV,f.iL,f.Zq,f.xW,f.KS,f.$R,f.Qo,f.YZ,f.NB,f.iF,e.iy,v.ZF,v.Ld,R.QX,R.vh],encapsulation:2}))}return s(),L})()},90614(c1,j,t){t.d(j,{Qpm:()=>u2,wB1:()=>G1});var G1={prefix:"far",iconName:"face-frown",icon:[512,512,[9785,"frown"],"f119","M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM334.7 384.6C319.7 369 293.6 352 256 352s-63.7 17-78.7 32.6c-9.2 9.6-24.4 9.9-33.9 .7s-9.9-24.4-.7-33.9c22.1-23 60-47.4 113.3-47.4s91.2 24.4 113.3 47.4c9.2 9.6 8.9 24.8-.7 33.9s-24.8 8.9-33.9-.7zM144 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},u2={prefix:"far",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm177.3 63.4C192.3 335 218.4 352 256 352s63.7-17 78.7-32.6c9.2-9.6 24.4-9.9 33.9-.7s9.9 24.4 .7 33.9c-22.1 23-60 47.4-113.3 47.4s-91.2-24.4-113.3-47.4c-9.2-9.6-8.9-24.8 .7-33.9s24.8-8.9 33.9 .7zM144 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]}}}]); \ No newline at end of file diff --git a/frontend/3rdpartylicenses.txt b/frontend/3rdpartylicenses.txt index 1c7a5403..d4e492ea 100644 --- a/frontend/3rdpartylicenses.txt +++ b/frontend/3rdpartylicenses.txt @@ -846,140 +846,12 @@ https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the file header for details. -@otplib/core -MIT -The MIT License (MIT) - -Copyright (c) 2014 Gerald Yeo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@otplib/plugin-crypto -MIT -The MIT License (MIT) - -Copyright (c) 2014 Gerald Yeo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@otplib/plugin-thirty-two -MIT -The MIT License (MIT) - -Copyright (c) 2014 Gerald Yeo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -@otplib/preset-default -MIT -The MIT License (MIT) - -Copyright (c) 2014 Gerald Yeo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - @swimlane/ngx-charts MIT angular-user-idle MIT -asn1.js -MIT - -available-typed-arrays -MIT -MIT License - -Copyright (c) 2020 Inspect JS - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - base64-js MIT The MIT License (MIT) @@ -1005,149 +877,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -bn.js -MIT -Copyright Fedor Indutny, 2015. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -brorand -MIT - -browserify-aes -MIT -The MIT License (MIT) - -Copyright (c) 2014-2017 browserify-aes contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -browserify-cipher -MIT -The MIT License (MIT) - -Copyright (c) 2014-2017 Calvin Metcalf & contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -browserify-des -MIT -The MIT License (MIT) - -Copyright (c) 2014-2017 Calvin Metcalf, Fedor Indutny & contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -browserify-rsa -MIT -The MIT License (MIT) - -Copyright (c) 2014-2016 Calvin Metcalf & contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -browserify-sign -ISC -Copyright (c) 2014-2015 Calvin Metcalf and browserify-sign contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - - buffer MIT The MIT License (MIT) @@ -1173,260 +902,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -buffer-xor -MIT -The MIT License (MIT) - -Copyright (c) 2015 Daniel Cousens - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -call-bind -MIT -MIT License - -Copyright (c) 2020 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -call-bind-apply-helpers -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -call-bound -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -cipher-base -MIT -The MIT License (MIT) - -Copyright (c) 2017 crypto-browserify contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - convert-hex convert-string -core-util-is -MIT -Copyright Node.js contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. - - -create-ecdh -MIT -The MIT License (MIT) - -Copyright (c) 2014-2017 createECDH contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -create-hash -MIT -The MIT License (MIT) - -Copyright (c) 2017 crypto-browserify contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -create-hmac -MIT -The MIT License (MIT) - -Copyright (c) 2017 crypto-browserify contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -crypto-browserify -MIT -The MIT License - -Copyright (c) 2013 Dominic Tarr - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - d3-array ISC Copyright 2010-2023 Mike Bostock @@ -1680,57 +1159,6 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -define-data-property -MIT -MIT License - -Copyright (c) 2023 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -des.js -MIT - -diffie-hellman -MIT -Copyright (c) 2017 Calvin Metcalf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - dijkstrajs MIT ``` @@ -1754,416 +1182,6 @@ THE SOFTWARE. ``` -dunder-proto -MIT -MIT License - -Copyright (c) 2024 ECMAScript Shims - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -elliptic -MIT - -es-define-property -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -es-errors -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -es-object-atoms -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -events -MIT -MIT - -Copyright Joyent, Inc. and other Node contributors. - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to permit -persons to whom the Software is furnished to do so, subject to the -following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -USE OR OTHER DEALINGS IN THE SOFTWARE. - - -evp_bytestokey -MIT -The MIT License (MIT) - -Copyright (c) 2017 crypto-browserify contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -for-each -MIT -The MIT License (MIT) - -Copyright (c) 2012 Raynos. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -function-bind -MIT -Copyright (c) 2013 Raynos. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - - -get-intrinsic -MIT -MIT License - -Copyright (c) 2020 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -get-proto -MIT -MIT License - -Copyright (c) 2025 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -gopd -MIT -MIT License - -Copyright (c) 2022 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -has-property-descriptors -MIT -MIT License - -Copyright (c) 2022 Inspect JS - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -has-symbols -MIT -MIT License - -Copyright (c) 2016 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -has-tostringtag -MIT -MIT License - -Copyright (c) 2021 Inspect JS - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -hash-base -MIT -The MIT License (MIT) - -Copyright (c) 2016 Kirill Fomichev - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -hash.js -MIT - -hasown -MIT -MIT License - -Copyright (c) Jordan Harband and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -hmac-drbg -MIT - ieee754 BSD-3-Clause Copyright 2008 Fair Oaks Labs, Inc. @@ -2179,26 +1197,6 @@ Redistribution and use in source and binary forms, with or without modification, THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -inherits -ISC -The ISC License - -Copyright (c) Isaac Z. Schlueter - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - - - internmap ISC Copyright 2021 Mike Bostock @@ -2216,61 +1214,6 @@ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -is-callable -MIT -The MIT License (MIT) - -Copyright (c) 2015 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -is-typed-array -MIT -The MIT License (MIT) - -Copyright (c) 2015 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - -isarray -MIT - material-icons Apache-2.0 @@ -2477,78 +1420,6 @@ Apache-2.0 limitations under the License. -math-intrinsics -MIT -MIT License - -Copyright (c) 2024 ECMAScript Shims - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -md5.js -MIT -The MIT License (MIT) - -Copyright (c) 2016 Kirill Fomichev - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -miller-rabin -MIT - -minimalistic-assert -ISC -Copyright 2015 Calvin Metcalf - -Permission to use, copy, modify, and/or distribute this software for any purpose -with or without fee is hereby granted, provided that the above copyright notice -and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND -FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. - -minimalistic-crypto-utils -MIT - ng-qrcode MIT MIT License @@ -2577,73 +1448,6 @@ SOFTWARE. ngx-perfect-scrollbar-next MIT -otplib -MIT -The MIT License (MIT) - -Copyright (c) 2014 Gerald Yeo - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -parse-asn1 -ISC -Copyright (c) 2017, crypto-browserify contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - - -pbkdf2 -MIT -The MIT License (MIT) - -Copyright (c) 2014 Daniel Cousens - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - pdfmake MIT The MIT License (MIT) @@ -2694,31 +1498,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -possible-typed-array-names -MIT -MIT License - -Copyright (c) 2024 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - process MIT (The MIT License) @@ -2745,52 +1524,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -process-nextick-args -MIT -# Copyright (c) 2015 Calvin Metcalf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.** - - -public-encrypt -MIT -Copyright (c) 2017 Calvin Metcalf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - qrcode MIT The MIT License (MIT) @@ -2805,107 +1538,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI -randombytes -MIT -MIT License - -Copyright (c) 2017 crypto-browserify - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -randomfill -MIT -MIT License - -Copyright (c) 2017 crypto-browserify - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -readable-stream -MIT -Node.js is licensed for use as follows: - -""" -Copyright Node.js contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - - resize-observer-polyfill MIT The MIT License (MIT) @@ -2931,31 +1563,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -ripemd160 -MIT -The MIT License (MIT) - -Copyright (c) 2016 crypto-browserify - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - roboto-fontface Apache-2.0 Apache License @@ -3367,233 +1974,8 @@ Apache-2.0 -safe-buffer -MIT -The MIT License (MIT) - -Copyright (c) Feross Aboukhadijeh - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - -set-function-length -MIT -MIT License - -Copyright (c) Jordan Harband and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -sha.js -(MIT AND BSD-3-Clause) -Copyright (c) 2013-2018 sha.js contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -Copyright (c) 1998 - 2009, Paul Johnston & Contributors -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -Redistributions of source code must retain the above copyright notice, this -list of conditions and the following disclaimer. - -Redistributions in binary form must reproduce the above copyright notice, this -list of conditions and the following disclaimer in the documentation and/or -other materials provided with the distribution. - -Neither the name of the author nor the names of its contributors may be used to -endorse or promote products derived from this software without specific prior -written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - - sha256 -stream-browserify -MIT -MIT License - -Copyright (c) James Halliday - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -string_decoder -MIT -Node.js is licensed for use as follows: - -""" -Copyright Node.js contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - - - -thirty-two -Copyright (c) 2011, Chris Umbel - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - -to-buffer -MIT -The MIT License (MIT) - -Copyright (c) 2016 Mathias Buus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - tslib 0BSD Copyright (c) Microsoft Corporation. @@ -3609,107 +1991,6 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -typed-array-buffer -MIT -MIT License - -Copyright (c) 2023 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - -util-deprecate -MIT -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - - -vm-browserify -MIT -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - -which-typed-array -MIT -The MIT License (MIT) - -Copyright (c) 2015 Jordan Harband - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - zone.js MIT The MIT License diff --git a/frontend/853.8e8db9dc1adcdad0.js b/frontend/853.8e8db9dc1adcdad0.js deleted file mode 100644 index aabfde8a..00000000 --- a/frontend/853.8e8db9dc1adcdad0.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[853],{94853(Pi,Wi,We){"use strict";We.d(Wi,{CLNModule:()=>jw});var de=We(72200),Sn=We(38132),xt=We(43694),Mn=We(9881),A=We(73664),eA=We(67575),Q=We(52920);function f(n,l){1&n&&A.nrm(0,"mat-progress-bar",3)}let t=(()=>{var n;class l{constructor(i){this.router=i,this.loading=!1,this.router.events.subscribe(o=>{switch(!0){case o instanceof xt.Z:this.loading=!0;break;case o instanceof xt.wF:case o instanceof xt.j5:case o instanceof xt.L6:this.loading=!1}})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-root"]],standalone:!1,decls:4,vars:1,consts:[["outlet","outlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["color","primary","mode","indeterminate",4,"ngIf"],["color","primary","mode","indeterminate"]],template:function(o,r){1&o&&(A.j41(0,"div",1),A.DNE(1,f,1,0,"mat-progress-bar",2),A.nrm(2,"router-outlet",null,0),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",r.loading))},dependencies:[de.bT,eA.HM,Q.DJ,Q.sA,Q.UI,xt.n3],encapsulation:2,data:{animation:[Mn.E]}}))}return n(),l})();var g=We(21413),I=We(56977),N=We(53993),K=We(90614),v=We(45383),B=We(4416),j=We(79647),tA=We(59584),w=We(2615),aA=We(98570),AA=We(59640),L=We(82571),P=We(20060),rA=We(22598),QA=We(25596),NA=We(82885),oA=We(12629),uA=We(59115),dA=We(16038),RA=We(96850),nA=We(5964),H=We(96695),pA=We(2042),z=We(19295),OA=We(96183),wA=We(51585),VA=We(28430),kA=We(11747),hA=We(89417),fA=We(88834),UA=We(33746),yA=We(69588),xA=We(23029),Ee=We(30450),HA=We(40455),cA=We(89587),J=We(56114);function U(n,l){1&n&&(A.j41(0,"span",31),A.EFF(1,"= "),A.k0s())}function O(n,l){if(1&n&&(A.j41(0,"span",32),A.nrm(1,"fa-icon",33),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function lA(n,l){if(1&n&&A.nrm(0,"span",34),2&n){const e=A.XpG();A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function LA(n,l){if(1&n&&(A.j41(0,"mat-option",35),A.EFF(1),A.nI1(2,"titlecase"),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e),A.R7$(),A.JRh(A.bMT(2,2,e))}}function JA(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.invoiceError)}}function $A(n,l){if(1&n&&(A.j41(0,"div",36),A.nrm(1,"fa-icon",37),A.DNE(2,JA,2,1,"span",38),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.invoiceError)}}let IA=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.dialogRef=i,this.data=o,this.store=r,this.decimalPipe=iA,this.commonService=ne,this.actions=re,this.faExclamationTriangle=v.zpE,this.convertedCurrency=null,this.description="",this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=B.md,this.timeUnitEnum=B.F7,this.timeUnits=B.SY,this.selTimeUnit=B.F7.SECS,this.invoiceError="",this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.actions.pipe((0,I.Q)(this.unSubs[2]),(0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(i=>{i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&"SaveNewInvoice"===i.payload.action&&(i.payload.status===B.wn.ERROR&&(this.invoiceError=i.payload.message),i.payload.status===B.wn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(i){this.invoiceError="",this.invoiceValue||(this.invoiceValue=0);let o=this.expiry?this.expiry:B.It;this.selTimeUnit!==B.F7.SECS&&this.expiry&&(o=this.commonService.convertTime(this.expiry,this.selTimeUnit,B.F7.SECS)),this.store.dispatch((0,VA.VK)({payload:{label:"ulbl"+Math.random().toString(36).slice(2)+Date.now(),amount_msat:this.invoiceValue?1e3*this.invoiceValue:"any",description:this.description,expiry:o,exposeprivatechannels:this.private}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=B.F7.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&(this.invoiceValueHint="",this.invoiceValue&&this.invoiceValue>99&&this.commonService.convertCurrency(this.invoiceValue,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,B.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onTimeUnitChange(i){this.expiry&&this.selTimeUnit!==i.value&&(this.expiry=this.commonService.convertTime(this.expiry,this.selTimeUnit,i.value)),this.selTimeUnit=i.value}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(de.QX),A.rXU(L.h),A.rXU(kA.En))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-create-invoices"]],standalone:!1,decls:50,vars:19,consts:[["addInvoiceForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","name","description",3,"ngModelChange","ngModel"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","name","invoiceValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","expiry","type","number",3,"ngModelChange","step","min","ngModel"],["fxLayout","column","fxFlex","26"],["name","timeUnit",3,"selectionChange","value"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","50","fxLayoutAlign","start center",1,"ml-2"],["color","primary","name","private",3,"ngModelChange","ngModel"],["matTooltip","Include routing hints for private channels","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),A.EFF(5,"Create Invoice"),A.k0s()(),A.j41(6,"button",6),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),A.EFF(13,"Description"),A.k0s(),A.j41(14,"input",10),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.description,re)||(r.description=re),w.Njj(re)}),A.k0s()(),A.j41(15,"div",11)(16,"mat-form-field",12)(17,"mat-label"),A.EFF(18,"Amount"),A.k0s(),A.j41(19,"input",13),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.invoiceValue,re)||(r.invoiceValue=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onInvoiceValueChange())}),A.k0s(),A.j41(20,"span",14),A.EFF(21,"Sats "),A.k0s(),A.j41(22,"mat-hint",15),A.DNE(23,U,2,0,"span",16)(24,O,2,1,"span",17)(25,lA,1,1,"span",18),A.EFF(26),A.k0s()(),A.j41(27,"mat-form-field",19)(28,"mat-label"),A.EFF(29,"Expiry"),A.k0s(),A.j41(30,"input",20),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.expiry,re)||(r.expiry=re),w.Njj(re)}),A.k0s(),A.j41(31,"span",14),A.EFF(32),A.nI1(33,"titlecase"),A.k0s()(),A.j41(34,"mat-form-field",21)(35,"mat-label"),A.EFF(36,"Time Unit"),A.k0s(),A.j41(37,"mat-select",22),A.bIt("selectionChange",function(re){return w.eBV(iA),w.Njj(r.onTimeUnitChange(re))}),A.DNE(38,LA,3,4,"mat-option",23),A.k0s()()(),A.j41(39,"div",24)(40,"mat-slide-toggle",25),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.private,re)||(r.private=re),w.Njj(re)}),A.EFF(41,"Private Routing Hints"),A.k0s(),A.j41(42,"mat-icon",26),A.EFF(43,"info_outline"),A.k0s()(),A.DNE(44,$A,3,2,"div",27),A.j41(45,"div",28)(46,"button",29),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(47,"Clear Field"),A.k0s(),A.j41(48,"button",30),A.bIt("click",function(){w.eBV(iA);const re=A.sdS(10);return w.Njj(r.onAddInvoice(re))}),A.EFF(49,"Create Invoice"),A.k0s()()()()()()}2&o&&(A.R7$(6),A.Y8G("mat-dialog-close",!1),A.R7$(8),A.R50("ngModel",r.description),A.R7$(5),A.Y8G("step",100)("min",1),A.R50("ngModel",r.invoiceValue),A.R7$(4),A.Y8G("ngIf",""!==r.invoiceValueHint),A.R7$(),A.Y8G("ngIf",r.convertedCurrency&&"FA"===r.convertedCurrency.iconType&&""!==r.invoiceValueHint),A.R7$(),A.Y8G("ngIf",r.convertedCurrency&&"SVG"===r.convertedCurrency.iconType&&""!==r.invoiceValueHint),A.R7$(),A.SpI(" ",r.invoiceValueHint," "),A.R7$(4),A.Y8G("step",r.selTimeUnit===r.timeUnitEnum.SECS?300:r.selTimeUnit===r.timeUnitEnum.MINS?10:r.selTimeUnit===r.timeUnitEnum.HOURS?2:1)("min",1),A.R50("ngModel",r.expiry),A.R7$(2),A.SpI("",A.bMT(33,17,r.selTimeUnit)," "),A.R7$(5),A.Y8G("value",r.selTimeUnit),A.R7$(),A.Y8G("ngForOf",r.timeUnits),A.R7$(2),A.R50("ngModel",r.private),A.R7$(4),A.Y8G("ngIf",""!==r.invoiceError))},dependencies:[de.Sq,de.bT,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.VZ,hA.vS,hA.cV,P.aY,wA.tx,fA.$z,QA.m2,QA.MM,oA.An,UA.fg,yA.rl,yA.nJ,yA.MV,yA.yw,Q.DJ,Q.sA,Q.UI,OA.VO,xA.wT,Ee.sG,HA.oV,cA.N,J.V,de.PV],encapsulation:2}))}return n(),l})();var gA=We(8321),C=We(11771),b=We(37541),R=We(52929),M=We(10497);const D=()=>["all"],X=n=>({"error-border":n}),YA=()=>["no_invoice"],KA=n=>({"mr-0":n}),bA=n=>({width:n}),le=n=>({"display-none":n});function ve(n,l){1&n&&(A.j41(0,"span",19),A.EFF(1,"= "),A.k0s())}function Ne(n,l){if(1&n&&(A.j41(0,"span",20),A.nrm(1,"fa-icon",21),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function Te(n,l){if(1&n&&A.nrm(0,"span",22),2&n){const e=A.XpG(2);A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function ze(n,l){if(1&n){const e=A.RV6();A.j41(0,"form",6,0)(2,"mat-form-field",7)(3,"mat-label"),A.EFF(4,"Description"),A.k0s(),A.j41(5,"input",8),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.description,o)||(r.description=o),w.Njj(o)}),A.k0s()(),A.j41(6,"mat-form-field",9)(7,"mat-label"),A.EFF(8,"Amount"),A.k0s(),A.j41(9,"input",10),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.invoiceValue,o)||(r.invoiceValue=o),w.Njj(o)}),A.bIt("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onInvoiceValueChange())}),A.k0s(),A.j41(10,"span",11),A.EFF(11,"Sats "),A.k0s(),A.j41(12,"mat-hint",12),A.DNE(13,ve,2,0,"span",13)(14,Ne,2,1,"span",14)(15,Te,1,1,"span",15),A.EFF(16),A.k0s()(),A.j41(17,"div",16)(18,"button",17),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.resetData())}),A.EFF(19,"Clear Field"),A.k0s(),A.j41(20,"button",18),A.bIt("click",function(){w.eBV(e);const o=A.sdS(1),r=A.XpG();return w.Njj(r.onAddInvoice(o))}),A.EFF(21,"Create Invoice"),A.k0s()()()}if(2&n){const e=A.XpG();A.R7$(5),A.R50("ngModel",e.description),A.R7$(4),A.Y8G("step",100)("min",1),A.R50("ngModel",e.invoiceValue),A.R7$(4),A.Y8G("ngIf",""!==e.invoiceValueHint),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.invoiceValueHint),A.R7$(),A.SpI(" ",e.invoiceValueHint," ")}}function Oe(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",23)(1,"button",24),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDeleteExpiredInvoices())}),A.EFF(2,"Delete Expired"),A.k0s(),A.j41(3,"button",25),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.openCreateInvoiceModal())}),A.EFF(4,"Create Invoice"),A.k0s()()}}function oe(n,l){if(1&n&&(A.j41(0,"mat-option",62),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function sA(n,l){1&n&&A.nrm(0,"mat-progress-bar",63)}function S(n,l){1&n&&A.nrm(0,"th",64)}function Y(n,l){if(1&n&&A.nrm(0,"span",69),2&n){const e=A.XpG(3);A.Y8G("ngClass",A.eq3(1,KA,e.screenSize===e.screenSizeEnum.XS))}}function k(n,l){if(1&n&&A.nrm(0,"span",70),2&n){const e=A.XpG(3);A.Y8G("ngClass",A.eq3(1,KA,e.screenSize===e.screenSizeEnum.XS))}}function m(n,l){if(1&n&&A.nrm(0,"span",71),2&n){const e=A.XpG(3);A.Y8G("ngClass",A.eq3(1,KA,e.screenSize===e.screenSizeEnum.XS))}}function E(n,l){if(1&n&&(A.j41(0,"td",65),A.DNE(1,Y,1,3,"span",66)(2,k,1,3,"span",67)(3,m,1,3,"span",68),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf","paid"===(null==e?null:e.status)),A.R7$(),A.Y8G("ngIf","unpaid"===(null==e?null:e.status)),A.R7$(),A.Y8G("ngIf","expired"===(null==e?null:e.status))}}function mA(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Expiry Date"),A.k0s())}function ie(n,l){if(1&n&&(A.j41(0,"td",65),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,1e3*(null==e?null:e.expires_at),"dd/MMM/y HH:mm")," ")}}function DA(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Date Settled"),A.k0s())}function Ae(n,l){if(1&n&&(A.j41(0,"td",65),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.paid_at),"dd/MMM/y HH:mm")||"-")}}function pe(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Type"),A.k0s())}function MA(n,l){if(1&n&&(A.j41(0,"td",65),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null!=e&&e.bolt12?"Bolt12":null!=e&&e.bolt11&&e.label.includes("keysend-")?"Keysend":"Bolt11")}}function Pe(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Description"),A.k0s())}function At(n,l){if(1&n&&(A.j41(0,"td",65)(1,"div",73)(2,"span",74),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,bA,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.description)}}function _(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Label"),A.k0s())}function be(n,l){if(1&n&&(A.j41(0,"td",65)(1,"div",73)(2,"span",74),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,bA,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.label)}}function Re(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Payment Hash"),A.k0s())}function SA(n,l){if(1&n&&(A.j41(0,"td",65)(1,"div",73)(2,"span",74),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,bA,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.payment_hash)}}function we(n,l){1&n&&(A.j41(0,"th",72),A.EFF(1,"Invoice"),A.k0s())}function Fe(n,l){if(1&n&&(A.j41(0,"td",65)(1,"div",73)(2,"span",74),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,bA,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.bolt11)}}function et(n,l){1&n&&(A.j41(0,"th",75),A.EFF(1,"Amount (Sats)"),A.k0s())}function Ke(n,l){if(1&n&&(A.j41(0,"td",65)(1,"span",76),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.amount_msat)/1e3,(null==e?null:e.amount_msat)<1e3?"1.0-4":"1.0-0"))}}function $e(n,l){1&n&&(A.j41(0,"th",75),A.EFF(1,"Amount Settled (Sats)"),A.k0s())}function ht(n,l){if(1&n&&(A.j41(0,"td",65)(1,"span",76),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.amount_received_msat)/1e3,(null==e?null:e.amount_received_msat)<1e3?"1.0-4":"1.0-0"))}}function cn(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",77)(1,"div",78)(2,"mat-select",79),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",80),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function at(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",81)(1,"div",78)(2,"mat-select",82),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",80),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onInvoiceClick(o))}),A.EFF(5,"View Info"),A.k0s(),A.j41(6,"mat-option",80),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onRefreshInvoice(o))}),A.EFF(7,"Refresh"),A.k0s()()()()}}function It(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No invoice available."),A.k0s())}function mt(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting invoices..."),A.k0s())}function Tt(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function Lt(n,l){if(1&n&&(A.j41(0,"td",83),A.DNE(1,It,2,0,"p",84)(2,mt,2,0,"p",84)(3,Tt,2,1,"p",84),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function Qn(n,l){if(1&n&&A.nrm(0,"tr",85),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,le,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function pn(n,l){1&n&&A.nrm(0,"tr",86)}function Gt(n,l){1&n&&A.nrm(0,"tr",87)}function Mt(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",26)(1,"div",27)(2,"div",28),A.nrm(3,"fa-icon",29),A.j41(4,"span",30),A.EFF(5,"Invoices History"),A.k0s()(),A.j41(6,"div",31)(7,"mat-form-field",32)(8,"mat-label"),A.EFF(9,"Filter By"),A.k0s(),A.j41(10,"mat-select",33),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilterBy,o)||(r.selFilterBy=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return o.selFilter="",w.Njj(o.applyFilter())}),A.j41(11,"perfect-scrollbar"),A.DNE(12,oe,2,2,"mat-option",34),A.k0s()()(),A.j41(13,"mat-form-field",32)(14,"mat-label"),A.EFF(15,"Filter"),A.k0s(),A.j41(16,"input",35),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilter,o)||(r.selFilter=o),w.Njj(o)}),A.bIt("input",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())})("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())}),A.k0s()()()(),A.j41(17,"div",36),A.DNE(18,sA,1,0,"mat-progress-bar",37),A.j41(19,"table",38,1),A.qex(21,39),A.DNE(22,S,1,0,"th",40)(23,E,4,3,"td",41),A.bVm(),A.qex(24,42),A.DNE(25,mA,2,0,"th",43)(26,ie,3,4,"td",41),A.bVm(),A.qex(27,44),A.DNE(28,DA,2,0,"th",43)(29,Ae,3,4,"td",41),A.bVm(),A.qex(30,45),A.DNE(31,pe,2,0,"th",43)(32,MA,2,1,"td",41),A.bVm(),A.qex(33,46),A.DNE(34,Pe,2,0,"th",43)(35,At,4,4,"td",41),A.bVm(),A.qex(36,47),A.DNE(37,_,2,0,"th",43)(38,be,4,4,"td",41),A.bVm(),A.qex(39,48),A.DNE(40,Re,2,0,"th",43)(41,SA,4,4,"td",41),A.bVm(),A.qex(42,49),A.DNE(43,we,2,0,"th",43)(44,Fe,4,4,"td",41),A.bVm(),A.qex(45,50),A.DNE(46,et,2,0,"th",51)(47,Ke,4,4,"td",41),A.bVm(),A.qex(48,52),A.DNE(49,$e,2,0,"th",51)(50,ht,4,4,"td",41),A.bVm(),A.qex(51,53),A.DNE(52,cn,6,0,"th",54)(53,at,8,0,"td",55),A.bVm(),A.qex(54,56),A.DNE(55,Lt,4,3,"td",57),A.bVm(),A.DNE(56,Qn,1,3,"tr",58)(57,pn,1,0,"tr",59)(58,Gt,1,0,"tr",60),A.k0s()(),A.nrm(59,"mat-paginator",61),A.k0s()}if(2&n){const e=A.XpG();A.R7$(3),A.Y8G("icon",e.faHistory),A.R7$(7),A.R50("ngModel",e.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(15,D).concat(e.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",e.selFilter),A.R7$(2),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.invoices)("ngClass",A.eq3(16,X,""!==e.errorMessage)),A.R7$(37),A.Y8G("matFooterRowDef",A.lJ4(18,YA)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns),A.R7$(),A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Ot=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln,Qt){this.logger=i,this.store=o,this.decimalPipe=r,this.commonService=iA,this.rtlEffects=ne,this.datePipe=re,this.actions=ln,this.camelCaseWithReplace=Qt,this.calledFrom="transactions",this.faHistory=v.Int,this.nodePageDefs=B.Jd,this.convertedCurrency=null,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:B.md,sortBy:"expires_at",sortOrder:B.oi.DESCENDING},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new z.I6([]),this.invoiceJSONArr=[],this.information={},this.private=!1,this.expiryStep=100,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.Pj).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=i.listInvoices.invoices||[],this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(i)}),this.actions.pipe((0,I.Q)(this.unSubs[4]),(0,nA.p)(i=>i.type===B.TC.SET_LOOKUP_CLN||i.type===B.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(i=>{i.type===B.TC.SET_LOOKUP_CLN&&this.invoiceJSONArr&&this.sort&&this.paginator&&i.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(i.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,C.xO)({payload:{data:{pageSize:this.pageSize,component:IA}}}))}onAddInvoice(i){this.invoiceValue||(this.invoiceValue=0);const o=this.expiry?this.expiry:B.It;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue,this.store.dispatch((0,VA.VK)({payload:{label:this.newlyAddedInvoiceMemo,amount_msat:this.invoiceValue?1e3*this.invoiceValue:"any",description:this.description,expiry:o,exposeprivatechannels:this.private}})),this.resetData()}onDeleteExpiredInvoices(){this.store.dispatch((0,C.I1)({payload:{data:{type:"CONFIRM",titleMessage:"Delete Expired Invoices",noBtnText:"Cancel",yesBtnText:"Delete Invoices"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[5])).subscribe(i=>{i&&this.store.dispatch((0,VA.a5)({payload:null}))})}onInvoiceClick(i){this.store.dispatch((0,C.xO)({payload:{data:{invoice:{amount_msat:i.amount_msat,label:i.label,expires_at:i.expires_at,paid_at:i.paid_at,bolt11:i.bolt11,payment_hash:i.payment_hash,description:i.description,status:i.status,amount_received_msat:i.amount_received_msat},newlyAdded:!1,component:gA.y}}}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint=""}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.invoices.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=this.datePipe.transform(new Date(1e3*(i.paid_at||0)),"dd/MMM/y HH:mm")?.toLowerCase()+this.datePipe.transform(new Date(1e3*(i.expires_at||0)),"dd/MMM/y HH:mm")?.toLowerCase()+(i.bolt12?"bolt12":i.bolt11?"bolt11":"keysend")+JSON.stringify(i).toLowerCase();break;case"status":r="paid"===i?.status?"paid":"unpaid"===i?.status?"unpaid":"expired";break;case"expires_at":case"paid_at":r=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"type":r=i?.bolt12?"bolt12":i?.bolt11&&i?.label?.includes("keysend-")?"keysend":"bolt11";break;case"msatoshi":r=((i.amount_msat||0)/1e3).toString()||"";break;case"msatoshi_received":r=((i.amount_received_msat||0)/1e3).toString()||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"status"===this.selFilterBy||"type"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}onInvoiceValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,B.BQ.SATS,B.BQ.OTHER,this.selNode?.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[6])).subscribe({next:i=>{this.convertedCurrency=i,this.invoiceValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,B.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.invoiceValueHint="Conversion Error: "+i}}))}onRefreshInvoice(i){this.store.dispatch((0,VA.Yi)({payload:i.label}))}updateInvoicesData(i){this.invoiceJSONArr=this.invoiceJSONArr?.map(o=>o.label===i.label?i:o)}loadInvoicesTable(i){this.invoices=new z.I6(i?[...i]:[]),this.invoices.sort=this.sort,this.invoices.sortingDataAccessor=(o,r)=>{switch(r){case"msatoshi":return o.amount_msat;case"msatoshi_received":return o.amount_received_msat;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.invoices.paginator=this.paginator,this.applyFilter(),this.setFilterPredicate()}onDownloadCSV(){this.invoices.data&&this.invoices.data.length>0&&this.commonService.downloadFile(this.invoices.data,"Invoices")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(de.QX),A.rXU(L.h),A.rXU(b.H),A.rXU(de.vh),A.rXU(kA.En),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-lightning-invoices-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Invoices")}])],decls:4,vars:3,consts:[["addInvoiceForm","ngForm"],["table",""],["fxLayout","column","fxFlex","110","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","stretch start","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["matInput","","tabindex","2","name","description",3,"ngModelChange","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","name","invoiceValue","type","number","tabindex","3",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","row wrap","fxFlex","100"],["class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],[1,"mr-3px"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["mat-stroked-button","","color","warn","tabindex","7","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","expires_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","paid_at"],["matColumnDef","type"],["matColumnDef","description"],["matColumnDef","label"],["matColumnDef","payment_hash"],["matColumnDef","bolt11"],["matColumnDef","msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi_received"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){1&o&&(A.j41(0,"div",2),A.DNE(1,ze,22,8,"form",3)(2,Oe,5,0,"div",4)(3,Mt,60,19,"div",5),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf","home"===r.calledFrom),A.R7$(),A.Y8G("ngIf","transactions"===r.calledFrom),A.R7$(),A.Y8G("ngIf","transactions"===r.calledFrom))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.VZ,hA.vS,hA.cV,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,yA.MV,yA.yw,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,J.V,de.QX,de.vh],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return n(),l})();var bt=We(96697),Dt=We(51534),Ze=We(82765),qe=We(5951);const Et=["sendPaymentForm"],ct=["paymentAmt"],Ht=["offerAmt"],Jt=["paymentReq"],GA=["offerReq"];function zA(n,l){if(1&n&&(A.j41(0,"mat-radio-button",26),A.EFF(1,"Offer"),A.k0s()),2&n){const e=A.XpG();A.Y8G("value",A.mNQ(e.paymentTypes.OFFER))}}function vA(n,l){1&n&&A.eu8(0)}function qA(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.paymentError)}}function ZA(n,l){if(1&n&&(A.j41(0,"div",27),A.nrm(1,"fa-icon",28),A.DNE(2,qA,2,1,"span",29),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.paymentError)}}function jA(n,l){if(1&n&&(A.j41(0,"span",37),A.nrm(1,"fa-icon",38),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function ue(n,l){if(1&n&&A.nrm(0,"span",39),2&n){const e=A.XpG(3);A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function WA(n,l){if(1&n&&(A.j41(0,"mat-hint",34),A.EFF(1),A.DNE(2,jA,2,1,"span",35)(3,ue,1,1,"span",36),A.EFF(4),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.SpI(" ",e.paymentDecodedHintPre," "),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),A.R7$(),A.SpI(" ",e.paymentDecodedHintPost," ")}}function ae(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Payment request is required."),A.k0s())}function ce(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.paymentDecodedHint)}}function ye(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Payment amount is required."),A.k0s())}function ke(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",10)(1,"mat-label"),A.EFF(2,"Amount (Sats)"),A.k0s(),A.j41(3,"input",40,5),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG(2);return A.DH7(r.paymentAmount,o)||(r.paymentAmount=o),w.Njj(o)}),A.bIt("change",function(o){w.eBV(e);const r=A.XpG(2);return w.Njj(r.onAmountChange(o))}),A.k0s(),A.j41(5,"mat-hint"),A.EFF(6,"It is a zero amount invoice, enter amount to be paid."),A.k0s(),A.DNE(7,ye,2,0,"mat-error",29),A.k0s()}if(2&n){const e=A.XpG(2);A.R7$(3),A.R50("ngModel",e.paymentAmount),A.R7$(4),A.Y8G("ngIf",!e.paymentAmount)}}function Je(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",30)(1,"mat-label"),A.EFF(2,"Payment Request"),A.k0s(),A.j41(3,"textarea",31,4),A.bIt("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return w.eBV(e),w.Njj(!0)}),A.k0s(),A.DNE(5,WA,5,4,"mat-hint",32)(6,ae,2,0,"mat-error",29)(7,ce,2,1,"mat-error",29),A.k0s(),A.DNE(8,ke,8,2,"mat-form-field",33)}if(2&n){const e=A.sdS(4),i=A.XpG();A.R7$(3),A.Y8G("ngModel",i.paymentRequest),A.R7$(2),A.Y8G("ngIf",i.paymentRequest&&""!==i.paymentDecodedHintPre),A.R7$(),A.Y8G("ngIf",!i.paymentRequest),A.R7$(),A.Y8G("ngIf",null==e.errors?null:e.errors.decodeError),A.R7$(),A.Y8G("ngIf",i.zeroAmtInvoice)}}function tt(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Pubkey is required."),A.k0s())}function je(n,l){1&n&&(A.j41(0,"span",45),A.EFF(1,"= "),A.k0s())}function Ce(n,l){if(1&n&&(A.j41(0,"span",37),A.nrm(1,"fa-icon",38),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function _e(n,l){if(1&n&&A.nrm(0,"span",39),2&n){const e=A.XpG(2);A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function st(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Keysend amount is required."),A.k0s())}function lt(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",30)(1,"mat-label"),A.EFF(2,"Pubkey"),A.k0s(),A.j41(3,"input",41),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.pubkey,o)||(r.pubkey=o),w.Njj(o)}),A.k0s(),A.DNE(4,tt,2,0,"mat-error",29),A.k0s(),A.j41(5,"mat-form-field",30)(6,"mat-label"),A.EFF(7,"Amount"),A.k0s(),A.j41(8,"input",42,6),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.keysendAmount,o)||(r.keysendAmount=o),w.Njj(o)}),A.bIt("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onKeysendAmountChange())}),A.k0s(),A.j41(10,"span",43),A.EFF(11,"Sats "),A.k0s(),A.j41(12,"mat-hint",34),A.DNE(13,je,2,0,"span",44)(14,Ce,2,1,"span",35)(15,_e,1,1,"span",36),A.EFF(16),A.k0s(),A.DNE(17,st,2,0,"mat-error",29),A.k0s()}if(2&n){const e=A.XpG();A.R7$(3),A.R50("ngModel",e.pubkey),A.R7$(),A.Y8G("ngIf",!e.pubkey),A.R7$(4),A.R50("ngModel",e.keysendAmount),A.R7$(5),A.Y8G("ngIf",""!==e.keysendValueHint),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.keysendValueHint),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.keysendValueHint),A.R7$(),A.SpI(" ",e.keysendValueHint," "),A.R7$(),A.Y8G("ngIf",!e.keysendAmount)}}function wt(n,l){if(1&n&&(A.j41(0,"span",37),A.nrm(1,"fa-icon",38),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function Bt(n,l){if(1&n&&A.nrm(0,"span",39),2&n){const e=A.XpG(3);A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function pt(n,l){if(1&n&&(A.j41(0,"mat-hint",34),A.EFF(1),A.DNE(2,wt,2,1,"span",35)(3,Bt,1,1,"span",36),A.EFF(4),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.SpI(" ",e.offerDecodedHintPre," "),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.offerDecodedHintPre),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.offerDecodedHintPre),A.R7$(),A.SpI(" ",e.offerDecodedHintPost," ")}}function ot(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Offer request is required."),A.k0s())}function ut(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.offerDecodedHint)}}function an(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Offer amount is required."),A.k0s())}function Wt(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",10)(1,"mat-label"),A.EFF(2,"Amount (Sats)"),A.k0s(),A.j41(3,"input",51,8),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG(2);return A.DH7(r.offerAmount,o)||(r.offerAmount=o),w.Njj(o)}),A.bIt("change",function(o){w.eBV(e);const r=A.XpG(2);return w.Njj(r.onAmountChange(o))}),A.k0s(),A.j41(5,"mat-hint"),A.EFF(6,"It is a zero amount offer, enter amount to be paid."),A.k0s(),A.DNE(7,an,2,0,"mat-error",29),A.k0s()}if(2&n){const e=A.XpG(2);A.R7$(3),A.R50("ngModel",e.offerAmount),A.R7$(4),A.Y8G("ngIf",!e.offerAmount)}}function _t(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",52)(1,"mat-label"),A.EFF(2,"Title to Save"),A.k0s(),A.j41(3,"input",53),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG(2);return A.DH7(r.offerTitle,o)||(r.offerTitle=o),w.Njj(o)}),A.k0s()()}if(2&n){const e=A.XpG(2);A.R7$(3),A.R50("ngModel",e.offerTitle)}}function Pt(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",30)(1,"mat-label"),A.EFF(2,"Offer Request"),A.k0s(),A.j41(3,"textarea",46,7),A.bIt("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return w.eBV(e),w.Njj(!0)}),A.k0s(),A.DNE(5,pt,5,4,"mat-hint",32)(6,ot,2,0,"mat-error",29)(7,ut,2,1,"mat-error",29),A.k0s(),A.DNE(8,Wt,8,2,"mat-form-field",33),A.j41(9,"div",47)(10,"mat-checkbox",48),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.flgSaveToDB,o)||(r.flgSaveToDB=o),w.Njj(o)}),A.EFF(11,"Bookmark Offer"),A.k0s(),A.j41(12,"mat-icon",49),A.EFF(13,"info_outline"),A.k0s()(),A.DNE(14,_t,4,1,"mat-form-field",50)}if(2&n){const e=A.sdS(4),i=A.XpG();A.R7$(3),A.Y8G("ngModel",i.offerRequest),A.R7$(2),A.Y8G("ngIf",i.offerRequest&&""!==i.offerDecodedHintPre),A.R7$(),A.Y8G("ngIf",!i.offerRequest),A.R7$(),A.Y8G("ngIf",null==e.errors?null:e.errors.decodeError),A.R7$(),A.Y8G("ngIf",i.zeroAmtOffer),A.R7$(2),A.R50("ngModel",i.flgSaveToDB),A.R7$(4),A.Y8G("ngIf",i.flgSaveToDB||""!==i.offerTitle)}}let Bn=(()=>{var n;class l{set payReq(i){i&&(this.paymentReq=i)}set offrReq(i){i&&(this.offerReq=i)}constructor(i,o,r,iA,ne,re,ln,Qt){this.dialogRef=i,this.data=o,this.store=r,this.logger=iA,this.commonService=ne,this.decimalPipe=re,this.actions=ln,this.dataService=Qt,this.faExclamationTriangle=v.zpE,this.convertedCurrency=null,this.paymentTypes=B.Y0,this.paymentType=B.Y0.INVOICE,this.offerDecoded={},this.offerRequest="",this.offerDecodedHintPre="",this.offerDecodedHintPost="",this.offerDescription="",this.offerIssuer="",this.offerTitle="",this.zeroAmtOffer=!1,this.offerInvoice=null,this.offerAmount=null,this.flgSaveToDB=!1,this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentAmount=null,this.pubkey="",this.keysendAmount=null,this.keysendValueHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=B.nv[0],this.feeLimitTypes=B.nv,this.paymentError="",this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}ngOnInit(){if(this.data&&this.data.paymentType)switch(this.paymentType=this.data.paymentType,this.paymentType){case B.Y0.INVOICE:this.paymentRequest=this.data.invoiceBolt11;break;case B.Y0.KEYSEND:this.pubkey=this.data.pubkeyKeysend;break;case B.Y0.OFFER:this.onPaymentRequestEntry(this.data.bolt12),this.offerTitle=this.data.offerTitle,this.flgSaveToDB=!1}this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.activeChannels=i.activeChannels,this.logger.info(i)}),this.actions.pipe((0,I.Q)(this.unSubs[3]),(0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN||i.type===B.TC.SEND_PAYMENT_STATUS_CLN||i.type===B.TC.SET_OFFER_INVOICE_CLN)).subscribe(i=>{i.type===B.TC.SEND_PAYMENT_STATUS_CLN&&this.dialogRef.close(),i.type===B.TC.SET_OFFER_INVOICE_CLN&&(this.offerInvoice=i.payload,this.sendPayment()),i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&i.payload.status===B.wn.ERROR&&("SendPayment"===i.payload.action&&(delete this.paymentDecoded.amount_msat,this.paymentError=i.payload.message),"DecodePayment"===i.payload.action&&(this.paymentType===B.Y0.INVOICE&&(this.paymentDecodedHintPre="ERROR: "+i.payload.message,this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})),this.paymentType===B.Y0.OFFER&&(this.offerDecodedHintPre="ERROR: "+i.payload.message,this.offerDecodedHintPost="",this.offerReq.control.setErrors({decodeError:!0})),this.paymentType===B.Y0.KEYSEND&&(this.keysendValueHint="ERROR: "+i.payload.message)),"FetchOfferInvoice"===i.payload.action&&this.paymentType===B.Y0.OFFER&&(this.paymentError=i.payload.message))})}onSendPayment(){switch(this.paymentType){case B.Y0.KEYSEND:if(!this.pubkey||""===this.pubkey.trim()||!this.keysendAmount||this.keysendAmount<=0)return!0;this.keysendPayment();break;case B.Y0.INVOICE:if(!this.paymentRequest||this.zeroAmtInvoice&&(0===this.paymentAmount||!this.paymentAmount))return this.paymentReq.control.markAsTouched(),this.paymentAmt.control.markAsTouched(),!0;this.paymentDecoded.created_at?this.sendPayment():(this.resetInvoiceDetails(),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{"bolt12 offer"===i.type&&i.offer_id?(this.paymentDecodedHintPre="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=i,this.setPaymentDecodedDetails())}));break;case B.Y0.OFFER:if(!this.offerRequest||this.zeroAmtOffer&&(0===this.offerAmount||!this.offerAmount))return this.offerReq.control.markAsTouched(),this.offerAmt.control.markAsTouched(),!0;this.offerDecoded.offer_id?this.sendPayment():(this.resetOfferDetails(),this.dataService.decodePayment(this.offerRequest,!0).pipe((0,I.Q)(this.unSubs[5])).subscribe(i=>{"bolt11 invoice"===i.type&&i.payment_hash?(this.offerDecodedHintPre="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerDecodedHintPost="",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=i,this.setOfferDecodedDetails())}))}}keysendPayment(){this.keysendAmount&&this.store.dispatch((0,VA.Fd)({payload:{uiMessage:B.MZ.SEND_KEYSEND,paymentType:B.Y0.KEYSEND,destination:this.pubkey,amount_msat:1e3*this.keysendAmount,fromDialog:!0}}))}sendPayment(){this.paymentError="",this.paymentType===B.Y0.INVOICE?this.store.dispatch((0,VA.Fd)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{uiMessage:B.MZ.SEND_PAYMENT,paymentType:B.Y0.INVOICE,bolt11:this.paymentRequest,amount_msat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{uiMessage:B.MZ.SEND_PAYMENT,paymentType:B.Y0.INVOICE,bolt11:this.paymentRequest,fromDialog:!0}})):this.paymentType===B.Y0.OFFER&&(this.offerInvoice?this.offerAmount&&this.store.dispatch((0,VA.Fd)({payload:{uiMessage:B.MZ.SEND_PAYMENT,paymentType:B.Y0.OFFER,bolt11:this.offerInvoice.invoice,saveToDB:this.flgSaveToDB,bolt12:this.offerRequest,amount_msat:1e3*this.offerAmount,zeroAmtOffer:this.zeroAmtOffer,title:this.offerTitle,issuer:this.offerIssuer,description:this.offerDescription,fromDialog:!0}})):this.store.dispatch((0,VA.Ew)(this.zeroAmtOffer&&this.offerAmount?{payload:{offer:this.offerRequest,amount_msat:1e3*this.offerAmount}}:{payload:{offer:this.offerRequest}})))}onPaymentRequestEntry(i){this.paymentType===B.Y0.INVOICE?(this.paymentRequest=i,this.resetInvoiceDetails()):this.paymentType===B.Y0.OFFER&&(this.offerRequest=i,this.resetOfferDetails()),i.length>100&&this.dataService.decodePayment(i,!0).pipe((0,I.Q)(this.unSubs[6])).subscribe(o=>{this.paymentType===B.Y0.INVOICE?"bolt12 offer"===o.type&&o.offer_id?(this.paymentDecodedHintPre="ERROR: Select Offer option to pay the bolt12 offer invoice.",this.paymentDecodedHintPost="",this.paymentReq.control.setErrors({decodeError:!0})):(this.paymentDecoded=o,this.setPaymentDecodedDetails()):this.paymentType===B.Y0.OFFER&&("bolt11 invoice"===o.type&&o.payment_hash?(this.offerDecodedHintPre="ERROR: Select Invoice option to pay the bolt11 invoice.",this.offerDecodedHintPost="",this.offerReq.control.setErrors({decodeError:!0})):(this.offerDecoded=o,this.setOfferDecodedDetails()))})}resetOfferDetails(){this.offerInvoice=null,this.offerAmount=null,this.offerDecodedHintPre="",this.offerDecodedHintPost="",this.zeroAmtOffer=!1,this.paymentError="",this.offerReq&&this.offerReq.control.setErrors(null)}resetInvoiceDetails(){this.paymentAmount=null,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.zeroAmtInvoice=!1,this.paymentError="",this.paymentReq&&this.paymentReq.control.setErrors(null)}onAmountChange(i){this.paymentType===B.Y0.INVOICE&&(delete this.paymentDecoded.amount_msat,this.paymentDecoded.amount_msat=+i.target.value),this.paymentType===B.Y0.OFFER&&(delete this.offerDecoded.offer_amount_msat,this.offerDecoded.offer_amount_msat=i.target.value)}onPaymentTypeChange(){this.paymentError="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.offerDecodedHintPre="",this.offerDecodedHintPost="",this.offerInvoice=null}setOfferDecodedDetails(){this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat?(this.offerDecoded.offer_amount_msat=0,this.zeroAmtOffer=!0,this.offerDescription=this.offerDecoded.offer_description||"",this.offerIssuer=this.offerDecoded.offer_issuer?this.offerDecoded.offer_issuer:"",this.offerDecodedHintPre="Zero Amount Offer | Description: "+this.offerDecoded.offer_description,this.offerDecodedHintPost=""):(this.zeroAmtOffer=!1,this.offerAmount=this.offerDecoded.offer_amount_msat?this.offerDecoded.offer_amount_msat/1e3:0,this.offerDescription=this.offerDecoded.offer_description||"",this.offerIssuer=this.offerDecoded.offer_issuer?this.offerDecoded.offer_issuer:"",this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(this.offerAmount,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[7])).subscribe({next:i=>{this.convertedCurrency=i,this.offerDecodedHintPre="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats (",this.offerDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,B.k.OTHER)+" "+this.convertedCurrency.unit+") | Description: "+this.offerDecoded.offer_description},error:i=>{this.offerDecodedHintPre="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.offer_description+". Unable to convert currency.",this.offerDecodedHintPost=""}}):(this.offerDecodedHintPre="Sending: "+this.decimalPipe.transform(this.offerAmount)+" Sats | Description: "+this.offerDecoded.offer_description,this.offerDecodedHintPost=""))}setPaymentDecodedDetails(){this.paymentDecoded.created_at&&!this.paymentDecoded.amount_msat?(this.paymentDecoded.amount_msat=0,this.zeroAmtInvoice=!0,this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.settings.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[8])).subscribe({next:i=>{this.convertedCurrency=i,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,B.k.OTHER)+" "+this.convertedCurrency.unit+") | Memo: "+this.paymentDecoded.description},error:i=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""))}resetData(){switch(this.paymentType){case B.Y0.KEYSEND:this.pubkey="",this.keysendValueHint="",this.keysendAmount=null;break;case B.Y0.INVOICE:this.paymentRequest="",this.paymentDecoded={},this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=B.nv[0],this.resetInvoiceDetails();break;case B.Y0.OFFER:this.offerRequest="",this.offerDecoded={},this.flgSaveToDB=!1,this.resetOfferDetails()}this.paymentError=""}onKeysendAmountChange(){this.selNode&&this.selNode.settings.fiatConversion&&(this.keysendValueHint="",this.keysendAmount&&this.keysendAmount>99&&this.commonService.convertCurrency(this.keysendAmount,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[3])).subscribe({next:i=>{this.convertedCurrency=i,this.keysendValueHint=this.decimalPipe.transform(this.convertedCurrency.OTHER,B.k.OTHER)+" "+this.convertedCurrency.unit},error:i=>{this.keysendValueHint="Conversion Error: "+i}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(aA.gP),A.rXU(L.h),A.rXU(de.QX),A.rXU(kA.En),A.rXU(Dt.u))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-lightning-send-payments"]],viewQuery:function(o,r){if(1&o&&(A.GBs(Et,5),A.GBs(ct,5),A.GBs(Ht,5),A.GBs(Jt,5),A.GBs(GA,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first),A.mGM(iA=A.lsd())&&(r.paymentAmt=iA.first),A.mGM(iA=A.lsd())&&(r.offerAmt=iA.first),A.mGM(iA=A.lsd())&&(r.payReq=iA.first),A.mGM(iA=A.lsd())&&(r.offrReq=iA.first)}},standalone:!1,decls:30,vars:9,consts:[["sendPaymentForm","ngForm"],["invoiceBlock",""],["keysendBlock",""],["offerBlock",""],["paymentReq","ngModel"],["paymentAmt","ngModel"],["keysendAmt","ngModel"],["offerReq","ngModel"],["offerAmt","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","12","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["color","primary","name","paymentType","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModelChange","change","ngModel"],["fxFlex","20","tabindex","1",3,"value"],["fxFlex","20","tabindex","2",3,"value"],["fxFlex","20","tabindex","3",3,"value",4,"ngIf"],["fxLayoutAlign","space-between stretch","fxLayout","column",3,"submit","reset"],[4,"ngTemplateOutlet"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],["fxFlex","20","tabindex","3",3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","rows","4","name","paymentRequest","tabindex","4","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["matInput","","name","amount","tabindex","5","required","",3,"ngModelChange","change","ngModel"],["autoFocus","","matInput","","name","pubkey","tabindex","4","required","",3,"ngModelChange","ngModel"],["matInput","","name","keysendAmount","tabindex","5","required","",3,"ngModelChange","keyup","ngModel"],["matSuffix",""],["class","mr-3px",4,"ngIf"],[1,"mr-3px"],["autoFocus","","matInput","","rows","4","name","offerRequest","tabindex","4","required","",3,"ngModelChange","matTextareaAutosize","ngModel"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["fxFlex","none","tabindex","6","color","primary",3,"ngModelChange","ngModel"],["matTooltip","Save offer in database for future payments","matTooltipPosition","below","fxFlex","none",1,"info-icon"],["fxFlex","100","class","mt-1",4,"ngIf"],["matInput","","name","amountoffer","tabindex","5","required","",3,"ngModelChange","change","ngModel"],["fxFlex","100",1,"mt-1"],["matInput","","tabindex","7",3,"ngModelChange","ngModel"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",9)(1,"div",10)(2,"mat-card-header",11)(3,"div",12)(4,"span",13),A.EFF(5,"Send Payment"),A.k0s()(),A.j41(6,"button",14),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",15)(9,"mat-radio-group",16),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.paymentType,re)||(r.paymentType=re),w.Njj(re)}),A.bIt("change",function(){return w.eBV(iA),w.Njj(r.onPaymentTypeChange())}),A.j41(10,"mat-radio-button",17),A.EFF(11,"Invoice"),A.k0s(),A.j41(12,"mat-radio-button",18),A.EFF(13,"Keysend"),A.k0s(),A.DNE(14,zA,2,2,"mat-radio-button",19),A.k0s(),A.j41(15,"form",20,0),A.bIt("submit",function(){return w.eBV(iA),w.Njj(r.onSendPayment())})("reset",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.DNE(17,vA,1,0,"ng-container",21)(18,ZA,3,2,"div",22),A.j41(19,"div",23)(20,"button",24),A.EFF(21,"Clear Fields"),A.k0s(),A.j41(22,"button",25),A.EFF(23,"Send Payment"),A.k0s()()()()()(),A.DNE(24,Je,9,5,"ng-template",null,1,A.C5r)(26,lt,18,8,"ng-template",null,2,A.C5r)(28,Pt,15,7,"ng-template",null,3,A.C5r)}if(2&o){const iA=A.sdS(25),ne=A.sdS(27),re=A.sdS(29);A.R7$(6),A.Y8G("mat-dialog-close",!1),A.R7$(3),A.R50("ngModel",r.paymentType),A.R7$(),A.Y8G("value",A.mNQ(r.paymentTypes.INVOICE)),A.R7$(2),A.Y8G("value",A.mNQ(r.paymentTypes.KEYSEND)),A.R7$(2),A.Y8G("ngIf",r.selNode.settings.enableOffers),A.R7$(3),A.Y8G("ngTemplateOutlet",r.paymentType===r.paymentTypes.KEYSEND?ne:r.paymentType===r.paymentTypes.OFFER?re:iA),A.R7$(),A.Y8G("ngIf",""!==r.paymentError)}},dependencies:[de.bT,de.T3,hA.qT,hA.me,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,P.aY,wA.tx,fA.$z,QA.m2,QA.MM,Ze.So,oA.An,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,yA.yw,qe.VT,qe._g,Q.DJ,Q.sA,Q.UI,HA.oV,cA.N],encapsulation:2}))}return n(),l})();const In=["sendPaymentForm"],Dn=()=>["all"],Cn=n=>({"error-border":n}),Nn=()=>["no_payment"],St=n=>({width:n}),vn=n=>({"display-none":n});function Un(n,l){if(1&n&&(A.j41(0,"span",18),A.nrm(1,"fa-icon",19),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.Y8G("icon",e.convertedCurrency.symbol)}}function Ln(n,l){if(1&n&&A.nrm(0,"span",20),2&n){const e=A.XpG(3);A.Y8G("innerHTML",e.convertedCurrency.symbol,A.npT)}}function Fn(n,l){if(1&n&&(A.j41(0,"mat-hint",15),A.EFF(1),A.DNE(2,Un,2,1,"span",16)(3,Ln,1,1,"span",17),A.EFF(4),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.SpI(" ",e.paymentDecodedHintPre," "),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"FA"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),A.R7$(),A.Y8G("ngIf",e.convertedCurrency&&"SVG"===e.convertedCurrency.iconType&&""!==e.paymentDecodedHintPre),A.R7$(),A.SpI(" ",e.paymentDecodedHintPost," ")}}function On(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Payment request is required."),A.k0s())}function Ei(n,l){if(1&n){const e=A.RV6();A.j41(0,"form",7,0)(2,"mat-form-field",8)(3,"mat-label"),A.EFF(4,"Payment Request"),A.k0s(),A.j41(5,"textarea",9,1),A.bIt("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onPaymentRequestEntry(o))})("matTextareaAutosize",function(){return w.eBV(e),w.Njj(!0)}),A.k0s(),A.DNE(7,Fn,5,4,"mat-hint",10)(8,On,2,0,"mat-error",11),A.k0s(),A.j41(9,"div",12)(10,"button",13),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.resetData())}),A.EFF(11,"Clear Field"),A.k0s(),A.j41(12,"button",14),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onSendPayment())}),A.EFF(13,"Send Payment"),A.k0s()()()}if(2&n){const e=A.XpG();A.R7$(5),A.Y8G("ngModel",e.paymentRequest),A.R7$(2),A.Y8G("ngIf",e.paymentRequest&&""!==e.paymentDecodedHintPre),A.R7$(),A.Y8G("ngIf",!e.paymentRequest)}}function wi(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",21)(1,"button",14),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.openSendPaymentModal())}),A.EFF(2,"Send Payment"),A.k0s()()}}function Ci(n,l){if(1&n&&(A.j41(0,"mat-option",70),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function di(n,l){1&n&&A.nrm(0,"mat-progress-bar",71)}function ri(n,l){1&n&&A.nrm(0,"th",72)}function xn(n,l){1&n&&A.nrm(0,"span",76)}function ai(n,l){1&n&&A.nrm(0,"span",77)}function Ki(n,l){if(1&n&&(A.j41(0,"td",73),A.DNE(1,xn,1,0,"span",74)(2,ai,1,0,"span",75),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf","complete"===e.status),A.R7$(),A.Y8G("ngIf","complete"!==e.status)}}function Qi(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Created At"),A.k0s())}function Xi(n,l){if(1&n&&(A.j41(0,"td",73),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,1e3*(null==e?null:e.created_at),"dd/MMM/y HH:mm")," ")}}function mi(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Type"),A.k0s())}function fn(n,l){if(1&n&&(A.j41(0,"td",73),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null!=e&&e.bolt12?"Bolt12":null!=e&&e.bolt11?"Bolt11":"Keysend")}}function ms(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Payment Hash"),A.k0s())}function Ms(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",79)(2,"span",80),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.payment_hash)}}function Mi(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Invoice"),A.k0s())}function pi(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",79)(2,"span",80),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.bolt11)}}function Zi(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Label"),A.k0s())}function qi(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",79)(2,"span",80),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.label)}}function $i(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Destination"),A.k0s())}function ps(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",79)(2,"span",80),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.destination)}}function As(n,l){1&n&&(A.j41(0,"th",78),A.EFF(1,"Memo"),A.k0s())}function Is(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",79)(2,"span",80),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.memo)}}function Ui(n,l){1&n&&(A.j41(0,"th",81),A.EFF(1,"Sats Sent"),A.k0s())}function es(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",82),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.amount_sent_msat)/1e3,"1.0-4"))}}function Zn(n,l){1&n&&(A.j41(0,"th",81),A.EFF(1,"Sats Received"),A.k0s())}function Ds(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",82),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.amount_msat)/1e3,"1.0-4"))}}function Fs(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",83)(1,"div",84)(2,"mat-select",85),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",86),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function Li(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",87)(1,"button",88),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onPaymentClick(o))}),A.EFF(2,"View Info"),A.k0s()()}}function Gi(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No payment available."),A.k0s())}function un(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting payments..."),A.k0s())}function Ii(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function qn(n,l){if(1&n&&(A.j41(0,"td",89),A.DNE(1,Gi,2,0,"p",11)(2,un,2,0,"p",11)(3,Ii,2,1,"p",11),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",!(null!=e.payments&&e.payments.data&&null!=e.payments&&null!=e.payments.data&&e.payments.data.length||(null==e.apiCallStatus?null:e.apiCallStatus.status)!==e.apiCallStatusEnum.COMPLETED)),A.R7$(),A.Y8G("ngIf",!(null!=e.payments&&e.payments.data&&null!=e.payments&&null!=e.payments.data&&e.payments.data.length||(null==e.apiCallStatus?null:e.apiCallStatus.status)!==e.apiCallStatusEnum.INITIATED)),A.R7$(),A.Y8G("ngIf",!(null!=e.payments&&e.payments.data&&null!=e.payments&&null!=e.payments.data&&e.payments.data.length||(null==e.apiCallStatus?null:e.apiCallStatus.status)!==e.apiCallStatusEnum.ERROR))}}function ys(n,l){1&n&&A.nrm(0,"span",76)}function xs(n,l){1&n&&A.nrm(0,"span",77)}function Di(n,l){1&n&&A.nrm(0,"span",76)}function oi(n,l){1&n&&A.nrm(0,"span",77)}function Ys(n,l){if(1&n&&(A.j41(0,"span",90),A.DNE(1,Di,1,0,"span",74)(2,oi,1,0,"span",75),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf","complete"===e.status),A.R7$(),A.Y8G("ngIf","complete"!==e.status)}}function bs(n,l){if(1&n&&(A.qex(0),A.DNE(1,Ys,3,2,"span",91),A.bVm()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function zi(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",90),A.DNE(2,ys,1,0,"span",74)(3,xs,1,0,"span",75),A.k0s(),A.DNE(4,bs,2,1,"ng-container",11),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.Y8G("ngIf","complete"===e.status),A.R7$(),A.Y8G("ngIf","complete"!==e.status),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function vs(n,l){if(1&n&&(A.j41(0,"span",90),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,1e3*e.created_at,"dd/MMM/y HH:mm")," ")}}function ts(n,l){if(1&n&&(A.qex(0),A.DNE(1,vs,3,4,"span",91),A.bVm()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function Rs(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",90),A.EFF(2),A.k0s(),A.DNE(3,ts,2,1,"ng-container",11),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" Total Attempts: ",null==e?null:e.total_parts," "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function ns(n,l){1&n&&A.nrm(0,"span",90)}function Ss(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,ns,1,0,"span",91),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function li(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",90),A.EFF(2),A.k0s(),A.DNE(3,Ss,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(null!=e&&e.bolt12?"Bolt12":null!=e&&e.bolt11?"Bolt11":"Keysend"),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Ns(n,l){if(1&n&&(A.j41(0,"span",90),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" Part ID ",e.partid?e.partid:0," ")}}function is(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,Ns,2,1,"span",91),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function Ts(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",92)(2,"span",80),A.EFF(3),A.k0s()(),A.DNE(4,is,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(3,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.payment_hash),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Ps(n,l){if(1&n&&(A.j41(0,"span",94),A.nrm(1,"span",80),A.k0s()),2&n){const e=A.XpG(4);A.Y8G("ngStyle",A.eq3(1,St,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth))}}function Fi(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,Ps,2,3,"span",93),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function ki(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",92)(2,"span",80),A.EFF(3),A.k0s()(),A.DNE(4,Fi,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(3,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.bolt11),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Us(n,l){if(1&n&&(A.j41(0,"span",94),A.nrm(1,"span",80),A.k0s()),2&n){const e=A.XpG(4);A.Y8G("ngStyle",A.eq3(1,St,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth))}}function zn(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,Us,2,3,"span",93),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function Ls(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",92)(2,"span",80),A.EFF(3),A.k0s()(),A.DNE(4,zn,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(3,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.label),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function ss(n,l){if(1&n&&(A.j41(0,"span",94),A.nrm(1,"span",80),A.k0s()),2&n){const e=A.XpG(4);A.Y8G("ngStyle",A.eq3(1,St,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth))}}function Gs(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,ss,2,3,"span",93),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function yi(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",92)(2,"span",80),A.EFF(3),A.k0s()(),A.DNE(4,Gs,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(3,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.destination),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Yn(n,l){if(1&n&&(A.j41(0,"span",94),A.nrm(1,"span",80),A.k0s()),2&n){const e=A.XpG(4);A.Y8G("ngStyle",A.eq3(1,St,e.screenSize===e.screenSizeEnum.XS?"6rem":e.colWidth))}}function h(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,Yn,2,3,"span",93),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function c(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",92)(2,"span",80),A.EFF(3),A.k0s()(),A.DNE(4,h,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(3,St,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.memo),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function y(n,l){if(1&n&&(A.j41(0,"span",95),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,e.amount_sent_msat/1e3,e.amount_sent_msat<1e3?"1.0-4":"1.0-0")," ")}}function p(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,y,3,4,"span",96),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function q(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",95),A.EFF(2),A.nI1(3,"number"),A.k0s(),A.DNE(4,p,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,2,(null==e?null:e.amount_sent_msat)/1e3,(null==e?null:e.amount_sent_msat)<1e3?"1.0-4":"1.0-0")),A.R7$(2),A.Y8G("ngIf",e.is_expanded)}}function CA(n,l){if(1&n&&(A.j41(0,"span",95),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,e.amount_msat/1e3,e.amount_msat<1e3?"1.0-4":"1.0-0")," ")}}function _A(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,CA,3,4,"span",96),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function ee(n,l){if(1&n&&(A.j41(0,"td",73)(1,"span",95),A.EFF(2),A.nI1(3,"number"),A.k0s(),A.DNE(4,_A,2,1,"span",11),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,2,(null==e?null:e.amount_msat)/1e3,(null==e?null:e.amount_msat)<1e3?"1.0-4":"1.0-0")),A.R7$(2),A.Y8G("ngIf",e.is_expanded)}}function he(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",100)(1,"button",101),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(4);return w.Njj(r.onPaymentClick(o))}),A.EFF(2),A.k0s()()}if(2&n){const e=l.$implicit;A.R7$(2),A.SpI("View ",e.partid?e.partid:0)}}function Ie(n,l){if(1&n&&(A.j41(0,"div"),A.DNE(1,he,3,1,"div",99),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.mpps)}}function xe(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",73)(1,"span",97)(2,"button",98),A.bIt("click",function(){const o=w.eBV(e).$implicit;return w.Njj(o.is_expanded=!o.is_expanded)}),A.EFF(3),A.k0s()(),A.DNE(4,Ie,2,1,"div",11),A.k0s()}if(2&n){const e=l.$implicit;A.R7$(3),A.JRh(e.is_expanded?"Hide":"Show"),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function $(n,l){1&n&&A.nrm(0,"tr",102)}function s(n,l){if(1&n&&A.nrm(0,"tr",103),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,vn,(null==e.payments?null:e.payments.data)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)&&(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function d(n,l){1&n&&A.nrm(0,"tr",104)}function F(n,l){1&n&&A.nrm(0,"tr",102)}function W(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",22)(1,"div",23)(2,"div",24),A.nrm(3,"fa-icon",25),A.j41(4,"span",26),A.EFF(5,"Payments History"),A.k0s()(),A.j41(6,"div",27)(7,"mat-form-field",28)(8,"mat-label"),A.EFF(9,"Filter By"),A.k0s(),A.j41(10,"mat-select",29),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilterBy,o)||(r.selFilterBy=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return o.selFilter="",w.Njj(o.applyFilter())}),A.j41(11,"perfect-scrollbar"),A.DNE(12,Ci,2,2,"mat-option",30),A.k0s()()(),A.j41(13,"mat-form-field",28)(14,"mat-label"),A.EFF(15,"Filter"),A.k0s(),A.j41(16,"input",31),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilter,o)||(r.selFilter=o),w.Njj(o)}),A.bIt("input",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())})("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())}),A.k0s()()()(),A.j41(17,"div",32)(18,"div",33),A.DNE(19,di,1,0,"mat-progress-bar",34),A.j41(20,"table",35,2),A.qex(22,36),A.DNE(23,ri,1,0,"th",37)(24,Ki,3,2,"td",38),A.bVm(),A.qex(25,39),A.DNE(26,Qi,2,0,"th",40)(27,Xi,3,4,"td",38),A.bVm(),A.qex(28,41),A.DNE(29,mi,2,0,"th",40)(30,fn,2,1,"td",38),A.bVm(),A.qex(31,42),A.DNE(32,ms,2,0,"th",40)(33,Ms,4,4,"td",38),A.bVm(),A.qex(34,43),A.DNE(35,Mi,2,0,"th",40)(36,pi,4,4,"td",38),A.bVm(),A.qex(37,44),A.DNE(38,Zi,2,0,"th",40)(39,qi,4,4,"td",38),A.bVm(),A.qex(40,45),A.DNE(41,$i,2,0,"th",40)(42,ps,4,4,"td",38),A.bVm(),A.qex(43,46),A.DNE(44,As,2,0,"th",40)(45,Is,4,4,"td",38),A.bVm(),A.qex(46,47),A.DNE(47,Ui,2,0,"th",48)(48,es,4,4,"td",38),A.bVm(),A.qex(49,49),A.DNE(50,Zn,2,0,"th",48)(51,Ds,4,4,"td",38),A.bVm(),A.qex(52,50),A.DNE(53,Fs,6,0,"th",51)(54,Li,3,0,"td",52),A.bVm(),A.qex(55,53),A.DNE(56,qn,4,3,"td",54),A.bVm(),A.qex(57,55),A.DNE(58,zi,5,3,"td",38),A.bVm(),A.qex(59,56),A.DNE(60,Rs,4,2,"td",38),A.bVm(),A.qex(61,57),A.DNE(62,li,4,2,"td",38),A.bVm(),A.qex(63,58),A.DNE(64,Ts,5,5,"td",38),A.bVm(),A.qex(65,59),A.DNE(66,ki,5,5,"td",38),A.bVm(),A.qex(67,60),A.DNE(68,Ls,5,5,"td",38),A.bVm(),A.qex(69,61),A.DNE(70,yi,5,5,"td",38),A.bVm(),A.qex(71,62),A.DNE(72,c,5,5,"td",38),A.bVm(),A.qex(73,63),A.DNE(74,q,5,5,"td",38),A.bVm(),A.qex(75,64),A.DNE(76,ee,5,5,"td",38),A.bVm(),A.qex(77,65),A.DNE(78,xe,5,2,"td",38),A.bVm(),A.DNE(79,$,1,0,"tr",66)(80,s,1,3,"tr",67)(81,d,1,0,"tr",68)(82,F,1,0,"tr",66),A.k0s()()(),A.nrm(83,"mat-paginator",69),A.k0s()}if(2&n){const e=A.XpG();A.R7$(3),A.Y8G("icon",e.faHistory),A.R7$(7),A.R50("ngModel",e.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(18,Dn).concat(e.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",e.selFilter),A.R7$(3),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.payments)("ngClass",A.eq3(19,Cn,""!==e.errorMessage)),A.R7$(59),A.Y8G("matRowDefColumns",e.mppColumns)("matRowDefWhen",e.is_group),A.R7$(),A.Y8G("matFooterRowDef",A.lJ4(21,Nn)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)("matRowDefWhen",!e.is_group),A.R7$(),A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Z=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln,Qt,wn){this.logger=i,this.commonService=o,this.store=r,this.rtlEffects=iA,this.decimalPipe=ne,this.titleCasePipe=re,this.datePipe=ln,this.dataService=Qt,this.camelCaseWithReplace=wn,this.calledFrom="transactions",this.convertedCurrency=null,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:B.md,sortBy:"created_at",sortOrder:B.oi.DESCENDING},this.faHistory=v.Int,this.newlyAddedPayment="",this.information={},this.payments=new z.I6([]),this.paymentJSONArr=[],this.displayedColumns=[],this.mppColumns=[],this.paymentDecoded={},this.paymentRequest="",this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.mppColumns=[],this.displayedColumns.map(o=>this.mppColumns.push("group_"+o)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns),this.logger.info(this.mppColumns)}),this.store.select(tA.KT).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=i.payments||[],this.paymentJSONArr.length&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.paymentJSONArr.length&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}is_group(i,o){return o.is_group||!1}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.created_at?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.created_at?(this.paymentDecoded.amount_msat||(this.paymentDecoded.amount_msat=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded?.payment_hash||"",this.paymentDecoded.amount_msat&&0!==this.paymentDecoded.amount_msat?(this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:50,type:B.UN.DATE_TIME},{key:"num_satoshis",value:this.paymentDecoded.amount_msat/1e3,title:"Amount (Sats)",width:50,type:B.UN.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:B.UN.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,bt.s)(1)).subscribe(o=>{o&&(this.store.dispatch((0,VA.Fd)({payload:{uiMessage:B.MZ.SEND_PAYMENT,paymentType:B.Y0.INVOICE,bolt11:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"payment_hash",value:this.paymentDecoded.payment_hash,title:"Payment Hash",width:100}],[{key:"payee",value:this.paymentDecoded.payee,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"created_at",value:this.paymentDecoded.created_at,title:"Creation Date",width:40,type:B.UN.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:B.UN.NUMBER},{key:"min_finaltv_expiry",value:this.paymentDecoded.min_final_cltv_expiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:B.UN.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,bt.s)(1)).subscribe(r=>{r&&(this.paymentDecoded.amount_msat=r[0].inputValue,this.store.dispatch((0,VA.Fd)({payload:{uiMessage:B.MZ.SEND_PAYMENT,paymentType:B.Y0.INVOICE,bolt11:this.paymentRequest,amount_msat:1e3*r[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(i){this.paymentRequest=i,this.paymentDecodedHintPre="",this.paymentDecodedHintPost="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,I.Q)(this.unSubs[5])).subscribe(o=>{this.paymentDecoded=o,this.paymentDecoded.amount_msat?this.selNode?.settings.fiatConversion?this.commonService.convertCurrency(this.paymentDecoded.amount_msat/1e3||0,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[6])).subscribe({next:r=>{this.convertedCurrency=r,this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats (",this.paymentDecodedHintPost=this.decimalPipe.transform(this.convertedCurrency.OTHER?this.convertedCurrency.OTHER:0,B.k.OTHER)+" "+this.convertedCurrency.unit+") | Memo: "+this.paymentDecoded.description},error:r=>{this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency.",this.paymentDecodedHintPost=""}}):(this.paymentDecodedHintPre="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount_msat?this.paymentDecoded.amount_msat/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost=""):(this.paymentDecodedHintPre="Zero Amount Invoice | Memo: "+this.paymentDecoded.description,this.paymentDecodedHintPost="")})}openSendPaymentModal(){this.store.dispatch((0,C.xO)({payload:{data:{component:Bn}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}onPaymentClick(i){const o=[[{key:"payment_preimage",value:i.payment_preimage,title:"Payment Preimage",width:100,type:B.UN.STRING}],[{key:"id",value:i.id,title:"ID",width:20,type:B.UN.STRING},{key:"destination",value:i.destination,title:"Destination",width:80,type:B.UN.STRING}],[{key:"created_at",value:i.created_at,title:"Creation Date",width:50,type:B.UN.DATE_TIME},{key:"status",value:this.titleCasePipe.transform(i.status),title:"Status",width:50,type:B.UN.STRING}],[{key:"amount_msat",value:i.amount_msat,title:"Amount (mSats)",width:50,type:B.UN.NUMBER},{key:"amount_sent_msat",value:i.amount_sent_msat,title:"Amount Sent (mSats)",width:50,type:B.UN.NUMBER}]];i.bolt11&&""!==i.bolt11&&o?.unshift([{key:"bolt11",value:i.bolt11,title:"Bolt 11",width:100,type:B.UN.STRING}]),i.bolt12&&""!==i.bolt12&&o?.unshift([{key:"bolt12",value:i.bolt12,title:"Bolt 12",width:100,type:B.UN.STRING}]),i.memo&&""!==i.memo&&o?.splice(2,0,[{key:"memo",value:i.memo,title:"Memo",width:100,type:B.UN.STRING}]),i.hasOwnProperty("partid")?o?.unshift([{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:80,type:B.UN.STRING},{key:"partid",value:i.partid,title:"Part ID",width:20,type:B.UN.STRING}]):o?.unshift([{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:B.UN.STRING}]),this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Payment Information",message:o}}}))}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.payments.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.created_at?this.datePipe.transform(new Date(1e3*i.created_at),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.bolt12?"bolt12":i.bolt11?"bolt11":"keysend")+JSON.stringify(i).toLowerCase();break;case"status":r="complete"===i?.status?"completed":"incomplete/failed";break;case"created_at":r=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"msatoshi_sent":r=((i.amount_sent_msat||0)/1e3).toString()||"";break;case"msatoshi":r=((i.amount_msat||0)/1e3).toString()||"";break;case"type":r=i?.bolt12?"bolt12":i?.bolt11?"bolt11":"keysend";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"status"===this.selFilterBy||"type"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadPaymentsTable(i){this.payments=new z.I6(i?[...i]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,r)=>{switch(r){case"msatoshi_sent":return o.amount_sent_msat;case"msatoshi":return o.amount_msat;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const o=JSON.parse(JSON.stringify(this.payments.data))?.reduce((r,iA)=>iA.mpps?r.concat(iA.mpps):(delete iA.is_group,delete iA.is_expanded,delete iA.total_parts,r.concat(iA)),[]);this.commonService.downloadFile(o,"Payments")}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(b.H),A.rXU(de.QX),A.rXU(de.PV),A.rXU(de.vh),A.rXU(Dt.u),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-lightning-payments"]],viewQuery:function(o,r){if(1&o&&(A.GBs(In,5),A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first),A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},inputs:{calledFrom:"calledFrom"},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Payments")}])],decls:4,vars:3,consts:[["sendPaymentForm","ngForm"],["paymentReq","ngModel"],["table",""],["fxLayout","column","fxFlex","110","fxLayoutAlign","space-between stretch",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100"],["matInput","","name","paymentRequest","tabindex","1","required","",3,"ngModelChange","matTextareaAutosize","perfectScrollbar","ngModel"],["fxLayout","row wrap","fxFlex","100",4,"ngIf"],[4,"ngIf"],["fxLayout","row",1,"mt-3"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3",3,"click"],["fxLayout","row wrap","fxFlex","100"],["fxLayoutAlign","center center","class","mr-3px",4,"ngIf"],["fxLayoutAlign","center center","class","mr-3px",3,"innerHTML",4,"ngIf"],["fxLayoutAlign","center center",1,"mr-3px"],[3,"icon"],["fxLayoutAlign","center center",1,"mr-3px",3,"innerHTML"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","created_at"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","type"],["matColumnDef","payment_hash"],["matColumnDef","bolt11"],["matColumnDef","label"],["matColumnDef","destination"],["matColumnDef","memo"],["matColumnDef","msatoshi_sent"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_status"],["matColumnDef","group_created_at"],["matColumnDef","group_type"],["matColumnDef","group_payment_hash"],["matColumnDef","group_bolt11"],["matColumnDef","group_label"],["matColumnDef","group_destination"],["matColumnDef","group_memo"],["matColumnDef","group_msatoshi_sent"],["matColumnDef","group_msatoshi"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Completed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltip","Incomplete/Failed","matTooltipPosition","right",4,"ngIf"],["matTooltip","Completed","matTooltipPosition","right",1,"dot","green"],["matTooltip","Incomplete/Failed","matTooltipPosition","right",1,"dot","yellow"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"mpp-row-span"],["fxLayoutAlign","start center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayout","row",1,"ellipsis-parent","mpp-row-span",3,"ngStyle"],["fxLayoutAlign","start center","class","ellipsis-parent mpp-row-span",3,"ngStyle",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","mpp-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"mpp-row-span"],["fxLayoutAlign","end center","class","mpp-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"mpp-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-mpp-expand",3,"click"],["class","mpp-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"mpp-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-mpp-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(o,r){1&o&&(A.j41(0,"div",3),A.DNE(1,Ei,14,3,"form",4)(2,wi,3,0,"div",5)(3,W,84,22,"div",6),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf","home"===r.calledFrom),A.R7$(),A.Y8G("ngIf","transactions"===r.calledFrom),A.R7$(),A.Y8G("ngIf","transactions"===r.calledFrom))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.qT,hA.me,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,de.QX,de.vh],styles:[".mat-column-status[_ngcontent-%COMP%], .mat-column-group_status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-group_actions[_ngcontent-%COMP%] .mpp-group-head[_ngcontent-%COMP%], .mat-column-group_actions[_ngcontent-%COMP%] .mpp-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-mpp-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-group_actions[_ngcontent-%COMP%] .btn-mpp-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}.mat-column-group_status[_ngcontent-%COMP%] .mpp-row-span[_ngcontent-%COMP%]:not(:first-of-type), .mat-column-group_created_at[_ngcontent-%COMP%] .mpp-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem}.mpp-row-span[_ngcontent-%COMP%]{min-height:3rem}.mpp-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mpp-row-span[_ngcontent-%COMP%] .dot[_ngcontent-%COMP%]{margin-top:-.3rem;position:absolute}.mat-column-group_created_at[_ngcontent-%COMP%]{min-width:11rem}"]}))}return n(),l})();const EA=n=>({backgroundColor:n});function PA(n,l){if(1&n&&A.nrm(0,"span",6),2&n){const e=A.XpG();A.Y8G("ngStyle",A.eq3(1,EA,"#"+(null==e.information?null:e.information.color)))}}function FA(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",1),A.EFF(2,"Color"),A.k0s(),A.j41(3,"div",2),A.nrm(4,"span",7),A.EFF(5),A.nI1(6,"uppercase"),A.k0s()()),2&n){const e=A.XpG();A.R7$(4),A.Y8G("ngStyle",A.eq3(4,EA,"#"+(null==e.information?null:e.information.color))),A.R7$(),A.SpI(" ",A.bMT(6,2,null==e.information?null:e.information.color)," ")}}function te(n,l){if(1&n&&(A.j41(0,"span",2),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(e)}}let ge=(()=>{var n;class l{constructor(i){this.commonService=i,this.chains=[""]}ngOnChanges(){this.information&&this.information.chains&&this.information.chains.length>0&&(this.chains=[""],this.information.chains.forEach(i=>{this.chains.push(this.commonService.titleCase(i.chain||"")+" "+this.commonService.titleCase(i.network||""))}))}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(L.h))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},standalone:!1,features:[A.OA$],decls:17,vars:5,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-2"],[1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["class","dashboard-node-dot dot",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","overflow-wrap dashboard-info-value",4,"ngFor","ngForOf"],[1,"dashboard-node-dot","dot",3,"ngStyle"],[1,"dashboard-node-square",3,"ngStyle"]],template:function(o,r){1&o&&(A.j41(0,"div",0)(1,"div")(2,"h4",1),A.EFF(3,"Alias"),A.k0s(),A.j41(4,"div",2),A.EFF(5),A.DNE(6,PA,1,3,"span",3),A.k0s()(),A.DNE(7,FA,7,6,"div",4),A.j41(8,"div")(9,"h4",1),A.EFF(10,"Implementation"),A.k0s(),A.j41(11,"div",2),A.EFF(12),A.k0s()(),A.j41(13,"div")(14,"h4",1),A.EFF(15,"Chain"),A.k0s(),A.DNE(16,te,2,1,"span",5),A.k0s()()),2&o&&(A.R7$(5),A.SpI(" ",null==r.information?null:r.information.alias," "),A.R7$(),A.Y8G("ngIf",!r.showColorFieldSeparately),A.R7$(),A.Y8G("ngIf",r.showColorFieldSeparately),A.R7$(5),A.JRh(null!=r.information&&r.information.lnImplementation||null!=r.information&&r.information.version?(null==r.information?null:r.information.lnImplementation)+" "+(null==r.information?null:r.information.version):""),A.R7$(4),A.Y8G("ngForOf",r.chains))},dependencies:[de.Sq,de.bT,de.B3,Q.DJ,Q.sA,Q.UI,dA.eI,de.Pc],encapsulation:2}))}return n(),l})();function Me(n,l){if(1&n&&(A.j41(0,"div",2)(1,"div")(2,"h4",3),A.EFF(3,"Lightning"),A.k0s(),A.j41(4,"div",4),A.EFF(5),A.nI1(6,"number"),A.k0s(),A.nrm(7,"mat-progress-bar",5),A.k0s(),A.j41(8,"div")(9,"h4",3),A.EFF(10,"On-chain"),A.k0s(),A.j41(11,"div",4),A.EFF(12),A.nI1(13,"number"),A.k0s(),A.nrm(14,"mat-progress-bar",5),A.k0s(),A.j41(15,"div")(16,"h4",3),A.EFF(17,"Total"),A.k0s(),A.j41(18,"div",4),A.EFF(19),A.nI1(20,"number"),A.k0s()()()),2&n){const e=A.XpG();A.R7$(5),A.SpI("",A.i5U(6,7,e.balances.lightning,"1.0-0")," Sats"),A.R7$(2),A.Y8G("value",A.mNQ(e.balances.lightning/e.balances.total*100)),A.R7$(5),A.SpI("",A.i5U(13,10,e.balances.onchain,"1.0-0")," Sats"),A.R7$(2),A.Y8G("value",A.mNQ(e.balances.onchain/e.balances.total*100)),A.R7$(5),A.SpI("",A.i5U(20,13,e.balances.total,"1.0-0")," Sats")}}function Qe(n,l){if(1&n&&(A.j41(0,"div",6)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let me=(()=>{var n;class l{constructor(){this.balances={onchain:0,lightning:0,total:0}}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-balances-info"]],inputs:{balances:"balances",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["class","mt-1","fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,Me,21,16,"div",1)(1,Qe,3,1,"ng-template",null,0,A.C5r),2&o){const iA=A.sdS(2);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.bT,eA.HM,Q.DJ,Q.sA,Q.UI,de.QX],encapsulation:2}))}return n(),l})();const Ye=()=>["../routing"];function Ue(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",4),A.EFF(2,"Transactions"),A.k0s(),A.j41(3,"div",5),A.EFF(4),A.nI1(5,"number"),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(4),A.JRh(A.bMT(5,1,null==e.fees?null:e.fees.totalTxCount))}}function De(n,l){1&n&&(A.j41(0,"div")(1,"h4",4),A.EFF(2,"Transactions"),A.k0s(),A.j41(3,"a",8),A.EFF(4," Go to Routing "),A.k0s()()),2&n&&(A.R7$(3),A.Y8G("routerLink",A.lJ4(1,Ye)))}function Le(n,l){if(1&n&&(A.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A.EFF(4,"Total"),A.k0s(),A.j41(5,"div",5),A.EFF(6),A.nI1(7,"number"),A.k0s()()(),A.j41(8,"div",6),A.DNE(9,Ue,6,3,"div",7)(10,De,5,2,"div",7),A.k0s()()),2&n){const e=A.XpG();A.R7$(6),A.SpI("",A.bMT(7,3,(null==e.fees?null:e.fees.feeCollected)/1e3)," Sats"),A.R7$(3),A.Y8G("ngIf",null==e.fees?null:e.fees.totalTxCount),A.R7$(),A.Y8G("ngIf",!(null!=e.fees&&e.fees.totalTxCount))}}function Se(n,l){if(1&n&&(A.j41(0,"div",9)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let it=(()=>{var n;class l{constructor(){this.totalFees=[{name:"Total",value:0}]}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["class","mt-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],[4,"ngIf"],[1,"overflow-wrap","dashboard-info-value",3,"routerLink"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,Le,11,5,"div",1)(1,Se,3,1,"ng-template",null,0,A.C5r),2&o){const iA=A.sdS(2);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.bT,Q.DJ,Q.sA,Q.UI,Sn.Wk,de.QX],encapsulation:2}))}return n(),l})();function Ve(n,l){if(1&n&&(A.j41(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),A.EFF(4,"Active"),A.k0s(),A.j41(5,"div",5),A.nrm(6,"span",6),A.EFF(7),A.nI1(8,"number"),A.k0s()(),A.j41(9,"div")(10,"h4",4),A.EFF(11,"Pending"),A.k0s(),A.j41(12,"div",5),A.nrm(13,"span",7),A.EFF(14),A.nI1(15,"number"),A.k0s()(),A.j41(16,"div")(17,"h4",4),A.EFF(18,"Inactive"),A.k0s(),A.j41(19,"div",5),A.nrm(20,"span",8),A.EFF(21),A.nI1(22,"number"),A.k0s()()(),A.j41(23,"div",3)(24,"div")(25,"h4",4),A.EFF(26,"Capacity"),A.k0s(),A.j41(27,"div",5),A.EFF(28),A.nI1(29,"number"),A.k0s()(),A.j41(30,"div")(31,"h4",4),A.EFF(32,"Capacity"),A.k0s(),A.j41(33,"div",5),A.EFF(34),A.nI1(35,"number"),A.k0s()(),A.j41(36,"div")(37,"h4",4),A.EFF(38,"Capacity"),A.k0s(),A.j41(39,"div",5),A.EFF(40),A.nI1(41,"number"),A.k0s()()()()),2&n){const e=A.XpG();A.R7$(7),A.JRh(A.bMT(8,6,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),A.R7$(7),A.JRh(A.bMT(15,8,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),A.R7$(7),A.JRh(A.bMT(22,10,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),A.R7$(7),A.SpI("",A.i5U(29,12,(null==e.channelsStatus||null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0,"1.0-0")," Sats"),A.R7$(6),A.SpI("",A.i5U(35,15,(null==e.channelsStatus||null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0,"1.0-0")," Sats"),A.R7$(6),A.SpI("",A.i5U(41,18,(null==e.channelsStatus||null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0,"1.0-0")," Sats")}}function vt(n,l){if(1&n&&(A.j41(0,"div",9)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let zt=(()=>{var n;class l{constructor(){this.channelsStatus={active:{},pending:{},inactive:{}}}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-status-info"]],inputs:{channelsStatus:"channelsStatus",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["class","mt-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf","ngIfElse"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-2"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch"],["fxLayoutAlign","start",1,"dashboard-info-title"],[1,"overflow-wrap","dashboard-info-value"],[1,"dot","tiny-dot","green"],[1,"dot","tiny-dot","yellow"],[1,"dot","tiny-dot","grey"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,Ve,42,21,"div",1)(1,vt,3,1,"ng-template",null,0,A.C5r),2&o){const iA=A.sdS(2);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.bT,Q.DJ,Q.sA,Q.UI,de.QX],encapsulation:2}))}return n(),l})();var sn=We(71997);const gn=()=>["../connections/channels/open"],Tn=(n,l)=>({filterColumn:n,filterValue:l});function rs(n,l){if(1&n&&(A.j41(0,"div",19)(1,"a",20),A.EFF(2),A.nI1(3,"slice"),A.k0s(),A.j41(4,"div",6)(5,"mat-hint",21)(6,"strong",8),A.EFF(7,"Local:"),A.k0s(),A.EFF(8),A.nI1(9,"number"),A.k0s(),A.j41(10,"mat-hint",22),A.nrm(11,"fa-icon",23),A.EFF(12),A.nI1(13,"number"),A.k0s(),A.j41(14,"mat-hint",24)(15,"strong",8),A.EFF(16,"Remote:"),A.k0s(),A.EFF(17),A.nI1(18,"number"),A.k0s()(),A.nrm(19,"mat-progress-bar",25),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(3);A.R7$(),A.Y8G("matTooltip",A.mNQ(e.alias||e.peer_id))("matTooltipDisabled",A.mNQ((e.alias||e.peer_id).length<26))("routerLink",A.lJ4(26,gn))("state",A.l_i(27,Tn,e.alias?"alias":"peer_id",e.alias||e.peer_id)),A.R7$(),A.Lme(" ",A.brH(3,14,(null==e?null:e.alias)||(null==e?null:e.peer_id)||"",0,24),"",(e.alias||e.peer_id||"").length>25?"...":""," "),A.R7$(6),A.SpI("",A.i5U(9,18,e.to_us_msat/1e3||0,"1.0-0")," Sats"),A.R7$(3),A.Y8G("icon",i.faBalanceScale),A.R7$(),A.SpI(" (",A.bMT(13,21,e.balancedness||0),") "),A.R7$(5),A.SpI("",A.i5U(18,23,e.to_them_msat/1e3||0,"1.0-0")," Sats"),A.R7$(2),A.Y8G("value",A.mNQ(e.to_us_msat&&e.to_us_msat>0?e.to_us_msat/(e.to_us_msat+e.to_them_msat)*100:0))}}function kn(n,l){if(1&n&&(A.j41(0,"div",17),A.DNE(1,rs,20,30,"div",18),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngForOf",e.activeChannels)}}function Jn(n,l){if(1&n&&(A.j41(0,"div",3)(1,"div",4)(2,"span",5),A.EFF(3,"Total Capacity"),A.k0s(),A.j41(4,"div",6)(5,"mat-hint",7)(6,"strong",8),A.EFF(7,"Local:"),A.k0s(),A.EFF(8),A.nI1(9,"number"),A.k0s(),A.j41(10,"mat-hint",9),A.nrm(11,"fa-icon",10),A.EFF(12),A.nI1(13,"number"),A.k0s(),A.j41(14,"mat-hint",11)(15,"strong",8),A.EFF(16,"Remote:"),A.k0s(),A.EFF(17),A.nI1(18,"number"),A.k0s()(),A.nrm(19,"mat-progress-bar",12),A.k0s(),A.j41(20,"div",13),A.nrm(21,"mat-divider",14),A.k0s(),A.j41(22,"div",15),A.DNE(23,kn,2,1,"div",16),A.k0s()()),2&n){const e=A.XpG(),i=A.sdS(2);A.R7$(8),A.SpI("",A.i5U(9,8,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),A.R7$(3),A.Y8G("icon",e.faBalanceScale),A.R7$(),A.SpI(" (",A.bMT(13,11,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),A.R7$(5),A.SpI("",A.i5U(18,13,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),A.R7$(2),A.Y8G("value",A.mNQ(null!=e.channelBalances&&e.channelBalances.localBalance&&(null==e.channelBalances?null:e.channelBalances.localBalance)>0?+(null==e.channelBalances?null:e.channelBalances.localBalance)/(+(null==e.channelBalances?null:e.channelBalances.localBalance)+ +(null==e.channelBalances?null:e.channelBalances.remoteBalance))*100:0)),A.R7$(4),A.Y8G("ngIf",e.activeChannels&&e.activeChannels.length>0)("ngIfElse",i)}}function Xt(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",26),A.EFF(1," No channels available. "),A.j41(2,"button",27),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.goToChannels())}),A.EFF(3,"Open Channel"),A.k0s()()}}function dn(n,l){if(1&n&&(A.j41(0,"div",28)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let Zt=(()=>{var n;class l{constructor(i){this.router=i,this.faBalanceScale=v.GR4,this.faDumbbell=v.VwO,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/cln/connections")}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-capacity-info"]],inputs:{channelBalances:"channelBalances",activeChannels:"activeChannels",sortBy:"sortBy",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90"],[1,"font-weight-900","mr-5px"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90"],["matTooltip","Balance Score",1,"mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90"],["mode","determinate","color","accent",1,"dashboard-progress-bar","this-channel-bar",3,"value"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],[1,"channels-capacity-scroll",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxFlex","40","fxLayoutAlign","start center",1,"font-size-90","color-primary"],["fxFlex","20","fxLayoutAlign","center center",1,"font-size-90","color-primary"],["matTooltip","Balance Score",1,"color-primary","mr-3px",3,"icon"],["fxFlex","40","fxLayoutAlign","end center",1,"font-size-90","color-primary"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",1,"mt-1","w-100"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,Jn,24,16,"div",2)(1,Xt,4,0,"ng-template",null,0,A.C5r)(3,dn,3,1,"ng-template",null,1,A.C5r),2&o){const iA=A.sdS(4);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.Sq,de.bT,P.aY,fA.$z,yA.MV,sn.q,eA.HM,Q.DJ,Q.sA,Q.UI,HA.oV,M.Ld,Sn.Wk,de.P9,de.QX],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}))}return n(),l})();const _n=(n,l,e)=>({"mb-4":n,"mb-2":l,"mb-1":e}),Yt=()=>["../connections/channels/open"],mn=(n,l)=>({filterColumn:n,filterValue:l});function ci(n,l){if(1&n&&(A.j41(0,"mat-hint",19)(1,"strong",20),A.EFF(2,"Capacity: "),A.k0s(),A.EFF(3),A.nI1(4,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(3),A.SpI("",A.i5U(4,1,e.to_them_msat/1e3||0,"1.0-0")," Sats")}}function $n(n,l){if(1&n&&(A.j41(0,"mat-hint",19)(1,"strong",20),A.EFF(2,"Capacity: "),A.k0s(),A.EFF(3),A.nI1(4,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(3),A.SpI("",A.i5U(4,1,e.to_us_msat/1e3||0,"1.0-0")," Sats")}}function zs(n,l){if(1&n&&A.nrm(0,"mat-progress-bar",21),2&n){const e=A.XpG().$implicit,i=A.XpG(3);A.Y8G("value",A.mNQ(i.totalLiquidity>0?(e.to_them_msat/1e3||0)/i.totalLiquidity*100:0))}}function ks(n,l){if(1&n&&A.nrm(0,"mat-progress-bar",21),2&n){const e=A.XpG().$implicit,i=A.XpG(3);A.Y8G("value",A.mNQ(i.totalLiquidity>0?(e.to_us_msat/1e3||0)/i.totalLiquidity*100:0))}}function qs(n,l){if(1&n&&(A.j41(0,"div",14)(1,"a",15),A.EFF(2),A.nI1(3,"slice"),A.k0s(),A.j41(4,"div",16),A.DNE(5,ci,5,4,"mat-hint",17)(6,$n,5,4,"mat-hint",17),A.k0s(),A.DNE(7,zs,1,2,"mat-progress-bar",18)(8,ks,1,2,"mat-progress-bar",18),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(3);A.R7$(),A.Y8G("matTooltip",A.mNQ(e.alias||e.peer_id))("matTooltipDisabled",A.mNQ((e.alias||e.peer_id).length<26))("routerLink",A.lJ4(16,Yt))("state",A.l_i(17,mn,e.alias?"alias":"peer_id",e.alias||e.peer_id)),A.R7$(),A.Lme(" ",A.brH(3,12,e.alias||e.peer_id||"",0,24),"",(e.alias||e.peer_id||"").length>25?"...":""," "),A.R7$(3),A.Y8G("ngIf","In"===i.direction),A.R7$(),A.Y8G("ngIf","Out"===i.direction),A.R7$(),A.Y8G("ngIf","In"===i.direction),A.R7$(),A.Y8G("ngIf","Out"===i.direction)}}function $s(n,l){if(1&n&&(A.j41(0,"div",12),A.DNE(1,qs,9,20,"div",13),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngForOf",e.activeChannels)}}function as(n,l){if(1&n&&(A.j41(0,"div",3)(1,"div",4)(2,"span",5),A.EFF(3,"Total Capacity"),A.k0s(),A.j41(4,"mat-hint",6),A.EFF(5),A.nI1(6,"number"),A.k0s(),A.nrm(7,"mat-progress-bar",7),A.k0s(),A.j41(8,"div",8),A.nrm(9,"mat-divider",9),A.k0s(),A.j41(10,"div",10),A.DNE(11,$s,2,1,"div",11),A.k0s()()),2&n){const e=A.XpG(),i=A.sdS(2);A.Y8G("ngClass",A.sMw(7,_n,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD,e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),A.R7$(5),A.SpI("",A.i5U(6,4,e.totalLiquidity,"1.0-0")," Sats"),A.R7$(6),A.Y8G("ngIf",e.activeChannels&&e.activeChannels.length>0)("ngIfElse",i)}}function Ir(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",25),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.goToChannels())}),A.EFF(1,"Open Channel"),A.k0s()}}function Hn(n,l){if(1&n&&(A.j41(0,"div",22)(1,"div",23)(2,"div"),A.EFF(3,"No channels available."),A.k0s(),A.DNE(4,Ir,2,0,"button",24),A.k0s()()),2&n){const e=A.XpG();A.R7$(4),A.Y8G("ngIf","Out"===e.direction)}}function xi(n,l){if(1&n&&(A.j41(0,"div",26)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let Ar=(()=>{var n;class l{constructor(i,o){this.router=i,this.commonService=o,this.screenSize="",this.screenSizeEnum=B.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/cln/connections")}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix),A.rXU(L.h))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",activeChannels:"activeChannels",errorMessage:"errorMessage"},standalone:!1,decls:5,vars:2,consts:[["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass"],["fxLayout","column","fxFlex","8","fxLayoutAlign","end start"],[1,"dashboard-capacity-header","this-channel-capacity"],[1,"font-size-90"],["mode","determinate","color","accent","value","100",1,"dashboard-progress-bar","this-channel-bar"],["fxLayout","column","fxFlex","3","fxLayoutAlign","end stretch"],[1,"dashboard-divider"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"matTooltip","matTooltipDisabled","routerLink","state"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["mode","determinate",1,"dashboard-progress-bar",3,"value"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"w-100","mt-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stroked-button","","color","primary","tabindex","1",3,"click",4,"ngIf"],["mat-stroked-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,as,12,11,"div",2)(1,Hn,5,1,"ng-template",null,0,A.C5r)(3,xi,3,1,"ng-template",null,1,A.C5r),2&o){const iA=A.sdS(4);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.YU,de.Sq,de.bT,fA.$z,yA.MV,sn.q,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,HA.oV,M.Ld,Sn.Wk,de.P9,de.QX],encapsulation:2}))}return n(),l})();const Dr=n=>({"dashboard-card-content":!0,"error-border":n}),Na=n=>({"p-0":n});function Ta(n,l){if(1&n&&(A.j41(0,"button",28)(1,"mat-icon"),A.EFF(2,"more_vert"),A.k0s()()),2&n){A.XpG();const e=A.sdS(11);A.Y8G("matMenuTriggerFor",e)}}function Pa(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",29),A.bIt("click",function(){const o=w.eBV(e).index,r=A.XpG().$implicit,iA=A.XpG(2);return w.Njj(iA.onNavigateTo(r.links[o]))}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit;A.R7$(),A.JRh(e)}}function Ua(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",29),A.bIt("click",function(){w.eBV(e);const o=A.XpG(3);return w.Njj(o.onsortChannelsBy())}),A.EFF(1),A.k0s()}if(2&n){const e=A.XpG(3);A.R7$(),A.SpI("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score")}}function La(n,l){1&n&&A.nrm(0,"mat-progress-bar",30)}function Ga(n,l){if(1&n&&A.nrm(0,"rtl-cln-node-info",31),2&n){const e=A.XpG(3);A.Y8G("information",e.information)("showColorFieldSeparately",!1)}}function za(n,l){if(1&n&&A.nrm(0,"rtl-cln-balances-info",32),2&n){const e=A.XpG(3);A.Y8G("balances",e.balances)("errorMessage",e.errorMessages[1])}}function ka(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-capacity-info",33),2&n){const e=A.XpG(3);A.Y8G("sortBy",e.sortField)("channelBalances",e.channelBalances)("activeChannels",e.activeChannelsCapacity)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[1])}}function Ha(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-info",34),2&n){const e=A.XpG(3);A.Y8G("fees",e.fees)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[2]+" "+e.errorMessages[3])}}function ja(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-status-info",35),2&n){const e=A.XpG(3);A.Y8G("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[1]+" "+e.errorMessages[2])}}function Ct(n,l){1&n&&(A.j41(0,"h3"),A.EFF(1,"Error! Unable to find information!"),A.k0s())}function er(n,l){if(1&n&&(A.j41(0,"mat-grid-tile",11)(1,"mat-card",12)(2,"mat-card-header")(3,"mat-card-title",13)(4,"div"),A.nrm(5,"fa-icon",14),A.j41(6,"span"),A.EFF(7),A.k0s()(),A.j41(8,"div"),A.DNE(9,Ta,3,1,"button",15),A.j41(10,"mat-menu",16,1),A.DNE(12,Pa,2,1,"button",17)(13,Ua,2,1,"button",18),A.k0s()()()(),A.j41(14,"mat-card-content",19),A.DNE(15,La,1,0,"mat-progress-bar",20),A.j41(16,"div",21),A.DNE(17,Ga,1,2,"rtl-cln-node-info",22)(18,za,1,2,"rtl-cln-balances-info",23)(19,ka,1,4,"rtl-cln-channel-capacity-info",24)(20,Ha,1,2,"rtl-cln-fee-info",25)(21,ja,1,2,"rtl-cln-channel-status-info",26)(22,Ct,2,0,"h3",27),A.k0s()()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("colspan",e.cols)("rowspan",e.rows),A.R7$(5),A.Y8G("icon",e.icon),A.R7$(2),A.JRh(e.title),A.R7$(2),A.Y8G("ngIf",e.links[0]),A.R7$(3),A.Y8G("ngForOf",e.goToOptions),A.R7$(),A.Y8G("ngIf","capacity"===e.id),A.R7$(),A.Y8G("fxFlex",A.mNQ("capacity"===e.id?90:70))("ngClass",A.eq3(17,Dr,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&i.apiCallStatusBalances.status===i.apiCallStatusEnum.ERROR||"capacity"===e.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBalances.status===i.apiCallStatusEnum.ERROR)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.ERROR)||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusBalances.status===i.apiCallStatusEnum.ERROR))),A.R7$(),A.Y8G("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&i.apiCallStatusBalances.status===i.apiCallStatusEnum.INITIATED||"capacity"===e.id&&(i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBalances.status===i.apiCallStatusEnum.INITIATED)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.INITIATED)||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusBalances.status===i.apiCallStatusEnum.INITIATED)),A.R7$(),A.Y8G("ngSwitch",e.id),A.R7$(),A.Y8G("ngSwitchCase","node"),A.R7$(),A.Y8G("ngSwitchCase","balance"),A.R7$(),A.Y8G("ngSwitchCase","capacity"),A.R7$(),A.Y8G("ngSwitchCase","fee"),A.R7$(),A.Y8G("ngSwitchCase","status")}}function Oa(n,l){if(1&n&&(A.j41(0,"div",5)(1,"div",6),A.nrm(2,"fa-icon",7),A.j41(3,"span",8),A.EFF(4),A.k0s()(),A.j41(5,"mat-grid-list",9),A.DNE(6,er,23,19,"mat-grid-tile",10),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.Y8G("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),A.R7$(2),A.JRh(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),A.R7$(),A.Y8G("rowHeight",e.operatorCardHeight),A.R7$(),A.Y8G("ngForOf",e.operatorCards)}}function Fr(n,l){if(1&n&&(A.j41(0,"button",28)(1,"mat-icon"),A.EFF(2,"more_vert"),A.k0s()()),2&n){A.XpG();const e=A.sdS(9);A.Y8G("matMenuTriggerFor",e)}}function Or(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",29),A.bIt("click",function(){const o=w.eBV(e).index,r=A.XpG(2).$implicit,iA=A.XpG(2);return w.Njj(iA.onNavigateTo(r.links[o]))}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit;A.R7$(),A.JRh(e)}}function tr(n,l){if(1&n&&(A.j41(0,"mat-card-header")(1,"mat-card-title",13)(2,"div"),A.nrm(3,"fa-icon",14),A.j41(4,"span"),A.EFF(5),A.k0s()(),A.j41(6,"div"),A.DNE(7,Fr,3,1,"button",15),A.j41(8,"mat-menu",16,2),A.DNE(10,Or,2,1,"button",17),A.k0s()()()()),2&n){const e=A.XpG().$implicit;A.R7$(3),A.Y8G("icon",e.icon),A.R7$(2),A.JRh(e.title),A.R7$(2),A.Y8G("ngIf",e.links[0]),A.R7$(3),A.Y8G("ngForOf",e.goToOptions)}}function os(n,l){1&n&&A.nrm(0,"mat-progress-bar",30)}function nr(n,l){if(1&n&&A.nrm(0,"rtl-cln-node-info",45),2&n){const e=A.XpG(3);A.Y8G("information",e.information)}}function Jr(n,l){if(1&n&&A.nrm(0,"rtl-cln-balances-info",32),2&n){const e=A.XpG(3);A.Y8G("balances",e.balances)("errorMessage",e.errorMessages[1])}}function Hs(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-liquidity-info",46),2&n){const e=A.XpG(3);A.Y8G("totalLiquidity",e.totalInboundLiquidity)("activeChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function yr(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-liquidity-info",47),2&n){const e=A.XpG(3);A.Y8G("totalLiquidity",e.totalOutboundLiquidity)("activeChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function xr(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",29),A.bIt("click",function(){const o=w.eBV(e).index,r=A.XpG(2).$implicit,iA=A.XpG(2);return w.Njj(iA.onNavigateTo(r.links[o]))}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit;A.R7$(),A.JRh(e)}}function Ja(n,l){if(1&n&&(A.j41(0,"span",48)(1,"mat-tab-group",49)(2,"mat-tab",50),A.nrm(3,"rtl-cln-lightning-invoices-table",51),A.k0s(),A.j41(4,"mat-tab",52),A.nrm(5,"rtl-cln-lightning-payments",53),A.k0s()(),A.j41(6,"div",54)(7,"button",28)(8,"mat-icon"),A.EFF(9,"more_vert"),A.k0s()(),A.j41(10,"mat-menu",16,3),A.DNE(12,xr,2,1,"button",17),A.k0s()()()),2&n){const e=A.sdS(11),i=A.XpG().$implicit;A.R7$(7),A.Y8G("matMenuTriggerFor",e),A.R7$(5),A.Y8G("ngForOf",i.goToOptions)}}function _a(n,l){1&n&&(A.j41(0,"h3"),A.EFF(1,"Error! Unable to find information!"),A.k0s())}function Yi(n,l){if(1&n&&(A.j41(0,"mat-grid-tile",11)(1,"mat-card",38),A.DNE(2,tr,11,4,"mat-card-header",39),A.j41(3,"mat-card-content",40),A.DNE(4,os,1,0,"mat-progress-bar",20),A.j41(5,"div",21),A.DNE(6,nr,1,1,"rtl-cln-node-info",41)(7,Jr,1,2,"rtl-cln-balances-info",23)(8,Hs,1,3,"rtl-cln-channel-liquidity-info",42)(9,yr,1,3,"rtl-cln-channel-liquidity-info",43)(10,Ja,13,2,"span",44)(11,_a,2,0,"h3",27),A.k0s()()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("colspan",e.cols)("rowspan",e.rows),A.R7$(),A.Y8G("ngClass",A.eq3(14,Na,"transactions"===e.id)),A.R7$(),A.Y8G("ngIf","transactions"!==e.id),A.R7$(),A.Y8G("fxFlex",A.mNQ("transactions"===e.id?100:"balance"===e.id?70:90))("ngClass",A.eq3(16,Dr,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&i.apiCallStatusBalances.status===i.apiCallStatusEnum.ERROR||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR)),A.R7$(),A.Y8G("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&i.apiCallStatusBalances.status===i.apiCallStatusEnum.INITIATED||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngSwitch",e.id),A.R7$(),A.Y8G("ngSwitchCase","node"),A.R7$(),A.Y8G("ngSwitchCase","balance"),A.R7$(),A.Y8G("ngSwitchCase","inboundLiq"),A.R7$(),A.Y8G("ngSwitchCase","outboundLiq"),A.R7$(),A.Y8G("ngSwitchCase","transactions")}}function Hi(n,l){if(1&n&&(A.j41(0,"div",36),A.nrm(1,"fa-icon",7),A.j41(2,"span",8),A.EFF(3),A.k0s()(),A.j41(4,"mat-grid-list",37),A.DNE(5,Yi,12,18,"mat-grid-tile",10),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faSmile),A.R7$(2),A.SpI("Welcome ",e.information.alias,"! Your node is up and running."),A.R7$(),A.Y8G("rowHeight",e.merchantCardHeight),A.R7$(),A.Y8G("ngForOf",e.merchantCards)}}let Yr=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.store=o,this.commonService=r,this.router=iA,this.faSmile=K.Qpm,this.faFrown=K.wB1,this.faAngleDoubleDown=v.WxX,this.faAngleDoubleUp=v.$sC,this.faChartPie=v.W1p,this.faBolt=v.zm_,this.faServer=v.D6w,this.faNetworkWired=v.eGi,this.userPersonaEnum=B.HW,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.information={},this.totalBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.activeChannels=[],this.channelsStatus={active:{},pending:{},inactive:{}},this.activeChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="390px",this.merchantCardHeight="62px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusBalances=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===B.f7.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===B.f7.SM||this.screenSize===B.f7.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/pending"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(tA.RQ).pipe((0,I.Q)(this.unSubs[0]),(0,N.E)(this.store.select(j._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.errorMessages[3]="",this.apiCallStatusNodeInfo=i.apisCallStatus[0],this.apiCallStatusFHistory=i.apisCallStatus[1],this.apiCallStatusNodeInfo.status===B.wn.ERROR&&(this.errorMessages[0]=this.apiCallStatusNodeInfo.message?"object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message:""),this.apiCallStatusFHistory.status===B.wn.ERROR&&(this.errorMessages[3]=this.apiCallStatusFHistory.message?"object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message:""),this.selNode=o,this.information=i.information,this.fees=i.fees}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessages[2]="",this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusChannels.status===B.wn.ERROR&&(this.errorMessages[2]=this.apiCallStatusChannels.message?"object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message:""),this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.activeChannels=i.activeChannels,this.activeChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels,"balancedness")))||[],this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels?.filter(o=>!!o.to_them_msat&&o.to_them_msat>0),"to_them_msat")))||[],this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.activeChannels?.filter(o=>!!o.to_us_msat&&o.to_us_msat>0),"to_us_msat")))||[],this.activeChannels.forEach(o=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil((o.to_them_msat||0)/1e3),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor((o.to_us_msat||0)/1e3)}),this.channelsStatus.active.channels=i.activeChannels.length||0,this.channelsStatus.pending.channels=i.pendingChannels.length||0,this.channelsStatus.inactive.channels=i.inactiveChannels.length||0,this.logger.info(i)}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[1]="",this.apiCallStatusBalances=i.apiCallStatus,this.apiCallStatusBalances.status===B.wn.ERROR&&(this.errorMessages[1]=this.apiCallStatusBalances.message?"object"==typeof this.apiCallStatusBalances.message?JSON.stringify(this.apiCallStatusBalances.message):this.apiCallStatusBalances.message:""),this.totalBalance=i.balance,this.balances.onchain=i.balance.totalBalance||0,this.balances.lightning=i.localRemoteBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const o=i.localRemoteBalance.localBalance?+i.localRemoteBalance.localBalance:0,r=i.localRemoteBalance.remoteBalance?+i.localRemoteBalance.remoteBalance:0;this.channelBalances={localBalance:o,remoteBalance:r,balancedness:+(1-Math.abs((o-r)/(o+r))).toFixed(3)},this.channelsStatus.active.capacity=i.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=i.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=i.localRemoteBalance.inactiveBalance||0,this.logger.info(i)})}onNavigateTo(i){this.router.navigateByUrl("/cln/"+i)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.activeChannelsCapacity=this.activeChannels.sort((i,o)=>{const r=(i.to_us_msat?+i.to_us_msat:0)+(i.to_them_msat?+i.to_them_msat:0),iA=(o.to_them_msat?+o.to_them_msat:0)+(o.to_them_msat?+o.to_them_msat:0);return r>iA?-1:r{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(L.h),A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-home"]],standalone:!1,decls:3,vars:2,consts:[["merchantDashboard",""],["menuOperator","matMenu"],["menuMerchant","matMenu"],["menuTransactions","matMenu"],["fxLayout","column",4,"ngIf","ngIfElse"],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["fxLayoutAlign","space-between center"],[1,"mr-1",3,"icon"],["mat-icon-button","","class","more-button","aria-label","Toggle menu",3,"matMenuTriggerFor",4,"ngIf"],["xPosition","before",1,"dashboard-vert-menu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"click",4,"ngIf"],["fxLayout","column",3,"fxFlex","ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"balances","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["mat-icon-button","","aria-label","Toggle menu",1,"more-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"balances","errorMessage"],["fxFlex","100",3,"sortBy","channelBalances","activeChannels","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxLayout","row","fxLayoutAlign","start end",1,"page-title-container","mb-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100","direction","In",3,"totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxFlex","100","direction","Out",3,"totalLiquidity","activeChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["fxFlex","100",3,"information"],["fxFlex","100","direction","In",3,"totalLiquidity","activeChannels","errorMessage"],["fxFlex","100","direction","Out",3,"totalLiquidity","activeChannels","errorMessage"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["mat-stretch-tabs","false","mat-align-tabs","start","fxLayout","column",1,"dashboard-tabs-group"],["label","Receive"],["calledFrom","home",1,"h-100"],["label","Pay"],["calledFrom","home"],[1,"underline"]],template:function(o,r){if(1&o&&A.DNE(0,Oa,7,4,"div",4)(1,Hi,6,4,"ng-template",null,0,A.C5r),2&o){const iA=A.sdS(2);A.Y8G("ngIf",(null==r.selNode?null:r.selNode.settings.userPersona)===r.userPersonaEnum.OPERATOR)("ngIfElse",iA)}},dependencies:[de.YU,de.Sq,de.bT,de.ux,de.e1,de.fG,P.aY,rA.iY,QA.RN,QA.m2,QA.MM,QA.dh,NA.B_,NA.NS,oA.An,uA.kk,uA.fb,uA.Cp,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,RA.mq,RA.T8,Ot,Z,ge,me,it,zt,Zt,Ar],encapsulation:2}))}return n(),l})();var Va=We(84572),Wa=We(82852),js=We(95416),gi=We(9454),ji=We(36013);const _r=["form"],Ka=["formSweepAll"],Xa=["stepper"],bi=(n,l)=>({"mr-6":n,"mr-2":l});function Xe(n,l){if(1&n&&(A.j41(0,"div",16),A.nrm(1,"fa-icon",17),A.j41(2,"span",18)(3,"div"),A.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),A.k0s(),A.j41(5,"span",19)(6,"span"),A.EFF(7),A.k0s(),A.j41(8,"span"),A.EFF(9),A.k0s(),A.j41(10,"span"),A.EFF(11),A.k0s(),A.j41(12,"span"),A.EFF(13),A.k0s(),A.j41(14,"span"),A.EFF(15),A.k0s()()()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faInfoCircle),A.R7$(6),A.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),A.R7$(2),A.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),A.R7$(2),A.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),A.R7$(2),A.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),A.R7$(2),A.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function ir(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Bitcoin address is required."),A.k0s())}function Oi(n,l){1&n&&(A.j41(0,"mat-hint"),A.EFF(1,"Amount replaced by UTXO balance"),A.k0s())}function Za(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.amountError)}}function Vr(n,l){if(1&n&&(A.j41(0,"mat-option",51),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e),A.R7$(),A.JRh(e)}}function qa(n,l){if(1&n&&(A.j41(0,"mat-option",51),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e.feeRateId),A.R7$(),A.SpI(" ",e.feeRateType," ")}}function Os(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fee Rate is required."),A.k0s())}function $a(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",52)(1,"mat-label"),A.EFF(2,"Fee Rate (Sats/vByte)"),A.k0s(),A.j41(3,"input",53,5),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG(2);return A.DH7(r.customFeeRate,o)||(r.customFeeRate=o),w.Njj(o)}),A.k0s(),A.DNE(5,Os,2,0,"mat-error",23),A.k0s()}if(2&n){const e=A.XpG(2);A.R7$(3),A.Y8G("step",1)("min",0)("required","customperkb"===e.selFeeRate&&!e.flgMinConf),A.R50("ngModel",e.customFeeRate),A.R7$(2),A.Y8G("ngIf","customperkb"===e.selFeeRate&&!e.flgMinConf&&!e.customFeeRate)}}function Mc(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Min Confirmation Blocks is required."),A.k0s())}function Wr(n,l){if(1&n&&(A.j41(0,"mat-option",51),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e),A.R7$(),A.SpI("",A.i5U(2,2,e.amount_msat/1e3,"1.0-0")," Sats")}}function Kr(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.sendFundError)}}function Xr(n,l){if(1&n&&(A.j41(0,"div",54),A.nrm(1,"fa-icon",17),A.DNE(2,Kr,2,1,"span",23),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.sendFundError)}}function pc(n,l){if(1&n){const e=A.RV6();A.j41(0,"form",20,1),A.bIt("submit",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onSendFunds())})("reset",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.resetData())}),A.j41(2,"mat-form-field",21)(3,"mat-label"),A.EFF(4,"Bitcoin Address"),A.k0s(),A.j41(5,"input",22,2),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.transaction.destination,o)||(r.transaction.destination=o),w.Njj(o)}),A.k0s(),A.DNE(7,ir,2,0,"mat-error",23),A.k0s(),A.j41(8,"mat-form-field",24)(9,"mat-label"),A.EFF(10,"Amount"),A.k0s(),A.j41(11,"input",25,3),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.transaction.satoshi,o)||(r.transaction.satoshi=o),w.Njj(o)}),A.k0s(),A.DNE(13,Oi,2,0,"mat-hint",23),A.j41(14,"span",26),A.EFF(15),A.k0s(),A.DNE(16,Za,2,1,"mat-error",23),A.k0s(),A.j41(17,"mat-form-field",27)(18,"mat-label"),A.EFF(19,"Amount Unit"),A.k0s(),A.j41(20,"mat-select",28),A.bIt("selectionChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onAmountUnitChange(o))}),A.DNE(21,Vr,2,2,"mat-option",29),A.k0s()(),A.j41(22,"div",30)(23,"div",31)(24,"div",32)(25,"mat-form-field",33)(26,"mat-label"),A.EFF(27,"Fee Rate"),A.k0s(),A.j41(28,"mat-select",34),A.mxI("valueChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFeeRate,o)||(r.selFeeRate=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.customFeeRate=null)}),A.DNE(29,qa,2,2,"mat-option",29),A.k0s()(),A.DNE(30,$a,6,5,"mat-form-field",35),A.k0s(),A.j41(31,"div",36)(32,"mat-checkbox",37),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.flgMinConf,o)||(r.flgMinConf=o),w.Njj(o)}),A.bIt("change",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.flgMinConf?o.selFeeRate=null:o.minConfValue=null)}),A.k0s(),A.j41(33,"mat-form-field",38)(34,"mat-label"),A.EFF(35,"Min Confirmation Blocks"),A.k0s(),A.j41(36,"input",39,4),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.minConfValue,o)||(r.minConfValue=o),w.Njj(o)}),A.k0s(),A.DNE(38,Mc,2,0,"mat-error",23),A.k0s()()(),A.j41(39,"mat-expansion-panel",40),A.bIt("closed",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onAdvancedPanelToggle(!0))})("opened",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onAdvancedPanelToggle(!1))}),A.j41(40,"mat-expansion-panel-header")(41,"mat-panel-title")(42,"span"),A.EFF(43),A.k0s()()(),A.j41(44,"div",30)(45,"div",41)(46,"mat-form-field",42)(47,"mat-label"),A.EFF(48,"Coin Selection"),A.k0s(),A.j41(49,"mat-select",43),A.mxI("valueChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selUTXOs,o)||(r.selUTXOs=o),w.Njj(o)}),A.bIt("selectionChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onUTXOSelectionChange(o))}),A.j41(50,"mat-select-trigger"),A.EFF(51),A.nI1(52,"number"),A.k0s(),A.DNE(53,Wr,3,5,"mat-option",29),A.k0s()(),A.j41(54,"div",44)(55,"mat-slide-toggle",45),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.flgUseAllBalance,o)||(r.flgUseAllBalance=o),w.Njj(o)}),A.bIt("change",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onUTXOAllBalanceChange())}),A.EFF(56," Use selected UTXOs balance "),A.k0s(),A.j41(57,"mat-icon",46),A.EFF(58,"info_outline"),A.k0s()()()()(),A.nrm(59,"div",30),A.DNE(60,Xr,3,2,"div",47),A.j41(61,"div",48)(62,"button",49),A.EFF(63,"Clear Fields"),A.k0s(),A.j41(64,"button",50),A.EFF(65,"Send Funds"),A.k0s()()()()}if(2&n){const e=A.XpG();A.R7$(5),A.R50("ngModel",e.transaction.destination),A.R7$(2),A.Y8G("ngIf",!e.transaction.destination),A.R7$(4),A.Y8G("type",e.flgUseAllBalance?"text":"number")("step",100)("min",0)("disabled",e.flgUseAllBalance),A.R50("ngModel",e.transaction.satoshi),A.R7$(2),A.Y8G("ngIf",e.flgUseAllBalance),A.R7$(2),A.SpI("",e.selAmountUnit," "),A.R7$(),A.Y8G("ngIf",!e.transaction.satoshi),A.R7$(4),A.Y8G("value",e.selAmountUnit)("disabled",e.flgUseAllBalance),A.R7$(),A.Y8G("ngForOf",e.amountUnits),A.R7$(4),A.Y8G("ngClass","customperkb"!==e.selFeeRate||e.flgMinConf?"flex-100":"flex-48"),A.R7$(3),A.Y8G("disabled",e.flgMinConf),A.R50("value",e.selFeeRate),A.R7$(),A.Y8G("ngForOf",e.feeRateTypes),A.R7$(),A.Y8G("ngIf","customperkb"===e.selFeeRate&&!e.flgMinConf),A.R7$(2),A.Y8G("ngClass",A.l_i(36,bi,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD||e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),A.R50("ngModel",e.flgMinConf),A.R7$(4),A.Y8G("step",1)("min",0)("required",e.flgMinConf)("disabled",!e.flgMinConf),A.R50("ngModel",e.minConfValue),A.R7$(2),A.Y8G("ngIf",e.flgMinConf&&!e.minConfValue),A.R7$(5),A.JRh(e.advancedTitle),A.R7$(6),A.R50("value",e.selUTXOs),A.R7$(2),A.Lme("",A.bMT(52,34,e.totalSelectedUTXOAmount)," Sats (",e.selUTXOs.length>1?e.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.R7$(2),A.Y8G("ngForOf",e.utxos),A.R7$(2),A.Y8G("disabled",e.selUTXOs.length<1),A.R50("ngModel",e.flgUseAllBalance),A.R7$(5),A.Y8G("ngIf",""!==e.sendFundError)}}function Ao(n,l){if(1&n&&A.EFF(0),2&n){const e=A.XpG(3);A.JRh(e.passwordFormLabel)}}function eo(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Password is required."),A.k0s())}function to(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-step",58)(1,"form",76),A.DNE(2,Ao,1,1,"ng-template",70),A.j41(3,"div",7)(4,"mat-form-field",18)(5,"mat-label"),A.EFF(6,"Password"),A.k0s(),A.nrm(7,"input",77),A.DNE(8,eo,2,0,"mat-error",23),A.k0s()(),A.j41(9,"div",78)(10,"button",73),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onAuthenticate())}),A.EFF(11,"Confirm"),A.k0s()()()()}if(2&n){const e=A.XpG(2);A.Y8G("stepControl",e.passwordFormGroup)("editable",e.flgEditable),A.R7$(),A.Y8G("formGroup",e.passwordFormGroup),A.R7$(7),A.Y8G("ngIf",null==e.passwordFormGroup.controls.password.errors?null:e.passwordFormGroup.controls.password.errors.required)}}function no(n,l){if(1&n&&A.EFF(0),2&n){const e=A.XpG(2);A.JRh(e.sendFundFormLabel)}}function io(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Bitcoin address is required."),A.k0s())}function Zr(n,l){if(1&n&&(A.j41(0,"mat-option",51),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e.feeRateId),A.R7$(),A.SpI(" ",e.feeRateType," ")}}function so(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fee Rate is required."),A.k0s())}function ro(n,l){if(1&n&&(A.j41(0,"mat-form-field",52)(1,"mat-label"),A.EFF(2,"Fee Rate (Sats/vByte)"),A.k0s(),A.nrm(3,"input",79),A.DNE(4,so,2,0,"mat-error",23),A.k0s()),2&n){const e=A.XpG(2);A.R7$(3),A.Y8G("step",1)("min",0),A.R7$(),A.Y8G("ngIf","customperkb"===e.sendFundFormGroup.controls.selFeeRate.value&&!e.sendFundFormGroup.controls.flgMinConf.value&&!e.sendFundFormGroup.controls.customFeeRate.value)}}function ao(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Min Confirmation Blocks is required."),A.k0s())}function oo(n,l){if(1&n&&A.EFF(0),2&n){const e=A.XpG(2);A.JRh(e.confirmFormLabel)}}function lo(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.sendFundError)}}function Ic(n,l){if(1&n&&(A.j41(0,"div",54),A.nrm(1,"fa-icon",17),A.DNE(2,lo,2,1,"span",23),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.sendFundError)}}function qr(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",55)(1,"mat-vertical-stepper",56,6),A.bIt("selectionChange",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.stepSelectionChanged(o))}),A.DNE(3,to,12,4,"mat-step",57),A.j41(4,"mat-step",58)(5,"form",59),A.DNE(6,no,1,1,"ng-template",60),A.j41(7,"div",30)(8,"mat-form-field",18)(9,"mat-label"),A.EFF(10,"Bitcoin Address"),A.k0s(),A.nrm(11,"input",61),A.DNE(12,io,2,0,"mat-error",23),A.k0s(),A.j41(13,"div",62)(14,"div",32)(15,"mat-form-field",33)(16,"mat-label"),A.EFF(17,"Fee Rate"),A.k0s(),A.j41(18,"mat-select",63),A.DNE(19,Zr,2,2,"mat-option",29),A.k0s()(),A.DNE(20,ro,5,3,"mat-form-field",35),A.k0s(),A.j41(21,"div",36),A.nrm(22,"mat-checkbox",64),A.j41(23,"mat-form-field",38)(24,"mat-label"),A.EFF(25,"Min Confirmation Blocks"),A.k0s(),A.nrm(26,"input",65),A.DNE(27,ao,2,0,"mat-error",23),A.k0s()()()(),A.j41(28,"div",66)(29,"button",67),A.EFF(30,"Next"),A.k0s()()()(),A.j41(31,"mat-step",68)(32,"form",69),A.DNE(33,oo,1,1,"ng-template",70),A.j41(34,"div",55)(35,"div",71),A.nrm(36,"fa-icon",72),A.j41(37,"span"),A.EFF(38,"You are about to sweep all funds from RTL. Are you sure?"),A.k0s()(),A.DNE(39,Ic,3,2,"div",47),A.j41(40,"div",66)(41,"button",73),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onSendFunds())}),A.EFF(42,"Sweep All Funds"),A.k0s()()()()()(),A.j41(43,"div",74)(44,"button",75),A.EFF(45),A.k0s()()()}if(2&n){const e=A.XpG();A.R7$(),A.Y8G("linear",!0),A.R7$(2),A.Y8G("ngIf",!e.appConfig.SSO.rtlSSO),A.R7$(),A.Y8G("stepControl",e.sendFundFormGroup)("editable",e.flgEditable),A.R7$(),A.Y8G("formGroup",e.sendFundFormGroup),A.R7$(7),A.Y8G("ngIf",null==e.sendFundFormGroup.controls.transactionAddress.errors?null:e.sendFundFormGroup.controls.transactionAddress.errors.required),A.R7$(3),A.Y8G("ngClass","customperkb"!==e.sendFundFormGroup.controls.selFeeRate.value||e.sendFundFormGroup.controls.flgMinConf.value?"flex-100":"flex-48"),A.R7$(4),A.Y8G("ngForOf",e.feeRateTypes),A.R7$(),A.Y8G("ngIf","customperkb"===e.sendFundFormGroup.controls.selFeeRate.value&&!e.sendFundFormGroup.controls.flgMinConf.value),A.R7$(2),A.Y8G("ngClass",A.l_i(20,bi,e.screenSize===e.screenSizeEnum.XS||e.screenSize===e.screenSizeEnum.SM,e.screenSize===e.screenSizeEnum.MD||e.screenSize===e.screenSizeEnum.LG||e.screenSize===e.screenSizeEnum.XL)),A.R7$(4),A.Y8G("step",1)("min",0)("required",e.sendFundFormGroup.controls.flgMinConf.value),A.R7$(),A.Y8G("ngIf",e.sendFundFormGroup.controls.flgMinConf.value&&!e.sendFundFormGroup.controls.minConfValue.value),A.R7$(4),A.Y8G("stepControl",e.confirmFormGroup),A.R7$(),A.Y8G("formGroup",e.confirmFormGroup),A.R7$(4),A.Y8G("icon",e.faExclamationTriangle),A.R7$(3),A.Y8G("ngIf",""!==e.sendFundError),A.R7$(5),A.Y8G("mat-dialog-close",!1),A.R7$(),A.JRh(e.flgValidated?"Close":"Cancel")}}let co=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln,Qt,wn,Ow,Jw){this.dialogRef=i,this.data=o,this.logger=r,this.dataService=iA,this.store=ne,this.commonService=re,this.decimalPipe=ln,this.actions=Qt,this.formBuilder=wn,this.rtlEffects=Ow,this.snackBar=Jw,this.faExclamationTriangle=v.zpE,this.faInfoCircle=v.iW_,this.sweepAll=!1,this.addressTypes=[],this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=null,this.selectedAddress=B.Ld[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.feeRateTypes=B.G,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.sendFundError="",this.fiatConversion=!1,this.amountUnits=B.A0,this.selAmountUnit=B.A0[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=B.k,this.advancedTitle="Advanced Options",this.flgValidated=!1,this.flgEditable=!0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds",this.confirmFormLabel="Confirm sweep",this.amountError="Amount is Required.",this.screenSize="",this.screenSizeEnum=B.f7,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.dataService.getRecommendedFeeRates().pipe((0,I.Q)(this.unSubs[0])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.sweepAll=this.data.sweepAll,this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[hA.k0.required]],password:["",[hA.k0.required]]}),this.sendFundFormGroup=this.formBuilder.group({transactionAddress:["",hA.k0.required],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}]}),this.confirmFormGroup=this.formBuilder.group({}),this.sendFundFormGroup.controls.flgMinConf.valueChanges.pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{i?(this.sendFundFormGroup.controls.selFeeRate.disable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.reset(),this.sendFundFormGroup.controls.minConfValue.enable(),this.sendFundFormGroup.controls.minConfValue.setValidators([hA.k0.required]),this.sendFundFormGroup.controls.minConfValue.setValue(null)):(this.sendFundFormGroup.controls.selFeeRate.enable(),this.sendFundFormGroup.controls.selFeeRate.setValue(null),this.sendFundFormGroup.controls.minConfValue.setValue(null),this.sendFundFormGroup.controls.minConfValue.disable(),this.sendFundFormGroup.controls.minConfValue.setValidators(null),this.sendFundFormGroup.controls.minConfValue.setErrors(null))}),this.sendFundFormGroup.controls.selFeeRate.valueChanges.pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.sendFundFormGroup.controls.customFeeRate.setValue(null),this.sendFundFormGroup.controls.customFeeRate.reset(),this.sendFundFormGroup.controls.customFeeRate.setValidators("customperkb"!==i||this.sendFundFormGroup.controls.flgMinConf.value?null:[hA.k0.required])}),(0,Va.z)([this.store.select(j._c),this.store.select(j.qv)]).pipe((0,I.Q)(this.unSubs[3])).subscribe(([i,o])=>{this.fiatConversion=i.settings.fiatConversion,this.amountUnits=i.settings.currencyUnits,this.appConfig=o}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{this.information=i}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[5])).subscribe(i=>{this.utxos=this.commonService.sortAscByKey(i.utxos?.filter(o=>"confirmed"===o.status),"value"),this.logger.info(i)}),this.actions.pipe((0,I.Q)(this.unSubs[6]),(0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN||i.type===B.TC.SET_CHANNEL_TRANSACTION_RES_CLN)).subscribe(i=>{i.type===B.TC.SET_CHANNEL_TRANSACTION_RES_CLN&&(this.store.dispatch((0,C.UI)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&i.payload.status===B.wn.ERROR&&"SetChannelTransaction"===i.payload.action&&(this.sendFundError=i.payload.message)})}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,C.oz)({payload:Wa(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,bt.s)(1)).subscribe(i=>{"ERROR"!==i?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onSendFunds(){if(this.sendFundError="",this.flgUseAllBalance&&(this.transaction.satoshi="all"),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.transaction.utxos=[],this.selUTXOs.forEach(i=>this.transaction.utxos?.push(i.txid+":"+i.output))),this.sweepAll){if(!this.sendFundFormGroup.controls.transactionAddress.value||""===this.sendFundFormGroup.controls.transactionAddress.value||this.sendFundFormGroup.controls.flgMinConf.value&&(!this.sendFundFormGroup.controls.minConfValue.value||this.sendFundFormGroup.controls.minConfValue.value<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshi="all",this.transaction.destination=this.sendFundFormGroup.controls.transactionAddress.value,this.sendFundFormGroup.controls.flgMinConf.value?(delete this.transaction.feerate,this.transaction.minconf=this.sendFundFormGroup.controls.flgMinConf.value?this.sendFundFormGroup.controls.minConfValue.value:null):(delete this.transaction.minconf,this.transaction.feerate="customperkb"===this.sendFundFormGroup.controls.selFeeRate.value&&!this.sendFundFormGroup.controls.flgMinConf.value&&this.sendFundFormGroup.controls.customFeeRate.value?1e3*this.sendFundFormGroup.controls.customFeeRate.value+"perkb":this.sendFundFormGroup.controls.selFeeRate.value),delete this.transaction.utxos,this.store.dispatch((0,VA.aB)({payload:this.transaction}))}else{if(this.transaction.minconf=this.flgMinConf?this.minConfValue:null,this.transaction.feerate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":""!==this.selFeeRate?this.selFeeRate:null,!this.transaction.destination||""===this.transaction.destination||!this.transaction.satoshi||+this.transaction.satoshi<=0||this.flgMinConf&&(!this.transaction.minconf||this.transaction.minconf<=0)||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate)return!0;this.transaction.satoshi&&"all"!==this.transaction.satoshi&&this.selAmountUnit!==B.BQ.SATS?this.commonService.convertCurrency(+this.transaction.satoshi,this.selAmountUnit===this.amountUnits[2]?B.BQ.OTHER:this.selAmountUnit,B.BQ.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,I.Q)(this.unSubs[7])).subscribe({next:i=>{this.transaction.satoshi=i[B.BQ.SATS],this.selAmountUnit=B.BQ.SATS,this.store.dispatch((0,VA.aB)({payload:this.transaction}))},error:i=>{this.transaction.satoshi=null,this.selAmountUnit=B.BQ.SATS,this.amountError="Conversion Error: "+i}}):this.store.dispatch((0,VA.aB)({payload:this.transaction}))}}resetData(){this.sendFundError="",this.transaction={},this.flgMinConf=!1,this.totalSelectedUTXOAmount=null,this.selUTXOs=[],this.flgUseAllBalance=!1,this.selAmountUnit=B.A0[0]}stepSelectionChanged(i){switch(this.sendFundError="",i.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password",this.sendFundFormLabel="Sweep funds";break;case 1:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds";break;case 2:this.passwordFormLabel="User authenticated successfully",this.sendFundFormLabel="Sweep funds | Address: "+this.sendFundFormGroup.controls.transactionAddress.value+(this.sendFundFormGroup.controls.flgMinConf.value?" | Min Confirmation Blocks: "+this.sendFundFormGroup.controls.minConfValue.value:this.sendFundFormGroup.controls.selFeeRate.value?" | Fee Rate: "+this.feeRateTypes.find(o=>o.feeRateId===this.sendFundFormGroup.controls.selFeeRate.value)?.feeRateType:"")}i.selectedIndex0?(this.totalSelectedUTXOAmount=this.selUTXOs?.reduce((o,r)=>o+(r.amount_msat||0)/1e3,0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=null,this.transaction.satoshi=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.flgUseAllBalance?(this.transaction.satoshi=this.totalSelectedUTXOAmount,this.selAmountUnit=B.A0[0]):this.transaction.satoshi=null}onAmountUnitChange(i){const o=this,r=this.selAmountUnit===this.amountUnits[2]?B.BQ.OTHER:this.selAmountUnit;let iA=i.value===this.amountUnits[2]?B.BQ.OTHER:i.value;this.transaction.satoshi&&this.selAmountUnit!==i.value&&this.commonService.convertCurrency(+this.transaction.satoshi,r,iA,this.amountUnits[2],this.fiatConversion).pipe((0,I.Q)(this.unSubs[8])).subscribe({next:ne=>{this.selAmountUnit=i.value,o.transaction.satoshi=o.decimalPipe.transform(ne[iA],o.currencyUnitFormats[iA])?.replace(/,/g,"")},error:ne=>{o.transaction.satoshi=null,this.amountError="Conversion Error: "+ne,this.selAmountUnit=r,iA=r}})}onAdvancedPanelToggle(i){this.advancedTitle=i&&this.selUTXOs.length&&this.selUTXOs.length>0?"Advanced Options | Selected UTXOs: "+this.selUTXOs.length+" | Selected UTXO Amount: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats":"Advanced Options"}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(aA.gP),A.rXU(Dt.u),A.rXU(AA.il),A.rXU(L.h),A.rXU(de.QX),A.rXU(kA.En),A.rXU(hA.ze),A.rXU(b.H),A.rXU(js.UG))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-on-chain-send-modal"]],viewQuery:function(o,r){if(1&o&&(A.GBs(_r,7),A.GBs(Ka,5),A.GBs(Xa,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first),A.mGM(iA=A.lsd())&&(r.formSweepAll=iA.first),A.mGM(iA=A.lsd())&&(r.stepper=iA.first)}},standalone:!1,decls:13,vars:5,consts:[["sweepAllBlock",""],["form","ngForm"],["address","ngModel"],["amount","ngModel"],["blocks","ngModel"],["custFeeRate","ngModel"],["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],["fxLayout","column",1,"padding-gap-x-large"],["fxFlex","100","class","alert alert-info mb-2",4,"ngIf"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100","class","overflow-x-hidden",3,"submit","reset",4,"ngIf","ngIfElse"],["fxFlex","100",1,"alert","alert-info","mb-2"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","row wrap","fxLayoutAlign","space-between start","fxFlex","100",1,"overflow-x-hidden",3,"submit","reset"],["fxLayout","column","fxFlex","55"],["matInput","","autoFocus","","name","address","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","30"],["matInput","","name","amount","required","",3,"ngModelChange","type","step","min","disabled","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","10","fxLayoutAlign","start end"],["required","","name","amountUnit",3,"selectionChange","value","disabled"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","48","fxLayoutAlign","space-between start"],["fxLayout","column","fxLayoutAlign","start center",3,"ngClass"],[3,"valueChange","selectionChange","disabled","value"],["fxFlex","48","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","7","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModelChange","change","ngClass","ngModel"],["fxLayout","column","fxFlex","93"],["matInput","","type","number","name","blocks",3,"ngModelChange","step","min","required","disabled","ngModel"],["fxLayout","column","fxFlex","100","expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","35","fxLayoutAlign","start end"],["multiple","",3,"valueChange","selectionChange","value"],["fxFlex","60","fxLayout","row","fxLayoutAlign","start center"],["color","primary","name","flgUseAllBalance",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","above",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit"],[3,"value"],["fxFlex","48","fxLayoutAlign","end center"],["matInput","","type","number","name","custFeeRate",3,"ngModelChange","step","min","required","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl","editable"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["matInput","","formControlName","transactionAddress","name","address","required",""],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["formControlName","selFeeRate"],["fxFlex","7","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["matInput","","formControlName","minConfValue","type","number","name","blocks",3,"step","min","required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","type","button ","matStepperNext",""],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxFlex","100",1,"w-100","alert","alert-warn"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["mat-button","","color","primary","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["autoFocus","","matInput","","type","password","formControlName","password","required",""],["fxLayout","row",1,"mt-2"],["matInput","","formControlName","customFeeRate","type","number","name","custFeeRate",3,"step","min"]],template:function(o,r){if(1&o&&(A.j41(0,"div",7)(1,"div",8)(2,"mat-card-header",9)(3,"div",10)(4,"span",11),A.EFF(5),A.k0s()(),A.j41(6,"button",12),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",13),A.DNE(9,Xe,16,6,"div",14)(10,pc,66,39,"form",15),A.k0s()()(),A.DNE(11,qr,46,23,"ng-template",null,0,A.C5r)),2&o){const iA=A.sdS(12);A.R7$(5),A.JRh(r.sweepAll?"Sweep All Funds":"Send Funds"),A.R7$(),A.Y8G("mat-dialog-close",!1),A.R7$(3),A.Y8G("ngIf",r.recommendedFee.minimumFee),A.R7$(),A.Y8G("ngIf",!r.sweepAll)("ngIfElse",iA)}},dependencies:[de.YU,de.Sq,de.bT,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.vS,hA.cV,hA.j4,hA.JD,P.aY,wA.tx,fA.$z,QA.m2,QA.MM,Ze.So,gi.GK,gi.Z2,gi.WN,oA.An,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,yA.yw,Q.DJ,Q.sA,Q.UI,dA.PW,OA.VO,OA.$2,xA.wT,Ee.sG,HA.oV,ji.V5,ji.Ti,ji.M6,ji.F7,cA.N,J.V,de.QX],encapsulation:2}))}return n(),l})();var $r=We(25837),Aa=We(1975);const go=()=>["all"],Bo=n=>({"error-border":n}),fo=()=>["no_utxo"],br=n=>({width:n}),ea=n=>({"display-none":n});function Pn(n,l){if(1&n&&(A.j41(0,"mat-option",37),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function uo(n,l){1&n&&A.nrm(0,"mat-progress-bar",38)}function ho(n,l){1&n&&A.nrm(0,"th",39)}function Eo(n,l){1&n&&(A.j41(0,"span",42)(1,"mat-icon",43),A.EFF(2,"warning"),A.k0s()())}function wo(n,l){if(1&n&&(A.j41(0,"td",40),A.DNE(1,Eo,3,0,"span",41),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(),o=A.sdS(56);A.R7$(),A.Y8G("ngIf",i.numDustUTXOs>0&&!i.isDustUTXO&&(null==e?null:e.amount_msat)/1e30||0===e.amount_msat),A.R7$(),A.Y8G("ngIf",e.amount_msat<0)}}function kt(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Blockheight"),A.k0s())}function Do(n,l){if(1&n&&(A.j41(0,"td",40)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.bMT(3,1,null==e?null:e.blockheight)," ")}}function Si(n,l){1&n&&(A.j41(0,"th",49),A.EFF(1,"Reserved"),A.k0s())}function Fo(n,l){if(1&n&&(A.j41(0,"td",40)(1,"span"),A.EFF(2),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(e.reserved?"Yes":"No")}}function yo(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",57)(1,"div",58)(2,"mat-select",59),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",60),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function xo(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",61)(1,"button",62),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG();return w.Njj(iA.onUTXOClick(r,o))}),A.EFF(2,"View Info"),A.k0s()()}}function or(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No utxos available."),A.k0s())}function Kn(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting utxos..."),A.k0s())}function na(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function ls(n,l){if(1&n&&(A.j41(0,"td",63),A.DNE(1,or,2,0,"p",64)(2,Kn,2,0,"p",64)(3,na,2,1,"p",64),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.listUTXOs&&e.listUTXOs.data)||(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function ia(n,l){if(1&n&&A.nrm(0,"tr",65),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,ea,(null==e.listUTXOs?null:e.listUTXOs.data)&&(null==e.listUTXOs||null==e.listUTXOs.data?null:e.listUTXOs.data.length)>0))}}function Yo(n,l){1&n&&A.nrm(0,"tr",66)}function lr(n,l){1&n&&A.nrm(0,"tr",67)}function cr(n,l){1&n&&A.nrm(0,"mat-icon",68)}let Ni=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.commonService=o,this.store=r,this.camelCaseWithReplace=iA,this.numDustUTXOs=0,this.isDustUTXO=!1,this.dustAmount=1e3,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"utxos",recordsPerPage:B.md,sortBy:"status",sortOrder:B.oi.DESCENDING},this.displayedColumns=[],this.listUTXOs=new z.I6([]),this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.tableSetting.tableId=this.isDustUTXO?"dust_utxos":"utxos",this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),i.utxos&&i.utxos.length>0&&(this.dustUtxos=i.utxos?.filter(o=>+(o.amount_msat||0)/1e30&&this.loadUTXOsTable(this.dustUtxos):(this.displayedColumns.unshift("is_dust"),this.utxos&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadUTXOsTable(this.utxos))),this.logger.info(i)})}ngAfterViewInit(){setTimeout(()=>{this.isDustUTXO?this.dustUtxos&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadUTXOsTable(this.dustUtxos):this.utxos&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadUTXOsTable(this.utxos)},0)}onUTXOClick(i,o){const r=[[{key:"txid",value:i.txid,title:"Transaction ID",width:100,type:B.UN.STRING,explorerLink:"tx"}],[{key:"output",value:i.output,title:"Output",width:50,type:B.UN.NUMBER},{key:"amount_msat",value:(i.amount_msat||0)/1e3,title:"Value (Sats)",width:50,type:B.UN.NUMBER}],[{key:"status",value:this.commonService.titleCase(i.status||""),title:"Status",width:50,type:B.UN.STRING},{key:"blockheight",value:i.blockheight,title:"Blockheight",width:50,type:B.UN.NUMBER}],[{key:"address",value:i.address,title:"Address",width:100}]];this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"UTXO Information",message:r}}}))}applyFilter(){this.listUTXOs.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column||"","_"):"is_dust"===i?"Dust":this.commonService.titleCase(i)}setFilterPredicate(){this.listUTXOs.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=JSON.stringify(i).toLowerCase();break;case"is_dust":r=(i?.amount_msat||0)/1e3"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"is_dust"===this.selFilterBy||"status"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadUTXOsTable(i){this.listUTXOs=new z.I6([...i]),this.listUTXOs.sort=this.sort,this.listUTXOs.sortingDataAccessor=(o,r)=>{switch(r){case"is_dust":return(o.amount_msat||0)/1e30&&this.commonService.downloadFile(this.listUTXOs.data,"UTXOs")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-on-chain-utxos"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},inputs:{numDustUTXOs:"numDustUTXOs",isDustUTXO:"isDustUTXO",dustAmount:"dustAmount"},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("UTXOs")}])],decls:57,vars:18,consts:[["table",""],["emptySpace",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start start"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","is_dust"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Dust/Nondust",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["matColumnDef","txid"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","address"],["matColumnDef","scriptpubkey"],["matColumnDef","output"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","value"],["matColumnDef","blockheight"],["matColumnDef","reserved"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_utxo"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Dust/Nondust"],["mat-cell",""],["matTooltip","Risk of dust attack","matTooltipPosition","right",4,"ngIf","ngIfElse"],["matTooltip","Risk of dust attack","matTooltipPosition","right"],["fxLayoutAlign","start center","color","warn",1,"small-icon"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["class","dot green","matTooltip","Confirmed","matTooltipPosition","right",4,"ngIf"],["class","dot yellow","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],["matTooltip","Confirmed","matTooltipPosition","right",1,"dot","green"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip"],["mat-header-cell","","mat-sort-header",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["fxLayoutAlign","end center","class","red",4,"ngIf"],["fxLayoutAlign","end center",1,"red"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["fxLayoutAlign","start center","color","warn",1,"mr-1"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",2)(1,"div",3),A.nrm(2,"div",4),A.j41(3,"div",5)(4,"mat-form-field",6)(5,"mat-label"),A.EFF(6,"Filter By"),A.k0s(),A.j41(7,"mat-select",7),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(8,"perfect-scrollbar"),A.DNE(9,Pn,2,2,"mat-option",8),A.k0s()()(),A.j41(10,"mat-form-field",6)(11,"mat-label"),A.EFF(12,"Filter"),A.k0s(),A.j41(13,"input",9),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(14,"div",10)(15,"div",11),A.DNE(16,uo,1,0,"mat-progress-bar",12),A.j41(17,"table",13,0),A.qex(19,14),A.DNE(20,ho,1,0,"th",15)(21,wo,2,2,"td",16),A.bVm(),A.qex(22,17),A.DNE(23,Co,1,0,"th",18)(24,Dc,3,2,"td",16),A.bVm(),A.qex(25,19),A.DNE(26,Mo,2,0,"th",20)(27,vi,4,4,"td",16),A.bVm(),A.qex(28,21),A.DNE(29,po,2,0,"th",20)(30,ta,4,4,"td",16),A.bVm(),A.qex(31,22),A.DNE(32,vr,2,0,"th",20)(33,qt,4,4,"td",16),A.bVm(),A.qex(34,23),A.DNE(35,Ri,2,0,"th",24)(36,Rr,4,3,"td",16),A.bVm(),A.qex(37,25),A.DNE(38,Io,2,0,"th",24)(39,ar,3,2,"td",16),A.bVm(),A.qex(40,26),A.DNE(41,kt,2,0,"th",24)(42,Do,4,3,"td",16),A.bVm(),A.qex(43,27),A.DNE(44,Si,2,0,"th",20)(45,Fo,3,1,"td",16),A.bVm(),A.qex(46,28),A.DNE(47,yo,6,0,"th",29)(48,xo,3,0,"td",30),A.bVm(),A.qex(49,31),A.DNE(50,ls,4,3,"td",32),A.bVm(),A.DNE(51,ia,1,3,"tr",33)(52,Yo,1,0,"tr",34)(53,lr,1,0,"tr",35),A.k0s(),A.nrm(54,"mat-paginator",36),A.k0s()()(),A.DNE(55,cr,1,0,"ng-template",null,1,A.C5r)}2&o&&(A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(14,go).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(3),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.listUTXOs)("ngClass",A.eq3(15,Bo,""!==r.errorMessage)),A.R7$(34),A.Y8G("matFooterRowDef",A.lJ4(17,fo)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,fA.$z,oA.An,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,de.QX,de.PV],styles:[".mat-column-is_dust[_ngcontent-%COMP%]{max-width:3rem;width:3rem;text-overflow:unset}.mat-column-status[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return n(),l})();function bo(n,l){if(1&n&&(A.j41(0,"span",4),A.EFF(1,"UTXOs"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.numUtxos))}}function gr(n,l){if(1&n&&(A.j41(0,"span",5),A.EFF(1,"Dust UTXOs"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.numDustUtxos))}}let Js=(()=>{var n;class l{constructor(i,o){this.logger=i,this.store=o,this.selectedTableIndex=0,this.selectedTableIndexChange=new A.bkB,this.numUtxos=0,this.numDustUtxos=0,this.DUST_AMOUNT=1e3,this.unSubs=[new g.B,new g.B]}ngOnInit(){this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{i.utxos&&i.utxos.length>0&&(this.numUtxos=i.utxos.length||0,this.numDustUtxos=i.utxos?.filter(o=>+(o.amount_msat||0)/1e3{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-utxo-tables"]],inputs:{selectedTableIndex:"selectedTableIndex"},outputs:{selectedTableIndexChange:"selectedTableIndexChange"},standalone:!1,decls:8,vars:7,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"bordered-box","my-2"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedIndex"],["mat-tab-label",""],["fxLayout","row","fxFlex","100",3,"numDustUTXOs","isDustUTXO","dustAmount"],["matBadgeOverlap","false","matBadgeColor","primary",1,"tab-badge",3,"matBadge"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,r){1&o&&(A.j41(0,"div",0)(1,"mat-tab-group",1),A.bIt("selectedIndexChange",function(ne){return r.onSelectedIndexChanged(ne)}),A.j41(2,"mat-tab"),A.DNE(3,bo,2,2,"ng-template",2),A.nrm(4,"rtl-cln-on-chain-utxos",3),A.k0s(),A.j41(5,"mat-tab"),A.DNE(6,gr,2,2,"ng-template",2),A.nrm(7,"rtl-cln-on-chain-utxos",3),A.k0s()()()),2&o&&(A.R7$(),A.Y8G("selectedIndex",r.selectedTableIndex),A.R7$(3),A.Y8G("numDustUTXOs",r.numDustUtxos)("isDustUTXO",!1)("dustAmount",r.DUST_AMOUNT),A.R7$(3),A.Y8G("numDustUTXOs",r.numDustUtxos)("isDustUTXO",!0)("dustAmount",r.DUST_AMOUNT))},dependencies:[Q.DJ,Q.sA,Q.UI,Aa.k,RA.ES,RA.mq,RA.T8,Ni],encapsulation:2}))}return n(),l})();const vo=(n,l)=>[n,l];function Ro(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",13),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=null==o?null:o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("active",i.activeLink===(null==e?null:e.link))("routerLink",A.l_i(3,vo,null==e?null:e.link,null==i.selectedTable?null:i.selectedTable.name)),A.R7$(),A.JRh(null==e?null:e.name)}}let So=(()=>{var n;class l{constructor(i,o,r){this.store=i,this.router=o,this.activatedRoute=r,this.faExchangeAlt=v._qq,this.faChartPie=v.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"receive",name:"Receive"},{link:"send",name:"Send"},{link:"sweep",name:"Sweep All"}],this.activeLink=this.links[0].link,this.tables=[{id:0,name:"utxos"},{id:1,name:"dustUtxos"}],this.selectedTable=this.tables[0],this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.selectedTable=this.tables.find(o=>o.name===this.router.url.substring(this.router.url.lastIndexOf("/")+1))||this.tables[0],this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link,this.selectedTable=this.tables.find(iA=>iA.name===o.urlAfterRedirects.substring(o.urlAfterRedirects.lastIndexOf("/")+1))||this.tables[0]}}),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[1])).subscribe(o=>{this.selNode=o}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[2])).subscribe(o=>{this.balances=[{title:"Total Balance",dataValue:o.balance.totalBalance||0},{title:"Confirmed",dataValue:o.balance.confBalance||0},{title:"Unconfirmed",dataValue:o.balance.unconfBalance||0}]})}openSendFundsModal(i){this.store.dispatch((0,C.xO)({payload:{data:{sweepAll:i,component:co}}}))}onSelectedTableIndexChanged(i){this.selectedTable=this.tables.find(o=>o.id===i)||this.tables[0],this.router.navigate(["./",this.activeLink,this.selectedTable.name],{relativeTo:this.activatedRoute})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il),A.rXU(xt.Ix),A.rXU(xt.nX))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-on-chain"]],standalone:!1,decls:23,vars:6,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100",3,"selectedTableIndexChange","selectedTableIndex"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1),A.nrm(1,"fa-icon",2),A.j41(2,"span",3),A.EFF(3,"On-chain Balance"),A.k0s()(),A.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),A.nrm(7,"rtl-currency-unit-converter",6),A.k0s()()(),A.j41(8,"div",1),A.nrm(9,"fa-icon",2),A.j41(10,"span",3),A.EFF(11,"On-chain Transactions"),A.k0s()(),A.j41(12,"div",7)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",8),A.DNE(16,Ro,2,6,"div",9),A.k0s(),A.nrm(17,"mat-tab-nav-panel",null,0),A.j41(19,"div",10),A.nrm(20,"router-outlet"),A.k0s(),A.j41(21,"div",11)(22,"rtl-cln-utxo-tables",12),A.bIt("selectedTableIndexChange",function(re){return w.eBV(iA),w.Njj(r.onSelectedTableIndexChanged(re))}),A.k0s()()()()()}if(2&o){const iA=A.sdS(18);A.R7$(),A.Y8G("icon",r.faChartPie),A.R7$(6),A.Y8G("values",r.balances),A.R7$(2),A.Y8G("icon",r.faExchangeAlt),A.R7$(6),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links),A.R7$(6),A.Y8G("selectedTableIndex",null==r.selectedTable?null:r.selectedTable.id)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,RA.Bu,RA.hQ,RA.Ql,$r.f,xt.n3,Sn.Wk,Js],encapsulation:2}))}return n(),l})();function sa(n,l){if(1&n&&(A.j41(0,"span",10),A.EFF(1,"Channels"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.activeChannels))}}function No(n,l){if(1&n&&(A.j41(0,"span",10),A.EFF(1,"Peers"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.activePeers))}}let To=(()=>{var n;class l{constructor(i,o,r){this.store=i,this.logger=o,this.router=r,this.activePeers=0,this.activeChannels=0,this.faUsers=v.gdJ,this.faChartPie=v.W1p,this.balances=[{title:"Total Balance",dataValue:0},{title:"Confirmed",dataValue:0},{title:"Unconfirmed",dataValue:0}],this.links=[{link:"channels",name:"Channels"},{link:"peers",name:"Peers"}],this.activeLink=0,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(i=>i instanceof xt.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.activeChannels=i.activeChannels.length||0}),this.store.select(tA.os).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.activePeers=i.peers&&i.peers.length?i.peers.length:0,this.logger.info(i)}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.balance.totalBalance||0},{title:"Confirmed",dataValue:i.balance.confBalance||0},{title:"Unconfirmed",dataValue:i.balance.unconfBalance||0}]})}onSelectedTabChange(i){this.router.navigateByUrl("/cln/connections/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il),A.rXU(aA.gP),A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-connections"]],standalone:!1,decls:22,vars:4,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","column",1,"padding-gap-x"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,r){1&o&&(A.j41(0,"div",0),A.nrm(1,"fa-icon",1),A.j41(2,"span",2),A.EFF(3,"On-chain Balance"),A.k0s()(),A.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),A.nrm(7,"rtl-currency-unit-converter",5),A.k0s()()(),A.j41(8,"div",0),A.nrm(9,"fa-icon",1),A.j41(10,"span",2),A.EFF(11,"Connections"),A.k0s()(),A.j41(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),A.mxI("selectedIndexChange",function(ne){return A.DH7(r.activeLink,ne)||(r.activeLink=ne),ne}),A.bIt("selectedTabChange",function(ne){return r.onSelectedTabChange(ne)}),A.j41(16,"mat-tab"),A.DNE(17,sa,2,2,"ng-template",8),A.k0s(),A.j41(18,"mat-tab"),A.DNE(19,No,2,2,"ng-template",8),A.k0s()(),A.j41(20,"div",9),A.nrm(21,"router-outlet"),A.k0s()()()()),2&o&&(A.R7$(),A.Y8G("icon",r.faChartPie),A.R7$(6),A.Y8G("values",r.balances),A.R7$(2),A.Y8G("icon",r.faUsers),A.R7$(6),A.R50("selectedIndex",r.activeLink))},dependencies:[P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,Aa.k,RA.ES,RA.mq,RA.T8,$r.f,xt.n3],encapsulation:2}))}return n(),l})();function Po(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",12),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("routerLink",A.mNQ(e.link))("active",i.activeLink===e.link),A.R7$(),A.JRh(e.name)}}let Uo=(()=>{var n;class l{constructor(i,o,r){this.logger=i,this.store=o,this.router=r,this.faExchangeAlt=v._qq,this.faChartPie=v.W1p,this.currencyUnits=[],this.routerUrl="",this.balances=[{title:"Local Capacity",dataValue:0,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:0,tooltip:"Amount you can receive"}],this.links=[{link:"payments",name:"Payments"},{link:"invoices",name:"Invoices"}],this.activeLink=this.links[0].link,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link,this.routerUrl=o.urlAfterRedirects}}),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[1])).subscribe(o=>{if(this.selNode=o,this.selNode&&this.selNode.settings.enableOffers){this.store.dispatch((0,VA.Eb)()),this.store.dispatch((0,VA.Ml)()),this.links.push({link:"offers",name:"Offers"}),this.links.push({link:"offrBookmarks",name:"Paid Offer Bookmarks"});const r=this.links.find(iA=>this.router.url.includes(iA.link));this.activeLink=r?r.link:this.links[0].link}}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[2]),(0,N.E)(this.store.select(j._c))).subscribe(([o,r])=>{this.currencyUnits=r?.settings.currencyUnits||[],this.balances=r&&r.settings.userPersona===B.HW.OPERATOR?[{title:"Local Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:o.localRemoteBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:o.localRemoteBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(o)})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-transactions"]],standalone:!1,decls:21,vars:5,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x","mb-4"],["fxLayout","column"],[3,"values"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["fxLayout","column",1,"padding-gap-x"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1),A.nrm(1,"fa-icon",2),A.j41(2,"span",3),A.EFF(3,"Lightning Balance"),A.k0s()(),A.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5),A.nrm(7,"rtl-currency-unit-converter",6),A.k0s()()(),A.j41(8,"div",7),A.nrm(9,"fa-icon",2),A.j41(10,"span",3),A.EFF(11,"Lightning Transactions"),A.k0s()(),A.j41(12,"div",8)(13,"mat-card")(14,"mat-card-content",5)(15,"nav",9),A.DNE(16,Po,2,4,"div",10),A.k0s(),A.nrm(17,"mat-tab-nav-panel",null,0),A.j41(19,"div",11),A.nrm(20,"router-outlet"),A.k0s()()()()),2&o){const iA=A.sdS(18);A.R7$(),A.Y8G("icon",r.faChartPie),A.R7$(6),A.Y8G("values",r.balances),A.R7$(2),A.Y8G("icon",r.faExchangeAlt),A.R7$(6),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,RA.Bu,RA.hQ,RA.Ql,$r.f,xt.n3,Sn.Wk],encapsulation:2}))}return n(),l})();function Lo(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",12),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("routerLink",A.mNQ(e.link))("active",i.activeLink===e.link),A.R7$(),A.JRh(e.name)}}let Go=(()=>{var n;class l{constructor(i){this.router=i,this.faMapSigns=v.knH,this.links=[{link:"forwardinghistory",name:"Forwarding History"},{link:"routingpeers",name:"Routing Peers"},{link:"failedtransactions",name:"Failed Transactions"},{link:"localfail",name:"Local Failed Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new g.B,new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-routing"]],standalone:!1,decls:15,vars:3,consts:[["tabPanel",""],["fxLayout","column",1,"mb-2"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start","fxFlex","100",3,"tabPanel"],["tabindex","1","mat-tab-link","","role","tab","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["tabindex","1","mat-tab-link","","role","tab",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1)(1,"div",2),A.nrm(2,"fa-icon",3),A.j41(3,"span",4),A.EFF(4,"Routing"),A.k0s()(),A.j41(5,"div",5)(6,"mat-card",6)(7,"mat-card-content",7)(8,"div",8)(9,"nav",9),A.DNE(10,Lo,2,4,"div",10),A.k0s(),A.nrm(11,"mat-tab-nav-panel",null,0),A.k0s(),A.j41(13,"div",11),A.nrm(14,"router-outlet"),A.k0s()()()()()),2&o){const iA=A.sdS(12);A.R7$(2),A.Y8G("icon",r.faMapSigns),A.R7$(7),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,RA.Bu,RA.hQ,RA.Ql,xt.n3,Sn.Wk],encapsulation:2}))}return n(),l})();function zo(n,l){1&n&&(A.j41(0,"h3",9),A.EFF(1,"Node 1"),A.k0s())}function ko(n,l){1&n&&(A.j41(0,"h3",9),A.EFF(1,"Node 1 (Your Node)"),A.k0s())}function Ho(n,l){1&n&&(A.j41(0,"h3",9),A.EFF(1,"Node 2"),A.k0s())}function jo(n,l){1&n&&(A.j41(0,"h3",9),A.EFF(1,"Node 2 (Your Node)"),A.k0s())}function Oo(n,l){if(1&n&&(A.j41(0,"div",1),A.nrm(1,"mat-divider"),A.j41(2,"div",2)(3,"div",3)(4,"div",4),A.DNE(5,zo,2,0,"h3",5)(6,ko,2,0,"h3",5),A.k0s(),A.nrm(7,"mat-divider",6),A.j41(8,"div",4)(9,"h4",7),A.EFF(10,"Short Channel ID"),A.k0s(),A.j41(11,"span",8),A.EFF(12),A.k0s()(),A.nrm(13,"mat-divider",6),A.j41(14,"div",4)(15,"h4",7),A.EFF(16,"Active"),A.k0s(),A.j41(17,"span",8),A.EFF(18),A.k0s()(),A.nrm(19,"mat-divider",6),A.j41(20,"div",4)(21,"h4",7),A.EFF(22,"Last Update"),A.k0s(),A.j41(23,"span",8),A.EFF(24),A.nI1(25,"date"),A.k0s()(),A.nrm(26,"mat-divider",6),A.j41(27,"div",4)(28,"h4",7),A.EFF(29,"Amount (Sats)"),A.k0s(),A.j41(30,"span",8),A.EFF(31),A.nI1(32,"number"),A.k0s()(),A.nrm(33,"mat-divider",6),A.j41(34,"div",4)(35,"h4",7),A.EFF(36,"Base Fee (mSats)"),A.k0s(),A.j41(37,"span",8),A.EFF(38),A.nI1(39,"number"),A.k0s()(),A.nrm(40,"mat-divider",6),A.j41(41,"div",4)(42,"h4",7),A.EFF(43,"Fee/Millionth"),A.k0s(),A.j41(44,"span",8),A.EFF(45),A.nI1(46,"number"),A.k0s()(),A.nrm(47,"mat-divider",6),A.j41(48,"div",4)(49,"h4",7),A.EFF(50,"Channel Flags"),A.k0s(),A.j41(51,"span",8),A.EFF(52),A.nI1(53,"number"),A.k0s()(),A.nrm(54,"mat-divider",6),A.j41(55,"div",4)(56,"h4",7),A.EFF(57,"Delay"),A.k0s(),A.j41(58,"span",8),A.EFF(59),A.nI1(60,"number"),A.k0s()(),A.nrm(61,"mat-divider",6),A.j41(62,"div",4)(63,"h4",7),A.EFF(64,"Max Htlc (mSat)"),A.k0s(),A.j41(65,"span",8),A.EFF(66),A.nI1(67,"number"),A.k0s()(),A.nrm(68,"mat-divider",6),A.j41(69,"div",4)(70,"h4",7),A.EFF(71,"Min Htlc (mSat)"),A.k0s(),A.j41(72,"span",8),A.EFF(73),A.nI1(74,"number"),A.k0s()(),A.nrm(75,"mat-divider",6),A.j41(76,"div",4)(77,"h4",7),A.EFF(78,"Message Flags"),A.k0s(),A.j41(79,"span",8),A.EFF(80),A.nI1(81,"number"),A.k0s()(),A.nrm(82,"mat-divider",6),A.j41(83,"div",4)(84,"h4",7),A.EFF(85,"Public"),A.k0s(),A.j41(86,"span",8),A.EFF(87),A.k0s()(),A.nrm(88,"mat-divider",6),A.j41(89,"div",4)(90,"h4",7),A.EFF(91,"Source"),A.k0s(),A.j41(92,"span",8),A.EFF(93),A.k0s()(),A.nrm(94,"mat-divider",6),A.j41(95,"div",4)(96,"h4",7),A.EFF(97,"Destination"),A.k0s(),A.j41(98,"span",8),A.EFF(99),A.k0s()()(),A.j41(100,"div",3)(101,"div"),A.DNE(102,Ho,2,0,"h3",5)(103,jo,2,0,"h3",5),A.k0s(),A.nrm(104,"mat-divider",6),A.j41(105,"div",4)(106,"h4",7),A.EFF(107,"Short Channel ID"),A.k0s(),A.j41(108,"span",8),A.EFF(109),A.k0s()(),A.nrm(110,"mat-divider",6),A.j41(111,"div",4)(112,"h4",7),A.EFF(113,"Active"),A.k0s(),A.j41(114,"span",8),A.EFF(115),A.k0s()(),A.nrm(116,"mat-divider",6),A.j41(117,"div",4)(118,"h4",7),A.EFF(119,"Last Update"),A.k0s(),A.j41(120,"span",8),A.EFF(121),A.nI1(122,"date"),A.k0s()(),A.nrm(123,"mat-divider",6),A.j41(124,"div",4)(125,"h4",7),A.EFF(126,"Amount (Sats)"),A.k0s(),A.j41(127,"span",8),A.EFF(128),A.nI1(129,"number"),A.k0s()(),A.nrm(130,"mat-divider",6),A.j41(131,"div",4)(132,"h4",7),A.EFF(133,"Base Fee (mSats)"),A.k0s(),A.j41(134,"span",8),A.EFF(135),A.nI1(136,"number"),A.k0s()(),A.nrm(137,"mat-divider",6),A.j41(138,"div",4)(139,"h4",7),A.EFF(140,"Fee/Millionth"),A.k0s(),A.j41(141,"span",8),A.EFF(142),A.nI1(143,"number"),A.k0s()(),A.nrm(144,"mat-divider",6),A.j41(145,"div",4)(146,"h4",7),A.EFF(147,"Channel Flags"),A.k0s(),A.j41(148,"span",8),A.EFF(149),A.nI1(150,"number"),A.k0s()(),A.nrm(151,"mat-divider",6),A.j41(152,"div",4)(153,"h4",7),A.EFF(154,"Delay"),A.k0s(),A.j41(155,"span",8),A.EFF(156),A.nI1(157,"number"),A.k0s()(),A.nrm(158,"mat-divider",6),A.j41(159,"div",4)(160,"h4",7),A.EFF(161,"Max Htlc (mSat)"),A.k0s(),A.j41(162,"span",8),A.EFF(163),A.nI1(164,"number"),A.k0s()(),A.nrm(165,"mat-divider",6),A.j41(166,"div",4)(167,"h4",7),A.EFF(168,"Min Htlc (mSat)"),A.k0s(),A.j41(169,"span",8),A.EFF(170),A.nI1(171,"number"),A.k0s()(),A.nrm(172,"mat-divider",6),A.j41(173,"div",4)(174,"h4",7),A.EFF(175,"Message Flags"),A.k0s(),A.j41(176,"span",8),A.EFF(177),A.nI1(178,"number"),A.k0s()(),A.nrm(179,"mat-divider",6),A.j41(180,"div",4)(181,"h4",7),A.EFF(182,"Public"),A.k0s(),A.j41(183,"span",8),A.EFF(184),A.k0s()(),A.nrm(185,"mat-divider",6),A.j41(186,"div",4)(187,"h4",7),A.EFF(188,"Source"),A.k0s(),A.j41(189,"span",8),A.EFF(190),A.k0s()(),A.nrm(191,"mat-divider",6),A.j41(192,"div",4)(193,"h4",7),A.EFF(194,"Destination"),A.k0s(),A.j41(195,"span",8),A.EFF(196),A.k0s()()()()()),2&n){const e=A.XpG();A.R7$(5),A.Y8G("ngIf",!e.node1_match),A.R7$(),A.Y8G("ngIf",e.node1_match),A.R7$(6),A.JRh(null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].short_channel_id),A.R7$(6),A.JRh(null!=e.lookupResult.channels[0]&&e.lookupResult.channels[0].active?"True":"False"),A.R7$(6),A.JRh(A.i5U(25,32,1e3*(null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].last_update),"dd/MMM/y HH:mm")),A.R7$(7),A.JRh(A.i5U(32,35,(null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].amount_msat)/1e3,"1.0-0")),A.R7$(7),A.JRh(A.bMT(39,38,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].base_fee_millisatoshi)),A.R7$(7),A.JRh(A.bMT(46,40,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].fee_per_millionth)),A.R7$(7),A.JRh(A.bMT(53,42,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].channel_flags)),A.R7$(7),A.JRh(A.bMT(60,44,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].delay)),A.R7$(7),A.JRh(A.bMT(67,46,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].htlc_maximum_msat)),A.R7$(7),A.JRh(A.bMT(74,48,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].htlc_minimum_msat)),A.R7$(7),A.JRh(A.bMT(81,50,null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].message_flags)),A.R7$(7),A.JRh(null!=e.lookupResult.channels[0]&&e.lookupResult.channels[0].public?"Yes":"No"),A.R7$(6),A.JRh(null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].source),A.R7$(6),A.JRh(null==e.lookupResult.channels[0]?null:e.lookupResult.channels[0].destination),A.R7$(3),A.Y8G("ngIf",!e.node2_match),A.R7$(),A.Y8G("ngIf",e.node2_match),A.R7$(6),A.JRh(null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].short_channel_id),A.R7$(6),A.JRh(null!=e.lookupResult.channels[1]&&e.lookupResult.channels[1].active?"True":"False"),A.R7$(6),A.JRh(A.i5U(122,52,1e3*(null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].last_update),"dd/MMM/y HH:mm")),A.R7$(7),A.JRh(A.i5U(129,55,(null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].amount_msat)/1e3,"1.0-0")),A.R7$(7),A.JRh(A.bMT(136,58,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].base_fee_millisatoshi)),A.R7$(7),A.JRh(A.bMT(143,60,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].fee_per_millionth)),A.R7$(7),A.JRh(A.bMT(150,62,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].channel_flags)),A.R7$(7),A.JRh(A.bMT(157,64,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].delay)),A.R7$(7),A.JRh(A.bMT(164,66,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].htlc_maximum_msat)),A.R7$(7),A.JRh(A.bMT(171,68,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].htlc_minimum_msat)),A.R7$(7),A.JRh(A.bMT(178,70,null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].message_flags)),A.R7$(7),A.JRh(null!=e.lookupResult.channels[1]&&e.lookupResult.channels[1].public?"Yes":"No"),A.R7$(6),A.JRh(null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].source),A.R7$(6),A.JRh(null==e.lookupResult.channels[1]?null:e.lookupResult.channels[1].destination)}}let Br=(()=>{var n;class l{constructor(i){this.store=i,this.lookupResult={},this.node1_match=!1,this.node2_match=!1,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.lookupResult.channels&&this.lookupResult.channels.length>0&&this.lookupResult.channels[0].source===i.id&&(this.node1_match=!0),this.lookupResult.channels&&this.lookupResult.channels.length>1&&this.lookupResult.channels[1].source===i.id&&(this.node2_match=!0)})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-lookup"]],inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch",1,"mt-1","bordered-box","padding-gap-large"],["fxLayout","column"],["class","page-title font-bold-500",4,"ngIf"],[1,"my-1"],[1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"page-title","font-bold-500"]],template:function(o,r){1&o&&A.DNE(0,Oo,197,72,"div",0),2&o&&A.Y8G("ngIf",r.lookupResult)},dependencies:[de.bT,sn.q,Q.DJ,Q.sA,Q.UI,de.QX,de.vh],styles:[".mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%], .mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{height:38px!important}"]}))}return n(),l})();const Sr=["peersForm"],fr=["stepper"],ra=(n,l)=>({"mr-6":n,"mr-2":l});function Jo(n,l){if(1&n&&A.EFF(0),2&n){const e=A.XpG();A.JRh(e.peerFormLabel)}}function ur(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Address is required."),A.k0s())}function Gn(n,l){if(1&n&&(A.j41(0,"div",42),A.nrm(1,"fa-icon",43),A.j41(2,"span"),A.EFF(3),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(2),A.JRh(e.peerConnectionError)}}function Bi(n,l){if(1&n&&A.EFF(0),2&n){const e=A.XpG();A.JRh(e.channelFormLabel)}}function Nr(n,l){if(1&n&&(A.j41(0,"div",44),A.nrm(1,"fa-icon",43),A.j41(2,"span",13)(3,"div"),A.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),A.k0s(),A.j41(5,"span",45)(6,"span"),A.EFF(7),A.k0s(),A.j41(8,"span"),A.EFF(9),A.k0s(),A.j41(10,"span"),A.EFF(11),A.k0s(),A.j41(12,"span"),A.EFF(13),A.k0s(),A.j41(14,"span"),A.EFF(15),A.k0s()()()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faInfoCircle),A.R7$(6),A.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),A.R7$(2),A.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),A.R7$(2),A.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),A.R7$(2),A.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),A.R7$(2),A.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function Tr(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Amount is required."),A.k0s())}function Pr(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Amount must be a positive number."),A.k0s())}function _o(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function _s(n,l){if(1&n&&(A.j41(0,"mat-option",46),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e.feeRateId),A.R7$(),A.SpI(" ",e.feeRateType," ")}}function aa(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fee Rate is required."),A.k0s())}function Vo(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function Wo(n,l){if(1&n&&(A.j41(0,"mat-form-field",47)(1,"mat-label"),A.EFF(2,"Fee Rate (Sats/vByte)"),A.k0s(),A.nrm(3,"input",48),A.j41(4,"mat-hint"),A.EFF(5),A.k0s(),A.DNE(6,aa,2,0,"mat-error",15)(7,Vo,2,1,"mat-error",15),A.k0s()),2&n){const e=A.XpG();A.R7$(3),A.Y8G("step",1)("min",e.recommendedFee.minimumFee||0),A.R7$(2),A.SpI("Mempool Min: ",e.recommendedFee.minimumFee," (Sats/vByte)"),A.R7$(),A.Y8G("ngIf","customperkb"===e.channelFormGroup.controls.selFeeRate.value&&!e.channelFormGroup.controls.flgMinConf.value&&!e.channelFormGroup.controls.customFeeRate.value),A.R7$(),A.Y8G("ngIf",e.channelFormGroup.controls.customFeeRate.value&&(null==e.channelFormGroup.controls.customFeeRate.errors?null:e.channelFormGroup.controls.customFeeRate.errors.minimum))}}function Ko(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Min Confirmation Blocks is required."),A.k0s())}function Xo(n,l){if(1&n&&(A.j41(0,"div",42),A.nrm(1,"fa-icon",43),A.j41(2,"span"),A.EFF(3),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(2),A.JRh(e.channelConnectionError)}}let Ur=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln,Qt){this.dialogRef=i,this.data=o,this.store=r,this.formBuilder=iA,this.actions=ne,this.logger=re,this.commonService=ln,this.dataService=Qt,this.faExclamationTriangle=v.zpE,this.faInfoCircle=v.iW_,this.peerAddress="",this.totalBalance=0,this.feeRateTypes=B.G,this.flgChannelOpened=!1,this.channelOpenStatus=null,this.newlyAddedPeer=null,this.flgEditable=!0,this.peerConnectionError="",this.channelConnectionError="",this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)",this.screenSize="",this.screenSizeEnum=B.f7,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.id&&this.data.message.peer.netaddr?this.data.message.peer.id+"@"+this.data.message.peer.netaddr:this.data.message.peer&&this.data.message.peer.id&&!this.data.message.peer.netaddr?this.data.message.peer.id:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[hA.k0.required]],peerAddress:[this.peerAddress,[hA.k0.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[hA.k0.required,hA.k0.min(1),hA.k0.max(this.totalBalance)]],isPrivate:[!!this.selNode?.settings.unannouncedChannels],selFeeRate:[null],customFeeRate:[null],flgMinConf:[!1],minConfValue:[{value:null,disabled:!0}],hiddenAmount:["",[hA.k0.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.channelFormGroup.controls.isPrivate.setValue(!!i?.settings.unannouncedChannels)}),this.channelFormGroup.controls.flgMinConf.valueChanges.pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{i?(this.channelFormGroup.controls.selFeeRate.setValue(null),this.channelFormGroup.controls.selFeeRate.disable(),this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.minConfValue.reset(),this.channelFormGroup.controls.minConfValue.enable(),this.channelFormGroup.controls.minConfValue.setValidators([hA.k0.required])):(this.channelFormGroup.controls.selFeeRate.enable(),this.channelFormGroup.controls.minConfValue.setValue(null),this.channelFormGroup.controls.minConfValue.disable(),this.channelFormGroup.controls.minConfValue.setValidators(null))}),this.channelFormGroup.controls.selFeeRate.valueChanges.pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.channelFormGroup.controls.customFeeRate.setValue(null),this.channelFormGroup.controls.customFeeRate.reset(),this.channelFormGroup.controls.customFeeRate.setValidators("customperkb"!==i||this.channelFormGroup.controls.flgMinConf.value?null:[hA.k0.required])}),this.actions.pipe((0,I.Q)(this.unSubs[3]),(0,nA.p)(i=>i.type===B.TC.NEWLY_ADDED_PEER_CLN||i.type===B.TC.FETCH_CHANNELS_CLN||i.type===B.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(i=>{i.type===B.TC.NEWLY_ADDED_PEER_CLN&&(this.logger.info(i.payload),this.flgEditable=!1,this.newlyAddedPeer=i.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),i.type===B.TC.FETCH_CHANNELS_CLN&&this.dialogRef.close(),i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&i.payload.status===B.wn.ERROR&&("SaveNewPeer"===i.payload.action?this.peerConnectionError=i.payload.message:"SaveNewChannel"===i.payload.action&&(this.channelConnectionError=i.payload.message))}),this.dataService.getRecommendedFeeRates().pipe((0,I.Q)(this.unSubs[4])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,VA.sq)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){return"customperkb"===this.channelFormGroup.controls.selFeeRate.value&&this.recommendedFee.minimumFee>this.channelFormGroup.controls.customFeeRate.value?(this.channelFormGroup.controls.customFeeRate.setErrors({minimum:!0}),!0):!!(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0||this.channelFormGroup.controls.flgMinConf.value&&!this.channelFormGroup.controls.minConfValue.value)||(this.channelConnectionError="",void this.store.dispatch((0,VA.vL)({payload:{peerId:this.newlyAddedPeer?.id,amount:this.channelFormGroup.controls.fundingAmount.value,announce:!this.channelFormGroup.controls.isPrivate.value,feeRate:"customperkb"===this.channelFormGroup.controls.selFeeRate.value&&!this.channelFormGroup.controls.flgMinConf.value&&this.channelFormGroup.controls.customFeeRate.value?1e3*this.channelFormGroup.controls.customFeeRate.value+"perkb":this.channelFormGroup.controls.selFeeRate.value,minconf:this.channelFormGroup.controls.flgMinConf.value?this.channelFormGroup.controls.minConfValue.value:null}})))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(i){switch(i.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer.alias:this.newlyAddedPeer?.id):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+(this.newlyAddedPeer?.alias?this.newlyAddedPeer?.alias:this.newlyAddedPeer?.id):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}i.selectedIndex{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(hA.ze),A.rXU(kA.En),A.rXU(aA.gP),A.rXU(L.h),A.rXU(Dt.u))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-connect-peer"]],viewQuery:function(o,r){if(1&o&&(A.GBs(Sr,5),A.GBs(fr,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first),A.mGM(iA=A.lsd())&&(r.stepper=iA.first)}},standalone:!1,decls:67,vars:33,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","formControlName","peerAddress","tabindex","1","required",""],[4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"mb-1",3,"ngSubmit","formGroup"],["matStepLabel","","disabled","true"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxLayout","column","fxFlex","53","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","45","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","53","fxLayoutAlign","space-between end"],["fxLayout","column","fxLayoutAlign","start center",3,"ngClass"],["tabindex","4","formControlName","selFeeRate"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","45","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","7","tabindex","5","color","primary","formControlName","flgMinConf","fxLayoutAlign","stretch start",3,"ngClass"],["fxLayout","column","fxFlex","93"],["matInput","","formControlName","minConfValue","type","number","name","blocks","tabindex","8",3,"step","min","required"],["mat-button","","color","primary","tabindex","8","type","submit"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],[3,"value"],["fxLayout","column","fxFlex","70","fxLayoutAlign","end center"],["matInput","","formControlName","customFeeRate","type","number","name","custFeeRate","tabindex","4",3,"step","min"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),A.EFF(5,"Connect to a new peer"),A.k0s()(),A.j41(6,"button",6),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onClose())}),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),A.bIt("selectionChange",function(re){return w.eBV(iA),w.Njj(r.stepSelectionChanged(re))}),A.j41(12,"mat-step",10)(13,"form",11),A.DNE(14,Jo,1,1,"ng-template",12),A.j41(15,"mat-form-field",13)(16,"mat-label"),A.EFF(17,"Lightning Address (pubkey OR pubkey@ip:port)"),A.k0s(),A.nrm(18,"input",14),A.DNE(19,ur,2,0,"mat-error",15),A.k0s(),A.DNE(20,Gn,4,2,"div",16),A.j41(21,"div",17)(22,"button",18),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onConnectPeer())}),A.EFF(23),A.k0s()()()(),A.j41(24,"mat-step",10)(25,"form",19),A.bIt("ngSubmit",function(){return w.eBV(iA),w.Njj(r.onOpenChannel())}),A.DNE(26,Bi,1,1,"ng-template",20),A.j41(27,"div",21),A.DNE(28,Nr,16,6,"div",22),A.j41(29,"div",23)(30,"mat-form-field",24)(31,"mat-label"),A.EFF(32,"Amount"),A.k0s(),A.nrm(33,"input",25),A.j41(34,"mat-hint"),A.EFF(35),A.nI1(36,"number"),A.k0s(),A.j41(37,"span",26),A.EFF(38," Sats "),A.k0s(),A.DNE(39,Tr,2,0,"mat-error",15)(40,Pr,2,0,"mat-error",15)(41,_o,2,1,"mat-error",15),A.k0s(),A.j41(42,"div",27)(43,"mat-slide-toggle",28),A.EFF(44,"Private Channel"),A.k0s()()(),A.j41(45,"div",29)(46,"div",30)(47,"mat-form-field",31)(48,"mat-label"),A.EFF(49,"Fee Rate"),A.k0s(),A.j41(50,"mat-select",32),A.DNE(51,_s,2,2,"mat-option",33),A.k0s()(),A.DNE(52,Wo,8,5,"mat-form-field",34),A.k0s(),A.j41(53,"div",35),A.nrm(54,"mat-checkbox",36),A.j41(55,"mat-form-field",37)(56,"mat-label"),A.EFF(57,"Min Confirmation Blocks"),A.k0s(),A.nrm(58,"input",38),A.DNE(59,Ko,2,0,"mat-error",15),A.k0s()()()(),A.DNE(60,Xo,4,2,"div",16),A.j41(61,"div",17)(62,"button",39),A.EFF(63),A.k0s()()()()(),A.j41(64,"div",40)(65,"button",41),A.EFF(66),A.k0s()()()()()()}2&o&&(A.R7$(10),A.Y8G("linear",!0),A.R7$(2),A.Y8G("stepControl",r.peerFormGroup)("editable",r.flgEditable),A.R7$(),A.Y8G("formGroup",r.peerFormGroup),A.R7$(6),A.Y8G("ngIf",null==r.peerFormGroup.controls.peerAddress.errors?null:r.peerFormGroup.controls.peerAddress.errors.required),A.R7$(),A.Y8G("ngIf",""!==r.peerConnectionError),A.R7$(3),A.JRh(""!==r.peerConnectionError?"Retry":"Add Peer"),A.R7$(),A.Y8G("stepControl",r.channelFormGroup)("editable",r.flgEditable),A.R7$(),A.Y8G("formGroup",r.channelFormGroup),A.R7$(3),A.Y8G("ngIf",r.recommendedFee.minimumFee),A.R7$(5),A.Y8G("step",1e3),A.R7$(2),A.SpI("Remaining: ",A.bMT(36,28,r.totalBalance-(r.channelFormGroup.controls.fundingAmount.value?r.channelFormGroup.controls.fundingAmount.value:0))),A.R7$(4),A.Y8G("ngIf",null==r.channelFormGroup.controls.fundingAmount.errors?null:r.channelFormGroup.controls.fundingAmount.errors.required),A.R7$(),A.Y8G("ngIf",null==r.channelFormGroup.controls.fundingAmount.errors?null:r.channelFormGroup.controls.fundingAmount.errors.min),A.R7$(),A.Y8G("ngIf",null==r.channelFormGroup.controls.fundingAmount.errors?null:r.channelFormGroup.controls.fundingAmount.errors.max),A.R7$(6),A.Y8G("ngClass","customperkb"!==r.channelFormGroup.controls.selFeeRate.value||r.channelFormGroup.controls.flgMinConf.value?"flex-100":"flex-25"),A.R7$(4),A.Y8G("ngForOf",r.feeRateTypes),A.R7$(),A.Y8G("ngIf","customperkb"===r.channelFormGroup.controls.selFeeRate.value&&!r.channelFormGroup.controls.flgMinConf.value),A.R7$(2),A.Y8G("ngClass",A.l_i(30,ra,r.screenSize===r.screenSizeEnum.XS||r.screenSize===r.screenSizeEnum.SM,r.screenSize===r.screenSizeEnum.MD||r.screenSize===r.screenSizeEnum.LG||r.screenSize===r.screenSizeEnum.XL)),A.R7$(4),A.Y8G("step",1)("min",0)("required",r.channelFormGroup.controls.flgMinConf.value),A.R7$(),A.Y8G("ngIf",r.channelFormGroup.controls.flgMinConf.value&&!r.channelFormGroup.controls.minConfValue.value),A.R7$(),A.Y8G("ngIf",""!==r.channelConnectionError),A.R7$(3),A.JRh(""!==r.channelConnectionError?"Retry":"Open Channel"),A.R7$(2),A.Y8G("mat-dialog-close",!1),A.R7$(),A.JRh(null!=r.newlyAddedPeer&&r.newlyAddedPeer.id?"Do It Later":"Close"))},dependencies:[de.YU,de.Sq,de.bT,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.j4,hA.JD,P.aY,wA.tx,fA.$z,QA.m2,QA.MM,Ze.So,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,yA.yw,Q.DJ,Q.sA,Q.UI,dA.PW,OA.VO,xA.wT,Ee.sG,ji.V5,ji.Ti,ji.M6,cA.N,J.V,de.QX],encapsulation:2}))}return n(),l})();var Ji=We(29157);const Nt=n=>({"background-color":n});function ft(n,l){if(1&n&&(A.j41(0,"span",7),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(e)}}function Zo(n,l){1&n&&(A.j41(0,"th",27),A.EFF(1,"Type"),A.k0s())}function oa(n,l){if(1&n&&(A.j41(0,"td",28),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.type)}}function Vs(n,l){1&n&&(A.j41(0,"th",27),A.EFF(1,"Address"),A.k0s())}function la(n,l){if(1&n&&(A.j41(0,"td",28),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.address)}}function qo(n,l){1&n&&(A.j41(0,"th",27),A.EFF(1,"Port"),A.k0s())}function $o(n,l){if(1&n&&(A.j41(0,"td",28),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.port)}}function ca(n,l){1&n&&(A.j41(0,"th",29)(1,"div",30),A.EFF(2,"Actions"),A.k0s()())}function Al(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",31)(1,"div",32)(2,"mat-select",33),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",34),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onConnectNode(o))}),A.EFF(5,"Connect"),A.k0s(),A.j41(6,"mat-option",35),A.bIt("copied",function(o){w.eBV(e);const r=A.XpG(2);return w.Njj(r.onCopyNodeURI(o))}),A.EFF(7,"Copy URI"),A.k0s()()()()}if(2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(6),A.Y8G("payload",(null==i.lookupResult?null:i.lookupResult.nodeid)+"@"+e.address+":"+e.port)}}function hn(n,l){1&n&&A.nrm(0,"tr",36)}function Lr(n,l){1&n&&A.nrm(0,"tr",37)}function ga(n,l){if(1&n&&(A.j41(0,"div",2),A.nrm(1,"mat-divider",3),A.j41(2,"div",4)(3,"div",5)(4,"h4",6),A.EFF(5,"Alias"),A.k0s(),A.j41(6,"span",7),A.EFF(7),A.j41(8,"span",8),A.EFF(9),A.k0s()()(),A.j41(10,"div",9)(11,"h4",6),A.EFF(12,"Pub Key"),A.k0s(),A.j41(13,"span",10),A.EFF(14),A.k0s()()(),A.nrm(15,"mat-divider",11),A.j41(16,"div",4)(17,"div",5)(18,"h4",6),A.EFF(19,"Last Update"),A.k0s(),A.j41(20,"span",7),A.EFF(21),A.nI1(22,"date"),A.k0s()(),A.j41(23,"div",9)(24,"h4",6),A.EFF(25,"Features"),A.k0s(),A.DNE(26,ft,2,1,"span",12),A.k0s()(),A.nrm(27,"mat-divider",11),A.j41(28,"div",13)(29,"h4",14),A.EFF(30,"Addresses"),A.k0s(),A.j41(31,"div",15)(32,"table",16,0),A.qex(34,17),A.DNE(35,Zo,2,0,"th",18)(36,oa,2,1,"td",19),A.bVm(),A.qex(37,20),A.DNE(38,Vs,2,0,"th",18)(39,la,2,1,"td",19),A.bVm(),A.qex(40,21),A.DNE(41,qo,2,0,"th",18)(42,$o,2,1,"td",19),A.bVm(),A.qex(43,22),A.DNE(44,ca,3,0,"th",23)(45,Al,8,1,"td",24),A.bVm(),A.DNE(46,hn,1,0,"tr",25)(47,Lr,1,0,"tr",26),A.k0s()()()()),2&n){const e=A.XpG();A.R7$(7),A.JRh(null==e.lookupResult?null:e.lookupResult.alias),A.R7$(),A.Y8G("ngStyle",A.eq3(12,Nt,"#"+(null==e.lookupResult?null:e.lookupResult.color))),A.R7$(),A.JRh(null!=e.lookupResult&&e.lookupResult.color?"#"+(null==e.lookupResult?null:e.lookupResult.color):""),A.R7$(5),A.JRh(null==e.lookupResult?null:e.lookupResult.nodeid),A.R7$(7),A.JRh(A.i5U(22,9,1e3*(null==e.lookupResult?null:e.lookupResult.last_timestamp),"dd/MMM/y HH:mm")),A.R7$(5),A.Y8G("ngForOf",e.featureDescriptions),A.R7$(6),A.Y8G("dataSource",e.addresses),A.R7$(14),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)}}let hr=(()=>{var n;class l{constructor(i,o,r){this.logger=i,this.snackBar=o,this.store=r,this.featureDescriptions=[],this.addresses=new z.I6([]),this.displayedColumns=["type","address","port","actions"],this.information={},this.availableBalance=0,this.unSubs=[new g.B]}ngOnInit(){if(this.addresses=new z.I6(this.lookupResult&&this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,this.lookupResult.features&&""!==this.lookupResult.features.trim()){this.lookupResult.features=this.lookupResult.features.substring(this.lookupResult.features.length-40);const i=parseInt(this.lookupResult.features,16);B.TH.forEach(o=>{i&1<{this.information=i.information,this.availableBalance=i.balance.totalBalance||0})}onConnectNode(i){this.store.dispatch((0,C.xO)({payload:{data:{message:{peer:{id:this.lookupResult.nodeid+"@"+i.address+":"+i.port},information:this.information,balance:this.availableBalance},component:Ur}}}))}onCopyNodeURI(i){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(js.UG),A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-node-lookup"]],viewQuery:function(o,r){if(1&o&&A.GBs(pA.B4,5),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first)}},inputs:{lookupResult:"lookupResult"},standalone:!1,decls:1,vars:1,consts:[["table",""],["fxLayout","column","class","mt-1",4,"ngIf"],["fxLayout","column",1,"mt-1"],[1,"mb-1"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],[1,"my-1"],["class","foreground-secondary-text",4,"ngFor","ngForOf"],["fxLayout","column"],["fxFlex","100","fxLayoutAlign","start",1,"font-bold-500","mb-1"],["fxLayout","row","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["mat-cell","","fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["rtlClipboard","",3,"copied","payload"],["mat-header-row",""],["mat-row",""]],template:function(o,r){1&o&&A.DNE(0,ga,48,14,"div",1),2&o&&A.Y8G("ngIf",r.lookupResult)},dependencies:[de.Sq,de.bT,de.B3,sn.q,Q.DJ,Q.sA,Q.UI,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.KS,z.$R,z.YZ,z.NB,M.Ld,Ji.U,de.vh],encapsulation:2}))}return n(),l})();const el=["form"],_i=n=>({"mt-1":!0,"mt-2":n});function Ai(n,l){if(1&n&&(A.j41(0,"mat-radio-button",17),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e.id)("checked",i.selectedFieldId===e.id),A.R7$(),A.SpI(" ",e.name," ")}}function fi(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.SpI("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function ui(n,l){if(1&n&&(A.j41(0,"div"),A.nrm(1,"rtl-cln-node-lookup",26),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.Y8G("lookupResult",e.nodeLookupValue)}}function tl(n,l){if(1&n&&(A.j41(0,"span",24),A.DNE(1,ui,2,1,"div",25),A.k0s()),2&n){const e=A.XpG(2),i=A.sdS(21);A.R7$(),A.Y8G("ngIf",""!==e.nodeLookupValue.nodeid)("ngIfElse",i)}}function nl(n,l){if(1&n&&(A.j41(0,"div"),A.nrm(1,"rtl-cln-channel-lookup",26),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.Y8G("lookupResult",e.channelLookupValue)}}function il(n,l){if(1&n&&(A.j41(0,"span",24),A.DNE(1,nl,2,1,"div",25),A.k0s()),2&n){const e=A.XpG(2),i=A.sdS(21);A.R7$(),A.Y8G("ngIf",e.channelLookupValue.channels&&e.channelLookupValue.channels.length>0)("ngIfElse",i)}}function Er(n,l){1&n&&(A.j41(0,"span"),A.EFF(1,' fxFlex="100"'),A.j41(2,"h3"),A.EFF(3,"Error! Unable to find details!"),A.k0s()())}function sl(n,l){if(1&n&&(A.j41(0,"div",18)(1,"div",19)(2,"span",20),A.EFF(3),A.k0s()(),A.j41(4,"div",21),A.DNE(5,tl,2,2,"span",22)(6,il,2,2,"span",22)(7,Er,4,0,"span",23),A.k0s()()),2&n){const e=A.XpG();A.R7$(3),A.SpI("",e.lookupFields[e.selectedFieldId].name," Details"),A.R7$(),A.Y8G("ngSwitch",e.selectedFieldId),A.R7$(),A.Y8G("ngSwitchCase",0),A.R7$(),A.Y8G("ngSwitchCase",1)}}function Ba(n,l){1&n&&(A.j41(0,"h3"),A.EFF(1,"Error! Unable to find details!"),A.k0s())}let rl=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.commonService=o,this.store=r,this.actions=iA,this.lookupKey="",this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Pubkey"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=v.MjD,this.screenSize="",this.screenSizeEnum=B.f7,this.unSubs=[new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.lookupType||window.history.state.lookupValue)&&(this.selectedFieldId=+window.history.state.lookupType||0,this.lookupKey=window.history.state.lookupValue||""),this.actions.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(i=>i.type===B.TC.SET_LOOKUP_CLN||i.type===B.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(i=>{if(i.type===B.TC.SET_LOOKUP_CLN){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue="object"!=typeof i.payload[0]?{nodeid:""}:JSON.parse(JSON.stringify(i.payload[0]));break;case 1:this.channelLookupValue=i.payload.channels&&"object"!=typeof i.payload.channels?{channels:[]}:JSON.parse(JSON.stringify(i.payload))}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&i.payload.status===B.wn.ERROR&&"Lookup"===i.payload.action&&(this.flgLoading[0]="error")})}onLookup(){if(!this.lookupKey)return!0;switch(this.flgSetLookupValue=!1,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.selectedFieldId){case 0:this.store.dispatch((0,VA.zU)({payload:this.lookupKey.trim()}));break;case 1:this.store.dispatch((0,VA.ij)({payload:{uiMessage:B.MZ.SEARCHING_CHANNEL,shortChannelID:this.lookupKey.trim(),showError:!1}}))}}onSelectChange(i){this.resetData(),this.selectedFieldId=i.value}resetData(){this.flgSetLookupValue=!1,this.selectedFieldId=0,this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={nodeid:""},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(kA.En))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-lookups"]],viewQuery:function(o,r){if(1&o&&A.GBs(el,7),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first)}},standalone:!1,decls:22,vars:9,consts:[["form","ngForm"],["key",""],["errorBlock",""],["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start space-between",1,"w-100"],["fxFlex","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField",3,"ngModelChange","change","ngModel"],["class","mr-4",3,"value","checked",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","button",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],[1,"mr-4",3,"value","checked"],["fxFlex","100","fxLayout","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"w-100","mt-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],[1,"page-title","font-bold-500"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",3,"ngSwitch"],["fxFlex","100",4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxFlex","100"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",3)(1,"div",4)(2,"mat-card-content",5)(3,"form",6,0)(5,"div",7)(6,"mat-radio-group",8),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selectedFieldId,re)||(r.selectedFieldId=re),w.Njj(re)}),A.bIt("change",function(re){return w.eBV(iA),w.Njj(r.onSelectChange(re))}),A.DNE(7,Ai,2,3,"mat-radio-button",9),A.k0s()(),A.j41(8,"mat-form-field",10)(9,"mat-label"),A.EFF(10),A.k0s(),A.j41(11,"input",11,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.lookupKey,re)||(r.lookupKey=re),w.Njj(re)}),A.bIt("change",function(){return w.eBV(iA),w.Njj(r.clearLookupValue())}),A.k0s(),A.DNE(13,fi,2,1,"mat-error",12),A.k0s(),A.j41(14,"div",13)(15,"button",14),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(16,"Clear"),A.k0s(),A.j41(17,"button",15),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onLookup())}),A.EFF(18,"Lookup"),A.k0s()()(),A.DNE(19,sl,8,4,"div",16),A.k0s()()(),A.DNE(20,Ba,2,0,"ng-template",null,2,A.C5r)}2&o&&(A.R7$(6),A.R50("ngModel",r.selectedFieldId),A.R7$(),A.Y8G("ngForOf",r.lookupFields),A.R7$(),A.Y8G("ngClass",A.eq3(7,_i,r.screenSize===r.screenSizeEnum.XS||r.screenSize===r.screenSizeEnum.SM)),A.R7$(2),A.JRh((null==r.lookupFields[r.selectedFieldId]?null:r.lookupFields[r.selectedFieldId].placeholder)||"Lookup Key"),A.R7$(),A.R50("ngModel",r.lookupKey),A.R7$(2),A.Y8G("ngIf",!r.lookupKey),A.R7$(6),A.Y8G("ngIf",r.flgSetLookupValue))},dependencies:[de.YU,de.Sq,de.bT,de.ux,de.e1,de.fG,hA.qT,hA.me,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,fA.$z,QA.m2,UA.fg,yA.rl,yA.nJ,yA.TL,qe.VT,qe._g,Q.DJ,Q.sA,Q.UI,dA.PW,Br,hr],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}))}return n(),l})();var Gr=function(n){return n.KB="KB",n.KW="KW",n}(Gr||{});function Rt(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",5),A.EFF(2," 2 Blocks "),A.j41(3,"mat-icon",16),A.EFF(4,"info_outline"),A.k0s()(),A.j41(5,"div",7),A.EFF(6),A.nI1(7,"number"),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(6),A.JRh(A.bMT(7,1,null==e.perkbw?null:e.perkbw.estimates[0].smoothed_feerate))}}function fa(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",5),A.EFF(2," 6 Blocks "),A.j41(3,"mat-icon",17),A.EFF(4,"info_outline"),A.k0s()(),A.j41(5,"div",7),A.EFF(6),A.nI1(7,"number"),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(6),A.JRh(A.bMT(7,1,null==e.perkbw?null:e.perkbw.estimates[1].smoothed_feerate))}}function al(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",5),A.EFF(2," 12 Blocks "),A.j41(3,"mat-icon",18),A.EFF(4,"info_outline"),A.k0s()(),A.j41(5,"div",7),A.EFF(6),A.nI1(7,"number"),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(6),A.JRh(A.bMT(7,1,null==e.perkbw?null:e.perkbw.estimates[2].smoothed_feerate))}}function ol(n,l){if(1&n&&(A.j41(0,"div")(1,"h4",5),A.EFF(2," 100 Blocks "),A.j41(3,"mat-icon",19),A.EFF(4,"info_outline"),A.k0s()(),A.j41(5,"div",7),A.EFF(6),A.nI1(7,"number"),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(6),A.JRh(A.bMT(7,1,null==e.perkbw?null:e.perkbw.estimates[3].smoothed_feerate))}}function ua(n,l){if(1&n&&(A.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div")(4,"h4",5),A.EFF(5," Opening "),A.j41(6,"mat-icon",6),A.EFF(7,"info_outline"),A.k0s()(),A.j41(8,"div",7),A.EFF(9),A.nI1(10,"number"),A.k0s()(),A.j41(11,"div")(12,"h4",5),A.EFF(13," Mutual Close "),A.j41(14,"mat-icon",8),A.EFF(15,"info_outline"),A.k0s()(),A.j41(16,"div",7),A.EFF(17),A.nI1(18,"number"),A.k0s()(),A.j41(19,"div")(20,"h4",5),A.EFF(21," Unilateral Close "),A.j41(22,"mat-icon",9),A.EFF(23,"info_outline"),A.k0s()(),A.j41(24,"div",7),A.EFF(25),A.nI1(26,"number"),A.k0s()(),A.j41(27,"div")(28,"h4",5),A.EFF(29," Delayed To Us "),A.j41(30,"mat-icon",10),A.EFF(31,"info_outline"),A.k0s()(),A.j41(32,"div",7),A.EFF(33),A.nI1(34,"number"),A.k0s()(),A.j41(35,"div")(36,"h4",5),A.EFF(37," Minimum Acceptable "),A.j41(38,"mat-icon",11),A.EFF(39,"info_outline"),A.k0s()(),A.j41(40,"div",7),A.EFF(41),A.nI1(42,"number"),A.k0s()(),A.j41(43,"div")(44,"h4",5),A.EFF(45," Maximum Acceptable "),A.j41(46,"mat-icon",12),A.EFF(47,"info_outline"),A.k0s()(),A.j41(48,"div",7),A.EFF(49),A.nI1(50,"number"),A.k0s()()(),A.j41(51,"div",4)(52,"div")(53,"h4",5),A.EFF(54," HTLC Resolution "),A.j41(55,"mat-icon",13),A.EFF(56,"info_outline"),A.k0s()(),A.j41(57,"div",7),A.EFF(58),A.nI1(59,"number"),A.k0s()(),A.j41(60,"div")(61,"h4",5),A.EFF(62," Penalty "),A.j41(63,"mat-icon",14),A.EFF(64,"info_outline"),A.k0s()(),A.j41(65,"div",7),A.EFF(66),A.nI1(67,"number"),A.k0s()(),A.DNE(68,Rt,8,3,"div",15)(69,fa,8,3,"div",15)(70,al,8,3,"div",15)(71,ol,8,3,"div",15),A.k0s()()()),2&n){const e=A.XpG();A.R7$(9),A.JRh(A.bMT(10,12,null==e.perkbw?null:e.perkbw.opening)),A.R7$(8),A.JRh(A.bMT(18,14,null==e.perkbw?null:e.perkbw.mutual_close)),A.R7$(8),A.JRh(A.bMT(26,16,null==e.perkbw?null:e.perkbw.unilateral_close)),A.R7$(8),A.JRh(A.bMT(34,18,null==e.perkbw?null:e.perkbw.delayed_to_us)),A.R7$(8),A.JRh(A.bMT(42,20,null==e.perkbw?null:e.perkbw.min_acceptable)),A.R7$(8),A.JRh(A.bMT(50,22,null==e.perkbw?null:e.perkbw.max_acceptable)),A.R7$(9),A.JRh(A.bMT(59,24,null==e.perkbw?null:e.perkbw.htlc_resolution)),A.R7$(8),A.JRh(A.bMT(67,26,null==e.perkbw?null:e.perkbw.penalty)),A.R7$(2),A.Y8G("ngIf",(null==e.perkbw?null:e.perkbw.estimates)&&(null==e.perkbw?null:e.perkbw.estimates.length)&&(null==e.perkbw?null:e.perkbw.estimates.length)>3),A.R7$(),A.Y8G("ngIf",(null==e.perkbw?null:e.perkbw.estimates)&&(null==e.perkbw?null:e.perkbw.estimates.length)&&(null==e.perkbw?null:e.perkbw.estimates.length)>3),A.R7$(),A.Y8G("ngIf",(null==e.perkbw?null:e.perkbw.estimates)&&(null==e.perkbw?null:e.perkbw.estimates.length)&&(null==e.perkbw?null:e.perkbw.estimates.length)>3),A.R7$(),A.Y8G("ngIf",(null==e.perkbw?null:e.perkbw.estimates)&&(null==e.perkbw?null:e.perkbw.estimates.length)&&(null==e.perkbw?null:e.perkbw.estimates.length)>3)}}function ll(n,l){if(1&n&&(A.j41(0,"div",20)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let cl=(()=>{var n;class l{constructor(){this.perkbw={},this.displayedColumns=["blockcount","feerate"]}ngAfterContentChecked(){this.feeRateStyle===Gr.KB?this.perkbw=this.feeRates.perkb||{}:this.feeRateStyle===Gr.KW&&(this.perkbw=this.feeRates.perkw||{})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-fee-rates"]],inputs:{feeRateStyle:"feeRateStyle",feeRates:"feeRates",errorMessage:"errorMessage"},standalone:!1,decls:3,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","stretch stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch",1,"mt-2"],["fxLayoutAlign","start start",1,"dashboard-info-title"],["matTooltip","Default feerate for fundchannel and withdraw","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Feerate to aim for in cooperative shutdown. Note that since mutual close is a negotiation, the actual feerate used in mutual close will be somewhere between this and the corresponding mutual close feerate of the peer","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for commitment transaction in a live channel which we originally funded","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close funds to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The smallest feerate that you can use, usually the minimum relayed feerate of the backend","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","The largest feerate we will accept from remote negotiations. If a peer attempts to set the feerate higher than this we will unilaterally close the channel (or simply forget it if it's not open yet)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate for returning unilateral close HTLC outputs to our wallet","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Feerate to start at when penalizing a cheat attempt","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[4,"ngIf"],["matTooltip","Fee rate estimate for 2 blocks","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Fee rate estimate for 6 blocks","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Fee rate estimate for 12 blocks","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Fee rate estimate for 100 blocks","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&A.DNE(0,ua,72,28,"div",1)(1,ll,3,1,"ng-template",null,0,A.C5r),2&o){const iA=A.sdS(2);A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.bT,oA.An,Q.DJ,Q.sA,Q.UI,HA.oV,de.QX],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}))}return n(),l})();function gl(n,l){if(1&n&&(A.j41(0,"div",3)(1,"div",4)(2,"div")(3,"h4",5),A.EFF(4," Opening Channel "),A.j41(5,"mat-icon",6),A.EFF(6,"info_outline"),A.k0s()(),A.j41(7,"div",7),A.EFF(8),A.nI1(9,"number"),A.k0s()(),A.j41(10,"div")(11,"h4",5),A.EFF(12," Mutual Close "),A.j41(13,"mat-icon",8),A.EFF(14,"info_outline"),A.k0s()(),A.j41(15,"div",7),A.EFF(16),A.nI1(17,"number"),A.k0s()(),A.j41(18,"div")(19,"h4",5),A.EFF(20," Unilateral Close "),A.j41(21,"mat-icon",9),A.EFF(22,"info_outline"),A.k0s()(),A.j41(23,"div",7),A.EFF(24),A.nI1(25,"number"),A.k0s()(),A.j41(26,"div",10),A.nrm(27,"h4",5)(28,"div",7),A.k0s()(),A.j41(29,"div",4)(30,"div")(31,"h4",5),A.EFF(32," HTLC Timeout "),A.j41(33,"mat-icon",11),A.EFF(34,"info_outline"),A.k0s()(),A.j41(35,"div",7),A.EFF(36),A.nI1(37,"number"),A.k0s()(),A.j41(38,"div")(39,"h4",5),A.EFF(40," HTLC Success "),A.j41(41,"mat-icon",12),A.EFF(42,"info_outline"),A.k0s()(),A.j41(43,"div",7),A.EFF(44),A.nI1(45,"number"),A.k0s()(),A.j41(46,"div",10),A.nrm(47,"h4",5)(48,"div",7),A.k0s(),A.j41(49,"div",10),A.nrm(50,"h4",5)(51,"div",7),A.k0s()()()),2&n){const e=A.XpG();A.R7$(8),A.JRh(A.bMT(9,5,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.opening_channel_satoshis)),A.R7$(8),A.JRh(A.bMT(17,7,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.mutual_close_satoshis)),A.R7$(8),A.JRh(A.bMT(25,9,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.unilateral_close_satoshis)),A.R7$(12),A.JRh(A.bMT(37,11,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.htlc_timeout_satoshis)),A.R7$(8),A.JRh(A.bMT(45,13,null==e.feeRates||null==e.feeRates.onchain_fee_estimates?null:e.feeRates.onchain_fee_estimates.htlc_success_satoshis))}}function ha(n,l){if(1&n&&(A.j41(0,"div",13)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG();A.R7$(2),A.JRh(e.errorMessage)}}let wr=(()=>{var n;class l{constructor(){}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-onchain-fee-estimates"]],inputs:{feeRates:"feeRates",errorMessage:"errorMessage"},standalone:!1,decls:4,vars:2,consts:[["errorBlock",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","62","fxLayoutAlign","stretch stretch",4,"ngIf","ngIfElse"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","62","fxLayoutAlign","stretch stretch"],["fxLayout","column","fxFlex","50","fxLayoutAlign","space-between stretch",1,"mt-2"],["fxLayoutAlign","start start",1,"dashboard-info-title"],["matTooltip","Estimated cost of typical channel open","matTooltipPosition","below",1,"info-icon","info-icon-primary"],[1,"overflow-wrap","dashboard-info-value"],["matTooltip","Estimated cost of typical channel close","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical unilateral close (without HTLCs)","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxFlex","12"],["matTooltip","Estimated cost of typical HTLC timeout transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["matTooltip","Estimated cost of typical HTLC fulfillment transaction","matTooltipPosition","below",1,"info-icon","info-icon-primary"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1),A.DNE(1,gl,52,15,"div",2)(2,ha,3,1,"ng-template",null,0,A.C5r),A.k0s()),2&o){const iA=A.sdS(3);A.R7$(),A.Y8G("ngIf",""===(null==r.errorMessage?null:r.errorMessage.trim()))("ngIfElse",iA)}},dependencies:[de.bT,oA.An,Q.DJ,Q.sA,Q.UI,HA.oV,de.QX],styles:[".fee-rate-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{height:44px}"]}))}return n(),l})();const zr=n=>({"dashboard-card-content":!0,"error-border":n});function Bl(n,l){1&n&&A.nrm(0,"mat-progress-bar",20)}function fl(n,l){if(1&n&&A.nrm(0,"rtl-cln-node-info",21),2&n){const e=A.XpG(3);A.Y8G("information",e.information)("showColorFieldSeparately",!1)}}function ul(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-status-info",22),2&n){const e=A.XpG(3);A.Y8G("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[1])}}function hl(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-info",23),2&n){const e=A.XpG(3);A.Y8G("fees",e.fees)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[2]+" "+e.errorMessages[3])}}function El(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-rates",24),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKB)("errorMessage",e.errorMessages[4])}}function wl(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-rates",25),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKW)("errorMessage",e.errorMessages[5])}}function Cl(n,l){if(1&n&&A.nrm(0,"rtl-cln-onchain-fee-estimates",26),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKW)("errorMessage",e.errorMessages[4])}}function cs(n,l){if(1&n&&(A.j41(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",7),A.nrm(4,"fa-icon",8),A.j41(5,"span"),A.EFF(6),A.k0s()()(),A.j41(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.DNE(10,Bl,1,0,"mat-progress-bar",12),A.j41(11,"div",13),A.DNE(12,fl,1,2,"rtl-cln-node-info",14)(13,ul,1,2,"rtl-cln-channel-status-info",15)(14,hl,1,2,"rtl-cln-fee-info",16)(15,El,1,2,"rtl-cln-fee-rates",17)(16,wl,1,2,"rtl-cln-fee-rates",18)(17,Cl,1,2,"rtl-cln-onchain-fee-estimates",19),A.k0s()()()()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("colspan",e.cols)("rowspan",e.rows),A.R7$(4),A.Y8G("icon",e.icon),A.R7$(2),A.JRh(e.title),A.R7$(3),A.Y8G("ngClass",A.eq3(13,zr,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusLRBal.status===i.apiCallStatusEnum.ERROR)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.ERROR)||"feeRatesKB"===e.id&&i.apiCallStatusPerKB.status===i.apiCallStatusEnum.ERROR||"feeRatesKW"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.ERROR)),A.R7$(),A.Y8G("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusLRBal.status===i.apiCallStatusEnum.INITIATED)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.INITIATED)||"feeRatesKB"===e.id&&i.apiCallStatusPerKB.status===i.apiCallStatusEnum.INITIATED||"feeRatesKW"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngSwitch",e.id),A.R7$(),A.Y8G("ngSwitchCase","node"),A.R7$(),A.Y8G("ngSwitchCase","status"),A.R7$(),A.Y8G("ngSwitchCase","fee"),A.R7$(),A.Y8G("ngSwitchCase","feeRatesKB"),A.R7$(),A.Y8G("ngSwitchCase","feeRatesKW"),A.R7$(),A.Y8G("ngSwitchCase","onChainFeeEstimates")}}function Ws(n,l){if(1&n&&(A.j41(0,"mat-grid-list",2),A.DNE(1,cs,18,15,"mat-grid-tile",3),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngForOf",e.nodeCardsOperator)}}function ei(n,l){1&n&&A.nrm(0,"mat-progress-bar",20)}function Ea(n,l){if(1&n&&A.nrm(0,"rtl-cln-node-info",21),2&n){const e=A.XpG(3);A.Y8G("information",e.information)("showColorFieldSeparately",!1)}}function dl(n,l){if(1&n&&A.nrm(0,"rtl-cln-channel-status-info",22),2&n){const e=A.XpG(3);A.Y8G("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[1])}}function Ql(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-info",23),2&n){const e=A.XpG(3);A.Y8G("fees",e.fees)("errorMessage",e.errorMessages[0]+" "+e.errorMessages[2]+" "+e.errorMessages[3])}}function ml(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-rates",24),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKB)("errorMessage",e.errorMessages[4])}}function Ml(n,l){if(1&n&&A.nrm(0,"rtl-cln-fee-rates",25),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKW)("errorMessage",e.errorMessages[4])}}function pl(n,l){if(1&n&&A.nrm(0,"rtl-cln-onchain-fee-estimates",26),2&n){const e=A.XpG(3);A.Y8G("feeRates",e.feeRatesPerKW)("errorMessage",e.errorMessages[4])}}function Il(n,l){if(1&n&&(A.j41(0,"mat-grid-tile",4)(1,"div",5)(2,"div",6)(3,"div",27),A.nrm(4,"fa-icon",8),A.j41(5,"span"),A.EFF(6),A.k0s()()(),A.j41(7,"div",9)(8,"mat-card",10)(9,"mat-card-content",11),A.DNE(10,ei,1,0,"mat-progress-bar",12),A.j41(11,"div",13),A.DNE(12,Ea,1,2,"rtl-cln-node-info",14)(13,dl,1,2,"rtl-cln-channel-status-info",15)(14,Ql,1,2,"rtl-cln-fee-info",16)(15,ml,1,2,"rtl-cln-fee-rates",17)(16,Ml,1,2,"rtl-cln-fee-rates",18)(17,pl,1,2,"rtl-cln-onchain-fee-estimates",19),A.k0s()()()()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("colspan",e.cols)("rowspan",e.rows),A.R7$(4),A.Y8G("icon",e.icon),A.R7$(2),A.JRh(e.title),A.R7$(3),A.Y8G("ngClass",A.eq3(13,zr,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusLRBal.status===i.apiCallStatusEnum.ERROR)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.ERROR)||"feeRatesKB"===e.id&&i.apiCallStatusPerKB.status===i.apiCallStatusEnum.ERROR||"feeRatesKW"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.ERROR||"onChainFeeEstimates"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.ERROR)),A.R7$(),A.Y8G("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"status"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusLRBal.status===i.apiCallStatusEnum.INITIATED)||"fee"===e.id&&(i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusFHistory.status===i.apiCallStatusEnum.INITIATED)||"feeRatesKB"===e.id&&i.apiCallStatusPerKB.status===i.apiCallStatusEnum.INITIATED||"feeRatesKW"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.INITIATED||"onChainFeeEstimates"===e.id&&i.apiCallStatusPerKW.status===i.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngSwitch",e.id),A.R7$(),A.Y8G("ngSwitchCase","node"),A.R7$(),A.Y8G("ngSwitchCase","status"),A.R7$(),A.Y8G("ngSwitchCase","fee"),A.R7$(),A.Y8G("ngSwitchCase","feeRatesKB"),A.R7$(),A.Y8G("ngSwitchCase","feeRatesKW"),A.R7$(),A.Y8G("ngSwitchCase","onChainFeeEstimates")}}function Dl(n,l){if(1&n&&(A.j41(0,"mat-grid-list",2),A.DNE(1,Il,18,15,"mat-grid-tile",3),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngForOf",e.nodeCardsMerchant)}}let Fc=(()=>{var n;class l{constructor(i,o,r){this.logger=i,this.commonService=o,this.store=r,this.faBolt=v.zm_,this.faServer=v.D6w,this.faNetworkWired=v.eGi,this.faLink=v.CQO,this.information={},this.channelsStatus={active:{},pending:{},inactive:{}},this.feeRatesPerKB={},this.feeRatesPerKW={},this.nodeCardsOperator=[],this.nodeCardsMerchant=[],this.screenSize="",this.screenSizeEnum=B.f7,this.userPersonaEnum=B.HW,this.errorMessages=["","","","","",""],this.apiCallStatusNodeInfo=null,this.apiCallStatusLRBal=null,this.apiCallStatusChannels=null,this.apiCallStatusFHistory=null,this.apiCallStatusPerKB=null,this.apiCallStatusPerKW=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize(),this.screenSize===B.f7.XS?(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:6,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:6,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:6,rows:1},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:6},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:6},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:6}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:4,rows:6},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:4,rows:6},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:4,rows:6}]):(this.nodeCardsMerchant=[{id:"node",icon:this.faServer,title:"Node Information",cols:2,rows:3},{id:"status",icon:this.faNetworkWired,title:"Channels",cols:2,rows:3},{id:"fee",icon:this.faBolt,title:"Routing Fee",cols:2,rows:3},{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:6},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:6},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:6}],this.nodeCardsOperator=[{id:"feeRatesKB",icon:this.faServer,title:"Fee Rate Per KB",cols:2,rows:6},{id:"feeRatesKW",icon:this.faNetworkWired,title:"Fee Rate Per KW",cols:2,rows:6},{id:"onChainFeeEstimates",icon:this.faLink,title:"Onchain Fee Estimates (Sats)",cols:2,rows:6}])}ngOnInit(){this.store.select(tA.RQ).pipe((0,I.Q)(this.unSubs[0]),(0,N.E)(this.store.select(j._c))).subscribe(([i,o])=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=i.apisCallStatus[0],this.apiCallStatusNodeInfo.status===B.wn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.selNode=o,this.information=i.information,this.fees=i.fees,this.logger.info(i)}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[1]),(0,N.E)(this.store.select(tA.Al))).subscribe(([i,o])=>{this.errorMessages[1]="",this.errorMessages[2]="",this.apiCallStatusLRBal=o.apiCallStatus,this.apiCallStatusChannels=i.apiCallStatus,this.apiCallStatusLRBal.status===B.wn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusLRBal.message?JSON.stringify(this.apiCallStatusLRBal.message):this.apiCallStatusLRBal.message?this.apiCallStatusLRBal.message:""),this.apiCallStatusChannels.status===B.wn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusChannels.message?JSON.stringify(this.apiCallStatusChannels.message):this.apiCallStatusChannels.message?this.apiCallStatusChannels.message:""),this.channelsStatus.active.channels=i.activeChannels.length||0,this.channelsStatus.pending.channels=i.pendingChannels.length||0,this.channelsStatus.inactive.channels=i.inactiveChannels.length||0,this.channelsStatus.active.capacity=o.localRemoteBalance.localBalance||0,this.channelsStatus.pending.capacity=o.localRemoteBalance.pendingBalance||0,this.channelsStatus.inactive.capacity=o.localRemoteBalance.inactiveBalance||0}),this.store.select(tA.Ie).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessages[3]="",this.apiCallStatusFHistory=i.apiCallStatus,this.apiCallStatusFHistory.status===B.wn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusFHistory.message?JSON.stringify(this.apiCallStatusFHistory.message):this.apiCallStatusFHistory.message?this.apiCallStatusFHistory.message:""),i.forwardingHistory&&i.forwardingHistory.listForwards&&i.forwardingHistory.listForwards.length&&(this.fees.totalTxCount=i.forwardingHistory.listForwards.length)}),this.store.select(tA.kr).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{this.errorMessages[4]="",this.apiCallStatusPerKB=i.apiCallStatus,this.apiCallStatusPerKB.status===B.wn.ERROR&&(this.errorMessages[4]="object"==typeof this.apiCallStatusPerKB.message?JSON.stringify(this.apiCallStatusPerKB.message):this.apiCallStatusPerKB.message?this.apiCallStatusPerKB.message:""),this.feeRatesPerKB=i.feeRatesPerKB}),this.store.select(tA.RB).pipe((0,I.Q)(this.unSubs[5])).subscribe(i=>{this.errorMessages[5]="",this.apiCallStatusPerKW=i.apiCallStatus,this.apiCallStatusPerKW.status===B.wn.ERROR&&(this.errorMessages[5]="object"==typeof this.apiCallStatusPerKW.message?JSON.stringify(this.apiCallStatusPerKW.message):this.apiCallStatusPerKW.message?this.apiCallStatusPerKW.message:""),this.feeRatesPerKW=i.feeRatesPerKW})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-network-info"]],standalone:!1,decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch",1,"mb-4"],["cols","6","rowHeight","100px",4,"ngIf"],["cols","6","rowHeight","100px"],["class","node-grid-tile",3,"colspan","rowspan",4,"ngFor","ngForOf"],[1,"node-grid-tile",3,"colspan","rowspan"],["fxLayout","column","fxLayoutAlign","stretch start","fxFlex","100",1,"h-100"],["fxLayout","row","fxLayoutAlign","start start",1,"w-100"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-2"],[1,"mr-1",3,"icon"],["fxLayout","column","fxLayoutAlign","stretch center","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","center stretch",1,"w-100","h-93"],["fxLayout","row","fxFlex","95","fxLayoutAlign","start stretch",1,"dashboard-card","w-96","h-93"],["fxLayout","column","fxFlex","100",3,"ngClass"],["mode","indeterminate",4,"ngIf"],["fxLayout","column","fxFlex","100",3,"ngSwitch"],["fxFlex","100",3,"information","showColorFieldSeparately",4,"ngSwitchCase"],["fxFlex","100",3,"channelsStatus","errorMessage",4,"ngSwitchCase"],["fxFlex","100",3,"fees","errorMessage",4,"ngSwitchCase"],["class","h-100","feeRateStyle","KB",3,"feeRates","errorMessage",4,"ngSwitchCase"],["class","h-100","feeRateStyle","KW",3,"feeRates","errorMessage",4,"ngSwitchCase"],["class","h-100",3,"feeRates","errorMessage",4,"ngSwitchCase"],["mode","indeterminate"],["fxFlex","100",3,"information","showColorFieldSeparately"],["fxFlex","100",3,"channelsStatus","errorMessage"],["fxFlex","100",3,"fees","errorMessage"],["feeRateStyle","KB",1,"h-100",3,"feeRates","errorMessage"],["feeRateStyle","KW",1,"h-100",3,"feeRates","errorMessage"],[1,"h-100",3,"feeRates","errorMessage"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","pl-15px"]],template:function(o,r){1&o&&(A.j41(0,"div",0),A.DNE(1,Ws,2,1,"mat-grid-list",1)(2,Dl,2,1,"mat-grid-list",1),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",r.selNode.settings.userPersona===r.userPersonaEnum.OPERATOR),A.R7$(),A.Y8G("ngIf",r.selNode.settings.userPersona===r.userPersonaEnum.MERCHANT))},dependencies:[de.YU,de.Sq,de.bT,de.ux,de.e1,P.aY,QA.RN,QA.m2,NA.B_,NA.NS,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,ge,it,zt,cl,wr],encapsulation:2}))}return n(),l})();function yc(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",9),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("routerLink",A.mNQ(e.link))("active",i.activeLink===e.link),A.R7$(),A.JRh(e.name)}}let Fl=(()=>{var n;class l{constructor(i){this.router=i,this.faUserCheck=v.pCJ,this.links=[{link:"sign",name:"Sign"},{link:"verify",name:"Verify"}],this.activeLink=this.links[0].link,this.unSubs=[new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-sign-verify-message"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","role","tab","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["tabindex","1","mat-tab-link","","role","tab",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1),A.nrm(1,"fa-icon",2),A.j41(2,"span",3),A.EFF(3,"Sign/Verify Message"),A.k0s()(),A.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),A.DNE(8,yc,2,4,"div",7),A.k0s(),A.nrm(9,"mat-tab-nav-panel",null,0),A.j41(11,"div",8),A.nrm(12,"router-outlet"),A.k0s()()()()),2&o){const iA=A.sdS(10);A.R7$(),A.Y8G("icon",r.faUserCheck),A.R7$(6),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,RA.Bu,RA.hQ,RA.Ql,xt.n3,Sn.Wk],encapsulation:2}))}return n(),l})();var wa=We(80396),kr=We(283);function yl(n,l){if(1&n&&(A.j41(0,"mat-option",6),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e),A.R7$(),A.SpI(" ",e.addressTp," ")}}let xl=(()=>{var n;class l{constructor(i,o){this.store=i,this.clnEffects=o,this.addressTypes=B.Ld,this.selectedAddressType=B.Ld[2],this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,VA.XT)({payload:this.selectedAddressType})),this.clnEffects.setNewAddressCL.pipe((0,bt.s)(1)).subscribe(i=>{this.newAddress=i,setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{address:this.newAddress,addressType:this.selectedAddressType.addressTp,component:wa.f}}}))},0)})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il),A.rXU(kr.i))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-on-chain-receive"]],standalone:!1,decls:10,vars:2,consts:[["fxLayout","column"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayoutAlign.gt-sm","start center"],["fxLayout","column","fxFlex","48","fxFlex.gt-md","25","fxLayoutAlign","start end",1,"mr-2"],["name","address_type","tabindex","1",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["mat-flat-button","","color","primary","tabindex","2",3,"click"],[3,"value"]],template:function(o,r){1&o&&(A.j41(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),A.EFF(4,"Address Type"),A.k0s(),A.j41(5,"mat-select",3),A.mxI("ngModelChange",function(ne){return A.DH7(r.selectedAddressType,ne)||(r.selectedAddressType=ne),ne}),A.DNE(6,yl,2,2,"mat-option",4),A.k0s()(),A.j41(7,"div")(8,"button",5),A.bIt("click",function(){return r.onGenerateAddress()}),A.EFF(9,"Generate Address"),A.k0s()()()()),2&o&&(A.R7$(5),A.R50("ngModel",r.selectedAddressType),A.R7$(),A.Y8G("ngForOf",r.addressTypes))},dependencies:[de.Sq,hA.BC,hA.vS,fA.$z,yA.rl,yA.nJ,Q.DJ,Q.sA,Q.UI,OA.VO,xA.wT],encapsulation:2}))}return n(),l})(),Yl=(()=>{var n;class l{constructor(i,o){this.store=i,this.activatedRoute=o,this.sweepAll=!1,this.unSubs=[new g.B,new g.B]}ngOnInit(){this.activatedRoute.data.pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.sweepAll=i.sweepAll})}openSendFundsModal(){this.store.dispatch((0,C.xO)({payload:{data:{sweepAll:this.sweepAll,component:co}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il),A.rXU(xt.nX))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-on-chain-send"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x"],["fxLayout","row"],["mat-flat-button","","color","primary","type","button","tabindex","1",3,"click"]],template:function(o,r){1&o&&(A.j41(0,"div",0)(1,"div",1)(2,"button",2),A.bIt("click",function(){return r.openSendFundsModal()}),A.EFF(3),A.k0s()()()),2&o&&(A.R7$(3),A.JRh(r.sweepAll?"Sweep All":"Send Funds"))},dependencies:[fA.$z,Q.DJ,Q.sA,Q.UI],encapsulation:2}))}return n(),l})();var xc=We(99172),bl=We(96354),vl=We(22628),Vn=We(60092);const Rl=["form"],Cr=(n,l)=>({"mr-6":n,"mr-2":l});function Sl(n,l){if(1&n&&(A.j41(0,"mat-option",48),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e),A.R7$(),A.JRh(e.alias?e.alias:e.id?e.id:"")}}function Nl(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Peer alias is required."),A.k0s())}function Tl(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Peer not found in the list."),A.k0s())}function Ca(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",7)(1,"mat-label"),A.EFF(2,"Peer Alias"),A.k0s(),A.j41(3,"input",46),A.bIt("change",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onSelectedPeerChanged())}),A.k0s(),A.j41(4,"mat-autocomplete",47,4),A.bIt("optionSelected",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onSelectedPeerChanged())}),A.DNE(6,Sl,2,2,"mat-option",31),A.nI1(7,"async"),A.k0s(),A.DNE(8,Nl,2,0,"mat-error",21)(9,Tl,2,0,"mat-error",21),A.k0s()}if(2&n){const e=A.sdS(5),i=A.XpG();A.R7$(3),A.Y8G("formControl",i.selectedPeer)("matAutocomplete",e),A.R7$(),A.Y8G("displayWith",i.displayFn),A.R7$(2),A.Y8G("ngForOf",A.bMT(7,6,i.filteredPeers)),A.R7$(2),A.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),A.R7$(),A.Y8G("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function Pl(n,l){1&n&&A.eu8(0)}function Ul(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Amount is required."),A.k0s())}function Ll(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.SpI("Amount must be less than or equal to ",e.totalBalance,".")}}function Gl(n,l){if(1&n&&(A.j41(0,"div",49),A.nrm(1,"fa-icon",50),A.j41(2,"span",51)(3,"div"),A.EFF(4,"Fee rates recommended by mempool (sat/vByte):"),A.k0s(),A.j41(5,"span",52)(6,"span"),A.EFF(7),A.k0s(),A.j41(8,"span"),A.EFF(9),A.k0s(),A.j41(10,"span"),A.EFF(11),A.k0s(),A.j41(12,"span"),A.EFF(13),A.k0s(),A.j41(14,"span"),A.EFF(15),A.k0s()()()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faInfoCircle),A.R7$(6),A.SpI("- High: ",e.recommendedFee.fastestFee||"Unknown"),A.R7$(2),A.SpI("- Medium: ",e.recommendedFee.halfHourFee||"Unknown"),A.R7$(2),A.SpI("- Low: ",e.recommendedFee.hourFee||"Unknown"),A.R7$(2),A.SpI("- Economy: ",e.recommendedFee.economyFee||"Unknown"),A.R7$(2),A.SpI("- Minimum: ",e.recommendedFee.minimumFee||"Unknown")}}function da(n,l){if(1&n&&(A.j41(0,"mat-option",48),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.Y8G("value",e.feeRateId),A.R7$(),A.SpI(" ",e.feeRateType," ")}}function zl(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fee Rate is required."),A.k0s())}function Qa(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.SpI("Lower than min feerate ",e.recommendedFee.minimumFee," in the mempool.")}}function ma(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-form-field",53)(1,"mat-label"),A.EFF(2,"Fee Rate (Sats/vByte)"),A.k0s(),A.j41(3,"input",54,5),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.customFeeRate,o)||(r.customFeeRate=o),w.Njj(o)}),A.k0s(),A.j41(5,"mat-hint"),A.EFF(6),A.k0s(),A.DNE(7,zl,2,0,"mat-error",21)(8,Qa,2,1,"mat-error",21),A.k0s()}if(2&n){const e=A.XpG();A.R7$(3),A.Y8G("step",1)("min",e.recommendedFee.minimumFee)("required","customperkb"===e.selFeeRate&&!e.flgMinConf),A.R50("ngModel",e.customFeeRate),A.R7$(3),A.SpI("Mempool Min: ",e.recommendedFee.minimumFee," (Sats/vByte)"),A.R7$(),A.Y8G("ngIf","customperkb"===e.selFeeRate&&!e.flgMinConf&&!e.customFeeRate),A.R7$(),A.Y8G("ngIf","customperkb"===e.selFeeRate&&!e.flgMinConf&&e.customFeeRate&&e.customFeeRate{var n;class l{constructor(i,o,r,iA,ne,re,ln,Qt){this.logger=i,this.dialogRef=o,this.data=r,this.store=iA,this.actions=ne,this.decimalPipe=re,this.commonService=ln,this.dataService=Qt,this.selectedPeer=new hA.hs,this.faExclamationTriangle=v.zpE,this.faInfoCircle=v.iW_,this.utxos=[],this.selUTXOs=[],this.flgUseAllBalance=!1,this.totalSelectedUTXOAmount=0,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.fundingAmount=null,this.selectedPubkey="",this.isPrivate=!1,this.feeRateTypes=B.G,this.selFeeRate="",this.customFeeRate=null,this.flgMinConf=!1,this.minConfValue=null,this.screenSize="",this.screenSizeEnum=B.f7,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.utxos=this.data.message.utxos,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.utxos=[],this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(r=>{this.selNode=r,this.isPrivate=!!r?.settings.unannouncedChannels}),this.actions.pipe((0,I.Q)(this.unSubs[1]),(0,nA.p)(r=>r.type===B.TC.UPDATE_API_CALL_STATUS_CLN||r.type===B.TC.FETCH_CHANNELS_CLN)).subscribe(r=>{r.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&r.payload.status===B.wn.ERROR&&"SaveNewChannel"===r.payload.action&&(this.channelConnectionError=r.payload.message),r.type===B.TC.FETCH_CHANNELS_CLN&&this.dialogRef.close()});let i="",o="";this.sortedPeers=this.peers.sort((r,iA)=>(i=r.alias?r.alias.toLowerCase():r.id?r.id.toLowerCase():"",o=iA.alias?iA.alias.toLowerCase():r.id?r.id.toLowerCase():"",io?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,I.Q)(this.unSubs[2]),(0,xc.Z)(""),(0,bl.T)(r=>"string"==typeof r?r:r.alias?r.alias:r.id),(0,bl.T)(r=>r?this.filterPeers(r):this.sortedPeers.slice()))}filterPeers(i){return this.sortedPeers?.filter(o=>0===o.alias?.toLowerCase().indexOf(i?i.toLowerCase():""))}displayFn(i){return i&&i.alias?i.alias:i&&i.id?i.id:""}onSelectedPeerChanged(){if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.id?this.selectedPeer.value.id:null,"string"==typeof this.selectedPeer.value){const i=this.peers?.filter(o=>o.alias?.length===this.selectedPeer.value.length&&0===o.alias?.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""));1===i.length&&i[0].id&&(this.selectedPubkey=i[0].id)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){this.flgMinConf=!1,this.selFeeRate="",this.minConfValue=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!this.selNode?.settings.unannouncedChannels,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(i){i?this.flgMinConf||this.selFeeRate||this.selUTXOs.length&&0!==this.selUTXOs.length?(this.advancedTitle="Advanced Options",this.flgMinConf&&(this.advancedTitle=this.advancedTitle+" | Min Confirmation Blocks: "+this.minConfValue),this.selFeeRate&&(this.advancedTitle=this.advancedTitle+" | Fee Rate: "+(this.customFeeRate?this.customFeeRate+" (Sats/vByte)":this.feeRateTypes.find(o=>o.feeRateId===this.selFeeRate)?.feeRateType)),this.selUTXOs.length&&this.selUTXOs.length>0&&(this.advancedTitle=this.advancedTitle+" | Total Selected: "+this.selUTXOs.length+" | Selected UTXOs: "+this.decimalPipe.transform(this.totalSelectedUTXOAmount)+" Sats")):this.advancedTitle="Advanced Options":(this.advancedTitle="Advanced Options",this.dataService.getRecommendedFeeRates().pipe((0,I.Q)(this.unSubs[3])).subscribe({next:o=>{this.recommendedFee=o},error:o=>{this.logger.error(o)}}))}onUTXOSelectionChange(i){this.selUTXOs.length&&this.selUTXOs.length>0?(this.totalSelectedUTXOAmount=this.selUTXOs?.reduce((o,r)=>o+(r.amount_msat||0)/1e3,0),this.flgUseAllBalance&&this.onUTXOAllBalanceChange()):(this.totalSelectedUTXOAmount=0,this.fundingAmount=null,this.flgUseAllBalance=!1)}onUTXOAllBalanceChange(){this.fundingAmount=this.flgUseAllBalance?this.totalSelectedUTXOAmount:null}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0||this.flgMinConf&&!this.minConfValue||"customperkb"===this.selFeeRate&&!this.flgMinConf&&!this.customFeeRate||"customperkb"===this.selFeeRate&&this.recommendedFee.minimumFee>this.customFeeRate)return!0;const i={peerId:this.peer&&this.peer.id?this.peer.id:this.selectedPubkey,amount:this.flgUseAllBalance?"all":this.fundingAmount.toString(),announce:!this.isPrivate,minconf:this.flgMinConf?this.minConfValue:null};i.feeRate="customperkb"===this.selFeeRate&&!this.flgMinConf&&this.customFeeRate?1e3*this.customFeeRate+"perkb":this.selFeeRate,this.selUTXOs.length&&this.selUTXOs.length>0&&(i.utxos=[],this.selUTXOs.forEach(o=>i.utxos.push(o.txid+":"+o.output))),this.store.dispatch((0,VA.vL)({payload:i}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(kA.En),A.rXU(de.QX),A.rXU(L.h),A.rXU(Dt.u))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-open-channel"]],viewQuery:function(o,r){if(1&o&&A.GBs(Rl,7),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first)}},standalone:!1,decls:75,vars:42,consts:[["form","ngForm"],["amount","ngModel"],["blocks","ngModel"],["peerDetailsExpansionBlock",""],["auto","matAutocomplete"],["custFeeRate","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column",3,"submit","reset"],["fxLayout","column"],["fxFlex","100",4,"ngIf"],[4,"ngTemplateOutlet"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","start end"],["matInput","","type","number","required","","name","amount",3,"ngModelChange","step","min","max","disabled","ngModel"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","25","fxLayoutAlign","center start"],["fxLayout","column","fxLayoutAlign","center start","color","primary","name","isPrivate",3,"ngModelChange","ngModel"],["expanded","false",1,"flat-expansion-panel","mt-2",3,"closed","opened"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxFlex","64","fxLayout","row","fxLayoutAlign","space-between center"],["fxLayout","column","fxLayoutAlign","start center",3,"ngClass"],[3,"valueChange","disabled","value"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","58","fxLayoutAlign","end center",4,"ngIf"],["fxFlex","32","fxLayout","row","fxLayoutAlign","start center"],["fxFlex","7","color","primary","name","flgMinConf","fxLayoutAlign","stretch start",3,"ngModelChange","change","ngClass","ngModel"],["fxLayout","column","fxFlex","93"],["matInput","","type","number","name","blocks",3,"ngModelChange","step","min","required","disabled","ngModel"],["fxLayout","column","fxFlex","54","fxLayoutAlign","start end"],["multiple","",3,"valueChange","selectionChange","value"],["fxFlex","41","fxLayout","row","fxLayoutAlign","start center"],["color","primary","name","flgUseAllBalance",3,"ngModelChange","change","disabled","ngModel"],["matTooltip","Use selected UTXOs balance as the amount to be sent. Final amount sent will be less the mining fee.","matTooltipPosition","before",1,"info-icon"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit"],["type","text","aria-label","Peers","matInput","","required","",3,"change","formControl","matAutocomplete"],[3,"optionSelected","displayWith"],[3,"value"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"pr-2"],["fxLayout","column","fxFlex","58","fxLayoutAlign","end center"],["matInput","","type","number","name","custFeeRate",3,"ngModelChange","step","min","required","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],["class","flat-expansion-panel my-1","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","my-1"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",6)(1,"div",7)(2,"mat-card-header",8)(3,"div",9)(4,"span",10),A.EFF(5),A.k0s()(),A.j41(6,"button",11),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onClose())}),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",12)(9,"form",13,0),A.bIt("submit",function(){return w.eBV(iA),w.Njj(r.onOpenChannel())})("reset",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.j41(11,"div",14),A.DNE(12,Ca,10,8,"mat-form-field",15),A.k0s(),A.DNE(13,Pl,1,0,"ng-container",16),A.j41(14,"div",14)(15,"div",17)(16,"mat-form-field",18)(17,"mat-label"),A.EFF(18,"Amount"),A.k0s(),A.j41(19,"input",19,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.fundingAmount,re)||(r.fundingAmount=re),w.Njj(re)}),A.k0s(),A.j41(21,"mat-hint"),A.EFF(22),A.nI1(23,"number"),A.k0s(),A.j41(24,"span",20),A.EFF(25," Sats "),A.k0s(),A.DNE(26,Ul,2,0,"mat-error",21)(27,Ll,2,1,"mat-error",21),A.k0s(),A.j41(28,"div",22)(29,"mat-slide-toggle",23),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.isPrivate,re)||(r.isPrivate=re),w.Njj(re)}),A.EFF(30,"Private Channel"),A.k0s()()(),A.j41(31,"mat-expansion-panel",24),A.bIt("closed",function(){return w.eBV(iA),w.Njj(r.onAdvancedPanelToggle(!0))})("opened",function(){return w.eBV(iA),w.Njj(r.onAdvancedPanelToggle(!1))}),A.j41(32,"mat-expansion-panel-header")(33,"mat-panel-title")(34,"span"),A.EFF(35),A.k0s()()(),A.j41(36,"div",25),A.DNE(37,Gl,16,6,"div",26),A.j41(38,"div",27)(39,"div",28)(40,"mat-form-field",29)(41,"mat-label"),A.EFF(42,"Fee Rate"),A.k0s(),A.j41(43,"mat-select",30),A.mxI("valueChange",function(re){return w.eBV(iA),A.DH7(r.selFeeRate,re)||(r.selFeeRate=re),w.Njj(re)}),A.DNE(44,da,2,2,"mat-option",31),A.k0s()(),A.DNE(45,ma,9,7,"mat-form-field",32),A.k0s(),A.j41(46,"div",33)(47,"mat-checkbox",34),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.flgMinConf,re)||(r.flgMinConf=re),w.Njj(re)}),A.bIt("change",function(){return w.eBV(iA),w.Njj(r.flgMinConf?r.selFeeRate=null:r.minConfValue=null)}),A.k0s(),A.j41(48,"mat-form-field",35)(49,"mat-label"),A.EFF(50,"Min Confirmation Blocks"),A.k0s(),A.j41(51,"input",36,2),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.minConfValue,re)||(r.minConfValue=re),w.Njj(re)}),A.k0s(),A.DNE(53,Ma,2,0,"mat-error",21),A.k0s()()(),A.j41(54,"mat-form-field",37)(55,"mat-label"),A.EFF(56,"Coin Selection"),A.k0s(),A.j41(57,"mat-select",38),A.mxI("valueChange",function(re){return w.eBV(iA),A.DH7(r.selUTXOs,re)||(r.selUTXOs=re),w.Njj(re)}),A.bIt("selectionChange",function(re){return w.eBV(iA),w.Njj(r.onUTXOSelectionChange(re))}),A.j41(58,"mat-select-trigger"),A.EFF(59),A.nI1(60,"number"),A.k0s(),A.DNE(61,kl,3,5,"mat-option",31),A.k0s()(),A.j41(62,"div",39)(63,"mat-slide-toggle",40),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.flgUseAllBalance,re)||(r.flgUseAllBalance=re),w.Njj(re)}),A.bIt("change",function(){return w.eBV(iA),w.Njj(r.onUTXOAllBalanceChange())}),A.EFF(64," Use selected UTXOs balance "),A.k0s(),A.j41(65,"mat-icon",41),A.EFF(66,"info_outline"),A.k0s()()()()(),A.DNE(67,jl,3,2,"div",42),A.j41(68,"div",43)(69,"button",44),A.EFF(70,"Clear Fields"),A.k0s(),A.j41(71,"button",45),A.EFF(72,"Open Channel"),A.k0s()()()()()(),A.DNE(73,Yc,1,1,"ng-template",null,3,A.C5r)}if(2&o){const iA=A.sdS(20),ne=A.sdS(74);A.R7$(5),A.JRh(r.alertTitle),A.R7$(7),A.Y8G("ngIf",!r.peer&&r.peers&&r.peers.length>0),A.R7$(),A.Y8G("ngTemplateOutlet",ne),A.R7$(6),A.Y8G("step",1e3)("min",1)("max",r.totalBalance)("disabled",r.flgUseAllBalance),A.R50("ngModel",r.fundingAmount),A.R7$(3),A.Lme("Remaining: ",A.bMT(23,35,r.totalBalance-(r.fundingAmount?r.fundingAmount:0)),"",r.flgUseAllBalance?". Amount replaced by UTXO balance":""),A.R7$(4),A.Y8G("ngIf",(null==iA.errors?null:iA.errors.required)||!r.fundingAmount),A.R7$(),A.Y8G("ngIf",null==iA.errors?null:iA.errors.max),A.R7$(2),A.R50("ngModel",r.isPrivate),A.R7$(6),A.JRh(r.advancedTitle),A.R7$(2),A.Y8G("ngIf",r.recommendedFee.minimumFee),A.R7$(3),A.Y8G("ngClass","customperkb"!==r.selFeeRate||r.flgMinConf?"flex-100":"flex-40"),A.R7$(3),A.Y8G("disabled",r.flgMinConf),A.R50("value",r.selFeeRate),A.R7$(),A.Y8G("ngForOf",r.feeRateTypes),A.R7$(),A.Y8G("ngIf","customperkb"===r.selFeeRate&&!r.flgMinConf),A.R7$(2),A.Y8G("ngClass",A.l_i(39,Cr,r.screenSize===r.screenSizeEnum.XS||r.screenSize===r.screenSizeEnum.SM,r.screenSize===r.screenSizeEnum.MD||r.screenSize===r.screenSizeEnum.LG||r.screenSize===r.screenSizeEnum.XL)),A.R50("ngModel",r.flgMinConf),A.R7$(4),A.Y8G("step",1)("min",0)("required",r.flgMinConf)("disabled",!r.flgMinConf),A.R50("ngModel",r.minConfValue),A.R7$(2),A.Y8G("ngIf",r.flgMinConf&&!r.minConfValue),A.R7$(4),A.R50("value",r.selUTXOs),A.R7$(2),A.Lme("",A.bMT(60,37,r.totalSelectedUTXOAmount)," Sats (",r.selUTXOs.length>1?r.selUTXOs.length+" UTXOs":"1 UTXO",")"),A.R7$(2),A.Y8G("ngForOf",r.utxos),A.R7$(2),A.Y8G("disabled",r.selUTXOs.length<1),A.R50("ngModel",r.flgUseAllBalance),A.R7$(4),A.Y8G("ngIf",""!==r.channelConnectionError)}},dependencies:[de.YU,de.Sq,de.bT,de.T3,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.zX,hA.vS,hA.cV,hA.l_,P.aY,fA.$z,QA.m2,QA.MM,Ze.So,gi.GK,gi.Z2,gi.WN,oA.An,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,yA.yw,sn.q,Q.DJ,Q.sA,Q.UI,dA.PW,OA.VO,OA.$2,xA.wT,Ee.sG,HA.oV,vl.$3,vl.pN,cA.N,Vn.z,J.V,de.Jj,de.QX],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}))}return n(),l})();function Jl(n,l){if(1&n&&(A.j41(0,"span",7),A.EFF(1,"Open"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.openChannels))}}function _l(n,l){if(1&n&&(A.j41(0,"span",7),A.EFF(1,"Pending/Inactive"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.pendingChannels))}}function Vl(n,l){if(1&n&&(A.j41(0,"span",7),A.EFF(1,"Active HTLCs"),A.k0s()),2&n){const e=A.XpG();A.Y8G("matBadge",A.mNQ(e.activeHTLCs))}}let Wl=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.store=o,this.commonService=r,this.router=iA,this.openChannels=0,this.pendingChannels=0,this.activeHTLCs=0,this.information={},this.peers=[],this.utxos=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending/Inactive"},{link:"activehtlcs",name:"Active HTLCs"}],this.activeLink=0,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.activeLink=this.links.findIndex(i=>i.link===this.router.url.substring(this.router.url.lastIndexOf("/")+1)),this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(i=>i instanceof xt.gx)).subscribe({next:i=>{this.activeLink=this.links.findIndex(o=>o.link===i.urlAfterRedirects.substring(i.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(tA.kQ).pipe((0,I.Q)(this.unSubs[1]),(0,N.E)(this.store.select(j._c))).subscribe(([i,o])=>{this.selNode=o,this.information=i.information,this.totalBalance=i.balance.totalBalance||0,this.logger.info(i)}),this.store.select(tA.os).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.peers=i.peers}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.utxos=this.commonService.sortAscByKey(i.utxos?.filter(o=>"confirmed"===o.status),"value")}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{this.openChannels=i.activeChannels.length||0,this.pendingChannels=i.pendingChannels.length+i.inactiveChannels.length||0;const o=[...i.activeChannels,...i.pendingChannels,...i.inactiveChannels];this.activeHTLCs=o?.reduce((r,iA)=>r+(iA.htlcs&&iA.htlcs.length>0?iA.htlcs.length:0),0),this.logger.info(i)})}onOpenChannel(){this.store.dispatch((0,C.xO)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance,utxos:this.utxos},component:Hr}}}))}onSelectedTabChange(i){this.router.navigateByUrl("/cln/connections/channels/"+this.links[i.index].link)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(L.h),A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channels-tables"]],standalone:!1,decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column","fxFlex","100",1,"bordered-box"],["mat-stretch-tabs","false","mat-align-tabs","start",3,"selectedIndexChange","selectedTabChange","selectedIndex"],["mat-tab-label",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["matBadgeOverlap","false",1,"tab-badge",3,"matBadge"]],template:function(o,r){1&o&&(A.j41(0,"div",0)(1,"div",1)(2,"button",2),A.bIt("click",function(){return r.onOpenChannel()}),A.EFF(3,"Open Channel"),A.k0s()(),A.j41(4,"div",3)(5,"mat-tab-group",4),A.mxI("selectedIndexChange",function(ne){return A.DH7(r.activeLink,ne)||(r.activeLink=ne),ne}),A.bIt("selectedTabChange",function(ne){return r.onSelectedTabChange(ne)}),A.j41(6,"mat-tab"),A.DNE(7,Jl,2,2,"ng-template",5),A.k0s(),A.j41(8,"mat-tab"),A.DNE(9,_l,2,2,"ng-template",5),A.k0s(),A.j41(10,"mat-tab"),A.DNE(11,Vl,2,2,"ng-template",5),A.k0s()(),A.j41(12,"div",6),A.nrm(13,"router-outlet"),A.k0s()()()),2&o&&(A.R7$(5),A.R50("selectedIndex",r.activeLink))},dependencies:[fA.$z,Q.DJ,Q.sA,Q.UI,Aa.k,RA.ES,RA.mq,RA.T8,xt.n3],encapsulation:2}))}return n(),l})();const Kl=n=>({"xs-scroll-y":n}),Xl=(n,l)=>({"mt-2":n,"mt-1":l});function pa(n,l){if(1&n){const e=A.RV6();A.j41(0,"fa-icon",27),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onExplorerClicked())}),A.k0s()}if(2&n){const e=A.XpG();A.Y8G("matTooltip",A.mNQ("Link to "+(null==e.selNode||null==e.selNode.settings?null:e.selNode.settings.blockExplorerUrl)))("icon",e.faUpRightFromSquare)}}function Ia(n,l){if(1&n&&(A.j41(0,"div")(1,"div",10)(2,"div",11)(3,"h4",12),A.EFF(4,"Receivable (Sats)"),A.k0s(),A.j41(5,"span",19),A.EFF(6),A.nI1(7,"number"),A.k0s()(),A.j41(8,"div",11)(9,"h4",12),A.EFF(10,"Spendable (Sats)"),A.k0s(),A.j41(11,"span",19),A.EFF(12),A.nI1(13,"number"),A.k0s()()(),A.nrm(14,"mat-divider",15),A.j41(15,"div",10)(16,"div",11)(17,"h4",12),A.EFF(18,"Their Reserve (Sats)"),A.k0s(),A.j41(19,"span",19),A.EFF(20),A.nI1(21,"number"),A.k0s()(),A.j41(22,"div",11)(23,"h4",12),A.EFF(24,"Our Reserve (Sats)"),A.k0s(),A.j41(25,"span",19),A.EFF(26),A.nI1(27,"number"),A.k0s()()(),A.nrm(28,"mat-divider",15),A.k0s()),2&n){const e=A.XpG();A.R7$(6),A.JRh(A.i5U(7,4,e.channel.receivable_msat/1e3,"1.0-0")),A.R7$(6),A.JRh(A.i5U(13,7,e.channel.spendable_msat/1e3,"1.0-0")),A.R7$(8),A.JRh(A.i5U(21,10,e.channel.their_reserve_msat/1e3,"1.0-2")),A.R7$(6),A.JRh(A.i5U(27,13,e.channel.our_reserve_msat/1e3,"1.0-2"))}}function Zl(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Show Advanced"),A.k0s())}function ql(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Hide Advanced"),A.k0s())}function $l(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",28),A.bIt("copied",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onCopyChanID(o))}),A.EFF(1,"Copy Short Channel ID"),A.k0s()}if(2&n){const e=A.XpG();A.Y8G("payload",e.channel.short_channel_id)}}function Rn(n,l){if(1&n){const e=A.RV6();A.j41(0,"button",29),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onClose())}),A.EFF(1,"OK"),A.k0s()}}let Da=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.dialogRef=i,this.data=o,this.logger=r,this.commonService=iA,this.snackBar=ne,this.router=re,this.faReceipt=v.Mf0,this.faUpRightFromSquare=v.k02,this.showAdvanced=!1,this.showCopy=!0,this.showCopyField=null,this.screenSize="",this.screenSizeEnum=B.f7}ngOnInit(){this.channel=this.data.channel,this.showCopy=!!this.data.showCopy,this.selNode=this.data.selNode,this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(i){this.snackBar.open("Short channel ID "+i+" copied."),this.logger.info("Copied Text: "+i)}onGoToLink(i,o){this.router.navigateByUrl("/cln/graph/lookups",{state:{lookupType:i,lookupValue:o}}),this.onClose()}onExplorerClicked(){this.selNode?.settings?.blockExplorerUrl&&window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+this.channel.funding_txid,"_blank")}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(aA.gP),A.rXU(L.h),A.rXU(js.UG),A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-information"]],standalone:!1,decls:91,vars:37,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],["tabindex","4","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],[1,"foreground-secondary-text"],[1,"my-1"],["tabindex","5","matTooltip","Go To Graph Lookup",1,"foreground-secondary-text","go-to-link",3,"click"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["fxFlex","33"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","34"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","6",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","7","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","8","type","button",3,"click",4,"ngIf"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["autoFocus","","mat-button","","color","primary","tabindex","7","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","8","type","button",3,"click"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4),A.nrm(4,"fa-icon",5),A.j41(5,"span",6),A.EFF(6,"Channel Information"),A.k0s()(),A.j41(7,"button",7),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onClose())}),A.EFF(8,"X"),A.k0s()(),A.j41(9,"mat-card-content",8)(10,"div",9)(11,"div",10)(12,"div",11)(13,"h4",12),A.EFF(14,"Short Channel ID"),A.k0s(),A.j41(15,"span",13),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onGoToLink("1",r.channel.short_channel_id))}),A.EFF(16),A.k0s()(),A.j41(17,"div",11)(18,"h4",12),A.EFF(19,"Peer Alias"),A.k0s(),A.j41(20,"span",14),A.EFF(21),A.k0s()()(),A.nrm(22,"mat-divider",15),A.j41(23,"div",10)(24,"div",2)(25,"h4",12),A.EFF(26,"Channel ID"),A.k0s(),A.j41(27,"span",14),A.EFF(28),A.k0s()()(),A.nrm(29,"mat-divider",15),A.j41(30,"div",10)(31,"div",2)(32,"h4",12),A.EFF(33,"Peer Public Key"),A.k0s(),A.j41(34,"span",16),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onGoToLink("0",r.channel.peer_id))}),A.EFF(35),A.k0s()()(),A.nrm(36,"mat-divider",15),A.j41(37,"div",10)(38,"div",2)(39,"h4",12),A.EFF(40,"Funding Transaction ID"),A.k0s(),A.j41(41,"span",14),A.EFF(42),A.DNE(43,pa,1,3,"fa-icon",17),A.k0s()()(),A.nrm(44,"mat-divider",15),A.j41(45,"div",10)(46,"div",18)(47,"h4",12),A.EFF(48,"State"),A.k0s(),A.j41(49,"span",19),A.EFF(50),A.nI1(51,"camelcaseWithReplace"),A.k0s()(),A.j41(52,"div",18)(53,"h4",12),A.EFF(54,"Connected"),A.k0s(),A.j41(55,"span",19),A.EFF(56),A.k0s()(),A.j41(57,"div",20)(58,"h4",12),A.EFF(59,"Private"),A.k0s(),A.j41(60,"span",19),A.EFF(61),A.k0s()()(),A.nrm(62,"mat-divider",15),A.j41(63,"div",10)(64,"div",18)(65,"h4",12),A.EFF(66,"Remote Balance (Sats)"),A.k0s(),A.j41(67,"span",19),A.EFF(68),A.nI1(69,"number"),A.k0s()(),A.j41(70,"div",18)(71,"h4",12),A.EFF(72,"Local Balance (Sats)"),A.k0s(),A.j41(73,"span",19),A.EFF(74),A.nI1(75,"number"),A.k0s()(),A.j41(76,"div",20)(77,"h4",12),A.EFF(78,"Total (Sats)"),A.k0s(),A.j41(79,"span",19),A.EFF(80),A.nI1(81,"number"),A.k0s()()(),A.nrm(82,"mat-divider",15),A.DNE(83,Ia,29,16,"div",21),A.j41(84,"div",22)(85,"button",23),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onShowAdvanced())}),A.DNE(86,Zl,2,0,"p",24)(87,ql,2,0,"ng-template",null,0,A.C5r),A.k0s(),A.DNE(89,$l,2,1,"button",25)(90,Rn,2,0,"button",26),A.k0s()()()()()}if(2&o){const iA=A.sdS(88);A.R7$(4),A.Y8G("icon",r.faReceipt),A.R7$(5),A.Y8G("ngClass",A.eq3(32,Kl,r.screenSize===r.screenSizeEnum.XS)),A.R7$(7),A.SpI(" ",r.channel.short_channel_id," "),A.R7$(5),A.JRh(r.channel.alias),A.R7$(7),A.JRh(r.channel.channel_id),A.R7$(7),A.SpI(" ",r.channel.peer_id," "),A.R7$(7),A.SpI(" ",r.channel.funding_txid," "),A.R7$(),A.Y8G("ngIf",null==r.selNode||null==r.selNode.settings?null:r.selNode.settings.blockExplorerUrl),A.R7$(7),A.JRh(A.i5U(51,20,null==r.channel?null:r.channel.state,"_")),A.R7$(6),A.JRh(r.channel.peer_connected?"Yes":"No"),A.R7$(5),A.JRh(r.channel.private?"Yes":"No"),A.R7$(7),A.JRh(A.i5U(69,23,r.channel.to_them_msat/1e3,"1.0-0")),A.R7$(6),A.JRh(A.i5U(75,26,r.channel.to_us_msat/1e3,"1.0-0")),A.R7$(6),A.JRh(A.i5U(81,29,r.channel.total_msat/1e3,"1.0-0")),A.R7$(3),A.Y8G("ngIf",r.showAdvanced),A.R7$(),A.Y8G("ngClass",A.l_i(34,Xl,!r.showAdvanced,r.showAdvanced)),A.R7$(2),A.Y8G("ngIf",!r.showAdvanced)("ngIfElse",iA),A.R7$(3),A.Y8G("ngIf",r.showCopy),A.R7$(),A.Y8G("ngIf",!r.showCopy)}},dependencies:[de.YU,de.bT,P.aY,fA.$z,QA.m2,QA.MM,sn.q,Q.DJ,Q.sA,Q.UI,dA.PW,HA.oV,Ji.U,cA.N,de.QX,R.VD],encapsulation:2}))}return n(),l})();const Fa=()=>["all"],Ac=n=>({"error-border":n}),ec=()=>["no_peer"],Ks=n=>({width:n}),ya=n=>({"display-none":n});function tc(n,l){if(1&n&&(A.j41(0,"mat-option",39),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function nc(n,l){1&n&&A.nrm(0,"mat-progress-bar",40)}function xa(n,l){1&n&&A.nrm(0,"th",41)}function ic(n,l){if(1&n&&(A.j41(0,"span",45),A.nrm(1,"fa-icon",46),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faEyeSlash)}}function sc(n,l){if(1&n&&(A.j41(0,"span",47),A.nrm(1,"fa-icon",46),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faEye)}}function Vi(n,l){if(1&n&&(A.j41(0,"td",42),A.DNE(1,ic,2,1,"span",43)(2,sc,2,1,"span",44),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",e.private),A.R7$(),A.Y8G("ngIf",!e.private)}}function rc(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Short Channel ID"),A.k0s())}function ac(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Ks,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.short_channel_id)}}function oc(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Alias"),A.k0s())}function lc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Ks,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.alias)}}function Ya(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"ID"),A.k0s())}function jr(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Ks,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.id)}}function ti(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Channel ID"),A.k0s())}function cc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Ks,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.channel_id)}}function gc(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Funding Transaction ID"),A.k0s())}function Bc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Ks,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.funding_txid)}}function fc(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Connected"),A.k0s())}function bc(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null!=e&&e.peer_connected?"Connected":"Disconnected")}}function uc(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Local Reserve (Sats)"),A.k0s())}function hc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.our_reserve_msat)/1e3,"1.0-0")," ")}}function Ec(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Remote Reserve (Sats)"),A.k0s())}function wc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.their_reserve_msat)/1e3,"1.0-0")," ")}}function ba(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Total (Sats)"),A.k0s())}function Cc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.total_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function BA(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Spendable (Sats)"),A.k0s())}function a(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.spendable_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function u(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Local Balance (Sats)"),A.k0s())}function x(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.to_us_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function T(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Remote Balance (Sats)"),A.k0s())}function V(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",52),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.to_them_msat)/1e3,(null==e?null:e.to_them_msat)<1e3?"1.0-4":"1.0-0")," ")}}function G(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Balance Score"),A.k0s())}function TA(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",53)(2,"mat-hint",54),A.EFF(3),A.nI1(4,"number"),A.k0s()(),A.nrm(5,"mat-progress-bar",55),A.k0s()),2&n){const e=l.$implicit;A.R7$(3),A.JRh(A.bMT(4,3,e.balancedness||0)),A.R7$(2),A.Y8G("value",A.mNQ(e.to_us_msat&&e.to_us_msat>0?e.to_us_msat/(e.to_us_msat+e.to_them_msat)*100:0))}}function XA(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",56)(1,"div",57)(2,"mat-select",58),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",59),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onChannelUpdate("all"))}),A.EFF(5,"Update Fee Policy"),A.k0s(),A.j41(6,"mat-option",59),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(7,"Download CSV"),A.k0s()()()()}}function se(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",60)(1,"div",57)(2,"mat-select",61),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",59),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG();return w.Njj(iA.onChannelClick(r,o))}),A.EFF(5,"View Info"),A.k0s(),A.j41(6,"mat-option",59),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onViewRemotePolicy(o))}),A.EFF(7,"View Remote Fee"),A.k0s(),A.j41(8,"mat-option",59),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onChannelUpdate(o))}),A.EFF(9,"Update Fee Policy"),A.k0s(),A.j41(10,"mat-option",59),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onChannelClose(o))}),A.EFF(11,"Close Channel"),A.k0s()()()()}}function fe(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No peers connected. Add a peer in order to open a channel."),A.k0s())}function Be(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No channel available."),A.k0s())}function He(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting channels..."),A.k0s())}function nt(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function rt(n,l){if(1&n&&(A.j41(0,"td",62),A.DNE(1,fe,2,0,"p",63)(2,Be,2,0,"p",63)(3,He,2,0,"p",63)(4,nt,2,1,"p",63),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Ft(n,l){if(1&n&&A.nrm(0,"tr",64),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,ya,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function rn(n,l){1&n&&A.nrm(0,"tr",65)}function dt(n,l){1&n&&A.nrm(0,"tr",66)}let Ut=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.logger=i,this.store=o,this.rtlEffects=r,this.clnEffects=iA,this.commonService=ne,this.camelCaseWithReplace=re,this.faEye=v.pS3,this.faEyeSlash=v.k6j,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:B.md,sortBy:"alias",sortOrder:B.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new z.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=B.G,this.selFilter="",this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){window.history.state&&(window.history.state.filterColumn||window.history.state.filterValue)&&(this.selFilterBy=window.history.state.filterColumn||"all",this.selFilter=window.history.state.filterValue||""),this.store.select(tA.GX).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.information=i.information,this.numPeers=i.numPeers,this.totalBalance=i.balance.totalBalance||0,this.logger.info(i)}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=i.activeChannels,this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)}),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.selNode=i})}ngAfterViewInit(){this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onViewRemotePolicy(i){this.store.dispatch((0,VA.ij)({payload:{uiMessage:B.MZ.GET_REMOTE_POLICY,shortChannelID:i.short_channel_id||"",showError:!0}})),this.clnEffects.setLookupCL.pipe((0,bt.s)(1)).subscribe(o=>{if(o.channels&&0===o.channels.length)return!1;let r={};r=o.channels[0].source!==this.information.id?o.channels[0]:o.channels[1];const iA=[[{key:"base_fee_millisatoshi",value:r.base_fee_millisatoshi,title:"Base Fees (mSats)",width:34,type:B.UN.NUMBER},{key:"fee_per_millionth",value:r.fee_per_millionth,title:"Fee/Millionth",width:33,type:B.UN.NUMBER},{key:"delay",value:r.delay,title:"Delay",width:33,type:B.UN.NUMBER}]],ne="Remote policy for Channel: "+(i.alias||i.short_channel_id?i.alias&&i.short_channel_id?i.alias+" ("+i.short_channel_id+")":i.alias?i.alias:i.short_channel_id:i.channel_id);setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Remote Channel Policy",titleMessage:ne,message:iA}}}))},0)})}onChannelUpdate(i){"all"!==i&&"ONCHAIN"===i.state||("all"===i?(this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update All",message:[],titleMessage:"Update fee policy for all channels",flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:B.UN.NUMBER,inputValue:1e3,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:B.UN.NUMBER,inputValue:1,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[4])).subscribe(o=>{o&&this.store.dispatch((0,VA.fy)({payload:{feebase:o[0].inputValue,feeppm:o[1].inputValue,id:"all"}}))})):(this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"Update fee policy for Channel: "+(i.alias||i.short_channel_id?i.alias&&i.short_channel_id?i.alias+" ("+i.short_channel_id+")":i.alias?i.alias:i.short_channel_id:i.channel_id),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:B.UN.NUMBER,inputValue:""===i.fee_base_msat?0:i.fee_base_msat,step:100,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:B.UN.NUMBER,inputValue:i.fee_proportional_millionths,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[5])).subscribe(iA=>{iA&&this.store.dispatch((0,VA.fy)({payload:{feebase:iA[0].inputValue,feeppm:iA[1].inputValue,id:i.channel_id}}))})),this.applyFilter())}percentHintFunction(i){return(i/1e4).toString()+"%"}onChannelClose(i){this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Close Channel",titleMessage:"Closing channel: "+(i.alias||i.short_channel_id?i.alias&&i.short_channel_id?i.alias+" ("+i.short_channel_id+")":i.alias?i.alias:i.short_channel_id:i.channel_id),noBtnText:"Cancel",yesBtnText:"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[6])).subscribe(o=>{o&&this.store.dispatch((0,VA.w0)({payload:{id:i.id||"",channelId:i.channel_id||"",force:!1}}))})}onChannelClick(i,o){this.store.dispatch((0,C.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:Da}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column||"","_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.peer_connected?"connected":"disconnected")+(i.channel_id?i.channel_id.toLowerCase():"")+(i.short_channel_id?i.short_channel_id.toLowerCase():"")+(i.id?i.id.toLowerCase():"")+(i.alias?i.alias.toLowerCase():"")+(i.private?"private":"public")+(i.state?i.state.toLowerCase():"")+(i.funding_txid?i.funding_txid.toLowerCase():"")+(i.to_them_msat?i.to_them_msat/1e3:"")+(i.to_us_msat?i.to_us_msat/1e3:"")+(i.total_msat?i.total_msat/1e3:"")+(i.their_reserve_msat?i.their_reserve_msat/1e3:"")+(i.our_reserve_msat?i.our_reserve_msat/1e3:"")+(i.spendable_msat?i.spendable_msat/1e3:"");break;case"private":r=i?.private?"private":"public";break;case"connected":r=i?.peer_connected?"connected":"disconnected";break;case"msatoshi_total":r=((i.total_msat||0)/1e3).toString()||"";break;case"spendable_msatoshi":r=((i.spendable_msat||0)/1e3).toString()||"";break;case"msatoshi_to_us":r=((i.to_us_msat||0)/1e3).toString()||"";break;case"msatoshi_to_them":r=((i.to_them_msat||0)/1e3).toString()||"";break;case"our_channel_reserve_satoshis":r=((i.our_reserve_msat||0)/1e3).toString()||"";break;case"their_channel_reserve_satoshis":r=((i.their_reserve_msat||0)/1e3).toString()||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"connected"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadChannelsTable(i){this.channels=new z.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,r)=>{switch(r){case"msatoshi_total":return o.total_msat;case"spendable_msatoshi":return o.spendable_msat;case"msatoshi_to_us":return o.to_us_msat;case"msatoshi_to_them":return o.to_them_msat;case"our_channel_reserve_satoshis":return o.our_reserve_msat;case"their_channel_reserve_satoshis":return o.their_reserve_msat;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Open-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(b.H),A.rXU(kr.i),A.rXU(L.h),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-open-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Channels")}])],decls:69,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","short_channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","alias"],["matColumnDef","id"],["matColumnDef","channel_id"],["matColumnDef","funding_txid"],["matColumnDef","connected"],["matColumnDef","our_channel_reserve_satoshis"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","their_channel_reserve_satoshis"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","msatoshi_to_us"],["matColumnDef","msatoshi_to_them"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2),A.nrm(2,"div",3),A.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),A.EFF(6,"Filter By"),A.k0s(),A.j41(7,"mat-select",6),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(8,"perfect-scrollbar"),A.DNE(9,tc,2,2,"mat-option",7),A.k0s()()(),A.j41(10,"mat-form-field",5)(11,"mat-label"),A.EFF(12,"Filter"),A.k0s(),A.j41(13,"input",8),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.DNE(14,nc,1,0,"mat-progress-bar",9),A.j41(15,"div",10)(16,"table",11,0),A.qex(18,12),A.DNE(19,xa,1,0,"th",13)(20,Vi,3,2,"td",14),A.bVm(),A.qex(21,15),A.DNE(22,rc,2,0,"th",16)(23,ac,4,4,"td",14),A.bVm(),A.qex(24,17),A.DNE(25,oc,2,0,"th",16)(26,lc,4,4,"td",14),A.bVm(),A.qex(27,18),A.DNE(28,Ya,2,0,"th",16)(29,jr,4,4,"td",14),A.bVm(),A.qex(30,19),A.DNE(31,ti,2,0,"th",16)(32,cc,4,4,"td",14),A.bVm(),A.qex(33,20),A.DNE(34,gc,2,0,"th",16)(35,Bc,4,4,"td",14),A.bVm(),A.qex(36,21),A.DNE(37,fc,2,0,"th",16)(38,bc,2,1,"td",14),A.bVm(),A.qex(39,22),A.DNE(40,uc,2,0,"th",23)(41,hc,4,4,"td",14),A.bVm(),A.qex(42,24),A.DNE(43,Ec,2,0,"th",23)(44,wc,4,4,"td",14),A.bVm(),A.qex(45,25),A.DNE(46,ba,2,0,"th",23)(47,Cc,4,4,"td",14),A.bVm(),A.qex(48,26),A.DNE(49,BA,2,0,"th",23)(50,a,4,4,"td",14),A.bVm(),A.qex(51,27),A.DNE(52,u,2,0,"th",23)(53,x,4,4,"td",14),A.bVm(),A.qex(54,28),A.DNE(55,T,2,0,"th",23)(56,V,4,4,"td",14),A.bVm(),A.qex(57,29),A.DNE(58,G,2,0,"th",16)(59,TA,6,5,"td",14),A.bVm(),A.qex(60,30),A.DNE(61,XA,8,0,"th",31)(62,se,12,0,"td",32),A.bVm(),A.qex(63,33),A.DNE(64,rt,5,4,"td",34),A.bVm(),A.DNE(65,Ft,1,3,"tr",35)(66,rn,1,0,"tr",36)(67,dt,1,0,"tr",37),A.k0s()(),A.nrm(68,"mat-paginator",38),A.k0s()}2&o&&(A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(14,Fa).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(),A.Y8G("ngIf",r.apiCallStatus.status===r.apiCallStatusEnum.INITIATED),A.R7$(2),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.channels)("ngClass",A.eq3(15,Ac,""!==r.errorMessage)),A.R7$(49),A.Y8G("matFooterRowDef",A.lJ4(17,ec)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,UA.fg,yA.rl,yA.nJ,yA.MV,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,de.QX],styles:[".mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}))}return n(),l})();const Ge=["outputIdx"];function gt(n,l){if(1&n&&(A.j41(0,"div",27),A.nrm(1,"fa-icon",15),A.j41(2,"span"),A.EFF(3,"Change output balance "),A.j41(4,"strong"),A.EFF(5),A.nI1(6,"number"),A.k0s(),A.EFF(7," (Sats) may be insufficient for fee bumping, depending on the prevailing fee rates."),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(4),A.JRh(A.bMT(6,2,e.dustOutputValue))}}function yt(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Output Index required."),A.k0s())}function En(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Invalid index value."),A.k0s())}function bn(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fees is required."),A.k0s())}function Kt(n,l){if(1&n&&(A.j41(0,"div",28),A.nrm(1,"fa-icon",15),A.j41(2,"span"),A.EFF(3),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(2),A.JRh(e.bumpFeeError)}}let jn=(()=>{var n;class l{set outputIndx(i){i&&(this.outputIdx=i)}constructor(i,o,r,iA,ne,re){this.actions=i,this.dialogRef=o,this.data=r,this.store=iA,this.logger=ne,this.dataService=re,this.faUpRightFromSquare=v.k02,this.newAddress="",this.fees=null,this.outputIndex=null,this.faCopy=v.jPR,this.faInfoCircle=v.iW_,this.faExclamationTriangle=v.zpE,this.bumpFeeError="",this.flgShowDustWarning=!1,this.dustOutputValue=0,this.recommendedFee={fastestFee:0,halfHourFee:0,hourFee:0},this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.bumpFeeChannel=this.data.channel,this.logger.info(this.bumpFeeChannel),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.logger.info(this.selNode)}),this.dataService.getRecommendedFeeRates().pipe((0,I.Q)(this.unSubs[1])).subscribe({next:i=>{this.recommendedFee=i},error:i=>{this.logger.error(i)}}),this.dataService.getBlockExplorerTransaction(this.bumpFeeChannel.funding_txid).pipe((0,I.Q)(this.unSubs[2])).subscribe({next:i=>{this.outputIndex=0===i.vout.findIndex(o=>o.value===this.bumpFeeChannel.to_us_msat)?1:0,this.dustOutputValue=i.vout[this.outputIndex].value,this.flgShowDustWarning=this.dustOutputValue<1e3},error:i=>{this.logger.error(i)}})}onBumpFee(){if(!this.outputIndex&&0!==this.outputIndex||!this.fees)return!0;this.bumpFeeError="",this.store.dispatch((0,VA.XT)({payload:B.Ld[0]})),this.actions.pipe((0,nA.p)(i=>i.type===B.TC.SET_NEW_ADDRESS_CLN),(0,bt.s)(1)).subscribe(i=>{this.store.dispatch((0,VA.aB)({payload:{destination:i.payload,satoshi:"all",feerate:(1e3*+(this.fees||0)).toString()+"perkb",utxos:[this.bumpFeeChannel.funding_txid+":"+(this.outputIndex||"").toString()]}}))}),this.actions.pipe((0,nA.p)(i=>i.type===B.TC.SET_CHANNEL_TRANSACTION_RES_CLN),(0,bt.s)(1)).subscribe(i=>{this.store.dispatch((0,C.UI)({payload:"Successfully bumped the fee. Use the block explorer to verify transaction."})),this.dialogRef.close()}),this.actions.pipe((0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN),(0,I.Q)(this.unSubs[3])).subscribe(i=>{i.payload.status===B.wn.ERROR&&("SetChannelTransaction"===i.payload.action||"GenerateNewAddress"===i.payload.action)&&(this.logger.error(i.payload.message),this.bumpFeeError=i.payload.message)})}onExplorerClicked(i){window.open(this.selNode.settings.blockExplorerUrl+"/tx/"+i,"_blank")}resetData(){this.bumpFeeError="",this.fees=null,this.outputIndex=null,this.flgShowDustWarning=!1,this.outputIdx.control.setErrors(null)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(kA.En),A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(aA.gP),A.rXU(Dt.u))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-bump-fee"]],viewQuery:function(o,r){if(1&o&&A.GBs(Ge,5),2&o){let iA;A.mGM(iA=A.lsd())&&(r.outputIndx=iA.first)}},standalone:!1,decls:47,vars:20,consts:[["outputIndx","ngModel"],["fee","ngModel"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxLayout","column",1,"bordered-box","mb-1","p-2"],["fxLayoutAlign","start center",1,"pb-1","word-break"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"alert","alert-info"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","100"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between center"],["fxLayout","column","fxFlex","49"],["autoFocus","","matInput","","type","number","required","","name","outputIndx",3,"ngModelChange","step","min","ngModel"],[4,"ngIf"],["matInput","","type","number","name","fees","required","",3,"ngModelChange","step","min","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","default","",1,"mr-1",3,"click"],["mat-button","","color","primary","type","submit",3,"click"],["fxFlex","100",1,"alert","alert-warn"],["fxFlex","100",1,"alert","alert-danger","mt-1"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),A.EFF(5,"Bump Fee"),A.k0s()(),A.j41(6,"button",7),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onClose())}),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",8)(9,"form",9)(10,"div",10)(11,"p",11),A.EFF(12),A.j41(13,"fa-icon",12),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onExplorerClicked(null==r.bumpFeeChannel?null:r.bumpFeeChannel.funding_txid))}),A.k0s()(),A.j41(14,"div",13)(15,"div",14),A.nrm(16,"fa-icon",15),A.j41(17,"span",16)(18,"div"),A.EFF(19,"Fee rates recommended by mempool (sat/vByte):"),A.k0s(),A.j41(20,"div"),A.EFF(21),A.k0s(),A.j41(22,"div"),A.EFF(23),A.k0s(),A.j41(24,"div"),A.EFF(25),A.k0s()()(),A.DNE(26,gt,8,4,"div",17),A.j41(27,"div",18)(28,"mat-form-field",19)(29,"mat-label"),A.EFF(30,"Output Index"),A.k0s(),A.j41(31,"input",20,0),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.outputIndex,re)||(r.outputIndex=re),w.Njj(re)}),A.k0s(),A.DNE(33,yt,2,0,"mat-error",21)(34,En,2,0,"mat-error",21),A.k0s(),A.j41(35,"mat-form-field",19)(36,"mat-label"),A.EFF(37,"Fees (Sats/vByte)"),A.k0s(),A.j41(38,"input",22,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.fees,re)||(r.fees=re),w.Njj(re)}),A.k0s(),A.DNE(40,bn,2,0,"mat-error",21),A.k0s()(),A.DNE(41,Kt,4,2,"div",23),A.k0s()(),A.j41(42,"div",24)(43,"button",25),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(44,"Clear"),A.k0s(),A.j41(45,"button",26),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onBumpFee())}),A.EFF(46),A.k0s()()()()()()}if(2&o){const iA=A.sdS(32);A.R7$(12),A.SpI("Bump fee for transaction id: ",null==r.bumpFeeChannel?null:r.bumpFeeChannel.funding_txid," "),A.R7$(),A.Y8G("matTooltip",A.mNQ("Link to "+r.selNode.settings.blockExplorerUrl))("icon",r.faUpRightFromSquare),A.R7$(3),A.Y8G("icon",r.faInfoCircle),A.R7$(5),A.SpI("- High: ",r.recommendedFee.fastestFee||"Unknown"),A.R7$(2),A.SpI("- Medium: ",r.recommendedFee.halfHourFee||"Unknown"),A.R7$(2),A.SpI("- Low: ",r.recommendedFee.hourFee||"Unknown"),A.R7$(),A.Y8G("ngIf",r.flgShowDustWarning),A.R7$(5),A.Y8G("step",1)("min",0),A.R50("ngModel",r.outputIndex),A.R7$(2),A.Y8G("ngIf",null==iA.errors?null:iA.errors.required),A.R7$(),A.Y8G("ngIf",null==iA.errors?null:iA.errors.pendingChannelOutputIndex),A.R7$(4),A.Y8G("step",1)("min",0),A.R50("ngModel",r.fees),A.R7$(2),A.Y8G("ngIf",!r.fees),A.R7$(),A.Y8G("ngIf",""!==r.bumpFeeError),A.R7$(5),A.JRh(""!==r.bumpFeeError?"Retry Bump Fee":"Bump Fee")}},dependencies:[de.bT,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.vS,hA.cV,P.aY,fA.$z,QA.m2,QA.MM,UA.fg,yA.rl,yA.nJ,yA.TL,Q.DJ,Q.sA,Q.UI,HA.oV,cA.N,J.V,de.QX],encapsulation:2}))}return n(),l})();const $t=()=>["all"],Xn=n=>({"error-border":n}),ni=()=>["no_peer"],yn=n=>({width:n}),gs=n=>({"display-none":n});function ii(n,l){if(1&n&&(A.j41(0,"mat-option",39),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function Ti(n,l){1&n&&A.nrm(0,"mat-progress-bar",40)}function An(n,l){1&n&&A.nrm(0,"th",41)}function en(n,l){if(1&n&&(A.j41(0,"span",45),A.nrm(1,"fa-icon",46),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faEyeSlash)}}function tn(n,l){if(1&n&&(A.j41(0,"span",47),A.nrm(1,"fa-icon",46),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("icon",e.faEye)}}function nn(n,l){if(1&n&&(A.j41(0,"td",42),A.DNE(1,en,2,1,"span",43)(2,tn,2,1,"span",44),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",e.private),A.R7$(),A.Y8G("ngIf",!e.private)}}function Bs(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Alias"),A.k0s())}function fs(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,yn,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.alias)}}function us(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"ID"),A.k0s())}function hs(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,yn,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.id)}}function Es(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Channel ID"),A.k0s())}function ws(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,yn,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.channel_id)}}function Cs(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Funding Transaction ID"),A.k0s())}function ds(n,l){if(1&n&&(A.j41(0,"td",42)(1,"div",49)(2,"span",50),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,yn,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.funding_txid)}}function hi(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"Connected"),A.k0s())}function jt(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null!=e&&e.peer_connected?"Connected":"Disconnected")}}function on(n,l){1&n&&(A.j41(0,"th",48),A.EFF(1,"State"),A.k0s())}function dr(n,l){if(1&n&&(A.j41(0,"td",51),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("ngStyle",A.eq3(2,yn,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(),A.JRh(i.CLNChannelPendingState[null==e?null:e.state])}}function Wn(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Local Reserve (Sats)"),A.k0s())}function Qr(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.our_reserve_msat)/1e3,"1.0-0")," ")}}function Qs(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Remote Reserve (Sats)"),A.k0s())}function mr(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.their_reserve_msat)/1e3,"1.0-0")," ")}}function Xs(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Total (Sats)"),A.k0s())}function Mr(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.total_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function Zs(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Spendable (Sats)"),A.k0s())}function va(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.spendable_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function Ra(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Local Balance (Sats)"),A.k0s())}function si(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.to_us_msat)/1e3,(null==e?null:e.to_us_msat)<1e3?"1.0-4":"1.0-0")," ")}}function pr(n,l){1&n&&(A.j41(0,"th",52),A.EFF(1,"Remote Balance (Sats)"),A.k0s())}function Vc(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",53),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.to_them_msat)/1e3,(null==e?null:e.to_them_msat)<1e3?"1.0-4":"1.0-0")," ")}}function Wc(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",54)(1,"div",55)(2,"mat-select",56),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",57),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function Kc(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",57),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onChannelClose(o))}),A.EFF(1,"Close Channel"),A.k0s()}}function Xc(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",57),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onBumpFee(o))}),A.EFF(1,"Bump Fee"),A.k0s()}}function Zc(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",58)(1,"div",55)(2,"mat-select",59),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",57),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG();return w.Njj(iA.onChannelClick(r,o))}),A.EFF(5,"View Info"),A.k0s(),A.DNE(6,Kc,2,0,"mat-option",60)(7,Xc,2,0,"mat-option",60),A.k0s()()()}if(2&n){const e=l.$implicit;A.R7$(6),A.Y8G("ngIf","CHANNELD_SHUTTING_DOWN"===e.state||"CLOSINGD_SIGEXCHANGE"===e.state||!e.peer_connected&&"CHANNELD_NORMAL"===e.state),A.R7$(),A.Y8G("ngIf","CHANNELD_AWAITING_LOCKIN"===e.state)}}function qc(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No peers connected. Add a peer in order to open a channel."),A.k0s())}function $c(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No pending/inactive channel available."),A.k0s())}function A0(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting pending/inactive channels..."),A.k0s())}function e0(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function t0(n,l){if(1&n&&(A.j41(0,"td",61),A.DNE(1,qc,2,0,"p",62)(2,$c,2,0,"p",62)(3,A0,2,0,"p",62)(4,e0,2,1,"p",62),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function n0(n,l){if(1&n&&A.nrm(0,"tr",63),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,gs,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function i0(n,l){1&n&&A.nrm(0,"tr",64)}function s0(n,l){1&n&&A.nrm(0,"tr",65)}let r0=(()=>{var n;class l{constructor(i,o,r,iA,ne){this.logger=i,this.store=o,this.rtlEffects=r,this.commonService=iA,this.camelCaseWithReplace=ne,this.faEye=v.pS3,this.faEyeSlash=v.k6j,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_inactive_channels",recordsPerPage:B.md,sortBy:"alias",sortOrder:B.oi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channelsData=[],this.channels=new z.I6([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=B.G,this.selFilter="",this.CLNChannelPendingState=B.Zb,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.selNode=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.GX).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.information=i.information,this.numPeers=i.numPeers,this.totalBalance=i.balance.totalBalance||0,this.logger.info(i)}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("private"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.channelsData=[...i.pendingChannels,...i.inactiveChannels],this.channelsData=this.channelsData.sort((o,r)=>this.CLNChannelPendingState[o.state||""]>=this.CLNChannelPendingState[r.state||""]?1:-1),this.channelsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(this.channelsData),this.logger.info(i)}),this.store.select(j._c).pipe((0,I.Q)(this.unSubs[4])).subscribe(i=>{this.selNode=i})}ngAfterViewInit(){this.channelsData&&this.channelsData.length>0&&this.loadChannelsTable(this.channelsData)}onBumpFee(i){this.store.dispatch((0,C.xO)({payload:{data:{channel:i,component:jn}}}))}onChannelClick(i,o){this.store.dispatch((0,C.xO)({payload:{data:{channel:i,selNode:this.selNode,showCopy:!0,component:Da}}}))}onChannelClose(i){this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Force Close Channel",titleMessage:"Force closing channel: "+(i.alias||i.short_channel_id?i.alias&&i.short_channel_id?i.alias+" ("+i.short_channel_id+")":i.alias?i.alias:i.short_channel_id:i.channel_id),noBtnText:"Cancel",yesBtnText:"Force Close"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[3])).subscribe(o=>{o&&this.store.dispatch((0,VA.w0)({payload:{id:i.id,channelId:i.channel_id,force:!0}}))})}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column||"","_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.peer_connected?"connected":"disconnected")+(i.channel_id?i.channel_id.toLowerCase():"")+(i.short_channel_id?i.short_channel_id.toLowerCase():"")+(i.id?i.id.toLowerCase():"")+(i.alias?i.alias.toLowerCase():"")+(i.private?"private":"public")+(i.state&&this.CLNChannelPendingState[i.state]?this.CLNChannelPendingState[i.state].toLowerCase():"")+(i.funding_txid?i.funding_txid.toLowerCase():"")+(i.to_us_msat?i.to_us_msat:"")+(i.to_them_msat?i.to_them_msat/1e3:"")+(i.total_msat?i.total_msat/1e3:"")+(i.their_reserve_msat?i.their_reserve_msat/1e3:"")+(i.our_reserve_msat?i.our_reserve_msat/1e3:"")+(i.spendable_msat?i.spendable_msat/1e3:"");break;case"private":r=i?.private?"private":"public";break;case"connected":r=i?.peer_connected?"connected":"disconnected";break;case"msatoshi_total":r=((i.total_msat||0)/1e3).toString()||"";break;case"spendable_msatoshi":r=((i.spendable_msat||0)/1e3).toString()||"";break;case"msatoshi_to_us":r=((i.to_us_msat||0)/1e3).toString()||"";break;case"msatoshi_to_them":r=((i.to_them_msat||0)/1e3).toString()||"";break;case"our_channel_reserve_satoshis":r=((i.our_reserve_msat||0)/1e3).toString()||"";break;case"their_channel_reserve_satoshis":r=((i.their_reserve_msat||0)/1e3).toString()||"";break;case"state":r=i?.state?this.CLNChannelPendingState[i?.state]:"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"connected"===this.selFilterBy||"state"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadChannelsTable(i){this.channels=new z.I6([...i]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,r)=>{switch(r){case"msatoshi_total":return o.total_msat;case"spendable_msatoshi":return o.spendable_msat;case"msatoshi_to_us":return o.to_us_msat;case"msatoshi_to_them":return o.to_them_msat;case"our_channel_reserve_satoshis":return o.our_reserve_msat;case"their_channel_reserve_satoshis":return o.their_reserve_msat;case"state":return this.CLNChannelPendingState[o.state];default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"Pending-inactive-channels")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(b.H),A.rXU(L.h),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-pending-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Channels")}])],decls:66,vars:18,consts:[["table",""],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"table-container","w-100",3,"perfectScrollbar"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","private"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","id"],["matColumnDef","channel_id"],["matColumnDef","funding_txid"],["matColumnDef","connected"],["matColumnDef","state"],["mat-cell","",3,"ngStyle",4,"matCellDef"],["matColumnDef","our_channel_reserve_satoshis"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","their_channel_reserve_satoshis"],["matColumnDef","msatoshi_total"],["matColumnDef","spendable_msatoshi"],["matColumnDef","msatoshi_to_us"],["matColumnDef","msatoshi_to_them"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","5",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-cell","",3,"ngStyle"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","5"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2),A.nrm(2,"div",3),A.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),A.EFF(6,"Filter By"),A.k0s(),A.j41(7,"mat-select",6),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(8,"perfect-scrollbar"),A.DNE(9,ii,2,2,"mat-option",7),A.k0s()()(),A.j41(10,"mat-form-field",5)(11,"mat-label"),A.EFF(12,"Filter"),A.k0s(),A.j41(13,"input",8),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.DNE(14,Ti,1,0,"mat-progress-bar",9),A.j41(15,"div",10)(16,"table",11,0),A.qex(18,12),A.DNE(19,An,1,0,"th",13)(20,nn,3,2,"td",14),A.bVm(),A.qex(21,15),A.DNE(22,Bs,2,0,"th",16)(23,fs,4,4,"td",14),A.bVm(),A.qex(24,17),A.DNE(25,us,2,0,"th",16)(26,hs,4,4,"td",14),A.bVm(),A.qex(27,18),A.DNE(28,Es,2,0,"th",16)(29,ws,4,4,"td",14),A.bVm(),A.qex(30,19),A.DNE(31,Cs,2,0,"th",16)(32,ds,4,4,"td",14),A.bVm(),A.qex(33,20),A.DNE(34,hi,2,0,"th",16)(35,jt,2,1,"td",14),A.bVm(),A.qex(36,21),A.DNE(37,on,2,0,"th",16)(38,dr,2,4,"td",22),A.bVm(),A.qex(39,23),A.DNE(40,Wn,2,0,"th",24)(41,Qr,4,4,"td",14),A.bVm(),A.qex(42,25),A.DNE(43,Qs,2,0,"th",24)(44,mr,4,4,"td",14),A.bVm(),A.qex(45,26),A.DNE(46,Xs,2,0,"th",24)(47,Mr,4,4,"td",14),A.bVm(),A.qex(48,27),A.DNE(49,Zs,2,0,"th",24)(50,va,4,4,"td",14),A.bVm(),A.qex(51,28),A.DNE(52,Ra,2,0,"th",24)(53,si,4,4,"td",14),A.bVm(),A.qex(54,29),A.DNE(55,pr,2,0,"th",24)(56,Vc,4,4,"td",14),A.bVm(),A.qex(57,30),A.DNE(58,Wc,6,0,"th",31)(59,Zc,8,2,"td",32),A.bVm(),A.qex(60,33),A.DNE(61,t0,5,4,"td",34),A.bVm(),A.DNE(62,n0,1,3,"tr",35)(63,i0,1,0,"tr",36)(64,s0,1,0,"tr",37),A.k0s()(),A.nrm(65,"mat-paginator",38),A.k0s()}2&o&&(A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(14,$t).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(),A.Y8G("ngIf",r.apiCallStatus.status===r.apiCallStatusEnum.INITIATED),A.R7$(2),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.channels)("ngClass",A.eq3(15,Xn,""!==r.errorMessage)),A.R7$(46),A.Y8G("matFooterRowDef",A.lJ4(17,ni)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,de.QX],styles:[".mat-column-private[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return n(),l})();const a0=()=>["all"],o0=n=>({"error-border":n}),l0=()=>["no_peer"],vc=n=>({"mr-0":n}),dc=n=>({width:n}),c0=n=>({"display-none":n});function g0(n,l){if(1&n&&(A.j41(0,"mat-option",34),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function B0(n,l){1&n&&A.nrm(0,"mat-progress-bar",35)}function f0(n,l){1&n&&A.nrm(0,"th",36)}function u0(n,l){if(1&n&&A.nrm(0,"span",40),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,vc,e.screenSize===e.screenSizeEnum.XS))}}function h0(n,l){if(1&n&&A.nrm(0,"span",41),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,vc,e.screenSize===e.screenSizeEnum.XS))}}function E0(n,l){if(1&n&&(A.j41(0,"td",37),A.DNE(1,u0,1,3,"span",38)(2,h0,1,3,"span",39),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",null==e?null:e.connected),A.R7$(),A.Y8G("ngIf",!(null!=e&&e.connected))}}function w0(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Alias"),A.k0s())}function C0(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,dc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.alias)}}function d0(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"ID"),A.k0s())}function Q0(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,dc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.id)}}function m0(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Network Address"),A.k0s())}function M0(n,l){1&n&&(A.j41(0,"span"),A.EFF(1,","),A.nrm(2,"br"),A.k0s())}function p0(n,l){if(1&n&&(A.j41(0,"span",44),A.EFF(1),A.DNE(2,M0,3,0,"span",46),A.k0s()),2&n){const e=l.$implicit,i=l.last;A.R7$(),A.JRh(e),A.R7$(),A.Y8G("ngIf",!i)}}function I0(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",43),A.DNE(2,p0,3,2,"span",45),A.k0s()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,dc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(),A.Y8G("ngForOf",null==e?null:e.netaddr)}}function D0(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",50),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function F0(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",50),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onPeerDetach(o))}),A.EFF(1,"Disconnect"),A.k0s()}}function y0(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",50),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onConnectPeer(o))}),A.EFF(1,"Reconnect"),A.k0s()}}function x0(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",51)(1,"div",48)(2,"mat-select",49),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",50),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG();return w.Njj(iA.onPeerClick(r,o))}),A.EFF(5,"View Info"),A.k0s(),A.j41(6,"mat-option",50),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onOpenChannel(o))}),A.EFF(7,"Open Channel"),A.k0s(),A.DNE(8,F0,2,0,"mat-option",52)(9,y0,2,0,"mat-option",52),A.k0s()()()}if(2&n){const e=l.$implicit;A.R7$(8),A.Y8G("ngIf",e.connected),A.R7$(),A.Y8G("ngIf",!e.connected)}}function Y0(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No connected peer."),A.k0s())}function b0(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting peers..."),A.k0s())}function v0(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function R0(n,l){if(1&n&&(A.j41(0,"td",53),A.DNE(1,Y0,2,0,"p",46)(2,b0,2,0,"p",46)(3,v0,2,1,"p",46),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function S0(n,l){if(1&n&&A.nrm(0,"tr",54),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,c0,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function N0(n,l){1&n&&A.nrm(0,"tr",55)}function T0(n,l){1&n&&A.nrm(0,"tr",56)}let P0=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.logger=i,this.store=o,this.rtlEffects=r,this.actions=iA,this.commonService=ne,this.camelCaseWithReplace=re,this.faUsers=v.gdJ,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:B.md,sortBy:"alias",sortOrder:B.oi.DESCENDING},this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new z.I6([]),this.utxos=[],this.information={},this.availableBalance=0,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.kQ).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.information=i.information,this.availableBalance=i.balance.totalBalance||0}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("connected"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.os).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=i.peers||[],this.peersData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPeersTable(this.peersData),this.logger.info(i)}),this.store.select(tA.Al).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.utxos=this.commonService.sortAscByKey(i.utxos?.filter(o=>"confirmed"===o.status),"value")}),this.actions.pipe((0,I.Q)(this.unSubs[4]),(0,nA.p)(i=>i.type===B.TC.SET_PEERS_CLN)).subscribe(i=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(i,o){this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Peer Information",goToFieldValue:i.id,goToName:"Graph lookup",goToLink:"/cln/graph/lookups",showQRName:"Public Key",showQRField:i.id,message:[[{key:"id",value:i.id,title:"Public Key",width:100}],[{key:"netaddr",value:i.netaddr,title:"Address",width:100}],[{key:"alias",value:i.alias,title:"Alias",width:50},{key:"connected",value:i.connected?"True":"False",title:"Connected",width:50}]]}}}))}onConnectPeer(i){this.store.dispatch((0,C.xO)({payload:{data:{message:{peer:i.id?i:null,information:this.information,balance:this.availableBalance},component:Ur}}}))}onOpenChannel(i){this.store.dispatch((0,C.xO)({payload:{data:{alertTitle:"Open Channel",message:{peer:i,information:this.information,balance:this.availableBalance,utxos:this.utxos},newlyAdded:!1,component:Hr}}}))}onPeerDetach(i){this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(i.alias?i.alias:i.id),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[5])).subscribe(r=>{r&&this.store.dispatch((0,VA.ed)({payload:{id:i.id,force:!1}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.peers.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=JSON.stringify(i).toLowerCase();break;case"connected":r=i?.connected?"connected":"disconnected";break;case"netaddr":r=i.netaddr?i.netaddr.reduce((iA,ne)=>iA+ne," "):"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"connected"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadPeersTable(i){this.peers=new z.I6([...i]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,r)=>{if("netaddr"===r){if(o.netaddr&&o.netaddr[0]){const iA=o.netaddr[0].toString().split(".");return iA[0]?+iA[0]:o.netaddr[0]}return""}return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null},this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.peers.data&&this.peers.data.length>0&&this.commonService.downloadFile(this.peers.data,"Peers")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(b.H),A.rXU(kA.En),A.rXU(L.h),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-peers"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Peers")}])],decls:47,vars:19,consts:[["peersForm","ngForm"],["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-x-hidden","overflow-y-hidden",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","connected"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Connected",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","id"],["matColumnDef","netaddr"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Connected"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["class","ellipsis-child",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",2)(1,"form",3,0)(3,"button",4),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onConnectPeer({}))}),A.EFF(4,"Add Peer"),A.k0s()(),A.j41(5,"div",5)(6,"div",6)(7,"div",7),A.nrm(8,"fa-icon",8),A.j41(9,"span",9),A.EFF(10,"Connected Peers"),A.k0s()(),A.j41(11,"div",10)(12,"mat-form-field",11)(13,"mat-label"),A.EFF(14,"Filter By"),A.k0s(),A.j41(15,"mat-select",12),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(16,"perfect-scrollbar"),A.DNE(17,g0,2,2,"mat-option",13),A.k0s()()(),A.j41(18,"mat-form-field",11)(19,"mat-label"),A.EFF(20,"Filter"),A.k0s(),A.j41(21,"input",14),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(22,"div",15),A.DNE(23,B0,1,0,"mat-progress-bar",16),A.j41(24,"table",17,1),A.qex(26,18),A.DNE(27,f0,1,0,"th",19)(28,E0,3,2,"td",20),A.bVm(),A.qex(29,21),A.DNE(30,w0,2,0,"th",22)(31,C0,4,4,"td",20),A.bVm(),A.qex(32,23),A.DNE(33,d0,2,0,"th",22)(34,Q0,4,4,"td",20),A.bVm(),A.qex(35,24),A.DNE(36,m0,2,0,"th",22)(37,I0,3,4,"td",20),A.bVm(),A.qex(38,25),A.DNE(39,D0,6,0,"th",26)(40,x0,10,2,"td",27),A.bVm(),A.qex(41,28),A.DNE(42,R0,4,3,"td",29),A.bVm(),A.DNE(43,S0,1,3,"tr",30)(44,N0,1,0,"tr",31)(45,T0,1,0,"tr",32),A.k0s()(),A.nrm(46,"mat-paginator",33),A.k0s()()}2&o&&(A.R7$(8),A.Y8G("icon",r.faUsers),A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(15,a0).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(2),A.Y8G("ngIf",r.apiCallStatus.status===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.peers)("ngClass",A.eq3(16,o0,""!==r.errorMessage)),A.R7$(19),A.Y8G("matFooterRowDef",A.lJ4(18,l0)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.qT,hA.me,hA.BC,hA.cb,hA.vS,hA.cV,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld],styles:[".mat-column-connected[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return n(),l})();const U0=["queryRoutesForm"],L0=n=>({"overflow-auto error-border":n,"overflow-auto":!0}),Rc=n=>({width:n});function G0(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Destination pubkey is required."),A.k0s())}function z0(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Amount is required."),A.k0s())}function k0(n,l){1&n&&A.nrm(0,"mat-progress-bar",36)}function H0(n,l){1&n&&(A.j41(0,"th",37),A.EFF(1,"ID"),A.k0s())}function j0(n,l){if(1&n&&(A.j41(0,"td",38)(1,"div",39)(2,"span",40),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Rc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.id)}}function O0(n,l){1&n&&(A.j41(0,"th",37),A.EFF(1,"Alias"),A.k0s())}function J0(n,l){if(1&n&&(A.j41(0,"td",38)(1,"div",39)(2,"span",40),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Rc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.alias)}}function _0(n,l){1&n&&(A.j41(0,"th",37),A.EFF(1,"Channel"),A.k0s())}function V0(n,l){if(1&n&&(A.j41(0,"td",38),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.channel)}}function W0(n,l){1&n&&(A.j41(0,"th",37),A.EFF(1,"Direction"),A.k0s())}function K0(n,l){if(1&n&&(A.j41(0,"td",38),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.direction)}}function X0(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Delay"),A.k0s())}function Z0(n,l){if(1&n&&(A.j41(0,"td",38)(1,"span",42),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI("",A.bMT(3,1,null==e?null:e.delay)," ")}}function q0(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Amount (Sats)"),A.k0s())}function $0(n,l){if(1&n&&(A.j41(0,"td",38)(1,"span",42),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.bMT(3,1,(null==e?null:e.amount_msat)/1e3))}}function Ag(n,l){1&n&&(A.j41(0,"th",43)(1,"div",44),A.EFF(2,"Actions"),A.k0s()())}function eg(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",45)(1,"button",46),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG();return w.Njj(iA.onHopClick(r,o))}),A.EFF(2,"View Info"),A.k0s()()}}function tg(n,l){1&n&&A.nrm(0,"tr",47)}function ng(n,l){1&n&&A.nrm(0,"tr",48)}let ig=(()=>{var n;class l{constructor(i,o,r){this.store=i,this.clnEffects=o,this.commonService=r,this.PAGE_ID="graph_lookup",this.tableSetting={tableId:"query_routes",recordsPerPage:B.md,sortBy:"id",sortOrder:B.oi.ASCENDING},this.destinationPubkey="",this.amount=null,this.qrHops=new z.I6([]),this.displayedColumns=[],this.flgLoading=[!1],this.faRoute=v.TBz,this.faExclamationTriangle=v.zpE,this.screenSize="",this.screenSizeEnum=B.f7,this.unSubs=[new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions")}),this.clnEffects.setQueryRoutesCL.pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.qrHops.data=[],i.route&&i.route.length&&i.route.length>0?(this.flgLoading[0]=!1,this.qrHops=new z.I6([...i.route])):this.flgLoading[0]="error",this.qrHops.sort=this.sort,this.qrHops.sortingDataAccessor=(o,r)=>o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null})}onQueryRoutes(){if(!this.destinationPubkey||!this.amount)return!0;this.flgLoading[0]=!0,this.store.dispatch((0,VA.T4)({payload:{destPubkey:this.destinationPubkey,amount:1e3*this.amount}}))}resetData(){this.destinationPubkey="",this.amount=null,this.flgLoading[0]=!1,this.qrHops.data=[],this.form.resetForm()}onHopClick(i,o){this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Route Information",message:[[{key:"id",value:i.id,title:"ID",width:100,type:B.UN.STRING}],[{key:"channel",value:i.channel,title:"Channel",width:50,type:B.UN.STRING},{key:"alias",value:i.alias,title:"Peer Alias",width:50,type:B.UN.STRING}],[{key:"amount_msat",value:i.amount_msat,title:"Amount (mSat)",width:34,type:B.UN.NUMBER},{key:"direction",value:i.direction,title:"Direction",width:33,type:B.UN.STRING},{key:"delay",value:i.delay,title:"Delay",width:33,type:B.UN.NUMBER}]]}}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(AA.il),A.rXU(kr.i),A.rXU(L.h))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-query-routes"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(U0,7)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.form=iA.first)}},standalone:!1,decls:55,vars:17,consts:[["queryRoutesForm","ngForm"],["destPubkey","ngModel"],["table",""],["fxLayout","column","fxFlex","100",1,"padding-gap"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",3,"ngSubmit"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxFlex","69","fxLayoutAlign","start end"],["matInput","","name","destinationPubkey","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","column","fxFlex","29","fxLayoutAlign","start end"],["matInput","","name","amount","tabindex","2","type","number","required","",3,"ngModelChange","step","min","ngModel"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","4"],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"table-container","mb-6",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","channel"],["matColumnDef","direction"],["matColumnDef","delay"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","msatoshi"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",3)(1,"form",4,0),A.bIt("ngSubmit",function(){w.eBV(iA);const re=A.sdS(2);return w.Njj(re.form.valid&&r.onQueryRoutes())}),A.j41(3,"div",5),A.nrm(4,"fa-icon",6),A.j41(5,"span"),A.EFF(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),A.k0s()(),A.j41(7,"mat-form-field",7)(8,"mat-label"),A.EFF(9,"Destination Pubkey"),A.k0s(),A.j41(10,"input",8,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.destinationPubkey,re)||(r.destinationPubkey=re),w.Njj(re)}),A.k0s(),A.DNE(12,G0,2,0,"mat-error",9),A.k0s(),A.j41(13,"mat-form-field",10)(14,"mat-label"),A.EFF(15,"Amount (Sats)"),A.k0s(),A.j41(16,"input",11),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.amount,re)||(r.amount=re),w.Njj(re)}),A.k0s(),A.DNE(17,z0,2,0,"mat-error",9),A.k0s(),A.j41(18,"div",12)(19,"button",13),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(20,"Clear"),A.k0s(),A.j41(21,"button",14),A.EFF(22,"Query Route"),A.k0s()()(),A.j41(23,"div",15)(24,"div",16),A.nrm(25,"fa-icon",17),A.j41(26,"span",18),A.EFF(27,"Transaction Route"),A.k0s()()(),A.j41(28,"div",19),A.DNE(29,k0,1,0,"mat-progress-bar",20),A.j41(30,"table",21,2),A.qex(32,22),A.DNE(33,H0,2,0,"th",23)(34,j0,4,4,"td",24),A.bVm(),A.qex(35,25),A.DNE(36,O0,2,0,"th",23)(37,J0,4,4,"td",24),A.bVm(),A.qex(38,26),A.DNE(39,_0,2,0,"th",23)(40,V0,2,1,"td",24),A.bVm(),A.qex(41,27),A.DNE(42,W0,2,0,"th",23)(43,K0,2,1,"td",24),A.bVm(),A.qex(44,28),A.DNE(45,X0,2,0,"th",29)(46,Z0,4,3,"td",24),A.bVm(),A.qex(47,30),A.DNE(48,q0,2,0,"th",29)(49,$0,4,3,"td",24),A.bVm(),A.qex(50,31),A.DNE(51,Ag,3,0,"th",32)(52,eg,3,0,"td",33),A.bVm(),A.DNE(53,tg,1,0,"tr",34)(54,ng,1,0,"tr",35),A.k0s()()()}2&o&&(A.R7$(4),A.Y8G("icon",r.faExclamationTriangle),A.R7$(6),A.R50("ngModel",r.destinationPubkey),A.R7$(2),A.Y8G("ngIf",!r.destinationPubkey),A.R7$(4),A.Y8G("step",1e3)("min",0),A.R50("ngModel",r.amount),A.R7$(),A.Y8G("ngIf",!r.amount),A.R7$(8),A.Y8G("icon",r.faRoute),A.R7$(4),A.Y8G("ngIf",!0===r.flgLoading[0]),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.qrHops)("ngClass",A.eq3(15,L0,"error"===r.flgLoading[0])),A.R7$(23),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns))},dependencies:[de.YU,de.bT,de.B3,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.vS,hA.cV,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,yA.TL,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.KS,z.$R,z.YZ,z.NB,M.Ld,J.V,de.QX],encapsulation:2}))}return n(),l})();function sg(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Message is required."),A.k0s())}let rg=(()=>{var n;class l{constructor(i,o,r){this.dataService=i,this.snackBar=o,this.logger=r,this.message="",this.signedMessage="",this.signature="",this.unSubs=[new g.B,new g.B]}onSign(){if(!this.message||""===this.message)return!0;this.dataService.signMessage(this.message).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.signedMessage=this.message,this.signature=i.zbase})}onMessageChange(){this.signedMessage!==this.message&&(this.signature="")}onCopyField(i){this.snackBar.open("Signature copied."),this.logger.info("Copied Text: "+i)}resetData(){this.message="",this.signature="",this.signedMessage=""}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(Dt.u),A.rXU(js.UG),A.rXU(aA.gP))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-sign"]],standalone:!1,decls:22,vars:4,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],[1,"my-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","start center",1,"signature-box","bordered-box","read-only"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","4","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"form",2,0)(3,"mat-form-field",3)(4,"mat-label"),A.EFF(5,"Message to sign"),A.k0s(),A.j41(6,"textarea",4),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.message,re)||(r.message=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onMessageChange())}),A.k0s(),A.DNE(7,sg,2,0,"mat-error",5),A.k0s(),A.j41(8,"div",6)(9,"button",7),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(10,"Clear Field"),A.k0s(),A.j41(11,"button",8),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onSign())}),A.EFF(12,"Sign"),A.k0s()(),A.nrm(13,"mat-divider",9),A.j41(14,"div",10)(15,"p"),A.EFF(16,"Generated Signature"),A.k0s()(),A.j41(17,"div",11),A.EFF(18),A.k0s(),A.j41(19,"div",12)(20,"button",13),A.bIt("copied",function(re){return w.eBV(iA),w.Njj(r.onCopyField(re))}),A.EFF(21,"Copy Signature"),A.k0s()()()()}2&o&&(A.R7$(6),A.R50("ngModel",r.message),A.R7$(),A.Y8G("ngIf",!r.message),A.R7$(11),A.JRh(r.signature),A.R7$(2),A.Y8G("payload",r.signature))},dependencies:[de.bT,hA.qT,hA.me,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,fA.$z,UA.fg,yA.rl,yA.nJ,yA.TL,sn.q,Q.DJ,Q.sA,Q.UI,Ji.U,cA.N],styles:[".signature-box[_ngcontent-%COMP%]{padding:1rem}"]}))}return n(),l})();function ag(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Message is required."),A.k0s())}function og(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Signature is required."),A.k0s())}function lg(n,l){1&n&&(A.j41(0,"p",13)(1,"mat-icon",14),A.EFF(2,"close"),A.k0s(),A.EFF(3,"Verification failed, please check message and signature"),A.k0s())}function cg(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Pubkey Used"),A.k0s())}function gg(n,l){if(1&n&&(A.j41(0,"div",20)(1,"p"),A.EFF(2),A.k0s()()),2&n){const e=A.XpG(2);A.R7$(2),A.JRh(null==e.verifyRes?null:e.verifyRes.pubkey)}}function Bg(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",21)(1,"button",22),A.bIt("copied",function(o){w.eBV(e);const r=A.XpG(2);return w.Njj(r.onCopyField(o))}),A.EFF(2,"Copy Pubkey"),A.k0s()()}if(2&n){const e=A.XpG(2);A.R7$(),A.Y8G("payload",null==e.verifyRes?null:e.verifyRes.pubkey)}}function fg(n,l){if(1&n&&(A.j41(0,"div",15),A.nrm(1,"mat-divider",16),A.j41(2,"div",17),A.DNE(3,cg,2,0,"p",6),A.k0s(),A.DNE(4,gg,3,1,"div",18)(5,Bg,3,1,"div",19),A.k0s()),2&n){const e=A.XpG();A.R7$(3),A.Y8G("ngIf",e.verifyRes.verified),A.R7$(),A.Y8G("ngIf",e.verifyRes.verified),A.R7$(),A.Y8G("ngIf",e.verifyRes.verified)}}let ug=(()=>{var n;class l{constructor(i,o,r){this.dataService=i,this.snackBar=o,this.logger=r,this.message="",this.verifiedMessage="",this.signature="",this.verifiedSignature="",this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null},this.unSubs=[new g.B,new g.B]}onVerify(){if(!this.message||""===this.message||!this.signature||""===this.signature)return!0;this.dataService.verifyMessage(this.message,this.signature).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.verifyRes=i,this.showVerifyStatus=!0,this.verifiedMessage=this.message,this.verifiedSignature=this.signature})}onChange(){(this.verifiedMessage!==this.message||this.verifiedSignature!==this.signature)&&(this.showVerifyStatus=!1,this.verifyRes={pubkey:"",verified:null})}resetData(){this.message="",this.signature="",this.verifyRes=null,this.showVerifyStatus=!1}onCopyField(i){this.snackBar.open("Pubkey copied."),this.logger.info("Copied Text: "+i)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(Dt.u),A.rXU(js.UG),A.rXU(aA.gP))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-verify"]],standalone:!1,decls:21,vars:6,consts:[["form","ngForm"],["sign","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["autoFocus","","matInput","","rows","1","required","","tabindex","1","name","message",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","signature","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxFlex","100","class","color-warn","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","3","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","4","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn"],[1,"mr-1","icon-small"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],[1,"my-2"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start","class","bordered-box read-only padding-gap",4,"ngIf"],["fxLayout","row","class","mt-2",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"bordered-box","read-only","padding-gap"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","5","rtlClipboard","","type","button",3,"copied","payload"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",2)(1,"form",3,0)(3,"mat-form-field",4)(4,"mat-label"),A.EFF(5,"Message to verify"),A.k0s(),A.j41(6,"textarea",5),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.message,re)||(r.message=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onChange())}),A.k0s(),A.DNE(7,ag,2,0,"mat-error",6),A.k0s(),A.j41(8,"mat-form-field",4)(9,"mat-label"),A.EFF(10,"Signature provided"),A.k0s(),A.j41(11,"input",7,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.signature,re)||(r.signature=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onChange())}),A.k0s(),A.DNE(13,og,2,0,"mat-error",6),A.k0s(),A.DNE(14,lg,4,0,"p",8),A.j41(15,"div",9)(16,"button",10),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(17,"Clear Fields"),A.k0s(),A.j41(18,"button",11),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onVerify())}),A.EFF(19,"Verify"),A.k0s()(),A.DNE(20,fg,6,3,"div",12),A.k0s()()}2&o&&(A.R7$(6),A.R50("ngModel",r.message),A.R7$(),A.Y8G("ngIf",!r.message),A.R7$(4),A.R50("ngModel",r.signature),A.R7$(2),A.Y8G("ngIf",!r.signature),A.R7$(),A.Y8G("ngIf",r.showVerifyStatus&&!r.verifyRes.verified),A.R7$(6),A.Y8G("ngIf",r.showVerifyStatus&&r.verifyRes.verified))},dependencies:[de.bT,hA.qT,hA.me,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,fA.$z,oA.An,UA.fg,yA.rl,yA.nJ,yA.TL,sn.q,Q.DJ,Q.sA,Q.UI,Ji.U,cA.N],encapsulation:2}))}return n(),l})();const hg=()=>["all"],Eg=()=>["no_event"],Qc=n=>({width:n}),wg=n=>({"display-none":n});function Cg(n,l){if(1&n&&(A.j41(0,"div",6),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.JRh(e.errorMessage)}}function dg(n,l){if(1&n&&(A.j41(0,"mat-option",14),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function Qg(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",7),A.nrm(1,"div",8),A.j41(2,"div",9)(3,"mat-form-field",10)(4,"mat-label"),A.EFF(5,"Filter By"),A.k0s(),A.j41(6,"mat-select",11),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilterBy,o)||(r.selFilterBy=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return o.selFilter="",w.Njj(o.applyFilter())}),A.j41(7,"perfect-scrollbar"),A.DNE(8,dg,2,2,"mat-option",12),A.k0s()()(),A.j41(9,"mat-form-field",10)(10,"mat-label"),A.EFF(11,"Filter"),A.k0s(),A.j41(12,"input",13),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilter,o)||(r.selFilter=o),w.Njj(o)}),A.bIt("input",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())})("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())}),A.k0s()()()()}if(2&n){const e=A.XpG();A.R7$(6),A.R50("ngModel",e.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(3,hg).concat(e.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",e.selFilter)}}function mg(n,l){1&n&&A.nrm(0,"mat-progress-bar",39)}function Mg(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Received Time"),A.k0s())}function pg(n,l){if(1&n&&(A.j41(0,"td",41),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.received_time),"dd/MMM/y HH:mm"))}}function Ig(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Resolved Time"),A.k0s())}function Dg(n,l){if(1&n&&(A.j41(0,"td",41),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.resolved_time),"dd/MMM/y HH:mm"))}}function Fg(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"In Channel ID"),A.k0s())}function yg(n,l){if(1&n&&(A.j41(0,"td",41),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.in_channel)}}function xg(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"In Channel"),A.k0s())}function Yg(n,l){if(1&n&&(A.j41(0,"td",41)(1,"div",42)(2,"span",43),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Qc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.in_channel_alias)}}function bg(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Out Channel ID"),A.k0s())}function vg(n,l){if(1&n&&(A.j41(0,"td",41),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.out_channel)}}function Rg(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Out Channel"),A.k0s())}function Sg(n,l){if(1&n&&(A.j41(0,"td",41)(1,"div",42)(2,"span",43),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Qc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.out_channel_alias)}}function Ng(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Payment Hash"),A.k0s())}function Tg(n,l){if(1&n&&(A.j41(0,"td",41)(1,"div",42)(2,"span",43),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Qc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.payment_hash)}}function Pg(n,l){1&n&&(A.j41(0,"th",44),A.EFF(1,"Amount In (Sats)"),A.k0s())}function Ug(n,l){if(1&n&&(A.j41(0,"td",41)(1,"span",45),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.in_msat)/1e3,(null==e?null:e.in_msat)<1e3?"1.0-4":"1.0-0")," ")}}function Lg(n,l){1&n&&(A.j41(0,"th",44),A.EFF(1,"Amount Out (Sats)"),A.k0s())}function Gg(n,l){if(1&n&&(A.j41(0,"td",41)(1,"span",45),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.out_msat)/1e3,(null==e?null:e.out_msat)<1e3?"1.0-4":"1.0-0")," ")}}function zg(n,l){1&n&&(A.j41(0,"th",44),A.EFF(1,"Fee (mSat)"),A.k0s())}function kg(n,l){if(1&n&&(A.j41(0,"span",45),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.SpI(" ",A.bMT(2,1,null==e?null:e.fee)," ")}}function Hg(n,l){if(1&n&&(A.j41(0,"span",45),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.SpI(" ",A.bMT(2,1,null==e?null:e.fee_msat)," ")}}function jg(n,l){if(1&n&&(A.j41(0,"td",41),A.DNE(1,kg,3,3,"span",46)(2,Hg,3,3,"span",46),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",null==e?null:e.fee),A.R7$(),A.Y8G("ngIf",!(null!=e&&e.fee)&&(null==e?null:e.fee_msat))}}function Og(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",50),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function Jg(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",51)(1,"button",52),A.bIt("click",function(o){const r=w.eBV(e).$implicit,iA=A.XpG(2);return w.Njj(iA.onForwardingEventClick(r,o))}),A.EFF(2,"View Info"),A.k0s()()}}function _g(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No forwarding history available."),A.k0s())}function Vg(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting forwarding history..."),A.k0s())}function Wg(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function Kg(n,l){if(1&n&&(A.j41(0,"td",53),A.DNE(1,_g,2,0,"p",54)(2,Vg,2,0,"p",54)(3,Wg,2,1,"p",54),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function Xg(n,l){if(1&n&&A.nrm(0,"tr",55),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,wg,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function Zg(n,l){1&n&&A.nrm(0,"tr",56)}function qg(n,l){1&n&&A.nrm(0,"tr",57)}function $g(n,l){if(1&n&&(A.j41(0,"div",15),A.DNE(1,mg,1,0,"mat-progress-bar",16),A.j41(2,"table",17,0),A.qex(4,18),A.DNE(5,Mg,2,0,"th",19)(6,pg,3,4,"td",20),A.bVm(),A.qex(7,21),A.DNE(8,Ig,2,0,"th",19)(9,Dg,3,4,"td",20),A.bVm(),A.qex(10,22),A.DNE(11,Fg,2,0,"th",19)(12,yg,2,1,"td",20),A.bVm(),A.qex(13,23),A.DNE(14,xg,2,0,"th",19)(15,Yg,4,4,"td",20),A.bVm(),A.qex(16,24),A.DNE(17,bg,2,0,"th",19)(18,vg,2,1,"td",20),A.bVm(),A.qex(19,25),A.DNE(20,Rg,2,0,"th",19)(21,Sg,4,4,"td",20),A.bVm(),A.qex(22,26),A.DNE(23,Ng,2,0,"th",19)(24,Tg,4,4,"td",20),A.bVm(),A.qex(25,27),A.DNE(26,Pg,2,0,"th",28)(27,Ug,4,4,"td",20),A.bVm(),A.qex(28,29),A.DNE(29,Lg,2,0,"th",28)(30,Gg,4,4,"td",20),A.bVm(),A.qex(31,30),A.DNE(32,zg,2,0,"th",28)(33,jg,3,2,"td",20),A.bVm(),A.qex(34,31),A.DNE(35,Og,6,0,"th",32)(36,Jg,3,0,"td",33),A.bVm(),A.qex(37,34),A.DNE(38,Kg,4,3,"td",35),A.bVm(),A.DNE(39,Xg,1,3,"tr",36)(40,Zg,1,0,"tr",37)(41,qg,1,0,"tr",38),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.forwardingHistoryEvents),A.R7$(37),A.Y8G("matFooterRowDef",A.lJ4(7,Eg)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)}}function AB(n,l){if(1&n&&A.nrm(0,"mat-paginator",58),2&n){const e=A.XpG();A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Sc=(()=>{var n;class l{constructor(i,o,r,iA,ne){this.logger=i,this.commonService=o,this.store=r,this.datePipe=iA,this.camelCaseWithReplace=ne,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:B.md,sortBy:"received_time",sortOrder:B.oi.DESCENDING},this.successfulEvents=[],this.displayedColumns=[],this.forwardingHistoryEvents=new z.I6([]),this.totalForwardedTransactions=0,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:B.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.successfulEvents=this.eventsData,this.totalForwardedTransactions=this.eventsData.length,this.paginator&&this.paginator.firstPage(),i.eventsData.firstChange||this.loadForwardingEventsTable(this.successfulEvents)),i.selFilter&&!i.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}ngOnInit(){this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=i.pageSettings.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.pageId)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.pipe((0,bt.s)(1)).subscribe(i=>{i.cln.apisCallStatus.FetchForwardingHistoryS.status===B.wn.UN_INITIATED&&!i.cln.forwardingHistory.listForwards?.length&&this.store.dispatch((0,VA.uK)({payload:{status:B.xk.SETTLED}}))}),this.store.select(tA.Ie).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData.length<=0&&i.forwardingHistory.listForwards&&(this.totalForwardedTransactions=i.forwardingHistory.totalForwards||0,this.successfulEvents=i.forwardingHistory.listForwards||[],this.successfulEvents&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.successfulEvents),this.logger.info(i))})}ngAfterViewInit(){setTimeout(()=>{this.successfulEvents.length>0&&this.loadForwardingEventsTable(this.successfulEvents)},0)}onForwardingEventClick(i,o){const r=[[{key:"status",value:"Settled",title:"Status",width:50,type:B.UN.STRING},{key:"fee",value:i.fee_msat,title:"Fee (mSats)",width:50,type:B.UN.NUMBER}],[{key:"received_time",value:i.received_time,title:"Received Time",width:50,type:B.UN.DATE_TIME},{key:"resolved_time",value:i.resolved_time,title:"Resolved Time",width:50,type:B.UN.DATE_TIME}],[{key:"in_channel",value:i.in_channel_alias,title:"Inbound Channel",width:50,type:B.UN.STRING},{key:"out_channel",value:i.out_channel_alias,title:"Outbound Channel",width:50,type:B.UN.STRING}],[{key:"in_msatoshi",value:i.in_msat,title:"In (mSats)",width:50,type:B.UN.NUMBER},{key:"out_msatoshi",value:i.out_msat,title:"Out (mSats)",width:50,type:B.UN.NUMBER}]];i.payment_hash&&r.unshift([{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:B.UN.STRING}]),this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Event Information",message:r}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(i){const o=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.received_time?this.datePipe.transform(new Date(1e3*i.received_time),"dd/MMM/y HH:mm")?.toLowerCase()+" ":"")+(i.resolved_time?this.datePipe.transform(new Date(1e3*i.resolved_time),"dd/MMM/y HH:mm")?.toLowerCase()+" ":"")+(i.in_channel?i.in_channel.toLowerCase()+" ":"")+(i.out_channel?i.out_channel.toLowerCase()+" ":"")+(i.in_channel_alias?i.in_channel_alias.toLowerCase()+" ":"")+(i.out_channel_alias?i.out_channel_alias.toLowerCase()+" ":"")+(i.in_msat?+i.in_msat/1e3+" ":"")+(i.out_msat?+i.out_msat/1e3+" ":"")+(i.fee_msat?i.fee_msat+" ":"");break;case"received_time":case"resolved_time":r=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":r=(+(i.fee_msat||0)).toString()||"";break;case"in_msatoshi":r=(+(i.in_msat||0)/1e3).toString()||"";break;case"out_msatoshi":r=(+(i.out_msat||0)/1e3).toString()||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return r.includes(o)}}loadForwardingEventsTable(i){this.forwardingHistoryEvents=new z.I6([...i]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,r)=>{switch(r){case"in_msatoshi":return o.in_msat;case"out_msatoshi":return o.out_msat;case"fee":return o.fee_msat;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(de.vh),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-forwarding-history"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Events")}]),A.OA$],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","in_channel_alias"],["matColumnDef","out_channel"],["matColumnDef","out_channel_alias"],["matColumnDef","payment_hash"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,r){1&o&&(A.j41(0,"div",1),A.DNE(1,Cg,2,1,"div",2)(2,Qg,13,4,"div",3)(3,$g,42,8,"div",4)(4,AB,1,3,"mat-paginator",5),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",""!==r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.ZF,M.Ld,de.QX,de.vh],encapsulation:2}))}return n(),l})();const eB=()=>["all"],tB=()=>["no_event"],Nc=n=>({width:n}),nB=n=>({"display-none":n});function iB(n,l){if(1&n&&(A.j41(0,"div",6),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.JRh(e.errorMessage)}}function sB(n,l){if(1&n&&(A.j41(0,"mat-option",17),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function rB(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",7)(1,"div",8),A.nrm(2,"fa-icon",9),A.j41(3,"span"),A.EFF(4,"Maximum 1,000 failed transactions only."),A.k0s()(),A.j41(5,"div",10),A.nrm(6,"div",11),A.j41(7,"div",12)(8,"mat-form-field",13)(9,"mat-label"),A.EFF(10,"Filter By"),A.k0s(),A.j41(11,"mat-select",14),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilterBy,o)||(r.selFilterBy=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return o.selFilter="",w.Njj(o.applyFilter())}),A.j41(12,"perfect-scrollbar"),A.DNE(13,sB,2,2,"mat-option",15),A.k0s()()(),A.j41(14,"mat-form-field",13)(15,"mat-label"),A.EFF(16,"Filter"),A.k0s(),A.j41(17,"input",16),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilter,o)||(r.selFilter=o),w.Njj(o)}),A.bIt("input",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())})("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())}),A.k0s()()()()()}if(2&n){const e=A.XpG();A.R7$(2),A.Y8G("icon",e.faExclamationTriangle),A.R7$(9),A.R50("ngModel",e.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(4,eB).concat(e.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",e.selFilter)}}function aB(n,l){1&n&&A.nrm(0,"mat-progress-bar",41)}function oB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Received Time"),A.k0s())}function lB(n,l){if(1&n&&(A.j41(0,"td",43),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.received_time),"dd/MMM/y HH:mm"))}}function cB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Resolved Time"),A.k0s())}function gB(n,l){if(1&n&&(A.j41(0,"td",43),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.resolved_time),"dd/MMM/y HH:mm"))}}function BB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"In Channel ID"),A.k0s())}function fB(n,l){if(1&n&&(A.j41(0,"td",43),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.in_channel)}}function uB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"In Channel"),A.k0s())}function hB(n,l){if(1&n&&(A.j41(0,"td",43)(1,"span",44)(2,"span",45),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Nc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.in_channel_alias)}}function EB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Out Channel ID"),A.k0s())}function wB(n,l){if(1&n&&(A.j41(0,"td",43),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.out_channel)}}function CB(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Out Channel"),A.k0s())}function dB(n,l){if(1&n&&(A.j41(0,"td",43)(1,"span",44)(2,"span",45),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Nc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.out_channel_alias)}}function QB(n,l){1&n&&(A.j41(0,"th",46),A.EFF(1,"Amount In (Sats)"),A.k0s())}function mB(n,l){if(1&n&&(A.j41(0,"td",43)(1,"span",47),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.in_msat)/1e3,(null==e?null:e.in_msat)<1e3?"1.0-4":"1.0-0")," ")}}function MB(n,l){1&n&&(A.j41(0,"th",46),A.EFF(1,"Amount Out (Sats)"),A.k0s())}function pB(n,l){if(1&n&&(A.j41(0,"td",43)(1,"span",47),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.out_msat)/1e3,(null==e?null:e.out_msat)<1e3?"1.0-4":"1.0-0")," ")}}function IB(n,l){1&n&&(A.j41(0,"th",46),A.EFF(1,"Fee (mSat)"),A.k0s())}function DB(n,l){if(1&n&&(A.j41(0,"span",47),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,null==e?null:e.fee,"1.0-0")," ")}}function FB(n,l){if(1&n&&(A.j41(0,"span",47),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,null==e?null:e.fee_msat,"1.0-0")," ")}}function yB(n,l){if(1&n&&(A.j41(0,"td",43),A.DNE(1,DB,3,4,"span",48)(2,FB,3,4,"span",48),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",null==e?null:e.fee),A.R7$(),A.Y8G("ngIf",!(null!=e&&e.fee)&&(null==e?null:e.fee_msat))}}function xB(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",49)(1,"div",50)(2,"mat-select",51),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",52),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function YB(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",53)(1,"button",54),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onFailedEventClick(o))}),A.EFF(2,"View Info"),A.k0s()()}}function bB(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No failed transaction available."),A.k0s())}function vB(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting failed transactions..."),A.k0s())}function RB(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function SB(n,l){if(1&n&&(A.j41(0,"td",55),A.DNE(1,bB,2,0,"p",56)(2,vB,2,0,"p",56)(3,RB,2,1,"p",56),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.failedForwardingEvents&&e.failedForwardingEvents.data)||(null==e.failedForwardingEvents||null==e.failedForwardingEvents.data?null:e.failedForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.failedForwardingEvents&&e.failedForwardingEvents.data)||(null==e.failedForwardingEvents||null==e.failedForwardingEvents.data?null:e.failedForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.failedForwardingEvents&&e.failedForwardingEvents.data)||(null==e.failedForwardingEvents||null==e.failedForwardingEvents.data?null:e.failedForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function NB(n,l){if(1&n&&A.nrm(0,"tr",57),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,nB,(null==e.failedForwardingEvents?null:e.failedForwardingEvents.data)&&(null==e.failedForwardingEvents||null==e.failedForwardingEvents.data?null:e.failedForwardingEvents.data.length)>0))}}function TB(n,l){1&n&&A.nrm(0,"tr",58)}function PB(n,l){1&n&&A.nrm(0,"tr",59)}function UB(n,l){if(1&n&&(A.j41(0,"div",18),A.DNE(1,aB,1,0,"mat-progress-bar",19),A.j41(2,"table",20,0),A.qex(4,21),A.DNE(5,oB,2,0,"th",22)(6,lB,3,4,"td",23),A.bVm(),A.qex(7,24),A.DNE(8,cB,2,0,"th",22)(9,gB,3,4,"td",23),A.bVm(),A.qex(10,25),A.DNE(11,BB,2,0,"th",22)(12,fB,2,1,"td",23),A.bVm(),A.qex(13,26),A.DNE(14,uB,2,0,"th",22)(15,hB,4,4,"td",23),A.bVm(),A.qex(16,27),A.DNE(17,EB,2,0,"th",22)(18,wB,2,1,"td",23),A.bVm(),A.qex(19,28),A.DNE(20,CB,2,0,"th",22)(21,dB,4,4,"td",23),A.bVm(),A.qex(22,29),A.DNE(23,QB,2,0,"th",30)(24,mB,4,4,"td",23),A.bVm(),A.qex(25,31),A.DNE(26,MB,2,0,"th",30)(27,pB,4,4,"td",23),A.bVm(),A.qex(28,32),A.DNE(29,IB,2,0,"th",30)(30,yB,3,2,"td",23),A.bVm(),A.qex(31,33),A.DNE(32,xB,6,0,"th",34)(33,YB,3,0,"td",35),A.bVm(),A.qex(34,36),A.DNE(35,SB,4,3,"td",37),A.bVm(),A.DNE(36,NB,1,3,"tr",38)(37,TB,1,0,"tr",39)(38,PB,1,0,"tr",40),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.failedForwardingEvents),A.R7$(34),A.Y8G("matFooterRowDef",A.lJ4(7,tB)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)}}function LB(n,l){if(1&n&&A.nrm(0,"mat-paginator",60),2&n){const e=A.XpG();A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let GB=(()=>{var n;class l{constructor(i,o,r,iA,ne){this.logger=i,this.commonService=o,this.store=r,this.datePipe=iA,this.camelCaseWithReplace=ne,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"failed",recordsPerPage:B.md,sortBy:"received_time",sortOrder:B.oi.DESCENDING},this.faExclamationTriangle=v.zpE,this.failedEvents=[],this.errorMessage="",this.displayedColumns=[],this.failedForwardingEvents=new z.I6([]),this.selFilter="",this.totalFailedTransactions=0,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,VA.uK)({payload:{status:B.xk.FAILED}})),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.Dv).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalFailedTransactions=i.failedForwardingHistory.totalForwards||0,this.failedEvents=i.failedForwardingHistory.listForwards||[],this.failedEvents&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadFailedEventsTable(this.failedEvents),this.logger.info(i)})}ngAfterViewInit(){this.failedEvents.length>0&&this.loadFailedEventsTable(this.failedEvents)}onFailedEventClick(i){const o=[[{key:"received_time",value:i.received_time,title:"Received Time",width:50,type:B.UN.DATE_TIME},{key:"resolved_time",value:i.resolved_time,title:"Resolved Time",width:50,type:B.UN.DATE_TIME}],[{key:"in_channel_alias",value:i.in_channel_alias,title:"Inbound Channel",width:50,type:B.UN.STRING},{key:"out_channel_alias",value:i.out_channel_alias,title:"Outbound Channel",width:50,type:B.UN.STRING}],[{key:"in_msatoshi",value:i.in_msat,title:"Amount In (mSats)",width:33,type:B.UN.NUMBER},{key:"out_msatoshi",value:i.out_msat,title:"Amount Out (mSats)",width:33,type:B.UN.NUMBER},{key:"fee",value:i.fee_msat,title:"Fee (mSats)",width:34,type:B.UN.NUMBER}]];i.payment_hash&&o?.unshift([{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:B.UN.STRING}]),this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Failed Event Information",message:o}}}))}applyFilter(){this.failedForwardingEvents.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.failedForwardingEvents.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.received_time?this.datePipe.transform(new Date(1e3*i.received_time),"dd/MMM/y HH:mm")?.toLowerCase()+" ":"")+(i.resolved_time?this.datePipe.transform(new Date(1e3*i.resolved_time),"dd/MMM/y HH:mm")?.toLowerCase()+" ":"")+(i.in_channel?i.in_channel.toLowerCase()+" ":"")+(i.out_channel?i.out_channel.toLowerCase()+" ":"")+(i.in_channel_alias?i.in_channel_alias.toLowerCase()+" ":"")+(i.out_channel_alias?i.out_channel_alias.toLowerCase()+" ":"")+(i.fee_msat?i.fee_msat+" ":"")+(i.in_msat?+i.in_msat/1e3+" ":"")+(i.out_msat?+i.out_msat/1e3+" ":"")+(i.fee_msat?i.fee_msat+" ":"");break;case"received_time":case"resolved_time":r=this.datePipe.transform(new Date(1e3*(i[this.selFilterBy]||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"fee":r=(i.fee_msat||0)?.toString()||"";break;case"in_msatoshi":r=(+(i.in_msat||0)/1e3).toString()||"";break;case"out_msatoshi":r=(+(i.out_msat||0)/1e3).toString()||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return r.includes(o)}}loadFailedEventsTable(i){this.failedForwardingEvents=new z.I6([...i]),this.failedForwardingEvents.sort=this.sort,this.failedForwardingEvents.sortingDataAccessor=(o,r)=>{switch(r){case"in_msatoshi":return o.in_msat;case"out_msatoshi":return o.out_msat;case"fee":return o.fee_msat;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.failedForwardingEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.failedForwardingEvents)}onDownloadCSV(){this.failedForwardingEvents&&this.failedForwardingEvents.data&&this.failedForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedForwardingEvents.data,"Failed-transactions")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(de.vh),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-failed-history"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Failed events")}])],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resolved_time"],["matColumnDef","in_channel"],["matColumnDef","in_channel_alias"],["matColumnDef","out_channel"],["matColumnDef","out_channel_alias"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","out_msatoshi"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","end center",4,"ngIf"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,r){1&o&&(A.j41(0,"div",1),A.DNE(1,iB,2,1,"div",2)(2,rB,18,5,"div",3)(3,UB,39,8,"div",4)(4,LB,1,3,"mat-paginator",5),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",""!==r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.ZF,M.Ld,de.QX,de.vh],encapsulation:2}))}return n(),l})();const zB=["tableIn"],kB=["tableOut"],HB=["paginatorIn"],jB=["paginatorOut"],OB=(n,l)=>({"mt-2":n,"mt-1":l}),JB=()=>["no_incoming_event"],_B=n=>({"mt-2":n}),VB=()=>["no_outgoing_event"],Sa=n=>({width:n}),Tc=n=>({"display-none":n});function WB(n,l){if(1&n&&(A.j41(0,"div",7),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.JRh(e.errorMessage)}}function KB(n,l){1&n&&A.nrm(0,"mat-progress-bar",34)}function XB(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Channel ID"),A.k0s())}function ZB(n,l){if(1&n&&(A.j41(0,"td",36)(1,"div",37)(2,"span",38),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Sa,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.channel_id)}}function qB(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Peer Alias"),A.k0s())}function $B(n,l){if(1&n&&(A.j41(0,"td",36)(1,"div",37)(2,"span",38),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Sa,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.alias)}}function Af(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Events"),A.k0s())}function ef(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.bMT(3,1,e.events))}}function tf(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Amount (Sats)"),A.k0s())}function nf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.total_amount)/1e3,(null==e?null:e.total_amount)<1e3?"1.0-4":"1.0-0"))}}function sf(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Fee (Sats)"),A.k0s())}function rf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.total_fee)/1e3,(null==e?null:e.total_fee)<1e3?"1.0-4":"1.0-0"))}}function af(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No incoming routing peer available."),A.k0s())}function of(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting incoming routing peers..."),A.k0s())}function lf(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function cf(n,l){if(1&n&&(A.j41(0,"td",41),A.DNE(1,af,2,0,"p",42)(2,of,2,0,"p",42)(3,lf,2,1,"p",42),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function gf(n,l){if(1&n&&A.nrm(0,"tr",43),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,Tc,(null==e.routingPeersIncoming?null:e.routingPeersIncoming.data)&&(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)>0))}}function Bf(n,l){1&n&&A.nrm(0,"tr",44)}function ff(n,l){1&n&&A.nrm(0,"tr",45)}function uf(n,l){1&n&&A.nrm(0,"mat-progress-bar",34)}function hf(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Channel ID"),A.k0s())}function Ef(n,l){if(1&n&&(A.j41(0,"td",36)(1,"div",37)(2,"span",38),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Sa,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.channel_id)}}function wf(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Peer Alias"),A.k0s())}function Cf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"div",37)(2,"span",38),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,Sa,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.alias)}}function df(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Events"),A.k0s())}function Qf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.bMT(3,1,e.events))}}function mf(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Amount (Sats)"),A.k0s())}function Mf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.total_amount)/1e3,(null==e?null:e.total_amount)<1e3?"1.0-4":"1.0-0"))}}function pf(n,l){1&n&&(A.j41(0,"th",39),A.EFF(1,"Fee (Sats)"),A.k0s())}function If(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(A.i5U(3,1,(null==e?null:e.total_fee)/1e3,(null==e?null:e.total_fee)<1e3?"1.0-4":"1.0-0"))}}function Df(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No outgoing routing peer available."),A.k0s())}function Ff(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting outgoing routing peers..."),A.k0s())}function yf(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function xf(n,l){if(1&n&&(A.j41(0,"td",41),A.DNE(1,Df,2,0,"p",42)(2,Ff,2,0,"p",42)(3,yf,2,1,"p",42),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function Yf(n,l){if(1&n&&A.nrm(0,"tr",43),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,Tc,(null==e.routingPeersOutgoing?null:e.routingPeersOutgoing.data)&&(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)>0))}}function bf(n,l){1&n&&A.nrm(0,"tr",44)}function vf(n,l){1&n&&A.nrm(0,"tr",45)}function Rf(n,l){if(1&n&&(A.j41(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11),A.EFF(4,"Incoming"),A.k0s(),A.nrm(5,"div",12),A.k0s(),A.j41(6,"div",13),A.DNE(7,KB,1,0,"mat-progress-bar",14),A.j41(8,"table",15,0),A.qex(10,16),A.DNE(11,XB,2,0,"th",17)(12,ZB,4,4,"td",18),A.bVm(),A.qex(13,19),A.DNE(14,qB,2,0,"th",17)(15,$B,4,4,"td",18),A.bVm(),A.qex(16,20),A.DNE(17,Af,2,0,"th",21)(18,ef,4,3,"td",18),A.bVm(),A.qex(19,22),A.DNE(20,tf,2,0,"th",21)(21,nf,4,4,"td",18),A.bVm(),A.qex(22,23),A.DNE(23,sf,2,0,"th",21)(24,rf,4,4,"td",18),A.bVm(),A.qex(25,24),A.DNE(26,cf,4,3,"td",25),A.bVm(),A.DNE(27,gf,1,3,"tr",26)(28,Bf,1,0,"tr",27)(29,ff,1,0,"tr",28),A.k0s()(),A.nrm(30,"mat-paginator",29,1),A.k0s(),A.j41(32,"div",30)(33,"div",10)(34,"div",11),A.EFF(35,"Outgoing"),A.k0s(),A.nrm(36,"div",12),A.k0s(),A.j41(37,"div",31),A.DNE(38,uf,1,0,"mat-progress-bar",14),A.j41(39,"table",32,2),A.qex(41,16),A.DNE(42,hf,2,0,"th",17)(43,Ef,4,4,"td",18),A.bVm(),A.qex(44,19),A.DNE(45,wf,2,0,"th",17)(46,Cf,4,4,"td",18),A.bVm(),A.qex(47,20),A.DNE(48,df,2,0,"th",21)(49,Qf,4,3,"td",18),A.bVm(),A.qex(50,22),A.DNE(51,mf,2,0,"th",21)(52,Mf,4,4,"td",18),A.bVm(),A.qex(53,23),A.DNE(54,pf,2,0,"th",21)(55,If,4,4,"td",18),A.bVm(),A.qex(56,33),A.DNE(57,xf,4,3,"td",25),A.bVm(),A.DNE(58,Yf,1,3,"tr",26)(59,bf,1,0,"tr",27)(60,vf,1,0,"tr",28),A.k0s(),A.nrm(61,"mat-paginator",29,3),A.k0s()()()),2&n){const e=A.XpG();A.R7$(2),A.Y8G("ngClass",A.l_i(22,OB,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),A.R7$(5),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersIncoming),A.R7$(19),A.Y8G("matFooterRowDef",A.lJ4(25,JB)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns),A.R7$(),A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),A.R7$(3),A.Y8G("ngClass",A.eq3(26,_B,e.screenSize!==e.screenSizeEnum.LG)),A.R7$(5),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.routingPeersOutgoing),A.R7$(19),A.Y8G("matFooterRowDef",A.lJ4(28,VB)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns),A.R7$(),A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Sf=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.commonService=o,this.store=r,this.camelCaseWithReplace=iA,this.eventsData=[],this.selFilter="",this.nodePageDefs=B.Jd,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:B.md,sortBy:"total_fee",sortOrder:B.oi.DESCENDING},this.successfulEvents=[],this.displayedColumns=[],this.routingPeersIncoming=new z.I6([]),this.routingPeersOutgoing=new z.I6([]),this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(i){i.eventsData&&(this.apiCallStatus={status:B.wn.COMPLETED,action:"FetchForwardingHistory"},this.eventsData=i.eventsData.currentValue,this.successfulEvents=this.eventsData,i.eventsData.firstChange||this.loadRoutingPeersTable(this.successfulEvents))}ngOnInit(){this.store.pipe((0,bt.s)(1)).subscribe(i=>{i.cln.apisCallStatus.FetchForwardingHistoryS.status===B.wn.UN_INITIATED&&!i.cln.forwardingHistory.listForwards?.length&&this.store.dispatch((0,VA.uK)({payload:{status:B.xk.SETTLED}}))}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.Ie).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.eventsData.length<=0&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.successfulEvents=i.forwardingHistory.listForwards||[],this.successfulEvents.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.successfulEvents),this.logger.info(i))})}ngAfterViewInit(){this.successfulEvents.length>0&&this.loadRoutingPeersTable(this.successfulEvents)}applyIncomingFilter(){this.routingPeersIncoming.filter=this.filterIn.toLowerCase()}applyOutgoingFilter(){this.routingPeersOutgoing.filter=this.filterOut.toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):"all"}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(i,o)=>JSON.stringify(i).toLowerCase().includes(o),this.routingPeersOutgoing.filterPredicate=(i,o)=>JSON.stringify(i).toLowerCase().includes(o)}loadRoutingPeersTable(i){if(i.length>0){const o=this.groupRoutingPeers(i);this.routingPeersIncoming=new z.I6(o[0]),this.routingPeersIncoming.sort=this.sortIn,this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new z.I6(o[1]),this.routingPeersOutgoing.sort=this.sortOut,this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new z.I6([]),this.routingPeersOutgoing=new z.I6([]);this.setFilterPredicate(),this.applyIncomingFilter(),this.applyOutgoingFilter(),this.logger.info(this.routingPeersIncoming),this.logger.info(this.routingPeersOutgoing)}groupRoutingPeers(i){const o=[],r=[];return i.forEach(iA=>{const ne=o?.find(ln=>ln.channel_id===iA.in_channel),re=r?.find(ln=>ln.channel_id===iA.out_channel);ne?(ne.events++,ne.total_amount=+ne.total_amount+ +(iA.in_msat||0),ne.total_fee=+(iA.in_msat||0)-+(iA.out_msat||0)+ +ne.total_fee):o.push({channel_id:iA.in_channel,alias:iA.in_channel_alias,events:1,total_amount:+(iA.in_msat||0),total_fee:+(iA.in_msat||0)-+(iA.out_msat||0)}),re?(re.events++,re.total_amount=+re.total_amount+ +(iA.out_msat||0),re.total_fee=+(iA.in_msat||0)-+(iA.out_msat||0)+ +re.total_fee):r.push({channel_id:iA.out_channel,alias:iA.out_channel_alias,events:1,total_amount:+(iA.out_msat||0),total_fee:+(iA.in_msat||0)-+(iA.out_msat||0)})}),[this.commonService.sortDescByKey(o,"total_fee"),this.commonService.sortDescByKey(r,"total_fee")]}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-routing-peers"]],viewQuery:function(o,r){if(1&o&&(A.GBs(zB,5,pA.B4),A.GBs(kB,5,pA.B4),A.GBs(HB,5),A.GBs(jB,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sortIn=iA.first),A.mGM(iA=A.lsd())&&(r.sortOut=iA.first),A.mGM(iA=A.lsd())&&(r.paginatorIn=iA.first),A.mGM(iA=A.lsd())&&(r.paginatorOut=iA.first)}},inputs:{eventsData:"eventsData",selFilter:"selFilter"},standalone:!1,features:[A.Jv_([{provide:H.xX,useValue:(0,B.on)("Peers")}]),A.OA$],decls:3,vars:2,consts:[["tableIn",""],["paginatorIn",""],["tableOut",""],["paginatorOut",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","w-100",3,"ngClass"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",1,"overflow-auto","incoming-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","channel_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","total_amount"],["matColumnDef","total_fee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","no_outgoing_event"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){1&o&&(A.j41(0,"div",4),A.DNE(1,WB,2,1,"div",5)(2,Rf,63,29,"div",6),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",""!==r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage))},dependencies:[de.YU,de.bT,de.B3,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.Ld,de.QX],encapsulation:2}))}return n(),l})();const Nf=()=>["all"],Tf=n=>({"error-border":n}),Pf=()=>["no_channel"],Pc=n=>({width:n}),Uf=n=>({"display-none":n});function Lf(n,l){if(1&n&&(A.j41(0,"mat-option",33),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function Gf(n,l){1&n&&A.nrm(0,"mat-progress-bar",34)}function zf(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Amount (Sats)"),A.k0s())}function kf(n,l){if(1&n&&(A.j41(0,"span",40),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,(null==e?null:e.amount_msat)/1e3,"1.0-2")," ")}}function Hf(n,l){if(1&n&&(A.qex(0),A.DNE(1,kf,3,4,"span",39),A.bVm()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function jf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",37),A.EFF(2),A.k0s(),A.DNE(3,Hf,2,1,"ng-container",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" Active HTLCs: ",null==e||null==e.htlcs?null:e.htlcs.length," "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Of(n,l){1&n&&(A.j41(0,"th",35),A.EFF(1,"Alias/Direction"),A.k0s())}function Jf(n,l){if(1&n&&(A.j41(0,"span",37),A.EFF(1),A.nI1(2,"titlecase"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.bMT(2,1,null==e?null:e.direction)," ")}}function _f(n,l){if(1&n&&(A.qex(0),A.DNE(1,Jf,3,3,"span",41),A.bVm()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function Vf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",37),A.EFF(2),A.k0s(),A.DNE(3,_f,2,1,"ng-container",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(null==e?null:e.alias),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Wf(n,l){1&n&&(A.j41(0,"th",42)(1,"span",40),A.EFF(2,"HTLC ID"),A.k0s()())}function Kf(n,l){if(1&n&&(A.j41(0,"span",40),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.bMT(2,1,null==e?null:e.id)," ")}}function Xf(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,Kf,3,3,"span",39),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function Zf(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.k0s(),A.DNE(3,Xf,2,1,"span",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(null==e?null:e.id),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function qf(n,l){1&n&&(A.j41(0,"th",42)(1,"span",40),A.EFF(2,"Expiry"),A.k0s()())}function $f(n,l){if(1&n&&(A.j41(0,"span",40),A.EFF(1),A.nI1(2,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,null==e?null:e.expiry,"1.0-0")," ")}}function Au(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,$f,3,4,"span",39),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function eu(n,l){if(1&n&&(A.j41(0,"td",36)(1,"span",40),A.EFF(2),A.k0s(),A.DNE(3,Au,2,1,"span",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(" "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function tu(n,l){1&n&&(A.j41(0,"th",43)(1,"span",40),A.EFF(2,"State"),A.k0s()())}function nu(n,l){if(1&n&&(A.j41(0,"span",40),A.EFF(1),A.nI1(2,"camelcaseWithReplace"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",A.i5U(2,1,null==e?null:e.state,"_")," ")}}function iu(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,nu,3,4,"span",39),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function su(n,l){if(1&n&&(A.j41(0,"td",44)(1,"span",40),A.EFF(2),A.k0s(),A.DNE(3,iu,2,1,"span",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(" "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function ru(n,l){1&n&&(A.j41(0,"th",43)(1,"span",40),A.EFF(2,"Local Trimmed"),A.k0s()())}function au(n,l){if(1&n&&(A.j41(0,"span",40),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",null!=e&&e.local_trimmed?"Yes":"No"," ")}}function ou(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,au,2,1,"span",39),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function lu(n,l){if(1&n&&(A.j41(0,"td",44)(1,"span",40),A.EFF(2),A.k0s(),A.DNE(3,ou,2,1,"span",38),A.k0s()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(" "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function cu(n,l){1&n&&(A.j41(0,"th",43)(1,"span",40),A.EFF(2,"Payment Hash"),A.k0s()())}function gu(n,l){if(1&n&&(A.j41(0,"span",48)(1,"span",49),A.EFF(2),A.k0s()()),2&n){const e=l.$implicit,i=A.XpG(3);A.Y8G("ngStyle",A.eq3(2,Pc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.payment_hash)}}function Bu(n,l){if(1&n&&(A.j41(0,"span"),A.DNE(1,gu,3,4,"span",47),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function fu(n,l){if(1&n&&(A.j41(0,"td",44)(1,"span",45)(2,"span",46),A.EFF(3),A.k0s()(),A.DNE(4,Bu,2,1,"span",38),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(3,Pc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(" "),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function uu(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",50)(1,"div",51)(2,"mat-select",52),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",53),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function hu(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",58)(1,"button",59),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2).$implicit,iA=A.XpG();return w.Njj(iA.onHTLCClick(o,r))}),A.EFF(2),A.k0s()()}if(2&n){const e=l.index;A.R7$(2),A.SpI("View ",e+1)}}function Eu(n,l){if(1&n&&(A.j41(0,"div"),A.DNE(1,hu,3,1,"div",57),A.k0s()),2&n){const e=A.XpG().$implicit;A.R7$(),A.Y8G("ngForOf",null==e?null:e.htlcs)}}function wu(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",54)(1,"span",55)(2,"button",56),A.bIt("click",function(){const o=w.eBV(e).$implicit;return w.Njj(o.is_expanded=!o.is_expanded)}),A.EFF(3),A.k0s()(),A.DNE(4,Eu,2,1,"div",38),A.k0s()}if(2&n){const e=l.$implicit;A.R7$(3),A.JRh(e.is_expanded?"Hide":"Show"),A.R7$(),A.Y8G("ngIf",e.is_expanded)}}function Cu(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No active htlc available."),A.k0s())}function du(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting active htlcs..."),A.k0s())}function Qu(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function mu(n,l){if(1&n&&(A.j41(0,"td",60),A.DNE(1,Cu,2,0,"p",38)(2,du,2,0,"p",38)(3,Qu,2,1,"p",38),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function Mu(n,l){if(1&n&&A.nrm(0,"tr",61),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,Uf,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function pu(n,l){1&n&&A.nrm(0,"tr",62)}function Iu(n,l){1&n&&A.nrm(0,"tr",63)}let Du=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.commonService=o,this.store=r,this.camelCaseWithReplace=iA,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"active_HTLCs",recordsPerPage:B.md,sortBy:"expiry",sortOrder:B.oi.DESCENDING},this.channels=new z.I6([]),this.channelsJSONArr=[],this.displayedColumns=[],this.htlcColumns=[],this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.BM).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:"");const o=[...i.activeChannels,...i.pendingChannels,...i.inactiveChannels];this.channelsJSONArr=o?.filter(r=>r.htlcs&&r.htlcs.length>0)||[],this.channelsJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadHTLCsTable(this.channelsJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.channelsJSONArr.length>0&&this.loadHTLCsTable(this.channelsJSONArr)}onHTLCClick(i,o){const r=[[{key:"alias",value:o.alias,title:"Alias",width:100,type:B.UN.STRING}],[{key:"amount_msat",value:(i.amount_msat||0)/1e3,title:"Amount (Sats)",width:50,type:B.UN.NUMBER},{key:"direction",value:this.commonService.titleCase(i.direction||""),title:"Direction",width:50,type:B.UN.STRING}],[{key:"expiry",value:i.expiry,title:"Expiry",width:50,type:B.UN.NUMBER},{key:"state",value:this.camelCaseWithReplace.transform(i.state||"","_"),title:"State",width:50,type:B.UN.STRING}],[{key:"id",value:i.id,title:"HTLC ID",width:50,type:B.UN.STRING},{key:"local_trimmed",value:i.local_trimmed,title:"Local Trimmed",width:50,type:B.UN.BOOLEAN}],[{key:"payment_hash",value:i.payment_hash,title:"Payment Hash",width:100,type:B.UN.STRING}]];this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"HTLC Information",message:r}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column||"","_"):this.commonService.titleCase(i)}setFilterPredicate(){this.channels.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.alias?i.alias.toLowerCase():"")+i.htlcs?.map(iA=>JSON.stringify(iA).toLowerCase()+(iA.local_trimmed?" yes ":" no "));break;case"direction":r=i.htlcs?.map(iA=>iA.direction+" ").toString()||"";break;case"id":r=i.htlcs?.map(iA=>iA.id+" ").toString()||"";break;case"expiry":r=i.htlcs?.map(iA=>iA.expiry+" ").toString()||"";break;case"state":r=i.htlcs?.map(iA=>this.camelCaseWithReplace.transform(iA.state||"","_").toLowerCase()+" ").toString()||"";break;case"payment_hash":r=i.htlcs?.map(iA=>iA.payment_hash+" ").toString()||"";break;case"local_trimmed":r=i.htlcs?.map(iA=>iA.local_trimmed?" yes ":" no ").toString()||"";break;case"amount_msat":r=i.htlcs?.map(iA=>(iA.amount_msat||0)/1e3)?.toString()||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return r.includes(o)}}loadHTLCsTable(i){this.channels=new z.I6(i?[...i]:[]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(o,r)=>{switch(r){case"amount_msat":return this.commonService.sortByKey(o.htlcs,r,"number",this.sort?.direction),o.htlcs&&o.htlcs.length?o.htlcs.length:null;case"id":case"payment_hash":case"state":return this.commonService.sortByKey(o.htlcs,r,"string",this.sort?.direction),o;case"direction":return this.commonService.sortByKey(o.htlcs,r,"string",this.sort?.direction),o.alias?o.alias:o.id?o.id:null;case"expiry":return this.commonService.sortByKey(o.htlcs,r,"number",this.sort?.direction),o;case"local_trimmed":return this.commonService.sortByKey(o.htlcs,r,"boolean",this.sort?.direction),o;default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.flattenHTLCs(),"ActiveHTLCs")}flattenHTLCs(){return JSON.parse(JSON.stringify(this.channels.data))?.reduce((r,iA)=>r.concat(iA.htlcs?iA.htlcs:iA),[])}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-channel-active-htlcs-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("HTLCs")}])],decls:48,vars:18,consts:[["table",""],["fxLayout","column",1,"padding-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","amount_msat"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","direction"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expiry"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","pl-3 htlc-row-span",4,"matHeaderCellDef"],["mat-cell","","class","pl-3",4,"matCellDef"],["matColumnDef","local_trimmed"],["matColumnDef","payment_hash"],["matColumnDef","actions"],["mat-header-cell","","class","px-2",4,"matHeaderCellDef"],["mat-cell","","class","px-2","fxLayout","column","fxLayoutAlign","center end",4,"matCellDef"],["matColumnDef","no_channel"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayoutAlign","start center",1,"htlc-row-span"],[4,"ngIf"],["fxLayoutAlign","end center","class","htlc-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-row-span"],["fxLayoutAlign","start center","class","htlc-row-span",4,"ngFor","ngForOf"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"pl-3","htlc-row-span"],["mat-cell","",1,"pl-3"],["fxLayout","row",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"ellipsis-child"],["fxLayoutAlign","start center","class","ellipsis-parent htlc-row-span",3,"ngStyle",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","htlc-row-span",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","",1,"px-2"],["fxLayoutAlign","end center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayout","column","fxLayoutAlign","center end",1,"px-2"],["fxLayoutAlign","end center",1,"htlc-group-head"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-htlc-expand",3,"click"],["class","htlc-group-details","fxLayoutAlign","end center",4,"ngFor","ngForOf"],["fxLayoutAlign","end center",1,"htlc-group-details"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-htlc-info",3,"click"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2),A.nrm(2,"div",3),A.j41(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),A.EFF(6,"Filter By"),A.k0s(),A.j41(7,"mat-select",6),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(8,"perfect-scrollbar"),A.DNE(9,Lf,2,2,"mat-option",7),A.k0s()()(),A.j41(10,"mat-form-field",5)(11,"mat-label"),A.EFF(12,"Filter"),A.k0s(),A.j41(13,"input",8),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(14,"div",9),A.DNE(15,Gf,1,0,"mat-progress-bar",10),A.j41(16,"table",11,0),A.qex(18,12),A.DNE(19,zf,2,0,"th",13)(20,jf,4,2,"td",14),A.bVm(),A.qex(21,15),A.DNE(22,Of,2,0,"th",13)(23,Vf,4,2,"td",14),A.bVm(),A.qex(24,16),A.DNE(25,Wf,3,0,"th",17)(26,Zf,4,2,"td",14),A.bVm(),A.qex(27,18),A.DNE(28,qf,3,0,"th",17)(29,eu,4,2,"td",14),A.bVm(),A.qex(30,19),A.DNE(31,tu,3,0,"th",20)(32,su,4,2,"td",21),A.bVm(),A.qex(33,22),A.DNE(34,ru,3,0,"th",20)(35,lu,4,2,"td",21),A.bVm(),A.qex(36,23),A.DNE(37,cu,3,0,"th",20)(38,fu,5,5,"td",21),A.bVm(),A.qex(39,24),A.DNE(40,uu,6,0,"th",25)(41,wu,5,2,"td",26),A.bVm(),A.qex(42,27),A.DNE(43,mu,4,3,"td",28),A.bVm(),A.DNE(44,Mu,1,3,"tr",29)(45,pu,1,0,"tr",30)(46,Iu,1,0,"tr",31),A.k0s()(),A.nrm(47,"mat-paginator",32),A.k0s()}2&o&&(A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(14,Nf).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(2),A.Y8G("ngIf",r.apiCallStatus.status===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.channels)("ngClass",A.eq3(15,Tf,""!==r.errorMessage)),A.R7$(28),A.Y8G("matFooterRowDef",A.lJ4(17,Pf)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.ZF,M.Ld,de.QX,de.PV,R.VD],styles:[".mat-column-amount_msat[_ngcontent-%COMP%] .htlc-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:2rem;padding-right:2rem}.htlc-row-span[_ngcontent-%COMP%]{min-height:3rem}.htlc-row-span.ellipsis-parent[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-column-actions[_ngcontent-%COMP%] .htlc-group-head[_ngcontent-%COMP%], .mat-column-actions[_ngcontent-%COMP%] .htlc-group-details[_ngcontent-%COMP%]{min-height:3rem}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-expand[_ngcontent-%COMP%]{min-width:8rem;width:8rem;margin:0}.mat-column-actions[_ngcontent-%COMP%] .btn-htlc-info[_ngcontent-%COMP%]{min-width:7rem;margin:0}"]}))}return n(),l})();function Fu(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",8),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("routerLink",A.mNQ(e.link))("active",i.activeLink===e.link),A.R7$(),A.JRh(e.name)}}let yu=(()=>{var n;class l{constructor(i){this.router=i,this.faChartBar=v.$Fj,this.links=[{link:"routingreport",name:"Routing"},{link:"transactions",name:"Transactions"}],this.activeLink=this.links[0].link,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-reports"]],standalone:!1,decls:12,vars:3,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1),A.nrm(1,"fa-icon",2),A.j41(2,"span",3),A.EFF(3,"Reports"),A.k0s()(),A.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),A.DNE(8,Fu,2,4,"div",7),A.k0s(),A.nrm(9,"mat-tab-nav-panel",null,0)(11,"router-outlet"),A.k0s()()()),2&o){const iA=A.sdS(10);A.R7$(),A.Y8G("icon",r.faChartBar),A.R7$(6),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,RA.Bu,RA.hQ,RA.Ql,xt.n3,Sn.Wk],encapsulation:2}))}return n(),l})();var Uc=We(1001),Lc=We(51993),Gc=We(24655);function xu(n,l){1&n&&(A.j41(0,"div",15),A.nrm(1,"mat-progress-bar",16),A.j41(2,"p"),A.EFF(3,"Getting Forwarding History..."),A.k0s()())}function Yu(n,l){if(1&n&&(A.j41(0,"div",17),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.JRh(e.errorMessage)}}function bu(n,l){if(1&n&&(A.j41(0,"div",18),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=A.XpG();A.Y8G("@fadeIn",e.totalFeeMsat),A.R7$(),A.Lme("",A.i5U(2,3,e.totalFeeMsat/1e3||0,"1.0-2")," Sats/",A.bMT(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function vu(n,l){1&n&&(A.j41(0,"div",15),A.EFF(1,"No routing report for the selected period"),A.k0s())}function Ru(n,l){if(1&n&&(A.j41(0,"span")(1,"span",20),A.EFF(2),A.nI1(3,"number"),A.k0s(),A.j41(4,"span",20),A.EFF(5),A.nI1(6,"number"),A.k0s()()),2&n){const e=l.model,i=A.XpG(2);A.R7$(2),A.SpI("Events: ",A.bMT(3,2,(i.selReportBy===i.reportBy.EVENTS?e.value:e.extra.totalEvents)||0)),A.R7$(3),A.SpI("Fee: ",A.i5U(6,4,(i.selReportBy===i.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"))}}function Su(n,l){if(1&n){const e=A.RV6();A.j41(0,"ngx-charts-bar-vertical",19),A.bIt("select",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onChartBarSelected(o))})("mouseup",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onChartMouseUp(o))}),A.DNE(1,Ru,7,7,"ng-template",null,0,A.C5r),A.k0s()}if(2&n){const e=A.XpG();A.Y8G("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function Nu(n,l){if(1&n&&A.nrm(0,"rtl-cln-forwarding-history",21),2&n){const e=A.XpG();A.Y8G("eventsData",e.filteredEventsBySelectedPeriod)("selFilter",e.eventFilterValue)}}let Tu=(()=>{var n;class l{constructor(i,o,r,iA){this.logger=i,this.commonService=o,this.store=r,this.dataService=iA,this.reportPeriod=B.rs[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=B.aR,this.selReportBy=B.aR.FEES,this.totalFeeMsat=null,this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===B.f7.XS||this.screenSize===B.f7.SM),this.store.pipe((0,bt.s)(1)).subscribe(i=>{i.cln.apisCallStatus.FetchForwardingHistoryS.status===B.wn.UN_INITIATED&&!i.cln.forwardingHistory.listForwards?.length&&this.store.dispatch((0,VA.uK)({payload:{status:B.xk.SETTLED}}))}),this.store.select(tA.Ie).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{i.forwardingHistory.status===B.xk.SETTLED&&(this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR?this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:"":this.apiCallStatus.status===B.wn.COMPLETED&&(this.events=i.forwardingHistory.listForwards||[],this.filterForwardingEvents(this.startDate,this.endDate)),this.logger.info(i))}),this.commonService.containerSizeUpdated.pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{switch(this.screenSize){case B.f7.MD:this.screenPaddingX=i.width/10;break;case B.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(i,o){const r=Math.round(i.getTime()/1e3),iA=Math.round(o.getTime()/1e3);this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeMsat=null,this.events&&this.events.length>0&&(this.events.forEach(ne=>{ne.received_time&&ne.received_time>=r&&ne.received_time0&&"ngx-charts"===i.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(i){this.eventFilterValue=this.reportPeriod===B.rs[1]?i.name+"/"+this.startDate.getFullYear():i.name.toString().padStart(2,"0")+"/"+B.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(i){const o=Math.round(i.getTime()/1e3),r=[];if(this.totalFeeMsat=0,this.reportPeriod===B.rs[1]){for(let iA=0;iA<12;iA++)r.push({name:B.KR[iA].name,value:0,extra:{totalEvents:0}});this.filteredEventsBySelectedPeriod?.map(iA=>{const ne=iA.received_time?new Date(1e3*+iA.received_time).getMonth():12;return r[ne].extra.totalEvents=r[ne].extra.totalEvents+1,r[ne].value=r[ne].value+ +(iA.fee_msat||0)/1e3,this.totalFeeMsat=(this.totalFeeMsat||0)+ +(iA.fee_msat||0),this.filteredEventsBySelectedPeriod})}else{for(let iA=0;iA{const ne=iA.received_time?Math.floor((+iA.received_time-o)/this.secondsInADay):0;return r[ne].extra.totalEvents=r[ne].extra.totalEvents+1,r[ne].value=r[ne].value+ +(iA.fee_msat||0)/1e3,this.totalFeeMsat=(this.totalFeeMsat||0)+ +(iA.fee_msat||0),this.filteredEventsBySelectedPeriod})}return r}prepareEventsReport(i){const o=Math.round(i.getTime()/1e3),r=[];if(this.totalFeeMsat=0,this.reportPeriod===B.rs[1]){for(let iA=0;iA<12;iA++)r.push({name:B.KR[iA].name,value:0,extra:{totalFees:0}});this.filteredEventsBySelectedPeriod?.map(iA=>{const ne=iA.received_time?new Date(1e3*+iA.received_time).getMonth():12;return r[ne].value=r[ne].value+1,r[ne].extra.totalFees=r[ne].extra.totalFees+ +(iA.fee_msat||0)/1e3,this.totalFeeMsat=(this.totalFeeMsat||0)+ +(iA.fee_msat||0),this.filteredEventsBySelectedPeriod})}else{for(let iA=0;iA{const ne=iA.received_time?Math.floor((+iA.received_time-o)/this.secondsInADay):0;return r[ne].value=r[ne].value+1,r[ne].extra.totalFees=r[ne].extra.totalFees+ +(iA.fee_msat||0)/1e3,this.totalFeeMsat=(this.totalFeeMsat||0)+ +(iA.fee_msat||0),this.filteredEventsBySelectedPeriod})}return r}onSelectionChange(i){const o=i.selDate.getMonth(),r=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===B.rs[1]?(this.startDate=new Date(r,0,1,0,0,0),this.endDate=new Date(r,11,31,23,59,59)):(this.startDate=new Date(r,o,1,0,0,0),this.endDate=new Date(r,o,this.getMonthDays(o,r),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?B.KR[i].days+1:B.KR[i].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(Dt.u))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-routing-report"]],hostBindings:function(o,r){1&o&&A.bIt("mouseup",function(ne){return r.onChartMouseUp(ne)})},standalone:!1,decls:19,vars:11,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start center",1,"my-1",3,"ngModelChange","change","ngModel"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1 error-border",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],["pageId","reports","tableId","routing",3,"eventsData","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],["mode","indeterminate"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1","error-border"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],[1,"one-color",3,"select","mouseup","view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel"],[1,"tooltip-label"],["pageId","reports","tableId","routing",3,"eventsData","selFilter"]],template:function(o,r){1&o&&(A.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),A.bIt("stepChanged",function(ne){return r.onSelectionChange(ne)}),A.k0s(),A.j41(2,"div",3)(3,"mat-radio-group",4),A.mxI("ngModelChange",function(ne){return A.DH7(r.selReportBy,ne)||(r.selReportBy=ne),ne}),A.bIt("change",function(){return r.onSelReportByChange()}),A.j41(4,"span",5),A.EFF(5,"Report By: "),A.k0s(),A.j41(6,"mat-radio-button",6),A.EFF(7,"Fees"),A.k0s(),A.j41(8,"mat-radio-button",7),A.EFF(9,"Events"),A.k0s()()(),A.j41(10,"div",8),A.DNE(11,xu,4,0,"div",9)(12,Yu,2,1,"div",10)(13,bu,4,8,"div",11)(14,vu,2,0,"div",9),A.j41(15,"div",12),A.DNE(16,Su,3,11,"ngx-charts-bar-vertical",13),A.k0s(),A.j41(17,"div",12),A.DNE(18,Nu,1,2,"rtl-cln-forwarding-history",14),A.k0s()()()),2&o&&(A.R7$(3),A.R50("ngModel",r.selReportBy),A.R7$(3),A.Y8G("value",A.mNQ(r.reportBy.FEES)),A.R7$(2),A.Y8G("value",A.mNQ(r.reportBy.EVENTS)),A.R7$(3),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.ERROR),A.R7$(),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.COMPLETED&&r.routingReportData.length>0&&r.filteredEventsBySelectedPeriod.length>0),A.R7$(),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.COMPLETED&&(r.routingReportData.length<=0||r.filteredEventsBySelectedPeriod.length<=0)),A.R7$(2),A.Y8G("ngIf",r.routingReportData.length>0&&r.filteredEventsBySelectedPeriod.length>0),A.R7$(2),A.Y8G("ngIf",r.filteredEventsBySelectedPeriod&&r.filteredEventsBySelectedPeriod.length>0))},dependencies:[de.bT,hA.BC,hA.vS,eA.HM,qe.VT,qe._g,Q.DJ,Q.sA,Q.UI,Lc.L8,Gc.m,Sc,de.QX],encapsulation:2,data:{animation:[Uc.q]}}))}return n(),l})();var Pu=We(5085);function Uu(n,l){if(1&n&&(A.j41(0,"div",11),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Lme(" Paid ",A.i5U(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.bMT(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function Lu(n,l){if(1&n&&(A.j41(0,"div",11),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Lme(" Received ",A.i5U(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod/1e3||0,"1.0-2")," Sats/",A.bMT(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Gu(n,l){if(1&n&&(A.j41(0,"div",9),A.DNE(1,Uu,4,7,"div",10)(2,Lu,4,7,"div",10),A.k0s()),2&n){const e=A.XpG();A.Y8G("@fadeIn",e.transactionsReportSummary),A.R7$(),A.Y8G("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),A.R7$(),A.Y8G("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function zu(n,l){1&n&&(A.j41(0,"div",12),A.EFF(1,"No transactions report for the selected period"),A.k0s())}function ku(n,l){if(1&n&&(A.j41(0,"span",14),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=l.model;A.R7$(),A.LHq("",e.name,": ",A.i5U(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",A.bMT(3,7,(null==e.extra?null:e.extra.total)||0))}}function Hu(n,l){if(1&n){const e=A.RV6();A.j41(0,"ngx-charts-bar-vertical-2d",13),A.bIt("select",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onChartBarSelected(o))})("mouseup",function(o){w.eBV(e);const r=A.XpG();return w.Njj(r.onChartMouseUp(o))}),A.DNE(1,ku,4,9,"ng-template",null,0,A.C5r),A.k0s()}if(2&n){const e=A.XpG();A.Y8G("view",e.view)("results",e.transactionsReportData)("noBarWhenZero",!1)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)("groupPadding",e.reportPeriod===e.scrollRanges[0]?2:4)}}function ju(n,l){if(1&n&&A.nrm(0,"rtl-transactions-report-table",15),2&n){const e=A.XpG();A.Y8G("displayedColumns",e.displayedColumns)("tableSetting",e.tableSetting)("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("selFilter",e.transactionFilterValue)}}let Ou=(()=>{var n;class l{constructor(i,o,r){this.logger=i,this.commonService=o,this.store=r,this.scrollRanges=B.rs,this.reportPeriod=B.rs[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:B.md,sortBy:"date",sortOrder:B.oi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_invoices"],this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0},this.transactionFilterValue="",this.today=new Date(Date.now()),this.startDate=new Date(this.today.getFullYear(),this.today.getMonth(),1,0,0,0),this.endDate=new Date(this.today.getFullYear(),this.today.getMonth(),this.getMonthDays(this.today.getMonth(),this.today.getFullYear()),23,59,59),this.transactionsReportData=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=B.f7,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===B.f7.XS||this.screenSize===B.f7.SM),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.KT).pipe((0,I.Q)(this.unSubs[1]),(0,N.E)(this.store.select(tA.Pj))).subscribe(([i,o])=>{this.payments=i.payments,this.invoices=o.listInvoices.invoices||[],this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData()}),this.commonService.containerSizeUpdated.pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{switch(this.screenSize){case B.f7.MD:this.screenPaddingX=i.width/10;break;case B.f7.LG:this.screenPaddingX=i.width/16;break;default:this.screenPaddingX=i.width/20}this.view=[i.width-this.screenPaddingX,i.height/2.2],this.logger.info("Container Size: "+JSON.stringify(i)),this.logger.info("View: "+JSON.stringify(this.view))})}onChartMouseUp(i){"svg"===i.srcElement.tagName&&i.srcElement.classList.length>0&&"ngx-charts"===i.srcElement.classList[0]&&(this.transactionFilterValue="")}onChartBarSelected(i){this.transactionFilterValue=this.reportPeriod===B.rs[1]?i.series+"/"+this.startDate.getFullYear():i.series.toString().padStart(2,"0")+"/"+B.KR[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(i,o){const r=Math.round(i.getTime()/1e3),iA=Math.round(o.getTime()/1e3),ne=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const re=this.payments?.filter(Qt=>"complete"===Qt.status&&Qt.created_at&&Qt.created_at>=r&&Qt.created_at"paid"===Qt.status&&Qt.paid_at&&Qt.paid_at>=r&&Qt.paid_at{const wn=new Date(1e3*(Qt.created_at||0)).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(Qt.amount_sent_msat||0),ne[wn].series[0].value=ne[wn].series[0].value+(Qt.amount_sent_msat||0)/1e3,ne[wn].series[0].extra.total=ne[wn].series[0].extra.total+1,this.transactionsReportSummary}),ln?.map(Qt=>{const wn=new Date(1e3*+(Qt.paid_at||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(Qt.amount_received_msat||0),ne[wn].series[1].value=ne[wn].series[1].value+(Qt.amount_received_msat||0)/1e3,ne[wn].series[1].extra.total=ne[wn].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let Qt=0;Qt{const wn=Math.floor((+(Qt.created_at||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(Qt.amount_sent_msat||0),ne[wn].series[0].value=ne[wn].series[0].value+(Qt.amount_sent_msat||0)/1e3,ne[wn].series[0].extra.total=ne[wn].series[0].extra.total+1,this.transactionsReportSummary}),ln?.map(Qt=>{const wn=Math.floor((+(Qt.paid_at||0)-r)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(Qt.amount_received_msat||0),ne[wn].series[1].value=ne[wn].series[1].value+(Qt.amount_received_msat||0)/1e3,ne[wn].series[1].extra.total=ne[wn].series[1].extra.total+1,this.transactionsReportSummary})}return ne}prepareTableData(){return this.transactionsReportData?.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(i){const o=i.selDate.getMonth(),r=i.selDate.getFullYear();this.reportPeriod=i.selScrollRange,this.reportPeriod===B.rs[1]?(this.startDate=new Date(r,0,1,0,0,0),this.endDate=new Date(r,11,31,23,59,59)):(this.startDate=new Date(r,o,1,0,0,0),this.endDate=new Date(r,o,this.getMonthDays(o,r),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(i,o){return 1===i&&o%4==0?B.KR[i].days+1:B.KR[i].days}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-transactions-report"]],hostBindings:function(o,r){1&o&&A.bIt("mouseup",function(ne){return r.onChartMouseUp(ne)})},standalone:!1,decls:9,vars:4,consts:[["tooltipTemplate",""],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 font-bold-700 mt-1",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100","class","font-size-120 mt-1",4,"ngIf"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","font-bold-700","mt-1"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","column","fxLayoutAlign","center center","fxFlex","100",1,"font-size-120","mt-1"],[1,"two-color",3,"select","mouseup","view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding"],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(o,r){1&o&&(A.j41(0,"div",1)(1,"rtl-horizontal-scroller",2),A.bIt("stepChanged",function(ne){return r.onSelectionChange(ne)}),A.k0s(),A.j41(2,"div",3),A.DNE(3,Gu,3,3,"div",4)(4,zu,2,0,"div",5),A.j41(5,"div",6),A.DNE(6,Hu,3,13,"ngx-charts-bar-vertical-2d",7),A.k0s(),A.j41(7,"div",6),A.DNE(8,ju,1,5,"rtl-transactions-report-table",8),A.k0s()()()),2&o&&(A.R7$(3),A.Y8G("ngIf",r.transactionsNonZeroReportData.length>0),A.R7$(),A.Y8G("ngIf",r.transactionsNonZeroReportData.length<=0),A.R7$(2),A.Y8G("ngIf",r.transactionsNonZeroReportData.length>0),A.R7$(2),A.Y8G("ngIf",r.transactionsNonZeroReportData.length>0))},dependencies:[de.bT,Q.DJ,Q.sA,Q.UI,Lc.Dl,Gc.m,Pu.T,de.QX],encapsulation:2,data:{animation:[Uc.q]}}))}return n(),l})();var Vt=We(17186),Ju=We(90013);function _u(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",9),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.activeLink=o.link)}),A.EFF(1),A.k0s()}if(2&n){const e=l.$implicit,i=A.XpG();A.Y8G("routerLink",A.mNQ(e.link))("active",i.activeLink===e.link),A.R7$(),A.JRh(e.name)}}let Vu=(()=>{var n;class l{constructor(i){this.router=i,this.faSearch=v.MjD,this.links=[{link:"lookups",name:"Lookup"},{link:"queryroutes",name:"Query Routes"}],this.activeLink=this.links[0].link,this.unSubs=[new g.B,new g.B,new g.B,new g.B]}ngOnInit(){const i=this.links.find(o=>this.router.url.includes(o.link));this.activeLink=i?i.link:this.links[0].link,this.router.events.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(o=>o instanceof xt.gx)).subscribe({next:o=>{const r=this.links.find(iA=>o.urlAfterRedirects.includes(iA.link));this.activeLink=r?r.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(xt.Ix))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-graph"]],standalone:!1,decls:13,vars:3,consts:[["tabPanel",""],["fxLayout","row wrap","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(o,r){if(1&o&&(A.j41(0,"div",1),A.nrm(1,"fa-icon",2),A.j41(2,"span",3),A.EFF(3,"Graph Lookups"),A.k0s()(),A.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),A.DNE(8,_u,2,4,"div",7),A.k0s(),A.nrm(9,"mat-tab-nav-panel",null,0),A.j41(11,"div",8),A.nrm(12,"router-outlet"),A.k0s()()()()),2&o){const iA=A.sdS(10);A.R7$(),A.Y8G("icon",r.faSearch),A.R7$(6),A.Y8G("tabPanel",iA),A.R7$(),A.Y8G("ngForOf",r.links)}},dependencies:[de.Sq,P.aY,QA.RN,QA.m2,Q.DJ,Q.sA,Q.UI,RA.Bu,RA.hQ,RA.Ql,xt.n3,Sn.Wk],encapsulation:2}))}return n(),l})();var Wu=We(82643),Ku=We(77235);function Xu(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.offerError)}}function Zu(n,l){if(1&n&&(A.j41(0,"div",21),A.nrm(1,"fa-icon",22),A.DNE(2,Xu,2,1,"span",23),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.offerError)}}let qu=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.dialogRef=i,this.data=o,this.store=r,this.decimalPipe=iA,this.commonService=ne,this.actions=re,this.faExclamationTriangle=v.zpE,this.description="",this.issuer="",this.offerValueHint="",this.information={},this.pageSize=B.md,this.offerError="",this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.pageSize=this.data.pageSize,this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.information=i,this.issuer=this.information.alias}),this.actions.pipe((0,I.Q)(this.unSubs[2]),(0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN)).subscribe(i=>{i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&"SaveNewOffer"===i.payload.action&&(i.payload.status===B.wn.ERROR&&(this.offerError=i.payload.message),i.payload.status===B.wn.COMPLETED&&this.dialogRef.close())})}onAddOffer(){this.offerError="";const i=this.offerValue?(1e3*this.offerValue).toString():"any";this.store.dispatch((0,VA.y0)({payload:{amount:i,description:this.description,issuer:this.issuer}}))}resetData(){this.description="",this.issuer=this.information.alias,this.offerValue=null,this.offerValueHint="",this.offerError=""}onOfferValueChange(){this.selNode&&this.selNode.settings.fiatConversion&&this.offerValue&&this.offerValue>99&&(this.offerValueHint="",this.commonService.convertCurrency(this.offerValue,B.BQ.SATS,B.BQ.OTHER,this.selNode.settings.currencyUnits&&this.selNode.settings.currencyUnits.length>2?this.selNode.settings.currencyUnits[2]:"",this.selNode.settings.fiatConversion).pipe((0,I.Q)(this.unSubs[3])).subscribe({next:i=>{this.offerValueHint="= "+this.decimalPipe.transform(i.OTHER,B.k.OTHER)+" "+i.unit},error:i=>{this.offerValueHint="Conversion Error: "+i}}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(AA.il),A.rXU(de.QX),A.rXU(L.h),A.rXU(kA.En))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-create-offer"]],standalone:!1,decls:34,vars:8,consts:[["addOfferForm","ngForm"],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center center","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxLayoutAlign","start space-between","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","tabindex","1","name","description",3,"ngModelChange","ngModel"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxLayout","column","fxFlex","40"],["matInput","","type","number","tabindex","2","name","offerValue",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],["fxLayout","column","fxFlex","58","fxLayoutAlign","start end"],["matInput","","tabindex","3","name","issuer",3,"ngModelChange","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","5",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"],[4,"ngIf"]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),A.EFF(5,"Create Offer"),A.k0s()(),A.j41(6,"button",6),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",7)(9,"form",8,0)(11,"mat-form-field",9)(12,"mat-label"),A.EFF(13,"Description"),A.k0s(),A.j41(14,"input",10),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.description,re)||(r.description=re),w.Njj(re)}),A.k0s()(),A.j41(15,"div",11)(16,"mat-form-field",12)(17,"mat-label"),A.EFF(18,"Amount"),A.k0s(),A.j41(19,"input",13),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.offerValue,re)||(r.offerValue=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onOfferValueChange())}),A.k0s(),A.j41(20,"span",14),A.EFF(21,"Sats "),A.k0s(),A.j41(22,"mat-hint"),A.EFF(23),A.k0s()(),A.j41(24,"mat-form-field",15)(25,"mat-label"),A.EFF(26,"Issuer"),A.k0s(),A.j41(27,"input",16),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.issuer,re)||(r.issuer=re),w.Njj(re)}),A.k0s()()(),A.DNE(28,Zu,3,2,"div",17),A.j41(29,"div",18)(30,"button",19),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(31,"Clear Field"),A.k0s(),A.j41(32,"button",20),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onAddOffer())}),A.EFF(33,"Create Offer"),A.k0s()()()()()()}2&o&&(A.R7$(6),A.Y8G("mat-dialog-close",!1),A.R7$(8),A.R50("ngModel",r.description),A.R7$(5),A.Y8G("step",100)("min",1),A.R50("ngModel",r.offerValue),A.R7$(4),A.JRh(r.offerValueHint),A.R7$(4),A.R50("ngModel",r.issuer),A.R7$(),A.Y8G("ngIf",""!==r.offerError))},dependencies:[de.bT,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.VZ,hA.vS,hA.cV,P.aY,wA.tx,fA.$z,QA.m2,QA.MM,UA.fg,yA.rl,yA.nJ,yA.MV,yA.yw,Q.DJ,Q.sA,Q.UI,cA.N,J.V],encapsulation:2}))}return n(),l})();var zc=We(32142);const $u=()=>["all"],Ah=n=>({"error-border":n}),eh=()=>["no_offer"],kc=n=>({"mr-0":n}),Hc=n=>({width:n}),th=n=>({"display-none":n});function nh(n,l){if(1&n&&(A.j41(0,"mat-option",34),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function ih(n,l){1&n&&A.nrm(0,"mat-progress-bar",35)}function sh(n,l){1&n&&A.nrm(0,"th",36)}function rh(n,l){if(1&n&&A.nrm(0,"span",40),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,kc,e.screenSize===e.screenSizeEnum.XS))}}function ah(n,l){if(1&n&&A.nrm(0,"span",41),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,kc,e.screenSize===e.screenSizeEnum.XS))}}function oh(n,l){if(1&n&&(A.j41(0,"td",37),A.DNE(1,rh,1,3,"span",38)(2,ah,1,3,"span",39),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Y8G("ngIf",e.active),A.R7$(),A.Y8G("ngIf",!e.active)}}function lh(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Offer ID"),A.k0s())}function ch(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Hc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.SpI(" ",e.offer_id," ")}}function gh(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Single Use"),A.k0s())}function Bh(n,l){if(1&n&&(A.j41(0,"td",37),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(e.single_use?"Yes":"No")}}function fh(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Used"),A.k0s())}function uh(n,l){if(1&n&&(A.j41(0,"td",37),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ",e.used?"Yes":"No"," ")}}function hh(n,l){1&n&&(A.j41(0,"th",42),A.EFF(1,"Invoice"),A.k0s())}function Eh(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Hc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.SpI(" ",e.bolt12," ")}}function wh(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",48),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function Ch(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",48),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onDisableOffer(o))}),A.EFF(1,"Disable Offer"),A.k0s()}}function dh(n,l){if(1&n){const e=A.RV6();A.j41(0,"mat-option",48),A.bIt("click",function(){w.eBV(e);const o=A.XpG().$implicit,r=A.XpG();return w.Njj(r.onPrintOffer(o))}),A.EFF(1,"Export QR code"),A.k0s()}}function Qh(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",49)(1,"div",46)(2,"mat-select",50),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",48),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onOfferClick(o))}),A.EFF(5,"View Info"),A.k0s(),A.DNE(6,Ch,2,0,"mat-option",51)(7,dh,2,0,"mat-option",51),A.k0s()()()}if(2&n){const e=l.$implicit;A.R7$(6),A.Y8G("ngIf",e.active),A.R7$(),A.Y8G("ngIf",e.active)}}function mh(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No offer available."),A.k0s())}function Mh(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting offers..."),A.k0s())}function ph(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function Ih(n,l){if(1&n&&(A.j41(0,"td",52),A.DNE(1,mh,2,0,"p",53)(2,Mh,2,0,"p",53)(3,ph,2,1,"p",53),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.offers&&e.offers.data)||(null==e.offers||null==e.offers.data?null:e.offers.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.offers&&e.offers.data)||(null==e.offers||null==e.offers.data?null:e.offers.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.offers&&e.offers.data)||(null==e.offers||null==e.offers.data?null:e.offers.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function Dh(n,l){if(1&n&&A.nrm(0,"tr",54),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,th,(null==e.offers?null:e.offers.data)&&(null==e.offers||null==e.offers.data?null:e.offers.data.length)>0))}}function Fh(n,l){1&n&&A.nrm(0,"tr",55)}function yh(n,l){1&n&&A.nrm(0,"tr",56)}let xh=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln){this.logger=i,this.store=o,this.commonService=r,this.rtlEffects=iA,this.dataService=ne,this.decimalPipe=re,this.camelCaseWithReplace=ln,this.faHistory=v.Int,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"offers",recordsPerPage:B.md,sortBy:"offer_id",sortOrder:B.oi.DESCENDING},this.newlyAddedOfferMemo="",this.newlyAddedOfferValue=0,this.description="",this.offerValue=null,this.offerValueHint="",this.displayedColumns=[],this.offerPaymentReq="",this.offerJSONArr=[],this.information={},this.private=!1,this.expiryStep=100,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(j._c).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.selNode=i}),this.store.select(tA.mH).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.information=i}),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[2])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("active"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.O5).pipe((0,I.Q)(this.unSubs[3])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offerJSONArr=i.offers||[],this.offerJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadOffersTable(this.offerJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.offerJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadOffersTable(this.offerJSONArr)}openCreateOfferModal(){this.store.dispatch((0,C.xO)({payload:{data:{pageSize:this.pageSize,component:qu}}}))}onOfferClick(i){this.store.dispatch((0,C.xO)({payload:{data:{offer:{used:i.used,single_use:i.single_use,active:i.active,offer_id:i.offer_id,bolt12:i.bolt12,created:i.created,label:i.label},newlyAdded:!1,component:zc.f}}}))}onDisableOffer(i){this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Disable Offer",titleMessage:"Disabling Offer: "+(i.offer_id||i.bolt12),noBtnText:"Cancel",yesBtnText:"Disable"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[4])).subscribe(o=>{o&&this.store.dispatch((0,VA.jQ)({payload:{offer_id:i.offer_id}}))})}onPrintOffer(i){this.dataService.decodePayment(i.bolt12,!1).pipe((0,bt.s)(1)).subscribe(o=>{o.offer_id&&!o.offer_amount_msat&&(o.offer_amount_msat=0);const r={pageSize:"A5",pageOrientation:"portrait",pageMargins:[10,50,10,50],background:{svg:'\n \n \n \n \n \n ',width:249,height:333,absolutePosition:{x:84,y:160}},header:{text:o.offer_issuer||"",alignment:"center",fontSize:25,color:"#272727",margin:[0,20,0,0]},content:[{svg:'',width:249,height:40,alignment:"center"},{text:o.offer_description?o.offer_description.substring(0,160):"",alignment:"center",fontSize:16,color:"#5C5C5C"},{qr:i.bolt12,eccLevel:"M",fit:"227",alignment:"center",absolutePosition:{x:7,y:205}},{text:o?.offer_amount_msat&&0!==o?.offer_amount_msat?this.decimalPipe.transform((o.offer_amount_msat||0)/1e3)+" SATS":"Open amount",fontSize:20,bold:!1,color:"white",alignment:"center",absolutePosition:{x:0,y:430}},{text:"SCAN TO PAY",fontSize:22,bold:!0,color:"white",alignment:"center",absolutePosition:{x:0,y:455}}],footer:{svg:'\n \n \n \n \n ',alignment:"center"}};Wu.createPdf(r,null,null,Ku.pdfMake.vfs).download("Offer-"+(o&&o.offer_description?o.offer_description:i.bolt12))})}applyFilter(){this.offers.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.offers.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.active?" active":" inactive")+(i.used?" yes":" no")+(i.single_use?" single":" multiple")+JSON.stringify(i).toLowerCase(),("active"===o||"inactive"===o||"single"===o||"multiple"===o)&&(o=" "+o);break;case"active":r=i?.active?"active":"inactive";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"active"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadOffersTable(i){this.offers=new z.I6(i?[...i]:[]),this.offers.sort=this.sort,this.offers.sortingDataAccessor=(o,r)=>o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null,this.offers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.offers.data&&this.offers.data.length>0&&this.commonService.downloadFile(this.offers.data,"Offers")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(L.h),A.rXU(b.H),A.rXU(Dt.u),A.rXU(de.QX),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-offers-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Offers")}])],decls:49,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","active"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","offer_id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","single_use"],["matColumnDef","used"],["matColumnDef","bolt12"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Active"],["mat-cell",""],["class","dot green","matTooltip","Active","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Inactive","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Active","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Inactive","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1)(1,"div",2)(2,"button",3),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.openCreateOfferModal())}),A.EFF(3,"Create Offer"),A.k0s()(),A.j41(4,"div",4)(5,"div",5)(6,"div",6),A.nrm(7,"fa-icon",7),A.j41(8,"span",8),A.EFF(9,"Offers History"),A.k0s()(),A.j41(10,"div",9)(11,"mat-form-field",10)(12,"mat-label"),A.EFF(13,"Filter By"),A.k0s(),A.j41(14,"mat-select",11),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(15,"perfect-scrollbar"),A.DNE(16,nh,2,2,"mat-option",12),A.k0s()()(),A.j41(17,"mat-form-field",10)(18,"mat-label"),A.EFF(19,"Filter"),A.k0s(),A.j41(20,"input",13),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(21,"div",14),A.DNE(22,ih,1,0,"mat-progress-bar",15),A.j41(23,"table",16,0),A.qex(25,17),A.DNE(26,sh,1,0,"th",18)(27,oh,3,2,"td",19),A.bVm(),A.qex(28,20),A.DNE(29,lh,2,0,"th",21)(30,ch,4,4,"td",19),A.bVm(),A.qex(31,22),A.DNE(32,gh,2,0,"th",21)(33,Bh,2,1,"td",19),A.bVm(),A.qex(34,23),A.DNE(35,fh,2,0,"th",21)(36,uh,2,1,"td",19),A.bVm(),A.qex(37,24),A.DNE(38,hh,2,0,"th",21)(39,Eh,4,4,"td",19),A.bVm(),A.qex(40,25),A.DNE(41,wh,6,0,"th",26)(42,Qh,8,2,"td",27),A.bVm(),A.qex(43,28),A.DNE(44,Ih,4,3,"td",29),A.bVm(),A.DNE(45,Dh,1,3,"tr",30)(46,Fh,1,0,"tr",31)(47,yh,1,0,"tr",32),A.k0s()(),A.nrm(48,"mat-paginator",33),A.k0s()()}2&o&&(A.R7$(7),A.Y8G("icon",r.faHistory),A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(15,$u).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(2),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.offers)("ngClass",A.eq3(16,Ah,""!==r.errorMessage)),A.R7$(22),A.Y8G("matFooterRowDef",A.lJ4(18,eh)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld],styles:[".mat-column-active[_ngcontent-%COMP%]{max-width:2.2rem;width:2.2rem;text-overflow:unset}"]}))}return n(),l})();const Yh=()=>["all"],bh=n=>({"error-border":n}),vh=()=>["no_offer"],mc=n=>({width:n}),Rh=n=>({"display-none":n});function Sh(n,l){if(1&n&&(A.j41(0,"mat-option",34),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function Nh(n,l){1&n&&A.nrm(0,"mat-progress-bar",35)}function Th(n,l){1&n&&(A.j41(0,"th",36),A.EFF(1,"Updated At"),A.k0s())}function Ph(n,l){if(1&n&&(A.j41(0,"td",37),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,e.lastUpdatedAt,"dd/MMM/y HH:mm"))}}function Uh(n,l){1&n&&(A.j41(0,"th",36),A.EFF(1,"Title"),A.k0s())}function Lh(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",38)(2,"span",39),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,mc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.title)}}function Gh(n,l){1&n&&(A.j41(0,"th",36),A.EFF(1,"Description"),A.k0s())}function zh(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",38)(2,"span",39),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,mc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.description)}}function kh(n,l){1&n&&(A.j41(0,"th",36),A.EFF(1,"Issuer"),A.k0s())}function Hh(n,l){if(1&n&&(A.j41(0,"td",37),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(e.issuer)}}function jh(n,l){1&n&&(A.j41(0,"th",36),A.EFF(1,"Invoice"),A.k0s())}function Oh(n,l){if(1&n&&(A.j41(0,"td",37)(1,"div",38)(2,"span",39),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,mc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(e.bolt12)}}function Jh(n,l){1&n&&(A.j41(0,"th",40),A.EFF(1,"Amount (Sats)"),A.k0s())}function _h(n,l){if(1&n&&(A.j41(0,"td",37)(1,"span",41),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.JRh(0===e.amountMSat?"Open":A.bMT(3,1,e.amountMSat/1e3))}}function Vh(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",42)(1,"div",43)(2,"mat-select",44),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",45),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function Wh(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",46)(1,"div",43)(2,"mat-select",47),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",45),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onOfferBookmarkClick(o))}),A.EFF(5,"View Info"),A.k0s(),A.j41(6,"mat-option",45),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onRePayOffer(o))}),A.EFF(7,"Pay Again"),A.k0s(),A.j41(8,"mat-option",45),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onDeleteBookmark(o))}),A.EFF(9,"Delete Bookmark"),A.k0s()()()()}}function Kh(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No offer bookmarked."),A.k0s())}function Xh(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting offer bookmarks..."),A.k0s())}function Zh(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function qh(n,l){if(1&n&&(A.j41(0,"td",48),A.DNE(1,Kh,2,0,"p",49)(2,Xh,2,0,"p",49)(3,Zh,2,1,"p",49),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.offersBookmarks&&e.offersBookmarks.data)||(null==e.offersBookmarks||null==e.offersBookmarks.data?null:e.offersBookmarks.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.offersBookmarks&&e.offersBookmarks.data)||(null==e.offersBookmarks||null==e.offersBookmarks.data?null:e.offersBookmarks.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.offersBookmarks&&e.offersBookmarks.data)||(null==e.offersBookmarks||null==e.offersBookmarks.data?null:e.offersBookmarks.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function $h(n,l){if(1&n&&A.nrm(0,"tr",50),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,Rh,(null==e.offersBookmarks?null:e.offersBookmarks.data)&&(null==e.offersBookmarks||null==e.offersBookmarks.data?null:e.offersBookmarks.data.length)>0))}}function AE(n,l){1&n&&A.nrm(0,"tr",51)}function eE(n,l){1&n&&A.nrm(0,"tr",52)}let tE=(()=>{var n;class l{constructor(i,o,r,iA,ne,re){this.logger=i,this.store=o,this.commonService=r,this.rtlEffects=iA,this.datePipe=ne,this.camelCaseWithReplace=re,this.faHistory=v.Int,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"offer_bookmarks",recordsPerPage:B.md,sortBy:"lastUpdatedAt",sortOrder:B.oi.DESCENDING},this.displayedColumns=[],this.offersBookmarks=new z.I6([]),this.offersBookmarksJSONArr=[],this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.selFilter="",this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.ip).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.offersBookmarksJSONArr=i.offersBookmarks||[],this.offersBookmarksJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadOffersTable(this.offersBookmarksJSONArr),this.logger.info(i)})}ngAfterViewInit(){this.offersBookmarksJSONArr&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadOffersTable(this.offersBookmarksJSONArr)}onOfferBookmarkClick(i){this.store.dispatch((0,C.xO)({payload:{data:{offer:{bolt12:i.bolt12},newlyAdded:!1,component:zc.f}}}))}onDeleteBookmark(i){this.store.dispatch((0,C.I1)({payload:{data:{type:B.A$.CONFIRM,alertTitle:"Delete Bookmark",titleMessage:"Deleting Bookmark: "+(i.title||i.description),noBtnText:"Cancel",yesBtnText:"Delete"}}})),this.rtlEffects.closeConfirm.pipe((0,I.Q)(this.unSubs[2])).subscribe(o=>{o&&this.store.dispatch((0,VA.ED)({payload:{bolt12:i.bolt12}}))})}onRePayOffer(i){this.store.dispatch((0,C.xO)({payload:{data:{paymentType:B.Y0.OFFER,bolt12:i.bolt12,offerTitle:i.title,component:Bn}}}))}applyFilter(){this.offersBookmarks.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.offersBookmarks.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=JSON.stringify(i).toLowerCase();break;case"lastUpdatedAt":r=this.datePipe.transform(new Date(i.lastUpdatedAt||0),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"amountMSat":r=(i.amountMSat&&0!==i.amountMSat?(i.amountMSat/1e3).toString():"Open")||"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return r.includes(o)}}loadOffersTable(i){this.offersBookmarks=new z.I6(i?[...i]:[]),this.offersBookmarks.sort=this.sort,this.offersBookmarks.sortingDataAccessor=(o,r)=>o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null,this.offersBookmarks.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onDownloadCSV(){this.offersBookmarks.data&&this.offersBookmarks.data.length>0&&this.commonService.downloadFile(this.offersBookmarks.data,"OfferBookmarks")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(L.h),A.rXU(b.H),A.rXU(de.vh),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-offer-bookmarks-table"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Offer Bookmarks")}])],decls:50,vars:19,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap"],["fxLayout","row"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","column","fxLayoutAlign","start stretch","fxLayout.gt-sm","row wrap",1,"page-sub-title-container","mt-1"],["fxFlex","70","fxLayoutAlign","start start","fxLayoutAlign.gt-sm","start center"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","lastUpdatedAt"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","title"],["matColumnDef","description"],["matColumnDef","issuer"],["matColumnDef","bolt12"],["matColumnDef","amountMSat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_offer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",1),A.nrm(1,"div",2),A.j41(2,"div",3)(3,"div",4)(4,"div",5),A.nrm(5,"fa-icon",6),A.j41(6,"span",7),A.EFF(7,"Offer Bookmarks"),A.k0s()(),A.j41(8,"div",8)(9,"mat-form-field",9)(10,"mat-label"),A.EFF(11,"Filter By"),A.k0s(),A.j41(12,"mat-select",10),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(13,"perfect-scrollbar"),A.DNE(14,Sh,2,2,"mat-option",11),A.k0s()()(),A.j41(15,"mat-form-field",9)(16,"mat-label"),A.EFF(17,"Filter"),A.k0s(),A.j41(18,"input",12),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(19,"div",13),A.DNE(20,Nh,1,0,"mat-progress-bar",14),A.j41(21,"table",15,0),A.qex(23,16),A.DNE(24,Th,2,0,"th",17)(25,Ph,3,4,"td",18),A.bVm(),A.qex(26,19),A.DNE(27,Uh,2,0,"th",17)(28,Lh,4,4,"td",18),A.bVm(),A.qex(29,20),A.DNE(30,Gh,2,0,"th",17)(31,zh,4,4,"td",18),A.bVm(),A.qex(32,21),A.DNE(33,kh,2,0,"th",17)(34,Hh,2,1,"td",18),A.bVm(),A.qex(35,22),A.DNE(36,jh,2,0,"th",17)(37,Oh,4,4,"td",18),A.bVm(),A.qex(38,23),A.DNE(39,Jh,2,0,"th",24)(40,_h,4,3,"td",18),A.bVm(),A.qex(41,25),A.DNE(42,Vh,6,0,"th",26)(43,Wh,10,0,"td",27),A.bVm(),A.qex(44,28),A.DNE(45,qh,4,3,"td",29),A.bVm(),A.DNE(46,$h,1,3,"tr",30)(47,AE,1,0,"tr",31)(48,eE,1,0,"tr",32),A.k0s()(),A.nrm(49,"mat-paginator",33),A.k0s()()}2&o&&(A.R7$(5),A.Y8G("icon",r.faHistory),A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(15,Yh).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(2),A.Y8G("ngIf",(null==r.apiCallStatus?null:r.apiCallStatus.status)===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.offersBookmarks)("ngClass",A.eq3(16,bh,""!==r.errorMessage)),A.R7$(25),A.Y8G("matFooterRowDef",A.lJ4(18,vh)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.ZF,M.Ld,de.QX,de.vh],encapsulation:2}))}return n(),l})();const nE=()=>["all"],iE=()=>["no_event"],jc=n=>({width:n}),sE=n=>({"display-none":n});function rE(n,l){if(1&n&&(A.j41(0,"div",6),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.JRh(e.errorMessage)}}function aE(n,l){if(1&n&&(A.j41(0,"mat-option",17),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function oE(n,l){if(1&n){const e=A.RV6();A.j41(0,"div",7)(1,"div",8),A.nrm(2,"fa-icon",9),A.j41(3,"span"),A.EFF(4,"Maximum 1,000 local failed transactions only."),A.k0s()(),A.j41(5,"div",10),A.nrm(6,"div",11),A.j41(7,"div",12)(8,"mat-form-field",13)(9,"mat-label"),A.EFF(10,"Filter By"),A.k0s(),A.j41(11,"mat-select",14),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilterBy,o)||(r.selFilterBy=o),w.Njj(o)}),A.bIt("selectionChange",function(){w.eBV(e);const o=A.XpG();return o.selFilter="",w.Njj(o.applyFilter())}),A.j41(12,"perfect-scrollbar"),A.DNE(13,aE,2,2,"mat-option",15),A.k0s()()(),A.j41(14,"mat-form-field",13)(15,"mat-label"),A.EFF(16,"Filter"),A.k0s(),A.j41(17,"input",16),A.mxI("ngModelChange",function(o){w.eBV(e);const r=A.XpG();return A.DH7(r.selFilter,o)||(r.selFilter=o),w.Njj(o)}),A.bIt("input",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())})("keyup",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.applyFilter())}),A.k0s()()()()()}if(2&n){const e=A.XpG();A.R7$(2),A.Y8G("icon",e.faExclamationTriangle),A.R7$(9),A.R50("ngModel",e.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(4,nE).concat(e.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",e.selFilter)}}function lE(n,l){1&n&&A.nrm(0,"mat-progress-bar",40)}function cE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Received Time"),A.k0s())}function gE(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.received_time),"dd/MMM/y HH:mm"))}}function BE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"In Channel ID"),A.k0s())}function fE(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.in_channel)}}function uE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"In Channel"),A.k0s())}function hE(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,jc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.in_channel_alias)}}function EE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Out Channel ID"),A.k0s())}function wE(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.out_channel)}}function CE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Out Channel"),A.k0s())}function dE(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",43)(2,"span",44),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.Y8G("ngStyle",A.eq3(2,jc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.out_channel_alias)}}function QE(n,l){1&n&&(A.j41(0,"th",45),A.EFF(1,"Amount In (Sats)"),A.k0s())}function mE(n,l){if(1&n&&(A.j41(0,"td",42)(1,"span",46),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,(null==e?null:e.in_msat)/1e3,(null==e?null:e.in_msat)<1e3?"1.0-4":"1.0-0")," ")}}function ME(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Style"),A.k0s())}function pE(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.style)}}function IE(n,l){1&n&&(A.j41(0,"th",41),A.EFF(1,"Fail Reason"),A.k0s())}function DE(n,l){if(1&n&&(A.j41(0,"td",42),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG(2);A.R7$(),A.JRh(i.CLNFailReason[null==e?null:e.failreason])}}function FE(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",47)(1,"div",48)(2,"mat-select",49),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",50),A.bIt("click",function(){w.eBV(e);const o=A.XpG(2);return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function yE(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",51)(1,"button",52),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG(2);return w.Njj(r.onFailedLocalEventClick(o))}),A.EFF(2,"View Info"),A.k0s()()}}function xE(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No failed transaction available."),A.k0s())}function YE(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting failed transactions..."),A.k0s())}function bE(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(3);A.R7$(),A.JRh(e.errorMessage)}}function vE(n,l){if(1&n&&(A.j41(0,"td",53),A.DNE(1,xE,2,0,"p",54)(2,YE,2,0,"p",54)(3,bE,2,1,"p",54),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.Y8G("ngIf",(!(null!=e.failedLocalForwardingEvents&&e.failedLocalForwardingEvents.data)||(null==e.failedLocalForwardingEvents||null==e.failedLocalForwardingEvents.data?null:e.failedLocalForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.failedLocalForwardingEvents&&e.failedLocalForwardingEvents.data)||(null==e.failedLocalForwardingEvents||null==e.failedLocalForwardingEvents.data?null:e.failedLocalForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.failedLocalForwardingEvents&&e.failedLocalForwardingEvents.data)||(null==e.failedLocalForwardingEvents||null==e.failedLocalForwardingEvents.data?null:e.failedLocalForwardingEvents.data.length)<1)&&(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.ERROR)}}function RE(n,l){if(1&n&&A.nrm(0,"tr",55),2&n){const e=A.XpG(2);A.Y8G("ngClass",A.eq3(1,sE,(null==e.failedLocalForwardingEvents?null:e.failedLocalForwardingEvents.data)&&(null==e.failedLocalForwardingEvents||null==e.failedLocalForwardingEvents.data?null:e.failedLocalForwardingEvents.data.length)>0))}}function SE(n,l){1&n&&A.nrm(0,"tr",56)}function NE(n,l){1&n&&A.nrm(0,"tr",57)}function TE(n,l){if(1&n&&(A.j41(0,"div",18),A.DNE(1,lE,1,0,"mat-progress-bar",19),A.j41(2,"table",20,0),A.qex(4,21),A.DNE(5,cE,2,0,"th",22)(6,gE,3,4,"td",23),A.bVm(),A.qex(7,24),A.DNE(8,BE,2,0,"th",22)(9,fE,2,1,"td",23),A.bVm(),A.qex(10,25),A.DNE(11,uE,2,0,"th",22)(12,hE,4,4,"td",23),A.bVm(),A.qex(13,26),A.DNE(14,EE,2,0,"th",22)(15,wE,2,1,"td",23),A.bVm(),A.qex(16,27),A.DNE(17,CE,2,0,"th",22)(18,dE,4,4,"td",23),A.bVm(),A.qex(19,28),A.DNE(20,QE,2,0,"th",29)(21,mE,4,4,"td",23),A.bVm(),A.qex(22,30),A.DNE(23,ME,2,0,"th",22)(24,pE,2,1,"td",23),A.bVm(),A.qex(25,31),A.DNE(26,IE,2,0,"th",22)(27,DE,2,1,"td",23),A.bVm(),A.qex(28,32),A.DNE(29,FE,6,0,"th",33)(30,yE,3,0,"td",34),A.bVm(),A.qex(31,35),A.DNE(32,vE,4,3,"td",36),A.bVm(),A.DNE(33,RE,1,3,"tr",37)(34,SE,1,0,"tr",38)(35,NE,1,0,"tr",39),A.k0s()()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(null==e.apiCallStatus?null:e.apiCallStatus.status)===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",e.tableSetting.sortBy)("matSortDirection",e.tableSetting.sortOrder)("dataSource",e.failedLocalForwardingEvents),A.R7$(31),A.Y8G("matFooterRowDef",A.lJ4(7,iE)),A.R7$(),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)}}function PE(n,l){if(1&n&&A.nrm(0,"mat-paginator",58),2&n){const e=A.XpG();A.Y8G("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let UE=(()=>{var n;class l{constructor(i,o,r,iA,ne){this.logger=i,this.commonService=o,this.store=r,this.datePipe=iA,this.camelCaseWithReplace=ne,this.faExclamationTriangle=v.zpE,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"local_failed",recordsPerPage:B.md,sortBy:"received_time",sortOrder:B.oi.DESCENDING},this.CLNFailReason=B.iI,this.failedLocalEvents=[],this.errorMessage="",this.displayedColumns=[],this.failedLocalForwardingEvents=new z.I6([]),this.selFilter="",this.totalLocalFailedTransactions=0,this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.apiCallStatus=null,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,VA.uK)({payload:{status:B.xk.LOCAL_FAILED}})),this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(tA.aJ).pipe((0,I.Q)(this.unSubs[1])).subscribe(i=>{this.errorMessage="",this.apiCallStatus=i.apiCallStatus,this.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.totalLocalFailedTransactions=i.localFailedForwardingHistory.totalForwards||0,this.failedLocalEvents=i.localFailedForwardingHistory.listForwards||[],this.failedLocalEvents&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents),this.logger.info(i)})}ngAfterViewInit(){this.failedLocalEvents.length>0&&this.loadLocalfailedLocalEventsTable(this.failedLocalEvents)}onFailedLocalEventClick(i){this.store.dispatch((0,C.xO)({payload:{data:{type:B.A$.INFORMATION,alertTitle:"Local Failed Event Information",message:[[{key:"received_time",value:i.received_time,title:"Received Time",width:50,type:B.UN.DATE_TIME},{key:"in_channel_alias",value:i.in_channel_alias,title:"Inbound Channel",width:50,type:B.UN.STRING}],[{key:"in_msatoshi",value:i.in_msat,title:"Amount In (mSats)",width:100,type:B.UN.NUMBER}],[{key:"failreason",value:i.failreason?this.CLNFailReason[i.failreason]:"",title:"Reason for Failure",width:100,type:B.UN.STRING}]]}}}))}applyFilter(){this.failedLocalForwardingEvents.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column,"_"):this.commonService.titleCase(i)}setFilterPredicate(){this.failedLocalForwardingEvents.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.received_time?this.datePipe.transform(new Date(1e3*i.received_time),"dd/MMM/y HH:mm")?.toLowerCase():"")+(i.in_channel_alias?i.in_channel_alias.toLowerCase():"")+(i.failreason&&this.CLNFailReason[i.failreason]?this.CLNFailReason[i.failreason].toLowerCase():"")+(i.in_msat?i.in_msat:"");break;case"received_time":r=this.datePipe.transform(new Date(1e3*(i.received_time||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"in_msatoshi":r=(+(i.in_msat||0)/1e3).toString()||"";break;case"failreason":r=i?.failreason?this.CLNFailReason[i?.failreason]:"";break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return"failreason"===this.selFilterBy?0===r.indexOf(o):r.includes(o)}}loadLocalfailedLocalEventsTable(i){this.failedLocalForwardingEvents=new z.I6([...i]),this.failedLocalForwardingEvents.sort=this.sort,this.failedLocalForwardingEvents.sortingDataAccessor=(o,r)=>{switch(r){case"in_msatoshi":return o.in_msat;case"failreason":return o.failreason?this.CLNFailReason[o.failreason]:"";default:return o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null}},this.failedLocalForwardingEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.failedLocalForwardingEvents)}onDownloadCSV(){this.failedLocalForwardingEvents&&this.failedLocalForwardingEvents.data&&this.failedLocalForwardingEvents.data.length>0&&this.commonService.downloadFile(this.failedLocalForwardingEvents.data,"Local-failed-transactions")}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(L.h),A.rXU(AA.il),A.rXU(de.vh),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-local-failed-history"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Local failed events")}])],decls:5,vars:4,consts:[["table",""],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100","class","table-container",3,"perfectScrollbar",4,"ngIf"],["class","mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-warn","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],[3,"value"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","100","matSort","",1,"overflow-auto",3,"matSortActive","matSortDirection","dataSource"],["matColumnDef","received_time"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","in_channel"],["matColumnDef","in_channel_alias"],["matColumnDef","out_channel"],["matColumnDef","out_channel_alias"],["matColumnDef","in_msatoshi"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","style"],["matColumnDef","failreason"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"]],template:function(o,r){1&o&&(A.j41(0,"div",1),A.DNE(1,rE,2,1,"div",2)(2,oE,18,5,"div",3)(3,TE,36,8,"div",4)(4,PE,1,3,"mat-paginator",5),A.k0s()),2&o&&(A.R7$(),A.Y8G("ngIf",""!==r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage),A.R7$(),A.Y8G("ngIf",""===r.errorMessage))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.me,hA.BC,hA.vS,P.aY,fA.$z,UA.fg,yA.rl,yA.nJ,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,H.iy,M.ZF,M.Ld,de.QX,de.vh],encapsulation:2}))}return n(),l})();const LE=["form"];function GE(n,l){1&n&&A.eu8(0)}function zE(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Requested amount is required."),A.k0s())}function kE(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Fee rate is required."),A.k0s())}function HE(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Local amount is required."),A.k0s())}function jE(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Local amount must be greater than or equal to 20,000 Sats. It's required to cover the channel force close fee, if needed."),A.k0s())}function OE(n,l){if(1&n&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.SpI("Local amount must be less than or equal to ",e.totalBalance,".")}}function JE(n,l){if(1&n&&(A.j41(0,"span"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.channelConnectionError)}}function _E(n,l){if(1&n&&(A.j41(0,"div",27),A.nrm(1,"fa-icon",28),A.DNE(2,JE,2,1,"span",19),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("icon",e.faExclamationTriangle),A.R7$(),A.Y8G("ngIf",""!==e.channelConnectionError)}}function VE(n,l){1&n&&(A.j41(0,"th",47),A.EFF(1,"Type"),A.k0s())}function WE(n,l){if(1&n&&(A.j41(0,"td",48),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.type)}}function KE(n,l){1&n&&(A.j41(0,"th",47),A.EFF(1,"Address"),A.k0s())}function XE(n,l){if(1&n&&(A.j41(0,"td",48),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.address)}}function ZE(n,l){1&n&&(A.j41(0,"th",47),A.EFF(1,"Port"),A.k0s())}function qE(n,l){if(1&n&&(A.j41(0,"td",48),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e?null:e.port)}}function $E(n,l){1&n&&A.nrm(0,"tr",49)}function Aw(n,l){1&n&&A.nrm(0,"tr",50)}function ew(n,l){if(1&n&&(A.j41(0,"mat-expansion-panel",30)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),A.EFF(4,"Node: \xa0"),A.k0s(),A.j41(5,"strong",31),A.EFF(6),A.k0s()()(),A.j41(7,"div",13)(8,"div",6)(9,"div",7)(10,"h4",32),A.EFF(11,"Pubkey"),A.k0s(),A.j41(12,"span",33),A.EFF(13),A.k0s()()(),A.nrm(14,"mat-divider",34),A.j41(15,"div",6)(16,"div",7)(17,"h4",32),A.EFF(18,"Last Timestamp"),A.k0s(),A.j41(19,"span",35),A.EFF(20),A.nI1(21,"date"),A.k0s()()(),A.nrm(22,"mat-divider",34),A.j41(23,"div",36)(24,"h4",37),A.EFF(25,"Addresses"),A.k0s(),A.j41(26,"div",38)(27,"table",39,5),A.qex(29,40),A.DNE(30,VE,2,0,"th",41)(31,WE,2,1,"td",42),A.bVm(),A.qex(32,43),A.DNE(33,KE,2,0,"th",41)(34,XE,2,1,"td",42),A.bVm(),A.qex(35,44),A.DNE(36,ZE,2,0,"th",41)(37,qE,2,1,"td",42),A.bVm(),A.DNE(38,$E,1,0,"tr",45)(39,Aw,1,0,"tr",46),A.k0s()()()()()),2&n){const e=A.XpG(2);A.R7$(6),A.JRh((null==e.node?null:e.node.alias)||(null==e.node?null:e.node.nodeid)),A.R7$(7),A.JRh(e.node.nodeid),A.R7$(7),A.JRh(A.i5U(21,6,1e3*e.node.last_timestamp,"dd/MMM/y HH:mm")),A.R7$(7),A.Y8G("dataSource",e.node.addresses),A.R7$(11),A.Y8G("matHeaderRowDef",e.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",e.displayedColumns)}}function tw(n,l){if(1&n&&A.DNE(0,ew,40,9,"mat-expansion-panel",29),2&n){const e=A.XpG();A.Y8G("ngIf",e.node)}}let nw=(()=>{var n;class l{constructor(i,o,r,iA){this.dialogRef=i,this.data=o,this.actions=r,this.store=iA,this.faExclamationTriangle=v.zpE,this.totalBalance=0,this.node={},this.requestedAmount=0,this.feeRate=0,this.localAmount=0,this.channelConnectionError="",this.displayedColumns=["type","address","port"],this.unSubs=[new g.B,new g.B]}ngOnInit(){this.alertTitle=this.data.alertTitle||"",this.totalBalance=this.data.message?.balance||0,this.node=this.data.message?.node||{},this.requestedAmount=this.data.message?.requestedAmount||0,this.feeRate=this.data.message?.feeRate||0,this.localAmount=this.data.message?.localAmount||0,this.actions.pipe((0,I.Q)(this.unSubs[0]),(0,nA.p)(i=>i.type===B.TC.UPDATE_API_CALL_STATUS_CLN||i.type===B.TC.FETCH_CHANNELS_CLN)).subscribe(i=>{i.type===B.TC.UPDATE_API_CALL_STATUS_CLN&&i.payload.status===B.wn.ERROR&&"SaveNewChannel"===i.payload.action&&(this.channelConnectionError=i.payload.message),i.type===B.TC.FETCH_CHANNELS_CLN&&this.dialogRef.close()})}onClose(){this.dialogRef.close(!1)}resetData(){this.form.resetForm(),this.form.controls.ramount.setValue(this.data.message?.requestedAmount),this.form.controls.feerate.setValue(this.data.message?.feeRate),this.form.controls.lamount.setValue(this.data.message?.localAmount),this.calculateFee(),this.channelConnectionError=""}calculateFee(){this.node.channel_opening_fee=+(this.node.option_will_fund?.lease_fee_base_msat||0)/1e3+this.requestedAmount*+(this.node.option_will_fund?.lease_fee_basis||0)/1e4+ +(this.node.option_will_fund?.funding_weight||0)/4*this.feeRate}onOpenChannel(){if(!this.node||!this.node.option_will_fund||!this.requestedAmount||!this.feeRate||!this.localAmount||this.localAmount<2e4)return!0;const i={peerId:this.node.nodeid||"",amount:this.localAmount.toString(),feeRate:this.feeRate+"perkb",requestAmount:this.requestedAmount.toString(),compactLease:this.node.option_will_fund.compact_lease,announce:!0};this.store.dispatch((0,VA.vL)({payload:i}))}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(wA.CP),A.rXU(wA.Vh),A.rXU(kA.En),A.rXU(AA.il))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-open-liquidity-channel"]],viewQuery:function(o,r){if(1&o&&A.GBs(LE,7),2&o){let iA;A.mGM(iA=A.lsd())&&(r.form=iA.first)}},standalone:!1,decls:54,vars:24,consts:[["form","ngForm"],["ramount","ngModel"],["feeRt","ngModel"],["lamount","ngModel"],["nodeDetailsExpansionBlock",""],["table",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","6","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[4,"ngTemplateOutlet"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-sm","space-between center","fxLayout.gt-sm","row wrap"],["fxLayout","column","fxFlex","30","fxLayoutAlign","start end"],["autoFocus","","matInput","","type","number","tabindex","1","required","","name","ramount",3,"ngModelChange","keyup","step","min","ngModel"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","required","","name","feerate",3,"ngModelChange","keyup","step","min","ngModel"],["matInput","","type","number","tabindex","3","required","","name","lamount",3,"ngModelChange","step","min","max","ngModel"],["fxFlex","100",1,"alert","alert-info","mt-4"],["fxFlex","100","class","alert alert-danger mt-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","4",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","tabindex","5",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-2"],[1,"mr-1","alert-icon",3,"icon"],["class","flat-expansion-panel mt-1 mb-2","expanded","false",4,"ngIf"],["expanded","false",1,"flat-expansion-panel","mt-1","mb-2"],[1,"font-weight-900"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"font-bold-500","mb-1"],[1,"table-container"],["mat-table","","matSort","",1,"overflow-auto",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","port"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",6)(1,"div",7)(2,"mat-card-header",8)(3,"div",9)(4,"span",10),A.EFF(5),A.k0s()(),A.j41(6,"button",11),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onClose())}),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",12)(9,"form",13,0),A.DNE(11,GE,1,0,"ng-container",14),A.j41(12,"div",15)(13,"mat-form-field",16)(14,"mat-label"),A.EFF(15,"Requested Amount"),A.k0s(),A.j41(16,"input",17,1),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.requestedAmount,re)||(r.requestedAmount=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.calculateFee())}),A.k0s(),A.j41(18,"span",18),A.EFF(19," Sats "),A.k0s(),A.DNE(20,zE,2,0,"mat-error",19),A.k0s(),A.j41(21,"mat-form-field",16)(22,"mat-label"),A.EFF(23,"Fee Rate"),A.k0s(),A.j41(24,"input",20,2),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.feeRate,re)||(r.feeRate=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.calculateFee())}),A.k0s(),A.j41(26,"span",18),A.EFF(27," Sats/vByte "),A.k0s(),A.DNE(28,kE,2,0,"mat-error",19),A.k0s(),A.j41(29,"mat-form-field",16)(30,"mat-label"),A.EFF(31,"Local Amount"),A.k0s(),A.j41(32,"input",21,3),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.localAmount,re)||(r.localAmount=re),w.Njj(re)}),A.k0s(),A.j41(34,"mat-hint"),A.EFF(35),A.nI1(36,"number"),A.k0s(),A.j41(37,"span",18),A.EFF(38," Sats "),A.k0s(),A.DNE(39,HE,2,0,"mat-error",19)(40,jE,2,0,"mat-error",19)(41,OE,2,1,"mat-error",19),A.k0s()(),A.j41(42,"div",22)(43,"span"),A.EFF(44),A.nI1(45,"number"),A.k0s()(),A.DNE(46,_E,3,2,"div",23),A.j41(47,"div",24)(48,"button",25),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.resetData())}),A.EFF(49,"Clear"),A.k0s(),A.j41(50,"button",26),A.bIt("click",function(){return w.eBV(iA),w.Njj(r.onOpenChannel())}),A.EFF(51,"Execute"),A.k0s()()()()()(),A.DNE(52,tw,1,1,"ng-template",null,4,A.C5r)}if(2&o){const iA=A.sdS(17),ne=A.sdS(25),re=A.sdS(33),ln=A.sdS(53);A.R7$(5),A.JRh(r.alertTitle),A.R7$(6),A.Y8G("ngTemplateOutlet",ln),A.R7$(5),A.Y8G("step",1e4)("min",0),A.R50("ngModel",r.requestedAmount),A.R7$(4),A.Y8G("ngIf",null==iA.errors?null:iA.errors.required),A.R7$(4),A.Y8G("step",10)("min",0),A.R50("ngModel",r.feeRate),A.R7$(4),A.Y8G("ngIf",null==ne.errors?null:ne.errors.required),A.R7$(4),A.Y8G("step",1e4)("min",2e4)("max",r.totalBalance),A.R50("ngModel",r.localAmount),A.R7$(3),A.SpI("Remaining: ",A.bMT(36,20,r.totalBalance-(r.localAmount?r.localAmount:0))),A.R7$(4),A.Y8G("ngIf",null==re.errors?null:re.errors.required),A.R7$(),A.Y8G("ngIf",null==re.errors?null:re.errors.min),A.R7$(),A.Y8G("ngIf",null==re.errors?null:re.errors.max),A.R7$(3),A.SpI("Total cost to lease ",A.bMT(45,22,r.node.channel_opening_fee)," (Sats)"),A.R7$(2),A.Y8G("ngIf",""!==r.channelConnectionError)}},dependencies:[de.bT,de.T3,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.VZ,hA.zX,hA.vS,hA.cV,P.aY,fA.$z,QA.m2,QA.MM,gi.GK,gi.Z2,gi.WN,UA.fg,yA.rl,yA.nJ,yA.MV,yA.TL,yA.yw,sn.q,Q.DJ,Q.sA,Q.UI,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.KS,z.$R,z.YZ,z.NB,cA.N,Vn.z,J.V,de.QX,de.vh],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}))}return n(),l})();var iw=We(36471);const sw=()=>["all"],rw=n=>({"error-border":n}),aw=()=>["no_lqNode"],Oc=n=>({width:n}),ow=n=>({"display-none":n});function lw(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Channel amount is required."),A.k0s())}function cw(n,l){1&n&&(A.j41(0,"mat-error"),A.EFF(1,"Channel opening fee rate is required."),A.k0s())}function gw(n,l){if(1&n&&(A.j41(0,"mat-option",49),A.EFF(1),A.k0s()),2&n){const e=l.$implicit,i=A.XpG();A.Y8G("value",e),A.R7$(),A.JRh(i.getLabel(e))}}function Bw(n,l){1&n&&A.nrm(0,"mat-progress-bar",50)}function fw(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Alias"),A.k0s())}function uw(n,l){if(1&n&&(A.j41(0,"mat-chip",57),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.SpI(" ","tor"===e?"Tor":"ipv"===e?"Clearnet":e," ")}}function hw(n,l){if(1&n&&(A.j41(0,"td",52)(1,"div",53)(2,"span",54),A.EFF(3),A.j41(4,"mat-chip-list",55),A.DNE(5,uw,2,1,"mat-chip",56),A.k0s()()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(3,Oc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.SpI(" ",null==e?null:e.alias," "),A.R7$(2),A.Y8G("ngForOf",e.address_types)}}function Ew(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Node ID"),A.k0s())}function ww(n,l){if(1&n&&(A.j41(0,"td",52)(1,"div",53)(2,"span",58),A.EFF(3),A.k0s()()()),2&n){const e=l.$implicit,i=A.XpG();A.R7$(),A.Y8G("ngStyle",A.eq3(2,Oc,i.screenSize===i.screenSizeEnum.XS?"6rem":i.colWidth)),A.R7$(2),A.JRh(null==e?null:e.nodeid)}}function Cw(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Last Announcement At"),A.k0s())}function dw(n,l){if(1&n&&(A.j41(0,"td",52),A.EFF(1),A.nI1(2,"date"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*(null==e?null:e.last_timestamp),"dd/MMM/y HH:mm")||"-")}}function Qw(n,l){1&n&&(A.j41(0,"th",51),A.EFF(1,"Compact Lease"),A.k0s())}function mw(n,l){if(1&n&&(A.j41(0,"td",52),A.EFF(1),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.JRh(null==e||null==e.option_will_fund?null:e.option_will_fund.compact_lease)}}function Mw(n,l){1&n&&(A.j41(0,"th",59),A.EFF(1," Lease Fee"),A.k0s())}function pw(n,l){if(1&n&&(A.j41(0,"td",52),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Lme(" ",A.i5U(2,2,(null==e||null==e.option_will_fund?null:e.option_will_fund.lease_fee_base_msat)/1e3,"1.0-0")," Sats + ",A.i5U(3,5,(null==e||null==e.option_will_fund?null:e.option_will_fund.lease_fee_basis)/100,"1.2-2"),"% ")}}function Iw(n,l){1&n&&(A.j41(0,"th",59),A.EFF(1," Routing Fee"),A.k0s())}function Dw(n,l){if(1&n&&(A.j41(0,"td",52),A.EFF(1),A.nI1(2,"number"),A.nI1(3,"number"),A.k0s()),2&n){const e=l.$implicit;A.R7$(),A.Lme(" ",A.i5U(2,2,(null==e||null==e.option_will_fund?null:e.option_will_fund.channel_fee_max_base_msat)/1e3,"1.0-0")," Sats + ",A.i5U(3,5,1e3*(null==e||null==e.option_will_fund?null:e.option_will_fund.channel_fee_max_proportional_thousandths),"1.0-0")," ppm ")}}function Fw(n,l){1&n&&(A.j41(0,"th",60),A.EFF(1,"Channel Opening Fee (Sats)"),A.k0s())}function yw(n,l){if(1&n&&(A.j41(0,"td",52)(1,"span",61),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,e.channel_opening_fee,"1.0-0")," ")}}function xw(n,l){1&n&&(A.j41(0,"th",60),A.EFF(1,"Funding Weight"),A.k0s())}function Yw(n,l){if(1&n&&(A.j41(0,"td",52)(1,"span",61),A.EFF(2),A.nI1(3,"number"),A.k0s()()),2&n){const e=l.$implicit;A.R7$(2),A.SpI(" ",A.i5U(3,1,null==e||null==e.option_will_fund?null:e.option_will_fund.funding_weight,"1.0-0")," ")}}function bw(n,l){if(1&n){const e=A.RV6();A.j41(0,"th",59)(1,"div",62)(2,"mat-select",63),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",64),A.bIt("click",function(){w.eBV(e);const o=A.XpG();return w.Njj(o.onDownloadCSV())}),A.EFF(5,"Download CSV"),A.k0s()()()()}}function vw(n,l){if(1&n){const e=A.RV6();A.j41(0,"td",65)(1,"div",62)(2,"mat-select",63),A.nrm(3,"mat-select-trigger"),A.j41(4,"mat-option",64),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onViewLeaseInfo(o))}),A.EFF(5,"View Info"),A.k0s(),A.j41(6,"mat-option",64),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.onOpenChannel(o))}),A.EFF(7,"Open Channel"),A.k0s(),A.j41(8,"mat-option",64),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.viewLeaseOn(o,"LN"))}),A.EFF(9,"View on Lnrouter"),A.k0s(),A.j41(10,"mat-option",64),A.bIt("click",function(){const o=w.eBV(e).$implicit,r=A.XpG();return w.Njj(r.viewLeaseOn(o,"AM"))}),A.EFF(11,"View on Amboss"),A.k0s()()()()}}function Rw(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"No node with liquidity."),A.k0s())}function Sw(n,l){1&n&&(A.j41(0,"p"),A.EFF(1,"Getting nodes with liquidity..."),A.k0s())}function Nw(n,l){if(1&n&&(A.j41(0,"p"),A.EFF(1),A.k0s()),2&n){const e=A.XpG(2);A.R7$(),A.JRh(e.errorMessage)}}function Tw(n,l){if(1&n&&(A.j41(0,"td",66),A.DNE(1,Rw,2,0,"p",17)(2,Sw,2,0,"p",17)(3,Nw,2,1,"p",17),A.k0s()),2&n){const e=A.XpG();A.R7$(),A.Y8G("ngIf",(!(null!=e.liquidityNodes&&e.liquidityNodes.data)||(null==e.liquidityNodes||null==e.liquidityNodes.data?null:e.liquidityNodes.data.length)<1)&&e.listNodesCallStatus===e.apiCallStatusEnum.COMPLETED),A.R7$(),A.Y8G("ngIf",(!(null!=e.liquidityNodes&&e.liquidityNodes.data)||(null==e.liquidityNodes||null==e.liquidityNodes.data?null:e.liquidityNodes.data.length)<1)&&e.listNodesCallStatus===e.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("ngIf",(!(null!=e.liquidityNodes&&e.liquidityNodes.data)||(null==e.liquidityNodes||null==e.liquidityNodes.data?null:e.liquidityNodes.data.length)<1)&&e.listNodesCallStatus===e.apiCallStatusEnum.ERROR)}}function Pw(n,l){if(1&n&&A.nrm(0,"tr",67),2&n){const e=A.XpG();A.Y8G("ngClass",A.eq3(1,ow,(null==e.liquidityNodes?null:e.liquidityNodes.data)&&(null==e.liquidityNodes||null==e.liquidityNodes.data?null:e.liquidityNodes.data.length)>0))}}function Uw(n,l){1&n&&A.nrm(0,"tr",68)}function Lw(n,l){1&n&&A.nrm(0,"tr",69)}let Gw=(()=>{var n;class l{constructor(i,o,r,iA,ne,re,ln){this.logger=i,this.store=o,this.dataService=r,this.commonService=iA,this.rtlEffects=ne,this.datePipe=re,this.camelCaseWithReplace=ln,this.nodePageDefs=B.Jd,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="liquidity_ads",this.tableSetting={tableId:"liquidity_ads",recordsPerPage:B.md,sortBy:"channel_opening_fee",sortOrder:B.oi.ASCENDING},this.askTooltipMsg="",this.nodesTooltipMsg="",this.displayedColumns=[],this.faBullhorn=v.e4L,this.faExclamationTriangle=v.zpE,this.faUsers=v.gdJ,this.totalBalance=0,this.channelAmount=1e5,this.channel_opening_feeRate=10,this.node_capacity=5e5,this.channel_count=5,this.liquidityNodesData=[],this.liquidityNodes=new z.I6([]),this.pageSize=B.md,this.pageSizeOptions=B.xp,this.screenSize="",this.screenSizeEnum=B.f7,this.errorMessage="",this.selFilter="",this.listNodesCallStatus=B.wn.INITIATED,this.apiCallStatusEnum=B.wn,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.askTooltipMsg="Specify the liquidity requirements for your node: \n 1. Channel Amount - Amount in Sats you need on the channel opened to your node \n 2. Channel opening fee rate - Rate in Sats/vByte that you are willing to pay to open the channel to you",this.nodesTooltipMsg="These nodes are advertising their liquidity offering on the network.\nYou should pay attention to the following aspects to evaluate each node offer: \n- The total bitcoin deployed on the node, the more the better\n",this.nodesTooltipMsg=this.nodesTooltipMsg+"- The number of channels open on the node, the more the better\n- The channel open fee which the node will charge from you\n- The routing fee which the node will charge on the payments, the lesser the better\n- The reliability of the node, ideally uptime. Refer to the information being provided by the node explorers",this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(tA.av).pipe((0,I.Q)(this.unSubs[0])).subscribe(i=>{this.errorMessage="",i.apiCallStatus.status===B.wn.ERROR&&(this.errorMessage=i.apiCallStatus.message||""),this.tableSetting=i.pageSettings.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId)||B.mu.find(o=>o.pageId===this.PAGE_ID)?.tables.find(o=>o.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===B.f7.XS||this.screenSize===B.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:B.md,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)}),(0,Va.z)([this.store.select(tA.kQ),this.dataService.listNetworkNodes({liquidity_ads:!0})]).pipe((0,I.Q)(this.unSubs[1])).subscribe({next:([i,o])=>{this.information=i.information,this.totalBalance=i.balance.totalBalance||0,this.logger.info(i),o&&!o.length&&(o=[]),this.logger.info("Received Liquidity Ads Enabled Nodes: "+JSON.stringify(o)),this.listNodesCallStatus=B.wn.COMPLETED,o.forEach(r=>{r.address_types=Array.from(new Set(r.addresses?.reduce((ne,re)=>((re.type?.includes("ipv")||re.type?.includes("tor"))&&ne.push(re.type?.substring(0,3)),ne),[])))}),this.liquidityNodesData=o.filter(r=>r.nodeid!==this.information.id),this.onCalculateOpeningFee(),this.loadLiqNodesTable(this.liquidityNodesData)},error:i=>{this.logger.error("Liquidity Ads Nodes Error: "+JSON.stringify(i)),this.listNodesCallStatus=B.wn.ERROR,this.errorMessage=JSON.stringify(i)}})}onCalculateOpeningFee(){this.liquidityNodesData.forEach(i=>{i.option_will_fund&&(i.channel_opening_fee=+(i.option_will_fund.lease_fee_base_msat||0)/1e3+this.channelAmount*+(i.option_will_fund.lease_fee_basis||0)/1e4+ +(i.option_will_fund.funding_weight||0)/4*this.channel_opening_feeRate)}),this.paginator&&this.paginator.firstPage()}onFilter(){}applyFilter(){this.liquidityNodes.filter=this.selFilter.trim().toLowerCase()}getLabel(i){const o=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(r=>r.column===i);return o?o.label?o.label:this.camelCaseWithReplace.transform(o.column||"","_"):this.commonService.titleCase(i)}setFilterPredicate(){this.liquidityNodes.filterPredicate=(i,o)=>{let r="";switch(this.selFilterBy){case"all":r=(i.alias?i.alias.toLocaleLowerCase():"")+(i.channel_opening_fee?i.channel_opening_fee+" Sats":"")+(i.option_will_fund?.lease_fee_base_msat?i.option_will_fund?.lease_fee_base_msat/1e3+" Sats":"")+(i.option_will_fund?.lease_fee_basis?i.option_will_fund?.lease_fee_basis/100+"%":"")+(i.option_will_fund?.channel_fee_max_base_msat?i.option_will_fund?.channel_fee_max_base_msat/1e3+" Sats":"")+(i.option_will_fund?.channel_fee_max_proportional_thousandths?1e3*i.option_will_fund?.channel_fee_max_proportional_thousandths+" ppm":"")+(i.address_types?i.address_types.reduce((iA,ne)=>iA+("tor"===ne?" tor":"ipv"===ne?" clearnet":" "+ne.toLowerCase()),""):"");break;case"alias":r=(i?.alias?.toLowerCase()||" ")+i?.address_types?.reduce((iA,ne)=>iA+(ne?"ipv"===ne?"clearnet":ne:"")," ")||"";break;case"last_timestamp":r=this.datePipe.transform(new Date(1e3*(i.last_timestamp||0)),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;case"compact_lease":r=i?.option_will_fund?.compact_lease?.toLowerCase()||"";break;case"lease_fee":r=((i.option_will_fund?.lease_fee_base_msat||0)/1e3+" sats "||0)+((i.option_will_fund?.lease_fee_basis||0)/100+"%")||0;break;case"routing_fee":r=((i.option_will_fund?.channel_fee_max_base_msat||0)/1e3+" sats "||0)+(1e3*(i.option_will_fund?.channel_fee_max_proportional_thousandths||0)+" ppm")||0;break;default:r=typeof i[this.selFilterBy]>"u"?"":"string"==typeof i[this.selFilterBy]?i[this.selFilterBy].toLowerCase():"boolean"==typeof i[this.selFilterBy]?i[this.selFilterBy]?"yes":"no":i[this.selFilterBy].toString()}return r.includes(o)}}loadLiqNodesTable(i){this.liquidityNodes=new z.I6([...i]),this.liquidityNodes.sort=this.sort,this.liquidityNodes.sortingDataAccessor=(o,r)=>o[r]&&isNaN(o[r])?o[r].toLocaleLowerCase():o[r]?+o[r]:null,this.setFilterPredicate(),this.applyFilter(),this.liquidityNodes.paginator=this.paginator}viewLeaseOn(i,o){"LN"===o?window.open("https://lnrouter.app/node/"+i.nodeid,"_blank"):"AM"===o&&window.open("https://amboss.space/node/"+i.nodeid,"_blank")}onOpenChannel(i){this.store.dispatch((0,C.xO)({payload:{data:{alertTitle:"Open Channel",message:{node:i,balance:this.totalBalance,requestedAmount:this.channelAmount,feeRate:this.channel_opening_feeRate,localAmount:2e4},component:nw}}}))}onViewLeaseInfo(i){const o=i.addresses?.reduce((ne,re)=>(re.address&&re.address.length>40&&(re.address=re.address.substring(0,39)+"..."),ne.concat(JSON.stringify(re).replace("{","").replace("}","").replace(/:/g,": ").replace(/,/g,"        ").replace(/"/g,""))),[]),r=[];if(i.features&&""!==i.features.trim()){const ne=parseInt(i.features,16);B.TH.forEach(re=>{ne&1<{ne&&this.onOpenChannel(i)})}onDownloadCSV(){this.liquidityNodes.data&&this.liquidityNodes.data.length>0&&this.commonService.downloadFile(this.liquidityNodes.data,"LiquidityNodes")}onFilterReset(){this.node_capacity=0,this.channel_count=0}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)(A.rXU(aA.gP),A.rXU(AA.il),A.rXU(Dt.u),A.rXU(L.h),A.rXU(b.H),A.rXU(de.vh),A.rXU(R.VD))},this.\u0275cmp=A.VBU({type:l,selectors:[["rtl-cln-liquidity-ads-list"]],viewQuery:function(o,r){if(1&o&&(A.GBs(pA.B4,5),A.GBs(H.iy,5)),2&o){let iA;A.mGM(iA=A.lsd())&&(r.sort=iA.first),A.mGM(iA=A.lsd())&&(r.paginator=iA.first)}},standalone:!1,features:[A.Jv_([{provide:OA.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:H.xX,useValue:(0,B.on)("Liquidity Ads")}])],decls:83,vars:26,consts:[["formAsk","ngForm"],["table",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],[1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","space-between stretch"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch","fxLayoutAlign.gt-sm","space-between stretch","fxLayout.gt-sm","row wrap"],["fxFlex.gt-xs","100","fxLayout","row",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayout.gt-sm","row wrap","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","30"],[1,"page-text"],["matTooltipPosition","above","matTooltipClass","pre-wrap",1,"info-icon","info-icon-primary",3,"matTooltip"],["fxLayout","column","fxFlex","34"],["autoFocus","","matInput","","name","channelAmount","tabindex","1","type","number","step","10000","required","",3,"ngModelChange","keyup","ngModel"],[4,"ngIf"],["matInput","","name","channel_opening_feeRate","type","number","step","10","tabindex","2","required","",3,"ngModelChange","keyup","ngModel"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-2"],["fxFlex","70"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","column","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeid"],["matColumnDef","last_timestamp"],["matColumnDef","compact_lease"],["matColumnDef","lease_fee"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","routing_fee"],["matColumnDef","channel_opening_fee"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","funding_weight"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_lqNode"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],["fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center",1,"ellipsis-child"],["aria-label","Address Types",1,"ml-half"],["color","primary","selected","",4,"ngFor","ngForOf"],["color","primary","selected",""],[1,"ellipsis-child"],["mat-header-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(o,r){if(1&o){const iA=A.RV6();A.j41(0,"div",2),A.nrm(1,"fa-icon",3),A.j41(2,"span",4),A.EFF(3,"Liquidity Ads"),A.k0s()(),A.j41(4,"div",5)(5,"mat-card")(6,"mat-card-content",6)(7,"div",7)(8,"form",8,0)(10,"div",9),A.nrm(11,"fa-icon",10),A.j41(12,"span"),A.EFF(13,"Ads should be supplemented with additional research of the node, before buying liquidity."),A.k0s()(),A.j41(14,"div",11)(15,"div",12)(16,"span",13),A.EFF(17,"Liquidity Ask"),A.k0s(),A.j41(18,"mat-icon",14),A.EFF(19,"info_outline"),A.k0s()(),A.j41(20,"mat-form-field",15)(21,"mat-label"),A.EFF(22,"Channel Amount (Sats)"),A.k0s(),A.j41(23,"input",16),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.channelAmount,re)||(r.channelAmount=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onCalculateOpeningFee())}),A.k0s(),A.DNE(24,lw,2,0,"mat-error",17),A.k0s(),A.j41(25,"mat-form-field",15)(26,"mat-label"),A.EFF(27,"Channel Opening Fee Rate (Sats/vByte)"),A.k0s(),A.j41(28,"input",18),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.channel_opening_feeRate,re)||(r.channel_opening_feeRate=re),w.Njj(re)}),A.bIt("keyup",function(){return w.eBV(iA),w.Njj(r.onCalculateOpeningFee())}),A.k0s(),A.DNE(29,cw,2,0,"mat-error",17),A.k0s()()(),A.j41(30,"div",19)(31,"div",20),A.nrm(32,"fa-icon",3),A.j41(33,"span",4),A.EFF(34,"Liquidity Providing Peers"),A.k0s()(),A.j41(35,"div",21)(36,"mat-form-field",22)(37,"mat-label"),A.EFF(38,"Filter By"),A.k0s(),A.j41(39,"mat-select",23),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilterBy,re)||(r.selFilterBy=re),w.Njj(re)}),A.bIt("selectionChange",function(){return w.eBV(iA),r.selFilter="",w.Njj(r.applyFilter())}),A.j41(40,"perfect-scrollbar"),A.DNE(41,gw,2,2,"mat-option",24),A.k0s()()(),A.j41(42,"mat-form-field",22)(43,"mat-label"),A.EFF(44,"Filter"),A.k0s(),A.j41(45,"input",25),A.mxI("ngModelChange",function(re){return w.eBV(iA),A.DH7(r.selFilter,re)||(r.selFilter=re),w.Njj(re)}),A.bIt("input",function(){return w.eBV(iA),w.Njj(r.applyFilter())})("keyup",function(){return w.eBV(iA),w.Njj(r.applyFilter())}),A.k0s()()()(),A.j41(46,"div",26),A.DNE(47,Bw,1,0,"mat-progress-bar",27),A.j41(48,"table",28,1),A.qex(50,29),A.DNE(51,fw,2,0,"th",30)(52,hw,6,5,"td",31),A.bVm(),A.qex(53,32),A.DNE(54,Ew,2,0,"th",30)(55,ww,4,4,"td",31),A.bVm(),A.qex(56,33),A.DNE(57,Cw,2,0,"th",30)(58,dw,3,4,"td",31),A.bVm(),A.qex(59,34),A.DNE(60,Qw,2,0,"th",30)(61,mw,2,1,"td",31),A.bVm(),A.qex(62,35),A.DNE(63,Mw,2,0,"th",36)(64,pw,4,8,"td",31),A.bVm(),A.qex(65,37),A.DNE(66,Iw,2,0,"th",36)(67,Dw,4,8,"td",31),A.bVm(),A.qex(68,38),A.DNE(69,Fw,2,0,"th",39)(70,yw,4,4,"td",31),A.bVm(),A.qex(71,40),A.DNE(72,xw,2,0,"th",39)(73,Yw,4,4,"td",31),A.bVm(),A.qex(74,41),A.DNE(75,bw,6,0,"th",36)(76,vw,12,0,"td",42),A.bVm(),A.qex(77,43),A.DNE(78,Tw,4,3,"td",44),A.bVm(),A.DNE(79,Pw,1,3,"tr",45)(80,Uw,1,0,"tr",46)(81,Lw,1,0,"tr",47),A.k0s()(),A.nrm(82,"mat-paginator",48),A.k0s()()()()}2&o&&(A.R7$(),A.Y8G("icon",r.faBullhorn),A.R7$(10),A.Y8G("icon",r.faExclamationTriangle),A.R7$(7),A.Y8G("matTooltip",r.askTooltipMsg),A.R7$(5),A.R50("ngModel",r.channelAmount),A.R7$(),A.Y8G("ngIf",!r.channelAmount),A.R7$(4),A.R50("ngModel",r.channel_opening_feeRate),A.R7$(),A.Y8G("ngIf",!r.channel_opening_feeRate),A.R7$(3),A.Y8G("icon",r.faUsers),A.R7$(7),A.R50("ngModel",r.selFilterBy),A.R7$(2),A.Y8G("ngForOf",A.lJ4(22,sw).concat(r.displayedColumns.slice(0,-1))),A.R7$(4),A.R50("ngModel",r.selFilter),A.R7$(2),A.Y8G("ngIf",r.listNodesCallStatus===r.apiCallStatusEnum.INITIATED),A.R7$(),A.Y8G("matSortActive",r.tableSetting.sortBy)("matSortDirection",r.tableSetting.sortOrder)("dataSource",r.liquidityNodes)("ngClass",A.eq3(23,rw,""!==r.errorMessage)),A.R7$(31),A.Y8G("matFooterRowDef",A.lJ4(25,aw)),A.R7$(),A.Y8G("matHeaderRowDef",r.displayedColumns),A.R7$(),A.Y8G("matRowDefColumns",r.displayedColumns),A.R7$(),A.Y8G("pageSize",r.pageSize)("pageSizeOptions",r.pageSizeOptions)("showFirstLastButtons",r.screenSize!==r.screenSizeEnum.XS))},dependencies:[de.YU,de.Sq,de.bT,de.B3,hA.qT,hA.me,hA.Q0,hA.BC,hA.cb,hA.YS,hA.vS,hA.cV,P.aY,QA.RN,QA.m2,oA.An,UA.fg,yA.rl,yA.nJ,yA.TL,eA.HM,Q.DJ,Q.sA,Q.UI,dA.PW,dA.eI,iw.Jl,OA.VO,OA.$2,xA.wT,pA.B4,pA.aE,z.Zl,z.tL,z.ji,z.cC,z.YV,z.iL,z.Zq,z.xW,z.KS,z.$R,z.Qo,z.YZ,z.NB,z.iF,HA.oV,H.iy,M.ZF,M.Ld,cA.N,de.QX,de.vh],encapsulation:2}))}return n(),l})();const zw=[{path:"",component:t,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Yr,canActivate:[(0,Vt.Wz)()]},{path:"onchain",component:So,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"receive/utxos"},{path:"receive/:selTab",component:xl,canActivate:[(0,Vt.Wz)()]},{path:"send/:selTab",component:Yl,data:{sweepAll:!1},canActivate:[(0,Vt.Wz)()]},{path:"sweep/:selTab",component:Yl,data:{sweepAll:!0},canActivate:[(0,Vt.Wz)()]}]},{path:"connections",component:To,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:Wl,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:Ut,canActivate:[(0,Vt.Wz)()]},{path:"pending",component:r0,canActivate:[(0,Vt.Wz)()]},{path:"activehtlcs",component:Du,canActivate:[(0,Vt.Wz)()]}]},{path:"peers",component:P0,data:{sweepAll:!1},canActivate:[(0,Vt.Wz)()]}]},{path:"liquidityads",component:Gw,canActivate:[(0,Vt.Wz)()]},{path:"transactions",component:Uo,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:Z,canActivate:[(0,Vt.Wz)()]},{path:"invoices",component:Ot,canActivate:[(0,Vt.Wz)()]},{path:"offers",component:xh,canActivate:[(0,Vt.Wz)()]},{path:"offrBookmarks",component:tE,canActivate:[(0,Vt.Wz)()]}]},{path:"messages",component:Fl,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"sign"},{path:"sign",component:rg,canActivate:[(0,Vt.Wz)()]},{path:"verify",component:ug,canActivate:[(0,Vt.Wz)()]}]},{path:"routing",component:Go,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Sc,canActivate:[(0,Vt.Wz)()]},{path:"failedtransactions",component:GB,canActivate:[(0,Vt.Wz)()]},{path:"localfail",component:UE,canActivate:[(0,Vt.Wz)()]},{path:"routingpeers",component:Sf,canActivate:[(0,Vt.Wz)()]}]},{path:"reports",component:yu,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:Tu,canActivate:[(0,Vt.Wz)()]},{path:"transactions",component:Ou,canActivate:[(0,Vt.Wz)()]}]},{path:"graph",component:Vu,canActivate:[(0,Vt.Wz)()],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:rl,canActivate:[(0,Vt.Wz)()]},{path:"queryroutes",component:ig,canActivate:[(0,Vt.Wz)()]}]},{path:"rates",component:Fc,canActivate:[(0,Vt.Wz)()]},{path:"**",component:Ju.X},{path:"network",redirectTo:"rates"},{path:"wallet",redirectTo:"home"},{path:"backup",redirectTo:"home"}]}],kw=Sn.iI.forChild(zw);var Hw=We(19029);let jw=(()=>{var n;class l{static#A=n=()=>(this.\u0275fac=function(o){return new(o||l)},this.\u0275mod=A.$C({type:l,bootstrap:[t]}),this.\u0275inj=w.G2t({imports:[de.MD,Hw.G,kw]}))}return n(),l})()},82643(Pi,Wi,We){var Mn,de=We(29293).default;Object(typeof self<"u"?self:this),Mn=()=>(()=>{var Sn={7133(eA,Q,f){"use strict";f.d(Q,{default:()=>xe}),f(187);var g=f(1771);function I($){return"string"==typeof $||$ instanceof String}function N($){return("number"==typeof $||$ instanceof Number)&&!Number.isNaN($)}function K($){return!(!N($)||!Number.isInteger($)||$<=0)}function v($){return null!==$&&!Array.isArray($)&&!I($)&&!N($)&&"object"==typeof $}function B($){return v($)&&0===Object.keys($).length}function j($){return null!=$}var tA=f(783).Buffer;const AA=class aA extends g.A{constructor(s,d,F,W,Z,EA,PA){void 0===s&&(s={}),void 0===d&&(d={}),void 0===F&&(F={}),void 0===W&&(W={}),void 0===Z&&(Z={}),void 0===EA&&(EA=null),void 0===PA&&(PA=void 0),super(Z),this.fonts={},this.fontCache={};for(let FA in s)if(s.hasOwnProperty(FA)){let te=s[FA];this.fonts[FA]={normal:te.normal,bold:te.bold,italics:te.italics,bolditalics:te.bolditalics}}this.patterns={};for(let FA in F)if(F.hasOwnProperty(FA)){let te=F[FA];this.patterns[FA]=this.pattern(te.boundingBox,te.xStep,te.yStep,te.pattern,te.colored)}this.images=d,this.attachments=W,this.virtualfs=EA,this.localAccessPolicy=PA}getFontType(s,d){return(($,s)=>{let d="normal";return $&&s?d="bolditalics":$?d="bold":s&&(d="italics"),d})(s,d)}getFontFile(s,d,F){let W=this.getFontType(d,F);return this.fonts[s]&&this.fonts[s][W]?this.fonts[s][W]:null}provideFont(s,d,F){let W=this.getFontType(d,F);if(null===this.getFontFile(s,d,F))throw new Error(`Font '${s}' in style '${W}' is not defined in the font section of the document definition.`);if(this.fontCache[s]=this.fontCache[s]||{},!this.fontCache[s][W]){let Z=this.fonts[s][W];Array.isArray(Z)||(Z=[Z]),this.virtualfs&&this.virtualfs.existsSync(Z[0])?Z[0]=this.virtualfs.readFileSync(Z[0]):this.validateLocalFile(Z[0]),this.fontCache[s][W]=this.font(...Z)._font}return this.fontCache[s][W]}provideImage(s){if(this._imageRegistry[s])return this._imageRegistry[s];let F,W=(Z=>{let EA=this.images[Z];if(!EA)return Z;if(this.virtualfs&&this.virtualfs.existsSync(EA))return this.virtualfs.readFileSync(EA);let PA=EA.indexOf("base64,");return PA<0?this.images[Z]:tA.from(EA.substring(PA+7),"base64")})(s);this.validateLocalFile(W);try{if(F=this.openImage(W),!F)throw new Error("No image")}catch(Z){throw new Error(`Invalid image: ${Z.toString()}\nImages dictionary should contain dataURL entries (or local file paths in node.js)`,{cause:Z})}return F.embed(this),this._imageRegistry[s]=F,F}providePattern(s){return Array.isArray(s)&&2===s.length?[this.patterns[s[0]],s[1]]:null}provideAttachment(s){const d=W=>{if(!W)throw new Error("No attachment");if(!W.src)throw new Error('The "src" key is required for attachments');return W};if("object"==typeof s)return d(s);let F=d(this.attachments[s]);return this.virtualfs&&this.virtualfs.existsSync(F.src)?this.virtualfs.readFileSync(F.src):(this.validateLocalFile(F.src),F)}resolveColor(s,d){return s=s||d,"function"==typeof this._normalizeColor&&I(s)&&null===this._normalizeColor(s)?d:s}setOpenActionAsPrint(){let s=this.ref({Type:"Action",S:"Named",N:"Print"});this._root.data.OpenAction=s,s.end()}file(s,d){return void 0===d&&(d={}),this.validateLocalFile(s),super.file(s,d)}validateLocalFile(s){if(!(typeof this.localAccessPolicy>"u")&&I(s)&&!/^data:/.test(s)&&!0!==this.localAccessPolicy(s))throw new Error(`Access to local file denied by resource access policy: ${s}`)}};function L($,s){return"font"===$?"font":s}function P($){return JSON.stringify($,L)}function rA($){if($.id)return $.id;if(Array.isArray($.text))for(let s of $.text){let d=rA(s);if(d)return d}return null}var NA=f(783).Buffer;const oA=$=>I($)?$.replace(/\t/g," "):N($)||"boolean"==typeof $?$.toString():!j($)||B($)?"":$,dA=class uA{preprocessDocument(s){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(s,!0)}preprocessBlock(s){return this.parentNode=null,this.tocs=[],this.nodeReferences=[],this.preprocessNode(s)}preprocessNode(s,d){if(void 0===d&&(d=!1),Array.isArray(s)?s={stack:s}:I(s)||N(s)||"boolean"==typeof s||!j(s)||B(s)?s={text:oA(s)}:"text"in s&&(s.text=oA(s.text)),s.section){if(!d)throw new Error(`Incorrect document structure, section node is only allowed at the root level of document structure: ${P(s)}`);return this.preprocessSection(s)}if(s.columns)return this.preprocessColumns(s);if(s.stack)return this.preprocessVerticalContainer(s,d);if(s.ul)return this.preprocessList(s);if(s.ol)return this.preprocessList(s);if(s.table)return this.preprocessTable(s);if(void 0!==s.text)return this.preprocessText(s);if(s.toc)return this.preprocessToc(s);if(s.image)return this.preprocessImage(s);if(s.svg)return this.preprocessSVG(s);if(s.canvas)return this.preprocessCanvas(s);if(s.qr)return this.preprocessQr(s);if(s.attachment)return this.preprocessAttachment(s);if(s.pageReference||s.textReference)return this.preprocessText(s);throw new Error(`Unrecognized document structure: ${P(s)}`)}preprocessSection(s){return s.section=this.preprocessNode(s.section),s}preprocessColumns(s){let d=s.columns;for(let F=0,W=d.length;F{s.styleOverrides.push(d)}),s}push(s){this.styleOverrides.push(s)}pop(s){for(void 0===s&&(s=1);s-- >0;)this.styleOverrides.pop()}autopush(s){if(I(s)||typeof s.section<"u")return 0;let d=[];s.style&&(d=Array.isArray(s.style)?s.style:[s.style]);for(let F=0,W=d.length;F0&&this.pop(F),W}getProperty(s){var d=this;const F=function(W,Z,EA){if(void 0===EA&&(EA=new Set),EA.has(W))return;EA.add(W);const PA=d.styleDictionary[W];if(PA){if(j(PA[Z]))return PA[Z];if(PA.extends){let FA=Array.isArray(PA.extends)?PA.extends:[PA.extends];for(let te=FA.length-1;te>=0;te--){let ge=F(FA[te],Z,EA);if(j(ge))return ge}}}};if(this.styleOverrides)for(let W=this.styleOverrides.length-1;W>=0;W--){let Z=this.styleOverrides[W];if(I(Z)){let EA=F(Z,s);if(j(EA))return EA}else if(j(Z[s]))return Z[s]}return this.defaultStyle&&this.defaultStyle[s]}static getStyleProperty(s,d,F,W){let Z;return j(s[F])?s[F]:d?(d.auto(s,()=>{Z=d.getProperty(F)}),j(Z)?Z:W):W}static copyStyle(s,d){void 0===s&&(s={}),void 0===d&&(d={});for(let F in s)"text"!=F&&s.hasOwnProperty(F)&&(d[F]=s[F]);return d}}const SA=Re,we=function($,s,d){void 0===d&&(d=!1);let F=[];if($=null==$?"":String($),s)return F.push({text:$}),F;if(d)return $.split("").map(PA=>PA.match(/^\n$|^\r$/)?{text:"",lineEnd:!0}:{text:PA});if(0===$.length)return F.push({text:""}),F;let EA,W=new H($),Z=0;for(;EA=W.nextBreak();){let PA=$.slice(Z,EA.position);EA.required||PA.match(/\r?\n$|\r$/)?(PA=PA.replace(/\r?\n$|\r$/,""),F.push({text:PA,lineEnd:!0})):F.push({text:PA}),Z=EA.position}return F},Fe=($,s)=>{let d=$[0];if(void 0===d)return null;if(s){let F=we(d.text,!1);if(void 0===F[0])return null;d=F[0]}return d.text},et=($,s)=>{let d=$[$.length-1];if(void 0===d||d.lineEnd)return null;if(s){let F=we(d.text,!1);if(void 0===F[F.length-1])return null;d=F[F.length-1]}return d.text},$e=class Ke{getBreaks(s,d){let F=[];Array.isArray(s)||(s=[s]);let W=null;for(let Z=0,EA=s.length;ZMath.max(0,Me.width-Me.leadingCut-Me.trailingCut);let EA,W=0,Z=0,PA=($=s,Array.isArray($)||($=[$]),$=function s(d){return d.reduce((F,W)=>{let Z=Array.isArray(W.text)?s(W.text):W,EA=[].concat(Z).some(Array.isArray);return F.concat(EA?s(Z):Z)},[])}($),$),te=(new $e).getBreaks(PA,d),ge=this.measure(te,d);var $;return ge.forEach(Me=>{W=Math.max(W,F(Me)),EA||(EA={width:0,leadingCut:Me.leadingCut,trailingCut:0}),EA.width+=Me.width,EA.trailingCut=Me.trailingCut,Z=Math.max(Z,F(EA)),Me.lineEnd&&(EA=null)}),SA.getStyleProperty({},d,"noWrap",!1)&&(W=Z),{items:ge,minWidth:W,maxWidth:Z}}measure(s,d){if(s.length){let F=SA.getStyleProperty(s[0],d,"leadingIndent",0);F&&(s[0].leadingCut=-F,s[0].leadingIndent=F)}return s.forEach(F=>{let W=SA.getStyleProperty(F,d,"font","Roboto"),Z=SA.getStyleProperty(F,d,"bold",!1),EA=SA.getStyleProperty(F,d,"italics",!1);F.font=this.pdfDocument.provideFont(W,Z,EA),F.alignment=SA.getStyleProperty(F,d,"alignment","left"),F.fontSize=SA.getStyleProperty(F,d,"fontSize",12),F.fontFeatures=SA.getStyleProperty(F,d,"fontFeatures",null),F.characterSpacing=SA.getStyleProperty(F,d,"characterSpacing",0),F.color=SA.getStyleProperty(F,d,"color","black"),F.decoration=SA.getStyleProperty(F,d,"decoration",null),F.decorationColor=SA.getStyleProperty(F,d,"decorationColor",null),F.decorationStyle=SA.getStyleProperty(F,d,"decorationStyle",null),F.decorationThickness=SA.getStyleProperty(F,d,"decorationThickness",null),F.background=SA.getStyleProperty(F,d,"background",null),F.link=SA.getStyleProperty(F,d,"link",null),F.linkToPage=SA.getStyleProperty(F,d,"linkToPage",null),F.linkToDestination=SA.getStyleProperty(F,d,"linkToDestination",null),F.noWrap=SA.getStyleProperty(F,d,"noWrap",null),F.opacity=SA.getStyleProperty(F,d,"opacity",1),F.sup=SA.getStyleProperty(F,d,"sup",!1),F.sub=SA.getStyleProperty(F,d,"sub",!1),(F.sup||F.sub)&&(F.fontSize*=.58);let PA=SA.getStyleProperty(F,d,"lineHeight",1);if(F.width=this.widthOfText(F.text,F),F.height=F.font.lineHeight(F.fontSize)*PA,F.leadingCut||(F.leadingCut=0),!SA.getStyleProperty(F,d,"preserveLeadingSpaces",!1)){let ge=F.text.match(ht);ge&&(F.leadingCut+=this.widthOfText(ge[0],F))}if(F.trailingCut=0,!SA.getStyleProperty(F,d,"preserveTrailingSpaces",!1)){let ge=F.text.match(cn);ge&&(F.trailingCut=this.widthOfText(ge[0],F))}},this),s}widthOfText(s,d){return d.font.widthOfString(s,d.fontSize,d.fontFeatures)+(d.characterSpacing||0)*(s.length-1)}sizeOfText(s,d){let F=SA.getStyleProperty({},d,"font","Roboto"),W=SA.getStyleProperty({},d,"fontSize",12),Z=SA.getStyleProperty({},d,"fontFeatures",null),EA=SA.getStyleProperty({},d,"bold",!1),PA=SA.getStyleProperty({},d,"italics",!1),FA=SA.getStyleProperty({},d,"lineHeight",1),te=SA.getStyleProperty({},d,"characterSpacing",0),ge=this.pdfDocument.provideFont(F,EA,PA);return{width:this.widthOfText(s,{font:ge,fontSize:W,characterSpacing:te,fontFeatures:Z}),height:ge.lineHeight(W)*FA,fontSize:W,lineHeight:FA,ascender:ge.ascender/1e3*W,descender:ge.descender/1e3*W}}sizeOfRotatedText(s,d,F){let W=d*Math.PI/-180,Z=this.sizeOfText(s,F);return{width:Math.abs(Z.height*Math.sin(W))+Math.abs(Z.width*Math.cos(W)),height:Math.abs(Z.width*Math.sin(W))+Math.abs(Z.height*Math.cos(W))}}};function Lt($){return"auto"===$.width}function Qn($){return null==$.width||"*"===$.width||"star"===$.width}const Gt_buildColumnWidths=function Tt($,s,d,F){void 0===d&&(d=0);let W=[],Z=0,EA=0,PA=[],FA=0,te=0,ge=[],Me=s;$.forEach(Ye=>{Lt(Ye)?(W.push(Ye),Z+=Ye._minWidth,EA+=Ye._maxWidth):Qn(Ye)?(PA.push(Ye),FA=Math.max(FA,Ye._minWidth),te=Math.max(te,Ye._maxWidth)):ge.push(Ye)}),ge.forEach((Ye,Ue)=>{if(I(Ye.width)&&/\d+%/.test(Ye.width)){let De=0;if(F){const Se=F._layout.paddingLeft(Ue,F),it=F._layout.paddingRight(Ue,F),Ve=F._layout.vLineWidth(Ue,F),vt=F._layout.vLineWidth(Ue+1,F);De=0===Ue?Se+it+Ve+vt/2:Ue===ge.length-1?Se+it+Ve/2+vt:Se+it+Ve/2+vt/2}const Le=Me+d;Ye.width=parseFloat(Ye.width)*Le/100-De}Ye._calcWidth=Ye.width=s)W.forEach(Ye=>{Ye._calcWidth=Ye._minWidth}),PA.forEach(Ye=>{Ye._calcWidth=FA});else{if(me{Ye._calcWidth=Ye._maxWidth,s-=Ye._calcWidth});else{let Ye=s-Qe,Ue=me-Qe;W.forEach(De=>{De._calcWidth=De._minWidth+(De._maxWidth-De._minWidth)*Ye/Ue,s-=De._calcWidth})}if(PA.length>0){let Ye=s/PA.length;PA.forEach(Ue=>{Ue._calcWidth=Ye})}}},Gt_measureMinMax=function pn($){let s={min:0,max:0},d={min:0,max:0},F=0;for(let W=0,Z=$.length;W0,vLineWidth:$=>0,paddingLeft:$=>$?4:0,paddingRight:($,s)=>$0===$||$===s.table.body.length?0:$===s.table.headerRows?2:0,vLineWidth:$=>0,paddingLeft:$=>0===$?0:8,paddingRight:($,s)=>$===s.table.widths.length-1?0:8},lightHorizontalLines:{hLineWidth:($,s)=>0===$||$===s.table.body.length?0:$===s.table.headerRows?2:1,vLineWidth:$=>0,hLineColor:$=>1===$?"black":"#aaa",paddingLeft:$=>0===$?0:8,paddingRight:($,s)=>$===s.table.widths.length-1?0:8}},Ot={hLineWidth:($,s)=>1,vLineWidth:($,s)=>1,hLineColor:($,s)=>"black",vLineColor:($,s)=>"black",hLineStyle:($,s)=>null,vLineStyle:($,s)=>null,paddingLeft:($,s)=>4,paddingRight:($,s)=>4,paddingTop:($,s)=>2,paddingBottom:($,s)=>2,fillColor:($,s)=>null,fillOpacity:($,s)=>1,defaultBorder:!0};function bt(){let $={};for(let s=0,d=arguments.length;sJSON.parse(JSON.stringify($))}for(var qe=[null,[[10,7,17,13],[1,1,1,1],[]],[[16,10,28,22],[1,1,1,1],[4,16]],[[26,15,22,18],[1,1,2,2],[4,20]],[[18,20,16,26],[2,1,4,2],[4,24]],[[24,26,22,18],[2,1,4,4],[4,28]],[[16,18,28,24],[4,2,4,4],[4,32]],[[18,20,26,18],[4,2,5,6],[4,20,36]],[[22,24,26,22],[4,2,6,6],[4,22,40]],[[22,30,24,20],[5,2,8,8],[4,24,44]],[[26,18,28,24],[5,4,8,8],[4,26,48]],[[30,20,24,28],[5,4,11,8],[4,28,52]],[[22,24,28,26],[8,4,11,10],[4,30,56]],[[22,26,22,24],[9,4,16,12],[4,32,60]],[[24,30,24,20],[9,4,16,16],[4,24,44,64]],[[24,22,24,30],[10,6,18,12],[4,24,46,68]],[[28,24,30,24],[10,6,16,17],[4,24,48,72]],[[28,28,28,28],[11,6,19,16],[4,28,52,76]],[[26,30,28,28],[13,6,21,18],[4,28,54,80]],[[26,28,26,26],[14,7,25,21],[4,28,56,84]],[[26,28,28,30],[16,8,25,20],[4,32,60,88]],[[26,28,30,28],[17,8,25,23],[4,26,48,70,92]],[[28,28,24,30],[17,9,34,23],[4,24,48,72,96]],[[28,30,30,30],[18,9,30,25],[4,28,52,76,100]],[[28,30,30,30],[20,10,32,27],[4,26,52,78,104]],[[28,26,30,30],[21,12,35,29],[4,30,56,82,108]],[[28,28,30,28],[23,12,37,34],[4,28,56,84,112]],[[28,30,30,30],[25,12,40,34],[4,32,60,88,116]],[[28,30,30,30],[26,13,42,35],[4,24,48,72,96,120]],[[28,30,30,30],[28,14,45,38],[4,28,52,76,100,124]],[[28,30,30,30],[29,15,48,40],[4,24,50,76,102,128]],[[28,30,30,30],[31,16,51,43],[4,28,54,80,106,132]],[[28,30,30,30],[33,17,54,45],[4,32,58,84,110,136]],[[28,30,30,30],[35,18,57,48],[4,28,56,84,112,140]],[[28,30,30,30],[37,19,60,51],[4,32,60,88,116,144]],[[28,30,30,30],[38,19,63,53],[4,28,52,76,100,124,148]],[[28,30,30,30],[40,20,66,56],[4,22,48,74,100,126,152]],[[28,30,30,30],[43,21,70,59],[4,26,52,78,104,130,156]],[[28,30,30,30],[45,22,74,62],[4,30,56,82,108,134,160]],[[28,30,30,30],[47,24,77,65],[4,24,52,80,108,136,164]],[[28,30,30,30],[49,25,81,68],[4,28,56,84,112,140,168]]],zA=/^\d*$/,vA=/^[A-Za-z0-9 $%*+\-./:]*$/,qA=/^[A-Z0-9 $%*+\-./:]*$/,ae=[],ce=[-1],ye=0,ke=1;ye<255;++ye)ae.push(ke),ce[ke]=ye,ke=2*ke^(ke>=128?285:0);var Je=[[]];for(ye=0;ye<30;++ye){for(var tt=Je[ye],je=[],Ce=0;Ce<=ye;++Ce)je.push(ce[(Ce6},ut=function($,s){var d=-8&function($){var s=qe[$],d=16*$*$+128*$+64;return Bt($)&&(d-=36),s[2].length&&(d-=25*s[2].length*s[2].length-10*s[2].length-55),d}($),F=qe[$];return d-8*F[0][s]*F[1][s]},an=function($,s){switch(s){case 1:return $<10?10:$<27?12:14;case 2:return $<10?9:$<27?11:13;case 4:return $<10?8:16;case 8:return $<10?8:$<27?10:12}},Wt=function($,s,d){var F=ut($,d)-4-an($,s);switch(s){case 1:return 3*(F/10|0)+(F%10<4?0:F%10<7?1:2);case 2:return 2*(F/11|0)+(F%11<6?0:1);case 4:return F/8|0;case 8:return F/13|0}},Bn=function($,s){for(var d=$.slice(0),F=$.length,W=s.length,Z=0;Z=0)for(var PA=0;PA=0;--Z)W>>F+Z&1&&(W^=d<>EA&1;return $},Un=function($){for(var Z=function(De){for(var Le=0,Se=0;Se=5&&(Le+=De[Se]-5+3);for(Se=5;Se=4*it||De[Se+1]>=4*it)&&(Le+=40)}return Le},EA=$.length,PA=0,FA=0,te=0;te>6,128|63&W):W<65536?d.push(224|W>>12,128|W>>6&63,128|63&W):d.push(240|W>>18,128|W>>12&63,128|W>>6&63,128|63&W)}return d}return s}}(EA,$),null===$)throw"invalid data format";if(Z<0||Z>3)throw"invalid ECC level";if(W<0){for(W=1;W<=40&&!($.length<=Wt(W,EA,Z));++W);if(W>40)throw"too large data for the Qr format"}else if(W<1||W>40)throw"invalid Qr version! should be between 1 and 40";if(-1!=PA&&(PA<0||PA>8))throw"invalid mask";return function($,s,d,F,W){var Z=qe[s],EA=function($,s,d,F){var W=[],Z=0,EA=8,PA=d.length,FA=function(Me,Qe){if(Qe>=EA){for(W.push(Z|Me>>(Qe-=EA));Qe>=8;)W.push(Me>>(Qe-=8)&255);Z=0,EA=8}Qe>0&&(Z|=(Me&(1<>3);EA=function($,s,d){for(var F=[],W=$.length/s|0,Z=0,EA=s-$.length%s,PA=0;PA>Ve&1,W[Ye+it][Ue+Ve]=1};for(EA(0,0,9,9,[127,65,93,93,93,65,383,0,64]),EA(d-8,0,8,9,[256,127,65,93,93,93,65,127]),EA(0,d-8,9,8,[254,130,186,186,186,130,254,0,0]),Z=9;Z>me++&1,W[Z][d-11+Me]=W[d-11+Me][Z]=1}return{matrix:F,reserved:W}}(s),FA=PA.matrix,te=PA.reserved;if(function($,s,d){for(var F=$.length,W=0,Z=-1,EA=F-1;EA>=0;EA-=2){6==EA&&--EA;for(var PA=Z<0?F-1:0,FA=0;FAEA-2;--te)s[PA][te]||($[PA][te]=d[W>>3]>>(7&~W)&1,++W);PA+=Z}Z=-Z}}(FA,te,EA),W<0){St(FA,te,0),vn(FA,0,F,0);var ge=0,Me=Un(FA);for(St(FA,te,0),W=1;W<8;++W){St(FA,te,W),vn(FA,0,F,W);var Qe=Un(FA);Me>Qe&&(Me=Qe,ge=W),St(FA,te,W)}W=ge}return St(FA,te,W),vn(FA,0,F,W),FA}($,W,EA,Z,PA)}const wi_measure=function Ei($){var s=function On($,s){var d=[],F=s.background||"#fff",W=s.foreground||"#000",Z=s.padding||0,EA=Fn($,s),PA=EA.length,FA=Math.floor(s.fit?s.fit/PA:5),te=PA*FA+FA*Z*2,ge=FA*Z;d.push({type:"rect",x:0,y:0,w:te,h:te,lineWidth:0,color:F});for(var Me=0;Me{if(s._margin=function QA($,s){function d(EA,PA,FA){return void 0===FA&&(FA=0),void 0!==EA.marginLeft||void 0!==EA.marginTop||void 0!==EA.marginRight||void 0!==EA.marginBottom?[EA.marginLeft??PA[0]??FA,EA.marginTop??PA[1]??FA,EA.marginRight??PA[2]??FA,EA.marginBottom??PA[3]??FA]:PA}function W(EA){return N(EA)?EA=[EA,EA,EA,EA]:Array.isArray(EA)&&2===EA.length&&(EA=[EA[0],EA[1],EA[0],EA[1]]),EA}let Z=[void 0,void 0,void 0,void 0];if($.style){let PA=function F(EA,PA,FA){if(void 0===FA&&(FA=new Set),!(EA=Array.isArray(EA)?EA:[EA]).every(ge=>I(ge)))return{};let te={};for(let ge=0;ges.fit[0]/s.fit[1]?s.fit[0]/d.width:s.fit[1]/d.height;s._width=s._minWidth=s._maxWidth=d.width*F,s._height=d.height*F}else if(s.cover)s._width=s._minWidth=s._maxWidth=s.cover.width,s._height=s._minHeight=s._maxHeight=s.cover.height;else{let F=N(s.width)?s.width:void 0,W=N(s.height)?s.height:void 0,Z=d.width/d.height;s._width=s._minWidth=s._maxWidth=F||(W?W*Z:d.width),s._height=W||(F?F/Z:d.height),N(s.maxWidth)&&s.maxWidths._width&&(s._width=s._minWidth=s._maxWidth=s.minWidth,s._height=s._width*d.height/d.width),N(s.minHeight)&&s.minHeight>s._height&&(s._height=s.minHeight,s._width=s._minWidth=s._maxWidth=s._height*d.width/d.height)}s._alignment=this.styleStack.getProperty("alignment")}convertIfBase64Image(s){if(/^data:image\/(jpeg|jpg|png);base64,/.test(s.image)){let d="$$pdfmake$$"+this.autoImageIndex++;this.pdfDocument.images[d]=s.image,s.image=d}}measureImage(s){this.convertIfBase64Image(s);let d=this.pdfDocument.provideImage(s.image),F={width:d.width,height:d.height};return d.orientation>4&&(F={width:d.height,height:d.width}),this.measureImageWithDimensions(s,F),s}measureSVG(s){let d=this.svgMeasure.measureSVG(s.svg);if(this.measureImageWithDimensions(s,d),s.font=this.styleStack.getProperty("font"),!N(s._width)&&!N(s._height))throw new Error("SVG is missing defined width and height.");if(!N(s._width))throw new Error("SVG is missing defined width.");if(!N(s._height))throw new Error("SVG is missing defined height.");return s.svg=this.svgMeasure.writeDimensions(s.svg,{width:s._width,height:s._height}),s}measureLeaf(s){s._textRef&&s._textRef._textNodeRef.text&&(s.text=s._textRef._textNodeRef.text);let d=this.styleStack.clone();d.push(s);let F=this.textInlines.buildInlines(s.text,d);return s._inlines=F.items,s._minWidth=F.minWidth,s._maxWidth=F.maxWidth,s}measureToc(s){if(s.toc.title&&(s.toc.title=this.measureNode(s.toc.title)),s.toc._items.length>0){let d=[],F=s.toc.textStyle||{},W=s.toc.numberStyle||F,Z=s.toc.textMargin||[0,0,0,0];"title"===s.toc.sortBy&&s.toc._items.sort((EA,PA)=>EA._textNodeRef.text.localeCompare(PA._textNodeRef.text,s.toc.sortLocale));for(let EA=0,PA=s.toc._items.length;EA=26?me((Ye/26|0)-1):"")+"abcdefghijklmnopqrstuvwxyz"[Ye%26|0]}(Qe-1)}function PA(Qe){if(Qe<1||Qe>4999)return Qe.toString();let me=Qe,Ye={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},Ue="";for(let De in Ye)for(;me>=Ye[De];)Ue+=De,me-=Ye[De];return Ue}let te;switch(W){case"none":te=null;break;case"upper-alpha":te=EA(d).toUpperCase();break;case"lower-alpha":te=EA(d);break;case"upper-roman":te=PA(d);break;case"lower-roman":te=PA(d).toLowerCase();break;default:te=function FA(Qe){return Qe.toString()}(d)}if(null===te)return{};Z&&(Array.isArray(Z)?(Z[0]&&(te=Z[0]+te),Z[1]&&(te+=Z[1]),te+=" "):te+=`${Z} `);let ge=SA.getStyleProperty(s,F,"markerColor",void 0)||F.getProperty("color")||"black";return{_inlines:this.textInlines.buildInlines({text:te,color:ge},F).items}}measureUnorderedList(s){let d=this.styleStack.clone(),F=s.ul;s.type=s.type||"disc",s._gapSize=this.gapSizeForList(),s._minWidth=0,s._maxWidth=0;for(let W=0,Z=F.length;W0?d.length-1:0;return s._minWidth=F.min+s._gap*W,s._maxWidth=F.max+s._gap*W,s}measureTable(s){(function Ue(De){if(De.table.widths||(De.table.widths="auto"),I(De.table.widths))for(De.table.widths=[De.table.widths];De.table.widths.length1?(me(Le,F,Se.colSpan),d.push({col:F,span:Se.colSpan,minWidth:Se._minWidth,maxWidth:Se._maxWidth})):(De._minWidth=Math.max(De._minWidth,Se._minWidth),De._maxWidth=Math.max(De._maxWidth,Se._maxWidth))),Se.rowSpan&&Se.rowSpan>1&&Ye(s.table,W,F,Se.rowSpan)}}!function Me(){let De,Le;for(let Se=0,it=d.length;Se0)for(De=zt/Ve.span,Le=0;Le0)for(De=sn/Ve.span,Le=0;Le(v(Le)&&(Le.fillColor=De.styleStack.getProperty("fillColor"),Le.fillOpacity=De.styleStack.getProperty("fillOpacity")),De.measureNode(Le))}function Qe(De,Le,Se){let it={minWidth:0,maxWidth:0};for(let Ve=0;Ves.page?$:s.page>$.page?s:$.y>s.y?$:s,{page:d.page,x:d.x,y:d.y,availableHeight:d.availableHeight,availableWidth:d.availableWidth}}const Xi=class xn extends ri.EventEmitter{constructor(){super(),this.pages=[],this.pageMargins=void 0,this.x=void 0,this.availableWidth=void 0,this.availableHeight=void 0,this.page=-1,this.snapshots=[],this.backgroundLength=[]}beginColumnGroup(s,d,F,W,Z){void 0===d&&(d={}),void 0===F&&(F=!1),void 0===W&&(W=0),void 0===Z&&(Z=null),this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,bottomByPage:d||{},bottomMost:{x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page},lastColumnWidth:this.lastColumnWidth,snakingColumns:F,gap:W,columnWidths:Z}),this.lastColumnWidth=0,s&&(this.marginXTopParent=s)}updateBottomByPage(){const s=this.snapshots[this.snapshots.length-1];if(!s)return;const d=this.page;let F=-Number.MIN_VALUE;s.bottomByPage&&s.bottomByPage[d]&&(F=s.bottomByPage[d]),s.bottomByPage&&(s.bottomByPage[d]=Math.max(F,this.y))}resetMarginXTopParent(){this.marginXTopParent=null}getSnakingSnapshot(){for(let s=this.snapshots.length-1;s>=0;s--)if(this.snapshots[s].snakingColumns)return this.snapshots[s];return null}inSnakingColumns(){return!!this.getSnakingSnapshot()}isInNestedNonSnakingGroup(){for(let s=this.snapshots.length-1;s>=0;s--){let d=this.snapshots[s];if(d.snakingColumns)return!1;if(!d.overflowed)return!0}return!1}beginColumn(s,d,F){let W=this.snapshots[this.snapshots.length-1];if(W&&W.overflowed)for(let Z=this.snapshots.length-1;Z>=0;Z--)if(!this.snapshots[Z].overflowed){W=this.snapshots[Z];break}this.calculateBottomMost(W,F),this.page=W.page,this.x=this.x+this.lastColumnWidth+(d||0),this.y=W.y,this.availableWidth=s,this.availableHeight=W.availableHeight,this.lastColumnWidth=s}calculateBottomMost(s,d){d?this.saveContextInEndingCell(d):s.bottomMost=Qi(this,s.bottomMost)}markEnding(s,d,F){this.page=s._columnEndingContext.page,this.x=s._columnEndingContext.x+d,this.y=s._columnEndingContext.y-F,this.availableWidth=s._columnEndingContext.availableWidth,this.availableHeight=s._columnEndingContext.availableHeight,this.lastColumnWidth=s._columnEndingContext.lastColumnWidth}saveContextInEndingCell(s){s._columnEndingContext={page:this.page,x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,lastColumnWidth:this.lastColumnWidth}}completeColumnGroup(s,d){let F=this.snapshots.pop(),W=this.y,Z=this.page,EA=this.availableHeight,PA=F.overflowed;for(;F&&F.overflowed;){let te=Qi({page:Z,y:W,availableHeight:EA},F.bottomMost||{});Z=te.page,W=te.y,EA=te.availableHeight,F=this.snapshots.pop()}if(!F)return{};PA&&(Z>F.bottomMost.page||Z===F.bottomMost.page&&W>F.bottomMost.y)&&(F.bottomMost={x:F.x,y:W,page:Z,availableHeight:EA,availableWidth:F.availableWidth}),this.calculateBottomMost(F,d),this.x=F.x;let FA=F.bottomMost.y;return s&&(F.page===F.bottomMost.page?F.y+s>FA&&(FA=F.y+s):FA+=s),this.y=FA,this.page=F.bottomMost.page,this.availableWidth=F.availableWidth,this.availableHeight=F.bottomMost.availableHeight,s&&(this.availableHeight-=FA-F.bottomMost.y),this.height=s&&F.bottomMost.y-F.y=0&&this.snapshots[FA].overflowed;FA--)F++;let W=d.columnWidths&&d.columnWidths[F]||this.lastColumnWidth||this.availableWidth,Z=d.columnWidths&&d.columnWidths[F+1]||W;this.lastColumnWidth=Z;let EA=this.x+(W||0)+(d.gap||0),PA=d.y;this.snapshots.push({x:EA,y:PA,availableHeight:d.availableHeight,availableWidth:Z,page:this.page,overflowed:!0,bottomMost:{x:EA,y:PA,availableHeight:d.availableHeight,availableWidth:Z,page:this.page},lastColumnWidth:Z,snakingColumns:!0,gap:d.gap,columnWidths:d.columnWidths}),this.x=EA,this.y=PA,this.availableHeight=d.availableHeight,this.availableWidth=Z;for(let FA=this.snapshots.length-2;FA>=0;FA--){let te=this.snapshots[FA];if(te.overflowed||te.snakingColumns)break;te.x=EA,te.y=PA,te.page=this.page,te.availableHeight=d.availableHeight,te.bottomMost&&(te.bottomMost.x=EA,te.bottomMost.y=PA,te.bottomMost.page=this.page,te.bottomMost.availableHeight=d.availableHeight)}return{prevY:s,y:this.y}}resetSnakingColumnsForNewPage(){let s=this.getSnakingSnapshot();if(!s)return;let d=this.pageMargins.top,F=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom,W=s.columnWidths?s.columnWidths[0]:this.lastColumnWidth||this.availableWidth;for(;this.snapshots.length>1&&this.snapshots[this.snapshots.length-1].overflowed;)this.snapshots.pop();this.x=this.marginXTopParent?this.pageMargins.left+this.marginXTopParent[0]:this.pageMargins.left,this.availableWidth=W,this.lastColumnWidth=W;for(let Z=0;Z0}initializePage(){this.y=this.pageMargins.top,this.availableHeight=this.getCurrentPage().pageSize.height-this.pageMargins.top-this.pageMargins.bottom;const s=this.pageSnapshot(),d=s.pageCtx,F=s.isSnapshot;d.availableWidth=this.getCurrentPage().pageSize.width-this.pageMargins.left-this.pageMargins.right,F&&this.marginXTopParent&&(d.availableWidth-=this.marginXTopParent[0],d.availableWidth-=this.marginXTopParent[1])}pageSnapshot(){return this.snapshots[0]?{pageCtx:this.snapshots[0],isSnapshot:!0}:{pageCtx:this,isSnapshot:!1}}moveTo(s,d){null!=s&&(this.x=s,this.availableWidth=this.getCurrentPage().pageSize.width-this.x-this.pageMargins.right),null!=d&&(this.y=d,this.availableHeight=this.getCurrentPage().pageSize.height-this.y-this.pageMargins.bottom)}moveToRelative(s,d){null!=s&&(this.x=this.x+s),null!=d&&(this.y=this.y+d)}beginDetachedBlock(){this.snapshots.push({x:this.x,y:this.y,availableHeight:this.availableHeight,availableWidth:this.availableWidth,page:this.page,lastColumnWidth:this.lastColumnWidth})}endDetachedBlock(){let s=this.snapshots.pop();this.x=s.x,this.y=s.y,this.availableWidth=s.availableWidth,this.availableHeight=s.availableHeight,this.page=s.page,this.lastColumnWidth=s.lastColumnWidth}moveToNextPage(s){let d=this.page+1,F=this.page,W=this.y;if(this.snapshots.length>0){let EA=this.snapshots[this.snapshots.length-1];EA.bottomMost&&EA.bottomMost.y&&(W=Math.max(this.y,EA.bottomMost.y))}let Z=d>=this.pages.length;if(Z){let EA=this.availableWidth,PA=this.getCurrentPage().pageSize.orientation,FA=(($,s)=>(s=function ai($,s){return void 0===$?s:I($)&&"landscape"===$.toLowerCase()?"landscape":"portrait"}(s,$.pageSize.orientation),s!==$.pageSize.orientation?{orientation:s,width:$.pageSize.height,height:$.pageSize.width}:{orientation:$.pageSize.orientation,width:$.pageSize.width,height:$.pageSize.height}))(this.getCurrentPage(),s);this.addPage(FA,null,this.getCurrentPage().customProperties),PA===FA.orientation&&(this.availableWidth=EA)}else this.page=d,this.initializePage();return{newPageCreated:Z,prevPage:F,prevY:W,y:this.y}}addPage(s,d,F){void 0===d&&(d=null),void 0===F&&(F={}),null!==d&&(this.pageMargins=d,this.x=d.left,this.availableWidth=s.width-d.left-d.right);let W={items:[],pageSize:s,pageMargins:this.pageMargins,customProperties:F};return this.pages.push(W),this.backgroundLength.push(0),this.page=this.pages.length-1,this.initializePage(),this.emit("pageAdded",W),W}getCurrentPage(){return this.page<0||this.page>=this.pages.length?null:this.pages[this.page]}getCurrentPosition(){let s=this.getCurrentPage().pageSize,d=s.height-this.pageMargins.top-this.pageMargins.bottom,F=s.width-this.pageMargins.left-this.pageMargins.right;return{pageNumber:this.page+1,pageOrientation:s.orientation,pageInnerHeight:d,pageInnerWidth:F,left:this.x,top:this.y,verticalRatio:(this.y-this.pageMargins.top)/d,horizontalRatio:(this.x-this.pageMargins.left)/F}}};function fn($,s,d){null==d||d<0||d>$.items.length?$.items.push(s):$.items.splice(d,0,s)}const ms=class mi extends ri.EventEmitter{constructor(s){super(),this._context=s,this.contextStack=[]}context(){return this._context}addLine(s,d,F){let W=s.getHeight(),Z=this.context(),EA=Z.getCurrentPage(),PA=this.getCurrentPositionOnPage();return!(Z.availableHeight0&&s.inlines[0].alignment,Z=0;switch(W){case"right":Z=d-F;break;case"center":Z=(d-F)/2}if(Z&&(s.x=(s.x||0)+Z),"justify"===W&&!s.newLineForced&&!s.lastLineInParagraph&&s.inlines.length>1){let EA=(d-F)/(s.inlines.length-1);for(let PA=1,FA=s.inlines.length;PA0)&&(void 0===s._x&&(s._x=s.x||0),s.x=F.x+s._x,s.y=F.y,this.alignImage(s),fn(W,{type:"image",item:s},d),F.moveDown(s._height),Z)}addCanvas(s,d){let F=this.context(),W=F.getCurrentPage(),Z=[],EA=s._minHeight;return!(!W||void 0===s.absolutePosition&&F.availableHeight0)&&(void 0===s._x&&(s._x=s.x||0),s.x=F.x+s._x,s.y=F.y,this.alignImage(s),fn(W,{type:"svg",item:s},d),F.moveDown(s._height),Z)}addQr(s,d){let F=this.context(),W=F.getCurrentPage(),Z=this.getCurrentPositionOnPage();if(!W||void 0===s.absolutePosition&&F.availableHeight0)&&(void 0===s._x&&(s._x=s.x||0),s.x=F.x+s._x,s.y=F.y,fn(W,{type:"attachment",item:s},d),F.moveDown(s._height),Z)}alignImage(s){let d=this.context().availableWidth,F=s._minWidth,W=0;switch(s._alignment){case"right":W=d-F;break;case"center":W=(d-F)/2}W&&(s.x=(s.x||0)+W)}alignCanvas(s){let d=this.context().availableWidth,F=s._minWidth,W=0;switch(s._alignment){case"right":W=d-F;break;case"center":W=(d-F)/2}W&&s.canvas.forEach(Z=>{Dt(Z,W,0)})}addVector(s,d,F,W,Z){let EA=this.context(),PA=EA.getCurrentPage();N(Z)&&(PA=EA.pages[Z]);let FA=this.getCurrentPositionOnPage();if(PA)return Dt(s,d?0:EA.x,F?0:EA.y),fn(PA,{type:"vector",item:s},W),FA}beginClip(s,d){let F=this.context();return F.getCurrentPage().items.push({type:"beginClip",item:{x:F.x,y:F.y,width:s,height:d}}),!0}endClip(){return this.context().getCurrentPage().items.push({type:"endClip"}),!0}beginVerticalAlignment(s){let F={type:"beginVerticalAlignment",item:{verticalAlignment:s}};return this.context().getCurrentPage().items.push(F),F}endVerticalAlignment(s){let F={type:"endVerticalAlignment",item:{verticalAlignment:s}};return this.context().getCurrentPage().items.push(F),F}addFragment(s,d,F,W){let Z=this.context(),EA=Z.getCurrentPage();return!(!d&&s.height>Z.availableHeight||(s.items.forEach(PA=>{switch(PA.type){case"line":var FA=PA.item.clone();FA._node&&(FA._node.positions[0].pageNumber=Z.page+1),FA.x=(FA.x||0)+(d?s.xOffset||0:Z.x),FA.y=(FA.y||0)+(F?s.yOffset||0:Z.y),EA.items.push({type:"line",item:FA});break;case"vector":var te=bt(PA.item);Dt(te,d?s.xOffset||0:Z.x,F?s.yOffset||0:Z.y),te._isFillColorFromUnbreakable?(delete te._isFillColorFromUnbreakable,EA.items.splice(Z.backgroundLength[Z.page],0,{type:"vector",item:te})):EA.items.push({type:"vector",item:te});break;case"image":case"svg":case"beginClip":case"endClip":case"beginVerticalAlignment":case"endVerticalAlignment":var ge=bt(PA.item);ge.x=(ge.x||0)+(d?s.xOffset||0:Z.x),ge.y=(ge.y||0)+(F?s.yOffset||0:Z.y),EA.items.push({type:PA.type,item:ge})}}),W||Z.moveDown(s.height),0))}pushContext(s,d){if(void 0===s&&(d=this.context().getCurrentPage().height-this.context().pageMargins.top-this.context().pageMargins.bottom,s=this.context().availableWidth),N(s)){let F=s;(s=new Xi).addPage({width:F,height:d},{left:0,right:0,top:0,bottom:0})}this.contextStack.push(this.context()),this._context=s}popContext(){this._context=this.contextStack.pop()}getCurrentPositionOnPage(){return(this.contextStack[0]||this.context()).getCurrentPosition()}},Ms={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};function Mi($,s){$&&"auto"===$.height&&($.height=1/0);let W=function F(Z){if(I(Z)){let EA=Ms[Z.toUpperCase()];if(!EA)throw new Error(`Page size ${Z} not recognized`);return{width:EA[0],height:EA[1]}}return Z}($||"A4");return function d(Z){return!!I(Z)&&("portrait"===(Z=Z.toLowerCase())&&W.width>W.height||"landscape"===Z&&W.widthW.height?"landscape":"portrait",W}function pi($){if(N($))$={left:$,right:$,top:$,bottom:$};else if(Array.isArray($))if(2===$.length)$={left:$[0],top:$[1],right:$[0],bottom:$[1]};else{if(4!==$.length)throw new Error("Invalid pageMargins definition");$={left:$[0],top:$[1],right:$[2],bottom:$[3]}}return $}const qi=class Zi extends ms{constructor(s){super(s),this.transactionLevel=0,this.repeatables=[]}addLine(s,d,F){return this._fitOnPage(()=>super.addLine(s,d,F))}addImage(s,d){return this._fitOnPage(()=>super.addImage(s,d))}addCanvas(s,d){return this._fitOnPage(()=>super.addCanvas(s,d))}addSVG(s,d){return this._fitOnPage(()=>super.addSVG(s,d))}addQr(s,d){return this._fitOnPage(()=>super.addQr(s,d))}addAttachment(s,d){return this._fitOnPage(()=>super.addAttachment(s,d))}addVector(s,d,F,W,Z){return super.addVector(s,d,F,W,Z)}beginClip(s,d){return super.beginClip(s,d)}endClip(){return super.endClip()}beginVerticalAlignment(s){return super.beginVerticalAlignment(s)}endVerticalAlignment(s){return super.endVerticalAlignment(s)}addFragment(s,d,F,W){return this._fitOnPage(()=>super.addFragment(s,d,F,W))}moveToNextPage(s){let d=this.context().moveToNextPage(s);this.repeatables.forEach(function(F){void 0===F.insertedOnPages[this.context().page]?(F.insertedOnPages[this.context().page]=!0,this.addFragment(F,!0)):this.context().moveDown(F.height)},this),this.emit("pageChanged",{prevPage:d.prevPage,prevY:d.prevY,y:this.context().y})}addPage(s,d,F,W){void 0===W&&(W={});let Z=this.page,EA=this.y;this.context().addPage(Mi(s,d),pi(F),W),this.emit("pageChanged",{prevPage:Z,prevY:EA,y:this.context().y})}beginUnbreakableBlock(s,d){0===this.transactionLevel++&&(this.originalX=this.context().x,this.pushContext(s,d))}commitUnbreakableBlock(s,d){if(0===--this.transactionLevel){let F=this.context();this.popContext();let W=F.pages.length;if(W>0){let Z=F.pages[0];if(Z.xOffset=s,Z.yOffset=d,W>1)if(void 0!==s||void 0!==d)Z.height=F.getCurrentPage().pageSize.height-F.pageMargins.top-F.pageMargins.bottom;else{Z.height=this.context().getCurrentPage().pageSize.height-this.context().pageMargins.top-this.context().pageMargins.bottom;for(let EA=0,PA=this.repeatables.length;EA{d.items.push(F)}),d.xOffset=this.originalX,d.height=s.y,d.insertedOnPages=[],d}pushToRepeatables(s){this.repeatables.push(s)}popFromRepeatables(){this.repeatables.pop()}moveToNextColumn(){let s=this.context().moveToNextColumn();this.repeatables.forEach(function(d){this.addFragment(d,!1)},this),this.emit("columnChanged",{prevY:s.prevY,y:this.context().y})}canMoveToNextColumn(){let s=this.context(),d=s.getSnakingSnapshot();if(d){for(let Qe=s.snapshots.length-1;Qe>=0;Qe--){let me=s.snapshots[Qe];if(me.snakingColumns)break;if(!me.overflowed)return!1}let F=0;for(let Qe=s.snapshots.length-1;Qe>=0&&s.snapshots[Qe].overflowed;Qe--)F++;if(d.columnWidths&&F>=d.columnWidths.length-1)return!1;let W=s.availableWidth||s.lastColumnWidth||0,Z=d.columnWidths?d.columnWidths[F+1]:W,EA=s.x+W+(d.gap||0),PA=s.getCurrentPage();return EA+Z<=PA.pageSize.width-(PA.pageMargins?PA.pageMargins.right:0)-(s.marginXTopParent?s.marginXTopParent[1]:0)+1}return!1}_fitOnPage(s){let d=s();if(!d&&(this.canMoveToNextColumn()&&(this.moveToNextColumn(),d=s()),!d)){let F=this.context();if(F.getSnakingSnapshot()){if(F.isInNestedNonSnakingGroup())this.moveToNextPage();else{this.moveToNextPage();let Z=F.lastColumnWidth;F.resetSnakingColumnsForNewPage(),F.lastColumnWidth=Z}d=s()}else{for(;F.snapshots.length>0&&F.snapshots[F.snapshots.length-1].overflowed;){let Z=F.snapshots.pop(),EA=F.snapshots[F.snapshots.length-1];EA&&(F.x=EA.x,F.y=EA.y,F.availableHeight=EA.availableHeight,F.availableWidth=Z.availableWidth,F.lastColumnWidth=EA.lastColumnWidth)}this.moveToNextPage(),d=s()}}return d}},$i=new Set(["before","beforeOdd","beforeEven","after","afterOdd","afterEven"]),ps=$=>!(!$||"object"!=typeof $)&&$i.has($.pageBreak),Is=class As{constructor(s){this.tableNode=s,this._isCurrentRowUnbreakable=!1}beginTable(s){let Z,EA;Z=this.tableNode,this.offsets=Z._offsets,this.layout=Z._layout,EA=s.context().availableWidth-this.offsets.total,Gt_buildColumnWidths(Z.table.widths,EA,this.offsets.total,Z),this.tableWidth=Z._offsets.total+(()=>{let FA=0;return Z.table.widths.forEach(te=>{FA+=te._calcWidth}),FA})(),this.rowSpanData=(()=>{let ge,FA=[],te=0;FA.push({left:0,rowSpan:0});for(let Me=0,Qe=this.tableNode.table.body[0].length;MeZ.table.body.length)throw new Error(`Too few rows in the table. Property headerRows requires at least ${this.headerRows}, contains only ${Z.table.body.length}`);this.rowsWithoutPageBreak=this.headerRows;const FA=Z.table.keepWithHeaderRows;K(FA)&&(this.rowsWithoutPageBreak+=FA)}this.dontBreakRows=Z.table.dontBreakRows||!1,(this.rowsWithoutPageBreak||this.dontBreakRows)&&(s.beginUnbreakableBlock(),this.drawHorizontalLine(0,s),this.rowsWithoutPageBreak&&this.dontBreakRows&&s.beginUnbreakableBlock()),(FA=>{for(let ge=0;ge0&&te(ge+De,Qe,0,me.border[0]),void 0!==me.border[2]&&te(ge+De,Qe+Ue-1,2,me.border[2]);for(let De=0;De0&&te(ge,Qe+De,1,me.border[1]),void 0!==me.border[3]&&te(ge+Ye-1,Qe+De,3,me.border[3])}}}function te(ge,Me,Qe,me){let Ye=FA[ge][Me];Ye.border=Ye.border||{},Ye.border[Qe]=me}})(this.tableNode.table.body)}onRowBreak(s,d){return()=>{let F=this.rowPaddingTop+(this.headerRows?0:this.topLineWidth);d.context().availableHeight-=this.reservedAtBottom,d.context().moveDown(F)}}beginRow(s,d){this.topLineWidth=this.layout.hLineWidth(s,this.tableNode),this.rowPaddingTop=this.layout.paddingTop(s,this.tableNode),this.bottomLineWidth=this.layout.hLineWidth(s+1,this.tableNode),this.rowPaddingBottom=this.layout.paddingBottom(s,this.tableNode),this.rowCallback=this.onRowBreak(s,d),d.addListener("pageChanged",this.rowCallback),0==s&&!this.dontBreakRows&&!this.rowsWithoutPageBreak&&(this._tableTopBorderY=d.context().y,d.context().moveDown(this.topLineWidth)),this.rowTopPageY=d.context().y+this.rowPaddingTop;const W=(this.tableNode.table.body[s]||[]).some(ps);this._isCurrentRowUnbreakable=this.dontBreakRows&&s>0&&!W,this._isCurrentRowUnbreakable&&d.beginUnbreakableBlock(),this.rowTopY=d.context().y,this.reservedAtBottom=this.bottomLineWidth+this.rowPaddingBottom,d.context().availableHeight-=this.reservedAtBottom,d.context().moveDown(this.rowPaddingTop)}drawHorizontalLine(s,d,F,W,Z){void 0===W&&(W=!0);let EA=this.layout.hLineWidth(s,this.tableNode);if(EA){let Me,ge=this.layout.hLineStyle(s,this.tableNode);ge&&ge.dash&&(Me=ge.dash);let Ue,De,Le,Qe=EA/2,me=null,Ye=this.tableNode.table.body;for(let Se=0,it=this.rowSpanData.length;Se0&&(Ue=Ye[s-1][Se],(FA=Ue.border?Ue.border[3]:this.layout.defaultBorder)&&Ue.borderColor&&(zt=Ue.borderColor[3])),sgn;)me.width+=this.rowSpanData[Se+gn++].width||0;Se+=gn-1}else if(Ue&&Ue.colSpan&&FA){for(;Ue.colSpan>gn;)me.width+=this.rowSpanData[Se+gn++].width||0;Se+=gn-1}else if(De&&De.colSpan&&PA){for(;De.colSpan>gn;)me.width+=this.rowSpanData[Se+gn++].width||0;Se+=gn-1}else me.width+=this.rowSpanData[Se].width||0}let sn=(F||0)+Qe;vt&&me&&me.width&&(d.addVector({type:"line",x1:me.left,x2:me.left+me.width,y1:sn,y2:sn,lineWidth:EA,dash:Me,lineColor:zt},!1,N(F),null,Z),me=null,Ue=null,De=null,Le=null)}W&&d.context().moveDown(EA)}}drawVerticalLine(s,d,F,W,Z,EA,PA){let FA=this.layout.vLineWidth(W,this.tableNode);if(0===FA)return;let ge,te=this.layout.vLineStyle(W,this.tableNode);te&&te.dash&&(ge=te.dash);let Qe,me,Ye,Me=this.tableNode.table.body;if(W>0&&(Qe=Me[EA][PA],Qe&&Qe.borderColor&&(Qe.border?Qe.border[2]:this.layout.defaultBorder)&&(Ye=Qe.borderColor[2])),null==Ye&&W{let Se=[],it=0;for(let Ve=0,vt=this.tableNode.table.body[s].length;Ve0&&it--}return Se.push({x:this.rowSpanData[this.rowSpanData.length-1].left,index:this.rowSpanData.length-1}),Se})(),FA=[],te=F&&F.length>0,ge=this.tableNode.table.body;if(FA.push({y0:this.rowTopY,page:te?F[0].prevPage:Z}),te)for(let Se=0,it=F.length;Se0&&(Se=F[0].prevPage),this.drawHorizontalLine(0,d,this._tableTopBorderY,!1,Se)}for(let Se=Me?1:0,it=FA.length;Se0&&!this.headerRows,zt=vt?0:this.topLineWidth,sn=FA[Se].y0,gn=FA[Se].y1;Ve&&(gn+=this.rowPaddingBottom),d.context().page!=FA[Se].page&&(d.context().page=FA[Se].page,this.reservedAtBottom=0),Ve&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(s+1,d,gn),vt&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(s,d,sn);for(let Tn=0,rs=PA.length;Tn0&&!kn){let dn=ge[s][Xt-1];kn=dn.border?dn.border[2]:this.layout.defaultBorder}if(Xt+11)for(let Ve=1;Ve1)for(let Ve=1;Ve0&&this.rowSpanData[Se].rowSpan--}if(this.drawHorizontalLine(s+1,d),this.headerRows&&s===this.headerRows-1&&(this.headerRepeatable=d.currentBlockToRepeatable()),this.dontBreakRows&&(0===s||this._isCurrentRowUnbreakable)){const Se=()=>{s>0&&!this.headerRows&&!1!==this.layout.hLineWhenBroken&&this.drawHorizontalLine(s,d)};d.addListener("pageChanged",Se),d.commitUnbreakableBlock(),d.removeListener("pageChanged",Se)}this._isCurrentRowUnbreakable=!1,this.headerRepeatable&&(s===this.rowsWithoutPageBreak-1||s===this.tableNode.table.body.length-1)&&(d.commitUnbreakableBlock(),d.pushToRepeatables(this.headerRepeatable),this.cleanUpRepeatables=!0,this.headerRepeatable=null)}};class Ui{constructor(s){this.maxWidth=s,this.leadingCut=0,this.trailingCut=0,this.inlineWidths=0,this.inlines=[]}addInline(s){0===this.inlines.length&&(this.leadingCut=s.leadingCut||0),this.trailingCut=s.trailingCut||0,s.x=this.inlineWidths-this.leadingCut,this.inlines.push(s),this.inlineWidths+=s.width,s.lineEnd&&(this.newLineForced=!0)}getHeight(){let s=0;return this.inlines.forEach(d=>{s=Math.max(s,d.height||0)}),s}getAscenderHeight(){let s=0;return this.inlines.forEach(d=>{s=Math.max(s,d.font.ascender/1e3*d.fontSize)}),s}getWidth(){return this.inlineWidths-this.leadingCut-this.trailingCut}getAvailableWidth(){return this.maxWidth-this.getWidth()}hasEnoughSpaceForInline(s,d){if(void 0===d&&(d=[]),0===this.inlines.length)return!0;if(this.newLineForced)return!1;let F=s.width,W=s.trailingCut||0;if(s.noNewLine)for(let Z=0,EA=d.length;Z{$.push(d)})}const Li=class Ds{constructor(s,d,F){this.pageSize=s,this.pageMargins=d,this.svgMeasure=F,this.tableLayouts={},this.nestedLevel=0,this.verticalAlignmentItemStack=[]}registerTableLayouts(s){this.tableLayouts=bt(this.tableLayouts,s)}layoutDocument(s,d,F,W,Z,EA,PA,FA,te){function ge(me,Ye){if("function"!=typeof te)return!1;(me=me.filter(De=>!(!De||0===De.positions.length||""===De.text&&!De.listMarker))).forEach(De=>{let Le={};["id","text","ul","ol","table","image","qr","canvas","svg","columns","headlineLevel","style","pageBreak","pageOrientation","width","height"].forEach(Se=>{void 0!==De[Se]&&(Le[Se]=De[Se])}),Le.startPosition=De.positions[0],Le.pageNumbers=Array.from(new Set(De.positions.map(Se=>Se.pageNumber))),Le.pages=Ye.length,Le.stack=Array.isArray(De.stack),De.nodeInfo=Le});for(let De=0;De{let it=[];for(let Ve=De+1,vt=me.length;Ve-1&&it.push(me[Ve].nodeInfo);return it},getNodesOnNextPage:()=>{let it=[];for(let Ve=De+1,vt=me.length;Ve-1&&it.push(me[Ve].nodeInfo);return it},getPreviousNodesOnPage:()=>{let it=[];for(let Ve=0;Ve-1&&it.push(me[Ve].nodeInfo);return it}}))return Le.pageBreak="before",!0}}return!1}function Me(me){me.linearNodeList.forEach(Ye=>{Ye.resetXY()})}this.docPreprocessor=new dA,this.docMeasure=new di(d,F,W,this.svgMeasure,this.tableLayouts);let Qe=this.tryLayoutDocument(s,d,F,W,Z,EA,PA,FA);for(;ge(Qe.linearNodeList,Qe.pages);)Me(Qe),Qe=this.tryLayoutDocument(s,d,F,W,Z,EA,PA,FA);return Qe.pages}tryLayoutDocument(s,d,F,W,Z,EA,PA,FA){return this.linearNodeList=[],s=this.docPreprocessor.preprocessDocument(s),s=this.docMeasure.measureDocument(s),this.writer=new qi(new Xi),this.writer.context().addListener("pageAdded",ge=>{let Me=Z;(ge.customProperties.background||null===ge.customProperties.background)&&(Me=ge.customProperties.background),this.addBackground(Me)}),!((ge=s).stack&&ge.stack.length>0&&ge.stack[0].section||ge.section)&&this.writer.addPage(this.pageSize,null,this.pageMargins),this.processNode(s),this.addHeadersAndFooters(EA,PA),this.addWatermark(FA,d,W),{pages:this.writer.context().pages,linearNodeList:this.linearNodeList};var ge}addBackground(s){let d="function"==typeof s?s:()=>s,F=this.writer.context(),W=F.getCurrentPage().pageSize,Z=d(F.page+1,W);Z&&(this.writer.beginUnbreakableBlock(W.width,W.height),Z=this.docPreprocessor.preprocessBlock(Z),this.processNode(this.docMeasure.measureBlock(Z)),this.writer.commitUnbreakableBlock(0,0),F.backgroundLength[F.page]+=Z.positions.length)}addDynamicRepeatable(s,d,F){for(let Z=0,EA=this.writer.context().pages.length;Z"u"||null===FA)continue;let te=FA(Z+1,EA,this.writer.context().pages[Z].pageSize);if(te){let ge=d(this.writer.context().getCurrentPage().pageSize,this.writer.context().getCurrentPage().pageMargins);this.writer.beginUnbreakableBlock(ge.width,ge.height),te=this.docPreprocessor.preprocessBlock(te),this.processNode(this.docMeasure.measureBlock(te)),this.writer.commitUnbreakableBlock(ge.x,ge.y)}}}addHeadersAndFooters(s,d){this.addDynamicRepeatable(s,(Z,EA)=>({x:0,y:0,width:Z.width,height:EA.top}),"header"),this.addDynamicRepeatable(d,(Z,EA)=>({x:0,y:Z.height-EA.bottom,width:Z.width,height:EA.bottom}),"footer")}addWatermark(s,d,F){let W=this.writer.context().pages;for(let FA=0,te=W.length;FA1;)Qe.push({fontSize:De}),me=Me.sizeOfRotatedText(te.text,te.angle,Qe),me.width>FA.width?(Ue=De,De=(Ye+Ue)/2):me.widthFA.height?(Ue=De,De=(Ye+Ue)/2):(Ye=De,De=(Ye+Ue)/2)),Qe.pop();return De}(te,FA,ge));let Qe={text:FA.text,font:ge.provideFont(FA.font,FA.bold,FA.italics),fontSize:FA.fontSize,color:FA.color,opacity:FA.opacity,angle:FA.angle};return Qe._size=function EA(FA,te){let ge=new mt(te),Me=new SA(null,{font:FA.font,bold:FA.bold,italics:FA.italics});return Me.push({fontSize:FA.fontSize}),{size:ge.sizeOfText(FA.text,Me),rotatedSize:ge.sizeOfRotatedText(FA.text,FA.angle,Me)}}(FA,ge),Qe}}processNode(s,d){if(void 0===d&&(d=!1),this.linearNodeList.push(s),function Fs($){let s=$.x,d=$.y;$.positions=[],Array.isArray($.canvas)&&$.canvas.forEach(F=>{let W=F.x,Z=F.y,EA=F.x1,PA=F.y1,FA=F.x2,te=F.y2;F.resetXY=()=>{F.x=W,F.y=Z,F.x1=EA,F.y1=PA,F.x2=FA,F.y2=te}}),$.resetXY=()=>{$.x=s,$.y=d,Array.isArray($.canvas)&&$.canvas.forEach(F=>{F.resetXY()})}}(s),null!==this.writer.context().getCurrentPage())var W=this.writer.context().getCurrentPosition().top;(Z=>{let EA=s._margin;"before"===s.pageBreak?this.writer.moveToNextPage(s.pageOrientation):"beforeOdd"===s.pageBreak?(this.writer.moveToNextPage(s.pageOrientation),(this.writer.context().page+1)%2==1&&this.writer.moveToNextPage(s.pageOrientation)):"beforeEven"===s.pageBreak&&(this.writer.moveToNextPage(s.pageOrientation),(this.writer.context().page+1)%2==0&&this.writer.moveToNextPage(s.pageOrientation));const PA=s.relativePosition||s.absolutePosition;if(EA&&!PA){const FA=this.writer.context().availableHeight;FA-EA[1]<0?(this.writer.context().moveDown(FA),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(s.pageOrientation):this.writer.moveToNextPage(s.pageOrientation)):this.writer.context().moveDown(EA[1]),this.writer.context().addMargin(EA[0],EA[2])}if(Z(),EA&&!PA){const FA=this.writer.context().availableHeight;FA-EA[3]<0?(this.writer.context().moveDown(FA),this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()?this.snakingAwarePageBreak(s.pageOrientation):this.writer.moveToNextPage(s.pageOrientation)):this.writer.context().moveDown(EA[3]),this.writer.context().addMargin(-EA[0],-EA[2])}"after"===s.pageBreak?this.writer.moveToNextPage(s.pageOrientation):"afterOdd"===s.pageBreak?(this.writer.moveToNextPage(s.pageOrientation),(this.writer.context().page+1)%2==1&&this.writer.moveToNextPage(s.pageOrientation)):"afterEven"===s.pageBreak&&(this.writer.moveToNextPage(s.pageOrientation),(this.writer.context().page+1)%2==0&&this.writer.moveToNextPage(s.pageOrientation))})(()=>{let Z=s.verticalAlignment;if(d&&Z)var EA=this.writer.beginVerticalAlignment(Z);let PA=s.unbreakable;PA&&this.writer.beginUnbreakableBlock();let FA=s.absolutePosition;FA&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveTo(FA.x||0,FA.y||0));let te=s.relativePosition;if(te&&(this.writer.context().beginDetachedBlock(),this.writer.context().moveToRelative(te.x||0,te.y||0)),s.stack)this.processVerticalContainer(s);else if(s.section)this.processSection(s);else if(s.columns)this.processColumns(s);else if(s.ul)this.processList(!1,s);else if(s.ol)this.processList(!0,s);else if(s.table)this.processTable(s);else if(void 0!==s.text)this.processLeaf(s);else if(s.toc)this.processToc(s);else if(s.image)this.processImage(s);else if(s.svg)this.processSVG(s);else if(s.canvas)this.processCanvas(s);else if(s.qr)this.processQr(s);else if(s.attachment)this.processAttachment(s);else if(!s._span)throw new Error(`Unrecognized document structure: ${P(s)}`);(FA||te)&&this.writer.context().endDetachedBlock(),PA&&this.writer.commitUnbreakableBlock(),d&&Z&&this.verticalAlignmentItemStack.push({begin:EA,end:this.writer.endVerticalAlignment(Z)})}),void 0!==W&&(s.__height=this.writer.context().getCurrentPosition().top-W)}snakingAwarePageBreak(s){let d=this.writer.context();if(!d.getSnakingSnapshot())return;if(this.writer.canMoveToNextColumn())return void this.writer.moveToNextColumn();this.writer.moveToNextPage(s);let W=d.lastColumnWidth;d.resetSnakingColumnsForNewPage(),d.lastColumnWidth=W}processVerticalContainer(s){s.stack.forEach(d=>{this.processNode(d),Zn(s.positions,d.positions)},this)}processSection(s){let d=this.writer.context().getCurrentPage();if(!d||d&&d.items.length){"inherit"===s.pageSize&&(s.pageSize=d?{width:d.pageSize.width,height:d.pageSize.height}:void 0),"inherit"===s.pageOrientation&&(s.pageOrientation=d?d.pageSize.orientation:void 0),"inherit"===s.pageMargins&&(s.pageMargins=d?d.pageMargins:void 0),"inherit"===s.header&&(s.header=d?d.customProperties.header:void 0),"inherit"===s.footer&&(s.footer=d?d.customProperties.footer:void 0),"inherit"===s.background&&(s.background=d?d.customProperties.background:void 0),"inherit"===s.watermark&&(s.watermark=d?d.customProperties.watermark:void 0),s.header&&"function"!=typeof s.header&&null!==s.header&&(s.header=Ze(s.header)),s.footer&&"function"!=typeof s.footer&&null!==s.footer&&(s.footer=Ze(s.footer));let F={};typeof s.header<"u"&&(F.header=s.header),typeof s.footer<"u"&&(F.footer=s.footer),typeof s.background<"u"&&(F.background=s.background),typeof s.watermark<"u"&&(F.watermark=s.watermark),this.writer.addPage(s.pageSize||this.pageSize,s.pageOrientation,s.pageMargins||this.pageMargins,F)}this.processNode(s.section)}processColumns(s){this.nestedLevel++;let d=s.columns,F=this.writer.context().availableWidth,W=function EA(PA){if(!PA)return null;let FA=[];FA.push(0);for(let te=d.length-1;te>0;te--)FA.push(PA);return FA}(s._gap);W&&(F-=(W.length-1)*s._gap),Gt_buildColumnWidths(d,F);let Z=this.processRow({marginX:s._margin?[s._margin[0],s._margin[2]]:[0,0],cells:d,widths:d,gaps:W,snakingColumns:s.snakingColumns});Zn(s.positions,Z.positions),this.nestedLevel--,0===this.nestedLevel&&this.writer.context().resetMarginXTopParent()}_findStartingRowSpanCell(s,d){let F=1;for(let W=d-1;W>=0;W--){if(!s[W]._span)return s[W].rowSpan>1&&(s[W].colSpan||1)===F?s[W]:null;F++}return null}_getPageBreak(s,d){return s.find(F=>F.prevPage===d)}_getPageBreakListBySpan(s,d,F){if(!s||!s._breaksBySpan)return null;const W=s._breaksBySpan.filter(PA=>PA.prevPage===d&&F<=PA.rowIndexOfSpanEnd);let Z=Number.MAX_VALUE,EA=Number.MIN_VALUE;return W.forEach(PA=>{EA=Math.max(PA.prevY,EA),Z=Math.min(PA.y,Z)}),{prevPage:d,prevY:EA,y:Z}}_findSameRowPageBreakByRowSpanData(s,d,F){return s?s.find(W=>W.prevPage===d&&F===W.rowIndexOfSpanEnd):null}_updatePageBreaksData(s,d,F){Object.keys(d._bottomByPage).forEach(W=>{const Z=Number(W),EA=this._getPageBreak(s,Z);if(EA&&(EA.prevY=Math.max(EA.prevY,d._bottomByPage[Z])),d._breaksBySpan&&d._breaksBySpan.length>0){const PA=d._breaksBySpan.filter(FA=>FA.prevPage===Z&&F<=FA.rowIndexOfSpanEnd);PA&&PA.length>0&&PA.forEach(FA=>{FA.prevY=Math.max(FA.prevY,d._bottomByPage[Z])})}})}_resolveBreakY(s,d,F){F.prevY=Math.max(s.prevY,d.prevY),F.y=Math.min(s.y,d.y)}_storePageBreakData(s,d,F,W){if(d){let EA=this._findSameRowPageBreakByRowSpanData(W&&W._breaksBySpan||null,s.prevPage,s.rowIndex);EA||(EA={...s,rowIndexOfSpanEnd:s.rowIndex+s.rowSpan-1},W._breaksBySpan||(W._breaksBySpan=[]),W._breaksBySpan.push(EA)),EA.prevY=Math.max(EA.prevY,s.prevY),EA.y=Math.min(EA.y,s.y);let PA=this._getPageBreak(F,s.prevPage);PA&&this._resolveBreakY(PA,EA,PA)}else{let Z=this._getPageBreak(F,s.prevPage),EA=this._getPageBreakListBySpan(W,s.prevPage,s.rowIndex);Z||(Z={...s},F.push(Z)),EA&&this._resolveBreakY(Z,EA,Z),this._resolveBreakY(Z,s,Z)}}_colLeftOffset(s,d){return d&&d.length>s?d[s]:0}_getRowSpanEndingCell(s,d,F,W){if(F.rowSpan&&F.rowSpan>1){let Z=d+F.rowSpan-1;if(Z>=s.length)throw new Error(`Row span for column ${W} (with indexes starting from 0) exceeded row count`);return s[Z][W]}return null}processRow(s){let d=s.marginX,F=void 0===d?[0,0]:d,W=s.dontBreakRows,Z=void 0!==W&&W,EA=s.rowsWithoutPageBreak,FA=s.cells,te=s.widths,ge=s.gaps,Me=s.tableNode,Qe=s.tableBody,me=s.rowIndex,Ye=s.height,Ue=s.snakingColumns,De=void 0!==Ue&&Ue;const Le=Z||me<=(void 0===EA?0:EA)-1;let Se=[],Ve=[],vt=!1,zt={};te=te||FA,!Le&&Ye>this.writer.context().availableHeight&&(vt=!0);const sn=1===this.nestedLevel?F:null,gn=Me?Me._bottomByPage:null,Tn=ge&&ge.length>1?ge[1]:0,rs=te.map(Zt=>Zt._calcWidth);this.writer.context().beginColumnGroup(sn,gn,De,Tn,rs);for(let Zt=0,_n=FA.length;Zt<_n;Zt++){let Yt=FA[Zt],mn=Zt;const ci=Hn=>{const xi=Yt.rowSpan&&Yt.rowSpan>1;xi&&(Hn.rowSpan=Yt.rowSpan),Hn.rowIndex=me,this._storePageBreakData(Hn,xi,Se,Me)};this.writer.addListener("pageChanged",ci);let $n=te[Zt]._calcWidth,zs=this._colLeftOffset(Zt,ge),ks=this._findStartingRowSpanCell(FA,Zt);if(Yt.colSpan&&Yt.colSpan>1)for(let Hn=1;Hn0&&(as._isUnbreakableContext=!0,as._originalXOffset=this.writer.originalX)),this.writer.context().beginColumn($n,zs,as),Yt._span||De&&Zt>0){if(Yt._columnEndingContext){let Hn=0;if(Z){const Ar=this.writer.contextStack[this.writer.contextStack.length-1];"number"==typeof Yt._startingRowSpanPage&&Yt._startingRowSpanPage===Ar.page&&"number"==typeof Yt._startingRowSpanY&&(Hn=Ar.y-Yt._startingRowSpanY),Hn=Math.max(0,Hn)}let xi=0;Yt._isUnbreakableContext&&!this.writer.transactionLevel&&(xi=Yt._originalXOffset),this.writer.context().markEnding(Yt,xi,Hn)}}else this.processNode(Yt,!0),this.writer.context().updateBottomByPage(),Yt.verticalAlignment&&(zt[mn]=this.verticalAlignmentItemStack.length-1),Zn(Ve,Yt.positions);this.writer.removeListener("pageChanged",ci)}let kn=null;const Jn=FA.length>0?FA[FA.length-1]:null;if(Jn)if(Jn._endingCell)kn=Jn._endingCell;else if(!0===Jn._span){const Zt=this._findStartingRowSpanCell(FA,FA.length);Zt&&(kn=Zt._endingCell,this.writer.transactionLevel>0&&(kn._isUnbreakableContext=!0,kn._originalXOffset=this.writer.originalX))}vt&&!Le&&0===Se.length&&(this.writer.context().moveDown(this.writer.context().availableHeight),De?this.snakingAwarePageBreak():this.writer.moveToNextPage());const Xt=this.writer.context().completeColumnGroup(Ye,kn);Me&&(Me._bottomByPage=Xt,this._updatePageBreaksData(Se,Me,me));let dn=this.writer.context().height;for(let Zt=0,_n=FA.length;Zt<_n;Zt++){let Yt=FA[Zt];if(!Yt._span&&Yt.verticalAlignment){let mn=this.verticalAlignmentItemStack[zt[Zt]].begin.item;mn.viewHeight=dn,mn.nodeHeight=Yt.__height,mn.cell=Yt,mn.bottomY=this.writer.context().y,mn.isCellContentMultiPage=!mn.cell.positions.every($n=>$n.pageNumber===mn.cell.positions[0].pageNumber),mn.getViewHeight=function(){return this.cell._willBreak?this.cell._bottomY-this.cell._rowTopPageY:this.cell.rowSpan&&this.cell.rowSpan>1?Z?this.cell._leftEndingCell._rowTopPageY-(this.cell._leftEndingCell._startingRowSpanY+this.cell._leftEndingCell._rowTopPageYPadding)+this.cell._leftEndingCell._bottomY:this.cell.positions[0].pageNumber!==this.cell._leftEndingCell._lastPageNumber?this.bottomY-this.cell._leftEndingCell._bottomY:this.viewHeight+this.cell._leftEndingCell._bottomY-this.bottomY:this.viewHeight},mn.getNodeHeight=function(){return this.nodeHeight},this.verticalAlignmentItemStack[zt[Zt]].end.item.isCellContentMultiPage=mn.isCellContentMultiPage}}return{pageBreaksBySpan:[],pageBreaks:Se,positions:Ve}}processList(s,d){const F=PA=>{if(EA){let FA=EA;if(EA=null,FA.canvas){let te=FA.canvas[0];Dt(te,-FA._minWidth,0),this.writer.addVector(te)}else if(FA._inlines){let te=new es(this.pageSize.width);te.addInline(FA._inlines[0]),te.x=-FA._minWidth,te.y=PA.getAscenderHeight()-te.getAscenderHeight(),this.writer.addLine(te,!0)}}};let EA,W=s?d.ol:d.ul,Z=d._gapSize;this.writer.context().addMargin(Z.width),this.writer.addListener("lineAdded",F),W.forEach(PA=>{EA=PA.listMarker,this.processNode(PA),Zn(d.positions,PA.positions)}),this.writer.removeListener("lineAdded",F),this.writer.context().addMargin(-Z.width)}processTable(s){this.nestedLevel++;let d=new Is(s);d.beginTable(this.writer);let F=s.table.heights,W=0;for(let Z=0,EA=s.table.body.length;Z0&&this.writer.context().inSnakingColumns()){let Qe=W>0?W:d.rowPaddingTop+14+d.rowPaddingBottom+d.bottomLineWidth+d.topLineWidth;this.writer.context().availableHeight{Qe.rowSpan&&Qe.rowSpan>1&&(Qe._startingRowSpanY=this.writer.context().y,Qe._startingRowSpanPage=this.writer.context().page)}),d.beginRow(Z,this.writer),FA="function"==typeof F?F(Z):Array.isArray(F)?F[Z]:F,"auto"===FA&&(FA=void 0);const te=this.writer.context().page;let ge=this.processRow({marginX:s._margin?[s._margin[0],s._margin[2]]:[0,0],dontBreakRows:d.dontBreakRows,rowsWithoutPageBreak:d.rowsWithoutPageBreak,cells:s.table.body[Z],widths:s.table.widths,gaps:s._offsets.offsets,tableBody:s.table.body,tableNode:s,rowIndex:Z,height:FA});if(Zn(s.positions,ge.positions),!ge.pageBreaks||0===ge.pageBreaks.length){const me=this._findSameRowPageBreakByRowSpanData(s&&s._breaksBySpan||null,te,Z);if(me){const Ye=this._getPageBreakListBySpan(s,me.prevPage,Z);ge.pageBreaks.push(Ye)}}d.endRow(Z,this.writer,ge.pageBreaks);let Me=this.writer.context().y;this.writer.context().page===te&&(W=Me-PA)}d.endTable(this.writer),this.nestedLevel--,0===this.nestedLevel&&this.writer.context().resetMarginXTopParent()}processLeaf(s){let d=this.buildNextLine(s);d&&(s.tocItem||s.id)&&(d._node=s);let F=d?d.getHeight():0,W=s.maxHeight||-1;if(d){let Z=rA(s);Z&&(d.id=Z)}if(s.outline)d._outline={id:s.id,parentId:s.outlineParentId,text:s.outlineText||s.text,expanded:s.outlineExpanded||!1};else if(Array.isArray(s.text))for(let Z=0,EA=s.text.length;Zthis.writer.context().availableHeight&&this.writer.context().y>this.writer.context().pageMargins.top){if(this.writer.context().inSnakingColumns()&&!this.writer.context().isInNestedNonSnakingGroup()){this.snakingAwarePageBreak(s.pageOrientation),d.inlines&&d.inlines.length>0&&s._inlines.unshift(...d.inlines),d=this.buildNextLine(s);continue}this.writer.moveToNextPage(s.pageOrientation)}let Z=this.writer.addLine(d);s.positions.push(Z),d=this.buildNextLine(s),d&&(F+=d.getHeight())}}processToc(s){!s.toc._table&&!0===s.toc.hideEmpty||(s.toc.title&&this.processNode(s.toc.title),s.toc._table&&this.processNode(s.toc._table))}buildNextLine(s){function d(PA){let FA=PA.constructor();for(let te in PA)FA[te]=PA[te];return FA}function F(PA,FA,te){let ge=1,Me=PA.length,Qe=1;for(;ge<=Me;){const me=Math.floor((ge+Me)/2);te(PA.substring(0,me))<=FA?(Qe=me,ge=me+1):Me=me-1}return Qe}if(!s._inlines||0===s._inlines.length)return null;let W=new es(this.writer.context().availableWidth);const Z=new mt(null);let EA=!1;for(;s._inlines&&s._inlines.length>0&&(W.hasEnoughSpaceForInline(s._inlines[0],s._inlines.slice(1))||EA);){let PA=!1,FA=s._inlines.shift();if(!FA.noWrap&&FA.text.length>1&&FA.width>W.getAvailableWidth()){let te=F(FA.text,W.getAvailableWidth(),ge=>Z.widthOfText(ge,FA));if(te{let s=parseFloat($);if("number"==typeof s&&!isNaN(s))return s},Ii=$=>{let s;try{s=new Gi.XmlDocument($)}catch(d){throw new Error("Invalid svg document ("+d+")",{cause:d})}if("svg"!==s.name)throw new Error("Invalid svg document (expected )");return s},ys=class qn{constructor(){}measureSVG(s){let d,F,W;if(I(s)){let PA=Ii(s);d=PA.attr.width,F=PA.attr.height,W=PA.attr.viewBox}else{if(!(typeof SVGElement<"u"&&s instanceof SVGElement&&"function"==typeof getComputedStyle))throw new Error("Invalid SVG document");d=s.getAttribute("width"),F=s.getAttribute("height"),W=s.getAttribute("viewBox")}let Z=un(d),EA=un(F);if((void 0===Z||void 0===EA)&&"string"==typeof W){let PA=W.split(/[,\s]+/);if(4!==PA.length)throw new Error("Unexpected svg viewBox format, should have 4 entries but found: '"+W+"'");void 0===Z&&(Z=un(PA[2])),void 0===EA&&(EA=un(PA[3]))}return{width:Z,height:EA}}writeDimensions(s,d){if(I(s)){let F=Ii(s);return"string"!=typeof F.attr.viewBox&&(F.attr.viewBox=`0 0 ${un(F.attr.width)} ${un(F.attr.height)}`),F.attr.width=""+d.width,F.attr.height=""+d.height,F.toString()}return s.hasAttribute("viewBox")||s.setAttribute("viewBox",`0 0 ${un(s.getAttribute("width"))} ${un(s.getAttribute("height"))}`),s.setAttribute("width",""+d.width),s.setAttribute("height",""+d.height),s}},oi=class Di{constructor(s){this.pdfDocument=s}drawBackground(s,d,F){let W=s.getHeight();for(let Z=0,EA=s.inlines.length;Z{let d=[],F=null;for(let W=0,Z=$.inlines.length;W{let Ye=0;for(let Ue=0,De=s.inlines.length;UeYe?Ue:Ye;return s.inlines[Ye]})(),FA=(()=>{let Ye=0;for(let Ue=0,De=s.inlines.length;Ue{let d=$;return s.sup&&(d-=.75*s.fontSize),s.sub&&(d+=.35*s.fontSize),d},ts=class vs{constructor(s,d){this.pdfDocument=s,this.progressCallback=d,this.outlineMap=[]}renderPages(s){this.pdfDocument._pdfMakePages=s;let d=0;this.progressCallback&&s.forEach(W=>{d+=W.items.length});let F=0;for(let W=0;W1){let EA=s.points[0],PA=s.points[s.points.length-1];(s.closePath||EA.x===PA.x&&EA.y===PA.y)&&this.pdfDocument.closePath()}break;case"path":this.pdfDocument.path(s.d)}if(s.linearGradient&&d){let EA=1/(s.linearGradient.length-1);for(let PA=0;PA{let EA=F.split(",").map(te=>te.trim().replace(/('|")/g,"")),PA=(($,s,d)=>{for(let F=0;F-1&&(PA=PA.slice(0,FA)),PA.forEach(ge=>{ge.pageSize.height===1/0&&(ge.pageSize.height=function li($,s){let W=pi(s||40),Z=W.top;return $.items.forEach(EA=>{let PA=function F(EA){return(EA.item.y||0)+function d(EA){return"function"==typeof EA.item.getHeight?EA.item.getHeight():EA.item._height?EA.item._height:"vector"===EA.type?typeof EA.item.y1<"u"?EA.item.y1>EA.item.y2?EA.item.y1:EA.item.y2:EA.item.h:0}(EA)}(EA);PA>Z&&(Z=PA)}),Z+=W.bottom,Z}(ge,ge.pageMargins))}),new ts(F.pdfKitDoc,d.progressCallback).renderPages(PA),F.pdfKitDoc})()}resolveUrls(s){var d=this;return de(function*(){const F=W=>"object"==typeof W?{url:W.url,headers:W.headers}:{url:W,headers:{}};for(let W in d.fontDescriptors)if(d.fontDescriptors.hasOwnProperty(W)){if(d.fontDescriptors[W].normal)if(Array.isArray(d.fontDescriptors[W].normal)){let Z=F(d.fontDescriptors[W].normal[0]);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].normal[0]=Z.url}else{let Z=F(d.fontDescriptors[W].normal);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].normal=Z.url}if(d.fontDescriptors[W].bold)if(Array.isArray(d.fontDescriptors[W].bold)){let Z=F(d.fontDescriptors[W].bold[0]);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].bold[0]=Z.url}else{let Z=F(d.fontDescriptors[W].bold);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].bold=Z.url}if(d.fontDescriptors[W].italics)if(Array.isArray(d.fontDescriptors[W].italics)){let Z=F(d.fontDescriptors[W].italics[0]);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].italics[0]=Z.url}else{let Z=F(d.fontDescriptors[W].italics);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].italics=Z.url}if(d.fontDescriptors[W].bolditalics)if(Array.isArray(d.fontDescriptors[W].bolditalics)){let Z=F(d.fontDescriptors[W].bolditalics[0]);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].bolditalics[0]=Z.url}else{let Z=F(d.fontDescriptors[W].bolditalics);d.urlResolver.resolve(Z.url,Z.headers),d.fontDescriptors[W].bolditalics=Z.url}}if(s.images)for(let W in s.images)if(s.images.hasOwnProperty(W)){let Z=F(s.images[W]);d.urlResolver.resolve(Z.url,Z.headers),s.images[W]=Z.url}if(s.attachments)for(let W in s.attachments)if(s.attachments.hasOwnProperty(W)&&s.attachments[W].src){let Z=F(s.attachments[W].src);d.urlResolver.resolve(Z.url,Z.headers),s.attachments[W].src=Z.url}if(s.files)for(let W in s.files)if(s.files.hasOwnProperty(W)&&s.files[W].src){let Z=F(s.files[W].src);d.urlResolver.resolve(Z.url,Z.headers),s.files[W].src=Z.url}yield d.urlResolver.resolved()})()}};var is=f(6811);function Fi(){return(Fi=de(function*($,s,d){void 0===s&&(s={});for(let F=0;F<=30;F++){if(typeof d<"u"&&!0!==d($))throw new Error(`Access to URL denied by resource access policy: ${$}`);try{let W=yield fetch($,{headers:s,redirect:"manual"});if(W.status>=300&&W.status<400){let Z=W.headers.get("location");if(!Z)throw new Error("Redirect response missing Location header");$=new URL(Z,$).href;continue}if("opaqueredirect"===W.type&&(W=yield fetch($,{headers:s})),!W.ok)throw new Error(`Failed to fetch (status code: ${W.status})`);return W}catch(W){throw new Error(`Network request failed (url: "${$}", error: ${W.message})`,{cause:W})}}throw new Error(`Network request failed (url: "${$}", error: Too many redirects)`)})).apply(this,arguments)}const Us=class ki{constructor(s){this.fs=s,this.resolving={},this.urlAccessPolicy=void 0}setUrlAccessPolicy(s){this.urlAccessPolicy=s}resolve(s,d){var F=this;void 0===d&&(d={});const W=function(){var Z=de(function*(){if(s.toLowerCase().startsWith("https://")||s.toLowerCase().startsWith("http://")){if(F.fs.existsSync(s))return;const EA=yield function Ps($,s,d){return Fi.apply(this,arguments)}(s,d,F.urlAccessPolicy);if(EA.redirected&&typeof F.urlAccessPolicy<"u"&&!0!==F.urlAccessPolicy(EA.url))throw new Error(`Access to URL denied by resource access policy: ${EA.url}`);const PA=yield EA.arrayBuffer();F.fs.writeFileSync(s,PA)}});return function(){return Z.apply(this,arguments)}}();return this.resolving[s]||(this.resolving[s]=W()),this.resolving[s]}resolved(){return Promise.all(Object.values(this.resolving))}};var zn=f(9964);const ss=class Ls{constructor(){this.virtualfs=is.default,this.urlAccessPolicy=void 0,this.localAccessPolicy=void 0}createPdf(s,d){if(void 0===d&&(d={}),!v(s))throw new Error("Parameter 'docDefinition' has an invalid type. Object expected.");if(!v(d))throw new Error("Parameter 'options' has an invalid type. Object expected.");d.progressCallback=this.progressCallback,d.tableLayouts=this.tableLayouts;const F=typeof zn<"u"&&zn?.versions?.node;typeof this.urlAccessPolicy>"u"&&F&&console.warn("No URL access policy defined. Consider using setUrlAccessPolicy() to restrict external resource downloads."),typeof this.localAccessPolicy>"u"&&F&&console.warn("No local access policy defined. Consider using setLocalAccessPolicy() to restrict local file system access.");let W=new Us(this.virtualfs);W.setUrlAccessPolicy(this.urlAccessPolicy);const EA=new Ns(this.fonts,this.virtualfs,W,this.localAccessPolicy).createPdfKitDocument(s,d);return this._transformToDocument(EA)}setUrlAccessPolicy(s){if(void 0!==s&&"function"!=typeof s)throw new Error("Parameter 'callback' has an invalid type. Function or undefined expected.");this.urlAccessPolicy=s}setProgressCallback(s){this.progressCallback=s}addTableLayouts(s){this.tableLayouts=bt(this.tableLayouts,s)}setTableLayouts(s){this.tableLayouts=s}clearTableLayouts(){this.tableLayouts={}}addFonts(s){this.fonts=bt(this.fonts,s)}setFonts(s){this.fonts=s}clearFonts(){this.fonts={}}_transformToDocument(s){return s}};var Gs=f(783).Buffer;const Yn=class yi{constructor(s){this.bufferSize=1073741824,this.pdfDocumentPromise=s,this.bufferPromise=null}getStream(){return this.pdfDocumentPromise}getBuffer(){var s=this;const d=function(){var F=de(function*(){const W=yield s.getStream();return new Promise(Z=>{let EA=[];W.on("readable",()=>{let PA;for(;null!==(PA=W.read(s.bufferSize));)EA.push(PA)}),W.on("end",()=>{Z(Gs.concat(EA))}),W.end()})});return function(){return F.apply(this,arguments)}}();return null===this.bufferPromise&&(this.bufferPromise=d()),this.bufferPromise}getBase64(){var s=this;return de(function*(){return(yield s.getBuffer()).toString("base64")})()}getDataUrl(){var s=this;return de(function*(){return"data:application/pdf;base64,"+(yield s.getBase64())})()}};var h=f(5127);const p=class y extends Yn{getBlob(){var s=this;return de(function*(){const d=yield s.getBuffer();return new Blob([d],{type:"application/pdf"})})()}download(s){var d=this;return de(function*(){void 0===s&&(s="file.pdf");const F=yield d.getBlob();(0,h.saveAs)(F,s)})()}open(s){var d=this;return de(function*(){void 0===s&&(s=null),s||(s=(()=>{let $=window.open("","_blank");if(null===$)throw new Error("Open PDF in new window blocked by browser");return $})());const F=yield d.getBlob();try{let Z=(window.URL||window.webkitURL).createObjectURL(F);s.location.href=Z}catch(W){throw s.close(),W}})()}print(s){var d=this;return de(function*(){void 0===s&&(s=null),(yield d.getStream()).setOpenActionAsPrint(),yield d.open(s)})()}};var q=f(2416),CA=f.n(q),_A=f(890);f.n(_A)()({useNative:["Promise"]});let he={Roboto:{normal:"Roboto-Regular.ttf",bold:"Roboto-Medium.ttf",italics:"Roboto-Italic.ttf",bolditalics:"Roboto-MediumItalic.ttf"}};const xe=new class Ie extends ss{constructor(){super(),this.fonts=he}addFontContainer(s){this.addVirtualFileSystem(s.vfs),this.addFonts(s.fonts)}addVirtualFileSystem(s){for(let d in s)if(s.hasOwnProperty(d)){let F,W;"object"==typeof s[d]?(F=s[d].data,W=s[d].encoding||"base64"):(F=s[d],W="base64"),CA().writeFileSync(d,F,W)}}_transformToDocument(s){return new p(s)}}},2736(eA,Q,f){eA.exports=f(7133).default},2416(eA,Q,f){eA.exports=f(6811).default},6811(eA,Q,f){"use strict";f.d(Q,{default:()=>K});var g=f(783).Buffer;const I=v=>(0===v.indexOf("/")&&(v=v.substring(1)),0===v.indexOf("/")&&(v=v.substring(1)),v),K=new class N{constructor(){this.storage={}}existsSync(B){const j=I(B);return typeof this.storage[j]<"u"}readFileSync(B,j){const tA=I(B),w="object"==typeof j?j.encoding:j;if(!this.existsSync(tA))throw new Error(`File '${tA}' not found in virtual file system`);const aA=this.storage[tA];return w?aA.toString(w):aA}writeFileSync(B,j,tA){const w=I(B),aA="object"==typeof tA?tA.encoding:tA;if(!j&&!tA)throw new Error("No content");this.storage[w]=aA||"string"==typeof j?new g(j,aA):j}}},6582(eA,Q,f){"use strict";Q.A=void 0;var g=function I(K){return K&&K.__esModule?K:{default:K}}(f(7696));Q.A=g.default},7696(eA,Q,f){"use strict";(eA=f.nmd(eA))&&typeof eA.exports<"u"&&(eA.exports=function(g,I,N,K,v){const B={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgrey:[211,211,211],lightgreen:[144,238,144],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0]},j={black:[B.black,1],white:[B.white,1],transparent:[B.black,0]},tA={quot:34,amp:38,lt:60,gt:62,apos:39,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,circ:710,tilde:732,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,permil:8240,lsaquo:8249,rsaquo:8250,euro:8364,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,fnof:402,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,bull:8226,hellip:8230,prime:8242,Prime:8243,oline:8254,frasl:8260,weierp:8472,image:8465,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},w={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},aA={A3:!0,A4:!0,a3:!0,a4:!0},AA={color:{inherit:!0,initial:void 0},visibility:{inherit:!0,initial:"visible",values:{hidden:"hidden",collapse:"hidden",visible:"visible"}},fill:{inherit:!0,initial:j.black},stroke:{inherit:!0,initial:"none"},"stop-color":{inherit:!1,initial:j.black},"fill-opacity":{inherit:!0,initial:1},"stroke-opacity":{inherit:!0,initial:1},"stop-opacity":{inherit:!1,initial:1},"fill-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"clip-rule":{inherit:!0,initial:"nonzero",values:{nonzero:"nonzero",evenodd:"evenodd"}},"stroke-width":{inherit:!0,initial:1},"stroke-dasharray":{inherit:!0,initial:[]},"stroke-dashoffset":{inherit:!0,initial:0},"stroke-miterlimit":{inherit:!0,initial:4},"stroke-linejoin":{inherit:!0,initial:"miter",values:{miter:"miter",round:"round",bevel:"bevel"}},"stroke-linecap":{inherit:!0,initial:"butt",values:{butt:"butt",round:"round",square:"square"}},"font-size":{inherit:!0,initial:16,values:{"xx-small":9,"x-small":10,small:13,medium:16,large:18,"x-large":24,"xx-large":32}},"font-family":{inherit:!0,initial:"sans-serif"},"font-weight":{inherit:!0,initial:"normal",values:{600:"bold",700:"bold",800:"bold",900:"bold",bold:"bold",bolder:"bold",500:"normal",400:"normal",300:"normal",200:"normal",100:"normal",normal:"normal",lighter:"normal"}},"font-style":{inherit:!0,initial:"normal",values:{italic:"italic",oblique:"italic",normal:"normal"}},"text-anchor":{inherit:!0,initial:"start",values:{start:"start",middle:"middle",end:"end"}},direction:{inherit:!0,initial:"ltr",values:{ltr:"ltr",rtl:"rtl"}},"dominant-baseline":{inherit:!0,initial:"baseline",values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"alignment-baseline":{inherit:!1,initial:void 0,values:{auto:"baseline",baseline:"baseline","before-edge":"before-edge","text-before-edge":"before-edge",middle:"middle",central:"central","after-edge":"after-edge","text-after-edge":"after-edge",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"mathematical"}},"baseline-shift":{inherit:!0,initial:"baseline",values:{baseline:"baseline",sub:"sub",super:"super"}},"word-spacing":{inherit:!0,initial:0,values:{normal:0}},"letter-spacing":{inherit:!0,initial:0,values:{normal:0}},"text-decoration":{inherit:!1,initial:"none",values:{none:"none",underline:"underline",overline:"overline","line-through":"line-through"}},"xml:space":{inherit:!0,initial:"default",css:"white-space",values:{preserve:"preserve",default:"default",pre:"preserve","pre-line":"preserve","pre-wrap":"preserve",nowrap:"default"}},"marker-start":{inherit:!0,initial:"none"},"marker-mid":{inherit:!0,initial:"none"},"marker-end":{inherit:!0,initial:"none"},opacity:{inherit:!1,initial:1},transform:{inherit:!1,initial:[1,0,0,1,0,0]},display:{inherit:!1,initial:"inline",values:{none:"none",inline:"inline",block:"inline"}},"clip-path":{inherit:!1,initial:"none"},mask:{inherit:!1,initial:"none"},overflow:{inherit:!1,initial:"hidden",values:{hidden:"hidden",scroll:"hidden",visible:"visible"}},"vector-effect":{inherit:!0,initial:"none",values:{none:"none","non-scaling-stroke":"non-scaling-stroke"}}};function L(GA){let zA=new function(){};return zA.name="G"+(g._groupCount=(g._groupCount||0)+1),zA.resources=g.ref(),zA.xobj=g.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:GA,Group:{S:"Transparency",CS:"DeviceRGB",I:!0,K:!1},Resources:zA.resources}),zA.xobj.write(""),zA.savedMatrix=g._ctm,zA.savedPage=g.page,Et.push(zA),g._ctm=[1,0,0,1,0,0],g.page={width:g.page.width,height:g.page.height,write:function(vA){zA.xobj.write(vA)},fonts:{},xobjects:{},ext_gstates:{},patterns:{}},zA}function P(GA){if(GA!==Et.pop())throw"Group not matching";Object.keys(g.page.fonts).length&&(GA.resources.data.Font=g.page.fonts),Object.keys(g.page.xobjects).length&&(GA.resources.data.XObject=g.page.xobjects),Object.keys(g.page.ext_gstates).length&&(GA.resources.data.ExtGState=g.page.ext_gstates),Object.keys(g.page.patterns).length&&(GA.resources.data.Pattern=g.page.patterns),GA.resources.end(),GA.xobj.end(),g._ctm=GA.savedMatrix,g.page=GA.savedPage}function rA(GA){g.page.xobjects[GA.name]=GA.xobj,g.addContent("/"+GA.name+" Do")}function QA(GA,zA){let vA="M"+(g._maskCount=(g._maskCount||0)+1),qA=g.ref({Type:"ExtGState",CA:1,ca:1,BM:"Normal",SMask:{S:"Luminosity",G:GA.xobj,BC:zA?[0,0,0]:[1,1,1]}});qA.end(),g.page.ext_gstates[vA]=qA,g.addContent("/"+vA+" gs")}function NA(GA,zA,vA,qA){return{type:"PDFPattern",group:GA,dx:zA,dy:vA,matrix:qA||[1,0,0,1,0,0]}}function oA(GA,zA){let vA="P"+(g._patternCount=(g._patternCount||0)+1),qA=g.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:[0,0,GA.dx,GA.dy],XStep:GA.dx,YStep:GA.dy,Matrix:UA(g._ctm,GA.matrix),Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],XObject:function(){let ZA={};return ZA[GA.group.name]=GA.group.xobj,ZA}()}});qA.write("/"+GA.group.name+" Do"),qA.end(),g.page.patterns[vA]=qA,zA?(g.addContent("/Pattern CS"),g.addContent("/"+vA+" SCN")):(g.addContent("/Pattern cs"),g.addContent("/"+vA+" scn"))}function uA(GA,zA){g.page.fonts[GA.id]||(g.page.fonts[GA.id]=GA.ref()),g.addContent("BT").addContent("/"+GA.id+" "+zA+" Tf")}function dA(GA,zA,vA,qA,ZA,jA){g.addContent(JA(GA)+" "+JA(zA)+" "+JA(-vA)+" "+JA(-qA)+" "+JA(ZA)+" "+JA(jA)+" Tm")}function RA(GA,zA){g.addContent((GA&&zA?2:zA?1:GA?0:3)+" Tr")}function nA(GA,zA){let vA=[],qA="";const ZA=zA.fauxItalic?-.25:0;function jA(WA){qA+=WA.glyph,0!==WA.kern&&(vA.push(`<${qA}> ${JA(WA.kern)}`),qA="")}function ue(){qA.length&&(vA.push(`<${qA}> 0`),qA=""),vA.length&&(g.addContent(`[${vA.join(" ")}] TJ`),vA=[])}for(let WA=0;WA0)for(;zA<0;)zA+=qA;g.dash(GA,{phase:zA})}function VA(GA){let zA=function(WA,ae,ce,ye){this.error=ye,this.nodeName=WA,this.nodeValue=ce,this.nodeType=ae,this.attributes=Object.create(null),this.childNodes=[],this.parentNode=null,this.id="",this.textContent="",this.classList=[]};zA.prototype.getAttribute=function(WA){return null!=this.attributes[WA]?this.attributes[WA]:null},zA.prototype.getElementById=function(WA){let ae=null;return function ce(ye){if(!ae&&1===ye.nodeType){ye.id===WA&&(ae=ye);for(let ke=0;ke/)){for(;ae=ue();)ce.childNodes.push(ae),ae.parentNode=ce,ce.textContent+=3===ae.nodeType||4===ae.nodeType?ae.nodeValue:ae.textContent;return(WA=vA.match(/^<\/([\w:.-]+)\s*>/,!0))?(WA[1]===ce.nodeName||(Mt('parseXml: tag not matching, opening "'+ce.nodeName+'" & closing "'+WA[1]+'"'),jA=!0),ce):(Mt('parseXml: tag not matching, opening "'+ce.nodeName+'" & not closing'),jA=!0,ce)}if(vA.match(/^\/>/))return ce;Mt('parseXml: tag could not be parsed "'+ce.nodeName+'"'),jA=!0}else{if(WA=vA.match(/^/))return new zA(null,8,WA,jA);if(WA=vA.match(/^<\?[\s\S]*?\?>/))return new zA(null,7,WA,jA);if(WA=vA.match(/^/))return new zA(null,10,WA,jA);if(WA=vA.match(/^/,!0))return new zA("#cdata-section",4,WA[1],jA);if(WA=vA.match(/^([^<]+)/,!0))return new zA("#text",3,kA(WA[1]),jA)}};for(;ZA=ue();)1!==ZA.nodeType||qA?(1===ZA.nodeType||3===ZA.nodeType&&""!==ZA.nodeValue.trim())&&Mt("parseXml: data after document end has been discarded"):qA=ZA;return vA.matchAll()&&Mt("parseXml: parsing error"),qA}function kA(GA){return GA.replace(/&(?:#([0-9]+)|#[xX]([0-9A-Fa-f]+)|([0-9A-Za-z]+));/g,function(zA,vA,qA,ZA){return vA?String.fromCharCode(parseInt(vA,10)):qA?String.fromCharCode(parseInt(qA,16)):ZA&&tA[ZA]?String.fromCharCode(tA[ZA]):zA})}function hA(GA){let zA,vA;return GA=(GA||"").trim(),(zA=B[GA])?vA=[zA.slice(),1]:(zA=GA.match(/^cmyk\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(zA[1]=parseInt(zA[1]),zA[2]=parseInt(zA[2]),zA[3]=parseInt(zA[3]),zA[4]=parseFloat(zA[4]),zA[1]<=100&&zA[2]<=100&&zA[3]<=100&&zA[4]<=100&&(vA=[zA.slice(1,5),1])):(zA=GA.match(/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)$/i))?(zA[1]=parseInt(zA[1]),zA[2]=parseInt(zA[2]),zA[3]=parseInt(zA[3]),zA[4]=parseFloat(zA[4]),zA[1]<256&&zA[2]<256&&zA[3]<256&&zA[4]<=1&&(vA=[zA.slice(1,4),zA[4]])):(zA=GA.match(/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)$/i))?(zA[1]=parseInt(zA[1]),zA[2]=parseInt(zA[2]),zA[3]=parseInt(zA[3]),zA[1]<256&&zA[2]<256&&zA[3]<256&&(vA=[zA.slice(1,4),1])):(zA=GA.match(/^rgb\(\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/i))?(zA[1]=2.55*parseFloat(zA[1]),zA[2]=2.55*parseFloat(zA[2]),zA[3]=2.55*parseFloat(zA[3]),zA[1]<256&&zA[2]<256&&zA[3]<256&&(vA=[zA.slice(1,4),1])):(zA=GA.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i))?vA=[[parseInt(zA[1],16),parseInt(zA[2],16),parseInt(zA[3],16)],1]:(zA=GA.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(vA=[[17*parseInt(zA[1],16),17*parseInt(zA[2],16),17*parseInt(zA[3],16)],1]),Dt?Dt(vA,GA):vA}function fA(GA,zA,vA){let qA=GA[0].slice(),ZA=GA[1]*zA;if(vA){for(let jA=0;jA=0;zA--)GA=UA(Et[zA].savedMatrix,GA);return GA}function Ee(){return(new oe).M(0,0).L(g.page.width,0).L(g.page.width,g.page.height).L(0,g.page.height).transform(cA(xA())).getBoundingBox()}function cA(GA){let zA=GA[0]*GA[3]-GA[1]*GA[2];return[GA[3]/zA,-GA[1]/zA,-GA[2]/zA,GA[0]/zA,(GA[2]*GA[5]-GA[3]*GA[4])/zA,(GA[1]*GA[4]-GA[0]*GA[5])/zA]}function J(GA){let zA=JA(GA[0]),vA=JA(GA[1]),qA=JA(GA[2]),ZA=JA(GA[3]),jA=JA(GA[4]),ue=JA(GA[5]);if(LA(zA*ZA-vA*qA,0))return[zA,vA,qA,ZA,jA,ue]}function U(GA){let zA=GA[2]||0,vA=GA[1]||0,qA=GA[0]||0;if(lA(zA,0)&&lA(vA,0))return[];if(lA(zA,0))return[-qA/vA];{let ZA=vA*vA-4*zA*qA;return LA(ZA,0)&&ZA>0?[(-vA+Math.sqrt(ZA))/(2*zA),(-vA-Math.sqrt(ZA))/(2*zA)]:lA(ZA,0)?[-vA/(2*zA)]:[]}}function O(GA,zA){return(zA[0]||0)+(zA[1]||0)*GA+(zA[2]||0)*GA*GA+(zA[3]||0)*GA*GA*GA}function lA(GA,zA){return Math.abs(GA-zA)<1e-10}function LA(GA,zA){return Math.abs(GA-zA)>=1e-10}function JA(GA){return GA>-1e21&&GA<1e21?Math.round(1e6*GA)/1e6:0}function IA(GA){let qA,zA=new Te((GA||"").trim()),vA=[1,0,0,1,0,0];for(;qA=zA.match(/^([A-Za-z]+)\s*[(]([^(]+)[)]/,!0);){let WA,ZA=qA[1],jA=[],ue=new Te(qA[2].trim());for(;WA=ue.matchNumber();)jA.push(Number(WA)),ue.matchSeparator();if("matrix"===ZA&&6===jA.length)vA=UA(vA,[jA[0],jA[1],jA[2],jA[3],jA[4],jA[5]]);else if("translate"===ZA&&2===jA.length)vA=UA(vA,[1,0,0,1,jA[0],jA[1]]);else if("translate"===ZA&&1===jA.length)vA=UA(vA,[1,0,0,1,jA[0],0]);else if("scale"===ZA&&2===jA.length)vA=UA(vA,[jA[0],0,0,jA[1],0,0]);else if("scale"===ZA&&1===jA.length)vA=UA(vA,[jA[0],0,0,jA[0],0,0]);else if("rotate"===ZA&&3===jA.length){let ae=jA[0]*Math.PI/180;vA=UA(vA,[1,0,0,1,jA[1],jA[2]],[Math.cos(ae),Math.sin(ae),-Math.sin(ae),Math.cos(ae),0,0],[1,0,0,1,-jA[1],-jA[2]])}else if("rotate"===ZA&&1===jA.length){let ae=jA[0]*Math.PI/180;vA=UA(vA,[Math.cos(ae),Math.sin(ae),-Math.sin(ae),Math.cos(ae),0,0])}else if("skewX"===ZA&&1===jA.length){let ae=jA[0]*Math.PI/180;vA=UA(vA,[1,0,Math.tan(ae),1,0,0])}else{if("skewY"!==ZA||1!==jA.length)return;{let ae=jA[0]*Math.PI/180;vA=UA(vA,[1,Math.tan(ae),0,1,0,0])}}zA.matchSeparator()}if(!zA.matchAll())return vA}function gA(GA,zA,vA,qA,ZA,jA){let ue=(GA||"").trim().match(/^(none)$|^x(Min|Mid|Max)Y(Min|Mid|Max)(?:\s+(meet|slice))?$/)||[],WA=ue[1]||ue[4]||"meet",ye=zA/qA,ke=vA/ZA,Je={Min:0,Mid:.5,Max:1}[ue[2]||"Mid"]-(jA||0),tt={Min:0,Mid:.5,Max:1}[ue[3]||"Mid"]-(jA||0);return"slice"===WA?ke=ye=Math.max(ye,ke):"meet"===WA&&(ke=ye=Math.min(ye,ke)),[ye,0,0,ke,Je*(zA-qA*ye),tt*(vA-ZA*ke)]}function C(GA){let zA=Object.create(null);GA=(GA||"").trim().split(/;/);for(let vA=0;vAst&&(je=st,st=Ce,Ce=je),_e>lt&&(je=lt,lt=_e,_e=je);let wt=U(ke);for(let pt=0;pt=0&&wt[pt]<=1){let ot=O(wt[pt],ce);otst&&(st=ot)}let Bt=U(Je);for(let pt=0;pt=0&&Bt[pt]<=1){let ot=O(Bt[pt],ye);ot<_e&&(_e=ot),ot>lt&&(lt=ot)}return[Ce,_e,st,lt]},this.getPointAtLength=function(je){if(lA(je,0))return this.startPoint;if(lA(je,this.totalLength))return this.endPoint;if(!(je<0||je>this.totalLength))for(let Ce=1;Ce<=ae;Ce++){let _e=tt[Ce-1],st=tt[Ce];if(_e<=je&&je<=st){let lt=(Ce-(st-je)/(st-_e))/ae,wt=O(lt,ce),Bt=O(lt,ye),pt=O(lt,ke),ot=O(lt,Je);return[wt,Bt,Math.atan2(ot,pt)]}}}},Oe=function(GA,zA,vA,qA){this.totalLength=Math.sqrt((vA-GA)*(vA-GA)+(qA-zA)*(qA-zA)),this.startPoint=[GA,zA,Math.atan2(qA-zA,vA-GA)],this.endPoint=[vA,qA,Math.atan2(qA-zA,vA-GA)],this.getBoundingBox=function(){return[Math.min(this.startPoint[0],this.endPoint[0]),Math.min(this.startPoint[1],this.endPoint[1]),Math.max(this.startPoint[0],this.endPoint[0]),Math.max(this.startPoint[1],this.endPoint[1])]},this.getPointAtLength=function(ZA){if(ZA>=0&&ZA<=this.totalLength){let jA=ZA/this.totalLength||0;return[this.startPoint[0]+jA*(this.endPoint[0]-this.startPoint[0]),this.startPoint[1]+jA*(this.endPoint[1]-this.startPoint[1]),this.startPoint[2]]}}},oe=function(){this.pathCommands=[],this.pathSegments=[],this.startPoint=null,this.endPoint=null,this.totalLength=0;let ZA,jA,ue,GA=0,zA=0,vA=0,qA=0;this.move=function(WA,ae){return GA=vA=WA,zA=qA=ae,null},this.line=function(WA,ae){let ce=new Oe(vA,qA,WA,ae);return vA=WA,qA=ae,ce},this.curve=function(WA,ae,ce,ye,ke,Je){let tt=new ze(vA,qA,WA,ae,ce,ye,ke,Je);return vA=ke,qA=Je,tt},this.close=function(){let WA=new Oe(vA,qA,GA,zA);return vA=GA,qA=zA,WA},this.addCommand=function(WA){this.pathCommands.push(WA);let ae=this[WA[0]].apply(this,WA.slice(3));ae&&(ae.hasStart=WA[1],ae.hasEnd=WA[2],this.startPoint=this.startPoint||ae.startPoint,this.endPoint=ae.endPoint,this.pathSegments.push(ae),this.totalLength+=ae.totalLength)},this.M=function(WA,ae){return this.addCommand(["move",!0,!0,WA,ae]),ZA="M",this},this.m=function(WA,ae){return this.M(vA+WA,qA+ae)},this.Z=this.z=function(){return this.addCommand(["close",!0,!0]),ZA="Z",this},this.L=function(WA,ae){return this.addCommand(["line",!0,!0,WA,ae]),ZA="L",this},this.l=function(WA,ae){return this.L(vA+WA,qA+ae)},this.H=function(WA){return this.L(WA,qA)},this.h=function(WA){return this.L(vA+WA,qA)},this.V=function(WA){return this.L(vA,WA)},this.v=function(WA){return this.L(vA,qA+WA)},this.C=function(WA,ae,ce,ye,ke,Je){return this.addCommand(["curve",!0,!0,WA,ae,ce,ye,ke,Je]),ZA="C",jA=ce,ue=ye,this},this.c=function(WA,ae,ce,ye,ke,Je){return this.C(vA+WA,qA+ae,vA+ce,qA+ye,vA+ke,qA+Je)},this.S=function(WA,ae,ce,ye){return this.C(vA+("C"===ZA?vA-jA:0),qA+("C"===ZA?qA-ue:0),WA,ae,ce,ye)},this.s=function(WA,ae,ce,ye){return this.C(vA+("C"===ZA?vA-jA:0),qA+("C"===ZA?qA-ue:0),vA+WA,qA+ae,vA+ce,qA+ye)},this.Q=function(WA,ae,ce,ye){return this.addCommand(["curve",!0,!0,vA+.6666666666666666*(WA-vA),qA+2/3*(ae-qA),ce+2/3*(WA-ce),ye+2/3*(ae-ye),ce,ye]),ZA="Q",jA=WA,ue=ae,this},this.q=function(WA,ae,ce,ye){return this.Q(vA+WA,qA+ae,vA+ce,qA+ye)},this.T=function(WA,ae){return this.Q(vA+("Q"===ZA?vA-jA:0),qA+("Q"===ZA?qA-ue:0),WA,ae)},this.t=function(WA,ae){return this.Q(vA+("Q"===ZA?vA-jA:0),qA+("Q"===ZA?qA-ue:0),vA+WA,qA+ae)},this.A=function(WA,ae,ce,ye,ke,Je,tt){if(lA(WA,0)||lA(ae,0))this.addCommand(["line",!0,!0,Je,tt]);else{ce*=Math.PI/180,WA=Math.abs(WA),ae=Math.abs(ae),ye=1*!!ye,ke=1*!!ke;let je=Math.cos(ce)*(vA-Je)/2+Math.sin(ce)*(qA-tt)/2,Ce=Math.cos(ce)*(qA-tt)/2-Math.sin(ce)*(vA-Je)/2,_e=je*je/(WA*WA)+Ce*Ce/(ae*ae);_e>1&&(WA*=Math.sqrt(_e),ae*=Math.sqrt(_e));let st=Math.sqrt(Math.max(0,WA*WA*ae*ae-WA*WA*Ce*Ce-ae*ae*je*je)/(WA*WA*Ce*Ce+ae*ae*je*je)),lt=(ye===ke?-1:1)*st*WA*Ce/ae,wt=(ye===ke?1:-1)*st*ae*je/WA,Bt=Math.cos(ce)*lt-Math.sin(ce)*wt+(vA+Je)/2,pt=Math.sin(ce)*lt+Math.cos(ce)*wt+(qA+tt)/2,ot=Math.atan2((Ce-wt)/ae,(je-lt)/WA),ut=Math.atan2((-Ce-wt)/ae,(-je-lt)/WA);0===ke&&ut-ot>0?ut-=2*Math.PI:1===ke&&ut-ot<0&&(ut+=2*Math.PI);let an=Math.ceil(Math.abs(ut-ot)/(Math.PI/qe));for(let Wt=0;WtWA[2]&&(WA[2]=ce[2]),ce[1]WA[3]&&(WA[3]=ce[3])}for(let ce=0;ce=0&&WA<=this.totalLength){let ae;for(let ce=0;ceZA.selector.specificity||(zA[jA]=ZA.css[jA],vA[jA]=ZA.selector.specificity)}return zA}(GA),this.allowedChildren=[],this.attr=function(ZA){if("function"==typeof GA.getAttribute)return GA.getAttribute(ZA)},this.resolveUrl=function(ZA){let jA=(ZA||"").match(/^\s*(?:url\("(.*)#(.*)"\)|url\('(.*)#(.*)'\)|url\((.*)#(.*)\)|(.*)#(.*))\s*$/)||[],ue=jA[1]||jA[3]||jA[5]||jA[7],WA=jA[2]||jA[4]||jA[6]||jA[8];if(WA){if(!ue){let ae=I.getElementById(WA);if(ae)return-1===this.stack.indexOf(ae)?ae:void Mt('SVGtoPDF: loop of circular references for id "'+WA+'"')}if(Ze){let ae=ct[ue];if(!ae){ae=Ze(ue),function $A(GA){return"object"==typeof GA&&null!==GA&&"number"==typeof GA.length}(ae)||(ae=[ae]);for(let ce=0;ce=0&&ue[3]>=0?ue:jA},this.getPercent=function(ZA,jA){let ue=this.attr(ZA),WA=new Te((ue||"").trim()),ye=WA.matchNumber();return!ye||(WA.match("%")&&(ye*=.01),WA.matchAll())?jA:Math.max(0,Math.min(1,ye))},this.chooseValue=function(ZA){for(let jA=0;jA=0&&(WA=ce);break;case"stroke-miterlimit":ce=parseFloat(ue),null!=ce&&ce>=1&&(WA=ce);break;case"word-spacing":case"letter-spacing":case"stroke-dashoffset":WA=this.computeLength(ue,this.getViewport())}if(null!=WA)return vA[ZA]=WA}}return vA[ZA]=jA.inherit&&this.inherits?this.inherits.get(ZA):jA.initial},this.getChildren=function(){if(null!=qA)return qA;let ZA=[];for(let jA=0;jA0?jA:this.ref?this.ref.getChildren():[]},this.getPaint=function(jA,ue,WA,ae){let ce="userSpaceOnUse"!==this.attr("patternUnits"),ye="objectBoundingBox"===this.attr("patternContentUnits"),ke=this.getLength("x",ce?1:this.getParentVWidth(),0),Je=this.getLength("y",ce?1:this.getParentVHeight(),0),tt=this.getLength("width",ce?1:this.getParentVWidth(),0),je=this.getLength("height",ce?1:this.getParentVHeight(),0);ye&&!ce?(ke=(ke-jA[0])/(jA[2]-jA[0])||0,Je=(Je-jA[1])/(jA[3]-jA[1])||0,tt=tt/(jA[2]-jA[0])||0,je=je/(jA[3]-jA[1])||0):!ye&&ce&&(ke=jA[0]+ke*(jA[2]-jA[0]),Je=jA[1]+Je*(jA[3]-jA[1]),tt*=jA[2]-jA[0],je*=jA[3]-jA[1]);let Ce=this.getViewbox("viewBox",[0,0,tt,je]),st=UA(gA((this.attr("preserveAspectRatio")||"").trim(),tt,je,Ce[2],Ce[3],0),[1,0,0,1,-Ce[0],-Ce[1]]),lt=IA(this.attr("patternTransform"));if(ye&&(lt=UA([jA[2]-jA[0],0,0,jA[3]-jA[1],jA[0],jA[1]],lt)),lt=UA(lt,[1,0,0,1,ke,Je]),(lt=J(lt))&&(st=J(st))&&(tt=JA(tt))&&(je=JA(je))){let wt=L([0,0,tt,je]);return g.transform.apply(g,st),this.drawChildren(WA,ae),P(wt),[NA(wt,tt,je,lt),ue]}return vA?[vA[0],vA[1]*ue]:void 0},this.getVWidth=function(){let jA="userSpaceOnUse"!==this.attr("patternUnits"),ue=this.getLength("width",jA?1:this.getParentVWidth(),0);return this.getViewbox("viewBox",[0,0,ue,0])[2]},this.getVHeight=function(){let jA="userSpaceOnUse"!==this.attr("patternUnits"),ue=this.getLength("height",jA?1:this.getParentVHeight(),0);return this.getViewbox("viewBox",[0,0,0,ue])[3]}},MA=function(GA,zA,vA){sA.call(this,GA,zA),this.allowedChildren=["stop"],this.ref=function(){let jA=this.getUrl("href")||this.getUrl("xlink:href");if(jA&&jA.nodeName===GA.nodeName)return new MA(jA,zA,vA)}.call(this);let qA=this.attr;this.attr=function(jA){let ue=qA.call(this,jA);return null!=ue||"href"===jA||"xlink:href"===jA?ue:this.ref?this.ref.attr(jA):null};let ZA=this.getChildren;this.getChildren=function(){let jA=ZA.call(this);return jA.length>0?jA:this.ref?this.ref.getChildren():[]},this.getPaint=function(jA,ue,WA,ae){let ce=this.getChildren();if(0===ce.length)return;if(1===ce.length){let ot=ce[0],ut=ot.get("stop-color");return"none"===ut?void 0:fA(ut,ot.get("stop-opacity")*ue,ae)}let tt,je,Ce,_e,st,lt,ye="userSpaceOnUse"!==this.attr("gradientUnits"),ke=IA(this.attr("gradientTransform")),Je=this.attr("spreadMethod"),wt=0,Bt=0,pt=1;if(ye&&(ke=UA([jA[2]-jA[0],0,0,jA[3]-jA[1],jA[0],jA[1]],ke)),ke=J(ke)){if("linearGradient"===this.name)je=this.getLength("x1",ye?1:this.getVWidth(),0),Ce=this.getLength("x2",ye?1:this.getVWidth(),ye?1:this.getVWidth()),_e=this.getLength("y1",ye?1:this.getVHeight(),0),st=this.getLength("y2",ye?1:this.getVHeight(),0);else{Ce=this.getLength("cx",ye?1:this.getVWidth(),ye?.5:.5*this.getVWidth()),st=this.getLength("cy",ye?1:this.getVHeight(),ye?.5:.5*this.getVHeight()),lt=this.getLength("r",ye?1:this.getViewport(),ye?.5:.5*this.getViewport()),je=this.getLength("fx",ye?1:this.getVWidth(),Ce),_e=this.getLength("fy",ye?1:this.getVHeight(),st),lt<0&&Mt("SvgElemGradient: negative r value");let ot=Math.sqrt(Math.pow(Ce-je,2)+Math.pow(st-_e,2)),ut=1;ot>lt&&(ut=lt/ot,je=Ce+(je-Ce)*ut,_e=st+(_e-st)*ut),lt=Math.max(lt,ot*ut*1.000001)}if("reflect"===Je||"repeat"===Je){let ot=cA(ke),ut=yA([jA[0],jA[1]],ot),an=yA([jA[2],jA[1]],ot),Wt=yA([jA[2],jA[3]],ot),_t=yA([jA[0],jA[3]],ot);"linearGradient"===this.name?(wt=Math.max((ut[0]-Ce)*(Ce-je)+(ut[1]-st)*(st-_e),(an[0]-Ce)*(Ce-je)+(an[1]-st)*(st-_e),(Wt[0]-Ce)*(Ce-je)+(Wt[1]-st)*(st-_e),(_t[0]-Ce)*(Ce-je)+(_t[1]-st)*(st-_e))/(Math.pow(Ce-je,2)+Math.pow(st-_e,2)),Bt=Math.max((ut[0]-je)*(je-Ce)+(ut[1]-_e)*(_e-st),(an[0]-je)*(je-Ce)+(an[1]-_e)*(_e-st),(Wt[0]-je)*(je-Ce)+(Wt[1]-_e)*(_e-st),(_t[0]-je)*(je-Ce)+(_t[1]-_e)*(_e-st))/(Math.pow(Ce-je,2)+Math.pow(st-_e,2))):wt=Math.sqrt(Math.max(Math.pow(ut[0]-Ce,2)+Math.pow(ut[1]-st,2),Math.pow(an[0]-Ce,2)+Math.pow(an[1]-st,2),Math.pow(Wt[0]-Ce,2)+Math.pow(Wt[1]-st,2),Math.pow(_t[0]-Ce,2)+Math.pow(_t[1]-st,2)))/lt-1,wt=Math.ceil(wt+.5),Bt=Math.ceil(Bt+.5),pt=Bt+1+wt}tt="linearGradient"===this.name?g.linearGradient(je-Bt*(Ce-je),_e-Bt*(st-_e),Ce+wt*(Ce-je),st+wt*(st-_e)):g.radialGradient(je,_e,0,Ce,st,lt+wt*lt);for(let ot=0;ot0&&tt.stop((ot+0)/pt,Pt[0],Pt[1]),tt.stop((ot+ut)/(wt+Bt+1),Pt[0],Pt[1]),Wt===ce.length-1&&ut<1&&tt.stop((ot+1)/pt,Pt[0],Pt[1])}}return tt.setTransform.apply(tt,ke),[tt,1]}return vA?[vA[0],vA[1]*ue]:void 0}},Pe=function(GA,zA){S.call(this,GA,zA),this.dashScale=1,this.getBoundingShape=function(){return this.shape},this.getTransformation=function(){return this.get("transform")},this.drawInDocument=function(vA,qA){if("hidden"!==this.get("visibility")&&this.shape){if(g.save(),"non-scaling-stroke"===this.get("vector-effect")?this.shape.transform(this.getTransformation()):this.transform(),this.clip(),vA)this.shape.insertInDocument(),pA(j.white),g.fill(this.get("clip-rule"));else{let jA;this.mask()&&(jA=L(Ee()));let ue=this.shape.getSubPaths(),WA=this.getFill(vA,qA),ae=this.getStroke(vA,qA),ce=this.get("stroke-width"),ye=this.get("stroke-linecap");if("non-scaling-stroke"===this.get("vector-effect")&&(ce/=function HA(){const GA=Ee();return g.page.width/GA[2]}()),WA||ae){if(WA&&pA(WA),ae){for(let _e=0;_e0&&ue[_e].startPoint&&ue[_e].startPoint.length>1){let st=ue[_e].startPoint[0],lt=ue[_e].startPoint[1];pA(ae),"square"===ye?g.rect(st-.5*ce,lt-.5*ce,ce,ce):"round"===ye&&g.circle(st,lt,.5*ce),g.fill()}let je=this.get("stroke-dasharray"),Ce=this.get("stroke-dashoffset");if(LA(this.dashScale,1)){for(let _e=0;_e0&&ue[je].insertInDocument();WA&&ae?g.fillAndStroke(this.get("fill-rule")):WA?g.fill(this.get("fill-rule")):ae&&g.stroke()}let ke=this.get("marker-start"),Je=this.get("marker-mid"),tt=this.get("marker-end");if("none"!==ke||"none"!==Je||"none"!==tt){let je=this.shape.getMarkers();if("none"!==ke&&je.length>0&&new et(ke,null).drawMarker(!1,qA,je[0],ce),"none"!==Je)for(let Ce=1;Ce0&&new et(tt,null).drawMarker(!1,qA,je[je.length-1],ce)}jA&&(P(jA),rA(jA))}g.restore()}}},At=function(GA,zA){Pe.call(this,GA,zA);let vA=this.getLength("x",this.getVWidth(),0),qA=this.getLength("y",this.getVHeight(),0),ZA=this.getLength("width",this.getVWidth(),0),jA=this.getLength("height",this.getVHeight(),0),ue=this.getLength("rx",this.getVWidth()),WA=this.getLength("ry",this.getVHeight());void 0===ue&&void 0===WA?ue=WA=0:void 0===ue&&void 0!==WA?ue=WA:void 0!==ue&&void 0===WA&&(WA=ue),ZA>0&&jA>0?ue&&WA?(ue=Math.min(ue,.5*ZA),WA=Math.min(WA,.5*jA),this.shape=(new oe).M(vA+ue,qA).L(vA+ZA-ue,qA).A(ue,WA,0,0,1,vA+ZA,qA+WA).L(vA+ZA,qA+jA-WA).A(ue,WA,0,0,1,vA+ZA-ue,qA+jA).L(vA+ue,qA+jA).A(ue,WA,0,0,1,vA,qA+jA-WA).L(vA,qA+WA).A(ue,WA,0,0,1,vA+ue,qA).Z()):this.shape=(new oe).M(vA,qA).L(vA+ZA,qA).L(vA+ZA,qA+jA).L(vA,qA+jA).Z():this.shape=new oe},_=function(GA,zA){Pe.call(this,GA,zA);let vA=this.getLength("cx",this.getVWidth(),0),qA=this.getLength("cy",this.getVHeight(),0),ZA=this.getLength("r",this.getViewport(),0);this.shape=ZA>0?(new oe).M(vA+ZA,qA).A(ZA,ZA,0,0,1,vA-ZA,qA).A(ZA,ZA,0,0,1,vA+ZA,qA).Z():new oe},be=function(GA,zA){Pe.call(this,GA,zA);let vA=this.getLength("cx",this.getVWidth(),0),qA=this.getLength("cy",this.getVHeight(),0),ZA=this.getLength("rx",this.getVWidth(),0),jA=this.getLength("ry",this.getVHeight(),0);this.shape=ZA>0&&jA>0?(new oe).M(vA+ZA,qA).A(ZA,jA,0,0,1,vA-ZA,qA).A(ZA,jA,0,0,1,vA+ZA,qA).Z():new oe},Re=function(GA,zA){Pe.call(this,GA,zA);let vA=this.getLength("x1",this.getVWidth(),0),qA=this.getLength("y1",this.getVHeight(),0),ZA=this.getLength("x2",this.getVWidth(),0),jA=this.getLength("y2",this.getVHeight(),0);this.shape=(new oe).M(vA,qA).L(ZA,jA)},SA=function(GA,zA){Pe.call(this,GA,zA);let vA=this.getNumberList("points");this.shape=new oe;for(let qA=0;qA0?vA:void 0,this.dashScale=void 0!==this.pathLength?this.shape.totalLength/this.pathLength:1},et=function(GA,zA){Y.call(this,GA,zA);let vA=this.getLength("markerWidth",this.getParentVWidth(),3),qA=this.getLength("markerHeight",this.getParentVHeight(),3),ZA=this.getViewbox("viewBox",[0,0,vA,qA]);this.getVWidth=function(){return ZA[2]},this.getVHeight=function(){return ZA[3]},this.drawMarker=function(jA,ue,WA,ae){g.save();let ce=this.attr("orient"),ye=this.attr("markerUnits"),ke="auto"===ce?WA[2]:(parseFloat(ce)||0)*Math.PI/180,Je="userSpaceOnUse"===ye?1:ae;g.transform(Math.cos(ke)*Je,Math.sin(ke)*Je,-Math.sin(ke)*Je,Math.cos(ke)*Je,WA[0],WA[1]);let _e,tt=this.getLength("refX",this.getVWidth(),0),je=this.getLength("refY",this.getVHeight(),0),Ce=gA(this.attr("preserveAspectRatio"),vA,qA,ZA[2],ZA[3],.5);"hidden"===this.get("overflow")&&g.rect(Ce[0]*(ZA[0]+ZA[2]/2-tt)-vA/2,Ce[3]*(ZA[1]+ZA[3]/2-je)-qA/2,vA,qA).clip(),g.transform.apply(g,Ce),g.translate(-tt,-je),this.get("opacity")<1&&!jA&&(_e=L(Ee())),this.drawChildren(jA,ue),_e&&(P(_e),g.fillOpacity(this.get("opacity")),rA(_e)),g.restore()}},Ke=function(GA,zA){Y.call(this,GA,zA),this.useMask=function(vA){let qA=L(Ee());g.save(),g.transform.apply(g,this.get("transform")),"objectBoundingBox"===this.attr("clipPathUnits")&&g.transform(vA[2]-vA[0],0,0,vA[3]-vA[1],vA[0],vA[1]),this.clip(),this.drawChildren(!0,!1),g.restore(),P(qA),QA(qA,!0)}},$e=function(GA,zA){Y.call(this,GA,zA),this.useMask=function(vA){let ZA,jA,ue,WA,qA=L(Ee());g.save(),"userSpaceOnUse"===this.attr("maskUnits")?(ZA=this.getLength("x",this.getVWidth(),-.1*(vA[2]-vA[0])+vA[0]),jA=this.getLength("y",this.getVHeight(),-.1*(vA[3]-vA[1])+vA[1]),ue=this.getLength("width",this.getVWidth(),1.2*(vA[2]-vA[0])),WA=this.getLength("height",this.getVHeight(),1.2*(vA[3]-vA[1]))):(ZA=this.getLength("x",this.getVWidth(),-.1)*(vA[2]-vA[0])+vA[0],jA=this.getLength("y",this.getVHeight(),-.1)*(vA[3]-vA[1])+vA[1],ue=this.getLength("width",this.getVWidth(),1.2)*(vA[2]-vA[0]),WA=this.getLength("height",this.getVHeight(),1.2)*(vA[3]-vA[1])),"objectBoundingBox"===this.attr("maskContentUnits")&&g.transform(vA[2]-vA[0],0,0,vA[3]-vA[1],vA[0],vA[1]),this.clip(),this.drawChildren(!1,!0),g.restore(),P(qA),QA(qA,!0)}},ht=function(GA,zA){S.call(this,GA,zA),this.allowedChildren=["tspan","#text","#cdata-section","a"],this.isText=!0,this.getBoundingShape=function(){let vA=new oe;for(let qA=0;qA0?jA:this.pathObject.totalLength,this.pathScale=this.pathObject.totalLength/this.pathLength}else if((ZA=this.getUrl("href")||this.getUrl("xlink:href"))&&"path"===ZA.nodeName){let jA=new Fe(ZA,this);this.pathObject=jA.shape.clone().transform(jA.get("transform")),this.pathLength=this.chooseValue(jA.pathLength,this.pathObject.totalLength),this.pathScale=this.pathObject.totalLength/this.pathLength}},mt=function(GA,zA){ht.call(this,GA,zA),this.allowedChildren=["textPath","tspan","#text","#cdata-section","a"],function(vA){let WA,ae,qA="",ZA=GA.textContent,jA=[],ue=[],ce=0,ye=0;function ke(){if(ue.length){let Ce=ue[ue.length-1],lt={startltr:0,middleltr:.5,endltr:1,startrtl:1,middlertl:.5,endrtl:0}[WA+ae]*(Ce.x+Ce.width-ue[0].x)||0;for(let wt=0;wtst||pt<0)Ce._pos[Bt].hidden=!0;else{let ot=_e.getPointAtLength(pt*lt);LA(lt,1)&&(Ce._pos[Bt].scale*=lt,Ce._pos[Bt].width*=lt),Ce._pos[Bt].x=ot[0]-.5*Ce._pos[Bt].width*Math.cos(ot[2])-Ce._pos[Bt].y*Math.sin(ot[2]),Ce._pos[Bt].y=ot[1]-.5*Ce._pos[Bt].width*Math.sin(ot[2])+Ce._pos[Bt].y*Math.cos(ot[2]),Ce._pos[Bt].rotate=ot[2]+Ce._pos[Bt].rotate,Ce._pos[Bt].continuous=!1}}}else for(let wt=0;wt0&&ot<1/0)for(let ut=0;ut=2){let ot=(_e-(pt-Bt))/(Ce.length-1);for(let ut=0;utN)throw new RangeError('The value "'+sA+'" is invalid for option "size"');const S=new Uint8Array(sA);return Object.setPrototypeOf(S,B.prototype),S}function B(sA,S,Y){if("number"==typeof sA){if("string"==typeof S)throw new TypeError('The "string" argument must be of type string. Received type number');return aA(sA)}return j(sA,S,Y)}function j(sA,S,Y){if("string"==typeof sA)return function AA(sA,S){if(("string"!=typeof S||""===S)&&(S="utf8"),!B.isEncoding(S))throw new TypeError("Unknown encoding: "+S);const Y=0|uA(sA,S);let k=v(Y);const m=k.write(sA,S);return m!==Y&&(k=k.slice(0,m)),k}(sA,S);if(ArrayBuffer.isView(sA))return function P(sA){if(Ne(sA,Uint8Array)){const S=new Uint8Array(sA);return rA(S.buffer,S.byteOffset,S.byteLength)}return L(sA)}(sA);if(null==sA)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof sA);if(Ne(sA,ArrayBuffer)||sA&&Ne(sA.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ne(sA,SharedArrayBuffer)||sA&&Ne(sA.buffer,SharedArrayBuffer)))return rA(sA,S,Y);if("number"==typeof sA)throw new TypeError('The "value" argument must not be of type number. Received type number');const k=sA.valueOf&&sA.valueOf();if(null!=k&&k!==sA)return B.from(k,S,Y);const m=function QA(sA){if(B.isBuffer(sA)){const S=0|NA(sA.length),Y=v(S);return 0===Y.length||sA.copy(Y,0,0,S),Y}return void 0!==sA.length?"number"!=typeof sA.length||Te(sA.length)?v(0):L(sA):"Buffer"===sA.type&&Array.isArray(sA.data)?L(sA.data):void 0}(sA);if(m)return m;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof sA[Symbol.toPrimitive])return B.from(sA[Symbol.toPrimitive]("string"),S,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof sA)}function tA(sA){if("number"!=typeof sA)throw new TypeError('"size" argument must be of type number');if(sA<0)throw new RangeError('The value "'+sA+'" is invalid for option "size"')}function aA(sA){return tA(sA),v(sA<0?0:0|NA(sA))}function L(sA){const S=sA.length<0?0:0|NA(sA.length),Y=v(S);for(let k=0;k=N)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+N.toString(16)+" bytes");return 0|sA}function uA(sA,S){if(B.isBuffer(sA))return sA.length;if(ArrayBuffer.isView(sA)||Ne(sA,ArrayBuffer))return sA.byteLength;if("string"!=typeof sA)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof sA);const Y=sA.length,k=arguments.length>2&&!0===arguments[2];if(!k&&0===Y)return 0;let m=!1;for(;;)switch(S){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":return YA(sA).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Y;case"hex":return Y>>>1;case"base64":return le(sA).length;default:if(m)return k?-1:YA(sA).length;S=(""+S).toLowerCase(),m=!0}}function dA(sA,S,Y){let k=!1;if((void 0===S||S<0)&&(S=0),S>this.length||((void 0===Y||Y>this.length)&&(Y=this.length),Y<=0)||(Y>>>=0)<=(S>>>=0))return"";for(sA||(sA="utf8");;)switch(sA){case"hex":return Ee(this,S,Y);case"utf8":case"utf-8":return hA(this,S,Y);case"ascii":return yA(this,S,Y);case"latin1":case"binary":return xA(this,S,Y);case"base64":return kA(this,S,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return HA(this,S,Y);default:if(k)throw new TypeError("Unknown encoding: "+sA);sA=(sA+"").toLowerCase(),k=!0}}function RA(sA,S,Y){const k=sA[S];sA[S]=sA[Y],sA[Y]=k}function nA(sA,S,Y,k,m){if(0===sA.length)return-1;if("string"==typeof Y?(k=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Te(Y=+Y)&&(Y=m?0:sA.length-1),Y<0&&(Y=sA.length+Y),Y>=sA.length){if(m)return-1;Y=sA.length-1}else if(Y<0){if(!m)return-1;Y=0}if("string"==typeof S&&(S=B.from(S,k)),B.isBuffer(S))return 0===S.length?-1:H(sA,S,Y,k,m);if("number"==typeof S)return S&=255,"function"==typeof Uint8Array.prototype.indexOf?m?Uint8Array.prototype.indexOf.call(sA,S,Y):Uint8Array.prototype.lastIndexOf.call(sA,S,Y):H(sA,[S],Y,k,m);throw new TypeError("val must be string, number or Buffer")}function H(sA,S,Y,k,m){let Ae,E=1,mA=sA.length,ie=S.length;if(void 0!==k&&("ucs2"===(k=String(k).toLowerCase())||"ucs-2"===k||"utf16le"===k||"utf-16le"===k)){if(sA.length<2||S.length<2)return-1;E=2,mA/=2,ie/=2,Y/=2}function DA(pe,MA){return 1===E?pe[MA]:pe.readUInt16BE(MA*E)}if(m){let pe=-1;for(Ae=Y;AemA&&(Y=mA-ie),Ae=Y;Ae>=0;Ae--){let pe=!0;for(let MA=0;MAm&&(k=m):k=m;const E=S.length;let mA;for(k>E/2&&(k=E/2),mA=0;mA>8,m=Y%256,E.push(m),E.push(k);return E}(S,sA.length-Y),sA,Y,k)}function kA(sA,S,Y){return t.fromByteArray(0===S&&Y===sA.length?sA:sA.slice(S,Y))}function hA(sA,S,Y){Y=Math.min(sA.length,Y);const k=[];let m=S;for(;m239?4:E>223?3:E>191?2:1;if(m+ie<=Y){let DA,Ae,pe,MA;switch(ie){case 1:E<128&&(mA=E);break;case 2:DA=sA[m+1],128==(192&DA)&&(MA=(31&E)<<6|63&DA,MA>127&&(mA=MA));break;case 3:DA=sA[m+1],Ae=sA[m+2],128==(192&DA)&&128==(192&Ae)&&(MA=(15&E)<<12|(63&DA)<<6|63&Ae,MA>2047&&(MA<55296||MA>57343)&&(mA=MA));break;case 4:DA=sA[m+1],Ae=sA[m+2],pe=sA[m+3],128==(192&DA)&&128==(192&Ae)&&128==(192&pe)&&(MA=(15&E)<<18|(63&DA)<<12|(63&Ae)<<6|63&pe,MA>65535&&MA<1114112&&(mA=MA))}}null===mA?(mA=65533,ie=1):mA>65535&&(mA-=65536,k.push(mA>>>10&1023|55296),mA=56320|1023&mA),k.push(mA),m+=ie}return function UA(sA){const S=sA.length;if(S<=4096)return String.fromCharCode.apply(String,sA);let Y="",k=0;for(;kk)&&(Y=k);let m="";for(let E=S;EY)throw new RangeError("Trying to access beyond buffer length")}function J(sA,S,Y,k,m,E){if(!B.isBuffer(sA))throw new TypeError('"buffer" argument must be a Buffer instance');if(S>m||SsA.length)throw new RangeError("Index out of range")}function U(sA,S,Y,k,m){b(S,k,m,sA,Y,7);let E=Number(S&BigInt(4294967295));sA[Y++]=E,E>>=8,sA[Y++]=E,E>>=8,sA[Y++]=E,E>>=8,sA[Y++]=E;let mA=Number(S>>BigInt(32)&BigInt(4294967295));return sA[Y++]=mA,mA>>=8,sA[Y++]=mA,mA>>=8,sA[Y++]=mA,mA>>=8,sA[Y++]=mA,Y}function O(sA,S,Y,k,m){b(S,k,m,sA,Y,7);let E=Number(S&BigInt(4294967295));sA[Y+7]=E,E>>=8,sA[Y+6]=E,E>>=8,sA[Y+5]=E,E>>=8,sA[Y+4]=E;let mA=Number(S>>BigInt(32)&BigInt(4294967295));return sA[Y+3]=mA,mA>>=8,sA[Y+2]=mA,mA>>=8,sA[Y+1]=mA,mA>>=8,sA[Y]=mA,Y+8}function lA(sA,S,Y,k,m,E){if(Y+k>sA.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function LA(sA,S,Y,k,m){return S=+S,Y>>>=0,m||lA(sA,0,Y,4),g.write(sA,S,Y,k,23,4),Y+4}function JA(sA,S,Y,k,m){return S=+S,Y>>>=0,m||lA(sA,0,Y,8),g.write(sA,S,Y,k,52,8),Y+8}Q.kMaxLength=N,!(B.TYPED_ARRAY_SUPPORT=function K(){try{const sA=new Uint8Array(1),S={foo:function(){return 42}};return Object.setPrototypeOf(S,Uint8Array.prototype),Object.setPrototypeOf(sA,S),42===sA.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&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(B.prototype,"parent",{enumerable:!0,get:function(){if(B.isBuffer(this))return this.buffer}}),Object.defineProperty(B.prototype,"offset",{enumerable:!0,get:function(){if(B.isBuffer(this))return this.byteOffset}}),B.poolSize=8192,B.from=function(sA,S,Y){return j(sA,S,Y)},Object.setPrototypeOf(B.prototype,Uint8Array.prototype),Object.setPrototypeOf(B,Uint8Array),B.alloc=function(sA,S,Y){return function w(sA,S,Y){return tA(sA),sA<=0?v(sA):void 0!==S?"string"==typeof Y?v(sA).fill(S,Y):v(sA).fill(S):v(sA)}(sA,S,Y)},B.allocUnsafe=function(sA){return aA(sA)},B.allocUnsafeSlow=function(sA){return aA(sA)},B.isBuffer=function(S){return null!=S&&!0===S._isBuffer&&S!==B.prototype},B.compare=function(S,Y){if(Ne(S,Uint8Array)&&(S=B.from(S,S.offset,S.byteLength)),Ne(Y,Uint8Array)&&(Y=B.from(Y,Y.offset,Y.byteLength)),!B.isBuffer(S)||!B.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(S===Y)return 0;let k=S.length,m=Y.length;for(let E=0,mA=Math.min(k,m);Em.length?(B.isBuffer(mA)||(mA=B.from(mA)),mA.copy(m,E)):Uint8Array.prototype.set.call(m,mA,E);else{if(!B.isBuffer(mA))throw new TypeError('"list" argument must be an Array of Buffers');mA.copy(m,E)}E+=mA.length}return m},B.byteLength=uA,B.prototype._isBuffer=!0,B.prototype.swap16=function(){const S=this.length;if(S%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;YY&&(S+=" ... "),""},I&&(B.prototype[I]=B.prototype.inspect),B.prototype.compare=function(S,Y,k,m,E){if(Ne(S,Uint8Array)&&(S=B.from(S,S.offset,S.byteLength)),!B.isBuffer(S))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof S);if(void 0===Y&&(Y=0),void 0===k&&(k=S?S.length:0),void 0===m&&(m=0),void 0===E&&(E=this.length),Y<0||k>S.length||m<0||E>this.length)throw new RangeError("out of range index");if(m>=E&&Y>=k)return 0;if(m>=E)return-1;if(Y>=k)return 1;if(this===S)return 0;let mA=(E>>>=0)-(m>>>=0),ie=(k>>>=0)-(Y>>>=0);const DA=Math.min(mA,ie),Ae=this.slice(m,E),pe=S.slice(Y,k);for(let MA=0;MA>>=0,isFinite(k)?(k>>>=0,void 0===m&&(m="utf8")):(m=k,k=void 0)}const E=this.length-Y;if((void 0===k||k>E)&&(k=E),S.length>0&&(k<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");m||(m="utf8");let mA=!1;for(;;)switch(m){case"hex":return pA(this,S,Y,k);case"utf8":case"utf-8":return z(this,S,Y,k);case"ascii":case"latin1":case"binary":return OA(this,S,Y,k);case"base64":return wA(this,S,Y,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return VA(this,S,Y,k);default:if(mA)throw new TypeError("Unknown encoding: "+m);m=(""+m).toLowerCase(),mA=!0}},B.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},B.prototype.slice=function(S,Y){const k=this.length;(S=~~S)<0?(S+=k)<0&&(S=0):S>k&&(S=k),(Y=void 0===Y?k:~~Y)<0?(Y+=k)<0&&(Y=0):Y>k&&(Y=k),Y>>=0,Y>>>=0,k||cA(S,Y,this.length);let m=this[S],E=1,mA=0;for(;++mA>>=0,Y>>>=0,k||cA(S,Y,this.length);let m=this[S+--Y],E=1;for(;Y>0&&(E*=256);)m+=this[S+--Y]*E;return m},B.prototype.readUint8=B.prototype.readUInt8=function(S,Y){return S>>>=0,Y||cA(S,1,this.length),this[S]},B.prototype.readUint16LE=B.prototype.readUInt16LE=function(S,Y){return S>>>=0,Y||cA(S,2,this.length),this[S]|this[S+1]<<8},B.prototype.readUint16BE=B.prototype.readUInt16BE=function(S,Y){return S>>>=0,Y||cA(S,2,this.length),this[S]<<8|this[S+1]},B.prototype.readUint32LE=B.prototype.readUInt32LE=function(S,Y){return S>>>=0,Y||cA(S,4,this.length),(this[S]|this[S+1]<<8|this[S+2]<<16)+16777216*this[S+3]},B.prototype.readUint32BE=B.prototype.readUInt32BE=function(S,Y){return S>>>=0,Y||cA(S,4,this.length),16777216*this[S]+(this[S+1]<<16|this[S+2]<<8|this[S+3])},B.prototype.readBigUInt64LE=Oe(function(S){R(S>>>=0,"offset");const Y=this[S],k=this[S+7];(void 0===Y||void 0===k)&&M(S,this.length-8);const m=Y+256*this[++S]+65536*this[++S]+this[++S]*2**24,E=this[++S]+256*this[++S]+65536*this[++S]+k*2**24;return BigInt(m)+(BigInt(E)<>>=0,"offset");const Y=this[S],k=this[S+7];(void 0===Y||void 0===k)&&M(S,this.length-8);const m=Y*2**24+65536*this[++S]+256*this[++S]+this[++S],E=this[++S]*2**24+65536*this[++S]+256*this[++S]+k;return(BigInt(m)<>>=0,Y>>>=0,k||cA(S,Y,this.length);let m=this[S],E=1,mA=0;for(;++mA=E&&(m-=Math.pow(2,8*Y)),m},B.prototype.readIntBE=function(S,Y,k){S>>>=0,Y>>>=0,k||cA(S,Y,this.length);let m=Y,E=1,mA=this[S+--m];for(;m>0&&(E*=256);)mA+=this[S+--m]*E;return E*=128,mA>=E&&(mA-=Math.pow(2,8*Y)),mA},B.prototype.readInt8=function(S,Y){return S>>>=0,Y||cA(S,1,this.length),128&this[S]?-1*(255-this[S]+1):this[S]},B.prototype.readInt16LE=function(S,Y){S>>>=0,Y||cA(S,2,this.length);const k=this[S]|this[S+1]<<8;return 32768&k?4294901760|k:k},B.prototype.readInt16BE=function(S,Y){S>>>=0,Y||cA(S,2,this.length);const k=this[S+1]|this[S]<<8;return 32768&k?4294901760|k:k},B.prototype.readInt32LE=function(S,Y){return S>>>=0,Y||cA(S,4,this.length),this[S]|this[S+1]<<8|this[S+2]<<16|this[S+3]<<24},B.prototype.readInt32BE=function(S,Y){return S>>>=0,Y||cA(S,4,this.length),this[S]<<24|this[S+1]<<16|this[S+2]<<8|this[S+3]},B.prototype.readBigInt64LE=Oe(function(S){R(S>>>=0,"offset");const Y=this[S],k=this[S+7];return(void 0===Y||void 0===k)&&M(S,this.length-8),(BigInt(this[S+4]+256*this[S+5]+65536*this[S+6]+(k<<24))<>>=0,"offset");const Y=this[S],k=this[S+7];(void 0===Y||void 0===k)&&M(S,this.length-8);const m=(Y<<24)+65536*this[++S]+256*this[++S]+this[++S];return(BigInt(m)<>>=0,Y||cA(S,4,this.length),g.read(this,S,!0,23,4)},B.prototype.readFloatBE=function(S,Y){return S>>>=0,Y||cA(S,4,this.length),g.read(this,S,!1,23,4)},B.prototype.readDoubleLE=function(S,Y){return S>>>=0,Y||cA(S,8,this.length),g.read(this,S,!0,52,8)},B.prototype.readDoubleBE=function(S,Y){return S>>>=0,Y||cA(S,8,this.length),g.read(this,S,!1,52,8)},B.prototype.writeUintLE=B.prototype.writeUIntLE=function(S,Y,k,m){S=+S,Y>>>=0,k>>>=0,m||J(this,S,Y,k,Math.pow(2,8*k)-1,0);let E=1,mA=0;for(this[Y]=255&S;++mA>>=0,k>>>=0,m||J(this,S,Y,k,Math.pow(2,8*k)-1,0);let E=k-1,mA=1;for(this[Y+E]=255&S;--E>=0&&(mA*=256);)this[Y+E]=S/mA&255;return Y+k},B.prototype.writeUint8=B.prototype.writeUInt8=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,1,255,0),this[Y]=255&S,Y+1},B.prototype.writeUint16LE=B.prototype.writeUInt16LE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,2,65535,0),this[Y]=255&S,this[Y+1]=S>>>8,Y+2},B.prototype.writeUint16BE=B.prototype.writeUInt16BE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,2,65535,0),this[Y]=S>>>8,this[Y+1]=255&S,Y+2},B.prototype.writeUint32LE=B.prototype.writeUInt32LE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,4,4294967295,0),this[Y+3]=S>>>24,this[Y+2]=S>>>16,this[Y+1]=S>>>8,this[Y]=255&S,Y+4},B.prototype.writeUint32BE=B.prototype.writeUInt32BE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,4,4294967295,0),this[Y]=S>>>24,this[Y+1]=S>>>16,this[Y+2]=S>>>8,this[Y+3]=255&S,Y+4},B.prototype.writeBigUInt64LE=Oe(function(S,Y){return void 0===Y&&(Y=0),U(this,S,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),B.prototype.writeBigUInt64BE=Oe(function(S,Y){return void 0===Y&&(Y=0),O(this,S,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),B.prototype.writeIntLE=function(S,Y,k,m){if(S=+S,Y>>>=0,!m){const DA=Math.pow(2,8*k-1);J(this,S,Y,k,DA-1,-DA)}let E=0,mA=1,ie=0;for(this[Y]=255&S;++E>>=0,!m){const DA=Math.pow(2,8*k-1);J(this,S,Y,k,DA-1,-DA)}let E=k-1,mA=1,ie=0;for(this[Y+E]=255&S;--E>=0&&(mA*=256);)S<0&&0===ie&&0!==this[Y+E+1]&&(ie=1),this[Y+E]=(S/mA|0)-ie&255;return Y+k},B.prototype.writeInt8=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,1,127,-128),S<0&&(S=255+S+1),this[Y]=255&S,Y+1},B.prototype.writeInt16LE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,2,32767,-32768),this[Y]=255&S,this[Y+1]=S>>>8,Y+2},B.prototype.writeInt16BE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,2,32767,-32768),this[Y]=S>>>8,this[Y+1]=255&S,Y+2},B.prototype.writeInt32LE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,4,2147483647,-2147483648),this[Y]=255&S,this[Y+1]=S>>>8,this[Y+2]=S>>>16,this[Y+3]=S>>>24,Y+4},B.prototype.writeInt32BE=function(S,Y,k){return S=+S,Y>>>=0,k||J(this,S,Y,4,2147483647,-2147483648),S<0&&(S=4294967295+S+1),this[Y]=S>>>24,this[Y+1]=S>>>16,this[Y+2]=S>>>8,this[Y+3]=255&S,Y+4},B.prototype.writeBigInt64LE=Oe(function(S,Y){return void 0===Y&&(Y=0),U(this,S,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),B.prototype.writeBigInt64BE=Oe(function(S,Y){return void 0===Y&&(Y=0),O(this,S,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),B.prototype.writeFloatLE=function(S,Y,k){return LA(this,S,Y,!0,k)},B.prototype.writeFloatBE=function(S,Y,k){return LA(this,S,Y,!1,k)},B.prototype.writeDoubleLE=function(S,Y,k){return JA(this,S,Y,!0,k)},B.prototype.writeDoubleBE=function(S,Y,k){return JA(this,S,Y,!1,k)},B.prototype.copy=function(S,Y,k,m){if(!B.isBuffer(S))throw new TypeError("argument should be a Buffer");if(k||(k=0),!m&&0!==m&&(m=this.length),Y>=S.length&&(Y=S.length),Y||(Y=0),m>0&&m=this.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("sourceEnd out of bounds");m>this.length&&(m=this.length),S.length-Y>>=0,k=void 0===k?this.length:k>>>0,S||(S=0),"number"==typeof S)for(E=Y;E=k+4;Y-=3)S=`_${sA.slice(Y-3,Y)}${S}`;return`${sA.slice(0,Y)}${S}`}function b(sA,S,Y,k,m,E){if(sA>Y||sA3?0===S||S===BigInt(0)?`>= 0${mA} and < 2${mA} ** ${8*(E+1)}${mA}`:`>= -(2${mA} ** ${8*(E+1)-1}${mA}) and < 2 ** ${8*(E+1)-1}${mA}`:`>= ${S}${mA} and <= ${Y}${mA}`,new $A.ERR_OUT_OF_RANGE("value",ie,sA)}!function C(sA,S,Y){R(S,"offset"),(void 0===sA[S]||void 0===sA[S+Y])&&M(S,sA.length-(Y+1))}(k,m,E)}function R(sA,S){if("number"!=typeof sA)throw new $A.ERR_INVALID_ARG_TYPE(S,"number",sA)}function M(sA,S,Y){throw Math.floor(sA)!==sA?(R(sA,Y),new $A.ERR_OUT_OF_RANGE(Y||"offset","an integer",sA)):S<0?new $A.ERR_BUFFER_OUT_OF_BOUNDS:new $A.ERR_OUT_OF_RANGE(Y||"offset",`>= ${Y?1:0} and <= ${S}`,sA)}IA("ERR_BUFFER_OUT_OF_BOUNDS",function(sA){return sA?`${sA} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),IA("ERR_INVALID_ARG_TYPE",function(sA,S){return`The "${sA}" argument must be of type number. Received type ${typeof S}`},TypeError),IA("ERR_OUT_OF_RANGE",function(sA,S,Y){let k=`The value of "${sA}" is out of range.`,m=Y;return Number.isInteger(Y)&&Math.abs(Y)>4294967296?m=gA(String(Y)):"bigint"==typeof Y&&(m=String(Y),(Y>BigInt(2)**BigInt(32)||Y<-(BigInt(2)**BigInt(32)))&&(m=gA(m)),m+="n"),k+=` It must be ${S}. Received ${m}`,k},RangeError);const D=/[^+/0-9A-Za-z-_]/g;function YA(sA,S){let Y;S=S||1/0;const k=sA.length;let m=null;const E=[];for(let mA=0;mA55295&&Y<57344){if(!m){if(Y>56319){(S-=3)>-1&&E.push(239,191,189);continue}if(mA+1===k){(S-=3)>-1&&E.push(239,191,189);continue}m=Y;continue}if(Y<56320){(S-=3)>-1&&E.push(239,191,189),m=Y;continue}Y=65536+(m-55296<<10|Y-56320)}else m&&(S-=3)>-1&&E.push(239,191,189);if(m=null,Y<128){if((S-=1)<0)break;E.push(Y)}else if(Y<2048){if((S-=2)<0)break;E.push(Y>>6|192,63&Y|128)}else if(Y<65536){if((S-=3)<0)break;E.push(Y>>12|224,Y>>6&63|128,63&Y|128)}else{if(!(Y<1114112))throw new Error("Invalid code point");if((S-=4)<0)break;E.push(Y>>18|240,Y>>12&63|128,Y>>6&63|128,63&Y|128)}}return E}function le(sA){return t.toByteArray(function X(sA){if((sA=(sA=sA.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;sA.length%4!=0;)sA+="=";return sA}(sA))}function ve(sA,S,Y,k){let m;for(m=0;m=S.length||m>=sA.length);++m)S[m+Y]=sA[m];return m}function Ne(sA,S){return sA instanceof S||null!=sA&&null!=sA.constructor&&null!=sA.constructor.name&&sA.constructor.name===S.name}function Te(sA){return sA!=sA}const ze=function(){const sA="0123456789abcdef",S=new Array(256);for(let Y=0;Y<16;++Y){const k=16*Y;for(let m=0;m<16;++m)S[k+m]=sA[Y]+sA[m]}return S}();function Oe(sA){return typeof BigInt>"u"?oe:sA}function oe(){throw new Error("BigInt not supported")}},4406(eA){"use strict";eA.exports=class t{constructor(I){this.stateTable=I.stateTable,this.accepting=I.accepting,this.tags=I.tags}match(I){var N=this;return{*[Symbol.iterator](){for(var K=1,v=null,B=null,j=null,tA=0;tA=v&&(yield[v,B,N.tags[j]]),K=N.stateTable[1][w],v=null),0!==K&&null==v&&(v=tA),N.accepting[K]&&(B=tA),0===K&&(K=1)}null!=v&&null!=B&&B>=v&&(yield[v,B,N.tags[K]])}}}apply(I,N){for(var K of this.match(I)){var v=K[0],B=K[1],j=K[2];for(var tA of j)"function"==typeof N[tA]&&N[tA](v,B,I.slice(v,B+1))}}}},3915(eA,Q,f){"use strict";f(8376),f(6401),f(2017),function(g){var I=typeof Uint8Array<"u"?Uint8Array:Array;function aA(P){var rA=P.charCodeAt(0);return 43===rA||45===rA?62:47===rA||95===rA?63:rA<48?-1:rA<58?rA-48+26+26:rA<91?rA-65:rA<123?rA-97+26:void 0}g.toByteArray=function AA(P){var rA,QA,NA,oA,uA,dA;if(P.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var RA=P.length;uA="="===P.charAt(RA-2)?2:"="===P.charAt(RA-1)?1:0,dA=new I(3*P.length/4-uA),NA=uA>0?P.length-4:P.length;var nA=0;function H(pA){dA[nA++]=pA}for(rA=0,QA=0;rA>16),H((65280&oA)>>8),H(255&oA);return 2===uA?H(255&(oA=aA(P.charAt(rA))<<2|aA(P.charAt(rA+1))>>4)):1===uA&&(H((oA=aA(P.charAt(rA))<<10|aA(P.charAt(rA+1))<<4|aA(P.charAt(rA+2))>>2)>>8&255),H(255&oA)),dA},g.fromByteArray=function L(P){var rA,oA,uA,QA=P.length%3,NA="";function dA(nA){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(nA)}function RA(nA){return dA(nA>>18&63)+dA(nA>>12&63)+dA(nA>>6&63)+dA(63&nA)}for(rA=0,uA=P.length-QA;rA>2),NA+=dA(oA<<4&63),NA+="==";break;case 2:NA+=dA((oA=(P[P.length-2]<<8)+P[P.length-1])>>10),NA+=dA(oA>>4&63),NA+=dA(oA<<2&63),NA+="="}return NA}}(Q)},182(eA,Q,f){"use strict";function t(rA,QA){var NA=Object.keys(rA);if(Object.getOwnPropertySymbols){var oA=Object.getOwnPropertySymbols(rA);QA&&(oA=oA.filter(function(uA){return Object.getOwnPropertyDescriptor(rA,uA).enumerable})),NA.push.apply(NA,oA)}return NA}function g(rA){for(var QA=1;QA0?this.tail.next=oA:this.head=oA,this.tail=oA,++this.length}},{key:"unshift",value:function(NA){var oA={data:NA,next:this.head};0===this.length&&(this.tail=oA),this.head=oA,++this.length}},{key:"shift",value:function(){if(0!==this.length){var NA=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,NA}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(NA){if(0===this.length)return"";for(var oA=this.head,uA=""+oA.data;oA=oA.next;)uA+=NA+oA.data;return uA}},{key:"concat",value:function(NA){if(0===this.length)return w.alloc(0);for(var oA=w.allocUnsafe(NA>>>0),uA=this.head,dA=0;uA;)P(uA.data,oA,dA),dA+=uA.data.length,uA=uA.next;return oA}},{key:"consume",value:function(NA,oA){var uA;return NARA.length?RA.length:NA;if(dA+=nA===RA.length?RA:RA.slice(0,NA),0===(NA-=nA)){nA===RA.length?(++uA,this.head=oA.next?oA.next:this.tail=null):(this.head=oA,oA.data=RA.slice(nA));break}++uA}return this.length-=uA,dA}},{key:"_getBuffer",value:function(NA){var oA=w.allocUnsafe(NA),uA=this.head,dA=1;for(uA.data.copy(oA),NA-=uA.data.length;uA=uA.next;){var RA=uA.data,nA=NA>RA.length?RA.length:NA;if(RA.copy(oA,oA.length-NA,0,nA),0===(NA-=nA)){nA===RA.length?(++dA,this.head=uA.next?uA.next:this.tail=null):(this.head=uA,uA.data=RA.slice(nA));break}++dA}return this.length-=dA,oA}},{key:L,value:function(NA,oA){return AA(this,g(g({},oA),{},{depth:0,customInspect:!1}))}}]),rA}()},5691(eA,Q,f){"use strict";var t=f(783),g=t.Buffer;function I(K,v){for(var B in K)v[B]=K[B]}function N(K,v,B){return g(K,v,B)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?eA.exports=t:(I(t,Q),Q.Buffer=N),I(g,N),N.from=function(K,v,B){if("number"==typeof K)throw new TypeError("Argument must not be a number");return g(K,v,B)},N.alloc=function(K,v,B){if("number"!=typeof K)throw new TypeError("Argument must be a number");var j=g(K);return void 0!==v?"string"==typeof B?j.fill(v,B):j.fill(v):j.fill(0),j},N.allocUnsafe=function(K){if("number"!=typeof K)throw new TypeError("Argument must be a number");return g(K)},N.allocUnsafeSlow=function(K){if("number"!=typeof K)throw new TypeError("Argument must be a number");return t.SlowBuffer(K)}},7571(eA,Q,f){"use strict";f(8376),f(6401),f(2017);const t=f(3483),I=f(6016).swap32LE;eA.exports=class dA{constructor(nA){const H="function"==typeof nA.readUInt32BE&&"function"==typeof nA.slice;if(H||nA instanceof Uint8Array){let z;if(H)this.highStart=nA.readUInt32LE(0),this.errorValue=nA.readUInt32LE(4),z=nA.readUInt32LE(8),nA=nA.slice(12);else{const OA=new DataView(nA.buffer);this.highStart=OA.getUint32(0,!0),this.errorValue=OA.getUint32(4,!0),z=OA.getUint32(8,!0),nA=nA.subarray(12)}nA=t(nA,new Uint8Array(z)),nA=t(nA,new Uint8Array(z)),I(nA),this.data=new Uint32Array(nA.buffer)}else{var pA=nA;this.data=pA.data,this.highStart=pA.highStart,this.errorValue=pA.errorValue}}get(nA){let H;return nA<0||nA>1114111?this.errorValue:nA<55296||nA>56319&&nA<=65535?(H=(this.data[nA>>5]<<2)+(31&nA),this.data[H]):nA<=65535?(H=(this.data[2048+(nA-55296>>5)]<<2)+(31&nA),this.data[H]):nA>11)],H=this.data[H+(nA>>5&63)],H=(H<<2)+(31&nA),this.data[H]):this.data[this.data.length-4]}}},6016(eA,Q,f){"use strict";f(8376),f(6401),f(2017);const t=18===new Uint8Array(new Uint32Array([305419896]).buffer)[0],g=(K,v,B)=>{let j=K[v];K[v]=K[B],K[B]=j};eA.exports={swap32LE:K=>{t&&(K=>{const v=K.length;for(let B=0;Bthis._compareKeys(p,q)),y=["<<"];if(this.limits&&c.length>1){const q=c[c.length-1];y.push(` /Limits ${pA.convert([this._dataForKey(c[0]),this._dataForKey(q)])}`)}y.push(` /${this._keysName()} [`);for(let p of c)y.push(` ${pA.convert(this._dataForKey(p))} ${pA.convert(this._items[p])}`);return y.push("]"),y.push(">>"),y.join("\n")}_compareKeys(){throw new Error("Must be implemented by subclasses")}_keysName(){throw new Error("Must be implemented by subclasses")}_dataForKey(){throw new Error("Must be implemented by subclasses")}}class NA{constructor(c,y,p,q,CA,_A){this.id="CS"+Object.keys(c.spotColors).length,this.name=y,this.values=[p,q,CA,_A],this.ref=c.ref(["Separation",nA(this.name),"DeviceCMYK",{Range:[0,1,0,1,0,1,0,1],C0:[0,0,0,0],C1:this.values.map(ee=>ee/100),FunctionType:2,Domain:[0,1],N:1}]),this.ref.end()}toString(){return`${this.ref.id} 0 R`}}const oA=(h,c)=>(Array(c+1).join("0")+h).slice(-c),uA=h=>h>127||h>32&&127!==h&&35!==h&&37!==h&&40!==h&&41!==h&&47!==h&&60!==h&&62!==h&&91!==h&&93!==h&&123!==h&&125!==h,dA=/[\n\r\t\b\f()\\]/g,RA={"\n":"\\n","\r":"\\r","\t":"\\t","\b":"\\b","\f":"\\f","\\":"\\\\","(":"\\(",")":"\\)"},nA=function(h){let c="";for(const y of h){const p=y.charCodeAt(0);uA(p)?c+=y:c+=`#${p.toString(16).toUpperCase().padStart(2,"0")}`}return c};class pA{static convert(c,y){if(void 0===y&&(y=null),"string"==typeof c)return`/${c}`;if(c instanceof String){let CA,p=c,q=!1;for(let _A=0,ee=p.length;_A127){q=!0;break}return CA=q?function(h){const c=h.length;if(1&c)throw new Error("Buffer length must be even");for(let y=0,p=c-1;yRA[_A]),`(${p})`}if(I.isBuffer(c))return`<${c.toString("hex")}>`;if(c instanceof rA||c instanceof QA||c instanceof NA)return c.toString();if(c instanceof Date){let p=`D:${oA(c.getUTCFullYear(),4)}`+oA(c.getUTCMonth()+1,2)+oA(c.getUTCDate(),2)+oA(c.getUTCHours(),2)+oA(c.getUTCMinutes(),2)+oA(c.getUTCSeconds(),2)+"Z";return y&&(p=y(I.from(p,"ascii")).toString("binary"),p=p.replace(dA,q=>RA[q])),`(${p})`}if(Array.isArray(c))return`[${c.map(q=>pA.convert(q,y)).join(" ")}]`;if("[object Object]"==={}.toString.call(c)){const p=["<<"];for(let q in c)p.push(`/${q} ${pA.convert(c[q],y)}`);return p.push(">>"),p.join("\n")}return"number"==typeof c?pA.number(c):`${c}`}static number(c){if(c>-1e21&&c<1e21)return Math.round(1e6*c)/1e6;throw new Error(`unsupported number: ${c}`)}}class z extends rA{constructor(c,y,p){void 0===p&&(p={}),super(),this.document=c,this.id=y,this.data=p,this.gen=0,this.compress=this.document.compress&&!this.data.Filter,this.uncompressedLength=0,this.buffer=[]}write(c){c instanceof Uint8Array||(c=I.from(c+"\n","binary")),this.uncompressedLength+=c.length,null==this.data.Length&&(this.data.Length=0),this.buffer.push(c),this.data.Length+=c.length,this.compress&&(this.data.Filter="FlateDecode")}end(c){c&&this.write(c),this.finalize()}finalize(){this.offset=this.document._offset;const c=this.document._security?this.document._security.getEncryptFn(this.id,this.gen):null;this.buffer.length&&(this.buffer=I.concat(this.buffer),this.compress&&(this.buffer=K.default.deflateSync(this.buffer)),c&&(this.buffer=c(this.buffer)),this.data.Length=this.buffer.length),this.document._write(`${this.id} ${this.gen} obj`),this.document._write(pA.convert(this.data,c)),this.buffer.length&&(this.document._write("stream"),this.document._write(this.buffer),this.buffer=[],this.document._write("\nendstream")),this.document._write("endobj"),this.document._refEnd(this)}toString(){return`${this.id} ${this.gen} R`}}const OA=new Float32Array(1),wA=new Uint32Array(OA.buffer);function VA(h){const c=Math.fround(h);return c<=h?c:(OA[0]=h,h<=0?wA[0]+=1:wA[0]-=1,OA[0])}function kA(h,c,y){return void 0===c&&(c=void 0),void 0===y&&(y=p=>p),(null==h||"object"==typeof h&&0===Object.keys(h).length)&&(h=c),null==h||"object"!=typeof h?h={top:h,right:h,bottom:h,left:h}:Array.isArray(h)&&(h=2===h.length?{vertical:h[0],horizontal:h[1]}:{top:h[0],right:h[1],bottom:h[2],left:h[3]}),("vertical"in h||"horizontal"in h)&&(h={top:h.vertical,right:h.horizontal,bottom:h.vertical,left:h.horizontal}),{top:y(h.top),right:y(h.right),bottom:y(h.bottom),left:y(h.left)}}const fA=1/2.54;function Ee(h){return 0===h?1:90===h?0:180===h?-1:270===h?0:Math.cos(h*Math.PI/180)}function HA(h){return 0===h?0:90===h?1:180===h?0:270===h?-1:Math.sin(h*Math.PI/180)}const cA={top:72,left:72,bottom:72,right:72},J={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]};class U{constructor(c,y){void 0===y&&(y={}),this.document=c,this._options=y,this.size=y.size||"letter",this.layout=y.layout||"portrait",this.userUnit=y.userUnit||1;const p=Array.isArray(this.size)?this.size:J[this.size.toUpperCase()];this.width=p["portrait"===this.layout?0:1],this.height=p["portrait"===this.layout?1:0],this.content=this.document.ref(),y.font&&c.font(y.font,y.fontFamily),y.fontSize&&c.fontSize(y.fontSize),this.margins=kA(y.margin??y.margins,cA,q=>c.sizeToPoint(q,0,this)),this.resources=this.document.ref({ProcSet:["PDF","Text","ImageB","ImageC","ImageI"]}),this.dictionary=this.document.ref({Type:"Page",Parent:this.document._root.data.Pages,MediaBox:[0,0,this.width,this.height],Contents:this.content,Resources:this.resources,UserUnit:this.userUnit}),this.markings=[]}get fonts(){const c=this.resources.data;return null!=c.Font?c.Font:c.Font={}}get xobjects(){const c=this.resources.data;return null!=c.XObject?c.XObject:c.XObject={}}get ext_gstates(){const c=this.resources.data;return null!=c.ExtGState?c.ExtGState:c.ExtGState={}}get patterns(){const c=this.resources.data;return null!=c.Pattern?c.Pattern:c.Pattern={}}get colorSpaces(){const c=this.resources.data;return c.ColorSpace||(c.ColorSpace={})}get annotations(){const c=this.dictionary.data;return null!=c.Annots?c.Annots:c.Annots=[]}get structParentTreeKey(){const c=this.dictionary.data;return null!=c.StructParents?c.StructParents:c.StructParents=this.document.createStructParentTreeNextKey()}get contentWidth(){return this.width-this.margins.left-this.margins.right}get contentHeight(){return this.height-this.margins.top-this.margins.bottom}maxY(){return this.height-this.margins.bottom}write(c){return this.content.write(c)}_setTabOrder(){!this.dictionary.Tabs&&this.document.hasMarkInfoDictionary()&&(this.dictionary.data.Tabs="S")}end(){this._setTabOrder(),this.dictionary.end(),this.resources.data.ColorSpace=this.resources.data.ColorSpace||{};for(let c of Object.values(this.document.spotColors))this.resources.data.ColorSpace[c.id]=c;return this.resources.end(),this.content.end()}}class O extends QA{_compareKeys(c,y){return c.localeCompare(y)}_keysName(){return"Names"}_dataForKey(c){return new String(c)}}function lA(h){return new Uint8Array(B.default.arrayBuffer(h))}function JA(h){return(0,j.sha256)(h)}function $A(h,c,y,p){return void 0===p&&(p=!0),(0,tA.cbc)(c,y,{disablePadding:!p}).encrypt(h)}function gA(h,c){const y=new Uint8Array(256);for(let ee=0;ee<256;ee++)y[ee]=ee;let p=0;for(let ee=0;ee<256;ee++){p=p+y[ee]+c[ee%c.length]&255;var q=[y[p],y[ee]];y[ee]=q[0],y[p]=q[1]}const CA=new Uint8Array(h.length);for(let ee=0,he=0,Ie=0;Ie=c[CA]&&h<=c[CA+1])return!0;h>c[CA+1]?y=q+1:p=q-1}return!1}const R=[545,545,564,591,686,687,751,767,848,863,880,883,886,889,891,893,895,899,907,907,909,909,930,930,975,975,1015,1023,1159,1159,1231,1231,1270,1271,1274,1279,1296,1328,1367,1368,1376,1376,1416,1416,1419,1424,1442,1442,1466,1466,1477,1487,1515,1519,1525,1547,1549,1562,1564,1566,1568,1568,1595,1599,1622,1631,1774,1775,1791,1791,1806,1806,1837,1839,1867,1919,1970,2304,2308,2308,2362,2363,2382,2383,2389,2391,2417,2432,2436,2436,2445,2446,2449,2450,2473,2473,2481,2481,2483,2485,2490,2491,2493,2493,2501,2502,2505,2506,2510,2518,2520,2523,2526,2526,2532,2533,2555,2561,2563,2564,2571,2574,2577,2578,2601,2601,2609,2609,2612,2612,2615,2615,2618,2619,2621,2621,2627,2630,2633,2634,2638,2648,2653,2653,2655,2661,2677,2688,2692,2692,2700,2700,2702,2702,2706,2706,2729,2729,2737,2737,2740,2740,2746,2747,2758,2758,2762,2762,2766,2767,2769,2783,2785,2789,2800,2816,2820,2820,2829,2830,2833,2834,2857,2857,2865,2865,2868,2869,2874,2875,2884,2886,2889,2890,2894,2901,2904,2907,2910,2910,2914,2917,2929,2945,2948,2948,2955,2957,2961,2961,2966,2968,2971,2971,2973,2973,2976,2978,2981,2983,2987,2989,2998,2998,3002,3005,3011,3013,3017,3017,3022,3030,3032,3046,3059,3072,3076,3076,3085,3085,3089,3089,3113,3113,3124,3124,3130,3133,3141,3141,3145,3145,3150,3156,3159,3167,3170,3173,3184,3201,3204,3204,3213,3213,3217,3217,3241,3241,3252,3252,3258,3261,3269,3269,3273,3273,3278,3284,3287,3293,3295,3295,3298,3301,3312,3329,3332,3332,3341,3341,3345,3345,3369,3369,3386,3389,3396,3397,3401,3401,3406,3414,3416,3423,3426,3429,3440,3457,3460,3460,3479,3481,3506,3506,3516,3516,3518,3519,3527,3529,3531,3534,3541,3541,3543,3543,3552,3569,3573,3584,3643,3646,3676,3712,3715,3715,3717,3718,3721,3721,3723,3724,3726,3731,3736,3736,3744,3744,3748,3748,3750,3750,3752,3753,3756,3756,3770,3770,3774,3775,3781,3781,3783,3783,3790,3791,3802,3803,3806,3839,3912,3912,3947,3952,3980,3983,3992,3992,4029,4029,4045,4046,4048,4095,4130,4130,4136,4136,4139,4139,4147,4149,4154,4159,4186,4255,4294,4303,4345,4346,4348,4351,4442,4446,4515,4519,4602,4607,4615,4615,4679,4679,4681,4681,4686,4687,4695,4695,4697,4697,4702,4703,4743,4743,4745,4745,4750,4751,4783,4783,4785,4785,4790,4791,4799,4799,4801,4801,4806,4807,4815,4815,4823,4823,4847,4847,4879,4879,4881,4881,4886,4887,4895,4895,4935,4935,4955,4960,4989,5023,5109,5120,5751,5759,5789,5791,5873,5887,5901,5901,5909,5919,5943,5951,5972,5983,5997,5997,6001,6001,6004,6015,6109,6111,6122,6143,6159,6159,6170,6175,6264,6271,6314,7679,7836,7839,7930,7935,7958,7959,7966,7967,8006,8007,8014,8015,8024,8024,8026,8026,8028,8028,8030,8030,8062,8063,8117,8117,8133,8133,8148,8149,8156,8156,8176,8177,8181,8181,8191,8191,8275,8278,8280,8286,8292,8297,8306,8307,8335,8351,8370,8399,8427,8447,8507,8508,8524,8530,8580,8591,9167,9215,9255,9279,9291,9311,9471,9471,9748,9749,9752,9752,9854,9855,9866,9984,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10079,10080,10133,10135,10160,10160,10175,10191,10220,10223,11008,11903,11930,11930,12020,12031,12246,12271,12284,12287,12352,12352,12439,12440,12544,12548,12589,12592,12687,12687,12728,12783,12829,12831,12868,12880,12924,12926,13004,13007,13055,13055,13175,13178,13278,13279,13311,13311,19894,19967,40870,40959,42125,42127,42183,44031,55204,55295,64046,64047,64107,64255,64263,64274,64280,64284,64311,64311,64317,64317,64319,64319,64322,64322,64325,64325,64434,64466,64832,64847,64912,64913,64968,64975,65021,65023,65040,65055,65060,65071,65095,65096,65107,65107,65127,65127,65132,65135,65141,65141,65277,65278,65280,65280,65471,65473,65480,65481,65488,65489,65496,65497,65501,65503,65511,65511,65519,65528,65536,66303,66335,66335,66340,66351,66379,66559,66598,66599,66638,118783,119030,119039,119079,119081,119262,119807,119893,119893,119965,119965,119968,119969,119971,119972,119975,119976,119981,119981,119994,119994,119996,119996,120001,120001,120004,120004,120070,120070,120075,120076,120085,120085,120093,120093,120122,120122,120127,120127,120133,120133,120135,120137,120145,120145,120484,120487,120778,120781,120832,131069,173783,194559,195102,196605,196608,262141,262144,327677,327680,393213,393216,458749,458752,524285,524288,589821,589824,655357,655360,720893,720896,786429,786432,851965,851968,917501,917504,917504,917506,917535,917632,983037],M=h=>b(h,R),D=[173,173,847,847,6150,6150,6155,6155,6156,6156,6157,6157,8203,8203,8204,8204,8205,8205,8288,8288,65024,65024,65025,65025,65026,65026,65027,65027,65028,65028,65029,65029,65030,65030,65031,65031,65032,65032,65033,65033,65034,65034,65035,65035,65036,65036,65037,65037,65038,65038,65039,65039,65279,65279],YA=[160,160,5760,5760,8192,8192,8193,8193,8194,8194,8195,8195,8196,8196,8197,8197,8198,8198,8199,8199,8200,8200,8201,8201,8202,8202,8203,8203,8239,8239,8287,8287,12288,12288],bA=[128,159,1757,1757,1807,1807,6158,6158,8204,8204,8205,8205,8232,8232,8233,8233,8288,8288,8289,8289,8290,8290,8291,8291,8298,8303,65279,65279,65529,65532,119155,119162],le=[64976,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1114110,1114111],ve=[0,31,127,127,832,832,833,833,8206,8206,8207,8207,8234,8234,8235,8235,8236,8236,8237,8237,8238,8238,8298,8298,8299,8299,8300,8300,8301,8301,8302,8302,8303,8303,12272,12283,55296,57343,57344,63743,65529,65529,65530,65530,65531,65531,65532,65532,65533,65533,917505,917505,917536,917631,983040,1048573,1048576,1114109],Ne=h=>b(h,YA)||b(h,ve)||b(h,bA)||b(h,le),Te=[1470,1470,1472,1472,1475,1475,1488,1514,1520,1524,1563,1563,1567,1567,1569,1594,1600,1610,1645,1647,1649,1749,1757,1757,1765,1766,1786,1790,1792,1805,1808,1808,1810,1836,1920,1957,1969,1969,8207,8207,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65020,65136,65140,65142,65276],ze=h=>b(h,Te),Oe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,544,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,1013,1024,1154,1162,1230,1232,1269,1272,1273,1280,1295,1329,1366,1369,1375,1377,1415,1417,1417,2307,2307,2309,2361,2365,2368,2377,2380,2384,2384,2392,2401,2404,2416,2434,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2494,2496,2503,2504,2507,2508,2519,2519,2524,2525,2527,2529,2534,2545,2548,2554,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2622,2624,2649,2652,2654,2654,2662,2671,2674,2676,2691,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2752,2761,2761,2763,2764,2768,2768,2784,2784,2790,2799,2818,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2878,2880,2880,2887,2888,2891,2892,2903,2903,2908,2909,2911,2913,2918,2928,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3007,3009,3010,3014,3016,3018,3020,3031,3031,3047,3058,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3137,3140,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3262,3264,3268,3271,3272,3274,3275,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3392,3398,3400,3402,3404,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3535,3537,3544,3551,3570,3572,3585,3632,3634,3635,3648,3654,3663,3675,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3792,3801,3804,3805,3840,3863,3866,3892,3894,3894,3896,3896,3902,3911,3913,3946,3967,3967,3973,3973,3976,3979,4030,4037,4039,4044,4047,4047,4096,4129,4131,4135,4137,4138,4140,4140,4145,4145,4152,4152,4160,4183,4256,4293,4304,4344,4347,4347,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4961,4988,5024,5108,5121,5750,5761,5786,5792,5872,5888,5900,5902,5905,5920,5937,5941,5942,5952,5969,5984,5996,5998,6e3,6016,6070,6078,6085,6087,6088,6100,6106,6108,6108,6112,6121,6160,6169,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8206,8206,8305,8305,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8509,8511,8517,8521,8544,8579,9014,9082,9109,9109,9372,9449,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12588,12593,12686,12688,12727,12784,12828,12832,12867,12896,12923,12927,12976,12992,13003,13008,13054,13056,13174,13179,13277,13280,13310,13312,19893,19968,40869,40960,42124,44032,55203,55296,64045,64048,64106,64256,64262,64275,64279,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,66304,66334,66336,66339,66352,66378,66560,66597,66600,66637,118784,119029,119040,119078,119082,119142,119146,119154,119171,119172,119180,119209,119214,119261,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,12e4,120002,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120483,120488,120777,131072,173782,194560,195101,983040,1048573,1048576,1114109],oe=h=>b(h,Oe),Y=h=>h.codePointAt(0);function E(h){const c=[],y=h.length;for(let p=0;p=55296&&q<=56319&&y>p+1){const CA=h.charCodeAt(p+1);if(CA>=56320&&CA<=57343){c.push(1024*(q-55296)+CA-56320+65536),p+=1;continue}}c.push(q)}return c}class ie{static generateFileID(c){void 0===c&&(c={});let y=`${c.CreationDate.getTime()}\n`;for(let p in c)c.hasOwnProperty(p)&&(y+=`${p}: ${c[p].valueOf()}\n`);return I.from(lA(y))}static generateRandomWordArray(c){return function C(h){const c=new Uint8Array(h);return globalThis.crypto.getRandomValues(c),c}(c)}static create(c,y){return void 0===y&&(y={}),y.ownerPassword||y.userPassword?new ie(c,y):null}constructor(c,y){if(void 0===y&&(y={}),!y.ownerPassword&&!y.userPassword)throw new Error("None of owner password and user password is defined.");this.document=c,this._setupEncryption(y)}_setupEncryption(c){switch(c.pdfVersion){case"1.4":case"1.5":this.version=2;break;case"1.6":case"1.7":this.version=4;break;case"1.7ext3":this.version=5;break;default:this.version=1}const y={Filter:"Standard"};switch(this.version){case 1:case 2:case 4:this._setupEncryptionV1V2V4(this.version,y,c);break;case 5:this._setupEncryptionV5(y,c)}this.dictionary=this.document.ref(y)}_setupEncryptionV1V2V4(c,y,p){let q,CA;switch(c){case 1:q=2,this.keyBits=40,CA=function DA(h){void 0===h&&(h={});let c=-64;return h.printing&&(c|=4),h.modifying&&(c|=8),h.copying&&(c|=16),h.annotating&&(c|=32),c}(p.permissions);break;case 2:q=3,this.keyBits=128,CA=Ae(p.permissions);break;case 4:q=4,this.keyBits=128,CA=Ae(p.permissions)}const _A=et(p.userPassword),ee=p.ownerPassword?et(p.ownerPassword):_A,he=function Pe(h,c,y,p){let q=p,CA=h>=3?51:1;for(let Ie=0;Ie=3?20:1;for(let Ie=0;Ie>8&255,CA>>16&255,CA>>24&255]);let ee=(0,v.concatBytes)(p,q,_A,new Uint8Array(y));const he=h>=3?51:1,Ie=c/8;for(let xe=0;xe=2&&(y.Length=this.keyBits),4===c&&(y.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV2",Length:this.keyBits/8}},y.StmF="StdCF",y.StrF="StdCF"),y.R=q,y.O=I.from(he),y.U=I.from(Ie),y.P=CA}_setupEncryptionV5(c,y){this.keyBits=256;const p=Ae(y.permissions),q=Ke(y.userPassword),CA=y.ownerPassword?Ke(y.ownerPassword):q;this.encryptionKey=function we(h){return h(32)}(ie.generateRandomWordArray);const _A=function _(h,c){const y=c(8),p=c(8),q=JA((0,v.concatBytes)(h,y));return(0,v.concatBytes)(q,y,p)}(q,ie.generateRandomWordArray),he=function be(h,c,y){return $A(y,JA((0,v.concatBytes)(h,c)),new Uint8Array(16),!1)}(q,_A.slice(40,48),this.encryptionKey),Ie=function Re(h,c,y){const p=y(8),q=y(8),CA=JA((0,v.concatBytes)(h,p,c));return(0,v.concatBytes)(CA,p,q)}(CA,_A,ie.generateRandomWordArray),$=function SA(h,c,y,p){return $A(p,JA((0,v.concatBytes)(h,c,y)),new Uint8Array(16),!1)}(CA,Ie.slice(40,48),_A,this.encryptionKey),s=function Fe(h,c,y){const p=new Uint8Array(16);p[0]=255&h,p[1]=h>>8&255,p[2]=h>>16&255,p[3]=h>>24&255,p[4]=255,p[5]=255,p[6]=255,p[7]=255,p[8]=84,p[9]=97,p[10]=100,p[11]=98;const q=y(4);return p.set(q,12),function IA(h,c){return(0,tA.ecb)(c,{disablePadding:!0}).encrypt(h)}(p,c)}(p,this.encryptionKey,ie.generateRandomWordArray);c.V=5,c.Length=this.keyBits,c.CF={StdCF:{AuthEvent:"DocOpen",CFM:"AESV3",Length:this.keyBits/8}},c.StmF="StdCF",c.StrF="StdCF",c.R=5,c.O=I.from(Ie),c.OE=I.from($),c.U=I.from(_A),c.UE=I.from(he),c.P=p,c.Perms=I.from(s)}getEncryptFn(c,y){let p,q;if(this.version<5){const _A=new Uint8Array([255&c,c>>8&255,c>>16&255,255&y,y>>8&255]);p=(0,v.concatBytes)(this.encryptionKey,_A)}if(1===this.version||2===this.version){let _A=lA(p);const ee=Math.min(16,this.keyBits/8+5);return _A=_A.slice(0,ee),he=>I.from(gA(new Uint8Array(he),_A))}if(4===this.version){const _A=new Uint8Array([115,65,108,84]);q=lA((0,v.concatBytes)(p,_A))}else q=this.encryptionKey;const CA=ie.generateRandomWordArray(16);return _A=>{const ee=$A(new Uint8Array(_A),q,CA,!0);return I.from((0,v.concatBytes)(CA,ee))}}end(){this.dictionary.end()}}function Ae(h){void 0===h&&(h={});let c=-3904;return"lowResolution"===h.printing&&(c|=4),"highResolution"===h.printing&&(c|=2052),h.modifying&&(c|=8),h.copying&&(c|=16),h.annotating&&(c|=32),h.fillingForms&&(c|=256),h.contentAccessibility&&(c|=512),h.documentAssembly&&(c|=1024),c}function et(h){void 0===h&&(h="");const c=new Uint8Array(32),y=h.length;let p=0;for(;p255)throw new Error("Password contains one or more invalid characters.");c[p]=q,p++}for(;p<32;)c[p]=$e[p-y],p++;return c}function Ke(h){void 0===h&&(h=""),h=unescape(encodeURIComponent(function mA(h,c){if(void 0===c&&(c={}),"string"!=typeof h)throw new TypeError("Expected string.");if(0===h.length)return"";const y=E(h).map(xe=>(h=>b(h,YA))(xe)?32:xe).filter(xe=>!(h=>b(h,D))(xe)),p=String.fromCodePoint.apply(null,y).normalize("NFKC"),q=E(p);if(q.some(Ne))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==c.allowUnassigned&&q.some(M))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const _A=q.some(ze),ee=q.some(oe);if(_A&&ee)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const he=ze(Y((h=>h[0])(p))),Ie=ze(Y((h=>h[h.length-1])(p)));if(_A&&(!he||!Ie))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return p}(h)));const c=Math.min(127,h.length),y=new Uint8Array(c);for(let p=0;pxe[2]<1)){let xe=this.opacityGradient();xe._colorSpace="DeviceGray";for(let W of this.stops)xe.stop(W[0],[W[2]]);xe=xe.embed(this.matrix);const $=[0,0,this.doc.page.width,this.doc.page.height],s=this.doc.ref({Type:"XObject",Subtype:"Form",FormType:1,BBox:$,Group:{Type:"Group",S:"Transparency",CS:"DeviceGray"},Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:xe}}});s.write("/Pattern cs /Sh1 scn"),s.end(`${$.join(" ")} re f`);const d=this.doc.ref({Type:"ExtGState",SMask:{Type:"Mask",S:"Luminosity",G:s}});d.end();const F=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:1,TilingType:2,BBox:$,XStep:$[2],YStep:$[3],Resources:{ProcSet:["PDF","Text","ImageB","ImageC","ImageI"],Pattern:{Sh1:Ie},ExtGState:{Gs1:d}}});F.write("/Gs1 gs /Pattern cs /Sh1 scn"),F.end(`${$.join(" ")} re f`),this.doc.page.patterns[this.id]=F}else this.doc.page.patterns[this.id]=Ie;return Ie}apply(c){const y=this.doc._ctm,p=y[0],q=y[1],CA=y[2],_A=y[3],Ie=this.transform,xe=Ie[0],$=Ie[1],s=Ie[2],d=Ie[3],F=Ie[4],W=Ie[5],Z=[p*xe+CA*$,q*xe+_A*$,p*s+CA*d,q*s+_A*d,p*F+CA*W+y[4],q*F+_A*W+y[5]];return(!this.embedded||Z.join(" ")!==this.matrix.join(" "))&&this.embed(Z),this.doc._setColorSpace("Pattern",c),this.doc.addContent(`/${this.id} ${c?"SCN":"scn"}`)}};const Tt=["DeviceCMYK","DeviceRGB"],pn=cn,Gt=class Jc extends cn{constructor(c,y,p,q,CA){super(c),this.x1=y,this.y1=p,this.x2=q,this.y2=CA}shader(c){return this.doc.ref({ShadingType:2,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.x2,this.y2],Function:c,Extend:[!0,!0]})}opacityGradient(){return new Jc(this.doc,this.x1,this.y1,this.x2,this.y2)}},Mt=class _c extends cn{constructor(c,y,p,q,CA,_A,ee){super(c),this.doc=c,this.x1=y,this.y1=p,this.r1=q,this.x2=CA,this.y2=_A,this.r2=ee}shader(c){return this.doc.ref({ShadingType:3,ColorSpace:this._colorSpace,Coords:[this.x1,this.y1,this.r1,this.x2,this.y2,this.r2],Function:c,Extend:[!0,!0]})}opacityGradient(){return new _c(this.doc,this.x1,this.y1,this.r1,this.x2,this.y2,this.r2)}},Ot=class{constructor(c,y,p,q,CA){this.doc=c,this.bBox=y,this.xStep=p,this.yStep=q,this.stream=CA}createPattern(){const c=this.doc.ref();c.end();const y=this.doc._ctm,p=y[0],q=y[1],CA=y[2],_A=y[3],Z=this.doc.ref({Type:"Pattern",PatternType:1,PaintType:2,TilingType:2,BBox:this.bBox,XStep:this.xStep,YStep:this.yStep,Matrix:[1*p+0*CA,1*q+0*_A,0*p+1*CA,0*q+1*_A,0*p+0*CA+y[4],0*q+0*_A+y[5]].map(EA=>+EA.toFixed(5)),Resources:c});return Z.end(this.stream),Z}embedPatternColorSpaces(){Tt.forEach(c=>{const y=this.getPatternColorSpaceId(c);if(this.doc.page.colorSpaces[y])return;const p=this.doc.ref(["Pattern",c]);p.end(),this.doc.page.colorSpaces[y]=p})}getPatternColorSpaceId(c){return`CsP${c}`}embed(){this.id||(this.doc._patternCount=this.doc._patternCount+1,this.id="P"+this.doc._patternCount,this.pattern=this.createPattern()),this.doc.page.patterns[this.id]||(this.doc.page.patterns[this.id]=this.pattern)}apply(c,y){this.embedPatternColorSpaces(),this.embed();const p=this.doc._normalizeColor(y);if(!p)throw Error(`invalid pattern color. (value: ${y})`);const q=this.getPatternColorSpaceId(this.doc._getColorSpace(p));this.doc._setColorSpace(q,c);const CA=c?"SCN":"scn";return this.doc.addContent(`${p.join(" ")} /${this.id} ${CA}`)}};var bt={initColor(){this.spotColors={},this._opacityRegistry={},this._opacityCount=0,this._patternCount=0,this._gradCount=0},_normalizeColor(h){if("string"==typeof h)if("#"===h.charAt(0)){4===h.length&&(h=h.replace(/#([0-9A-F])([0-9A-F])([0-9A-F])/i,"#$1$1$2$2$3$3"));const c=parseInt(h.slice(1),16);h=[c>>16,c>>8&255,255&c]}else if(Dt[h])h=Dt[h];else if(this.spotColors[h])return this.spotColors[h];return Array.isArray(h)?(3===h.length?h=h.map(c=>c/255):4===h.length&&(h=h.map(c=>c/100)),h):null},_setColor(h,c){return h instanceof pn?(h.apply(c),!0):Array.isArray(h)&&h[0]instanceof Ot?(h[0].apply(c,h[1]),!0):this._setColorCore(h,c)},_setColorCore(h,c){if(!(h=this._normalizeColor(h)))return!1;const y=c?"SCN":"scn",p=this._getColorSpace(h);return this._setColorSpace(p,c),h instanceof NA?(this.page.colorSpaces[h.id]=h.ref,this.addContent(`1 ${y}`)):this.addContent(`${h.join(" ")} ${y}`),!0},_setColorSpace(h,c){return this.addContent(`/${h} ${c?"CS":"cs"}`)},_getColorSpace:h=>h instanceof NA?h.id:4===h.length?"DeviceCMYK":"DeviceRGB",fillColor(h,c){return this._setColor(h,!1)&&this.fillOpacity(c),this._fillColor=[h,c],this},strokeColor(h,c){return this._setColor(h,!0)&&this.strokeOpacity(c),this},opacity(h){return this._doOpacity(h,h),this},fillOpacity(h){return this._doOpacity(h,null),this},strokeOpacity(h){return this._doOpacity(null,h),this},_doOpacity(h,c){let y,p;if(null==h&&null==c)return;null!=h&&(h=Math.max(0,Math.min(1,h))),null!=c&&(c=Math.max(0,Math.min(1,c)));const q=`${h}_${c}`;if(this._opacityRegistry[q]){var CA=this._opacityRegistry[q];y=CA[0],p=CA[1]}else y={Type:"ExtGState"},null!=h&&(y.ca=h),null!=c&&(y.CA=c),y=this.ref(y),y.end(),p="Gs"+ ++this._opacityCount,this._opacityRegistry[q]=[y,p];return this.page.ext_gstates[p]=y,this.addContent(`/${p} gs`)},linearGradient(h,c,y,p){return new Gt(this,h,c,y,p)},radialGradient(h,c,y,p,q,CA){return new Mt(this,h,c,y,p,q,CA)},pattern(h,c,y,p){return new Ot(this,h,c,y,p)},addSpotColor(h,c,y,p,q){const CA=new NA(this,h,c,y,p,q);return this.spotColors[h]=CA,this}},Dt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};let Ze,qe,Et,ct,Ht,Jt;Ze=qe=Et=ct=Ht=Jt=0;const GA={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0},zA=function(h){return h in GA},vA=function(h){const c=h.codePointAt(0);return 32===c||9===c||13===c||10===c},qA=function(h){const c=h.codePointAt(0);return null!=c&&48<=c&&c<=57},ZA=function(h,c){let y=c,p="",q="none";for(;y(Ze=c[0],qe=c[1],Et=ct=null,Ht=Ze,Jt=qe,h.moveTo(Ze,qe)),m:(h,c)=>(Ze+=c[0],qe+=c[1],Et=ct=null,Ht=Ze,Jt=qe,h.moveTo(Ze,qe)),C:(h,c)=>(Ze=c[4],qe=c[5],Et=c[2],ct=c[3],h.bezierCurveTo(...c)),c:(h,c)=>(h.bezierCurveTo(c[0]+Ze,c[1]+qe,c[2]+Ze,c[3]+qe,c[4]+Ze,c[5]+qe),Et=Ze+c[2],ct=qe+c[3],Ze+=c[4],qe+=c[5]),S:(h,c)=>(null===Et&&(Et=Ze,ct=qe),h.bezierCurveTo(Ze-(Et-Ze),qe-(ct-qe),c[0],c[1],c[2],c[3]),Et=c[0],ct=c[1],Ze=c[2],qe=c[3]),s:(h,c)=>(null===Et&&(Et=Ze,ct=qe),h.bezierCurveTo(Ze-(Et-Ze),qe-(ct-qe),Ze+c[0],qe+c[1],Ze+c[2],qe+c[3]),Et=Ze+c[0],ct=qe+c[1],Ze+=c[2],qe+=c[3]),Q:(h,c)=>(Et=c[0],ct=c[1],Ze=c[2],qe=c[3],h.quadraticCurveTo(c[0],c[1],Ze,qe)),q:(h,c)=>(h.quadraticCurveTo(c[0]+Ze,c[1]+qe,c[2]+Ze,c[3]+qe),Et=Ze+c[0],ct=qe+c[1],Ze+=c[2],qe+=c[3]),T:(h,c)=>(null===Et?(Et=Ze,ct=qe):(Et=Ze-(Et-Ze),ct=qe-(ct-qe)),h.quadraticCurveTo(Et,ct,c[0],c[1]),Et=Ze-(Et-Ze),ct=qe-(ct-qe),Ze=c[0],qe=c[1]),t:(h,c)=>(null===Et?(Et=Ze,ct=qe):(Et=Ze-(Et-Ze),ct=qe-(ct-qe)),h.quadraticCurveTo(Et,ct,Ze+c[0],qe+c[1]),Ze+=c[0],qe+=c[1]),A:(h,c)=>(ae(h,Ze,qe,c),Ze=c[5],qe=c[6]),a:(h,c)=>(c[5]+=Ze,c[6]+=qe,ae(h,Ze,qe,c),Ze=c[5],qe=c[6]),L:(h,c)=>(Ze=c[0],qe=c[1],Et=ct=null,h.lineTo(Ze,qe)),l:(h,c)=>(Ze+=c[0],qe+=c[1],Et=ct=null,h.lineTo(Ze,qe)),H:(h,c)=>(Ze=c[0],Et=ct=null,h.lineTo(Ze,qe)),h:(h,c)=>(Ze+=c[0],Et=ct=null,h.lineTo(Ze,qe)),V:(h,c)=>(qe=c[0],Et=ct=null,h.lineTo(Ze,qe)),v:(h,c)=>(qe+=c[0],Et=ct=null,h.lineTo(Ze,qe)),Z:h=>(h.closePath(),Ze=Ht,qe=Jt),z:h=>(h.closePath(),Ze=Ht,qe=Jt)},ae=function(h,c,y,p){const $=ce(p[5],p[6],p[0],p[1],p[3],p[4],p[2],c,y);for(let s of $){const d=ye(...s);h.bezierCurveTo(...d)}},ce=function(h,c,y,p,q,CA,_A,ee,he){const Ie=_A*(Math.PI/180),xe=Math.sin(Ie),$=Math.cos(Ie);y=Math.abs(y),p=Math.abs(p),Et=$*(ee-h)*.5+xe*(he-c)*.5,ct=$*(he-c)*.5-xe*(ee-h)*.5;let s=Et*Et/(y*y)+ct*ct/(p*p);s>1&&(s=Math.sqrt(s),y*=s,p*=s);const d=$/y,F=xe/y,W=-xe/p,Z=$/p,EA=d*ee+F*he,PA=W*ee+Z*he,FA=d*h+F*c,te=W*h+Z*c;let Me=1/((FA-EA)*(FA-EA)+(te-PA)*(te-PA))-.25;Me<0&&(Me=0);let Qe=Math.sqrt(Me);CA===q&&(Qe=-Qe);const me=.5*(EA+FA)-Qe*(te-PA),Ye=.5*(PA+te)+Qe*(FA-EA),Ue=Math.atan2(PA-Ye,EA-me);let Le=Math.atan2(te-Ye,FA-me)-Ue;Le<0&&1===CA?Le+=2*Math.PI:Le>0&&0===CA&&(Le-=2*Math.PI);const Se=Math.ceil(Math.abs(Le/(.5*Math.PI+.001))),it=[];for(let Ve=0;VeNumber.isFinite(q)&&q>0))throw new Error(`dash(${JSON.stringify(y)}, ${JSON.stringify(c)}) invalid, lengths must be numeric and greater than zero`);return h=h.map(Je).join(" "),this.addContent(`[${h}] ${Je(c.phase||0)} d`)},undash(){return this.addContent("[] 0 d")},moveTo(h,c){return this.addContent(`${Je(h)} ${Je(c)} m`)},lineTo(h,c){return this.addContent(`${Je(h)} ${Je(c)} l`)},bezierCurveTo(h,c,y,p,q,CA){return this.addContent(`${Je(h)} ${Je(c)} ${Je(y)} ${Je(p)} ${Je(q)} ${Je(CA)} c`)},quadraticCurveTo(h,c,y,p){return this.addContent(`${Je(h)} ${Je(c)} ${Je(y)} ${Je(p)} v`)},rect(h,c,y,p){return this.addContent(`${Je(h)} ${Je(c)} ${Je(y)} ${Je(p)} re`)},roundedRect(h,c,y,p,q){let CA;null==q&&(q=0),CA=Array.isArray(q)?q.slice(0,4):[q,q,q,q];const _A=Math.min(.5*y,.5*p),ee=Math.max(0,Math.min(CA[0]||0,_A)),he=Math.max(0,Math.min(CA[1]||0,_A)),Ie=Math.max(0,Math.min(CA[2]||0,_A)),xe=Math.max(0,Math.min(CA[3]||0,_A)),$=he*(1-tt),s=Ie*(1-tt),d=xe*(1-tt),F=ee*(1-tt);return this.moveTo(h+ee,c),this.lineTo(h+y-he,c),he>0&&this.bezierCurveTo(h+y-$,c,h+y,c+$,h+y,c+he),this.lineTo(h+y,c+p-Ie),Ie>0&&this.bezierCurveTo(h+y,c+p-s,h+y-s,c+p,h+y-Ie,c+p),this.lineTo(h+xe,c+p),xe>0&&this.bezierCurveTo(h+d,c+p,h,c+p-d,h,c+p-xe),this.lineTo(h,c+ee),ee>0&&this.bezierCurveTo(h,c+F,h+F,c,h+ee,c),this.closePath()},ellipse(h,c,y,p){null==p&&(p=y);const q=y*tt,CA=p*tt,_A=(h-=y)+2*y,ee=(c-=p)+2*p,he=h+y,Ie=c+p;return this.moveTo(h,Ie),this.bezierCurveTo(h,Ie-CA,he-q,c,he,c),this.bezierCurveTo(he+q,c,_A,Ie-CA,_A,Ie),this.bezierCurveTo(_A,Ie+CA,he+q,ee,he,ee),this.bezierCurveTo(he-q,ee,h,Ie+CA,h,Ie),this.closePath()},circle(h,c,y){return this.ellipse(h,c,y)},arc(h,c,y,p,q,CA){null==CA&&(CA=!1);const _A=2*Math.PI,ee=.5*Math.PI;let he=q-p;Math.abs(he)>_A?he=_A:0!==he&&CA!==he<0&&(he=(CA?-1:1)*_A+he);const Ie=Math.ceil(Math.abs(he)/ee),xe=he/Ie,$=xe/ee*tt*y;let s=p,d=-Math.sin(s)*$,F=Math.cos(s)*$,W=h+Math.cos(s)*y,Z=c+Math.sin(s)*y;this.moveTo(W,Z);for(let EA=0;EA/even-?odd/.test(h)?"*":"",fill(h,c){return/(even-?odd)|(non-?zero)/.test(h)&&(c=h,h=null),h&&this.fillColor(h),this.addContent(`f${this._windingRule(c)}`)},stroke(h){return h&&this.strokeColor(h),this.addContent("S")},fillAndStroke(h,c,y){null==c&&(c=h);const p=/(even-?odd)|(non-?zero)/;return p.test(h)&&(y=h,h=null),p.test(c)&&(y=c,c=h),h&&(this.fillColor(h),this.strokeColor(c)),this.addContent(`B${this._windingRule(y)}`)},clip(h){return this.addContent(`W${this._windingRule(h)} n`)},transform(h,c,y,p,q,CA){if(1===h&&0===c&&0===y&&1===p&&0===q&&0===CA)return this;const _A=this._ctm,ee=_A[0],he=_A[1],Ie=_A[2],xe=_A[3],$=_A[4],s=_A[5];_A[0]=ee*h+Ie*c,_A[1]=he*h+xe*c,_A[2]=ee*y+Ie*p,_A[3]=he*y+xe*p,_A[4]=ee*q+Ie*CA+$,_A[5]=he*q+xe*CA+s;const d=[h,c,y,p,q,CA].map(F=>Je(F)).join(" ");return this.addContent(`${d} cm`)},translate(h,c){return this.transform(1,0,0,1,h,c)},rotate(h,c){let y;void 0===c&&(c={});const p=h*Math.PI/180,q=Math.cos(p),CA=Math.sin(p);let _A=y=0;if(null!=c.origin){var ee=c.origin;_A=ee[0],y=ee[1];const Ie=_A*CA+y*q;_A-=_A*q-y*CA,y-=Ie}return this.transform(q,CA,-CA,q,_A,y)},scale(h,c,y){let p;void 0===y&&(y={}),null==c&&(c=h),"object"==typeof c&&(y=c,c=h);let q=p=0;if(null!=y.origin){var CA=y.origin;q=CA[0],p=CA[1],q-=h*q,p-=c*p}return this.transform(h,0,0,c,q,p)}};const Ce={402:131,8211:150,8212:151,8216:145,8217:146,8218:130,8220:147,8221:148,8222:132,8224:134,8225:135,8226:149,8230:133,8364:128,8240:137,8249:139,8250:155,710:136,8482:153,338:140,339:156,732:152,352:138,353:154,376:159,381:142,382:158},_e=".notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n.notdef .notdef .notdef .notdef\n \nspace exclam quotedbl numbersign\ndollar percent ampersand quotesingle\nparenleft parenright asterisk plus\ncomma hyphen period slash\nzero one two three\nfour five six seven\neight nine colon semicolon\nless equal greater question\n \nat A B C\nD E F G\nH I J K\nL M N O\nP Q R S\nT U V W\nX Y Z bracketleft\nbackslash bracketright asciicircum underscore\n \ngrave a b c\nd e f g\nh i j k\nl m n o\np q r s\nt u v w\nx y z braceleft\nbar braceright asciitilde .notdef\n \nEuro .notdef quotesinglbase florin\nquotedblbase ellipsis dagger daggerdbl\ncircumflex perthousand Scaron guilsinglleft\nOE .notdef Zcaron .notdef\n.notdef quoteleft quoteright quotedblleft\nquotedblright bullet endash emdash\ntilde trademark scaron guilsinglright\noe .notdef zcaron ydieresis\n \nspace exclamdown cent sterling\ncurrency yen brokenbar section\ndieresis copyright ordfeminine guillemotleft\nlogicalnot hyphen registered macron\ndegree plusminus twosuperior threesuperior\nacute mu paragraph periodcentered\ncedilla onesuperior ordmasculine guillemotright\nonequarter onehalf threequarters questiondown\n \nAgrave Aacute Acircumflex Atilde\nAdieresis Aring AE Ccedilla\nEgrave Eacute Ecircumflex Edieresis\nIgrave Iacute Icircumflex Idieresis\nEth Ntilde Ograve Oacute\nOcircumflex Otilde Odieresis multiply\nOslash Ugrave Uacute Ucircumflex\nUdieresis Yacute Thorn germandbls\n \nagrave aacute acircumflex atilde\nadieresis aring ae ccedilla\negrave eacute ecircumflex edieresis\nigrave iacute icircumflex idieresis\neth ntilde ograve oacute\nocircumflex otilde odieresis divide\noslash ugrave uacute ucircumflex\nudieresis yacute thorn ydieresis".split(/\s+/);class st{constructor(c){this.attributes={},this.glyphWidths={},this.boundingBoxes={},this.kernPairs={},this.parse(c),this.bbox=this.attributes.FontBBox.split(/\s+/).map(y=>+y),this.ascender=+(this.attributes.Ascender||0),this.descender=+(this.attributes.Descender||0),this.xHeight=+(this.attributes.XHeight||0),this.capHeight=+(this.attributes.CapHeight||0),this.lineGap=this.bbox[3]-this.bbox[1]-(this.ascender-this.descender)}parse(c){let y="";for(let he of c.split("\n")){var p,q;if(p=he.match(/^Start(\w+)/))y=p[1];else if(he.match(/^End(\w+)/))y="";else switch(y){case"FontMetrics":var CA=(p=he.match(/(^\w+)\s+(.*)/))[1],_A=p[2];(q=this.attributes[CA])?(Array.isArray(q)||(q=this.attributes[CA]=[q]),q.push(_A)):this.attributes[CA]=_A;break;case"CharMetrics":if(!/^CH?\s/.test(he))continue;var ee=he.match(/\bN\s+(\.?\w+)\s*;/)[1];this.glyphWidths[ee]=+he.match(/\bWX\s+(\d+)\s*;/)[1];break;case"KernPairs":(p=he.match(/^KPX\s+(\.?\w+)\s+(\.?\w+)\s+(-?\d+)/))&&(this.kernPairs[p[1]+"\0"+p[2]]=parseInt(p[3]))}}}encodeText(c){const y=[];for(let p=0,q=c.length;pP.readFileSync("//data/Courier.afm","utf8"),"Courier-Bold":()=>P.readFileSync("//data/Courier-Bold.afm","utf8"),"Courier-Oblique":()=>P.readFileSync("//data/Courier-Oblique.afm","utf8"),"Courier-BoldOblique":()=>P.readFileSync("//data/Courier-BoldOblique.afm","utf8"),Helvetica:()=>P.readFileSync("//data/Helvetica.afm","utf8"),"Helvetica-Bold":()=>P.readFileSync("//data/Helvetica-Bold.afm","utf8"),"Helvetica-Oblique":()=>P.readFileSync("//data/Helvetica-Oblique.afm","utf8"),"Helvetica-BoldOblique":()=>P.readFileSync("//data/Helvetica-BoldOblique.afm","utf8"),"Times-Roman":()=>P.readFileSync("//data/Times-Roman.afm","utf8"),"Times-Bold":()=>P.readFileSync("//data/Times-Bold.afm","utf8"),"Times-Italic":()=>P.readFileSync("//data/Times-Italic.afm","utf8"),"Times-BoldItalic":()=>P.readFileSync("//data/Times-BoldItalic.afm","utf8"),Symbol:()=>P.readFileSync("//data/Symbol.afm","utf8"),ZapfDingbats:()=>P.readFileSync("//data/ZapfDingbats.afm","utf8")};class Bt extends lt{constructor(c,y,p){super(),this.document=c,this.name=y,this.id=p,this.font=new st(wt[this.name]());var q=this.font;this.ascender=q.ascender,this.descender=q.descender,this.bbox=q.bbox,this.lineGap=q.lineGap,this.xHeight=q.xHeight,this.capHeight=q.capHeight}embed(){return this.dictionary.data={Type:"Font",BaseFont:this.name,Subtype:"Type1",Encoding:"WinAnsiEncoding"},this.dictionary.end()}encode(c){const y=this.font.encodeText(c),p=this.font.glyphsForString(`${c}`),q=this.font.advancesForGlyphs(p),CA=[];for(let _A=0;_A>8;let q=0;this.font.post.isFixedPitch&&(q|=1),1<=p&&p<=7&&(q|=2),q|=4,10===p&&(q|=8),this.font.head.macStyle.italic&&(q|=64);const _A=[1,2,3,4,5,6].map($=>String.fromCharCode((this.id.charCodeAt($)||73)+17)).join("")+"+"+this.font.postscriptName?.replaceAll(" ","_"),ee=this.font.bbox,he=this.document.ref({Type:"FontDescriptor",FontName:_A,Flags:q,FontBBox:[ee.minX*this.scale,ee.minY*this.scale,ee.maxX*this.scale,ee.maxY*this.scale],ItalicAngle:this.font.italicAngle,Ascent:this.ascender,Descent:this.descender,CapHeight:(this.font.capHeight||this.font.ascent)*this.scale,XHeight:(this.font.xHeight||0)*this.scale,StemV:0});if(c?he.data.FontFile3=y:he.data.FontFile2=y,this.document.subset&&1===this.document.subset){const $=this.widths.length-1,s=I.alloc(Math.ceil(($+1)/8),0);for(let F=0;F<=$;F++)null!=this.widths[F]&&(s[Math.floor(F/8)]|=128>>F%8);const d=this.document.ref();d.write(s),d.end(),he.data.CIDSet=d}he.end();const Ie={Type:"Font",Subtype:"CIDFontType0",BaseFont:_A,CIDSystemInfo:{Registry:new String("Adobe"),Ordering:new String("Identity"),Supplement:0},FontDescriptor:he,W:[0,this.widths]};c||(Ie.Subtype="CIDFontType2",Ie.CIDToGIDMap="Identity");const xe=this.document.ref(Ie);return xe.end(),this.dictionary.data={Type:"Font",Subtype:"Type0",BaseFont:_A,Encoding:"Identity-H",DescendantFonts:[xe],ToUnicode:this.toUnicodeCmap()},this.dictionary.end()}toUnicodeCmap(){const c=this.document.ref(),y=[];for(let _A of this.unicode){const ee=[];for(let he of _A)he>65535&&(he-=65536,ee.push(pt(he>>>10&1023|55296)),he=56320|1023&he),ee.push(pt(he));y.push(`<${ee.join(" ")}>`)}const q=Math.ceil(y.length/256),CA=[];for(let _A=0;_A <${pt(he-1)}> [${y.slice(ee,he).join(" ")}]`)}return c.end(`/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000>\nendcodespacerange\n${CA.length} beginbfrange\n${CA.join("\n")}\nendbfrange\nendcmap\nCMapName currentdict /CMap defineresource pop\nend\nend`),c}}class ut{static open(c,y,p,q){let CA;if("string"==typeof y){if(Bt.isStandardFont(y))return new Bt(c,y,q);y=P.readFileSync(y)}if(y instanceof Uint8Array?CA=(0,w.create)(y,p):y instanceof ArrayBuffer&&(CA=(0,w.create)(new Uint8Array(y),p)),null==CA)throw new Error("Not a supported font format or standard PDF font.");return new ot(c,CA,q)}}var Wt={initFonts(h,c,y){void 0===h&&(h="Helvetica"),void 0===c&&(c=null),void 0===y&&(y=12),this._fontFamilies={},this._fontCount=0,this._fontSource=h,this._fontFamily=c,this._fontSize=y,this._font=null,this._remSize=y,this._registeredFonts={},h&&this.font(h,c)},font(h,c,y){let p,q;if("number"==typeof c&&(y=c,c=null),"string"==typeof h&&this._registeredFonts[h]){p=h;var CA=this._registeredFonts[h];h=CA.src,c=CA.family}else p=c||h,"string"!=typeof p&&(p=null);if(this._fontSource=h,this._fontFamily=c,null!=y&&this.fontSize(y),q=this._fontFamilies[p])return this._font=q,this;const _A="F"+ ++this._fontCount;return this._font=ut.open(this,h,c,_A),(q=this._fontFamilies[this._font.name])&&((h,c)=>!(h.font._tables?.head?.checkSumAdjustment!==c.font._tables?.head?.checkSumAdjustment||JSON.stringify(h.font._tables?.name?.records)!==JSON.stringify(c.font._tables?.name?.records)))(this._font,q)?(this._font=q,this):(p&&(this._fontFamilies[p]=this._font),this._font.name&&!this._fontFamilies[this._font.name]&&(this._fontFamilies[this._font.name]=this._font),!p&&(!this._font.name||this._fontFamilies[this._font.name]!==this._font)&&(this._fontFamilies[this._font.id]=this._font),this)},fontSize(h){return this._fontSize=this.sizeToPoint(h),this},currentLineHeight(h){return this._font.lineHeight(this._fontSize,h)},registerFont(h,c,y){return this._registeredFonts[h]={src:c,family:y},this},sizeToPoint(h,c,y,p){if(void 0===c&&(c=0),void 0===y&&(y=this.page),void 0===p&&(p=void 0),p||(p=this._fontSize),"number"!=typeof c&&(c=this.sizeToPoint(c)),void 0===h)return c;if("number"==typeof h)return h;if("boolean"==typeof h)return Number(h);const q=String(h).match(/((\d+)?(\.\d+)?)(em|in|px|cm|mm|pc|ex|ch|rem|vw|vh|vmin|vmax|%|pt)?/);if(!q)throw new Error(`Unsupported size '${h}'`);let CA;switch(q[4]){case"em":CA=this._fontSize;break;case"in":CA=72;break;case"px":CA=.75;break;case"cm":CA=72*fA;break;case"mm":CA=.1*fA*72;break;case"pc":CA=12;break;case"ex":CA=this.currentLineHeight();break;case"ch":CA=this.widthOfString("0");break;case"rem":CA=this._remSize;break;case"vw":CA=y.width/100;break;case"vh":CA=y.height/100;break;case"vmin":CA=Math.min(y.width,y.height)/100;break;case"vmax":CA=Math.max(y.width,y.height)/100;break;case"%":CA=p/100;break;default:CA=1}return CA*Number(q[1])}};class Bn{constructor(c,y){this._listeners=Object.create(null),this.document=c,this.horizontalScaling=y.horizontalScaling||100,this.indent=(y.indent||0)*this.horizontalScaling/100,this.indentAllLines=y.indentAllLines||!1,this.characterSpacing=(y.characterSpacing||0)*this.horizontalScaling/100,this.wordSpacing=(0===y.wordSpacing)*this.horizontalScaling/100,this.columns=y.columns||1,this.columnGap=(null!=y.columnGap?y.columnGap:18)*this.horizontalScaling/100,this.lineWidth=(y.width*this.horizontalScaling/100-this.columnGap*(this.columns-1))/this.columns,this.spaceLeft=this.lineWidth,this.startX=this.document.x,this.startY=this.document.y,this.column=1,this.ellipsis=y.ellipsis,this.continuedX=0,this.features=y.features,null!=y.height?(this.height=y.height,this.maxY=VA(this.startY+y.height)):this.maxY=VA(this.document.page.maxY()),this.on("firstLine",p=>{const q=this.continuedX||this.indent;this.document.x+=q,this.lineWidth-=q,!p.indentAllLines&&this.once("line",()=>{this.document.x-=q,this.lineWidth+=q,p.continued&&!this.continuedX&&(this.continuedX=this.indent),p.continued||(this.continuedX=0)})}),this.on("lastLine",p=>{const q=p.align;"justify"===q&&(p.align="left"),this.lastLine=!0,this.once("line",()=>(this.document.y+=p.paragraphGap||0,p.align=q,this.lastLine=!1))})}on(c,y){(this._listeners[c]||(this._listeners[c]=[])).push(y)}once(c,y){var p=this;const q=function(){const CA=p._listeners[c];CA.splice(CA.indexOf(q),1),y(...arguments)};this.on(c,q)}emit(c){const y=this._listeners[c];if(y){for(var p=arguments.length,q=new Array(p>1?p-1:0),CA=1;CAthis.lineWidth+this.continuedX){let s=CA;const d={};for(;xe.length;){var he,Ie;$>this.spaceLeft?(he=Math.ceil(this.spaceLeft/($/xe.length)),$=this.wordWidth(xe.slice(0,he)),Ie=$<=this.spaceLeft&&hethis.spaceLeft&&he>0;for(;F||Ie;)F?($=this.wordWidth(xe.slice(0,--he)),F=$>this.spaceLeft&&he>0):($=this.wordWidth(xe.slice(0,++he)),F=$>this.spaceLeft&&he>0,Ie=$<=this.spaceLeft&&hethis.maxY||q>this.maxY)&&this.nextSection();let CA="",_A=0,ee=0,he=0,Ie=p.y;const xe=()=>(y.textWidth=_A+this.wordSpacing*(ee-1),y.wordCount=ee,y.lineWidth=this.lineWidth,Ie=p.y,this.emit("line",CA,y,this),he++);this.emit("sectionStart",y,this),this.eachWord(c,($,s,d,F)=>{if((null==F||F.required)&&(this.emit("firstLine",y,this),this.spaceLeft=this.lineWidth),this.canFit($,s)&&(CA+=$,_A+=s,ee++),d.required||!this.canFit($,s)){const W=p.currentLineHeight(!0);if(null!=this.height&&this.ellipsis&&VA(p.y+2*W)>this.maxY&&this.column>=this.columns){for(!0===this.ellipsis&&(this.ellipsis="\u2026"),CA=CA.replace(/\s+$/,""),_A=this.wordWidth(CA+this.ellipsis);CA&&_A>this.lineWidth;)CA=CA.slice(0,-1).replace(/\s+$/,""),_A=this.wordWidth(CA+this.ellipsis);_A<=this.lineWidth&&(CA+=this.ellipsis),_A=this.wordWidth(CA)}if(d.required&&(s>this.spaceLeft&&(xe(),CA=$,_A=s,ee=1),this.emit("lastLine",y,this)),"\xad"==CA[CA.length-1]&&(CA=CA.slice(0,-1)+"-",this.spaceLeft-=this.wordWidth("-")),xe(),VA(p.y+W)>this.maxY){if(this.emit("sectionEnd",y,this),!this.nextSection())return ee=0,CA="",!1;this.emit("sectionStart",y,this)}return d.required?(this.spaceLeft=this.lineWidth,CA="",_A=0,ee=0):(this.spaceLeft=this.lineWidth-s,CA=$,_A=s,ee=1)}return this.spaceLeft-=s}),ee>0&&(this.emit("lastLine",y,this),xe()),this.emit("sectionEnd",y,this),!0===y.continued?(he>1&&(this.continuedX=0),this.continuedX+=y.textWidth||0,p.y=Ie):p.x=this.startX}nextSection(c){if(++this.column>this.columns){if(null!=this.height)return!1;if(this.document.continueOnNewPage(),this.column=1,this.startY=this.document.page.margins.top,this.maxY=this.document.page.maxY(),this.indentAllLines){const y=this.continuedX||this.indent;this.document.x+=y,this.lineWidth-=y}else this.document.x=this.startX;this.document._fillColor&&this.document.fillColor(...this.document._fillColor),this.emit("pageBreak",c,this)}else this.document.x+=this.lineWidth+this.columnGap,this.document.y=this.startY,this.emit("columnBreak",c,this);return!0}}const In=pA.number;var Cn={initText(){this._line=this._line.bind(this),this.x=0,this.y=0,this._lineGap=0},lineGap(h){return this._lineGap=h,this},moveDown(h){return null==h&&(h=1),this.y+=this.currentLineHeight(!0)*h+this._lineGap,this},moveUp(h){return null==h&&(h=1),this.y-=this.currentLineHeight(!0)*h+this._lineGap,this},_text(h,c,y,p,q){h=null==h?"":`${h}`,(p=this._initOptions(c,y,p)).wordSpacing&&(h=h.replace(/\s{2,}/g," "));const CA=()=>{p.structParent&&p.structParent.add(this.struct(p.structType||"P",[this.markStructureContent(p.structType||"P")]))};if(0!==p.rotation&&(this.save(),this.rotate(-p.rotation,{origin:[this.x,this.y]})),p.width){let _A=this._wrapper;_A||(_A=new Bn(this,p),_A.on("line",q),_A.on("firstLine",CA)),this._wrapper=p.continued?_A:null,this._textOptions=p.continued?p:null,_A.wrap(h,p)}else for(let _A of h.split("\n"))CA(),q(_A,p);return 0!==p.rotation&&this.restore(),this},text(h,c,y,p){return this._text(h,c,y,p,this._line)},widthOfString(h,c){void 0===c&&(c={});const y=c.horizontalScaling||100;return(this._font.widthOfString(h,this._fontSize,c.features)+(c.characterSpacing||0)*(h.length-1))*y/100},boundsOfString(h,c,y,p){p=this._initOptions(c,y,p),c=this.x,y=this.y;const q=p.lineGap??this._lineGap??0,CA=this.currentLineHeight(!0)+q;let _A=0;if(h=String(h??""),p.wordSpacing&&(h=h.replace(/\s{2,}/g," ")),p.width){let Me=new Bn(this,p);Me.on("line",(Qe,me)=>{if(this.y+=CA,(Qe=Qe.replace(/\n/g,"")).length){let Ye=me.wordSpacing??0;const Ue=me.characterSpacing??0;if(me.width&&"justify"===me.align){const De=Qe.trim().split(/\s+/),Le=this.widthOfString(Qe.replace(/\s+/g,""),me),Se=this.widthOfString(" ")+Ue;Ye=Math.max(0,(me.lineWidth-Le)/Math.max(1,De.length-1)-Se)}_A=Math.max(_A,me.textWidth+Ye*(me.wordCount-1)+Ue*(Qe.length-1))}}),Me.wrap(h,p)}else for(let Me of h.split("\n")){const Qe=this.widthOfString(Me,p);this.y+=CA,_A=Math.max(_A,Qe)}let ee=this.y-y;if(p.height&&(ee=Math.min(ee,p.height)),this.x=c,this.y=y,0===p.rotation)return{x:c,y,width:_A,height:ee};if(90===p.rotation)return{x:c,y:y-_A,width:ee,height:_A};if(180===p.rotation)return{x:c-_A,y:y-ee,width:_A,height:ee};if(270===p.rotation)return{x:c-ee,y,width:ee,height:_A};const he=Ee(p.rotation),Ie=HA(p.rotation),xe=c,$=y,s=c+_A*he,d=y-_A*Ie,F=c+_A*he+ee*Ie,W=y-_A*Ie+ee*he,Z=c+ee*Ie,EA=y+ee*he,PA=Math.min(xe,s,F,Z),FA=Math.max(xe,s,F,Z),te=Math.min($,d,W,EA);return{x:PA,y:te,width:FA-PA,height:Math.max($,d,W,EA)-te}},heightOfString(h,c){const y=this.x,p=this.y;(c=this._initOptions(c)).height=1/0;const q=c.lineGap||this._lineGap||0;this._text(h,this.x,this.y,c,()=>{this.y+=this.currentLineHeight(!0)+q});const CA=this.y-p;return this.x=y,this.y=p,CA},list(h,c,y,p){const q=(p=this._initOptions(c,y,p)).listType||"bullet",CA=Math.round(this._font.ascender/1e3*this._fontSize),_A=CA/2,ee=p.bulletRadius||CA/3,he=p.textIndent||("bullet"===q?5*ee:2*CA),Ie=p.bulletIndent||("bullet"===q?8*ee:2*CA);let xe=1;const $=[],s=[],d=[];var F=function(Z){let EA=1;for(let PA=0;PA{let FA,te,ge,Me,me;if(p.structParent)if(p.structTypes){var Qe=p.structTypes;te=Qe[0],ge=Qe[1],Me=Qe[2]}else te="LI",ge="Lbl",Me="LBody";if(te?(FA=this.struct(te),p.structParent.add(FA)):p.structParent&&(FA=p.structParent),(me=s[EA++])!==xe){const Ue=Ie*(me-xe);this.x+=Ue,PA.lineWidth-=Ue,xe=me}switch(FA&&(ge||Me)&&FA.add(this.struct(ge||Me,[this.markStructureContent(ge||Me)])),q){case"bullet":this.circle(this.x-he+ee,this.y+_A,ee),this.fill();break;case"numbered":case"lettered":var Ye=function Dn(h,c){if("numbered"===c)return`${h}.`;var y=String.fromCharCode((h-1)%26+65),p=Math.floor((h-1)/26+1);return`${Array(p+1).join(y)}.`}(d[EA-1],q);this._fragment(Ye,this.x-he,this.y,p)}FA&&ge&&Me&&FA.add(this.struct(Me,[this.markStructureContent(Me)])),FA&&FA!==p.structParent&&FA.end()}),PA.on("sectionStart",()=>{const FA=he+Ie*(xe-1);this.x+=FA,PA.lineWidth-=FA}),PA.on("sectionEnd",()=>{const FA=he+Ie*(xe-1);this.x-=FA,PA.lineWidth+=FA}),PA.wrap(Z,p)};for(let Z=0;Z<$.length;Z++)W.call(this,$[Z],Z);return this},_initOptions(h,c,y){void 0===h&&(h={}),void 0===y&&(y={}),h&&"object"==typeof h&&(y=h,h=null);const p=Object.assign({},y);if(this._textOptions)for(let q in this._textOptions)"continued"!==q&&void 0===p[q]&&(p[q]=this._textOptions[q]);return null!=h&&(this.x=h),null!=c&&(this.y=c),!1!==p.lineBreak&&(null==p.width&&(p.width=this.page.width-this.x-this.page.margins.right),p.width=Math.max(p.width,0)),p.columns||(p.columns=0),null==p.columnGap&&(p.columnGap=18),p.rotation=Number(p.rotation??0)%360,p.rotation<0&&(p.rotation+=360),p},_line(h,c,y){if(void 0===c&&(c={}),this._fragment(h,this.x,this.y,c),y){const p=c.lineGap||this._lineGap||0;this.y+=this.currentLineHeight(!0)+p}else this.x+=this.widthOfString(h,c)},_fragment(h,c,y,p){let q,CA,_A,ee,he,Ie;if(0===(h=`${h}`.replace(/\n/g,"")).length)return;let $=p.wordSpacing||0;const s=p.characterSpacing||0,d=p.horizontalScaling||100;if(p.width)switch(p.align||"left"){case"right":he=this.widthOfString(h.replace(/\s+$/,""),p),c+=p.lineWidth-he;break;case"center":c+=p.lineWidth/2-p.textWidth/2;break;case"justify":Ie=h.trim().split(/\s+/),he=this.widthOfString(h.replace(/\s+/g,""),p);var F=this.widthOfString(" ")+s;$=Math.max(0,(p.lineWidth-he)/Math.max(1,Ie.length-1)-F)}if("number"==typeof p.baseline)q=-p.baseline;else{switch(p.baseline){case"svg-middle":q=.5*this._font.xHeight;break;case"middle":case"svg-central":q=.5*(this._font.descender+this._font.ascender);break;case"bottom":case"ideographic":q=this._font.descender;break;case"alphabetic":q=0;break;case"mathematical":q=.5*this._font.ascender;break;case"hanging":q=.8*this._font.ascender;break;default:q=this._font.ascender}q=q/1e3*this._fontSize}const W=p.textWidth+$*(p.wordCount-1)+s*(h.length-1);if(null!=p.link){const me={};this._currentStructureElement&&"Link"===this._currentStructureElement.dictionary.data.S&&(me.structParent=this._currentStructureElement),this.link(c,y,W,this.currentLineHeight(),p.link,me)}if(null!=p.goTo&&this.goTo(c,y,W,this.currentLineHeight(),p.goTo),null!=p.destination&&this.addNamedDestination(p.destination,"XYZ",c,y,null),p.underline){this.save(),p.stroke||this.strokeColor(...this._fillColor||[]);const me=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(me);let Ye=y+this.currentLineHeight()-me;this.moveTo(c,Ye),this.lineTo(c+W,Ye),this.stroke(),this.restore()}if(p.strike){this.save(),p.stroke||this.strokeColor(...this._fillColor||[]);const me=this._fontSize<10?.5:Math.floor(this._fontSize/10);this.lineWidth(me);let Ye=y+this.currentLineHeight()/2;this.moveTo(c,Ye),this.lineTo(c+W,Ye),this.stroke(),this.restore()}if(this.save(),p.oblique){let me;me="number"==typeof p.oblique?-Math.tan(p.oblique*Math.PI/180):-.25,this.transform(1,0,0,1,c,y),this.transform(1,0,me,1,-me*q,0),this.transform(1,0,0,1,-c,-y)}this.transform(1,0,0,-1,0,this.page.height),y=this.page.height-y-q,null==this.page.fonts[this._font.id]&&(this.page.fonts[this._font.id]=this._font.ref()),this.addContent("BT"),this.addContent(`1 0 0 1 ${In(c)} ${In(y)} Tm`),this.addContent(`/${this._font.id} ${In(this._fontSize)} Tf`);const Z=p.fill&&p.stroke?2:p.stroke?1:0;if(Z&&this.addContent(`${Z} Tr`),s&&this.addContent(`${In(s)} Tc`),100!==d&&this.addContent(`${d} Tz`),$){Ie=h.trim().split(/\s+/),$+=this.widthOfString(" ")+s,$*=1e3/this._fontSize,CA=[],ee=[];for(let me of Ie){const Ye=this._font.encode(me,p.features),De=Ye[1];CA=CA.concat(Ye[0]),ee=ee.concat(De);const Le={},Se=ee[ee.length-1];for(let it in Se)Le[it]=Se[it];Le.xAdvance+=$,ee[ee.length-1]=Le}}else{var EA=this._font.encode(h,p.features);CA=EA[0],ee=EA[1]}const PA=this._fontSize/1e3,FA=[];let te=0,ge=!1;const Me=me=>{if(te ${In(-(ee[me-1].xAdvance-ee[me-1].advanceWidth))}`)}te=me},Qe=me=>{Me(me),FA.length>0&&(this.addContent(`[${FA.join(" ")}] TJ`),FA.length=0)};for(_A=0;_A{let y="";for(let p=0;p>>0},vn=function(h,c){return void 0===c&&(c=0),(h[c+1]<<8|h[c])>>>0},Un=function(h,c){return void 0===c&&(c=0),16777216*h[c]+(h[c+1]<<16|h[c+2]<<8|h[c+3])>>>0},Ln=function(h,c){return void 0===c&&(c=0),(h[c]|h[c+1]<<8|h[c+2]<<16)+16777216*h[c+3]>>>0},On=[65472,65473,65474,65475,65477,65478,65479,65480,65481,65482,65483,65484,65485,65486,65487],Ei={1:"DeviceGray",3:"DeviceRGB",4:"DeviceCMYK"};class wi{constructor(c,y){let p;if(this.data=c,this.label=y,65496!==this.data.readUInt16BE(0))throw"SOI not found in JPEG";this.orientation=(h=>{if(!h||h.length<20)return null;let c=2;for(;c=h.length-4)return null;const y=St(h,c);if(c+=2,65498===y)return null;if(y>=65488&&y<=65497||65281===y)continue;if(c+2>h.length)return null;const p=St(h,c);if(65505===y&&c+8<=h.length&&"Exif\0\0"===Nn(h.subarray(c+2,c+8))){const CA=c+8;if(CA+8>h.length)return null;const _A=Nn(h.subarray(CA,CA+2)),ee="II"===_A;if(!ee&&"MM"!==_A)return null;const he=ee?s=>vn(h,s):s=>St(h,s),Ie=ee?s=>Ln(h,s):s=>Un(h,s);if(42!==he(CA+2))return null;const xe=CA+Ie(CA+4);if(xe+2>h.length)return null;const $=he(xe);for(let s=0;s<$;s++){const d=xe+2+12*s;if(d+12>h.length)return null;if(274===he(d)){const F=he(d+8);return F>=1&&F<=8?F:null}}return null}c+=p}return null})(this.data)||1;let q=2;for(;q=this.data.length||(p=this.data.readUInt16BE(q),q+=2,On.includes(p)))break;q+=this.data.readUInt16BE(q)}if(!On.includes(p))throw"Invalid JPEG.";q+=2,this.bits=this.data[q++],this.height=this.data.readUInt16BE(q),q+=2,this.width=this.data.readUInt16BE(q),q+=2,this.colorSpace=Ei[this.data[q]],this.obj=null}embed(c){if(!this.obj)return this.obj=c.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:this.bits,Width:this.width,Height:this.height,ColorSpace:this.colorSpace,Filter:"DCTDecode"}),"DeviceCMYK"===this.colorSpace&&(this.obj.data.Decode=[1,0,1,0,1,0,1,0]),this.obj.end(this.data),this.data=null}}class Ci{constructor(c,y){this.label=y,this.image=new AA.default(c),this.width=this.image.width,this.height=this.image.height,this.imgData=this.image.imgData,this.obj=null}embed(c){if(this.document=c,this.obj)return;const y=this.image,q=this.width,CA=y.hasAlphaChannel,_A=1===y.interlaceMethod,ee=this.obj=c.ref({Type:"XObject",Subtype:"Image",BitsPerComponent:CA?8:y.bits,Width:q,Height:this.height,Filter:"FlateDecode"});if(!CA){const he=c.ref({Predictor:_A?1:15,Colors:y.colors,BitsPerComponent:y.bits,Columns:q});ee.data.DecodeParms=he,he.end()}if(0===y.palette.length)ee.data.ColorSpace=y.colorSpace;else{const he=c.ref();he.end(I.from(y.palette)),ee.data.ColorSpace=["Indexed","DeviceRGB",y.palette.length/3-1,he]}if(null!=y.transparency.grayscale){const he=y.transparency.grayscale;ee.data.Mask=[he,he]}else if(y.transparency.rgb){const he=y.transparency.rgb,Ie=[];for(let xe of he)Ie.push(xe,xe);ee.data.Mask=Ie}else{if(y.transparency.indexed)return this.loadIndexedAlphaChannel();if(CA)return this.splitAlphaChannel()}if(_A)return this.decodeData();this.finalize()}finalize(){if(this.alphaChannel){const c=this.document.ref({Type:"XObject",Subtype:"Image",Height:this.height,Width:this.width,BitsPerComponent:8,Filter:"FlateDecode",ColorSpace:"DeviceGray",Decode:[0,1]});c.end(this.alphaChannel),this.obj.data.SMask=c}return this.obj.end(this.imgData),this.image=null,this.imgData=null}splitAlphaChannel(){return this.image.decodePixels(c=>{let y,p;const q=this.image.colors,CA=this.width*this.height,_A=I.alloc(CA*q),ee=I.alloc(CA);let he=p=y=0;const Ie=c.length,xe=16===this.image.bits?1:0;for(;he{const q=I.alloc(this.width*this.height);let CA=0;for(let _A=0,ee=p.length;_A{this.imgData=K.default.deflateSync(c),this.finalize()})}}class di{static open(c,y){let p;if(I.isBuffer(c))p=c;else if(c instanceof ArrayBuffer)p=I.from(new Uint8Array(c));else{const q=/^data:.+?;base64,(.*)$/.exec(c);if(q)p=I.from(q[1],"base64");else if(p=P.readFileSync(c),!p)return}if(255===p[0]&&216===p[1])return new wi(p,y);if(137===p[0]&&80===p[1]&&78===p[2]&&71===p[3])return new Ci(p,y);throw new Error("Unknown image format.")}}var ri={initImages(){this._imageRegistry={},this._imageCount=0},image(h,c,y,p){let q,CA,_A,ee,he,Ie,xe,$,s;void 0===p&&(p={}),"object"==typeof c&&(p=c,c=null);const d=p.ignoreOrientation||!1!==p.ignoreOrientation&&this.options.ignoreOrientation,F="number"!=typeof y;c=null!=(Ie=c??p.x)?Ie:this.x,y=null!=(xe=y??p.y)?xe:this.y,"string"==typeof h&&(ee=this._imageRegistry[h]),ee||(ee=h.width&&h.height?h:this.openImage(h)),ee.obj||ee.embed(this),null==this.page.xobjects[ee.label]&&(this.page.xobjects[ee.label]=ee.obj);let Z=ee.width,EA=ee.height;if(!d&&ee.orientation>4){var PA=[EA,Z];Z=PA[0],EA=PA[1]}let FA=p.width||Z,te=p.height||EA;if(p.width&&!p.height){const Le=FA/Z;FA=Z*Le,te=EA*Le}else if(p.height&&!p.width){const Le=te/EA;FA=Z*Le,te=EA*Le}else if(p.scale)FA=Z*p.scale,te=EA*p.scale;else if(p.fit){var ge=p.fit;_A=ge[0],q=ge[1],CA=_A/q,he=Z/EA,he>CA?(FA=_A,te=_A/he):(te=q,FA=q*he)}else if(p.cover){var Me=p.cover;_A=Me[0],q=Me[1],CA=_A/q,he=Z/EA,he>CA?(te=q,FA=q*he):(FA=_A,te=_A/he)}(p.fit||p.cover)&&("center"===p.align?c=c+_A/2-FA/2:"right"===p.align&&(c=c+_A-FA),"center"===p.valign?y=y+q/2-te/2:"bottom"===p.valign&&(y=y+q-te));let Qe=0,me=c,Ye=y,Ue=te,De=FA;if(d)Ue=-te,Ye+=te;else switch(ee.orientation){default:case 1:Ue=-te,Ye+=te;break;case 2:De=-FA,Ue=-te,me+=FA,Ye+=te;break;case 3:$=c,s=y,Ue=-te,me-=FA,Qe=180;break;case 4:break;case 5:$=c,s=y,De=te,Ue=FA,Ye-=Ue,Qe=90;break;case 6:$=c,s=y,De=te,Ue=-FA,Qe=90;break;case 7:$=c,s=y,Ue=-FA,De=-te,me+=te,Qe=90;break;case 8:$=c,s=y,De=te,Ue=-FA,me-=te,Ye+=FA,Qe=-90}return null!=p.link&&this.link(c,y,FA,te,p.link),null!=p.goTo&&this.goTo(c,y,FA,te,p.goTo),null!=p.destination&&this.addNamedDestination(p.destination,"XYZ",c,y,null),F&&(this.y+=te),this.save(),null!=p.opacity&&this._doOpacity(p.opacity,null),Qe&&this.rotate(Qe,{origin:[$,s]}),this.transform(De,0,0,Ue,me,Ye),this.addContent(`/${ee.label} Do`),this.restore(),this},openImage(h){let c;return"string"==typeof h&&(c=this._imageRegistry[h]),c||(c=di.open(h,"I"+ ++this._imageCount),"string"==typeof h&&(this._imageRegistry[h]=c)),c}};class xn{constructor(c){this.annotationRef=c}}var ai={annotate(h,c,y,p,q){q.Type="Annot",q.Rect=this._convertRect(h,c,y,p),q.Border=[0,0,0],"Link"===q.Subtype&&typeof q.F>"u"&&(q.F=4),"Link"!==q.Subtype&&null==q.C&&(q.C=this._normalizeColor(q.color||[0,0,0])),delete q.color,"string"==typeof q.Dest&&(q.Dest=new String(q.Dest));const CA=q.structParent;delete q.structParent;for(let ee in q){const he=q[ee];q[ee[0].toUpperCase()+ee.slice(1)]=he}const _A=this.ref(q);if(this.page.annotations.push(_A),CA&&"function"==typeof CA.add){const ee=new xn(_A);CA.add(ee)}return _A.end(),this},note(h,c,y,p,q,CA){return void 0===CA&&(CA={}),CA.Subtype="Text",CA.Contents=new String(q),null==CA.Name&&(CA.Name="Comment"),null==CA.color&&(CA.color=[243,223,92]),this.annotate(h,c,y,p,CA)},goTo(h,c,y,p,q,CA){return void 0===CA&&(CA={}),CA.Subtype="Link",CA.A=this.ref({S:"GoTo",D:new String(q)}),CA.A.end(),this.annotate(h,c,y,p,CA)},link(h,c,y,p,q,CA){if(void 0===CA&&(CA={}),CA.Subtype="Link","number"==typeof q){const _A=this._root.data.Pages.data;if(!(q>=0&&q<_A.Kids.length))throw new Error(`The document has no page ${q}`);CA.A=this.ref({S:"GoTo",D:[_A.Kids[q],"XYZ",null,null,null]}),CA.A.end()}else CA.A=this.ref({S:"URI",URI:new String(q)}),CA.A.end();return CA.structParent&&!CA.Contents&&(CA.Contents=new String("")),this.annotate(h,c,y,p,CA)},_markup(h,c,y,p,q){void 0===q&&(q={});const CA=this._convertRect(h,c,y,p),_A=CA[0],ee=CA[1],he=CA[2],Ie=CA[3];return q.QuadPoints=[_A,Ie,he,Ie,_A,ee,he,ee],q.Contents=new String,this.annotate(h,c,y,p,q)},highlight(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="Highlight",null==q.color&&(q.color=[241,238,148]),this._markup(h,c,y,p,q)},underline(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="Underline",this._markup(h,c,y,p,q)},strike(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="StrikeOut",this._markup(h,c,y,p,q)},lineAnnotation(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="Line",q.Contents=new String,q.L=[h,this.page.height-c,y,this.page.height-p],this.annotate(h,c,y,p,q)},rectAnnotation(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="Square",q.Contents=new String,this.annotate(h,c,y,p,q)},ellipseAnnotation(h,c,y,p,q){return void 0===q&&(q={}),q.Subtype="Circle",q.Contents=new String,this.annotate(h,c,y,p,q)},textAnnotation(h,c,y,p,q,CA){return void 0===CA&&(CA={}),CA.Subtype="FreeText",CA.Contents=new String(q),CA.DA=new String,this.annotate(h,c,y,p,CA)},fileAnnotation(h,c,y,p,q,CA){void 0===q&&(q={}),void 0===CA&&(CA={});const _A=this.file(q.src,Object.assign({hidden:!0},q));return CA.Subtype="FileAttachment",CA.FS=_A,CA.Contents?CA.Contents=new String(CA.Contents):_A.data.Desc&&(CA.Contents=_A.data.Desc),this.annotate(h,c,y,p,CA)},_convertRect(h,c,y,p){let q=c,CA=h+y;const _A=this._ctm,ee=_A[0],he=_A[1],Ie=_A[2],xe=_A[3],$=_A[4],s=_A[5];return CA=ee*CA+Ie*q+$,q=he*CA+xe*q+s,[h=ee*h+Ie*(c+=p)+$,c=he*h+xe*c+s,CA,q]}};const Ki={top:0,left:0,zoom:0,fit:!0,pageNumber:null,expanded:!1};class Qi{constructor(c,y,p,q,CA){void 0===CA&&(CA=Ki),this.document=c,this.options=CA,this.outlineData={},null!==q&&(this.outlineData.Dest=CA.fit?[q,"Fit"]:[q,"XYZ",q.data.MediaBox[2]-(CA.left||0),q.data.MediaBox[3]-(CA.top||0),CA.zoom||0]),null!==y&&(this.outlineData.Parent=y),null!==p&&(this.outlineData.Title=new String(p)),this.dictionary=this.document.ref(this.outlineData),this.children=[]}addItem(c,y){void 0===y&&(y=Ki);const CA=new Qi(this.document,this.dictionary,c,null!=y.pageNumber?this.document._root.data.Pages.data.Kids[y.pageNumber]:this.document.page.dictionary,y);return this.children.push(CA),CA}endOutline(){if(this.children.length>0){this.options.expanded&&(this.outlineData.Count=this.children.length);const y=this.children[this.children.length-1];this.outlineData.First=this.children[0].dictionary,this.outlineData.Last=y.dictionary;for(let p=0,q=this.children.length;p0&&(CA.outlineData.Prev=this.children[p-1].dictionary),p0)return this._root.data.Outlines=this.outline.dictionary,this._root.data.PageMode=this._root.data.PageMode||"UseOutlines"}};class mi{constructor(c,y){this.refs=[{pageRef:c,mcid:y}]}push(c){c.refs.forEach(y=>this.refs.push(y))}}class fn{constructor(c,y,p,q){void 0===p&&(p={}),void 0===q&&(q=null),this.document=c,this._attached=!1,this._ended=!1,this._flushed=!1,this.dictionary=c.ref({S:y});const CA=this.dictionary.data;(Array.isArray(p)||this._isValidChild(p))&&(q=p,p={}),p.title&&(CA.T=new String(p.title)),p.lang&&(CA.Lang=new String(p.lang)),p.alt&&(CA.Alt=new String(p.alt)),p.expanded&&(CA.E=new String(p.expanded)),p.actual&&(CA.ActualText=new String(p.actual));const _A=Array.isArray(p.bbox)&&4===p.bbox.length,ee="string"==typeof p.placement;if(_A||ee){const he={O:"Layout"};if(he.Placement=ee?p.placement:"Block",_A){const Ie=c.page.height;he.BBox=[p.bbox[0],Ie-p.bbox[3],p.bbox[2],Ie-p.bbox[1]]}CA.A=he}p.scope&&(CA.A={...CA.A||{},O:"Table",Scope:p.scope}),this._children=[],q&&(Array.isArray(q)||(q=[q]),q.forEach(he=>this.add(he)),this.end())}add(c){if(this._ended)throw new Error("Cannot add child to already-ended structure element");if(!this._isValidChild(c))throw new Error("Invalid structure element child");return c instanceof fn&&(c.setParent(this.dictionary),this._attached&&c.setAttached()),c instanceof mi&&this._addContentToParentTree(c),c instanceof xn&&this._addAnnotationToParentTree(c.annotationRef),"function"==typeof c&&this._attached&&(c=this._contentForClosure(c)),this._children.push(c),this}_addContentToParentTree(c){c.refs.forEach(y=>{let p=y.pageRef,q=y.mcid;this.document.getStructParentTree().get(p.data.StructParents)[q]=this.dictionary})}_addAnnotationToParentTree(c){const y=this.document.createStructParentTreeNextKey();c.data.StructParent=y,this.document.getStructParentTree().add(y,this.dictionary)}setParent(c){if(this.dictionary.data.P)throw new Error("Structure element added to more than one parent");this.dictionary.data.P=c,this._flush()}setAttached(){this._attached||(this._children.forEach((c,y)=>{c instanceof fn&&c.setAttached(),"function"==typeof c&&(this._children[y]=this._contentForClosure(c))}),this._attached=!0,this._flush())}end(){this._ended||(this._children.filter(c=>c instanceof fn).forEach(c=>c.end()),this._ended=!0,this._flush())}_isValidChild(c){return c instanceof fn||c instanceof mi||c instanceof xn||"function"==typeof c}_contentForClosure(c){const y=this.document.markStructureContent(this.dictionary.data.S),p=this.document._currentStructureElement;this.document._currentStructureElement=this;const q=this._ended;return this._ended=!1,c(),this._ended=q,this.document._currentStructureElement=p,this.document.endMarkedContent(),this._addContentToParentTree(y),y}_isFlushable(){return!(!this.dictionary.data.P||!this._ended)&&this._children.every(c=>"function"!=typeof c&&(!(c instanceof fn)||c._isFlushable()))}_flush(){this._flushed||!this._isFlushable()||(this.dictionary.data.K=[],this._children.forEach(c=>this._flushChild(c)),this.dictionary.end(),this._children=[],this.dictionary.data.K=null,this._flushed=!0)}_flushChild(c){c instanceof fn&&this.dictionary.data.K.push(c.dictionary),c instanceof mi&&c.refs.forEach(y=>{let p=y.pageRef,q=y.mcid;this.dictionary.data.Pg||(this.dictionary.data.Pg=p),this.dictionary.data.K.push(this.dictionary.data.Pg===p?q:{Type:"MCR",Pg:p,MCID:q})}),c instanceof xn&&this.dictionary.data.K.push({Type:"OBJR",Obj:c.annotationRef,Pg:this.document.page.dictionary})}}class ms extends QA{_compareKeys(c,y){return parseInt(c)-parseInt(y)}_keysName(){return"Nums"}_dataForKey(c){return parseInt(c)}}var Ms={initMarkings(h){this.structChildren=[],h.tagged&&(this.getMarkInfoDictionary().data.Marked=!0,this.getStructTreeRoot())},markContent(h,c){if(void 0===c&&(c=null),"Artifact"===h||c&&c.mcid){let p=0;for(this.page.markings.forEach(q=>{(p||q.structContent||"Artifact"===q.tag)&&p++});p--;)this.endMarkedContent()}if(!c)return this.page.markings.push({tag:h}),this.addContent(`/${h} BMC`),this;this.page.markings.push({tag:h,options:c});const y={};return typeof c.mcid<"u"&&(y.MCID=c.mcid),"Artifact"===h&&("string"==typeof c.type&&(y.Type=c.type),Array.isArray(c.bbox)&&(y.BBox=[c.bbox[0],this.page.height-c.bbox[3],c.bbox[2],this.page.height-c.bbox[1]]),Array.isArray(c.attached)&&c.attached.every(p=>"string"==typeof p)&&(y.Attached=c.attached)),"Span"===h&&(c.lang&&(y.Lang=new String(c.lang)),c.alt&&(y.Alt=new String(c.alt)),c.expanded&&(y.E=new String(c.expanded)),c.actual&&(y.ActualText=new String(c.actual))),this.addContent(`/${h} ${pA.convert(y)} BDC`),this},markStructureContent(h,c){void 0===c&&(c={});const y=this.getStructParentTree().get(this.page.structParentTreeKey),p=y.length;y.push(null),this.markContent(h,{...c,mcid:p});const q=new mi(this.page.dictionary,p);return this.page.markings.slice(-1)[0].structContent=q,q},endMarkedContent(){return this.page.markings.pop(),this.addContent("EMC"),this._textOptions&&(delete this._textOptions.link,delete this._textOptions.goTo,delete this._textOptions.destination,delete this._textOptions.underline,delete this._textOptions.strike),this},struct(h,c,y){return void 0===c&&(c={}),void 0===y&&(y=null),new fn(this,h,c,y)},addStructure(h){const c=this.getStructTreeRoot();return h.setParent(c),h.setAttached(),this.structChildren.push(h),c.data.K||(c.data.K=[]),c.data.K.push(h.dictionary),this},initPageMarkings(h){h.forEach(c=>{if(c.structContent){const y=c.structContent,p=this.markStructureContent(c.tag,c.options);y.push(p),this.page.markings.slice(-1)[0].structContent=y}else this.markContent(c.tag,c.options)})},endPageMarkings(h){const c=h.markings;return c.forEach(()=>h.write("EMC")),h.markings=[],c},getMarkInfoDictionary(){return this._root.data.MarkInfo||(this._root.data.MarkInfo=this.ref({})),this._root.data.MarkInfo},hasMarkInfoDictionary(){return!!this._root.data.MarkInfo},getStructTreeRoot(){return this._root.data.StructTreeRoot||(this._root.data.StructTreeRoot=this.ref({Type:"StructTreeRoot",ParentTree:new ms,ParentTreeNextKey:0})),this._root.data.StructTreeRoot},getStructParentTree(){return this.getStructTreeRoot().data.ParentTree},createStructParentTreeNextKey(){this.getMarkInfoDictionary();const h=this.getStructTreeRoot(),c=h.data.ParentTreeNextKey++;return h.data.ParentTree.add(c,[]),c},endMarkings(){const h=this._root.data.StructTreeRoot;h&&(h.end(),this.structChildren.forEach(c=>c.end())),this._root.data.MarkInfo&&this._root.data.MarkInfo.end()}};const Mi={readOnly:1,required:2,noExport:4,multiline:4096,password:8192,toggleToOffButton:16384,radioButton:32768,pushButton:65536,combo:131072,edit:262144,sort:524288,multiSelect:2097152,noSpell:4194304},pi={left:0,center:1,right:2},Zi={value:"V",defaultValue:"DV"},qi={zip:"0",zipPlus4:"1",zip4:"1",phone:"2",ssn:"3"},$i_number={nDec:0,sepComma:!1,negStyle:"MinusBlack",currency:"",currencyPrepend:!0},$i_percent={nDec:0,sepComma:!1};var ps={initForm(){if(!this._font)throw new Error("Must set a font before calling initForm method");this._acroform={fonts:{},defaultFont:this._font.name},this._acroform.fonts[this._font.id]=this._font.ref();let h={Fields:[],NeedAppearances:!0,DA:new String(`/${this._font.id} 0 Tf 0 g`),DR:{Font:{}}};h.DR.Font[this._font.id]=this._font.ref();const c=this.ref(h);return this._root.data.AcroForm=c,this},endAcroForm(){if(this._root.data.AcroForm){if(!Object.keys(this._acroform.fonts).length&&!this._acroform.defaultFont)throw new Error("No fonts specified for PDF form");let h=this._root.data.AcroForm.data.DR.Font;Object.keys(this._acroform.fonts).forEach(c=>{h[c]=this._acroform.fonts[c]}),this._root.data.AcroForm.data.Fields.forEach(c=>{this._endChild(c)}),this._root.data.AcroForm.end()}return this},_endChild(h){return Array.isArray(h.data.Kids)&&(h.data.Kids.forEach(c=>{this._endChild(c)}),h.end()),this},formField(h,c){void 0===c&&(c={});let y=this._fieldDict(h,null,c),p=this.ref(y);return this._addToParent(p),p},formAnnotation(h,c,y,p,q,CA,_A){void 0===_A&&(_A={});let ee=this._fieldDict(h,c,_A);return ee.Subtype="Widget",void 0===ee.F&&(ee.F=4),this.annotate(y,p,q,CA,ee),this._addToParent(this.page.annotations[this.page.annotations.length-1])},formText(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"text",c,y,p,q,CA)},formPushButton(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"pushButton",c,y,p,q,CA)},formCombo(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"combo",c,y,p,q,CA)},formList(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"list",c,y,p,q,CA)},formRadioButton(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"radioButton",c,y,p,q,CA)},formCheckbox(h,c,y,p,q,CA){return void 0===CA&&(CA={}),this.formAnnotation(h,"checkbox",c,y,p,q,CA)},_addToParent(h){let c=h.data.Parent;return c?(c.data.Kids||(c.data.Kids=[]),c.data.Kids.push(h)):this._root.data.AcroForm.data.Fields.push(h),this},_fieldDict(h,c,y){if(void 0===y&&(y={}),!this._acroform)throw new Error("Call document.initForm() method before adding form elements to document");let p=Object.assign({},y);return null!==c&&(p=this._resolveType(c,y)),p=this._resolveFlags(p),p=this._resolveJustify(p),p=this._resolveFont(p),p=this._resolveStrings(p),p=this._resolveColors(p),p=this._resolveFormat(p),p.T=new String(h),p.parent&&(p.Parent=p.parent,delete p.parent),p},_resolveType(h,c){if("text"===h)c.FT="Tx";else if("pushButton"===h)c.FT="Btn",c.pushButton=!0;else if("radioButton"===h)c.FT="Btn",c.radioButton=!0;else if("checkbox"===h)c.FT="Btn";else if("combo"===h)c.FT="Ch",c.combo=!0;else{if("list"!==h)throw new Error(`Invalid form annotation type '${h}'`);c.FT="Ch"}return c},_resolveFormat(h){const c=h.format;if(c&&c.type){let y,p,q="";if(void 0!==qi[c.type])y="AFSpecial_Keystroke",p="AFSpecial_Format",q=qi[c.type];else{let CA=c.type.charAt(0).toUpperCase()+c.type.slice(1);if(y=`AF${CA}_Keystroke`,p=`AF${CA}_Format`,"date"===c.type)y+="Ex",q=String(c.param);else if("time"===c.type)q=String(c.param);else if("number"===c.type){let _A=Object.assign({},$i_number,c);q=String([String(_A.nDec),_A.sepComma?"0":"1",'"'+_A.negStyle+'"',"null",'"'+_A.currency+'"',String(_A.currencyPrepend)].join(","))}else if("percent"===c.type){let _A=Object.assign({},$i_percent,c);q=String([String(_A.nDec),_A.sepComma?"0":"1"].join(","))}}h.AA=h.AA?h.AA:{},h.AA.K={S:"JavaScript",JS:new String(`${y}(${q});`)},h.AA.F={S:"JavaScript",JS:new String(`${p}(${q});`)}}return delete h.format,h},_resolveColors(h){let c=this._normalizeColor(h.backgroundColor);return c&&(h.MK||(h.MK={}),h.MK.BG=c),c=this._normalizeColor(h.borderColor),c&&(h.MK||(h.MK={}),h.MK.BC=c),delete h.backgroundColor,delete h.borderColor,h},_resolveFlags(h){let c=0;return Object.keys(h).forEach(y=>{Mi[y]&&(h[y]&&(c|=Mi[y]),delete h[y])}),0!==c&&(h.Ff=h.Ff?h.Ff:0,h.Ff|=c),h},_resolveJustify(h){let c=0;return void 0!==h.align&&("number"==typeof pi[h.align]&&(c=pi[h.align]),delete h.align),0!==c&&(h.Q=c),h},_resolveFont(h){if(null==this._acroform.fonts[this._font.id]&&(this._acroform.fonts[this._font.id]=this._font.ref()),this._acroform.defaultFont!==this._font.name){h.DR={Font:{}};const c=h.fontSize||0;h.DR.Font[this._font.id]=this._font.ref(),h.DA=new String(`/${this._font.id} ${c} Tf 0 g`)}return h},_resolveStrings(h){let c=[];function y(p){if(Array.isArray(p))for(let q=0;q{void 0!==h[p]&&(h[Zi[p]]=h[p],delete h[p])}),["V","DV"].forEach(p=>{"string"==typeof h[p]&&(h[p]=new String(h[p]))}),h.MK&&h.MK.CA&&(h.MK.CA=new String(h.MK.CA)),h.label&&(h.MK=h.MK?h.MK:{},h.MK.CA=new String(h.label),delete h.label),h}},As={file(h,c){void 0===c&&(c={}),c.name=c.name||h,c.relationship=c.relationship||"Unspecified";const y={Type:"EmbeddedFile",Params:{}};let p;if(!h)throw new Error("No src specified");if(I.isBuffer(h))p=h;else if(h instanceof ArrayBuffer)p=I.from(new Uint8Array(h));else{const Ie=/^data:(.*?);base64,(.*)$/.exec(h);if(Ie)Ie[1]&&(y.Subtype=nA(Ie[1])),p=I.from(Ie[2],"base64");else{if(p=P.readFileSync(h),!p)throw new Error(`Could not read contents of file at filepath ${h}`);const xe=P.statSync(h),s=xe.ctime;y.Params.CreationDate=xe.birthtime,y.Params.ModDate=s}}c.creationDate instanceof Date&&(y.Params.CreationDate=c.creationDate),c.modifiedDate instanceof Date&&(y.Params.ModDate=c.modifiedDate),c.type&&(y.Subtype=nA(c.type));const q=function LA(h){return(0,B.default)(h)}(new Uint8Array(p));let CA;y.Params.CheckSum=new String(q),y.Params.Size=p.byteLength,this._fileRegistry||(this._fileRegistry={});let _A=this._fileRegistry[c.name];_A&&function Is(h,c){return h.Subtype===c.Subtype&&h.Params.CheckSum.toString()===c.Params.CheckSum.toString()&&h.Params.Size===c.Params.Size&&h.Params.CreationDate.getTime()===c.Params.CreationDate.getTime()&&(void 0===h.Params.ModDate&&void 0===c.Params.ModDate||h.Params.ModDate.getTime()===c.Params.ModDate.getTime())}(y,_A)?CA=_A.ref:(CA=this.ref(y),CA.end(p),this._fileRegistry[c.name]={...y,ref:CA});const ee={Type:"Filespec",AFRelationship:c.relationship,F:new String(c.name),EF:{F:CA},UF:new String(c.name)};c.description&&(ee.Desc=new String(c.description));const he=this.ref(ee);return he.end(),c.hidden||this.addNamedEmbeddedFile(c.name,he),this._root.data.AF?this._root.data.AF.push(he):this._root.data.AF=[he],he}},Ui={initPDFA(h){"-"===h.charAt(h.length-3)?(this.subset_conformance=h.charAt(h.length-1).toUpperCase(),this.subset=parseInt(h.charAt(h.length-2))):(this.subset_conformance="B",this.subset=parseInt(h.charAt(h.length-1)))},endSubset(){this._addPdfaMetadata(),this._addColorOutputIntent()},_addColorOutputIntent(){const h=I("AAAL0AAAAAACAAAAbW50clJHQiBYWVogB98AAgAPAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAPbWAAEAAAAA0y0AAAAAPQ6y3q6Tl76bZybOjApDzgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQZGVzYwAAAUQAAABjYlhZWgAAAagAAAAUYlRSQwAAAbwAAAgMZ1RSQwAAAbwAAAgMclRSQwAAAbwAAAgMZG1kZAAACcgAAACIZ1hZWgAAClAAAAAUbHVtaQAACmQAAAAUbWVhcwAACngAAAAkYmtwdAAACpwAAAAUclhZWgAACrAAAAAUdGVjaAAACsQAAAAMdnVlZAAACtAAAACHd3RwdAAAC1gAAAAUY3BydAAAC2wAAAA3Y2hhZAAAC6QAAAAsZGVzYwAAAAAAAAAJc1JHQjIwMTQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAAAkoAAAD4QAALbPY3VydgAAAAAAAAQAAAAABQAKAA8AFAAZAB4AIwAoAC0AMgA3ADsAQABFAEoATwBUAFkAXgBjAGgAbQByAHcAfACBAIYAiwCQAJUAmgCfAKQAqQCuALIAtwC8AMEAxgDLANAA1QDbAOAA5QDrAPAA9gD7AQEBBwENARMBGQEfASUBKwEyATgBPgFFAUwBUgFZAWABZwFuAXUBfAGDAYsBkgGaAaEBqQGxAbkBwQHJAdEB2QHhAekB8gH6AgMCDAIUAh0CJgIvAjgCQQJLAlQCXQJnAnECegKEAo4CmAKiAqwCtgLBAssC1QLgAusC9QMAAwsDFgMhAy0DOANDA08DWgNmA3IDfgOKA5YDogOuA7oDxwPTA+AD7AP5BAYEEwQgBC0EOwRIBFUEYwRxBH4EjASaBKgEtgTEBNME4QTwBP4FDQUcBSsFOgVJBVgFZwV3BYYFlgWmBbUFxQXVBeUF9gYGBhYGJwY3BkgGWQZqBnsGjAadBq8GwAbRBuMG9QcHBxkHKwc9B08HYQd0B4YHmQesB78H0gflB/gICwgfCDIIRghaCG4IggiWCKoIvgjSCOcI+wkQCSUJOglPCWQJeQmPCaQJugnPCeUJ+woRCicKPQpUCmoKgQqYCq4KxQrcCvMLCwsiCzkLUQtpC4ALmAuwC8gL4Qv5DBIMKgxDDFwMdQyODKcMwAzZDPMNDQ0mDUANWg10DY4NqQ3DDd4N+A4TDi4OSQ5kDn8Omw62DtIO7g8JDyUPQQ9eD3oPlg+zD88P7BAJECYQQxBhEH4QmxC5ENcQ9RETETERTxFtEYwRqhHJEegSBxImEkUSZBKEEqMSwxLjEwMTIxNDE2MTgxOkE8UT5RQGFCcUSRRqFIsUrRTOFPAVEhU0FVYVeBWbFb0V4BYDFiYWSRZsFo8WshbWFvoXHRdBF2UXiReuF9IX9xgbGEAYZRiKGK8Y1Rj6GSAZRRlrGZEZtxndGgQaKhpRGncanhrFGuwbFBs7G2MbihuyG9ocAhwqHFIcexyjHMwc9R0eHUcdcB2ZHcMd7B4WHkAeah6UHr4e6R8THz4faR+UH78f6iAVIEEgbCCYIMQg8CEcIUghdSGhIc4h+yInIlUigiKvIt0jCiM4I2YjlCPCI/AkHyRNJHwkqyTaJQklOCVoJZclxyX3JicmVyaHJrcm6CcYJ0kneierJ9woDSg/KHEooijUKQYpOClrKZ0p0CoCKjUqaCqbKs8rAis2K2krnSvRLAUsOSxuLKIs1y0MLUEtdi2rLeEuFi5MLoIuty7uLyQvWi+RL8cv/jA1MGwwpDDbMRIxSjGCMbox8jIqMmMymzLUMw0zRjN/M7gz8TQrNGU0njTYNRM1TTWHNcI1/TY3NnI2rjbpNyQ3YDecN9c4FDhQOIw4yDkFOUI5fzm8Ofk6Njp0OrI67zstO2s7qjvoPCc8ZTykPOM9Ij1hPaE94D4gPmA+oD7gPyE/YT+iP+JAI0BkQKZA50EpQWpBrEHuQjBCckK1QvdDOkN9Q8BEA0RHRIpEzkUSRVVFmkXeRiJGZ0arRvBHNUd7R8BIBUhLSJFI10kdSWNJqUnwSjdKfUrESwxLU0uaS+JMKkxyTLpNAk1KTZNN3E4lTm5Ot08AT0lPk0/dUCdQcVC7UQZRUFGbUeZSMVJ8UsdTE1NfU6pT9lRCVI9U21UoVXVVwlYPVlxWqVb3V0RXklfgWC9YfVjLWRpZaVm4WgdaVlqmWvVbRVuVW+VcNVyGXNZdJ114XcleGl5sXr1fD19hX7NgBWBXYKpg/GFPYaJh9WJJYpxi8GNDY5dj62RAZJRk6WU9ZZJl52Y9ZpJm6Gc9Z5Nn6Wg/aJZo7GlDaZpp8WpIap9q92tPa6dr/2xXbK9tCG1gbbluEm5rbsRvHm94b9FwK3CGcOBxOnGVcfByS3KmcwFzXXO4dBR0cHTMdSh1hXXhdj52m3b4d1Z3s3gReG54zHkqeYl553pGeqV7BHtje8J8IXyBfOF9QX2hfgF+Yn7CfyN/hH/lgEeAqIEKgWuBzYIwgpKC9INXg7qEHYSAhOOFR4Wrhg6GcobXhzuHn4gEiGmIzokziZmJ/opkisqLMIuWi/yMY4zKjTGNmI3/jmaOzo82j56QBpBukNaRP5GokhGSepLjk02TtpQglIqU9JVflcmWNJaflwqXdZfgmEyYuJkkmZCZ/JpomtWbQpuvnByciZz3nWSd0p5Anq6fHZ+Ln/qgaaDYoUehtqImopajBqN2o+akVqTHpTilqaYapoum/adup+CoUqjEqTepqaocqo+rAqt1q+msXKzQrUStuK4trqGvFq+LsACwdbDqsWCx1rJLssKzOLOutCW0nLUTtYq2AbZ5tvC3aLfguFm40blKucK6O7q1uy67p7whvJu9Fb2Pvgq+hL7/v3q/9cBwwOzBZ8Hjwl/C28NYw9TEUcTOxUvFyMZGxsPHQce/yD3IvMk6ybnKOMq3yzbLtsw1zLXNNc21zjbOts83z7jQOdC60TzRvtI/0sHTRNPG1EnUy9VO1dHWVdbY11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t//9kZXNjAAAAAAAAAC5JRUMgNjE5NjYtMi0xIERlZmF1bHQgUkdCIENvbG91ciBTcGFjZSAtIHNSR0IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAAAAAUAAAAAAAAG1lYXMAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlhZWiAAAAAAAAAAngAAAKQAAACHWFlaIAAAAAAAAG+iAAA49QAAA5BzaWcgAAAAAENSVCBkZXNjAAAAAAAAAC1SZWZlcmVuY2UgVmlld2luZyBDb25kaXRpb24gaW4gSUVDIDYxOTY2LTItMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y10ZXh0AAAAAENvcHlyaWdodCBJbnRlcm5hdGlvbmFsIENvbG9yIENvbnNvcnRpdW0sIDIwMTUAAHNmMzIAAAAAAAEMRAAABd////MmAAAHlAAA/Y////uh///9ogAAA9sAAMB1","base64"),c=this.ref({Length:h.length,N:3});c.write(h),c.end();const y=this.ref({Type:"OutputIntent",S:"GTS_PDFA1",Info:new String("sRGB IEC61966-2.1"),OutputConditionIdentifier:new String("sRGB IEC61966-2.1"),DestOutputProfile:c});y.end(),this._root.data.OutputIntents=[y]},_getPdfaid(){return`\n \n ${this.subset}\n ${this.subset_conformance}\n \n `},_addPdfaMetadata(){this.appendXML(this._getPdfaid())}},es={initPDFUA(){this.subset=1},endSubset(){this._addPdfuaMetadata()},_addPdfuaMetadata(){this.appendXML(this._getPdfuaid())},_getPdfuaid(){return`\n \n ${this.subset}\n \n `}},Zn={_importSubset(h){Object.assign(this,h)},initSubset(h){switch(h.subset){case"PDF/A-1":case"PDF/A-1a":case"PDF/A-1b":case"PDF/A-2":case"PDF/A-2a":case"PDF/A-2b":case"PDF/A-3":case"PDF/A-3a":case"PDF/A-3b":this._importSubset(Ui),this.initPDFA(h.subset);break;case"PDF/UA":this._importSubset(es),this.initPDFUA()}}};const Ds=["height","minHeight","maxHeight"],Fs=["width","minWidth","maxWidth"];function Li(h,c){const y=new Map;return function(){const p=arguments.length<=0?void 0:arguments[0];return y.has(p)||(y.set(p,h(...arguments)),y.size>c&&y.delete(y.keys().next())),y.get(p)}}function Gi(h){return h&&"object"==typeof h&&!Array.isArray(h)}function un(h){if(!Gi(h))return h;h=Ii(h);for(var c=arguments.length,y=new Array(c>1?c-1:0),p=1;pDs.includes(q[0]))),p=Object.fromEntries(Object.entries(c).filter(q=>Fs.includes(q[0])));return c.padding=kA(c.padding),c.border=kA(c.border),c.borderColor=kA(c.borderColor),c.align=Di(c.align),{defaultStyle:c,defaultRowStyle:y,defaultColStyle:p}}(c.defaultStyle),CA=p.defaultColStyle,_A=p.defaultRowStyle;let ee,he;this._defaultStyle=p.defaultStyle,c.columnStyles&&(Array.isArray(c.columnStyles)?ee=Ie=>c.columnStyles[Ie]:"function"==typeof c.columnStyles?ee=Li(Ie=>c.columnStyles(Ie),1/0):"object"==typeof c.columnStyles&&(ee=()=>c.columnStyles)),ee||(ee=()=>({})),this._colStyle=xs.bind(this,CA,ee),c.rowStyles&&(Array.isArray(c.rowStyles)?he=Ie=>c.rowStyles[Ie]:"function"==typeof c.rowStyles?he=Li(Ie=>c.rowStyles(Ie),10):"object"==typeof c.rowStyles&&(he=()=>c.rowStyles)),he||(he=()=>({})),this._rowStyle=ys.bind(this,_A,he)}function bs(h,c,y){const p=this._colStyle(y);let q=this._rowStyle(c);const CA=un({},p.font,q.font,h.font),_A=Object.values(CA).filter(s=>null!=s).length>0,ee=this.document,he=ee._fontSource,Ie=ee._fontSize,xe=ee._fontFamily;_A&&(CA.src&&ee.font(CA.src,CA.family),CA.size&&ee.fontSize(CA.size),q=this._rowStyle(c)),h.padding=kA(h.padding),h.border=kA(h.border),h.borderColor=kA(h.borderColor);const $=un(this._defaultStyle,p,q,h);return $.rowIndex=c,$.colIndex=y,$.font=CA??{},$.customFont=_A,$.text=function Ys(h){return null!=h&&(h=`${h}`),h}($.text),$.rowSpan=$.rowSpan??1,$.colSpan=$.colSpan??1,$.padding=kA($.padding,"0.25em",s=>ee.sizeToPoint(s,"0.25em")),$.border=kA($.border,1,s=>ee.sizeToPoint(s,1)),$.borderColor=kA($.borderColor,"black",s=>s??"black"),$.align=Di($.align),$.align.x=$.align.x??"left",$.align.y=$.align.y??"top",$.textStroke=ee.sizeToPoint($.textStroke,0),$.textStrokeColor=$.textStrokeColor??"black",$.textColor=$.textColor??"black",$.textOptions=$.textOptions??{},$.id=new String($.id??`${this._id}-${c}-${y}`),$.type="TH"===$.type?.toUpperCase()?"TH":"TD",$.scope&&($.scope=$.scope.toLowerCase(),"row"===$.scope?$.scope="Row":"both"===$.scope?$.scope="Both":"column"===$.scope&&($.scope="Column")),"boolean"==typeof this.opts.debug&&($.debug=this.opts.debug),_A&&ee.font(he,xe,Ie),$}function zi(h,c){this._cellClaim||(this._cellClaim=new Set);let y=0;return h.map(p=>{for((null==p||"object"!=typeof p)&&(p={text:p});this._cellClaim.has(`${c},${y}`);)y++;p=bs.call(this,p,c,y);for(let q=0;qc+y.colSpan,0)),this._rowHeights=[],this._rowYPos=[this._position.y],this._rowBuffer=new Set}function ts(h){let c=[],y=0,p=this._maxWidth;for(let _A=0;_A_A+1,0);y>=p?c.forEach((_A,ee)=>{this._columnWidths[ee]=_A.minWidth}):q>0&&c.forEach((_A,ee)=>{this._columnWidths[ee]=Math.max(p/q,_A.minWidth),_A.maxWidth>0&&(this._columnWidths[ee]=Math.min(this._columnWidths[ee],_A.maxWidth)),p-=this._columnWidths[ee],q--});let CA=this._position.x;this._columnXPos=Array.from(this._columnWidths,_A=>{const ee=CA;return CA+=_A,ee})}function Rs(h,c){h.forEach(_A=>this._rowBuffer.add(_A)),c>0&&(this._rowYPos[c]=this._rowYPos[c-1]+this._rowHeights[c-1]);const y=this._rowStyle(c);let p=[];this._rowBuffer.forEach(_A=>{_A.rowIndex+_A.rowSpan-1===c&&(p.push(ns.call(this,_A,y.height)),this._rowBuffer.delete(_A))});let q=y.height;"auto"===q&&(q=p.reduce((_A,ee)=>{let he=ee.textBounds.height+ee.padding.top+ee.padding.bottom;for(let Ie=0;Ie0&&(q=Math.min(q,y.maxHeight)),this._rowHeights[c]=q;let CA=!1;return q>this.document.page.contentHeight?(console.warn(new Error(`Row ${c} requested more than the safe page height, row has been clamped`).stack.slice(7)),this._rowHeights[c]=this.document.page.maxY()-this._rowYPos[c]):this._rowYPos[c]+q>=this.document.page.maxY()&&(this._rowYPos[c]=this.document.page.margins.top,CA=!0),{newPage:CA,toRender:p.map(_A=>ns.call(this,_A,q))}}function ns(h,c){let y=0;for(let s=0;s180&&h<270?(p=c/(2*CA),q=c/(2*_A)):(q=c/(2*CA),p=c/(2*_A));if(_A*p+CA*q>y){const Ie=CA*CA-_A*_A;0===h||180===h?(p=c,q=y):90===h||270===h?(p=y,q=c):h<90||h>180&&h<270?(p=(c*CA-y*_A)/Ie,q=(y*CA-c*_A)/Ie):(q=(c*CA-y*_A)/Ie,p=(y*CA-c*_A)/Ie)}return{width:Math.abs(p),height:Math.abs(q)}}(_A,q,CA),xe={align:h.align.x,ellipsis:!0,stroke:h.textStroke>0,fill:!0,width:ee.width,height:ee.height,rotation:_A,...h.textOptions};let $={x:0,y:0,width:0,height:0};if(h.text){const s=this.document._fontSource,d=this.document._fontSize,F=this.document._fontFamily;h.font?.src&&this.document.font(h.font.src,h.font?.family),h.font?.size&&this.document.fontSize(h.font.size);const W=this.document.boundsOfString(h.text,0,0,{...xe,rotation:0});xe.width=W.width,xe.height=W.height,$=this.document.boundsOfString(h.text,0,0,xe),this.document.font(s,F,d)}return{...h,textOptions:xe,x:this._columnXPos[h.colIndex],y:this._rowYPos[h.rowIndex],textX:this._columnXPos[h.colIndex]+h.padding.left,textY:this._rowYPos[h.rowIndex]+h.padding.top,width:y,height:p,textAllocatedHeight:CA,textAllocatedWidth:q,textBounds:$}}function li(){const h=this.opts.structParent;h&&(this._tableStruct=this.document.struct("Table"),this._tableStruct.dictionary.data.ID=this._id,h instanceof fn?h.add(this._tableStruct):h instanceof yi&&h.addStructure(this._tableStruct),this._headerRowLookup={},this._headerColumnLookup={})}function Ns(){this._tableStruct&&this._tableStruct.end()}function is(h,c,y){const p=this.document.struct("TR");p.dictionary.data.ID=new String(`${this._id}-${c}`),this._tableStruct.add(p),h.forEach(q=>y(q,p)),p.end()}function Ts(h,c,y){const p=this.document,q=p.struct(h.type,{title:h.title});q.dictionary.data.ID=h.id,c.add(q);const CA=h.padding,_A=h.border,ee={O:"Table",Width:h.width,Height:h.height,Padding:[CA.top,CA.bottom,CA.left,CA.right],RowSpan:h.rowSpan>1?h.rowSpan:void 0,ColSpan:h.colSpan>1?h.colSpan:void 0,BorderThickness:[_A.top,_A.bottom,_A.left,_A.right]};if("TH"===h.type){if("Row"===h.scope||"Both"===h.scope){for(let $=0;$this._headerColumnLookup[h.colIndex+s]).flat(),...Array.from({length:h.rowSpan},($,s)=>this._headerRowLookup[h.rowIndex+s]).flat()].filter(Boolean));he.size&&(ee.Headers=Array.from(he));const Ie=p._normalizeColor;null!=h.backgroundColor&&(ee.BackgroundColor=Ie(h.backgroundColor));const xe=[_A.top,_A.bottom,_A.left,_A.right];if(xe.some($=>$)){const $=h.borderColor;ee.BorderColor=[xe[0]?Ie($.top):null,xe[1]?Ie($.bottom):null,xe[2]?Ie($.left):null,xe[3]?Ie($.right):null]}Object.keys(ee).forEach($=>void 0===ee[$]&&delete ee[$]),q.dictionary.data.A=p.ref(ee),q.add(y),q.end(),q.dictionary.data.A.end()}function Ps(h,c){return this._tableStruct?is.call(this,h,c,Fi.bind(this)):h.forEach(y=>Fi.call(this,y)),this._rowYPos[c]+this._rowHeights[c]}function Fi(h,c){const y=()=>{null!=h.backgroundColor&&this.document.save().fillColor(h.backgroundColor).rect(h.x,h.y,h.width,h.height).fill().restore(),Us.call(this,h.border,h.borderColor,h.x,h.y,h.width,h.height),h.debug&&(this.document.save(),this.document.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),this.document.rect(h.x,h.y,h.width,h.height).stroke("green"),this.document.restore()),h.text&&ki.call(this,h)};c?Ts.call(this,h,c,y):y()}function ki(h){const c=this.document,y=c._fontSource,p=c._fontSize,q=c._fontFamily;h.customFont&&(h.font.src&&c.font(h.font.src,h.font.family),h.font.size&&c.fontSize(h.font.size));const CA=h.textX,_A=h.textY,ee=h.textAllocatedHeight,he=h.textAllocatedWidth,Ie=h.textBounds.width,xe=h.textBounds.height,F=(he-Ie)*("right"===h.align.x?1:"center"===h.align.x?.5:0),Z=(ee-xe)*("bottom"===h.align.y?1:"center"===h.align.y?.5:0),EA=F+-h.textBounds.x,PA=Z+-h.textBounds.y;h.debug&&(c.save(),c.dash(1,{space:1}).lineWidth(1).strokeOpacity(.3),h.text&&c.moveTo(CA+F,_A).lineTo(CA+F,_A+ee).moveTo(CA+F+Ie,_A).lineTo(CA+F+Ie,_A+ee).stroke("blue").moveTo(CA,_A+Z).lineTo(CA+he,_A+Z).moveTo(CA,_A+Z+xe).lineTo(CA+he,_A+Z+xe).stroke("green"),c.rect(CA,_A,he,ee).stroke("orange"),c.restore()),c.save().rect(CA,_A,he,ee).clip(),c.fillColor(h.textColor).strokeColor(h.textStrokeColor),h.textStroke>0&&c.lineWidth(h.textStroke),c.text(h.text,CA+EA,_A+PA,h.textOptions),c.restore(),h.font&&c.font(y,q,p)}function Us(h,c,y,p,q,CA,_A){h=Object.fromEntries(Object.entries(h).map(he=>{let Ie=he[0];return[Ie,_A&&!_A[Ie]?0:he[1]]}));const ee=this.document;[h.right,h.bottom,h.left].every(he=>he===h.top)?h.top>0&&ee.save().lineWidth(h.top).strokeColor(c.top).rect(y,p,q,CA).stroke().restore():(h.top>0&&ee.save().lineWidth(h.top).moveTo(y,p).strokeColor(c.top).lineTo(y+q,p).stroke().restore(),h.right>0&&ee.save().lineWidth(h.right).moveTo(y+q,p).strokeColor(c.right).lineTo(y+q,p+CA).stroke().restore(),h.bottom>0&&ee.save().lineWidth(h.bottom).moveTo(y+q,p+CA).strokeColor(c.bottom).lineTo(y,p+CA).stroke().restore(),h.left>0&&ee.save().lineWidth(h.left).moveTo(y,p+CA).strokeColor(c.left).lineTo(y,p).stroke().restore())}class zn{constructor(c,y){if(void 0===y&&(y={}),this.document=c,this.opts=Object.freeze(y),oi.call(this),li.call(this),this._currRowIndex=0,this._ended=!1,y.data){for(const p of y.data)this.row(p);return this.end()}}row(c,y){if(void 0===y&&(y=!1),this._ended)throw new Error(`Table was marked as ended on row ${this._currRowIndex}`);c=Array.from(c),c=zi.call(this,c,this._currRowIndex),0===this._currRowIndex&&vs.call(this,c);const p=Rs.call(this,c,this._currRowIndex),CA=p.toRender;p.newPage&&this.document.continueOnNewPage();const _A=Ps.call(this,CA,this._currRowIndex);return this.document.x=this._position.x,this.document.y=_A,y?this.end():(this._currRowIndex++,this)}end(){for(;this._rowBuffer?.size;)this.row([]);return this._ended=!0,Ns.call(this),this.document}}var Ls={initTables(){this._tableIndex=0},table(h){return new zn(this,h)}};class ss{constructor(){this._metadata='\n \n \n \n '}_closeTags(){this._metadata=this._metadata.concat('\n \n \n \n ')}append(c,y){void 0===y&&(y=!0),this._metadata=this._metadata.concat(c),y&&(this._metadata=this._metadata.concat("\n"))}getXML(){return this._metadata}getLength(){return this._metadata.length}end(){this._closeTags(),this._metadata=this._metadata.trim()}}var Gs={initMetadata(){this.metadata=new ss},appendXML(h,c){void 0===c&&(c=!0),this.metadata.append(h,c)},_addInfo(){this.appendXML(`\n \n ${this.info.CreationDate.toISOString().split(".")[0]+"Z"}\n ${this.info.Creator}\n \n `),(this.info.Title||this.info.Author||this.info.Subject)&&(this.appendXML('\n \n '),this.info.Title&&this.appendXML(`\n \n \n ${this.info.Title}\n \n \n `),this.info.Author&&this.appendXML(`\n \n \n ${this.info.Author}\n \n \n `),this.info.Subject&&this.appendXML(`\n \n \n ${this.info.Subject}\n \n \n `),this.appendXML("\n \n ")),this.appendXML(`\n \n ${this.info.Producer}`,!1),this.info.Keywords&&this.appendXML(`\n ${this.info.Keywords}`,!1),this.appendXML("\n \n ")},endMetadata(){this._addInfo(),this.metadata.end(),1.3!=this.version&&(this.metadataRef=this.ref({length:this.metadata.getLength(),Type:"Metadata",Subtype:"XML"}),this.metadataRef.compress=!1,this.metadataRef.write(I.from(this.metadata.getXML(),"utf-8")),this.metadataRef.end(),this._root.data.Metadata=this.metadataRef)}};class yi extends N.default.Readable{constructor(c){switch(void 0===c&&(c={}),super(c),this.options=c,c.pdfVersion){case"1.4":this.version=1.4;break;case"1.5":this.version=1.5;break;case"1.6":this.version=1.6;break;case"1.7":case"1.7ext3":this.version=1.7;break;default:this.version=1.3}this.compress=null==this.options.compress||this.options.compress,this._pageBuffer=[],this._pageBufferStart=0,this._offsets=[],this._waiting=0,this._ended=!1,this._offset=0;const y=this.ref({Type:"Pages",Count:0,Kids:[]}),p=this.ref({Dests:new O});if(this._root=this.ref({Type:"Catalog",Pages:y,Names:p}),this.options.lang&&(this._root.data.Lang=new String(this.options.lang)),this.options.pageLayout){const q=this.options.pageLayout;this._root.data.PageLayout=q.charAt(0).toUpperCase()+q.slice(1)}if(this.page=null,this.initMetadata(),this.initColor(),this.initVector(),this.initFonts(c.font),this.initText(),this.initImages(),this.initOutline(),this.initMarkings(c),this.initTables(),this.initSubset(c),this.info={Producer:"PDFKit",Creator:"PDFKit",CreationDate:new Date},this.options.info)for(let q in this.options.info)this.info[q]=this.options.info[q];this.options.displayTitle&&(this._root.data.ViewerPreferences=this.ref({DisplayDocTitle:!0})),this._id=ie.generateFileID(this.info),this._security=ie.create(this,c),this._write(`%PDF-${this.version}`),this._write("%\xff\xff\xff\xff"),!1!==this.options.autoFirstPage&&this.addPage()}addPage(c){null==c&&(c=this.options),this.options.bufferPages||this.flushPages(),this.page=new U(this,c),this._pageBuffer.push(this.page);const y=this._root.data.Pages.data;return y.Kids.push(this.page.dictionary),y.Count++,this.x=this.page.margins.left,this.y=this.page.margins.top,this._ctm=[1,0,0,1,0,0],this.transform(1,0,0,-1,0,this.page.height),this.emit("pageAdded"),this}continueOnNewPage(c){const y=this.endPageMarkings(this.page);return this.addPage(c??this.page._options),this.initPageMarkings(y),this}bufferedPageRange(){return{start:this._pageBufferStart,count:this._pageBuffer.length}}switchToPage(c){let y;if(!(y=this._pageBuffer[c-this._pageBufferStart]))throw new Error(`switchToPage(${c}) out of bounds, current buffer covers pages ${this._pageBufferStart} to ${this._pageBufferStart+this._pageBuffer.length-1}`);return this.page=y}flushPages(){const c=this._pageBuffer;this._pageBuffer=[],this._pageBufferStart+=c.length;for(let y of c)this.endPageMarkings(y),y.end()}addNamedDestination(c){for(var y=arguments.length,p=new Array(y>1?y-1:0),q=1;q{Object.assign(yi.prototype,h)};Yn(Gs),Yn(bt),Yn(je),Yn(Wt),Yn(Cn),Yn(ri),Yn(ai),Yn(Xi),Yn(Ms),Yn(ps),Yn(As),Yn(Zn),Yn(Ls),yi.LineWrapper=Bn},6092(eA,Q,f){var t=f(2736),g=f(2022);typeof g.pdfMake>"u"&&(g.pdfMake=t),eA.exports=t},656(eA,Q,f){"use strict";Q.polyval=Q.ghash=void 0;const g=f(5181),I=16,N=new Uint8Array(16),K=(0,g.u32)(N),B=(P,rA,QA,NA)=>({s3:QA<<31|NA>>>1,s2:rA<<31|QA>>>1,s1:P<<31|rA>>>1,s0:P>>>1^225<<24&-(1&NA)}),j=P=>(P>>>0&255)<<24|(P>>>8&255)<<16|(P>>>16&255)<<8|P>>>24&255;class aA{constructor(rA,QA){this.blockLen=I,this.outputLen=I,this.s0=0,this.s1=0,this.s2=0,this.s3=0,this.finished=!1,rA=(0,g.toBytes)(rA),(0,g.abytes)(rA,16);const NA=(0,g.createView)(rA);let oA=NA.getUint32(0,!1),uA=NA.getUint32(4,!1),dA=NA.getUint32(8,!1),RA=NA.getUint32(12,!1);const nA=[];for(let VA=0;VA<128;VA++)nA.push({s0:j(oA),s1:j(uA),s2:j(dA),s3:j(RA)}),({s0:oA,s1:uA,s2:dA,s3:RA}=B(oA,uA,dA,RA));const H=(P=QA||1024)>65536?8:P>1024?4:2;var P;if(![1,2,4,8].includes(H))throw new Error("ghash: invalid window size, expected 2, 4 or 8");this.W=H;const z=128/H,OA=this.windowSize=2**H,wA=[];for(let VA=0;VA>>H-xA-1&1))continue;const{s0:HA,s1:cA,s2:J,s3:U}=nA[H*VA+xA];hA^=HA,fA^=cA,UA^=J,yA^=U}wA.push({s0:hA,s1:fA,s2:UA,s3:yA})}this.t=wA}_updateBlock(rA,QA,NA,oA){rA^=this.s0,QA^=this.s1,NA^=this.s2,oA^=this.s3;const{W:uA,t:dA,windowSize:RA}=this;let nA=0,H=0,pA=0,z=0;const OA=(1<>>8*kA&255;for(let fA=8/uA-1;fA>=0;fA--){const UA=hA>>>uA*fA&OA,{s0:yA,s1:xA,s2:Ee,s3:HA}=dA[wA*RA+UA];nA^=yA,H^=xA,pA^=Ee,z^=HA,wA+=1}}this.s0=nA,this.s1=H,this.s2=pA,this.s3=z}update(rA){(0,g.aexists)(this),rA=(0,g.toBytes)(rA),(0,g.abytes)(rA);const QA=(0,g.u32)(rA),NA=Math.floor(rA.length/I),oA=rA.length%I;for(let uA=0;uA>>1|QA,QA=(1&oA)<<7}return P[0]^=225&-rA,P}((0,g.copyBytes)(rA));super(NA,QA),(0,g.clean)(NA)}update(rA){rA=(0,g.toBytes)(rA),(0,g.aexists)(this);const QA=(0,g.u32)(rA),NA=rA.length%I,oA=Math.floor(rA.length/I);for(let uA=0;uAP(oA,NA.length).update((0,g.toBytes)(NA)).digest(),QA=P(new Uint8Array(16),0);return rA.outputLen=QA.outputLen,rA.blockLen=QA.blockLen,rA.create=(NA,oA)=>P(NA,oA),rA}Q.ghash=L((P,rA)=>new aA(P,rA)),Q.polyval=L((P,rA)=>new AA(P,rA))},2651(eA,Q,f){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.unsafe=Q.aeskwp=Q.aeskw=Q.siv=Q.gcmsiv=Q.gcm=Q.cfb=Q.cbc=Q.ecb=Q.ctr=void 0;const t=f(656),g=f(5181),I=16,K=new Uint8Array(I);function B(J){return J<<1^283&-(J>>7)}function j(J,U){let O=0;for(;U>0;U>>=1)O^=J&-(1&U),J=B(J);return O}const tA=(()=>{const J=new Uint8Array(256);for(let O=0,lA=1;O<256;O++,lA^=B(lA))J[O]=lA;const U=new Uint8Array(256);U[0]=99;for(let O=0;O<255;O++){let lA=J[255-O];lA|=lA<<8,U[J[O]]=255&(lA^lA>>4^lA>>5^lA>>6^lA>>7^99)}return(0,g.clean)(J),U})(),w=tA.map((J,U)=>tA.indexOf(U)),aA=J=>J<<24|J>>>8,AA=J=>J<<8|J>>>24,L=J=>J<<24&4278190080|J<<8&16711680|J>>>8&65280|J>>>24&255;function P(J,U){if(256!==J.length)throw new Error("Wrong sbox length");const O=new Uint32Array(256).map((C,b)=>U(J[b])),lA=O.map(AA),LA=lA.map(AA),JA=LA.map(AA),$A=new Uint32Array(65536),IA=new Uint32Array(65536),gA=new Uint16Array(65536);for(let C=0;C<256;C++)for(let b=0;b<256;b++){const R=256*C+b;$A[R]=O[C]^lA[b],IA[R]=LA[C]^JA[b],gA[R]=J[C]<<8|J[b]}return{sbox:J,sbox2:gA,T0:O,T1:lA,T2:LA,T3:JA,T01:$A,T23:IA}}const rA=P(tA,J=>j(J,3)<<24|J<<16|J<<8|j(J,2)),QA=P(w,J=>j(J,11)<<24|j(J,13)<<16|j(J,9)<<8|j(J,14)),NA=(()=>{const J=new Uint8Array(16);for(let U=0,O=1;U<16;U++,O=B(O))J[U]=O;return J})();function oA(J){(0,g.abytes)(J);const U=J.length;if(![16,24,32].includes(U))throw new Error("aes: invalid key size, should be 16, 24 or 32, got "+U);const{sbox2:O}=rA,lA=[];(0,g.isAligned32)(J)||lA.push(J=(0,g.copyBytes)(J));const LA=(0,g.u32)(J),JA=LA.length,$A=gA=>RA(O,gA,gA,gA,gA),IA=new Uint32Array(U+28);IA.set(LA);for(let gA=JA;gA6&&gA%JA===4&&(C=$A(C)),IA[gA]=IA[gA-JA]^C}return(0,g.clean)(...lA),IA}function uA(J){const U=oA(J),O=U.slice(),lA=U.length,{sbox2:LA}=rA,{T0:JA,T1:$A,T2:IA,T3:gA}=QA;for(let C=0;C>>8&255]^IA[R>>>16&255]^gA[R>>>24]}return O}function dA(J,U,O,lA,LA,JA){return J[O<<8&65280|lA>>>8&255]^U[LA>>>8&65280|JA>>>24&255]}function RA(J,U,O,lA,LA){return J[255&U|65280&O]|J[lA>>>16&255|LA>>>16&65280]<<16}function nA(J,U,O,lA,LA){const{sbox2:JA,T01:$A,T23:IA}=rA;let gA=0;U^=J[gA++],O^=J[gA++],lA^=J[gA++],LA^=J[gA++];const C=J.length/4-2;for(let X=0;X=0;KA--)YA=YA+(255&JA[KA])|0,JA[KA]=255&YA,YA>>>=8;({s0:IA,s1:gA,s2:C,s3:b}=nA(J,$A[0],$A[1],$A[2],$A[3]))}const D=I*Math.floor(R.length/4);if(D>>0,IA.setUint32(b,M,U),({s0:D,s1:X,s2:YA,s3:KA}=nA(J,$A[0],$A[1],$A[2],$A[3]));const bA=I*Math.floor(gA.length/4);if(bA16)throw new Error("aes/pcks5: wrong padding");const LA=J.subarray(0,-lA);for(let JA=0;JAlA(LA,JA),decrypt:(LA,JA)=>lA(LA,JA)}}),Q.ecb=(0,g.wrapCipher)({blockSize:16},function(U,O={}){const lA=!O.disablePadding;return{encrypt(LA,JA){const{b:$A,o:IA,out:gA}=wA(LA,lA,JA),C=oA(U);let b=0;for(;b+4<=$A.length;){const{s0:R,s1:M,s2:D,s3:X}=nA(C,$A[b+0],$A[b+1],$A[b+2],$A[b+3]);IA[b++]=R,IA[b++]=M,IA[b++]=D,IA[b++]=X}if(lA){const R=kA(LA.subarray(4*b)),{s0:M,s1:D,s2:X,s3:YA}=nA(C,R[0],R[1],R[2],R[3]);IA[b++]=M,IA[b++]=D,IA[b++]=X,IA[b++]=YA}return(0,g.clean)(C),gA},decrypt(LA,JA){OA(LA);const $A=uA(U);JA=(0,g.getOutput)(LA.length,JA);const IA=[$A];(0,g.isAligned32)(LA)||IA.push(LA=(0,g.copyBytes)(LA)),(0,g.complexOverlapBytes)(LA,JA);const gA=(0,g.u32)(LA),C=(0,g.u32)(JA);for(let b=0;b+4<=gA.length;){const{s0:R,s1:M,s2:D,s3:X}=H($A,gA[b+0],gA[b+1],gA[b+2],gA[b+3]);C[b++]=R,C[b++]=M,C[b++]=D,C[b++]=X}return(0,g.clean)(...IA),VA(JA,lA)}}}),Q.cbc=(0,g.wrapCipher)({blockSize:16,nonceLength:16},function(U,O,lA={}){const LA=!lA.disablePadding;return{encrypt(JA,$A){const IA=oA(U),{b:gA,o:C,out:b}=wA(JA,LA,$A);let R=O;const M=[IA];(0,g.isAligned32)(R)||M.push(R=(0,g.copyBytes)(R));const D=(0,g.u32)(R);let X=D[0],YA=D[1],KA=D[2],bA=D[3],le=0;for(;le+4<=gA.length;)X^=gA[le+0],YA^=gA[le+1],KA^=gA[le+2],bA^=gA[le+3],({s0:X,s1:YA,s2:KA,s3:bA}=nA(IA,X,YA,KA,bA)),C[le++]=X,C[le++]=YA,C[le++]=KA,C[le++]=bA;if(LA){const ve=kA(JA.subarray(4*le));X^=ve[0],YA^=ve[1],KA^=ve[2],bA^=ve[3],({s0:X,s1:YA,s2:KA,s3:bA}=nA(IA,X,YA,KA,bA)),C[le++]=X,C[le++]=YA,C[le++]=KA,C[le++]=bA}return(0,g.clean)(...M),b},decrypt(JA,$A){OA(JA);const IA=uA(U);let gA=O;const C=[IA];(0,g.isAligned32)(gA)||C.push(gA=(0,g.copyBytes)(gA));const b=(0,g.u32)(gA);$A=(0,g.getOutput)(JA.length,$A),(0,g.isAligned32)(JA)||C.push(JA=(0,g.copyBytes)(JA)),(0,g.complexOverlapBytes)(JA,$A);const R=(0,g.u32)(JA),M=(0,g.u32)($A);let D=b[0],X=b[1],YA=b[2],KA=b[3];for(let bA=0;bA+4<=R.length;){const le=D,ve=X,Ne=YA,Te=KA;D=R[bA+0],X=R[bA+1],YA=R[bA+2],KA=R[bA+3];const{s0:ze,s1:Oe,s2:oe,s3:sA}=H(IA,D,X,YA,KA);M[bA++]=ze^le,M[bA++]=Oe^ve,M[bA++]=oe^Ne,M[bA++]=sA^Te}return(0,g.clean)(...C),VA($A,LA)}}}),Q.cfb=(0,g.wrapCipher)({blockSize:16,nonceLength:16},function(U,O){function lA(LA,JA,$A){(0,g.abytes)(LA);const IA=LA.length;if($A=(0,g.getOutput)(IA,$A),(0,g.overlapBytes)(LA,$A))throw new Error("overlapping src and dst not supported.");const gA=oA(U);let C=O;const b=[gA];(0,g.isAligned32)(C)||b.push(C=(0,g.copyBytes)(C)),(0,g.isAligned32)(LA)||b.push(LA=(0,g.copyBytes)(LA));const R=(0,g.u32)(LA),M=(0,g.u32)($A),D=JA?M:R,X=(0,g.u32)(C);let YA=X[0],KA=X[1],bA=X[2],le=X[3];for(let Ne=0;Ne+4<=R.length;){const{s0:Te,s1:ze,s2:Oe,s3:oe}=nA(gA,YA,KA,bA,le);M[Ne+0]=R[Ne+0]^Te,M[Ne+1]=R[Ne+1]^ze,M[Ne+2]=R[Ne+2]^Oe,M[Ne+3]=R[Ne+3]^oe,YA=D[Ne++],KA=D[Ne++],bA=D[Ne++],le=D[Ne++]}const ve=I*Math.floor(R.length/4);if(velA(LA,!0,JA),decrypt:(LA,JA)=>lA(LA,!1,JA)}}),Q.gcm=(0,g.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(U,O,lA){if(O.length<8)throw new Error("aes/gcm: invalid nonce length");function JA(IA,gA,C){const b=hA(t.ghash,!1,IA,C,lA);for(let R=0;RlA=>{if(!Number.isSafeInteger(lA)||U>lA||lA>O)throw new Error(J+": expected value in range ["+U+".."+O+"], got "+lA)};function UA(J){return J instanceof Uint32Array||ArrayBuffer.isView(J)&&"Uint32Array"===J.constructor.name}function yA(J,U){if((0,g.abytes)(U,16),!UA(J))throw new Error("_encryptBlock accepts result of expandKeyLE");const O=(0,g.u32)(U);let{s0:lA,s1:LA,s2:JA,s3:$A}=nA(J,O[0],O[1],O[2],O[3]);return O[0]=lA,O[1]=LA,O[2]=JA,O[3]=$A,U}function xA(J,U){if((0,g.abytes)(U,16),!UA(J))throw new Error("_decryptBlock accepts result of expandKeyLE");const O=(0,g.u32)(U);let{s0:lA,s1:LA,s2:JA,s3:$A}=H(J,O[0],O[1],O[2],O[3]);return O[0]=lA,O[1]=LA,O[2]=JA,O[3]=$A,U}Q.gcmsiv=(0,g.wrapCipher)({blockSize:16,nonceLength:12,tagLength:16,varSizeNonce:!0},function(U,O,lA){const JA=fA("AAD",0,68719476736),$A=fA("plaintext",0,2**36),IA=fA("nonce",12,12),gA=fA("ciphertext",16,2**36+16);function C(){const M=oA(U),D=new Uint8Array(U.length),X=new Uint8Array(16),YA=[M,D];let KA=O;(0,g.isAligned32)(KA)||YA.push(KA=(0,g.copyBytes)(KA));const bA=(0,g.u32)(KA);let le=0,ve=bA[0],Ne=bA[1],Te=bA[2],ze=0;for(const oe of[X,D].map(g.u32)){const sA=(0,g.u32)(oe);for(let S=0;S=2**32)throw new Error("plaintext should be less than 4gb");const O=oA(J);if(16===U.length)yA(O,U);else{const lA=(0,g.u32)(U);let LA=lA[0],JA=lA[1];for(let $A=0,IA=1;$A<6;$A++)for(let gA=2;gA=2**32)throw new Error("ciphertext should be less than 4gb");const O=uA(J),lA=U.length/8-1;if(1===lA)xA(O,U);else{const LA=(0,g.u32)(U);let JA=LA[0],$A=LA[1];for(let IA=0,gA=6*lA;IA<6;IA++)for(let C=2*lA;C>=1;C-=2,gA--){$A^=L(gA);const{s0:b,s1:R,s2:M,s3:D}=H(O,JA,$A,LA[C],LA[C+1]);JA=b,$A=R,LA[C]=M,LA[C+1]=D}LA[0]=JA,LA[1]=$A}O.fill(0)}},HA=new Uint8Array(8).fill(166);Q.aeskw=(0,g.wrapCipher)({blockSize:8},J=>({encrypt(U){if(!U.length||U.length%8!=0)throw new Error("invalid plaintext length");if(8===U.length)throw new Error("8-byte keys not allowed in AESKW, use AESKWP instead");const O=(0,g.concatBytes)(HA,U);return Ee.encrypt(J,O),O},decrypt(U){if(U.length%8!=0||U.length<24)throw new Error("invalid ciphertext length");const O=(0,g.copyBytes)(U);if(Ee.decrypt(J,O),!(0,g.equalBytes)(O.subarray(0,8),HA))throw new Error("integrity check failed");return O.subarray(0,8).fill(0),O.subarray(8)}}));const cA=2790873510;Q.aeskwp=(0,g.wrapCipher)({blockSize:8},J=>({encrypt(U){if(!U.length)throw new Error("invalid plaintext length");const O=8*Math.ceil(U.length/8),lA=new Uint8Array(8+O);lA.set(U,8);const LA=(0,g.u32)(lA);return LA[0]=cA,LA[1]=L(U.length),Ee.encrypt(J,lA),lA},decrypt(U){if(U.length<16)throw new Error("invalid ciphertext length");const O=(0,g.copyBytes)(U),lA=(0,g.u32)(O);Ee.decrypt(J,O);const LA=L(lA[1])>>>0,JA=8*Math.ceil(LA/8);if(lA[0]!==cA||O.length-8!==JA)throw new Error("integrity check failed");for(let $A=LA;$A0&&!J.includes(cA.length))throw new Error("Uint8Array expected of length "+J+", got length="+cA.length)}function aA(cA){return new DataView(cA.buffer,cA.byteOffset,cA.byteLength)}function z(cA,J){return cA.buffer===J.buffer&&cA.byteOffset>lA&LA),$A=Number(U&LA),gA=O?0:4;cA.setUint32(J+(O?4:0),JA,O),cA.setUint32(J+gA,$A,O)}function Ee(cA){return cA.byteOffset%4==0}function HA(cA){return Uint8Array.from(cA)}Q.wrapCipher=Q.qv=void 0,Q.abytes=N,Q.aexists=function v(cA,J=!0){if(cA.destroyed)throw new Error("Hash instance has been destroyed");if(J&&cA.finished)throw new Error("Hash#digest() has already been called")},Q.aoutput=function B(cA,J){N(cA);const U=J.outputLen;if(cA.length{function U(O,...lA){if(N(O),!Q.qv)throw new Error("Non little-endian hardware is not yet supported");if(void 0!==cA.nonceLength){const C=lA[0];if(!C)throw new Error("nonce / iv required");cA.varSizeNonce?N(C):N(C,cA.nonceLength)}const LA=cA.tagLength;LA&&void 0!==lA[1]&&N(lA[1]);const JA=J(O,...lA),$A=(C,b)=>{if(void 0!==b){if(2!==C)throw new Error("cipher output not supported");N(b)}};let IA=!1;return{encrypt(C,b){if(IA)throw new Error("cannot encrypt() twice with same key + nonce");return IA=!0,N(C),$A(JA.encrypt.length,b),JA.encrypt(C,b)},decrypt(C,b){if(N(C),LA&&C.lengthaA-L&&(this.process(w,0),L=0);for(let oA=L;oA>aA&AA),P=Number(tA&AA),QA=w?0:4;B.setUint32(j+(w?4:0),L,w),B.setUint32(j+QA,P,w)})(w,aA-8,BigInt(8*this.length),AA),this.process(w,0);const P=(0,g.createView)(j),rA=this.outputLen;if(rA%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const QA=rA/4,NA=this.get();if(QA>NA.length)throw new Error("_sha2: outputLen bigger than state");for(let oA=0;oA>>0)+(kA>>>0);return{h:OA+VA+(hA/4294967296|0)|0,l:0|hA}},Q.split=function N(OA,wA=!1){const VA=OA.length;let kA=new Uint32Array(VA),hA=new Uint32Array(VA);for(let fA=0;fA>g&t)}:{h:0|Number(OA>>g&t),l:0|Number(OA&t)}}Q.shrSH=(OA,wA,VA)=>OA>>>VA;Q.shrSL=(OA,wA,VA)=>OA<<32-VA|wA>>>VA;Q.rotrSH=(OA,wA,VA)=>OA>>>VA|wA<<32-VA;Q.rotrSL=(OA,wA,VA)=>OA<<32-VA|wA>>>VA;Q.rotrBH=(OA,wA,VA)=>OA<<64-VA|wA>>>VA-32;Q.rotrBL=(OA,wA,VA)=>OA>>>VA-32|wA<<64-VA;Q.add3L=(OA,wA,VA)=>(OA>>>0)+(wA>>>0)+(VA>>>0);Q.add3H=(OA,wA,VA,kA)=>wA+VA+kA+(OA/2**32|0)|0;Q.add4L=(OA,wA,VA,kA)=>(OA>>>0)+(wA>>>0)+(VA>>>0)+(kA>>>0);Q.add4H=(OA,wA,VA,kA,hA)=>wA+VA+kA+hA+(OA/2**32|0)|0;Q.add5L=(OA,wA,VA,kA,hA)=>(OA>>>0)+(wA>>>0)+(VA>>>0)+(kA>>>0)+(hA>>>0);Q.add5H=(OA,wA,VA,kA,hA,fA)=>wA+VA+kA+hA+fA+(OA/2**32|0)|0},2491(eA,Q){"use strict";Q.crypto=void 0,Q.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},2650(eA,Q,f){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.sha512_224=Q.sha512_256=Q.sha384=Q.sha512=Q.sha224=Q.sha256=Q.SHA512_256=Q.SHA512_224=Q.SHA384=Q.SHA512=Q.SHA224=Q.SHA256=void 0;const t=f(6784),g=f(4996),I=f(3973),N=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),K=new Uint32Array(64);class v extends t.HashMD{constructor(dA=32){super(64,dA,8,!1),this.A=0|t.SHA256_IV[0],this.B=0|t.SHA256_IV[1],this.C=0|t.SHA256_IV[2],this.D=0|t.SHA256_IV[3],this.E=0|t.SHA256_IV[4],this.F=0|t.SHA256_IV[5],this.G=0|t.SHA256_IV[6],this.H=0|t.SHA256_IV[7]}get(){const{A:dA,B:RA,C:nA,D:H,E:pA,F:z,G:OA,H:wA}=this;return[dA,RA,nA,H,pA,z,OA,wA]}set(dA,RA,nA,H,pA,z,OA,wA){this.A=0|dA,this.B=0|RA,this.C=0|nA,this.D=0|H,this.E=0|pA,this.F=0|z,this.G=0|OA,this.H=0|wA}process(dA,RA){for(let hA=0;hA<16;hA++,RA+=4)K[hA]=dA.getUint32(RA,!1);for(let hA=16;hA<64;hA++){const fA=K[hA-15],UA=K[hA-2],yA=(0,I.rotr)(fA,7)^(0,I.rotr)(fA,18)^fA>>>3,xA=(0,I.rotr)(UA,17)^(0,I.rotr)(UA,19)^UA>>>10;K[hA]=xA+K[hA-7]+yA+K[hA-16]|0}let{A:nA,B:H,C:pA,D:z,E:OA,F:wA,G:VA,H:kA}=this;for(let hA=0;hA<64;hA++){const UA=kA+((0,I.rotr)(OA,6)^(0,I.rotr)(OA,11)^(0,I.rotr)(OA,25))+(0,t.Chi)(OA,wA,VA)+N[hA]+K[hA]|0,xA=((0,I.rotr)(nA,2)^(0,I.rotr)(nA,13)^(0,I.rotr)(nA,22))+(0,t.Maj)(nA,H,pA)|0;kA=VA,VA=wA,wA=OA,OA=z+UA|0,z=pA,pA=H,H=nA,nA=UA+xA|0}nA=nA+this.A|0,H=H+this.B|0,pA=pA+this.C|0,z=z+this.D|0,OA=OA+this.E|0,wA=wA+this.F|0,VA=VA+this.G|0,kA=kA+this.H|0,this.set(nA,H,pA,z,OA,wA,VA,kA)}roundClean(){(0,I.clean)(K)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,I.clean)(this.buffer)}}Q.SHA256=v;class B extends v{constructor(){super(28),this.A=0|t.SHA224_IV[0],this.B=0|t.SHA224_IV[1],this.C=0|t.SHA224_IV[2],this.D=0|t.SHA224_IV[3],this.E=0|t.SHA224_IV[4],this.F=0|t.SHA224_IV[5],this.G=0|t.SHA224_IV[6],this.H=0|t.SHA224_IV[7]}}Q.SHA224=B;const j=g.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(uA=>BigInt(uA))),tA=j[0],w=j[1],aA=new Uint32Array(80),AA=new Uint32Array(80);class L extends t.HashMD{constructor(dA=64){super(128,dA,16,!1),this.Ah=0|t.SHA512_IV[0],this.Al=0|t.SHA512_IV[1],this.Bh=0|t.SHA512_IV[2],this.Bl=0|t.SHA512_IV[3],this.Ch=0|t.SHA512_IV[4],this.Cl=0|t.SHA512_IV[5],this.Dh=0|t.SHA512_IV[6],this.Dl=0|t.SHA512_IV[7],this.Eh=0|t.SHA512_IV[8],this.El=0|t.SHA512_IV[9],this.Fh=0|t.SHA512_IV[10],this.Fl=0|t.SHA512_IV[11],this.Gh=0|t.SHA512_IV[12],this.Gl=0|t.SHA512_IV[13],this.Hh=0|t.SHA512_IV[14],this.Hl=0|t.SHA512_IV[15]}get(){const{Ah:dA,Al:RA,Bh:nA,Bl:H,Ch:pA,Cl:z,Dh:OA,Dl:wA,Eh:VA,El:kA,Fh:hA,Fl:fA,Gh:UA,Gl:yA,Hh:xA,Hl:Ee}=this;return[dA,RA,nA,H,pA,z,OA,wA,VA,kA,hA,fA,UA,yA,xA,Ee]}set(dA,RA,nA,H,pA,z,OA,wA,VA,kA,hA,fA,UA,yA,xA,Ee){this.Ah=0|dA,this.Al=0|RA,this.Bh=0|nA,this.Bl=0|H,this.Ch=0|pA,this.Cl=0|z,this.Dh=0|OA,this.Dl=0|wA,this.Eh=0|VA,this.El=0|kA,this.Fh=0|hA,this.Fl=0|fA,this.Gh=0|UA,this.Gl=0|yA,this.Hh=0|xA,this.Hl=0|Ee}process(dA,RA){for(let J=0;J<16;J++,RA+=4)aA[J]=dA.getUint32(RA),AA[J]=dA.getUint32(RA+=4);for(let J=16;J<80;J++){const U=0|aA[J-15],O=0|AA[J-15],lA=g.rotrSH(U,O,1)^g.rotrSH(U,O,8)^g.shrSH(U,O,7),LA=g.rotrSL(U,O,1)^g.rotrSL(U,O,8)^g.shrSL(U,O,7),JA=0|aA[J-2],$A=0|AA[J-2],IA=g.rotrSH(JA,$A,19)^g.rotrBH(JA,$A,61)^g.shrSH(JA,$A,6),gA=g.rotrSL(JA,$A,19)^g.rotrBL(JA,$A,61)^g.shrSL(JA,$A,6),C=g.add4L(LA,gA,AA[J-7],AA[J-16]),b=g.add4H(C,lA,IA,aA[J-7],aA[J-16]);aA[J]=0|b,AA[J]=0|C}let{Ah:nA,Al:H,Bh:pA,Bl:z,Ch:OA,Cl:wA,Dh:VA,Dl:kA,Eh:hA,El:fA,Fh:UA,Fl:yA,Gh:xA,Gl:Ee,Hh:HA,Hl:cA}=this;for(let J=0;J<80;J++){const U=g.rotrSH(hA,fA,14)^g.rotrSH(hA,fA,18)^g.rotrBH(hA,fA,41),O=g.rotrSL(hA,fA,14)^g.rotrSL(hA,fA,18)^g.rotrBL(hA,fA,41),lA=hA&UA^~hA&xA,JA=g.add5L(cA,O,fA&yA^~fA&Ee,w[J],AA[J]),$A=g.add5H(JA,HA,U,lA,tA[J],aA[J]),IA=0|JA,gA=g.rotrSH(nA,H,28)^g.rotrBH(nA,H,34)^g.rotrBH(nA,H,39),C=g.rotrSL(nA,H,28)^g.rotrBL(nA,H,34)^g.rotrBL(nA,H,39),b=nA&pA^nA&OA^pA&OA,R=H&z^H&wA^z&wA;HA=0|xA,cA=0|Ee,xA=0|UA,Ee=0|yA,UA=0|hA,yA=0|fA,({h:hA,l:fA}=g.add(0|VA,0|kA,0|$A,0|IA)),VA=0|OA,kA=0|wA,OA=0|pA,wA=0|z,pA=0|nA,z=0|H;const M=g.add3L(IA,C,R);nA=g.add3H(M,$A,gA,b),H=0|M}({h:nA,l:H}=g.add(0|this.Ah,0|this.Al,0|nA,0|H)),({h:pA,l:z}=g.add(0|this.Bh,0|this.Bl,0|pA,0|z)),({h:OA,l:wA}=g.add(0|this.Ch,0|this.Cl,0|OA,0|wA)),({h:VA,l:kA}=g.add(0|this.Dh,0|this.Dl,0|VA,0|kA)),({h:hA,l:fA}=g.add(0|this.Eh,0|this.El,0|hA,0|fA)),({h:UA,l:yA}=g.add(0|this.Fh,0|this.Fl,0|UA,0|yA)),({h:xA,l:Ee}=g.add(0|this.Gh,0|this.Gl,0|xA,0|Ee)),({h:HA,l:cA}=g.add(0|this.Hh,0|this.Hl,0|HA,0|cA)),this.set(nA,H,pA,z,OA,wA,VA,kA,hA,fA,UA,yA,xA,Ee,HA,cA)}roundClean(){(0,I.clean)(aA,AA)}destroy(){(0,I.clean)(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}Q.SHA512=L;class P extends L{constructor(){super(48),this.Ah=0|t.SHA384_IV[0],this.Al=0|t.SHA384_IV[1],this.Bh=0|t.SHA384_IV[2],this.Bl=0|t.SHA384_IV[3],this.Ch=0|t.SHA384_IV[4],this.Cl=0|t.SHA384_IV[5],this.Dh=0|t.SHA384_IV[6],this.Dl=0|t.SHA384_IV[7],this.Eh=0|t.SHA384_IV[8],this.El=0|t.SHA384_IV[9],this.Fh=0|t.SHA384_IV[10],this.Fl=0|t.SHA384_IV[11],this.Gh=0|t.SHA384_IV[12],this.Gl=0|t.SHA384_IV[13],this.Hh=0|t.SHA384_IV[14],this.Hl=0|t.SHA384_IV[15]}}Q.SHA384=P;const rA=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),QA=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);class NA extends L{constructor(){super(28),this.Ah=0|rA[0],this.Al=0|rA[1],this.Bh=0|rA[2],this.Bl=0|rA[3],this.Ch=0|rA[4],this.Cl=0|rA[5],this.Dh=0|rA[6],this.Dl=0|rA[7],this.Eh=0|rA[8],this.El=0|rA[9],this.Fh=0|rA[10],this.Fl=0|rA[11],this.Gh=0|rA[12],this.Gl=0|rA[13],this.Hh=0|rA[14],this.Hl=0|rA[15]}}Q.SHA512_224=NA;class oA extends L{constructor(){super(32),this.Ah=0|QA[0],this.Al=0|QA[1],this.Bh=0|QA[2],this.Bl=0|QA[3],this.Ch=0|QA[4],this.Cl=0|QA[5],this.Dh=0|QA[6],this.Dl=0|QA[7],this.Eh=0|QA[8],this.El=0|QA[9],this.Fh=0|QA[10],this.Fl=0|QA[11],this.Gh=0|QA[12],this.Gl=0|QA[13],this.Hh=0|QA[14],this.Hl=0|QA[15]}}Q.SHA512_256=oA,Q.sha256=(0,I.createHasher)(()=>new v),Q.sha224=(0,I.createHasher)(()=>new B),Q.sha512=(0,I.createHasher)(()=>new L),Q.sha384=(0,I.createHasher)(()=>new P),Q.sha512_256=(0,I.createHasher)(()=>new oA),Q.sha512_224=(0,I.createHasher)(()=>new NA)},3973(eA,Q,f){"use strict";Object.defineProperty(Q,"__esModule",{value:!0}),Q.wrapXOFConstructorWithOpts=Q.wrapConstructorWithOpts=Q.wrapConstructor=Q.Hash=Q.nextTick=Q.swap32IfBE=Q.byteSwapIfBE=Q.swap8IfBE=Q.isLE=void 0,Q.isBytes=g,Q.anumber=I,Q.abytes=N,Q.ahash=function K(HA){if("function"!=typeof HA||"function"!=typeof HA.create)throw new Error("Hash should be wrapped by utils.createHasher");I(HA.outputLen),I(HA.blockLen)},Q.aexists=function v(HA,cA=!0){if(HA.destroyed)throw new Error("Hash instance has been destroyed");if(cA&&HA.finished)throw new Error("Hash#digest() has already been called")},Q.aoutput=function B(HA,cA){N(HA);const J=cA.outputLen;if(HA.length>>cA},Q.rotl=function L(HA,cA){return HA<>>32-cA>>>0},Q.byteSwap=P,Q.byteSwap32=rA,Q.bytesToHex=function oA(HA){if(N(HA),QA)return HA.toHex();let cA="";for(let J=0;J0&&!cA.includes(HA.length))throw new Error("Uint8Array expected of length "+cA+", got length="+HA.length)}function P(HA){return HA<<24&4278190080|HA<<8&16711680|HA>>>8&65280|HA>>>24&255}function rA(HA){for(let cA=0;cAHA:HA=>P(HA),Q.byteSwapIfBE=Q.swap8IfBE,Q.swap32IfBE=Q.isLE?HA=>HA:rA;const QA="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,NA=Array.from({length:256},(HA,cA)=>cA.toString(16).padStart(2,"0"));function dA(HA){return HA>=48&&HA<=57?HA-48:HA>=65&&HA<=70?HA-55:HA>=97&&HA<=102?HA-87:void 0}const nA=function(){var HA=de(function*(){});return function(){return HA.apply(this,arguments)}}();function pA(){return(pA=de(function*(HA,cA,J){let U=Date.now();for(let O=0;O=0&&lAHA().update(wA(U)).digest(),J=HA();return cA.outputLen=J.outputLen,cA.blockLen=J.blockLen,cA.create=()=>HA(),cA}function yA(HA){const cA=(U,O)=>HA(O).update(wA(U)).digest(),J=HA({});return cA.outputLen=J.outputLen,cA.blockLen=J.blockLen,cA.create=U=>HA(U),cA}function xA(HA){const cA=(U,O)=>HA(O).update(wA(U)).digest(),J=HA({});return cA.outputLen=J.outputLen,cA.blockLen=J.blockLen,cA.create=U=>HA(U),cA}Q.nextTick=nA,Q.Hash=class fA{},Q.wrapConstructor=UA,Q.wrapConstructorWithOpts=yA,Q.wrapXOFConstructorWithOpts=xA},7801(eA,Q,f){"use strict";var t=f(9964);function g(X){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(YA){return typeof YA}:function(YA){return YA&&"function"==typeof Symbol&&YA.constructor===Symbol&&YA!==Symbol.prototype?"symbol":typeof YA})(X)}function I(X,YA){for(var KA=0;KA1?KA-1:0),le=1;le1?KA-1:0),le=1;le1?KA-1:0),le=1;le1?KA-1:0),le=1;le"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oA(cA,J){return(oA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(O,lA){return O.__proto__=lA,O})(cA,J)}function uA(cA){return(uA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(U){return U.__proto__||Object.getPrototypeOf(U)})(cA)}function dA(cA){return(dA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(J){return typeof J}:function(J){return J&&"function"==typeof Symbol&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J})(cA)}var nA=f(7187).inspect,pA=f(5403).codes.ERR_INVALID_ARG_TYPE;function z(cA,J,U){return(void 0===U||U>cA.length)&&(U=cA.length),cA.substring(U-J.length,U)===J}var wA="",VA="",kA="",hA="",fA={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function yA(cA){var J=Object.keys(cA),U=Object.create(Object.getPrototypeOf(cA));return J.forEach(function(O){U[O]=cA[O]}),Object.defineProperty(U,"message",{value:cA.message}),U}function xA(cA){return nA(cA,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var HA=function(cA,J){!function w(cA,J){if("function"!=typeof J&&null!==J)throw new TypeError("Super expression must either be null or a function");cA.prototype=Object.create(J&&J.prototype,{constructor:{value:cA,writable:!0,configurable:!0}}),Object.defineProperty(cA,"prototype",{writable:!1}),J&&oA(cA,J)}(O,cA);var U=function aA(cA){var J=QA();return function(){var lA,O=uA(cA);if(J){var LA=uA(this).constructor;lA=Reflect.construct(O,arguments,LA)}else lA=O.apply(this,arguments);return AA(this,lA)}}(O);function O(lA){var LA;if(function K(cA,J){if(!(cA instanceof J))throw new TypeError("Cannot call a class as a function")}(this,O),"object"!==dA(lA)||null===lA)throw new pA("options","Object",lA);var JA=lA.message,$A=lA.operator,IA=lA.stackStartFn,gA=lA.actual,C=lA.expected,b=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=JA)LA=U.call(this,String(JA));else if(t.stderr&&t.stderr.isTTY&&(t.stderr&&t.stderr.getColorDepth&&1!==t.stderr.getColorDepth()?(wA="\x1b[34m",VA="\x1b[32m",hA="\x1b[39m",kA="\x1b[31m"):(wA="",VA="",hA="",kA="")),"object"===dA(gA)&&null!==gA&&"object"===dA(C)&&null!==C&&"stack"in gA&&gA instanceof Error&&"stack"in C&&C instanceof Error&&(gA=yA(gA),C=yA(C)),"deepStrictEqual"===$A||"strictEqual"===$A)LA=U.call(this,function Ee(cA,J,U){var O="",lA="",LA=0,JA="",$A=!1,IA=xA(cA),gA=IA.split("\n"),C=xA(J).split("\n"),b=0,R="";if("strictEqual"===U&&"object"===dA(cA)&&"object"===dA(J)&&null!==cA&&null!==J&&(U="strictEqualObject"),1===gA.length&&1===C.length&&gA[0]!==C[0]){var M=gA[0].length+C[0].length;if(M<=10){if(!("object"===dA(cA)&&null!==cA||"object"===dA(J)&&null!==J||0===cA&&0===J))return"".concat(fA[U],"\n\n")+"".concat(gA[0]," !== ").concat(C[0],"\n")}else if("strictEqualObject"!==U&&M<(t.stderr&&t.stderr.isTTY?t.stderr.columns:80)){for(;gA[0][b]===C[0][b];)b++;b>2&&(R="\n ".concat(function OA(cA,J){if(J=Math.floor(J),0==cA.length||0==J)return"";var U=cA.length*J;for(J=Math.floor(Math.log(J)/Math.log(2));J;)cA+=cA,J--;return cA+cA.substring(0,U-cA.length)}(" ",b),"^"),b=0)}}for(var X=gA[gA.length-1],YA=C[C.length-1];X===YA&&(b++<2?JA="\n ".concat(X).concat(JA):O=X,gA.pop(),C.pop(),0!==gA.length&&0!==C.length);)X=gA[gA.length-1],YA=C[C.length-1];var KA=Math.max(gA.length,C.length);if(0===KA){var bA=IA.split("\n");if(bA.length>30)for(bA[26]="".concat(wA,"...").concat(hA);bA.length>27;)bA.pop();return"".concat(fA.notIdentical,"\n\n").concat(bA.join("\n"),"\n")}b>3&&(JA="\n".concat(wA,"...").concat(hA).concat(JA),$A=!0),""!==O&&(JA="\n ".concat(O).concat(JA),O="");var le=0,ve=fA[U]+"\n".concat(VA,"+ actual").concat(hA," ").concat(kA,"- expected").concat(hA),Ne=" ".concat(wA,"...").concat(hA," Lines skipped");for(b=0;b1&&b>2&&(Te>4?(lA+="\n".concat(wA,"...").concat(hA),$A=!0):Te>3&&(lA+="\n ".concat(C[b-2]),le++),lA+="\n ".concat(C[b-1]),le++),LA=b,O+="\n".concat(kA,"-").concat(hA," ").concat(C[b]),le++;else if(C.length1&&b>2&&(Te>4?(lA+="\n".concat(wA,"...").concat(hA),$A=!0):Te>3&&(lA+="\n ".concat(gA[b-2]),le++),lA+="\n ".concat(gA[b-1]),le++),LA=b,lA+="\n".concat(VA,"+").concat(hA," ").concat(gA[b]),le++;else{var ze=C[b],Oe=gA[b],oe=Oe!==ze&&(!z(Oe,",")||Oe.slice(0,-1)!==ze);oe&&z(ze,",")&&ze.slice(0,-1)===Oe&&(oe=!1,Oe+=","),oe?(Te>1&&b>2&&(Te>4?(lA+="\n".concat(wA,"...").concat(hA),$A=!0):Te>3&&(lA+="\n ".concat(gA[b-2]),le++),lA+="\n ".concat(gA[b-1]),le++),LA=b,lA+="\n".concat(VA,"+").concat(hA," ").concat(Oe),O+="\n".concat(kA,"-").concat(hA," ").concat(ze),le+=2):(lA+=O,O="",(1===Te||0===b)&&(lA+="\n ".concat(Oe),le++))}if(le>20&&b30)for(M[26]="".concat(wA,"...").concat(hA);M.length>27;)M.pop();LA=U.call(this,1===M.length?"".concat(R," ").concat(M[0]):"".concat(R,"\n\n").concat(M.join("\n"),"\n"))}else{var D=xA(gA),X="",YA=fA[$A];"notDeepEqual"===$A||"notEqual"===$A?(D="".concat(fA[$A],"\n\n").concat(D)).length>1024&&(D="".concat(D.slice(0,1021),"...")):(X="".concat(xA(C)),D.length>512&&(D="".concat(D.slice(0,509),"...")),X.length>512&&(X="".concat(X.slice(0,509),"...")),"deepEqual"===$A||"equal"===$A?D="".concat(YA,"\n\n").concat(D,"\n\nshould equal\n\n"):X=" ".concat($A," ").concat(X)),LA=U.call(this,"".concat(D).concat(X))}return Error.stackTraceLimit=b,LA.generatedMessage=!JA,Object.defineProperty(L(LA),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),LA.code="ERR_ASSERTION",LA.actual=gA,LA.expected=C,LA.operator=$A,Error.captureStackTrace&&Error.captureStackTrace(L(LA),IA),LA.name="AssertionError",AA(LA)}return function B(cA,J,U){J&&v(cA.prototype,J),U&&v(cA,U),Object.defineProperty(cA,"prototype",{writable:!1})}(O,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:J,value:function(LA,JA){return nA(this,I(I({},JA),{},{customInspect:!1,depth:0}))}}]),O}(P(Error),nA.custom);eA.exports=HA},5403(eA,Q,f){"use strict";function t(nA){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H})(nA)}function g(nA,H){for(var pA=0;pA"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var OA,z=L(nA);if(H){var wA=L(this).constructor;OA=Reflect.construct(z,arguments,wA)}else OA=z.apply(this,arguments);return function w(nA,H){if(H&&("object"===t(H)||"function"==typeof H))return H;if(void 0!==H)throw new TypeError("Derived constructors may only return object or undefined");return function aA(nA){if(void 0===nA)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return nA}(nA)}(this,OA)}}(kA);function kA(hA,fA,UA){var yA;return function v(nA,H){if(!(nA instanceof H))throw new TypeError("Cannot call a class as a function")}(this,kA),yA=VA.call(this,function z(wA,VA,kA){return"string"==typeof H?H:H(wA,VA,kA)}(hA,fA,UA)),yA.code=nA,yA}return function I(nA,H,pA){return H&&g(nA.prototype,H),pA&&g(nA,pA),Object.defineProperty(nA,"prototype",{writable:!1}),nA}(kA)}(pA);P[nA]=OA}function oA(nA,H){if(Array.isArray(nA)){var pA=nA.length;return nA=nA.map(function(z){return String(z)}),pA>2?"one of ".concat(H," ").concat(nA.slice(0,pA-1).join(", "),", or ")+nA[pA-1]:2===pA?"one of ".concat(H," ").concat(nA[0]," or ").concat(nA[1]):"of ".concat(H," ").concat(nA[0])}return"of ".concat(H," ").concat(String(nA))}NA("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),NA("ERR_INVALID_ARG_TYPE",function(nA,H,pA){var z,OA;if(void 0===rA&&(rA=f(7801)),rA("string"==typeof nA,"'name' must be a string"),"string"==typeof H&&function uA(nA,H,pA){return nA.substr(!pA||pA<0?0:+pA,H.length)===H}(H,"not ")?(z="must not be",H=H.replace(/^not /,"")):z="must be",function dA(nA,H,pA){return(void 0===pA||pA>nA.length)&&(pA=nA.length),nA.substring(pA-H.length,pA)===H}(nA," argument"))OA="The ".concat(nA," ").concat(z," ").concat(oA(H,"type"));else{var wA=function RA(nA,H,pA){return"number"!=typeof pA&&(pA=0),!(pA+H.length>nA.length)&&-1!==nA.indexOf(H,pA)}(nA,".")?"property":"argument";OA='The "'.concat(nA,'" ').concat(wA," ").concat(z," ").concat(oA(H,"type"))}return OA+". Received type ".concat(t(pA))},TypeError),NA("ERR_INVALID_ARG_VALUE",function(nA,H){var pA=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===QA&&(QA=f(7187));var z=QA.inspect(H);return z.length>128&&(z="".concat(z.slice(0,128),"...")),"The argument '".concat(nA,"' ").concat(pA,". Received ").concat(z)},TypeError,RangeError),NA("ERR_INVALID_RETURN_VALUE",function(nA,H,pA){var z;return z=pA&&pA.constructor&&pA.constructor.name?"instance of ".concat(pA.constructor.name):"type ".concat(t(pA)),"Expected ".concat(nA,' to be returned from the "').concat(H,'"')+" function but got ".concat(z,".")},TypeError),NA("ERR_MISSING_ARGS",function(){for(var nA=arguments.length,H=new Array(nA),pA=0;pA0,"At least one arg needs to be specified");var z="The ",OA=H.length;switch(H=H.map(function(wA){return'"'.concat(wA,'"')}),OA){case 1:z+="".concat(H[0]," argument");break;case 2:z+="".concat(H[0]," and ").concat(H[1]," arguments");break;default:z+=H.slice(0,OA-1).join(", "),z+=", and ".concat(H[OA-1]," arguments")}return"".concat(z," must be specified")},TypeError),eA.exports.codes=P},6781(eA,Q,f){"use strict";function t(oe,sA){return function v(oe){if(Array.isArray(oe))return oe}(oe)||function K(oe,sA){var S=null==oe?null:typeof Symbol<"u"&&oe[Symbol.iterator]||oe["@@iterator"];if(null!=S){var Y,k,m,E,mA=[],ie=!0,DA=!1;try{if(m=(S=S.call(oe)).next,0===sA){if(Object(S)!==S)return;ie=!1}else for(;!(ie=(Y=m.call(S)).done)&&(mA.push(Y.value),mA.length!==sA);ie=!0);}catch(Ae){DA=!0,k=Ae}finally{try{if(!ie&&null!=S.return&&(E=S.return(),Object(E)!==E))return}finally{if(DA)throw k}}return mA}}(oe,sA)||function I(oe,sA){if(oe){if("string"==typeof oe)return N(oe,sA);var S=Object.prototype.toString.call(oe).slice(8,-1);if("Object"===S&&oe.constructor&&(S=oe.constructor.name),"Map"===S||"Set"===S)return Array.from(oe);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return N(oe,sA)}}(oe,sA)||function g(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(oe,sA){(null==sA||sA>oe.length)&&(sA=oe.length);for(var S=0,Y=new Array(sA);S10)return!0;for(var sA=0;sA57)return!0}return 10===oe.length&&oe>=Math.pow(2,32)}function Ee(oe){return Object.keys(oe).filter(xA).concat(AA(oe).filter(Object.prototype.propertyIsEnumerable.bind(oe)))}function HA(oe,sA){if(oe===sA)return 0;for(var S=oe.length,Y=sA.length,k=0,m=Math.min(S,Y);k0?QA-4:QA;for(RA=0;RA>16&255,oA[uA++]=P>>8&255,oA[uA++]=255&P;return 2===NA&&(P=t[L.charCodeAt(RA)]<<2|t[L.charCodeAt(RA+1)]>>4,oA[uA++]=255&P),1===NA&&(P=t[L.charCodeAt(RA)]<<10|t[L.charCodeAt(RA+1)]<<4|t[L.charCodeAt(RA+2)]>>2,oA[uA++]=P>>8&255,oA[uA++]=255&P),oA},Q.fromByteArray=function AA(L){for(var P,rA=L.length,QA=rA%3,NA=[],uA=0,dA=rA-QA;uAdA?dA:uA+16383));return 1===QA?NA.push(f[(P=L[rA-1])>>2]+f[P<<4&63]+"=="):2===QA&&NA.push(f[(P=(L[rA-2]<<8)+L[rA-1])>>10]+f[P>>4&63]+f[P<<2&63]+"="),NA.join("")};for(var f=[],t=[],g=typeof Uint8Array<"u"?Uint8Array:Array,I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0;N<64;++N)f[N]=I[N],t[I.charCodeAt(N)]=N;function v(L){var P=L.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var rA=L.indexOf("=");return-1===rA&&(rA=P),[rA,rA===P?0:4-rA%4]}function w(L){return f[L>>18&63]+f[L>>12&63]+f[L>>6&63]+f[63&L]}function aA(L,P,rA){for(var NA=[],oA=P;oA0},I.prototype.readMoreInput=function(){if(!(this.bit_end_pos_>256))if(this.eos_){if(this.bit_pos_>this.bit_end_pos_)throw new Error("Unexpected end of input "+this.bit_pos_+" "+this.bit_end_pos_)}else{var N=this.buf_ptr_,K=this.input_.read(this.buf_,N,Q);if(K<0)throw new Error("Unexpected end of input");if(K=8;)this.val_>>>=8,this.val_|=this.buf_[8191&this.pos_]<<24,++this.pos_,this.bit_pos_=this.bit_pos_-8>>>0,this.bit_end_pos_=this.bit_end_pos_-8>>>0},I.prototype.readBits=function(N){32-this.bit_pos_>>this.bit_pos_&g[N];return this.bit_pos_+=N,K},eA.exports=I},7043(eA,Q){Q.lookup=new Uint8Array([0,0,0,0,0,0,0,0,0,4,4,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,12,16,12,12,20,12,16,24,28,12,12,32,12,36,12,44,44,44,44,44,44,44,44,44,44,32,32,24,40,28,12,12,48,52,52,52,48,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,48,52,52,52,52,52,24,12,28,12,12,12,56,60,60,60,56,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,56,60,60,60,60,60,24,12,28,12,0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,2,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,56,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,6,6,7,7,7,7,8,8,8,8,9,9,9,9,10,10,10,10,11,11,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23,23,23,23,24,24,24,24,25,25,25,25,26,26,26,26,27,27,27,27,28,28,28,28,29,29,29,29,30,30,30,30,31,31,31,31,32,32,32,32,33,33,33,33,34,34,34,34,35,35,35,35,36,36,36,36,37,37,37,37,38,38,38,38,39,39,39,39,40,40,40,40,41,41,41,41,42,42,42,42,43,43,43,43,44,44,44,44,45,45,45,45,46,46,46,46,47,47,47,47,48,48,48,48,49,49,49,49,50,50,50,50,51,51,51,51,52,52,52,52,53,53,53,53,54,54,54,54,55,55,55,55,56,56,56,56,57,57,57,57,58,58,58,58,59,59,59,59,60,60,60,60,61,61,61,61,62,62,62,62,63,63,63,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Q.lookupOffsets=new Uint16Array([1024,1536,1280,1536,0,256,768,512])},980(eA,Q,f){var g=f(8197).z,I=f(8197).y,N=f(4097),K=f(614),v=f(1561).z,B=f(1561).u,j=f(7043),tA=f(2210),w=f(7984),dA=1080,nA=new Uint8Array([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),pA=new Uint8Array([3,2,1,0,3,3,3,3,3,3,2,2,2,2,2,2]),z=new Int8Array([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),OA=new Uint16Array([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]);function wA(gA){var C;return 0===gA.readBits(1)?16:(C=gA.readBits(3))>0?17+C:(C=gA.readBits(3))>0?8+C:17}function VA(gA){if(gA.readBits(1)){var C=gA.readBits(3);return 0===C?1:gA.readBits(C)+(1<1&&0===D)throw new Error("Invalid size byte");C.meta_block_length|=D<<8*M}}else for(M=0;M4&&0===X)throw new Error("Invalid size nibble");C.meta_block_length|=X<<4*M}return++C.meta_block_length,!C.input_end&&!C.is_metadata&&(C.is_uncompressed=gA.readBits(1)),C}function fA(gA,C,b){var M;return b.fillBitWindow(),(M=gA[C+=b.val_>>>b.bit_pos_&255].bits-8)>0&&(b.bit_pos_+=8,C+=gA[C].value,C+=b.val_>>>b.bit_pos_&(1<>=1,++bA;for(YA=0;YA0;++YA){var S,oe=nA[YA],sA=0;R.fillBitWindow(),R.bit_pos_+=Oe[sA+=R.val_>>>R.bit_pos_&15].bits,Ne[oe]=S=Oe[sA].value,0!==S&&(Te-=32>>S,++ze)}if(1!==ze&&0!==Te)throw new Error("[ReadHuffmanCode] invalid num_codes or space");!function UA(gA,C,b,R){for(var M=0,D=8,X=0,YA=0,KA=32768,bA=[],le=0;le<32;le++)bA.push(new v(0,0));for(B(bA,0,5,gA,18);M0;){var Ne,ve=0;if(R.readMoreInput(),R.fillBitWindow(),R.bit_pos_+=bA[ve+=R.val_>>>R.bit_pos_&31].bits,(Ne=255&bA[ve].value)<16)X=0,b[M++]=Ne,0!==Ne&&(D=Ne,KA-=32768>>Ne);else{var ze,Oe,Te=Ne-14,oe=0;if(16===Ne&&(oe=D),YA!==oe&&(X=0,YA=oe),ze=X,X>0&&(X-=2,X<<=Te),M+(Oe=(X+=R.readBits(Te)+3)-ze)>C)throw new Error("[ReadHuffmanCodeLengths] symbol + repeat_delta > num_symbols");for(var sA=0;sA>>5]),this.htrees=new Uint32Array(C)}function U(gA,C){var D,X,b={num_htrees:null,context_map:null},M=0;C.readMoreInput();var YA=b.num_htrees=VA(C)+1,KA=b.context_map=new Uint8Array(gA);if(YA<=1)return b;for(C.readBits(1)&&(M=C.readBits(4)+1),D=[],X=0;X=gA)throw new Error("[DecodeContextMap] i >= context_map_size");KA[X]=0,++X}else KA[X]=bA-M,++X}return C.readBits(1)&&function cA(gA,C){var R,b=new Uint8Array(256);for(R=0;R<256;++R)b[R]=R;for(R=0;R=gA&&(le-=gA),R[b]=le,M[YA+(1&D[KA])]=le,++D[KA]}function lA(gA,C,b,R,M,D){var bA,X=M+1,YA=b&M,KA=D.pos_&N.IBUF_MASK;if(C<8||D.bit_pos_+(C<<3)0;)D.readMoreInput(),R[YA++]=D.readBits(8),YA===X&&(gA.write(R,X),YA=0);else{if(D.bit_end_pos_<32)throw new Error("[CopyUncompressedBlockToOutput] br.bit_end_pos_ < 32");for(;D.bit_pos_<32;)R[YA]=D.val_>>>D.bit_pos_,D.bit_pos_+=8,++YA,--C;if(KA+(bA=D.bit_end_pos_-D.bit_pos_>>3)>N.IBUF_MASK){for(var le=N.IBUF_MASK+1-KA,ve=0;ve=X)for(gA.write(R,X),YA-=X,ve=0;ve=X;){if(D.input_.read(R,YA,bA=X-YA)C.buffer.length){var Gt=new Uint8Array(R+E);Gt.set(C.buffer),C.buffer=Gt}if(M=pn.input_end,mA=pn.is_uncompressed,pn.is_metadata)for(LA(Y);E>0;--E)Y.readMoreInput(),Y.readBits(8);else if(0!==E){if(mA){Y.bit_pos_=Y.bit_pos_+7&-8,lA(C,E,R,le,bA,Y),R+=E;continue}for(b=0;b<3;++b)Ae[b]=VA(Y)+1,Ae[b]>=2&&(yA(Ae[b]+2,sA,b*dA,Y),yA(26,S,b*dA,Y),ie[b]=xA(S,b*dA,Y),MA[b]=1);for(Y.readMoreInput(),_=(1<<(Pe=Y.readBits(2)))-1,be=(At=16+(Y.readBits(4)<0;){var bt,Dt,Ze,qe,Et,ct,Ht,Jt,zA,vA,qA,ZA;for(Y.readMoreInput(),0===ie[1]&&(O(Ae[1],sA,1,DA,pe,MA,Y),ie[1]=xA(S,dA,Y),Qn=oe[1].htrees[DA[1]]),--ie[1],(Dt=(bt=fA(oe[1].codes,Qn,Y))>>6)>=2?(Dt-=2,Ht=-1):Ht=0,qe=tA.kCopyRangeLut[Dt]+(7&bt),Et=tA.kInsertLengthPrefixCode[Ze=tA.kInsertRangeLut[Dt]+(bt>>3&7)].offset+Y.readBits(tA.kInsertLengthPrefixCode[Ze].nbits),ct=tA.kCopyLengthPrefixCode[qe].offset+Y.readBits(tA.kCopyLengthPrefixCode[qe].nbits),ze=le[R-1&bA],Oe=le[R-2&bA],zA=0;zA4?3:ct-2))]],Y))>=At&&(ZA=(Ht-=At)&_,Ht=At+((jA=(2+(1&(Ht>>=Pe))<<(qA=1+(Ht>>1)))-4)+Y.readBits(qA)<(YA=R=K.minDictionaryWordLength&&ct<=K.maxDictionaryWordLength))throw new Error("Invalid backward reference. pos: "+R+" distance: "+Jt+" len: "+ct+" bytes left: "+E);var jA=K.offsetsByLength[ct],ue=Jt-YA-1,WA=K.sizeBitsByLength[ct],ye=ue>>WA;if(jA+=(ue&(1<=ve){C.write(le,KA);for(var Je=0;Je0&&(Ne[3&Te]=Jt,++Te),ct>E)throw new Error("Invalid backward reference. pos: "+R+" distance: "+Jt+" len: "+ct+" bytes left: "+E);for(zA=0;zA>=1;return(K&B-1)+B}function I(K,v,B,j,tA){do{K[v+(j-=B)]=new f(tA.bits,tA.value)}while(j>0)}function N(K,v,B){for(var j=1<0;--nA[AA])I(K,v+P,rA,uA,new f(255&AA,65535&RA[L++])),P=g(P,AA);for(NA=dA-1,QA=-1,AA=B+1,rA=2;AA<=15;++AA,rA<<=1)for(;nA[AA]>0;--nA[AA])(P&NA)!==QA&&(v+=uA,dA+=uA=1<<(oA=N(nA,AA,B)),K[w+(QA=P&NA)]=new f(oA+B&255,v-w-QA&65535)),I(K,v+(P>>B),rA,uA,new f(AA-B&255,65535&RA[L++])),P=g(P,AA);return dA}},2210(eA,Q){function f(t,g){this.offset=t,this.nbits=g}Q.kBlockLengthPrefixCode=[new f(1,2),new f(5,2),new f(9,2),new f(13,2),new f(17,3),new f(25,3),new f(33,3),new f(41,3),new f(49,4),new f(65,4),new f(81,4),new f(97,4),new f(113,5),new f(145,5),new f(177,5),new f(209,5),new f(241,6),new f(305,6),new f(369,7),new f(497,8),new f(753,9),new f(1265,10),new f(2289,11),new f(4337,12),new f(8433,13),new f(16625,24)],Q.kInsertLengthPrefixCode=[new f(0,0),new f(1,0),new f(2,0),new f(3,0),new f(4,0),new f(5,0),new f(6,1),new f(8,1),new f(10,2),new f(14,2),new f(18,3),new f(26,3),new f(34,4),new f(50,4),new f(66,5),new f(98,5),new f(130,6),new f(194,7),new f(322,8),new f(578,9),new f(1090,10),new f(2114,12),new f(6210,14),new f(22594,24)],Q.kCopyLengthPrefixCode=[new f(2,0),new f(3,0),new f(4,0),new f(5,0),new f(6,0),new f(7,0),new f(8,0),new f(9,0),new f(10,1),new f(12,1),new f(14,2),new f(18,2),new f(22,3),new f(30,3),new f(38,4),new f(54,4),new f(70,5),new f(102,5),new f(134,6),new f(198,7),new f(326,8),new f(582,9),new f(1094,10),new f(2118,24)],Q.kInsertRangeLut=[0,0,8,8,0,16,8,16,16],Q.kCopyRangeLut=[0,8,0,8,16,0,16,8,16]},8197(eA,Q){function f(g){this.buffer=g,this.pos=0}function t(g){this.buffer=g,this.pos=0}f.prototype.read=function(g,I,N){this.pos+N>this.buffer.length&&(N=this.buffer.length-this.pos);for(var K=0;Kthis.buffer.length)throw new Error("Output buffer is not large enough");return this.buffer.set(g.subarray(0,I),this.pos),this.pos+=I,I},Q.y=t},7984(eA,Q,f){var t=f(614),L=11;function H(OA,wA,VA){this.prefix=new Uint8Array(OA.length),this.transform=wA,this.suffix=new Uint8Array(VA.length);for(var kA=0;kA'),new H("",0,"\n"),new H("",3,""),new H("",0,"]"),new H("",0," for "),new H("",14,""),new H("",2,""),new H("",0," a "),new H("",0," that "),new H(" ",10,""),new H("",0,". "),new H(".",0,""),new H(" ",0,", "),new H("",15,""),new H("",0," with "),new H("",0,"'"),new H("",0," from "),new H("",0," by "),new H("",16,""),new H("",17,""),new H(" the ",0,""),new H("",4,""),new H("",0,". The "),new H("",L,""),new H("",0," on "),new H("",0," as "),new H("",0," is "),new H("",7,""),new H("",1,"ing "),new H("",0,"\n\t"),new H("",0,":"),new H(" ",0,". "),new H("",0,"ed "),new H("",20,""),new H("",18,""),new H("",6,""),new H("",0,"("),new H("",10,", "),new H("",8,""),new H("",0," at "),new H("",0,"ly "),new H(" the ",0," of "),new H("",5,""),new H("",9,""),new H(" ",10,", "),new H("",10,'"'),new H(".",0,"("),new H("",L," "),new H("",10,'">'),new H("",0,'="'),new H(" ",0,"."),new H(".com/",0,""),new H(" the ",0," of the "),new H("",10,"'"),new H("",0,". This "),new H("",0,","),new H(".",0," "),new H("",10,"("),new H("",10,"."),new H("",0," not "),new H(" ",0,'="'),new H("",0,"er "),new H(" ",L," "),new H("",0,"al "),new H(" ",L,""),new H("",0,"='"),new H("",L,'"'),new H("",10,". "),new H(" ",0,"("),new H("",0,"ful "),new H(" ",10,". "),new H("",0,"ive "),new H("",0,"less "),new H("",L,"'"),new H("",0,"est "),new H(" ",10,"."),new H("",L,'">'),new H(" ",0,"='"),new H("",10,","),new H("",0,"ize "),new H("",L,"."),new H("\xc2\xa0",0,""),new H(" ",0,","),new H("",10,'="'),new H("",L,'="'),new H("",0,"ous "),new H("",L,", "),new H("",10,"='"),new H(" ",10,","),new H(" ",L,'="'),new H(" ",L,", "),new H("",L,","),new H("",L,"("),new H("",L,". "),new H(" ",L,"."),new H("",L,"='"),new H(" ",L,". "),new H(" ",10,'="'),new H(" ",L,"='"),new H(" ",10,"='")];function z(OA,wA){return OA[wA]<192?(OA[wA]>=97&&OA[wA]<=122&&(OA[wA]^=32),1):OA[wA]<224?(OA[wA+1]^=32,2):(OA[wA+2]^=5,3)}Q.kTransforms=pA,Q.kNumTransforms=pA.length,Q.transformDictionaryWord=function(OA,wA,VA,kA,hA){var cA,fA=pA[hA].prefix,UA=pA[hA].suffix,yA=pA[hA].transform,xA=yA<12?0:yA-11,Ee=0,HA=wA;xA>kA&&(xA=kA);for(var J=0;J0;){var U=z(OA,cA);cA+=U,kA-=U}for(var O=0;OQ.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=AA,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}Q.NONE=0,Q.DEFLATE=1,Q.INFLATE=2,Q.GZIP=3,Q.GUNZIP=4,Q.DEFLATERAW=5,Q.INFLATERAW=6,Q.UNZIP=7,aA.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,I(this.init_done,"close before init"),I(this.mode<=Q.UNZIP),this.mode===Q.DEFLATE||this.mode===Q.GZIP||this.mode===Q.DEFLATERAW?K.deflateEnd(this.strm):(this.mode===Q.INFLATE||this.mode===Q.GUNZIP||this.mode===Q.INFLATERAW||this.mode===Q.UNZIP)&&v.inflateEnd(this.strm),this.mode=Q.NONE,this.dictionary=null)},aA.prototype.write=function(AA,L,P,rA,QA,NA,oA){return this._write(!0,AA,L,P,rA,QA,NA,oA)},aA.prototype.writeSync=function(AA,L,P,rA,QA,NA,oA){return this._write(!1,AA,L,P,rA,QA,NA,oA)},aA.prototype._write=function(AA,L,P,rA,QA,NA,oA,uA){if(I.equal(arguments.length,8),I(this.init_done,"write before init"),I(this.mode!==Q.NONE,"already finalized"),I.equal(!1,this.write_in_progress,"write already in progress"),I.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,I.equal(!1,void 0===L,"must provide flush value"),this.write_in_progress=!0,L!==Q.Z_NO_FLUSH&&L!==Q.Z_PARTIAL_FLUSH&&L!==Q.Z_SYNC_FLUSH&&L!==Q.Z_FULL_FLUSH&&L!==Q.Z_FINISH&&L!==Q.Z_BLOCK)throw new Error("Invalid flush value");if(null==P&&(P=t.alloc(0),QA=0,rA=0),this.strm.avail_in=QA,this.strm.input=P,this.strm.next_in=rA,this.strm.avail_out=uA,this.strm.output=NA,this.strm.next_out=oA,this.flush=L,!AA)return this._process(),this._checkError()?this._afterSync():void 0;var dA=this;return g.nextTick(function(){dA._process(),dA._after()}),this},aA.prototype._afterSync=function(){var AA=this.strm.avail_out,L=this.strm.avail_in;return this.write_in_progress=!1,[L,AA]},aA.prototype._process=function(){var AA=null;switch(this.mode){case Q.DEFLATE:case Q.GZIP:case Q.DEFLATERAW:this.err=K.deflate(this.strm,this.flush);break;case Q.UNZIP:switch(this.strm.avail_in>0&&(AA=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===AA)break;if(31!==this.strm.input[AA]){this.mode=Q.INFLATE;break}if(this.gzip_id_bytes_read=1,AA++,1===this.strm.avail_in)break;case 1:if(null===AA)break;139===this.strm.input[AA]?(this.gzip_id_bytes_read=2,this.mode=Q.GUNZIP):this.mode=Q.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case Q.INFLATE:case Q.GUNZIP:case Q.INFLATERAW:for(this.err=v.inflate(this.strm,this.flush),this.err===Q.Z_NEED_DICT&&this.dictionary&&(this.err=v.inflateSetDictionary(this.strm,this.dictionary),this.err===Q.Z_OK?this.err=v.inflate(this.strm,this.flush):this.err===Q.Z_DATA_ERROR&&(this.err=Q.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===Q.GUNZIP&&this.err===Q.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=v.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},aA.prototype._checkError=function(){switch(this.err){case Q.Z_OK:case Q.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===Q.Z_FINISH)return this._error("unexpected end of file"),!1;break;case Q.Z_STREAM_END:break;case Q.Z_NEED_DICT:return this._error(null==this.dictionary?"Missing dictionary":"Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},aA.prototype._after=function(){if(this._checkError()){var AA=this.strm.avail_out,L=this.strm.avail_in;this.write_in_progress=!1,this.callback(L,AA),this.pending_close&&this.close()}},aA.prototype._error=function(AA){this.strm.msg&&(AA=this.strm.msg),this.onerror(AA,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},aA.prototype.init=function(AA,L,P,rA,QA){I(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),I(AA>=8&&AA<=15,"invalid windowBits"),I(L>=-1&&L<=9,"invalid compression level"),I(P>=1&&P<=9,"invalid memlevel"),I(rA===Q.Z_FILTERED||rA===Q.Z_HUFFMAN_ONLY||rA===Q.Z_RLE||rA===Q.Z_FIXED||rA===Q.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(L,AA,P,rA,QA),this._setDictionary()},aA.prototype.params=function(){throw new Error("deflateParams Not supported")},aA.prototype.reset=function(){this._reset(),this._setDictionary()},aA.prototype._init=function(AA,L,P,rA,QA){switch(this.level=AA,this.windowBits=L,this.memLevel=P,this.strategy=rA,this.flush=Q.Z_NO_FLUSH,this.err=Q.Z_OK,(this.mode===Q.GZIP||this.mode===Q.GUNZIP)&&(this.windowBits+=16),this.mode===Q.UNZIP&&(this.windowBits+=32),(this.mode===Q.DEFLATERAW||this.mode===Q.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new N,this.mode){case Q.DEFLATE:case Q.GZIP:case Q.DEFLATERAW:this.err=K.deflateInit2(this.strm,this.level,Q.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case Q.INFLATE:case Q.GUNZIP:case Q.INFLATERAW:case Q.UNZIP:this.err=v.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==Q.Z_OK&&this._error("Init error"),this.dictionary=QA,this.write_in_progress=!1,this.init_done=!0},aA.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=Q.Z_OK,this.mode){case Q.DEFLATE:case Q.DEFLATERAW:this.err=K.deflateSetDictionary(this.strm,this.dictionary)}this.err!==Q.Z_OK&&this._error("Failed to set dictionary")}},aA.prototype._reset=function(){switch(this.err=Q.Z_OK,this.mode){case Q.DEFLATE:case Q.DEFLATERAW:case Q.GZIP:this.err=K.deflateReset(this.strm);break;case Q.INFLATE:case Q.INFLATERAW:case Q.GUNZIP:this.err=v.inflateReset(this.strm)}this.err!==Q.Z_OK&&this._error("Failed to reset stream")},Q.Zlib=aA},6729(eA,Q,f){"use strict";var t=f(9964),g=f(783).Buffer,I=f(9760).Transform,N=f(2908),K=f(7187),v=f(7801).ok,B=f(783).kMaxLength,j="Cannot create final Buffer. It would be larger than 0x"+B.toString(16)+" bytes";N.Z_MIN_WINDOWBITS=8,N.Z_MAX_WINDOWBITS=15,N.Z_DEFAULT_WINDOWBITS=15,N.Z_MIN_CHUNK=64,N.Z_MAX_CHUNK=1/0,N.Z_DEFAULT_CHUNK=16384,N.Z_MIN_MEMLEVEL=1,N.Z_MAX_MEMLEVEL=9,N.Z_DEFAULT_MEMLEVEL=8,N.Z_MIN_LEVEL=-1,N.Z_MAX_LEVEL=9,N.Z_DEFAULT_LEVEL=N.Z_DEFAULT_COMPRESSION;for(var tA=Object.keys(N),w=0;w=B?J=new RangeError(j):cA=g.concat(UA,yA),UA=[],kA.close(),fA(J,cA)}kA.on("error",function Ee(cA){kA.removeListener("end",HA),kA.removeListener("readable",xA),fA(cA)}),kA.on("end",HA),kA.end(hA),xA()}function NA(kA,hA){if("string"==typeof hA&&(hA=g.from(hA)),!g.isBuffer(hA))throw new TypeError("Not a string or buffer");return kA._processChunk(hA,kA._finishFlushFlag)}function oA(kA){if(!(this instanceof oA))return new oA(kA);OA.call(this,kA,N.DEFLATE)}function uA(kA){if(!(this instanceof uA))return new uA(kA);OA.call(this,kA,N.INFLATE)}function dA(kA){if(!(this instanceof dA))return new dA(kA);OA.call(this,kA,N.GZIP)}function RA(kA){if(!(this instanceof RA))return new RA(kA);OA.call(this,kA,N.GUNZIP)}function nA(kA){if(!(this instanceof nA))return new nA(kA);OA.call(this,kA,N.DEFLATERAW)}function H(kA){if(!(this instanceof H))return new H(kA);OA.call(this,kA,N.INFLATERAW)}function pA(kA){if(!(this instanceof pA))return new pA(kA);OA.call(this,kA,N.UNZIP)}function z(kA){return kA===N.Z_NO_FLUSH||kA===N.Z_PARTIAL_FLUSH||kA===N.Z_SYNC_FLUSH||kA===N.Z_FULL_FLUSH||kA===N.Z_FINISH||kA===N.Z_BLOCK}function OA(kA,hA){var fA=this;if(this._opts=kA=kA||{},this._chunkSize=kA.chunkSize||Q.Z_DEFAULT_CHUNK,I.call(this,kA),kA.flush&&!z(kA.flush))throw new Error("Invalid flush flag: "+kA.flush);if(kA.finishFlush&&!z(kA.finishFlush))throw new Error("Invalid flush flag: "+kA.finishFlush);if(this._flushFlag=kA.flush||N.Z_NO_FLUSH,this._finishFlushFlag=typeof kA.finishFlush<"u"?kA.finishFlush:N.Z_FINISH,kA.chunkSize&&(kA.chunkSizeQ.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+kA.chunkSize);if(kA.windowBits&&(kA.windowBitsQ.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+kA.windowBits);if(kA.level&&(kA.levelQ.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+kA.level);if(kA.memLevel&&(kA.memLevelQ.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+kA.memLevel);if(kA.strategy&&kA.strategy!=Q.Z_FILTERED&&kA.strategy!=Q.Z_HUFFMAN_ONLY&&kA.strategy!=Q.Z_RLE&&kA.strategy!=Q.Z_FIXED&&kA.strategy!=Q.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+kA.strategy);if(kA.dictionary&&!g.isBuffer(kA.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new N.Zlib(hA);var UA=this;this._hadError=!1,this._handle.onerror=function(Ee,HA){wA(UA),UA._hadError=!0;var cA=new Error(Ee);cA.errno=HA,cA.code=Q.codes[HA],UA.emit("error",cA)};var yA=Q.Z_DEFAULT_COMPRESSION;"number"==typeof kA.level&&(yA=kA.level);var xA=Q.Z_DEFAULT_STRATEGY;"number"==typeof kA.strategy&&(xA=kA.strategy),this._handle.init(kA.windowBits||Q.Z_DEFAULT_WINDOWBITS,yA,kA.memLevel||Q.Z_DEFAULT_MEMLEVEL,xA,kA.dictionary),this._buffer=g.allocUnsafe(this._chunkSize),this._offset=0,this._level=yA,this._strategy=xA,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!fA._handle},configurable:!0,enumerable:!0})}function wA(kA,hA){hA&&t.nextTick(hA),kA._handle&&(kA._handle.close(),kA._handle=null)}function VA(kA){kA.emit("close")}Object.defineProperty(Q,"codes",{enumerable:!0,value:Object.freeze(AA),writable:!1}),Q.Deflate=oA,Q.Inflate=uA,Q.Gzip=dA,Q.Gunzip=RA,Q.DeflateRaw=nA,Q.InflateRaw=H,Q.Unzip=pA,Q.createDeflate=function(kA){return new oA(kA)},Q.createInflate=function(kA){return new uA(kA)},Q.createDeflateRaw=function(kA){return new nA(kA)},Q.createInflateRaw=function(kA){return new H(kA)},Q.createGzip=function(kA){return new dA(kA)},Q.createGunzip=function(kA){return new RA(kA)},Q.createUnzip=function(kA){return new pA(kA)},Q.deflate=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new oA(hA),kA,fA)},Q.deflateSync=function(kA,hA){return NA(new oA(hA),kA)},Q.gzip=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new dA(hA),kA,fA)},Q.gzipSync=function(kA,hA){return NA(new dA(hA),kA)},Q.deflateRaw=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new nA(hA),kA,fA)},Q.deflateRawSync=function(kA,hA){return NA(new nA(hA),kA)},Q.unzip=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new pA(hA),kA,fA)},Q.unzipSync=function(kA,hA){return NA(new pA(hA),kA)},Q.inflate=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new uA(hA),kA,fA)},Q.inflateSync=function(kA,hA){return NA(new uA(hA),kA)},Q.gunzip=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new RA(hA),kA,fA)},Q.gunzipSync=function(kA,hA){return NA(new RA(hA),kA)},Q.inflateRaw=function(kA,hA,fA){return"function"==typeof hA&&(fA=hA,hA={}),QA(new H(hA),kA,fA)},Q.inflateRawSync=function(kA,hA){return NA(new H(hA),kA)},K.inherits(OA,I),OA.prototype.params=function(kA,hA,fA){if(kAQ.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+kA);if(hA!=Q.Z_FILTERED&&hA!=Q.Z_HUFFMAN_ONLY&&hA!=Q.Z_RLE&&hA!=Q.Z_FIXED&&hA!=Q.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+hA);if(this._level!==kA||this._strategy!==hA){var UA=this;this.flush(N.Z_SYNC_FLUSH,function(){v(UA._handle,"zlib binding closed"),UA._handle.params(kA,hA),UA._hadError||(UA._level=kA,UA._strategy=hA,fA&&fA())})}else t.nextTick(fA)},OA.prototype.reset=function(){return v(this._handle,"zlib binding closed"),this._handle.reset()},OA.prototype._flush=function(kA){this._transform(g.alloc(0),"",kA)},OA.prototype.flush=function(kA,hA){var fA=this,UA=this._writableState;("function"==typeof kA||void 0===kA&&!hA)&&(hA=kA,kA=N.Z_FULL_FLUSH),UA.ended?hA&&t.nextTick(hA):UA.ending?hA&&this.once("end",hA):UA.needDrain?hA&&this.once("drain",function(){return fA.flush(kA,hA)}):(this._flushFlag=kA,this.write(g.alloc(0),"",hA))},OA.prototype.close=function(kA){wA(this,kA),t.nextTick(VA,this)},OA.prototype._transform=function(kA,hA,fA){var UA,yA=this._writableState,Ee=(yA.ending||yA.ended)&&(!kA||yA.length===kA.length);return null===kA||g.isBuffer(kA)?this._handle?(Ee?UA=this._finishFlushFlag:(UA=this._flushFlag,kA.length>=yA.length&&(this._flushFlag=this._opts.flush||N.Z_NO_FLUSH)),void this._processChunk(kA,UA,fA)):fA(new Error("zlib binding closed")):fA(new Error("invalid input"))},OA.prototype._processChunk=function(kA,hA,fA){var UA=kA&&kA.length,yA=this._chunkSize-this._offset,xA=0,Ee=this,HA="function"==typeof fA;if(!HA){var U,cA=[],J=0;this.on("error",function($A){U=$A}),v(this._handle,"zlib binding closed");do{var O=this._handle.writeSync(hA,kA,xA,UA,this._buffer,this._offset,yA)}while(!this._hadError&&JA(O[0],O[1]));if(this._hadError)throw U;if(J>=B)throw wA(this),new RangeError(j);var lA=g.concat(cA,J);return wA(this),lA}v(this._handle,"zlib binding closed");var LA=this._handle.write(hA,kA,xA,UA,this._buffer,this._offset,yA);function JA($A,IA){if(this&&(this.buffer=null,this.callback=null),!Ee._hadError){var gA=yA-IA;if(v(gA>=0,"have should not go down"),gA>0){var C=Ee._buffer.slice(Ee._offset,Ee._offset+gA);Ee._offset+=gA,HA?Ee.push(C):(cA.push(C),J+=C.length)}if((0===IA||Ee._offset>=Ee._chunkSize)&&(yA=Ee._chunkSize,Ee._offset=0,Ee._buffer=g.allocUnsafe(Ee._chunkSize)),0===IA){if(xA+=UA-$A,UA=$A,!HA)return!0;var b=Ee._handle.write(hA,kA,xA,UA,Ee._buffer,Ee._offset,Ee._chunkSize);return b.callback=JA,void(b.buffer=kA)}if(!HA)return!1;fA()}}LA.buffer=kA,LA.callback=JA},K.inherits(oA,OA),K.inherits(uA,OA),K.inherits(dA,OA),K.inherits(RA,OA),K.inherits(nA,OA),K.inherits(H,OA),K.inherits(pA,OA)},7802(eA,Q,f){"use strict";var t=f(5049),g=f(3036),I=f(78),N=f(1909);eA.exports=N||t.call(I,g)},8619(eA,Q,f){"use strict";var t=f(5049),g=f(3036),I=f(7802);eA.exports=function(){return I(t,g,arguments)}},3036(eA){"use strict";eA.exports=Function.prototype.apply},78(eA){"use strict";eA.exports=Function.prototype.call},6688(eA,Q,f){"use strict";var t=f(5049),g=f(6785),I=f(78),N=f(7802);eA.exports=function(v){if(v.length<1||"function"!=typeof v[0])throw new g("a function is required");return N(t,I,v)}},1909(eA){"use strict";eA.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},7913(eA,Q,f){"use strict";var t=f(8651),g=f(6601),I=g(t("String.prototype.indexOf"));eA.exports=function(K,v){var B=t(K,!!v);return"function"==typeof B&&I(K,".prototype.")>-1?g(B):B}},6601(eA,Q,f){"use strict";var t=f(6255),g=f(6649),I=f(6688),N=f(8619);eA.exports=function(v){var B=I(arguments),j=1+v.length-(arguments.length-1);return t(B,j>0?j:0,!0)},g?g(eA.exports,"apply",{value:N}):eA.exports.apply=N},2774(eA,Q,f){"use strict";var t=f(8651),g=f(6688),I=g([t("%String.prototype.indexOf%")]);eA.exports=function(K,v){var B=t(K,!!v);return"function"==typeof B&&I(K,".prototype.")>-1?g([B]):B}},1613(eA,Q,f){var t=f(783).Buffer,g=function(){"use strict";function I(L,P){return null!=P&&L instanceof P}var N,K,v;try{N=Map}catch{N=function(){}}try{K=Set}catch{K=function(){}}try{v=Promise}catch{v=function(){}}function B(L,P,rA,QA,NA){"object"==typeof P&&(rA=P.depth,QA=P.prototype,NA=P.includeNonEnumerable,P=P.circular);var oA=[],uA=[],dA=typeof t<"u";return typeof P>"u"&&(P=!0),typeof rA>"u"&&(rA=1/0),function RA(nA,H){if(null===nA)return null;if(0===H)return nA;var pA,z;if("object"!=typeof nA)return nA;if(I(nA,N))pA=new N;else if(I(nA,K))pA=new K;else if(I(nA,v))pA=new v(function(xA,Ee){nA.then(function(HA){xA(RA(HA,H-1))},function(HA){Ee(RA(HA,H-1))})});else if(B.__isArray(nA))pA=[];else if(B.__isRegExp(nA))pA=new RegExp(nA.source,AA(nA)),nA.lastIndex&&(pA.lastIndex=nA.lastIndex);else if(B.__isDate(nA))pA=new Date(nA.getTime());else{if(dA&&t.isBuffer(nA))return pA=t.allocUnsafe?t.allocUnsafe(nA.length):new t(nA.length),nA.copy(pA),pA;I(nA,Error)?pA=Object.create(nA):typeof QA>"u"?(z=Object.getPrototypeOf(nA),pA=Object.create(z)):(pA=Object.create(QA),z=QA)}if(P){var OA=oA.indexOf(nA);if(-1!=OA)return uA[OA];oA.push(nA),uA.push(pA)}for(var wA in I(nA,N)&&nA.forEach(function(xA,Ee){var HA=RA(Ee,H-1),cA=RA(xA,H-1);pA.set(HA,cA)}),I(nA,K)&&nA.forEach(function(xA){var Ee=RA(xA,H-1);pA.add(Ee)}),nA){var VA;z&&(VA=Object.getOwnPropertyDescriptor(z,wA)),(!VA||null!=VA.set)&&(pA[wA]=RA(nA[wA],H-1))}if(Object.getOwnPropertySymbols){var kA=Object.getOwnPropertySymbols(nA);for(wA=0;wA3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new I("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new I("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new I("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new I("`loose`, if provided, must be a boolean");var tA=arguments.length>3?arguments[3]:null,w=arguments.length>4?arguments[4]:null,aA=arguments.length>5?arguments[5]:null,AA=arguments.length>6&&arguments[6],L=!!N&&N(v,B);if(t)t(v,B,{configurable:null===aA&&L?L.configurable:!aA,enumerable:null===tA&&L?L.enumerable:!tA,value:j,writable:null===w&&L?L.writable:!w});else{if(!AA&&(tA||w||aA))throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");v[B]=j}}},5421(eA,Q,f){"use strict";var t=f(5643),g="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),I=Object.prototype.toString,N=Array.prototype.concat,K=f(9295),B=f(8890)(),j=function(w,aA,AA,L){if(aA in w)if(!0===L){if(w[aA]===AA)return}else if(!function(w){return"function"==typeof w&&"[object Function]"===I.call(w)}(L)||!L())return;B?K(w,aA,AA,!0):K(w,aA,AA)},tA=function(w,aA){var AA=arguments.length>2?arguments[2]:{},L=t(aA);g&&(L=N.call(L,Object.getOwnPropertySymbols(aA)));for(var P=0;P0&&z.length>H&&!z.warned){z.warned=!0;var OA=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(dA)+" listeners added. Use emitter.setMaxListeners() to increase limit");OA.name="MaxListenersExceededWarning",OA.emitter=uA,OA.type=dA,OA.count=z.length,function g(uA){console&&console.warn&&console.warn(uA)}(OA)}return uA}function tA(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(uA,dA,RA){var nA={fired:!1,wrapFn:void 0,target:uA,type:dA,listener:RA},H=tA.bind(nA);return H.listener=RA,nA.wrapFn=H,H}function aA(uA,dA,RA){var nA=uA._events;if(void 0===nA)return[];var H=nA[dA];return void 0===H?[]:"function"==typeof H?RA?[H.listener||H]:[H]:RA?function rA(uA){for(var dA=new Array(uA.length),RA=0;RA0&&(z=RA[0]),z instanceof Error)throw z;var OA=new Error("Unhandled error."+(z?" ("+z.message+")":""));throw OA.context=z,OA}var wA=pA[dA];if(void 0===wA)return!1;if("function"==typeof wA)f(wA,this,RA);else{var VA=wA.length,kA=L(wA,VA);for(nA=0;nA=0;z--)if(nA[z]===RA||nA[z].listener===RA){OA=nA[z].listener,pA=z;break}if(pA<0)return this;0===pA?nA.shift():function P(uA,dA){for(;dA+1=0;H--)this.removeListener(dA,RA[H]);return this},N.prototype.listeners=function(dA){return aA(this,dA,!0)},N.prototype.rawListeners=function(dA){return aA(this,dA,!1)},N.listenerCount=function(uA,dA){return"function"==typeof uA.listenerCount?uA.listenerCount(dA):AA.call(uA,dA)},N.prototype.listenerCount=AA,N.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},2022(eA,Q,f){"use strict";eA.exports=function(){if("object"==typeof globalThis)return globalThis;var t;try{t=this||new Function("return this")()}catch{if("object"==typeof window)return window;if("object"==typeof self)return self;if(typeof f.g<"u")return f.g}return t}()},453(eA){"use strict";eA.exports=function Q(f,t){if(f===t)return!0;if(f&&t&&"object"==typeof f&&"object"==typeof t){if(f.constructor!==t.constructor)return!1;var g,I,N;if(Array.isArray(f)){if((g=f.length)!=t.length)return!1;for(I=g;0!==I--;)if(!Q(f[I],t[I]))return!1;return!0}if(f.constructor===RegExp)return f.source===t.source&&f.flags===t.flags;if(f.valueOf!==Object.prototype.valueOf)return f.valueOf()===t.valueOf();if(f.toString!==Object.prototype.toString)return f.toString()===t.toString();if((g=(N=Object.keys(f)).length)!==Object.keys(t).length)return!1;for(I=g;0!==I--;)if(!Object.prototype.hasOwnProperty.call(t,N[I]))return!1;for(I=g;0!==I--;){var K=N[I];if(!Q(f[K],t[K]))return!1}return!0}return f!=f&&t!=t}},8404(eA,Q,f){"use strict";var t=f(3746),g=Object.prototype.toString,I=Object.prototype.hasOwnProperty;eA.exports=function(tA,w,aA){if(!t(w))throw new TypeError("iterator must be a function");var AA;arguments.length>=3&&(AA=aA),function B(j){return"[object Array]"===g.call(j)}(tA)?function(tA,w,aA){for(var AA=0,L=tA.length;AAQ},8651(eA,Q,f){"use strict";var t,g=f(5846),I=f(5293),N=f(9055),K=f(8888),v=f(7900),B=f(7770),j=f(6785),tA=f(4055),w=f(716),aA=f(7450),AA=f(3774),L=f(7552),P=f(5874),rA=f(9292),QA=f(6071),NA=Function,oA=function(gA){try{return NA('"use strict"; return ('+gA+").constructor;")()}catch{}},uA=f(8109),dA=f(6649),RA=function(){throw new j},nA=uA?function(){try{return RA}catch{try{return uA(arguments,"callee").get}catch{return RA}}}():RA,H=f(3257)(),pA=f(7106),z=f(3766),OA=f(6822),wA=f(3036),VA=f(78),kA={},hA=typeof Uint8Array>"u"||!pA?t:pA(Uint8Array),fA={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":H&&pA?pA([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":kA,"%AsyncGenerator%":kA,"%AsyncGeneratorFunction%":kA,"%AsyncIteratorPrototype%":kA,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":I,"%eval%":eval,"%EvalError%":N,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":NA,"%GeneratorFunction%":kA,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":H&&pA?pA(pA([][Symbol.iterator]())):t,"%JSON%":"object"==typeof JSON?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!H||!pA?t:pA((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":uA,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":K,"%ReferenceError%":v,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!H||!pA?t:pA((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":H&&pA?pA(""[Symbol.iterator]()):t,"%Symbol%":H?Symbol:t,"%SyntaxError%":B,"%ThrowTypeError%":nA,"%TypedArray%":hA,"%TypeError%":j,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":tA,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":VA,"%Function.prototype.apply%":wA,"%Object.defineProperty%":dA,"%Object.getPrototypeOf%":z,"%Math.abs%":w,"%Math.floor%":aA,"%Math.max%":AA,"%Math.min%":L,"%Math.pow%":P,"%Math.round%":rA,"%Math.sign%":QA,"%Reflect.getPrototypeOf%":OA};if(pA)try{null.error}catch(gA){var UA=pA(pA(gA));fA["%Error.prototype%"]=UA}var yA=function gA(C){var b;if("%AsyncFunction%"===C)b=oA("async function () {}");else if("%GeneratorFunction%"===C)b=oA("function* () {}");else if("%AsyncGeneratorFunction%"===C)b=oA("async function* () {}");else if("%AsyncGenerator%"===C){var R=gA("%AsyncGeneratorFunction%");R&&(b=R.prototype)}else if("%AsyncIteratorPrototype%"===C){var M=gA("%AsyncGenerator%");M&&pA&&(b=pA(M.prototype))}return fA[C]=b,b},xA={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Ee=f(5049),HA=f(5215),cA=Ee.call(VA,Array.prototype.concat),J=Ee.call(wA,Array.prototype.splice),U=Ee.call(VA,String.prototype.replace),O=Ee.call(VA,String.prototype.slice),lA=Ee.call(VA,RegExp.prototype.exec),LA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,JA=/\\(\\)?/g,IA=function(C,b){var M,R=C;if(HA(xA,R)&&(R="%"+(M=xA[R])[0]+"%"),HA(fA,R)){var D=fA[R];if(D===kA&&(D=yA(R)),typeof D>"u"&&!b)throw new j("intrinsic "+C+" exists, but is not available. Please file an issue!");return{alias:M,name:R,value:D}}throw new B("intrinsic "+C+" does not exist!")};eA.exports=function(C,b){if("string"!=typeof C||0===C.length)throw new j("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof b)throw new j('"allowMissing" argument must be a boolean');if(null===lA(/^%?[^%]*%?$/,C))throw new B("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var R=function(C){var b=O(C,0,1),R=O(C,-1);if("%"===b&&"%"!==R)throw new B("invalid intrinsic syntax, expected closing `%`");if("%"===R&&"%"!==b)throw new B("invalid intrinsic syntax, expected opening `%`");var M=[];return U(C,LA,function(D,X,YA,KA){M[M.length]=YA?U(KA,JA,"$1"):X||D}),M}(C),M=R.length>0?R[0]:"",D=IA("%"+M+"%",b),X=D.name,YA=D.value,KA=!1,bA=D.alias;bA&&(M=bA[0],J(R,cA([0,1],bA)));for(var le=1,ve=!0;le=R.length){var Oe=uA(YA,Ne);YA=(ve=!!Oe)&&"get"in Oe&&!("originalValue"in Oe.get)?Oe.get:YA[Ne]}else ve=HA(YA,Ne),YA=YA[Ne];ve&&!KA&&(fA[X]=YA)}}return YA}},3766(eA,Q,f){"use strict";var t=f(5846);eA.exports=t.getPrototypeOf||null},6822(eA){"use strict";eA.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},7106(eA,Q,f){"use strict";var t=f(6822),g=f(3766),I=f(9302);eA.exports=t?function(K){return t(K)}:g?function(K){if(!K||"object"!=typeof K&&"function"!=typeof K)throw new TypeError("getProto: not an object");return g(K)}:I?function(K){return I(K)}:null},5567(eA){"use strict";eA.exports=Object.getOwnPropertyDescriptor},8109(eA,Q,f){"use strict";var t=f(5567);if(t)try{t([],"length")}catch{t=null}eA.exports=t},8890(eA,Q,f){"use strict";var t=f(6649),g=function(){return!!t};g.hasArrayLengthDefineBug=function(){if(!t)return null;try{return 1!==t([],"length",{value:1}).length}catch{return!0}},eA.exports=g},3257(eA,Q,f){"use strict";var t=typeof Symbol<"u"&&Symbol,g=f(2843);eA.exports=function(){return"function"==typeof t&&"function"==typeof Symbol&&"symbol"==typeof t("foo")&&"symbol"==typeof Symbol("bar")&&g()}},2843(eA){"use strict";eA.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var f={},t=Symbol("test"),g=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(g))return!1;for(var N in f[t]=42,f)return!1;if("function"==typeof Object.keys&&0!==Object.keys(f).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(f).length)return!1;var K=Object.getOwnPropertySymbols(f);if(1!==K.length||K[0]!==t||!Object.prototype.propertyIsEnumerable.call(f,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var v=Object.getOwnPropertyDescriptor(f,t);if(42!==v.value||!0!==v.enumerable)return!1}return!0}},6626(eA,Q,f){"use strict";var t=f(2843);eA.exports=function(){return t()&&!!Symbol.toStringTag}},5215(eA,Q,f){"use strict";var t=Function.prototype.call,g=Object.prototype.hasOwnProperty,I=f(5049);eA.exports=I.call(t,g)},9029(eA,Q){Q.read=function(f,t,g,I,N){var K,v,B=8*N-I-1,j=(1<>1,w=-7,aA=g?N-1:0,AA=g?-1:1,L=f[t+aA];for(aA+=AA,K=L&(1<<-w)-1,L>>=-w,w+=B;w>0;K=256*K+f[t+aA],aA+=AA,w-=8);for(v=K&(1<<-w)-1,K>>=-w,w+=I;w>0;v=256*v+f[t+aA],aA+=AA,w-=8);if(0===K)K=1-tA;else{if(K===j)return v?NaN:1/0*(L?-1:1);v+=Math.pow(2,I),K-=tA}return(L?-1:1)*v*Math.pow(2,K-I)},Q.write=function(f,t,g,I,N,K){var v,B,j,tA=8*K-N-1,w=(1<>1,AA=23===N?Math.pow(2,-24)-Math.pow(2,-77):0,L=I?0:K-1,P=I?1:-1,rA=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(B=isNaN(t)?1:0,v=w):(v=Math.floor(Math.log(t)/Math.LN2),t*(j=Math.pow(2,-v))<1&&(v--,j*=2),(t+=v+aA>=1?AA/j:AA*Math.pow(2,1-aA))*j>=2&&(v++,j/=2),v+aA>=w?(B=0,v=w):v+aA>=1?(B=(t*j-1)*Math.pow(2,N),v+=aA):(B=t*Math.pow(2,aA-1)*Math.pow(2,N),v=0));N>=8;f[g+L]=255&B,L+=P,B/=256,N-=8);for(v=v<0;f[g+L]=255&v,L+=P,v/=256,tA-=8);f[g+L-P]|=128*rA}},9784(eA){eA.exports="function"==typeof Object.create?function(f,t){t&&(f.super_=t,f.prototype=Object.create(t.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}))}:function(f,t){if(t){f.super_=t;var g=function(){};g.prototype=t.prototype,f.prototype=new g,f.prototype.constructor=f}}},7906(eA,Q,f){"use strict";var t=f(6626)(),I=f(2774)("Object.prototype.toString"),N=function(j){return!(t&&j&&"object"==typeof j&&Symbol.toStringTag in j)&&"[object Arguments]"===I(j)},K=function(j){return!!N(j)||null!==j&&"object"==typeof j&&"length"in j&&"number"==typeof j.length&&j.length>=0&&"[object Array]"!==I(j)&&"callee"in j&&"[object Function]"===I(j.callee)},v=function(){return N(arguments)}();N.isLegacyArguments=K,eA.exports=v?N:K},3746(eA){"use strict";var t,g,Q=Function.prototype.toString,f="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof f&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw g}}),g={},f(function(){throw 42},null,t)}catch(NA){NA!==g&&(f=null)}else f=null;var I=/^\s*class\b/,N=function(oA){try{var uA=Q.call(oA);return I.test(uA)}catch{return!1}},K=function(oA){try{return!N(oA)&&(Q.call(oA),!0)}catch{return!1}},v=Object.prototype.toString,L="function"==typeof Symbol&&!!Symbol.toStringTag,P=!(0 in[,]),rA=function(){return!1};if("object"==typeof document){var QA=document.all;v.call(QA)===v.call(document.all)&&(rA=function(oA){if((P||!oA)&&(typeof oA>"u"||"object"==typeof oA))try{var uA=v.call(oA);return("[object HTMLAllCollection]"===uA||"[object HTML document.all class]"===uA||"[object HTMLCollection]"===uA||"[object Object]"===uA)&&null==oA("")}catch{}return!1})}eA.exports=f?function(oA){if(rA(oA))return!0;if(!oA||"function"!=typeof oA&&"object"!=typeof oA)return!1;try{f(oA,null,t)}catch(uA){if(uA!==g)return!1}return!N(oA)&&K(oA)}:function(oA){if(rA(oA))return!0;if(!oA||"function"!=typeof oA&&"object"!=typeof oA)return!1;if(L)return K(oA);if(N(oA))return!1;var uA=v.call(oA);return!("[object Function]"!==uA&&"[object GeneratorFunction]"!==uA&&!/^\[object HTML/.test(uA))&&K(oA)}},4610(eA,Q,f){"use strict";var t=f(2774),I=f(8843)(/^\s*(?:function)?\*/),N=f(6626)(),K=f(7106),v=t("Object.prototype.toString"),B=t("Function.prototype.toString"),j=f(9294).c;eA.exports=function(w){if("function"!=typeof w)return!1;if(I(B(w)))return!0;if(!N)return"[object GeneratorFunction]"===v(w);if(!K)return!1;var AA=j();return AA&&K(w)===AA.prototype}},2621(eA){"use strict";eA.exports=function(f){return f!=f}},7051(eA,Q,f){"use strict";var t=f(6601),g=f(5421),I=f(2621),N=f(1320),K=f(5074),v=t(N(),Number);g(v,{getPolyfill:N,implementation:I,shim:K}),eA.exports=v},1320(eA,Q,f){"use strict";var t=f(2621);eA.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:t}},5074(eA,Q,f){"use strict";var t=f(5421),g=f(1320);eA.exports=function(){var N=g();return t(Number,{isNaN:N},{isNaN:function(){return Number.isNaN!==N}}),N}},1689(eA,Q,f){"use strict";var K,t=f(2774),g=f(6626)(),I=f(5215),N=f(8109);if(g){var v=t("RegExp.prototype.exec"),B={},j=function(){throw B},tA={toString:j,valueOf:j};"symbol"==typeof Symbol.toPrimitive&&(tA[Symbol.toPrimitive]=j),K=function(L){if(!L||"object"!=typeof L)return!1;var P=N(L,"lastIndex");if(!P||!I(P,"value"))return!1;try{v(L,tA)}catch(QA){return QA===B}}}else{var w=t("Object.prototype.toString");K=function(L){return!(!L||"object"!=typeof L&&"function"!=typeof L)&&"[object RegExp]"===w(L)}}eA.exports=K},6094(eA,Q,f){"use strict";var t=f(3381);eA.exports=function(I){return!!t(I)}},1632(eA,Q,f){var g,t=f(9964);!function(){"use strict";var I="input is invalid type",K="object"==typeof window,v=K?window:{};v.JS_MD5_NO_WINDOW&&(K=!1);var B=!K&&"object"==typeof self,j=!v.JS_MD5_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node;j?v=f.g:B&&(v=self);var oA,tA=!v.JS_MD5_NO_COMMON_JS&&eA.exports,w=f.amdO,aA=!v.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",AA="0123456789abcdef".split(""),L=[128,32768,8388608,-2147483648],P=[0,8,16,24],rA=["hex","array","digest","buffer","arrayBuffer","base64"],QA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),NA=[];if(aA){var uA=new ArrayBuffer(68);oA=new Uint8Array(uA),NA=new Uint32Array(uA)}var dA=Array.isArray;(v.JS_MD5_NO_NODE_JS||!dA)&&(dA=function(fA){return"[object Array]"===Object.prototype.toString.call(fA)});var RA=ArrayBuffer.isView;aA&&(v.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!RA)&&(RA=function(fA){return"object"==typeof fA&&fA.buffer&&fA.buffer.constructor===ArrayBuffer});var nA=function(fA){var UA=typeof fA;if("string"===UA)return[fA,!0];if("object"!==UA||null===fA)throw new Error(I);if(aA&&fA.constructor===ArrayBuffer)return[new Uint8Array(fA),!1];if(!dA(fA)&&!RA(fA))throw new Error(I);return[fA,!1]},H=function(fA){return function(UA){return new VA(!0).update(UA)[fA]()}},OA=function(fA){return function(UA,yA){return new kA(UA,!0).update(yA)[fA]()}};function VA(fA){if(fA)NA[0]=NA[16]=NA[1]=NA[2]=NA[3]=NA[4]=NA[5]=NA[6]=NA[7]=NA[8]=NA[9]=NA[10]=NA[11]=NA[12]=NA[13]=NA[14]=NA[15]=0,this.blocks=NA,this.buffer8=oA;else if(aA){var UA=new ArrayBuffer(68);this.buffer8=new Uint8Array(UA),this.blocks=new Uint32Array(UA)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function kA(fA,UA){var yA,xA=nA(fA);if(fA=xA[0],xA[1]){var J,Ee=[],HA=fA.length,cA=0;for(yA=0;yA>>6,Ee[cA++]=128|63&J):J<55296||J>=57344?(Ee[cA++]=224|J>>>12,Ee[cA++]=128|J>>>6&63,Ee[cA++]=128|63&J):(J=65536+((1023&J)<<10|1023&fA.charCodeAt(++yA)),Ee[cA++]=240|J>>>18,Ee[cA++]=128|J>>>12&63,Ee[cA++]=128|J>>>6&63,Ee[cA++]=128|63&J);fA=Ee}fA.length>64&&(fA=new VA(!0).update(fA).array());var U=[],O=[];for(yA=0;yA<64;++yA){var lA=fA[yA]||0;U[yA]=92^lA,O[yA]=54^lA}VA.call(this,UA),this.update(O),this.oKeyPad=U,this.inner=!0,this.sharedMemory=UA}VA.prototype.update=function(fA){if(this.finalized)throw new Error("finalize already called");for(var xA,HA,UA=nA(fA),yA=UA[1],Ee=0,cA=(fA=UA[0]).length,J=this.blocks,U=this.buffer8;Ee>>6,U[HA++]=128|63&xA):xA<55296||xA>=57344?(U[HA++]=224|xA>>>12,U[HA++]=128|xA>>>6&63,U[HA++]=128|63&xA):(xA=65536+((1023&xA)<<10|1023&fA.charCodeAt(++Ee)),U[HA++]=240|xA>>>18,U[HA++]=128|xA>>>12&63,U[HA++]=128|xA>>>6&63,U[HA++]=128|63&xA);else for(HA=this.start;Ee>>2]|=xA<>>2]|=(192|xA>>>6)<>>2]|=(128|63&xA)<=57344?(J[HA>>>2]|=(224|xA>>>12)<>>2]|=(128|xA>>>6&63)<>>2]|=(128|63&xA)<>>2]|=(240|xA>>>18)<>>2]|=(128|xA>>>12&63)<>>2]|=(128|xA>>>6&63)<>>2]|=(128|63&xA)<>>2]|=fA[Ee]<=64?(this.start=HA-64,this.hash(),this.hashed=!0):this.start=HA}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},VA.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var fA=this.blocks,UA=this.lastByteIndex;fA[UA>>>2]|=L[3&UA],UA>=56&&(this.hashed||this.hash(),fA[0]=fA[16],fA[16]=fA[1]=fA[2]=fA[3]=fA[4]=fA[5]=fA[6]=fA[7]=fA[8]=fA[9]=fA[10]=fA[11]=fA[12]=fA[13]=fA[14]=fA[15]=0),fA[14]=this.bytes<<3,fA[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},VA.prototype.hash=function(){var fA,UA,yA,xA,Ee,HA,cA=this.blocks;this.first?UA=((UA=((fA=((fA=cA[0]-680876937)<<7|fA>>>25)-271733879|0)^(yA=((yA=(-271733879^(xA=((xA=(-1732584194^2004318071&fA)+cA[1]-117830708)<<12|xA>>>20)+fA|0)&(-271733879^fA))+cA[2]-1126478375)<<17|yA>>>15)+xA|0)&(xA^fA))+cA[3]-1316259209)<<22|UA>>>10)+yA|0:(fA=this.h0,UA=this.h1,UA=((UA+=((fA=((fA+=((xA=this.h3)^UA&((yA=this.h2)^xA))+cA[0]-680876936)<<7|fA>>>25)+UA|0)^(yA=((yA+=(UA^(xA=((xA+=(yA^fA&(UA^yA))+cA[1]-389564586)<<12|xA>>>20)+fA|0)&(fA^UA))+cA[2]+606105819)<<17|yA>>>15)+xA|0)&(xA^fA))+cA[3]-1044525330)<<22|UA>>>10)+yA|0),UA=((UA+=((fA=((fA+=(xA^UA&(yA^xA))+cA[4]-176418897)<<7|fA>>>25)+UA|0)^(yA=((yA+=(UA^(xA=((xA+=(yA^fA&(UA^yA))+cA[5]+1200080426)<<12|xA>>>20)+fA|0)&(fA^UA))+cA[6]-1473231341)<<17|yA>>>15)+xA|0)&(xA^fA))+cA[7]-45705983)<<22|UA>>>10)+yA|0,UA=((UA+=((fA=((fA+=(xA^UA&(yA^xA))+cA[8]+1770035416)<<7|fA>>>25)+UA|0)^(yA=((yA+=(UA^(xA=((xA+=(yA^fA&(UA^yA))+cA[9]-1958414417)<<12|xA>>>20)+fA|0)&(fA^UA))+cA[10]-42063)<<17|yA>>>15)+xA|0)&(xA^fA))+cA[11]-1990404162)<<22|UA>>>10)+yA|0,UA=((UA+=((fA=((fA+=(xA^UA&(yA^xA))+cA[12]+1804603682)<<7|fA>>>25)+UA|0)^(yA=((yA+=(UA^(xA=((xA+=(yA^fA&(UA^yA))+cA[13]-40341101)<<12|xA>>>20)+fA|0)&(fA^UA))+cA[14]-1502002290)<<17|yA>>>15)+xA|0)&(xA^fA))+cA[15]+1236535329)<<22|UA>>>10)+yA|0,UA=((UA+=((xA=((xA+=(UA^yA&((fA=((fA+=(yA^xA&(UA^yA))+cA[1]-165796510)<<5|fA>>>27)+UA|0)^UA))+cA[6]-1069501632)<<9|xA>>>23)+fA|0)^fA&((yA=((yA+=(fA^UA&(xA^fA))+cA[11]+643717713)<<14|yA>>>18)+xA|0)^xA))+cA[0]-373897302)<<20|UA>>>12)+yA|0,UA=((UA+=((xA=((xA+=(UA^yA&((fA=((fA+=(yA^xA&(UA^yA))+cA[5]-701558691)<<5|fA>>>27)+UA|0)^UA))+cA[10]+38016083)<<9|xA>>>23)+fA|0)^fA&((yA=((yA+=(fA^UA&(xA^fA))+cA[15]-660478335)<<14|yA>>>18)+xA|0)^xA))+cA[4]-405537848)<<20|UA>>>12)+yA|0,UA=((UA+=((xA=((xA+=(UA^yA&((fA=((fA+=(yA^xA&(UA^yA))+cA[9]+568446438)<<5|fA>>>27)+UA|0)^UA))+cA[14]-1019803690)<<9|xA>>>23)+fA|0)^fA&((yA=((yA+=(fA^UA&(xA^fA))+cA[3]-187363961)<<14|yA>>>18)+xA|0)^xA))+cA[8]+1163531501)<<20|UA>>>12)+yA|0,UA=((UA+=((xA=((xA+=(UA^yA&((fA=((fA+=(yA^xA&(UA^yA))+cA[13]-1444681467)<<5|fA>>>27)+UA|0)^UA))+cA[2]-51403784)<<9|xA>>>23)+fA|0)^fA&((yA=((yA+=(fA^UA&(xA^fA))+cA[7]+1735328473)<<14|yA>>>18)+xA|0)^xA))+cA[12]-1926607734)<<20|UA>>>12)+yA|0,UA=((UA+=((HA=(xA=((xA+=((Ee=UA^yA)^(fA=((fA+=(Ee^xA)+cA[5]-378558)<<4|fA>>>28)+UA|0))+cA[8]-2022574463)<<11|xA>>>21)+fA|0)^fA)^(yA=((yA+=(HA^UA)+cA[11]+1839030562)<<16|yA>>>16)+xA|0))+cA[14]-35309556)<<23|UA>>>9)+yA|0,UA=((UA+=((HA=(xA=((xA+=((Ee=UA^yA)^(fA=((fA+=(Ee^xA)+cA[1]-1530992060)<<4|fA>>>28)+UA|0))+cA[4]+1272893353)<<11|xA>>>21)+fA|0)^fA)^(yA=((yA+=(HA^UA)+cA[7]-155497632)<<16|yA>>>16)+xA|0))+cA[10]-1094730640)<<23|UA>>>9)+yA|0,UA=((UA+=((HA=(xA=((xA+=((Ee=UA^yA)^(fA=((fA+=(Ee^xA)+cA[13]+681279174)<<4|fA>>>28)+UA|0))+cA[0]-358537222)<<11|xA>>>21)+fA|0)^fA)^(yA=((yA+=(HA^UA)+cA[3]-722521979)<<16|yA>>>16)+xA|0))+cA[6]+76029189)<<23|UA>>>9)+yA|0,UA=((UA+=((HA=(xA=((xA+=((Ee=UA^yA)^(fA=((fA+=(Ee^xA)+cA[9]-640364487)<<4|fA>>>28)+UA|0))+cA[12]-421815835)<<11|xA>>>21)+fA|0)^fA)^(yA=((yA+=(HA^UA)+cA[15]+530742520)<<16|yA>>>16)+xA|0))+cA[2]-995338651)<<23|UA>>>9)+yA|0,UA=((UA+=((xA=((xA+=(UA^((fA=((fA+=(yA^(UA|~xA))+cA[0]-198630844)<<6|fA>>>26)+UA|0)|~yA))+cA[7]+1126891415)<<10|xA>>>22)+fA|0)^((yA=((yA+=(fA^(xA|~UA))+cA[14]-1416354905)<<15|yA>>>17)+xA|0)|~fA))+cA[5]-57434055)<<21|UA>>>11)+yA|0,UA=((UA+=((xA=((xA+=(UA^((fA=((fA+=(yA^(UA|~xA))+cA[12]+1700485571)<<6|fA>>>26)+UA|0)|~yA))+cA[3]-1894986606)<<10|xA>>>22)+fA|0)^((yA=((yA+=(fA^(xA|~UA))+cA[10]-1051523)<<15|yA>>>17)+xA|0)|~fA))+cA[1]-2054922799)<<21|UA>>>11)+yA|0,UA=((UA+=((xA=((xA+=(UA^((fA=((fA+=(yA^(UA|~xA))+cA[8]+1873313359)<<6|fA>>>26)+UA|0)|~yA))+cA[15]-30611744)<<10|xA>>>22)+fA|0)^((yA=((yA+=(fA^(xA|~UA))+cA[6]-1560198380)<<15|yA>>>17)+xA|0)|~fA))+cA[13]+1309151649)<<21|UA>>>11)+yA|0,UA=((UA+=((xA=((xA+=(UA^((fA=((fA+=(yA^(UA|~xA))+cA[4]-145523070)<<6|fA>>>26)+UA|0)|~yA))+cA[11]-1120210379)<<10|xA>>>22)+fA|0)^((yA=((yA+=(fA^(xA|~UA))+cA[2]+718787259)<<15|yA>>>17)+xA|0)|~fA))+cA[9]-343485551)<<21|UA>>>11)+yA|0,this.first?(this.h0=fA+1732584193|0,this.h1=UA-271733879|0,this.h2=yA-1732584194|0,this.h3=xA+271733878|0,this.first=!1):(this.h0=this.h0+fA|0,this.h1=this.h1+UA|0,this.h2=this.h2+yA|0,this.h3=this.h3+xA|0)},VA.prototype.toString=VA.prototype.hex=function(){this.finalize();var fA=this.h0,UA=this.h1,yA=this.h2,xA=this.h3;return AA[fA>>>4&15]+AA[15&fA]+AA[fA>>>12&15]+AA[fA>>>8&15]+AA[fA>>>20&15]+AA[fA>>>16&15]+AA[fA>>>28&15]+AA[fA>>>24&15]+AA[UA>>>4&15]+AA[15&UA]+AA[UA>>>12&15]+AA[UA>>>8&15]+AA[UA>>>20&15]+AA[UA>>>16&15]+AA[UA>>>28&15]+AA[UA>>>24&15]+AA[yA>>>4&15]+AA[15&yA]+AA[yA>>>12&15]+AA[yA>>>8&15]+AA[yA>>>20&15]+AA[yA>>>16&15]+AA[yA>>>28&15]+AA[yA>>>24&15]+AA[xA>>>4&15]+AA[15&xA]+AA[xA>>>12&15]+AA[xA>>>8&15]+AA[xA>>>20&15]+AA[xA>>>16&15]+AA[xA>>>28&15]+AA[xA>>>24&15]},VA.prototype.array=VA.prototype.digest=function(){this.finalize();var fA=this.h0,UA=this.h1,yA=this.h2,xA=this.h3;return[255&fA,fA>>>8&255,fA>>>16&255,fA>>>24&255,255&UA,UA>>>8&255,UA>>>16&255,UA>>>24&255,255&yA,yA>>>8&255,yA>>>16&255,yA>>>24&255,255&xA,xA>>>8&255,xA>>>16&255,xA>>>24&255]},VA.prototype.buffer=VA.prototype.arrayBuffer=function(){this.finalize();var fA=new ArrayBuffer(16),UA=new Uint32Array(fA);return UA[0]=this.h0,UA[1]=this.h1,UA[2]=this.h2,UA[3]=this.h3,fA},VA.prototype.base64=function(){for(var fA,UA,yA,xA="",Ee=this.array(),HA=0;HA<15;)fA=Ee[HA++],UA=Ee[HA++],yA=Ee[HA++],xA+=QA[fA>>>2]+QA[63&(fA<<4|UA>>>4)]+QA[63&(UA<<2|yA>>>6)]+QA[63&yA];return xA+(QA[(fA=Ee[HA])>>>2]+QA[fA<<4&63]+"==")},(kA.prototype=new VA).finalize=function(){if(VA.prototype.finalize.call(this),this.inner){this.inner=!1;var fA=this.array();VA.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(fA),VA.prototype.finalize.call(this)}};var hA=function(){var fA=H("hex");j&&(fA=function(fA){var xA,UA=f(8535),yA=f(6274).Buffer;return xA=yA.from&&!v.JS_MD5_NO_BUFFER_FROM?yA.from:function(HA){return new yA(HA)},function(HA){if("string"==typeof HA)return UA.createHash("md5").update(HA,"utf8").digest("hex");if(null==HA)throw new Error(I);return HA.constructor===ArrayBuffer&&(HA=new Uint8Array(HA)),dA(HA)||RA(HA)||HA.constructor===yA?UA.createHash("md5").update(xA(HA)).digest("hex"):fA(HA)}}(fA)),fA.create=function(){return new VA},fA.update=function(xA){return fA.create().update(xA)};for(var UA=0;UA"u")return!1;for(var L in window)try{if(!w["$"+L]&&g.call(window,L)&&null!==window[L]&&"object"==typeof window[L])try{tA(window[L])}catch{return!0}}catch{return!0}return!1}();t=function(P){var rA=null!==P&&"object"==typeof P,QA="[object Function]"===I.call(P),NA=N(P),oA=rA&&"[object String]"===I.call(P),uA=[];if(!rA&&!QA&&!NA)throw new TypeError("Object.keys called on a non-object");var dA=B&&QA;if(oA&&P.length>0&&!g.call(P,0))for(var RA=0;RA0)for(var nA=0;nA"u"||!aA)return tA(L);try{return tA(L)}catch{return!1}}(P),z=0;z=0&&"[object Function]"===Q.call(t.callee)),I}},6521(eA,Q,f){"use strict";var t=f(5643),g=f(2843)(),I=f(2774),N=f(5846),K=I("Array.prototype.push"),v=I("Object.prototype.propertyIsEnumerable"),B=g?N.getOwnPropertySymbols:null;eA.exports=function(tA,w){if(null==tA)throw new TypeError("target must be an object");var aA=N(tA);if(1===arguments.length)return aA;for(var AA=1;AA>>16&65535,v=0;0!==g;){g-=v=g>2e3?2e3:g;do{K=K+(N=N+t[I++]|0)|0}while(--v);N%=65521,K%=65521}return N|K<<16}},1607(eA){"use strict";eA.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},9049(eA){"use strict";var f=function Q(){for(var g,I=[],N=0;N<256;N++){g=N;for(var K=0;K<8;K++)g=1&g?3988292384^g>>>1:g>>>1;I[N]=g}return I}();eA.exports=function t(g,I,N,K){var v=f,B=K+N;g^=-1;for(var j=K;j>>8^v[255&(g^I[j])];return-1^g}},2925(eA,Q,f){"use strict";var k,t=f(2519),g=f(2367),I=f(6911),N=f(9049),K=f(6228),L=-2,HA=262;function M(_,be){return _.msg=K[be],be}function D(_){return(_<<1)-(_>4?9:0)}function X(_){for(var be=_.length;--be>=0;)_[be]=0}function YA(_){var be=_.state,Re=be.pending;Re>_.avail_out&&(Re=_.avail_out),0!==Re&&(t.arraySet(_.output,be.pending_buf,be.pending_out,Re,_.next_out),_.next_out+=Re,be.pending_out+=Re,_.total_out+=Re,_.avail_out-=Re,be.pending-=Re,0===be.pending&&(be.pending_out=0))}function KA(_,be){g._tr_flush_block(_,_.block_start>=0?_.block_start:-1,_.strstart-_.block_start,be),_.block_start=_.strstart,YA(_.strm)}function bA(_,be){_.pending_buf[_.pending++]=be}function le(_,be){_.pending_buf[_.pending++]=be>>>8&255,_.pending_buf[_.pending++]=255&be}function ve(_,be,Re,SA){var we=_.avail_in;return we>SA&&(we=SA),0===we?0:(_.avail_in-=we,t.arraySet(be,_.input,_.next_in,we,Re),1===_.state.wrap?_.adler=I(_.adler,be,we,Re):2===_.state.wrap&&(_.adler=N(_.adler,be,we,Re)),_.next_in+=we,_.total_in+=we,we)}function Ne(_,be){var we,Fe,Re=_.max_chain_length,SA=_.strstart,et=_.prev_length,Ke=_.nice_match,$e=_.strstart>_.w_size-HA?_.strstart-(_.w_size-HA):0,ht=_.window,cn=_.w_mask,at=_.prev,It=_.strstart+258,mt=ht[SA+et-1],Tt=ht[SA+et];_.prev_length>=_.good_match&&(Re>>=2),Ke>_.lookahead&&(Ke=_.lookahead);do{if(ht[(we=be)+et]===Tt&&ht[we+et-1]===mt&&ht[we]===ht[SA]&&ht[++we]===ht[SA+1]){SA+=2,we++;do{}while(ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&ht[++SA]===ht[++we]&&SAet){if(_.match_start=be,et=Fe,Fe>=Ke)break;mt=ht[SA+et-1],Tt=ht[SA+et]}}}while((be=at[be&cn])>$e&&0!==--Re);return et<=_.lookahead?et:_.lookahead}function Te(_){var Re,SA,we,Fe,et,be=_.w_size;do{if(Fe=_.window_size-_.lookahead-_.strstart,_.strstart>=be+(be-HA)){t.arraySet(_.window,_.window,be,be,0),_.match_start-=be,_.strstart-=be,_.block_start-=be,Re=SA=_.hash_size;do{we=_.head[--Re],_.head[Re]=we>=be?we-be:0}while(--SA);Re=SA=be;do{we=_.prev[--Re],_.prev[Re]=we>=be?we-be:0}while(--SA);Fe+=be}if(0===_.strm.avail_in)break;if(SA=ve(_.strm,_.window,_.strstart+_.lookahead,Fe),_.lookahead+=SA,_.lookahead+_.insert>=3)for(_.ins_h=_.window[et=_.strstart-_.insert],_.ins_h=(_.ins_h<<_.hash_shift^_.window[et+1])&_.hash_mask;_.insert&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[et+3-1])&_.hash_mask,_.prev[et&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=et,et++,_.insert--,!(_.lookahead+_.insert<3)););}while(_.lookahead=3&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+3-1])&_.hash_mask,Re=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),0!==Re&&_.strstart-Re<=_.w_size-HA&&(_.match_length=Ne(_,Re)),_.match_length>=3)if(SA=g._tr_tally(_,_.strstart-_.match_start,_.match_length-3),_.lookahead-=_.match_length,_.match_length<=_.max_lazy_match&&_.lookahead>=3){_.match_length--;do{_.strstart++,_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+3-1])&_.hash_mask,Re=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart}while(0!==--_.match_length);_.strstart++}else _.strstart+=_.match_length,_.match_length=0,_.ins_h=_.window[_.strstart],_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+1])&_.hash_mask;else SA=g._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++;if(SA&&(KA(_,!1),0===_.strm.avail_out))return 1}return _.insert=_.strstart<2?_.strstart:2,4===be?(KA(_,!0),0===_.strm.avail_out?3:4):_.last_lit&&(KA(_,!1),0===_.strm.avail_out)?1:2}function oe(_,be){for(var Re,SA,we;;){if(_.lookahead=3&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+3-1])&_.hash_mask,Re=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart),_.prev_length=_.match_length,_.prev_match=_.match_start,_.match_length=2,0!==Re&&_.prev_length<_.max_lazy_match&&_.strstart-Re<=_.w_size-HA&&(_.match_length=Ne(_,Re),_.match_length<=5&&(1===_.strategy||3===_.match_length&&_.strstart-_.match_start>4096)&&(_.match_length=2)),_.prev_length>=3&&_.match_length<=_.prev_length){we=_.strstart+_.lookahead-3,SA=g._tr_tally(_,_.strstart-1-_.prev_match,_.prev_length-3),_.lookahead-=_.prev_length-1,_.prev_length-=2;do{++_.strstart<=we&&(_.ins_h=(_.ins_h<<_.hash_shift^_.window[_.strstart+3-1])&_.hash_mask,Re=_.prev[_.strstart&_.w_mask]=_.head[_.ins_h],_.head[_.ins_h]=_.strstart)}while(0!==--_.prev_length);if(_.match_available=0,_.match_length=2,_.strstart++,SA&&(KA(_,!1),0===_.strm.avail_out))return 1}else if(_.match_available){if((SA=g._tr_tally(_,0,_.window[_.strstart-1]))&&KA(_,!1),_.strstart++,_.lookahead--,0===_.strm.avail_out)return 1}else _.match_available=1,_.strstart++,_.lookahead--}return _.match_available&&(SA=g._tr_tally(_,0,_.window[_.strstart-1]),_.match_available=0),_.insert=_.strstart<2?_.strstart:2,4===be?(KA(_,!0),0===_.strm.avail_out?3:4):_.last_lit&&(KA(_,!1),0===_.strm.avail_out)?1:2}function Y(_,be,Re,SA,we){this.good_length=_,this.max_lazy=be,this.nice_length=Re,this.max_chain=SA,this.func=we}function E(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new t.Buf16(1146),this.dyn_dtree=new t.Buf16(122),this.bl_tree=new t.Buf16(78),X(this.dyn_ltree),X(this.dyn_dtree),X(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new t.Buf16(16),this.heap=new t.Buf16(573),X(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new t.Buf16(573),X(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function mA(_){var be;return _&&_.state?(_.total_in=_.total_out=0,_.data_type=2,(be=_.state).pending=0,be.pending_out=0,be.wrap<0&&(be.wrap=-be.wrap),be.status=be.wrap?42:113,_.adler=2===be.wrap?0:1,be.last_flush=0,g._tr_init(be),0):M(_,L)}function ie(_){var be=mA(_);return 0===be&&function m(_){_.window_size=2*_.w_size,X(_.head),_.max_lazy_match=k[_.level].max_lazy,_.good_match=k[_.level].good_length,_.nice_match=k[_.level].nice_length,_.max_chain_length=k[_.level].max_chain,_.strstart=0,_.block_start=0,_.lookahead=0,_.insert=0,_.match_length=_.prev_length=2,_.match_available=0,_.ins_h=0}(_.state),be}function Ae(_,be,Re,SA,we,Fe){if(!_)return L;var et=1;if(-1===be&&(be=6),SA<0?(et=0,SA=-SA):SA>15&&(et=2,SA-=16),we<1||we>9||8!==Re||SA<8||SA>15||be<0||be>9||Fe<0||Fe>4)return M(_,L);8===SA&&(SA=9);var Ke=new E;return _.state=Ke,Ke.strm=_,Ke.wrap=et,Ke.gzhead=null,Ke.w_bits=SA,Ke.w_size=1<_.pending_buf_size-5&&(Re=_.pending_buf_size-5);;){if(_.lookahead<=1){if(Te(_),0===_.lookahead&&0===be)return 1;if(0===_.lookahead)break}_.strstart+=_.lookahead,_.lookahead=0;var SA=_.block_start+Re;if((0===_.strstart||_.strstart>=SA)&&(_.lookahead=_.strstart-SA,_.strstart=SA,KA(_,!1),0===_.strm.avail_out)||_.strstart-_.block_start>=_.w_size-HA&&(KA(_,!1),0===_.strm.avail_out))return 1}return _.insert=0,4===be?(KA(_,!0),0===_.strm.avail_out?3:4):(_.strstart>_.block_start&&KA(_,!1),1)}),new Y(4,4,8,4,Oe),new Y(4,5,16,8,Oe),new Y(4,6,32,32,Oe),new Y(4,4,16,16,oe),new Y(8,16,32,32,oe),new Y(8,16,128,128,oe),new Y(8,32,128,256,oe),new Y(32,128,258,1024,oe),new Y(32,258,258,4096,oe)],Q.deflateInit=function pe(_,be){return Ae(_,be,8,15,8,0)},Q.deflateInit2=Ae,Q.deflateReset=ie,Q.deflateResetKeep=mA,Q.deflateSetHeader=function DA(_,be){return _&&_.state&&2===_.state.wrap?(_.state.gzhead=be,0):L},Q.deflate=function MA(_,be){var Re,SA,we,Fe;if(!_||!_.state||be>5||be<0)return _?M(_,L):L;if(SA=_.state,!_.output||!_.input&&0!==_.avail_in||666===SA.status&&4!==be)return M(_,0===_.avail_out?-5:L);if(SA.strm=_,Re=SA.last_flush,SA.last_flush=be,42===SA.status)if(2===SA.wrap)_.adler=0,bA(SA,31),bA(SA,139),bA(SA,8),SA.gzhead?(bA(SA,(SA.gzhead.text?1:0)+(SA.gzhead.hcrc?2:0)+(SA.gzhead.extra?4:0)+(SA.gzhead.name?8:0)+(SA.gzhead.comment?16:0)),bA(SA,255&SA.gzhead.time),bA(SA,SA.gzhead.time>>8&255),bA(SA,SA.gzhead.time>>16&255),bA(SA,SA.gzhead.time>>24&255),bA(SA,9===SA.level?2:SA.strategy>=2||SA.level<2?4:0),bA(SA,255&SA.gzhead.os),SA.gzhead.extra&&SA.gzhead.extra.length&&(bA(SA,255&SA.gzhead.extra.length),bA(SA,SA.gzhead.extra.length>>8&255)),SA.gzhead.hcrc&&(_.adler=N(_.adler,SA.pending_buf,SA.pending,0)),SA.gzindex=0,SA.status=69):(bA(SA,0),bA(SA,0),bA(SA,0),bA(SA,0),bA(SA,0),bA(SA,9===SA.level?2:SA.strategy>=2||SA.level<2?4:0),bA(SA,3),SA.status=113);else{var et=8+(SA.w_bits-8<<4)<<8;et|=(SA.strategy>=2||SA.level<2?0:SA.level<6?1:6===SA.level?2:3)<<6,0!==SA.strstart&&(et|=32),et+=31-et%31,SA.status=113,le(SA,et),0!==SA.strstart&&(le(SA,_.adler>>>16),le(SA,65535&_.adler)),_.adler=1}if(69===SA.status)if(SA.gzhead.extra){for(we=SA.pending;SA.gzindex<(65535&SA.gzhead.extra.length)&&(SA.pending!==SA.pending_buf_size||(SA.gzhead.hcrc&&SA.pending>we&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),YA(_),we=SA.pending,SA.pending!==SA.pending_buf_size));)bA(SA,255&SA.gzhead.extra[SA.gzindex]),SA.gzindex++;SA.gzhead.hcrc&&SA.pending>we&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),SA.gzindex===SA.gzhead.extra.length&&(SA.gzindex=0,SA.status=73)}else SA.status=73;if(73===SA.status)if(SA.gzhead.name){we=SA.pending;do{if(SA.pending===SA.pending_buf_size&&(SA.gzhead.hcrc&&SA.pending>we&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),YA(_),we=SA.pending,SA.pending===SA.pending_buf_size)){Fe=1;break}Fe=SA.gzindexwe&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),0===Fe&&(SA.gzindex=0,SA.status=91)}else SA.status=91;if(91===SA.status)if(SA.gzhead.comment){we=SA.pending;do{if(SA.pending===SA.pending_buf_size&&(SA.gzhead.hcrc&&SA.pending>we&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),YA(_),we=SA.pending,SA.pending===SA.pending_buf_size)){Fe=1;break}Fe=SA.gzindexwe&&(_.adler=N(_.adler,SA.pending_buf,SA.pending-we,we)),0===Fe&&(SA.status=103)}else SA.status=103;if(103===SA.status&&(SA.gzhead.hcrc?(SA.pending+2>SA.pending_buf_size&&YA(_),SA.pending+2<=SA.pending_buf_size&&(bA(SA,255&_.adler),bA(SA,_.adler>>8&255),_.adler=0,SA.status=113)):SA.status=113),0!==SA.pending){if(YA(_),0===_.avail_out)return SA.last_flush=-1,0}else if(0===_.avail_in&&D(be)<=D(Re)&&4!==be)return M(_,-5);if(666===SA.status&&0!==_.avail_in)return M(_,-5);if(0!==_.avail_in||0!==SA.lookahead||0!==be&&666!==SA.status){var $e=2===SA.strategy?function S(_,be){for(var Re;;){if(0===_.lookahead&&(Te(_),0===_.lookahead)){if(0===be)return 1;break}if(_.match_length=0,Re=g._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++,Re&&(KA(_,!1),0===_.strm.avail_out))return 1}return _.insert=0,4===be?(KA(_,!0),0===_.strm.avail_out?3:4):_.last_lit&&(KA(_,!1),0===_.strm.avail_out)?1:2}(SA,be):3===SA.strategy?function sA(_,be){for(var Re,SA,we,Fe,et=_.window;;){if(_.lookahead<=258){if(Te(_),_.lookahead<=258&&0===be)return 1;if(0===_.lookahead)break}if(_.match_length=0,_.lookahead>=3&&_.strstart>0&&(SA=et[we=_.strstart-1])===et[++we]&&SA===et[++we]&&SA===et[++we]){Fe=_.strstart+258;do{}while(SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&SA===et[++we]&&we_.lookahead&&(_.match_length=_.lookahead)}if(_.match_length>=3?(Re=g._tr_tally(_,1,_.match_length-3),_.lookahead-=_.match_length,_.strstart+=_.match_length,_.match_length=0):(Re=g._tr_tally(_,0,_.window[_.strstart]),_.lookahead--,_.strstart++),Re&&(KA(_,!1),0===_.strm.avail_out))return 1}return _.insert=0,4===be?(KA(_,!0),0===_.strm.avail_out?3:4):_.last_lit&&(KA(_,!1),0===_.strm.avail_out)?1:2}(SA,be):k[SA.level].func(SA,be);if((3===$e||4===$e)&&(SA.status=666),1===$e||3===$e)return 0===_.avail_out&&(SA.last_flush=-1),0;if(2===$e&&(1===be?g._tr_align(SA):5!==be&&(g._tr_stored_block(SA,0,0,!1),3===be&&(X(SA.head),0===SA.lookahead&&(SA.strstart=0,SA.block_start=0,SA.insert=0))),YA(_),0===_.avail_out))return SA.last_flush=-1,0}return 4!==be?0:SA.wrap<=0?1:(2===SA.wrap?(bA(SA,255&_.adler),bA(SA,_.adler>>8&255),bA(SA,_.adler>>16&255),bA(SA,_.adler>>24&255),bA(SA,255&_.total_in),bA(SA,_.total_in>>8&255),bA(SA,_.total_in>>16&255),bA(SA,_.total_in>>24&255)):(le(SA,_.adler>>>16),le(SA,65535&_.adler)),YA(_),SA.wrap>0&&(SA.wrap=-SA.wrap),0!==SA.pending?0:1)},Q.deflateEnd=function Pe(_){var be;return _&&_.state?42!==(be=_.state.status)&&69!==be&&73!==be&&91!==be&&103!==be&&113!==be&&666!==be?M(_,L):(_.state=null,113===be?M(_,-3):0):L},Q.deflateSetDictionary=function At(_,be){var SA,we,Fe,et,Ke,$e,ht,cn,Re=be.length;if(!_||!_.state||2===(et=(SA=_.state).wrap)||1===et&&42!==SA.status||SA.lookahead)return L;for(1===et&&(_.adler=I(_.adler,be,Re,0)),SA.wrap=0,Re>=SA.w_size&&(0===et&&(X(SA.head),SA.strstart=0,SA.block_start=0,SA.insert=0),cn=new t.Buf8(SA.w_size),t.arraySet(cn,be,Re-SA.w_size,SA.w_size,0),be=cn,Re=SA.w_size),Ke=_.avail_in,$e=_.next_in,ht=_.input,_.avail_in=Re,_.next_in=0,_.input=be,Te(SA);SA.lookahead>=3;){we=SA.strstart,Fe=SA.lookahead-2;do{SA.ins_h=(SA.ins_h<>>=nA=RA>>>24,QA-=nA,0==(nA=RA>>>16&255))VA[B++]=65535&RA;else{if(!(16&nA)){if(64&nA){if(32&nA){N.mode=12;break A}g.msg="invalid literal/length code",N.mode=30;break A}RA=NA[(65535&RA)+(rA&(1<>>=nA,QA-=nA),QA<15&&(rA+=wA[K++]<>>=nA=RA>>>24,QA-=nA,16&(nA=RA>>>16&255)){if(pA=65535&RA,QA<(nA&=15)&&(rA+=wA[K++]<w){g.msg="invalid distance too far back",N.mode=30;break A}if(rA>>>=nA,QA-=nA,pA>(nA=B-j)){if((nA=pA-nA)>AA&&N.sane){g.msg="invalid distance too far back",N.mode=30;break A}if(z=0,OA=P,0===L){if(z+=aA-nA,nA2;)VA[B++]=OA[z++],VA[B++]=OA[z++],VA[B++]=OA[z++],H-=3;H&&(VA[B++]=OA[z++],H>1&&(VA[B++]=OA[z++]))}else{z=B-pA;do{VA[B++]=VA[z++],VA[B++]=VA[z++],VA[B++]=VA[z++],H-=3}while(H>2);H&&(VA[B++]=VA[z++],H>1&&(VA[B++]=VA[z++]))}break}if(64&nA){g.msg="invalid distance code",N.mode=30;break A}RA=oA[(65535&RA)+(rA&(1<>3)<<3))-1,g.next_in=K-=H,g.next_out=B,g.avail_in=K>>24&255)+(Ae>>>8&65280)+((65280&Ae)<<8)+((255&Ae)<<24)}function ve(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new t.Buf16(320),this.work=new t.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ne(Ae){var pe;return Ae&&Ae.state?(Ae.total_in=Ae.total_out=(pe=Ae.state).total=0,Ae.msg="",pe.wrap&&(Ae.adler=1&pe.wrap),pe.mode=1,pe.last=0,pe.havedict=0,pe.dmax=32768,pe.head=null,pe.hold=0,pe.bits=0,pe.lencode=pe.lendyn=new t.Buf32(852),pe.distcode=pe.distdyn=new t.Buf32(592),pe.sane=1,pe.back=-1,0):-2}function Te(Ae){var pe;return Ae&&Ae.state?((pe=Ae.state).wsize=0,pe.whave=0,pe.wnext=0,Ne(Ae)):-2}function ze(Ae,pe){var MA,Pe;return!Ae||!Ae.state||(Pe=Ae.state,pe<0?(MA=0,pe=-pe):(MA=1+(pe>>4),pe<48&&(pe&=15)),pe&&(pe<8||pe>15))?-2:(null!==Pe.window&&Pe.wbits!==pe&&(Pe.window=null),Pe.wrap=MA,Pe.wbits=pe,Te(Ae))}function Oe(Ae,pe){var MA,Pe;return Ae?(Pe=new ve,Ae.state=Pe,Pe.window=null,0!==(MA=ze(Ae,pe))&&(Ae.state=null),MA):-2}var S,Y,sA=!0;function k(Ae){if(sA){var pe;for(S=new t.Buf32(512),Y=new t.Buf32(32),pe=0;pe<144;)Ae.lens[pe++]=8;for(;pe<256;)Ae.lens[pe++]=9;for(;pe<280;)Ae.lens[pe++]=7;for(;pe<288;)Ae.lens[pe++]=8;for(K(1,Ae.lens,0,288,S,0,Ae.work,{bits:9}),pe=0;pe<32;)Ae.lens[pe++]=5;K(2,Ae.lens,0,32,Y,0,Ae.work,{bits:5}),sA=!1}Ae.lencode=S,Ae.lenbits=9,Ae.distcode=Y,Ae.distbits=5}function m(Ae,pe,MA,Pe){var At,_=Ae.state;return null===_.window&&(_.wsize=1<<_.wbits,_.wnext=0,_.whave=0,_.window=new t.Buf8(_.wsize)),Pe>=_.wsize?(t.arraySet(_.window,pe,MA-_.wsize,_.wsize,0),_.wnext=0,_.whave=_.wsize):((At=_.wsize-_.wnext)>Pe&&(At=Pe),t.arraySet(_.window,pe,MA-Pe,At,_.wnext),(Pe-=At)?(t.arraySet(_.window,pe,MA-Pe,Pe,0),_.wnext=Pe,_.whave=_.wsize):(_.wnext+=At,_.wnext===_.wsize&&(_.wnext=0),_.whave<_.wsize&&(_.whave+=At))),0}Q.inflateReset=Te,Q.inflateReset2=ze,Q.inflateResetKeep=Ne,Q.inflateInit=function oe(Ae){return Oe(Ae,15)},Q.inflateInit2=Oe,Q.inflate=function E(Ae,pe){var MA,Pe,At,_,be,Re,SA,we,Fe,et,Ke,$e,ht,cn,It,mt,Tt,Lt,Qn,pn,Gt,Mt,bt,Dt,at=0,Ot=new t.Buf8(4),Ze=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ae||!Ae.state||!Ae.output||!Ae.input&&0!==Ae.avail_in)return-2;12===(MA=Ae.state).mode&&(MA.mode=13),be=Ae.next_out,At=Ae.output,_=Ae.next_in,Pe=Ae.input,we=MA.hold,Fe=MA.bits,et=Re=Ae.avail_in,Ke=SA=Ae.avail_out,Mt=0;A:for(;;)switch(MA.mode){case 1:if(0===MA.wrap){MA.mode=13;break}for(;Fe<16;){if(0===Re)break A;Re--,we+=Pe[_++]<>>8&255,MA.check=I(MA.check,Ot,2,0),we=0,Fe=0,MA.mode=2;break}if(MA.flags=0,MA.head&&(MA.head.done=!1),!(1&MA.wrap)||(((255&we)<<8)+(we>>8))%31){Ae.msg="incorrect header check",MA.mode=R;break}if(8!=(15&we)){Ae.msg="unknown compression method",MA.mode=R;break}if(Fe-=4,Gt=8+(15&(we>>>=4)),0===MA.wbits)MA.wbits=Gt;else if(Gt>MA.wbits){Ae.msg="invalid window size",MA.mode=R;break}MA.dmax=1<>8&1),512&MA.flags&&(Ot[0]=255&we,Ot[1]=we>>>8&255,MA.check=I(MA.check,Ot,2,0)),we=0,Fe=0,MA.mode=3;case 3:for(;Fe<32;){if(0===Re)break A;Re--,we+=Pe[_++]<>>8&255,Ot[2]=we>>>16&255,Ot[3]=we>>>24&255,MA.check=I(MA.check,Ot,4,0)),we=0,Fe=0,MA.mode=4;case 4:for(;Fe<16;){if(0===Re)break A;Re--,we+=Pe[_++]<>8),512&MA.flags&&(Ot[0]=255&we,Ot[1]=we>>>8&255,MA.check=I(MA.check,Ot,2,0)),we=0,Fe=0,MA.mode=5;case 5:if(1024&MA.flags){for(;Fe<16;){if(0===Re)break A;Re--,we+=Pe[_++]<>>8&255,MA.check=I(MA.check,Ot,2,0)),we=0,Fe=0}else MA.head&&(MA.head.extra=null);MA.mode=6;case 6:if(1024&MA.flags&&(($e=MA.length)>Re&&($e=Re),$e&&(MA.head&&(Gt=MA.head.extra_len-MA.length,MA.head.extra||(MA.head.extra=new Array(MA.head.extra_len)),t.arraySet(MA.head.extra,Pe,_,$e,Gt)),512&MA.flags&&(MA.check=I(MA.check,Pe,$e,_)),Re-=$e,_+=$e,MA.length-=$e),MA.length))break A;MA.length=0,MA.mode=7;case 7:if(2048&MA.flags){if(0===Re)break A;$e=0;do{Gt=Pe[_+$e++],MA.head&&Gt&&MA.length<65536&&(MA.head.name+=String.fromCharCode(Gt))}while(Gt&&$e>9&1,MA.head.done=!0),Ae.adler=MA.check=0,MA.mode=12;break;case 10:for(;Fe<32;){if(0===Re)break A;Re--,we+=Pe[_++]<>>=7&Fe,Fe-=7&Fe,MA.mode=27;break}for(;Fe<3;){if(0===Re)break A;Re--,we+=Pe[_++]<>>=1)){case 0:MA.mode=14;break;case 1:if(k(MA),MA.mode=20,6===pe){we>>>=2,Fe-=2;break A}break;case 2:MA.mode=17;break;case 3:Ae.msg="invalid block type",MA.mode=R}we>>>=2,Fe-=2;break;case 14:for(we>>>=7&Fe,Fe-=7&Fe;Fe<32;){if(0===Re)break A;Re--,we+=Pe[_++]<>>16^65535)){Ae.msg="invalid stored block lengths",MA.mode=R;break}if(MA.length=65535&we,we=0,Fe=0,MA.mode=15,6===pe)break A;case 15:MA.mode=16;case 16:if($e=MA.length){if($e>Re&&($e=Re),$e>SA&&($e=SA),0===$e)break A;t.arraySet(At,Pe,_,$e,be),Re-=$e,_+=$e,SA-=$e,be+=$e,MA.length-=$e;break}MA.mode=12;break;case 17:for(;Fe<14;){if(0===Re)break A;Re--,we+=Pe[_++]<>>=5)),Fe-=5,MA.ncode=4+(15&(we>>>=5)),we>>>=4,Fe-=4,MA.nlen>286||MA.ndist>30){Ae.msg="too many length or distance symbols",MA.mode=R;break}MA.have=0,MA.mode=18;case 18:for(;MA.have>>=3,Fe-=3}for(;MA.have<19;)MA.lens[Ze[MA.have++]]=0;if(MA.lencode=MA.lendyn,MA.lenbits=7,Mt=K(0,MA.lens,0,19,MA.lencode,0,MA.work,bt={bits:MA.lenbits}),MA.lenbits=bt.bits,Mt){Ae.msg="invalid code lengths set",MA.mode=R;break}MA.have=0,MA.mode=19;case 19:for(;MA.have>>16&255,Tt=65535&at,!((It=at>>>24)<=Fe);){if(0===Re)break A;Re--,we+=Pe[_++]<>>=It,Fe-=It,MA.lens[MA.have++]=Tt;else{if(16===Tt){for(Dt=It+2;Fe>>=It,Fe-=It,0===MA.have){Ae.msg="invalid bit length repeat",MA.mode=R;break}Gt=MA.lens[MA.have-1],$e=3+(3&we),we>>>=2,Fe-=2}else if(17===Tt){for(Dt=It+3;Fe>>=It)),we>>>=3,Fe-=3}else{for(Dt=It+7;Fe>>=It)),we>>>=7,Fe-=7}if(MA.have+$e>MA.nlen+MA.ndist){Ae.msg="invalid bit length repeat",MA.mode=R;break}for(;$e--;)MA.lens[MA.have++]=Gt}}if(MA.mode===R)break;if(0===MA.lens[256]){Ae.msg="invalid code -- missing end-of-block",MA.mode=R;break}if(MA.lenbits=9,Mt=K(1,MA.lens,0,MA.nlen,MA.lencode,0,MA.work,bt={bits:MA.lenbits}),MA.lenbits=bt.bits,Mt){Ae.msg="invalid literal/lengths set",MA.mode=R;break}if(MA.distbits=6,MA.distcode=MA.distdyn,Mt=K(2,MA.lens,MA.nlen,MA.ndist,MA.distcode,0,MA.work,bt={bits:MA.distbits}),MA.distbits=bt.bits,Mt){Ae.msg="invalid distances set",MA.mode=R;break}if(MA.mode=20,6===pe)break A;case 20:MA.mode=21;case 21:if(Re>=6&&SA>=258){Ae.next_out=be,Ae.avail_out=SA,Ae.next_in=_,Ae.avail_in=Re,MA.hold=we,MA.bits=Fe,N(Ae,Ke),be=Ae.next_out,At=Ae.output,SA=Ae.avail_out,_=Ae.next_in,Pe=Ae.input,Re=Ae.avail_in,we=MA.hold,Fe=MA.bits,12===MA.mode&&(MA.back=-1);break}for(MA.back=0;mt=(at=MA.lencode[we&(1<>>16&255,Tt=65535&at,!((It=at>>>24)<=Fe);){if(0===Re)break A;Re--,we+=Pe[_++]<>Lt)])>>>16&255,Tt=65535&at,!(Lt+(It=at>>>24)<=Fe);){if(0===Re)break A;Re--,we+=Pe[_++]<>>=Lt,Fe-=Lt,MA.back+=Lt}if(we>>>=It,Fe-=It,MA.back+=It,MA.length=Tt,0===mt){MA.mode=26;break}if(32&mt){MA.back=-1,MA.mode=12;break}if(64&mt){Ae.msg="invalid literal/length code",MA.mode=R;break}MA.extra=15&mt,MA.mode=22;case 22:if(MA.extra){for(Dt=MA.extra;Fe>>=MA.extra,Fe-=MA.extra,MA.back+=MA.extra}MA.was=MA.length,MA.mode=23;case 23:for(;mt=(at=MA.distcode[we&(1<>>16&255,Tt=65535&at,!((It=at>>>24)<=Fe);){if(0===Re)break A;Re--,we+=Pe[_++]<>Lt)])>>>16&255,Tt=65535&at,!(Lt+(It=at>>>24)<=Fe);){if(0===Re)break A;Re--,we+=Pe[_++]<>>=Lt,Fe-=Lt,MA.back+=Lt}if(we>>>=It,Fe-=It,MA.back+=It,64&mt){Ae.msg="invalid distance code",MA.mode=R;break}MA.offset=Tt,MA.extra=15&mt,MA.mode=24;case 24:if(MA.extra){for(Dt=MA.extra;Fe>>=MA.extra,Fe-=MA.extra,MA.back+=MA.extra}if(MA.offset>MA.dmax){Ae.msg="invalid distance too far back",MA.mode=R;break}MA.mode=25;case 25:if(0===SA)break A;if(MA.offset>($e=Ke-SA)){if(($e=MA.offset-$e)>MA.whave&&MA.sane){Ae.msg="invalid distance too far back",MA.mode=R;break}ht=$e>MA.wnext?MA.wsize-($e-=MA.wnext):MA.wnext-$e,$e>MA.length&&($e=MA.length),cn=MA.window}else cn=At,ht=be-MA.offset,$e=MA.length;$e>SA&&($e=SA),SA-=$e,MA.length-=$e;do{At[be++]=cn[ht++]}while(--$e);0===MA.length&&(MA.mode=21);break;case 26:if(0===SA)break A;At[be++]=MA.length,SA--,MA.mode=21;break;case 27:if(MA.wrap){for(;Fe<32;){if(0===Re)break A;Re--,we|=Pe[_++]<=1&&0===O[z];z--);if(OA>z&&(OA=z),0===z)return NA[oA++]=20971520,NA[oA++]=20971520,dA.bits=1,0;for(pA=1;pA0&&(0===L||1!==z))return-1;for(lA[1]=0,nA=1;nA<15;nA++)lA[nA+1]=lA[nA]+O[nA];for(H=0;H852||2===L&&hA>592)return 1;for(;;){$A=nA-VA,uA[H]U?(IA=LA[JA+uA[H]],gA=cA[J+uA[H]]):(IA=96,gA=0),UA=1<>VA)+(yA-=UA)]=$A<<24|IA<<16|gA}while(0!==yA);for(UA=1<>=1;if(0!==UA?(fA&=UA-1,fA+=UA):fA=0,H++,0===--O[nA]){if(nA===z)break;nA=P[rA+uA[H]]}if(nA>OA&&(fA&Ee)!==xA){for(0===VA&&(VA=OA),HA+=pA,kA=1<<(wA=nA-VA);wA+VA852||2===L&&hA>592)return 1;NA[xA=fA&Ee]=OA<<24|wA<<16|HA-oA}}return 0!==fA&&(NA[HA+fA]=4194304|nA-VA<<24),dA.bits=OA,0}},6228(eA){"use strict";eA.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},2367(eA,Q,f){"use strict";var t=f(2519);function v(E){for(var mA=E.length;--mA>=0;)E[mA]=0}var z=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],OA=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],wA=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],VA=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],hA=new Array(576);v(hA);var fA=new Array(60);v(fA);var UA=new Array(512);v(UA);var yA=new Array(256);v(yA);var xA=new Array(29);v(xA);var cA,J,U,Ee=new Array(30);function HA(E,mA,ie,DA,Ae){this.static_tree=E,this.extra_bits=mA,this.extra_base=ie,this.elems=DA,this.max_length=Ae,this.has_stree=E&&E.length}function O(E,mA){this.dyn_tree=E,this.max_code=0,this.stat_desc=mA}function lA(E){return E<256?UA[E]:UA[256+(E>>>7)]}function LA(E,mA){E.pending_buf[E.pending++]=255&mA,E.pending_buf[E.pending++]=mA>>>8&255}function JA(E,mA,ie){E.bi_valid>16-ie?(E.bi_buf|=mA<>16-E.bi_valid,E.bi_valid+=ie-16):(E.bi_buf|=mA<>>=1,ie<<=1}while(--mA>0);return ie>>>1}function b(E,mA,ie){var pe,MA,DA=new Array(16),Ae=0;for(pe=1;pe<=15;pe++)DA[pe]=Ae=Ae+ie[pe-1]<<1;for(MA=0;MA<=mA;MA++){var Pe=E[2*MA+1];0!==Pe&&(E[2*MA]=IA(DA[Pe]++,Pe))}}function M(E){var mA;for(mA=0;mA<286;mA++)E.dyn_ltree[2*mA]=0;for(mA=0;mA<30;mA++)E.dyn_dtree[2*mA]=0;for(mA=0;mA<19;mA++)E.bl_tree[2*mA]=0;E.dyn_ltree[512]=1,E.opt_len=E.static_len=0,E.last_lit=E.matches=0}function D(E){E.bi_valid>8?LA(E,E.bi_buf):E.bi_valid>0&&(E.pending_buf[E.pending++]=E.bi_buf),E.bi_buf=0,E.bi_valid=0}function YA(E,mA,ie,DA){var Ae=2*mA,pe=2*ie;return E[Ae]>1;MA>=1;MA--)KA(E,ie,MA);_=pe;do{MA=E.heap[1],E.heap[1]=E.heap[E.heap_len--],KA(E,ie,1),Pe=E.heap[1],E.heap[--E.heap_max]=MA,E.heap[--E.heap_max]=Pe,ie[2*_]=ie[2*MA]+ie[2*Pe],E.depth[_]=(E.depth[MA]>=E.depth[Pe]?E.depth[MA]:E.depth[Pe])+1,ie[2*MA+1]=ie[2*Pe+1]=_,E.heap[1]=_++,KA(E,ie,1)}while(E.heap_len>=2);E.heap[--E.heap_max]=E.heap[1],function C(E,mA){var _,be,Re,SA,we,Fe,ie=mA.dyn_tree,DA=mA.max_code,Ae=mA.stat_desc.static_tree,pe=mA.stat_desc.has_stree,MA=mA.stat_desc.extra_bits,Pe=mA.stat_desc.extra_base,At=mA.stat_desc.max_length,et=0;for(SA=0;SA<=15;SA++)E.bl_count[SA]=0;for(ie[2*E.heap[E.heap_max]+1]=0,_=E.heap_max+1;_<573;_++)(SA=ie[2*ie[2*(be=E.heap[_])+1]+1]+1)>At&&(SA=At,et++),ie[2*be+1]=SA,!(be>DA)&&(E.bl_count[SA]++,we=0,be>=Pe&&(we=MA[be-Pe]),E.opt_len+=(Fe=ie[2*be])*(SA+we),pe&&(E.static_len+=Fe*(Ae[2*be+1]+we)));if(0!==et){do{for(SA=At-1;0===E.bl_count[SA];)SA--;E.bl_count[SA]--,E.bl_count[SA+1]+=2,E.bl_count[At]--,et-=2}while(et>0);for(SA=At;0!==SA;SA--)for(be=E.bl_count[SA];0!==be;)!((Re=E.heap[--_])>DA)&&(ie[2*Re+1]!==SA&&(E.opt_len+=(SA-ie[2*Re+1])*ie[2*Re],ie[2*Re+1]=SA),be--)}}(E,mA),b(ie,At,E.bl_count)}function ve(E,mA,ie){var DA,pe,Ae=-1,MA=mA[1],Pe=0,At=7,_=4;for(0===MA&&(At=138,_=3),mA[2*(ie+1)+1]=65535,DA=0;DA<=ie;DA++)pe=MA,MA=mA[2*(DA+1)+1],!(++Pe>=7;DA<30;DA++)for(Ee[DA]=Ae<<7,E=0;E<1<0?(2===E.strm.data_type&&(E.strm.data_type=function Oe(E){var ie,mA=4093624447;for(ie=0;ie<=31;ie++,mA>>>=1)if(1&mA&&0!==E.dyn_ltree[2*ie])return 0;if(0!==E.dyn_ltree[18]||0!==E.dyn_ltree[20]||0!==E.dyn_ltree[26])return 1;for(ie=32;ie<256;ie++)if(0!==E.dyn_ltree[2*ie])return 1;return 0}(E)),le(E,E.l_desc),le(E,E.d_desc),MA=function Te(E){var mA;for(ve(E,E.dyn_ltree,E.l_desc.max_code),ve(E,E.dyn_dtree,E.d_desc.max_code),le(E,E.bl_desc),mA=18;mA>=3&&0===E.bl_tree[2*VA[mA]+1];mA--);return E.opt_len+=3*(mA+1)+5+5+4,mA}(E),(pe=E.static_len+3+7>>>3)<=(Ae=E.opt_len+3+7>>>3)&&(Ae=pe)):Ae=pe=ie+5,ie+4<=Ae&&-1!==mA?S(E,mA,ie,DA):4===E.strategy||pe===Ae?(JA(E,2+(DA?1:0),3),bA(E,hA,fA)):(JA(E,4+(DA?1:0),3),function ze(E,mA,ie,DA){var Ae;for(JA(E,mA-257,5),JA(E,ie-1,5),JA(E,DA-4,4),Ae=0;Ae>>8&255,E.pending_buf[E.d_buf+2*E.last_lit+1]=255&mA,E.pending_buf[E.l_buf+E.last_lit]=255&ie,E.last_lit++,0===mA?E.dyn_ltree[2*ie]++:(E.matches++,mA--,E.dyn_ltree[2*(yA[ie]+256+1)]++,E.dyn_dtree[2*lA(mA)]++),E.last_lit===E.lit_bufsize-1},Q._tr_align=function Y(E){JA(E,2,3),$A(E,256,hA),function gA(E){16===E.bi_valid?(LA(E,E.bi_buf),E.bi_buf=0,E.bi_valid=0):E.bi_valid>=8&&(E.pending_buf[E.pending++]=255&E.bi_buf,E.bi_buf>>=8,E.bi_valid-=8)}(E)}},7468(eA){"use strict";eA.exports=function Q(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},884(eA){"use strict";eA.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},9964(eA){var f,t,Q=eA.exports={};function g(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}function N(P){if(f===setTimeout)return setTimeout(P,0);if((f===g||!f)&&setTimeout)return f=setTimeout,setTimeout(P,0);try{return f(P,0)}catch{try{return f.call(null,P,0)}catch{return f.call(this,P,0)}}}!function(){try{f="function"==typeof setTimeout?setTimeout:g}catch{f=g}try{t="function"==typeof clearTimeout?clearTimeout:I}catch{t=I}}();var j,v=[],B=!1,tA=-1;function w(){!B||!j||(B=!1,j.length?v=j.concat(v):tA=-1,v.length&&aA())}function aA(){if(!B){var P=N(w);B=!0;for(var rA=v.length;rA;){for(j=v,v=[];++tA1)for(var QA=1;QA"===X?(xA(M,"onsgmldeclaration",M.sgmlDecl),M.sgmlDecl="",M.state=wA.TEXT):(H(X)&&(M.state=wA.SGML_DECL_QUOTED),M.sgmlDecl+=X);continue;case wA.SGML_DECL_QUOTED:X===M.q&&(M.state=wA.SGML_DECL,M.q=""),M.sgmlDecl+=X;continue;case wA.DOCTYPE:">"===X?(M.state=wA.TEXT,xA(M,"ondoctype",M.doctype),M.doctype=!0):(M.doctype+=X,"["===X?M.state=wA.DOCTYPE_DTD:H(X)&&(M.state=wA.DOCTYPE_QUOTED,M.q=X));continue;case wA.DOCTYPE_QUOTED:M.doctype+=X,X===M.q&&(M.q="",M.state=wA.DOCTYPE);continue;case wA.DOCTYPE_DTD:"]"===X?(M.doctype+=X,M.state=wA.DOCTYPE):"<"===X?(M.state=wA.OPEN_WAKA,M.startTagPosition=M.position):H(X)?(M.doctype+=X,M.state=wA.DOCTYPE_DTD_QUOTED,M.q=X):M.doctype+=X;continue;case wA.DOCTYPE_DTD_QUOTED:M.doctype+=X,X===M.q&&(M.state=wA.DOCTYPE_DTD,M.q="");continue;case wA.COMMENT:"-"===X?M.state=wA.COMMENT_ENDING:M.comment+=X;continue;case wA.COMMENT_ENDING:"-"===X?(M.state=wA.COMMENT_ENDED,M.comment=HA(M.opt,M.comment),M.comment&&xA(M,"oncomment",M.comment),M.comment=""):(M.comment+="-"+X,M.state=wA.COMMENT);continue;case wA.COMMENT_ENDED:">"!==X?(U(M,"Malformed comment"),M.comment+="--"+X,M.state=wA.COMMENT):M.state=M.doctype&&!0!==M.doctype?wA.DOCTYPE_DTD:wA.TEXT;continue;case wA.CDATA:for(KA=D-1;X&&"]"!==X;)(X=C(R,D++))&&M.trackPosition&&(M.position++,"\n"===X?(M.line++,M.column=0):M.column++);M.cdata+=R.substring(KA,D-1),"]"===X&&(M.state=wA.CDATA_ENDING);continue;case wA.CDATA_ENDING:"]"===X?M.state=wA.CDATA_ENDING_2:(M.cdata+="]"+X,M.state=wA.CDATA);continue;case wA.CDATA_ENDING_2:">"===X?(M.cdata&&xA(M,"oncdata",M.cdata),xA(M,"onclosecdata"),M.cdata="",M.state=wA.TEXT):"]"===X?M.cdata+="]":(M.cdata+="]]"+X,M.state=wA.CDATA);continue;case wA.PROC_INST:"?"===X?M.state=wA.PROC_INST_ENDING:nA(X)?M.state=wA.PROC_INST_BODY:M.procInstName+=X;continue;case wA.PROC_INST_BODY:if(!M.procInstBody&&nA(X))continue;"?"===X?M.state=wA.PROC_INST_ENDING:M.procInstBody+=X;continue;case wA.PROC_INST_ENDING:if(">"===X){const Ne={name:M.procInstName,body:M.procInstBody};yA(M,Ne),xA(M,"onprocessinginstruction",Ne),M.procInstName=M.procInstBody="",M.state=wA.TEXT}else M.procInstBody+="?"+X,M.state=wA.PROC_INST_BODY;continue;case wA.OPEN_TAG:z(uA,X)?M.tagName+=X:(O(M),">"===X?JA(M):"/"===X?M.state=wA.OPEN_TAG_SLASH:(nA(X)||U(M,"Invalid character in tag name"),M.state=wA.ATTRIB));continue;case wA.OPEN_TAG_SLASH:">"===X?(JA(M,!0),$A(M)):(U(M,"Forward-slash in opening tag not followed by >"),M.state=wA.ATTRIB);continue;case wA.ATTRIB:if(nA(X))continue;">"===X?JA(M):"/"===X?M.state=wA.OPEN_TAG_SLASH:z(oA,X)?(M.attribName=X,M.attribValue="",M.state=wA.ATTRIB_NAME):U(M,"Invalid attribute name");continue;case wA.ATTRIB_NAME:"="===X?M.state=wA.ATTRIB_VALUE:">"===X?(U(M,"Attribute without value"),M.attribValue=M.attribName,LA(M),JA(M)):nA(X)?M.state=wA.ATTRIB_NAME_SAW_WHITE:z(uA,X)?M.attribName+=X:U(M,"Invalid attribute name");continue;case wA.ATTRIB_NAME_SAW_WHITE:if("="===X)M.state=wA.ATTRIB_VALUE;else{if(nA(X))continue;U(M,"Attribute without value"),M.tag.attributes[M.attribName]="",M.attribValue="",xA(M,"onattribute",{name:M.attribName,value:""}),M.attribName="",">"===X?JA(M):z(oA,X)?(M.attribName=X,M.state=wA.ATTRIB_NAME):(U(M,"Invalid attribute name"),M.state=wA.ATTRIB)}continue;case wA.ATTRIB_VALUE:if(nA(X))continue;H(X)?(M.q=X,M.state=wA.ATTRIB_VALUE_QUOTED):(M.opt.unquotedAttributeValues||cA(M,"Unquoted attribute value"),M.state=wA.ATTRIB_VALUE_UNQUOTED,M.attribValue=X);continue;case wA.ATTRIB_VALUE_QUOTED:if(X!==M.q){"&"===X?M.state=wA.ATTRIB_VALUE_ENTITY_Q:M.attribValue+=X;continue}LA(M),M.q="",M.state=wA.ATTRIB_VALUE_CLOSED;continue;case wA.ATTRIB_VALUE_CLOSED:nA(X)?M.state=wA.ATTRIB:">"===X?JA(M):"/"===X?M.state=wA.OPEN_TAG_SLASH:z(oA,X)?(U(M,"No whitespace between attributes"),M.attribName=X,M.attribValue="",M.state=wA.ATTRIB_NAME):U(M,"Invalid attribute name");continue;case wA.ATTRIB_VALUE_UNQUOTED:if(!pA(X)){"&"===X?M.state=wA.ATTRIB_VALUE_ENTITY_U:M.attribValue+=X;continue}LA(M),">"===X?JA(M):M.state=wA.ATTRIB;continue;case wA.CLOSE_TAG:if(M.tagName)">"===X?$A(M):z(uA,X)?M.tagName+=X:M.script?(M.script+=""===X?$A(M):U(M,"Invalid characters in closing tag");continue;case wA.TEXT_ENTITY:case wA.ATTRIB_VALUE_ENTITY_Q:case wA.ATTRIB_VALUE_ENTITY_U:var bA,le;switch(M.state){case wA.TEXT_ENTITY:bA=wA.TEXT,le="textNode";break;case wA.ATTRIB_VALUE_ENTITY_Q:bA=wA.ATTRIB_VALUE_QUOTED,le="attribValue";break;case wA.ATTRIB_VALUE_ENTITY_U:bA=wA.ATTRIB_VALUE_UNQUOTED,le="attribValue"}if(";"===X){var ve=IA(M);M.opt.unparsedEntities&&!Object.values(g.XML_ENTITIES).includes(ve)?((M.entityCount+=1)>M.opt.maxEntityCount&&cA(M,"Parsed entity count exceeds max entity count"),(M.entityDepth+=1)>M.opt.maxEntityDepth&&cA(M,"Parsed entity depth exceeds max entity depth"),M.entity="",M.state=bA,M.write(ve),M.entityDepth-=1):(M[le]+=ve,M.entity="",M.state=bA)}else z(M.entity.length?RA:dA,X)?M.entity+=X:(U(M,"Invalid character in entity name"),M[le]+="&"+M.entity+X,M.entity="",M.state=bA);continue;default:throw new Error(M,"Unknown state: "+M.state)}return M.position>=M.bufferCheckPosition&&function K(R){for(var M=Math.max(g.MAX_BUFFER_LENGTH,10),D=0,X=0,YA=I.length;XM)switch(I[X]){case"textNode":Ee(R);break;case"cdata":xA(R,"oncdata",R.cdata),R.cdata="";break;case"script":xA(R,"onscript",R.script),R.script="";break;default:cA(R,"Max buffer length exceeded: "+I[X])}D=Math.max(D,KA)}R.bufferCheckPosition=g.MAX_BUFFER_LENGTH-D+R.position}(M),M},resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function B(R){Ee(R),""!==R.cdata&&(xA(R,"oncdata",R.cdata),R.cdata=""),""!==R.script&&(xA(R,"onscript",R.script),R.script="")}(this)}};try{j=f(9760).Stream}catch{j=function(){}}j||(j=function(){});var tA=g.EVENTS.filter(function(R){return"error"!==R&&"end"!==R});function AA(R,M){if(!(this instanceof AA))return new AA(R,M);j.apply(this),this._parser=new N(R,M),this.writable=!0,this.readable=!0;var D=this;this._parser.onend=function(){D.emit("end")},this._parser.onerror=function(X){D.emit("error",X),D._parser.error=null},this._decoder=null,this._decoderBuffer=null,tA.forEach(function(X){Object.defineProperty(D,"on"+X,{get:function(){return D._parser["on"+X]},set:function(YA){if(!YA)return D.removeAllListeners(X),D._parser["on"+X]=YA,YA;D.on(X,YA)},enumerable:!0,configurable:!1})})}(AA.prototype=Object.create(j.prototype,{constructor:{value:AA}}))._decodeBuffer=function(R,M){if(this._decoderBuffer&&(R=t.concat([this._decoderBuffer,R]),this._decoderBuffer=null),!this._decoder){var D=function aA(R,M){if(R.length>=2){if(255===R[0]&&254===R[1])return"utf-16le";if(254===R[0]&&255===R[1])return"utf-16be"}return R.length>=3&&239===R[0]&&187===R[1]&&191===R[2]?"utf8":R.length>=4?60===R[0]&&0===R[1]&&63===R[2]&&0===R[3]?"utf-16le":0===R[0]&&60===R[1]&&0===R[2]&&63===R[3]?"utf-16be":"utf8":M?"utf8":null}(R,M);if(!D)return this._decoderBuffer=R,"";this._parser.encoding=D,this._decoder=new TextDecoder(D)}return this._decoder.decode(R,{stream:!M})},AA.prototype.write=function(R){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(R))R=this._decodeBuffer(R,!1);else if(this._decoderBuffer){var M=this._decodeBuffer(t.alloc(0),!0);M&&(this._parser.write(M),this.emit("data",M))}return this._parser.write(R.toString()),this.emit("data",R),!0},AA.prototype.end=function(R){if(R&&R.length&&this.write(R),this._decoderBuffer){var M=this._decodeBuffer(t.alloc(0),!0);M&&(this._parser.write(M),this.emit("data",M))}else if(this._decoder){var D=this._decoder.decode();D&&(this._parser.write(D),this.emit("data",D))}return this._parser.end(),!0},AA.prototype.on=function(R,M){var D=this;return!D._parser["on"+R]&&-1!==tA.indexOf(R)&&(D._parser["on"+R]=function(){var X=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);X.splice(0,0,R),D.emit.apply(D,X)}),j.prototype.on.call(D,R,M)};var L="[CDATA[",P="DOCTYPE",rA="http://www.w3.org/XML/1998/namespace",QA="http://www.w3.org/2000/xmlns/",NA={xml:rA,xmlns:QA},oA=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,uA=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,dA=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,RA=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function nA(R){return" "===R||"\n"===R||"\r"===R||"\t"===R}function H(R){return'"'===R||"'"===R}function pA(R){return">"===R||nA(R)}function z(R,M){return R.test(M)}function OA(R,M){return!z(R,M)}var R,M,D,wA=0;for(var VA in g.STATE={BEGIN:wA++,BEGIN_WHITESPACE:wA++,TEXT:wA++,TEXT_ENTITY:wA++,OPEN_WAKA:wA++,SGML_DECL:wA++,SGML_DECL_QUOTED:wA++,DOCTYPE:wA++,DOCTYPE_QUOTED:wA++,DOCTYPE_DTD:wA++,DOCTYPE_DTD_QUOTED:wA++,COMMENT_STARTING:wA++,COMMENT:wA++,COMMENT_ENDING:wA++,COMMENT_ENDED:wA++,CDATA:wA++,CDATA_ENDING:wA++,CDATA_ENDING_2:wA++,PROC_INST:wA++,PROC_INST_BODY:wA++,PROC_INST_ENDING:wA++,OPEN_TAG:wA++,OPEN_TAG_SLASH:wA++,ATTRIB:wA++,ATTRIB_NAME:wA++,ATTRIB_NAME_SAW_WHITE:wA++,ATTRIB_VALUE:wA++,ATTRIB_VALUE_QUOTED:wA++,ATTRIB_VALUE_CLOSED:wA++,ATTRIB_VALUE_UNQUOTED:wA++,ATTRIB_VALUE_ENTITY_Q:wA++,ATTRIB_VALUE_ENTITY_U:wA++,CLOSE_TAG:wA++,CLOSE_TAG_SAW_WHITE:wA++,SCRIPT:wA++,SCRIPT_ENDING:wA++},g.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},g.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(g.ENTITIES).forEach(function(R){var M=g.ENTITIES[R],D="number"==typeof M?String.fromCharCode(M):M;g.ENTITIES[R]=D}),g.STATE)g.STATE[g.STATE[VA]]=VA;function kA(R,M,D){R[M]&&R[M](D)}function fA(R){return R?R.toLowerCase().replace(/[^a-z0-9]/g,""):null}function yA(R,M){if(R.strict&&R.encoding&&M&&"xml"===M.name){var D=function hA(R){var M=R&&R.match(/(?:^|\s)encoding\s*=\s*(['"])([^'"]+)\1/i);return M?M[2]:null}(M.body);D&&!function UA(R,M){const D=fA(R),X=fA(M);return!D||!X||("utf16"===X?"utf16le"===D||"utf16be"===D:D===X)}(R.encoding,D)&&U(R,"XML declaration encoding "+D+" does not match detected stream encoding "+R.encoding.toUpperCase())}}function xA(R,M,D){R.textNode&&Ee(R),kA(R,M,D)}function Ee(R){R.textNode=HA(R.opt,R.textNode),R.textNode&&kA(R,"ontext",R.textNode),R.textNode=""}function HA(R,M){return R.trim&&(M=M.trim()),R.normalize&&(M=M.replace(/\s+/g," ")),M}function cA(R,M){return Ee(R),R.trackPosition&&(M+="\nLine: "+R.line+"\nColumn: "+R.column+"\nChar: "+R.c),M=new Error(M),R.error=M,kA(R,"onerror",M),R}function J(R){return R.sawRoot&&!R.closedRoot&&U(R,"Unclosed root tag"),R.state!==wA.BEGIN&&R.state!==wA.BEGIN_WHITESPACE&&R.state!==wA.TEXT&&cA(R,"Unexpected end"),Ee(R),R.c="",R.closed=!0,kA(R,"onend"),N.call(R,R.strict,R.opt),R}function U(R,M){if("object"!=typeof R||!(R instanceof N))throw new Error("bad call to strictFail");R.strict&&cA(R,M)}function O(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var M=R.tags[R.tags.length-1]||R,D=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(D.ns=M.ns),R.attribList.length=0,xA(R,"onopentagstart",D)}function lA(R,M){var X=R.indexOf(":")<0?["",R]:R.split(":"),YA=X[0],KA=X[1];return M&&"xmlns"===R&&(YA="xmlns",KA=""),{prefix:YA,local:KA}}function LA(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),-1!==R.attribList.indexOf(R.attribName)||R.tag.attributes.hasOwnProperty(R.attribName))R.attribName=R.attribValue="";else{if(R.opt.xmlns){var M=lA(R.attribName,!0),X=M.local;if("xmlns"===M.prefix)if("xml"===X&&R.attribValue!==rA)U(R,"xml: prefix must be bound to "+rA+"\nActual: "+R.attribValue);else if("xmlns"===X&&R.attribValue!==QA)U(R,"xmlns: prefix must be bound to "+QA+"\nActual: "+R.attribValue);else{var YA=R.tag,KA=R.tags[R.tags.length-1]||R;YA.ns===KA.ns&&(YA.ns=Object.create(KA.ns)),YA.ns[X]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,xA(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}}function JA(R,M){if(R.opt.xmlns){var D=R.tag,X=lA(R.tagName);D.prefix=X.prefix,D.local=X.local,D.uri=D.ns[X.prefix]||"",D.prefix&&!D.uri&&(U(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),D.uri=X.prefix),D.ns&&(R.tags[R.tags.length-1]||R).ns!==D.ns&&Object.keys(D.ns).forEach(function(S){xA(R,"onopennamespace",{prefix:S,uri:D.ns[S]})});for(var KA=0,bA=R.attribList.length;KA",R.tagName="",void(R.state=wA.SCRIPT);xA(R,"onscript",R.script),R.script=""}var M=R.tags.length,D=R.tagName;R.strict||(D=D[R.looseCase]());for(var X=D;M--&&R.tags[M].name!==X;)U(R,"Unexpected close tag");if(M<0)return U(R,"Unmatched closing tag: "+R.tagName),R.textNode+="",void(R.state=wA.TEXT);R.tagName=D;for(var KA=R.tags.length;KA-- >M;){var bA=R.tag=R.tags.pop();R.tagName=R.tag.name,xA(R,"onclosetag",R.tagName);var le={};for(var ve in bA.ns)le[ve]=bA.ns[ve];R.opt.xmlns&&bA.ns!==(R.tags[R.tags.length-1]||R).ns&&Object.keys(bA.ns).forEach(function(Te){xA(R,"onclosenamespace",{prefix:Te,uri:bA.ns[Te]})})}0===M&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=wA.TEXT}function IA(R){var X,M=R.entity,D=M.toLowerCase(),YA="";return R.ENTITIES[M]?R.ENTITIES[M]:R.ENTITIES[D]?R.ENTITIES[D]:("#"===(M=D).charAt(0)&&("x"===M.charAt(1)?(M=M.slice(2),YA=(X=parseInt(M,16)).toString(16)):(M=M.slice(1),YA=(X=parseInt(M,10)).toString(10))),M=M.replace(/^0+/,""),isNaN(X)||YA.toLowerCase()!==M||X<0||X>1114111?(U(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(X))}function gA(R,M){"<"===M?(R.state=wA.OPEN_WAKA,R.startTagPosition=R.position):nA(M)||(U(R,"Non-whitespace before first tag."),R.textNode=M,R.state=wA.TEXT)}function C(R,M){var D="";return M1114111||M(Te)!==Te)throw RangeError("Invalid code point: "+Te);Te<=65535?YA.push(Te):YA.push(55296+((Te-=65536)>>10),Te%1024+56320),(le+1===ve||YA.length>16384)&&(Ne+=R.apply(null,YA),YA.length=0)}return Ne},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:D,configurable:!0,writable:!0}):String.fromCodePoint=D)}(Q)},6255(eA,Q,f){"use strict";var t=f(8651),g=f(9295),I=f(8890)(),N=f(8109),K=f(6785),v=t("%Math.floor%");eA.exports=function(j,tA){if("function"!=typeof j)throw new K("`fn` is not a function");if("number"!=typeof tA||tA<0||tA>4294967295||v(tA)!==tA)throw new K("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],aA=!0,AA=!0;if("length"in j&&N){var L=N(j,"length");L&&!L.configurable&&(aA=!1),L&&!L.writable&&(AA=!1)}return(aA||AA||!w)&&(I?g(j,"length",tA,!0,!0):g(j,"length",tA)),j}},9760(eA,Q,f){eA.exports=I;var t=f(4785).EventEmitter;function I(){t.call(this)}f(9784)(I,t),I.Readable=f(8261),I.Writable=f(9781),I.Duplex=f(4903),I.Transform=f(8569),I.PassThrough=f(7723),I.finished=f(2167),I.pipeline=f(3765),I.Stream=I,I.prototype.pipe=function(N,K){var v=this;function B(P){N.writable&&!1===N.write(P)&&v.pause&&v.pause()}function j(){v.readable&&v.resume&&v.resume()}v.on("data",B),N.on("drain",j),!N._isStdio&&(!K||!1!==K.end)&&(v.on("end",w),v.on("close",aA));var tA=!1;function w(){tA||(tA=!0,N.end())}function aA(){tA||(tA=!0,"function"==typeof N.destroy&&N.destroy())}function AA(P){if(L(),0===t.listenerCount(this,"error"))throw P}function L(){v.removeListener("data",B),N.removeListener("drain",j),v.removeListener("end",w),v.removeListener("close",aA),v.removeListener("error",AA),N.removeListener("error",AA),v.removeListener("end",L),v.removeListener("close",L),N.removeListener("close",L)}return v.on("error",AA),N.on("error",AA),v.on("end",L),v.on("close",L),N.on("close",L),N.emit("pipe",v),N}},3797(eA){"use strict";var f={};function t(v,B,j){j||(j=Error);var w=function(aA){function AA(L,P,rA){return aA.call(this,function tA(aA,AA,L){return"string"==typeof B?B:B(aA,AA,L)}(L,P,rA))||this}return function Q(v,B){v.prototype=Object.create(B.prototype),v.prototype.constructor=v,v.__proto__=B}(AA,aA),AA}(j);w.prototype.name=j.name,w.prototype.code=v,f[v]=w}function g(v,B){if(Array.isArray(v)){var j=v.length;return v=v.map(function(tA){return String(tA)}),j>2?"one of ".concat(B," ").concat(v.slice(0,j-1).join(", "),", or ")+v[j-1]:2===j?"one of ".concat(B," ").concat(v[0]," or ").concat(v[1]):"of ".concat(B," ").concat(v[0])}return"of ".concat(B," ").concat(String(v))}t("ERR_INVALID_OPT_VALUE",function(v,B){return'The value "'+B+'" is invalid for option "'+v+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(v,B,j){var tA,w;if("string"==typeof B&&function I(v,B,j){return v.substr(!j||j<0?0:+j,B.length)===B}(B,"not ")?(tA="must not be",B=B.replace(/^not /,"")):tA="must be",function N(v,B,j){return(void 0===j||j>v.length)&&(j=v.length),v.substring(j-B.length,j)===B}(v," argument"))w="The ".concat(v," ").concat(tA," ").concat(g(B,"type"));else{var aA=function K(v,B,j){return"number"!=typeof j&&(j=0),!(j+B.length>v.length)&&-1!==v.indexOf(B,j)}(v,".")?"property":"argument";w='The "'.concat(v,'" ').concat(aA," ").concat(tA," ").concat(g(B,"type"))}return w+". Received type ".concat(typeof j)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(v){return"The "+v+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(v){return"Cannot call "+v+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(v){return"Unknown encoding: "+v},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),eA.exports.F=f},4903(eA,Q,f){"use strict";var t=f(9964),g=Object.keys||function(aA){var AA=[];for(var L in aA)AA.push(L);return AA};eA.exports=j;var I=f(8261),N=f(9781);f(9784)(j,I);for(var K=g(N.prototype),v=0;v0)if("string"!=typeof D&&!bA.objectMode&&Object.getPrototypeOf(D)!==v.prototype&&(D=function j(M){return v.from(M)}(D)),YA)bA.endEmitted?pA(M,new dA):hA(M,bA,D,!0);else if(bA.ended)pA(M,new oA);else{if(bA.destroyed)return!1;bA.reading=!1,bA.decoder&&!X?(D=bA.decoder.write(D),bA.objectMode||0!==D.length?hA(M,bA,D,!1):J(M,bA)):hA(M,bA,D,!1)}else YA||(bA.reading=!1,J(M,bA));return!bA.ended&&(bA.lengthD.highWaterMark&&(D.highWaterMark=function yA(M){return M>=UA?M=UA:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}(M)),M<=D.length?M:D.ended?D.length:(D.needReadable=!0,0))}function HA(M){var D=M._readableState;aA("emitReadable",D.needReadable,D.emittedReadable),D.needReadable=!1,D.emittedReadable||(aA("emitReadable",D.flowing),D.emittedReadable=!0,t.nextTick(cA,M))}function cA(M){var D=M._readableState;aA("emitReadable_",D.destroyed,D.length,D.ended),!D.destroyed&&(D.length||D.ended)&&(M.emit("readable"),D.emittedReadable=!1),D.needReadable=!D.flowing&&!D.ended&&D.length<=D.highWaterMark,IA(M)}function J(M,D){D.readingMore||(D.readingMore=!0,t.nextTick(U,M,D))}function U(M,D){for(;!D.reading&&!D.ended&&(D.length0,D.resumeScheduled&&!D.paused?D.flowing=!0:M.listenerCount("data")>0&&M.resume()}function LA(M){aA("readable nexttick read 0"),M.read(0)}function $A(M,D){aA("resume",D.reading),D.reading||M.read(0),D.resumeScheduled=!1,M.emit("resume"),IA(M),D.flowing&&!D.reading&&M.read(0)}function IA(M){var D=M._readableState;for(aA("flow",D.flowing);D.flowing&&null!==M.read(););}function gA(M,D){return 0===D.length?null:(D.objectMode?X=D.buffer.shift():!M||M>=D.length?(X=D.decoder?D.buffer.join(""):1===D.buffer.length?D.buffer.first():D.buffer.concat(D.length),D.buffer.clear()):X=D.buffer.consume(M,D.decoder),X);var X}function C(M){var D=M._readableState;aA("endReadable",D.endEmitted),D.endEmitted||(D.ended=!0,t.nextTick(b,D,M))}function b(M,D){if(aA("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&0===M.length&&(M.endEmitted=!0,D.readable=!1,D.emit("end"),M.autoDestroy)){var X=D._writableState;(!X||X.autoDestroy&&X.finished)&&D.destroy()}}function R(M,D){for(var X=0,YA=M.length;X=D.highWaterMark:D.length>0)||D.ended))return aA("read: emitReadable",D.length,D.ended),0===D.length&&D.ended?C(this):HA(this),null;if(0===(M=xA(M,D))&&D.ended)return 0===D.length&&C(this),null;var KA,YA=D.needReadable;return aA("need readable",YA),(0===D.length||D.length-M0?gA(M,D):null)?(D.needReadable=D.length<=D.highWaterMark,M=0):(D.length-=M,D.awaitDrain=0),0===D.length&&(D.ended||(D.needReadable=!0),X!==M&&D.ended&&C(this)),null!==KA&&this.emit("data",KA),KA},VA.prototype._read=function(M){pA(this,new uA("_read()"))},VA.prototype.pipe=function(M,D){var X=this,YA=this._readableState;switch(YA.pipesCount){case 0:YA.pipes=M;break;case 1:YA.pipes=[YA.pipes,M];break;default:YA.pipes.push(M)}YA.pipesCount+=1,aA("pipe count=%d opts=%j",YA.pipesCount,D);var bA=D&&!1===D.end||M===t.stdout||M===t.stderr?Y:ve;function ve(){aA("onend"),M.end()}YA.endEmitted?t.nextTick(bA):X.once("end",bA),M.on("unpipe",function le(k,m){aA("onunpipe"),k===X&&m&&!1===m.hasUnpiped&&(m.hasUnpiped=!0,function ze(){aA("cleanup"),M.removeListener("close",sA),M.removeListener("finish",S),M.removeListener("drain",Ne),M.removeListener("error",oe),M.removeListener("unpipe",le),X.removeListener("end",ve),X.removeListener("end",Y),X.removeListener("data",Oe),Te=!0,YA.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&Ne()}())});var Ne=function O(M){return function(){var X=M._readableState;aA("pipeOnDrain",X.awaitDrain),X.awaitDrain&&X.awaitDrain--,0===X.awaitDrain&&N(M,"data")&&(X.flowing=!0,IA(M))}}(X);M.on("drain",Ne);var Te=!1;function Oe(k){aA("ondata");var m=M.write(k);aA("dest.write",m),!1===m&&((1===YA.pipesCount&&YA.pipes===M||YA.pipesCount>1&&-1!==R(YA.pipes,M))&&!Te&&(aA("false write response, pause",YA.awaitDrain),YA.awaitDrain++),X.pause())}function oe(k){aA("onerror",k),Y(),M.removeListener("error",oe),0===N(M,"error")&&pA(M,k)}function sA(){M.removeListener("finish",S),Y()}function S(){aA("onfinish"),M.removeListener("close",sA),Y()}function Y(){aA("unpipe"),X.unpipe(M)}return X.on("data",Oe),function OA(M,D,X){if("function"==typeof M.prependListener)return M.prependListener(D,X);M._events&&M._events[D]?Array.isArray(M._events[D])?M._events[D].unshift(X):M._events[D]=[X,M._events[D]]:M.on(D,X)}(M,"error",oe),M.once("close",sA),M.once("finish",S),M.emit("pipe",X),YA.flowing||(aA("pipe resume"),X.resume()),M},VA.prototype.unpipe=function(M){var D=this._readableState,X={hasUnpiped:!1};if(0===D.pipesCount)return this;if(1===D.pipesCount)return M&&M!==D.pipes||(M||(M=D.pipes),D.pipes=null,D.pipesCount=0,D.flowing=!1,M&&M.emit("unpipe",this,X)),this;if(!M){var YA=D.pipes,KA=D.pipesCount;D.pipes=null,D.pipesCount=0,D.flowing=!1;for(var bA=0;bA0,!1!==YA.flowing&&this.resume()):"readable"===M&&!YA.endEmitted&&!YA.readableListening&&(YA.readableListening=YA.needReadable=!0,YA.flowing=!1,YA.emittedReadable=!1,aA("on readable",YA.length,YA.reading),YA.length?HA(this):YA.reading||t.nextTick(LA,this)),X},VA.prototype.removeListener=function(M,D){var X=K.prototype.removeListener.call(this,M,D);return"readable"===M&&t.nextTick(lA,this),X},VA.prototype.removeAllListeners=function(M){var D=K.prototype.removeAllListeners.apply(this,arguments);return("readable"===M||void 0===M)&&t.nextTick(lA,this),D},VA.prototype.resume=function(){var M=this._readableState;return M.flowing||(aA("resume"),M.flowing=!M.readableListening,function JA(M,D){D.resumeScheduled||(D.resumeScheduled=!0,t.nextTick($A,M,D))}(this,M)),M.paused=!1,this},VA.prototype.pause=function(){return aA("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(aA("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},VA.prototype.wrap=function(M){var D=this,X=this._readableState,YA=!1;for(var KA in M.on("end",function(){if(aA("wrapped end"),X.decoder&&!X.ended){var le=X.decoder.end();le&&le.length&&D.push(le)}D.push(null)}),M.on("data",function(le){aA("wrapped data"),X.decoder&&(le=X.decoder.write(le)),X.objectMode&&null==le||!(X.objectMode||le&&le.length)||D.push(le)||(YA=!0,M.pause())}),M)void 0===this[KA]&&"function"==typeof M[KA]&&(this[KA]=function(ve){return function(){return M[ve].apply(M,arguments)}}(KA));for(var bA=0;bA-1))throw new nA(gA);return this._writableState.defaultEncoding=gA,this},Object.defineProperty(wA.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(wA.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),wA.prototype._write=function(IA,gA,C){C(new QA("_write()"))},wA.prototype._writev=null,wA.prototype.end=function(IA,gA,C){var b=this._writableState;return"function"==typeof IA?(C=IA,IA=null,gA=null):"function"==typeof gA&&(C=gA,gA=null),null!=IA&&this.write(IA,gA),b.corked&&(b.corked=1,this.uncork()),b.ending||function JA(IA,gA,C){gA.ending=!0,LA(IA,gA),C&&(gA.finished?t.nextTick(C):IA.once("finish",C)),gA.ended=!0,IA.writable=!1}(this,b,C),this},Object.defineProperty(wA.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(wA.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(gA){this._writableState&&(this._writableState.destroyed=gA)}}),wA.prototype.destroy=aA.destroy,wA.prototype._undestroy=aA.undestroy,wA.prototype._destroy=function(IA,gA){gA(IA)}},9676(eA,Q,f){"use strict";var g,t=f(9964);function I(RA,nA,H){return nA=function N(RA){var nA=function K(RA,nA){if("object"!=typeof RA||null===RA)return RA;var H=RA[Symbol.toPrimitive];if(void 0!==H){var pA=H.call(RA,nA||"default");if("object"!=typeof pA)return pA;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===nA?String:Number)(RA)}(RA,"string");return"symbol"==typeof nA?nA:String(nA)}(nA),nA in RA?Object.defineProperty(RA,nA,{value:H,enumerable:!0,configurable:!0,writable:!0}):RA[nA]=H,RA}var v=f(2167),B=Symbol("lastResolve"),j=Symbol("lastReject"),tA=Symbol("error"),w=Symbol("ended"),aA=Symbol("lastPromise"),AA=Symbol("handlePromise"),L=Symbol("stream");function P(RA,nA){return{value:RA,done:nA}}function rA(RA){var nA=RA[B];if(null!==nA){var H=RA[L].read();null!==H&&(RA[aA]=null,RA[B]=null,RA[j]=null,nA(P(H,!1)))}}function QA(RA){t.nextTick(rA,RA)}var oA=Object.getPrototypeOf(function(){}),uA=Object.setPrototypeOf((I(g={get stream(){return this[L]},next:function(){var nA=this,H=this[tA];if(null!==H)return Promise.reject(H);if(this[w])return Promise.resolve(P(void 0,!0));if(this[L].destroyed)return new Promise(function(wA,VA){t.nextTick(function(){nA[tA]?VA(nA[tA]):wA(P(void 0,!0))})});var z,pA=this[aA];if(pA)z=new Promise(function NA(RA,nA){return function(H,pA){RA.then(function(){nA[w]?H(P(void 0,!0)):nA[AA](H,pA)},pA)}}(pA,this));else{var OA=this[L].read();if(null!==OA)return Promise.resolve(P(OA,!1));z=new Promise(this[AA])}return this[aA]=z,z}},Symbol.asyncIterator,function(){return this}),I(g,"return",function(){var nA=this;return new Promise(function(H,pA){nA[L].destroy(null,function(z){z?pA(z):H(P(void 0,!0))})})}),g),oA);eA.exports=function(nA){var H,pA=Object.create(uA,(I(H={},L,{value:nA,writable:!0}),I(H,B,{value:null,writable:!0}),I(H,j,{value:null,writable:!0}),I(H,tA,{value:null,writable:!0}),I(H,w,{value:nA._readableState.endEmitted,writable:!0}),I(H,AA,{value:function(OA,wA){var VA=pA[L].read();VA?(pA[aA]=null,pA[B]=null,pA[j]=null,OA(P(VA,!1))):(pA[B]=OA,pA[j]=wA)},writable:!0}),H));return pA[aA]=null,v(nA,function(z){if(z&&"ERR_STREAM_PREMATURE_CLOSE"!==z.code){var OA=pA[j];return null!==OA&&(pA[aA]=null,pA[B]=null,pA[j]=null,OA(z)),void(pA[tA]=z)}var wA=pA[B];null!==wA&&(pA[aA]=null,pA[B]=null,pA[j]=null,wA(P(void 0,!0))),pA[w]=!0}),nA.on("readable",QA.bind(null,pA)),pA}},7385(eA,Q,f){"use strict";var t=f(9964);function I(j,tA){v(j,tA),N(j)}function N(j){j._writableState&&!j._writableState.emitClose||j._readableState&&!j._readableState.emitClose||j.emit("close")}function v(j,tA){j.emit("error",tA)}eA.exports={destroy:function g(j,tA){var w=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(tA?tA(j):j&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(v,this,j)):t.nextTick(v,this,j)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(j||null,function(L){!tA&&L?w._writableState?w._writableState.errorEmitted?t.nextTick(N,w):(w._writableState.errorEmitted=!0,t.nextTick(I,w,L)):t.nextTick(I,w,L):tA?(t.nextTick(N,w),tA(L)):t.nextTick(N,w)}),this)},undestroy:function K(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function B(j,tA){var w=j._readableState,aA=j._writableState;w&&w.autoDestroy||aA&&aA.autoDestroy?j.destroy(tA):j.emit("error",tA)}}},2167(eA,Q,f){"use strict";var t=f(3797).F.ERR_STREAM_PREMATURE_CLOSE;function I(){}eA.exports=function K(v,B,j){if("function"==typeof B)return K(v,null,B);B||(B={}),j=function g(v){var B=!1;return function(){if(!B){B=!0;for(var j=arguments.length,tA=new Array(j),w=0;w0,function(H){NA||(NA=H),H&&oA.forEach(tA),!RA&&(oA.forEach(tA),QA(NA))})});return P.reduce(w)}},8130(eA,Q,f){"use strict";var t=f(3797).F.ERR_INVALID_OPT_VALUE;eA.exports={getHighWaterMark:function I(N,K,v,B){var j=function g(N,K,v){return null!=N.highWaterMark?N.highWaterMark:K?N[v]:null}(K,B,v);if(null!=j){if(!isFinite(j)||Math.floor(j)!==j||j<0)throw new t(B?v:"highWaterMark",j);return Math.floor(j)}return N.objectMode?16:16384}}},9018(eA,Q,f){eA.exports=f(4785).EventEmitter},3143(eA,Q,f){"use strict";var t=f(5691).Buffer,g=t.isEncoding||function(oA){switch((oA=""+oA)&&oA.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function K(oA){var uA;switch(this.encoding=function N(oA){var uA=function I(oA){if(!oA)return"utf8";for(var uA;;)switch(oA){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return oA;default:if(uA)return;oA=(""+oA).toLowerCase(),uA=!0}}(oA);if("string"!=typeof uA&&(t.isEncoding===g||!g(oA)))throw new Error("Unknown encoding: "+oA);return uA||oA}(oA),this.encoding){case"utf16le":this.text=AA,this.end=L,uA=4;break;case"utf8":this.fillLast=tA,uA=4;break;case"base64":this.text=P,this.end=rA,uA=3;break;default:return this.write=QA,void(this.end=NA)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(uA)}function v(oA){return oA<=127?0:oA>>5==6?2:oA>>4==14?3:oA>>3==30?4:oA>>6==2?-1:-2}function tA(oA){var uA=this.lastTotal-this.lastNeed,dA=function j(oA,uA){if(128!=(192&uA[0]))return oA.lastNeed=0,"\ufffd";if(oA.lastNeed>1&&uA.length>1){if(128!=(192&uA[1]))return oA.lastNeed=1,"\ufffd";if(oA.lastNeed>2&&uA.length>2&&128!=(192&uA[2]))return oA.lastNeed=2,"\ufffd"}}(this,oA);return void 0!==dA?dA:this.lastNeed<=oA.length?(oA.copy(this.lastChar,uA,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(oA.copy(this.lastChar,uA,0,oA.length),void(this.lastNeed-=oA.length))}function AA(oA,uA){if((oA.length-uA)%2==0){var dA=oA.toString("utf16le",uA);if(dA){var RA=dA.charCodeAt(dA.length-1);if(RA>=55296&&RA<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=oA[oA.length-2],this.lastChar[1]=oA[oA.length-1],dA.slice(0,-1)}return dA}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=oA[oA.length-1],oA.toString("utf16le",uA,oA.length-1)}function L(oA){var uA=oA&&oA.length?this.write(oA):"";return this.lastNeed?uA+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):uA}function P(oA,uA){var dA=(oA.length-uA)%3;return 0===dA?oA.toString("base64",uA):(this.lastNeed=3-dA,this.lastTotal=3,1===dA?this.lastChar[0]=oA[oA.length-1]:(this.lastChar[0]=oA[oA.length-2],this.lastChar[1]=oA[oA.length-1]),oA.toString("base64",uA,oA.length-dA))}function rA(oA){var uA=oA&&oA.length?this.write(oA):"";return this.lastNeed?uA+this.lastChar.toString("base64",0,3-this.lastNeed):uA}function QA(oA){return oA.toString(this.encoding)}function NA(oA){return oA&&oA.length?this.write(oA):""}Q.I=K,K.prototype.write=function(oA){if(0===oA.length)return"";var uA,dA;if(this.lastNeed){if(void 0===(uA=this.fillLast(oA)))return"";dA=this.lastNeed,this.lastNeed=0}else dA=0;return dA=0?(nA>0&&(oA.lastNeed=nA-1),nA):--RA=0?(nA>0&&(oA.lastNeed=nA-2),nA):--RA=0?(nA>0&&(2===nA?nA=0:oA.lastNeed=nA-3),nA):0}(this,oA,uA);if(!this.lastNeed)return oA.toString("utf8",uA);this.lastTotal=dA;var RA=oA.length-(dA-this.lastNeed);return oA.copy(this.lastChar,0,RA),oA.toString("utf8",uA,RA)},K.prototype.fillLast=function(oA){if(this.lastNeed<=oA.length)return oA.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);oA.copy(this.lastChar,this.lastTotal-this.lastNeed,0,oA.length),this.lastNeed-=oA.length}},3483(eA){function t(){this.table=new Uint16Array(16),this.trans=new Uint16Array(288)}function g(H,pA){this.source=H,this.sourceIndex=0,this.tag=0,this.bitcount=0,this.dest=pA,this.destLen=0,this.ltree=new t,this.dtree=new t}var I=new t,N=new t,K=new Uint8Array(30),v=new Uint16Array(30),B=new Uint8Array(30),j=new Uint16Array(30),tA=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),w=new t,aA=new Uint8Array(320);function AA(H,pA,z,OA){var wA,VA;for(wA=0;wA>>=1,pA}function NA(H,pA,z){if(!pA)return z;for(;H.bitcount<24;)H.tag|=H.source[H.sourceIndex++]<>>16-pA;return H.tag>>>=pA,H.bitcount-=pA,OA+z}function oA(H,pA){for(;H.bitcount<24;)H.tag|=H.source[H.sourceIndex++]<>>=1,++wA,z+=pA.table[wA],OA-=pA.table[wA]}while(OA>=0);return H.tag=VA,H.bitcount-=wA,pA.trans[z+OA]}function uA(H,pA,z){var OA,wA,VA,kA,hA,fA;for(OA=NA(H,5,257),wA=NA(H,5,1),VA=NA(H,4,4),kA=0;kA<19;++kA)aA[kA]=0;for(kA=0;kA8;)H.sourceIndex--,H.bitcount-=8;if((pA=256*(pA=H.source[H.sourceIndex+1])+H.source[H.sourceIndex])!==(65535&~(256*H.source[H.sourceIndex+3]+H.source[H.sourceIndex+2])))return-3;for(H.sourceIndex+=4,OA=pA;OA;--OA)H.dest[H.destLen++]=H.source[H.sourceIndex++];return H.bitcount=0,0}(function L(H,pA){var z;for(z=0;z<7;++z)H.table[z]=0;for(H.table[7]=24,H.table[8]=152,H.table[9]=112,z=0;z<24;++z)H.trans[z]=256+z;for(z=0;z<144;++z)H.trans[24+z]=z;for(z=0;z<8;++z)H.trans[168+z]=280+z;for(z=0;z<112;++z)H.trans[176+z]=144+z;for(z=0;z<5;++z)pA.table[z]=0;for(pA.table[5]=32,z=0;z<32;++z)pA.trans[z]=z})(I,N),AA(K,v,4,3),AA(B,j,2,1),K[28]=0,v[28]=258,eA.exports=function nA(H,pA){var OA,VA,z=new g(H,pA);do{switch(OA=QA(z),NA(z,2,0)){case 0:VA=RA(z);break;case 1:VA=dA(z,I,N);break;case 2:uA(z,z.ltree,z.dtree),VA=dA(z,z.ltree,z.dtree);break;default:VA=-3}if(0!==VA)throw new Error("Data error")}while(!OA);return z.destLen"u")&&(HA.working?HA(bA):bA instanceof ArrayBuffer)}function J(bA){return"[object DataView]"===j(bA)}function U(bA){return!(typeof DataView>"u")&&(J.working?J(bA):bA instanceof DataView)}Q.isArgumentsObject=t,Q.isGeneratorFunction=g,Q.isTypedArray=N,Q.isPromise=function rA(bA){return typeof Promise<"u"&&bA instanceof Promise||null!==bA&&"object"==typeof bA&&"function"==typeof bA.then&&"function"==typeof bA.catch},Q.isArrayBufferView=function QA(bA){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(bA):N(bA)||U(bA)},Q.isUint8Array=function NA(bA){return"Uint8Array"===I(bA)},Q.isUint8ClampedArray=function oA(bA){return"Uint8ClampedArray"===I(bA)},Q.isUint16Array=function uA(bA){return"Uint16Array"===I(bA)},Q.isUint32Array=function dA(bA){return"Uint32Array"===I(bA)},Q.isInt8Array=function RA(bA){return"Int8Array"===I(bA)},Q.isInt16Array=function nA(bA){return"Int16Array"===I(bA)},Q.isInt32Array=function H(bA){return"Int32Array"===I(bA)},Q.isFloat32Array=function pA(bA){return"Float32Array"===I(bA)},Q.isFloat64Array=function z(bA){return"Float64Array"===I(bA)},Q.isBigInt64Array=function OA(bA){return"BigInt64Array"===I(bA)},Q.isBigUint64Array=function wA(bA){return"BigUint64Array"===I(bA)},VA.working=typeof Map<"u"&&VA(new Map),Q.isMap=function kA(bA){return!(typeof Map>"u")&&(VA.working?VA(bA):bA instanceof Map)},hA.working=typeof Set<"u"&&hA(new Set),Q.isSet=function fA(bA){return!(typeof Set>"u")&&(hA.working?hA(bA):bA instanceof Set)},UA.working=typeof WeakMap<"u"&&UA(new WeakMap),Q.isWeakMap=function yA(bA){return!(typeof WeakMap>"u")&&(UA.working?UA(bA):bA instanceof WeakMap)},xA.working=typeof WeakSet<"u"&&xA(new WeakSet),Q.isWeakSet=function Ee(bA){return xA(bA)},HA.working=typeof ArrayBuffer<"u"&&HA(new ArrayBuffer),Q.isArrayBuffer=cA,J.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&J(new DataView(new ArrayBuffer(1),0,1)),Q.isDataView=U;var O=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function lA(bA){return"[object SharedArrayBuffer]"===j(bA)}function LA(bA){return!(typeof O>"u")&&(typeof lA.working>"u"&&(lA.working=lA(new O)),lA.working?lA(bA):bA instanceof O)}function b(bA){return P(bA,tA)}function R(bA){return P(bA,w)}function M(bA){return P(bA,aA)}function D(bA){return v&&P(bA,AA)}function X(bA){return B&&P(bA,L)}Q.isSharedArrayBuffer=LA,Q.isAsyncFunction=function JA(bA){return"[object AsyncFunction]"===j(bA)},Q.isMapIterator=function $A(bA){return"[object Map Iterator]"===j(bA)},Q.isSetIterator=function IA(bA){return"[object Set Iterator]"===j(bA)},Q.isGeneratorObject=function gA(bA){return"[object Generator]"===j(bA)},Q.isWebAssemblyCompiledModule=function C(bA){return"[object WebAssembly.Module]"===j(bA)},Q.isNumberObject=b,Q.isStringObject=R,Q.isBooleanObject=M,Q.isBigIntObject=D,Q.isSymbolObject=X,Q.isBoxedPrimitive=function YA(bA){return b(bA)||R(bA)||M(bA)||D(bA)||X(bA)},Q.isAnyArrayBuffer=function KA(bA){return typeof Uint8Array<"u"&&(cA(bA)||LA(bA))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(bA){Object.defineProperty(Q,bA,{enumerable:!1,value:function(){throw new Error(bA+" is not supported in userland")}})})},7187(eA,Q,f){var t=f(9964),g=Object.getOwnPropertyDescriptors||function(O){for(var lA=Object.keys(O),LA={},JA=0;JA=JA)return gA;switch(gA){case"%s":return String(LA[lA++]);case"%d":return Number(LA[lA++]);case"%j":try{return JSON.stringify(LA[lA++])}catch{return"[Circular]"}default:return gA}}),IA=LA[lA];lA"u")return function(){return Q.deprecate(U,O).apply(this,arguments)};var lA=!1;return function LA(){if(!lA){if(t.throwDeprecation)throw new Error(O);t.traceDeprecation?console.trace(O):console.error(O),lA=!0}return U.apply(this,arguments)}};var N={},K=/^$/;if(t.env.NODE_DEBUG){var v=t.env.NODE_DEBUG;v=v.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),K=new RegExp("^"+v+"$","i")}function B(U,O){var lA={seen:[],stylize:tA};return arguments.length>=3&&(lA.depth=arguments[2]),arguments.length>=4&&(lA.colors=arguments[3]),oA(O)?lA.showHidden=O:O&&Q._extend(lA,O),pA(lA.showHidden)&&(lA.showHidden=!1),pA(lA.depth)&&(lA.depth=2),pA(lA.colors)&&(lA.colors=!1),pA(lA.customInspect)&&(lA.customInspect=!0),lA.colors&&(lA.stylize=j),aA(lA,U,lA.depth)}function j(U,O){var lA=B.styles[O];return lA?"\x1b["+B.colors[lA][0]+"m"+U+"\x1b["+B.colors[lA][1]+"m":U}function tA(U,O){return U}function aA(U,O,lA){if(U.customInspect&&O&&kA(O.inspect)&&O.inspect!==Q.inspect&&(!O.constructor||O.constructor.prototype!==O)){var LA=O.inspect(lA,U);return nA(LA)||(LA=aA(U,LA,lA)),LA}var JA=function AA(U,O){if(pA(O))return U.stylize("undefined","undefined");if(nA(O)){var lA="'"+JSON.stringify(O).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return U.stylize(lA,"string")}return RA(O)?U.stylize(""+O,"number"):oA(O)?U.stylize(""+O,"boolean"):uA(O)?U.stylize("null","null"):void 0}(U,O);if(JA)return JA;var $A=Object.keys(O),IA=function w(U){var O={};return U.forEach(function(lA,LA){O[lA]=!0}),O}($A);if(U.showHidden&&($A=Object.getOwnPropertyNames(O)),VA(O)&&($A.indexOf("message")>=0||$A.indexOf("description")>=0))return L(O);if(0===$A.length){if(kA(O))return U.stylize("[Function"+(O.name?": "+O.name:"")+"]","special");if(z(O))return U.stylize(RegExp.prototype.toString.call(O),"regexp");if(wA(O))return U.stylize(Date.prototype.toString.call(O),"date");if(VA(O))return L(O)}var D,C="",b=!1,R=["{","}"];return NA(O)&&(b=!0,R=["[","]"]),kA(O)&&(C=" [Function"+(O.name?": "+O.name:"")+"]"),z(O)&&(C=" "+RegExp.prototype.toString.call(O)),wA(O)&&(C=" "+Date.prototype.toUTCString.call(O)),VA(O)&&(C=" "+L(O)),0!==$A.length||b&&0!=O.length?lA<0?z(O)?U.stylize(RegExp.prototype.toString.call(O),"regexp"):U.stylize("[Object]","special"):(U.seen.push(O),D=b?function P(U,O,lA,LA,JA){for(var $A=[],IA=0,gA=O.length;IA60?lA[0]+(""===O?"":O+"\n ")+" "+U.join(",\n ")+" "+lA[1]:lA[0]+O+" "+U.join(", ")+" "+lA[1]}(D,C,R)):R[0]+C+R[1]}function L(U){return"["+Error.prototype.toString.call(U)+"]"}function rA(U,O,lA,LA,JA,$A){var IA,gA,C;if((C=Object.getOwnPropertyDescriptor(O,JA)||{value:O[JA]}).get?gA=U.stylize(C.set?"[Getter/Setter]":"[Getter]","special"):C.set&&(gA=U.stylize("[Setter]","special")),Ee(LA,JA)||(IA="["+JA+"]"),gA||(U.seen.indexOf(C.value)<0?(gA=uA(lA)?aA(U,C.value,null):aA(U,C.value,lA-1)).indexOf("\n")>-1&&(gA=$A?gA.split("\n").map(function(b){return" "+b}).join("\n").slice(2):"\n"+gA.split("\n").map(function(b){return" "+b}).join("\n")):gA=U.stylize("[Circular]","special")),pA(IA)){if($A&&JA.match(/^\d+$/))return gA;(IA=JSON.stringify(""+JA)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(IA=IA.slice(1,-1),IA=U.stylize(IA,"name")):(IA=IA.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),IA=U.stylize(IA,"string"))}return IA+": "+gA}function NA(U){return Array.isArray(U)}function oA(U){return"boolean"==typeof U}function uA(U){return null===U}function RA(U){return"number"==typeof U}function nA(U){return"string"==typeof U}function pA(U){return void 0===U}function z(U){return OA(U)&&"[object RegExp]"===fA(U)}function OA(U){return"object"==typeof U&&null!==U}function wA(U){return OA(U)&&"[object Date]"===fA(U)}function VA(U){return OA(U)&&("[object Error]"===fA(U)||U instanceof Error)}function kA(U){return"function"==typeof U}function fA(U){return Object.prototype.toString.call(U)}function UA(U){return U<10?"0"+U.toString(10):U.toString(10)}Q.debuglog=function(U){if(U=U.toUpperCase(),!N[U])if(K.test(U)){var O=t.pid;N[U]=function(){var lA=Q.format.apply(Q,arguments);console.error("%s %d: %s",U,O,lA)}}else N[U]=function(){};return N[U]},Q.inspect=B,B.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},B.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Q.types=f(9490),Q.isArray=NA,Q.isBoolean=oA,Q.isNull=uA,Q.isNullOrUndefined=function dA(U){return null==U},Q.isNumber=RA,Q.isString=nA,Q.isSymbol=function H(U){return"symbol"==typeof U},Q.isUndefined=pA,Q.isRegExp=z,Q.types.isRegExp=z,Q.isObject=OA,Q.isDate=wA,Q.types.isDate=wA,Q.isError=VA,Q.types.isNativeError=VA,Q.isFunction=kA,Q.isPrimitive=function hA(U){return null===U||"boolean"==typeof U||"number"==typeof U||"string"==typeof U||"symbol"==typeof U||typeof U>"u"},Q.isBuffer=f(1201);var yA=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ee(U,O){return Object.prototype.hasOwnProperty.call(U,O)}Q.log=function(){console.log("%s - %s",function xA(){var U=new Date,O=[UA(U.getHours()),UA(U.getMinutes()),UA(U.getSeconds())].join(":");return[U.getDate(),yA[U.getMonth()],O].join(" ")}(),Q.format.apply(Q,arguments))},Q.inherits=f(9784),Q._extend=function(U,O){if(!O||!OA(O))return U;for(var lA=Object.keys(O),LA=lA.length;LA--;)U[lA[LA]]=O[lA[LA]];return U};var HA=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function cA(U,O){if(!U){var lA=new Error("Promise was rejected with a falsy value");lA.reason=U,U=lA}return O(U)}Q.promisify=function(O){if("function"!=typeof O)throw new TypeError('The "original" argument must be of type Function');if(HA&&O[HA]){var lA;if("function"!=typeof(lA=O[HA]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(lA,HA,{value:lA,enumerable:!1,writable:!1,configurable:!0}),lA}function lA(){for(var LA,JA,$A=new Promise(function(C,b){LA=C,JA=b}),IA=[],gA=0;gA"u"?f.g:globalThis,w=g(),aA=N("String.prototype.slice"),AA=N("Array.prototype.indexOf",!0)||function(oA,uA){for(var dA=0;dA-1}(uA)?uA:"Object"===uA&&function rA(NA){var oA=!1;return t(L,function(uA,dA){if(!oA)try{uA(NA),oA=aA(dA,1)}catch{}}),oA}(oA)}return K?function P(NA){var oA=!1;return t(L,function(uA,dA){if(!oA)try{"$"+uA(NA)===dA&&(oA=aA(dA,1))}catch{}}),oA}(oA):null}},5127(eA,Q,f){var t,I;void 0!==(I="function"==typeof(t=function(){"use strict";function K(aA,AA,L){var P=new XMLHttpRequest;P.open("GET",aA),P.responseType="blob",P.onload=function(){w(P.response,AA,L)},P.onerror=function(){console.error("could not download file")},P.send()}function v(aA){var AA=new XMLHttpRequest;AA.open("HEAD",aA,!1);try{AA.send()}catch{}return 200<=AA.status&&299>=AA.status}function B(aA){try{aA.dispatchEvent(new MouseEvent("click"))}catch{var AA=document.createEvent("MouseEvents");AA.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),aA.dispatchEvent(AA)}}var j="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof f.g&&f.g.global===f.g?f.g:void 0,tA=j.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),w=j.saveAs||("object"!=typeof window||window!==j?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!tA?function(aA,AA,L){var P=j.URL||j.webkitURL,rA=document.createElement("a");rA.download=AA=AA||aA.name||"download",rA.rel="noopener","string"==typeof aA?(rA.href=aA,rA.origin===location.origin?B(rA):v(rA.href)?K(aA,AA,L):B(rA,rA.target="_blank")):(rA.href=P.createObjectURL(aA),setTimeout(function(){P.revokeObjectURL(rA.href)},4e4),setTimeout(function(){B(rA)},0))}:"msSaveOrOpenBlob"in navigator?function(aA,AA,L){if(AA=AA||aA.name||"download","string"!=typeof aA)navigator.msSaveOrOpenBlob(function N(aA,AA){return typeof AA>"u"?AA={autoBom:!1}:"object"!=typeof AA&&(console.warn("Deprecated: Expected third argument to be a object"),AA={autoBom:!AA}),AA.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(aA.type)?new Blob(["\ufeff",aA],{type:aA.type}):aA}(aA,L),AA);else if(v(aA))K(aA,AA,L);else{var P=document.createElement("a");P.href=aA,P.target="_blank",setTimeout(function(){B(P)})}}:function(aA,AA,L,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof aA)return K(aA,AA,L);var rA="application/octet-stream"===aA.type,QA=/constructor/i.test(j.HTMLElement)||j.safari,NA=/CriOS\/[\d]+/.test(navigator.userAgent);if((NA||rA&&QA||tA)&&typeof FileReader<"u"){var oA=new FileReader;oA.onloadend=function(){var RA=oA.result;RA=NA?RA:RA.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=RA:location=RA,P=null},oA.readAsDataURL(aA)}else{var uA=j.URL||j.webkitURL,dA=uA.createObjectURL(aA);P?P.location=dA:location.href=dA,P=null,setTimeout(function(){uA.revokeObjectURL(dA)},4e4)}});j.saveAs=w.saveAs=w,eA.exports=w})?t.apply(Q,[]):t)&&(eA.exports=I)},6274(){},8535(){},3779(){},7199(){},5117(eA){"use strict";eA.exports=typeof ArrayBuffer<"u"&&typeof DataView<"u"},4074(eA,Q,f){"use strict";var yA,xA,Ee,t=f(5117),g=f(5144),I=f(7756),N=f(8681),K=f(3598),v=f(6341),B=f(9391),j=f(8819),tA=f(5719),w=f(4092),aA=f(1182),AA=f(9877),L=f(8607),P=f(443),rA=f(8663),QA=f(6044),NA=f(6921),oA=NA.enforce,uA=NA.get,dA=I.Int8Array,RA=dA&&dA.prototype,nA=I.Uint8ClampedArray,H=nA&&nA.prototype,pA=dA&&L(dA),z=RA&&L(RA),OA=Object.prototype,wA=I.TypeError,VA=rA("toStringTag"),kA=QA("TYPED_ARRAY_TAG"),hA="TypedArrayConstructor",fA=t&&!!P&&"Opera"!==B(I.opera),UA=!1,HA={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},cA={BigInt64Array:8,BigUint64Array:8},U=function(IA){var gA=L(IA);if(K(gA)){var C=uA(gA);return C&&v(C,hA)?C[hA]:U(gA)}},O=function(IA){if(!K(IA))return!1;var gA=B(IA);return v(HA,gA)||v(cA,gA)};for(yA in HA)(Ee=(xA=I[yA])&&xA.prototype)?oA(Ee)[hA]=xA:fA=!1;for(yA in cA)(Ee=(xA=I[yA])&&xA.prototype)&&(oA(Ee)[hA]=xA);if((!fA||!N(pA)||pA===Function.prototype)&&(pA=function(){throw new wA("Incorrect invocation")},fA))for(yA in HA)I[yA]&&P(I[yA],pA);if((!fA||!z||z===OA)&&(z=pA.prototype,fA))for(yA in HA)I[yA]&&P(I[yA].prototype,z);if(fA&&L(H)!==z&&P(H,z),g&&!v(z,VA))for(yA in UA=!0,aA(z,VA,{configurable:!0,get:function(){return K(this)?this[kA]:void 0}}),HA)I[yA]&&tA(I[yA].prototype,kA,yA);eA.exports={NATIVE_ARRAY_BUFFER_VIEWS:fA,TYPED_ARRAY_TAG:UA&&kA,aTypedArray:function(IA){if(O(IA))return IA;throw new wA("Target is not a typed array")},aTypedArrayConstructor:function(IA){if(N(IA)&&(!P||AA(pA,IA)))return IA;throw new wA(j(IA)+" is not a typed array constructor")},exportTypedArrayMethod:function(IA,gA,C,b){if(g){if(C)for(var R in HA){var M=I[R];if(M&&v(M.prototype,IA))try{delete M.prototype[IA]}catch{try{M.prototype[IA]=gA}catch{}}}(!z[IA]||C)&&w(z,IA,C?gA:fA&&RA[IA]||gA,b)}},exportTypedArrayStaticMethod:function(IA,gA,C){var b,R;if(g){if(P){if(C)for(b in HA)if((R=I[b])&&v(R,IA))try{delete R[IA]}catch{}if(pA[IA]&&!C)return;try{return w(pA,IA,C?gA:fA&&pA[IA]||gA)}catch{}}for(b in HA)(R=I[b])&&(!R[IA]||C)&&w(R,IA,gA)}},getTypedArrayConstructor:U,isView:function(gA){if(!K(gA))return!1;var C=B(gA);return"DataView"===C||v(HA,C)||v(cA,C)},isTypedArray:O,TypedArray:pA,TypedArrayPrototype:z}},4415(eA,Q){"use strict";Q._=function f(t,g,I){return g in t?Object.defineProperty(t,g,{value:I,enumerable:!0,configurable:!0,writable:!0}):t[g]=I,t}},8395(eA,Q,f){"use strict";Q._=f(1635).__decorate},821(eA,Q,f){"use strict";var t=f(884),g=typeof globalThis>"u"?f.g:globalThis;eA.exports=function(){for(var N=[],K=0;K1?arguments[1]:void 0,B),w=j>2?arguments[2]:void 0,aA=void 0===w?B:g(w,B);aA>tA;)v[tA++]=K;return v}},789(eA,Q,f){"use strict";var t=f(5137),g=f(4918),I=f(4730),N=function(K){return function(v,B,j){var tA=t(v),w=I(tA);if(0===w)return!K&&-1;var AA,aA=g(j,w);if(K&&B!=B){for(;w>aA;)if((AA=tA[aA++])!=AA)return!0}else for(;w>aA;aA++)if((K||aA in tA)&&tA[aA]===B)return K||aA||0;return!K&&-1}};eA.exports={includes:N(!0),indexOf:N(!1)}},2740(eA,Q,f){"use strict";var t=f(1212);eA.exports=t([].slice)},644(eA,Q,f){"use strict";var t=f(2740),g=Math.floor,I=function(N,K){var v=N.length;if(v<8)for(var j,tA,B=1;B0;)N[tA]=N[--tA];tA!==B++&&(N[tA]=j)}else for(var w=g(v/2),aA=I(t(N,0,w),K),AA=I(t(N,w),K),L=aA.length,P=AA.length,rA=0,QA=0;rA0&&B[0]<4?1:+(B[0]+B[1])),!j&&g&&(!(B=g.match(/Edge\/(\d+)/))||B[1]>=74)&&(B=g.match(/Chrome\/(\d+)/))&&(j=+B[1]),eA.exports=j},4507(eA,Q,f){"use strict";var g=f(8115).match(/AppleWebKit\/(\d+)\./);eA.exports=!!g&&+g[1]},3762(eA,Q,f){"use strict";var t=f(7756),g=f(423).f,I=f(5719),N=f(4092),K=f(7309),v=f(8032),B=f(5888);eA.exports=function(j,tA){var P,rA,QA,NA,oA,w=j.target,aA=j.global,AA=j.stat;if(P=aA?t:AA?t[w]||K(w,{}):t[w]&&t[w].prototype)for(rA in tA){if(NA=tA[rA],QA=j.dontCallGetSet?(oA=g(P,rA))&&oA.value:P[rA],!B(aA?rA:w+(AA?".":"#")+rA,j.forced)&&void 0!==QA){if(typeof NA==typeof QA)continue;v(NA,QA)}(j.sham||QA&&QA.sham)&&I(NA,"sham",!0),N(P,rA,NA,j)}}},299(eA){"use strict";eA.exports=function(Q){try{return!!Q()}catch{return!0}}},1676(eA,Q,f){"use strict";var t=f(299);eA.exports=!t(function(){var g=function(){}.bind();return"function"!=typeof g||g.hasOwnProperty("prototype")})},8993(eA,Q,f){"use strict";var t=f(1676),g=Function.prototype.call;eA.exports=t?g.bind(g):function(){return g.apply(g,arguments)}},4378(eA,Q,f){"use strict";var t=f(5144),g=f(6341),I=Function.prototype,N=t&&Object.getOwnPropertyDescriptor,K=g(I,"name"),v=K&&"something"===function(){}.name,B=K&&(!t||t&&N(I,"name").configurable);eA.exports={EXISTS:K,PROPER:v,CONFIGURABLE:B}},4494(eA,Q,f){"use strict";var t=f(1212),g=f(1078);eA.exports=function(I,N,K){try{return t(g(Object.getOwnPropertyDescriptor(I,N)[K]))}catch{}}},5336(eA,Q,f){"use strict";var t=f(8420),g=f(1212);eA.exports=function(I){if("Function"===t(I))return g(I)}},1212(eA,Q,f){"use strict";var t=f(1676),g=Function.prototype,I=g.call,N=t&&g.bind.bind(I,I);eA.exports=t?N:function(K){return function(){return I.apply(K,arguments)}}},7139(eA,Q,f){"use strict";var t=f(7756),g=f(8681);eA.exports=function(N,K){return arguments.length<2?function(N){return g(N)?N:void 0}(t[N]):t[N]&&t[N][K]}},9738(eA,Q,f){"use strict";var t=f(1078),g=f(6297);eA.exports=function(I,N){var K=I[N];return g(K)?void 0:t(K)}},7756(eA,Q,f){"use strict";var t=function(g){return g&&g.Math===Math&&g};eA.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof f.g&&f.g)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6341(eA,Q,f){"use strict";var t=f(1212),g=f(3297),I=t({}.hasOwnProperty);eA.exports=Object.hasOwn||function(K,v){return I(g(K),v)}},2993(eA){"use strict";eA.exports={}},4329(eA,Q,f){"use strict";var t=f(7139);eA.exports=t("document","documentElement")},7657(eA,Q,f){"use strict";var t=f(5144),g=f(299),I=f(2283);eA.exports=!t&&!g(function(){return 7!==Object.defineProperty(I("div"),"a",{get:function(){return 7}}).a})},2203(eA,Q,f){"use strict";var t=f(1212),g=f(299),I=f(8420),N=Object,K=t("".split);eA.exports=g(function(){return!N("z").propertyIsEnumerable(0)})?function(v){return"String"===I(v)?K(v,""):N(v)}:N},4550(eA,Q,f){"use strict";var t=f(1212),g=f(8681),I=f(3793),N=t(Function.toString);g(I.inspectSource)||(I.inspectSource=function(K){return N(K)}),eA.exports=I.inspectSource},6921(eA,Q,f){"use strict";var AA,L,P,t=f(1194),g=f(7756),I=f(3598),N=f(5719),K=f(6341),v=f(3793),B=f(7099),j=f(2993),tA="Object already initialized",w=g.TypeError;if(t||v.state){var NA=v.state||(v.state=new(0,g.WeakMap));NA.get=NA.get,NA.has=NA.has,NA.set=NA.set,AA=function(uA,dA){if(NA.has(uA))throw new w(tA);return dA.facade=uA,NA.set(uA,dA),dA},L=function(uA){return NA.get(uA)||{}},P=function(uA){return NA.has(uA)}}else{var oA=B("state");j[oA]=!0,AA=function(uA,dA){if(K(uA,oA))throw new w(tA);return dA.facade=uA,N(uA,oA,dA),dA},L=function(uA){return K(uA,oA)?uA[oA]:{}},P=function(uA){return K(uA,oA)}}eA.exports={set:AA,get:L,has:P,enforce:function(uA){return P(uA)?L(uA):AA(uA,{})},getterFor:function(uA){return function(dA){var RA;if(!I(dA)||(RA=L(dA)).type!==uA)throw new w("Incompatible receiver, "+uA+" required");return RA}}}},8468(eA,Q,f){"use strict";var t=f(8420);eA.exports=Array.isArray||function(I){return"Array"===t(I)}},8681(eA){"use strict";var Q="object"==typeof document&&document.all;eA.exports=typeof Q>"u"&&void 0!==Q?function(f){return"function"==typeof f||f===Q}:function(f){return"function"==typeof f}},5888(eA,Q,f){"use strict";var t=f(299),g=f(8681),I=/#|\.prototype\./,N=function(tA,w){var aA=v[K(tA)];return aA===j||aA!==B&&(g(w)?t(w):!!w)},K=N.normalize=function(tA){return String(tA).replace(I,".").toLowerCase()},v=N.data={},B=N.NATIVE="N",j=N.POLYFILL="P";eA.exports=N},6297(eA){"use strict";eA.exports=function(Q){return null==Q}},3598(eA,Q,f){"use strict";var t=f(8681);eA.exports=function(g){return"object"==typeof g?null!==g:t(g)}},2657(eA,Q,f){"use strict";var t=f(3598);eA.exports=function(g){return t(g)||null===g}},7695(eA){"use strict";eA.exports=!1},5985(eA,Q,f){"use strict";var t=f(7139),g=f(8681),I=f(9877),N=f(8300),K=Object;eA.exports=N?function(v){return"symbol"==typeof v}:function(v){var B=t("Symbol");return g(B)&&I(B.prototype,K(v))}},4730(eA,Q,f){"use strict";var t=f(8266);eA.exports=function(g){return t(g.length)}},3383(eA,Q,f){"use strict";var t=f(1212),g=f(299),I=f(8681),N=f(6341),K=f(5144),v=f(4378).CONFIGURABLE,B=f(4550),j=f(6921),tA=j.enforce,w=j.get,aA=String,AA=Object.defineProperty,L=t("".slice),P=t("".replace),rA=t([].join),QA=K&&!g(function(){return 8!==AA(function(){},"length",{value:8}).length}),NA=String(String).split("String"),oA=eA.exports=function(uA,dA,RA){"Symbol("===L(aA(dA),0,7)&&(dA="["+P(aA(dA),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),RA&&RA.getter&&(dA="get "+dA),RA&&RA.setter&&(dA="set "+dA),(!N(uA,"name")||v&&uA.name!==dA)&&(K?AA(uA,"name",{value:dA,configurable:!0}):uA.name=dA),QA&&RA&&N(RA,"arity")&&uA.length!==RA.arity&&AA(uA,"length",{value:RA.arity});try{RA&&N(RA,"constructor")&&RA.constructor?K&&AA(uA,"prototype",{writable:!1}):uA.prototype&&(uA.prototype=void 0)}catch{}var nA=tA(uA);return N(nA,"source")||(nA.source=rA(NA,"string"==typeof dA?dA:"")),uA};Function.prototype.toString=oA(function(){return I(this)&&w(this).source||B(this)},"toString")},2537(eA){"use strict";var Q=Math.ceil,f=Math.floor;eA.exports=Math.trunc||function(g){var I=+g;return(I>0?f:Q)(I)}},4860(eA,Q,f){"use strict";var NA,t=f(2091),g=f(2197),I=f(2555),N=f(2993),K=f(4329),v=f(2283),B=f(7099),w="prototype",AA=B("IE_PROTO"),L=function(){},P=function(uA){return" - + diff --git a/frontend/main.2342107661e2489f.js b/frontend/main.2342107661e2489f.js new file mode 100644 index 00000000..83d3c361 --- /dev/null +++ b/frontend/main.2342107661e2489f.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[792],{8430(Zt,pe,l){"use strict";l.d(pe,{$6:()=>F,$J:()=>Le,$Q:()=>ne,Aw:()=>f,C2:()=>C,CK:()=>re,Db:()=>Sn,Do:()=>P,Dq:()=>$,ED:()=>Qn,EM:()=>nt,Eb:()=>Ye,Ew:()=>ht,Fd:()=>Ee,GZ:()=>oe,Gy:()=>Pe,Gz:()=>rt,Hm:()=>be,Jx:()=>H,Ml:()=>cn,N4:()=>V,NS:()=>e,NU:()=>h,Qj:()=>le,Qv:()=>Ft,Sn:()=>O,T4:()=>ce,Uj:()=>xe,VK:()=>ve,We:()=>j,XT:()=>B,Yi:()=>lt,Zi:()=>G,a5:()=>Ke,aB:()=>Vt,cR:()=>_e,dv:()=>J,ed:()=>W,fy:()=>De,g6:()=>ot,gf:()=>T,ij:()=>Dt,jQ:()=>Gt,kQ:()=>gt,kX:()=>L,kv:()=>ie,lg:()=>w,no:()=>v,qw:()=>fe,sq:()=>Ce,uK:()=>te,vL:()=>Re,w0:()=>Xe,x1:()=>u,y0:()=>Qe,zU:()=>he});var i=l(9640),d=l(4416);const v=(0,i.VP)(d.TC.UPDATE_API_CALL_STATUS_CLN,(0,i.xk)()),T=(0,i.VP)(d.TC.RESET_CLN_STORE),w=(0,i.VP)(d.TC.FETCH_PAGE_SETTINGS_CLN),e=(0,i.VP)(d.TC.SET_PAGE_SETTINGS_CLN,(0,i.xk)()),O=(0,i.VP)(d.TC.SAVE_PAGE_SETTINGS_CLN,(0,i.xk)()),f=(0,i.VP)(d.TC.FETCH_INFO_CLN,(0,i.xk)()),u=(0,i.VP)(d.TC.SET_INFO_CLN,(0,i.xk)()),L=(0,i.VP)(d.TC.FETCH_FEE_RATES_CLN,(0,i.xk)()),C=(0,i.VP)(d.TC.SET_FEE_RATES_CLN,(0,i.xk)()),B=(0,i.VP)(d.TC.GET_NEW_ADDRESS_CLN,(0,i.xk)()),Pe=((0,i.VP)(d.TC.SET_NEW_ADDRESS_CLN,(0,i.xk)()),(0,i.VP)(d.TC.FETCH_PEERS_CLN)),le=(0,i.VP)(d.TC.SET_PEERS_CLN,(0,i.xk)()),Ce=(0,i.VP)(d.TC.SAVE_NEW_PEER_CLN,(0,i.xk)()),j=((0,i.VP)(d.TC.NEWLY_ADDED_PEER_CLN,(0,i.xk)()),(0,i.VP)(d.TC.ADD_PEER_CLN,(0,i.xk)())),W=(0,i.VP)(d.TC.DETACH_PEER_CLN,(0,i.xk)()),G=(0,i.VP)(d.TC.REMOVE_PEER_CLN,(0,i.xk)()),re=(0,i.VP)(d.TC.FETCH_PAYMENTS_CLN),xe=(0,i.VP)(d.TC.SET_PAYMENTS_CLN,(0,i.xk)()),Ee=(0,i.VP)(d.TC.SEND_PAYMENT_CLN,(0,i.xk)()),V=(0,i.VP)(d.TC.SEND_PAYMENT_STATUS_CLN,(0,i.xk)()),ce=(0,i.VP)(d.TC.GET_QUERY_ROUTES_CLN,(0,i.xk)()),be=(0,i.VP)(d.TC.SET_QUERY_ROUTES_CLN,(0,i.xk)()),ne=(0,i.VP)(d.TC.FETCH_CHANNELS_CLN),J=(0,i.VP)(d.TC.SET_CHANNELS_CLN,(0,i.xk)()),De=(0,i.VP)(d.TC.UPDATE_CHANNEL_CLN,(0,i.xk)()),Re=(0,i.VP)(d.TC.SAVE_NEW_CHANNEL_CLN,(0,i.xk)()),Xe=(0,i.VP)(d.TC.CLOSE_CHANNEL_CLN,(0,i.xk)()),_e=(0,i.VP)(d.TC.REMOVE_CHANNEL_CLN,(0,i.xk)()),he=(0,i.VP)(d.TC.PEER_LOOKUP_CLN,(0,i.xk)()),Dt=(0,i.VP)(d.TC.CHANNEL_LOOKUP_CLN,(0,i.xk)()),lt=(0,i.VP)(d.TC.INVOICE_LOOKUP_CLN,(0,i.xk)()),Le=(0,i.VP)(d.TC.SET_LOOKUP_CLN,(0,i.xk)()),te=(0,i.VP)(d.TC.GET_FORWARDING_HISTORY_CLN,(0,i.xk)()),ie=(0,i.VP)(d.TC.SET_FORWARDING_HISTORY_CLN,(0,i.xk)()),P=(0,i.VP)(d.TC.FETCH_INVOICES_CLN),F=(0,i.VP)(d.TC.SET_INVOICES_CLN,(0,i.xk)()),ve=(0,i.VP)(d.TC.SAVE_NEW_INVOICE_CLN,(0,i.xk)()),H=(0,i.VP)(d.TC.ADD_INVOICE_CLN,(0,i.xk)()),$=(0,i.VP)(d.TC.UPDATE_INVOICE_CLN,(0,i.xk)()),Ke=(0,i.VP)(d.TC.DELETE_EXPIRED_INVOICE_CLN,(0,i.xk)()),Vt=(0,i.VP)(d.TC.SET_CHANNEL_TRANSACTION_CLN,(0,i.xk)()),ot=((0,i.VP)(d.TC.SET_CHANNEL_TRANSACTION_RES_CLN,(0,i.xk)()),(0,i.VP)(d.TC.FETCH_UTXO_BALANCES_CLN)),nt=(0,i.VP)(d.TC.SET_UTXO_BALANCES_CLN,(0,i.xk)()),ht=(0,i.VP)(d.TC.FETCH_OFFER_INVOICE_CLN,(0,i.xk)()),oe=(0,i.VP)(d.TC.SET_OFFER_INVOICE_CLN,(0,i.xk)()),Ye=(0,i.VP)(d.TC.FETCH_OFFERS_CLN),fe=(0,i.VP)(d.TC.SET_OFFERS_CLN,(0,i.xk)()),Qe=(0,i.VP)(d.TC.SAVE_NEW_OFFER_CLN,(0,i.xk)()),gt=(0,i.VP)(d.TC.ADD_OFFER_CLN,(0,i.xk)()),Gt=(0,i.VP)(d.TC.DISABLE_OFFER_CLN,(0,i.xk)()),rt=(0,i.VP)(d.TC.UPDATE_OFFER_CLN,(0,i.xk)()),cn=(0,i.VP)(d.TC.FETCH_OFFER_BOOKMARKS_CLN),Ft=(0,i.VP)(d.TC.SET_OFFER_BOOKMARKS_CLN,(0,i.xk)()),Sn=(0,i.VP)(d.TC.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,i.xk)()),Qn=(0,i.VP)(d.TC.DELETE_OFFER_BOOKMARK_CLN,(0,i.xk)()),h=(0,i.VP)(d.TC.REMOVE_OFFER_BOOKMARK_CLN,(0,i.xk)())},283(Zt,pe,l){"use strict";l.d(pe,{i:()=>V});var i=l(1747),d=l(1413),v=l(7673),T=l(9437),w=l(6354),e=l(1397),O=l(6977),f=l(2462),u=l(8321),L=l(4416),C=l(1771),B=l(8430),A=l(9584),Pe=l(2142),le=l(2615),Ce=l(9330),Ae=l(9640),j=l(3202),W=l(2571),G=l(8570),re=l(3694),xe=l(7879),Ee=l(7303);let V=(()=>{var ce;class be{constructor(J,De,Re,Xe,_e,he,Dt,lt,Le){this.actions=J,this.httpClient=De,this.store=Re,this.sessionService=Xe,this.commonService=_e,this.logger=he,this.router=Dt,this.wsService=lt,this.location=Le,this.CHILD_API_URL=L.H$+"/cln",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new d.B,new d.B,new d.B],this.infoFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_INFO_CLN),(0,e.Z)(te=>(this.flgInitialized=!1,this.store.dispatch((0,C.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,B.no)({payload:{action:"FetchInfo",status:L.wn.INITIATED}})),this.store.dispatch((0,C.mt)({payload:L.MZ.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+L.rl.GETINFO_API).pipe((0,O.Q)(this.actions.pipe((0,i.gp)(L.aU.SET_SELECTED_NODE))),(0,w.T)(ie=>(this.logger.info(ie),this.CLN_VERISON=ie.version||"",ie.chains&&ie.chains.length&&ie.chains[0]&&"object"==typeof ie.chains[0]&&ie.chains[0].hasOwnProperty("chain")&&ie?.chains[0].chain&&ie?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&ie?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,B.no)({payload:{action:"FetchInfo",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.GET_NODE_INFO})),this.store.dispatch((0,C.Jh)()),setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{type:L.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:L.aU.LOGOUT,payload:"Sorry Not Sorry, RTL is Bitcoin Only!"}):(this.initializeRemainingData(ie,te.payload.loadPage),this.store.dispatch((0,B.no)({payload:{action:"FetchInfo",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.GET_NODE_INFO})),{type:L.TC.SET_INFO_CLN,payload:ie||{}}))),(0,T.W)(ie=>{const P=this.commonService.extractErrorCode(ie),F=503===P?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(ie);return this.router.navigate(["/error"],{state:{errorCode:P,errorMessage:F}}),this.handleErrorWithoutAlert("FetchInfo",L.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:P,error:F}),(0,v.of)({type:L.aU.VOID})})))))),this.fetchFeeRatesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_FEE_RATES_CLN),(0,e.Z)(te=>(this.store.dispatch((0,B.no)({payload:{action:"FetchFeeRates"+te.payload,status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.NETWORK_API+"/feeRates",{style:te.payload}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"FetchFeeRates"+te.payload,status:L.wn.COMPLETED}})),{type:L.TC.SET_FEE_RATES_CLN,payload:ie||{}})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("FetchFeeRates"+te.payload,L.MZ.NO_SPINNER,"Fetching Fee Rates Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.getNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.GET_NEW_ADDRESS_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.post(this.CHILD_API_URL+L.rl.ON_CHAIN_API+"/newaddr",{addresstype:te.payload.addressCode}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,C.y0)({payload:L.MZ.GENERATE_NEW_ADDRESS})),{type:L.TC.SET_NEW_ADDRESS_CLN,payload:ie&&ie[te.payload.addressCode]?ie[te.payload.addressCode]:{}})),(0,T.W)(ie=>(this.handleErrorWithAlert("GenerateNewAddress",L.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+L.rl.ON_CHAIN_API,ie),(0,v.of)({type:L.aU.VOID})))))))),this.setNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SET_NEW_ADDRESS_CLN),(0,w.T)(te=>(this.logger.info(te.payload),te.payload))),{dispatch:!1}),this.peersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_PEERS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchPeers",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.PEERS_API).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchPeers",status:L.wn.COMPLETED}})),{type:L.TC.SET_PEERS_CLN,payload:te||[]})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchPeers",L.MZ.NO_SPINNER,"Fetching Peers Failed.",te),(0,v.of)({type:L.aU.VOID})))))))),this.saveNewPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SAVE_NEW_PEER_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.CONNECT_PEER})),this.store.dispatch((0,B.no)({payload:{action:"SaveNewPeer",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.PEERS_API,{id:te.payload.id}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SaveNewPeer",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.CONNECT_PEER})),this.store.dispatch((0,B.Qj)({payload:ie||[]})),{type:L.TC.NEWLY_ADDED_PEER_CLN,payload:{peer:ie.find(P=>0===te.payload.id.indexOf(P.id?P.id:""))}})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("SaveNewPeer",L.MZ.CONNECT_PEER,"Peer Connection Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.detachPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.DETACH_PEER_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.DISCONNECT_PEER})),this.httpClient.post(this.CHILD_API_URL+L.rl.PEERS_API+"/disconnect",{id:te.payload.id,force:te.payload.force}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,C.y0)({payload:L.MZ.DISCONNECT_PEER})),this.store.dispatch((0,C.UI)({payload:"Peer Disconnected Successfully!"})),{type:L.TC.REMOVE_PEER_CLN,payload:{id:te.payload.id}})),(0,T.W)(ie=>(this.handleErrorWithAlert("PeerDisconnect",L.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+L.rl.PEERS_API+"/"+te.payload.id,ie),(0,v.of)({type:L.aU.VOID})))))))),this.channelsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_CHANNELS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchChannels",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.CHANNELS_API+"/listPeerChannels"))),(0,w.T)(te=>{this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchChannels",status:L.wn.COMPLETED}}));const ie={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return te.forEach(P=>{"CHANNELD_NORMAL"===P.state?P.peer_connected?ie.activeChannels.push(P):ie.inactiveChannels.push(P):ie.pendingChannels.push(P)}),{type:L.TC.SET_CHANNELS_CLN,payload:ie}}),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchChannels",L.MZ.NO_SPINNER,"Fetching Channels Failed.",te),(0,v.of)({type:L.aU.VOID}))))),this.openNewChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SAVE_NEW_CHANNEL_CLN),(0,e.Z)(te=>{this.store.dispatch((0,C.mt)({payload:L.MZ.OPEN_CHANNEL})),this.store.dispatch((0,B.no)({payload:{action:"SaveNewChannel",status:L.wn.INITIATED}}));const ie={id:te.payload.peerId,amount:te.payload.amount,feerate:te.payload.feeRate,announce:te.payload.announce};return te.payload.minconf&&(ie.minconf=te.payload.minconf),te.payload.utxos&&(ie.utxos=te.payload.utxos),te.payload.requestAmount&&(ie.request_amt=te.payload.requestAmount),te.payload.compactLease&&(ie.compact_lease=te.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+L.rl.CHANNELS_API,ie).pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,B.no)({payload:{action:"SaveNewChannel",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.OPEN_CHANNEL})),this.store.dispatch((0,C.UI)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,B.g6)()),{type:L.TC.FETCH_CHANNELS_CLN})),(0,T.W)(P=>(this.handleErrorWithoutAlert("SaveNewChannel",L.MZ.OPEN_CHANNEL,"Opening Channel Failed.",P),(0,v.of)({type:L.aU.VOID}))))}))),this.updateChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.UPDATE_CHANNEL_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+L.rl.CHANNELS_API+"/setChannelFee",te.payload).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,C.y0)({payload:L.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,C.UI)("all"===te.payload.id?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:L.TC.FETCH_CHANNELS_CLN})),(0,T.W)(ie=>(this.handleErrorWithAlert("UpdateChannel",L.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+L.rl.CHANNELS_API,ie),(0,v.of)({type:L.aU.VOID})))))))),this.closeChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.CLOSE_CHANNEL_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:te.payload.force?L.MZ.FORCE_CLOSE_CHANNEL:L.MZ.CLOSE_CHANNEL})),this.httpClient.post(this.CHILD_API_URL+L.rl.CHANNELS_API+"/close",{id:te.payload.channelId,unilateraltimeout:te.payload.force?1:null}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,C.y0)({payload:te.payload.force?L.MZ.FORCE_CLOSE_CHANNEL:L.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,B.$Q)()),this.store.dispatch((0,B.g6)()),this.store.dispatch((0,C.UI)({payload:"Channel Closed Successfully!"})),{type:L.TC.REMOVE_CHANNEL_CLN,payload:te.payload})),(0,T.W)(ie=>(this.handleErrorWithAlert("CloseChannel",te.payload.force?L.MZ.FORCE_CLOSE_CHANNEL:L.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+L.rl.CHANNELS_API,ie),(0,v.of)({type:L.aU.VOID})))))))),this.paymentsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_PAYMENTS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchPayments",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.PAYMENTS_API))),(0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchPayments",status:L.wn.COMPLETED}})),{type:L.TC.SET_PAYMENTS_CLN,payload:te||[]})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchPayments",L.MZ.NO_SPINNER,"Fetching Payments Failed.",te),(0,v.of)({type:L.aU.VOID}))))),this.fetchOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_OFFER_INVOICE_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.FETCH_INVOICE})),this.store.dispatch((0,B.no)({payload:{action:"FetchOfferInvoice",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.OFFERS_API+"/fetchOfferInvoice",te.payload).pipe((0,w.T)(ie=>{this.logger.info(ie),setTimeout(()=>{this.store.dispatch((0,B.no)({payload:{action:"FetchOfferInvoice",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.FETCH_INVOICE})),this.store.dispatch((0,B.GZ)({payload:ie||{}}))},500)}),(0,T.W)(ie=>(this.handleErrorWithoutAlert("FetchOfferInvoice",L.MZ.FETCH_INVOICE,"Offer Invoice Fetch Failed",ie),(0,v.of)({type:L.aU.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SET_OFFER_INVOICE_CLN),(0,w.T)(te=>(this.logger.info(te.payload),te.payload))),{dispatch:!1}),this.sendPaymentCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SEND_PAYMENT_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:te.payload.uiMessage})),this.store.dispatch((0,B.no)({payload:{action:"SendPayment",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.PAYMENTS_API,te.payload).pipe((0,w.T)(ie=>{this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SendPayment",status:L.wn.COMPLETED}}));let P="Payment Sent Successfully!";ie.saveToDBError&&(P="Payment Sent Successfully but Offer Saving to Database Failed."),ie.saveToDBResponse&&"NA"!==ie.saveToDBResponse&&(this.store.dispatch((0,B.Db)({payload:ie.saveToDBResponse})),P="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,B.$Q)()),this.store.dispatch((0,B.g6)()),this.store.dispatch((0,B.CK)()),this.store.dispatch((0,C.y0)({payload:te.payload.uiMessage})),this.store.dispatch((0,C.UI)({payload:P})),this.store.dispatch((0,B.N4)({payload:ie.paymentResponse}))},1e3)}),(0,T.W)(ie=>(this.logger.error("Error: "+JSON.stringify(ie)),te.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",te.payload.uiMessage,"Send Payment Failed.",ie):this.handleErrorWithAlert("SendPayment",te.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+L.rl.PAYMENTS_API,ie),(0,v.of)({type:L.aU.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.GET_QUERY_ROUTES_CLN),(0,e.Z)(te=>(this.store.dispatch((0,B.no)({payload:{action:"GetQueryRoutes",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.NETWORK_API+"/getRoute",{id:te.payload.destPubkey,amount_msat:te.payload.amount,riskfactor:0}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"GetQueryRoutes",status:L.wn.COMPLETED}})),{type:L.TC.SET_QUERY_ROUTES_CLN,payload:ie})),(0,T.W)(ie=>(this.store.dispatch((0,B.Hm)({payload:{route:[]}})),this.handleErrorWithAlert("GetQueryRoutes",L.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+L.rl.NETWORK_API+"/getRoute",ie),(0,v.of)({type:L.aU.VOID})))))))),this.setQueryRoutesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SET_QUERY_ROUTES_CLN),(0,w.T)(te=>te.payload)),{dispatch:!1}),this.peerLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.PEER_LOOKUP_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.SEARCHING_NODE})),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.NETWORK_API+"/listNodes",{id:te.payload}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.SEARCHING_NODE})),{type:L.TC.SET_LOOKUP_CLN,payload:ie})),(0,T.W)(ie=>(this.handleErrorWithAlert("Lookup",L.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+L.rl.NETWORK_API+"/listNodes/"+te.payload,ie),(0,v.of)({type:L.aU.VOID})))))))),this.channelLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.CHANNEL_LOOKUP_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:te.payload.uiMessage})),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.NETWORK_API+"/listChannels",{short_channel_id:te.payload.shortChannelID}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:te.payload.uiMessage})),{type:L.TC.SET_LOOKUP_CLN,payload:ie})),(0,T.W)(ie=>(te.payload.showError?this.handleErrorWithAlert("Lookup",te.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+L.rl.NETWORK_API+"/listChannels/"+te.payload.shortChannelID,ie):this.store.dispatch((0,C.y0)({payload:te.payload.uiMessage})),this.store.dispatch((0,B.$J)({payload:[]})),(0,v.of)({type:L.aU.VOID})))))))),this.invoiceLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.INVOICE_LOOKUP_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.INVOICES_API+"/lookup",{label:te.payload}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"Lookup",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.SEARCHING_INVOICE})),ie.invoices&&ie.invoices.length&&ie.invoices.length>0&&this.store.dispatch((0,B.Dq)({payload:ie.invoices[0]})),{type:L.TC.SET_LOOKUP_CLN,payload:ie.invoices&&ie.invoices.length&&ie.invoices.length>0?ie.invoices[0]:ie})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("Lookup",L.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",ie),this.store.dispatch((0,C.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:L.aU.VOID})))))))),this.setLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SET_LOOKUP_CLN),(0,w.T)(te=>(this.logger.info(te.payload),te.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.GET_FORWARDING_HISTORY_CLN),(0,e.Z)(te=>{const ie=te.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,B.no)({payload:{action:"FetchForwardingHistory"+ie,status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.CHANNELS_API+"/listForwards",te.payload).pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,B.no)({payload:{action:"FetchForwardingHistory"+ie,status:L.wn.COMPLETED}})),te.payload.status===L.xk.FAILED?this.store.dispatch((0,B.kv)({payload:{status:L.xk.FAILED,totalForwards:P.length,listForwards:P}})):te.payload.status===L.xk.LOCAL_FAILED?this.store.dispatch((0,B.kv)({payload:{status:L.xk.LOCAL_FAILED,totalForwards:P.length,listForwards:P}})):te.payload.status===L.xk.SETTLED&&this.store.dispatch((0,B.kv)({payload:{status:L.xk.SETTLED,totalForwards:P.length,listForwards:P}})),{type:L.aU.VOID})),(0,T.W)(P=>(this.handleErrorWithAlert("FetchForwardingHistory"+ie,L.MZ.NO_SPINNER,"Get "+te.payload.status+" Forwarding History Failed",this.CHILD_API_URL+L.rl.CHANNELS_API+"/listForwards",P),(0,v.of)({type:L.aU.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.DELETE_EXPIRED_INVOICE_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.DELETE_INVOICE})),this.httpClient.post(this.CHILD_API_URL+L.rl.INVOICES_API+"/delete",{subsystem:"expiredinvoices",age:L.NG}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,C.y0)({payload:L.MZ.DELETE_INVOICE})),this.store.dispatch((0,C.UI)({payload:ie.status})),{type:L.TC.FETCH_INVOICES_CLN})),(0,T.W)(ie=>(this.handleErrorWithAlert("DeleteInvoices",L.MZ.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+L.rl.INVOICES_API,ie),(0,v.of)({type:L.aU.VOID})))))))),this.saveNewInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SAVE_NEW_INVOICE_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.ADD_INVOICE})),this.store.dispatch((0,B.no)({payload:{action:"SaveNewInvoice",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.INVOICES_API,te.payload).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SaveNewInvoice",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.ADD_INVOICE})),ie.amount_msat=te.payload.amount_msat,ie.label=te.payload.label,ie.expires_at=Math.round((new Date).getTime()/1e3+te.payload.expiry),ie.description=te.payload.description,ie.status="unpaid",setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{invoice:ie,newlyAdded:!0,component:u.y}}}))},200),{type:L.TC.ADD_INVOICE_CLN,payload:ie})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("SaveNewInvoice",L.MZ.ADD_INVOICE,"Add Invoice Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.saveNewOfferCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SAVE_NEW_OFFER_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.CREATE_OFFER})),this.store.dispatch((0,B.no)({payload:{action:"SaveNewOffer",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.OFFERS_API,te.payload).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SaveNewOffer",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{offer:ie,newlyAdded:!0,component:Pe.f}}}))},100),{type:L.TC.ADD_OFFER_CLN,payload:ie})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("SaveNewOffer",L.MZ.CREATE_OFFER,"Create Offer Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.invoicesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_INVOICES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchInvoices",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.INVOICES_API+"/lookup",null))),(0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchInvoices",status:L.wn.COMPLETED}})),{type:L.TC.SET_INVOICES_CLN,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchInvoices",L.MZ.NO_SPINNER,"Fetching Invoices Failed.",te),(0,v.of)({type:L.aU.VOID}))))),this.offersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_OFFERS_CLN),(0,e.Z)(te=>(this.store.dispatch((0,B.no)({payload:{action:"FetchOffers",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.OFFERS_API).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"FetchOffers",status:L.wn.COMPLETED}})),{type:L.TC.SET_OFFERS_CLN,payload:ie.offers?ie.offers:[]})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("FetchOffers",L.MZ.NO_SPINNER,"Fetching Offers Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.offersDisableCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.DISABLE_OFFER_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.DISABLE_OFFER})),this.store.dispatch((0,B.no)({payload:{action:"DisableOffer",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.OFFERS_API+"/disableOffer",{offer_id:te.payload.offer_id}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"DisableOffer",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.DISABLE_OFFER})),this.store.dispatch((0,C.UI)({payload:"Offer Disabled Successfully!"})),{type:L.TC.UPDATE_OFFER_CLN,payload:{offer:ie}})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("DisableOffer",L.MZ.DISABLE_OFFER,"Disabling Offer Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.offerBookmarksFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_OFFER_BOOKMARKS_CLN),(0,e.Z)(te=>(this.store.dispatch((0,B.no)({payload:{action:"FetchOfferBookmarks",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.OFFERS_API+"/offerbookmarks").pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"FetchOfferBookmarks",status:L.wn.COMPLETED}})),{type:L.TC.SET_OFFER_BOOKMARKS_CLN,payload:ie||[]})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",L.MZ.NO_SPINNER,"Fetching Offer Bookmarks Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.peidOffersDeleteCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.DELETE_OFFER_BOOKMARK_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,B.no)({payload:{action:"DeleteOfferBookmark",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.OFFERS_API+"/offerbookmark/delete",{offer_str:te.payload.bolt12}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"DeleteOfferBookmark",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,C.UI)({payload:"Offer Bookmark Deleted Successfully!"})),{type:L.TC.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:te.payload.bolt12}})),(0,T.W)(ie=>(this.handleErrorWithAlert("DeleteOfferBookmark",L.MZ.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+L.rl.OFFERS_API+"/offerbookmark/"+te.payload.bolt12,ie),(0,v.of)({type:L.aU.VOID})))))))),this.SetChannelTransactionCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SET_CHANNEL_TRANSACTION_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.SEND_FUNDS})),this.store.dispatch((0,B.no)({payload:{action:"SetChannelTransaction",status:L.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+L.rl.ON_CHAIN_API,te.payload).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SetChannelTransaction",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.SEND_FUNDS})),this.store.dispatch((0,B.g6)()),{type:L.TC.SET_CHANNEL_TRANSACTION_RES_CLN,payload:ie})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("SetChannelTransaction",L.MZ.SEND_FUNDS,"Sending Fund Failed.",ie),(0,v.of)({type:L.aU.VOID})))))))),this.utxoBalancesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_UTXO_BALANCES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchUTXOBalances",status:L.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+L.rl.ON_CHAIN_API+"/utxos"))),(0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchUTXOBalances",status:L.wn.COMPLETED}})),{type:L.TC.SET_UTXO_BALANCES_CLN,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchUTXOBalances",L.MZ.NO_SPINNER,"Fetching UTXO and Balances Failed.",te),(0,v.of)({type:L.aU.VOID}))))),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.FETCH_PAGE_SETTINGS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,B.no)({payload:{action:"FetchPageSettings",status:L.wn.INITIATED}})),this.httpClient.get(L.rl.PAGE_SETTINGS_API).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.no)({payload:{action:"FetchPageSettings",status:L.wn.COMPLETED}})),{type:L.TC.SET_PAGE_SETTINGS_CLN,payload:te||[]})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchPageSettings",L.MZ.NO_SPINNER,"Fetching Page Settings Failed.",te),(0,v.of)({type:L.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(L.TC.SAVE_PAGE_SETTINGS_CLN),(0,e.Z)(te=>(this.store.dispatch((0,C.mt)({payload:L.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,B.no)({payload:{action:"SavePageSettings",status:L.wn.INITIATED}})),this.httpClient.post(L.rl.PAGE_SETTINGS_API,te.payload).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.no)({payload:{action:"SavePageSettings",status:L.wn.COMPLETED}})),this.store.dispatch((0,C.y0)({payload:L.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,C.UI)({payload:"Page Layout Updated Successfully!"})),{type:L.TC.SET_PAGE_SETTINGS_CLN,payload:ie||[]})),(0,T.W)(ie=>(this.handleErrorWithAlert("SavePageSettings",L.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",L.rl.PAGE_SETTINGS_API,ie),(0,v.of)({type:L.aU.VOID})))))))),this.store.select(A.ru).pipe((0,O.Q)(this.unSubs[0])).subscribe(te=>{te.FetchInfo.status!==L.wn.COMPLETED&&te.FetchInfo.status!==L.wn.ERROR||te.FetchChannels.status!==L.wn.COMPLETED&&te.FetchChannels.status!==L.wn.ERROR||te.FetchUTXOBalances.status!==L.wn.COMPLETED&&te.FetchUTXOBalances.status!==L.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,C.y0)({payload:L.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,O.Q)(this.unSubs[1])).subscribe(te=>{this.logger.info("Received new message from the service: "+JSON.stringify(te)),te&&te.data&&te.data[L.Jr.INVOICE_PAYMENT]&&te.data[L.Jr.INVOICE_PAYMENT].label&&this.store.dispatch((0,B.Dq)({payload:te.data[L.Jr.INVOICE_PAYMENT]}))})}initializeRemainingData(J,De){this.sessionService.setItem("clnUnlocked","true");const Re={identity_pubkey:J.id,alias:J.alias,testnet:"testnet"===J.network.toLowerCase(),chains:J.chains,uris:J.uris,version:J.version,api_version:J.api_version,numberOfPendingChannels:J.num_pending_channels};this.store.dispatch((0,C.mt)({payload:L.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,C.Fl)({payload:Re}));let Xe=this.location.path();Xe.includes("/lnd/")?Xe=Xe?.replace("/lnd/","/cln/"):Xe.includes("/ecl/")&&(Xe=Xe?.replace("/ecl/","/cln/")),(Xe.includes("/login")||Xe.includes("/error")||""===Xe||"HOME"===De||Xe.includes("?access-key="))&&(Xe="/cln/home"),this.router.navigate([Xe]),this.store.dispatch((0,B.Do)()),this.store.dispatch((0,B.$Q)()),this.store.dispatch((0,B.g6)()),this.store.dispatch((0,B.kX)({payload:"perkw"})),this.store.dispatch((0,B.kX)({payload:"perkb"})),this.store.dispatch((0,B.Gy)()),this.store.dispatch((0,B.CK)())}handleErrorWithoutAlert(J,De,Re,Xe){if(this.logger.error("ERROR IN: "+J+"\n"+JSON.stringify(Xe)),401===Xe.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.Jh)()),this.store.dispatch((0,C.ri)({payload:"Authentication Failed: "+JSON.stringify(Xe.error)}));else{this.store.dispatch((0,C.y0)({payload:De}));const _e=this.commonService.extractErrorMessage(Xe,Re);this.store.dispatch((0,B.no)({payload:{action:J,status:L.wn.ERROR,statusCode:Xe.status.toString(),message:_e}}))}}handleErrorWithAlert(J,De,Re,Xe,_e){if(this.logger.error(_e),401===_e.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.Jh)()),this.store.dispatch((0,C.ri)({payload:"Authentication Failed: "+JSON.stringify(_e.error)})),this.store.dispatch((0,C.UI)({payload:"Authentication Failed: "+_e.error}));else{this.store.dispatch((0,C.y0)({payload:De}));const he=this.commonService.extractErrorMessage(_e);this.store.dispatch((0,C.xO)({payload:{data:{type:"ERROR",alertTitle:Re,message:{code:_e.status,message:he,URL:Xe},component:f.f}}})),this.store.dispatch((0,B.no)({payload:{action:J,status:L.wn.ERROR,statusCode:_e.status.toString(),message:he,URL:Xe}}))}}ngOnDestroy(){this.unSubs.forEach(J=>{J.next(null),J.complete()})}static#e=ce=()=>(this.\u0275fac=function(De){return new(De||be)(le.KVO(i.En),le.KVO(Ce.Qq),le.KVO(Ae.il),le.KVO(j.Q),le.KVO(W.h),le.KVO(G.gP),le.KVO(re.Ix),le.KVO(xe.I),le.KVO(Ee.aZ))},this.\u0275prov=le.jDH({token:be,factory:be.\u0275fac}))}return ce(),be})()},9584(Zt,pe,l){"use strict";l.d(pe,{Al:()=>A,BM:()=>Pe,Dv:()=>Ce,GX:()=>j,Ie:()=>le,KT:()=>f,O5:()=>re,Pj:()=>B,RB:()=>C,RQ:()=>G,aJ:()=>Ae,av:()=>T,ip:()=>xe,kQ:()=>W,kr:()=>L,mH:()=>w,os:()=>u,ru:()=>O});var d=l(9640);const v=(0,d.UX)("cln"),T=(0,d.Mz)(v,V=>({pageSettings:V.pageSettings,apiCallStatus:V.apisCallStatus.FetchPageSettings})),w=(0,d.Mz)(v,V=>V.information),O=((0,d.Mz)(v,V=>V.apisCallStatus.FetchInfo),(0,d.Mz)(v,V=>V.apisCallStatus)),f=(0,d.Mz)(v,V=>({payments:V.payments,apiCallStatus:V.apisCallStatus.FetchPayments})),u=(0,d.Mz)(v,V=>({peers:V.peers,apiCallStatus:V.apisCallStatus.FetchPeers})),L=(0,d.Mz)(v,V=>({feeRatesPerKB:V.feeRatesPerKB,apiCallStatus:V.apisCallStatus.FetchFeeRatesperkb})),C=(0,d.Mz)(v,V=>({feeRatesPerKW:V.feeRatesPerKW,apiCallStatus:V.apisCallStatus.FetchFeeRatesperkw})),B=(0,d.Mz)(v,V=>({listInvoices:V.invoices,apiCallStatus:V.apisCallStatus.FetchInvoices})),A=(0,d.Mz)(v,V=>({utxos:V.utxos,balance:V.balance,localRemoteBalance:V.localRemoteBalance,apiCallStatus:V.apisCallStatus.FetchUTXOBalances})),Pe=(0,d.Mz)(v,V=>({activeChannels:V.activeChannels,pendingChannels:V.pendingChannels,inactiveChannels:V.inactiveChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),le=(0,d.Mz)(v,V=>({forwardingHistory:V.forwardingHistory,apiCallStatus:V.apisCallStatus.FetchForwardingHistoryS})),Ce=(0,d.Mz)(v,V=>({failedForwardingHistory:V.failedForwardingHistory,apiCallStatus:V.apisCallStatus.FetchForwardingHistoryF})),Ae=(0,d.Mz)(v,V=>({localFailedForwardingHistory:V.localFailedForwardingHistory,apiCallStatus:V.apisCallStatus.FetchForwardingHistoryL})),j=(0,d.Mz)(v,V=>({information:V.information,balance:V.balance,numPeers:V.peers.length})),W=(0,d.Mz)(v,V=>({information:V.information,balance:V.balance})),G=(0,d.Mz)(v,V=>({information:V.information,fees:V.fees,apisCallStatus:[V.apisCallStatus.FetchInfo,V.apisCallStatus.FetchForwardingHistoryS]})),re=(0,d.Mz)(v,V=>({offers:V.offers,apiCallStatus:V.apisCallStatus.FetchOffers})),xe=(0,d.Mz)(v,V=>({offersBookmarks:V.offersBookmarks,apiCallStatus:V.apisCallStatus.FetchOfferBookmarks}))},8321(Zt,pe,l){"use strict";l.d(pe,{y:()=>fe});var i=l(1585),d=l(5383),v=l(1413),T=l(6977),w=l(4416),e=l(9584),O=l(2615),f=l(3664),u=l(8570),L=l(2571),C=l(5416),B=l(9640),A=l(2200),Pe=l(60),le=l(8834),Ce=l(5596),Ae=l(1997),j=l(9183),W=l(2920),G=l(6038),re=l(455),xe=l(8288),Ee=l(9157),V=l(9587);const ce=Qe=>({"display-none":Qe}),be=Qe=>({"xs-scroll-y":Qe}),ne=(Qe,gt)=>({"mt-2":Qe,"mt-1":gt}),J=Qe=>({"mr-0":Qe}),De=()=>[];function Re(Qe,gt){if(1&Qe&&f.nrm(0,"qr-code",33),2&Qe){const Gt=f.XpG();f.Y8G("value",(null==Gt.invoice?null:Gt.invoice.bolt11)||(null==Gt.invoice?null:Gt.invoice.bolt12))("size",Gt.qrWidth)}}function Xe(Qe,gt){1&Qe&&(f.j41(0,"span",34),f.EFF(1,"N/A"),f.k0s())}function _e(Qe,gt){if(1&Qe&&f.nrm(0,"span",35),2&Qe){const Gt=f.XpG();f.Y8G("ngClass",f.eq3(1,J,Gt.screenSize===Gt.screenSizeEnum.XS))}}function he(Qe,gt){if(1&Qe&&f.nrm(0,"span",36),2&Qe){const Gt=f.XpG();f.Y8G("ngClass",f.eq3(1,J,Gt.screenSize===Gt.screenSizeEnum.XS))}}function Dt(Qe,gt){if(1&Qe&&f.nrm(0,"span",37),2&Qe){const Gt=f.XpG();f.Y8G("ngClass",f.eq3(1,J,Gt.screenSize===Gt.screenSizeEnum.XS))}}function lt(Qe,gt){if(1&Qe&&f.nrm(0,"qr-code",33),2&Qe){const Gt=f.XpG();f.Y8G("value",(null==Gt.invoice?null:Gt.invoice.bolt11)||(null==Gt.invoice?null:Gt.invoice.bolt12))("size",Gt.qrWidth)}}function Le(Qe,gt){1&Qe&&(f.j41(0,"span",38),f.EFF(1,"QR Code Not Applicable"),f.k0s())}function te(Qe,gt){1&Qe&&f.nrm(0,"mat-divider",39)}function ie(Qe,gt){if(1&Qe&&(f.j41(0,"div",20)(1,"div",40),f.nrm(2,"fa-icon",41),f.j41(3,"span"),f.EFF(4),f.k0s()()()),2&Qe){const Gt=f.XpG();f.R7$(2),f.Y8G("icon",Gt.faExclamationTriangle),f.R7$(2),f.JRh(null==Gt.invoice?null:Gt.invoice.warning_capacity)}}function P(Qe,gt){1&Qe&&(f.qex(0),f.EFF(1," (zero amount) "),f.bVm())}function F(Qe,gt){1&Qe&&f.nrm(0,"span",47)}function ve(Qe,gt){if(1&Qe&&(f.j41(0,"div",43)(1,"div",44)(2,"span",45),f.EFF(3),f.nI1(4,"number"),f.k0s(),f.DNE(5,F,1,0,"span",46),f.k0s()()),2&Qe){const Gt=f.XpG(2);f.R7$(3),f.SpI("",f.bMT(4,2,(null==Gt.invoice?null:Gt.invoice.amount_received_msat)/1e3)," Sats"),f.R7$(2),f.Y8G("ngForOf",f.lJ4(4,De).constructor(35))}}function H(Qe,gt){if(1&Qe&&(f.j41(0,"div"),f.EFF(1),f.nI1(2,"number"),f.k0s()),2&Qe){const Gt=f.XpG(2);f.R7$(),f.SpI("",f.bMT(2,1,(null==Gt.invoice?null:Gt.invoice.amount_received_msat)/1e3)," Sats")}}function $(Qe,gt){if(1&Qe&&(f.qex(0),f.DNE(1,ve,6,5,"div",42)(2,H,3,3,"div",24),f.bVm()),2&Qe){const Gt=f.XpG();f.R7$(),f.Y8G("ngIf",Gt.flgInvoicePaid),f.R7$(),f.Y8G("ngIf",!Gt.flgInvoicePaid)}}function Ke(Qe,gt){1&Qe&&(f.j41(0,"span"),f.EFF(1,"-"),f.k0s())}function Vt(Qe,gt){1&Qe&&f.nrm(0,"mat-spinner",49),2&Qe&&f.Y8G("diameter",20)}function St(Qe,gt){if(1&Qe&&(f.qex(0),f.DNE(1,Ke,2,0,"span",24)(2,Vt,1,1,"mat-spinner",48),f.bVm()),2&Qe){const Gt=f.XpG();f.R7$(),f.Y8G("ngIf","unpaid"!==(null==Gt.invoice?null:Gt.invoice.status)),f.R7$(),f.Y8G("ngIf","unpaid"===(null==Gt.invoice?null:Gt.invoice.status))}}function ot(Qe,gt){if(1&Qe&&(f.j41(0,"div"),f.nrm(1,"mat-divider",26),f.j41(2,"div",20)(3,"div",27)(4,"h4",22),f.EFF(5,"Payment Hash"),f.k0s(),f.j41(6,"span",25),f.EFF(7),f.k0s()()(),f.nrm(8,"mat-divider",26),f.j41(9,"div",20)(10,"div",27)(11,"h4",22),f.EFF(12,"Label"),f.k0s(),f.j41(13,"span",25),f.EFF(14),f.k0s()()(),f.nrm(15,"mat-divider",26),f.k0s()),2&Qe){const Gt=f.XpG();f.R7$(7),f.JRh(null==Gt.invoice?null:Gt.invoice.payment_hash),f.R7$(7),f.JRh(null==Gt.invoice?null:Gt.invoice.label)}}function nt(Qe,gt){1&Qe&&(f.j41(0,"p"),f.EFF(1,"Show Advanced"),f.k0s())}function ht(Qe,gt){1&Qe&&(f.j41(0,"p"),f.EFF(1,"Hide Advanced"),f.k0s())}function oe(Qe,gt){if(1&Qe){const Gt=f.RV6();f.j41(0,"button",50),f.bIt("copied",function(cn){O.eBV(Gt);const Ft=f.XpG();return O.Njj(Ft.onCopyPayment(cn))}),f.EFF(1,"Copy Invoice"),f.k0s()}if(2&Qe){const Gt=f.XpG();f.Y8G("payload",(null==Gt.invoice?null:Gt.invoice.bolt11)||(null==Gt.invoice?null:Gt.invoice.bolt12))}}function Ye(Qe,gt){if(1&Qe){const Gt=f.RV6();f.j41(0,"button",51),f.bIt("click",function(){O.eBV(Gt);const cn=f.XpG();return O.Njj(cn.onClose())}),f.EFF(1,"OK"),f.k0s()}}let fe=(()=>{var Qe;class gt{constructor(rt,cn,Ft,Sn,Qn,h){this.dialogRef=rt,this.data=cn,this.logger=Ft,this.commonService=Sn,this.snackBar=Qn,this.store=h,this.faReceipt=d.Mf0,this.faExclamationTriangle=d.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.invoiceStatus="",this.qrWidth=240,this.screenSize="",this.screenSizeEnum=w.f7,this.flgInvoicePaid=!1,this.unSubs=[new v.B,new v.B,new v.B,new v.B,new v.B]}ngOnInit(){this.invoice=this.data.invoice,this.invoiceStatus=this.invoice.status,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===w.f7.XS&&(this.qrWidth=220),this.store.select(e.Pj).pipe((0,T.Q)(this.unSubs[1])).subscribe(rt=>{const Ft=(rt.listInvoices.invoices||[])?.find(Sn=>Sn.payment_hash===this.invoice.payment_hash)||null;Ft&&(this.invoice=Ft),this.invoiceStatus!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(this.invoice),this.logger.info(this.invoiceStatus),this.logger.info(Ft),this.logger.info(rt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(rt){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+rt)}ngOnDestroy(){this.unSubs.forEach(rt=>{rt.next(null),rt.complete()})}static#e=Qe=()=>(this.\u0275fac=function(cn){return new(cn||gt)(f.rXU(i.CP),f.rXU(i.Vh),f.rXU(u.gP),f.rXU(L.h),f.rXU(C.UG),f.rXU(B.il))},this.\u0275cmp=f.VBU({type:gt,selectors:[["rtl-cln-invoice-information"]],standalone:!1,decls:72,vars:49,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(cn,Ft){if(1&cn){const Sn=f.RV6();f.j41(0,"div",1)(1,"div",2),f.DNE(2,Re,1,2,"qr-code",3)(3,Xe,2,0,"span",4),f.k0s(),f.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),f.nrm(7,"fa-icon",8),f.j41(8,"span",9),f.EFF(9),f.DNE(10,_e,1,3,"span",10)(11,he,1,3,"span",11)(12,Dt,1,3,"span",12),f.k0s()(),f.j41(13,"button",13),f.bIt("click",function(){return O.eBV(Sn),O.Njj(Ft.onClose())}),f.EFF(14,"X"),f.k0s()(),f.j41(15,"mat-card-content",14)(16,"div",15)(17,"div",16),f.DNE(18,lt,1,2,"qr-code",3)(19,Le,2,0,"span",17),f.k0s(),f.DNE(20,te,1,0,"mat-divider",18)(21,ie,5,2,"div",19),f.j41(22,"div",20)(23,"div",21)(24,"h4",22),f.EFF(25),f.k0s(),f.j41(26,"span",23),f.EFF(27),f.nI1(28,"number"),f.DNE(29,P,2,0,"ng-container",24),f.k0s()(),f.j41(30,"div",21)(31,"h4",22),f.EFF(32,"Amount Received"),f.k0s(),f.j41(33,"span",25),f.DNE(34,$,3,2,"ng-container",24)(35,St,3,2,"ng-container",24),f.k0s()()(),f.nrm(36,"mat-divider",26),f.j41(37,"div",20)(38,"div",21)(39,"h4",22),f.EFF(40,"Date Expiry"),f.k0s(),f.j41(41,"span",23),f.EFF(42),f.nI1(43,"date"),f.k0s()(),f.j41(44,"div",21)(45,"h4",22),f.EFF(46,"Date Settled"),f.k0s(),f.j41(47,"span",23),f.EFF(48),f.nI1(49,"date"),f.k0s()()(),f.nrm(50,"mat-divider",26),f.j41(51,"div",20)(52,"div",27)(53,"h4",22),f.EFF(54,"Description"),f.k0s(),f.j41(55,"span",23),f.EFF(56),f.k0s()()(),f.nrm(57,"mat-divider",26),f.j41(58,"div",20)(59,"div",27)(60,"h4",22),f.EFF(61),f.k0s(),f.j41(62,"span",25),f.EFF(63),f.k0s()()(),f.DNE(64,ot,16,2,"div",24),f.j41(65,"div",28)(66,"button",29),f.bIt("click",function(){return O.eBV(Sn),O.Njj(Ft.onShowAdvanced())}),f.DNE(67,nt,2,0,"p",30)(68,ht,2,0,"ng-template",null,0,f.C5r),f.k0s(),f.DNE(70,oe,2,1,"button",31)(71,Ye,2,0,"button",32),f.k0s()()()()()}if(2&cn){const Sn=f.sdS(69);f.R7$(),f.Y8G("fxLayoutAlign",null!=Ft.invoice&&Ft.invoice.bolt11&&""!==(null==Ft.invoice?null:Ft.invoice.bolt11)||null!=Ft.invoice&&Ft.invoice.bolt12&&""!==(null==Ft.invoice?null:Ft.invoice.bolt12)?"center start":"center center")("ngClass",f.eq3(40,ce,Ft.screenSize===Ft.screenSizeEnum.XS||Ft.screenSize===Ft.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==Ft.invoice?null:Ft.invoice.bolt11)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt11)||(null==Ft.invoice?null:Ft.invoice.bolt12)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt12)),f.R7$(),f.Y8G("ngIf",!(null!=Ft.invoice&&Ft.invoice.bolt11||null!=Ft.invoice&&Ft.invoice.bolt12)),f.R7$(4),f.Y8G("icon",Ft.faReceipt),f.R7$(2),f.SpI(" ",Ft.screenSize===Ft.screenSizeEnum.XS?Ft.newlyAdded?"Created":"Invoice":Ft.newlyAdded?"Invoice Created":"Invoice Information"," "),f.R7$(),f.Y8G("ngIf","paid"===(null==Ft.invoice?null:Ft.invoice.status)),f.R7$(),f.Y8G("ngIf","unpaid"===(null==Ft.invoice?null:Ft.invoice.status)),f.R7$(),f.Y8G("ngIf","expired"===(null==Ft.invoice?null:Ft.invoice.status)),f.R7$(3),f.Y8G("ngClass",f.eq3(42,be,Ft.screenSize===Ft.screenSizeEnum.XS)),f.R7$(2),f.Y8G("fxLayoutAlign",null!=Ft.invoice&&Ft.invoice.bolt11&&""!==(null==Ft.invoice?null:Ft.invoice.bolt11)||null!=Ft.invoice&&Ft.invoice.bolt12&&""!==(null==Ft.invoice?null:Ft.invoice.bolt12)?"center start":"center center")("ngClass",f.eq3(44,ce,Ft.screenSize!==Ft.screenSizeEnum.XS&&Ft.screenSize!==Ft.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==Ft.invoice?null:Ft.invoice.bolt11)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt11)||(null==Ft.invoice?null:Ft.invoice.bolt12)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt12)),f.R7$(),f.Y8G("ngIf",!(null!=Ft.invoice&&Ft.invoice.bolt11||null!=Ft.invoice&&Ft.invoice.bolt12)),f.R7$(),f.Y8G("ngIf",Ft.screenSize===Ft.screenSizeEnum.XS||Ft.screenSize===Ft.screenSizeEnum.SM),f.R7$(),f.Y8G("ngIf",null==Ft.invoice?null:Ft.invoice.warning_capacity),f.R7$(4),f.JRh(Ft.screenSize===Ft.screenSizeEnum.XS?"Amount":"Amount Requested"),f.R7$(2),f.SpI(" ",f.bMT(28,32,(null==Ft.invoice?null:Ft.invoice.amount_msat)/1e3||0)," Sats"),f.R7$(2),f.Y8G("ngIf",!(null!=Ft.invoice&&Ft.invoice.amount_msat)||"0"===(null==Ft.invoice?null:Ft.invoice.amount_msat)||"any"===(null==Ft.invoice?null:Ft.invoice.amount_msat)),f.R7$(5),f.Y8G("ngIf","paid"===(null==Ft.invoice?null:Ft.invoice.status)),f.R7$(),f.Y8G("ngIf","paid"!==(null==Ft.invoice?null:Ft.invoice.status)),f.R7$(7),f.JRh(f.i5U(43,34,1e3*(null==Ft.invoice?null:Ft.invoice.expires_at),"dd/MMM/y HH:mm")),f.R7$(6),f.JRh(f.i5U(49,37,1e3*(null==Ft.invoice?null:Ft.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),f.R7$(8),f.JRh((null==Ft.invoice?null:Ft.invoice.description)||"-"),f.R7$(5),f.SpI("",null!=Ft.invoice&&Ft.invoice.bolt12?"Bolt12":null!=Ft.invoice&&Ft.invoice.bolt11&&!Ft.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),f.R7$(2),f.JRh((null==Ft.invoice?null:Ft.invoice.bolt11)||(null==Ft.invoice?null:Ft.invoice.bolt12)),f.R7$(),f.Y8G("ngIf",Ft.showAdvanced),f.R7$(),f.Y8G("ngClass",f.l_i(46,ne,!Ft.showAdvanced,Ft.showAdvanced)),f.R7$(2),f.Y8G("ngIf",!Ft.showAdvanced)("ngIfElse",Sn),f.R7$(3),f.Y8G("ngIf",(null==Ft.invoice?null:Ft.invoice.bolt11)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt11)||(null==Ft.invoice?null:Ft.invoice.bolt12)&&""!==(null==Ft.invoice?null:Ft.invoice.bolt12)),f.R7$(),f.Y8G("ngIf",!(null!=Ft.invoice&&Ft.invoice.bolt11||null!=Ft.invoice&&Ft.invoice.bolt12))}},dependencies:[A.YU,A.Sq,A.bT,Pe.aY,le.$z,Ce.m2,Ce.MM,Ae.q,j.LG,W.DJ,W.sA,W.UI,G.PW,re.oV,xe.Um,Ee.U,V.N,A.QX,A.vh],encapsulation:2}))}return Qe(),gt})()},2142(Zt,pe,l){"use strict";l.d(pe,{f:()=>ve});var i=l(1585),d=l(5383),v=l(1413),T=l(6977),w=l(4416),e=l(2615),O=l(3664),f=l(8570),u=l(2571),L=l(5416),C=l(1534),B=l(2200),A=l(60),Pe=l(8834),le=l(5596),Ce=l(1997),Ae=l(2920),j=l(6038),W=l(8288),G=l(9157),re=l(9587);const xe=H=>({"display-none":H}),Ee=H=>({"xs-scroll-y":H}),V=(H,$)=>({"mt-2":H,"mt-1":$});function ce(H,$){if(1&H&&O.nrm(0,"qr-code",28),2&H){const Ke=O.XpG();O.Y8G("value",null==Ke.offer?null:Ke.offer.bolt12)("size",Ke.qrWidth)}}function be(H,$){1&H&&(O.j41(0,"span",29),O.EFF(1,"N/A"),O.k0s())}function ne(H,$){if(1&H&&O.nrm(0,"qr-code",28),2&H){const Ke=O.XpG();O.Y8G("value",null==Ke.offer?null:Ke.offer.bolt12)("size",Ke.qrWidth)}}function J(H,$){1&H&&(O.j41(0,"span",30),O.EFF(1,"QR Code Not Applicable"),O.k0s())}function De(H,$){1&H&&O.nrm(0,"mat-divider",31),2&H&&O.Y8G("inset",!0)}function Re(H,$){1&H&&O.nrm(0,"mat-divider",20)}function Xe(H,$){if(1&H&&(O.j41(0,"div",16)(1,"div",17)(2,"h4",18),O.EFF(3,"Used"),O.k0s(),O.j41(4,"span",19),O.EFF(5),O.k0s()(),O.j41(6,"div",17)(7,"h4",18),O.EFF(8,"Single Use"),O.k0s(),O.j41(9,"span",19),O.EFF(10),O.k0s()()()),2&H){const Ke=O.XpG(2);O.R7$(5),O.SpI(" ",null!=Ke.offer&&Ke.offer.used?null!=Ke.offer&&Ke.offer.used?"Yes":"No":"N/K"," "),O.R7$(5),O.SpI(" ",null!=Ke.offer&&Ke.offer.single_use?null!=Ke.offer&&Ke.offer.single_use?"Yes":"No":"N/K"," ")}}function _e(H,$){1&H&&O.nrm(0,"mat-divider",20)}function he(H,$){if(1&H&&(O.j41(0,"div",16)(1,"div",21)(2,"h4",18),O.EFF(3,"Issuer"),O.k0s(),O.j41(4,"span",34),O.EFF(5),O.k0s()()()),2&H){const Ke=O.XpG(2);O.R7$(5),O.JRh(null==Ke.offerDecoded?null:Ke.offerDecoded.offer_issuer)}}function Dt(H,$){1&H&&O.nrm(0,"mat-divider",20)}function lt(H,$){if(1&H&&(O.j41(0,"div",16)(1,"div",21)(2,"h4",18),O.EFF(3,"Label"),O.k0s(),O.j41(4,"span",19),O.EFF(5),O.k0s()()()),2&H){const Ke=O.XpG(2);O.R7$(5),O.JRh(Ke.offer.label)}}function Le(H,$){if(1&H&&(O.j41(0,"div"),O.DNE(1,Re,1,0,"mat-divider",32)(2,Xe,11,2,"div",33)(3,_e,1,0,"mat-divider",32)(4,he,6,1,"div",33)(5,Dt,1,0,"mat-divider",32)(6,lt,6,1,"div",33),O.nrm(7,"mat-divider",20),O.j41(8,"div",16)(9,"div",21)(10,"h4",18),O.EFF(11,"Offer ID"),O.k0s(),O.j41(12,"span",19),O.EFF(13),O.k0s()()(),O.nrm(14,"mat-divider",20),O.j41(15,"div",16)(16,"div",21)(17,"h4",18),O.EFF(18,"Offer Node ID"),O.k0s(),O.j41(19,"span",19),O.EFF(20),O.k0s()()(),O.nrm(21,"mat-divider",20),O.k0s()),2&H){const Ke=O.XpG();O.R7$(),O.Y8G("ngIf",(null==Ke.offer?null:Ke.offer.used)||(null==Ke.offer?null:Ke.offer.single_use)),O.R7$(),O.Y8G("ngIf",(null==Ke.offer?null:Ke.offer.used)||(null==Ke.offer?null:Ke.offer.single_use)),O.R7$(),O.Y8G("ngIf",null==Ke.offerDecoded?null:Ke.offerDecoded.issuer),O.R7$(),O.Y8G("ngIf",null==Ke.offerDecoded?null:Ke.offerDecoded.issuer),O.R7$(),O.Y8G("ngIf",Ke.offer.label),O.R7$(),O.Y8G("ngIf",Ke.offer.label),O.R7$(7),O.JRh(Ke.offerDecoded.offer_id),O.R7$(7),O.JRh(null==Ke.offerDecoded?null:Ke.offerDecoded.offer_node_id)}}function te(H,$){1&H&&(O.j41(0,"p"),O.EFF(1,"Show Advanced"),O.k0s())}function ie(H,$){1&H&&(O.j41(0,"p"),O.EFF(1,"Hide Advanced"),O.k0s())}function P(H,$){if(1&H){const Ke=O.RV6();O.j41(0,"button",35),O.bIt("copied",function(St){e.eBV(Ke);const ot=O.XpG();return e.Njj(ot.onCopyOffer(St))}),O.EFF(1,"Copy Offer"),O.k0s()}if(2&H){const Ke=O.XpG();O.Y8G("payload",null==Ke.offer?null:Ke.offer.bolt12)}}function F(H,$){if(1&H){const Ke=O.RV6();O.j41(0,"button",36),O.bIt("click",function(){e.eBV(Ke);const St=O.XpG();return e.Njj(St.onClose())}),O.EFF(1,"OK"),O.k0s()}}let ve=(()=>{var H;class ${constructor(Vt,St,ot,nt,ht,oe){this.dialogRef=Vt,this.data=St,this.logger=ot,this.commonService=nt,this.snackBar=ht,this.dataService=oe,this.faReceipt=d.Mf0,this.faExclamationTriangle=d.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=w.f7,this.flgOfferPaid=!1,this.unSubs=[new v.B,new v.B,new v.B,new v.B,new v.B]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===w.f7.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,T.Q)(this.unSubs[1])).subscribe(Vt=>{this.offerDecoded=Vt,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(Vt){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+Vt)}ngOnDestroy(){this.unSubs.forEach(Vt=>{Vt.next(null),Vt.complete()})}static#e=H=()=>(this.\u0275fac=function(St){return new(St||$)(O.rXU(i.CP),O.rXU(i.Vh),O.rXU(f.gP),O.rXU(u.h),O.rXU(L.UG),O.rXU(C.u))},this.\u0275cmp=O.VBU({type:$,selectors:[["rtl-cln-offer-information"]],standalone:!1,decls:52,vars:33,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(St,ot){if(1&St){const nt=O.RV6();O.j41(0,"div",1)(1,"div",2),O.DNE(2,ce,1,2,"qr-code",3)(3,be,2,0,"span",4),O.k0s(),O.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),O.nrm(7,"fa-icon",8),O.j41(8,"span",9),O.EFF(9),O.k0s()(),O.j41(10,"button",10),O.bIt("click",function(){return e.eBV(nt),e.Njj(ot.onClose())}),O.EFF(11,"X"),O.k0s()(),O.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),O.DNE(15,ne,1,2,"qr-code",3)(16,J,2,0,"span",14),O.k0s(),O.DNE(17,De,1,1,"mat-divider",15),O.j41(18,"div",16)(19,"div",17)(20,"h4",18),O.EFF(21,"Amount Requested (Sats)"),O.k0s(),O.j41(22,"span",19),O.EFF(23),O.nI1(24,"number"),O.k0s()(),O.j41(25,"div",17)(26,"h4",18),O.EFF(27,"Valid"),O.k0s(),O.j41(28,"span",19),O.EFF(29),O.k0s()()(),O.nrm(30,"mat-divider",20),O.j41(31,"div",16)(32,"div",21)(33,"h4",18),O.EFF(34,"Description"),O.k0s(),O.j41(35,"span",19),O.EFF(36),O.k0s()()(),O.nrm(37,"mat-divider",20),O.j41(38,"div",16)(39,"div",21)(40,"h4",18),O.EFF(41,"Offer"),O.k0s(),O.j41(42,"span",19),O.EFF(43),O.k0s()()(),O.DNE(44,Le,22,8,"div",22),O.j41(45,"div",23)(46,"button",24),O.bIt("click",function(){return e.eBV(nt),e.Njj(ot.onShowAdvanced())}),O.DNE(47,te,2,0,"p",25)(48,ie,2,0,"ng-template",null,0,O.C5r),O.k0s(),O.DNE(50,P,2,1,"button",26)(51,F,2,0,"button",27),O.k0s()()()()()}if(2&St){const nt=O.sdS(49);O.R7$(),O.Y8G("fxLayoutAlign",null!=ot.offer&&ot.offer.bolt12&&""!==(null==ot.offer?null:ot.offer.bolt12)?"center start":"center center")("ngClass",O.eq3(24,xe,ot.screenSize===ot.screenSizeEnum.XS||ot.screenSize===ot.screenSizeEnum.SM)),O.R7$(),O.Y8G("ngIf",(null==ot.offer?null:ot.offer.bolt12)&&""!==(null==ot.offer?null:ot.offer.bolt12)),O.R7$(),O.Y8G("ngIf",!(null!=ot.offer&&ot.offer.bolt12)||""===(null==ot.offer?null:ot.offer.bolt12)),O.R7$(4),O.Y8G("icon",ot.faReceipt),O.R7$(2),O.JRh(ot.screenSize===ot.screenSizeEnum.XS?ot.newlyAdded?"Created":"Offer":ot.newlyAdded?"Offer Created":"Offer Information"),O.R7$(3),O.Y8G("ngClass",O.eq3(26,Ee,ot.screenSize===ot.screenSizeEnum.XS)),O.R7$(2),O.Y8G("fxLayoutAlign",null!=ot.offer&&ot.offer.bolt12&&""!==(null==ot.offer?null:ot.offer.bolt12)?"center start":"center center")("ngClass",O.eq3(28,xe,ot.screenSize!==ot.screenSizeEnum.XS&&ot.screenSize!==ot.screenSizeEnum.SM)),O.R7$(),O.Y8G("ngIf",(null==ot.offer?null:ot.offer.bolt12)&&""!==(null==ot.offer?null:ot.offer.bolt12)),O.R7$(),O.Y8G("ngIf",!(null!=ot.offer&&ot.offer.bolt12)||""===(null==ot.offer?null:ot.offer.bolt12)),O.R7$(),O.Y8G("ngIf",ot.screenSize===ot.screenSizeEnum.XS||ot.screenSize===ot.screenSizeEnum.SM),O.R7$(6),O.SpI(" ",null!=ot.offerDecoded&&ot.offerDecoded.offer_amount_msat&&0!==(null==ot.offerDecoded?null:ot.offerDecoded.offer_amount_msat)?O.bMT(24,22,(null==ot.offerDecoded?null:ot.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),O.R7$(6),O.SpI(" ",null!=ot.offerDecoded&&ot.offerDecoded.valid?null!=ot.offerDecoded&&ot.offerDecoded.valid?"Yes":"No":"N/K"," "),O.R7$(7),O.SpI(" ",null==ot.offerDecoded?null:ot.offerDecoded.offer_description," "),O.R7$(7),O.JRh(null==ot.offer?null:ot.offer.bolt12),O.R7$(),O.Y8G("ngIf",ot.showAdvanced),O.R7$(),O.Y8G("ngClass",O.l_i(30,V,!ot.showAdvanced,ot.showAdvanced)),O.R7$(2),O.Y8G("ngIf",!ot.showAdvanced)("ngIfElse",nt),O.R7$(3),O.Y8G("ngIf",(null==ot.offer?null:ot.offer.bolt12)&&""!==(null==ot.offer?null:ot.offer.bolt12)),O.R7$(),O.Y8G("ngIf",!(null!=ot.offer&&ot.offer.bolt12)||""===(null==ot.offer?null:ot.offer.bolt12))}},dependencies:[B.YU,B.bT,A.aY,Pe.$z,le.m2,le.MM,Ce.q,Ae.DJ,Ae.sA,Ae.UI,j.PW,W.Um,G.U,re.N,B.QX],encapsulation:2}))}return H(),$})()},5428(Zt,pe,l){"use strict";l.d(pe,{$6:()=>Ke,$Q:()=>B,As:()=>F,CK:()=>he,Do:()=>$,Dq:()=>ot,Fd:()=>te,Gy:()=>G,Hh:()=>T,Hm:()=>Le,I6:()=>le,Jx:()=>St,Lc:()=>ce,Lz:()=>ve,N4:()=>ie,N8:()=>j,NS:()=>e,Qj:()=>re,Sn:()=>O,T4:()=>lt,Tp:()=>A,Uj:()=>Dt,Uo:()=>C,XT:()=>ne,Xx:()=>Ae,Yi:()=>ht,ZE:()=>W,Zi:()=>be,cR:()=>_e,cU:()=>Pe,fy:()=>Re,gZ:()=>Ye,iO:()=>Vt,jJ:()=>Ce,lg:()=>w,mh:()=>P,sq:()=>xe,uL:()=>v,vL:()=>De,w0:()=>Xe,x1:()=>u,yn:()=>fe,yp:()=>L,zR:()=>f,zU:()=>nt});var i=l(9640),d=l(4416);const v=(0,i.VP)(d.Uu.UPDATE_API_CALL_STATUS_ECL,(0,i.xk)()),T=(0,i.VP)(d.Uu.RESET_ECL_STORE),w=(0,i.VP)(d.Uu.FETCH_PAGE_SETTINGS_ECL),e=(0,i.VP)(d.Uu.SET_PAGE_SETTINGS_ECL,(0,i.xk)()),O=(0,i.VP)(d.Uu.SAVE_PAGE_SETTINGS_ECL,(0,i.xk)()),f=(0,i.VP)(d.Uu.FETCH_INFO_ECL,(0,i.xk)()),u=(0,i.VP)(d.Uu.SET_INFO_ECL,(0,i.xk)()),L=(0,i.VP)(d.Uu.FETCH_FEES_ECL),C=(0,i.VP)(d.Uu.SET_FEES_ECL,(0,i.xk)()),B=(0,i.VP)(d.Uu.FETCH_CHANNELS_ECL),A=(0,i.VP)(d.Uu.SET_ACTIVE_CHANNELS_ECL,(0,i.xk)()),Pe=(0,i.VP)(d.Uu.SET_PENDING_CHANNELS_ECL,(0,i.xk)()),le=(0,i.VP)(d.Uu.SET_INACTIVE_CHANNELS_ECL,(0,i.xk)()),Ce=(0,i.VP)(d.Uu.FETCH_ONCHAIN_BALANCE_ECL),Ae=(0,i.VP)(d.Uu.SET_ONCHAIN_BALANCE_ECL,(0,i.xk)()),j=(0,i.VP)(d.Uu.SET_LIGHTNING_BALANCE_ECL,(0,i.xk)()),W=(0,i.VP)(d.Uu.SET_CHANNELS_STATUS_ECL,(0,i.xk)()),G=(0,i.VP)(d.Uu.FETCH_PEERS_ECL),re=(0,i.VP)(d.Uu.SET_PEERS_ECL,(0,i.xk)()),xe=(0,i.VP)(d.Uu.SAVE_NEW_PEER_ECL,(0,i.xk)()),ce=((0,i.VP)(d.Uu.NEWLY_ADDED_PEER_ECL,(0,i.xk)()),(0,i.VP)(d.Uu.ADD_PEER_ECL,(0,i.xk)()),(0,i.VP)(d.Uu.DETACH_PEER_ECL,(0,i.xk)())),be=(0,i.VP)(d.Uu.REMOVE_PEER_ECL,(0,i.xk)()),ne=(0,i.VP)(d.Uu.GET_NEW_ADDRESS_ECL),De=((0,i.VP)(d.Uu.SET_NEW_ADDRESS_ECL,(0,i.xk)()),(0,i.VP)(d.Uu.SAVE_NEW_CHANNEL_ECL,(0,i.xk)())),Re=(0,i.VP)(d.Uu.UPDATE_CHANNEL_ECL,(0,i.xk)()),Xe=(0,i.VP)(d.Uu.CLOSE_CHANNEL_ECL,(0,i.xk)()),_e=(0,i.VP)(d.Uu.REMOVE_CHANNEL_ECL,(0,i.xk)()),he=(0,i.VP)(d.Uu.FETCH_PAYMENTS_ECL,(0,i.xk)()),Dt=(0,i.VP)(d.Uu.SET_PAYMENTS_ECL,(0,i.xk)()),lt=(0,i.VP)(d.Uu.GET_QUERY_ROUTES_ECL,(0,i.xk)()),Le=(0,i.VP)(d.Uu.SET_QUERY_ROUTES_ECL,(0,i.xk)()),te=(0,i.VP)(d.Uu.SEND_PAYMENT_ECL,(0,i.xk)()),ie=(0,i.VP)(d.Uu.SEND_PAYMENT_STATUS_ECL,(0,i.xk)()),P=(0,i.VP)(d.Uu.FETCH_TRANSACTIONS_ECL,(0,i.xk)()),F=(0,i.VP)(d.Uu.SET_TRANSACTIONS_ECL,(0,i.xk)()),ve=(0,i.VP)(d.Uu.SEND_ONCHAIN_FUNDS_ECL,(0,i.xk)()),$=((0,i.VP)(d.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,(0,i.xk)()),(0,i.VP)(d.Uu.FETCH_INVOICES_ECL,(0,i.xk)())),Ke=(0,i.VP)(d.Uu.SET_INVOICES_ECL,(0,i.xk)()),Vt=(0,i.VP)(d.Uu.CREATE_INVOICE_ECL,(0,i.xk)()),St=(0,i.VP)(d.Uu.ADD_INVOICE_ECL,(0,i.xk)()),ot=(0,i.VP)(d.Uu.UPDATE_INVOICE_ECL,(0,i.xk)()),nt=(0,i.VP)(d.Uu.PEER_LOOKUP_ECL,(0,i.xk)()),ht=(0,i.VP)(d.Uu.INVOICE_LOOKUP_ECL,(0,i.xk)()),Ye=((0,i.VP)(d.Uu.SET_LOOKUP_ECL,(0,i.xk)()),(0,i.VP)(d.Uu.UPDATE_CHANNEL_STATE_ECL,(0,i.xk)())),fe=(0,i.VP)(d.Uu.UPDATE_RELAYED_PAYMENT_ECL,(0,i.xk)())},3017(Zt,pe,l){"use strict";l.d(pe,{B:()=>Ee});var i=l(1747),d=l(1413),v=l(7673),T=l(9437),w=l(6354),e=l(1397),O=l(6977),f=l(2462),u=l(4416),L=l(1771),C=l(6439),B=l(5428),A=l(2730),Pe=l(2615),le=l(9330),Ce=l(9640),Ae=l(3202),j=l(2571),W=l(8570),G=l(3694),re=l(7879),xe=l(7303);let Ee=(()=>{var V;class ce{constructor(ne,J,De,Re,Xe,_e,he,Dt,lt){this.actions=ne,this.httpClient=J,this.store=De,this.sessionService=Re,this.commonService=Xe,this.logger=_e,this.router=he,this.wsService=Dt,this.location=lt,this.CHILD_API_URL=u.H$+"/ecl",this.invoicesPageSettings=u.X8.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"invoices"===Le.tableId),this.paymentsPageSettings=u.X8.find(Le=>"transactions"===Le.pageId)?.tables.find(Le=>"payments"===Le.tableId),this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new d.B,new d.B,new d.B],this.infoFetchECL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_INFO_ECL),(0,e.Z)(Le=>(this.flgInitialized=!1,this.store.dispatch((0,L.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,L.mt)({payload:u.MZ.GET_NODE_INFO})),this.store.dispatch((0,B.uL)({payload:{action:"FetchInfo",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.GETINFO_API).pipe((0,O.Q)(this.actions.pipe((0,i.gp)(u.aU.SET_SELECTED_NODE))),(0,w.T)(te=>(this.logger.info(te),this.initializeRemainingData(te,Le.payload.loadPage),this.store.dispatch((0,B.uL)({payload:{action:"FetchInfo",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.GET_NODE_INFO})),{type:u.Uu.SET_INFO_ECL,payload:te||{}})),(0,T.W)(te=>{const ie=this.commonService.extractErrorCode(te),P=503===ie?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(te);return this.router.navigate(["/error"],{state:{errorCode:ie,errorMessage:P}}),this.handleErrorWithoutAlert("FetchInfo",u.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ie,error:P}),(0,v.of)({type:u.aU.VOID})})))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_FEES_ECL),(0,e.Z)(()=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchFees",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.FEES_API+"/fees").pipe((0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,B.uL)({payload:{action:"FetchFees",status:u.wn.COMPLETED}})),{type:u.Uu.SET_FEES_ECL,payload:Le||{}})),(0,T.W)(Le=>(this.handleErrorWithoutAlert("FetchFees",u.MZ.NO_SPINNER,"Fetching Fees Failed.",Le),(0,v.of)({type:u.aU.VOID})))))))),this.fetchPayments=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_PAYMENTS_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchPayments",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.FEES_API+"/payments?count="+Le.payload.count+"&skip="+Le.payload.skip).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"FetchPayments",status:u.wn.COMPLETED}})),{type:u.Uu.SET_PAYMENTS_ECL,payload:te||{}})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchPayments",u.MZ.NO_SPINNER,"Fetching Payments Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_CHANNELS_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchChannels",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.CHANNELS_API).pipe((0,w.T)(te=>(this.logger.info(te),this.rawChannelsList=te,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,B.uL)({payload:{action:"FetchChannels",status:u.wn.COMPLETED}})),{type:u.aU.VOID})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchChannels",u.MZ.NO_SPINNER,"Fetching Channels Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.fetchOnchainBalance=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_ONCHAIN_BALANCE_ECL),(0,e.Z)(()=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchOnchainBalance",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.ON_CHAIN_API+"/balance"))),(0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,B.uL)({payload:{action:"FetchOnchainBalance",status:u.wn.COMPLETED}})),{type:u.Uu.SET_ONCHAIN_BALANCE_ECL,payload:Le||{}})),(0,T.W)(Le=>(this.handleErrorWithoutAlert("FetchOnchainBalance",u.MZ.NO_SPINNER,"Fetching Onchain Balances Failed.",Le),(0,v.of)({type:u.aU.VOID}))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_PEERS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchPeers",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.PEERS_API).pipe((0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,B.uL)({payload:{action:"FetchPeers",status:u.wn.COMPLETED}})),{type:u.Uu.SET_PEERS_ECL,payload:Le||[]})),(0,T.W)(Le=>(this.handleErrorWithoutAlert("FetchPeers",u.MZ.NO_SPINNER,"Fetching Peers Failed.",Le),(0,v.of)({type:u.aU.VOID})))))))),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.GET_NEW_ADDRESS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,L.mt)({payload:u.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+u.rl.ON_CHAIN_API).pipe((0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,L.y0)({payload:u.MZ.GENERATE_NEW_ADDRESS})),{type:u.Uu.SET_NEW_ADDRESS_ECL,payload:Le})),(0,T.W)(Le=>(this.handleErrorWithAlert("GetNewAddress",u.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+u.rl.ON_CHAIN_API,Le),(0,v.of)({type:u.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SET_NEW_ADDRESS_ECL),(0,w.T)(Le=>(this.logger.info(Le.payload),Le.payload))),{dispatch:!1}),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SAVE_NEW_PEER_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.CONNECT_PEER})),this.store.dispatch((0,B.uL)({payload:{action:"SaveNewPeer",status:u.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+u.rl.PEERS_API+(Le.payload.id.includes("@")?"?uri=":"?nodeId=")+Le.payload.id,{}).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"SaveNewPeer",status:u.wn.COMPLETED}})),te=te||[],this.store.dispatch((0,L.y0)({payload:u.MZ.CONNECT_PEER})),this.store.dispatch((0,B.Qj)({payload:te})),{type:u.Uu.NEWLY_ADDED_PEER_ECL,payload:{peer:te.find(ie=>ie.nodeId===(Le.payload.id.includes("@")?Le.payload.id.substring(0,Le.payload.id.indexOf("@")):Le.payload.id))}})),(0,T.W)(te=>(this.handleErrorWithoutAlert("SaveNewPeer",u.MZ.CONNECT_PEER,"Peer Connection Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.DETACH_PEER_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+u.rl.PEERS_API+"/"+Le.payload.nodeId).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,L.y0)({payload:u.MZ.DISCONNECT_PEER})),this.store.dispatch((0,L.UI)({payload:"Disconnecting Peer!"})),{type:u.Uu.REMOVE_PEER_ECL,payload:{nodeId:Le.payload.nodeId}})),(0,T.W)(te=>(this.handleErrorWithAlert("DisconnectPeer",u.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+u.rl.PEERS_API+"/"+Le.payload.nodeId,te),(0,v.of)({type:u.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SAVE_NEW_CHANNEL_ECL),(0,e.Z)(Le=>{this.store.dispatch((0,L.mt)({payload:u.MZ.OPEN_CHANNEL})),this.store.dispatch((0,B.uL)({payload:{action:"SaveNewChannel",status:u.wn.INITIATED}}));const te={nodeId:Le.payload.nodeId,fundingSatoshis:Le.payload.amount,announceChannel:!Le.payload.private};return Le.payload.feeRate&&Le.payload.feeRate>0&&(te.fundingFeerateSatByte=Le.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+u.rl.CHANNELS_API,te).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,B.uL)({payload:{action:"SaveNewChannel",status:u.wn.COMPLETED}})),this.store.dispatch((0,B.Gy)()),this.store.dispatch((0,B.jJ)()),this.store.dispatch((0,L.y0)({payload:u.MZ.OPEN_CHANNEL})),this.store.dispatch((0,L.UI)({payload:"Channel Added Successfully!"})),{type:u.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,T.W)(ie=>(this.handleErrorWithoutAlert("SaveNewChannel",u.MZ.OPEN_CHANNEL,"Opening Channel Failed.",ie),(0,v.of)({type:u.aU.VOID}))))}))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.UPDATE_CHANNEL_ECL),(0,e.Z)(Le=>{this.store.dispatch((0,L.mt)({payload:u.MZ.UPDATE_CHAN_POLICY}));let te="?feeBaseMsat="+Le.payload.baseFeeMsat+"&feeProportionalMillionths="+Le.payload.feeRate;return te=Le.payload.nodeIds?te+"&nodeIds="+Le.payload.nodeIds:Le.payload.nodeId?te+"&nodeId="+Le.payload.nodeId:Le.payload.channelIds?te+"&channelIds="+Le.payload.channelIds:te+"&channelId="+Le.payload.channelId,this.httpClient.post(this.CHILD_API_URL+u.rl.CHANNELS_API+"/updateRelayFee"+te,{}).pipe((0,w.T)(ie=>(this.logger.info(ie),this.store.dispatch((0,L.y0)({payload:u.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,L.UI)(Le.payload.nodeIds||Le.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:u.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,T.W)(ie=>(this.handleErrorWithAlert("UpdateChannels",u.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+u.rl.CHANNELS_API,ie),(0,v.of)({type:u.aU.VOID}))))}))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.CLOSE_CHANNEL_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:Le.payload.force?u.MZ.FORCE_CLOSE_CHANNEL:u.MZ.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+u.rl.CHANNELS_API+"?channelId="+Le.payload.channelId+"&force="+Le.payload.force).pipe((0,w.T)(te=>(this.logger.info(te),setTimeout(()=>{this.store.dispatch((0,L.y0)({payload:Le.payload.force?u.MZ.FORCE_CLOSE_CHANNEL:u.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,L.UI)({payload:Le.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:u.aU.VOID})),(0,T.W)(te=>(this.handleErrorWithAlert("CloseChannel",Le.payload.force?u.MZ.FORCE_CLOSE_CHANNEL:u.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+u.rl.CHANNELS_API,te),(0,v.of)({type:u.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.GET_QUERY_ROUTES_ECL),(0,e.Z)(Le=>this.httpClient.get(this.CHILD_API_URL+u.rl.PAYMENTS_API+"/route?nodeId="+Le.payload.nodeId+"&amountMsat="+Le.payload.amount).pipe((0,w.T)(te=>(this.logger.info(te),{type:u.Uu.SET_QUERY_ROUTES_ECL,payload:te})),(0,T.W)(te=>(this.store.dispatch((0,B.Hm)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",u.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+u.rl.PAYMENTS_API+"/route?nodeId="+Le.payload.nodeId+"&amountMsat="+Le.payload.amount,te),(0,v.of)({type:u.aU.VOID}))))))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SET_QUERY_ROUTES_ECL),(0,w.T)(Le=>Le.payload)),{dispatch:!1}),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SEND_PAYMENT_ECL),(0,e.Z)(Le=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,L.mt)({payload:u.MZ.SEND_PAYMENT})),this.store.dispatch((0,B.uL)({payload:{action:"SendPayment",status:u.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+u.rl.PAYMENTS_API,Le.payload).pipe((0,w.T)(te=>(this.logger.info(te),this.latestPaymentRes=te,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:u.aU.VOID})),(0,T.W)(te=>(this.logger.error("Error: "+JSON.stringify(te)),Le.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",u.MZ.SEND_PAYMENT,"Send Payment Failed.",te):this.handleErrorWithAlert("SendPayment",u.MZ.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+u.rl.PAYMENTS_API,te),(0,v.of)({type:u.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_TRANSACTIONS_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchTransactions",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.ON_CHAIN_API+"/transactions?count="+Le.payload.count+"&skip="+Le.payload.skip))),(0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,B.uL)({payload:{action:"FetchTransactions",status:u.wn.COMPLETED}})),{type:u.Uu.SET_TRANSACTIONS_ECL,payload:Le||[]})),(0,T.W)(Le=>(this.handleErrorWithoutAlert("FetchTransactions",u.MZ.NO_SPINNER,"Fetching Transactions Failed.",Le),(0,v.of)({type:u.aU.VOID}))))),this.SendOnchainFunds=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SEND_ONCHAIN_FUNDS_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.SEND_FUNDS})),this.store.dispatch((0,B.uL)({payload:{action:"SendOnchainFunds",status:u.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+u.rl.ON_CHAIN_API,Le.payload).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"SendOnchainFunds",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.SEND_FUNDS})),this.store.dispatch((0,B.jJ)()),{type:u.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("SendOnchainFunds",u.MZ.SEND_FUNDS,"Sending Fund Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.createInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.CREATE_INVOICE_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.CREATE_INVOICE})),this.store.dispatch((0,B.uL)({payload:{action:"CreateInvoice",status:u.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+u.rl.INVOICES_API,Le.payload).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"CreateInvoice",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.CREATE_INVOICE})),te.timestamp=Math.round((new Date).getTime()/1e3),te.expiresAt=Math.round(te.timestamp+Le.payload.expireIn),te.description=Le.payload.description,te.status="unpaid",setTimeout(()=>{this.store.dispatch((0,L.xO)({payload:{data:{invoice:te,newlyAdded:!0,component:C.Z}}}))},200),{type:u.Uu.ADD_INVOICE_ECL,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("CreateInvoice",u.MZ.CREATE_INVOICE,"Create Invoice Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_INVOICES_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchInvoices",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.INVOICES_API+"?count="+Le.payload.count+"&skip="+Le.payload.skip).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"FetchInvoices",status:u.wn.COMPLETED}})),{type:u.Uu.SET_INVOICES_ECL,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("FetchInvoices",u.MZ.NO_SPINNER,"Fetching Invoices Failed.",te),(0,v.of)({type:u.aU.VOID})))))))),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.PEER_LOOKUP_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.SEARCHING_NODE})),this.store.dispatch((0,B.uL)({payload:{action:"Lookup",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.NETWORK_API+"/nodes/"+Le.payload).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"Lookup",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.SEARCHING_NODE})),{type:u.Uu.SET_LOOKUP_ECL,payload:te})),(0,T.W)(te=>(this.handleErrorWithAlert("Lookup",u.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+u.rl.NETWORK_API+"/nodes/"+Le.payload,te),(0,v.of)({type:u.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.INVOICE_LOOKUP_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,B.uL)({payload:{action:"Lookup",status:u.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+u.rl.INVOICES_API+"/"+Le.payload).pipe((0,w.T)(te=>(this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"Lookup",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,B.Dq)({payload:te})),{type:u.Uu.SET_LOOKUP_ECL,payload:te})),(0,T.W)(te=>(this.handleErrorWithoutAlert("Lookup",u.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",te),this.store.dispatch((0,L.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:u.aU.VOID})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SET_LOOKUP_ECL),(0,w.T)(Le=>(this.logger.info(Le.payload),Le.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.FETCH_PAGE_SETTINGS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,B.uL)({payload:{action:"FetchPageSettings",status:u.wn.INITIATED}})),this.httpClient.get(u.rl.PAGE_SETTINGS_API).pipe((0,w.T)(Le=>(this.logger.info(Le),this.store.dispatch((0,B.uL)({payload:{action:"FetchPageSettings",status:u.wn.COMPLETED}})),this.invoicesPageSettings=Le&&Object.keys(Le).length>0?Le.find(te=>"transactions"===te.pageId)?.tables.find(te=>"invoices"===te.tableId):u.X8.find(te=>"transactions"===te.pageId)?.tables.find(te=>"invoices"===te.tableId),this.paymentsPageSettings=Le&&Object.keys(Le).length>0?Le.find(te=>"transactions"===te.pageId)?.tables.find(te=>"payments"===te.tableId):u.X8.find(te=>"transactions"===te.pageId)?.tables.find(te=>"payments"===te.tableId),{type:u.Uu.SET_PAGE_SETTINGS_ECL,payload:Le||[]})),(0,T.W)(Le=>(this.handleErrorWithoutAlert("FetchPageSettings",u.MZ.NO_SPINNER,"Fetching Page Settings Failed.",Le),(0,v.of)({type:u.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(u.Uu.SAVE_PAGE_SETTINGS_ECL),(0,e.Z)(Le=>(this.store.dispatch((0,L.mt)({payload:u.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,B.uL)({payload:{action:"SavePageSettings",status:u.wn.INITIATED}})),this.httpClient.post(u.rl.PAGE_SETTINGS_API,Le.payload).pipe((0,w.T)(te=>{this.logger.info(te),this.store.dispatch((0,B.uL)({payload:{action:"SavePageSettings",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,L.UI)({payload:"Page Layout Updated Successfully!"}));const ie=(te.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId)||u.X8.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId))?.recordsPerPage,P=(te.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId)||u.X8.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId))?.recordsPerPage;return this.invoicesPageSettings&&ie!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=ie),this.paymentsPageSettings&&P!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=P),{type:u.Uu.SET_PAGE_SETTINGS_ECL,payload:te||[]}}),(0,T.W)(te=>(this.handleErrorWithAlert("SavePageSettings",u.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",u.rl.PAGE_SETTINGS_API,te),(0,v.of)({type:u.aU.VOID})))))))),this.handleSendPaymentStatus=Le=>{this.store.dispatch((0,B.uL)({payload:{action:"SendPayment",status:u.wn.COMPLETED}})),this.store.dispatch((0,L.y0)({payload:u.MZ.SEND_PAYMENT})),this.store.dispatch((0,B.N4)({payload:this.latestPaymentRes})),this.store.dispatch((0,L.UI)({payload:Le}))},this.store.select(A.ru).pipe((0,O.Q)(this.unSubs[0])).subscribe(Le=>{Le.FetchInfo.status!==u.wn.COMPLETED&&Le.FetchInfo.status!==u.wn.ERROR||Le.FetchFees.status!==u.wn.COMPLETED&&Le.FetchFees.status!==u.wn.ERROR||Le.FetchOnchainBalance.status!==u.wn.COMPLETED&&Le.FetchOnchainBalance.status!==u.wn.ERROR||Le.FetchChannels.status!==u.wn.COMPLETED&&Le.FetchChannels.status!==u.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,L.y0)({payload:u.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,O.Q)(this.unSubs[1])).subscribe(Le=>{this.logger.info("Received new message from the service: "+JSON.stringify(Le));let te="";if(Le)switch(Le.type){case u.ck.PAYMENT_SENT:Le&&Le.id&&this.latestPaymentRes===Le.id&&(this.flgReceivedPaymentUpdateFromWS=!0,te="Payment Sent: "+(Le.paymentHash?"with payment hash "+Le.paymentHash:JSON.stringify(Le)),this.handleSendPaymentStatus(te));break;case u.ck.PAYMENT_FAILED:Le&&Le.id&&this.latestPaymentRes===Le.id&&(this.flgReceivedPaymentUpdateFromWS=!0,te="Payment Failed: "+(Le.failures&&Le.failures.length&&Le.failures.length>0&&Le.failures[0].t?Le.failures[0].t:Le.failures&&Le.failures.length&&Le.failures.length>0&&Le.failures[0].e&&Le.failures[0].e.failureMessage?Le.failures[0].e.failureMessage:JSON.stringify(Le)),this.handleSendPaymentStatus(te));break;case u.ck.PAYMENT_RECEIVED:this.store.dispatch((0,B.Dq)({payload:Le}));break;case u.ck.PAYMENT_RELAYED:delete Le.source,Le.amountIn=Math.round((Le.amountIn||0)/1e3),Le.amountOut=Math.round((Le.amountOut||0)/1e3),Le.timestamp.unix&&(Le.timestamp=1e3*Le.timestamp.unix),this.store.dispatch((0,B.yn)({payload:Le}));break;case u.ck.CHANNEL_STATE_CHANGED:"NORMAL"===Le.currentState||"CLOSED"===Le.currentState?(this.rawChannelsList=this.rawChannelsList?.map(ie=>(ie.channelId===Le.channelId&&ie.nodeId===Le.remoteNodeId&&(ie.state=Le.currentState),ie)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,B.gZ)({payload:Le}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(Le))}})}setChannelsAndStatusAndBalances(){let ne=0,J=0,De=0,Re={localBalance:0,remoteBalance:0},Xe=[];const _e=[],he=[],Dt={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((lt,Le)=>{lt&&("NORMAL"===lt.state?(ne=(lt.toLocal||0)+(lt.toRemote||0),J+=lt.toLocal||0,De+=lt.toRemote||0,lt.balancedness=0===ne?1:+(1-Math.abs(((lt.toLocal||0)-(lt.toRemote||0))/ne)).toFixed(3),Xe.push(lt),Dt.active.channels=Dt.active.channels+1,Dt.active.capacity=Dt.active.capacity+(lt.toLocal||0)):lt.state?.includes("WAIT")||lt.state?.includes("CLOSING")||lt.state?.includes("SYNCING")?(lt.state=lt.state?.replace(/_/g," "),_e.push(lt),Dt.pending.channels=Dt.pending.channels+1,Dt.pending.capacity=Dt.pending.capacity+(lt.toLocal||0)):(lt.state=lt.state?.replace(/_/g," "),he.push(lt),Dt.inactive.channels=Dt.inactive.channels+1,Dt.inactive.capacity=Dt.inactive.capacity+(lt.toLocal||0)))}),Re={localBalance:J,remoteBalance:De},Xe=this.commonService.sortDescByKey(Xe,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(Xe)),this.logger.info("Pending Channels: "+JSON.stringify(_e)),this.logger.info("Inactive Channels: "+JSON.stringify(he)),this.logger.info("Lightning Balances: "+JSON.stringify(Re)),this.logger.info("Channels Status: "+JSON.stringify(Dt)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:Xe,pending:_e,inactive:he,balances:Re,status:Dt})),this.store.dispatch((0,B.Tp)({payload:Xe})),this.store.dispatch((0,B.cU)({payload:_e})),this.store.dispatch((0,B.I6)({payload:he})),this.store.dispatch((0,B.N8)({payload:Re})),this.store.dispatch((0,B.ZE)({payload:Dt}))}initializeRemainingData(ne,J){this.sessionService.setItem("eclUnlocked","true");const De={identity_pubkey:ne.nodeId,alias:ne.alias,testnet:"testnet"===ne.network,chains:ne.publicAddresses,uris:ne.uris,version:ne.version,numberOfPendingChannels:0};this.store.dispatch((0,L.mt)({payload:u.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,L.Fl)({payload:De}));let Re=this.location.path();Re.includes("/lnd/")?Re=Re?.replace("/lnd/","/ecl/"):Re.includes("/cln/")&&(Re=Re?.replace("/cln/","/ecl/")),(Re.includes("/login")||Re.includes("/error")||""===Re||"HOME"===J||Re.includes("?access-key="))&&(Re="/ecl/home"),this.router.navigate([Re]),this.store.dispatch((0,B.$Q)()),this.store.dispatch((0,B.yp)()),this.store.dispatch((0,B.jJ)()),this.store.dispatch((0,B.Gy)())}handleErrorWithoutAlert(ne,J,De,Re){this.logger.error("ERROR IN: "+ne+"\n"+JSON.stringify(Re)),401===Re.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.Jh)()),this.store.dispatch((0,L.ri)({payload:"Authentication Failed: "+JSON.stringify(Re.error)}))):(this.store.dispatch((0,L.y0)({payload:J})),this.store.dispatch((0,B.uL)({payload:{action:ne,status:u.wn.ERROR,statusCode:Re.status.toString(),message:this.commonService.extractErrorMessage(Re,De)}})))}handleErrorWithAlert(ne,J,De,Re,Xe){if(this.logger.error(Xe),401===Xe.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,L.Jh)()),this.store.dispatch((0,L.ri)({payload:"Authentication Failed: "+JSON.stringify(Xe.error)}));else{this.store.dispatch((0,L.y0)({payload:J}));const _e=this.commonService.extractErrorMessage(Xe);this.store.dispatch((0,L.xO)({payload:{data:{type:"ERROR",alertTitle:De,message:{code:Xe.status,message:_e,URL:Re},component:f.f}}})),this.store.dispatch((0,B.uL)({payload:{action:ne,status:u.wn.ERROR,statusCode:Xe.status.toString(),message:_e,URL:Re}}))}}ngOnDestroy(){this.unSubs.forEach(ne=>{ne.next(null),ne.complete()})}static#e=V=()=>(this.\u0275fac=function(J){return new(J||ce)(Pe.KVO(i.En),Pe.KVO(le.Qq),Pe.KVO(Ce.il),Pe.KVO(Ae.Q),Pe.KVO(j.h),Pe.KVO(W.gP),Pe.KVO(G.Ix),Pe.KVO(re.I),Pe.KVO(xe.aZ))},this.\u0275prov=Pe.jDH({token:ce,factory:ce.\u0275fac}))}return V(),ce})()},2730(Zt,pe,l){"use strict";l.d(pe,{DW:()=>Ae,KT:()=>f,Ou:()=>A,b_:()=>w,gN:()=>Pe,jZ:()=>v,oR:()=>u,os:()=>Ce,p3:()=>T,rN:()=>le,ru:()=>O});var i=l(9640);const d=(0,i.UX)("ecl"),v=(0,i.Mz)(d,j=>({pageSettings:j.pageSettings,apiCallStatus:j.apisCallStatus.FetchPageSettings})),T=(0,i.Mz)(d,j=>j.information),w=(0,i.Mz)(d,j=>({information:j.information,apiCallStatus:j.apisCallStatus.FetchInfo})),O=((0,i.Mz)(d,j=>j.apisCallStatus.FetchInfo),(0,i.Mz)(d,j=>j.apisCallStatus)),f=(0,i.Mz)(d,j=>({payments:j.payments,apiCallStatus:j.apisCallStatus.FetchPayments})),u=(0,i.Mz)(d,j=>({fees:j.fees,apiCallStatus:j.apisCallStatus.FetchFees})),A=((0,i.Mz)(d,j=>({activeChannels:j.activeChannels,apiCallStatus:j.apisCallStatus.FetchChannels})),(0,i.Mz)(d,j=>({pendingChannels:j.pendingChannels,apiCallStatus:j.apisCallStatus.FetchChannels})),(0,i.Mz)(d,j=>({inactiveChannels:j.inactiveChannels,apiCallStatus:j.apisCallStatus.FetchChannels})),(0,i.Mz)(d,j=>({activeChannels:j.activeChannels,pendingChannels:j.pendingChannels,inactiveChannels:j.inactiveChannels,lightningBalance:j.lightningBalance,channelsStatus:j.channelsStatus,apiCallStatus:j.apisCallStatus.FetchChannels}))),Pe=(0,i.Mz)(d,j=>({transactions:j.transactions,apiCallStatus:j.apisCallStatus.FetchTransactions})),le=(0,i.Mz)(d,j=>({invoices:j.invoices,apiCallStatus:j.apisCallStatus.FetchInvoices})),Ce=(0,i.Mz)(d,j=>({peers:j.peers,apiCallStatus:j.apisCallStatus.FetchPeers})),Ae=(0,i.Mz)(d,j=>({onchainBalance:j.onchainBalance,apiCallStatus:j.apisCallStatus.FetchOnchainBalance}))},6439(Zt,pe,l){"use strict";l.d(pe,{Z:()=>St});var i=l(1585),d=l(5383),v=l(1413),T=l(6977),w=l(4416),e=l(2730),O=l(2615),f=l(3664),u=l(8570),L=l(2571),C=l(5416),B=l(9640),A=l(2200),Pe=l(60),le=l(8834),Ce=l(5596),Ae=l(1997),j=l(9183),W=l(2920),G=l(6038),re=l(8288),xe=l(9157),Ee=l(9587);const V=ot=>({"display-none":ot}),ce=ot=>({"xs-scroll-y":ot}),be=(ot,nt)=>({"mt-2":ot,"mt-1":nt}),ne=()=>[];function J(ot,nt){if(1&ot&&f.nrm(0,"qr-code",29),2&ot){const ht=f.XpG();f.Y8G("value",null==ht.invoice?null:ht.invoice.serialized)("size",ht.qrWidth)}}function De(ot,nt){1&ot&&(f.j41(0,"span",30),f.EFF(1,"N/A"),f.k0s())}function Re(ot,nt){if(1&ot&&f.nrm(0,"qr-code",29),2&ot){const ht=f.XpG();f.Y8G("value",null==ht.invoice?null:ht.invoice.serialized)("size",ht.qrWidth)}}function Xe(ot,nt){1&ot&&(f.j41(0,"span",31),f.EFF(1,"QR Code Not Applicable"),f.k0s())}function _e(ot,nt){1&ot&&f.nrm(0,"mat-divider",32),2&ot&&f.Y8G("inset",!0)}function he(ot,nt){1&ot&&(f.qex(0),f.EFF(1," (zero amount) "),f.bVm())}function Dt(ot,nt){1&ot&&f.nrm(0,"span",38)}function lt(ot,nt){if(1&ot&&(f.j41(0,"div",34)(1,"div",35)(2,"span",36),f.EFF(3),f.nI1(4,"number"),f.k0s(),f.DNE(5,Dt,1,0,"span",37),f.k0s()()),2&ot){const ht=f.XpG(2);f.R7$(3),f.SpI("",f.bMT(4,2,null==ht.invoice?null:ht.invoice.amountSettled)," Sats"),f.R7$(2),f.Y8G("ngForOf",f.lJ4(4,ne).constructor(35))}}function Le(ot,nt){if(1&ot&&(f.j41(0,"div"),f.EFF(1),f.nI1(2,"number"),f.k0s()),2&ot){const ht=f.XpG(2);f.R7$(),f.SpI("",f.bMT(2,1,null==ht.invoice?null:ht.invoice.amountSettled)," Sats")}}function te(ot,nt){if(1&ot&&(f.qex(0),f.DNE(1,lt,6,5,"div",33)(2,Le,3,3,"div",20),f.bVm()),2&ot){const ht=f.XpG();f.R7$(),f.Y8G("ngIf",ht.flgInvoicePaid),f.R7$(),f.Y8G("ngIf",!ht.flgInvoicePaid)}}function ie(ot,nt){1&ot&&(f.j41(0,"span"),f.EFF(1,"-"),f.k0s())}function P(ot,nt){1&ot&&f.nrm(0,"mat-spinner",40),2&ot&&f.Y8G("diameter",20)}function F(ot,nt){if(1&ot&&(f.qex(0),f.DNE(1,ie,2,0,"span",20)(2,P,1,1,"mat-spinner",39),f.bVm()),2&ot){const ht=f.XpG();f.R7$(),f.Y8G("ngIf","unpaid"!==(null==ht.invoice?null:ht.invoice.status)||!ht.flgVersionCompatible),f.R7$(),f.Y8G("ngIf","unpaid"===(null==ht.invoice?null:ht.invoice.status)&&ht.flgVersionCompatible)}}function ve(ot,nt){if(1&ot&&(f.j41(0,"div"),f.nrm(1,"mat-divider",21),f.j41(2,"div",16)(3,"div",41)(4,"h4",18),f.EFF(5,"Date Expiry"),f.k0s(),f.j41(6,"span",19),f.EFF(7),f.nI1(8,"date"),f.k0s()(),f.j41(9,"div",42)(10,"h4",18),f.EFF(11,"Date Settled"),f.k0s(),f.j41(12,"span",22),f.EFF(13),f.nI1(14,"date"),f.k0s()()(),f.nrm(15,"mat-divider",21),f.j41(16,"div",16)(17,"div",23)(18,"h4",18),f.EFF(19,"Payment Hash"),f.k0s(),f.j41(20,"span",22),f.EFF(21),f.k0s()()(),f.nrm(22,"mat-divider",21),f.j41(23,"div",16)(24,"div",23)(25,"h4",18),f.EFF(26,"Node ID"),f.k0s(),f.j41(27,"span",22),f.EFF(28),f.k0s()()(),f.nrm(29,"mat-divider",21),f.k0s()),2&ot){const ht=f.XpG();f.R7$(7),f.JRh(f.i5U(8,4,1e3*(null==ht.invoice?null:ht.invoice.expiresAt),"dd/MMM/y HH:mm")),f.R7$(6),f.JRh(f.i5U(14,7,1e3*(null==ht.invoice?null:ht.invoice.receivedAt),"dd/MMM/y HH:mm")),f.R7$(8),f.JRh(null==ht.invoice?null:ht.invoice.paymentHash),f.R7$(7),f.JRh(null==ht.invoice?null:ht.invoice.nodeId)}}function H(ot,nt){1&ot&&(f.j41(0,"p"),f.EFF(1,"Show Advanced"),f.k0s())}function $(ot,nt){1&ot&&(f.j41(0,"p"),f.EFF(1,"Hide Advanced"),f.k0s())}function Ke(ot,nt){if(1&ot){const ht=f.RV6();f.j41(0,"button",43),f.bIt("copied",function(Ye){O.eBV(ht);const fe=f.XpG();return O.Njj(fe.onCopyPayment(Ye))}),f.EFF(1,"Copy Invoice"),f.k0s()}if(2&ot){const ht=f.XpG();f.Y8G("payload",null==ht.invoice?null:ht.invoice.serialized)}}function Vt(ot,nt){if(1&ot){const ht=f.RV6();f.j41(0,"button",44),f.bIt("click",function(){O.eBV(ht);const Ye=f.XpG();return O.Njj(Ye.onClose())}),f.EFF(1,"OK"),f.k0s()}}let St=(()=>{var ot;class nt{constructor(oe,Ye,fe,Qe,gt,Gt){this.dialogRef=oe,this.data=Ye,this.logger=fe,this.commonService=Qe,this.snackBar=gt,this.store=Gt,this.faReceipt=d.Mf0,this.faExclamationTriangle=d.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=w.f7,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.B,new v.B,new v.B,new v.B,new v.B]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===w.f7.XS&&(this.qrWidth=220),this.store.select(e.p3).pipe((0,T.Q)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(e.rN).pipe((0,T.Q)(this.unSubs[1])).subscribe(oe=>{const Ye=this.invoice.status,Qe=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find(gt=>gt.paymentHash===this.invoice.paymentHash)||null;Qe&&(this.invoice=Qe),Ye!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}static#e=ot=()=>(this.\u0275fac=function(Ye){return new(Ye||nt)(f.rXU(i.CP),f.rXU(i.Vh),f.rXU(u.gP),f.rXU(L.h),f.rXU(C.UG),f.rXU(B.il))},this.\u0275cmp=f.VBU({type:nt,selectors:[["rtl-ecl-invoice-information"]],standalone:!1,decls:68,vars:42,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Ye,fe){if(1&Ye){const Qe=f.RV6();f.j41(0,"div",1)(1,"div",2),f.DNE(2,J,1,2,"qr-code",3)(3,De,2,0,"span",4),f.k0s(),f.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),f.nrm(7,"fa-icon",8),f.j41(8,"span",9),f.EFF(9),f.k0s()(),f.j41(10,"button",10),f.bIt("click",function(){return O.eBV(Qe),O.Njj(fe.onClose())}),f.EFF(11,"X"),f.k0s()(),f.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),f.DNE(15,Re,1,2,"qr-code",3)(16,Xe,2,0,"span",14),f.k0s(),f.DNE(17,_e,1,1,"mat-divider",15),f.j41(18,"div",16)(19,"div",17)(20,"h4",18),f.EFF(21,"Amount Requested"),f.k0s(),f.j41(22,"span",19),f.EFF(23),f.nI1(24,"number"),f.DNE(25,he,2,0,"ng-container",20),f.k0s()(),f.j41(26,"div",17)(27,"h4",18),f.EFF(28,"Amount Settled"),f.k0s(),f.j41(29,"span",19),f.DNE(30,te,3,2,"ng-container",20)(31,F,3,2,"ng-container",20),f.k0s()()(),f.nrm(32,"mat-divider",21),f.j41(33,"div",16)(34,"div",17)(35,"h4",18),f.EFF(36,"Date Created"),f.k0s(),f.j41(37,"span",22),f.EFF(38),f.nI1(39,"date"),f.k0s()(),f.j41(40,"div",17)(41,"h4",18),f.EFF(42,"Status"),f.k0s(),f.j41(43,"span",22),f.EFF(44),f.nI1(45,"titlecase"),f.k0s()()(),f.nrm(46,"mat-divider",21),f.j41(47,"div",16)(48,"div",23)(49,"h4",18),f.EFF(50,"Description"),f.k0s(),f.j41(51,"span",19),f.EFF(52),f.k0s()()(),f.nrm(53,"mat-divider",21),f.j41(54,"div",16)(55,"div",23)(56,"h4",18),f.EFF(57,"Invoice"),f.k0s(),f.j41(58,"span",22),f.EFF(59),f.k0s()()(),f.DNE(60,ve,30,10,"div",20),f.j41(61,"div",24)(62,"button",25),f.bIt("click",function(){return O.eBV(Qe),O.Njj(fe.onShowAdvanced())}),f.DNE(63,H,2,0,"p",26)(64,$,2,0,"ng-template",null,0,f.C5r),f.k0s(),f.DNE(66,Ke,2,1,"button",27)(67,Vt,2,0,"button",28),f.k0s()()()()()}if(2&Ye){const Qe=f.sdS(65);f.R7$(),f.Y8G("fxLayoutAlign",null!=fe.invoice&&fe.invoice.serialized&&""!==(null==fe.invoice?null:fe.invoice.serialized)?"center start":"center center")("ngClass",f.eq3(33,V,fe.screenSize===fe.screenSizeEnum.XS||fe.screenSize===fe.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==fe.invoice?null:fe.invoice.serialized)&&""!==(null==fe.invoice?null:fe.invoice.serialized)),f.R7$(),f.Y8G("ngIf",!(null!=fe.invoice&&fe.invoice.serialized)||""===(null==fe.invoice?null:fe.invoice.serialized)),f.R7$(4),f.Y8G("icon",fe.faReceipt),f.R7$(2),f.JRh(fe.screenSize===fe.screenSizeEnum.XS?fe.newlyAdded?"Created":"Invoice":fe.newlyAdded?"Invoice Created":"Invoice Information"),f.R7$(3),f.Y8G("ngClass",f.eq3(35,ce,fe.screenSize===fe.screenSizeEnum.XS)),f.R7$(2),f.Y8G("fxLayoutAlign",null!=fe.invoice&&fe.invoice.serialized&&""!==(null==fe.invoice?null:fe.invoice.serialized)?"center start":"center center")("ngClass",f.eq3(37,V,fe.screenSize!==fe.screenSizeEnum.XS&&fe.screenSize!==fe.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==fe.invoice?null:fe.invoice.serialized)&&""!==(null==fe.invoice?null:fe.invoice.serialized)),f.R7$(),f.Y8G("ngIf",!(null!=fe.invoice&&fe.invoice.serialized)||""===(null==fe.invoice?null:fe.invoice.serialized)),f.R7$(),f.Y8G("ngIf",fe.screenSize===fe.screenSizeEnum.XS||fe.screenSize===fe.screenSizeEnum.SM),f.R7$(6),f.SpI("",f.bMT(24,26,(null==fe.invoice?null:fe.invoice.amount)||0)," Sats"),f.R7$(2),f.Y8G("ngIf",!(null!=fe.invoice&&fe.invoice.amount)||"0"===(null==fe.invoice?null:fe.invoice.amount)),f.R7$(5),f.Y8G("ngIf",null==fe.invoice?null:fe.invoice.amountSettled),f.R7$(),f.Y8G("ngIf",!(null!=fe.invoice&&fe.invoice.amountSettled)),f.R7$(7),f.JRh(f.i5U(39,28,1e3*(null==fe.invoice?null:fe.invoice.timestamp),"dd/MMM/y HH:mm")),f.R7$(6),f.JRh(f.bMT(45,31,null==fe.invoice?null:fe.invoice.status)),f.R7$(8),f.JRh((null==fe.invoice?null:fe.invoice.description)||"-"),f.R7$(7),f.JRh((null==fe.invoice?null:fe.invoice.serialized)||"N/A"),f.R7$(),f.Y8G("ngIf",fe.showAdvanced),f.R7$(),f.Y8G("ngClass",f.l_i(39,be,!fe.showAdvanced,fe.showAdvanced)),f.R7$(2),f.Y8G("ngIf",!fe.showAdvanced)("ngIfElse",Qe),f.R7$(3),f.Y8G("ngIf",(null==fe.invoice?null:fe.invoice.serialized)&&""!==(null==fe.invoice?null:fe.invoice.serialized)),f.R7$(),f.Y8G("ngIf",!(null!=fe.invoice&&fe.invoice.serialized)||""===(null==fe.invoice?null:fe.invoice.serialized))}},dependencies:[A.YU,A.Sq,A.bT,Pe.aY,le.$z,Ce.m2,Ce.MM,Ae.q,j.LG,W.DJ,W.sA,W.UI,G.PW,re.Um,xe.U,Ee.N,A.QX,A.PV,A.vh],encapsulation:2}))}return ot(),nt})()},190(Zt,pe,l){"use strict";l.d(pe,{$6:()=>Vt,$J:()=>F,$Q:()=>be,As:()=>ht,Br:()=>u,CK:()=>fe,DI:()=>Ee,DY:()=>xe,Do:()=>Ke,Dq:()=>St,Fd:()=>gt,GZ:()=>wt,Gy:()=>C,H2:()=>Le,Hm:()=>ye,J9:()=>ce,Jx:()=>W,L:()=>te,Lf:()=>H,NS:()=>O,O8:()=>Ye,Qj:()=>B,SM:()=>oe,Sn:()=>f,T4:()=>ee,Uj:()=>Qe,Uo:()=>re,VK:()=>Ae,WE:()=>Pt,X9:()=>e,XT:()=>Ft,Yi:()=>vi,Zi:()=>Ce,_$:()=>ot,aB:()=>Qn,ar:()=>J,b1:()=>Se,cR:()=>lt,cU:()=>De,dv:()=>ne,e8:()=>v,ed:()=>le,fy:()=>_e,ij:()=>ei,jk:()=>Ni,kv:()=>vt,lg:()=>w,mh:()=>nt,oX:()=>jt,p1:()=>T,pL:()=>Re,sq:()=>A,t0:()=>rt,t5:()=>ve,tG:()=>ke,tf:()=>V,uK:()=>Ri,vL:()=>he,w0:()=>Dt,x1:()=>L,yp:()=>G,z2:()=>Xe,zU:()=>gn});var i=l(9640),d=l(4416);const v=(0,i.VP)(d.QP.UPDATE_API_CALL_STATUS_LND,(0,i.xk)()),T=(0,i.VP)(d.QP.RESET_LND_STORE),w=(0,i.VP)(d.QP.FETCH_PAGE_SETTINGS_LND),e=(0,i.VP)(d.QP.UPDATE_SELECTED_NODE_OPTIONS),O=(0,i.VP)(d.QP.SET_PAGE_SETTINGS_LND,(0,i.xk)()),f=(0,i.VP)(d.QP.SAVE_PAGE_SETTINGS_LND,(0,i.xk)()),u=(0,i.VP)(d.QP.FETCH_INFO_LND,(0,i.xk)()),L=(0,i.VP)(d.QP.SET_INFO_LND,(0,i.xk)()),C=(0,i.VP)(d.QP.FETCH_PEERS_LND),B=(0,i.VP)(d.QP.SET_PEERS_LND,(0,i.xk)()),A=(0,i.VP)(d.QP.SAVE_NEW_PEER_LND,(0,i.xk)()),le=((0,i.VP)(d.QP.NEWLY_ADDED_PEER_LND,(0,i.xk)()),(0,i.VP)(d.QP.DETACH_PEER_LND,(0,i.xk)())),Ce=(0,i.VP)(d.QP.REMOVE_PEER_LND,(0,i.xk)()),Ae=(0,i.VP)(d.QP.SAVE_NEW_INVOICE_LND,(0,i.xk)()),W=((0,i.VP)(d.QP.NEWLY_SAVED_INVOICE_LND,(0,i.xk)()),(0,i.VP)(d.QP.ADD_INVOICE_LND,(0,i.xk)())),G=(0,i.VP)(d.QP.FETCH_FEES_LND),re=(0,i.VP)(d.QP.SET_FEES_LND,(0,i.xk)()),xe=(0,i.VP)(d.QP.FETCH_BLOCKCHAIN_BALANCE_LND),Ee=(0,i.VP)(d.QP.SET_BLOCKCHAIN_BALANCE_LND,(0,i.xk)()),V=(0,i.VP)(d.QP.FETCH_NETWORK_LND),ce=(0,i.VP)(d.QP.SET_NETWORK_LND,(0,i.xk)()),be=(0,i.VP)(d.QP.FETCH_CHANNELS_LND),ne=(0,i.VP)(d.QP.SET_CHANNELS_LND,(0,i.xk)()),J=(0,i.VP)(d.QP.FETCH_PENDING_CHANNELS_LND),De=(0,i.VP)(d.QP.SET_PENDING_CHANNELS_LND,(0,i.xk)()),Re=(0,i.VP)(d.QP.FETCH_CLOSED_CHANNELS_LND),Xe=(0,i.VP)(d.QP.SET_CLOSED_CHANNELS_LND,(0,i.xk)()),_e=(0,i.VP)(d.QP.UPDATE_CHANNEL_LND,(0,i.xk)()),he=(0,i.VP)(d.QP.SAVE_NEW_CHANNEL_LND,(0,i.xk)()),Dt=(0,i.VP)(d.QP.CLOSE_CHANNEL_LND,(0,i.xk)()),lt=(0,i.VP)(d.QP.REMOVE_CHANNEL_LND,(0,i.xk)()),Le=(0,i.VP)(d.QP.BACKUP_CHANNELS_LND,(0,i.xk)()),te=(0,i.VP)(d.QP.VERIFY_CHANNEL_LND,(0,i.xk)()),F=((0,i.VP)(d.QP.BACKUP_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(d.QP.VERIFY_CHANNEL_RES_LND,(0,i.xk)()),(0,i.VP)(d.QP.RESTORE_CHANNELS_LIST_LND)),ve=(0,i.VP)(d.QP.SET_RESTORE_CHANNELS_LIST_LND,(0,i.xk)()),H=(0,i.VP)(d.QP.RESTORE_CHANNELS_LND,(0,i.xk)()),Ke=((0,i.VP)(d.QP.RESTORE_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(d.QP.FETCH_INVOICES_LND,(0,i.xk)())),Vt=(0,i.VP)(d.QP.SET_INVOICES_LND,(0,i.xk)()),St=(0,i.VP)(d.QP.UPDATE_INVOICE_LND,(0,i.xk)()),ot=(0,i.VP)(d.QP.UPDATE_PAYMENT_LND,(0,i.xk)()),nt=(0,i.VP)(d.QP.FETCH_TRANSACTIONS_LND),ht=(0,i.VP)(d.QP.SET_TRANSACTIONS_LND,(0,i.xk)()),oe=(0,i.VP)(d.QP.FETCH_UTXOS_LND),Ye=(0,i.VP)(d.QP.SET_UTXOS_LND,(0,i.xk)()),fe=(0,i.VP)(d.QP.FETCH_PAYMENTS_LND,(0,i.xk)()),Qe=(0,i.VP)(d.QP.SET_PAYMENTS_LND,(0,i.xk)()),gt=(0,i.VP)(d.QP.SEND_PAYMENT_LND,(0,i.xk)()),rt=((0,i.VP)(d.QP.SEND_PAYMENT_STATUS_LND,(0,i.xk)()),(0,i.VP)(d.QP.FETCH_GRAPH_NODE_LND,(0,i.xk)())),Ft=((0,i.VP)(d.QP.SET_GRAPH_NODE_LND,(0,i.xk)()),(0,i.VP)(d.QP.GET_NEW_ADDRESS_LND,(0,i.xk)())),Qn=((0,i.VP)(d.QP.SET_NEW_ADDRESS_LND,(0,i.xk)()),(0,i.VP)(d.QP.SET_CHANNEL_TRANSACTION_LND,(0,i.xk)())),jt=((0,i.VP)(d.QP.SET_CHANNEL_TRANSACTION_RES_LND,(0,i.xk)()),(0,i.VP)(d.QP.GEN_SEED_LND,(0,i.xk)())),wt=((0,i.VP)(d.QP.GEN_SEED_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(d.QP.INIT_WALLET_LND,(0,i.xk)())),Pt=((0,i.VP)(d.QP.INIT_WALLET_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(d.QP.UNLOCK_WALLET_LND,(0,i.xk)())),gn=(0,i.VP)(d.QP.PEER_LOOKUP_LND,(0,i.xk)()),ei=(0,i.VP)(d.QP.CHANNEL_LOOKUP_LND,(0,i.xk)()),vi=(0,i.VP)(d.QP.INVOICE_LOOKUP_LND,(0,i.xk)()),Ni=(0,i.VP)(d.QP.PAYMENT_LOOKUP_LND,(0,i.xk)()),Ri=((0,i.VP)(d.QP.SET_LOOKUP_LND,(0,i.xk)()),(0,i.VP)(d.QP.GET_FORWARDING_HISTORY_LND,(0,i.xk)())),vt=(0,i.VP)(d.QP.SET_FORWARDING_HISTORY_LND,(0,i.xk)()),ee=(0,i.VP)(d.QP.GET_QUERY_ROUTES_LND,(0,i.xk)()),ye=(0,i.VP)(d.QP.SET_QUERY_ROUTES_LND,(0,i.xk)()),ke=(0,i.VP)(d.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),Se=(0,i.VP)(d.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,i.xk)())},9579(Zt,pe,l){"use strict";l.d(pe,{L:()=>ce});var i=l(1747),d=l(1413),v=l(7673),T=l(9437),w=l(6354),e=l(1397),O=l(6977),f=l(3993),u=l(6391),L=l(2462),C=l(4416),B=l(1771),A=l(190),Pe=l(3536),le=l(2615),Ce=l(9330),Ae=l(9640),j=l(8570),W=l(2571),G=l(3202),re=l(1585),xe=l(3694),Ee=l(7879),V=l(7303);let ce=(()=>{var be;class ne{constructor(De,Re,Xe,_e,he,Dt,lt,Le,te,ie){this.actions=De,this.httpClient=Re,this.store=Xe,this.logger=_e,this.commonService=he,this.sessionService=Dt,this.dialog=lt,this.router=Le,this.wsService=te,this.location=ie,this.CHILD_API_URL=C.H$+"/lnd",this.invoicesPageSettings=C.ZC.find(P=>"transactions"===P.pageId)?.tables.find(P=>"invoices"===P.tableId),this.paymentsPageSettings=C.ZC.find(P=>"transactions"===P.pageId)?.tables.find(P=>"payments"===P.tableId),this.flgInitialized=!1,this.unSubs=[new d.B,new d.B],this.infoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_INFO_LND),(0,e.Z)(P=>(this.flgInitialized=!1,this.store.dispatch((0,B.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,B.Jh)()),this.store.dispatch((0,B.mt)({payload:C.MZ.GET_NODE_INFO})),this.store.dispatch((0,A.e8)({payload:{action:"FetchInfo",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.GETINFO_API).pipe((0,O.Q)(this.actions.pipe((0,i.gp)(C.aU.SET_SELECTED_NODE))),(0,w.T)(F=>(this.logger.info(F),F.chains&&F.chains.length&&F.chains[0]&&("string"==typeof F.chains[0]&&F.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof F.chains[0]&&F.chains[0].hasOwnProperty("chain")&&F.chains[0].chain&&F.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,A.e8)({payload:{action:"FetchInfo",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.Jh)()),this.store.dispatch((0,B.xO)({payload:{data:{type:C.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:C.aU.LOGOUT}):F.identity_pubkey?(F.lnImplementation="LND",this.initializeRemainingData(F,P.payload.loadPage),this.store.dispatch((0,A.e8)({payload:{action:"FetchInfo",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.Jh)()),{type:C.QP.SET_INFO_LND,payload:F||{}}):(this.store.dispatch((0,A.e8)({payload:{action:"FetchInfo",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.Jh)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:C.QP.SET_INFO_LND,payload:{}}))),(0,T.W)(F=>{if("string"==typeof F.error.error&&F.error.error.includes("Not Found")||"string"==typeof F.error.error&&F.error.error.includes("wallet locked")||502===F.status&&!F.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",C.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",F);else if("string"==typeof F.error.error&&F.error.error.includes("starting up")&&500===F.status)setTimeout(()=>{this.store.dispatch((0,A.Br)({payload:{loadPage:"HOME"}}))},2e3);else{const ve=this.commonService.extractErrorCode(F),H=503===ve?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(F);this.router.navigate(["/error"],{state:{errorCode:ve,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",C.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:ve,error:H})}return(0,v.of)({type:C.aU.VOID})})))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_PEERS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchPeers",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.PEERS_API).pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchPeers",status:C.wn.COMPLETED}})),{type:C.QP.SET_PEERS_LND,payload:P||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchPeers",C.MZ.NO_SPINNER,"Fetching Peers Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SAVE_NEW_PEER_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.CONNECT_PEER})),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewPeer",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.PEERS_API,{pubkey:P.payload.pubkey,host:P.payload.host,perm:P.payload.perm}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewPeer",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.CONNECT_PEER})),this.store.dispatch((0,A.Qj)({payload:F||[]})),{type:C.QP.NEWLY_ADDED_PEER_LND,payload:{peer:F[0]}})),(0,T.W)(F=>(this.handleErrorWithoutAlert("SaveNewPeer",C.MZ.CONNECT_PEER,"Peer Connection Failed.",F),(0,v.of)({type:C.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.DETACH_PEER_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+C.rl.PEERS_API+"/"+P.payload.pubkey).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.DISCONNECT_PEER})),this.store.dispatch((0,B.UI)({payload:"Peer Disconnected Successfully."})),{type:C.QP.REMOVE_PEER_LND,payload:{pubkey:P.payload.pubkey}})),(0,T.W)(F=>(this.handleErrorWithAlert("DetachPeer",C.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+C.rl.PEERS_API+"/"+P.payload.pubkey,F),(0,v.of)({type:C.aU.VOID})))))))),this.saveNewInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SAVE_NEW_INVOICE_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewInvoice",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.INVOICES_API,{memo:P.payload.memo,value:P.payload.value,private:P.payload.private,expiry:P.payload.expiry,is_amp:P.payload.is_amp}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewInvoice",status:C.wn.COMPLETED}})),this.store.dispatch((0,A.Do)({payload:{num_max_invoices:P.payload.pageSize,reversed:!0}})),P.payload.openModal?(F.memo=P.payload.memo,F.value=P.payload.value,F.expiry=P.payload.expiry,F.private=P.payload.private,F.is_amp=P.payload.is_amp,F.cltv_expiry="144",F.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,B.xO)({payload:{data:{invoice:F,newlyAdded:!0,component:u.H}}}))},200),{type:C.aU.CLOSE_SPINNER,payload:P.payload.uiMessage}):{type:C.QP.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:F.payment_request}})),(0,T.W)(F=>(this.handleErrorWithoutAlert("SaveNewInvoice",P.payload.uiMessage,"Add Invoice Failed.",F),(0,v.of)({type:C.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SAVE_NEW_CHANNEL_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.OPEN_CHANNEL})),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewChannel",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.CHANNELS_API,{node_pubkey:P.payload.selectedPeerPubkey,local_funding_amount:P.payload.fundingAmount,private:P.payload.private,trans_type:P.payload.transType,trans_type_value:P.payload.transTypeValue,spend_unconfirmed:P.payload.spendUnconfirmed,commitment_type:P.payload.commitmentType}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"SaveNewChannel",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.OPEN_CHANNEL})),this.store.dispatch((0,A.DY)()),this.store.dispatch((0,A.$Q)()),this.store.dispatch((0,A.H2)({payload:{uiMessage:C.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:C.QP.FETCH_PENDING_CHANNELS_LND})),(0,T.W)(F=>(this.handleErrorWithoutAlert("SaveNewChannel",C.MZ.OPEN_CHANNEL,"Opening Channel Failed.",F),(0,v.of)({type:C.aU.VOID})))))))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.UPDATE_CHANNEL_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+C.rl.CHANNELS_API+"/chanPolicy",{baseFeeMsat:P.payload.baseFeeMsat,feeRate:P.payload.feeRate,timeLockDelta:P.payload.timeLockDelta,max_htlc_msat:P.payload.maxHtlcMsat,min_htlc_msat:P.payload.minHtlcMsat,chanPoint:P.payload.chanPoint}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,B.UI)("all"===P.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:C.QP.FETCH_CHANNELS_LND})),(0,T.W)(F=>(this.handleErrorWithAlert("UpdateChannels",C.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+C.rl.CHANNELS_API+"/chanPolicy",F),(0,v.of)({type:C.aU.VOID})))))))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.CLOSE_CHANNEL_LND),(0,e.Z)(P=>{this.store.dispatch((0,B.mt)({payload:P.payload.forcibly?C.MZ.FORCE_CLOSE_CHANNEL:C.MZ.CLOSE_CHANNEL}));let F=this.CHILD_API_URL+C.rl.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly;return P.payload.targetConf&&(F=F+"&target_conf="+P.payload.targetConf),P.payload.satPerVByte&&(F=F+"&sat_per_vbyte="+P.payload.satPerVByte),this.httpClient.delete(F).pipe((0,w.T)(ve=>(this.logger.info(ve),this.store.dispatch((0,B.y0)({payload:P.payload.forcibly?C.MZ.FORCE_CLOSE_CHANNEL:C.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,A.$Q)()),this.store.dispatch((0,A.ar)()),this.store.dispatch((0,A.H2)({payload:{uiMessage:C.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:ve.message}})),{type:C.aU.VOID})),(0,T.W)(ve=>(this.handleErrorWithAlert("CloseChannel",P.payload.forcibly?C.MZ.FORCE_CLOSE_CHANNEL:C.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+C.rl.CHANNELS_API+"/"+P.payload.channelPoint+"?force="+P.payload.forcibly,ve),(0,v.of)({type:C.aU.VOID}))))}))),this.backupChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.BACKUP_CHANNELS_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"BackupChannels",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"BackupChannels",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:P.payload.uiMessage})),this.store.dispatch((0,B.UI)({payload:P.payload.showMessage+" "+F.message})),{type:C.QP.BACKUP_CHANNELS_RES_LND,payload:F.message})),(0,T.W)(F=>(this.handleErrorWithAlert("BackupChannels",P.payload.uiMessage,P.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/"+P.payload.channelPoint,F),(0,v.of)({type:C.aU.VOID})))))))),this.verifyChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.VERIFY_CHANNEL_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,A.e8)({payload:{action:"VerifyChannel",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,{}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"VerifyChannel",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,B.UI)({payload:F.message})),{type:C.QP.VERIFY_CHANNEL_RES_LND,payload:F.message})),(0,T.W)(F=>(this.handleErrorWithAlert("VerifyChannel",C.MZ.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/verify/"+P.payload.channelPoint,F),(0,v.of)({type:C.aU.VOID})))))))),this.restoreChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.RESTORE_CHANNELS_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,A.e8)({payload:{action:"RestoreChannels",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,{}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"RestoreChannels",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,B.UI)({payload:F.message})),this.store.dispatch((0,A.t5)({payload:F.list})),{type:C.QP.RESTORE_CHANNELS_RES_LND,payload:F.message})),(0,T.W)(F=>(this.handleErrorWithAlert("RestoreChannels",C.MZ.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/restore/"+P.payload.channelPoint,F),(0,v.of)({type:C.aU.VOID})))))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_FEES_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchFees",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.FEES_API))),(0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchFees",status:C.wn.COMPLETED}})),P.forwarding_events_history&&(this.store.dispatch((0,A.kv)({payload:P.forwarding_events_history})),delete P.forwarding_events_history),{type:C.QP.SET_FEES_LND,payload:P||{}})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchFees",C.MZ.NO_SPINNER,"Fetching Fees Failed.",P),(0,v.of)({type:C.aU.VOID}))))),this.balanceBlockchainFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_BLOCKCHAIN_BALANCE_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchBalance",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.BALANCE_API))),(0,w.T)(P=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchBalance",status:C.wn.COMPLETED}})),this.logger.info(P),{type:C.QP.SET_BLOCKCHAIN_BALANCE_LND,payload:P||{total_balance:""}})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchBalance",C.MZ.NO_SPINNER,"Fetching Blockchain Balance Failed.",P),(0,v.of)({type:C.aU.VOID}))))),this.networkInfoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_NETWORK_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchNetwork",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.NETWORK_API+"/info"))),(0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchNetwork",status:C.wn.COMPLETED}})),{type:C.QP.SET_NETWORK_LND,payload:P||{}})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchNetwork",C.MZ.NO_SPINNER,"Fetching Network Failed.",P),(0,v.of)({type:C.aU.VOID}))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchChannels",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.CHANNELS_API).pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchChannels",status:C.wn.COMPLETED}})),{type:C.QP.SET_CHANNELS_LND,payload:P.channels||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchChannels",C.MZ.NO_SPINNER,"Fetching Channels Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.channelsPendingFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_PENDING_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchPendingChannels",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.CHANNELS_API+"/pending").pipe((0,w.T)(P=>{this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchPendingChannels",status:C.wn.COMPLETED}}));const F={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return P&&(F.total_limbo_balance=P.total_limbo_balance,P.pending_closing_channels&&(F.closing.num_channels=P.pending_closing_channels.length,F.total_channels=F.total_channels+P.pending_closing_channels.length,P.pending_closing_channels.forEach(ve=>{F.closing.limbo_balance=+F.closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),P.pending_force_closing_channels&&(F.force_closing.num_channels=P.pending_force_closing_channels.length,F.total_channels=F.total_channels+P.pending_force_closing_channels.length,P.pending_force_closing_channels.forEach(ve=>{F.force_closing.limbo_balance=+F.force_closing.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),P.pending_open_channels&&(F.open.num_channels=P.pending_open_channels.length,F.total_channels=F.total_channels+P.pending_open_channels.length,P.pending_open_channels.forEach(ve=>{F.open.limbo_balance=+F.open.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)})),P.waiting_close_channels&&(F.waiting_close.num_channels=P.waiting_close_channels.length,F.total_channels=F.total_channels+P.waiting_close_channels.length,P.waiting_close_channels.forEach(ve=>{F.waiting_close.limbo_balance=+F.waiting_close.limbo_balance+(ve.channel.local_balance?+ve.channel.local_balance:0)}))),{type:C.QP.SET_PENDING_CHANNELS_LND,payload:P?{pendingChannels:P,pendingChannelsSummary:F}:{pendingChannels:{},pendingChannelsSummary:F}}}),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchPendingChannels",C.MZ.NO_SPINNER,"Fetching Pending Channels Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.channelsClosedFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_CLOSED_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchClosedChannels",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.CHANNELS_API+"/closed").pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchClosedChannels",status:C.wn.COMPLETED}})),{type:C.QP.SET_CLOSED_CHANNELS_LND,payload:P.channels||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchClosedChannels",C.MZ.NO_SPINNER,"Fetching Closed Channels Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_INVOICES_LND),(0,e.Z)(P=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchInvoices",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.INVOICES_API+"?num_max_invoices="+(P.payload.num_max_invoices?P.payload.num_max_invoices:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,w.T)($=>(this.logger.info($),this.store.dispatch((0,A.e8)({payload:{action:"FetchInvoices",status:C.wn.COMPLETED}})),P.payload.reversed&&!P.payload.index_offset&&($.total_invoices=+($.last_index_offset||0)),{type:C.QP.SET_INVOICES_LND,payload:$})),(0,T.W)($=>(this.handleErrorWithoutAlert("FetchInvoices",C.MZ.NO_SPINNER,"Fetching Invoices Failed.",$),(0,v.of)({type:C.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_TRANSACTIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchTransactions",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.TRANSACTIONS_API))),(0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchTransactions",status:C.wn.COMPLETED}})),{type:C.QP.SET_TRANSACTIONS_LND,payload:P||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchTransactions",C.MZ.NO_SPINNER,"Fetching Transactions Failed.",P),(0,v.of)({type:C.aU.VOID}))))),this.utxosFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_UTXOS_LND),(0,f.E)(this.store.select(Pe.pI)),(0,e.Z)(([P,F])=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchUTXOs",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.WALLET_API+"/getUTXOs?max_confs="+(F&&F.block_height?F.block_height:1e9)))),(0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchUTXOs",status:C.wn.COMPLETED}})),{type:C.QP.SET_UTXOS_LND,payload:P||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchUTXOs",C.MZ.NO_SPINNER,"Fetching UTXOs Failed.",P),(0,v.of)({type:C.aU.VOID}))))),this.paymentsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_PAYMENTS_LND),(0,e.Z)(P=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchPayments",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.PAYMENTS_API+"?max_payments="+(P.payload.max_payments?P.payload.max_payments:100)+"&index_offset="+(P.payload.index_offset?P.payload.index_offset:0)+"&reversed="+(!!P.payload.reversed&&P.payload.reversed)).pipe((0,w.T)($=>(this.logger.info($),this.store.dispatch((0,A.e8)({payload:{action:"FetchPayments",status:C.wn.COMPLETED}})),this.commonService.sortByKey($.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:C.QP.SET_PAYMENTS_LND,payload:$})),(0,T.W)($=>(this.handleErrorWithoutAlert("FetchPayments",C.MZ.NO_SPINNER,"Fetching Payments Failed.",$),(0,v.of)({type:C.QP.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SEND_PAYMENT_LND),(0,e.Z)(P=>{this.store.dispatch((0,B.mt)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"SendPayment",status:C.wn.INITIATED}}));const F=JSON.parse(JSON.stringify(P.payload));return delete F.uiMessage,delete F.fromDialog,this.httpClient.post(this.CHILD_API_URL+C.rl.PAYMENTS_API+"/send",F).pipe((0,w.T)(ve=>{if(this.logger.info(ve),this.store.dispatch((0,B.y0)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"SendPayment",status:C.wn.COMPLETED}})),ve.payment_error)return P.payload.allow_self_payment?(this.store.dispatch((0,A.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:C.QP.SEND_PAYMENT_STATUS_LND,payload:ve}):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ve.payment_error):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.rl.CHANNELS_API+"/transactions",ve.payment_error),{type:C.aU.VOID});if(this.store.dispatch((0,B.y0)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"SendPayment",status:C.wn.COMPLETED}})),this.store.dispatch((0,A.$Q)()),this.store.dispatch((0,A.CK)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),P.payload.allow_self_payment)this.store.dispatch((0,A.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let H="Payment Sent Successfully.";ve.payment_route&&ve.payment_route.total_fees_msat&&(H="Payment sent successfully with the total fee "+ve.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,B.UI)({payload:H}))}return{type:C.QP.SEND_PAYMENT_STATUS_LND,payload:ve}}),(0,T.W)(ve=>(this.logger.error("Error: "+JSON.stringify(ve)),P.payload.allow_self_payment?(this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ve),this.store.dispatch((0,A.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,v.of)({type:C.QP.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(ve)}})):(P.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed.",ve):this.handleErrorWithAlert("SendPayment",P.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+C.rl.CHANNELS_API+"/transactions",ve),(0,v.of)({type:C.aU.VOID})))))}))),this.graphNodeFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_GRAPH_NODE_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,A.e8)({payload:{action:"FetchGraphNode",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.NETWORK_API+"/node/"+P.payload.pubkey).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,A.e8)({payload:{action:"FetchGraphNode",status:C.wn.COMPLETED}})),{type:C.QP.SET_GRAPH_NODE_LND,payload:F&&F.node?{node:F.node}:{node:null}})),(0,T.W)(F=>(this.handleErrorWithoutAlert("FetchGraphNode",C.MZ.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",F),(0,v.of)({type:C.aU.VOID})))))))),this.setGraphNode=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_GRAPH_NODE_LND),(0,w.T)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GET_NEW_ADDRESS_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+C.rl.NEW_ADDRESS_API+"?type="+P.payload.addressId).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.GENERATE_NEW_ADDRESS})),{type:C.QP.SET_NEW_ADDRESS_LND,payload:F&&F.address?F.address:{}})),(0,T.W)(F=>(this.handleErrorWithAlert("GetNewAddress",C.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+C.rl.NEW_ADDRESS_API+"?type="+P.payload.addressId,F),(0,v.of)({type:C.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_NEW_ADDRESS_LND),(0,w.T)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_CHANNEL_TRANSACTION_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.SEND_FUNDS})),this.store.dispatch((0,A.e8)({payload:{action:"SetChannelTransaction",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.TRANSACTIONS_API,{amount:P.payload.amount,address:P.payload.address,sendAll:P.payload.sendAll,fees:P.payload.fees,blocks:P.payload.blocks}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"SetChannelTransaction",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.SEND_FUNDS})),this.store.dispatch((0,A.mh)()),this.store.dispatch((0,A.DY)()),this.store.dispatch((0,A.$Q)()),{type:C.QP.SET_CHANNEL_TRANSACTION_RES_LND,payload:F})),(0,T.W)(F=>(this.handleErrorWithoutAlert("SetChannelTransaction",C.MZ.SEND_FUNDS,"Sending Fund Failed.",F),(0,v.of)({type:C.aU.VOID})))))))),this.fetchForwardingHistory=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GET_FORWARDING_HISTORY_LND),(0,e.Z)(P=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchForwardingHistory",status:C.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+C.rl.SWITCH_API,{num_max_events:P.payload.num_max_events,index_offset:P.payload.index_offset,end_time:P.payload.end_time,start_time:P.payload.start_time}).pipe((0,w.T)(ve=>(this.logger.info(ve),this.store.dispatch((0,A.e8)({payload:{action:"FetchForwardingHistory",status:C.wn.COMPLETED}})),{type:C.QP.SET_FORWARDING_HISTORY_LND,payload:ve})),(0,T.W)(ve=>(this.handleErrorWithAlert("FetchForwardingHistory",C.MZ.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+C.rl.SWITCH_API,ve),(0,v.of)({type:C.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GET_QUERY_ROUTES_LND),(0,e.Z)(P=>{let F=this.CHILD_API_URL+C.rl.NETWORK_API+"/routes/"+P.payload.destPubkey+"/"+P.payload.amount;return P.payload.outgoingChanId&&(F=F+"?outgoing_chan_id="+P.payload.outgoingChanId),this.httpClient.get(F).pipe((0,w.T)(ve=>(this.logger.info(ve),{type:C.QP.SET_QUERY_ROUTES_LND,payload:ve})),(0,T.W)(ve=>(this.store.dispatch((0,A.Hm)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",C.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+C.rl.NETWORK_API,ve),(0,v.of)({type:C.aU.VOID}))))}))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_QUERY_ROUTES_LND),(0,w.T)(P=>P.payload)),{dispatch:!1}),this.genSeed=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GEN_SEED_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+C.rl.WALLET_API+"/genseed/"+P.payload).pipe((0,w.T)(F=>(this.logger.info("Generated GenSeed!"),this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.GEN_SEED})),{type:C.QP.GEN_SEED_RESPONSE_LND,payload:F.cipher_seed_mnemonic})),(0,T.W)(F=>(this.handleErrorWithAlert("GenSeed",C.MZ.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+C.rl.WALLET_API+"/genseed/"+P.payload,F),(0,v.of)({type:C.aU.VOID})))))))),this.updateSelNodeOptions=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.UPDATE_SELECTED_NODE_OPTIONS),(0,e.Z)(()=>this.httpClient.get(this.CHILD_API_URL+C.rl.WALLET_API+"/updateSelNodeOptions").pipe((0,w.T)(P=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(P),{type:C.aU.VOID})),(0,T.W)(P=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",C.MZ.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",P),(0,v.of)({type:C.aU.VOID}))))))),this.genSeedResponse=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GEN_SEED_RESPONSE_LND),(0,w.T)(P=>P.payload)),{dispatch:!1}),this.initWalletRes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.INIT_WALLET_RESPONSE_LND),(0,w.T)(P=>P.payload)),{dispatch:!1}),this.initWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.INIT_WALLET_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.rl.WALLET_API+"/wallet/initwallet",{wallet_password:P.payload.pwd,cipher_seed_mnemonic:P.payload.cipher?P.payload.cipher:"",aezeed_passphrase:P.payload.passphrase?P.payload.passphrase:""}).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.INITIALIZE_WALLET})),{type:C.QP.INIT_WALLET_RESPONSE_LND,payload:F})),(0,T.W)(F=>(this.handleErrorWithAlert("InitWallet",C.MZ.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+C.rl.WALLET_API+"/initwallet",F),(0,v.of)({type:C.aU.VOID})))))))),this.unlockWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.UNLOCK_WALLET_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+C.rl.WALLET_API+"/wallet/unlockwallet",{wallet_password:P.payload.pwd}).pipe((0,w.T)(F=>(this.logger.info(F),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,B.y0)({payload:C.MZ.UNLOCK_WALLET})),this.store.dispatch((0,B.mt)({payload:C.MZ.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,B.y0)({payload:C.MZ.WAIT_SYNC_NODE})),this.store.dispatch((0,A.Br)({payload:{loadPage:"HOME"}}))},5e3),{type:C.aU.VOID})),(0,T.W)(F=>(this.handleErrorWithAlert("UnlockWallet",C.MZ.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+C.rl.WALLET_API+"/unlockwallet",F),(0,v.of)({type:C.aU.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.PEER_LOOKUP_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.SEARCHING_NODE})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.NETWORK_API+"/node/"+P.payload).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.SEARCHING_NODE})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.COMPLETED}})),{type:C.QP.SET_LOOKUP_LND,payload:F})),(0,T.W)(F=>(this.handleErrorWithAlert("Lookup",C.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+C.rl.NETWORK_API+"/node/"+P.payload,F),(0,v.of)({type:C.aU.VOID})))))))),this.channelLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.CHANNEL_LOOKUP_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.NETWORK_API+"/edge/"+P.payload.channelID).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:P.payload.uiMessage})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.COMPLETED}})),{type:C.QP.SET_LOOKUP_LND,payload:F})),(0,T.W)(F=>(this.handleErrorWithAlert("Lookup",P.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+C.rl.NETWORK_API+"/edge/"+P.payload.channelID,F),(0,v.of)({type:C.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.INVOICE_LOOKUP_LND),(0,e.Z)(P=>{this.store.dispatch((0,B.mt)({payload:C.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.INITIATED}}));let F=this.CHILD_API_URL+C.rl.INVOICES_API+"/lookup";return F=P.payload.paymentAddress&&""!==P.payload.paymentAddress?F+"?payment_addr="+P.payload.paymentAddress:F+"?payment_hash="+P.payload.paymentHash,this.httpClient.get(F).pipe((0,w.T)(ve=>(this.logger.info(ve),this.store.dispatch((0,B.y0)({payload:C.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.COMPLETED}})),this.store.dispatch((0,A.Dq)({payload:ve})),{type:C.QP.SET_LOOKUP_LND,payload:ve})),(0,T.W)(ve=>(this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",ve),P.payload.openSnackBar&&this.store.dispatch((0,B.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,v.of)({type:C.QP.SET_LOOKUP_LND,payload:{error:ve}}))))}))),this.paymentLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.PAYMENT_LOOKUP_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.PAYMENTS_API+"/lookup/"+P.payload).pipe((0,w.T)(F=>(this.logger.info(F),this.store.dispatch((0,B.y0)({payload:C.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.COMPLETED}})),this.store.dispatch((0,A._$)({payload:F})),{type:C.QP.SET_LOOKUP_LND,payload:F})),(0,T.W)(F=>(this.store.dispatch((0,A.e8)({payload:{action:"Lookup",status:C.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",C.MZ.SEARCHING_PAYMENT,"Payment Lookup Failed",F),(0,v.of)({type:C.QP.SET_LOOKUP_LND,payload:{error:F}})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_LOOKUP_LND),(0,w.T)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.RESTORE_CHANNELS_LIST_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"RestoreChannelsList",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API+"/restore/list").pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"RestoreChannelsList",status:C.wn.COMPLETED}})),{type:C.QP.SET_RESTORE_CHANNELS_LIST_LND,payload:P||{all_restore_exists:!1,files:[]}})),(0,T.W)(P=>(this.handleErrorWithAlert("RestoreChannelsList",C.MZ.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+C.rl.CHANNELS_BACKUP_API,P),(0,v.of)({type:C.aU.VOID})))))))),this.setRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SET_RESTORE_CHANNELS_LIST_LND),(0,w.T)(P=>(this.logger.info(P.payload),P.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchLightningTransactions",status:C.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+C.rl.PAYMENTS_API+"/alltransactions").pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchLightningTransactions",status:C.wn.COMPLETED}})),{type:C.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:P})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchLightningTransactions",C.MZ.NO_SPINNER,"Fetching All Lightning Transaction Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.pageSettingsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.FETCH_PAGE_SETTINGS_LND),(0,e.Z)(()=>(this.store.dispatch((0,A.e8)({payload:{action:"FetchPageSettings",status:C.wn.INITIATED}})),this.httpClient.get(C.rl.PAGE_SETTINGS_API).pipe((0,w.T)(P=>(this.logger.info(P),this.store.dispatch((0,A.e8)({payload:{action:"FetchPageSettings",status:C.wn.COMPLETED}})),this.invoicesPageSettings=P&&Object.keys(P).length>0?P.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId):C.ZC.find(F=>"transactions"===F.pageId)?.tables.find(F=>"invoices"===F.tableId),this.paymentsPageSettings=P&&Object.keys(P).length>0?P.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId):C.ZC.find(F=>"transactions"===F.pageId)?.tables.find(F=>"payments"===F.tableId),{type:C.QP.SET_PAGE_SETTINGS_LND,payload:P||[]})),(0,T.W)(P=>(this.handleErrorWithoutAlert("FetchPageSettings",C.MZ.NO_SPINNER,"Fetching Page Settings Failed.",P),(0,v.of)({type:C.aU.VOID})))))))),this.savePageSettings=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(C.QP.SAVE_PAGE_SETTINGS_LND),(0,e.Z)(P=>(this.store.dispatch((0,B.mt)({payload:C.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,A.e8)({payload:{action:"SavePageSettings",status:C.wn.INITIATED}})),this.httpClient.post(C.rl.PAGE_SETTINGS_API,P.payload).pipe((0,w.T)(F=>{this.logger.info(F),this.store.dispatch((0,A.e8)({payload:{action:"SavePageSettings",status:C.wn.COMPLETED}})),this.store.dispatch((0,B.y0)({payload:C.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,B.UI)({payload:"Page Layout Updated Successfully!"}));const ve=(F.find($=>"transactions"===$.pageId)?.tables.find($=>"invoices"===$.tableId)||C.ZC.find($=>"transactions"===$.pageId)?.tables.find($=>"invoices"===$.tableId)).recordsPerPage,H=(F.find($=>"transactions"===$.pageId)?.tables.find($=>"payments"===$.tableId)||C.ZC.find($=>"transactions"===$.pageId)?.tables.find($=>"payments"===$.tableId)).recordsPerPage;return this.invoicesPageSettings&&ve!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=ve,this.store.dispatch((0,A.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&H!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=H),{type:C.QP.SET_PAGE_SETTINGS_LND,payload:F||[]}}),(0,T.W)(F=>(this.handleErrorWithAlert("SavePageSettings",C.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",C.rl.PAGE_SETTINGS_API,F),(0,v.of)({type:C.aU.VOID})))))))),this.store.select(Pe.ru).pipe((0,O.Q)(this.unSubs[0])).subscribe(P=>{P.FetchInfo.status!==C.wn.COMPLETED&&P.FetchInfo.status!==C.wn.ERROR||P.FetchFees.status!==C.wn.COMPLETED&&P.FetchFees.status!==C.wn.ERROR||P.FetchBalanceBlockchain.status!==C.wn.COMPLETED&&P.FetchBalanceBlockchain.status!==C.wn.ERROR||P.FetchAllChannels.status!==C.wn.COMPLETED&&P.FetchAllChannels.status!==C.wn.ERROR||P.FetchPendingChannels.status!==C.wn.COMPLETED&&P.FetchPendingChannels.status!==C.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,B.y0)({payload:C.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,O.Q)(this.unSubs[1])).subscribe(P=>{this.logger.info("Received new message from the service: "+JSON.stringify(P)),P&&(P.type===C.o1.INVOICE?(this.logger.info(P),P&&P.result&&P.result.payment_request&&this.store.dispatch((0,A.Dq)({payload:P.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(P)))})}initializeRemainingData(De,Re){this.sessionService.setItem("lndUnlocked","true");const Xe={identity_pubkey:De.identity_pubkey,alias:De.alias,testnet:De.testnet,chains:De.chains,uris:De.uris,version:De.version?De.version.split(" ")[0]:""};this.store.dispatch((0,B.mt)({payload:C.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,B.Fl)({payload:Xe}));let _e=this.location.path();_e.includes("/cln/")?_e=_e?.replace("/cln/","/lnd/"):_e.includes("/ecl/")&&(_e=_e?.replace("/ecl/","/lnd/")),(_e.includes("/unlock")||_e.includes("/login")||_e.includes("/error")||""===_e||"HOME"===Re||_e.includes("?access-key="))&&(_e="/lnd/home"),this.router.navigate([_e]),this.store.dispatch((0,A.DY)()),this.store.dispatch((0,A.$Q)()),this.store.dispatch((0,A.ar)()),this.store.dispatch((0,A.pL)()),this.store.dispatch((0,A.Gy)()),this.store.dispatch((0,A.tf)()),this.store.dispatch((0,A.yp)()),this.store.dispatch((0,A.CK)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,A.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(De,Re,Xe,_e){this.logger.error("ERROR IN: "+De+"\n"+JSON.stringify(_e)),401===_e.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,B.Jh)()),this.store.dispatch((0,B.ri)({payload:"Authentication Failed: "+JSON.stringify(_e.error)}))):(this.store.dispatch((0,B.y0)({payload:Re})),this.store.dispatch((0,A.e8)({payload:{action:De,status:C.wn.ERROR,statusCode:_e.status.toString(),message:this.commonService.extractErrorMessage(_e,Xe)}})))}handleErrorWithAlert(De,Re,Xe,_e,he){if(this.logger.error(he),401===he.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,B.Jh)()),this.store.dispatch((0,B.ri)({payload:"Authentication Failed: "+JSON.stringify(he.error)}));else{this.store.dispatch((0,B.y0)({payload:Re}));const Dt=this.commonService.extractErrorMessage(he);this.store.dispatch((0,B.xO)({payload:{data:{type:"ERROR",alertTitle:Xe,message:{code:he.status,message:Dt,URL:_e},component:L.f}}})),this.store.dispatch((0,A.e8)({payload:{action:De,status:C.wn.ERROR,statusCode:he.status.toString(),message:Dt,URL:_e}}))}}ngOnDestroy(){this.unSubs.forEach(De=>{De.next(null),De.complete()})}static#e=be=()=>(this.\u0275fac=function(Re){return new(Re||ne)(le.KVO(i.En),le.KVO(Ce.Qq),le.KVO(Ae.il),le.KVO(j.gP),le.KVO(W.h),le.KVO(G.Q),le.KVO(re.bZ),le.KVO(xe.Ix),le.KVO(Ee.I),le.KVO(V.aZ))},this.\u0275prov=le.jDH({token:ne,factory:ne.\u0275fac}))}return be(),ne})()},3536(Zt,pe,l){"use strict";l.d(pe,{$7:()=>Ae,$G:()=>v,BM:()=>A,Bw:()=>Ce,Ie:()=>O,KT:()=>f,Uv:()=>le,ah:()=>W,eO:()=>xe,gN:()=>C,gj:()=>Ee,n_:()=>re,oR:()=>u,os:()=>L,pI:()=>T,rN:()=>B,ru:()=>e,tA:()=>G});var i=l(9640);const d=(0,i.UX)("lnd"),v=(0,i.Mz)(d,V=>({pageSettings:V.pageSettings,apiCallStatus:V.apisCallStatus.FetchPageSettings})),T=(0,i.Mz)(d,V=>V.information),e=((0,i.Mz)(d,V=>({information:V.information,apiCallStatus:V.apisCallStatus.FetchInfo})),(0,i.Mz)(d,V=>V.apisCallStatus)),O=(0,i.Mz)(d,V=>({forwardingHistory:V.forwardingHistory,apiCallStatus:V.apisCallStatus.FetchForwardingHistory})),f=(0,i.Mz)(d,V=>({listPayments:V.listPayments,apiCallStatus:V.apisCallStatus.FetchPayments})),u=(0,i.Mz)(d,V=>({fees:V.fees,apiCallStatus:V.apisCallStatus.FetchFees})),L=(0,i.Mz)(d,V=>({peers:V.peers,apiCallStatus:V.apisCallStatus.FetchPeers})),C=(0,i.Mz)(d,V=>({transactions:V.transactions,apiCallStatus:V.apisCallStatus.FetchTransactions})),B=(0,i.Mz)(d,V=>({listInvoices:V.listInvoices,apiCallStatus:V.apisCallStatus.FetchInvoices})),A=(0,i.Mz)(d,V=>({channels:V.channels,channelsSummary:V.channelsSummary,lightningBalance:V.lightningBalance,apiCallStatus:V.apisCallStatus.FetchAllChannels})),le=((0,i.Mz)(d,V=>({channelsSummary:V.channelsSummary,pendingChannels:V.pendingChannels,closedChannels:V.closedChannels,apiCallStatus:V.apisCallStatus.FetchAllChannels})),(0,i.Mz)(d,V=>({pendingChannels:V.pendingChannels,pendingChannelsSummary:V.pendingChannelsSummary,apiCallStatus:V.apisCallStatus.FetchPendingChannels}))),Ce=(0,i.Mz)(d,V=>({closedChannels:V.closedChannels,apiCallStatus:V.apisCallStatus.FetchClosedChannels})),Ae=(0,i.Mz)(d,V=>({blockchainBalance:V.blockchainBalance,apiCallStatus:V.apisCallStatus.FetchBalanceBlockchain})),W=((0,i.Mz)(d,V=>({lightningBalance:V.lightningBalance,apiCallStatus:V.apisCallStatus.FetchAllChannels})),(0,i.Mz)(d,V=>({utxos:V.utxos,apiCallStatus:V.apisCallStatus.FetchUTXOs}))),G=(0,i.Mz)(d,V=>({networkInfo:V.networkInfo,apiCallStatus:V.apisCallStatus.FetchNetwork})),re=(0,i.Mz)(d,V=>({allLightningTransactions:V.allLightningTransactions,apiCallStatus:V.apisCallStatus.FetchLightningTransactions})),xe=(0,i.Mz)(d,V=>({channels:V.channels,pendingChannels:V.pendingChannels,closedChannels:V.closedChannels})),Ee=(0,i.Mz)(d,V=>({information:V.information,apiCallStatus:V.apisCallStatus.FetchInfo}))},6391(Zt,pe,l){"use strict";l.d(pe,{H:()=>Qn});var i=l(1585),d=l(5383),v=l(1413),T=l(6977),w=l(4416),e=l(3536),O=l(2615),f=l(3664),u=l(8570),L=l(2571),C=l(5416),B=l(9640),A=l(2200),Pe=l(60),le=l(8834),Ce=l(5596),Ae=l(9454),j=l(2629),W=l(1997),G=l(9183),re=l(2920),xe=l(6038),Ee=l(455),V=l(8288),ce=l(9157),be=l(9587);const ne=["scrollContainer"],J=h=>({"display-none":h}),De=h=>({"xs-scroll-y":h}),Re=h=>({"h-50":h}),Xe=()=>[],_e=h=>({"mr-0":h});function he(h,jt){if(1&h&&f.nrm(0,"qr-code",33),2&h){const Ue=f.XpG();f.Y8G("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)}}function Dt(h,jt){1&h&&(f.j41(0,"span",34),f.EFF(1,"N/A"),f.k0s())}function lt(h,jt){if(1&h&&f.nrm(0,"qr-code",33),2&h){const Ue=f.XpG();f.Y8G("value",null==Ue.invoice?null:Ue.invoice.payment_request)("size",Ue.qrWidth)}}function Le(h,jt){1&h&&(f.j41(0,"span",35),f.EFF(1,"QR Code Not Applicable"),f.k0s())}function te(h,jt){1&h&&f.nrm(0,"mat-divider",24),2&h&&f.Y8G("inset",!0)}function ie(h,jt){1&h&&(f.qex(0),f.EFF(1," (zero amount) "),f.bVm())}function P(h,jt){1&h&&f.nrm(0,"span",41)}function F(h,jt){if(1&h&&(f.j41(0,"div",37)(1,"div",38)(2,"span",39),f.EFF(3),f.nI1(4,"number"),f.k0s(),f.DNE(5,P,1,0,"span",40),f.k0s()()),2&h){const Ue=f.XpG(2);f.R7$(3),f.SpI("",f.bMT(4,2,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats"),f.R7$(2),f.Y8G("ngForOf",f.lJ4(4,Xe).constructor(35))}}function ve(h,jt){if(1&h&&(f.j41(0,"div"),f.EFF(1),f.nI1(2,"number"),f.k0s()),2&h){const Ue=f.XpG(2);f.R7$(),f.SpI("",f.bMT(2,1,null==Ue.invoice?null:Ue.invoice.amt_paid_sat)," Sats")}}function H(h,jt){if(1&h&&(f.qex(0),f.DNE(1,F,6,5,"div",36)(2,ve,3,3,"div",23),f.bVm()),2&h){const Ue=f.XpG();f.R7$(),f.Y8G("ngIf",Ue.flgInvoicePaid),f.R7$(),f.Y8G("ngIf",!Ue.flgInvoicePaid)}}function $(h,jt){1&h&&(f.j41(0,"span"),f.EFF(1,"-"),f.k0s())}function Ke(h,jt){1&h&&f.nrm(0,"mat-spinner",43),2&h&&f.Y8G("diameter",20)}function Vt(h,jt){if(1&h&&(f.qex(0),f.DNE(1,$,2,0,"span",23)(2,Ke,1,1,"mat-spinner",42),f.bVm()),2&h){const Ue=f.XpG();f.R7$(),f.Y8G("ngIf","OPEN"!==(null==Ue.invoice?null:Ue.invoice.state)||!Ue.flgVersionCompatible),f.R7$(),f.Y8G("ngIf","OPEN"===(null==Ue.invoice?null:Ue.invoice.state)&&Ue.flgVersionCompatible)}}function St(h,jt){1&h&&f.eu8(0)}function ot(h,jt){if(1&h&&(f.j41(0,"div"),f.DNE(1,St,1,0,"ng-container",44),f.k0s()),2&h){f.XpG();const Ue=f.sdS(79);f.R7$(),f.Y8G("ngTemplateOutlet",Ue)}}function nt(h,jt){if(1&h){const Ue=f.RV6();f.j41(0,"div",45)(1,"button",46),f.bIt("click",function(){O.eBV(Ue);const pt=f.XpG();return O.Njj(pt.onScrollDown())}),f.j41(2,"mat-icon",47),f.EFF(3,"arrow_downward"),f.k0s()()()}}function ht(h,jt){1&h&&(f.j41(0,"p"),f.EFF(1,"Show Advanced"),f.k0s())}function oe(h,jt){1&h&&(f.j41(0,"p"),f.EFF(1,"Hide Advanced"),f.k0s())}function Ye(h,jt){if(1&h){const Ue=f.RV6();f.j41(0,"button",48),f.bIt("copied",function(pt){O.eBV(Ue);const Pt=f.XpG();return O.Njj(Pt.onCopyPayment(pt))}),f.EFF(1),f.k0s()}if(2&h){const Ue=f.XpG();f.Y8G("payload",null==Ue.invoice?null:Ue.invoice.payment_request),f.R7$(),f.JRh(Ue.screenSize===Ue.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function fe(h,jt){if(1&h){const Ue=f.RV6();f.j41(0,"button",49),f.bIt("click",function(){O.eBV(Ue);const pt=f.XpG();return O.Njj(pt.onClose())}),f.EFF(1,"OK"),f.k0s()}}function Qe(h,jt){if(1&h&&f.nrm(0,"span",64),2&h){const Ue=f.XpG(4);f.Y8G("ngClass",f.eq3(1,_e,Ue.screenSize===Ue.screenSizeEnum.XS))}}function gt(h,jt){if(1&h&&f.nrm(0,"span",65),2&h){const Ue=f.XpG(4);f.Y8G("ngClass",f.eq3(1,_e,Ue.screenSize===Ue.screenSizeEnum.XS))}}function Gt(h,jt){if(1&h&&f.nrm(0,"span",66),2&h){const Ue=f.XpG(4);f.Y8G("ngClass",f.eq3(1,_e,Ue.screenSize===Ue.screenSizeEnum.XS))}}function rt(h,jt){if(1&h&&(f.j41(0,"div",53)(1,"div",58)(2,"span",59),f.DNE(3,Qe,1,3,"span",60)(4,gt,1,3,"span",61)(5,Gt,1,3,"span",62),f.EFF(6),f.k0s(),f.j41(7,"span",63),f.EFF(8),f.nI1(9,"number"),f.k0s()(),f.nrm(10,"mat-divider",24),f.k0s()),2&h){const Ue=jt.$implicit,wt=f.XpG(3);f.R7$(3),f.Y8G("ngIf","SETTLED"===Ue.state),f.R7$(),f.Y8G("ngIf","ACCEPTED"===Ue.state),f.R7$(),f.Y8G("ngIf","CANCELED"===Ue.state),f.R7$(),f.SpI(" ",Ue.chan_id," "),f.R7$(2),f.JRh(f.i5U(9,6,+Ue.amt_msat/1e3||0,wt.getDecimalFormat(Ue))),f.R7$(2),f.Y8G("inset",!0)}}function cn(h,jt){if(1&h){const Ue=f.RV6();f.j41(0,"div",19)(1,"mat-expansion-panel",51),f.bIt("opened",function(){O.eBV(Ue);const pt=f.XpG(2);return O.Njj(pt.flgOpened=!0)})("closed",function(){O.eBV(Ue);const pt=f.XpG(2);return O.Njj(pt.onExpansionClosed())}),f.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),f.EFF(5,"HTLCs"),f.k0s()()(),f.j41(6,"div",53)(7,"div",54)(8,"span",55),f.EFF(9,"Channel ID"),f.k0s(),f.j41(10,"span",56),f.EFF(11,"Amount (Sats)"),f.k0s()(),f.nrm(12,"mat-divider",24),f.DNE(13,rt,11,9,"div",57),f.k0s()()()}if(2&h){const Ue=f.XpG(2);f.R7$(12),f.Y8G("inset",!0),f.R7$(),f.Y8G("ngForOf",null==Ue.invoice?null:Ue.invoice.htlcs)}}function Ft(h,jt){1&h&&f.nrm(0,"mat-divider",24),2&h&&f.Y8G("inset",!0)}function Sn(h,jt){if(1&h&&(f.nrm(0,"mat-divider",24),f.j41(1,"div",19)(2,"div",25)(3,"h4",21),f.EFF(4,"Preimage"),f.k0s(),f.j41(5,"span",26),f.EFF(6),f.k0s()()(),f.nrm(7,"mat-divider",24),f.j41(8,"div",19)(9,"div",20)(10,"h4",21),f.EFF(11,"State"),f.k0s(),f.j41(12,"span",26),f.EFF(13),f.k0s()(),f.j41(14,"div",20)(15,"h4",21),f.EFF(16,"Expiry"),f.k0s(),f.j41(17,"span",26),f.EFF(18),f.nI1(19,"date"),f.k0s()()(),f.nrm(20,"mat-divider",24),f.j41(21,"div",19)(22,"div",20)(23,"h4",21),f.EFF(24,"Private Routing Hints"),f.k0s(),f.j41(25,"span",26),f.EFF(26),f.k0s()(),f.j41(27,"div",20)(28,"h4",21),f.EFF(29,"AMP Invoice"),f.k0s(),f.j41(30,"span",26),f.EFF(31),f.k0s()()(),f.nrm(32,"mat-divider",24),f.DNE(33,cn,14,2,"div",50)(34,Ft,1,1,"mat-divider",17)),2&h){const Ue=f.XpG();f.Y8G("inset",!0),f.R7$(6),f.JRh((null==Ue.invoice?null:Ue.invoice.r_preimage)||"-"),f.R7$(),f.Y8G("inset",!0),f.R7$(6),f.JRh(null==Ue.invoice?null:Ue.invoice.state),f.R7$(5),f.JRh(f.i5U(19,11,1e3*(+(null==Ue.invoice?null:Ue.invoice.creation_date)+ +(null==Ue.invoice?null:Ue.invoice.expiry)),"dd/MMM/y HH:mm")),f.R7$(2),f.Y8G("inset",!0),f.R7$(6),f.JRh(null!=Ue.invoice&&Ue.invoice.private?"Yes":"No"),f.R7$(5),f.JRh(null!=Ue.invoice&&Ue.invoice.is_amp?"Yes":"No"),f.R7$(),f.Y8G("inset",!0),f.R7$(),f.Y8G("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0),f.R7$(),f.Y8G("ngIf",(null==Ue.invoice?null:Ue.invoice.htlcs)&&(null==Ue.invoice?null:Ue.invoice.htlcs.length)>0)}}let Qn=(()=>{var h;class jt{set container(wt){wt&&(this.scrollContainer=wt)}constructor(wt,pt,Pt,gn,ei,vi){this.dialogRef=wt,this.data=pt,this.logger=Pt,this.commonService=gn,this.snackBar=ei,this.store=vi,this.faReceipt=d.Mf0,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=w.f7,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new v.B,new v.B,new v.B,new v.B,new v.B]}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===w.f7.XS&&(this.qrWidth=220),this.store.select(e.pI).pipe((0,T.Q)(this.unSubs[0])).subscribe(pt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(pt.version,"0.11.0")});const wt=JSON.parse(JSON.stringify(this.invoice));this.store.select(e.rN).pipe((0,T.Q)(this.unSubs[1])).subscribe(pt=>{const Pt=this.invoice?.state,ei=(pt.listInvoices.invoices||[]).find(vi=>vi.r_hash===wt.r_hash)||null;ei&&(this.invoice=ei),Pt!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(pt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(wt){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+wt)}getDecimalFormat(wt){return wt.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(wt=>{wt.next(null),wt.complete()})}static#e=h=()=>(this.\u0275fac=function(pt){return new(pt||jt)(f.rXU(i.CP),f.rXU(i.Vh),f.rXU(u.gP),f.rXU(L.h),f.rXU(C.UG),f.rXU(B.il))},this.\u0275cmp=f.VBU({type:jt,selectors:[["rtl-invoice-information"]],viewQuery:function(pt,Pt){if(1&pt&&f.GBs(ne,5),2&pt){let gn;f.mGM(gn=f.lsd())&&(Pt.container=gn.first)}},standalone:!1,decls:80,vars:49,consts:[["scrollContainer",""],["hideAdvancedText",""],["advancedBlock",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(pt,Pt){if(1&pt){const gn=f.RV6();f.j41(0,"div",3)(1,"div",4),f.DNE(2,he,1,2,"qr-code",5)(3,Dt,2,0,"span",6),f.k0s(),f.j41(4,"div",7)(5,"mat-card-header",8)(6,"div",9),f.nrm(7,"fa-icon",10),f.j41(8,"span",11),f.EFF(9),f.k0s()(),f.j41(10,"button",12),f.bIt("click",function(){return O.eBV(gn),O.Njj(Pt.onClose())}),f.EFF(11,"X"),f.k0s()(),f.j41(12,"mat-card-content",13)(13,"div",14)(14,"div",15),f.DNE(15,lt,1,2,"qr-code",5)(16,Le,2,0,"span",16),f.k0s(),f.DNE(17,te,1,1,"mat-divider",17),f.j41(18,"div",18,0)(20,"div",19)(21,"div",20)(22,"h4",21),f.EFF(23),f.k0s(),f.j41(24,"span",22),f.EFF(25),f.nI1(26,"number"),f.DNE(27,ie,2,0,"ng-container",23),f.k0s()(),f.j41(28,"div",20)(29,"h4",21),f.EFF(30,"Amount Settled"),f.k0s(),f.j41(31,"span",22),f.DNE(32,H,3,2,"ng-container",23)(33,Vt,3,2,"ng-container",23),f.k0s()()(),f.nrm(34,"mat-divider",24),f.j41(35,"div",19)(36,"div",20)(37,"h4",21),f.EFF(38,"Date Created"),f.k0s(),f.j41(39,"span",22),f.EFF(40),f.nI1(41,"date"),f.k0s()(),f.j41(42,"div",20)(43,"h4",21),f.EFF(44,"Date Settled"),f.k0s(),f.j41(45,"span",22),f.EFF(46),f.nI1(47,"date"),f.k0s()()(),f.nrm(48,"mat-divider",24),f.j41(49,"div",19)(50,"div",25)(51,"h4",21),f.EFF(52,"Memo"),f.k0s(),f.j41(53,"span",22),f.EFF(54),f.k0s()()(),f.nrm(55,"mat-divider",24),f.j41(56,"div",19)(57,"div",25)(58,"h4",21),f.EFF(59,"Payment Request"),f.k0s(),f.j41(60,"span",26),f.EFF(61),f.k0s()()(),f.nrm(62,"mat-divider",24),f.j41(63,"div",19)(64,"div",25)(65,"h4",21),f.EFF(66,"Payment Hash"),f.k0s(),f.j41(67,"span",26),f.EFF(68),f.k0s()()(),f.DNE(69,ot,2,1,"div",23),f.k0s()()(),f.DNE(70,nt,4,0,"div",27),f.j41(71,"div",28)(72,"button",29),f.bIt("click",function(){return O.eBV(gn),O.Njj(Pt.onShowAdvanced())}),f.DNE(73,ht,2,0,"p",30)(74,oe,2,0,"ng-template",null,1,f.C5r),f.k0s(),f.DNE(76,Ye,2,2,"button",31)(77,fe,2,0,"button",32),f.k0s()()(),f.DNE(78,Sn,35,14,"ng-template",null,2,f.C5r)}if(2&pt){const gn=f.sdS(75);f.R7$(),f.Y8G("fxLayoutAlign",null!=Pt.invoice&&Pt.invoice.payment_request&&""!==(null==Pt.invoice?null:Pt.invoice.payment_request)?"center start":"center center")("ngClass",f.eq3(41,J,Pt.screenSize===Pt.screenSizeEnum.XS||Pt.screenSize===Pt.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==Pt.invoice?null:Pt.invoice.payment_request)&&""!==(null==Pt.invoice?null:Pt.invoice.payment_request)),f.R7$(),f.Y8G("ngIf",!(null!=Pt.invoice&&Pt.invoice.payment_request)||""===(null==Pt.invoice?null:Pt.invoice.payment_request)),f.R7$(4),f.Y8G("icon",Pt.faReceipt),f.R7$(2),f.JRh(Pt.screenSize===Pt.screenSizeEnum.XS?Pt.newlyAdded?"Created":"Invoice":Pt.newlyAdded?"Invoice Created":"Invoice Information"),f.R7$(3),f.Y8G("ngClass",f.eq3(43,De,Pt.screenSize===Pt.screenSizeEnum.XS)),f.R7$(2),f.Y8G("fxLayoutAlign",null!=Pt.invoice&&Pt.invoice.payment_request&&""!==(null==Pt.invoice?null:Pt.invoice.payment_request)?"center start":"center center")("ngClass",f.eq3(45,J,Pt.screenSize!==Pt.screenSizeEnum.XS&&Pt.screenSize!==Pt.screenSizeEnum.SM)),f.R7$(),f.Y8G("ngIf",(null==Pt.invoice?null:Pt.invoice.payment_request)&&""!==(null==Pt.invoice?null:Pt.invoice.payment_request)),f.R7$(),f.Y8G("ngIf",!(null!=Pt.invoice&&Pt.invoice.payment_request)||""===(null==Pt.invoice?null:Pt.invoice.payment_request)),f.R7$(),f.Y8G("ngIf",Pt.screenSize===Pt.screenSizeEnum.XS||Pt.screenSize===Pt.screenSizeEnum.SM),f.R7$(),f.Y8G("ngClass",f.eq3(47,Re,(null==Pt.invoice?null:Pt.invoice.htlcs)&&(null==Pt.invoice?null:Pt.invoice.htlcs.length)>0&&Pt.showAdvanced)),f.R7$(5),f.JRh(Pt.screenSize===Pt.screenSizeEnum.XS?"Amount":"Amount Requested"),f.R7$(2),f.SpI("",f.bMT(26,33,(null==Pt.invoice?null:Pt.invoice.value)||0)," Sats"),f.R7$(2),f.Y8G("ngIf",!(null!=Pt.invoice&&Pt.invoice.value)||"0"===(null==Pt.invoice?null:Pt.invoice.value)),f.R7$(5),f.Y8G("ngIf",(null==Pt.invoice?null:Pt.invoice.amt_paid_sat)&&"OPEN"!==(null==Pt.invoice?null:Pt.invoice.state)),f.R7$(),f.Y8G("ngIf",!(null!=Pt.invoice&&Pt.invoice.amt_paid_sat)||"0"===(null==Pt.invoice?null:Pt.invoice.amt_paid_sat)),f.R7$(),f.Y8G("inset",!0),f.R7$(6),f.JRh(f.i5U(41,35,1e3*(null==Pt.invoice?null:Pt.invoice.creation_date),"dd/MMM/y HH:mm")),f.R7$(6),f.JRh(0!=+(null==Pt.invoice?null:Pt.invoice.settle_date)?f.i5U(47,38,1e3*+(null==Pt.invoice?null:Pt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),f.R7$(2),f.Y8G("inset",!0),f.R7$(6),f.JRh(null==Pt.invoice?null:Pt.invoice.memo),f.R7$(),f.Y8G("inset",!0),f.R7$(6),f.JRh((null==Pt.invoice?null:Pt.invoice.payment_request)||"N/A"),f.R7$(),f.Y8G("inset",!0),f.R7$(6),f.JRh((null==Pt.invoice?null:Pt.invoice.r_hash)||""),f.R7$(),f.Y8G("ngIf",Pt.showAdvanced),f.R7$(),f.Y8G("ngIf",(null==Pt.invoice?null:Pt.invoice.htlcs)&&(null==Pt.invoice?null:Pt.invoice.htlcs.length)>0&&Pt.showAdvanced&&Pt.flgOpened),f.R7$(3),f.Y8G("ngIf",!Pt.showAdvanced)("ngIfElse",gn),f.R7$(3),f.Y8G("ngIf",(null==Pt.invoice?null:Pt.invoice.payment_request)&&""!==(null==Pt.invoice?null:Pt.invoice.payment_request)),f.R7$(),f.Y8G("ngIf",!(null!=Pt.invoice&&Pt.invoice.payment_request)||""===(null==Pt.invoice?null:Pt.invoice.payment_request))}},dependencies:[A.YU,A.Sq,A.bT,A.T3,Pe.aY,le.$z,le.$0,Ce.m2,Ce.MM,Ae.GK,Ae.Z2,Ae.WN,j.An,W.q,G.LG,re.DJ,re.sA,re.UI,xe.PW,Ee.oV,V.Um,ce.U,be.N,A.QX,A.vh],encapsulation:2}))}return h(),jt})()},1001(Zt,pe,l){"use strict";l.d(pe,{C:()=>d,q:()=>v});var i=l(1514);const d=[(0,i.hZ)("opacityAnimation",[(0,i.kY)(":enter",[(0,i.iF)({opacity:0}),(0,i.i0)("1000ms ease-in",(0,i.iF)({opacity:1}))]),(0,i.kY)(":leave",[(0,i.i0)("0ms",(0,i.iF)({opacity:0}))])])],v=[(0,i.hZ)("fadeIn",[(0,i.kY)("void => *",[]),(0,i.kY)("* => void",[]),(0,i.kY)("* => *",[(0,i.i0)(800,(0,i.i7)([(0,i.iF)({opacity:0,transform:"translateY(100%)"}),(0,i.iF)({opacity:1,transform:"translateY(0%)"})]))])])]},9881(Zt,pe,l){"use strict";l.d(pe,{E:()=>d});var i=l(1514);const d=(0,i.hZ)("routeAnimation",[(0,i.kY)("* => *",[(0,i.P)(":enter, :leave",(0,i.iF)({position:"fixed",width:"100%"}),{optional:!0}),(0,i.Os)([(0,i.P)(":enter",[(0,i.iF)({transform:"translateX(100%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(0%)"}))],{optional:!0}),(0,i.P)(":leave",[(0,i.iF)({transform:"translateX(0%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(-100%)"}))],{optional:!0})])])])},6949(Zt,pe,l){"use strict";l.d(pe,{k:()=>d});var i=l(1514);const d=[(0,i.hZ)("sliderAnimation",[(0,i.wk)("*",(0,i.iF)({transform:"translateX(0)"})),(0,i.kY)("void => backward",[(0,i.iF)({transform:"translateX(-100%"}),(0,i.i0)("800ms")]),(0,i.kY)("backward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(100%)"}))]),(0,i.kY)("void => forward",[(0,i.iF)({transform:"translateX(100%"}),(0,i.i0)("800ms")]),(0,i.kY)("forward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(-100%)"}))])])]},2462(Zt,pe,l){"use strict";l.d(pe,{f:()=>C});var i=l(1585),d=l(3664),v=l(8570),T=l(2200),w=l(8834),e=l(5596),O=l(1997),f=l(2920),u=l(9587);function L(B,A){if(1&B&&(d.j41(0,"p",14),d.EFF(1),d.k0s()),2&B){const Pe=d.XpG();d.R7$(),d.JRh(Pe.data.titleMessage)}}let C=(()=>{var B;class A{constructor(le,Ce,Ae){this.dialogRef=le,this.data=Ce,this.logger=Ae,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}static#e=B=()=>(this.\u0275fac=function(Ce){return new(Ce||A)(d.rXU(i.CP),d.rXU(i.Vh),d.rXU(v.gP))},this.\u0275cmp=d.VBU({type:A,selectors:[["rtl-error-message"]],standalone:!1,decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(Ce,Ae){1&Ce&&(d.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),d.EFF(5),d.k0s()(),d.j41(6,"button",5),d.bIt("click",function(){return Ae.onClose()}),d.EFF(7,"X"),d.k0s()(),d.j41(8,"mat-card-content",6)(9,"div",7),d.DNE(10,L,2,1,"p",8),d.j41(11,"h4",9),d.EFF(12,"Error Code"),d.k0s(),d.j41(13,"span"),d.EFF(14),d.k0s(),d.nrm(15,"mat-divider",10),d.j41(16,"h4",9),d.EFF(17,"Error Message"),d.k0s(),d.j41(18,"span",11),d.EFF(19),d.k0s(),d.nrm(20,"mat-divider",10),d.j41(21,"h4",9),d.EFF(22,"API URL"),d.k0s(),d.j41(23,"span",11),d.EFF(24),d.k0s(),d.nrm(25,"mat-divider",10),d.j41(26,"div",12)(27,"button",13),d.EFF(28,"OK"),d.k0s()()()()()()),2&Ce&&(d.R7$(5),d.JRh(Ae.data.alertTitle||"ERROR"),d.R7$(5),d.Y8G("ngIf",Ae.data.titleMessage),d.R7$(4),d.JRh(Ae.data.message.code),d.R7$(5),d.JRh(Ae.errorMessage),d.R7$(5),d.JRh(Ae.data.message.URL),d.R7$(3),d.Y8G("mat-dialog-close",!1))},dependencies:[T.bT,i.tx,w.$z,e.m2,e.MM,O.q,f.DJ,f.sA,f.UI,u.N],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return B(),A})()},1092(Zt,pe,l){"use strict";l.d(pe,{D:()=>Tt});var i=l(9417),d=l(1413),v=l(6977),T=l(1585),w=l(5383),e=l(1001),O=l(4416),f=l(3536),u=l(3664),L=l(2615),C=l(9640),B=l(4104),A=l(2200),Pe=l(8570),le=l(3694),Ce=l(2571),Ae=l(8834),j=l(5596),W=l(9454),G=l(2629),re=l(3746),xe=l(9588),Ee=l(7575),V=l(5951),ce=l(2920),be=l(6038),ne=l(450),J=l(455),De=l(6013),Re=l(9587),Xe=l(1997);const _e=At=>({"h-5":At});function he(At,we){1&At&&u.eu8(0)}function Dt(At,we){1&At&&u.eu8(0)}function lt(At,we){if(1&At&&(u.j41(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),u.EFF(4),u.nI1(5,"number"),u.k0s()()(),u.DNE(6,Dt,1,0,"ng-container",2),u.k0s()),2&At){const ae=u.XpG(),Lt=u.sdS(4);u.Y8G("expanded",ae.panelExpanded)("ngClass",u.eq3(7,_e,!ae.flgShowPanel)),u.R7$(4),u.Lme("Quote for ",ae.termCaption," amount (",u.bMT(5,5,ae.quote.amount)," Sats)"),u.R7$(2),u.Y8G("ngTemplateOutlet",Lt)}}function Le(At,we){if(1&At&&(u.j41(0,"div",19)(1,"h4",8),u.EFF(2," Prepay Amount (Sats) "),u.j41(3,"mat-icon",20),u.EFF(4,"info_outline"),u.k0s()(),u.j41(5,"span",10),u.EFF(6),u.nI1(7,"number"),u.k0s()()),2&At){const ae=u.XpG(2);u.R7$(6),u.JRh(u.bMT(7,1,null==ae.quote?null:ae.quote.prepay_amt_sat))}}function te(At,we){1&At&&u.nrm(0,"mat-divider",13)}function ie(At,we){if(1&At&&(u.j41(0,"div",6)(1,"div",21)(2,"h4",8),u.EFF(3," Swap Server Node Pubkey "),u.j41(4,"mat-icon",22),u.EFF(5,"info_outline"),u.k0s()(),u.j41(6,"span",10),u.EFF(7),u.k0s()()()),2&At){const ae=u.XpG(2);u.R7$(7),u.JRh(null==ae.quote?null:ae.quote.swap_payment_dest)}}function P(At,we){if(1&At&&(u.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),u.EFF(4," Swap Fee (Sats) "),u.j41(5,"mat-icon",9),u.EFF(6,"info_outline"),u.k0s()(),u.j41(7,"span",10),u.EFF(8),u.nI1(9,"number"),u.k0s()(),u.j41(10,"div",7)(11,"h4",8),u.EFF(12),u.j41(13,"mat-icon",11),u.EFF(14,"info_outline"),u.k0s()(),u.j41(15,"span",10),u.EFF(16),u.nI1(17,"number"),u.k0s()(),u.DNE(18,Le,8,3,"div",12),u.k0s(),u.nrm(19,"mat-divider",13),u.j41(20,"div",6)(21,"div",14)(22,"h4",8),u.EFF(23," Max Off-chain Swap Routing Fee (Sats) "),u.j41(24,"mat-icon",15),u.EFF(25,"info_outline"),u.k0s()(),u.j41(26,"span",10),u.EFF(27),u.nI1(28,"number"),u.k0s()(),u.j41(29,"div",14)(30,"h4",8),u.EFF(31," Max Off-chain Prepay Routing Fee (Sats) "),u.j41(32,"mat-icon",16),u.EFF(33,"info_outline"),u.k0s()(),u.j41(34,"span",10),u.EFF(35,"36"),u.k0s()()(),u.DNE(36,te,1,0,"mat-divider",17)(37,ie,8,1,"div",18),u.k0s()),2&At){const ae=u.XpG();u.R7$(2),u.Y8G("ngClass",null!=ae.quote&&ae.quote.prepay_amt_sat?"flex-30":"flex-50"),u.R7$(6),u.JRh(u.bMT(9,9,null==ae.quote?null:ae.quote.swap_fee_sat)),u.R7$(2),u.Y8G("ngClass",null!=ae.quote&&ae.quote.prepay_amt_sat?"flex-35":"flex-50"),u.R7$(2),u.SpI(" ",null!=ae.quote&&ae.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ae.quote&&ae.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),u.R7$(4),u.JRh(u.bMT(17,11,null!=ae.quote&&ae.quote.htlc_sweep_fee_sat?ae.quote.htlc_sweep_fee_sat:null!=ae.quote&&ae.quote.htlc_publish_fee_sat?ae.quote.htlc_publish_fee_sat:0)),u.R7$(2),u.Y8G("ngIf",null==ae.quote?null:ae.quote.prepay_amt_sat),u.R7$(9),u.JRh(u.bMT(28,13,(null==ae.quote?null:ae.quote.amount)*((null!=ae.quote&&ae.quote.off_chain_swap_routing_fee_percentage?null==ae.quote?null:ae.quote.off_chain_swap_routing_fee_percentage:2)/100))),u.R7$(9),u.Y8G("ngIf",""!==(null==ae.quote?null:ae.quote.swap_payment_dest)),u.R7$(),u.Y8G("ngIf",""!==(null==ae.quote?null:ae.quote.swap_payment_dest))}}let F=(()=>{var At;class we{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}static#e=At=()=>(this.\u0275fac=function(Ht){return new(Ht||we)},this.\u0275cmp=u.VBU({type:we,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},standalone:!1,decls:5,vars:1,consts:[["informationBlock",""],["quoteDetailsBlock",""],[4,"ngTemplateOutlet"],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"ngClass"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(Ht,_n){if(1&Ht&&u.DNE(0,he,1,0,"ng-container",2)(1,lt,7,9,"ng-template",null,0,u.C5r)(3,P,38,15,"ng-template",null,1,u.C5r),2&Ht){const fi=u.sdS(2),bi=u.sdS(4);u.Y8G("ngTemplateOutlet",_n.showPanel?fi:bi)}},dependencies:[A.YU,A.bT,A.T3,W.GK,W.Z2,W.WN,G.An,Xe.q,ce.DJ,ce.sA,ce.UI,be.PW,J.oV,A.QX],encapsulation:2}))}return At(),we})();function ve(At,we){1&At&&u.eu8(0)}function H(At,we){if(1&At&&(u.j41(0,"div",3)(1,"span",4),u.EFF(2),u.k0s()()),2&At){const ae=u.XpG();u.R7$(2),u.JRh(null!=ae.loopStatus&&ae.loopStatus.error?null==ae.loopStatus?null:ae.loopStatus.error:"Unknown Error.")}}function $(At,we){if(1&At&&(u.j41(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),u.EFF(4,"ID"),u.k0s(),u.j41(5,"span",4),u.EFF(6),u.k0s()()(),u.nrm(7,"mat-divider",8),u.j41(8,"div",5)(9,"div",6)(10,"h4",7),u.EFF(11,"HTLC Address"),u.k0s(),u.j41(12,"span",4),u.EFF(13),u.k0s()()()()),2&At){const ae=u.XpG();u.R7$(6),u.JRh(null==ae.loopStatus?null:ae.loopStatus.id_bytes),u.R7$(7),u.JRh(null==ae.loopStatus?null:ae.loopStatus.htlc_address)}}let Ke=(()=>{var At;class we{constructor(){}static#e=At=()=>(this.\u0275fac=function(Ht){return new(Ht||we)},this.\u0275cmp=u.VBU({type:we,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},standalone:!1,decls:5,vars:1,consts:[["loopFailedBlock",""],["loopSuccessfulBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(Ht,_n){if(1&Ht&&u.DNE(0,ve,1,0,"ng-container",2)(1,H,3,1,"ng-template",null,0,u.C5r)(3,$,14,2,"ng-template",null,1,u.C5r),2&Ht){const fi=u.sdS(2),bi=u.sdS(4);u.Y8G("ngTemplateOutlet",null!=_n.loopStatus&&_n.loopStatus.error?fi:bi)}},dependencies:[A.T3,Xe.q,ce.DJ,ce.sA,ce.UI],encapsulation:2}))}return At(),we})();var Vt=l(6949);const St=(At,we)=>({"small-svg":At,"large-svg":we});function ot(At,we){1&At&&u.eu8(0)}function nt(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",7)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),u.nrm(8,"circle",12)(9,"path",13),u.k0s(),u.j41(10,"g",14),u.nrm(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),u.k0s()()()()(),L.joV(),u.j41(26,"div",30)(27,"mat-card-title"),u.EFF(28,"Loop In explained."),u.k0s()(),u.j41(29,"div",31)(30,"mat-card-subtitle",32),u.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,St,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function ht(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",33)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",34),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),u.nrm(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),u.k0s(),u.j41(28,"g",56)(29,"g",57)(30,"g",58),u.nrm(31,"path",59)(32,"rect",60)(33,"polygon",61),u.j41(34,"g",62),u.nrm(35,"path",63),u.k0s(),u.nrm(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),u.k0s(),u.j41(45,"g",73),u.nrm(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),u.k0s(),u.nrm(59,"path",87),u.k0s()()()()()(),L.joV(),u.j41(60,"div",30)(61,"mat-card-title"),u.EFF(62,"Step 1: Deciding to Loop In"),u.k0s()(),u.j41(63,"div",31)(64,"mat-card-subtitle",32),u.EFF(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,St,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function oe(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",88)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",89),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),u.nrm(14,"circle",95)(15,"path",96),u.j41(16,"g",97),u.nrm(17,"polygon",98)(18,"polygon",99)(19,"path",100),u.k0s(),u.j41(20,"g",101),u.nrm(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),u.j41(31,"g",112)(32,"g",113),u.nrm(33,"g",114),u.k0s(),u.nrm(34,"g",115),u.k0s()()(),u.j41(35,"g",116)(36,"g",40),u.nrm(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),u.k0s(),u.j41(53,"g",56)(54,"g",57)(55,"g",58),u.nrm(56,"path",59)(57,"rect",60)(58,"polygon",61),u.j41(59,"g",122),u.nrm(60,"path",63),u.k0s(),u.nrm(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),u.k0s(),u.j41(70,"g",73),u.nrm(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),u.k0s(),u.nrm(84,"path",139),u.k0s()()()(),u.nrm(85,"path",140)(86,"path",141),u.k0s()()()(),L.joV(),u.j41(87,"div",30)(88,"mat-card-title"),u.EFF(89,"Step 2: Send payment out"),u.k0s()(),u.j41(90,"div",31)(91,"mat-card-subtitle",32),u.EFF(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,St,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function Ye(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",142)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),u.nrm(10,"circle",12)(11,"path",147),u.k0s(),u.j41(12,"g",14),u.nrm(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),u.k0s()(),u.j41(28,"g",149),u.nrm(29,"polygon",150)(30,"polygon",99)(31,"path",151),u.k0s(),u.j41(32,"g",152),u.nrm(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),u.j41(43,"g",112)(44,"g",113),u.nrm(45,"g",114),u.k0s(),u.nrm(46,"g",115),u.k0s()()(),u.nrm(47,"path",153),u.k0s()()()(),L.joV(),u.j41(48,"div",30)(49,"mat-card-title"),u.EFF(50,"Step 3: Recieve Funds Off-chain"),u.k0s()(),u.j41(51,"div",31)(52,"mat-card-subtitle",32),u.EFF(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,St,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function fe(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",154)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",34),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),u.nrm(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),u.k0s(),u.j41(28,"g",172),u.nrm(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),u.k0s(),u.nrm(43,"path",187),u.k0s()(),u.nrm(44,"circle",188),u.k0s()()()(),L.joV(),u.j41(45,"div",30)(46,"mat-card-title"),u.EFF(47,"Done!"),u.k0s()(),u.j41(48,"div",31)(49,"mat-card-subtitle",32),u.EFF(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,St,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}let Qe=(()=>{var At;class we{constructor(Lt){this.commonService=Lt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new u.bkB,this.screenSize="",this.screenSizeEnum=O.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Lt){2===Lt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Lt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=At=()=>(this.\u0275fac=function(Ht){return new(Ht||we)(u.rXU(Ce.h))},this.\u0275cmp=u.VBU({type:we,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(Ht,_n){if(1&Ht&&u.DNE(0,ot,1,0,"ng-container",5)(1,nt,32,5,"ng-template",null,0,u.C5r)(3,ht,66,5,"ng-template",null,1,u.C5r)(5,oe,93,5,"ng-template",null,2,u.C5r)(7,Ye,54,5,"ng-template",null,3,u.C5r)(9,fe,51,5,"ng-template",null,4,u.C5r),2&Ht){const fi=u.sdS(2),bi=u.sdS(4),Qi=u.sdS(6),zi=u.sdS(8),It=u.sdS(10);u.Y8G("ngTemplateOutlet",1===_n.stepNumber?fi:2===_n.stepNumber?bi:3===_n.stepNumber?Qi:4===_n.stepNumber?zi:It)}},dependencies:[A.YU,A.T3,j.Lc,j.dh,ce.DJ,ce.sA,ce.UI,be.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Vt.k]}}))}return At(),we})();const gt=(At,we)=>({"small-svg":At,"large-svg":we});function Gt(At,we){1&At&&u.eu8(0)}function rt(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",7)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),u.nrm(8,"circle",12)(9,"path",13),u.k0s(),u.j41(10,"g",14),u.nrm(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),u.k0s()()()()(),L.joV(),u.j41(26,"div",30)(27,"mat-card-title"),u.EFF(28,"Loop Out explained."),u.k0s()(),u.j41(29,"div",31)(30,"mat-card-subtitle",32),u.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,gt,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function cn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",33)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",34),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),u.nrm(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),u.k0s(),u.j41(28,"g",56),u.nrm(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),u.k0s(),u.nrm(43,"path",71),u.k0s()(),u.nrm(44,"circle",72),u.k0s()()()(),L.joV(),u.j41(45,"div",30)(46,"mat-card-title"),u.EFF(47,"Step 1: Deciding to Loop Out"),u.k0s()(),u.j41(48,"div",31)(49,"mat-card-subtitle",32),u.EFF(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,gt,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function Ft(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",73)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",74),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",8)(10,"g",75)(11,"g",76),u.nrm(12,"circle",77)(13,"path",78),u.j41(14,"g",79),u.nrm(15,"polygon",80)(16,"polygon",81)(17,"path",82),u.k0s(),u.j41(18,"g",83),u.nrm(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),u.j41(29,"g",94)(30,"g",95),u.nrm(31,"g",96),u.k0s(),u.nrm(32,"g",97),u.k0s(),u.nrm(33,"path",98),u.k0s(),u.j41(34,"g",99)(35,"g",41)(36,"g",42),u.nrm(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),u.k0s(),u.j41(52,"g",56),u.nrm(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),u.k0s(),u.nrm(67,"path",111),u.k0s()()()()()(),L.joV(),u.j41(68,"div",30)(69,"mat-card-title"),u.EFF(70,"Step 2: Send lightning payment"),u.k0s()(),u.j41(71,"div",31)(72,"mat-card-subtitle",32),u.EFF(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,gt,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function Sn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",112)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),u.nrm(9,"circle",12)(10,"path",117),u.k0s(),u.j41(11,"g",14),u.nrm(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),u.k0s()(),u.j41(27,"g",119),u.nrm(28,"polygon",80)(29,"polygon",120)(30,"path",82),u.k0s(),u.j41(31,"g",121),u.nrm(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),u.j41(42,"g",94)(43,"g",95),u.nrm(44,"g",96),u.k0s(),u.nrm(45,"g",97),u.k0s(),u.nrm(46,"path",123),u.k0s()()()()(),L.joV(),u.j41(47,"div",30)(48,"mat-card-title"),u.EFF(49,"Step 3: Receive funds back"),u.k0s()(),u.j41(50,"div",31)(51,"mat-card-subtitle",32),u.EFF(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,gt,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}function Qn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",6),u.bIt("swipe",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.onSwipe(Ht))}),L.qSk(),u.j41(1,"svg",124)(2,"desc"),u.EFF(3,"Created with Sketch."),u.k0s(),u.j41(4,"defs")(5,"linearGradient",34),u.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),u.k0s()(),u.j41(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),u.nrm(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),u.k0s(),u.j41(28,"g",142)(29,"g",143)(30,"g",144),u.nrm(31,"path",145)(32,"rect",146)(33,"polygon",147),u.j41(34,"g",148),u.nrm(35,"path",149),u.k0s(),u.nrm(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),u.k0s(),u.j41(45,"g",159),u.nrm(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),u.k0s(),u.nrm(59,"path",173),u.k0s()()()()()(),L.joV(),u.j41(60,"div",30)(61,"mat-card-title"),u.EFF(62,"Done!"),u.k0s()(),u.j41(63,"div",31)(64,"mat-card-subtitle",32),u.EFF(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@sliderAnimation",ae.animationDirection),u.R7$(),u.Y8G("ngClass",u.l_i(2,gt,ae.screenSize===ae.screenSizeEnum.XS,ae.screenSize!==ae.screenSizeEnum.XS))}}let h=(()=>{var At;class we{constructor(Lt){this.commonService=Lt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new u.bkB,this.screenSize="",this.screenSizeEnum=O.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Lt){2===Lt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Lt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=At=()=>(this.\u0275fac=function(Ht){return new(Ht||we)(u.rXU(Ce.h))},this.\u0275cmp=u.VBU({type:we,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(Ht,_n){if(1&Ht&&u.DNE(0,Gt,1,0,"ng-container",5)(1,rt,32,5,"ng-template",null,0,u.C5r)(3,cn,51,5,"ng-template",null,1,u.C5r)(5,Ft,74,5,"ng-template",null,2,u.C5r)(7,Sn,53,5,"ng-template",null,3,u.C5r)(9,Qn,66,5,"ng-template",null,4,u.C5r),2&Ht){const fi=u.sdS(2),bi=u.sdS(4),Qi=u.sdS(6),zi=u.sdS(8),It=u.sdS(10);u.Y8G("ngTemplateOutlet",1===_n.stepNumber?fi:2===_n.stepNumber?bi:3===_n.stepNumber?Qi:4===_n.stepNumber?zi:It)}},dependencies:[A.YU,A.T3,j.Lc,j.dh,ce.DJ,ce.sA,ce.UI,be.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Vt.k]}}))}return At(),we})();const jt=["stepper"],Ue=()=>[1,2,3,4,5],wt=(At,we)=>({"dot-primary":At,"dot-primary-lighter":we});function pt(At,we){if(1&At&&(u.j41(0,"div",49)(1,"p",50)(2,"strong"),u.EFF(3,"Channel Peer:\xa0"),u.k0s(),u.EFF(4),u.nI1(5,"titlecase"),u.k0s(),u.j41(6,"p",51)(7,"strong"),u.EFF(8,"Channel ID:\xa0"),u.k0s(),u.EFF(9),u.k0s(),u.nrm(10,"p",51),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(4),u.JRh(u.bMT(5,2,ae.channel.remote_alias)),u.R7$(5),u.JRh(ae.channel.chan_id)}}function Pt(At,we){if(1&At&&u.EFF(0),2&At){const ae=u.XpG(2);u.JRh(ae.inputFormLabel)}}function gn(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Amount is required."),u.k0s())}function ei(At,we){if(1&At&&(u.j41(0,"mat-error"),u.EFF(1),u.nI1(2,"number"),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(),u.SpI("Amount must be greater than or equal to ",u.bMT(2,1,ae.minQuote.amount),".")}}function vi(At,we){if(1&At&&(u.j41(0,"mat-error"),u.EFF(1),u.nI1(2,"number"),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(),u.SpI("Amount must be less than or equal to ",u.bMT(2,1,ae.maxQuote.amount),".")}}function Ni(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Confirmation target is required."),u.k0s())}function kn(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Confirmation target must be a positive number."),u.k0s())}function Ri(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Percentage is required."),u.k0s())}function vt(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Percentage must be a positive number."),u.k0s())}function ee(At,we){if(1&At&&(u.j41(0,"mat-form-field",51)(1,"mat-label"),u.EFF(2,"Max Off-chain Routing Fee (%)"),u.k0s(),u.nrm(3,"input",52),u.DNE(4,Ri,2,0,"mat-error",26)(5,vt,2,0,"mat-error",26),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(3),u.Y8G("step",1),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.routingFeePercent.errors?null:ae.inputFormGroup.controls.routingFeePercent.errors.required),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.routingFeePercent.errors?null:ae.inputFormGroup.controls.routingFeePercent.errors.min)}}function ye(At,we){1&At&&(u.j41(0,"div",53)(1,"mat-slide-toggle",54),u.EFF(2,"Fast"),u.k0s(),u.j41(3,"mat-icon",55),u.EFF(4,"info_outline"),u.k0s()())}function ke(At,we){if(1&At&&u.EFF(0),2&At){const ae=u.XpG(2);u.JRh(ae.quoteFormLabel)}}function Se(At,we){1&At&&(u.j41(0,"p",56)(1,"mat-icon",57),u.EFF(2,"close"),u.k0s(),u.EFF(3,"Local balance amount is insufficient for swap."),u.k0s())}function ge(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",58),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onValidateAmount())}),u.EFF(1,"Next"),u.k0s()}}function N(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",59),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onLoop())}),u.EFF(1),u.k0s()}if(2&At){const ae=u.XpG(2);u.R7$(),u.SpI("Initiate ",ae.loopDirectionCaption)}}function Z(At,we){if(1&At&&u.EFF(0),2&At){const ae=u.XpG(3);u.JRh(ae.addressFormLabel)}}function Me(At,we){1&At&&(u.j41(0,"mat-error"),u.EFF(1,"Address is required."),u.k0s())}function at(At,we){if(1&At){const ae=u.RV6();u.j41(0,"mat-step",16)(1,"form",17),u.DNE(2,Z,1,1,"ng-template",18),u.j41(3,"div",60)(4,"mat-radio-group",61),u.bIt("change",function(Ht){L.eBV(ae);const _n=u.XpG(2);return L.Njj(_n.onAddressTypeChange(Ht))}),u.j41(5,"mat-radio-button",62),u.EFF(6,"Node Local Address"),u.k0s(),u.j41(7,"mat-radio-button",63),u.EFF(8,"External Address"),u.k0s()(),u.j41(9,"mat-form-field",64)(10,"mat-label"),u.EFF(11,"Address"),u.k0s(),u.nrm(12,"input",65),u.DNE(13,Me,2,0,"mat-error",26),u.k0s()(),u.j41(14,"div",30)(15,"button",66),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onLoop())}),u.EFF(16),u.k0s()()()()}if(2&At){const ae=u.XpG(2);u.Y8G("stepControl",ae.addressFormGroup)("editable",ae.flgEditable),u.R7$(),u.Y8G("formGroup",ae.addressFormGroup),u.R7$(11),u.Y8G("required","external"===ae.addressFormGroup.controls.addressType.value),u.R7$(),u.Y8G("ngIf",null==ae.addressFormGroup.controls.address.errors?null:ae.addressFormGroup.controls.address.errors.required),u.R7$(3),u.SpI("Initiate ",ae.loopDirectionCaption)}}function qe(At,we){if(1&At&&u.EFF(0),2&At){const ae=u.XpG(2);u.SpI("",ae.loopDirectionCaption," Status")}}function pn(At,we){if(1&At&&(u.j41(0,"mat-icon",67),u.EFF(1),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(),u.JRh(ae.loopStatus&&null!=ae.loopStatus&&ae.loopStatus.id_bytes?"check":"close")}}function Je(At,we){1&At&&u.nrm(0,"div")}function Be(At,we){1&At&&u.nrm(0,"mat-progress-bar",68)}function ut(At,we){if(1&At&&(u.j41(0,"h4",69),u.EFF(1),u.k0s()),2&At){const ae=u.XpG(2);u.R7$(),u.JRh(ae.loopStatus&&ae.loopStatus.error?ae.loopDirectionCaption+" failed.":ae.loopStatus&&ae.loopStatus.id_bytes&&ae.channel?ae.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ae.loopDirectionCaption+" request placed successfully.")}}function Ge(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",70),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.goToLoop())}),u.EFF(1,"Check Status"),u.k0s()}}function Ot(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",71),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onRestart())}),u.EFF(1,"Start Again"),u.k0s()}}function se(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),u.EFF(5),u.k0s()(),u.j41(6,"div",9)(7,"button",10),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG();return L.Njj(Ht.showInfo())}),u.EFF(8,"?"),u.k0s(),u.j41(9,"button",11),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG();return L.Njj(Ht.onClose())}),u.EFF(10,"X"),u.k0s()()(),u.j41(11,"mat-card-content",12)(12,"div",13),u.DNE(13,pt,11,4,"div",14),u.j41(14,"mat-vertical-stepper",15,1),u.bIt("selectionChange",function(Ht){L.eBV(ae);const _n=u.XpG();return L.Njj(_n.stepSelectionChanged(Ht))}),u.j41(16,"mat-step",16)(17,"form",17),u.DNE(18,Pt,1,1,"ng-template",18),u.j41(19,"div",19),u.nrm(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",21),u.k0s(),u.j41(22,"div",22)(23,"mat-form-field",23)(24,"mat-label"),u.EFF(25,"Amount"),u.k0s(),u.nrm(26,"input",24),u.j41(27,"mat-hint"),u.EFF(28),u.nI1(29,"number"),u.nI1(30,"number"),u.k0s(),u.j41(31,"span",25),u.EFF(32,"Sats"),u.k0s(),u.DNE(33,gn,2,0,"mat-error",26)(34,ei,3,3,"mat-error",26)(35,vi,3,3,"mat-error",26),u.k0s(),u.j41(36,"mat-form-field",23)(37,"mat-label"),u.EFF(38,"Sweep Confirmation Target"),u.k0s(),u.nrm(39,"input",27),u.DNE(40,Ni,2,0,"mat-error",26)(41,kn,2,0,"mat-error",26),u.k0s(),u.DNE(42,ee,6,3,"mat-form-field",28),u.k0s(),u.DNE(43,ye,5,0,"div",29),u.j41(44,"div",30)(45,"button",31),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG();return L.Njj(Ht.onEstimateQuote())}),u.EFF(46,"Estimate Quote"),u.k0s()()()(),u.j41(47,"mat-step",16)(48,"form",17),u.DNE(49,ke,1,1,"ng-template",18),u.nrm(50,"rtl-loop-quote",32),u.DNE(51,Se,4,0,"p",33),u.j41(52,"div",30),u.DNE(53,ge,2,0,"button",34)(54,N,2,1,"button",35),u.k0s()()(),u.DNE(55,at,17,6,"mat-step",36),u.j41(56,"mat-step",37)(57,"form",17),u.DNE(58,qe,1,1,"ng-template",18),u.j41(59,"div",38)(60,"mat-expansion-panel",39)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",40),u.EFF(64),u.DNE(65,pn,2,1,"mat-icon",41),u.k0s()()(),u.DNE(66,Je,1,0,"div",42),u.k0s(),u.DNE(67,Be,1,0,"mat-progress-bar",43),u.k0s(),u.DNE(68,ut,2,1,"h4",44),u.j41(69,"div",30),u.DNE(70,Ge,2,0,"button",45)(71,Ot,2,0,"button",46),u.k0s()()()(),u.j41(72,"div",47)(73,"button",48),u.EFF(74,"Close"),u.k0s()()()()()()}if(2&At){const ae=u.XpG(),Lt=u.sdS(2);u.Y8G("@opacityAnimation",void 0),u.R7$(3),u.Y8G("ngClass",ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM?"flex-83":"flex-91"),u.R7$(2),u.JRh(ae.channel?"Channel "+ae.loopDirectionCaption:ae.loopDirectionCaption),u.R7$(),u.Y8G("ngClass",ae.screenSize===ae.screenSizeEnum.XS||ae.screenSize===ae.screenSizeEnum.SM?"flex-17":"flex-9"),u.R7$(7),u.Y8G("ngIf",ae.channel),u.R7$(),u.Y8G("linear",!0),u.R7$(2),u.Y8G("stepControl",ae.inputFormGroup)("editable",ae.flgEditable),u.R7$(),u.Y8G("formGroup",ae.inputFormGroup),u.R7$(3),u.Y8G("quote",ae.minQuote)("panelExpanded",!1)("showPanel",!0),u.R7$(),u.Y8G("quote",ae.maxQuote)("panelExpanded",!1)("showPanel",!0),u.R7$(2),u.Y8G("ngClass",ae.direction===ae.LoopTypeEnum.LOOP_OUT?"flex-35":"flex-48"),u.R7$(3),u.Y8G("step",1e3),u.R7$(2),u.Lme("Range: ",u.bMT(29,49,ae.minQuote.amount),"-",u.bMT(30,51,ae.maxQuote.amount)),u.R7$(5),u.Y8G("ngIf",null==ae.inputFormGroup.controls.amount.errors?null:ae.inputFormGroup.controls.amount.errors.required),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.amount.errors?null:ae.inputFormGroup.controls.amount.errors.min),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.amount.errors?null:ae.inputFormGroup.controls.amount.errors.max),u.R7$(),u.Y8G("ngClass",ae.direction===ae.LoopTypeEnum.LOOP_OUT?"flex-30":"flex-48"),u.R7$(3),u.Y8G("step",1),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.sweepConfTarget.errors?null:ae.inputFormGroup.controls.sweepConfTarget.errors.required),u.R7$(),u.Y8G("ngIf",null==ae.inputFormGroup.controls.sweepConfTarget.errors?null:ae.inputFormGroup.controls.sweepConfTarget.errors.min),u.R7$(),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_OUT),u.R7$(),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_OUT),u.R7$(4),u.Y8G("stepControl",ae.quoteFormGroup)("editable",ae.flgEditable),u.R7$(),u.Y8G("formGroup",ae.quoteFormGroup),u.R7$(2),u.Y8G("quote",ae.quote)("showPanel",!1),u.R7$(),u.Y8G("ngIf",ae.inputFormGroup.controls.amount.value>ae.localBalanceToCompare),u.R7$(2),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_OUT),u.R7$(),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_IN),u.R7$(),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_OUT),u.R7$(),u.Y8G("stepControl",ae.statusFormGroup),u.R7$(),u.Y8G("formGroup",ae.statusFormGroup),u.R7$(3),u.Y8G("expanded",!!ae.loopStatus),u.R7$(4),u.JRh(ae.loopStatus?ae.loopStatus.id_bytes?ae.loopDirectionCaption+" request details":ae.loopDirectionCaption+" error details":"Waiting for "+ae.loopDirectionCaption+" request..."),u.R7$(),u.Y8G("ngIf",ae.loopStatus),u.R7$(),u.Y8G("ngIf",!ae.loopStatus)("ngIfElse",Lt),u.R7$(),u.Y8G("ngIf",!ae.loopStatus),u.R7$(),u.Y8G("ngIf",ae.loopStatus),u.R7$(2),u.Y8G("ngIf",ae.loopStatus&&ae.loopStatus.id_bytes&&ae.channel),u.R7$(),u.Y8G("ngIf",ae.loopStatus&&(ae.loopStatus.error||!ae.loopStatus.id_bytes)),u.R7$(2),u.Y8G("mat-dialog-close",!1)}}function We(At,we){if(1&At&&u.nrm(0,"rtl-loop-status",72),2&At){const ae=u.XpG();u.Y8G("loopStatus",ae.loopStatus)}}function bt(At,we){if(1&At){const ae=u.RV6();u.j41(0,"rtl-loop-out-info-graphics",88),u.mxI("stepNumberChange",function(Ht){L.eBV(ae);const _n=u.XpG(2);return u.DH7(_n.stepNumber,Ht)||(_n.stepNumber=Ht),L.Njj(Ht)}),u.k0s()}if(2&At){const ae=u.XpG(2);u.Y8G("animationDirection",ae.animationDirection),u.R50("stepNumber",ae.stepNumber)}}function tn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"rtl-loop-in-info-graphics",88),u.mxI("stepNumberChange",function(Ht){L.eBV(ae);const _n=u.XpG(2);return u.DH7(_n.stepNumber,Ht)||(_n.stepNumber=Ht),L.Njj(Ht)}),u.k0s()}if(2&At){const ae=u.XpG(2);u.Y8G("animationDirection",ae.animationDirection),u.R50("stepNumber",ae.stepNumber)}}function on(At,we){if(1&At){const ae=u.RV6();u.j41(0,"span",89),u.bIt("click",function(){const Ht=L.eBV(ae).$implicit,_n=u.XpG(2);return L.Njj(_n.onStepChanged(Ht))}),u.nrm(1,"p",90),u.k0s()}if(2&At){const ae=we.$implicit,Lt=u.XpG(2);u.R7$(),u.Y8G("ngClass",u.l_i(1,wt,Lt.stepNumber===ae,Lt.stepNumber!==ae))}}function un(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",91),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onReadMore())}),u.EFF(1,"Read More"),u.k0s()}}function Nt(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",92),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onStepChanged(4))}),u.EFF(1,"Back"),u.k0s()}}function dn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",93),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return Ht.flgShowInfo=!1,L.Njj(Ht.stepNumber=1)}),u.EFF(1,"Close"),u.k0s()}}function xn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",94),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return Ht.flgShowInfo=!1,L.Njj(Ht.stepNumber=1)}),u.EFF(1,"Close"),u.k0s()}}function Jn(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",95),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onStepChanged(Ht.stepNumber-1))}),u.EFF(1,"Back"),u.k0s()}}function xi(At,we){if(1&At){const ae=u.RV6();u.j41(0,"button",96),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG(2);return L.Njj(Ht.onStepChanged(Ht.stepNumber+1))}),u.EFF(1,"Next"),u.k0s()}}function Yi(At,we){if(1&At){const ae=u.RV6();u.j41(0,"div",73)(1,"div",19)(2,"mat-card-header",74)(3,"div",75),u.nrm(4,"span",8),u.k0s(),u.j41(5,"div",76)(6,"button",11),u.bIt("click",function(){L.eBV(ae);const Ht=u.XpG();return Ht.flgShowInfo=!1,L.Njj(Ht.stepNumber=1)}),u.EFF(7,"X"),u.k0s()()(),u.j41(8,"mat-card-content",77),u.DNE(9,bt,1,2,"rtl-loop-out-info-graphics",78)(10,tn,1,2,"rtl-loop-in-info-graphics",78),u.k0s(),u.j41(11,"div",79),u.DNE(12,on,2,4,"span",80),u.k0s(),u.j41(13,"div",81),u.DNE(14,un,2,0,"button",82)(15,Nt,2,0,"button",83)(16,dn,2,0,"button",84)(17,xn,2,0,"button",85)(18,Jn,2,0,"button",86)(19,xi,2,0,"button",87),u.k0s()()()}if(2&At){const ae=u.XpG();u.Y8G("@opacityAnimation",void 0),u.R7$(9),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_OUT),u.R7$(),u.Y8G("ngIf",ae.direction===ae.LoopTypeEnum.LOOP_IN),u.R7$(2),u.Y8G("ngForOf",u.lJ4(10,Ue)),u.R7$(2),u.Y8G("ngIf",5===ae.stepNumber),u.R7$(),u.Y8G("ngIf",5===ae.stepNumber),u.R7$(),u.Y8G("ngIf",5===ae.stepNumber),u.R7$(),u.Y8G("ngIf",ae.stepNumber<5),u.R7$(),u.Y8G("ngIf",ae.stepNumber>1&&ae.stepNumber<5),u.R7$(),u.Y8G("ngIf",ae.stepNumber<5)}}let Tt=(()=>{var At;class we{constructor(Lt,Ht,_n,fi,bi,Qi,zi,It,an){this.dialogRef=Lt,this.data=Ht,this.store=_n,this.loopService=fi,this.formBuilder=bi,this.decimalPipe=Qi,this.logger=zi,this.router=It,this.commonService=an,this.faInfoCircle=w.iW_,this.LoopTypeEnum=O.C7,this.direction=O.C7.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=O.f7,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||O.C7.LOOP_OUT,this.loopDirectionCaption=this.direction===O.C7.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[i.k0.required,i.k0.min(this.minQuote.amount||0),i.k0.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[i.k0.required,i.k0.min(1)]],routingFeePercent:[2,[i.k0.required,i.k0.min(0)]],fast:[!1,[i.k0.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[i.k0.required]],address:[{value:"",disabled:!0}]}),this.direction===O.C7.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(f.BM).pipe((0,v.Q)(this.unSubs[6])).subscribe(Lt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Lt.lightningBalance&&Lt.lightningBalance.local?+Lt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,v.Q)(this.unSubs[4])).subscribe(Lt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===O.C7.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,v.Q)(this.unSubs[5])).subscribe(Lt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Lt){"external"===Lt.value?(this.addressFormGroup.controls.address.setValidators([i.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===O.C7.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===O.C7.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===O.C7.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,v.Q)(this.unSubs[0])).subscribe({next:Lt=>{this.loopStatus=Lt,this.loopService.listSwaps(),this.flgEditable=!0},error:Lt=>{this.loopStatus={error:Lt},this.flgEditable=!0,this.logger.error(Lt)}});else{const Lt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Ht="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",_n=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,Lt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),_n,Ht).pipe((0,v.Q)(this.unSubs[1])).subscribe({next:fi=>{this.loopStatus=fi,this.loopService.listSwaps(),this.flgEditable=!0},error:fi=>{this.loopStatus={error:fi},this.flgEditable=!0,this.logger.error(fi)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const Lt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===O.C7.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Lt).pipe((0,v.Q)(this.unSubs[2])).subscribe(Ht=>{this.quote=Ht,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Lt).pipe((0,v.Q)(this.unSubs[3])).subscribe(Ht=>{this.quote=Ht,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected?.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(Lt){switch(Lt.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===O.C7.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===O.C7.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===O.C7.LOOP_OUT&&1!==Lt.selectedIndex&&Lt.selectedIndex{Lt.next(null),Lt.complete()})}static#e=At=()=>(this.\u0275fac=function(Ht){return new(Ht||we)(u.rXU(T.CP),u.rXU(T.Vh),u.rXU(C.il),u.rXU(B.Q),u.rXU(i.ze),u.rXU(A.QX),u.rXU(Pe.gP),u.rXU(le.Ix),u.rXU(Ce.h))},this.\u0275cmp=u.VBU({type:we,selectors:[["rtl-loop-modal"]],viewQuery:function(Ht,_n){if(1&Ht&&u.GBs(jt,5),2&Ht){let fi;u.mGM(fi=u.lsd())&&(_n.stepper=fi.first)}},standalone:!1,decls:4,vars:2,consts:[["loopStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"ngClass"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"ngClass"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["termCaption","min",3,"quote","panelExpanded","showPanel"],["termCaption","max",3,"quote","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"ngClass"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(Ht,_n){1&Ht&&u.DNE(0,se,75,53,"div",2)(1,We,1,1,"ng-template",null,0,u.C5r)(3,Yi,20,11,"div",3),2&Ht&&(u.Y8G("ngIf",!_n.flgShowInfo),u.R7$(3),u.Y8G("ngIf",_n.flgShowInfo))},dependencies:[A.YU,A.Sq,A.bT,i.qT,i.me,i.Q0,i.BC,i.cb,i.YS,i.j4,i.JD,T.tx,Ae.$z,j.m2,j.MM,W.GK,W.Z2,W.WN,G.An,re.fg,xe.rl,xe.nJ,xe.MV,xe.TL,xe.yw,Ee.HM,V.VT,V._g,ce.DJ,ce.sA,ce.UI,be.PW,ne.sG,J.oV,De.V5,De.Ti,De.M6,Re.N,F,Ke,Qe,h,A.QX,A.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[e.C]}}))}return At(),we})()},13(Zt,pe,l){"use strict";l.d(pe,{X:()=>f});var i=l(5383),d=l(3664),v=l(3694),T=l(60),w=l(8834),e=l(5596),O=l(2920);let f=(()=>{var u;class L{constructor(B){this.router=B,this.faTimes=i.GRI}goToHelp(){this.router.navigate(["/help"])}static#e=u=()=>(this.\u0275fac=function(A){return new(A||L)(d.rXU(v.Ix))},this.\u0275cmp=d.VBU({type:L,selectors:[["rtl-not-found"]],standalone:!1,decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(A,Pe){1&A&&(d.j41(0,"div",0),d.nrm(1,"fa-icon",1),d.j41(2,"span",2),d.EFF(3,"Page Not Found"),d.k0s()(),d.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),d.EFF(9,"This page does not exist!"),d.k0s(),d.j41(10,"span",7)(11,"button",8),d.bIt("click",function(){return Pe.goToHelp()}),d.EFF(12,"Go To Help"),d.k0s()()()()()()),2&A&&(d.R7$(),d.Y8G("icon",Pe.faTimes))},dependencies:[T.aY,w.$z,e.RN,e.m2,O.DJ,O.sA,O.UI],encapsulation:2}))}return u(),L})()},9587(Zt,pe,l){"use strict";l.d(pe,{N:()=>d});var i=l(3664);let d=(()=>{var v;class T{constructor(e){this.el=e}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}static#e=v=()=>(this.\u0275fac=function(O){return new(O||T)(i.rXU(i.aKT))},this.\u0275dir=i.FsC({type:T,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"},standalone:!1}))}return v(),T})()},9157(Zt,pe,l){"use strict";l.d(pe,{U:()=>d});var i=l(3664);let d=(()=>{var v;class T{constructor(){this.copied=new i.bkB}onClick(e){e.preventDefault(),this.payload&&(navigator.clipboard?this.copyUsingClipboardAPI():this.copyUsingFallbackMethod())}copyUsingFallbackMethod(){const e=document.createElement("textarea");e.value=this.payload,document.body.appendChild(e),e.select();try{document.execCommand("copy")?this.copied.emit(this.payload.toString()):this.copied.emit("Error could not copy text.")}finally{document.body.removeChild(e)}}copyUsingClipboardAPI(){navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())}).catch(e=>{this.copied.emit("Error could not copy text: "+JSON.stringify(e))})}static#e=v=()=>(this.\u0275fac=function(O){return new(O||T)},this.\u0275dir=i.FsC({type:T,selectors:[["","rtlClipboard",""]],hostBindings:function(O,f){1&O&&i.bIt("click",function(L){return f.onClick(L)})},inputs:{payload:"payload"},outputs:{copied:"copied"},standalone:!1}))}return v(),T})()},92(Zt,pe,l){"use strict";l.d(pe,{z:()=>v});var i=l(9417),d=l(3664);let v=(()=>{var T;class w{validate(O){return this.max?i.k0.max(+this.max)(O):null}static#e=T=()=>(this.\u0275fac=function(f){return new(f||w)},this.\u0275dir=d.FsC({type:w,selectors:[["input","max",""]],inputs:{max:"max"},standalone:!1,features:[d.Jv_([{provide:i.cz,useExisting:w,multi:!0}])]}))}return T(),w})()},6114(Zt,pe,l){"use strict";l.d(pe,{V:()=>v});var i=l(9417),d=l(3664);let v=(()=>{var T;class w{validate(O){return this.min?i.k0.min(+this.min)(O):null}static#e=T=()=>(this.\u0275fac=function(f){return new(f||w)},this.\u0275dir=d.FsC({type:w,selectors:[["input","min",""]],inputs:{min:"min"},standalone:!1,features:[d.Jv_([{provide:i.cz,useExisting:w,multi:!0}])]}))}return T(),w})()},2929(Zt,pe,l){"use strict";l.d(pe,{Qu:()=>T,VD:()=>w,ZE:()=>v,gZ:()=>d});var i=l(3664);let d=(()=>{var e;class O{transform(u,L){return u?.replace(/^[0]+/g,"")}static#e=e=()=>(this.\u0275fac=function(L){return new(L||O)},this.\u0275pipe=i.EJ8({name:"removeleadingzeros",type:O,pure:!0,standalone:!1}))}return e(),O})(),v=(()=>{var e;class O{transform(u,L){return u?.replace(/(?:^\w|[A-Z]|\b\w)/g,(C,B)=>C.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}static#e=e=()=>(this.\u0275fac=function(L){return new(L||O)},this.\u0275pipe=i.EJ8({name:"camelcase",type:O,pure:!0,standalone:!1}))}return e(),O})(),T=(()=>{var e;class O{transform(u,L,C){return u.replace(/(?:^\w|[A-Z]|\b\w)/g,(B,A)=>" "+B.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(L){return new(L||O)},this.\u0275pipe=i.EJ8({name:"camelCaseWithSpaces",type:O,pure:!0,standalone:!1}))}return e(),O})(),w=(()=>{var e;class O{transform(u,L,C){return u=u?u.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",L&&(u=u.replace(new RegExp(L,"g")," ")),C&&(u=u.replace(new RegExp(C,"g")," ")),u.replace(/(?:^\w|[A-Z]|\b\w)/g,(B,A)=>B.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(L){return new(L||O)},this.\u0275pipe=i.EJ8({name:"camelcaseWithReplace",type:O,pure:!0,standalone:!1}))}return e(),O})()},7186(Zt,pe,l){"use strict";l.d(pe,{Wz:()=>O,fe:()=>f,jn:()=>e,q_:()=>w});var i=l(2615),d=l(3694),v=l(3202),T=l(6354);function w(){return()=>{const u=(0,i.WQX)(d.Ix),L=(0,i.WQX)(d.nX),C=(0,i.WQX)(v.Q);return!(!C.getItem("token")||L.snapshot.url&&L.snapshot.url.length&&"settings"!==L.snapshot.url[0].path&&"auth"!==L.snapshot.url[0].path&&"true"===C.getItem("defaultPassword")&&(u.navigate(["/settings/auth"]),1))}}function e(){return()=>!!(0,i.WQX)(v.Q).watchSession().pipe((0,T.T)(L=>L.lndUnlocked))}function O(){return()=>!!(0,i.WQX)(v.Q).watchSession().pipe((0,T.T)(L=>L.clnUnlocked))}function f(){return()=>!!(0,i.WQX)(v.Q).watchSession().pipe((0,T.T)(L=>L.eclUnlocked))}},2571(Zt,pe,l){"use strict";l.d(pe,{h:()=>Pe});var i=l(1413),d=l(4412),v=l(7673),T=l(8810),w=l(9437),e=l(5558),O=l(6977),f=l(4416),u=l(2615),L=l(1534),C=l(8570),B=l(2200),A=l(345);let Pe=(()=>{var le;class Ce{constructor(j,W,G,re){this.dataService=j,this.logger=W,this.datePipe=G,this.sanitizer=re,this.currencyUnits=[],this.CurrencyUnitEnum=f.BQ,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=f.wn.UN_INITIATED,this.screenSize=f.f7.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new d.t(this.containerSize),this.unSubs=[new i.B,new i.B,new i.B]}getScreenSize(){return this.screenSize}setScreenSize(j){this.screenSize=j}getContainerSize(){return this.containerSize}setContainerSize(j,W){this.containerSize={width:j,height:W},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(j,W,G,re="asc"){return j.sort("number"===G?"desc"===re?(xe,Ee)=>+xe[W]>+Ee[W]?-1:1:(xe,Ee)=>+xe[W]>+Ee[W]?1:-1:"desc"===re?(xe,Ee)=>xe[W]>Ee[W]?-1:1:(xe,Ee)=>xe[W]>Ee[W]?1:-1)}sortDescByKey(j,W){return j.sort((G,re)=>{const xe=+G[W],Ee=+re[W];return xe>Ee?-1:xe{const xe=+G[W],Ee=+re[W];return xeEe?1:0})}camelCase(j){return j?.replace(/(?:^\w|[A-Z]|\b\w)/g,(W,G)=>W.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(j,W,G){return W&&G&&""!==W&&""!==G&&(j=j?.replace(new RegExp(W,"g"),G)),j.indexOf("!\n")>0||j.indexOf(".\n")>0?j.split("\n")?.reduce((re,xe)=>re+xe.charAt(0).toUpperCase()+xe.substring(1).toLowerCase()+"\n",""):j.indexOf(" ")>0?j.split(" ")?.reduce((re,xe)=>re+xe.charAt(0).toUpperCase()+xe.substring(1).toLowerCase()+" ",""):j.charAt(0).toUpperCase()+j.substring(1).toLowerCase()}convertCurrency(j,W,G,re,xe){const Ee=(new Date).valueOf();try{return xe&&re&&(W===f.BQ.OTHER||G===f.BQ.OTHER)?this.ratesAPIStatus!==f.wn.INITIATED?this.conversionData.data&&this.conversionData.last_fetched&&Ee(this.ratesAPIStatus=f.wn.COMPLETED,this.conversionData.data=V&&"object"==typeof V?V:V&&"string"==typeof V?JSON.parse(V):{},this.conversionData.last_fetched=Ee,(0,v.of)(this.convertWithFiat(j,W,re)))),(0,w.W)(V=>(this.ratesAPIStatus=f.wn.ERROR,(0,T.$)(()=>"Currency Conversion Error."))))):(0,v.of)(this.conversionData.data&&this.conversionData.last_fetched&&Ee"Currency Conversion Error.")}}convertWithoutFiat(j,W){const G={};switch(G[f.BQ.SATS]=0,G[f.BQ.BTC]=0,W){case f.BQ.SATS:G[f.BQ.SATS]=j,G[f.BQ.BTC]=1e-8*j;break;case f.BQ.BTC:G[f.BQ.SATS]=1e8*j,G[f.BQ.BTC]=j}return G}convertWithFiat(j,W,G){const re={unit:G,iconType:"FA",symbol:null};if(G){const xe=(0,f.Zo)(this.conversionData.data[G].symbol);re.iconType=xe.iconType,re.symbol=xe&&"SVG"===xe.iconType&&xe.symbol&&"string"==typeof xe.symbol?this.sanitizer.bypassSecurityTrustHtml(xe.symbol):xe.symbol}switch(re[f.BQ.SATS]=0,re[f.BQ.BTC]=0,re[f.BQ.OTHER]=0,W){case f.BQ.SATS:re[f.BQ.SATS]=j,re[f.BQ.BTC]=1e-8*j,re[f.BQ.OTHER]=1e-8*j*this.conversionData.data[G].last;break;case f.BQ.BTC:re[f.BQ.SATS]=1e8*j,re[f.BQ.BTC]=j,re[f.BQ.OTHER]=j*this.conversionData.data[G].last;break;case f.BQ.OTHER:re[f.BQ.SATS]=j/this.conversionData.data[G].last*1e8,re[f.BQ.BTC]=j/this.conversionData.data[G].last,re[f.BQ.OTHER]=j}return re}convertTime(j,W,G){switch(W){case f.F7.SECS:switch(G){case f.F7.MINS:j/=60;break;case f.F7.HOURS:j/=f.bz;break;case f.F7.DAYS:j/=24*f.bz}break;case f.F7.MINS:switch(G){case f.F7.SECS:j*=60;break;case f.F7.HOURS:j/=60;break;case f.F7.DAYS:j/=1440}break;case f.F7.HOURS:switch(G){case f.F7.SECS:j*=f.bz;break;case f.F7.MINS:j*=60;break;case f.F7.DAYS:j/=24}break;case f.F7.DAYS:switch(G){case f.F7.SECS:j=j*f.bz*24;break;case f.F7.MINS:j=60*j*24;break;case f.F7.HOURS:j*=24}}return j}downloadFile(j,W,G=".json",re=".csv"){let xe=new Blob;xe=".json"===G?new Blob(["\ufeff"+this.convertToCSV(j)],{type:"text/csv;charset=utf-8;"}):new Blob([j.toString()],{type:"text/plain;charset=utf-8"});const Ee=document.createElement("a"),V=URL.createObjectURL(xe);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&Ee.setAttribute("target","_blank"),Ee.setAttribute("href",V),Ee.setAttribute("download",W+re),Ee.style.visibility="hidden",document.body.appendChild(Ee),Ee.click(),document.body.removeChild(Ee)}convertToCSV(j){const W=[];let G="",re="",xe="";return"object"!=typeof j&&(j=JSON.parse(j)),j.forEach((V,ce)=>{for(const be in V)W.findIndex(ne=>ne===be)<0&&W.push(be)}),xe=W.join(",")+"\r\n",j.forEach(V=>{G="",W.forEach(ce=>{if(V.hasOwnProperty(ce))if(Array.isArray(V[ce]))re="",V[ce].forEach((be,ne)=>{re+="object"==typeof be?"("+JSON.stringify(be)?.replace(/\,/g,";")+")":"("+be+")"}),G+=re+",";else if("object"==typeof V[ce])G+=JSON.stringify(V[ce])?.replace(/\,/g,";")+",";else if(ce.includes("timestamp")||ce.includes("date"))try{switch(V[ce].toString().length){case 10:G+=this.datePipe.transform(new Date(1e3*V[ce]),"dd/MMM/y HH:mm")+",";break;case 13:G+=this.datePipe.transform(new Date(V[ce]),"dd/MMM/y HH:mm")+",";break;default:G+=V[ce]+","}}catch{G+=V[ce]+","}else G+=V[ce]+",";else G+=","}),xe+=G.slice(0,-1)+"\r\n"}),xe}isVersionCompatible(j,W){if(j){const G=j.match(/v?(?\d+(?:\.\d+)*)/);if(G&&G.groups&&G.groups.version){this.logger.info("Current Version: "+G.groups.version),this.logger.info("Checking Compatiblility with Version: "+W);const re=G.groups.version.split(".")||[],xe=W.split(".");return+re[0]>+xe[0]||+re[0]==+xe[0]&&+re[1]>+xe[1]||+re[0]==+xe[0]&&+re[1]==+xe[1]&&+re[2]>=+xe[2]}return this.logger.error("Invalid Version String: "+j),!1}return!1}extractErrorMessage(j,W="Unknown Error."){const G=this.titleCase(j.error&&j.error.text&&"string"==typeof j.error.text&&j.error.text.includes('')?"API Route Does Not Exist.":j.error&&j.error.error&&j.error.error.error&&j.error.error.error.error&&j.error.error.error.error.error&&"string"==typeof j.error.error.error.error.error?j.error.error.error.error.error:j.error&&j.error.error&&j.error.error.error&&j.error.error.error.error&&"string"==typeof j.error.error.error.error?j.error.error.error.error:j.error&&j.error.error&&j.error.error.error&&"string"==typeof j.error.error.error?j.error.error.error:j.error&&j.error.error&&"string"==typeof j.error.error?j.error.error:j.error&&"string"==typeof j.error?j.error:j.error&&j.error.error&&j.error.error.error&&j.error.error.error.error&&j.error.error.error.error.message&&"string"==typeof j.error.error.error.error.message?j.error.error.error.error.message:j.error&&j.error.error&&j.error.error.error&&j.error.error.error.message&&"string"==typeof j.error.error.error.message?j.error.error.error.message:j.error&&j.error.error&&j.error.error.message&&"string"==typeof j.error.error.message?j.error.error.message:j.error&&j.error.message&&"string"==typeof j.error.message?j.error.message:j.message&&"string"==typeof j.message?j.message:W);return this.logger.info("Error Message: "+G),G}extractErrorCode(j,W=500){const G=j.error&&j.error.error&&j.error.error.message&&j.error.error.message.code?j.error.error.message.code:j.error&&j.error.error&&j.error.error.code?j.error.error.code:j.error&&j.error.code?j.error.code:j.code?j.code:j.status?j.status:W;return this.logger.info("Error Code: "+G),G}extractErrorNumber(j,W=500){const G=j.error&&j.error.error&&j.error.error.errno?j.error.error.errno:j.error&&j.error.errno?j.error.errno:j.errno?j.errno:j.status?j.status:W;return this.logger.info("Error Number: "+G),G}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}static#e=le=()=>(this.\u0275fac=function(W){return new(W||Ce)(u.KVO(L.u),u.KVO(C.gP),u.KVO(B.vh),u.KVO(A.up))},this.\u0275prov=u.jDH({token:Ce,factory:Ce.\u0275fac}))}return le(),Ce})()},4416(Zt,pe,l){"use strict";l.d(pe,{A$:()=>be,A0:()=>C,Ah:()=>Ke,BQ:()=>Re,Bd:()=>P,Bv:()=>re,C6:()=>vt,C7:()=>ie,F7:()=>J,G:()=>G,H$:()=>u,HW:()=>ce,Hx:()=>te,It:()=>O,Jd:()=>pt,Jr:()=>Ee,KR:()=>ve,Ld:()=>Ae,MZ:()=>St,NG:()=>e,QP:()=>oe,SY:()=>A,TC:()=>Ye,TH:()=>Qe,U1:()=>ne,UN:()=>Xe,Uq:()=>gt,Uu:()=>fe,WW:()=>vi,X8:()=>ei,XG:()=>j,Y0:()=>ot,ZC:()=>Pt,Zb:()=>Le,Zi:()=>kn,Zo:()=>Ri,_1:()=>gn,_U:()=>Gt,aG:()=>Dt,aR:()=>nt,aU:()=>ht,bz:()=>w,ck:()=>xe,f7:()=>_e,iI:()=>lt,jG:()=>Ue,k:()=>B,md:()=>le,mu:()=>wt,nv:()=>W,o1:()=>V,oi:()=>jt,on:()=>T,q9:()=>F,rl:()=>L,rs:()=>H,tj:()=>he,ul:()=>rt,wn:()=>Vt,xk:()=>cn,xp:()=>Ce,xv:()=>f});var i=l(7705),d=l(6695),v=l(5383);function T(ee){const ye=new d.xX;return ye.itemsPerPageLabel=ee+" per page:",ye}const w=3600,e=31536e3,O=24*w*7,f="0.15.9-beta",u=(0,i.naY)()?"http://localhost:3000/rtl/api":"./api",L={AUTHENTICATE_API:u+"/authenticate",CONF_API:u+"/conf",PAGE_SETTINGS_API:u+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},C=["Sats","BTC"],B={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},A=["SECS","MINS","HOURS","DAYS"],le=10,Ce=[5,10,25,100],Ae=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],j=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],W=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Amount",placeholder:"Percentage Limit"}],G=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom"}],re={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var xe=function(ee){return ee.PAYMENT_RECEIVED="payment-received",ee.PAYMENT_RELAYED="payment-relayed",ee.PAYMENT_SENT="payment-sent",ee.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",ee.PAYMENT_FAILED="payment-failed",ee.CHANNEL_OPENED="channel-opened",ee.CHANNEL_STATE_CHANGED="channel-state-changed",ee.CHANNEL_CLOSED="channel-closed",ee}(xe||{}),Ee=function(ee){return ee.CONNECT="connect",ee.DISCONNECT="disconnect",ee.WARNING="warning",ee.INVOICE_PAYMENT="invoice_payment",ee.INVOICE_CREATION="invoice_creation",ee.CHANNEL_OPENED="channel_opened",ee.CHANNEL_STATE_CHANGED="channel_state_changed",ee.SENDPAY_SUCCESS="sendpay_success",ee.SENDPAY_FAILURE="sendpay_failure",ee.COIN_MOVEMENT="coin_movement",ee.BALANCE_SNAPSHOT="balance_snapshot",ee.BLOCK_ADDED="block_added",ee.OPENCHANNEL_PEER_SIGS="openchannel_peer_sigs",ee.CHANNEL_OPEN_FAILED="channel_open_failed",ee}(Ee||{}),V=function(ee){return ee.INVOICE="invoice",ee}(V||{}),ce=function(ee){return ee.OPERATOR="OPERATOR",ee.MERCHANT="MERCHANT",ee.ALL="ALL",ee}(ce||{}),be=function(ee){return ee.INFORMATION="Information",ee.WARNING="Warning",ee.ERROR="Error",ee.SUCCESS="Success",ee.CONFIRM="Confirm",ee}(be||{}),ne=function(ee){return ee.NOAUTH="NOAUTH",ee.JWT="JWT",ee.PASSWORD="PASSWORD",ee}(ne||{}),J=function(ee){return ee.SECS="SECS",ee.MINS="MINS",ee.HOURS="HOURS",ee.DAYS="DAYS",ee}(J||{}),Re=function(ee){return ee.SATS="Sats",ee.BTC="BTC",ee.OTHER="OTHER",ee}(Re||{}),Xe=function(ee){return ee.ARRAY="ARRAY",ee.NUMBER="NUMBER",ee.STRING="STRING",ee.BOOLEAN="BOOLEAN",ee.PASSWORD="PASSWORD",ee.DATE="DATE",ee.DATE_TIME="DATE_TIME",ee}(Xe||{}),_e=function(ee){return ee.XS="XS",ee.SM="SM",ee.MD="MD",ee.LG="LG",ee.XL="XL",ee}(_e||{});const he={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},Dt={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var lt=function(ee){return ee.WIRE_INVALID_ONION_VERSION="Invalid Onion Version",ee.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",ee.WIRE_INVALID_ONION_KEY="Invalid Onion Key",ee.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",ee.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",ee.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",ee.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",ee.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",ee.WIRE_FEE_INSUFFICIENT="Insufficient Fee",ee.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",ee.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",ee.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",ee.WIRE_CHANNEL_DISABLED="Channel Disabled",ee.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",ee.WIRE_INVALID_REALM="Invalid Realm",ee.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",ee.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",ee.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",ee.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",ee.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",ee.WIRE_MPP_TIMEOUT="MPP Timeout",ee.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",ee.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",ee}(lt||{}),Le=function(ee){return ee.CHANNELD_NORMAL="Active",ee.OPENINGD="Opening",ee.CHANNELD_AWAITING_LOCKIN="Pending Open",ee.CHANNELD_SHUTTING_DOWN="Shutting Down",ee.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",ee.CLOSINGD_COMPLETE="Closed",ee.AWAITING_UNILATERAL="Awaiting Unilateral Close",ee.FUNDING_SPEND_SEEN="Funding Spend Seen",ee.ONCHAIN="Onchain",ee.DUALOPEND_OPEN_INIT="Dual Open Initialized",ee.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",ee}(Le||{}),te=function(ee){return ee.INITIATED="Initiated",ee.PREIMAGE_REVEALED="Preimage Revealed",ee.HTLC_PUBLISHED="HTLC Published",ee.SUCCESS="Successful",ee.FAILED="Failed",ee.INVOICE_SETTLED="Invoice Settled",ee}(te||{}),ie=function(ee){return ee.LOOP_OUT="LOOP_OUT",ee.LOOP_IN="LOOP_IN",ee}(ie||{}),P=function(ee){return ee.SWAP_OUT="SWAP_OUT",ee.SWAP_IN="SWAP_IN",ee}(P||{}),F=function(ee){return ee["swap.created"]="Swap Created",ee["swap.expired"]="Swap Expired",ee["invoice.set"]="Invoice Set",ee["invoice.paid"]="Invoice Paid",ee["invoice.pending"]="Invoice Pending",ee["invoice.settled"]="Invoice Settled",ee["invoice.failedToPay"]="Invoice Failed To Pay",ee["channel.created"]="Channel Created",ee["transaction.failed"]="Transaction Failed",ee["transaction.mempool"]="Transaction Mempool",ee["transaction.claimed"]="Transaction Claimed",ee["transaction.refunded"]="Transaction Refunded",ee["transaction.confirmed"]="Transaction Confirmed",ee["transaction.lockupFailed"]="Lockup Transaction Failed",ee["swap.refunded"]="Swap Refunded",ee["swap.abandoned"]="Swap Abandoned",ee}(F||{});const ve=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],H=["MONTHLY","YEARLY"],Ke=["password","changeme","moneyprintergobrrr"];var Vt=function(ee){return ee.UN_INITIATED="UN_INITIATED",ee.INITIATED="INITIATED",ee.COMPLETED="COMPLETED",ee.ERROR="ERROR",ee}(Vt||{});const St={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_APPLICATION_SETTINGS:"Updating Application Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_BOLTZ_INFO:"Getting Boltz Info...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_INFO:"Getting Loop Info...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var ot=function(ee){return ee.INVOICE="INVOICE",ee.OFFER="OFFER",ee.KEYSEND="KEYSEND",ee}(ot||{}),nt=function(ee){return ee.FEES="FEES",ee.EVENTS="EVENTS",ee}(nt||{}),ht=function(ee){return ee.VOID="VOID",ee.SET_API_URL_ECL="SET_API_URL_ECL",ee.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",ee.RESET_ROOT_STORE="RESET_ROOT_STORE",ee.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",ee.OPEN_SNACK_BAR="OPEN_SNACKBAR",ee.OPEN_SPINNER="OPEN_SPINNER",ee.CLOSE_SPINNER="CLOSE_SPINNER",ee.OPEN_ALERT="OPEN_ALERT",ee.CLOSE_ALERT="CLOSE_ALERT",ee.OPEN_CONFIRMATION="OPEN_CONFIRMATION",ee.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",ee.SHOW_PUBKEY="SHOW_PUBKEY",ee.FETCH_CONFIG="FETCH_CONFIG",ee.SHOW_CONFIG="SHOW_CONFIG",ee.FETCH_STORE="FETCH_STORE",ee.SET_STORE="SET_STORE",ee.FETCH_APPLICATION_SETTINGS="FETCH_APPLICATION_SETTINGS",ee.SET_APPLICATION_SETTINGS="SET_APPLICATION_SETTINGS",ee.SAVE_SETTINGS="SAVE_SETTINGS",ee.SET_SELECTED_NODE="SET_SELECTED_NODE",ee.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",ee.UPDATE_APPLICATION_SETTINGS="UPDATE_APPLICATION_SETTINGS",ee.UPDATE_NODE_SETTINGS="UPDATE_NODE_SETTINGS",ee.SET_SELECTED_NODE_SETTINGS="SET_SELECTED_NODE_SETTINGS",ee.SET_NODE_DATA="SET_NODE_DATA",ee.IS_AUTHORIZED="IS_AUTHORIZED",ee.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",ee.LOGIN="LOGIN",ee.VERIFY_TWO_FA="VERIFY_TWO_FA",ee.LOGOUT="LOGOUT",ee.RESET_PASSWORD="RESET_PASSWORD",ee.RESET_PASSWORD_RES="RESET_PASSWORD_RES",ee.FETCH_FILE="FETCH_FILE",ee.SHOW_FILE="SHOW_FILE",ee}(ht||{}),oe=function(ee){return ee.RESET_LND_STORE="RESET_LND_STORE",ee.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",ee.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",ee.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",ee.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",ee.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",ee.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",ee.FETCH_INFO_LND="FETCH_INFO_LND",ee.SET_INFO_LND="SET_INFO_LND",ee.FETCH_PEERS_LND="FETCH_PEERS_LND",ee.SET_PEERS_LND="SET_PEERS_LND",ee.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",ee.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",ee.DETACH_PEER_LND="DETACH_PEER_LND",ee.REMOVE_PEER_LND="REMOVE_PEER_LND",ee.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",ee.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",ee.ADD_INVOICE_LND="ADD_INVOICE_LND",ee.FETCH_FEES_LND="FETCH_FEES_LND",ee.SET_FEES_LND="SET_FEES_LND",ee.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",ee.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",ee.FETCH_NETWORK_LND="FETCH_NETWORK_LND",ee.SET_NETWORK_LND="SET_NETWORK_LND",ee.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",ee.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",ee.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",ee.SET_CHANNELS_LND="SET_CHANNELS_LND",ee.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",ee.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",ee.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",ee.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",ee.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",ee.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",ee.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",ee.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",ee.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",ee.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",ee.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",ee.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",ee.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",ee.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",ee.FETCH_INVOICES_LND="FETCH_INVOICES_LND",ee.SET_INVOICES_LND="SET_INVOICES_LND",ee.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",ee.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",ee.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",ee.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",ee.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",ee.FETCH_UTXOS_LND="FETCH_UTXOS_LND",ee.SET_UTXOS_LND="SET_UTXOS_LND",ee.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",ee.SET_PAYMENTS_LND="SET_PAYMENTS_LND",ee.SEND_PAYMENT_LND="SEND_PAYMENT_LND",ee.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",ee.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",ee.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",ee.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",ee.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",ee.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",ee.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",ee.GEN_SEED_LND="GEN_SEED_LND",ee.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",ee.INIT_WALLET_LND="INIT_WALLET_LND",ee.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",ee.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",ee.PEER_LOOKUP_LND="PEER_LOOKUP_LND",ee.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",ee.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",ee.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",ee.SET_LOOKUP_LND="SET_LOOKUP_LND",ee.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",ee.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",ee.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",ee.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",ee.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",ee.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",ee}(oe||{}),Ye=function(ee){return ee.RESET_CLN_STORE="RESET_CLN_STORE",ee.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",ee.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",ee.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",ee.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",ee.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",ee.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",ee.SET_INFO_CLN="SET_INFO_CLN",ee.FETCH_FEES_CLN="FETCH_FEES_CLN",ee.SET_FEES_CLN="SET_FEES_CLN",ee.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",ee.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",ee.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",ee.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",ee.FETCH_UTXO_BALANCES_CLN="FETCH_UTXO_BALANCES_CLN",ee.SET_UTXO_BALANCES_CLN="SET_UTXO_BALANCES_CLN",ee.FETCH_PEERS_CLN="FETCH_PEERS_CLN",ee.SET_PEERS_CLN="SET_PEERS_CLN",ee.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",ee.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",ee.ADD_PEER_CLN="ADD_PEER_CLN",ee.DETACH_PEER_CLN="DETACH_PEER_CLN",ee.REMOVE_PEER_CLN="REMOVE_PEER_CLN",ee.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",ee.SET_CHANNELS_CLN="SET_CHANNELS_CLN",ee.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",ee.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",ee.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",ee.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",ee.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",ee.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",ee.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",ee.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",ee.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",ee.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",ee.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",ee.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",ee.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",ee.SET_LOOKUP_CLN="SET_LOOKUP_CLN",ee.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",ee.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",ee.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",ee.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",ee.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",ee.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",ee.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",ee.SET_INVOICES_CLN="SET_INVOICES_CLN",ee.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",ee.ADD_INVOICE_CLN="ADD_INVOICE_CLN",ee.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",ee.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",ee.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",ee.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",ee.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",ee.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",ee.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",ee.SET_OFFERS_CLN="SET_OFFERS_CLN",ee.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",ee.ADD_OFFER_CLN="ADD_OFFER_CLN",ee.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",ee.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",ee.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",ee.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",ee.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",ee.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",ee.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",ee}(Ye||{}),fe=function(ee){return ee.RESET_ECL_STORE="RESET_ECL_STORE",ee.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",ee.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",ee.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",ee.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",ee.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",ee.FETCH_INFO_ECL="FETCH_INFO_ECL",ee.SET_INFO_ECL="SET_INFO_ECL",ee.FETCH_FEES_ECL="FETCH_FEES_ECL",ee.SET_FEES_ECL="SET_FEES_ECL",ee.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",ee.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",ee.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",ee.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",ee.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",ee.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",ee.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",ee.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",ee.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",ee.FETCH_PEERS_ECL="FETCH_PEERS_ECL",ee.SET_PEERS_ECL="SET_PEERS_ECL",ee.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",ee.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",ee.ADD_PEER_ECL="ADD_PEER_ECL",ee.DETACH_PEER_ECL="DETACH_PEER_ECL",ee.REMOVE_PEER_ECL="REMOVE_PEER_ECL",ee.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",ee.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",ee.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",ee.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",ee.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",ee.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",ee.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",ee.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",ee.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",ee.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",ee.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",ee.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",ee.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",ee.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",ee.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",ee.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",ee.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",ee.SET_INVOICES_ECL="SET_INVOICES_ECL",ee.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",ee.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",ee.ADD_INVOICE_ECL="ADD_INVOICE_ECL",ee.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",ee.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",ee.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",ee.SET_LOOKUP_ECL="SET_LOOKUP_ECL",ee.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",ee.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",ee}(fe||{});const Qe=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var gt=function(ee){return ee.gossip_queries_ex="Gossip queries including additional information",ee.option_anchor_outputs="Anchor outputs",ee.option_data_loss_protect="Extra channel re-establish fields",ee.var_onion_optin="Variable-length routing onion payloads",ee.option_static_remotekey="Static key for remote output",ee.option_support_large_channel="Create large channels",ee.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",ee.payment_secret="Payment secret field",ee.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",ee.basic_mpp="Basic multi-part payments",ee.gossip_queries="More sophisticated gossip control",ee.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",ee.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",ee.amp="AMP",ee}(gt||{}),Gt=function(ee){return ee["data-loss-protect"]="Extra channel re-establish fields",ee["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",ee["gossip-queries"]="More sophisticated gossip control",ee["tlv-onion"]="Variable-length routing onion payloads",ee["ext-gossip-queries"]="Gossip queries can include additional information",ee["static-remote-key"]="Static key for remote output",ee["payment-addr"]="Payment secret field",ee["multi-path-payments"]="Basic multi-part payments",ee["wumbo-channels"]="Wumbo Channels",ee.anchors="Anchor outputs",ee["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",ee.amp="AMP",ee}(Gt||{});const rt=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var cn=function(ee){return ee.OFFERED="offered",ee.SETTLED="settled",ee.FAILED="failed",ee.LOCAL_FAILED="local_failed",ee}(cn||{}),jt=function(ee){return ee.ASCENDING="asc",ee.DESCENDING="desc",ee}(jt||{});const Ue=["asc","desc"],wt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:le,sortBy:"blockheight",sortOrder:jt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:le,sortBy:"blockheight",sortOrder:jt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:le,sortBy:"msatoshi_to_us",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:le,sortBy:"state",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:le,sortBy:"alias",sortOrder:jt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:le,sortBy:"expiry",sortOrder:jt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:le,sortBy:"channel_opening_fee",sortOrder:jt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:le,sortBy:"created_at",sortOrder:jt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:le,sortBy:"expires_at",sortOrder:jt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:le,sortBy:"offer_id",sortOrder:jt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:le,sortBy:"lastUpdatedAt",sortOrder:jt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:le,sortBy:"received_time",sortOrder:jt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:le,sortBy:"total_fee",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:le,sortBy:"received_time",sortOrder:jt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:le,sortBy:"received_time",sortOrder:jt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:le,sortBy:"received_time",sortOrder:jt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:le,sortBy:"date",sortOrder:jt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:le,sortBy:"msatoshi",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],pt={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}}},Pt=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:le,sortBy:"tx_id",sortOrder:jt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:le,sortBy:"time_stamp",sortOrder:jt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:le,sortBy:"tx_id",sortOrder:jt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:le,sortBy:"balancedness",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","blocks_til_maturity","limbo_balance"],columnSelection:["remote_alias","blocks_til_maturity","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:le,sortBy:"close_type",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:le,sortBy:"incoming",sortOrder:jt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:le,sortBy:"alias",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:le,sortBy:"creation_date",sortOrder:jt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:le,sortBy:"creation_date",sortOrder:jt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:le,sortBy:"timestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:le,sortBy:"total_amount",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:le,sortBy:"remote_alias",sortOrder:jt.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:le,sortBy:"timestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:le,sortBy:"date",sortOrder:jt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:le,sortBy:"hop_sequence",sortOrder:jt.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:le,sortBy:"initiation_time",sortOrder:jt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:le,sortBy:"status",sortOrder:jt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:le,sortBy:"status",sortOrder:jt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],gn={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},ei=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:le,sortBy:"timestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:le,sortBy:"alias",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:le,sortBy:"alias",sortOrder:jt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:le,sortBy:"alias",sortOrder:jt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:le,sortBy:"alias",sortOrder:jt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:le,sortBy:"firstPartTimestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:le,sortBy:"receivedAt",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:le,sortBy:"timestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:le,sortBy:"totalFee",sortOrder:jt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:le,sortBy:"timestamp",sortOrder:jt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:le,sortBy:"date",sortOrder:jt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],vi={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}},Ni_DKK="\n \n \n \n ",kn=[{id:"USD",name:"United States Dollar",iconType:"FA",symbol:v.Vpi},{id:"ARS",name:"Argentina Peso",iconType:"FA",symbol:v.Vpi},{id:"AUD",name:"Australia Dollar",iconType:"FA",symbol:v.Vpi},{id:"BRL",name:"Brazil Real",iconType:"FA",symbol:v.Tq9},{id:"CAD",name:"Canada Dollar",iconType:"FA",symbol:v.Vpi},{id:"CHF",name:"Switzerland Franc",iconType:"FA",symbol:v.zjW},{id:"CLP",name:"Chile Peso",iconType:"FA",symbol:v.Vpi},{id:"CNY",name:"China Yuan Renminbi",iconType:"FA",symbol:v.zPk},{id:"CZK",name:"Czech Republic Koruna",iconType:"SVG",symbol:"\n \n \n \n \n \n \n \n ",class:"currency-icon-x-large"},{id:"DKK",name:"Denmark Krone",iconType:"SVG",symbol:Ni_DKK,class:"currency-icon-medium"},{id:"EUR",name:"Euro Member Countries",iconType:"FA",symbol:v.s5m},{id:"GBP",name:"United Kingdom Pound",iconType:"FA",symbol:v.vfE},{id:"HKD",name:"Hong Kong Dollar",iconType:"FA",symbol:v.Vpi},{id:"HRK",name:"Croatia Kuna",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/15766/croatia-kuna-currency-symbol --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"HUF",name:"Hungary Forint",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/183602/forint-business-and-finance --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"},{id:"INR",name:"India Rupee",iconType:"FA",symbol:v.FYJ},{id:"ISK",name:"Iceland Krona",iconType:"SVG",symbol:Ni_DKK,class:"currency-icon-medium"},{id:"JPY",name:"Japan Yen",iconType:"FA",symbol:v.zPk},{id:"KRW",name:"Korea (South) Won",iconType:"FA",symbol:v.JKM},{id:"NZD",name:"New Zealand Dollar",iconType:"FA",symbol:v.Vpi},{id:"PLN",name:"Poland Zloty",iconType:"SVG",symbol:"\n \n \n \n \n \n \n ",class:"currency-icon-large"},{id:"RON",name:"Romania Leu",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/64526/romania-lei-currency --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"RUB",name:"Russia Ruble",iconType:"FA",symbol:v.f6_},{id:"SEK",name:"Sweden Krona",iconType:"SVG",symbol:Ni_DKK,class:"currency-icon-medium"},{id:"SGD",name:"Singapore Dollar",iconType:"FA",symbol:v.Vpi},{id:"THB",name:"Thailand Baht",iconType:"FA",symbol:v.Kcb},{id:"TRY",name:"Turkey Lira",iconType:"FA",symbol:v.hb3},{id:"TWD",name:"Taiwan New Dollar",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/142061/new-taiwan-dollar --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"}];function Ri(ee){const ye=kn.find(ke=>ke.id===ee);return"SVG"===ye.iconType&&"string"==typeof ye.symbol&&(ye.symbol=ye.symbol.replace('Ee});var i=l(9330),d=l(1413),v=l(4412),T=l(7673),w=l(8810),e=l(9437),O=l(1594),f=l(6354),u=l(1397),L=l(6977),C=l(3993),B=l(4416),A=l(2462),Pe=l(1771),le=l(190),Ce=l(3536),Ae=l(9584),j=l(2615),W=l(9640),G=l(8570),re=l(5416),xe=l(2200);let Ee=(()=>{var V;class ce{constructor(ne,J,De,Re,Xe){this.httpClient=ne,this.store=J,this.logger=De,this.snackBar=Re,this.titleCasePipe=Xe,this.APIUrl=B.H$,this.lnImplementation="",this.lnImplementationUpdated=new v.t(null),this.unSubs=[new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B],this.mapAliases=(_e,he)=>(_e&&_e.length>0?_e.forEach((Dt,lt)=>{if(he&&he.length>0)for(let Le=0;Le{let Re;return this.store.dispatch((0,Pe.mt)({payload:B.MZ.DECODE_PAYMENT})),Re="cln"===De?this.httpClient.post(this.APIUrl+"/"+De+B.rl.UTILITY_API+"/decode",{string:ne},{headers:{"Content-Type":"application/json"}}):this.httpClient.get(this.APIUrl+"/"+De+B.rl.PAYMENTS_API+"/decode/"+ne),Re.pipe((0,L.Q)(this.unSubs[0]),(0,f.T)(Xe=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.DECODE_PAYMENT})),Xe)),(0,e.W)(Xe=>(J?this.handleErrorWithoutAlert("Decode Payment",B.MZ.DECODE_PAYMENT,Xe):this.handleErrorWithAlert("decodePaymentData",B.MZ.DECODE_PAYMENT,"Decode Payment Failed",this.APIUrl+"/"+De+("cln"===De?B.rl.UTILITY_API+"/decode":B.rl.PAYMENTS_API+"/decode/"+ne),Xe),(0,w.$)(()=>new Error(this.extractErrorMessage(Xe))))))}))}decodePayments(ne){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(J=>{let De="",Re="",Xe=null;return"ecl"===J?(De=this.APIUrl+"/"+J+B.rl.PAYMENTS_API+"/getsentinfos",Xe={payments:ne},Re=B.MZ.GET_SENT_PAYMENTS):"cln"===J?(De=this.APIUrl+"/"+J+B.rl.UTILITY_API+"/decode",Xe={string:ne},Re=B.MZ.DECODE_PAYMENTS):(De=this.APIUrl+"/"+J+B.rl.PAYMENTS_API,Xe={payments:ne},Re=B.MZ.DECODE_PAYMENTS),this.store.dispatch((0,Pe.mt)({payload:Re})),this.httpClient.post(De,Xe).pipe((0,L.Q)(this.unSubs[1]),(0,f.T)(_e=>(this.store.dispatch((0,Pe.y0)({payload:Re})),_e)),(0,e.W)(_e=>(this.handleErrorWithAlert("decodePaymentsData",Re,Re+" Failed",De,_e),(0,w.$)(()=>new Error(this.extractErrorMessage(_e))))))}))}getAliasesFromPubkeys(ne,J){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(De=>{if(J){const Re=(new i.Nl).set("pubkeys",ne);return this.httpClient.get(this.APIUrl+"/"+De+B.rl.NETWORK_API+"/nodes",{params:Re})}return this.httpClient.get(this.APIUrl+"/"+De+B.rl.NETWORK_API+"/node/"+ne)}))}signMessage(ne){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(J=>{let De=this.APIUrl+"/"+J+B.rl.MESSAGE_API+"/sign";return"cln"===J&&(De=this.APIUrl+"/"+J+B.rl.UTILITY_API+"/sign"),this.store.dispatch((0,Pe.mt)({payload:B.MZ.SIGN_MESSAGE})),this.httpClient.post(De,{message:ne}).pipe((0,L.Q)(this.unSubs[2]),(0,f.T)(Re=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.SIGN_MESSAGE})),Re)),(0,e.W)(Re=>(this.handleErrorWithAlert("signMessageData",B.MZ.SIGN_MESSAGE,"Sign Message Failed",De,Re),(0,w.$)(()=>new Error(this.extractErrorMessage(Re))))))}))}verifyMessage(ne,J){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(De=>{let Re="",Xe=null;return"cln"===De?(Re=this.APIUrl+"/"+De+B.rl.UTILITY_API+"/verify",Xe={message:ne,zbase:J}):(Re=this.APIUrl+"/"+De+B.rl.MESSAGE_API+"/verify",Xe={message:ne,signature:J}),this.store.dispatch((0,Pe.mt)({payload:B.MZ.VERIFY_MESSAGE})),this.httpClient.post(Re,Xe).pipe((0,L.Q)(this.unSubs[3]),(0,f.T)(_e=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.VERIFY_MESSAGE})),_e)),(0,e.W)(_e=>(this.handleErrorWithAlert("verifyMessageData",B.MZ.VERIFY_MESSAGE,"Verify Message Failed",Re,_e),(0,w.$)(()=>new Error(this.extractErrorMessage(_e))))))}))}bumpFee(ne,J,De,Re){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(Xe=>{const _e={txid:ne,outputIndex:J};return De&&(_e.targetConf=De),Re&&(_e.satPerVByte=Re),this.store.dispatch((0,Pe.mt)({payload:B.MZ.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+Xe+B.rl.WALLET_API+"/bumpfee",_e).pipe((0,L.Q)(this.unSubs[4]),(0,f.T)(he=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),he)),(0,e.W)(he=>(this.handleErrorWithoutAlert("Bump Fee",B.MZ.BUMP_FEE,he),(0,w.$)(()=>new Error(this.extractErrorMessage(he))))))}))}labelUTXO(ne,J,De=!0){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(Re=>{const Xe={txid:ne,label:J,overwrite:De};return this.store.dispatch((0,Pe.mt)({payload:B.MZ.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+Re+B.rl.WALLET_API+"/label",Xe).pipe((0,L.Q)(this.unSubs[5]),(0,f.T)(_e=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.LABEL_UTXO})),_e)),(0,e.W)(_e=>(this.handleErrorWithoutAlert("Label UTXO",B.MZ.LABEL_UTXO,_e),(0,w.$)(()=>new Error(this.extractErrorMessage(_e))))))}))}leaseUTXO(ne,J){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(De=>{const Re={txid:ne,outputIndex:J};return this.store.dispatch((0,Pe.mt)({payload:B.MZ.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+De+B.rl.WALLET_API+"/lease",Re).pipe((0,L.Q)(this.unSubs[6]),(0,f.T)(Xe=>{this.store.dispatch((0,Pe.y0)({payload:B.MZ.LEASE_UTXO})),this.store.dispatch((0,le.mh)()),this.store.dispatch((0,le.SM)());const _e=new Date(1e3*Xe.expiration);return Math.round(_e.getTime())-60*_e.getTimezoneOffset()}),(0,e.W)(Xe=>(this.handleErrorWithoutAlert("Lease UTXO",B.MZ.LEASE_UTXO,Xe),(0,w.$)(()=>new Error(this.extractErrorMessage(Xe))))))}))}getForwardingHistory(ne,J,De,Re){if("LND"===ne){const Xe={end_time:De,start_time:J};return this.store.dispatch((0,Pe.mt)({payload:B.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+B.rl.SWITCH_API,Xe).pipe((0,L.Q)(this.unSubs[7]),(0,C.E)(this.store.select(Ce.eO)),(0,u.Z)(([_e,he])=>{if(_e.forwarding_events){const Dt=[...he.channels,...he.closedChannels];_e.forwarding_events.forEach(lt=>{if(Dt&&Dt.length>0)for(let Le=0;Le(this.handleErrorWithAlert("getForwardingHistoryData",B.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+B.rl.SWITCH_API,_e),(0,w.$)(()=>new Error(this.extractErrorMessage(_e))))))}return"CLN"===ne?(this.store.dispatch((0,Pe.mt)({payload:B.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/cln"+B.rl.CHANNELS_API+"/listForwards",{status:Re||"settled"}).pipe((0,L.Q)(this.unSubs[8]),(0,C.E)(this.store.select(Ae.BM)),(0,u.Z)(([Xe,_e])=>{const he=this.mapAliases(Xe,[..._e.activeChannels,..._e.pendingChannels,..._e.inactiveChannels]);return this.store.dispatch((0,Pe.y0)({payload:B.MZ.GET_FORWARDING_HISTORY})),(0,T.of)(he)}),(0,e.W)(Xe=>(this.handleErrorWithAlert("getForwardingHistoryData",B.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+B.rl.CHANNELS_API+"/listForwards",Xe),(0,w.$)(()=>new Error(this.extractErrorMessage(Xe))))))):(0,T.of)({})}listNetworkNodes(ne){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(J=>(this.store.dispatch((0,Pe.mt)({payload:B.MZ.LIST_NETWORK_NODES})),this.httpClient.post(this.APIUrl+"/"+J+B.rl.NETWORK_API+"/listNodes",ne).pipe((0,L.Q)(this.unSubs[9]),(0,u.Z)(De=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.LIST_NETWORK_NODES})),(0,T.of)(De))),(0,e.W)(De=>(this.handleErrorWithoutAlert("List Network Nodes",B.MZ.LIST_NETWORK_NODES,De),(0,w.$)(()=>this.extractErrorMessage(De))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(ne=>(this.store.dispatch((0,Pe.mt)({payload:B.MZ.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+ne+B.rl.UTILITY_API+"/listConfigs").pipe((0,L.Q)(this.unSubs[10]),(0,u.Z)(J=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.GET_LIST_CONFIGS})),(0,T.of)(J))),(0,e.W)(J=>(this.handleErrorWithoutAlert("List Configurations",B.MZ.GET_LIST_CONFIGS,J),(0,w.$)(()=>this.extractErrorMessage(J))))))))}getOrUpdateFunderPolicy(ne,J,De,Re,Xe,_e){return this.lnImplementationUpdated.pipe((0,O.$)(),(0,u.Z)(he=>{const Dt=ne?{policy:ne,policy_mod:J,lease_fee_base_msat:De,lease_fee_basis:Re,channel_fee_max_base_msat:Xe,channel_fee_max_proportional_thousandths:_e}:null;return this.store.dispatch((0,Pe.mt)({payload:B.MZ.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+he+B.rl.CHANNELS_API+"/funderUpdate",Dt).pipe((0,L.Q)(this.unSubs[11]),(0,f.T)(lt=>(this.store.dispatch((0,Pe.y0)({payload:B.MZ.GET_FUNDER_POLICY})),Dt&&this.store.dispatch((0,Pe.UI)({payload:"Funder Policy Updated Successfully with Compact Lease: "+lt.compact_lease+"!"})),lt)),(0,e.W)(lt=>(this.handleErrorWithoutAlert("Funder Policy",B.MZ.GET_FUNDER_POLICY,lt),(0,w.$)(()=>new Error(this.extractErrorMessage(lt))))))}))}circularRebalance(ne,J="",De="",Re="",Xe="",_e=[],he="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+B.rl.CHANNELS_API+"/circularRebalance",{amountMsat:ne,sourceShortChannelId:J,sourceNodeId:De,targetShortChannelId:Re,targetNodeId:Xe,ignoreNodeIds:_e,format:he}).pipe((0,L.Q)(this.unSubs[12]),(0,f.T)(Le=>Le),(0,e.W)(Le=>(this.handleErrorWithoutAlert("Rebalance Channel",B.MZ.REBALANCE_CHANNEL,Le),(0,w.$)(()=>Le.error))))}extractErrorMessage(ne,J="Unknown Error."){return this.titleCasePipe.transform(ne.error.text&&"string"==typeof ne.error.text&&ne.error.text.includes('')?"API Route Does Not Exist.":ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&ne.error.error.error.error.error&&"string"==typeof ne.error.error.error.error.error?ne.error.error.error.error.error:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&"string"==typeof ne.error.error.error.error?ne.error.error.error.error:ne.error&&ne.error.error&&ne.error.error.error&&"string"==typeof ne.error.error.error?ne.error.error.error:ne.error&&ne.error.error&&"string"==typeof ne.error.error?ne.error.error:ne.error&&"string"==typeof ne.error?ne.error:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.error&&ne.error.error.error.error.message&&"string"==typeof ne.error.error.error.error.message?ne.error.error.error.error.message:ne.error&&ne.error.error&&ne.error.error.error&&ne.error.error.error.message&&"string"==typeof ne.error.error.error.message?ne.error.error.error.message:ne.error&&ne.error.error&&ne.error.error.message&&"string"==typeof ne.error.error.message?ne.error.error.message:ne.error&&ne.error.message&&"string"==typeof ne.error.message?ne.error.message:ne.message&&"string"==typeof ne.message?ne.message:J)}handleErrorWithoutAlert(ne,J,De){De.error.text&&"string"==typeof De.error.text&&De.error.text.includes('')&&(De={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+ne+"\n"+JSON.stringify(De)),401===De.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(De.error)}))):(this.store.dispatch((0,Pe.y0)({payload:J})),this.store.dispatch((0,Pe.Gd)({payload:{action:ne,status:B.wn.ERROR,statusCode:De.status.toString(),message:this.extractErrorMessage(De)}})))}handleErrorWithAlert(ne,J,De,Re,Xe){if(this.logger.error(Xe),401===Xe.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(Xe.error)}));else{this.store.dispatch((0,Pe.y0)({payload:J}));const _e=this.extractErrorMessage(Xe);this.store.dispatch((0,Pe.xO)({payload:{data:{type:"ERROR",alertTitle:De,message:{code:Xe.status?Xe.status:"Unknown Error",message:_e,URL:Re},component:A.f}}})),this.store.dispatch((0,Pe.Gd)({payload:{action:ne,status:B.wn.ERROR,statusCode:Xe.status.toString(),message:_e,URL:Re}}))}}ngOnDestroy(){this.unSubs.forEach(ne=>{ne.next(null),ne.complete()})}static#e=V=()=>(this.\u0275fac=function(J){return new(J||ce)(j.KVO(i.Qq),j.KVO(W.il),j.KVO(G.gP),j.KVO(re.UG),j.KVO(xe.PV))},this.\u0275prov=j.jDH({token:ce,factory:ce.\u0275fac}))}return V(),ce})()},8570(Zt,pe,l){"use strict";l.d(pe,{gP:()=>e,tU:()=>O});var i=l(7705),d=l(2615);const v=(0,i.naY)(),T=()=>null;let e=(()=>{var f;class u{invokeConsoleMethod(C,B){}static#e=f=()=>(this.\u0275fac=function(B){return new(B||u)},this.\u0275prov=d.jDH({token:u,factory:u.\u0275fac}))}return f(),u})(),O=(()=>{var f;class u{get info(){return v?console.log.bind(console):T}get warn(){return v?console.warn.bind(console):T}get error(){return v?console.error.bind(console):T}invokeConsoleMethod(C,B){(console[C]||console.log||T).apply(console,[B])}static#e=f=()=>(this.\u0275fac=function(B){return new(B||u)},this.\u0275prov=d.jDH({token:u,factory:u.\u0275fac}))}return f(),u})()},4104(Zt,pe,l){"use strict";l.d(pe,{Q:()=>Ce});var i=l(9330),d=l(1413),v=l(4412),T=l(7673),w=l(8810),e=l(9437),O=l(6354),f=l(6977),u=l(4416),L=l(2462),C=l(1771),B=l(2615),A=l(8570),Pe=l(9640),le=l(2571);let Ce=(()=>{var Ae;class j{constructor(G,re,xe,Ee){this.httpClient=G,this.logger=re,this.store=xe,this.commonService=Ee,this.loopUrl="",this.swaps=[],this.swapsChanged=new v.t([]),this.unSubs=[new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B]}getLoopInfo(){return this.loopUrl=u.H$+u.rl.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,C.mt)({payload:u.MZ.GET_LOOP_SWAPS})),this.loopUrl=u.H$+u.rl.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,f.Q)(this.unSubs[0])).subscribe({next:G=>{this.store.dispatch((0,C.y0)({payload:u.MZ.GET_LOOP_SWAPS})),this.swaps=G,this.swapsChanged.next(this.swaps)},error:G=>this.swapsChanged.error(this.handleErrorWithAlert(u.MZ.GET_LOOP_SWAPS,this.loopUrl,G))})}loopOut(G,re,xe,Ee,V,ce,be,ne,J,De){const Re={amount:G,targetConf:xe,swapRoutingFee:Ee,minerFee:V,prepayRoutingFee:ce,prepayAmt:be,swapFee:ne,swapPublicationDeadline:J,destAddress:De};return""!==re&&(Re.chanId=re),this.loopUrl=u.H$+u.rl.LOOP_API+"/out",this.httpClient.post(this.loopUrl,Re).pipe((0,e.W)(Xe=>this.handleErrorWithoutAlert("Loop Out for Channel: "+re,u.MZ.NO_SPINNER,Xe)))}getLoopOutTerms(){return this.loopUrl=u.H$+u.rl.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)(G=>this.handleErrorWithoutAlert("Loop Out Terms",u.MZ.NO_SPINNER,G)))}getLoopOutQuote(G,re,xe){let Ee=new i.Nl;return Ee=Ee.append("targetConf",re.toString()),Ee=Ee.append("swapPublicationDeadline",xe.toString()),this.loopUrl=u.H$+u.rl.LOOP_API+"/out/quote/"+G,this.store.dispatch((0,C.mt)({payload:u.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:Ee}).pipe((0,f.Q)(this.unSubs[1]),(0,O.T)(V=>(this.store.dispatch((0,C.y0)({payload:u.MZ.GET_QUOTE})),V)),(0,e.W)(V=>this.handleErrorWithoutAlert("Loop Out Quote",u.MZ.GET_QUOTE,V)))}getLoopOutTermsAndQuotes(G){let re=new i.Nl;return re=re.append("targetConf",G.toString()),re=re.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=u.H$+u.rl.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,C.mt)({payload:u.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,f.Q)(this.unSubs[2]),(0,O.T)(xe=>(this.store.dispatch((0,C.y0)({payload:u.MZ.GET_TERMS_QUOTES})),xe)),(0,e.W)(xe=>(0,T.of)(this.handleErrorWithAlert(u.MZ.GET_TERMS_QUOTES,this.loopUrl,xe))))}loopIn(G,re,xe,Ee,V){const ce={amount:G,swapFee:re,minerFee:xe,lastHop:Ee,externalHtlc:V};return this.loopUrl=u.H$+u.rl.LOOP_API+"/in",this.httpClient.post(this.loopUrl,ce).pipe((0,e.W)(be=>this.handleErrorWithoutAlert("Loop In",u.MZ.NO_SPINNER,be)))}getLoopInTerms(){return this.loopUrl=u.H$+u.rl.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)(G=>this.handleErrorWithoutAlert("Loop In Terms",u.MZ.NO_SPINNER,G)))}getLoopInQuote(G,re,xe){let Ee=new i.Nl;return Ee=Ee.append("targetConf",re.toString()),Ee=Ee.append("swapPublicationDeadline",xe.toString()),this.loopUrl=u.H$+u.rl.LOOP_API+"/in/quote/"+G,this.store.dispatch((0,C.mt)({payload:u.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:Ee}).pipe((0,f.Q)(this.unSubs[3]),(0,O.T)(V=>(this.store.dispatch((0,C.y0)({payload:u.MZ.GET_QUOTE})),V)),(0,e.W)(V=>this.handleErrorWithoutAlert("Loop In Qoute",u.MZ.GET_QUOTE,V)))}getLoopInTermsAndQuotes(G){let re=new i.Nl;return re=re.append("targetConf",G.toString()),re=re.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=u.H$+u.rl.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,C.mt)({payload:u.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,f.Q)(this.unSubs[4]),(0,O.T)(xe=>(this.store.dispatch((0,C.y0)({payload:u.MZ.GET_TERMS_QUOTES})),xe)),(0,e.W)(xe=>(0,T.of)(this.handleErrorWithAlert(u.MZ.GET_TERMS_QUOTES,this.loopUrl,xe))))}getSwap(G){return this.loopUrl=u.H$+u.rl.LOOP_API+"/swap/"+G,this.httpClient.get(this.loopUrl).pipe((0,e.W)(re=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+G,u.MZ.NO_SPINNER,re)))}handleErrorWithoutAlert(G,re,xe){let Ee="";return this.logger.error("ERROR IN: "+G+"\n"+JSON.stringify(xe)),this.store.dispatch((0,C.y0)({payload:re})),401===xe.status?(Ee="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ri)({payload:Ee}))):503===xe.status?(Ee="Unable to Connect to Loop Server.",this.store.dispatch((0,C.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:xe.status,message:"Unable to Connect to Loop Server",URL:G},component:L.f}}}))):Ee=this.commonService.extractErrorMessage(xe),(0,w.$)(()=>new Error(Ee))}handleErrorWithAlert(G,re,xe){let Ee="";if(this.logger.error(xe),this.store.dispatch((0,C.y0)({payload:G})),401===xe.status)Ee="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,C.ri)({payload:Ee}));else if(503===xe.status)Ee="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:xe.status,message:"Unable to Connect to Loop Server",URL:re},component:L.f}}}))},100);else{Ee=this.commonService.extractErrorMessage(xe);const V=xe.error&&xe.error.error&&xe.error.error.code?xe.error.error.code:xe.error&&xe.error.code?xe.error.code:xe.code?xe.code:xe.status;setTimeout(()=>{this.store.dispatch((0,C.xO)({payload:{data:{type:u.A$.ERROR,alertTitle:"ERROR",message:{code:V,message:Ee,URL:re},component:L.f}}}))},100)}return{message:Ee}}ngOnDestroy(){this.unSubs.forEach(G=>{G.next(null),G.complete()})}static#e=Ae=()=>(this.\u0275fac=function(re){return new(re||j)(B.KVO(i.Qq),B.KVO(A.gP),B.KVO(Pe.il),B.KVO(le.h))},this.\u0275prov=B.jDH({token:j,factory:j.\u0275fac}))}return Ae(),j})()},3202(Zt,pe,l){"use strict";l.d(pe,{Q:()=>v});var i=l(1413),d=l(2615);let v=(()=>{var T;class w{constructor(){this.sessionSub=new i.B}watchSession(){return this.sessionSub.asObservable()}getItem(O){return sessionStorage.getItem(O)}getAllItems(){return sessionStorage}setItem(O,f){sessionStorage.setItem(O,f),this.sessionSub.next(sessionStorage)}removeItem(O){sessionStorage.removeItem(O),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}static#e=T=()=>(this.\u0275fac=function(f){return new(f||w)},this.\u0275prov=d.jDH({token:w,factory:w.\u0275fac}))}return T(),w})()},7879(Zt,pe,l){"use strict";l.d(pe,{I:()=>Pe});var i=l(4412),d=l(1413),v=l(6977),T=l(7707),w=l(1985),e=l(8359),O=l(2771);const f={url:"",deserializer:le=>JSON.parse(le.data),serializer:le=>JSON.stringify(le)};class L extends d.k{constructor(Ce,Ae){if(super(),this._socket=null,Ce instanceof w.c)this.destination=Ae,this.source=Ce;else{const j=this._config=Object.assign({},f);if(this._output=new d.B,"string"==typeof Ce)j.url=Ce;else for(const W in Ce)Ce.hasOwnProperty(W)&&(j[W]=Ce[W]);if(!j.WebSocketCtor&&WebSocket)j.WebSocketCtor=WebSocket;else if(!j.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new O.m}}lift(Ce){const Ae=new L(this._config,this.destination);return Ae.operator=Ce,Ae.source=this,Ae}_resetState(){this._socket=null,this.source||(this.destination=new O.m),this._output=new d.B}multiplex(Ce,Ae,j){const W=this;return new w.c(G=>{try{W.next(Ce())}catch(xe){G.error(xe)}const re=W.subscribe({next:xe=>{try{j(xe)&&G.next(xe)}catch(Ee){G.error(Ee)}},error:xe=>G.error(xe),complete:()=>G.complete()});return()=>{try{W.next(Ae())}catch(xe){G.error(xe)}re.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Ce,protocol:Ae,url:j,binaryType:W}=this._config,G=this._output;let re=null;try{re=Ae?new Ce(j,Ae):new Ce(j),this._socket=re,W&&(this._socket.binaryType=W)}catch(Ee){return void G.error(Ee)}const xe=new e.yU(()=>{this._socket=null,re&&1===re.readyState&&re.close()});re.onopen=Ee=>{const{_socket:V}=this;if(!V)return re.close(),void this._resetState();const{openObserver:ce}=this._config;ce&&ce.next(Ee);const be=this.destination;this.destination=T.vU.create(ne=>{if(1===re.readyState)try{const{serializer:J}=this._config;re.send(J(ne))}catch(J){this.destination.error(J)}},ne=>{const{closingObserver:J}=this._config;J&&J.next(void 0),ne&&ne.code?re.close(ne.code,ne.reason):G.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:ne}=this._config;ne&&ne.next(void 0),re.close(),this._resetState()}),be&&be instanceof O.m&&xe.add(be.subscribe(this.destination))},re.onerror=Ee=>{this._resetState(),G.error(Ee)},re.onclose=Ee=>{re===this._socket&&this._resetState();const{closeObserver:V}=this._config;V&&V.next(Ee),Ee.wasClean?G.complete():G.error(Ee)},re.onmessage=Ee=>{try{const{deserializer:V}=this._config;G.next(V(Ee))}catch(V){G.error(V)}}}_subscribe(Ce){const{source:Ae}=this;return Ae?Ae.subscribe(Ce):(this._socket||this._connectSocket(),this._output.subscribe(Ce),Ce.add(()=>{const{_socket:j}=this;0===this._output.observers.length&&(j&&(1===j.readyState||0===j.readyState)&&j.close(),this._resetState())}),Ce)}unsubscribe(){const{_socket:Ce}=this;Ce&&(1===Ce.readyState||0===Ce.readyState)&&Ce.close(),this._resetState(),super.unsubscribe()}}var C=l(2615),B=l(8570),A=l(3202);let Pe=(()=>{var le;class Ce{constructor(j,W){this.logger=j,this.sessionService=W,this.clWSMessages=new i.t(null),this.eclWSMessages=new i.t(null),this.lndWSMessages=new i.t(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B,new d.B]}connectWebSocket(j,W){(!this.socket||this.socket.closed)&&(this.wsUrl=j,this.nodeIndex=W,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:j,protocol:[this.sessionService.getItem("token")||"",W]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket?.pipe((0,v.Q)(this.unSubs[1])).subscribe({next:j=>{if((j="string"==typeof j?JSON.parse(j):j).error)this.handleError(j.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(j)),j.source){case"LND":this.lndWSMessages.next(j);break;case"CLN":this.clWSMessages.next(j);break;case"ECL":this.eclWSMessages.next(j)}},error:j=>this.handleError(j),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(j){this.logger.error(j),this.clWSMessages.error(j),this.eclWSMessages.error(j),this.lndWSMessages.error(j),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}static#e=le=()=>(this.\u0275fac=function(W){return new(W||Ce)(C.KVO(B.gP),C.KVO(A.Q))},this.\u0275prov=C.jDH({token:Ce,factory:Ce.\u0275fac}))}return le(),Ce})()},9029(Zt,pe,l){"use strict";l.d(pe,{G:()=>Es});var i=l(2200),d=l(8132),v=l(9417),T=l(60),w=l(9327),e=l(3),O=l(9945),f=l(1585),u=l(2628),L=l(1975),C=l(8834),B=l(9726),A=l(6838),j=(l(1577),l(3869),l(7336),l(438),l(8968)),W=l(3664),G=l(2615),re=l(7705),xe=l(2496),Ee=l(3386),V=l(1804),ce=l(2046),be=l(2466),ne=l(6881);const J=["button"],De=["*"];function Re(kt,On){if(1&kt&&(W.j41(0,"div",2),W.nrm(1,"mat-pseudo-checkbox",6),W.k0s()),2&kt){const $e=W.XpG();W.R7$(),W.Y8G("disabled",$e.disabled)}}const Xe=new G.nKC("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:function _e(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}}),he=new G.nKC("MatButtonToggleGroup");class lt{source;value;constructor(On,$e){this.source=On,this.value=$e}}let te=(()=>{class kt{_changeDetectorRef=(0,G.WQX)(re.gRc);_elementRef=(0,G.WQX)(W.aKT);_focusMonitor=(0,G.WQX)(A.FN);_idGenerator=(0,G.WQX)(B.g);_animationDisabled=(0,V.Rc)();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex($e){this._tabIndex.set($e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance($e){this._appearance=$e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked($e){$e!==this._checked&&(this._checked=$e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled($e){this._disabled=$e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||null!==this.buttonToggleGroup&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive($e){this._disabledInteractive=$e}_disabledInteractive;change=new W.bkB;constructor(){(0,G.WQX)(j.l).load(ce.A);const $e=(0,G.WQX)(he,{optional:!0}),mn=(0,G.WQX)(new re.ES_("tabindex"),{optional:!0})||"",Ln=(0,G.WQX)(Xe,{optional:!0});this._tabIndex=(0,G.vPA)(parseInt(mn)||0),this.buttonToggleGroup=$e,this.appearance=Ln&&Ln.appearance?Ln.appearance:"standard",this.disabledInteractive=Ln?.disabledInteractive??!1}ngOnInit(){const $e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),$e&&($e._isPrechecked(this)?this.checked=!0:$e._isSelected(this)!==this._checked&&$e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const $e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),$e&&$e._isSelected(this)&&$e._syncButtonToggle(this,!1,!1,!0)}focus($e){this._buttonElement.nativeElement.focus($e)}_onButtonClick(){if(this.disabled)return;const $e=!!this.isSingleSelector()||!this._checked;if($e!==this._checked&&(this._checked=$e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){const mn=this.buttonToggleGroup._buttonToggles.find(Ln=>0===Ln.tabIndex);mn&&(mn.tabIndex=-1),this.tabIndex=0}this.change.emit(new lt(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(mn){return new(mn||kt)};static \u0275cmp=W.VBU({type:kt,selectors:[["mat-button-toggle"]],viewQuery:function(mn,Ln){if(1&mn&&W.GBs(J,5),2&mn){let Ei;W.mGM(Ei=W.lsd())&&(Ln._buttonElement=Ei.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(mn,Ln){1&mn&&W.bIt("focus",function(){return Ln.focus()}),2&mn&&(W.BMQ("aria-label",null)("aria-labelledby",null)("id",Ln.id)("name",null),W.AVh("mat-button-toggle-standalone",!Ln.buttonToggleGroup)("mat-button-toggle-checked",Ln.checked)("mat-button-toggle-disabled",Ln.disabled)("mat-button-toggle-disabled-interactive",Ln.disabledInteractive)("mat-button-toggle-appearance-standard","standard"===Ln.appearance))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",re.L39],appearance:"appearance",checked:[2,"checked","checked",re.L39],disabled:[2,"disabled","disabled",re.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",re.L39]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:De,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(mn,Ln){if(1&mn){const Ei=W.RV6();W.NAR(),W.j41(0,"button",1,0),W.bIt("click",function(){return G.eBV(Ei),G.Njj(Ln._onButtonClick())}),W.nVh(2,Re,2,1,"div",2),W.j41(3,"span",3),W.SdG(4),W.k0s()(),W.nrm(5,"span",4)(6,"span",5)}if(2&mn){const Ei=W.sdS(1);W.Y8G("id",Ln.buttonId)("disabled",Ln.disabled&&!Ln.disabledInteractive||null),W.BMQ("role",Ln.isSingleSelector()?"radio":"button")("tabindex",Ln.disabled&&!Ln.disabledInteractive?-1:Ln.tabIndex)("aria-pressed",Ln.isSingleSelector()?null:Ln.checked)("aria-checked",Ln.isSingleSelector()?Ln.checked:null)("name",Ln._getButtonName())("aria-label",Ln.ariaLabel)("aria-labelledby",Ln.ariaLabelledby)("aria-disabled",Ln.disabled&&Ln.disabledInteractive?"true":null),W.R7$(2),W.vxM(Ln.buttonToggleGroup&&(!Ln.buttonToggleGroup.multiple&&!Ln.buttonToggleGroup.hideSingleSelectionIndicator||Ln.buttonToggleGroup.multiple&&!Ln.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),W.R7$(4),W.Y8G("matRippleTrigger",Ei)("matRippleDisabled",Ln.disableRipple||Ln.disabled)}},dependencies:[xe.r6,Ee.w],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"],encapsulation:2,changeDetection:0})}return kt})(),ie=(()=>{class kt{static \u0275fac=function(mn){return new(mn||kt)};static \u0275mod=W.$C({type:kt});static \u0275inj=G.G2t({imports:[be.y,ne.p,te,be.y]})}return kt})();var P=l(5596),F=l(2765),ve=l(5084),H=l(9454),$=l(2885),Ke=l(2629),Vt=l(3746),St=l(3902),ot=l(9115),nt=l(6695),ht=l(7575),oe=l(9183),Ye=l(5951),fe=l(6183),Qe=l(882),gt=l(450),Gt=l(9842);l(1413);let dn=(()=>{class kt{static \u0275fac=function(mn){return new(mn||kt)};static \u0275mod=W.$C({type:kt});static \u0275inj=G.G2t({imports:[be.y,ne.p]})}return kt})();var xn=l(5416),Jn=l(2042),xi=l(6013),Yi=l(1676),Tt=l(6850),At=l(5911),we=l(6156),ae=l(7358),Lt=l(6471),Ht=l(9340),_n=l(6038),fi=l(2920);l(4085);let wa=(()=>{class kt{}return kt.\u0275fac=function($e){return new($e||kt)},kt.\u0275mod=W.$C({type:kt}),kt.\u0275inj=G.G2t({imports:[Ht.Ui]}),kt})();var ja=l(177);let Or=(()=>{class kt{constructor($e,mn){(0,ja.Vy)(mn)&&!$e&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig($e,mn=[]){return{ngModule:kt,providers:$e.serverLoaded?[{provide:Ht.EA,useValue:{...Ht.PV,...$e}},{provide:Ht.SL,useValue:mn,multi:!0},{provide:Ht.Ce,useValue:!0}]:[{provide:Ht.EA,useValue:{...Ht.PV,...$e}},{provide:Ht.SL,useValue:mn,multi:!0}]}}}return kt.\u0275fac=function($e){return new($e||kt)(G.KVO(Ht.Ce),G.KVO(W.Agw))},kt.\u0275mod=W.$C({type:kt}),kt.\u0275inj=G.G2t({imports:[fi.w2,_n.Cc,wa,fi.w2,_n.Cc,wa]}),kt})();var Rr=l(1993),Fs=l(8288),Hr=l(497),Ks=l(9338);let Sr=(()=>{var kt;class On extends Ks.Sf{constructor(mn,Ln){super(mn,Ln)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}static#e=kt=()=>(this.\u0275fac=function(Ln){return new(Ln||On)(W.rXU(G.qQL),W.rXU(Gt.O))},this.\u0275dir=W.FsC({type:On,features:[W.Vt3]}))}return kt(),On})();var Ne=l(8570),He=l(4416),q=l(2929),mt=l(9330);const ln={suppressScrollX:!1,suppressScrollY:!1};let Oi=(()=>{var kt;class On extends e.xW{constructor(mn){super(mn)}format(mn,Ln){if("input"===Ln){let Ei=mn.getDate().toString();return Ei=+Ei<10?"0"+Ei:Ei,Ei+"/"+He.KR[mn.getMonth()].name.toUpperCase()+"/"+mn.getFullYear()}return He.KR[mn.getMonth()].name.toUpperCase()+" "+mn.getFullYear()}static#e=kt=()=>(this.\u0275fac=function(Ln){return new(Ln||On)(G.KVO(O.Ju,8))},this.\u0275prov=G.jDH({token:On,factory:On.\u0275fac}))}return kt(),On})();const ua={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let Es=(()=>{var kt;class On{static#e=kt=()=>(this.\u0275fac=function(Ln){return new(Ln||On)},this.\u0275mod=W.$C({type:On}),this.\u0275inj=G.G2t({providers:[{provide:Ne.gP,useClass:Ne.tU},{provide:Hr.kU,useValue:ln},{provide:xn.x6,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:f.di,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:O.MJ,useClass:Oi},{provide:O.de,useValue:ua},{provide:Ks.Sf,useClass:Sr},i.QX,i.PV,i.vh,q.gZ,q.ZE,q.VD,q.Qu],imports:[i.MD,mt.q1,v.YN,v.X1,T.dX,w.RH,f.hM,C.Hl,ie,P.Hu,F.g7,H.MY,$.Fe,ve.X6,e.WX,Ke.m_,Vt.fS,St.Fg,ot.Cn,ht.PO,oe.D6,Ye.Wk,ae.jH,Or,Lt.YN,fe.Ve,Qe.vg,gt.mV,Jn.NQ,Yi.tP,At.s5,we.u,L.Y,nt.Ou,xi.aP,dn,Tt.RI,xn._T,u.jL,Rr.dV,Fs.XK,d.iI,Hr.U$,v.YN,v.X1,T.dX,w.RH,f.hM,C.Hl,ie,P.Hu,F.g7,H.MY,$.Fe,ve.X6,e.WX,Ke.m_,Vt.fS,St.Fg,ot.Cn,ht.PO,oe.D6,Ye.Wk,ae.jH,Or,Lt.YN,fe.Ve,Qe.vg,gt.mV,Jn.NQ,Yi.tP,At.s5,we.u,L.Y,nt.Ou,xi.aP,dn,Tt.RI,xn._T,u.jL,Rr.dV,Fs.XK,Hr.U$]}))}return kt(),On})()},1771(Zt,pe,l){"use strict";l.d(pe,{Dz:()=>le,Fl:()=>V,Gd:()=>w,I1:()=>B,IK:()=>W,Jh:()=>e,My:()=>T,NU:()=>j,Np:()=>xe,OP:()=>Pe,Qi:()=>G,R$:()=>C,T$:()=>re,Tn:()=>Ae,UI:()=>O,iD:()=>Re,mt:()=>f,oz:()=>J,rc:()=>Ee,ri:()=>ce,t2:()=>_e,uP:()=>A,xO:()=>L,xw:()=>be,y0:()=>u});var i=l(9640),d=l(4416);(0,i.VP)(d.aU.VOID);const T=(0,i.VP)(d.aU.SET_API_URL_ECL,(0,i.xk)()),w=(0,i.VP)(d.aU.UPDATE_API_CALL_STATUS_ROOT,(0,i.xk)()),e=(0,i.VP)(d.aU.CLOSE_ALL_DIALOGS),O=(0,i.VP)(d.aU.OPEN_SNACK_BAR,(0,i.xk)()),f=(0,i.VP)(d.aU.OPEN_SPINNER,(0,i.xk)()),u=(0,i.VP)(d.aU.CLOSE_SPINNER,(0,i.xk)()),L=(0,i.VP)(d.aU.OPEN_ALERT,(0,i.xk)()),C=(0,i.VP)(d.aU.CLOSE_ALERT,(0,i.xk)()),B=(0,i.VP)(d.aU.OPEN_CONFIRMATION,(0,i.xk)()),A=(0,i.VP)(d.aU.CLOSE_CONFIRMATION,(0,i.xk)()),Pe=(0,i.VP)(d.aU.SHOW_PUBKEY),le=(0,i.VP)(d.aU.FETCH_CONFIG,(0,i.xk)()),Ae=((0,i.VP)(d.aU.SHOW_CONFIG,(0,i.xk)()),(0,i.VP)(d.aU.RESET_ROOT_STORE,(0,i.xk)())),j=(0,i.VP)(d.aU.FETCH_APPLICATION_SETTINGS),W=(0,i.VP)(d.aU.SET_APPLICATION_SETTINGS,(0,i.xk)()),G=(0,i.VP)(d.aU.SET_SELECTED_NODE,(0,i.xk)()),re=(0,i.VP)(d.aU.UPDATE_NODE_SETTINGS,(0,i.xk)()),xe=(0,i.VP)(d.aU.SET_SELECTED_NODE_SETTINGS,(0,i.xk)()),Ee=(0,i.VP)(d.aU.UPDATE_APPLICATION_SETTINGS,(0,i.xk)()),V=(0,i.VP)(d.aU.SET_NODE_DATA,(0,i.xk)()),ce=(0,i.VP)(d.aU.LOGOUT,(0,i.xk)()),be=(0,i.VP)(d.aU.RESET_PASSWORD,(0,i.xk)()),J=((0,i.VP)(d.aU.RESET_PASSWORD_RES,(0,i.xk)()),(0,i.VP)(d.aU.IS_AUTHORIZED,(0,i.xk)())),Re=((0,i.VP)(d.aU.IS_AUTHORIZED_RES,(0,i.xk)()),(0,i.VP)(d.aU.LOGIN,(0,i.xk)())),_e=((0,i.VP)(d.aU.VERIFY_TWO_FA,(0,i.xk)()),(0,i.VP)(d.aU.FETCH_FILE,(0,i.xk)()));(0,i.VP)(d.aU.SHOW_FILE,(0,i.xk)())},7541(Zt,pe,l){"use strict";l.d(pe,{H:()=>ci});var i=l(7705),d=l(1747),v=l(1413),T=l(7673),w=l(6354),e=l(6697),O=l(3993),f=l(1397),u=l(9437),L=l(6977),C=l(4416),B=l(1585),A=l(3664),Pe=l(9183),le=l(2920);let Ce=(()=>{var rn;class In{constructor(Vn,ii){this.dialogRef=Vn,this.data=ii}static#e=rn=()=>(this.\u0275fac=function(ii){return new(ii||In)(A.rXU(B.CP),A.rXU(B.Vh))},this.\u0275cmp=A.VBU({type:In,selectors:[["rtl-spinner-dialog"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(ii,Bn){1&ii&&(A.j41(0,"div",0),A.nrm(1,"mat-progress-spinner",1),A.j41(2,"h2"),A.EFF(3),A.k0s()()),2&ii&&(A.R7$(3),A.JRh(Bn.data.titleMessage))},dependencies:[Pe.LG,le.DJ,le.sA],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}))}return rn(),In})();var Ae=l(5383),j=l(9647),W=l(2615),G=l(8570),re=l(5416),xe=l(2571),Ee=l(3694),V=l(9640),ce=l(2200),be=l(60),ne=l(8834),J=l(5596),De=l(2629),Re=l(1997),Xe=l(6038),_e=l(455),he=l(8288),Dt=l(497),lt=l(9157),Le=l(9587);const te=["scrollContainer"],ie=rn=>({"display-none":rn}),P=rn=>({"h-40":rn}),F=rn=>({"failed-status":rn});function ve(rn,In){if(1&rn&&A.nrm(0,"qr-code",19),2&rn){const Mn=A.XpG();A.Y8G("value",Mn.showQRField)("size",200)}}function H(rn,In){1&rn&&A.eu8(0)}function $(rn,In){if(1&rn&&(A.qex(0),A.j41(1,"mat-card-content",20,1),A.DNE(3,H,1,0,"ng-container",21),A.k0s(),A.bVm()),2&rn){const Mn=A.XpG(),Vn=A.sdS(20);A.R7$(),A.Y8G("ngClass",A.eq3(2,P,Mn.data.scrollable)),A.R7$(2),A.Y8G("ngTemplateOutlet",Vn)}}function Ke(rn,In){1&rn&&A.eu8(0)}function Vt(rn,In){if(1&rn&&(A.qex(0),A.j41(1,"mat-card-content",22),A.DNE(2,Ke,1,0,"ng-container",21),A.k0s(),A.bVm()),2&rn){A.XpG();const Mn=A.sdS(20);A.R7$(2),A.Y8G("ngTemplateOutlet",Mn)}}function St(rn,In){1&rn&&(A.j41(0,"mat-icon",27),A.EFF(1,"arrow_downward"),A.k0s())}function ot(rn,In){1&rn&&(A.j41(0,"mat-icon",28),A.EFF(1,"arrow_upward"),A.k0s())}function nt(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"div",23)(1,"button",24),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG();return W.Njj(ii.onScroll())}),A.DNE(2,St,2,0,"mat-icon",25)(3,ot,2,0,"mat-icon",26),A.k0s()()}if(2&rn){const Mn=A.XpG();A.R7$(2),A.Y8G("ngIf","DOWN"===Mn.scrollDirection),A.R7$(),A.Y8G("ngIf","UP"===Mn.scrollDirection)}}function ht(rn,In){1&rn&&(A.j41(0,"button",29),A.EFF(1,"OK"),A.k0s()),2&rn&&A.Y8G("mat-dialog-close",!1)}function oe(rn,In){1&rn&&(A.j41(0,"button",30),A.EFF(1,"Close"),A.k0s()),2&rn&&A.Y8G("mat-dialog-close",!1)}function Ye(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"button",31),A.bIt("copied",function(ii){W.eBV(Mn);const Bn=A.XpG();return W.Njj(Bn.onCopyField(ii))}),A.EFF(1),A.k0s()}if(2&rn){const Mn=A.XpG();A.Y8G("payload",Mn.showCopyField),A.R7$(),A.SpI("Copy ",Mn.showCopyName)}}function fe(rn,In){1&rn&&(A.j41(0,"button",30),A.EFF(1,"Close"),A.k0s()),2&rn&&A.Y8G("mat-dialog-close",!1)}function Qe(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"button",31),A.bIt("copied",function(ii){W.eBV(Mn);const Bn=A.XpG();return W.Njj(Bn.onCopyField(ii))}),A.EFF(1),A.k0s()}if(2&rn){const Mn=A.XpG();A.Y8G("payload",Mn.showQRField),A.R7$(),A.SpI("Copy ",Mn.showQRName)}}function gt(rn,In){if(1&rn&&A.nrm(0,"qr-code",19),2&rn){const Mn=A.XpG(2);A.Y8G("value",Mn.showQRField)("size",200)}}function Gt(rn,In){if(1&rn&&(A.j41(0,"p",37),A.EFF(1),A.k0s()),2&rn){const Mn=A.XpG(2);A.R7$(),A.JRh(Mn.data.titleMessage)}}function rt(rn,In){1&rn&&A.nrm(0,"span",51),2&rn&&A.Y8G("innerHTML",In.$implicit,A.npT)}function cn(rn,In){if(1&rn&&(A.qex(0),A.j41(1,"span",34),A.DNE(2,rt,1,1,"span",50),A.k0s(),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(2),A.Y8G("ngForOf",Mn.value)}}function Ft(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.nI1(2,"date"),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*Mn.value,"dd/MMM/y HH:mm"))}}function Sn(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.nI1(2,"number"),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(A.i5U(2,1,Mn.value,Mn.digitsInfo?Mn.digitsInfo:"1.0-3"))}}function Qn(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(Mn.value?"True":"False")}}function h(rn,In){1&rn&&(A.j41(0,"mat-icon",55),A.EFF(1,"info"),A.k0s())}function jt(rn,In){if(1&rn&&(A.j41(0,"p",53),A.EFF(1),A.DNE(2,h,2,0,"mat-icon",54),A.k0s()),2&rn){const Mn=A.XpG(3).$implicit,Vn=A.XpG(4);A.Y8G("ngClass",A.eq3(3,F,Mn.value===Vn.LoopStateEnum.FAILED)),A.R7$(),A.SpI(" ",Mn.value," "),A.R7$(),A.Y8G("ngIf",Mn.value===Vn.LoopStateEnum.FAILED)}}function Ue(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"p",57),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG(8);return W.Njj(ii.onGoToLink())}),A.EFF(1),A.k0s()}if(2&rn){const Mn=A.XpG(4).$implicit,Vn=A.XpG(4);A.Y8G("matTooltip",A.mNQ("Go To "+Vn.goToName)),A.R7$(),A.SpI(" ",Mn.value," ")}}function wt(rn,In){if(1&rn&&A.EFF(0),2&rn){const Mn=A.XpG(4).$implicit;A.SpI(" ",Mn.value," ")}}function pt(rn,In){if(1&rn&&A.DNE(0,Ue,2,3,"p",56)(1,wt,1,1,"ng-template",null,4,A.C5r),2&rn){const Mn=A.sdS(2),Vn=A.XpG(3).$implicit,ii=A.XpG(4);A.Y8G("ngIf",Vn.value===ii.goToFieldValue)("ngIfElse",Mn)}}function Pt(rn,In){if(1&rn&&(A.qex(0),A.DNE(1,jt,3,5,"p",52)(2,pt,3,2,"ng-template",null,3,A.C5r),A.bVm()),2&rn){const Mn=A.sdS(3),Vn=A.XpG(2).$implicit,ii=A.XpG(4);A.R7$(),A.Y8G("ngIf","SWAP"===ii.data.openedBy&&"state"===Vn.key)("ngIfElse",Mn)}}function gn(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"fa-icon",58),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG(2).$implicit,Bn=A.XpG(4);return W.Njj(Bn.onExplorerClicked(ii))}),A.k0s()}if(2&rn){const Mn=A.XpG(6);A.Y8G("matTooltip",A.mNQ("Link to "+Mn.selNode.settings.blockExplorerUrl))("icon",Mn.faUpRightFromSquare)}}function ei(rn,In){if(1&rn&&(A.j41(0,"span")(1,"span",46),A.DNE(2,cn,3,1,"ng-container",47)(3,Ft,3,4,"ng-container",47)(4,Sn,3,4,"ng-container",47)(5,Qn,2,1,"ng-container",47)(6,Pt,4,2,"ng-container",48),A.j41(7,"span"),A.DNE(8,gn,1,3,"fa-icon",49),A.k0s()()()),2&rn){const Mn=A.XpG().$implicit,Vn=A.XpG(4);A.R7$(),A.Y8G("ngSwitch",Mn.type),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.ARRAY),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.DATE_TIME),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.NUMBER),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.BOOLEAN),A.R7$(3),A.Y8G("ngIf",Mn.explorerLink&&""!==Mn.explorerLink)}}function vi(rn,In){1&rn&&(A.j41(0,"span",59),A.EFF(1,"\xa0"),A.k0s())}function Ni(rn,In){if(1&rn&&(A.j41(0,"div",42)(1,"h4",43),A.EFF(2),A.k0s(),A.DNE(3,ei,9,6,"span",44)(4,vi,2,0,"ng-template",null,2,A.C5r),A.nrm(6,"mat-divider",45),A.k0s()),2&rn){const Mn=In.$implicit,Vn=A.sdS(5);A.Y8G("fxFlex.gt-md",A.mNQ(Mn.width)),A.R7$(2),A.JRh(Mn.title),A.R7$(),A.Y8G("ngIf",Mn&&(!!Mn.value||0===Mn.value))("ngIfElse",Vn)}}function kn(rn,In){if(1&rn&&(A.j41(0,"div")(1,"div",40),A.DNE(2,Ni,7,5,"div",41),A.k0s()()),2&rn){const Mn=In.$implicit;A.R7$(2),A.Y8G("ngForOf",Mn)}}function Ri(rn,In){if(1&rn&&(A.j41(0,"div",38),A.DNE(1,kn,3,1,"div",39),A.k0s()),2&rn){const Mn=A.XpG(2);A.R7$(),A.Y8G("ngForOf",Mn.messageObjs)}}function vt(rn,In){if(1&rn&&(A.j41(0,"div",32)(1,"div",33),A.DNE(2,gt,1,2,"qr-code",7),A.k0s(),A.j41(3,"div",34),A.DNE(4,Gt,2,1,"p",35)(5,Ri,2,1,"div",36),A.k0s()()),2&rn){const Mn=A.XpG();A.R7$(),A.Y8G("ngClass",A.eq3(4,ie,""===Mn.showQRField||Mn.screenSize!==Mn.screenSizeEnum.XS&&Mn.screenSize!==Mn.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",""!==Mn.showQRField),A.R7$(2),A.Y8G("ngIf",Mn.data.titleMessage),A.R7$(),A.Y8G("ngIf",(null==Mn.messageObjs?null:Mn.messageObjs.length)>0)}}let ee=(()=>{var rn;class In{set container(Vn){Vn&&(this.scrollContainer=Vn,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",ii=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",ii=>{this.scrollDirection="DOWN"})))}constructor(Vn,ii,Bn,ia,ra,fa,ha,qt){this.dialogRef=Vn,this.data=ii,this.logger=Bn,this.snackBar=ia,this.commonService=ra,this.renderer=fa,this.router=ha,this.store=qt,this.faUpRightFromSquare=Ae.k02,this.LoopStateEnum=C.Hx,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=C.A$,this.dataTypeEnum=C.UN,this.screenSize="",this.screenSizeEnum=C.f7,this.scrollDirection="DOWN",this.shouldScroll=!0,this.unSubs=[new v.B,new v.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===C.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs),this.store.select(j._c).pipe((0,L.Q)(this.unSubs[0])).subscribe(Vn=>{this.selNode=Vn,this.logger.info(this.selNode)})}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(Vn){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Vn)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}onExplorerClicked(Vn){window.open(this.selNode.settings.blockExplorerUrl+"/"+Vn.explorerLink+"/"+Vn.value,"_blank")}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd(),this.unSubs.forEach(Vn=>{Vn.next(null),Vn.complete()})}static#e=rn=()=>(this.\u0275fac=function(ii){return new(ii||In)(A.rXU(B.CP),A.rXU(B.Vh),A.rXU(G.gP),A.rXU(re.UG),A.rXU(xe.h),A.rXU(A.sFG),A.rXU(Ee.Ix),A.rXU(V.il))},this.\u0275cmp=A.VBU({type:In,selectors:[["rtl-alert-message"]],viewQuery:function(ii,Bn){if(1&ii&&A.GBs(te,5),2&ii){let ia;A.mGM(ia=A.lsd())&&(Bn.container=ia.first)}},standalone:!1,decls:21,vars:14,consts:[["contentBlock",""],["scrollContainer",""],["emptyField",""],["noStyleBlock",""],["noStyleChild",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["class","arrow-downward","fxLayoutAlign","center center",4,"ngIf"],["class","arrow-upward","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"arrow-downward"],["fxLayoutAlign","center center",1,"arrow-upward"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],[1,"w-100","my-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxLayout","row","class","go-to-link","tabindex","4",3,"matTooltip","click",4,"ngIf","ngIfElse"],["fxLayout","row","tabindex","4",1,"go-to-link",3,"click","matTooltip"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(ii,Bn){if(1&ii){const ia=A.RV6();A.j41(0,"div",5)(1,"div",6),A.DNE(2,ve,1,2,"qr-code",7),A.k0s(),A.j41(3,"div",8)(4,"mat-card-header",9)(5,"div",10)(6,"span",11),A.EFF(7),A.k0s()(),A.j41(8,"button",12),A.bIt("click",function(){return W.eBV(ia),W.Njj(Bn.onClose())}),A.EFF(9,"X"),A.k0s()(),A.DNE(10,$,4,4,"ng-container",13)(11,Vt,3,1,"ng-container",13)(12,nt,4,2,"div",14),A.j41(13,"div",15),A.DNE(14,ht,2,1,"button",16)(15,oe,2,1,"button",17)(16,Ye,2,2,"button",18)(17,fe,2,1,"button",17)(18,Qe,2,2,"button",18),A.k0s()()(),A.DNE(19,vt,6,6,"ng-template",null,0,A.C5r)}2&ii&&(A.R7$(),A.Y8G("ngClass",A.eq3(12,ie,""===Bn.showQRField||Bn.screenSize===Bn.screenSizeEnum.XS||Bn.screenSize===Bn.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",""!==Bn.showQRField),A.R7$(),A.Y8G("ngClass",""===Bn.showQRField||Bn.screenSize===Bn.screenSizeEnum.XS||Bn.screenSize===Bn.screenSizeEnum.SM?"flex-100":"flex-70"),A.R7$(4),A.JRh(Bn.data.alertTitle||Bn.alertTypeEnum[Bn.data.type]),A.R7$(3),A.Y8G("ngIf",Bn.data.scrollable),A.R7$(),A.Y8G("ngIf",!Bn.data.scrollable),A.R7$(),A.Y8G("ngIf",Bn.data.scrollable&&Bn.shouldScroll),A.R7$(2),A.Y8G("ngIf",(!Bn.showQRField||""===Bn.showQRField)&&""===Bn.showCopyName),A.R7$(),A.Y8G("ngIf",""!==Bn.showCopyName),A.R7$(),A.Y8G("ngIf",""!==Bn.showCopyName),A.R7$(),A.Y8G("ngIf",""!==Bn.showQRField),A.R7$(),A.Y8G("ngIf",""!==Bn.showQRField))},dependencies:[ce.YU,ce.Sq,ce.bT,ce.T3,ce.ux,ce.e1,ce.fG,be.aY,B.tx,ne.$z,ne.$0,J.m2,J.MM,De.An,Re.q,le.DJ,le.sA,le.UI,Xe.PW,_e.oV,he.Um,Dt.Ld,lt.U,Le.N,ce.QX,ce.vh],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return rn(),In})();var ye=l(1771),ke=l(9417),Se=l(3746),ge=l(9588),N=l(6114);function Z(rn,In){if(1&rn&&(A.j41(0,"div",20),A.nrm(1,"fa-icon",21),A.j41(2,"span"),A.EFF(3),A.k0s()()),2&rn){const Mn=A.XpG();A.R7$(),A.Y8G("icon",Mn.faExclamationTriangle),A.R7$(2),A.JRh(Mn.warningMessage)}}function Me(rn,In){if(1&rn&&(A.j41(0,"div",22),A.nrm(1,"fa-icon",21),A.j41(2,"span"),A.EFF(3),A.k0s()()),2&rn){const Mn=A.XpG();A.R7$(),A.Y8G("icon",Mn.faInfoCircle),A.R7$(2),A.JRh(Mn.informationMessage)}}function at(rn,In){if(1&rn&&(A.j41(0,"p",23),A.EFF(1),A.k0s()),2&rn){const Mn=A.XpG();A.R7$(),A.JRh(Mn.data.titleMessage)}}function qe(rn,In){1&rn&&A.nrm(0,"div",37),2&rn&&A.Y8G("innerHTML",In.$implicit,A.npT)}function pn(rn,In){if(1&rn&&(A.qex(0,35),A.DNE(1,qe,1,1,"div",36),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.Y8G("ngForOf",Mn.value)}}function Je(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.nI1(2,"date"),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(A.i5U(2,1,1e3*Mn.value,"dd/MMM/y HH:mm"))}}function Be(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.nI1(2,"number"),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(A.i5U(2,1,Mn.value,"1.0-3"))}}function ut(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(!0===Mn.value?"True":"False")}}function Ge(rn,In){if(1&rn&&(A.qex(0),A.EFF(1),A.bVm()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.JRh(Mn.value)}}function Ot(rn,In){if(1&rn&&(A.j41(0,"span")(1,"span",31),A.DNE(2,pn,2,1,"ng-container",32)(3,Je,3,4,"ng-container",33)(4,Be,3,4,"ng-container",33)(5,ut,2,1,"ng-container",33)(6,Ge,2,1,"ng-container",34),A.k0s()()),2&rn){const Mn=A.XpG().$implicit,Vn=A.XpG(3);A.R7$(),A.Y8G("ngSwitch",Mn.type),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.ARRAY),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.DATE_TIME),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.NUMBER),A.R7$(),A.Y8G("ngSwitchCase",Vn.dataTypeEnum.BOOLEAN)}}function se(rn,In){1&rn&&(A.j41(0,"span",38),A.EFF(1,"\xa0"),A.k0s())}function We(rn,In){if(1&rn&&(A.j41(0,"div",27)(1,"h4",28),A.EFF(2),A.k0s(),A.DNE(3,Ot,7,5,"span",29)(4,se,2,0,"ng-template",null,0,A.C5r),A.nrm(6,"mat-divider",30),A.k0s()),2&rn){const Mn=In.$implicit,Vn=A.sdS(5);A.Y8G("fxFlex.gt-md",A.mNQ(Mn.width)),A.R7$(2),A.JRh(Mn.title),A.R7$(),A.Y8G("ngIf",Mn&&(!!Mn.value||0===Mn.value))("ngIfElse",Vn)}}function bt(rn,In){if(1&rn&&(A.j41(0,"div")(1,"div",25),A.DNE(2,We,7,5,"div",26),A.k0s()()),2&rn){const Mn=In.$implicit;A.R7$(2),A.Y8G("ngForOf",Mn)}}function tn(rn,In){if(1&rn&&(A.j41(0,"div"),A.DNE(1,bt,3,1,"div",24),A.k0s()),2&rn){const Mn=A.XpG();A.R7$(),A.Y8G("ngForOf",Mn.messageObjs)}}function on(rn,In){if(1&rn&&(A.j41(0,"p",23),A.EFF(1),A.k0s()),2&rn){const Mn=A.XpG(2);A.R7$(),A.JRh(Mn.data.titleMessage)}}function un(rn,In){if(1&rn&&(A.j41(0,"mat-error"),A.EFF(1),A.k0s()),2&rn){const Mn=A.XpG(2).$implicit;A.R7$(),A.SpI("",Mn.placeholder," is required.")}}function Nt(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"mat-form-field",42)(1,"mat-label"),A.EFF(2),A.k0s(),A.j41(3,"input",43),A.nI1(4,"lowercase"),A.mxI("ngModelChange",function(ii){W.eBV(Mn);const Bn=A.XpG().$implicit;return A.DH7(Bn.inputValue,ii)||(Bn.inputValue=ii),W.Njj(ii)}),A.k0s(),A.DNE(5,un,2,1,"mat-error",13),A.j41(6,"mat-hint"),A.EFF(7),A.k0s()()}if(2&rn){const Mn=A.XpG(),Vn=Mn.$implicit,ii=Mn.index;A.Y8G("ngClass",Vn.width),A.R7$(2),A.JRh(Vn.placeholder),A.R7$(),A.Y8G("name",A.VkB("input",ii))("autoFocus",0===ii)("min",Vn.min)("step",Vn.step)("type",A.bMT(4,12,Vn.inputType))("tabindex",ii+1),A.R50("ngModel",Vn.inputValue),A.R7$(2),A.Y8G("ngIf",!Vn.inputValue),A.R7$(2),A.JRh(Vn.hintFunction?Vn.hintFunction(Vn.inputValue):Vn.hintText)}}function dn(rn,In){if(1&rn&&(A.qex(0),A.DNE(1,Nt,8,14,"mat-form-field",41),A.bVm()),2&rn){const Mn=In.$implicit,Vn=A.XpG(2);A.R7$(),A.Y8G("ngIf",!Mn.advancedField||Vn.showAdvanced)}}function xn(rn,In){if(1&rn&&(A.j41(0,"div",39),A.DNE(1,on,2,1,"p",12),A.j41(2,"div",40),A.DNE(3,dn,2,1,"ng-container",24),A.k0s()()),2&rn){const Mn=A.XpG();A.R7$(),A.Y8G("ngIf",Mn.data.titleMessage),A.R7$(2),A.Y8G("ngForOf",Mn.getInputs)}}function Jn(rn,In){1&rn&&(A.j41(0,"p"),A.EFF(1,"Show Advanced"),A.k0s())}function xi(rn,In){1&rn&&(A.j41(0,"p"),A.EFF(1,"Hide Advanced"),A.k0s())}function Yi(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"button",44),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG();return W.Njj(ii.onShowAdvanced())}),A.DNE(1,Jn,2,0,"p",29)(2,xi,2,0,"ng-template",null,1,A.C5r),A.k0s()}if(2&rn){const Mn=A.sdS(3),Vn=A.XpG();A.R7$(),A.Y8G("ngIf",!Vn.showAdvanced)("ngIfElse",Mn)}}function Tt(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"button",45),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG();return W.Njj(ii.onClose(ii.getInputs))}),A.EFF(1),A.k0s()}if(2&rn){const Mn=A.XpG();A.R7$(),A.JRh(Mn.yesBtnText)}}function At(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"button",46),A.bIt("click",function(){W.eBV(Mn);const ii=A.XpG();return W.Njj(ii.onClose(!0))}),A.EFF(1),A.k0s()}if(2&rn){const Mn=A.XpG();A.R7$(),A.JRh(Mn.yesBtnText)}}let we=(()=>{var rn;class In{constructor(Vn,ii,Bn,ia){this.dialogRef=Vn,this.data=ii,this.logger=Bn,this.store=ia,this.faInfoCircle=Ae.iW_,this.faExclamationTriangle=Ae.zpE,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=C.A$,this.dataTypeEnum=C.UN,this.getInputs=[{placeholder:"",inputType:C.UN.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===C.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Vn){if(Vn&&this.getInputs&&this.getInputs.some(ii=>typeof ii.inputValue>"u"))return!0;!this.showAdvanced&&Vn.length&&(Vn=Vn?.reduce((ii,Bn)=>(Bn.advancedField||ii.push(Bn),ii),[])),this.store.dispatch((0,ye.uP)({payload:Vn}))}static#e=rn=()=>(this.\u0275fac=function(ii){return new(ii||In)(A.rXU(B.CP),A.rXU(B.Vh),A.rXU(G.gP),A.rXU(V.il))},this.\u0275cmp=A.VBU({type:In,selectors:[["rtl-confirmation-message"]],standalone:!1,decls:21,vars:10,consts:[["emptyField",""],["hideAdvancedText",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["matInput","","required","",3,"ngModelChange","name","autoFocus","min","step","type","tabindex","ngModel"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(ii,Bn){1&ii&&(A.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),A.EFF(5),A.k0s()(),A.j41(6,"button",7),A.bIt("click",function(){return Bn.onClose(!1)}),A.EFF(7,"X"),A.k0s()(),A.j41(8,"mat-card-content",8)(9,"form",9),A.DNE(10,Z,4,2,"div",10)(11,Me,4,2,"div",11)(12,at,2,1,"p",12)(13,tn,2,1,"div",13)(14,xn,4,2,"div",14),A.j41(15,"div",15)(16,"button",16),A.bIt("click",function(){return Bn.onClose(!1)}),A.EFF(17),A.k0s(),A.DNE(18,Yi,4,2,"button",17)(19,Tt,2,1,"button",18)(20,At,2,1,"button",19),A.k0s()()()()()),2&ii&&(A.R7$(5),A.JRh(Bn.data.alertTitle||Bn.alertTypeEnum[Bn.data.type]),A.R7$(5),A.Y8G("ngIf",Bn.warningMessage&&""!==Bn.warningMessage),A.R7$(),A.Y8G("ngIf",Bn.informationMessage&&""!==Bn.informationMessage),A.R7$(),A.Y8G("ngIf",Bn.data.titleMessage&&!Bn.flgShowInput),A.R7$(),A.Y8G("ngIf",(null==Bn.messageObjs?null:Bn.messageObjs.length)>0),A.R7$(),A.Y8G("ngIf",Bn.flgShowInput),A.R7$(3),A.JRh(Bn.noBtnText),A.R7$(),A.Y8G("ngIf",Bn.hasAdvanced),A.R7$(),A.Y8G("ngIf",Bn.flgShowInput),A.R7$(),A.Y8G("ngIf",!Bn.flgShowInput))},dependencies:[ce.YU,ce.Sq,ce.bT,ce.ux,ce.e1,ce.fG,ke.qT,ke.me,ke.BC,ke.cb,ke.YS,ke.vS,ke.cV,be.aY,ne.$z,J.m2,J.MM,Se.fg,ge.rl,ge.nJ,ge.MV,ge.TL,Re.q,le.DJ,le.sA,le.UI,Xe.PW,Le.N,N.V,ce.GH,ce.QX,ce.vh],encapsulation:2}))}return rn(),In})();var ae=l(2462),Lt=l(6183),Ht=l(3029);const _n=rn=>({"display-none":rn});function fi(rn,In){if(1&rn&&(A.j41(0,"mat-option",23),A.EFF(1),A.k0s()),2&rn){const Mn=In.$implicit;A.Y8G("value",Mn),A.R7$(),A.SpI(" ",Mn.infoName," ")}}function bi(rn,In){if(1&rn){const Mn=A.RV6();A.j41(0,"div",13)(1,"mat-form-field",20)(2,"mat-label"),A.EFF(3,"Info Type"),A.k0s(),A.j41(4,"mat-select",21),A.mxI("valueChange",function(ii){W.eBV(Mn);const Bn=A.XpG();return A.DH7(Bn.selInfoType,ii)||(Bn.selInfoType=ii),W.Njj(ii)}),A.DNE(5,fi,2,2,"mat-option",22),A.k0s()()()}if(2&rn){const Mn=A.XpG();A.R7$(4),A.R50("value",Mn.selInfoType),A.R7$(),A.Y8G("ngForOf",Mn.infoTypes)}}let Qi=(()=>{var rn;class In{constructor(Vn,ii,Bn,ia,ra){this.dialogRef=Vn,this.data=ii,this.logger=Bn,this.snackBar=ia,this.commonService=ra,this.faReceipt=Ae.Mf0,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=C.f7}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((Vn,ii)=>{this.infoTypes.push({infoID:ii+1,infoKey:"node URI "+(ii+1),infoName:"Node URI "+(ii+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Vn){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Vn)}static#e=rn=()=>(this.\u0275fac=function(ii){return new(ii||In)(A.rXU(B.CP),A.rXU(B.Vh),A.rXU(G.gP),A.rXU(re.UG),A.rXU(xe.h))},this.\u0275cmp=A.VBU({type:In,selectors:[["rtl-show-pubkey"]],standalone:!1,decls:26,vars:20,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(ii,Bn){1&ii&&(A.j41(0,"div",0)(1,"div",1),A.nrm(2,"qr-code",2),A.k0s(),A.j41(3,"div",3)(4,"mat-card-header",4)(5,"div",5),A.nrm(6,"fa-icon",6),A.j41(7,"span",7),A.EFF(8),A.k0s()(),A.j41(9,"button",8),A.bIt("click",function(){return Bn.onClose()}),A.EFF(10,"X"),A.k0s()(),A.j41(11,"mat-card-content",9)(12,"div",10)(13,"div",11),A.nrm(14,"qr-code",2),A.k0s(),A.DNE(15,bi,6,2,"div",12),A.j41(16,"div",13)(17,"div",14)(18,"h4",15),A.EFF(19),A.k0s(),A.j41(20,"span",16),A.EFF(21),A.k0s()()(),A.nrm(22,"mat-divider",17),A.j41(23,"div",18)(24,"button",19),A.bIt("copied",function(ra){return Bn.onCopyPubkey(ra)}),A.EFF(25),A.k0s()()()()()()),2&ii&&(A.R7$(),A.Y8G("ngClass",A.eq3(16,_n,Bn.screenSize===Bn.screenSizeEnum.XS||Bn.screenSize===Bn.screenSizeEnum.SM)),A.R7$(),A.Y8G("value",A.mNQ(0===Bn.selInfoType.infoID?Bn.information.identity_pubkey:Bn.information.uris[Bn.selInfoType.infoID-1]))("size",Bn.qrWidth),A.R7$(4),A.Y8G("icon",Bn.faReceipt),A.R7$(2),A.JRh(Bn.selInfoType.infoName),A.R7$(5),A.Y8G("ngClass",A.eq3(18,_n,Bn.screenSize!==Bn.screenSizeEnum.XS&&Bn.screenSize!==Bn.screenSizeEnum.SM)),A.R7$(),A.Y8G("value",A.mNQ(0===Bn.selInfoType.infoID?Bn.information.identity_pubkey:Bn.information.uris[Bn.selInfoType.infoID-1]))("size",Bn.qrWidth),A.R7$(),A.Y8G("ngIf",Bn.information.uris&&Bn.information.uris.length>0),A.R7$(4),A.JRh(Bn.selInfoType.infoName),A.R7$(2),A.JRh(0===Bn.selInfoType.infoID?Bn.information.identity_pubkey:Bn.information.uris[Bn.selInfoType.infoID-1]),A.R7$(3),A.Y8G("payload",A.mNQ(0===Bn.selInfoType.infoID?Bn.information.identity_pubkey:Bn.information.uris[Bn.selInfoType.infoID-1])),A.R7$(),A.SpI("Copy ",Bn.selInfoType.infoKey))},dependencies:[ce.YU,ce.Sq,ce.bT,be.aY,ne.$z,J.m2,J.MM,ge.rl,ge.nJ,Re.q,le.DJ,le.sA,le.UI,Xe.PW,Lt.VO,Ht.wT,he.Um,lt.U,Le.N],encapsulation:2}))}return rn(),In})();var zi=l(190),It=l(8430),an=l(5428),Yt=l(9330),Un=l(7879),zn=l(3202),Fn=l(1534);let ci=(()=>{var rn;class In{constructor(Vn,ii,Bn,ia,ra,fa,ha,qt,En,Wn,ri){this.actions=Vn,this.httpClient=ii,this.store=Bn,this.logger=ia,this.wsService=ra,this.sessionService=fa,this.commonService=ha,this.dataService=qt,this.dialog=En,this.snackBar=Wn,this.router=ri,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new v.B,new v.B],this.closeAllDialogs=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.CLOSE_ALL_DIALOGS),(0,w.T)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.OPEN_SNACK_BAR),(0,w.T)(Rn=>{"string"==typeof Rn.payload?this.snackBar.open(Rn.payload):this.snackBar.open(Rn.payload.message,"","ERROR"===Rn.payload.type?{duration:Rn.payload.duration?Rn.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Rn.payload.type?{duration:Rn.payload.duration?Rn.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Rn.payload.duration?Rn.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.OPEN_SPINNER),(0,w.T)(Rn=>{Rn.payload!==C.MZ.NO_SPINNER&&(this.dialogRef=this.dialog.open(Ce,{panelClass:"spinner-dialog-panel",data:{titleMessage:Rn.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.CLOSE_SPINNER),(0,w.T)(Rn=>{if(Rn.payload!==C.MZ.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Rn.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Hn=>{Hn.componentInstance&&Hn.componentInstance.data&&Hn.componentInstance.data.titleMessage&&Hn.componentInstance.data.titleMessage===Rn.payload&&Hn.close()})}catch(Hn){this.logger.error(Hn)}})),{dispatch:!1}),this.openAlert=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.OPEN_ALERT),(0,w.T)(Rn=>{const Hn=JSON.parse(JSON.stringify(Rn.payload));Hn.width||(Hn.width=this.alertWidth),this.dialogRef=this.dialog.open(Rn.payload.data.component?Rn.payload.data.component:ee,Hn)})),{dispatch:!1}),this.closeAlert=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.CLOSE_ALERT),(0,w.T)(Rn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Rn.payload),Rn.payload))),{dispatch:!1}),this.openConfirm=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.OPEN_CONFIRMATION),(0,w.T)(Rn=>{const Hn=JSON.parse(JSON.stringify(Rn.payload));Hn.width||(Hn.width=this.confirmWidth),this.dialogRef=this.dialog.open(we,Hn)})),{dispatch:!1}),this.closeConfirm=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.CLOSE_CONFIRMATION),(0,e.s)(1),(0,w.T)(Rn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Rn.payload),Rn.payload))),{dispatch:!1}),this.showNodePubkey=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.SHOW_PUBKEY),(0,O.E)(this.store.select(j.N)),(0,f.Z)(([Rn,Hn])=>(this.sessionService.getItem("token")&&Hn.identity_pubkey?this.store.dispatch((0,ye.xO)({payload:{data:{information:Hn,component:Qi}}})):this.snackBar.open("Node Pubkey does not exist."),(0,T.of)({type:C.aU.VOID}))))),this.appConfigFetch=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.FETCH_APPLICATION_SETTINGS),(0,f.Z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===C.f7.XS||this.screenSize===C.f7.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===C.f7.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,ye.mt)({payload:C.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,ye.Gd)({payload:{action:"FetchRTLConfig",status:C.wn.INITIATED}})),this.httpClient.get(C.rl.CONF_API))),(0,w.T)(Rn=>{this.logger.info(Rn),this.store.dispatch((0,ye.y0)({payload:C.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,ye.Gd)({payload:{action:"FetchRTLConfig",status:C.wn.COMPLETED}}));let Hn=null;return Rn.nodes.forEach(Pi=>{Pi.settings.currencyUnits=[...C.A0,Pi.settings?.currencyUnit?Pi.settings?.currencyUnit:""],+(Pi.index||-1)===Rn.selectedNodeIndex&&(Hn=Pi)}),Hn?(this.store.dispatch((0,ye.Qi)({payload:{uiMessage:C.MZ.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Hn,isInitialSetup:!0}})),{type:C.aU.SET_APPLICATION_SETTINGS,payload:Rn}):{type:C.aU.VOID}}),(0,u.W)(Rn=>(this.handleErrorWithAlert("FetchRTLConfig",C.MZ.GET_RTL_CONFIG,"Fetch RTL Config Failed!",C.rl.CONF_API,Rn),(0,T.of)({type:C.aU.VOID}))))),this.updateNodeSettings=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.UPDATE_NODE_SETTINGS),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.mt)({payload:C.MZ.UPDATE_NODE_SETTINGS})),this.store.dispatch((0,ye.Gd)({payload:{action:"updateNodeSettings",status:C.wn.INITIATED}})),Rn.payload.settings.fiatConversion||delete Rn.payload.settings.currencyUnit,delete Rn.payload.settings.currencyUnits,this.httpClient.post(C.rl.CONF_API+"/node",Rn.payload).pipe((0,w.T)(Hn=>(this.store.dispatch((0,ye.Gd)({payload:{action:"updateNodeSettings",status:C.wn.COMPLETED}})),this.store.dispatch((0,ye.y0)({payload:C.MZ.UPDATE_NODE_SETTINGS})),Hn.settings.currencyUnits=[...C.A0,Hn.settings?.currencyUnit?Hn.settings?.currencyUnit:""],this.store.dispatch((0,ye.Np)({payload:Hn})),{type:C.aU.OPEN_SNACK_BAR,payload:"Node settings updated successfully!"})),(0,u.W)(Hn=>(this.handleErrorWithAlert("updateNodeSettings",C.MZ.UPDATE_NODE_SETTINGS,"Update Node Settings Failed!",C.rl.CONF_API+"/node",Hn),(0,T.of)({type:C.aU.VOID})))))))),this.updateApplicationSettings=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.UPDATE_APPLICATION_SETTINGS),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.mt)({payload:C.MZ.UPDATE_APPLICATION_SETTINGS})),this.store.dispatch((0,ye.Gd)({payload:{action:"updateApplicationSettings",status:C.wn.INITIATED}})),Rn.payload.config.nodes.forEach(Hn=>{delete Hn.settings.currencyUnits}),this.httpClient.post(C.rl.CONF_API+"/application",Rn.payload.config).pipe((0,w.T)(Hn=>(this.store.dispatch((0,ye.Gd)({payload:{action:"updateApplicationSettings",status:C.wn.COMPLETED}})),this.store.dispatch((0,ye.y0)({payload:C.MZ.UPDATE_APPLICATION_SETTINGS})),Rn.payload.showSnackBar&&this.store.dispatch((0,ye.UI)({payload:Rn.payload.message})),{type:C.aU.SET_APPLICATION_SETTINGS,payload:Hn})),(0,u.W)(Hn=>(this.handleErrorWithAlert("updateApplicationSettings",C.MZ.UPDATE_APPLICATION_SETTINGS,"Update Application Settings Failed!",C.rl.CONF_API+"/application",Hn),(0,T.of)({type:C.aU.VOID})))))))),this.configFetch=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.FETCH_CONFIG),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.mt)({payload:C.MZ.OPEN_CONFIG_FILE})),this.store.dispatch((0,ye.Gd)({payload:{action:"fetchConfig",status:C.wn.INITIATED}})),this.httpClient.get(C.rl.CONF_API+"/config/"+Rn.payload).pipe((0,w.T)(Hn=>(this.store.dispatch((0,ye.Gd)({payload:{action:"fetchConfig",status:C.wn.COMPLETED}})),this.store.dispatch((0,ye.y0)({payload:C.MZ.OPEN_CONFIG_FILE})),{type:C.aU.SHOW_CONFIG,payload:Hn})),(0,u.W)(Hn=>(this.handleErrorWithAlert("fetchConfig",C.MZ.OPEN_CONFIG_FILE,"Fetch Config Failed!",C.rl.CONF_API+"/config/"+Rn.payload,Hn),(0,T.of)({type:C.aU.VOID})))))))),this.showLnConfig=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.SHOW_CONFIG),(0,w.T)(Rn=>Rn.payload)),{dispatch:!1}),this.isAuthorized=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.IS_AUTHORIZED),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.Gd)({payload:{action:"IsAuthorized",status:C.wn.INITIATED}})),this.httpClient.post(C.rl.AUTHENTICATE_API,{authenticateWith:Rn.payload&&""!==Rn.payload.trim()?C.U1.PASSWORD:C.U1.JWT,authenticationValue:Rn.payload&&""!==Rn.payload.trim()?Rn.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,w.T)(Hn=>(this.logger.info(Hn),this.store.dispatch((0,ye.Gd)({payload:{action:"IsAuthorized",status:C.wn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:C.aU.IS_AUTHORIZED_RES,payload:Hn})),(0,u.W)(Hn=>(this.handleErrorWithAlert("IsAuthorized",C.MZ.NO_SPINNER,"Authorization Failed",C.rl.AUTHENTICATE_API,Hn),(0,T.of)({type:C.aU.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.IS_AUTHORIZED_RES),(0,w.T)(Rn=>Rn.payload)),{dispatch:!1}),this.authLogin=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.LOGIN),(0,O.E)(this.store.select(j.qv)),(0,f.Z)(([Rn,Hn])=>(this.store.dispatch((0,zi.p1)()),this.store.dispatch((0,It.gf)()),this.store.dispatch((0,an.Hh)()),this.store.dispatch((0,ye.Gd)({payload:{action:"Login",status:C.wn.INITIATED}})),this.httpClient.post(C.rl.AUTHENTICATE_API,{authenticateWith:"disabledAuth"===Rn.payload.password?C.U1.NOAUTH:Rn.payload.password?C.U1.PASSWORD:C.U1.JWT,authenticationValue:Rn.payload.password?Rn.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Rn.payload.twoFAToken?Rn.payload.twoFAToken:""}).pipe((0,w.T)(Pi=>{this.logger.info(Pi),this.store.dispatch((0,ye.Gd)({payload:{action:"Login",status:C.wn.COMPLETED}})),this.setLoggedInDetails(Rn.payload.defaultPassword,Pi)}),(0,u.W)(Pi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",C.MZ.NO_SPINNER,Pi),+Hn.SSO.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Pi.error&&Pi.error.error?Pi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"],{state:{logoutReason:Pi.error&&Pi.error.error?Pi.error.error:"Single Sign On Failed!"}}),(0,T.of)({type:C.aU.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.VERIFY_TWO_FA),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.mt)({payload:C.MZ.VERIFY_TOKEN})),this.store.dispatch((0,ye.Gd)({payload:{action:"VerifyToken",status:C.wn.INITIATED}})),this.httpClient.post(C.rl.AUTHENTICATE_API+"/token",{authentication2FA:Rn.payload.token}).pipe((0,w.T)(Hn=>{this.logger.info(Hn),this.store.dispatch((0,ye.y0)({payload:C.MZ.VERIFY_TOKEN})),this.store.dispatch((0,ye.Gd)({payload:{action:"VerifyToken",status:C.wn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Rn.payload.authResponse)}),(0,u.W)(Hn=>(this.handleErrorWithAlert("VerifyToken",C.MZ.VERIFY_TOKEN,"Authorization Failed!",C.rl.AUTHENTICATE_API+"/token",Hn),(0,T.of)({type:C.aU.VOID}))))))),{dispatch:!1}),this.logOut=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.LOGOUT),(0,O.E)(this.store.select(j.qv)),(0,f.Z)(([Rn,Hn])=>{this.store.dispatch((0,ye.mt)({payload:C.MZ.LOG_OUT})),Hn.SSO&&+Hn.SSO.rtlSSO&&(window.location.href=Hn.SSO.logoutRedirectLink),this.sessionService.clearAll(),this.store.dispatch((0,ye.Fl)({payload:{}})),this.store.dispatch((0,ye.y0)({payload:C.MZ.LOG_OUT})),this.logger.info("Logged out from browser");const Pi=()=>{Hn.SSO&&+Hn.SSO.rtlSSO||(Rn.payload&&this.sessionService.setItem("logoutReason",Rn.payload),window.location.href=document.baseURI+"login")};return this.httpClient.get(C.rl.AUTHENTICATE_API+"/logout").pipe((0,w.T)(da=>{this.logger.info(da),this.store.dispatch((0,ye.y0)({payload:C.MZ.LOG_OUT})),this.logger.info("Logged out from server"),Pi()}),(0,u.W)(da=>(this.logger.error(da),this.store.dispatch((0,ye.y0)({payload:C.MZ.LOG_OUT})),Pi(),(0,T.of)({type:C.aU.VOID}))))})),{dispatch:!1}),this.resetPassword=(0,d.EH)(()=>this.actions.pipe((0,L.Q)(this.unSubs[1]),(0,d.gp)(C.aU.RESET_PASSWORD),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.Gd)({payload:{action:"ResetPassword",status:C.wn.INITIATED}})),this.httpClient.post(C.rl.AUTHENTICATE_API+"/reset",{currPassword:Rn.payload.currPassword,newPassword:Rn.payload.newPassword}).pipe((0,L.Q)(this.unSubs[0]),(0,w.T)(Hn=>(this.logger.info(Hn),this.store.dispatch((0,ye.Gd)({payload:{action:"ResetPassword",status:C.wn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ye.UI)({payload:"Password Reset Successful!"})),this.SetToken(Hn.token),{type:C.aU.RESET_PASSWORD_RES,payload:Hn.token})),(0,u.W)(Hn=>(this.handleErrorWithAlert("ResetPassword",C.MZ.NO_SPINNER,"Password Reset Failed!",C.rl.AUTHENTICATE_API+"/reset",Hn),(0,T.of)({type:C.aU.VOID})))))))),this.setSelectedNode=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.SET_SELECTED_NODE),(0,f.Z)(Rn=>(this.store.dispatch((0,ye.mt)({payload:Rn.payload.uiMessage})),this.store.dispatch((0,ye.Gd)({payload:{action:"UpdateSelNode",status:C.wn.INITIATED}})),this.httpClient.get(C.rl.CONF_API+"/updateSelNode/"+Rn.payload.currentLnNode?.index+"/"+Rn.payload.prevLnNodeIndex).pipe((0,w.T)(Hn=>(this.logger.info(Hn),this.store.dispatch((0,ye.Gd)({payload:{action:"UpdateSelNode",status:C.wn.COMPLETED}})),this.store.dispatch((0,ye.y0)({payload:Rn.payload.uiMessage})),this.initializeNode(Hn,Rn.payload.isInitialSetup),{type:C.aU.VOID})),(0,u.W)(Hn=>(this.handleErrorWithAlert("UpdateSelNode",Rn.payload.uiMessage,"Update Selected Node Failed!",C.rl.CONF_API+"/updateSelNode",Hn),(0,T.of)({type:C.aU.VOID})))))))),this.fetchFile=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.FETCH_FILE),(0,f.Z)(Rn=>{this.store.dispatch((0,ye.mt)({payload:C.MZ.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ye.Gd)({payload:{action:"FetchFile",status:C.wn.INITIATED}}));const Hn="?channel="+Rn.payload.channelPoint+(Rn.payload.path?"&path="+Rn.payload.path:"");return this.httpClient.get(C.rl.CONF_API+"/file"+Hn).pipe((0,w.T)(Pi=>(this.store.dispatch((0,ye.Gd)({payload:{action:"FetchFile",status:C.wn.COMPLETED}})),this.store.dispatch((0,ye.y0)({payload:C.MZ.DOWNLOAD_BACKUP_FILE})),{type:C.aU.SHOW_FILE,payload:Pi})),(0,u.W)(Pi=>(this.handleErrorWithAlert("fetchFile",C.MZ.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",C.rl.CONF_API+"/file"+Hn,{status:this.commonService.extractErrorNumber(Pi),error:{error:this.commonService.extractErrorCode(Pi)}}),(0,T.of)({type:C.aU.VOID}))))}))),this.showFile=(0,d.EH)(()=>this.actions.pipe((0,d.gp)(C.aU.SHOW_FILE),(0,w.T)(Rn=>Rn.payload)),{dispatch:!1})}initializeNode(Vn,ii){this.logger.info("Initializing node from RTL Effects.");const Bn=ii?"":"HOME";if(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),Vn.settings.currencyUnits=[...C.A0,Vn.settings?.currencyUnit?Vn.settings?.currencyUnit:""],this.store.dispatch((0,ye.Tn)({payload:Vn})),this.store.dispatch((0,zi.p1)()),this.store.dispatch((0,It.gf)()),this.store.dispatch((0,an.Hh)()),this.sessionService.getItem("token")){const ia=Vn.lnImplementation?Vn.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(ia);const ra=!(0,i.naY)()&&window.location.origin?window.location.origin+"/rtl/api":C.H$;switch(this.wsService.connectWebSocket(ra?.replace(/^http/,"ws")+C.rl.Web_SOCKET_API,Vn.index?Vn.index.toString():"-1"),ia){case"CLN":this.store.dispatch((0,It.lg)()),this.store.dispatch((0,It.Aw)({payload:{loadPage:Bn}}));break;case"ECL":this.store.dispatch((0,an.lg)()),this.store.dispatch((0,an.zR)({payload:{loadPage:Bn}}));break;default:this.store.dispatch((0,zi.lg)()),this.store.dispatch((0,zi.Br)({payload:{loadPage:Bn}}))}}}SetToken(Vn){Vn?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Vn)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Vn,ii){this.logger.info("Successfully Authorized!"),this.SetToken(ii.token),this.sessionService.setItem("defaultPassword",Vn),Vn?(this.store.dispatch((0,ye.UI)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ye.NU)())}handleErrorWithoutAlert(Vn,ii,Bn){this.logger.error("ERROR IN: "+Vn+"\n"+JSON.stringify(Bn)),401===Bn.status&&"Login"!==Vn?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ye.Jh)()),this.store.dispatch((0,ye.ri)({payload:"Authentication Failed: "+JSON.stringify(Bn.error)}))):(this.store.dispatch((0,ye.y0)({payload:ii})),this.store.dispatch((0,ye.Gd)({payload:{action:Vn,status:C.wn.ERROR,statusCode:Bn.status?Bn.status.toString():"",message:this.commonService.extractErrorMessage(Bn)}})))}handleErrorWithAlert(Vn,ii,Bn,ia,ra){if(this.logger.error(ra),0===ra.status&&ra.statusText&&"Unknown Error"===ra.statusText&&(ra={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===ra.status&&"Login"!==Vn)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ye.Jh)()),this.store.dispatch((0,ye.ri)({payload:"Authentication Failed: "+JSON.stringify(ra.error)}));else{this.store.dispatch((0,ye.y0)({payload:ii}));const fa=this.commonService.extractErrorMessage(ra);this.store.dispatch((0,ye.xO)({payload:{data:{type:"ERROR",alertTitle:Bn,message:{code:ra.status?ra.status:"Unknown Error",message:fa,URL:ia},component:ae.f}}})),this.store.dispatch((0,ye.Gd)({payload:{action:Vn,status:C.wn.ERROR,statusCode:ra.status?ra.status.toString():"",message:fa,URL:ia}}))}}ngOnDestroy(){this.unSubs.forEach(Vn=>{Vn.next(null),Vn.complete()})}static#e=rn=()=>(this.\u0275fac=function(ii){return new(ii||In)(W.KVO(d.En),W.KVO(Yt.Qq),W.KVO(V.il),W.KVO(G.gP),W.KVO(Un.I),W.KVO(zn.Q),W.KVO(xe.h),W.KVO(Fn.u),W.KVO(B.bZ),W.KVO(re.UG),W.KVO(Ee.Ix))},this.\u0275prov=W.jDH({token:In,factory:In.\u0275fac}))}return rn(),In})()},9647(Zt,pe,l){"use strict";l.d(pe,{Az:()=>u,E2:()=>f,Kq:()=>O,N:()=>e,_c:()=>T,qv:()=>w});var i=l(9640);const d=(0,i.UX)("root"),T=((0,i.Mz)(d,L=>L.apiURL),(0,i.Mz)(d,L=>L.selNode)),w=(0,i.Mz)(d,L=>L.appConfig),e=(0,i.Mz)(d,L=>L.nodeData),O=(0,i.Mz)(d,L=>L.apisCallStatus.Login),f=(0,i.Mz)(d,L=>L.apisCallStatus.IsAuthorized),u=(0,i.Mz)(d,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},599(Zt,pe,l){"use strict";var i=l(7303),d=l(2512),v=l(2615),T=l(177),w=l(2200),e=l(3664),O=l(7705),f=l(3393);class C extends i.qj{supportsDOMEvents=!0;static makeCurrent(){(0,i.ig)(new C)}onAndCancel(_,m,E,D){return _.addEventListener(m,E,D),()=>{_.removeEventListener(m,E,D)}}dispatchEvent(_,m){_.dispatchEvent(m)}remove(_){_.remove()}createElement(_,m){return(m=m||this.getDefaultDocument()).createElement(_)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(_){return _.nodeType===Node.ELEMENT_NODE}isShadowRoot(_){return _ instanceof DocumentFragment}getGlobalEventTarget(_,m){return"window"===m?window:"document"===m?_:"body"===m?_.body:null}getBaseHref(_){const m=function A(){return B=B||document.head.querySelector("base"),B?B.getAttribute("href"):null}();return null==m?null:function Pe(b){return new URL(b,document.baseURI).pathname}(m)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(_){return(0,d.b)(document.cookie,_)}}let B=null,Ce=(()=>{class b{build(){return new XMLHttpRequest}static \u0275fac=function(E){return new(E||b)};static \u0275prov=v.jDH({token:b,factory:b.\u0275fac})}return b})();const Ae=["alt","control","meta","shift"],j={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},W={alt:b=>b.altKey,control:b=>b.ctrlKey,meta:b=>b.metaKey,shift:b=>b.shiftKey};let G=(()=>{class b extends f.Hl{constructor(m){super(m)}supports(m){return null!=b.parseEventName(m)}addEventListener(m,E,D,I){const Oe=b.parseEventName(E),Ct=b.eventCallback(Oe.fullKey,D,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.rb)().onAndCancel(m,Oe.domEventName,Ct,I))}static parseEventName(m){const E=m.toLowerCase().split("."),D=E.shift();if(0===E.length||"keydown"!==D&&"keyup"!==D)return null;const I=b._normalizeKey(E.pop());let Oe="",Ct=E.indexOf("code");if(Ct>-1&&(E.splice(Ct,1),Oe="code."),Ae.forEach(yn=>{const Yn=E.indexOf(yn);Yn>-1&&(E.splice(Yn,1),Oe+=yn+".")}),Oe+=I,0!=E.length||0===I.length)return null;const Bt={};return Bt.domEventName=D,Bt.fullKey=Oe,Bt}static matchEventFullKeyCode(m,E){let D=j[m.key]||m.key,I="";return E.indexOf("code.")>-1&&(D=m.code,I="code."),!(null==D||!D)&&(D=D.toLowerCase()," "===D?D="space":"."===D&&(D="dot"),Ae.forEach(Oe=>{Oe!==D&&(0,W[Oe])(m)&&(I+=Oe+".")}),I+=D,I===E)}static eventCallback(m,E,D){return I=>{b.matchEventFullKeyCode(I,m)&&D.runGuarded(()=>E(I))}}static _normalizeKey(m){return"esc"===m?"escape":m}static \u0275fac=function(E){return new(E||b)(v.KVO(v.qQL))};static \u0275prov=v.jDH({token:b,factory:b.\u0275fac})}return b})();const De=(0,O.oH4)(O.fpN,"browser",[{provide:e.Agw,useValue:T.AJ},{provide:e.PLl,useValue:function ce(){C.makeCurrent()},multi:!0},{provide:v.qQL,useFactory:function ne(){return(0,e._9u)(document),document}}]),Xe=[{provide:e.$Ln,useClass:class le{addToWindow(_){v.laP.getAngularTestability=(E,D=!0)=>{const I=_.findTestabilityInTree(E,D);if(null==I)throw new v.buA(5103,!1);return I},v.laP.getAllAngularTestabilities=()=>_.getAllTestabilities(),v.laP.getAllAngularRootElements=()=>_.getAllRootElements(),v.laP.frameworkStabilizers||(v.laP.frameworkStabilizers=[]),v.laP.frameworkStabilizers.push(E=>{const D=v.laP.getAllAngularTestabilities();let I=D.length;const Oe=function(){I--,0==I&&E()};D.forEach(Ct=>{Ct.whenStable(Oe)})})}findTestabilityInTree(_,m,E){return null==m?null:_.getTestability(m)??(E?(0,i.rb)().isShadowRoot(m)?this.findTestabilityInTree(_,m.host,!0):this.findTestabilityInTree(_,m.parentElement,!0):null)}}},{provide:e.dOL,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]}],_e=[{provide:v.GBX,useValue:"root"},{provide:v.zcH,useFactory:function be(){return new v.zcH}},{provide:f.Q5,useClass:f.jd,multi:!0,deps:[v.qQL]},{provide:f.Q5,useClass:G,multi:!0,deps:[v.qQL]},f.mE,f.CI,f.EU,{provide:e._9s,useExisting:f.mE},{provide:d.N,useClass:Ce},[]];let he=(()=>{class b{constructor(){}static \u0275fac=function(E){return new(E||b)};static \u0275mod=e.$C({type:b});static \u0275inj=v.G2t({providers:[..._e,...Xe],imports:[w.MD,O.Hbi]})}return b})();var Dt=l(345),lt=l(1514);function ie(b){return new v.buA(3e3,!1)}function nt(b){return new v.buA(3002,!1)}function vt(b){switch(b.length){case 0:return new lt.sf;case 1:return b[0];default:return new lt.PZ(b)}}function ee(b,_,m=new Map,E=new Map){const D=[],I=[];let Oe=-1,Ct=null;if(_.forEach(Bt=>{const yn=Bt.get("offset"),Yn=yn==Oe,jn=Yn&&Ct||new Map;Bt.forEach((Fi,Zi)=>{let Mi=Zi,Ai=Fi;if("offset"!==Zi)switch(Mi=b.normalizePropertyName(Mi,D),Ai){case lt.FX:Ai=m.get(Zi);break;case lt.kp:Ai=E.get(Zi);break;default:Ai=b.normalizeStyleValue(Zi,Mi,Ai,D)}jn.set(Mi,Ai)}),Yn||I.push(jn),Ct=jn,Oe=yn}),D.length)throw function h(){return new v.buA(3502,!1)}();return I}function ye(b,_,m,E){switch(_){case"start":b.onStart(()=>E(m&&ke(m,"start",b)));break;case"done":b.onDone(()=>E(m&&ke(m,"done",b)));break;case"destroy":b.onDestroy(()=>E(m&&ke(m,"destroy",b)))}}function ke(b,_,m){const I=Se(b.element,b.triggerName,b.fromState,b.toState,_||b.phaseName,m.totalTime??b.totalTime,!!m.disabled),Oe=b._data;return null!=Oe&&(I._data=Oe),I}function Se(b,_,m,E,D="",I=0,Oe){return{element:b,triggerName:_,fromState:m,toState:E,phaseName:D,totalTime:I,disabled:!!Oe}}function ge(b,_,m){let E=b.get(_);return E||b.set(_,E=m),E}function N(b){const _=b.indexOf(":");return[b.substring(1,_),b.slice(_+1)]}const Z=typeof document>"u"?null:document.documentElement;function Me(b){const _=b.parentNode||b.host||null;return _===Z?null:_}let qe=null,pn=!1;function Ge(b,_){for(;_;){if(_===b)return!0;_=Me(_)}return!1}function Ot(b,_,m){if(m)return Array.from(b.querySelectorAll(_));const E=b.querySelector(_);return E?[E]:[]}const tn="ng-enter",on="ng-leave",un="ng-trigger",Nt=".ng-trigger",dn="ng-animating",xn=".ng-animating";function Jn(b){if("number"==typeof b)return b;const _=b.match(/^(-?[\.\d]+)(m?s)/);return!_||_.length<2?0:xi(parseFloat(_[1]),_[2])}function xi(b,_){return"s"===_?1e3*b:b}function Yi(b,_,m){return b.hasOwnProperty("duration")?b:function At(b,_,m){let E,D=0,I="";if("string"==typeof b){const Oe=b.match(Tt);if(null===Oe)return _.push(ie()),{duration:0,delay:0,easing:""};E=xi(parseFloat(Oe[1]),Oe[2]);const Ct=Oe[3];null!=Ct&&(D=xi(parseFloat(Ct),Oe[4]));const Bt=Oe[5];Bt&&(I=Bt)}else E=b;if(!m){let Oe=!1,Ct=_.length;E<0&&(_.push(function P(){return new v.buA(3100,!1)}()),Oe=!0),D<0&&(_.push(function F(){return new v.buA(3101,!1)}()),Oe=!0),Oe&&_.splice(Ct,0,ie())}return{duration:E,delay:D,easing:I}}(b,_,m)}const Tt=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Lt(b,_,m){_.forEach((E,D)=>{const I=an(D);m&&!m.has(D)&&m.set(D,b.style[I]),b.style[I]=E})}function Ht(b,_){_.forEach((m,E)=>{const D=an(E);b.style[D]=""})}function _n(b){return Array.isArray(b)?1==b.length?b[0]:(0,lt.K2)(b):b}const bi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Qi(b){let _=[];if("string"==typeof b){let m;for(;m=bi.exec(b);)_.push(m[1]);bi.lastIndex=0}return _}function zi(b,_,m){const E=`${b}`,D=E.replace(bi,(I,Oe)=>{let Ct=_[Oe];return null==Ct&&(m.push(function H(){return new v.buA(3003,!1)}()),Ct=""),Ct.toString()});return D==E?b:D}const It=/-+([a-z0-9])/g;function an(b){return b.replace(It,(..._)=>_[1].toUpperCase())}function Fn(b,_,m){switch(_.type){case lt.If.Trigger:return b.visitTrigger(_,m);case lt.If.State:return b.visitState(_,m);case lt.If.Transition:return b.visitTransition(_,m);case lt.If.Sequence:return b.visitSequence(_,m);case lt.If.Group:return b.visitGroup(_,m);case lt.If.Animate:return b.visitAnimate(_,m);case lt.If.Keyframes:return b.visitKeyframes(_,m);case lt.If.Style:return b.visitStyle(_,m);case lt.If.Reference:return b.visitReference(_,m);case lt.If.AnimateChild:return b.visitAnimateChild(_,m);case lt.If.AnimateRef:return b.visitAnimateRef(_,m);case lt.If.Query:return b.visitQuery(_,m);case lt.If.Stagger:return b.visitStagger(_,m);default:throw function $(){return new v.buA(3004,!1)}()}}function ci(b,_){return window.getComputedStyle(b)[_]}let Bn=(()=>{class b{validateStyleProperty(m){return function Je(b){qe||(qe=function ut(){return typeof document<"u"?document.body:null}()||{},pn=!!qe.style&&"WebkitAppearance"in qe.style);let _=!0;return qe.style&&!function at(b){return"ebkit"==b.substring(1,6)}(b)&&(_=b in qe.style,!_&&pn&&(_="Webkit"+b.charAt(0).toUpperCase()+b.slice(1)in qe.style)),_}(m)}containsElement(m,E){return Ge(m,E)}getParentElement(m){return Me(m)}query(m,E,D){return Ot(m,E,D)}computeStyle(m,E,D){return D||""}animate(m,E,D,I,Oe,Ct=[],Bt){return new lt.sf(D,I)}static \u0275fac=function(E){return new(E||b)};static \u0275prov=v.jDH({token:b,factory:b.\u0275fac})}return b})();class ia{static NOOP=new Bn}class ra{}const ha=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class qt extends ra{normalizePropertyName(_,m){return an(_)}normalizeStyleValue(_,m,E,D){let I="";const Oe=E.toString().trim();if(ha.has(m)&&0!==E&&"0"!==E)if("number"==typeof E)I="px";else{const Ct=E.match(/^[+-]?[\d\.]+([a-z]*)$/);Ct&&0==Ct[1].length&&D.push(function Ke(){return new v.buA(3005,!1)}())}return Oe+I}}const vn=new Set(["true","1"]),oi=new Set(["false","0"]);function bn(b,_){const m=vn.has(b)||oi.has(b),E=vn.has(_)||oi.has(_);return(D,I)=>{let Oe="*"==b||b==D,Ct="*"==_||_==I;return!Oe&&m&&"boolean"==typeof D&&(Oe=D?vn.has(b):oi.has(b)),!Ct&&E&&"boolean"==typeof I&&(Ct=I?vn.has(_):oi.has(_)),Oe&&Ct}}const yi=new RegExp("s*:selfs*,?","g");function Wi(b,_,m,E){return new Fe(b).build(_,m,E)}class Fe{_driver;constructor(_){this._driver=_}build(_,m,E){const D=new Et(m);return this._resetContextStyleTimingState(D),Fn(this,_n(_),D)}_resetContextStyleTimingState(_){_.currentQuerySelector="",_.collectedStyles=new Map,_.collectedStyles.set("",new Map),_.currentTime=0}visitTrigger(_,m){let E=m.queryCount=0,D=m.depCount=0;const I=[],Oe=[];return"@"==_.name.charAt(0)&&m.errors.push(function Vt(){return new v.buA(3006,!1)}()),_.definitions.forEach(Ct=>{if(this._resetContextStyleTimingState(m),Ct.type==lt.If.State){const Bt=Ct,yn=Bt.name;yn.toString().split(/\s*,\s*/).forEach(Yn=>{Bt.name=Yn,I.push(this.visitState(Bt,m))}),Bt.name=yn}else if(Ct.type==lt.If.Transition){const Bt=this.visitTransition(Ct,m);E+=Bt.queryCount,D+=Bt.depCount,Oe.push(Bt)}else m.errors.push(function St(){return new v.buA(3007,!1)}())}),{type:lt.If.Trigger,name:_.name,states:I,transitions:Oe,queryCount:E,depCount:D,options:null}}visitState(_,m){const E=this.visitStyle(_.styles,m),D=_.options&&_.options.params||null;if(E.containsDynamicStyles){const I=new Set,Oe=D||{};E.styles.forEach(Ct=>{Ct instanceof Map&&Ct.forEach(Bt=>{Qi(Bt).forEach(yn=>{Oe.hasOwnProperty(yn)||I.add(yn)})})}),I.size&&m.errors.push(function ot(){return new v.buA(3008,!1)}(0,I.values()))}return{type:lt.If.State,name:_.name,style:E,options:D?{params:D}:null}}visitTransition(_,m){m.queryCount=0,m.depCount=0;const E=Fn(this,_n(_.animation),m),D=function da(b,_){const m=[];return"string"==typeof b?b.split(/\s*,\s*/).forEach(E=>function Ta(b,_,m){if(":"==b[0]){const Bt=function en(b,_){switch(b){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(m,E)=>parseFloat(E)>parseFloat(m);case":decrement":return(m,E)=>parseFloat(E) *"}}(b,m);if("function"==typeof Bt)return void _.push(Bt);b=Bt}const E=b.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==E||E.length<4)return m.push(function rt(){return new v.buA(3015,!1)}()),_;const D=E[1],I=E[2],Oe=E[3];_.push(bn(D,Oe)),"<"==I[0]&&("*"!=D||"*"!=Oe)&&_.push(bn(Oe,D))}(E,m,_)):m.push(b),m}(_.expr,m.errors);return{type:lt.If.Transition,matchers:D,animation:E,queryCount:m.queryCount,depCount:m.depCount,options:di(_.options)}}visitSequence(_,m){return{type:lt.If.Sequence,steps:_.steps.map(E=>Fn(this,E,m)),options:di(_.options)}}visitGroup(_,m){const E=m.currentTime;let D=0;const I=_.steps.map(Oe=>{m.currentTime=E;const Ct=Fn(this,Oe,m);return D=Math.max(D,m.currentTime),Ct});return m.currentTime=D,{type:lt.If.Group,steps:I,options:di(_.options)}}visitAnimate(_,m){const E=function ti(b,_){if(b.hasOwnProperty("duration"))return b;if("number"==typeof b)return Ii(Yi(b,_).duration,0,"");const m=b;if(m.split(/\s+/).some(I=>"{"==I.charAt(0)&&"{"==I.charAt(1))){const I=Ii(0,0,"");return I.dynamic=!0,I.strValue=m,I}const D=Yi(m,_);return Ii(D.duration,D.delay,D.easing)}(_.timings,m.errors);m.currentAnimateTimings=E;let D,I=_.styles?_.styles:(0,lt.iF)({});if(I.type==lt.If.Keyframes)D=this.visitKeyframes(I,m);else{let Oe=_.styles,Ct=!1;if(!Oe){Ct=!0;const yn={};E.easing&&(yn.easing=E.easing),Oe=(0,lt.iF)(yn)}m.currentTime+=E.duration+E.delay;const Bt=this.visitStyle(Oe,m);Bt.isEmptyStep=Ct,D=Bt}return m.currentAnimateTimings=null,{type:lt.If.Animate,timings:E,style:D,options:null}}visitStyle(_,m){const E=this._makeStyleAst(_,m);return this._validateStyleAst(E,m),E}_makeStyleAst(_,m){const E=[],D=Array.isArray(_.styles)?_.styles:[_.styles];for(let Ct of D)"string"==typeof Ct?Ct===lt.kp?E.push(Ct):m.errors.push(nt()):E.push(new Map(Object.entries(Ct)));let I=!1,Oe=null;return E.forEach(Ct=>{if(Ct instanceof Map&&(Ct.has("easing")&&(Oe=Ct.get("easing"),Ct.delete("easing")),!I))for(let Bt of Ct.values())if(Bt.toString().indexOf("{{")>=0){I=!0;break}}),{type:lt.If.Style,styles:E,easing:Oe,offset:_.offset,containsDynamicStyles:I,options:null}}_validateStyleAst(_,m){const E=m.currentAnimateTimings;let D=m.currentTime,I=m.currentTime;E&&I>0&&(I-=E.duration+E.delay),_.styles.forEach(Oe=>{"string"!=typeof Oe&&Oe.forEach((Ct,Bt)=>{const yn=m.collectedStyles.get(m.currentQuerySelector),Yn=yn.get(Bt);let jn=!0;Yn&&(I!=D&&I>=Yn.startTime&&D<=Yn.endTime&&(m.errors.push(function ht(){return new v.buA(3010,!1)}()),jn=!1),I=Yn.startTime),jn&&yn.set(Bt,{startTime:I,endTime:D}),m.options&&function fi(b,_,m){const E=_.params||{},D=Qi(b);D.length&&D.forEach(I=>{E.hasOwnProperty(I)||m.push(function ve(){return new v.buA(3001,!1)}())})}(Ct,m.options,m.errors)})})}visitKeyframes(_,m){const E={type:lt.If.Keyframes,styles:[],options:null};if(!m.currentAnimateTimings)return m.errors.push(function oe(){return new v.buA(3011,!1)}()),E;let I=0;const Oe=[];let Ct=!1,Bt=!1,yn=0;const Yn=_.steps.map(Ia=>{const fs=this._makeStyleAst(Ia,m);let $s=null!=fs.offset?fs.offset:function Jt(b){if("string"==typeof b)return null;let _=null;if(Array.isArray(b))b.forEach(m=>{if(m instanceof Map&&m.has("offset")){const E=m;_=parseFloat(E.get("offset")),E.delete("offset")}});else if(b instanceof Map&&b.has("offset")){const m=b;_=parseFloat(m.get("offset")),m.delete("offset")}return _}(fs.styles),Ea=0;return null!=$s&&(I++,Ea=fs.offset=$s),Bt=Bt||Ea<0||Ea>1,Ct=Ct||Ea0&&I{const $s=Fi>0?fs==Zi?1:Fi*fs:Oe[fs],Ea=$s*Sa;m.currentTime=Mi+Ai.delay+Ea,Ai.duration=Ea,this._validateStyleAst(Ia,m),Ia.offset=$s,E.styles.push(Ia)}),E}visitReference(_,m){return{type:lt.If.Reference,animation:Fn(this,_n(_.animation),m),options:di(_.options)}}visitAnimateChild(_,m){return m.depCount++,{type:lt.If.AnimateChild,options:di(_.options)}}visitAnimateRef(_,m){return{type:lt.If.AnimateRef,animation:this.visitReference(_.animation,m),options:di(_.options)}}visitQuery(_,m){const E=m.currentQuerySelector,D=_.options||{};m.queryCount++,m.currentQuery=_;const[I,Oe]=function Wt(b){const _=!!b.split(/\s*,\s*/).find(m=>":self"==m);return _&&(b=b.replace(yi,"")),b=b.replace(/@\*/g,Nt).replace(/@\w+/g,m=>Nt+"-"+m.slice(1)).replace(/:animating/g,xn),[b,_]}(_.selector);m.currentQuerySelector=E.length?E+" "+I:I,ge(m.collectedStyles,m.currentQuerySelector,new Map);const Ct=Fn(this,_n(_.animation),m);return m.currentQuery=null,m.currentQuerySelector=E,{type:lt.If.Query,selector:I,limit:D.limit||0,optional:!!D.optional,includeSelf:Oe,animation:Ct,originalSelector:_.selector,options:di(_.options)}}visitStagger(_,m){m.currentQuery||m.errors.push(function gt(){return new v.buA(3013,!1)}());const E="full"===_.timings?{duration:0,delay:0,easing:"full"}:Yi(_.timings,m.errors,!0);return{type:lt.If.Stagger,animation:Fn(this,_n(_.animation),m),timings:E,options:null}}}class Et{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(_){this.errors=_}}function di(b){return b?(b={...b}).params&&(b.params=function Ve(b){return b?{...b}:null}(b.params)):b={},b}function Ii(b,_,m){return{duration:b,delay:_,easing:m}}function ca(b,_,m,E,D,I,Oe=null,Ct=!1){return{type:1,element:b,keyframes:_,preStyleProps:m,postStyleProps:E,duration:D,delay:I,totalTime:D+I,easing:Oe,subTimeline:Ct}}class nn{_map=new Map;get(_){return this._map.get(_)||[]}append(_,m){let E=this._map.get(_);E||this._map.set(_,E=[]),E.push(...m)}has(_){return this._map.has(_)}clear(){this._map.clear()}}const tt=new RegExp(":enter","g"),Xt=new RegExp(":leave","g");function Nn(b,_,m,E,D,I=new Map,Oe=new Map,Ct,Bt,yn=[]){return(new Ki).buildKeyframes(b,_,m,E,D,I,Oe,Ct,Bt,yn)}class Ki{buildKeyframes(_,m,E,D,I,Oe,Ct,Bt,yn,Yn=[]){yn=yn||new nn;const jn=new Ua(_,m,yn,D,I,Yn,[]);jn.options=Bt;const Fi=Bt.delay?Jn(Bt.delay):0;jn.currentTimeline.delayNextStep(Fi),jn.currentTimeline.setStyles([Oe],null,jn.errors,Bt),Fn(this,E,jn);const Zi=jn.timelines.filter(Mi=>Mi.containsAnimation());if(Zi.length&&Ct.size){let Mi;for(let Ai=Zi.length-1;Ai>=0;Ai--){const Sa=Zi[Ai];if(Sa.element===m){Mi=Sa;break}}Mi&&!Mi.allowOnlyTimelineStyles()&&Mi.setStyles([Ct],null,jn.errors,Bt)}return Zi.length?Zi.map(Mi=>Mi.buildKeyframes()):[ca(m,[],[],[],0,Fi,"",!1)]}visitTrigger(_,m){}visitState(_,m){}visitTransition(_,m){}visitAnimateChild(_,m){const E=m.subInstructions.get(m.element);if(E){const D=m.createSubContext(_.options),I=m.currentTimeline.currentTime,Oe=this._visitSubInstructions(E,D,D.options);I!=Oe&&m.transformIntoNewTimeline(Oe)}m.previousNode=_}visitAnimateRef(_,m){const E=m.createSubContext(_.options);E.transformIntoNewTimeline(),this._applyAnimationRefDelays([_.options,_.animation.options],m,E),this.visitReference(_.animation,E),m.transformIntoNewTimeline(E.currentTimeline.currentTime),m.previousNode=_}_applyAnimationRefDelays(_,m,E){for(const D of _){const I=D?.delay;if(I){const Oe="number"==typeof I?I:Jn(zi(I,D?.params??{},m.errors));E.delayNextStep(Oe)}}}_visitSubInstructions(_,m,E){let I=m.currentTimeline.currentTime;const Oe=null!=E.duration?Jn(E.duration):null,Ct=null!=E.delay?Jn(E.delay):null;return 0!==Oe&&_.forEach(Bt=>{const yn=m.appendInstructionToTimeline(Bt,Oe,Ct);I=Math.max(I,yn.duration+yn.delay)}),I}visitReference(_,m){m.updateOptions(_.options,!0),Fn(this,_.animation,m),m.previousNode=_}visitSequence(_,m){const E=m.subContextCount;let D=m;const I=_.options;if(I&&(I.params||I.delay)&&(D=m.createSubContext(I),D.transformIntoNewTimeline(),null!=I.delay)){D.previousNode.type==lt.If.Style&&(D.currentTimeline.snapshotCurrentStyles(),D.previousNode=_a);const Oe=Jn(I.delay);D.delayNextStep(Oe)}_.steps.length&&(_.steps.forEach(Oe=>Fn(this,Oe,D)),D.currentTimeline.applyStylesToKeyframe(),D.subContextCount>E&&D.transformIntoNewTimeline()),m.previousNode=_}visitGroup(_,m){const E=[];let D=m.currentTimeline.currentTime;const I=_.options&&_.options.delay?Jn(_.options.delay):0;_.steps.forEach(Oe=>{const Ct=m.createSubContext(_.options);I&&Ct.delayNextStep(I),Fn(this,Oe,Ct),D=Math.max(D,Ct.currentTimeline.currentTime),E.push(Ct.currentTimeline)}),E.forEach(Oe=>m.currentTimeline.mergeTimelineCollectedStyles(Oe)),m.transformIntoNewTimeline(D),m.previousNode=_}_visitTiming(_,m){if(_.dynamic){const E=_.strValue;return Yi(m.params?zi(E,m.params,m.errors):E,m.errors)}return{duration:_.duration,delay:_.delay,easing:_.easing}}visitAnimate(_,m){const E=m.currentAnimateTimings=this._visitTiming(_.timings,m),D=m.currentTimeline;E.delay&&(m.incrementTime(E.delay),D.snapshotCurrentStyles());const I=_.style;I.type==lt.If.Keyframes?this.visitKeyframes(I,m):(m.incrementTime(E.duration),this.visitStyle(I,m),D.applyStylesToKeyframe()),m.currentAnimateTimings=null,m.previousNode=_}visitStyle(_,m){const E=m.currentTimeline,D=m.currentAnimateTimings;!D&&E.hasCurrentStyleProperties()&&E.forwardFrame();const I=D&&D.easing||_.easing;_.isEmptyStep?E.applyEmptyStep(I):E.setStyles(_.styles,I,m.errors,m.options),m.previousNode=_}visitKeyframes(_,m){const E=m.currentAnimateTimings,D=m.currentTimeline.duration,I=E.duration,Ct=m.createSubContext().currentTimeline;Ct.easing=E.easing,_.styles.forEach(Bt=>{Ct.forwardTime((Bt.offset||0)*I),Ct.setStyles(Bt.styles,Bt.easing,m.errors,m.options),Ct.applyStylesToKeyframe()}),m.currentTimeline.mergeTimelineCollectedStyles(Ct),m.transformIntoNewTimeline(D+I),m.previousNode=_}visitQuery(_,m){const E=m.currentTimeline.currentTime,D=_.options||{},I=D.delay?Jn(D.delay):0;I&&(m.previousNode.type===lt.If.Style||0==E&&m.currentTimeline.hasCurrentStyleProperties())&&(m.currentTimeline.snapshotCurrentStyles(),m.previousNode=_a);let Oe=E;const Ct=m.invokeQuery(_.selector,_.originalSelector,_.limit,_.includeSelf,!!D.optional,m.errors);m.currentQueryTotal=Ct.length;let Bt=null;Ct.forEach((yn,Yn)=>{m.currentQueryIndex=Yn;const jn=m.createSubContext(_.options,yn);I&&jn.delayNextStep(I),yn===m.element&&(Bt=jn.currentTimeline),Fn(this,_.animation,jn),jn.currentTimeline.applyStylesToKeyframe(),Oe=Math.max(Oe,jn.currentTimeline.currentTime)}),m.currentQueryIndex=0,m.currentQueryTotal=0,m.transformIntoNewTimeline(Oe),Bt&&(m.currentTimeline.mergeTimelineCollectedStyles(Bt),m.currentTimeline.snapshotCurrentStyles()),m.previousNode=_}visitStagger(_,m){const E=m.parentContext,D=m.currentTimeline,I=_.timings,Oe=Math.abs(I.duration),Ct=Oe*(m.currentQueryTotal-1);let Bt=Oe*m.currentQueryIndex;switch(I.duration<0?"reverse":I.easing){case"reverse":Bt=Ct-Bt;break;case"full":Bt=E.currentStaggerTime}const Yn=m.currentTimeline;Bt&&Yn.delayNextStep(Bt);const jn=Yn.currentTime;Fn(this,_.animation,m),m.previousNode=_,E.currentStaggerTime=D.currentTime-jn+(D.startTime-E.currentTimeline.startTime)}}const _a={};class Ua{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=_a;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(_,m,E,D,I,Oe,Ct,Bt){this._driver=_,this.element=m,this.subInstructions=E,this._enterClassName=D,this._leaveClassName=I,this.errors=Oe,this.timelines=Ct,this.currentTimeline=Bt||new $a(this._driver,m,0),Ct.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(_,m){if(!_)return;const E=_;let D=this.options;null!=E.duration&&(D.duration=Jn(E.duration)),null!=E.delay&&(D.delay=Jn(E.delay));const I=E.params;if(I){let Oe=D.params;Oe||(Oe=this.options.params={}),Object.keys(I).forEach(Ct=>{(!m||!Oe.hasOwnProperty(Ct))&&(Oe[Ct]=zi(I[Ct],Oe,this.errors))})}}_copyOptions(){const _={};if(this.options){const m=this.options.params;if(m){const E=_.params={};Object.keys(m).forEach(D=>{E[D]=m[D]})}}return _}createSubContext(_=null,m,E){const D=m||this.element,I=new Ua(this._driver,D,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(D,E||0));return I.previousNode=this.previousNode,I.currentAnimateTimings=this.currentAnimateTimings,I.options=this._copyOptions(),I.updateOptions(_),I.currentQueryIndex=this.currentQueryIndex,I.currentQueryTotal=this.currentQueryTotal,I.parentContext=this,this.subContextCount++,I}transformIntoNewTimeline(_){return this.previousNode=_a,this.currentTimeline=this.currentTimeline.fork(this.element,_),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(_,m,E){const D={duration:m??_.duration,delay:this.currentTimeline.currentTime+(E??0)+_.delay,easing:""},I=new ns(this._driver,_.element,_.keyframes,_.preStyleProps,_.postStyleProps,D,_.stretchStartingKeyframe);return this.timelines.push(I),D}incrementTime(_){this.currentTimeline.forwardTime(this.currentTimeline.duration+_)}delayNextStep(_){_>0&&this.currentTimeline.delayNextStep(_)}invokeQuery(_,m,E,D,I,Oe){let Ct=[];if(D&&Ct.push(this.element),_.length>0){_=(_=_.replace(tt,"."+this._enterClassName)).replace(Xt,"."+this._leaveClassName);let yn=this._driver.query(this.element,_,1!=E);0!==E&&(yn=E<0?yn.slice(yn.length+E,yn.length):yn.slice(0,E)),Ct.push(...yn)}return!I&&0==Ct.length&&Oe.push(function Gt(){return new v.buA(3014,!1)}()),Ct}}class $a{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(_,m,E,D){this._driver=_,this.element=m,this.startTime=E,this._elementTimelineStylesLookup=D,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(m),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(m,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(_){const m=1===this._keyframes.size&&this._pendingStyles.size;this.duration||m?(this.forwardTime(this.currentTime+_),m&&this.snapshotCurrentStyles()):this.startTime+=_}fork(_,m){return this.applyStylesToKeyframe(),new $a(this._driver,_,m||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(_){this.applyStylesToKeyframe(),this.duration=_,this._loadKeyframe()}_updateStyle(_,m){this._localTimelineStyles.set(_,m),this._globalTimelineStyles.set(_,m),this._styleSummary.set(_,{time:this.currentTime,value:m})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(_){_&&this._previousKeyframe.set("easing",_);for(let[m,E]of this._globalTimelineStyles)this._backFill.set(m,E||lt.kp),this._currentKeyframe.set(m,lt.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(_,m,E,D){m&&this._previousKeyframe.set("easing",m);const I=D&&D.params||{},Oe=function As(b,_){const m=new Map;let E;return b.forEach(D=>{if("*"===D){E??=_.keys();for(let I of E)m.set(I,lt.kp)}else for(let[I,Oe]of D)m.set(I,Oe)}),m}(_,this._globalTimelineStyles);for(let[Ct,Bt]of Oe){const yn=zi(Bt,I,E);this._pendingStyles.set(Ct,yn),this._localTimelineStyles.has(Ct)||this._backFill.set(Ct,this._globalTimelineStyles.get(Ct)??lt.kp),this._updateStyle(Ct,yn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((_,m)=>{this._currentKeyframe.set(m,_)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((_,m)=>{this._currentKeyframe.has(m)||this._currentKeyframe.set(m,_)}))}snapshotCurrentStyles(){for(let[_,m]of this._localTimelineStyles)this._pendingStyles.set(_,m),this._updateStyle(_,m)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const _=[];for(let m in this._currentKeyframe)_.push(m);return _}mergeTimelineCollectedStyles(_){_._styleSummary.forEach((m,E)=>{const D=this._styleSummary.get(E);(!D||m.time>D.time)&&this._updateStyle(E,m.value)})}buildKeyframes(){this.applyStylesToKeyframe();const _=new Set,m=new Set,E=1===this._keyframes.size&&0===this.duration;let D=[];this._keyframes.forEach((Ct,Bt)=>{const yn=new Map([...this._backFill,...Ct]);yn.forEach((Yn,jn)=>{Yn===lt.FX?_.add(jn):Yn===lt.kp&&m.add(jn)}),E||yn.set("offset",Bt/this.duration),D.push(yn)});const I=[..._.values()],Oe=[...m.values()];if(E){const Ct=D[0],Bt=new Map(Ct);Ct.set("offset",0),Bt.set("offset",1),D=[Ct,Bt]}return ca(this.element,D,I,Oe,this.duration,this.startTime,this.easing,!1)}}class ns extends $a{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(_,m,E,D,I,Oe,Ct=!1){super(_,m,Oe.delay),this.keyframes=E,this.preStyleProps=D,this.postStyleProps=I,this._stretchStartingKeyframe=Ct,this.timings={duration:Oe.duration,delay:Oe.delay,easing:Oe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let _=this.keyframes,{delay:m,duration:E,easing:D}=this.timings;if(this._stretchStartingKeyframe&&m){const I=[],Oe=E+m,Ct=m/Oe,Bt=new Map(_[0]);Bt.set("offset",0),I.push(Bt);const yn=new Map(_[0]);yn.set("offset",Ga(Ct)),I.push(yn);const Yn=_.length-1;for(let jn=1;jn<=Yn;jn++){let Fi=new Map(_[jn]);const Zi=Fi.get("offset");Fi.set("offset",Ga((m+Zi*E)/Oe)),I.push(Fi)}E=Oe,m=0,D="",_=I}return ca(this.element,_,this.preStyleProps,this.postStyleProps,E,m,D,!0)}}function Ga(b,_=3){const m=Math.pow(10,_-1);return Math.round(b*m)/m}function hr(b,_,m,E,D,I,Oe,Ct,Bt,yn,Yn,jn,Fi){return{type:0,element:b,triggerName:_,isRemovalTransition:D,fromState:m,fromStyles:I,toState:E,toStyles:Oe,timelines:Ct,queriedElements:Bt,preStyleProps:yn,postStyleProps:Yn,totalTime:jn,errors:Fi}}const mr={};class fr{_triggerName;ast;_stateStyles;constructor(_,m,E){this._triggerName=_,this.ast=m,this._stateStyles=E}match(_,m,E,D){return function pr(b,_,m,E,D){return b.some(I=>I(_,m,E,D))}(this.ast.matchers,_,m,E,D)}buildStyles(_,m,E){let D=this._stateStyles.get("*");return void 0!==_&&(D=this._stateStyles.get(_?.toString())||D),D?D.buildStyles(m,E):new Map}build(_,m,E,D,I,Oe,Ct,Bt,yn,Yn){const jn=[],Fi=this.ast.options&&this.ast.options.params||mr,Mi=this.buildStyles(E,Ct&&Ct.params||mr,jn),Ai=Bt&&Bt.params||mr,Sa=this.buildStyles(D,Ai,jn),Ia=new Set,fs=new Map,$s=new Map,Ea="void"===D,ws={params:gr(Ai,Fi),delay:this.ast.options?.delay},Fa=Yn?[]:Nn(_,m,this.ast.animation,I,Oe,Mi,Sa,ws,yn,jn);let Vs=0;return Fa.forEach(ps=>{Vs=Math.max(ps.duration+ps.delay,Vs)}),jn.length?hr(m,this._triggerName,E,D,Ea,Mi,Sa,[],[],fs,$s,Vs,jn):(Fa.forEach(ps=>{const xl=ps.element,W1=ge(fs,xl,new Set);ps.preStyleProps.forEach(h1=>W1.add(h1));const K3=ge($s,xl,new Set);ps.postStyleProps.forEach(h1=>K3.add(h1)),xl!==m&&Ia.add(xl)}),hr(m,this._triggerName,E,D,Ea,Mi,Sa,Fa,[...Ia.values()],fs,$s,Vs))}}function gr(b,_){const m={..._};return Object.entries(b).forEach(([E,D])=>{null!=D&&(m[E]=D)}),m}class bo{styles;defaultParams;normalizer;constructor(_,m,E){this.styles=_,this.defaultParams=m,this.normalizer=E}buildStyles(_,m){const E=new Map,D=gr(_,this.defaultParams);return this.styles.styles.forEach(I=>{"string"!=typeof I&&I.forEach((Oe,Ct)=>{Oe&&(Oe=zi(Oe,D,m));const Bt=this.normalizer.normalizePropertyName(Ct,m);Oe=this.normalizer.normalizeStyleValue(Ct,Bt,Oe,m),E.set(Ct,Oe)})}),E}}class jr{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(_,m,E){this.name=_,this.ast=m,this._normalizer=E,m.states.forEach(D=>{this.states.set(D.name,new bo(D.style,D.options&&D.options.params||{},E))}),Ka(this.states,"true","1"),Ka(this.states,"false","0"),m.transitions.forEach(D=>{this.transitionFactories.push(new fr(_,D,this.states))}),this.fallbackTransition=function Er(b,_){return new fr(b,{type:lt.If.Transition,animation:{type:lt.If.Sequence,steps:[],options:null},matchers:[(Oe,Ct)=>!0],options:null,queryCount:0,depCount:0},_)}(_,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(_,m,E,D){return this.transitionFactories.find(Oe=>Oe.match(_,m,E,D))||null}matchStyles(_,m,E){return this.fallbackTransition.buildStyles(_,m,E)}}function Ka(b,_,m){b.has(_)?b.has(m)||b.set(m,b.get(_)):b.has(m)&&b.set(_,b.get(m))}const Ps=new nn;class kr{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(_,m,E){this.bodyNode=_,this._driver=m,this._normalizer=E}register(_,m){const E=[],I=Wi(this._driver,m,E,[]);if(E.length)throw function jt(){return new v.buA(3503,!1)}();this._animations.set(_,I)}_buildPlayer(_,m,E){const D=_.element,I=ee(this._normalizer,_.keyframes,m,E);return this._driver.animate(D,I,_.duration,_.delay,_.easing,[],!0)}create(_,m,E={}){const D=[],I=this._animations.get(_);let Oe;const Ct=new Map;if(I?(Oe=Nn(this._driver,m,I,tn,on,new Map,new Map,E,Ps,D),Oe.forEach(Yn=>{const jn=ge(Ct,Yn.element,new Map);Yn.postStyleProps.forEach(Fi=>jn.set(Fi,null))})):(D.push(function Ue(){return new v.buA(3300,!1)}()),Oe=[]),D.length)throw function wt(){return new v.buA(3504,!1)}();Ct.forEach((Yn,jn)=>{Yn.forEach((Fi,Zi)=>{Yn.set(Zi,this._driver.computeStyle(jn,Zi,lt.kp))})});const yn=vt(Oe.map(Yn=>{const jn=Ct.get(Yn.element);return this._buildPlayer(Yn,new Map,jn)}));return this._playersById.set(_,yn),yn.onDestroy(()=>this.destroy(_)),this.players.push(yn),yn}destroy(_){const m=this._getPlayer(_);m.destroy(),this._playersById.delete(_);const E=this.players.indexOf(m);E>=0&&this.players.splice(E,1)}_getPlayer(_){const m=this._playersById.get(_);if(!m)throw function pt(){return new v.buA(3301,!1)}();return m}listen(_,m,E,D){const I=Se(m,"","","");return ye(this._getPlayer(_),E,I,D),()=>{}}command(_,m,E,D){if("register"==E)return void this.register(_,D[0]);if("create"==E)return void this.create(_,m,D[0]||{});const I=this._getPlayer(_);switch(E){case"play":I.play();break;case"pause":I.pause();break;case"reset":I.reset();break;case"restart":I.restart();break;case"finish":I.finish();break;case"init":I.init();break;case"setPosition":I.setPosition(parseFloat(D[0]));break;case"destroy":this.destroy(_)}}}const js="ng-animate-queued",Zr="ng-animate-disabled",Js=[],_r={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},rs={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ls="__ng_removed";class is{namespaceId;value;options;get params(){return this.options.params}constructor(_,m=""){this.namespaceId=m;const E=_&&_.hasOwnProperty("value");if(this.value=function qs(b){return b??null}(E?_.value:_),E){const{value:I,...Oe}=_;this.options=Oe}else this.options={};this.options.params||(this.options.params={})}absorbOptions(_){const m=_.params;if(m){const E=this.options.params;Object.keys(m).forEach(D=>{null==E[D]&&(E[D]=m[D])})}}}const Hs="void",Ws=new is(Hs);class Mr{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(_,m,E){this.id=_,this.hostElement=m,this._engine=E,this._hostClassName="ng-tns-"+_,ja(m,this._hostClassName)}listen(_,m,E,D){if(!this._triggers.has(m))throw function Pt(){return new v.buA(3302,!1)}();if(null==E||0==E.length)throw function gn(){return new v.buA(3303,!1)}();if(!function yr(b){return"start"==b||"done"==b}(E))throw function ei(){return new v.buA(3400,!1)}();const I=ge(this._elementListeners,_,[]),Oe={name:m,phase:E,callback:D};I.push(Oe);const Ct=ge(this._engine.statesByElement,_,new Map);return Ct.has(m)||(ja(_,un),ja(_,un+"-"+m),Ct.set(m,Ws)),()=>{this._engine.afterFlush(()=>{const Bt=I.indexOf(Oe);Bt>=0&&I.splice(Bt,1),this._triggers.has(m)||Ct.delete(m)})}}register(_,m){return!this._triggers.has(_)&&(this._triggers.set(_,m),!0)}_getTrigger(_){const m=this._triggers.get(_);if(!m)throw function vi(){return new v.buA(3401,!1)}();return m}trigger(_,m,E,D=!0){const I=this._getTrigger(m),Oe=new xs(this.id,m,_);let Ct=this._engine.statesByElement.get(_);Ct||(ja(_,un),ja(_,un+"-"+m),this._engine.statesByElement.set(_,Ct=new Map));let Bt=Ct.get(m);const yn=new is(E,this.id);if(!(E&&E.hasOwnProperty("value"))&&Bt&&yn.absorbOptions(Bt.options),Ct.set(m,yn),Bt||(Bt=Ws),yn.value!==Hs&&Bt.value===yn.value){if(!function Hr(b,_){const m=Object.keys(b),E=Object.keys(_);if(m.length!=E.length)return!1;for(let D=0;D{Ht(_,Sa),Lt(_,Ia)})}return}const Fi=ge(this._engine.playersByElement,_,[]);Fi.forEach(Ai=>{Ai.namespaceId==this.id&&Ai.triggerName==m&&Ai.queued&&Ai.destroy()});let Zi=I.matchTransition(Bt.value,yn.value,_,yn.params),Mi=!1;if(!Zi){if(!D)return;Zi=I.fallbackTransition,Mi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:m,transition:Zi,fromState:Bt,toState:yn,player:Oe,isFallbackTransition:Mi}),Mi||(ja(_,js),Oe.onStart(()=>{Za(_,js)})),Oe.onDone(()=>{let Ai=this.players.indexOf(Oe);Ai>=0&&this.players.splice(Ai,1);const Sa=this._engine.playersByElement.get(_);if(Sa){let Ia=Sa.indexOf(Oe);Ia>=0&&Sa.splice(Ia,1)}}),this.players.push(Oe),Fi.push(Oe),Oe}deregister(_){this._triggers.delete(_),this._engine.statesByElement.forEach(m=>m.delete(_)),this._elementListeners.forEach((m,E)=>{this._elementListeners.set(E,m.filter(D=>D.name!=_))})}clearElementCache(_){this._engine.statesByElement.delete(_),this._elementListeners.delete(_);const m=this._engine.playersByElement.get(_);m&&(m.forEach(E=>E.destroy()),this._engine.playersByElement.delete(_))}_signalRemovalForInnerTriggers(_,m){const E=this._engine.driver.query(_,Nt,!0);E.forEach(D=>{if(D[ls])return;const I=this._engine.fetchNamespacesByElement(D);I.size?I.forEach(Oe=>Oe.triggerLeaveAnimation(D,m,!1,!0)):this.clearElementCache(D)}),this._engine.afterFlushAnimationsDone(()=>E.forEach(D=>this.clearElementCache(D)))}triggerLeaveAnimation(_,m,E,D){const I=this._engine.statesByElement.get(_),Oe=new Map;if(I){const Ct=[];if(I.forEach((Bt,yn)=>{if(Oe.set(yn,Bt.value),this._triggers.has(yn)){const Yn=this.trigger(_,yn,Hs,D);Yn&&Ct.push(Yn)}}),Ct.length)return this._engine.markElementAsRemoved(this.id,_,!0,m,Oe),E&&vt(Ct).onDone(()=>this._engine.processLeaveNode(_)),!0}return!1}prepareLeaveAnimationListeners(_){const m=this._elementListeners.get(_),E=this._engine.statesByElement.get(_);if(m&&E){const D=new Set;m.forEach(I=>{const Oe=I.name;if(D.has(Oe))return;D.add(Oe);const Bt=this._triggers.get(Oe).fallbackTransition,yn=E.get(Oe)||Ws,Yn=new is(Hs),jn=new xs(this.id,Oe,_);this._engine.totalQueuedPlayers++,this._queue.push({element:_,triggerName:Oe,transition:Bt,fromState:yn,toState:Yn,player:jn,isFallbackTransition:!0})})}}removeNode(_,m){const E=this._engine;if(_.childElementCount&&this._signalRemovalForInnerTriggers(_,m),this.triggerLeaveAnimation(_,m,!0))return;let D=!1;if(E.totalAnimations){const I=E.players.length?E.playersByQueriedElement.get(_):[];if(I&&I.length)D=!0;else{let Oe=_;for(;Oe=Oe.parentNode;)if(E.statesByElement.get(Oe)){D=!0;break}}}if(this.prepareLeaveAnimationListeners(_),D)E.markElementAsRemoved(this.id,_,!1,m);else{const I=_[ls];(!I||I===_r)&&(E.afterFlush(()=>this.clearElementCache(_)),E.destroyInnerAnimations(_),E._onRemovalComplete(_,m))}}insertNode(_,m){ja(_,this._hostClassName)}drainQueuedTransitions(_){const m=[];return this._queue.forEach(E=>{const D=E.player;if(D.destroyed)return;const I=E.element,Oe=this._elementListeners.get(I);Oe&&Oe.forEach(Ct=>{if(Ct.name==E.triggerName){const Bt=Se(I,E.triggerName,E.fromState.value,E.toState.value);Bt._data=_,ye(E.player,Ct.phase,Bt,Ct.callback)}}),D.markedForDestroy?this._engine.afterFlush(()=>{D.destroy()}):m.push(E)}),this._queue=[],m.sort((E,D)=>{const I=E.transition.ast.depCount,Oe=D.transition.ast.depCount;return 0==I||0==Oe?I-Oe:this._engine.driver.containsElement(E.element,D.element)?1:-1})}destroy(_){this.players.forEach(m=>m.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,_)}}class Ui{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(_,m)=>{};_onRemovalComplete(_,m){this.onRemovalComplete(_,m)}constructor(_,m,E){this.bodyNode=_,this.driver=m,this._normalizer=E}get queuedPlayers(){const _=[];return this._namespaceList.forEach(m=>{m.players.forEach(E=>{E.queued&&_.push(E)})}),_}createNamespace(_,m){const E=new Mr(_,m,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,m)?this._balanceNamespaceList(E,m):(this.newHostElements.set(m,E),this.collectEnterElement(m)),this._namespaceLookup[_]=E}_balanceNamespaceList(_,m){const E=this._namespaceList,D=this.namespacesByHostElement;if(E.length-1>=0){let Oe=!1,Ct=this.driver.getParentElement(m);for(;Ct;){const Bt=D.get(Ct);if(Bt){const yn=E.indexOf(Bt);E.splice(yn+1,0,_),Oe=!0;break}Ct=this.driver.getParentElement(Ct)}Oe||E.unshift(_)}else E.push(_);return D.set(m,_),_}register(_,m){let E=this._namespaceLookup[_];return E||(E=this.createNamespace(_,m)),E}registerTrigger(_,m,E){let D=this._namespaceLookup[_];D&&D.register(m,E)&&this.totalAnimations++}destroy(_,m){_&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const E=this._fetchNamespace(_);this.namespacesByHostElement.delete(E.hostElement);const D=this._namespaceList.indexOf(E);D>=0&&this._namespaceList.splice(D,1),E.destroy(m),delete this._namespaceLookup[_]}))}_fetchNamespace(_){return this._namespaceLookup[_]}fetchNamespacesByElement(_){const m=new Set,E=this.statesByElement.get(_);if(E)for(let D of E.values())if(D.namespaceId){const I=this._fetchNamespace(D.namespaceId);I&&m.add(I)}return m}trigger(_,m,E,D){if(Pa(m)){const I=this._fetchNamespace(_);if(I)return I.trigger(m,E,D),!0}return!1}insertNode(_,m,E,D){if(!Pa(m))return;const I=m[ls];if(I&&I.setForRemoval){I.setForRemoval=!1,I.setForMove=!0;const Oe=this.collectedLeaveElements.indexOf(m);Oe>=0&&this.collectedLeaveElements.splice(Oe,1)}if(_){const Oe=this._fetchNamespace(_);Oe&&Oe.insertNode(m,E)}D&&this.collectEnterElement(m)}collectEnterElement(_){this.collectedEnterElements.push(_)}markElementAsDisabled(_,m){m?this.disabledNodes.has(_)||(this.disabledNodes.add(_),ja(_,Zr)):this.disabledNodes.has(_)&&(this.disabledNodes.delete(_),Za(_,Zr))}removeNode(_,m,E){if(Pa(m)){const D=_?this._fetchNamespace(_):null;D?D.removeNode(m,E):this.markElementAsRemoved(_,m,!1,E);const I=this.namespacesByHostElement.get(m);I&&I.id!==_&&I.removeNode(m,E)}else this._onRemovalComplete(m,E)}markElementAsRemoved(_,m,E,D,I){this.collectedLeaveElements.push(m),m[ls]={namespaceId:_,setForRemoval:D,hasAnimation:E,removedBeforeQueried:!1,previousTriggersValues:I}}listen(_,m,E,D,I){return Pa(m)?this._fetchNamespace(_).listen(m,E,D,I):()=>{}}_buildInstruction(_,m,E,D,I){return _.transition.build(this.driver,_.element,_.fromState.value,_.toState.value,E,D,_.fromState.options,_.toState.options,m,I)}destroyInnerAnimations(_){let m=this.driver.query(_,Nt,!0);m.forEach(E=>this.destroyActiveAnimationsForElement(E)),0!=this.playersByQueriedElement.size&&(m=this.driver.query(_,xn,!0),m.forEach(E=>this.finishActiveQueriedAnimationOnElement(E)))}destroyActiveAnimationsForElement(_){const m=this.playersByElement.get(_);m&&m.forEach(E=>{E.queued?E.markedForDestroy=!0:E.destroy()})}finishActiveQueriedAnimationOnElement(_){const m=this.playersByQueriedElement.get(_);m&&m.forEach(E=>E.finish())}whenRenderingDone(){return new Promise(_=>{if(this.players.length)return vt(this.players).onDone(()=>_());_()})}processLeaveNode(_){const m=_[ls];if(m&&m.setForRemoval){if(_[ls]=_r,m.namespaceId){this.destroyInnerAnimations(_);const E=this._fetchNamespace(m.namespaceId);E&&E.clearElementCache(_)}this._onRemovalComplete(_,m.setForRemoval)}_.classList?.contains(Zr)&&this.markElementAsDisabled(_,!1),this.driver.query(_,".ng-animate-disabled",!0).forEach(E=>{this.markElementAsDisabled(E,!1)})}flush(_=-1){let m=[];if(this.newHostElements.size&&(this.newHostElements.forEach((E,D)=>this._balanceNamespaceList(E,D)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let E=0;EE()),this._flushFns=[],this._whenQuietFns.length){const E=this._whenQuietFns;this._whenQuietFns=[],m.length?vt(m).onDone(()=>{E.forEach(D=>D())}):E.forEach(D=>D())}}reportError(_){throw function Ni(){return new v.buA(3402,!1)}()}_flushAnimations(_,m){const E=new nn,D=[],I=new Map,Oe=[],Ct=new Map,Bt=new Map,yn=new Map,Yn=new Set;this.disabledNodes.forEach(aa=>{Yn.add(aa);const la=this.driver.query(aa,".ng-animate-queued",!0);for(let ya=0;ya{const ya=tn+Ai++;Mi.set(la,ya),aa.forEach(Ya=>ja(Ya,ya))});const Sa=[],Ia=new Set,fs=new Set;for(let aa=0;aaIa.add(Ya)):fs.add(la))}const $s=new Map,Ea=wa(Fi,Array.from(Ia));Ea.forEach((aa,la)=>{const ya=on+Ai++;$s.set(la,ya),aa.forEach(Ya=>ja(Ya,ya))}),_.push(()=>{Zi.forEach((aa,la)=>{const ya=Mi.get(la);aa.forEach(Ya=>Za(Ya,ya))}),Ea.forEach((aa,la)=>{const ya=$s.get(la);aa.forEach(Ya=>Za(Ya,ya))}),Sa.forEach(aa=>{this.processLeaveNode(aa)})});const ws=[],Fa=[];for(let aa=this._namespaceList.length-1;aa>=0;aa--)this._namespaceList[aa].drainQueuedTransitions(m).forEach(ya=>{const Ya=ya.player,uo=ya.element;if(ws.push(Ya),this.collectedEnterElements.length){const ho=uo[ls];if(ho&&ho.setForMove){if(ho.previousTriggersValues&&ho.previousTriggersValues.has(ya.triggerName)){const Vc=ho.previousTriggersValues.get(ya.triggerName),Nl=this.statesByElement.get(ya.element);if(Nl&&Nl.has(ya.triggerName)){const jd=Nl.get(ya.triggerName);jd.value=Vc,Nl.set(ya.triggerName,jd)}}return void Ya.destroy()}}const _o=!jn||!this.driver.containsElement(jn,uo),vo=$s.get(uo),dc=Mi.get(uo),ys=this._buildInstruction(ya,E,dc,vo,_o);if(ys.errors&&ys.errors.length)return void Fa.push(ys);if(_o)return Ya.onStart(()=>Ht(uo,ys.fromStyles)),Ya.onDestroy(()=>Lt(uo,ys.toStyles)),void D.push(Ya);if(ya.isFallbackTransition)return Ya.onStart(()=>Ht(uo,ys.fromStyles)),Ya.onDestroy(()=>Lt(uo,ys.toStyles)),void D.push(Ya);const Y1=[];ys.timelines.forEach(ho=>{ho.stretchStartingKeyframe=!0,this.disabledNodes.has(ho.element)||Y1.push(ho)}),ys.timelines=Y1,E.append(uo,ys.timelines),Oe.push({instruction:ys,player:Ya,element:uo}),ys.queriedElements.forEach(ho=>ge(Ct,ho,[]).push(Ya)),ys.preStyleProps.forEach((ho,Vc)=>{if(ho.size){let Nl=Bt.get(Vc);Nl||Bt.set(Vc,Nl=new Set),ho.forEach((jd,s0)=>Nl.add(s0))}}),ys.postStyleProps.forEach((ho,Vc)=>{let Nl=yn.get(Vc);Nl||yn.set(Vc,Nl=new Set),ho.forEach((jd,s0)=>Nl.add(s0))})});if(Fa.length){const aa=[];Fa.forEach(la=>{aa.push(function kn(){return new v.buA(3505,!1)}())}),ws.forEach(la=>la.destroy()),this.reportError(aa)}const Vs=new Map,ps=new Map;Oe.forEach(aa=>{const la=aa.element;E.has(la)&&(ps.set(la,la),this._beforeAnimationBuild(aa.player.namespaceId,aa.instruction,Vs))}),D.forEach(aa=>{const la=aa.element;this._getPreviousPlayers(la,!1,aa.namespaceId,aa.triggerName,null).forEach(Ya=>{ge(Vs,la,[]).push(Ya),Ya.destroy()})});const xl=Sa.filter(aa=>Ks(aa,Bt,yn)),W1=new Map;Xs(W1,this.driver,fs,yn,lt.kp).forEach(aa=>{Ks(aa,Bt,yn)&&xl.push(aa)});const h1=new Map;Zi.forEach((aa,la)=>{Xs(h1,this.driver,new Set(aa),Bt,lt.FX)}),xl.forEach(aa=>{const la=W1.get(aa),ya=h1.get(aa);W1.set(aa,new Map([...la?.entries()??[],...ya?.entries()??[]]))});const X1=[],zc=[],K1={};Oe.forEach(aa=>{const{element:la,player:ya,instruction:Ya}=aa;if(E.has(la)){if(Yn.has(la))return ya.onDestroy(()=>Lt(la,Ya.toStyles)),ya.disabled=!0,ya.overrideTotalTime(Ya.totalTime),void D.push(ya);let uo=K1;if(ps.size>1){let vo=la;const dc=[];for(;vo=vo.parentNode;){const ys=ps.get(vo);if(ys){uo=ys;break}dc.push(vo)}dc.forEach(ys=>ps.set(ys,uo))}const _o=this._buildAnimation(ya.namespaceId,Ya,Vs,I,h1,W1);if(ya.setRealPlayer(_o),uo===K1)X1.push(ya);else{const vo=this.playersByElement.get(uo);vo&&vo.length&&(ya.parentPlayer=vt(vo)),D.push(ya)}}else Ht(la,Ya.fromStyles),ya.onDestroy(()=>Lt(la,Ya.toStyles)),zc.push(ya),Yn.has(la)&&D.push(ya)}),zc.forEach(aa=>{const la=I.get(aa.element);if(la&&la.length){const ya=vt(la);aa.setRealPlayer(ya)}}),D.forEach(aa=>{aa.parentPlayer?aa.syncPlayerEvents(aa.parentPlayer):aa.destroy()});for(let aa=0;aa!_o.destroyed);uo.length?Or(this,la,uo):this.processLeaveNode(la)}return Sa.length=0,X1.forEach(aa=>{this.players.push(aa),aa.onDone(()=>{aa.destroy();const la=this.players.indexOf(aa);this.players.splice(la,1)}),aa.play()}),X1}afterFlush(_){this._flushFns.push(_)}afterFlushAnimationsDone(_){this._whenQuietFns.push(_)}_getPreviousPlayers(_,m,E,D,I){let Oe=[];if(m){const Ct=this.playersByQueriedElement.get(_);Ct&&(Oe=Ct)}else{const Ct=this.playersByElement.get(_);if(Ct){const Bt=!I||I==Hs;Ct.forEach(yn=>{yn.queued||!Bt&&yn.triggerName!=D||Oe.push(yn)})}}return(E||D)&&(Oe=Oe.filter(Ct=>!(E&&E!=Ct.namespaceId||D&&D!=Ct.triggerName))),Oe}_beforeAnimationBuild(_,m,E){const I=m.element,Oe=m.isRemovalTransition?void 0:_,Ct=m.isRemovalTransition?void 0:m.triggerName;for(const Bt of m.timelines){const yn=Bt.element,Yn=yn!==I,jn=ge(E,yn,[]);this._getPreviousPlayers(yn,Yn,Oe,Ct,m.toState).forEach(Zi=>{const Mi=Zi.getRealPlayer();Mi.beforeDestroy&&Mi.beforeDestroy(),Zi.destroy(),jn.push(Zi)})}Ht(I,m.fromStyles)}_buildAnimation(_,m,E,D,I,Oe){const Ct=m.triggerName,Bt=m.element,yn=[],Yn=new Set,jn=new Set,Fi=m.timelines.map(Mi=>{const Ai=Mi.element;Yn.add(Ai);const Sa=Ai[ls];if(Sa&&Sa.removedBeforeQueried)return new lt.sf(Mi.duration,Mi.delay);const Ia=Ai!==Bt,fs=function Rr(b){const _=[];return Fs(b,_),_}((E.get(Ai)||Js).map(Vs=>Vs.getRealPlayer())).filter(Vs=>!!Vs.element&&Vs.element===Ai),$s=I.get(Ai),Ea=Oe.get(Ai),ws=ee(this._normalizer,Mi.keyframes,$s,Ea),Fa=this._buildPlayer(Mi,ws,fs);if(Mi.subTimeline&&D&&jn.add(Ai),Ia){const Vs=new xs(_,Ct,Ai);Vs.setRealPlayer(Fa),yn.push(Vs)}return Fa});yn.forEach(Mi=>{ge(this.playersByQueriedElement,Mi.element,[]).push(Mi),Mi.onDone(()=>function vr(b,_,m){let E=b.get(_);if(E){if(E.length){const D=E.indexOf(m);E.splice(D,1)}0==E.length&&b.delete(_)}return E}(this.playersByQueriedElement,Mi.element,Mi))}),Yn.forEach(Mi=>ja(Mi,dn));const Zi=vt(Fi);return Zi.onDestroy(()=>{Yn.forEach(Mi=>Za(Mi,dn)),Lt(Bt,m.toStyles)}),jn.forEach(Mi=>{ge(D,Mi,[]).push(Zi)}),Zi}_buildPlayer(_,m,E){return m.length>0?this.driver.animate(_.element,m,_.duration,_.delay,_.easing,E):new lt.sf(_.duration,_.delay)}}class xs{namespaceId;triggerName;element;_player=new lt.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(_,m,E){this.namespaceId=_,this.triggerName=m,this.element=E}setRealPlayer(_){this._containsRealPlayer||(this._player=_,this._queuedCallbacks.forEach((m,E)=>{m.forEach(D=>ye(_,E,void 0,D))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(_.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(_){this.totalTime=_}syncPlayerEvents(_){const m=this._player;m.triggerCallback&&_.onStart(()=>m.triggerCallback("start")),_.onDone(()=>this.finish()),_.onDestroy(()=>this.destroy())}_queueEvent(_,m){ge(this._queuedCallbacks,_,[]).push(m)}onDone(_){this.queued&&this._queueEvent("done",_),this._player.onDone(_)}onStart(_){this.queued&&this._queueEvent("start",_),this._player.onStart(_)}onDestroy(_){this.queued&&this._queueEvent("destroy",_),this._player.onDestroy(_)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(_){this.queued||this._player.setPosition(_)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(_){const m=this._player;m.triggerCallback&&m.triggerCallback(_)}}function Pa(b){return b&&1===b.nodeType}function er(b,_){const m=b.style.display;return b.style.display=_??"none",m}function Xs(b,_,m,E,D){const I=[];m.forEach(Bt=>I.push(er(Bt)));const Oe=[];E.forEach((Bt,yn)=>{const Yn=new Map;Bt.forEach(jn=>{const Fi=_.computeStyle(yn,jn,D);Yn.set(jn,Fi),(!Fi||0==Fi.length)&&(yn[ls]=rs,Oe.push(yn))}),b.set(yn,Yn)});let Ct=0;return m.forEach(Bt=>er(Bt,I[Ct++])),Oe}function wa(b,_){const m=new Map;if(b.forEach(Ct=>m.set(Ct,[])),0==_.length)return m;const D=new Set(_),I=new Map;function Oe(Ct){if(!Ct)return 1;let Bt=I.get(Ct);if(Bt)return Bt;const yn=Ct.parentNode;return Bt=m.has(yn)?yn:D.has(yn)?1:Oe(yn),I.set(Ct,Bt),Bt}return _.forEach(Ct=>{const Bt=Oe(Ct);1!==Bt&&m.get(Bt).push(Ct)}),m}function ja(b,_){b.classList?.add(_)}function Za(b,_){b.classList?.remove(_)}function Or(b,_,m){vt(m).onDone(()=>b.processLeaveNode(_))}function Fs(b,_){for(let m=0;mD.add(I)):_.set(b,E),m.delete(b),!0}class Sr{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(_,m)=>{};constructor(_,m,E){this._driver=m,this._normalizer=E,this._transitionEngine=new Ui(_.body,m,E),this._timelineEngine=new kr(_.body,m,E),this._transitionEngine.onRemovalComplete=(D,I)=>this.onRemovalComplete(D,I)}registerTrigger(_,m,E,D,I){const Oe=_+"-"+D;let Ct=this._triggerCache[Oe];if(!Ct){const Bt=[],Yn=Wi(this._driver,I,Bt,[]);if(Bt.length)throw function Qn(){return new v.buA(3404,!1)}();Ct=function Zs(b,_,m){return new jr(b,_,m)}(D,Yn,this._normalizer),this._triggerCache[Oe]=Ct}this._transitionEngine.registerTrigger(m,D,Ct)}register(_,m){this._transitionEngine.register(_,m)}destroy(_,m){this._transitionEngine.destroy(_,m)}onInsert(_,m,E,D){this._transitionEngine.insertNode(_,m,E,D)}onRemove(_,m,E){this._transitionEngine.removeNode(_,m,E)}disableAnimations(_,m){this._transitionEngine.markElementAsDisabled(_,m)}process(_,m,E,D){if("@"==E.charAt(0)){const[I,Oe]=N(E);this._timelineEngine.command(I,m,Oe,D)}else this._transitionEngine.trigger(_,m,E,D)}listen(_,m,E,D,I){if("@"==E.charAt(0)){const[Oe,Ct]=N(E);return this._timelineEngine.listen(Oe,m,Ct,I)}return this._transitionEngine.listen(_,m,E,D,I)}flush(_=-1){this._transitionEngine.flush(_)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(_){this._transitionEngine.afterFlushAnimationsDone(_)}}let He=(()=>{class b{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(m,E,D){this._element=m,this._startStyles=E,this._endStyles=D;let I=b.initialStylesByElement.get(m);I||b.initialStylesByElement.set(m,I=new Map),this._initialStyles=I}start(){this._state<1&&(this._startStyles&&Lt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Lt(this._element,this._initialStyles),this._endStyles&&(Lt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(b.initialStylesByElement.delete(this._element),this._startStyles&&(Ht(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ht(this._element,this._endStyles),this._endStyles=null),Lt(this._element,this._initialStyles),this._state=3)}}return b})();function q(b){let _=null;return b.forEach((m,E)=>{(function mt(b){return"display"===b||"position"===b})(E)&&(_=_||new Map,_.set(E,m))}),_}class ln{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(_,m,E,D){this.element=_,this.keyframes=m,this.options=E,this._specialStyles=D,this._duration=E.duration,this._delay=E.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const _=this.keyframes,m=this._triggerWebAnimation(this.element,_,this.options);if(!m)return this._onFinish(),null;this.domPlayer=m,this._finalKeyframe=_.length?_[_.length-1]:new Map;const E=()=>this._onFinish();return m.addEventListener("finish",E),this.onDestroy(()=>{m.removeEventListener("finish",E)}),m}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(_){const m=[];return _.forEach(E=>{m.push(Object.fromEntries(E))}),m}_triggerWebAnimation(_,m,E){const D=this._convertKeyframesToObject(m);try{return _.animate(D,E)}catch{return null}}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}play(){const _=this._buildPlayer();_&&(this.hasStarted()||(this._onStartFns.forEach(m=>m()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),_.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}setPosition(_){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=_*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const _=new Map;this.hasStarted()&&this._finalKeyframe.forEach((E,D)=>{"offset"!==D&&_.set(D,this._finished?E:ci(this.element,D))}),this.currentSnapshot=_}triggerCallback(_){const m="start"===_?this._onStartFns:this._onDoneFns;m.forEach(E=>E()),m.length=0}}class Oi{validateStyleProperty(_){return!0}validateAnimatableStyleProperty(_){return!0}containsElement(_,m){return Ge(_,m)}getParentElement(_){return Me(_)}query(_,m,E){return Ot(_,m,E)}computeStyle(_,m,E){return ci(_,m)}animate(_,m,E,D,I,Oe=[]){const Bt={duration:E,delay:D,fill:0==D?"both":"forwards"};I&&(Bt.easing=I);const yn=new Map,Yn=Oe.filter(Zi=>Zi instanceof ln);(function Un(b,_){return 0===b||0===_})(E,D)&&Yn.forEach(Zi=>{Zi.currentSnapshot.forEach((Mi,Ai)=>yn.set(Ai,Mi))});let jn=function we(b){return b.length?b[0]instanceof Map?b:b.map(_=>new Map(Object.entries(_))):[]}(m).map(Zi=>new Map(Zi));jn=function zn(b,_,m){if(m.size&&_.length){let E=_[0],D=[];if(m.forEach((I,Oe)=>{E.has(Oe)||D.push(Oe),E.set(Oe,I)}),D.length)for(let I=1;I<_.length;I++){let Oe=_[I];D.forEach(Ct=>Oe.set(Ct,ci(b,Ct)))}}return _}(_,jn,yn);const Fi=function Ne(b,_){let m=null,E=null;return Array.isArray(_)&&_.length?(m=q(_[0]),_.length>1&&(E=q(_[_.length-1]))):_ instanceof Map&&(m=q(_)),m||E?new He(b,m,E):null}(_,jn);return new ln(_,jn,Bt,Fi)}}const On="@.disabled";class $e{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(_,m,E,D){this.namespaceId=_,this.delegate=m,this.engine=E,this._onDestroy=D}get data(){return this.delegate.data}destroyNode(_){this.delegate.destroyNode?.(_)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(_,m){return this.delegate.createElement(_,m)}createComment(_){return this.delegate.createComment(_)}createText(_){return this.delegate.createText(_)}appendChild(_,m){this.delegate.appendChild(_,m),this.engine.onInsert(this.namespaceId,m,_,!1)}insertBefore(_,m,E,D=!0){this.delegate.insertBefore(_,m,E),this.engine.onInsert(this.namespaceId,m,_,D)}removeChild(_,m,E,D){D?this.delegate.removeChild(_,m,E,D):this.parentNode(m)&&this.engine.onRemove(this.namespaceId,m,this.delegate)}selectRootElement(_,m){return this.delegate.selectRootElement(_,m)}parentNode(_){return this.delegate.parentNode(_)}nextSibling(_){return this.delegate.nextSibling(_)}setAttribute(_,m,E,D){this.delegate.setAttribute(_,m,E,D)}removeAttribute(_,m,E){this.delegate.removeAttribute(_,m,E)}addClass(_,m){this.delegate.addClass(_,m)}removeClass(_,m){this.delegate.removeClass(_,m)}setStyle(_,m,E,D){this.delegate.setStyle(_,m,E,D)}removeStyle(_,m,E){this.delegate.removeStyle(_,m,E)}setProperty(_,m,E){"@"==m.charAt(0)&&m==On?this.disableAnimations(_,!!E):this.delegate.setProperty(_,m,E)}setValue(_,m){this.delegate.setValue(_,m)}listen(_,m,E,D){return this.delegate.listen(_,m,E,D)}disableAnimations(_,m){this.engine.disableAnimations(_,m)}}class mn extends $e{factory;constructor(_,m,E,D,I){super(m,E,D,I),this.factory=_,this.namespaceId=m}setProperty(_,m,E){"@"==m.charAt(0)?"."==m.charAt(1)&&m==On?this.disableAnimations(_,E=void 0===E||!!E):this.engine.process(this.namespaceId,_,m.slice(1),E):this.delegate.setProperty(_,m,E)}listen(_,m,E,D){if("@"==m.charAt(0)){const I=function Ln(b){switch(b){case"body":return document.body;case"document":return document;case"window":return window;default:return b}}(_);let Oe=m.slice(1),Ct="";return"@"!=Oe.charAt(0)&&([Oe,Ct]=function Ei(b){const _=b.indexOf(".");return[b.substring(0,_),b.slice(_+1)]}(Oe)),this.engine.listen(this.namespaceId,I,Oe,Ct,Bt=>{this.factory.scheduleListenerCallback(Bt._data||-1,E,Bt)})}return this.delegate.listen(_,m,E,D)}}class xa{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(_,m,E){this.delegate=_,this.engine=m,this._zone=E,m.onRemovalComplete=(D,I)=>{I?.removeChild(null,D)}}createRenderer(_,m){const D=this.delegate.createRenderer(_,m);if(!_||!m?.data?.animation){const yn=this._rendererCache;let Yn=yn.get(D);return Yn||(Yn=new $e("",D,this.engine,()=>yn.delete(D)),yn.set(D,Yn)),Yn}const I=m.id,Oe=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Oe,_);const Ct=yn=>{Array.isArray(yn)?yn.forEach(Ct):this.engine.registerTrigger(I,Oe,_,yn.name,yn)};return m.data.animation.forEach(Ct),new mn(this,Oe,D,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(_,m,E){if(_>=0&&_m(E));const D=this._animationCallbacksBuffer;0==D.length&&queueMicrotask(()=>{this._zone.run(()=>{D.forEach(I=>{const[Oe,Ct]=I;Oe(Ct)}),this._animationCallbacksBuffer=[]})}),D.push([m,E])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(_){this.engine.flush(),this.delegate.componentReplaced?.(_)}}const Ss=[{provide:ra,useFactory:function el(){return new qt}},{provide:Sr,useClass:(()=>{class b extends Sr{constructor(m,E,D){super(m,E,D)}ngOnDestroy(){this.flush()}static \u0275fac=function(E){return new(E||b)(v.KVO(v.qQL),v.KVO(ia),v.KVO(ra))};static \u0275prov=v.jDH({token:b,factory:b.\u0275fac})}return b})()},{provide:e._9s,useFactory:function Ml(b,_,m){return new xa(b,_,m)},deps:[f.mE,Sr,e.SKi]}],tr=[{provide:ia,useClass:Bn},{provide:e.bc$,useValue:"NoopAnimations"},...Ss],Eo=[{provide:ia,useFactory:()=>new Oi},{provide:e.bc$,useFactory:()=>"BrowserAnimations"},...Ss];let Mo=(()=>{class b{static withConfig(m){return{ngModule:b,providers:m.disableAnimations?tr:Eo}}static \u0275fac=function(E){return new(E||b)};static \u0275mod=e.$C({type:b});static \u0275inj=v.G2t({providers:Eo,imports:[he]})}return b})();var ds=l(9327),nr=l(9330),mi=l(9640),Uo=l(1747),Go=l(983),gl=l(1985),Tr=l(7673),jo=l(7786),mo=l(7242),Tl=l(2771),Vl=l(7647),za=l(5964),us=l(6354),Dl=l(274),eo=l(3236),So=l(8211),fo=l(9974),To=l(8750),Ho=l(1853),_l=l(4360),to=l(5225);const wl=(0,Ho.L)(b=>function(m=null){b(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=m});function Al(b){throw new wl(b)}var io=l(152),Ys=l(9437),Dr=l(6697),li=l(6977),Wr=l(5558),ao=l(5245),Pr=l(941),so=l(3993),tl=l(1943),Ul=l(9079);const Do="PERFORM_ACTION",ir="ROLLBACK",nl="TOGGLE_ACTION",de="JUMP_TO_STATE",Q="JUMP_TO_ACTION",me="IMPORT_STATE",et="LOCK_CHANGES",Mt="PAUSE_RECORDING";class Kt{constructor(_,m){if(this.action=_,this.timestamp=m,this.type=Do,typeof _.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Tn{constructor(){this.type="REFRESH"}}class ai{constructor(_){this.timestamp=_,this.type="RESET"}}class Gi{constructor(_){this.timestamp=_,this.type=ir}}class La{constructor(_){this.timestamp=_,this.type="COMMIT"}}class as{constructor(){this.type="SWEEP"}}class Ns{constructor(_){this.id=_,this.type=nl}}class ar{constructor(_){this.index=_,this.type=de}}class ro{constructor(_){this.actionId=_,this.type=Q}}class oo{constructor(_){this.nextLiftedState=_,this.type=me}}class Il{constructor(_){this.status=_,this.type=et}}class mc{constructor(_){this.status=_,this.type=Mt}}const kl=new v.nKC("@ngrx/store-devtools Options"),Xc=new v.nKC("@ngrx/store-devtools Initial Config");function po(){return null}function pc(b){const _={maxAge:!1,monitor:po,actionSanitizer:void 0,stateSanitizer:void 0,name:"NgRx Store DevTools",serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},m="function"==typeof b?b():b,D=m.features||!!m.logOnly&&{pause:!0,export:!0,test:!0}||_.features;!0===D.import&&(D.import="custom");const I=Object.assign({},_,{features:D},m);if(I.maxAge&&I.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${I.maxAge}`);return I}function Fr(b,_){return b.filter(m=>_.indexOf(m)<0)}function wo(b){const{computedStates:_,currentStateIndex:m}=b;if(m>=_.length){const{state:D}=_[_.length-1];return D}const{state:E}=_[m];return E}function Ao(b){return new Kt(b,+Date.now())}function Lc(b,_){return Object.keys(_).reduce((m,E)=>{const D=Number(E);return m[D]=vl(b,_[D],D),m},{})}function vl(b,_,m){return{..._,action:b(_.action,m)}}function al(b,_){return _.map((m,E)=>({state:Lo(b,m.state,E),error:m.error}))}function Lo(b,_,m){return b(_,m)}function Ol(b){return b.predicate||b.actionsSafelist||b.actionsBlocklist}function jl(b,_,m,E,D){const I=m&&!m(b,_.action),Oe=E&&!_.action.type.match(E.map(Bt=>Hl(Bt)).join("|")),Ct=D&&_.action.type.match(D.map(Bt=>Hl(Bt)).join("|"));return I||Oe||Ct}function Hl(b){return b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rl(b){return{ngZone:b?(0,v.WQX)(e.SKi):null,connectInZone:b}}let Io=(()=>{var b;class _ extends mi.SS{static#e=b=()=>(this.\u0275fac=(()=>{let E;return function(I){return(E||(E=e.xGo(_)))(I||_)}})(),this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac}))}return b(),_})();const Wl=new v.nKC("@ngrx/store-devtools Redux Devtools Extension");let sr=(()=>{var b;class _{constructor(E,D,I){this.config=D,this.dispatcher=I,this.zoneConfig=Rl(this.config.connectInZone),this.devtoolsExtension=E,this.createActionStreams()}notify(E,D){if(this.devtoolsExtension)if(E.type===Do){if(D.isLocked||D.isPaused)return;const I=wo(D);if(Ol(this.config)&&jl(I,E,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const Oe=this.config.stateSanitizer?Lo(this.config.stateSanitizer,I,D.currentStateIndex):I,Ct=this.config.actionSanitizer?vl(this.config.actionSanitizer,E,D.nextActionId):E;this.sendToReduxDevtools(()=>this.extensionConnection.send(Ct,Oe))}else{const I={...D,stagedActionIds:D.stagedActionIds,actionsById:this.config.actionSanitizer?Lc(this.config.actionSanitizer,D.actionsById):D.actionsById,computedStates:this.config.stateSanitizer?al(this.config.stateSanitizer,D.computedStates):D.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,I,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new gl.c(E=>{const D=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=D,D.init(),D.subscribe(I=>E.next(I)),D.unsubscribe}):Go.w}createActionStreams(){const E=this.createChangesObservable().pipe((0,Vl.u)()),D=E.pipe((0,za.p)(Yn=>"START"===Yn.type)),I=E.pipe((0,za.p)(Yn=>"STOP"===Yn.type)),Oe=E.pipe((0,za.p)(Yn=>"DISPATCH"===Yn.type),(0,us.T)(Yn=>this.unwrapAction(Yn.payload)),(0,Dl.H)(Yn=>Yn.type===me?this.dispatcher.pipe((0,za.p)(jn=>jn.type===mi.q6),function no(b,_){const{first:m,each:E,with:D=Al,scheduler:I=_??eo.E,meta:Oe=null}=(0,So.v)(b)?{first:b}:"number"==typeof b?{each:b}:b;if(null==m&&null==E)throw new TypeError("No timeout provided.");return(0,fo.N)((Ct,Bt)=>{let yn,Yn,jn=null,Fi=0;const Zi=Mi=>{Yn=(0,to.N)(Bt,I,()=>{try{yn.unsubscribe(),(0,To.Tg)(D({meta:Oe,lastValue:jn,seen:Fi})).subscribe(Bt)}catch(Ai){Bt.error(Ai)}},Mi)};yn=Ct.subscribe((0,_l._)(Bt,Mi=>{Yn?.unsubscribe(),Fi++,Bt.next(jn=Mi),E>0&&Zi(E)},void 0,void 0,()=>{Yn?.closed||Yn?.unsubscribe(),jn=null})),!Fi&&Zi(null!=m?"number"==typeof m?m:+m-I.now():E)})}(1e3),(0,io.B)(1e3),(0,us.T)(()=>Yn),(0,Ys.W)(()=>(0,Tr.of)(Yn)),(0,Dr.s)(1)):(0,Tr.of)(Yn))),Bt=E.pipe((0,za.p)(Yn=>"ACTION"===Yn.type),(0,us.T)(Yn=>this.unwrapAction(Yn.payload))).pipe((0,li.Q)(I)),yn=Oe.pipe((0,li.Q)(I));this.start$=D.pipe((0,li.Q)(I)),this.actions$=this.start$.pipe((0,Wr.n)(()=>Bt)),this.liftedActions$=this.start$.pipe((0,Wr.n)(()=>yn))}unwrapAction(E){return"string"==typeof E?(0,eval)(`(${E})`):E}getExtensionConfig(E){const D={name:E.name,features:E.features,serialize:E.serialize,autoPause:E.autoPause??!1,trace:E.trace??!1,traceLimit:E.traceLimit??75};return!1!==E.maxAge&&(D.maxAge=E.maxAge),D}sendToReduxDevtools(E){try{E()}catch(D){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",D)}}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(v.KVO(Wl),v.KVO(kl),v.KVO(Io))},this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac}))}return b(),_})();const Ts={type:mi.Zz},je={type:"@ngrx/store-devtools/recompute"};function ct(b,_,m,E,D){if(E)return{state:m,error:"Interrupted by an error up the chain"};let Oe,I=m;try{I=b(m,_)}catch(Ct){Oe=Ct.toString(),D.handleError(Ct)}return{state:I,error:Oe}}function Qt(b,_,m,E,D,I,Oe,Ct,Bt){if(_>=b.length&&b.length===I.length)return b;const yn=b.slice(0,_),Yn=I.length-(Bt?1:0);for(let jn=_;jn-1?Mi:ct(m,Zi,Ai,Sa,Ct);yn.push(fs)}return Bt&&yn.push(b[b.length-1]),yn}let Ci=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt,yn,Yn){const jn=function Pn(b,_){return{monitorState:_(void 0,{}),nextActionId:1,actionsById:{0:Ao(Ts)},stagedActionIds:[0],skippedActionIds:[],committedState:b,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}(yn,Yn.monitor),Fi=function $n(b,_,m,E,D={}){return I=>(Oe,Ct)=>{let{monitorState:Bt,actionsById:yn,nextActionId:Yn,stagedActionIds:jn,skippedActionIds:Fi,committedState:Zi,currentStateIndex:Mi,computedStates:Ai,isLocked:Sa,isPaused:Ia}=Oe||_;function fs(ws){let Fa=ws,Vs=jn.slice(1,Fa+1);for(let ps=0;ps-1===Vs.indexOf(ps)),jn=[0,...jn.slice(Fa+1)],Zi=Ai[Fa].state,Ai=Ai.slice(Fa),Mi=Mi>Fa?Mi-Fa:0}function $s(){yn={0:Ao(Ts)},Yn=1,jn=[0],Fi=[],Zi=Ai[Mi].state,Mi=0,Ai=[]}Oe||(yn=Object.create(yn));let Ea=0;switch(Ct.type){case et:Sa=Ct.status,Ea=1/0;break;case Mt:Ia=Ct.status,Ia?(jn=[...jn,Yn],yn[Yn]=new Kt({type:"@ngrx/devtools/pause"},+Date.now()),Yn++,Ea=jn.length-1,Ai=Ai.concat(Ai[Ai.length-1]),Mi===jn.length-2&&Mi++,Ea=1/0):$s();break;case"RESET":yn={0:Ao(Ts)},Yn=1,jn=[0],Fi=[],Zi=b,Mi=0,Ai=[];break;case"COMMIT":$s();break;case ir:yn={0:Ao(Ts)},Yn=1,jn=[0],Fi=[],Mi=0,Ai=[];break;case nl:{const{id:ws}=Ct;Fi=-1===Fi.indexOf(ws)?[ws,...Fi]:Fi.filter(Vs=>Vs!==ws),Ea=jn.indexOf(ws);break}case"SET_ACTIONS_ACTIVE":{const{start:ws,end:Fa,active:Vs}=Ct,ps=[];for(let xl=ws;xlD.maxAge&&(Ai=Qt(Ai,Ea,I,Zi,yn,jn,Fi,m,Ia),fs(jn.length-D.maxAge),Ea=1/0);break;case mi.q6:if(Ai.filter(Fa=>Fa.error).length>0)Ea=0,D.maxAge&&jn.length>D.maxAge&&(Ai=Qt(Ai,Ea,I,Zi,yn,jn,Fi,m,Ia),fs(jn.length-D.maxAge),Ea=1/0);else{if(!Ia&&!Sa){Mi===jn.length-1&&Mi++;const Fa=Yn++;yn[Fa]=new Kt(Ct,+Date.now()),jn=[...jn,Fa],Ea=jn.length-1,Ai=Qt(Ai,Ea,I,Zi,yn,jn,Fi,m,Ia)}Ai=Ai.map(Fa=>({...Fa,state:I(Fa.state,je)})),Mi=jn.length-1,D.maxAge&&jn.length>D.maxAge&&fs(jn.length-D.maxAge),Ea=1/0}break;default:Ea=1/0}return Ai=Qt(Ai,Ea,I,Zi,yn,jn,Fi,m,Ia),Bt=E(Bt,Ct),{monitorState:Bt,actionsById:yn,nextActionId:Yn,stagedActionIds:jn,skippedActionIds:Fi,committedState:Zi,currentStateIndex:Mi,computedStates:Ai,isLocked:Sa,isPaused:Ia}}}(yn,jn,Bt,Yn.monitor,Yn),Zi=(0,jo.h)((0,jo.h)(D.asObservable().pipe((0,ao.i)(1)),Oe.actions$).pipe((0,us.T)(Ao)),E,Oe.liftedActions$).pipe((0,Pr.Q)(mo.T)),Mi=I.pipe((0,us.T)(Fi)),Ai=Rl(Yn.connectInZone),Sa=new Tl.m(1);this.liftedStateSubscription=Zi.pipe((0,so.E)(Mi),wi(Ai),(0,tl.S)(({state:$s},[Ea,ws])=>{let Fa=ws($s,Ea);return Ea.type!==Do&&Ol(Yn)&&(Fa=function Gl(b,_,m,E){const D=[],I={},Oe=[];return b.stagedActionIds.forEach((Ct,Bt)=>{const yn=b.actionsById[Ct];yn&&(Bt&&jl(b.computedStates[Bt],yn,_,m,E)||(I[Ct]=yn,D.push(Ct),Oe.push(b.computedStates[Bt])))}),{...b,stagedActionIds:D,actionsById:I,computedStates:Oe}}(Fa,Yn.predicate,Yn.actionsSafelist,Yn.actionsBlocklist)),Oe.notify(Ea,Fa),{state:Fa,action:Ea}},{state:jn,action:null})).subscribe(({state:$s,action:Ea})=>{Sa.next($s),Ea.type===Do&&Ct.next(Ea.action)}),this.extensionStartSubscription=Oe.start$.pipe(wi(Ai)).subscribe(()=>{this.refresh()});const Ia=Sa.asObservable(),fs=Ia.pipe((0,us.T)(wo));Object.defineProperty(fs,"state",{value:(0,Ul.ot)(fs,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=E,this.liftedState=Ia,this.state=fs}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(E){this.dispatcher.next(E)}next(E){this.dispatcher.next(E)}error(E){}complete(){}performAction(E){this.dispatch(new Kt(E,+Date.now()))}refresh(){this.dispatch(new Tn)}reset(){this.dispatch(new ai(+Date.now()))}rollback(){this.dispatch(new Gi(+Date.now()))}commit(){this.dispatch(new La(+Date.now()))}sweep(){this.dispatch(new as)}toggleAction(E){this.dispatch(new Ns(E))}jumpToAction(E){this.dispatch(new ro(E))}jumpToState(E){this.dispatch(new ar(E))}importState(E){this.dispatch(new oo(E))}lockChanges(E){this.dispatch(new Il(E))}pauseRecording(E){this.dispatch(new mc(E))}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(v.KVO(Io),v.KVO(mi.SS),v.KVO(mi.QU),v.KVO(sr),v.KVO(mi.sA),v.KVO(v.zcH),v.KVO(mi.N_),v.KVO(kl))},this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac}))}return b(),_})();function wi({ngZone:b,connectInZone:_}){return m=>_?new gl.c(E=>m.subscribe({next:D=>b.run(()=>E.next(D)),error:D=>b.run(()=>E.error(D)),complete:()=>b.run(()=>E.complete())})):m}const $i=new v.nKC("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function sa(b,_){return!!b||_.monitor!==po}function va(){const b="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[b]<"u"?window[b]:null}function oa(b){return b.state}function hs(b={}){return(0,v.EmA)([sr,Io,Ci,{provide:Xc,useValue:b},{provide:$i,deps:[Wl,kl],useFactory:sa},{provide:Wl,useFactory:va},{provide:kl,deps:[Xc],useFactory:pc},{provide:mi.h1,deps:[Ci],useFactory:oa},{provide:mi.Bh,useExisting:Io}])}let Ls=(()=>{var b;class _{static instrument(E={}){return{ngModule:_,providers:[hs(E)]}}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275mod=e.$C({type:_}),this.\u0275inj=v.G2t({}))}return b(),_})();var gi=l(1413),Nr=l(3726),Br=l(2806),Xo=l(1807);function Oo(b=0,_=eo.E){return b<0&&(b=0),(0,Xo.O)(b,b,_)}var Pl=l(8359),yl=l(7908),Xr=l(9326),Xl=l(8141),Kc=l(980),_1=l(3294);class Yc{}function nc(b){return(0,v.EmA)([{provide:Yc,useValue:b}])}let v1=(()=>{class b{constructor(m,E){this._ngZone=E,this.timerStart$=new gi.B,this.idleDetected$=new gi.B,this.timeout$=new gi.B,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,m&&this.setConfig(m)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,jo.h)((0,Nr.R)(window,"mousemove"),(0,Nr.R)(window,"resize"),(0,Nr.R)(document,"keydown"))),this.idle$=(0,Br.H)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function tc(b,..._){var m,E;const D=null!==(m=(0,Xr.lI)(_))&&void 0!==m?m:eo.E,I=null!==(E=_[0])&&void 0!==E?E:null,Oe=_[1]||1/0;return(0,fo.N)((Ct,Bt)=>{let yn=[],Yn=!1;const jn=Mi=>{const{buffer:Ai,subs:Sa}=Mi;Sa.unsubscribe(),(0,yl.o)(yn,Mi),Bt.next(Ai),Yn&&Fi()},Fi=()=>{if(yn){const Mi=new Pl.yU;Bt.add(Mi);const Sa={buffer:[],subs:Mi};yn.push(Sa),(0,to.N)(Mi,D,()=>jn(Sa),b)}};null!==I&&I>=0?(0,to.N)(Bt,D,Fi,I,!0):Yn=!0,Fi();const Zi=(0,_l._)(Bt,Mi=>{const Ai=yn.slice();for(const Sa of Ai){const{buffer:Ia}=Sa;Ia.push(Mi),Oe<=Ia.length&&jn(Sa)}},()=>{for(;yn?.length;)Bt.next(yn.shift().buffer);Zi?.unsubscribe(),Bt.complete(),Bt.unsubscribe()},void 0,()=>yn=null);Ct.subscribe(Zi)})}(this.idleSensitivityMillisec),(0,za.p)(m=>!m.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Xl.M)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,Wr.n)(()=>this._ngZone.runOutsideAngular(()=>Oo(1e3).pipe((0,li.Q)((0,jo.h)(this.activityEvents$,(0,Xo.O)(this.idleMillisec).pipe((0,Xl.M)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,Kc.j)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,_1.F)(),(0,Wr.n)(m=>m?this.timer$:(0,Tr.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,za.p)(m=>!!m),(0,Xl.M)(()=>this.isTimeout=!0),(0,us.T)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(m){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(m):console.error("Call stopWatching() before set config values")}setConfig(m){m.idle&&(this.idleMillisec=1e3*m.idle),m.ping&&(this.pingMillisec=1e3*m.ping),m.idleSensitivity&&(this.idleSensitivityMillisec=1e3*m.idleSensitivity),m.timeout&&(this.timeout=m.timeout)}setCustomActivityEvents(m){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=m:console.error("Call stopWatching() before set custom activity events")}setupTimer(m){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,Tr.of)(()=>new Date).pipe((0,us.T)(E=>E()),(0,Wr.n)(E=>Oo(1e3).pipe((0,us.T)(()=>Math.round(((new Date).valueOf()-E.valueOf())/1e3)),(0,Xl.M)(D=>{D>=m&&this.timeout$.next(!0)}))))})}setupPing(m){this.ping$=Oo(m).pipe((0,za.p)(()=>!this.isTimeout))}}return b.\u0275fac=function(m){return new(m||b)(v.KVO(Yc,8),v.KVO(e.SKi))},b.\u0275prov=v.jDH({token:b,factory:b.\u0275fac,providedIn:"root"}),b})();var lo=l(8132),Ha=l(3694),Ti=l(5383),Oa=l(9647),os=l(60),K=l(5596),Ie=l(2920),Ut=l(6850);const Gn=()=>({initial:!1});function ui(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.activeLink=D.links[1].link)}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[1].link))("active",m.activeLink===m.links[1].link)("state",e.lJ4(5,Gn)),e.R7$(),e.JRh(m.links[1].name)}}function ki(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.activeLink=D.links[2].link)}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[2].link))("active",m.activeLink===m.links[2].link),e.R7$(),e.JRh(m.links[2].name)}}let Wa=(()=>{var b;class _{constructor(E,D){this.store=E,this.router=D,this.faUserCog=Ti.McB,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new gi.B,new gi.B,new gi.B]}ngOnInit(){const E=this.links.find(D=>this.router.url.includes(D.link));this.activeLink=E?E.link:this.links[0].link,this.router.events.pipe((0,li.Q)(this.unSubs[0]),(0,za.p)(D=>D instanceof Ha.gx)).subscribe({next:D=>{const I=this.links.find(Oe=>D.urlAfterRedirects.includes(Oe.link));this.activeLink=I?I.link:this.links[0].link}}),this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[1])).subscribe(D=>{this.appConfig=D}),this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[2])).subscribe(D=>{this.showBitcoind=!1,this.selNode=D,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(Ha.Ix))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-settings"]],standalone:!1,decls:16,vars:8,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["role","tab","tabindex","3","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["role","tab","tabindex","3","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Settings"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.activeLink=I.links[0].link)}),e.EFF(9),e.k0s(),e.DNE(10,ui,2,6,"div",8)(11,ki,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()}if(2&D){const Oe=e.sdS(13);e.R7$(),e.Y8G("icon",I.faUserCog),e.R7$(6),e.Y8G("tabPanel",Oe),e.R7$(),e.Y8G("routerLink",e.mNQ(I.links[0].link))("active",I.activeLink===I.links[0].link),e.R7$(),e.JRh(I.links[0].name),e.R7$(),e.Y8G("ngIf",!+I.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("ngIf",I.showBitcoind)}},dependencies:[w.bT,os.aY,K.RN,K.m2,Ie.DJ,Ie.sA,Ie.UI,Ut.Bu,Ut.hQ,Ut.Ql,Ha.n3,lo.Wk],encapsulation:2}))}return b(),_})();var Bi=l(1771),Aa=l(8570),hi=l(9417),es=l(8834),Ma=l(9588),sl=l(6183),ac=l(3029),go=l(497),Kl=l(9587);function t2(b,_){if(1&b&&(e.j41(0,"mat-option",15),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m.index),e.R7$(),e.Lme(" ",m.lnNode," (",m.lnImplementation,") ")}}function S4(b,_){if(1&b){const m=e.RV6();e.j41(0,"form",3,0)(2,"div",4),e.nrm(3,"fa-icon",5),e.j41(4,"span",6),e.EFF(5,"Default Node"),e.k0s()(),e.j41(6,"div",7)(7,"div",8)(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10,"Default Node"),e.k0s(),e.j41(11,"mat-select",10),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG();return e.DH7(I.appConfig.defaultNodeIndex,D)||(I.appConfig.defaultNodeIndex=D),v.Njj(D)}),e.DNE(12,t2,2,3,"mat-option",11),e.k0s()()(),e.j41(13,"div",12)(14,"div",8)(15,"button",13),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onResetSettings())}),e.EFF(16,"Reset"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onUpdateApplicationSettings())}),e.EFF(18,"Update"),e.k0s()()()()()}if(2&b){const m=e.XpG();e.R7$(3),e.Y8G("icon",m.faWindowRestore),e.R7$(8),e.R50("ngModel",m.appConfig.defaultNodeIndex),e.R7$(),e.Y8G("ngForOf",m.appConfig.nodes)}}let Qc=(()=>{var b;class _{constructor(E,D){this.logger=E,this.store=D,this.faWindowRestore=Ti.aFw,this.faPlus=Ti.QLR,this.previousDefaultNode=0,this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.appConfig=E,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(E)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateApplicationSettings(){this.appConfig.defaultNodeIndex=this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1,this.store.dispatch((0,Bi.rc)({payload:{showSnackBar:!0,message:"Default Node Updated.",config:this.appConfig}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(mi.il))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-app-settings"]],standalone:!1,decls:2,vars:1,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start start"],["autoFocus","","name","defaultNode",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary",1,"mr-1",3,"click"],["mat-flat-button","","color","primary",3,"click"],[3,"value"]],template:function(D,I){1&D&&(e.j41(0,"div",1),e.DNE(1,S4,19,3,"form",2),e.k0s()),2&D&&(e.R7$(),e.Y8G("ngIf",I.appConfig.nodes&&I.appConfig.nodes.length&&I.appConfig.nodes.length>0))},dependencies:[w.Sq,w.bT,hi.qT,hi.BC,hi.cb,hi.vS,hi.cV,os.aY,es.$z,Ma.rl,Ma.nJ,Ie.DJ,Ie.sA,Ie.UI,sl.VO,ac.wT,go.Ld,Kl.N],encapsulation:2}))}return b(),_})();var _c=l(2852),Ro=l(1585),Ko=l(7541),$c=l(5416),n2=l(467);let rl=(()=>{var b;class _{constructor(){this.base32Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"}generateSecret(E=10){const D=new Uint8Array(E);return window.crypto.getRandomValues(D),this.base32Encode(D)}keyuri(E,D,I){return"otpauth://totp/"+encodeURIComponent(D)+":"+encodeURIComponent(E)+"?secret="+I+"&period=30&digits=6&algorithm=SHA1&issuer="+encodeURIComponent(D)}check(E,D,I){return/^\d+$/.test(E)?this.generate(D,I).then(Oe=>Oe===E).catch(()=>!1):Promise.resolve(!1)}generate(E,D){var I=this;return(0,n2.A)(function*(){const Oe=Math.floor((D??Date.now())/30/1e3),Ct=new Uint8Array(8);let Bt=Oe;for(let Mi=7;Mi>=0;Mi--)Ct[Mi]=255&Bt,Bt=Math.floor(Bt/256);const yn=I.createHmacKey(I.base32Decode(E)),Yn=yield window.crypto.subtle.importKey("raw",yn,{name:"HMAC",hash:"SHA-1"},!1,["sign"]),jn=new Uint8Array(yield window.crypto.subtle.sign("HMAC",Yn,Ct)),Fi=15&jn[jn.length-1];return String(((127&jn[Fi])<<24|(255&jn[Fi+1])<<16|(255&jn[Fi+2])<<8|255&jn[Fi+3])%10**6).padStart(6,"0")})()}createHmacKey(E){if(2*E.length>=20)return E;const D=new Uint8Array(20);for(let I=0;I=5;)Oe+=this.base32Chars[I>>>D-5&31],D-=5;return D>0&&(Oe+=this.base32Chars[I<<5-D&31]),Oe}base32Decode(E){const D=E.toUpperCase().replace(/[=]+$/,"");let I=0,Oe=0;const Ct=[];for(const Bt of D){const yn=this.base32Chars.indexOf(Bt);if(yn<0)throw new Error("Invalid base32 character in secret.");Oe=Oe<<5|yn,I+=5,I>=8&&(Ct.push(Oe>>>I-8&255),I-=8)}return Uint8Array.from(Ct)}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}))}return b(),_})();var br=l(3746),Yo=l(6013),Yl=l(8288),i2=l(9157);const Fl=["stepper"];function y1(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG();e.JRh(m.passwordFormLabel)}}function ld(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function a2(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(2);e.JRh(m.secretFormLabel)}}function A0(b,_){if(1&b&&e.nrm(0,"qr-code",33),2&b){const m=e.XpG(2);e.Y8G("value",m.otpauth)("size",180)}}function Ic(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Secret Code is required."),e.k0s())}function T4(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-step",10)(1,"form",22),e.DNE(2,a2,1,1,"ng-template",23),e.j41(3,"div",24),e.DNE(4,A0,1,2,"qr-code",25),e.k0s(),e.j41(5,"div",26),e.nrm(6,"fa-icon",27),e.j41(7,"span"),e.EFF(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.k0s()(),e.j41(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Secret Code"),e.k0s(),e.nrm(13,"input",29),e.j41(14,"fa-icon",30),e.bIt("copied",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onCopySecret(D))}),e.k0s(),e.DNE(15,Ic,2,0,"mat-error",15),e.k0s()(),e.j41(16,"div",31)(17,"button",32),e.EFF(18,"Next"),e.k0s()()()()}if(2&b){const m=e.XpG();e.Y8G("stepControl",m.secretFormGroup)("editable",m.flgEditable),e.R7$(),e.Y8G("formGroup",m.secretFormGroup),e.R7$(3),e.Y8G("ngIf",m.otpauth),e.R7$(2),e.Y8G("icon",m.faInfoCircle),e.R7$(8),e.Y8G("icon",m.faCopy)("payload",null==m.secretFormGroup||null==m.secretFormGroup.controls||null==m.secretFormGroup.controls.secret?null:m.secretFormGroup.controls.secret.value),e.R7$(),e.Y8G("ngIf",null==m.secretFormGroup||null==m.secretFormGroup.controls||null==m.secretFormGroup.controls.secret||null==m.secretFormGroup.controls.secret.errors?null:m.secretFormGroup.controls.secret.errors.required)}}function L0(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(2);e.JRh(m.tokenFormLabel)}}function I0(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}function Te(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Token is invalid."),e.k0s())}function dt(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",8)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e.EFF(4,"Token"),e.k0s(),e.nrm(5,"input",37),e.DNE(6,I0,2,0,"mat-error",15)(7,Te,2,0,"mat-error",15),e.k0s()(),e.j41(8,"div",31)(9,"button",38),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onVerifyToken())}),e.EFF(10),e.k0s()()()}if(2&b){const m=e.XpG(2);e.R7$(6),e.Y8G("ngIf",null==m.tokenFormGroup||null==m.tokenFormGroup.controls||null==m.tokenFormGroup.controls.token||null==m.tokenFormGroup.controls.token.errors?null:m.tokenFormGroup.controls.token.errors.required),e.R7$(),e.Y8G("ngIf",null==m.tokenFormGroup||null==m.tokenFormGroup.controls||null==m.tokenFormGroup.controls.token||null==m.tokenFormGroup.controls.token.errors?null:m.tokenFormGroup.controls.token.errors.notValid),e.R7$(3),e.JRh(null!=m.tokenFormGroup&&null!=m.tokenFormGroup.controls&&null!=m.tokenFormGroup.controls.token&&null!=m.tokenFormGroup.controls.token.errors&&m.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function st(b,_){1&b&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Success! You are all set."),e.k0s()())}function ft(b,_){if(1&b&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,L0,1,1,"ng-template",12)(3,dt,11,3,"div",36)(4,st,3,0,"div",15),e.k0s()()),2&b){const m=e.XpG();e.Y8G("stepControl",m.tokenFormGroup),e.R7$(),e.Y8G("formGroup",m.tokenFormGroup),e.R7$(2),e.Y8G("ngIf",!m.flgValidated||!m.isTokenValid),e.R7$(),e.Y8G("ngIf",m.flgValidated&&m.isTokenValid)}}function $t(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(2);e.JRh(m.disableFormLabel)}}function Cn(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",8)(1,"div",39),e.nrm(2,"fa-icon",27),e.j41(3,"span"),e.EFF(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.k0s()(),e.j41(5,"div",31)(6,"button",38),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onVerifyToken())}),e.EFF(7,"Disable"),e.k0s()()()}if(2&b){const m=e.XpG(2);e.R7$(2),e.Y8G("icon",m.faExclamationTriangle)}}function Dn(b,_){1&b&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Two factor authentication removed from RTL."),e.k0s()())}function Zn(b,_){if(1&b&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,$t,1,1,"ng-template",12)(3,Cn,8,1,"div",36)(4,Dn,3,0,"div",15),e.k0s()()),2&b){const m=e.XpG();e.Y8G("stepControl",m.disableFormGroup),e.R7$(),e.Y8G("formGroup",m.disableFormGroup),e.R7$(2),e.Y8G("ngIf",!m.flgValidated||!m.isTokenValid),e.R7$(),e.Y8G("ngIf",m.flgValidated&&m.isTokenValid)}}let si=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt,yn){this.dialogRef=E,this.data=D,this.store=I,this.formBuilder=Oe,this.rtlEffects=Ct,this.snackBar=Bt,this.totpService=yn,this.faExclamationTriangle=Ti.zpE,this.faCopy=Ti.jPR,this.faInfoCircle=Ti.iW_,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[hi.k0.required]],password:["",[hi.k0.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},hi.k0.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",hi.k0.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},hi.k0.required]})}generateSecret(){const E=this.totpService.generateSecret();return this.otpauth=this.totpService.keyuri("","Ride The Lightning (RTL)",E),E}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Bi.oz)({payload:_c(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Dr.s)(1)).subscribe(E=>{"ERROR"!==E?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(E){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(!this.appConfig?.enable2FA)return!this.tokenFormGroup.controls.token.value||void this.totpService.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value).then(E=>{this.isTokenValid=E,E?(this.appConfig.enable2FA=!0,this.appConfig.secret2FA=this.secretFormGroup.controls.secret.value,this.store.dispatch((0,Bi.rc)({payload:{showSnackBar:!1,message:"Two factor authentication enabled successfully.",config:this.appConfig}})),this.tokenFormGroup.controls.token.setValue(""),this.flgValidated=!0):this.tokenFormGroup.controls.token.setErrors({notValid:!0})});this.appConfig.enable2FA=!1,this.appConfig.secret2FA="",this.store.dispatch((0,Bi.rc)({payload:{showSnackBar:!1,message:"Two factor authentication disabled successfully.",config:this.appConfig}})),this.generateSecret(),this.isTokenValid=!0,this.flgValidated=!0}stepSelectionChanged(E){switch(E.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}E.selectedIndex{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ro.CP),e.rXU(Ro.Vh),e.rXU(mi.il),e.rXU(hi.ze),e.rXU(Ko.H),e.rXU($c.UG),e.rXU(rl))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-two-factor-auth"]],viewQuery:function(D,I){if(1&D&&e.GBs(Fl,5),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.stepper=Oe.first)}},standalone:!1,decls:30,vars:11,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"copied","icon","payload"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],["errorCorrectionLevel","L",3,"value","size"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Setup Two Factor Authentication"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function(Bt){return v.eBV(Oe),v.Njj(I.stepSelectionChanged(Bt))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,y1,1,1,"ng-template",12),e.j41(15,"div",1)(16,"mat-form-field",13)(17,"mat-label"),e.EFF(18,"Password"),e.k0s(),e.nrm(19,"input",14),e.DNE(20,ld,2,0,"mat-error",15),e.k0s()(),e.j41(21,"div",16)(22,"button",17),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onAuthenticate())}),e.EFF(23,"Confirm"),e.k0s()()()(),e.DNE(24,T4,19,8,"mat-step",18)(25,ft,5,4,"mat-step",19)(26,Zn,5,4,"mat-step",19),e.k0s(),e.j41(27,"div",20)(28,"button",21),e.EFF(29),e.k0s()()()()()()}2&D&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(4),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",I.passwordFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==I.passwordFormGroup||null==I.passwordFormGroup.controls||null==I.passwordFormGroup.controls.password||null==I.passwordFormGroup.controls.password.errors?null:I.passwordFormGroup.controls.password.errors.required),e.R7$(4),e.Y8G("ngIf",!I.showDisableStepper),e.R7$(),e.Y8G("ngIf",!I.showDisableStepper),e.R7$(),e.Y8G("ngIf",I.showDisableStepper),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(I.flgValidated&&I.isTokenValid?"Close":"Cancel"))},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.j4,hi.JD,os.aY,Ro.tx,es.$z,K.m2,K.MM,br.fg,Ma.rl,Ma.nJ,Ma.TL,Ma.yw,Ie.DJ,Ie.sA,Ie.UI,Yo.V5,Yo.Ti,Yo.M6,Yo.F7,Yl.Um,i2.U,Kl.N],encapsulation:2}))}return b(),_})();var _t=l(4416),ji=l(3202),Hi=l(1997);const Ja=["authForm"];function Ba(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Current password is required."),e.k0s())}function wr(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.errorMsg)}}function _s(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.errorConfirmMsg)}}function vs(b,_){if(1&b){const m=e.RV6();e.j41(0,"form",12,0)(2,"div",13),e.nrm(3,"fa-icon",6),e.j41(4,"span",7),e.EFF(5,"Password"),e.k0s()(),e.j41(6,"mat-form-field")(7,"mat-label"),e.EFF(8,"Current Password"),e.k0s(),e.j41(9,"input",14),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG();return e.DH7(I.currPassword,D)||(I.currPassword=D),v.Njj(D)}),e.k0s(),e.DNE(10,Ba,2,0,"mat-error",15),e.k0s(),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"New Password"),e.k0s(),e.j41(14,"input",16),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG();return e.DH7(I.newPassword,D)||(I.newPassword=D),v.Njj(D)}),e.k0s(),e.DNE(15,wr,2,1,"mat-error",15),e.k0s(),e.j41(16,"mat-form-field")(17,"mat-label"),e.EFF(18,"Confirm New Password"),e.k0s(),e.j41(19,"input",17),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG();return e.DH7(I.confirmPassword,D)||(I.confirmPassword=D),v.Njj(D)}),e.k0s(),e.DNE(20,_s,2,1,"mat-error",15),e.k0s(),e.j41(21,"div",18)(22,"button",19),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onResetPassword())}),e.EFF(23,"Reset"),e.k0s(),e.j41(24,"button",20),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onChangePassword())}),e.EFF(25,"Change Password"),e.k0s()()()}if(2&b){const m=e.XpG();e.R7$(3),e.Y8G("icon",m.faLock),e.R7$(6),e.R50("ngModel",m.currPassword),e.R7$(),e.Y8G("ngIf",!m.currPassword),e.R7$(4),e.R50("ngModel",m.newPassword),e.R7$(),e.Y8G("ngIf",m.matchOldAndNewPasswords()),e.R7$(4),e.R50("ngModel",m.confirmPassword),e.R7$(),e.Y8G("ngIf",m.matchNewPasswords())}}let rr=(()=>{var b;class _{constructor(E,D,I,Oe,Ct){this.logger=E,this.store=D,this.actions=I,this.router=Oe,this.sessionService=Ct,this.faInfoCircle=Ti.iW_,this.faUserLock=Ti.aAJ,this.faUserClock=Ti.ld_,this.faLock=Ti.DW4,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new gi.B,new gi.B,new gi.B]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.appConfig=E,this.logger.info(this.appConfig)}),this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.selNode=E}),this.actions.pipe((0,li.Q)(this.unSubs[2]),(0,za.p)(E=>E.type===_t.aU.RESET_PASSWORD_RES)).subscribe(E=>{if(_t.Ah.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||_t.Ah.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Bi.xw)({payload:{currPassword:_c(this.currPassword).toString(),newPassword:_c(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let E=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",E=!0):_t.Ah.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=_t.Ah?.reduce((D,I,Oe)=>Oe<_t.Ah.length-1?D+I+'" / "':D+I+'".','Password cannot be "'),E=!0):(this.form.controls.newpassword.setErrors(null),this.errorMsg="",E=!1):(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="New password is required.",E=!0)),E}matchNewPasswords(){let E=!1;return this.form&&this.form.controls&&this.form.controls.confirmpassword&&(this.confirmPassword?""!==this.newPassword&&""!==this.confirmPassword&&this.newPassword!==this.confirmPassword?(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="New and confirm passwords do not match.",E=!0):(this.form.controls.confirmpassword.setErrors(null),this.errorConfirmMsg="",E=!1):(this.form.controls.confirmpassword.setErrors({invalid:!0}),this.errorConfirmMsg="Confirm password is required.",E=!0)),E}on2FAuth(){this.store.dispatch((0,Bi.xO)({payload:{data:{appConfig:this.appConfig,component:si}}}))}onResetPassword(){this.form.resetForm()}ngOnDestroy(){this.initializeNodeData&&this.store.dispatch((0,Bi.Qi)({payload:{uiMessage:_t.MZ.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:this.selNode,isInitialSetup:!0}})),this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(mi.il),e.rXU(Uo.En),e.rXU(Ha.Ix),e.rXU(ji.Q))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-auth-settings"]],viewQuery:function(D,I){if(1&D&&e.GBs(Ja,5),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.form=Oe.first)}},standalone:!1,decls:15,vars:4,consts:[["authForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],[1,"my-2"],["fxLayout","column","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModelChange","ngModel"],["matInput","","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModelChange","ngModel"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"]],template:function(D,I){1&D&&(e.j41(0,"div",1),e.DNE(1,vs,26,7,"form",2),e.nrm(2,"mat-divider",3),e.j41(3,"div",4)(4,"div",5),e.nrm(5,"fa-icon",6),e.j41(6,"span",7),e.EFF(7,"Two Factor Authentication"),e.k0s()(),e.j41(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"span"),e.EFF(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.k0s()(),e.j41(12,"div",10)(13,"button",11),e.bIt("click",function(){return I.on2FAuth()}),e.EFF(14),e.k0s()()()()),2&D&&(e.R7$(),e.Y8G("ngIf",null==I.appConfig?null:I.appConfig.allowPasswordUpdate),e.R7$(4),e.Y8G("icon",I.faUserClock),e.R7$(4),e.Y8G("icon",I.faInfoCircle),e.R7$(5),e.JRh(I.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,os.aY,es.$z,br.fg,Ma.rl,Ma.nJ,Ma.TL,Hi.q,Ie.DJ,Ie.sA,Ie.UI,Kl.N],encapsulation:2}))}return b(),_})();var Bs=l(3902);function ol(b,_){1&b&&e.nrm(0,"mat-divider",7)}function Kr(b,_){if(1&b&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,ol,1,0,"mat-divider",6),e.k0s()),2&b){const m=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,m.configData)),e.R7$(2),e.Y8G("ngIf",""!==m.configData)}}function sc(b,_){if(1&b&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m)}}function ll(b,_){if(1&b&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m)}}function D4(b,_){1&b&&e.nrm(0,"mat-divider",15),2&b&&e.Y8G("inset",!0)}function vc(b,_){if(1&b&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,sc,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,ll,2,1,"h4",12),e.k0s(),e.DNE(5,D4,1,1,"mat-divider",13),e.k0s()),2&b){const m=_.$implicit;e.R7$(2),e.Y8G("ngIf",m.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",m.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",m.indexOf("[")<0)}}function s2(b,_){if(1&b&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,vc,6,3,"mat-list-item",9),e.k0s()()),2&b){const m=e.XpG();e.R7$(2),e.Y8G("ngForOf",m.configData)}}let Pf=(()=>{var b;class _{constructor(E,D,I){this.store=E,this.rtlEffects=D,this.router=I,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.store.dispatch((0,Bi.Dz)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{const D=E.data;this.fileFormat=E.format,this.configData=""===D||!D||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==D&&D&&"JSON"===this.fileFormat?D:"":D.split("\n")})}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(Ko.H),e.rXU(Ha.Ix))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-bitcoin-config"]],standalone:!1,decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,Kr,5,4,"div",2)(3,s2,3,1,"div",3),e.k0s()()),2&D&&(e.R7$(2),e.Y8G("ngIf",""!==I.configData&&"JSON"===I.fileFormat),e.R7$(),e.Y8G("ngIf",""!==I.configData&&("INI"===I.fileFormat||"HOCON"===I.fileFormat)))},dependencies:[w.Sq,w.bT,K.Lc,Bs.jt,Bs.YE,Hi.q,Ie.DJ,Ie.sA,Ie.UI,w.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return b(),_})();function Hh(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}let r2=(()=>{var b;class _{constructor(E,D,I){this.dialogRef=E,this.store=D,this.rtlEffects=I,this.password="",this.isAuthenticated=!1,this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Dr.s)(1)).subscribe(E=>{"ERROR"!==E?(this.isAuthenticated=!0,this.store.dispatch((0,Bi.R$)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Bi.oz)({payload:_c(this.password)}))}onClose(){this.store.dispatch((0,Bi.R$)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ro.CP),e.rXU(mi.il),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-is-authorized"]],standalone:!1,decls:18,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e.EFF(5,"Authenticate with your RTL Password"),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(){return I.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e.EFF(12,"Password"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(Ct){return e.DH7(I.password,Ct)||(I.password=Ct),Ct}),e.k0s(),e.DNE(14,Hh,2,0,"mat-error",9),e.k0s(),e.j41(15,"div",10)(16,"button",11),e.bIt("click",function(){return I.onAuthenticate()}),e.EFF(17,"Confirm"),e.k0s()()()()()()),2&D&&(e.R7$(13),e.R50("ngModel",I.password),e.R7$(),e.Y8G("ngIf",!I.password))},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,es.$z,K.m2,K.MM,br.fg,Ma.rl,Ma.nJ,Ma.TL,Ie.DJ,Ie.sA,Ie.UI,Kl.N],encapsulation:2}))}return b(),_})();const o2=()=>({initial:!1});function cd(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.activeLink=D.links[2].link)}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[2].link))("active",m.activeLink===m.links[2].link)("state",e.lJ4(5,o2)),e.R7$(),e.JRh(m.links[2].name)}}function b1(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.activeLink=D.links[3].link)}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[3].link))("active",m.activeLink===m.links[3].link),e.R7$(),e.JRh(m.links[3].name)}}function w4(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.showLnConfigClicked())}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("active",m.activeLink===m.links[4].link),e.R7$(),e.JRh(m.links[4].name)}}let k0=(()=>{var b;class _{constructor(E,D,I,Oe){this.store=E,this.router=D,this.rtlEffects=I,this.activatedRoute=Oe,this.faTools=Ti.nsx,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){const E=this.links.find(D=>this.router.url.includes(D.link));this.activeLink=E?E.link:this.links[0].link,this.router.events.pipe((0,li.Q)(this.unSubs[0]),(0,za.p)(D=>D instanceof Ha.gx)).subscribe({next:D=>{const I=this.links.find(Oe=>D.urlAfterRedirects.includes(Oe.link));this.activeLink=I?I.link:this.links[0].link}}),this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[1])).subscribe(D=>{this.appConfig=D}),this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[2])).subscribe(D=>{switch(this.showLnConfig=!1,this.selNode=D,this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.SSO.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Bi.xO)({payload:{maxWidth:"50rem",data:{component:r2}}})),this.rtlEffects.closeAlert.pipe((0,li.Q)(this.unSubs[3])).subscribe(E=>{E&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(Ha.Ix),e.rXU(Ko.H),e.rXU(Ha.nX))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-node-config"]],standalone:!1,decls:19,vars:13,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["tabindex","4","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","5","role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["tabindex","4","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","5","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","active"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Node Config"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.activeLink=I.links[0].link)}),e.EFF(9),e.k0s(),e.j41(10,"div",8),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.activeLink=I.links[1].link)}),e.EFF(11),e.k0s(),e.DNE(12,cd,2,6,"div",9)(13,b1,2,4,"div",10)(14,w4,2,2,"div",11),e.k0s(),e.nrm(15,"mat-tab-nav-panel",null,0),e.j41(17,"div",12),e.nrm(18,"router-outlet"),e.k0s()()()()}if(2&D){const Oe=e.sdS(16);e.R7$(),e.Y8G("icon",I.faTools),e.R7$(6),e.Y8G("tabPanel",Oe),e.R7$(),e.Y8G("routerLink",e.mNQ(I.links[0].link))("active",I.activeLink===I.links[0].link),e.R7$(),e.JRh(I.links[0].name),e.R7$(),e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link),e.R7$(),e.JRh(I.links[1].name),e.R7$(),e.Y8G("ngIf","ECL"!==(null==I.selNode||null==I.selNode.lnImplementation?null:I.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf","CLN"===(null==I.selNode||null==I.selNode.lnImplementation?null:I.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf",I.showLnConfig)}},dependencies:[w.bT,os.aY,K.RN,K.m2,Ie.DJ,Ie.sA,Ie.UI,Ut.Bu,Ut.hQ,Ut.Ql,Ha.n3,lo.Wk],encapsulation:2}))}return b(),_})();function zr(b,_){1&b&&e.nrm(0,"mat-divider",7)}function O0(b,_){if(1&b&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,zr,1,0,"mat-divider",6),e.k0s()),2&b){const m=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,m.configData)),e.R7$(2),e.Y8G("ngIf",""!==m.configData)}}function A4(b,_){if(1&b&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m)}}function Xa(b,_){if(1&b&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m)}}function R0(b,_){1&b&&e.nrm(0,"mat-divider",15),2&b&&e.Y8G("inset",!0)}function yc(b,_){if(1&b&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,A4,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,Xa,2,1,"h4",12),e.k0s(),e.DNE(5,R0,1,1,"mat-divider",13),e.k0s()),2&b){const m=_.$implicit;e.R7$(2),e.Y8G("ngIf",m.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",m.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",m.indexOf("[")<0)}}function Zc(b,_){if(1&b&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,yc,6,3,"mat-list-item",9),e.k0s()()),2&b){const m=e.XpG();e.R7$(2),e.Y8G("ngForOf",m.configData)}}let l2=(()=>{var b;class _{constructor(E,D,I){this.store=E,this.rtlEffects=D,this.router=I,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.store.dispatch((0,Bi.Dz)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{const D=E.data;this.fileFormat=E.format,this.configData=""===D||!D||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==D&&D&&"JSON"===this.fileFormat?D:"":D.split("\n")})}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(Ko.H),e.rXU(Ha.Ix))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-lnp-config"]],standalone:!1,decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,O0,5,4,"div",2)(3,Zc,3,1,"div",3),e.k0s()()),2&D&&(e.R7$(2),e.Y8G("ngIf",""!==I.configData&&"JSON"===I.fileFormat),e.R7$(),e.Y8G("ngIf",""!==I.configData&&("INI"===I.fileFormat||"HOCON"===I.fileFormat)))},dependencies:[w.Sq,w.bT,K.Lc,Bs.jt,Bs.YE,Hi.q,Ie.DJ,Ie.sA,Ie.UI,w.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return b(),_})();var Qo=l(2571),or=l(9454),dd=l(5951),cl=l(6038),bc=l(450);const ud=b=>({skin:!0,"selected-color":b});function P0(b,_){if(1&b&&(e.j41(0,"span",41),e.nrm(1,"fa-icon",42),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.Y8G("icon",m.symbol)}}function c2(b,_){if(1&b&&(e.j41(0,"span",41),e.nrm(1,"span",43),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.Y8G("innerHTML",m.symbol,e.npT)}}function hd(b,_){if(1&b&&(e.j41(0,"mat-option",39),e.DNE(1,P0,2,1,"span",40)(2,c2,2,1,"span",40),e.EFF(3),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m.id),e.R7$(),e.Y8G("ngIf",m&&"FA"===m.iconType),e.R7$(),e.Y8G("ngIf",m&&"SVG"===m.iconType),e.R7$(),e.Lme(" ",m.name," (",m.id,") ")}}function Cc(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Currency unit is required."),e.k0s())}function F0(b,_){if(1&b&&(e.j41(0,"mat-radio-button",44),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.Y8G("value",m)("checked",E.selNode.settings.userPersona===m),e.R7$(),e.SpI(" ",e.bMT(2,3,m)," ")}}function d2(b,_){if(1&b&&(e.j41(0,"mat-radio-button",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI("",m.name," ")}}function C1(b,_){if(1&b){const m=e.RV6();e.j41(0,"span",46)(1,"div",47),e.nI1(2,"lowercase"),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG();return v.Njj(I.changeThemeColor(D.id))}),e.k0s(),e.EFF(3),e.k0s()}if(2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.HbH(e.bMT(2,4,m.id)),e.Y8G("ngClass",e.eq3(6,ud,E.selectedThemeColor===m.id)),e.R7$(2),e.SpI(" ",m.name," ")}}let N0=(()=>{var b;class _{constructor(E,D,I,Oe){this.logger=E,this.commonService=D,this.store=I,this.sanitizer=Oe,this.faBarsStaggered=Ti.o97,this.faExclamationTriangle=Ti.zpE,this.faMoneyBillAlt=Ti.iy8,this.faPaintBrush=Ti._eQ,this.faInfoCircle=Ti.iW_,this.faEyeSlash=Ti.k6j,this.userPersonas=[_t.HW.OPERATOR,_t.HW.MERCHANT],this.currencyUnits=_t.Zi,this.themeModes=_t.Bv.modes,this.themeColors=_t.Bv.themes,this.selectedThemeMode=_t.Bv.modes[0],this.selectedThemeColor=_t.Bv.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=_t.f7,this.unSubs=[new gi.B,new gi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.currencyUnits.map(E=>("SVG"===E.iconType&&"string"==typeof E.symbol&&(E.symbol=E.symbol.replace('{this.selNode=JSON.parse(JSON.stringify(E)),this.selectedThemeMode=this.themeModes.find(D=>this.selNode.settings.themeMode===D.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(E)})}toggleSettings(E,D){this.selNode.settings[E]=!this.selNode.settings[E]}changeThemeColor(E){this.selectedThemeColor=E,this.selNode.settings.themeColor=E}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onFiatConversionChange(E){this.selNode.settings.fiatConversion||delete this.selNode.settings.currencyUnit}onUpdateNodeSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.selNode.settings.blockExplorerUrl=this.selNode.settings.blockExplorerUrl.replace(/\/$/,""),this.logger.info(this.selNode.settings),this.store.dispatch((0,Bi.T$)({payload:this.selNode}))}onResetSettings(){const E=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(D=>D.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Bi.Qi)({payload:{uiMessage:_t.MZ.NO_SPINNER,prevLnNodeIndex:+E,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(mi.il),e.rXU(Dt.up))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-node-settings"]],standalone:!1,decls:100,vars:21,consts:[["form","ngForm"],["currencyUnit","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://mempool.space/","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["matInput","","name","blockExplorerUrl",3,"ngModelChange","ngModel"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModelChange","change","ngModel"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModelChange","change","ngModel"],["fxFlex","25"],["autoFocus","","tabindex","3","name","currencyUnit",3,"ngModelChange","disabled","required","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModelChange","ngModel"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModelChange","change","ngModel"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["class","mr-1",4,"ngIf"],[1,"mr-1"],[3,"icon"],["fxLayoutAlign","center center",3,"innerHTML"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"click","ngClass"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-accordion",4)(4,"mat-expansion-panel",5)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e.nrm(7,"fa-icon",6),e.j41(8,"span",7),e.EFF(9,"Block Explorer"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9),e.nrm(12,"fa-icon",10),e.j41(13,"span"),e.EFF(14,"Configure your own blockchain explorer url or "),e.j41(15,"strong")(16,"a",11),e.EFF(17,"mempool.space"),e.k0s()(),e.EFF(18," will be used."),e.k0s()(),e.j41(19,"div",12)(20,"mat-form-field",13)(21,"mat-label"),e.EFF(22,"Block Explorer URL"),e.k0s(),e.j41(23,"input",14),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.blockExplorerUrl,Bt)||(I.selNode.settings.blockExplorerUrl=Bt),v.Njj(Bt)}),e.k0s(),e.j41(24,"mat-hint"),e.EFF(25,"Blockchain explorer URL, eg. https://mempool.space or https://blockstream.info"),e.k0s()()()()(),e.j41(26,"mat-expansion-panel",5)(27,"mat-expansion-panel-header")(28,"mat-panel-title"),e.nrm(29,"fa-icon",6),e.j41(30,"span",7),e.EFF(31,"Open Unannounced Channels"),e.k0s()()(),e.j41(32,"div",8)(33,"div",15),e.nrm(34,"fa-icon",10),e.j41(35,"span"),e.EFF(36,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.k0s()(),e.j41(37,"div",12)(38,"mat-slide-toggle",16),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.unannouncedChannels,Bt)||(I.selNode.settings.unannouncedChannels=Bt),v.Njj(Bt)}),e.bIt("change",function(){return v.eBV(Oe),v.Njj(!I.selNode.settings.unannouncedChannels)}),e.EFF(39,"Open Unannounced Channels"),e.k0s()()()(),e.j41(40,"mat-expansion-panel",5)(41,"mat-expansion-panel-header")(42,"mat-panel-title"),e.nrm(43,"fa-icon",6),e.j41(44,"span",7),e.EFF(45,"Balance Display"),e.k0s()()(),e.j41(46,"div",8)(47,"div",9),e.nrm(48,"fa-icon",10),e.j41(49,"span"),e.EFF(50,"Fiat conversion calls "),e.j41(51,"strong")(52,"a",17),e.EFF(53,"Blockchain.com"),e.k0s()(),e.EFF(54," API to get conversion rates."),e.k0s()(),e.j41(55,"div",12)(56,"mat-slide-toggle",18),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.fiatConversion,Bt)||(I.selNode.settings.fiatConversion=Bt),v.Njj(Bt)}),e.bIt("change",function(Bt){return v.eBV(Oe),v.Njj(I.onFiatConversionChange(Bt))}),e.EFF(57,"Enable Fiat Conversion"),e.k0s(),e.j41(58,"mat-form-field",19)(59,"mat-label"),e.EFF(60,"Fiat Currency"),e.k0s(),e.j41(61,"mat-select",20,1),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.currencyUnit,Bt)||(I.selNode.settings.currencyUnit=Bt),v.Njj(Bt)}),e.DNE(63,hd,4,5,"mat-option",21),e.k0s(),e.DNE(64,Cc,2,0,"mat-error",22),e.k0s()()()(),e.j41(65,"mat-expansion-panel",5)(66,"mat-expansion-panel-header")(67,"mat-panel-title"),e.nrm(68,"fa-icon",6),e.j41(69,"span",7),e.EFF(70,"Customization"),e.k0s()()(),e.j41(71,"div",8)(72,"div",23),e.nrm(73,"fa-icon",10),e.j41(74,"span"),e.EFF(75,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.k0s()(),e.j41(76,"div",24)(77,"h4"),e.EFF(78,"Dashboard Layout"),e.k0s(),e.j41(79,"mat-radio-group",25),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.userPersona,Bt)||(I.selNode.settings.userPersona=Bt),v.Njj(Bt)}),e.DNE(80,F0,3,5,"mat-radio-button",26),e.k0s()(),e.nrm(81,"mat-divider",27),e.j41(82,"div",28)(83,"h4"),e.EFF(84,"Mode"),e.k0s(),e.j41(85,"mat-radio-group",29),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selectedThemeMode,Bt)||(I.selectedThemeMode=Bt),v.Njj(Bt)}),e.bIt("change",function(){return v.eBV(Oe),v.Njj(I.chooseThemeMode())}),e.DNE(86,d2,2,2,"mat-radio-button",30),e.k0s()(),e.nrm(87,"mat-divider",27),e.j41(88,"div",31)(89,"div",32)(90,"h4"),e.EFF(91,"Themes"),e.k0s(),e.j41(92,"div",33),e.DNE(93,C1,4,8,"span",34),e.k0s()()()()()()(),e.j41(94,"div",35)(95,"div",36)(96,"button",37),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onResetSettings())}),e.EFF(97,"Reset"),e.k0s(),e.j41(98,"button",38),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onUpdateNodeSettings())}),e.EFF(99,"Update"),e.k0s()()()()}2&D&&(e.R7$(7),e.Y8G("icon",I.faBarsStaggered),e.R7$(5),e.Y8G("icon",I.faExclamationTriangle),e.R7$(11),e.R50("ngModel",I.selNode.settings.blockExplorerUrl),e.R7$(6),e.Y8G("icon",I.faEyeSlash),e.R7$(5),e.Y8G("icon",I.faInfoCircle),e.R7$(4),e.R50("ngModel",I.selNode.settings.unannouncedChannels),e.R7$(5),e.Y8G("icon",I.faMoneyBillAlt),e.R7$(5),e.Y8G("icon",I.faExclamationTriangle),e.R7$(8),e.R50("ngModel",I.selNode.settings.fiatConversion),e.R7$(5),e.Y8G("disabled",!I.selNode.settings.fiatConversion)("required",I.selNode.settings.fiatConversion),e.R50("ngModel",I.selNode.settings.currencyUnit),e.R7$(2),e.Y8G("ngForOf",I.currencyUnits),e.R7$(),e.Y8G("ngIf",I.selNode.settings.fiatConversion&&!I.selNode.settings.currencyUnit),e.R7$(4),e.Y8G("icon",I.faPaintBrush),e.R7$(5),e.Y8G("icon",I.faInfoCircle),e.R7$(6),e.R50("ngModel",I.selNode.settings.userPersona),e.R7$(),e.Y8G("ngForOf",I.userPersonas),e.R7$(5),e.R50("ngModel",I.selectedThemeMode),e.R7$(),e.Y8G("ngForOf",I.themeModes),e.R7$(7),e.Y8G("ngForOf",I.themeColors))},dependencies:[w.YU,w.Sq,w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,os.aY,es.$z,or.BS,or.GK,or.Z2,or.WN,br.fg,Ma.rl,Ma.nJ,Ma.MV,Ma.TL,Hi.q,dd.VT,dd._g,Ie.DJ,Ie.sA,Ie.UI,cl.PW,sl.VO,ac.wT,bc.sG,go.Ld,Kl.N,w.GH,w.PV],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width:37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}))}return b(),_})();var B0=l(9584),md=l(3536),zs=l(8430),Qs=l(190),lr=l(2730),Ds=l(5428),Jc=l(2598),qc=l(2629),fd=l(455),dl=l(2929);const pd=b=>({error:b}),u2=b=>({"error-border":b}),z0=b=>({"ml-minus-1":b}),h2=b=>({"error-border p-2":b});function m2(b,_){if(1&b&&e.eu8(0,14),2&b){const m=e.XpG(),E=e.sdS(18);e.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",e.eq3(2,pd,m.errorMessage))}}function L4(b,_){if(1&b&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI(" ",m," ")}}function V0(b,_){if(1&b&&(e.j41(0,"mat-option",31),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&b){const m=_.$implicit,E=e.XpG(3);e.Y8G("value",m),e.R7$(),e.SpI(" ","ECL"===E.selNode.lnImplementation?e.bMT(2,2,m):e.i5U(3,4,m,"_")," ")}}function I4(b,_){if(1&b&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI(" ","desc"===m?"Descending":"Ascending"," ")}}function U0(b,_){if(1&b&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&b){const m=_.$implicit,E=e.XpG(2).$implicit,D=e.XpG(2);e.Y8G("value",m.column)("disabled",E.columnSelection.length<=2&&E.columnSelection.includes(m.column)),e.R7$(),e.SpI(" ",m.label?m.label:"ECL"===D.selNode.lnImplementation?e.bMT(2,3,m.column):e.i5U(3,5,m.column,"_")," ")}}function G0(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-form-field",32)(1,"mat-label"),e.EFF(2,"Column selection (Desktop Resolution)"),e.k0s(),e.j41(3,"mat-select",33),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG().$implicit;return e.DH7(I.columnSelection,D)||(I.columnSelection=D),v.Njj(D)}),e.bIt("selectionChange",function(){v.eBV(m);const D=e.XpG().$implicit,I=e.XpG(2);return v.Njj(I.oncolumnSelectionChange(D))}),e.DNE(4,U0,4,8,"mat-option",28),e.k0s()()}if(2&b){const m=e.XpG().$implicit,E=e.XpG().$implicit,D=e.XpG();e.R7$(3),e.Y8G("name",e.ai1("",E.pageId,"",m.tableId,"-columns-selection")),e.R50("ngModel",m.columnSelection),e.R7$(),e.Y8G("ngForOf",D.nodePageDefs[E.pageId][m.tableId].allowedColumns)}}function Wh(b,_){if(1&b&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&b){const m=_.$implicit,E=e.XpG().$implicit,D=e.XpG(2);e.Y8G("value",m.column)("disabled",E.columnSelectionSM.length<=1&&E.columnSelectionSM.includes(m.column)||E.columnSelectionSM.length>=3&&!E.columnSelectionSM.includes(m.column)),e.R7$(),e.SpI(" ",m.label?m.label:"ECL"===D.selNode.lnImplementation?e.bMT(2,3,m.column):e.i5U(3,5,m.column,"_")," ")}}function x1(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s(),e.j41(5,"mat-form-field",20)(6,"mat-label"),e.EFF(7,"Records/Page"),e.k0s(),e.j41(8,"mat-select",21),e.mxI("ngModelChange",function(D){const I=v.eBV(m).$implicit;return e.DH7(I.recordsPerPage,D)||(I.recordsPerPage=D),v.Njj(D)}),e.DNE(9,L4,2,2,"mat-option",22),e.k0s()(),e.j41(10,"mat-form-field",20)(11,"mat-label"),e.EFF(12,"Sort By"),e.k0s(),e.j41(13,"mat-select",23),e.mxI("ngModelChange",function(D){const I=v.eBV(m).$implicit;return e.DH7(I.sortBy,D)||(I.sortBy=D),v.Njj(D)}),e.DNE(14,V0,4,7,"mat-option",22),e.k0s()(),e.j41(15,"mat-form-field",20)(16,"mat-label"),e.EFF(17,"Sort Order"),e.k0s(),e.j41(18,"mat-select",24),e.mxI("ngModelChange",function(D){const I=v.eBV(m).$implicit;return e.DH7(I.sortOrder,D)||(I.sortOrder=D),v.Njj(D)}),e.DNE(19,I4,2,2,"mat-option",22),e.k0s()(),e.DNE(20,G0,5,5,"mat-form-field",25),e.j41(21,"mat-form-field",26)(22,"mat-label"),e.EFF(23,"Column Selection (Mobile Resolution)"),e.k0s(),e.j41(24,"mat-select",27),e.mxI("ngModelChange",function(D){const I=v.eBV(m).$implicit;return e.DH7(I.columnSelectionSM,D)||(I.columnSelectionSM=D),v.Njj(D)}),e.DNE(25,Wh,4,8,"mat-option",28),e.k0s()(),e.j41(26,"button",29),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG().$implicit,Oe=e.XpG();return v.Njj(Oe.onTableReset(I.pageId,D))}),e.j41(27,"mat-icon",30),e.EFF(28,"restore"),e.k0s()()()()}if(2&b){const m=_.$implicit,E=e.XpG().$implicit,D=e.XpG();e.R7$(3),e.SpI("",e.i5U(4,24,m.tableId,"_"),":"),e.R7$(5),e.Y8G("name",e.ai1("",E.pageId,"",m.tableId,"-page-size-options"))("disabled",D.nodePageDefs[E.pageId][m.tableId].disablePageSize),e.R50("ngModel",m.recordsPerPage),e.R7$(),e.Y8G("ngForOf",D.pageSizeOptions),e.R7$(4),e.Y8G("name",e.ai1("",E.pageId,"",m.tableId,"-sort-by")),e.R50("ngModel",m.sortBy),e.R7$(),e.Y8G("ngForOf",m.columnSelection),e.R7$(4),e.Y8G("name",e.ai1("",E.pageId,"",m.tableId,"-sort-order")),e.R50("ngModel",m.sortOrder),e.R7$(),e.Y8G("ngForOf",D.sortOrders),e.R7$(),e.Y8G("ngIf",D.screenSize!==D.screenSizeEnum.XS),e.R7$(4),e.Y8G("name",e.ai1("",E.pageId,"",m.tableId,"-columns-selection-sm")),e.R50("ngModel",m.columnSelectionSM),e.R7$(),e.Y8G("ngForOf",D.nodePageDefs[E.pageId][m.tableId].allowedColumns),e.R7$(2),e.Y8G("ngClass",e.eq3(27,z0,D.screenSize===D.screenSizeEnum.XS||D.screenSize===D.screenSizeEnum.SM))}}function j0(b,_){if(1&b&&e.eu8(0,14),2&b){const m=e.XpG(2),E=e.sdS(18);e.Y8G("ngTemplateOutlet",E)("ngTemplateOutletContext",e.eq3(2,pd,m.errorMessage))}}function gd(b,_){if(1&b&&(e.j41(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s()(),e.DNE(5,x1,29,29,"div",16)(6,j0,1,4,"ng-container",7),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.Y8G("ngClass",e.eq3(7,u2,(null==E.errorMessage?null:E.errorMessage.page)===m.pageId)),e.R7$(3),e.JRh(e.i5U(4,4,m.pageId,"_")),e.R7$(2),e.Y8G("ngForOf",m.tables),e.R7$(),e.Y8G("ngIf",E.errorMessage&&(null==E.errorMessage?null:E.errorMessage.page)===m.pageId)}}function H0(b,_){if(1&b&&(e.j41(0,"mat-panel-title"),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&b){const m=e.XpG().error;e.R7$(),e.SpI("Page ",e.bMT(2,1,m.page))}}function f2(b,_){if(1&b&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&b){const m=e.XpG().error;e.R7$(4),e.JRh(m.message)}}function k4(b,_){if(1&b&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(4),e.Lme("Table ",e.bMT(5,2,m.table)," ",m.message)}}function W0(b,_){if(1&b&&(e.j41(0,"div",35),e.DNE(1,H0,3,3,"mat-panel-title",36),e.j41(2,"mat-list",37),e.DNE(3,f2,5,1,"mat-list-item",36)(4,k4,6,4,"mat-list-item",38),e.k0s()()),2&b){const m=_.error,E=e.XpG();e.Y8G("ngClass",e.eq3(4,h2,"unknown"===E.errorMessage.page)),e.R7$(),e.Y8G("ngIf","unknown"===E.errorMessage.page),e.R7$(2),e.Y8G("ngIf",m.message),e.R7$(),e.Y8G("ngForOf",m.tables)}}let Xh=(()=>{var b;class _{constructor(E,D,I,Oe){this.logger=E,this.commonService=D,this.store=I,this.actions=Oe,this.faPenRuler=Ti.$$g,this.faExclamationTriangle=Ti.zpE,this.screenSize="",this.screenSizeEnum=_t.f7,this.pageSizeOptions=_t.xp,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=_t.jG,this.apiCallStatus=null,this.apiCallStatusEnum=_t.wn,this.errorMessage=null,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{switch(this.selNode=E,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],_t.mu),this.defaultSettings=Object.assign([],_t.mu),this.nodePageDefs=_t.Jd,this.store.select(B0.av).pipe((0,li.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Oa._c))).subscribe(([D,I])=>{const Oe=JSON.parse(JSON.stringify(D.pageSettings));if(this.errorMessage=null,this.apiCallStatus=D.apiCallStatus,this.apiCallStatus.status===_t.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Oe,this.initialPageSettings=Oe;else{if(!I?.settings.enableOffers){const Ct=Oe.find(Yn=>"transactions"===Yn.pageId),Bt=Ct?.tables.findIndex(Yn=>"offers"===Yn.tableId),yn=Ct?.tables.findIndex(Yn=>"offer_bookmarks"===Yn.tableId);Bt>-1&&Ct?.tables.splice(Bt,1),yn>-1&&Ct?.tables.splice(yn,1)}if(!I?.settings.enablePeerswap){const Ct=Oe.findIndex(Bt=>"peerswap"===Bt.pageId);Ct>-1&&Oe.splice(Ct,1)}this.pageSettings=Oe,this.initialPageSettings=Oe}this.logger.info(Oe)}),this.actions.pipe((0,li.Q)(this.unSubs[2]),(0,za.p)(D=>D.type===_t.TC.UPDATE_API_CALL_STATUS_CLN||D.type===_t.TC.SAVE_PAGE_SETTINGS_CLN)).subscribe(D=>{D.type===_t.TC.UPDATE_API_CALL_STATUS_CLN&&D.payload.status===_t.wn.ERROR&&"SavePageSettings"===D.payload.action&&(this.errorMessage=JSON.parse(D.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],_t.X8),this.defaultSettings=Object.assign([],_t.X8),this.nodePageDefs=_t.WW,this.store.select(lr.jZ).pipe((0,li.Q)(this.unSubs[1])).subscribe(D=>{const I=JSON.parse(JSON.stringify(D.pageSettings));this.errorMessage=null,this.apiCallStatus=D.apiCallStatus,this.apiCallStatus.status===_t.wn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=I,this.initialPageSettings=I):(this.pageSettings=I,this.initialPageSettings=I),this.logger.info(I)}),this.actions.pipe((0,li.Q)(this.unSubs[2]),(0,za.p)(D=>D.type===_t.Uu.UPDATE_API_CALL_STATUS_ECL||D.type===_t.Uu.SAVE_PAGE_SETTINGS_ECL)).subscribe(D=>{D.type===_t.Uu.UPDATE_API_CALL_STATUS_ECL&&D.payload.status===_t.wn.ERROR&&"SavePageSettings"===D.payload.action&&(this.errorMessage=JSON.parse(D.payload.message))});break;default:this.initialPageSettings=Object.assign([],_t.ZC),this.defaultSettings=Object.assign([],_t.ZC),this.nodePageDefs=_t._1,this.store.select(md.$G).pipe((0,li.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Oa._c))).subscribe(([D,I])=>{const Oe=JSON.parse(JSON.stringify(D.pageSettings));if(this.errorMessage=null,this.apiCallStatus=D.apiCallStatus,this.apiCallStatus.status===_t.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Oe,this.initialPageSettings=Oe;else{if(!I?.settings.swapServerUrl||""===I.settings.swapServerUrl.trim()){const Ct=Oe.findIndex(Bt=>"loop"===Bt.pageId);Ct>-1&&Oe.splice(Ct,1)}if(!I?.settings.boltzServerUrl||""===I.settings.boltzServerUrl.trim()){const Ct=Oe.findIndex(Bt=>"boltz"===Bt.pageId);Ct>-1&&Oe.splice(Ct,1)}if(!I?.settings.enablePeerswap){const Ct=Oe.findIndex(Bt=>"peerswap"===Bt.pageId);Ct>-1&&Oe.splice(Ct,1)}this.pageSettings=Oe,this.initialPageSettings=Oe}this.logger.info(Oe)}),this.actions.pipe((0,li.Q)(this.unSubs[2]),(0,za.p)(D=>D.type===_t.QP.UPDATE_API_CALL_STATUS_LND||D.type===_t.QP.SAVE_PAGE_SETTINGS_LND)).subscribe(D=>{D.type===_t.QP.UPDATE_API_CALL_STATUS_LND&&D.payload.status===_t.wn.ERROR&&"SavePageSettings"===D.payload.action&&(this.errorMessage=JSON.parse(D.payload.message))})}})}oncolumnSelectionChange(E){E.columnSelection&&(!E.sortBy||!E.columnSelection.includes(E.sortBy))&&(E.sortBy=E.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((E,D)=>E||D.tables.reduce((I,Oe)=>!(Oe.recordsPerPage&&Oe.sortBy&&Oe.sortOrder&&Oe.columnSelection&&Oe.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,zs.Sn)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Ds.Sn)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Qs.Sn)({payload:this.pageSettings}))}}onTableReset(E,D){const I=this.pageSettings.findIndex(Bt=>Bt.pageId===E),Oe=this.pageSettings[I].tables.findIndex(Bt=>Bt.tableId===D.tableId),Ct=this.defaultSettings.find(Bt=>Bt.pageId===E)?.tables.find(Bt=>Bt.tableId===D.tableId)||this.pageSettings.find(Bt=>Bt.pageId===E)?.tables.find(Bt=>Bt.tableId===D.tableId);this.pageSettings[I].tables.splice(Oe,1,Ct)}onResetPageSettings(E){"current"===E?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(mi.il),e.rXU(Uo.En))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-page-settings"]],standalone:!1,decls:19,vars:3,consts:[["form","ngForm"],["errorObjectBlock",""],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"ngModelChange","name","disabled","ngModel"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"ngModelChange","name","ngModel"],["tabindex","4","required","",3,"ngModelChange","name","ngModel"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"ngModelChange","name","ngModel"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"ngModelChange","selectionChange","name","ngModel"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Grid Settings"),e.k0s()(),e.DNE(7,m2,1,4,"ng-container",7),e.j41(8,"mat-accordion",8),e.DNE(9,gd,7,9,"mat-expansion-panel",9),e.k0s()(),e.j41(10,"div",10)(11,"button",11),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onResetPageSettings("current"))}),e.EFF(12,"Reset"),e.k0s(),e.j41(13,"button",12),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onResetPageSettings("default"))}),e.EFF(14,"Reset to Default"),e.k0s(),e.j41(15,"button",13),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onUpdatePageSettings())}),e.EFF(16,"Save"),e.k0s()()(),e.DNE(17,W0,5,6,"ng-template",null,1,e.C5r)}2&D&&(e.R7$(4),e.Y8G("icon",I.faPenRuler),e.R7$(3),e.Y8G("ngIf",I.errorMessage&&"unknown"===I.errorMessage.page),e.R7$(2),e.Y8G("ngForOf",I.pageSettings))},dependencies:[w.YU,w.Sq,w.bT,w.T3,hi.qT,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,os.aY,es.$z,Jc.iY,or.BS,or.GK,or.Z2,or.WN,qc.An,Ma.rl,Ma.nJ,Bs.jt,Bs.YE,Ie.DJ,Ie.sA,Ie.UI,cl.PW,sl.VO,ac.wT,fd.oV,go.Ld,w.PV,dl.VD,dl.Qu],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}))}return b(),_})();function O4(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.setActiveLink(D.links[0].link))}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[0].link))("active",m.activeLink===m.links[0].link),e.R7$(),e.JRh(m.links[0].name)}}function R4(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.setActiveLink(D.links[1].link))}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[1].link))("active",m.activeLink===m.links[1].link),e.R7$(),e.JRh(m.links[1].name)}}function P4(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.setActiveLink(D.links[2].link))}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG();e.Y8G("routerLink",e.mNQ(m.links[2].link))("active",m.activeLink===m.links[2].link),e.R7$(),e.JRh(m.links[2].name)}}let X0=(()=>{var b;class _{constructor(E,D,I){this.store=E,this.router=D,this.activatedRoute=I,this.faLayerGroup=Ti.qIE,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"noservice",name:"No Service"}],this.activeLink="",this.unSubs=[new gi.B,new gi.B,new gi.B]}ngOnInit(){this.setActiveLink(),this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.selNode=E,this.setActiveLink(),this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})})}setActiveLink(E){if(E&&""!==E)this.activeLink=E;else{const D=this.links.find(I=>this.router.url.includes(I.link));this.activeLink=D?this.selNode&&"CLN"===this.selNode.lnImplementation?this.links[1].link:D.link:this.links[this.links.length-1].link}}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(Ha.Ix),e.rXU(Ha.nX))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-services-settings"]],standalone:!1,decls:16,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(D,I){if(1&D&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"fa-icon",3),e.j41(3,"span",4),e.EFF(4,"Services"),e.k0s()()(),e.j41(5,"div",5)(6,"mat-card")(7,"mat-card-content",5)(8,"nav",6),e.DNE(9,O4,2,4,"div",7)(10,R4,2,4,"div",8)(11,P4,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()),2&D){const Oe=e.sdS(13);e.R7$(2),e.Y8G("icon",I.faLayerGroup),e.R7$(6),e.Y8G("tabPanel",Oe),e.R7$(),e.Y8G("ngIf","LND"===I.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"!==I.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"===I.selNode.lnImplementation)}},dependencies:[w.bT,os.aY,K.RN,K.m2,Ie.DJ,Ie.sA,Ie.UI,Ut.Bu,Ut.hQ,Ut.Ql,Ha.n3,lo.Wk],encapsulation:2}))}return b(),_})();const F4=["form"];function K0(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Loop server URL is required."),e.k0s())}function N4(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the loop server url with 'https://'."),e.k0s())}function _d(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Loop macaroon path is required."),e.k0s())}let e1=(()=>{var b;class _{constructor(E,D){this.logger=E,this.store=D,this.faInfoCircle=Ti.iW_,this.enableLoop=!1,this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.selNode=E,this.enableLoop=!(!E.settings.swapServerUrl||""===E.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(E)})}onEnableServiceChanged(E){this.enableLoop=E.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.enableLoop||(delete this.selNode.settings.swapServerUrl,delete this.selNode.authentication.swapMacaroonPath),this.logger.info(this.selNode),this.store.dispatch((0,Bi.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(mi.il))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-loop-service-settings"]],viewQuery:function(D,I){if(1&D&&e.GBs(F4,7),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.form=Oe.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"loopd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.enableLoop,Bt)||(I.enableLoop=Bt),v.Njj(Bt)}),e.bIt("change",function(Bt){return v.eBV(Oe),v.Njj(I.onEnableServiceChanged(Bt))}),e.EFF(16,"Enable Loop Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Loop Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.settings.swapServerUrl,Bt)||(I.selNode.settings.swapServerUrl=Bt),v.Njj(Bt)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.k0s(),e.DNE(24,K0,2,0,"mat-error",11)(25,N4,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Loop Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selNode.authentication.swapMacaroonPath,Bt)||(I.selNode.authentication.swapMacaroonPath=Bt),v.Njj(Bt)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.k0s(),e.DNE(32,_d,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&D){const Oe=e.sdS(21);e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(13),e.R50("ngModel",I.enableLoop),e.R7$(5),e.Y8G("required",I.enableLoop)("disabled",!I.enableLoop),e.R50("ngModel",I.selNode.settings.swapServerUrl),e.R7$(4),e.Y8G("ngIf",!I.selNode.settings.swapServerUrl&&I.enableLoop),e.R7$(),e.Y8G("ngIf",(null==Oe||null==Oe.errors?null:Oe.errors.invalid)&&I.enableLoop),e.R7$(4),e.Y8G("required",I.enableLoop)("disabled",!I.enableLoop),e.R50("ngModel",I.selNode.authentication.swapMacaroonPath),e.R7$(3),e.Y8G("ngIf",!I.selNode.authentication.swapMacaroonPath&&I.enableLoop)}},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,os.aY,es.$z,br.fg,Ma.rl,Ma.nJ,Ma.MV,Ma.TL,Ie.DJ,Ie.sA,Ie.UI,bc.sG,go.Ld,Kl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return b(),_})();const Ql=["form"];function Y0(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz server URL is required."),e.k0s())}function B4(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the boltz server url with 'https://'."),e.k0s())}function Q0(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz macaroon path is required."),e.k0s())}let Kh=(()=>{var b;class _{constructor(E,D){this.logger=E,this.store=D,this.faInfoCircle=Ti.iW_,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new gi.B,new gi.B]}ngOnInit(){this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.selNode=E,this.enableBoltz=!(!E.settings.boltzServerUrl||""===E.settings.boltzServerUrl.trim()),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(E)})}onEnableServiceChanged(E){this.enableBoltz=E.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.enableBoltz?(this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath):(delete this.selNode.settings.boltzServerUrl,delete this.selNode.authentication.boltzMacaroonPath),this.store.dispatch((0,Bi.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(mi.il))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(D,I){if(1&D&&e.GBs(Ql,7),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.form=Oe.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://docs.boltz.exchange/v/boltz-client/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"boltzd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.enableBoltz,Bt)||(I.enableBoltz=Bt),v.Njj(Bt)}),e.bIt("change",function(Bt){return v.eBV(Oe),v.Njj(I.onEnableServiceChanged(Bt))}),e.EFF(16,"Enable Boltz Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Boltz Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.serverUrl,Bt)||(I.serverUrl=Bt),v.Njj(Bt)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.k0s(),e.DNE(24,Y0,2,0,"mat-error",11)(25,B4,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Boltz Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.macaroonPath,Bt)||(I.macaroonPath=Bt),v.Njj(Bt)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.k0s(),e.DNE(32,Q0,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&D){const Oe=e.sdS(21);e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(13),e.R50("ngModel",I.enableBoltz),e.R7$(5),e.Y8G("required",I.enableBoltz)("disabled",!I.enableBoltz),e.R50("ngModel",I.serverUrl),e.R7$(4),e.Y8G("ngIf",(!I.serverUrl||""===I.serverUrl.trim())&&I.enableBoltz),e.R7$(),e.Y8G("ngIf",(null==Oe||null==Oe.errors?null:Oe.errors.invalid)&&I.enableBoltz),e.R7$(4),e.Y8G("required",I.enableBoltz)("disabled",!I.enableBoltz),e.R50("ngModel",I.macaroonPath),e.R7$(3),e.Y8G("ngIf",!I.macaroonPath&&I.enableBoltz)}},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,os.aY,es.$z,br.fg,Ma.rl,Ma.nJ,Ma.MV,Ma.TL,Ie.DJ,Ie.sA,Ie.UI,bc.sG,go.Ld,Kl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return b(),_})(),Yh=(()=>{var b;class _{constructor(){}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-ln-services"]],standalone:!1,decls:1,vars:0,template:function(D,I){1&D&&e.nrm(0,"router-outlet")},dependencies:[Ha.n3],encapsulation:2}))}return b(),_})();var p2=l(1092),E1=l(4104),kc=l(6695),Oc=l(2042),Ra=l(1676),vd=l(7575);const g2=()=>["all"],z4=b=>({"overflow-auto error-border":b,"overflow-auto":!0}),$0=()=>["no_swap"],ul=b=>({width:b}),Z0=b=>({"display-none":b});function V4(b,_){if(1&b&&(e.j41(0,"mat-option",37),e.EFF(1),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.Y8G("value",m),e.R7$(),e.JRh(E.getLabel(m))}}function _2(b,_){1&b&&e.nrm(0,"mat-progress-bar",38)}function U4(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"State"),e.k0s())}function Qh(b,_){if(1&b&&(e.j41(0,"td",40),e.EFF(1),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.JRh(E.LoopStateEnum[null==m?null:m.state])}}function J0(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"Initiation Time"),e.k0s())}function v2(b,_){if(1&b&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==m?null:m.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function G4(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"Last Update Time"),e.k0s())}function j4(b,_){if(1&b&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==m?null:m.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function H4(b,_){1&b&&(e.j41(0,"th",41),e.EFF(1,"Amount (Sats)"),e.k0s())}function qa(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.amt))}}function xc(b,_){1&b&&(e.j41(0,"th",41),e.EFF(1,"Cost Server (Sats)"),e.k0s())}function y2(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.cost_server))}}function q0(b,_){1&b&&(e.j41(0,"th",41),e.EFF(1,"Cost Offchain (Sats)"),e.k0s())}function M1(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.cost_offchain))}}function W4(b,_){1&b&&(e.j41(0,"th",41),e.EFF(1,"Cost Onchain (Sats)"),e.k0s())}function S1(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==m?null:m.cost_onchain)," ")}}function T1(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"HTLC Address"),e.k0s())}function yd(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ul,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.htlc_address)}}function t1(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"ID"),e.k0s())}function X4(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ul,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.id)}}function D1(b,_){1&b&&(e.j41(0,"th",39),e.EFF(1,"ID (Bytes)"),e.k0s())}function w1(b,_){if(1&b&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,ul,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.id_bytes)}}function A1(b,_){if(1&b){const m=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function bd(b,_){if(1&b){const m=e.RV6();e.j41(0,"td",49)(1,"button",50),e.bIt("click",function(D){const I=v.eBV(m).$implicit,Oe=e.XpG();return v.Njj(Oe.onSwapClick(I,D))}),e.EFF(2,"View Info"),e.k0s()()}}function b2(b,_){if(1&b&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.emptyTableMessage)}}function K4(b,_){if(1&b&&(e.j41(0,"td",51),e.DNE(1,b2,2,1,"p",52),e.k0s()),2&b){const m=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=m.listSwaps&&m.listSwaps.data)||(null==m.listSwaps||null==m.listSwaps.data?null:m.listSwaps.data.length)<1)}}function Rc(b,_){if(1&b&&e.nrm(0,"tr",53),2&b){const m=e.XpG();e.Y8G("ngClass",e.eq3(1,Z0,(null==m.listSwaps?null:m.listSwaps.data)&&(null==m.listSwaps||null==m.listSwaps.data?null:m.listSwaps.data.length)>0))}}function Ec(b,_){1&b&&e.nrm(0,"tr",54)}function eu(b,_){1&b&&e.nrm(0,"tr",55)}let Cd=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt){this.logger=E,this.commonService=D,this.store=I,this.loopService=Oe,this.datePipe=Ct,this.camelCaseWithReplace=Bt,this.selectedSwapType=_t.C7.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=_t._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:_t.md,sortBy:"initiation_time",sortOrder:_t.oi.DESCENDING},this.LoopStateEnum=_t.Hx,this.faHistory=Ti.Int,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Ra.I6([]),this.selFilter="",this.pageSize=_t.md,this.pageSizeOptions=_t.xp,this.screenSize="",this.screenSizeEnum=_t.f7,this.unSubs=[new gi.B,new gi.B,new gi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(E){this.swapCaption=this.selectedSwapType===_t.C7.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(md.$G).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.tableSetting=E.pageSettings.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSetting.tableId)||_t.ZC.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===_t.f7.XS||this.screenSize===_t.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:_t.md,this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(E){const D=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(I=>I.column===E);return D?D.label?D.label:this.camelCaseWithReplace.transform(D.column,"_"):this.commonService.titleCase(E)}setFilterPredicate(){this.listSwaps.filterPredicate=(E,D)=>{let I="";switch(this.selFilterBy){case"all":I=JSON.stringify(E).toLowerCase();break;case"state":I=E?.state?this.LoopStateEnum[E?.state]:"";break;case"initiation_time":case"last_update_time":I=this.datePipe.transform(new Date((E[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:I=typeof E[this.selFilterBy]>"u"?"":"string"==typeof E[this.selFilterBy]?E[this.selFilterBy].toLowerCase():"boolean"==typeof E[this.selFilterBy]?E[this.selFilterBy]?"yes":"no":E[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===I.indexOf(D):I.includes(D)}}onSwapClick(E,D){this.loopService.getSwap(E.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,li.Q)(this.unSubs[1])).subscribe(I=>{this.store.dispatch((0,Bi.xO)({payload:{data:{type:_t.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:_t.Hx[I.state||""],title:"Status",width:50,type:_t.UN.STRING},{key:"amt",value:I.amt,title:"Amount (Sats)",width:50,type:_t.UN.NUMBER}],[{key:"initiation_time",value:(I.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:_t.UN.DATE_TIME},{key:"last_update_time",value:(I.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:_t.UN.DATE_TIME}],[{key:"cost_server",value:I.cost_server,title:"Server Cost (Sats)",width:33,type:_t.UN.NUMBER},{key:"cost_offchain",value:I.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:_t.UN.NUMBER},{key:"cost_onchain",value:I.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:_t.UN.NUMBER}],[{key:"id_bytes",value:I.id_bytes,title:"ID",width:100,type:_t.UN.STRING}],[{key:"htlc_address",value:I.htlc_address,title:"HTLC Address",width:100,type:_t.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(E){this.listSwaps=new Ra.I6([...E]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(D,I)=>D[I]&&isNaN(D[I])?D[I].toLocaleLowerCase():D[I]?+D[I]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===_t.C7.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(mi.il),e.rXU(E1.Q),e.rXU(w.vh),e.rXU(dl.VD))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-swaps"]],viewQuery:function(D,I){if(1&D&&(e.GBs(Oc.B4,5),e.GBs(kc.iy,5)),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.sort=Oe.first),e.mGM(Oe=e.lsd())&&(I.paginator=Oe.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:sl.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:kc.xX,useValue:(0,_t.on)("Swaps")}]),e.OA$],decls:61,vars:20,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selFilterBy,Bt)||(I.selFilterBy=Bt),v.Njj(Bt)}),e.bIt("selectionChange",function(){return v.eBV(Oe),I.selFilter="",v.Njj(I.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,V4,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selFilter,Bt)||(I.selFilter=Bt),v.Njj(Bt)}),e.bIt("input",function(){return v.eBV(Oe),v.Njj(I.applyFilter())})("keyup",function(){return v.eBV(Oe),v.Njj(I.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,_2,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,U4,2,0,"th",16)(24,Qh,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,J0,2,0,"th",16)(27,v2,3,4,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,G4,2,0,"th",16)(30,j4,3,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,H4,2,0,"th",21)(33,qa,4,3,"td",17),e.bVm(),e.qex(34,22),e.DNE(35,xc,2,0,"th",21)(36,y2,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,q0,2,0,"th",21)(39,M1,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,W4,2,0,"th",21)(42,S1,4,3,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,T1,2,0,"th",16)(45,yd,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,t1,2,0,"th",16)(48,X4,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,D1,2,0,"th",16)(51,w1,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,A1,6,0,"th",29)(54,bd,3,0,"td",30),e.bVm(),e.qex(55,31),e.DNE(56,K4,2,1,"td",32),e.bVm(),e.DNE(57,Rc,1,3,"tr",33)(58,Ec,1,0,"tr",34)(59,eu,1,0,"tr",35),e.k0s(),e.nrm(60,"mat-paginator",36),e.k0s()()()}2&D&&(e.R7$(3),e.Y8G("icon",I.faHistory),e.R7$(2),e.SpI("",I.swapCaption," History"),e.R7$(5),e.R50("ngModel",I.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,g2).concat(I.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",I.selFilter),e.R7$(3),e.Y8G("ngIf",!0===I.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",I.tableSetting.sortBy)("matSortDirection",I.tableSetting.sortOrder)("dataSource",I.listSwaps)("ngClass",e.eq3(17,z4,"error"===I.flgLoading[0])),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(19,$0)),e.R7$(),e.Y8G("matHeaderRowDef",I.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",I.displayedColumns),e.R7$(),e.Y8G("pageSize",I.pageSize)("pageSizeOptions",I.pageSizeOptions)("showFirstLastButtons",I.screenSize!==I.screenSizeEnum.XS))},dependencies:[w.YU,w.Sq,w.bT,w.B3,hi.me,hi.BC,hi.vS,os.aY,es.$z,br.fg,Ma.rl,Ma.nJ,vd.HM,Ie.DJ,Ie.sA,Ie.UI,cl.PW,cl.eI,sl.VO,sl.$2,ac.wT,Oc.B4,Oc.aE,Ra.Zl,Ra.tL,Ra.ji,Ra.cC,Ra.YV,Ra.iL,Ra.Zq,Ra.xW,Ra.KS,Ra.$R,Ra.Qo,Ra.YZ,Ra.NB,Ra.iF,kc.iy,go.ZF,go.Ld,w.QX,w.vh],encapsulation:2}))}return b(),_})();const Mc=b=>["../",b];function tu(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG();return v.Njj(I.onSelectedIndexChange(D))}),e.EFF(1),e.k0s()}if(2&b){const m=_.$implicit,E=e.XpG();e.Y8G("active",E.activeTab.link===m.link)("routerLink",e.eq3(3,Mc,m.link)),e.R7$(),e.JRh(m.name)}}let nu=(()=>{var b;class _{constructor(E,D,I){this.router=E,this.loopService=D,this.store=I,this.faInfinity=Ti.C8j,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=_t.C7,this.selectedSwapType=_t.C7.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.store.dispatch((0,Bi.mt)({payload:_t.MZ.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,li.Q)(this.unSubs[4])).subscribe({next:D=>{this.store.dispatch((0,Bi.y0)({payload:_t.MZ.GET_LOOP_INFO})),this.loopInfo=D,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:D=>{this.store.dispatch((0,Bi.y0)({payload:_t.MZ.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const E=this.links.find(D=>this.router.url.includes(D.link));this.activeTab=E||this.links[0],this.selectedSwapType=E&&"loopin"===E.link?_t.C7.LOOP_IN:_t.C7.LOOP_OUT,this.router.events.pipe((0,li.Q)(this.unSubs[0]),(0,za.p)(D=>D instanceof Ha.gx)).subscribe({next:D=>{const I=this.links.find(Oe=>D.urlAfterRedirects.includes(Oe.link));this.activeTab=I||this.links[0],this.selectedSwapType=I&&"loopin"===I.link?_t.C7.LOOP_IN:_t.C7.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,li.Q)(this.unSubs[1])).subscribe({next:D=>{this.flgLoading[0]=!1,this.storedSwaps=D,this.filteredSwaps=this.storedSwaps?.filter(I=>I.type===this.selectedSwapType)},error:D=>{this.flgLoading[0]="error",this.emptyTableMessage=D.message?D.message:"No loop "+(this.selectedSwapType===_t.C7.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(E){this.selectedSwapType="loopin"===E.link?_t.C7.LOOP_IN:_t.C7.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(D=>D.type===this.selectedSwapType)}onLoop(E){E===_t.C7.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,li.Q)(this.unSubs[2])).subscribe({next:D=>{this.store.dispatch((0,Bi.xO)({payload:{data:{minQuote:D[0],maxQuote:D[1],direction:E,component:p2.D}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,li.Q)(this.unSubs[3])).subscribe({next:D=>{this.store.dispatch((0,Bi.xO)({payload:{data:{minQuote:D[0],maxQuote:D[1],direction:E,component:p2.D}}}))}})}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ha.Ix),e.rXU(E1.Q),e.rXU(mi.il))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-loop"]],standalone:!1,decls:15,vars:9,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,tu,2,5,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8)(12,"button",9),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onLoop(I.selectedSwapType))}),e.EFF(13),e.k0s()(),e.nrm(14,"rtl-swaps",10),e.k0s()()()}if(2&D){const Oe=e.sdS(10);e.R7$(),e.Y8G("icon",I.faInfinity),e.R7$(2),e.SpI("Loop (v",(null==I.loopInfo?null:I.loopInfo.version)||" Unknown",")"),e.R7$(4),e.Y8G("tabPanel",Oe),e.R7$(),e.Y8G("ngForOf",I.links),e.R7$(5),e.SpI("Start ",I.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",I.selectedSwapType)("swapsData",I.filteredSwaps)("flgLoading",I.flgLoading)("emptyTableMessage",I.emptyTableMessage)}},dependencies:[w.Sq,os.aY,es.$z,K.RN,K.m2,Ie.DJ,Ie.sA,Ie.UI,Ut.Bu,Ut.hQ,Ut.Ql,lo.Wk,Cd],encapsulation:2}))}return b(),_})();var iu=l(1001),au=l(4412),bl=l(8810),L1=l(2462);let rc=(()=>{var b;class _{constructor(E,D,I,Oe){this.httpClient=E,this.logger=D,this.store=I,this.commonService=Oe,this.swapUrl="",this.swaps={},this.boltzInfo=null,this.boltzInfoChanged=new au.t(null),this.swapsChanged=new au.t({}),this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Bi.mt)({payload:_t.MZ.GET_BOLTZ_SWAPS})),this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,li.Q)(this.unSubs[0])).subscribe({next:E=>{this.store.dispatch((0,Bi.y0)({payload:_t.MZ.GET_BOLTZ_SWAPS})),this.swaps=E,this.swapsChanged.next(this.swaps)},error:E=>this.swapsChanged.error(this.handleErrorWithAlert(_t.MZ.GET_BOLTZ_SWAPS,this.swapUrl,E))})}swapInfo(E){return this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/swapInfo/"+E,this.httpClient.get(this.swapUrl).pipe((0,Ys.W)(D=>(0,Tr.of)(this.handleErrorWithAlert(_t.MZ.NO_SPINNER,this.swapUrl,D))))}getBoltzInfo(){this.store.dispatch((0,Bi.mt)({payload:_t.MZ.GET_BOLTZ_INFO})),this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/info",this.httpClient.get(this.swapUrl).pipe((0,li.Q)(this.unSubs[1])).subscribe({next:E=>{this.store.dispatch((0,Bi.y0)({payload:_t.MZ.GET_BOLTZ_INFO})),this.boltzInfo=E,this.boltzInfoChanged.next(this.boltzInfo)},error:E=>(this.boltzInfo={version:"2.0.0"},this.boltzInfoChanged.next(this.boltzInfo),(0,Tr.of)(this.handleErrorWithoutAlert(_t.MZ.GET_BOLTZ_INFO,this.swapUrl,E)))})}serviceInfo(){return this.store.dispatch((0,Bi.mt)({payload:_t.MZ.GET_SERVICE_INFO})),this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,li.Q)(this.unSubs[2]),(0,us.T)(E=>(this.store.dispatch((0,Bi.y0)({payload:_t.MZ.GET_SERVICE_INFO})),E)),(0,Ys.W)(E=>(0,Tr.of)(this.handleErrorWithAlert(_t.MZ.GET_SERVICE_INFO,this.swapUrl,E))))}swapOut(E,D,I){const Oe={amount:E,address:D,acceptZeroConf:I};return this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,Oe).pipe((0,Ys.W)(Ct=>this.handleErrorWithoutAlert("Swap Out for Address: "+D,_t.MZ.NO_SPINNER,Ct)))}swapIn(E,D,I){const Oe={amount:E,sendFromInternal:D,refundAddress:I};return this.swapUrl=_t.H$+_t.rl.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,Oe).pipe((0,Ys.W)(Ct=>this.handleErrorWithoutAlert("Swap In for Amount: "+E,_t.MZ.NO_SPINNER,Ct)))}handleErrorWithoutAlert(E,D,I){let Oe="";return this.logger.error("ERROR IN: "+E+"\n"+JSON.stringify(I)),this.store.dispatch((0,Bi.y0)({payload:D})),401===I.status?(Oe="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Bi.ri)({payload:Oe}))):503===I.status?(Oe="Unable to Connect to Boltz Server.",this.store.dispatch((0,Bi.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:I.status,message:"Unable to Connect to Boltz Server",URL:E},component:L1.f}}}))):Oe=this.commonService.extractErrorMessage(I),(0,bl.$)(()=>new Error(Oe))}handleErrorWithAlert(E,D,I){let Oe="";if(401===I.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Bi.ri)({payload:"Authentication Failed: "+JSON.stringify(I.error)}))),this.logger.error(I),this.store.dispatch((0,Bi.y0)({payload:E})),401===I.status)Oe="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Bi.ri)({payload:Oe}));else if(503===I.status)Oe="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Bi.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:I.status,message:"Unable to Connect to Boltz Server",URL:D},component:L1.f}}}))},100);else{Oe=this.commonService.extractErrorMessage(I);const Ct=I.error&&I.error.error&&I.error.error.code?I.error.error.code:I.error&&I.error.code?I.error.code:I.code?I.code:I.status;setTimeout(()=>{this.store.dispatch((0,Bi.xO)({payload:{data:{type:_t.A$.ERROR,alertTitle:"ERROR",message:{code:Ct,message:Oe,URL:D},component:L1.f}}}))},100)}return{message:Oe}}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(v.KVO(nr.Qq),v.KVO(Aa.gP),v.KVO(mi.il),v.KVO(Qo.h))},this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac}))}return b(),_})();const I1=b=>({"display-none":b});function Yr(b,_){1&b&&e.eu8(0)}function n1(b,_){if(1&b&&(e.j41(0,"div",4)(1,"span",5),e.EFF(2),e.k0s()()),2&b){const m=e.XpG();e.R7$(2),e.JRh(null!=m.swapStatus&&m.swapStatus.error?null==m.swapStatus?null:m.swapStatus.error:"Unknown Error.")}}function su(b,_){if(1&b&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Routing Fee (mSats)"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&b){const m=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,1,null==m.swapStatus?null:m.swapStatus.routingFeeMilliSat))}}function oc(b,_){if(1&b&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Claim Transaction ID"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.k0s()()),2&b){const m=e.XpG(2);e.R7$(4),e.JRh(null==m.swapStatus?null:m.swapStatus.claimTransactionId)}}function k1(b,_){if(1&b&&(e.j41(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e.EFF(4,"ID"),e.k0s(),e.j41(5,"span",5),e.EFF(6),e.k0s()(),e.DNE(7,su,6,3,"div",9)(8,oc,5,1,"div",9),e.k0s(),e.nrm(9,"mat-divider",10),e.j41(10,"div",6)(11,"div",11)(12,"h4",8),e.EFF(13,"Lockup Address"),e.k0s(),e.j41(14,"span",5),e.EFF(15),e.k0s()()()()),2&b){const m=e.XpG();e.R7$(6),e.JRh(null==m.swapStatus?null:m.swapStatus.id),e.R7$(),e.Y8G("ngIf",m.acceptZeroConf),e.R7$(),e.Y8G("ngIf",m.acceptZeroConf),e.R7$(7),e.JRh(null==m.swapStatus?null:m.swapStatus.lockupAddress)}}function C2(b,_){1&b&&(e.j41(0,"span",22),e.EFF(1,"N/A"),e.k0s())}function Y4(b,_){1&b&&(e.j41(0,"span",23),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function x2(b,_){1&b&&e.nrm(0,"mat-divider",24),2&b&&e.Y8G("inset",!0)}function xd(b,_){if(1&b&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Transaction ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&b){const m=e.XpG(2);e.R7$(5),e.JRh(null==m.swapStatus?null:m.swapStatus.txId)}}function Q4(b,_){if(1&b&&(e.j41(0,"div",6)(1,"div",25)(2,"h4",8),e.EFF(3,"ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",25)(7,"h4",8),e.EFF(8,"Expected Amount (Sats)"),e.k0s(),e.j41(9,"span",5),e.EFF(10),e.nI1(11,"number"),e.k0s()()()),2&b){const m=e.XpG(2);e.R7$(5),e.JRh(null==m.swapStatus?null:m.swapStatus.id),e.R7$(5),e.JRh(e.bMT(11,2,null==m.swapStatus?null:m.swapStatus.expectedAmount))}}function ms(b,_){1&b&&e.nrm(0,"mat-divider",10)}function $4(b,_){if(1&b&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Address"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&b){const m=e.XpG(2);e.R7$(5),e.JRh(null==m.swapStatus?null:m.swapStatus.address)}}function lc(b,_){1&b&&e.nrm(0,"mat-divider",10)}function ru(b,_){if(1&b&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"BIP 21"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&b){const m=e.XpG(2);e.R7$(5),e.JRh(null==m.swapStatus?null:m.swapStatus.bip21)}}function ou(b,_){if(1&b&&(e.j41(0,"div",12)(1,"div",13),e.nrm(2,"qr-code",14),e.DNE(3,C2,2,0,"span",15),e.k0s(),e.j41(4,"div",16)(5,"div",4)(6,"div",17),e.nrm(7,"qr-code",14),e.DNE(8,Y4,2,0,"span",18),e.k0s(),e.DNE(9,x2,1,1,"mat-divider",19)(10,xd,6,1,"div",20)(11,Q4,12,4,"div",20)(12,ms,1,0,"mat-divider",21)(13,$4,6,1,"div",20)(14,lc,1,0,"mat-divider",21)(15,ru,6,1,"div",20),e.k0s()()()),2&b){const m=e.XpG();e.R7$(),e.Y8G("fxLayoutAlign",""!==((null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(17,I1,m.screenSize===m.screenSizeEnum.XS||m.screenSize===m.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))("size",m.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))),e.R7$(3),e.Y8G("fxLayoutAlign",""!==((null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(19,I1,m.screenSize!==m.screenSizeEnum.XS&&m.screenSize!==m.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))("size",m.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==m.swapStatus?null:m.swapStatus.txId)||(null==m.swapStatus?null:m.swapStatus.address))),e.R7$(),e.Y8G("ngIf",m.screenSize===m.screenSizeEnum.XS||m.screenSize===m.screenSizeEnum.SM),e.R7$(),e.Y8G("ngIf",m.sendFromInternal),e.R7$(),e.Y8G("ngIf",!m.sendFromInternal),e.R7$(),e.Y8G("ngIf",!m.sendFromInternal),e.R7$(),e.Y8G("ngIf",!m.sendFromInternal),e.R7$(),e.Y8G("ngIf",!m.sendFromInternal),e.R7$(),e.Y8G("ngIf",!m.sendFromInternal)}}let lu=(()=>{var b;class _{constructor(E){this.commonService=E,this.swapStatus=null,this.direction=_t.Bd.SWAP_OUT,this.acceptZeroConf=!1,this.sendFromInternal=!0,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=_t.f7,this.swapTypeEnum=_t.Bd}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===_t.f7.XS&&(this.qrWidth=180)}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Qo.h))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction",acceptZeroConf:"acceptZeroConf",sendFromInternal:"sendFromInternal"},standalone:!1,decls:7,vars:1,consts:[["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","33"],["fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","33",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","50"]],template:function(D,I){if(1&D&&e.DNE(0,Yr,1,0,"ng-container",3)(1,n1,3,1,"ng-template",null,0,e.C5r)(3,k1,16,4,"ng-template",null,1,e.C5r)(5,ou,16,21,"ng-template",null,2,e.C5r),2&D){const Oe=e.sdS(2),Ct=e.sdS(4),Bt=e.sdS(6);e.Y8G("ngTemplateOutlet",null!=I.swapStatus&&I.swapStatus.error?Oe:I.direction===I.swapTypeEnum.SWAP_OUT?Ct:Bt)}},dependencies:[w.YU,w.bT,w.T3,Hi.q,Ie.DJ,Ie.sA,Ie.UI,cl.PW,Yl.Um,w.QX],encapsulation:2}))}return b(),_})(),O1=(()=>{var b;class _{constructor(){this.serviceInfo={},this.direction=_t.Bd.SWAP_OUT,this.swapTypeEnum=_t.Bd}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},standalone:!1,decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(D,I){1&D&&(e.j41(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e.EFF(4,"Service Information"),e.k0s()()(),e.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e.EFF(9,"Minimum Amount (Sats)"),e.k0s(),e.j41(10,"span",6),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",4)(14,"h4",5),e.EFF(15,"Maximum Amount (Sats)"),e.k0s(),e.j41(16,"span",6),e.EFF(17),e.nI1(18,"number"),e.k0s()()(),e.nrm(19,"mat-divider",7),e.j41(20,"div",3)(21,"div",4)(22,"h4",5),e.EFF(23,"Fee Percentage"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()(),e.j41(27,"div",4)(28,"h4",5),e.EFF(29,"Miner Fee (Sats)"),e.k0s(),e.j41(30,"span",6),e.EFF(31),e.nI1(32,"number"),e.k0s()()()()()),2&D&&(e.Y8G("expanded",!0),e.R7$(11),e.JRh(e.bMT(12,5,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal)),e.R7$(6),e.JRh(e.bMT(18,7,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal)),e.R7$(8),e.JRh(e.bMT(26,9,null==I.serviceInfo||null==I.serviceInfo.fees?null:I.serviceInfo.fees.percentage)),e.R7$(6),e.JRh(e.bMT(32,11,I.direction===I.swapTypeEnum.SWAP_OUT?null==I.serviceInfo||null==I.serviceInfo.fees||null==I.serviceInfo.fees.miner?null:I.serviceInfo.fees.miner.reverse:null==I.serviceInfo||null==I.serviceInfo.fees||null==I.serviceInfo.fees.miner?null:I.serviceInfo.fees.miner.normal)))},dependencies:[or.GK,or.Z2,or.WN,Hi.q,Ie.DJ,Ie.sA,Ie.UI,w.QX],encapsulation:2}))}return b(),_})();var Ed=l(6949);const Sc=(b,_)=>({"small-svg":b,"large-svg":_});function cu(b,_){1&b&&e.eu8(0)}function E2(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.k0s(),v.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Submarine Swaps explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Sc,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function Md(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),v.joV(),e.j41(9,"div",18)(10,"mat-card-title"),e.EFF(11,"Step 1: Deciding to Submarine Swap"),e.k0s()(),e.j41(12,"div",19)(13,"mat-card-subtitle",20),e.EFF(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Sc,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function Pc(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.j41(9,"defs")(10,"pattern",37),e.nrm(11,"use",38),e.k0s(),e.nrm(12,"image",39),e.k0s()(),v.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Sending the on-chain funds"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Sc,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function Sd(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",40)(2,"g",41),e.nrm(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.k0s(),e.j41(8,"defs")(9,"clipPath",47),e.nrm(10,"rect",48),e.k0s()()(),v.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on Lightning"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Sc,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function M2(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",49),e.nrm(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.k0s(),v.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Sc,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}let S2=(()=>{var b;class _{constructor(E){this.commonService=E,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=_t.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(E){2===E.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===E.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Qo.h))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(D,I){if(1&D&&e.DNE(0,cu,1,0,"ng-container",5)(1,E2,18,5,"ng-template",null,0,e.C5r)(3,Md,15,5,"ng-template",null,1,e.C5r)(5,Pc,19,5,"ng-template",null,2,e.C5r)(7,Sd,17,5,"ng-template",null,3,e.C5r)(9,M2,13,5,"ng-template",null,4,e.C5r),2&D){const Oe=e.sdS(2),Ct=e.sdS(4),Bt=e.sdS(6),yn=e.sdS(8),Yn=e.sdS(10);e.Y8G("ngTemplateOutlet",1===I.stepNumber?Oe:2===I.stepNumber?Ct:3===I.stepNumber?Bt:4===I.stepNumber?yn:Yn)}},dependencies:[w.YU,w.T3,K.Lc,K.dh,Ie.DJ,Ie.sA,Ie.UI,cl.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ed.k]}}))}return b(),_})();const i1=(b,_)=>({"small-svg":b,"large-svg":_});function du(b,_){1&b&&e.eu8(0)}function T2(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.k0s(),v.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Reverse Submarine Swap explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,i1,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function uu(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",21)(2,"g",22),e.nrm(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),e.nrm(9,"path",29),e.j41(10,"defs")(11,"clipPath",30),e.nrm(12,"rect",31),e.k0s()()(),v.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 1: Deciding to Reverse Submarine Swap"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,i1,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function hu(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.j41(9,"defs")(10,"pattern",40),e.nrm(11,"use",41),e.k0s(),e.nrm(12,"image",42),e.k0s()(),v.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Paying the Lightning Invoice"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,i1,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function mu(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",43)(2,"g",22),e.nrm(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.k0s(),e.j41(8,"defs")(9,"clipPath",30),e.nrm(10,"rect",49),e.k0s()()(),v.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on-chain"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,i1,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}function R1(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onSwipe(D))}),v.qSk(),e.j41(1,"svg",50),e.nrm(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.k0s(),v.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@sliderAnimation",m.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,i1,m.screenSize===m.screenSizeEnum.XS,m.screenSize!==m.screenSizeEnum.XS))}}let fu=(()=>{var b;class _{constructor(E){this.commonService=E,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=_t.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(E){2===E.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===E.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Qo.h))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(D,I){if(1&D&&e.DNE(0,du,1,0,"ng-container",5)(1,T2,18,5,"ng-template",null,0,e.C5r)(3,uu,19,5,"ng-template",null,1,e.C5r)(5,hu,19,5,"ng-template",null,2,e.C5r)(7,mu,17,5,"ng-template",null,3,e.C5r)(9,R1,13,5,"ng-template",null,4,e.C5r),2&D){const Oe=e.sdS(2),Ct=e.sdS(4),Bt=e.sdS(6),yn=e.sdS(8),Yn=e.sdS(10);e.Y8G("ngTemplateOutlet",1===I.stepNumber?Oe:2===I.stepNumber?Ct:3===I.stepNumber?Bt:4===I.stepNumber?yn:Yn)}},dependencies:[w.YU,w.T3,K.Lc,K.dh,Ie.DJ,Ie.sA,Ie.UI,cl.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[Ed.k]}}))}return b(),_})();const $h=["stepper"],Z4=()=>[1,2,3,4,5],D2=(b,_)=>({"dot-primary":b,"dot-primary-lighter":_});function P1(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(2);e.JRh(m.inputFormLabel)}}function S(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function F1(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.SpI("Amount must be greater than or equal to ",e.bMT(2,1,null==m.serviceInfo||null==m.serviceInfo.limits?null:m.serviceInfo.limits.minimal),".")}}function J4(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",e.bMT(2,1,null==m.serviceInfo||null==m.serviceInfo.limits?null:m.serviceInfo.limits.maximal),".")}}function Zh(b,_){1&b&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",46),e.EFF(3,"Accept Zero Conf"),e.k0s(),e.j41(4,"mat-icon",47),e.EFF(5,"info_outline"),e.k0s()()())}function q4(b,_){1&b&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",48),e.EFF(3,"Send from Internal Wallet"),e.k0s(),e.j41(4,"mat-icon",49),e.EFF(5,"info_outline"),e.k0s()()())}function Jh(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1," Refund address is required when not using internal wallet. "),e.k0s())}function w2(b,_){1&b&&(e.j41(0,"button",50),e.EFF(1,"Next"),e.k0s())}function Td(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onSwap())}),e.EFF(1),e.k0s()}if(2&b){const m=e.XpG(2);e.R7$(),e.SpI("Initiate ",m.swapDirectionCaption)}}function A2(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(3);e.JRh(m.addressFormLabel)}}function pu(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Address is required."),e.k0s())}function qh(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-step",15)(1,"form",16),e.DNE(2,A2,1,1,"ng-template",17),e.j41(3,"div",52)(4,"mat-radio-group",53),e.bIt("change",function(D){v.eBV(m);const I=e.XpG(2);return v.Njj(I.onAddressTypeChange(D))}),e.j41(5,"mat-radio-button",54),e.EFF(6,"Node Local Address"),e.k0s(),e.j41(7,"mat-radio-button",55),e.EFF(8,"External Address"),e.k0s()(),e.j41(9,"mat-form-field",56)(10,"mat-label"),e.EFF(11,"Address"),e.k0s(),e.nrm(12,"input",57),e.DNE(13,pu,2,0,"mat-error",24),e.k0s()(),e.j41(14,"div",29)(15,"button",58),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onSwap())}),e.EFF(16),e.k0s()()()()}if(2&b){const m=e.XpG(2);e.Y8G("stepControl",m.addressFormGroup)("editable",m.flgEditable),e.R7$(),e.Y8G("formGroup",m.addressFormGroup),e.R7$(11),e.Y8G("required","external"===m.addressFormGroup.controls.addressType.value),e.R7$(),e.Y8G("ngIf",null==m.addressFormGroup.controls.address.errors?null:m.addressFormGroup.controls.address.errors.required),e.R7$(3),e.SpI("Initiate ",m.swapDirectionCaption)}}function e3(b,_){if(1&b&&e.EFF(0),2&b){const m=e.XpG(2);e.SpI("",m.swapDirectionCaption," Status")}}function L2(b,_){if(1&b&&(e.j41(0,"mat-icon",59),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.swapStatus&&null!=m.swapStatus&&m.swapStatus.id?"check":"close")}}function I2(b,_){1&b&&e.nrm(0,"div")}function gu(b,_){1&b&&e.nrm(0,"mat-progress-bar",60)}function t3(b,_){if(1&b&&(e.j41(0,"h4",61),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.swapStatus&&m.swapStatus.error?m.swapDirectionCaption+" failed.":m.swapStatus&&m.swapStatus.id?m.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":m.swapDirectionCaption+" request placed successfully.")}}function n3(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function _u(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"div",9)(7,"button",10),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",11),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onClose())}),e.EFF(10,"X"),e.k0s()()(),e.j41(11,"mat-card-content",12)(12,"div",13)(13,"mat-vertical-stepper",14,1),e.bIt("selectionChange",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.stepSelectionChanged(D))}),e.j41(15,"mat-step",15)(16,"form",16),e.DNE(17,P1,1,1,"ng-template",17),e.j41(18,"div",18),e.nrm(19,"rtl-boltz-service-info",19),e.k0s(),e.j41(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e.EFF(23,"Amount"),e.k0s(),e.nrm(24,"input",22),e.j41(25,"mat-hint"),e.EFF(26),e.nI1(27,"number"),e.nI1(28,"number"),e.k0s(),e.j41(29,"span",23),e.EFF(30,"Sats"),e.k0s(),e.DNE(31,S,2,0,"mat-error",24)(32,F1,3,3,"mat-error",24)(33,J4,3,3,"mat-error",24),e.k0s(),e.DNE(34,Zh,6,0,"div",25)(35,q4,6,0,"div",25),e.j41(36,"div",26)(37,"mat-form-field",27)(38,"mat-label"),e.EFF(39,"Refund Address"),e.k0s(),e.nrm(40,"input",28),e.j41(41,"mat-hint"),e.EFF(42,"The address where funds will be returned in case of a failed swap"),e.k0s(),e.DNE(43,Jh,2,0,"mat-error",24),e.k0s()()(),e.j41(44,"div",29),e.DNE(45,w2,2,0,"button",30)(46,Td,2,1,"button",31),e.k0s()()(),e.DNE(47,qh,17,6,"mat-step",32),e.j41(48,"mat-step",33)(49,"form",16),e.DNE(50,e3,1,1,"ng-template",17),e.j41(51,"div",34)(52,"mat-expansion-panel",35)(53,"mat-expansion-panel-header")(54,"mat-panel-title")(55,"span",36),e.EFF(56),e.DNE(57,L2,2,1,"mat-icon",37),e.k0s()()(),e.DNE(58,I2,1,0,"div",38),e.k0s(),e.DNE(59,gu,1,0,"mat-progress-bar",39),e.k0s(),e.DNE(60,t3,2,1,"h4",40),e.j41(61,"div",29),e.DNE(62,n3,2,0,"button",41),e.k0s()()()(),e.j41(63,"div",42)(64,"button",43),e.EFF(65,"Close"),e.k0s()()()()()()}if(2&b){const m=e.XpG(),E=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(3),e.Y8G("ngClass",m.screenSize===m.screenSizeEnum.XS||m.screenSize===m.screenSizeEnum.SM?"flex-83":"flex-91"),e.R7$(2),e.JRh(m.swapDirectionCaption),e.R7$(),e.Y8G("ngClass",m.screenSize===m.screenSizeEnum.XS||m.screenSize===m.screenSizeEnum.SM?"flex-17":"flex-9"),e.R7$(7),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",m.inputFormGroup)("editable",m.flgEditable),e.R7$(),e.Y8G("formGroup",m.inputFormGroup),e.R7$(3),e.Y8G("serviceInfo",m.serviceInfo)("direction",m.direction),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.Lme("Range: ",e.bMT(27,34,null==m.serviceInfo||null==m.serviceInfo.limits?null:m.serviceInfo.limits.minimal),"-",e.bMT(28,36,null==m.serviceInfo||null==m.serviceInfo.limits?null:m.serviceInfo.limits.maximal)),e.R7$(5),e.Y8G("ngIf",null==m.inputFormGroup||null==m.inputFormGroup.controls||null==m.inputFormGroup.controls.amount||null==m.inputFormGroup.controls.amount.errors?null:m.inputFormGroup.controls.amount.errors.required),e.R7$(),e.Y8G("ngIf",null==m.inputFormGroup||null==m.inputFormGroup.controls||null==m.inputFormGroup.controls.amount||null==m.inputFormGroup.controls.amount.errors?null:m.inputFormGroup.controls.amount.errors.min),e.R7$(),e.Y8G("ngIf",null==m.inputFormGroup||null==m.inputFormGroup.controls||null==m.inputFormGroup.controls.amount||null==m.inputFormGroup.controls.amount.errors?null:m.inputFormGroup.controls.amount.errors.max),e.R7$(),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_IN&&m.isSendFromInternalCompatible),e.R7$(5),e.Y8G("required",!(null!=m.inputFormGroup&&null!=m.inputFormGroup.controls&&m.inputFormGroup.controls.sendFromInternal.value)),e.R7$(3),e.Y8G("ngIf",null==m.inputFormGroup||null==m.inputFormGroup.controls||null==m.inputFormGroup.controls.refundAddress||null==m.inputFormGroup.controls.refundAddress.errors?null:m.inputFormGroup.controls.refundAddress.errors.required),e.R7$(2),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_IN),e.R7$(),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("stepControl",m.statusFormGroup),e.R7$(),e.Y8G("formGroup",m.statusFormGroup),e.R7$(3),e.Y8G("expanded",!!m.swapStatus),e.R7$(4),e.JRh(m.swapStatus?m.swapStatus.id?m.swapDirectionCaption+" request details":m.swapDirectionCaption+" error details":"Waiting for "+m.swapDirectionCaption+" request..."),e.R7$(),e.Y8G("ngIf",m.swapStatus),e.R7$(),e.Y8G("ngIf",!m.swapStatus)("ngIfElse",E),e.R7$(),e.Y8G("ngIf",!m.swapStatus),e.R7$(),e.Y8G("ngIf",m.swapStatus),e.R7$(2),e.Y8G("ngIf",m.swapStatus&&(m.swapStatus.error||!m.swapStatus.id)),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function vu(b,_){if(1&b&&e.nrm(0,"rtl-boltz-swap-status",63),2&b){const m=e.XpG();e.Y8G("swapStatus",m.swapStatus)("direction",m.direction)("acceptZeroConf",null==m.inputFormGroup||null==m.inputFormGroup.controls?null:m.inputFormGroup.controls.acceptZeroConf.value)("sendFromInternal",null==m.inputFormGroup||null==m.inputFormGroup.controls?null:m.inputFormGroup.controls.sendFromInternal.value)}}function i3(b,_){if(1&b){const m=e.RV6();e.j41(0,"rtl-boltz-swapout-info-graphics",79),e.mxI("stepNumberChange",function(D){v.eBV(m);const I=e.XpG(2);return e.DH7(I.stepNumber,D)||(I.stepNumber=D),v.Njj(D)}),e.k0s()}if(2&b){const m=e.XpG(2);e.Y8G("animationDirection",m.animationDirection),e.R50("stepNumber",m.stepNumber)}}function yu(b,_){if(1&b){const m=e.RV6();e.j41(0,"rtl-boltz-swapin-info-graphics",79),e.mxI("stepNumberChange",function(D){v.eBV(m);const I=e.XpG(2);return e.DH7(I.stepNumber,D)||(I.stepNumber=D),v.Njj(D)}),e.k0s()}if(2&b){const m=e.XpG(2);e.Y8G("animationDirection",m.animationDirection),e.R50("stepNumber",m.stepNumber)}}function Fc(b,_){if(1&b){const m=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG(2);return v.Njj(I.onStepChanged(D))}),e.nrm(1,"p",81),e.k0s()}if(2&b){const m=_.$implicit,E=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,D2,E.stepNumber===m,E.stepNumber!==m))}}function a3(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onReadMore())}),e.EFF(1,"Read More"),e.k0s()}}function Dd(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function bu(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return D.flgShowInfo=!1,v.Njj(D.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function k2(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return D.flgShowInfo=!1,v.Njj(D.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function em(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onStepChanged(D.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function s3(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",87),e.bIt("click",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onStepChanged(D.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function O2(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",64)(1,"div",18)(2,"mat-card-header",65)(3,"div",66),e.nrm(4,"span",8),e.k0s(),e.j41(5,"div",67)(6,"button",11),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return D.flgShowInfo=!1,v.Njj(D.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",68),e.DNE(9,i3,1,2,"rtl-boltz-swapout-info-graphics",69)(10,yu,1,2,"rtl-boltz-swapin-info-graphics",69),e.k0s(),e.j41(11,"div",70),e.DNE(12,Fc,2,4,"span",71),e.k0s(),e.j41(13,"div",72),e.DNE(14,a3,2,0,"button",73)(15,Dd,2,0,"button",74)(16,bu,2,0,"button",75)(17,k2,2,0,"button",76)(18,em,2,0,"button",77)(19,s3,2,0,"button",78),e.k0s()()()}if(2&b){const m=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",m.direction===m.swapTypeEnum.SWAP_IN),e.R7$(2),e.Y8G("ngForOf",e.lJ4(10,Z4)),e.R7$(2),e.Y8G("ngIf",5===m.stepNumber),e.R7$(),e.Y8G("ngIf",5===m.stepNumber),e.R7$(),e.Y8G("ngIf",5===m.stepNumber),e.R7$(),e.Y8G("ngIf",m.stepNumber<5),e.R7$(),e.Y8G("ngIf",m.stepNumber>1&&m.stepNumber<5),e.R7$(),e.Y8G("ngIf",m.stepNumber<5)}}let r3=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt,yn){this.dialogRef=E,this.data=D,this.boltzService=I,this.formBuilder=Oe,this.decimalPipe=Ct,this.logger=Bt,this.commonService=yn,this.faInfoCircle=Ti.iW_,this.boltzInfo=null,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=_t.Bd,this.direction=_t.Bd.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=_t.f7,this.animationDirection="forward",this.flgEditable=!0,this.isSendFromInternalCompatible=!0,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||_t.Bd.SWAP_OUT,this.swapDirectionCaption=this.direction===_t.Bd.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[hi.k0.required,hi.k0.min(this.serviceInfo.limits?.minimal||0),hi.k0.max(this.serviceInfo.limits?.maximal||0)]],acceptZeroConf:[!1],sendFromInternal:[!0],refundAddress:[{value:"",disabled:!0}]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[hi.k0.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.boltzService.boltzInfoChanged.pipe((0,li.Q)(this.unSubs[0])).subscribe({next:E=>{this.boltzInfo=E,this.isSendFromInternalCompatible=this.commonService.isVersionCompatible(this.boltzInfo.version,"2.0.0")},error:E=>{this.boltzInfo={version:"2.0.0"},this.logger.error(E)}})}ngAfterViewInit(){this.direction===_t.Bd.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===_t.Bd.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.addressFormGroup.setErrors({Invalid:!0})}),this.direction===_t.Bd.SWAP_IN&&this.inputFormGroup.controls.sendFromInternal.valueChanges.pipe((0,li.Q)(this.unSubs[4])).subscribe(()=>{this.onSendFromInternalChange()})}onSendFromInternalChange(){this.inputFormGroup.controls.sendFromInternal.value?(this.inputFormGroup.controls.refundAddress.disable(),this.inputFormGroup.controls.refundAddress.clearValidators(),this.inputFormGroup.controls.refundAddress.updateValueAndValidity()):(this.inputFormGroup.controls.refundAddress.enable(),this.inputFormGroup.controls.refundAddress.setValidators([hi.k0.required]),this.inputFormGroup.controls.refundAddress.updateValueAndValidity())}onAddressTypeChange(E){"external"===E.value?(this.addressFormGroup.controls.address.setValidators([hi.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===_t.Bd.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===_t.Bd.SWAP_IN){const E=this.inputFormGroup.controls.sendFromInternal.value?null:this.inputFormGroup.controls.refundAddress.value,D=this.isSendFromInternalCompatible?this.inputFormGroup.controls.sendFromInternal.value:null;if(!D&&!E)return this.stepper.selected?.stepControl.setErrors({Invalid:!0}),void(this.flgEditable=!0);this.boltzService.swapIn(this.inputFormGroup.controls.amount.value,D,E).pipe((0,li.Q)(this.unSubs[2])).subscribe({next:I=>{this.swapStatus=I,this.boltzService.listSwaps(),this.flgEditable=!0},error:I=>{this.swapStatus={error:I},this.flgEditable=!0,this.logger.error(I)}})}else this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",this.inputFormGroup.controls.acceptZeroConf.value).pipe((0,li.Q)(this.unSubs[3])).subscribe({next:D=>{this.swapStatus=D,this.boltzService.listSwaps(),this.flgEditable=!0},error:D=>{this.swapStatus={error:D},this.flgEditable=!0,this.logger.error(D)}})}stepSelectionChanged(E){switch(E.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:if(this.inputFormGroup.controls.amount.value)if(this.direction===_t.Bd.SWAP_IN){let D=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Send from Internal Wallet: "+(this.inputFormGroup.controls.sendFromInternal.value?"Yes":"No");!this.inputFormGroup.controls.sendFromInternal.value&&this.inputFormGroup.controls.refundAddress.value&&(D+=" | Refund Address: "+this.inputFormGroup.controls.refundAddress.value),this.inputFormLabel=D}else this.inputFormLabel=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Zero Conf: "+(this.inputFormGroup.controls.acceptZeroConf.value?"Yes":"No");else this.inputFormLabel="Amount to "+this.swapDirectionCaption;this.addressFormLabel="Withdrawal Address"}E.selectedIndex{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ro.CP),e.rXU(Ro.Vh),e.rXU(rc),e.rXU(hi.ze),e.rXU(w.QX),e.rXU(Aa.gP),e.rXU(Qo.h))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(D,I){if(1&D&&e.GBs($h,5),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.stepper=Oe.first)}},standalone:!1,decls:4,vars:2,consts:[["swapStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"ngClass"],[1,"page-title"],["fxLayoutAlign","end end",3,"ngClass"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch",4,"ngIf"],["disabled","direction === swapTypeEnum.SWAP_IN && isSendFromInternalCompatible && !inputFormGroup?.controls?.sendFromInternal.value","fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-1"],["fxLayout","column","fxFlex","100"],["matInput","","type","text","tabindex","3","formControlName","refundAddress",3,"required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","acceptZeroConf","name","acceptZeroConf"],["matTooltip","Only recommended for smaller payments, involves trust in Boltz","matTooltipPosition","above",1,"info-icon","mt-2"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","sendFromInternal","name","sendFromInternal"],["matTooltip","Pay from the node's onchain wallet","matTooltipPosition","above",1,"info-icon","mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction","acceptZeroConf","sendFromInternal"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(D,I){1&D&&e.DNE(0,_u,66,38,"div",2)(1,vu,1,4,"ng-template",null,0,e.C5r)(3,O2,20,11,"div",3),2&D&&(e.Y8G("ngIf",!I.flgShowInfo),e.R7$(3),e.Y8G("ngIf",I.flgShowInfo))},dependencies:[w.YU,w.Sq,w.bT,hi.qT,hi.me,hi.Q0,hi.BC,hi.cb,hi.YS,hi.j4,hi.JD,Ro.tx,es.$z,K.m2,K.MM,or.GK,or.Z2,or.WN,qc.An,br.fg,Ma.rl,Ma.nJ,Ma.MV,Ma.TL,Ma.yw,vd.HM,dd.VT,dd._g,Ie.DJ,Ie.sA,Ie.UI,cl.PW,bc.sG,fd.oV,Yo.V5,Yo.Ti,Yo.M6,Yo.F7,Kl.N,lu,O1,S2,fu,w.QX],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[iu.C]}}))}return b(),_})();const o3=()=>["all"],R2=b=>({"overflow-auto error-border":b,"overflow-auto":!0}),N1=()=>["no_swap"],a1=b=>({width:b}),Cu=b=>({"display-none":b});function xu(b,_){if(1&b&&(e.j41(0,"mat-option",42),e.EFF(1),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.Y8G("value",m),e.R7$(),e.JRh(E.getLabel(m))}}function Eu(b,_){1&b&&e.nrm(0,"mat-progress-bar",43)}function tm(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Status"),e.k0s())}function Mu(b,_){if(1&b&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.JRh(E.swapStateEnum[null==m?null:m.status])}}function P2(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Swap ID"),e.k0s())}function F2(b,_){if(1&b&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(null==m?null:m.id)}}function N2(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Claim Address"),e.k0s())}function B2(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.claimAddress)}}function l3(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Lockup Address"),e.k0s())}function c3(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.lockupAddress)}}function d3(b,_){1&b&&(e.j41(0,"th",48),e.EFF(1,"Onchain Amount (Sats)"),e.k0s())}function Su(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.onchainAmount))}}function z2(b,_){1&b&&(e.j41(0,"th",48),e.EFF(1,"Expected Amount (Sats)"),e.k0s())}function u3(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.expectedAmount))}}function wd(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Error"),e.k0s())}function h3(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.error)}}function Ad(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Private Key"),e.k0s())}function Ld(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.privateKey)}}function nm(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Preimage"),e.k0s())}function Tu(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.preimage)}}function B1(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Redeem Script"),e.k0s())}function Id(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.redeemScript)}}function m3(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Invoice"),e.k0s())}function V2(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,a1,E.screenSize===E.screenSizeEnum.XS?"6rem":E.colWidth)),e.R7$(2),e.JRh(null==m?null:m.invoice)}}function f3(b,_){1&b&&(e.j41(0,"th",48),e.EFF(1,"Timeout Block Height"),e.k0s())}function kd(b,_){if(1&b&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&b){const m=_.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==m?null:m.timeoutBlockHeight))}}function p3(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Lockup Tx ID"),e.k0s())}function cc(b,_){if(1&b&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(null==m?null:m.lockupTransactionId)}}function Nc(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Claim Tx ID"),e.k0s())}function im(b,_){if(1&b&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(null==m?null:m.claimTransactionId)}}function am(b,_){1&b&&(e.j41(0,"th",44),e.EFF(1,"Refund Tx ID"),e.k0s())}function z1(b,_){if(1&b&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.R7$(),e.JRh(null==m?null:m.refundTransactionId)}}function g3(b,_){if(1&b){const m=e.RV6();e.j41(0,"th",50)(1,"div",51)(2,"mat-select",52),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",53),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Du(b,_){if(1&b){const m=e.RV6();e.j41(0,"td",54)(1,"button",55),e.bIt("click",function(D){const I=v.eBV(m).$implicit,Oe=e.XpG();return v.Njj(Oe.onSwapClick(I,D))}),e.EFF(2,"View Info"),e.k0s()()}}function wu(b,_){if(1&b&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(2);e.R7$(),e.JRh(m.emptyTableMessage)}}function Au(b,_){if(1&b&&(e.j41(0,"td",56),e.DNE(1,wu,2,1,"p",57),e.k0s()),2&b){const m=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=m.listSwaps&&m.listSwaps.data)||(null==m.listSwaps||null==m.listSwaps.data?null:m.listSwaps.data.length)<1)}}function _3(b,_){if(1&b&&e.nrm(0,"tr",58),2&b){const m=e.XpG();e.Y8G("ngClass",e.eq3(1,Cu,(null==m.listSwaps?null:m.listSwaps.data)&&(null==m.listSwaps||null==m.listSwaps.data?null:m.listSwaps.data.length)>0))}}function Lu(b,_){1&b&&e.nrm(0,"tr",59)}function v3(b,_){1&b&&e.nrm(0,"tr",60)}let Iu=(()=>{var b;class _{constructor(E,D,I,Oe,Ct){this.logger=E,this.commonService=D,this.store=I,this.boltzService=Oe,this.camelCaseWithReplace=Ct,this.selectedSwapType=_t.Bd.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=_t._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:_t.md,sortBy:"status",sortOrder:_t.oi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:_t.md,sortBy:"status",sortOrder:_t.oi.DESCENDING},this.swapStateEnum=_t.q9,this.swapTypeEnum=_t.Bd,this.faHistory=Ti.Int,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Ra.I6([]),this.selFilter="",this.pageSize=_t.md,this.pageSizeOptions=_t.xp,this.screenSize="",this.screenSizeEnum=_t.f7,this.unSubs=[new gi.B,new gi.B,new gi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(E){E.selectedSwapType&&!E.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===_t.Bd.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(md.$G).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.tableSettingSwapOut=E.pageSettings.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSettingSwapOut.tableId)||_t.ZC.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=E.pageSettings.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSettingSwapIn.tableId)||_t.ZC.find(D=>D.pageId===this.PAGE_ID)?.tables.find(D=>D.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===_t.Bd.SWAP_IN?(this.displayedColumns=this.screenSize===_t.f7.XS||this.screenSize===_t.f7.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:_t.md):(this.displayedColumns=this.screenSize===_t.f7.XS||this.screenSize===_t.f7.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:_t.md)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(E){const I=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===_t.Bd.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(Oe=>Oe.column===E);return I?I.label?I.label:this.camelCaseWithReplace.transform(I.column,"_"):this.commonService.titleCase(E)}setFilterPredicate(){this.listSwaps.filterPredicate=(E,D)=>{let I="";switch(this.selFilterBy){case"all":I=JSON.stringify(E).toLowerCase();break;case"status":I=E?.status?this.swapStateEnum[E?.status]:"";break;default:I=typeof E[this.selFilterBy]>"u"?"":"string"==typeof E[this.selFilterBy]?E[this.selFilterBy].toLowerCase():"boolean"==typeof E[this.selFilterBy]?E[this.selFilterBy]?"yes":"no":E[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===I.indexOf(D):I.includes(D)}}onSwapClick(E,D){this.boltzService.swapInfo(E.id||"").pipe((0,li.Q)(this.unSubs[1])).subscribe(I=>{this.store.dispatch((0,Bi.xO)({payload:{data:{type:_t.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:_t.q9[(I=this.selectedSwapType===_t.Bd.SWAP_IN?I.swap:I.reverseSwap).status],title:"Status",width:50,type:_t.UN.STRING},{key:"id",value:I.id,title:"ID",width:50,type:_t.UN.STRING}],[{key:"amount",value:I.onchainAmount?I.onchainAmount:I.expectedAmount?I.expectedAmount:0,title:I.onchainAmount?"Onchain Amount (Sats)":I.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:_t.UN.NUMBER},{key:"timeoutBlockHeight",value:I.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:_t.UN.NUMBER}],[{key:"address",value:I.claimAddress?I.claimAddress:I.lockupAddress?I.lockupAddress:"",title:I.claimAddress?"Claim Address":I.lockupAddress?"Lockup Address":"Address",width:100,type:_t.UN.STRING}],[{key:"invoice",value:I.invoice,title:"Invoice",width:100,type:_t.UN.STRING}],[{key:"privateKey",value:I.privateKey,title:"Private Key",width:100,type:_t.UN.STRING}],[{key:"preimage",value:I.preimage,title:"Preimage",width:100,type:_t.UN.STRING}],[{key:"redeemScript",value:I.redeemScript,title:"Redeem Script",width:100,type:_t.UN.STRING}],[{key:"lockupTransactionId",value:I.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:_t.UN.STRING},{key:"transactionId",value:I.claimTransactionId?I.claimTransactionId:I.refundTransactionId?I.refundTransactionId:"",title:I.claimTransactionId?"Claim Transaction ID":I.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:_t.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(E){this.listSwaps=new Ra.I6(E?[...E]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(D,I)=>D[I]&&isNaN(D[I])?D[I].toLocaleLowerCase():D[I]?+D[I]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===_t.Bd.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(mi.il),e.rXU(rc),e.rXU(dl.VD))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-swaps"]],viewQuery:function(D,I){if(1&D&&(e.GBs(Oc.B4,5),e.GBs(kc.iy,5)),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.sort=Oe.first),e.mGM(Oe=e.lsd())&&(I.paginator=Oe.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:sl.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:kc.xX,useValue:(0,_t.on)("Swaps")}]),e.OA$],decls:76,vars:20,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selFilterBy,Bt)||(I.selFilterBy=Bt),v.Njj(Bt)}),e.bIt("selectionChange",function(){return v.eBV(Oe),I.selFilter="",v.Njj(I.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,xu,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.selFilter,Bt)||(I.selFilter=Bt),v.Njj(Bt)}),e.bIt("input",function(){return v.eBV(Oe),v.Njj(I.applyFilter())})("keyup",function(){return v.eBV(Oe),v.Njj(I.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,Eu,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,tm,2,0,"th",16)(24,Mu,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,P2,2,0,"th",16)(27,F2,2,1,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,N2,2,0,"th",16)(30,B2,4,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,l3,2,0,"th",16)(33,c3,4,4,"td",17),e.bVm(),e.qex(34,21),e.DNE(35,d3,2,0,"th",22)(36,Su,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,z2,2,0,"th",22)(39,u3,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,wd,2,0,"th",16)(42,h3,4,4,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,Ad,2,0,"th",16)(45,Ld,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,nm,2,0,"th",16)(48,Tu,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,B1,2,0,"th",16)(51,Id,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,m3,2,0,"th",16)(54,V2,4,4,"td",17),e.bVm(),e.qex(55,29),e.DNE(56,f3,2,0,"th",22)(57,kd,4,3,"td",17),e.bVm(),e.qex(58,30),e.DNE(59,p3,2,0,"th",16)(60,cc,2,1,"td",17),e.bVm(),e.qex(61,31),e.DNE(62,Nc,2,0,"th",16)(63,im,2,1,"td",17),e.bVm(),e.qex(64,32),e.DNE(65,am,2,0,"th",16)(66,z1,2,1,"td",17),e.bVm(),e.qex(67,33),e.DNE(68,g3,6,0,"th",34)(69,Du,3,0,"td",35),e.bVm(),e.qex(70,36),e.DNE(71,Au,2,1,"td",37),e.bVm(),e.DNE(72,_3,1,3,"tr",38)(73,Lu,1,0,"tr",39)(74,v3,1,0,"tr",40),e.k0s(),e.nrm(75,"mat-paginator",41),e.k0s()()()}2&D&&(e.R7$(3),e.Y8G("icon",I.faHistory),e.R7$(2),e.SpI("",I.swapCaption," History"),e.R7$(5),e.R50("ngModel",I.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,o3).concat(I.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",I.selFilter),e.R7$(3),e.Y8G("ngIf",!0===I.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",I.selectedSwapType===I.swapTypeEnum.SWAP_IN?I.tableSettingSwapIn.sortBy:I.tableSettingSwapOut.sortBy)("matSortDirection",I.selectedSwapType===I.swapTypeEnum.SWAP_IN?I.tableSettingSwapIn.sortOrder:I.tableSettingSwapOut.sortOrder)("dataSource",I.listSwaps)("ngClass",e.eq3(17,R2,"error"===I.flgLoading[0])),e.R7$(52),e.Y8G("matFooterRowDef",e.lJ4(19,N1)),e.R7$(),e.Y8G("matHeaderRowDef",I.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",I.displayedColumns),e.R7$(),e.Y8G("pageSize",I.pageSize)("pageSizeOptions",I.pageSizeOptions)("showFirstLastButtons",I.screenSize!==I.screenSizeEnum.XS))},dependencies:[w.YU,w.Sq,w.bT,w.B3,hi.me,hi.BC,hi.vS,os.aY,es.$z,br.fg,Ma.rl,Ma.nJ,vd.HM,Ie.DJ,Ie.sA,Ie.UI,cl.PW,cl.eI,sl.VO,sl.$2,ac.wT,Oc.B4,Oc.aE,Ra.Zl,Ra.tL,Ra.ji,Ra.cC,Ra.YV,Ra.iL,Ra.Zq,Ra.xW,Ra.KS,Ra.$R,Ra.Qo,Ra.YZ,Ra.NB,Ra.iF,kc.iy,go.ZF,go.Ld,w.QX],encapsulation:2}))}return b(),_})();const y3=b=>["../",b];function U2(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG();return v.Njj(I.onSelectedIndexChange(D))}),e.EFF(1),e.k0s()}if(2&b){const m=_.$implicit,E=e.XpG();e.Y8G("active",E.activeTab.link===m.link)("routerLink",e.eq3(3,y3,m.link)),e.R7$(),e.JRh(m.name)}}let sm=(()=>{var b;class _{constructor(E,D,I){this.router=E,this.store=D,this.boltzService=I,this.swapTypeEnum=_t.Bd,this.selectedSwapType=_t.Bd.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.boltzService.getBoltzInfo(),this.boltzService.listSwaps();const E=this.links.find(D=>this.router.url.includes(D.link));this.activeTab=E||this.links[0],this.selectedSwapType=E&&"swapin"===E.link?_t.Bd.SWAP_IN:_t.Bd.SWAP_OUT,this.router.events.pipe((0,li.Q)(this.unSubs[0]),(0,za.p)(D=>D instanceof Ha.gx)).subscribe({next:D=>{const I=this.links.find(Oe=>D.urlAfterRedirects.includes(Oe.link));this.activeTab=I||this.links[0],this.selectedSwapType=I&&"swapin"===I.link?_t.Bd.SWAP_IN:_t.Bd.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,li.Q)(this.unSubs[1])).subscribe({next:D=>{this.swaps=D,this.swapsData=this.selectedSwapType===_t.Bd.SWAP_IN&&D.swaps?D.swaps:this.selectedSwapType===_t.Bd.SWAP_OUT&&D.reverseSwaps?D.reverseSwaps:[],this.flgLoading[0]=!1},error:D=>{this.flgLoading[0]="error",this.emptyTableMessage=D.message?D.message:"No swap "+(this.selectedSwapType===_t.Bd.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(E){"swapin"===E.link?(this.selectedSwapType=_t.Bd.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=_t.Bd.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(E){this.boltzService.serviceInfo().pipe((0,li.Q)(this.unSubs[2])).subscribe({next:D=>{this.store.dispatch((0,Bi.xO)({payload:{data:{serviceInfo:D,direction:E,component:r3}}}))}})}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ha.Ix),e.rXU(mi.il),e.rXU(rc))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-boltz-root"]],standalone:!1,decls:20,vars:7,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1),v.qSk(),e.j41(1,"svg",2)(2,"g",3)(3,"g",4),e.nrm(4,"circle",5)(5,"path",6)(6,"path",7),e.k0s()()(),v.joV(),e.j41(7,"span",8),e.EFF(8,"Boltz"),e.k0s()(),e.j41(9,"div",9)(10,"mat-card")(11,"mat-card-content",10)(12,"nav",11),e.DNE(13,U2,2,5,"div",12),e.k0s(),e.nrm(14,"mat-tab-nav-panel",null,0),e.j41(16,"div",13)(17,"button",14),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onSwap(I.selectedSwapType))}),e.EFF(18),e.k0s()(),e.nrm(19,"rtl-boltz-swaps",15),e.k0s()()()}if(2&D){const Oe=e.sdS(15);e.R7$(12),e.Y8G("tabPanel",Oe),e.R7$(),e.Y8G("ngForOf",I.links),e.R7$(5),e.SpI("Start ",I.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",I.selectedSwapType)("swapsData",I.swapsData)("flgLoading",I.flgLoading)("emptyTableMessage",I.emptyTableMessage)}},dependencies:[w.Sq,es.$z,K.RN,K.m2,Ie.DJ,Ie.sA,Ie.UI,Ut.Bu,Ut.hQ,Ut.Ql,lo.Wk,Iu],encapsulation:2}))}return b(),_})();class Vr{constructor(_){this.help=_}}function Ou(b,_){if(1&b&&(e.j41(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.k0s()(),e.j41(4,"mat-panel-description",9),e.nrm(5,"span",10),e.j41(6,"a",11),e.EFF(7),e.k0s()()()),2&b){const m=e.XpG().$implicit,E=e.XpG();e.R7$(3),e.JRh(m.help.question),e.R7$(2),e.Y8G("innerHTML",m.help.answer,e.npT),e.R7$(),e.Y8G("routerLink",E.flgLoggedIn?m.help.link:"/login"),e.R7$(),e.JRh(E.flgLoggedIn?m.help.linkCaption:"Login to go to the page")}}function b3(b,_){if(1&b&&(e.j41(0,"div",6),e.DNE(1,Ou,8,4,"mat-expansion-panel",7),e.k0s()),2&b){const m=_.$implicit,E=e.XpG();e.R7$(),e.Y8G("ngIf","ALL"===m.help.lnImplementation||m.help.lnImplementation===E.selNode.lnImplementation)}}let s1=(()=>{var b;class _{constructor(E,D){this.store=E,this.sessionService=D,this.helpTopics=[],this.faQuestion=Ti.EvL,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{this.selNode=E,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.flgLoggedIn=!!E.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new Vr({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab. \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new Vr({question:"Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment Request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new Vr({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new Vr({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new Vr({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new Vr({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new Vr({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/nodesettings",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new Vr({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(mi.il),e.rXU(ji.Q))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-help"]],standalone:!1,decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"fa-icon",2),e.j41(3,"span",3),e.EFF(4,"Help"),e.k0s()(),e.j41(5,"div",4)(6,"div",0),e.DNE(7,b3,2,1,"div",5),e.k0s()()()),2&D&&(e.R7$(2),e.Y8G("icon",I.faQuestion),e.R7$(5),e.Y8G("ngForOf",I.helpTopics))},dependencies:[w.Sq,w.bT,os.aY,or.GK,or.Z2,or.WN,or.Q6,Ie.DJ,Ie.sA,Ie.UI,lo.Wk],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}))}return b(),_})();var Ru=l(4572);function H2(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}let Pu=(()=>{var b;class _{constructor(E,D){this.dialogRef=E,this.store=D,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Bi.R$)({payload:{twoFAToken:this.token}}))}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ro.CP),e.rXU(mi.il))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-login-token"]],standalone:!1,decls:19,vars:2,consts:[["tokenForm","ngForm"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["autoFocus","","matInput","","type","text","id","token","name","token","tabindex","2","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Two Factor Token"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("ngSubmit",function(){return v.eBV(Oe),v.Njj(I.onVerifyToken())}),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"Token"),e.k0s(),e.j41(14,"input",9),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.token,Bt)||(I.token=Bt),v.Njj(Bt)}),e.k0s(),e.DNE(15,H2,2,0,"mat-error",10),e.k0s(),e.j41(16,"div",11)(17,"button",12),e.EFF(18,"Verify Token"),e.k0s()()()()()()}2&D&&(e.R7$(14),e.R50("ngModel",I.token),e.R7$(),e.Y8G("ngIf",!I.token))},dependencies:[w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,es.$z,K.m2,K.MM,br.fg,Ma.rl,Ma.nJ,Ma.TL,Ie.DJ,Ie.sA,Ie.UI,Kl.N],encapsulation:2}))}return b(),_})();const C3=b=>({"padding-gap-large":b}),r1=(b,_)=>({"font-size-200":b,"font-size-300":_});function Fu(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function Nu(b,_){if(1&b&&(e.j41(0,"p",21)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&b){const m=e.XpG();e.R7$(3),e.SpI(" ",m.loginErrorMessage," ")}}function Bc(b,_){if(1&b&&(e.j41(0,"p",23)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&b){const m=e.XpG();e.R7$(3),e.SpI(" ",m.logoutReason," ")}}let W2=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt){this.actions=E,this.logger=D,this.store=I,this.rtlEffects=Oe,this.commonService=Ct,this.sessionService=Bt,this.faUnlockAlt=Ti.HEq,this.logoutReason="",this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=_t.f7,this.loginErrorMessage="",this.apiCallStatusEnum=_t.wn,this.unSubs=[new gi.B,new gi.B,new gi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Ru.z)([this.store.select(Oa.Kq),this.store.select(Oa.E2)]).pipe((0,li.Q)(this.unSubs[0])).subscribe(([D,I])=>{this.loginErrorMessage="",D.status===_t.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof D.message?JSON.stringify(D.message):D.message),this.logger.error(D.message)),I.status===_t.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof I.message?JSON.stringify(I.message):I.message),this.logger.error(I.message))}),this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[1])).subscribe(D=>{this.appConfig=D,this.logger.info(D)}),this.actions.pipe((0,za.p)(D=>D.type===_t.aU.LOGOUT),(0,Dr.s)(1)).subscribe(D=>{this.logoutReason=D.payload});const E=this.sessionService.getItem("logoutReason");E&&(this.logoutReason=E,this.sessionService.removeItem("logoutReason"))}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.logoutReason="",this.appConfig.enable2FA?(this.store.dispatch((0,Bi.xO)({payload:{maxWidth:"35rem",data:{component:Pu}}})),this.rtlEffects.closeAlert.pipe((0,Dr.s)(1)).subscribe(E=>{E&&this.store.dispatch((0,Bi.iD)({payload:{password:_c(this.password),defaultPassword:_t.Ah.includes(this.password.toLowerCase()),twoFAToken:E.twoFAToken}}))})):this.store.dispatch((0,Bi.iD)({payload:{password:_c(this.password),defaultPassword:_t.Ah.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.logoutReason="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Uo.En),e.rXU(Aa.gP),e.rXU(mi.il),e.rXU(Ko.H),e.rXU(Qo.h),e.rXU(ji.Q))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-login"]],standalone:!1,decls:29,vars:14,consts:[["loginForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"ngModelChange","type","ngModel"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",3,"click"],[4,"ngIf"],["class","color-warn pre-wrap","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","color-warn pre-wrap","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1","mb-2",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"],["fxLayoutAlign","center center",1,"mr-3px","icon-small"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"div",5),e.nrm(5,"img",6),e.k0s(),e.j41(6,"div",7)(7,"mat-card-header",8)(8,"mat-card-title",9)(9,"span",10),e.EFF(10,"Welcome"),e.k0s()()(),e.j41(11,"mat-card-content",11)(12,"form",12,0)(14,"mat-form-field")(15,"mat-label"),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",13),e.mxI("ngModelChange",function(Bt){return v.eBV(Oe),e.DH7(I.password,Bt)||(I.password=Bt),v.Njj(Bt)}),e.k0s(),e.j41(18,"button",14),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.flgShow=!I.flgShow)}),e.j41(19,"mat-icon"),e.EFF(20),e.k0s()(),e.DNE(21,Fu,2,0,"mat-error",15),e.k0s(),e.DNE(22,Nu,4,1,"p",16)(23,Bc,4,1,"p",17),e.j41(24,"div",18)(25,"button",19),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.resetData())}),e.EFF(26,"Clear"),e.k0s(),e.j41(27,"button",20),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onLogin())}),e.EFF(28,"Login"),e.k0s()()()()()()()()()}2&D&&(e.R7$(6),e.Y8G("ngClass",e.eq3(9,C3,I.screenSize===I.screenSizeEnum.XS)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,r1,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS)),e.R7$(9),e.Y8G("type",I.flgShow?"text":"password"),e.R50("ngModel",I.password),e.R7$(),e.BMQ("aria-label","Hide password"),e.R7$(2),e.JRh(I.flgShow?"visibility_off":"visibility"),e.R7$(),e.Y8G("ngIf",!I.password),e.R7$(),e.Y8G("ngIf",""!==I.loginErrorMessage),e.R7$(),e.Y8G("ngIf",""!==I.logoutReason))},dependencies:[w.YU,w.bT,hi.qT,hi.me,hi.BC,hi.cb,hi.YS,hi.vS,hi.cV,es.$z,Jc.iY,K.RN,K.m2,K.MM,K.dh,qc.An,br.fg,Ma.rl,Ma.nJ,Ma.TL,Ma.yw,Ie.DJ,Ie.sA,Ie.UI,cl.PW,Kl.N],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width:56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width:37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:90%;cursor:pointer}"]}))}return b(),_})();var V1=l(13);let x3=(()=>{var b;class _{constructor(E,D){this.activatedRoute=E,this.router=D,this.error={errorCode:"",errorMessage:""},this.faTimes=Ti.GRI,this.unsubs=[new gi.B,new gi.B]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,li.Q)(this.unsubs[0])).subscribe(E=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Ha.nX),e.rXU(Ha.Ix))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-error"]],standalone:!1,decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e.nrm(4,"fa-icon",4),e.j41(5,"span",5),e.EFF(6),e.k0s()()(),e.j41(7,"mat-card-content",6)(8,"div",7),e.EFF(9),e.k0s(),e.j41(10,"span",8)(11,"button",9),e.bIt("click",function(){return I.goToHelp()}),e.EFF(12,"Go To Help"),e.k0s()()()()()),2&D&&(e.R7$(4),e.Y8G("icon",I.faTimes),e.R7$(2),e.SpI("Error ",I.error.errorCode),e.R7$(3),e.JRh(I.error.errorMessage))},dependencies:[os.aY,es.$z,K.RN,K.m2,K.MM,K.dh,Ie.DJ,Ie.sA,Ie.UI],encapsulation:2}))}return b(),_})();var co=l(7186),o1=l(1534),om=l(92),lm=l(6114);const U1=(b,_)=>({"alert-danger":b,"alert-info":_});function E3(b,_){1&b&&e.nrm(0,"span",17)}function Od(b,_){1&b&&e.nrm(0,"span",18)}function X2(b,_){if(1&b){const m=e.RV6();e.j41(0,"form",19,0)(2,"div",20),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Please ensure that "),e.j41(6,"strong"),e.EFF(7,"experimental-offers"),e.k0s(),e.EFF(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(9,"strong")(10,"a",21),e.EFF(11,"here"),e.k0s()(),e.EFF(12," to learn more about Core Lightning offers."),e.k0s()(),e.j41(13,"h4",22),e.EFF(14,"Description"),e.k0s(),e.j41(15,"span"),e.EFF(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.k0s(),e.j41(17,"h4",22),e.EFF(18,"Links"),e.k0s(),e.j41(19,"span")(20,"a",23),e.EFF(21,"Core lightning Bolt12"),e.k0s()(),e.nrm(22,"mat-divider",24),e.j41(23,"div",25),e.nrm(24,"fa-icon",4),e.j41(25,"span"),e.EFF(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.k0s()(),e.j41(27,"mat-slide-toggle",26),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(2);return e.DH7(I.enableOffers,D)||(I.enableOffers=D),v.Njj(D)}),e.bIt("change",function(){v.eBV(m);const D=e.XpG(2);return v.Njj(D.onUpdateFeature())}),e.EFF(28),e.k0s()()}if(2&b){const m=e.XpG(2);e.R7$(3),e.Y8G("icon",m.faInfoCircle),e.R7$(19),e.Y8G("inset",!0),e.R7$(2),e.Y8G("icon",m.faExclamationTriangle),e.R7$(3),e.R50("ngModel",m.enableOffers),e.R7$(),e.SpI("Enable Offers ",m.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"")}}function M3(b,_){if(1&b&&(e.j41(0,"div")(1,"div",29),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"experimental-dual-fund"),e.k0s(),e.EFF(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(8,"strong")(9,"a",30),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about Core Lightning Liquidity Ads."),e.k0s()()()),2&b){const m=e.XpG(3);e.R7$(2),e.Y8G("icon",m.faExclamationTriangle)}}function S3(b,_){if(1&b&&(e.j41(0,"mat-option",47),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m),e.R7$(),e.SpI(" ",e.bMT(2,2,m.id)," ")}}function cm(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(4);e.R7$(),e.SpI("",m.selPolicyType.placeholder," is required.")}}function T3(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(4);e.R7$(),e.Lme("",m.selPolicyType.placeholder," must be greater than or equal to ",m.selPolicyType.min,".")}}function D3(b,_){if(1&b&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&b){const m=e.XpG(4);e.R7$(),e.Lme("",m.selPolicyType.placeholder," must be less than or equal to ",m.selPolicyType.max,".")}}function dm(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base fee is required."),e.k0s())}function Nf(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base basis is required."),e.k0s())}function w3(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing base fee is required."),e.k0s())}function A3(b,_){1&b&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing fee rate is required."),e.k0s())}function l1(b,_){if(1&b&&(e.j41(0,"h4",48)(1,"span",49),e.EFF(2),e.k0s()()),2&b){const m=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,U1,!!m.updateMsg.error,!!m.updateMsg.data)),e.R7$(),e.SpI(" ",m.updateMsg.error&&""!==m.updateMsg.error?`Error: ${m.updateMsg.error||"Unknown Error"}`:m.updateMsg.data&&""!==m.updateMsg.data?m.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function um(b,_){if(1&b){const m=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.k0s()(),e.j41(5,"div",33)(6,"mat-form-field",34)(7,"mat-label"),e.EFF(8,"Policy"),e.k0s(),e.j41(9,"mat-select",35),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.selPolicyType,D)||(I.selPolicyType=D),v.Njj(D)}),e.bIt("selectionChange",function(){v.eBV(m);const D=e.XpG(3);return v.Njj(D.policyMod=null)}),e.DNE(10,S3,3,4,"mat-option",36),e.k0s()(),e.j41(11,"mat-form-field",37)(12,"mat-label"),e.EFF(13),e.k0s(),e.j41(14,"input",38,1),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.policyMod,D)||(I.policyMod=D),v.Njj(D)}),e.k0s(),e.j41(16,"mat-hint"),e.EFF(17),e.k0s(),e.DNE(18,cm,2,1,"mat-error",27)(19,T3,2,2,"mat-error",27)(20,D3,2,2,"mat-error",27),e.k0s()(),e.j41(21,"div",33)(22,"mat-form-field",37)(23,"mat-label"),e.EFF(24,"Lease Base Fee (Sats)"),e.k0s(),e.j41(25,"input",39),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.lease_fee_base_sat,D)||(I.lease_fee_base_sat=D),v.Njj(D)}),e.k0s(),e.DNE(26,dm,2,0,"mat-error",27),e.k0s(),e.j41(27,"mat-form-field",37)(28,"mat-label"),e.EFF(29,"Lease Base Basis (bps)"),e.k0s(),e.j41(30,"input",40),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.lease_fee_basis,D)||(I.lease_fee_basis=D),v.Njj(D)}),e.k0s(),e.DNE(31,Nf,2,0,"mat-error",27),e.k0s()(),e.j41(32,"div",33)(33,"mat-form-field",37)(34,"mat-label"),e.EFF(35,"Max Channel Routing Base Fee (Sats)"),e.k0s(),e.j41(36,"input",41),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.channelFeeMaxBaseSat,D)||(I.channelFeeMaxBaseSat=D),v.Njj(D)}),e.k0s(),e.DNE(37,w3,2,0,"mat-error",27),e.k0s(),e.j41(38,"mat-form-field",37)(39,"mat-label"),e.EFF(40,"Max Channel Routing Fee Rate (ppm)"),e.k0s(),e.j41(41,"input",42),e.mxI("ngModelChange",function(D){v.eBV(m);const I=e.XpG(3);return e.DH7(I.channelFeeMaxProportional,D)||(I.channelFeeMaxProportional=D),v.Njj(D)}),e.k0s(),e.DNE(42,A3,2,0,"mat-error",27),e.k0s()(),e.DNE(43,l1,3,5,"h4",43),e.j41(44,"div",44)(45,"button",45),e.bIt("click",function(){v.eBV(m);const D=e.XpG(3);return v.Njj(D.onResetPolicy())}),e.EFF(46,"Reset"),e.k0s(),e.j41(47,"button",46),e.bIt("click",function(){v.eBV(m);const D=e.XpG(3);return v.Njj(D.onUpdateFundingPolicy())}),e.EFF(48,"Update"),e.k0s()()()}if(2&b){const m=e.XpG(3);e.R7$(2),e.Y8G("icon",m.faExclamationTriangle),e.R7$(7),e.R50("ngModel",m.selPolicyType),e.R7$(),e.Y8G("ngForOf",m.policyTypes),e.R7$(3),e.JRh(m.selPolicyType.placeholder),e.R7$(),e.Y8G("step","fixed"===m.selPolicyType.id?1e3:10)("min",m.selPolicyType.min)("max",m.selPolicyType.max),e.R50("ngModel",m.policyMod),e.R7$(3),e.E5c("",m.selPolicyType.placeholder," should be between ",m.selPolicyType.min," and ",m.selPolicyType.max),e.R7$(),e.Y8G("ngIf",!m.policyMod),e.R7$(),e.Y8G("ngIf",m.policyModm.selPolicyType.max),e.R7$(5),e.R50("ngModel",m.lease_fee_base_sat),e.R7$(),e.Y8G("ngIf",!m.lease_fee_base_sat),e.R7$(4),e.R50("ngModel",m.lease_fee_basis),e.R7$(),e.Y8G("ngIf",!m.lease_fee_basis),e.R7$(5),e.R50("ngModel",m.channelFeeMaxBaseSat),e.R7$(),e.Y8G("ngIf",!m.channelFeeMaxBaseSat),e.R7$(4),e.R50("ngModel",m.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",!m.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",m.flgUpdateCalled)}}function K2(b,_){if(1&b&&(e.j41(0,"form",19,0),e.DNE(2,M3,12,1,"div",27)(3,um,49,23,"div",28),e.k0s()),2&b){const m=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!m.features[1].enabled),e.R7$(),e.Y8G("ngIf",m.features[1].enabled)}}function Rd(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-expansion-panel",10),e.bIt("opened",function(){const D=v.eBV(m).index,I=e.XpG();return v.Njj(I.onPanelExpanded(D))}),e.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title",11)(3,"h4",12),e.EFF(4),e.k0s(),e.j41(5,"h4",12),e.DNE(6,E3,1,0,"span",13)(7,Od,1,0,"span",14),e.EFF(8),e.k0s()()(),e.j41(9,"div",15),e.DNE(10,X2,29,5,"form",16)(11,K2,4,2,"form",16),e.k0s()()}if(2&b){const m=_.$implicit,E=_.index;e.Y8G("expanded",!1),e.R7$(4),e.JRh(m.name),e.R7$(2),e.Y8G("ngIf",m.enabled),e.R7$(),e.Y8G("ngIf",!m.enabled),e.R7$(),e.SpI(" ",m.enabled?"Enabled":"Disabled"," "),e.R7$(2),e.Y8G("ngIf",0===E),e.R7$(),e.Y8G("ngIf",1===E)}}let Y2=(()=>{var b;class _{constructor(E,D,I,Oe){this.logger=E,this.store=D,this.dataService=I,this.commonService=Oe,this.faInfoCircle=Ti.iW_,this.faExclamationTriangle=Ti.zpE,this.faCode=Ti.jTw,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=_t.ul,this.selPolicyType=_t.ul[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.dataService.listConfigs().pipe((0,li.Q)(this.unSubs[0])).subscribe({next:E=>{this.logger.info("Received List Configs: "+JSON.stringify(E)),this.features[1].enabled=!!E.configs["experimental-dual-fund"].set},error:E=>{this.logger.error("List Configs Error: "+JSON.stringify(E)),this.features[1].enabled=!1}}),this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.selNode=E,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(B0.Al).pipe((0,li.Q)(this.unSubs[2])).subscribe(E=>{this.policyTypes[2].max=E.balance.totalBalance||1e3})}onPanelExpanded(E){1===E&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,li.Q)(this.unSubs[3])).subscribe(D=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(D)),this.fundingPolicy=D,this.fundingPolicy.policy&&(this.selPolicyType=_t.ul.find(I=>I.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Bi.T$)({payload:this.selNode}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,li.Q)(this.unSubs[4])).subscribe({next:E=>{this.logger.info(E),this.fundingPolicy=E,this.updateMsg={data:"Compact Lease: "+E.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:E=>{this.logger.error(E),this.updateMsg={error:this.commonService.extractErrorMessage(E,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?_t.ul.find(E=>E.id===this.fundingPolicy.policy)||this.policyTypes[0]:_t.ul[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(mi.il),e.rXU(o1.u),e.rXU(Qo.h))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-experimental-settings"]],standalone:!1,decls:13,vars:3,consts:[["form","ngForm"],["plcMod","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"opened","expanded"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModelChange","step","min","max","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModelChange","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModelChange","ngModel"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(D,I){1&D&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.k0s()(),e.j41(5,"form",5,0)(7,"div",6),e.nrm(8,"fa-icon",7),e.j41(9,"span",8),e.EFF(10,"Features"),e.k0s()(),e.j41(11,"mat-accordion"),e.DNE(12,Rd,12,7,"mat-expansion-panel",9),e.k0s()()()),2&D&&(e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(6),e.Y8G("icon",I.faCode),e.R7$(4),e.Y8G("ngForOf",I.features))},dependencies:[w.YU,w.Sq,w.bT,hi.qT,hi.me,hi.Q0,hi.BC,hi.cb,hi.YS,hi.VZ,hi.zX,hi.vS,hi.cV,os.aY,es.$z,or.BS,or.GK,or.Z2,or.WN,br.fg,Ma.rl,Ma.nJ,Ma.MV,Ma.TL,Hi.q,Ie.DJ,Ie.sA,Ie.UI,cl.PW,sl.VO,ac.wT,bc.sG,go.Ld,Kl.N,om.z,lm.V,w.PV],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return b(),_})(),Q2=(()=>{var b;class _{constructor(){}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-no-service-found"]],standalone:!1,decls:6,vars:0,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"]],template:function(D,I){1&D&&(e.j41(0,"div",0)(1,"mat-card")(2,"mat-card-content",1)(3,"div",2)(4,"div",3),e.EFF(5,"No Service Found!"),e.k0s()()()()())},dependencies:[K.RN,K.m2,Ie.DJ,Ie.sA],encapsulation:2}))}return b(),_})();const $2=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([l.e(193),l.e(190)]).then(l.bind(l,9190)).then(b=>b.LNDModule),canActivate:[(0,co.q_)()]},{path:"cln",loadChildren:()=>Promise.all([l.e(193),l.e(853)]).then(l.bind(l,4853)).then(b=>b.CLNModule),canActivate:[(0,co.q_)()]},{path:"ecl",loadChildren:()=>Promise.all([l.e(193),l.e(17)]).then(l.bind(l,9017)).then(b=>b.ECLModule),canActivate:[(0,co.q_)()]},{path:"settings",component:Wa,canActivate:[(0,co.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:Qc,canActivate:[(0,co.q_)()]},{path:"auth",component:rr,canActivate:[(0,co.q_)()]},{path:"bconfig",component:Pf,canActivate:[(0,co.q_)()]}]},{path:"config",component:k0,canActivate:[(0,co.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:N0,canActivate:[(0,co.q_)()]},{path:"pglayout",component:Xh,canActivate:[(0,co.q_)()]},{path:"services",component:X0,canActivate:[(0,co.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:e1,canActivate:[(0,co.q_)()]},{path:"boltz",component:Kh,canActivate:[(0,co.q_)()]},{path:"noservice",component:Q2}]},{path:"experimental",component:Y2,canActivate:[(0,co.q_)()]},{path:"lnconfig",component:l2,canActivate:[(0,co.q_)()]}]},{path:"services",component:Yh,canActivate:[(0,co.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:nu},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:sm}]},{path:"help",component:s1},{path:"login",component:W2},{path:"error",component:x3},{path:"**",component:V1.X}],Pd=lo.iI.forRoot($2,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var Bu=l(9029),hm=l(9881),Fd=l(4330),zu=l(9183),Nd=l(882),Tc=l(5911),Bd=l(2279),Cl=l(7358);const Dc={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/lnd/home",userPersona:_t.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/lnd/onchain",userPersona:_t.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/lnd/connections",userPersona:_t.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/lnd/connections",userPersona:_t.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/lnd/transactions",userPersona:_t.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/lnd/routing",userPersona:_t.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/lnd/reports",userPersona:_t.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/lnd/graph",userPersona:_t.HW.ALL,children:[]},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/lnd/messages",userPersona:_t.HW.ALL,children:[]},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Ti.cbP,link:"/lnd/channelbackup",userPersona:_t.HW.ALL,children:[]},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Ti.qFF,link:"/lnd/network",userPersona:_t.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Ti.D6w,link:"/lnd/network",userPersona:_t.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:_t.HW.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Ti.C8j,link:"/services/loop",userPersona:_t.HW.ALL,children:[]},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:_t.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:_t.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:_t.HW.ALL,children:[]}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/cln/home",userPersona:_t.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/cln/onchain",userPersona:_t.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/cln/connections",userPersona:_t.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/cln/connections",userPersona:_t.HW.ALL,children:[]},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Ti.e4L,link:"/cln/liquidityads",userPersona:_t.HW.ALL,children:[]},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/cln/transactions",userPersona:_t.HW.ALL,children:[]},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/cln/routing",userPersona:_t.HW.ALL,children:[]},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/cln/reports",userPersona:_t.HW.ALL,children:[]},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/cln/graph",userPersona:_t.HW.ALL,children:[]},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/cln/messages",userPersona:_t.HW.ALL,children:[]},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Ti.WKo,link:"/cln/rates",userPersona:_t.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Ti.D6w,link:"/cln/rates",userPersona:_t.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:_t.HW.ALL,children:[{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:_t.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:_t.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:_t.HW.ALL,children:[]}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/ecl/home",userPersona:_t.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/ecl/onchain",userPersona:_t.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/ecl/connections",userPersona:_t.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/ecl/connections",userPersona:_t.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/ecl/transactions",userPersona:_t.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/ecl/routing",userPersona:_t.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/ecl/reports",userPersona:_t.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/ecl/graph",userPersona:_t.HW.ALL,children:[]}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:_t.HW.ALL,children:[]},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:_t.HW.ALL,children:[]}]};function L3(b,_){if(1&b&&(e.j41(0,"mat-option",12),e.EFF(1),e.k0s()),2&b){const m=_.$implicit;e.Y8G("value",m.index),e.R7$(),e.Lme(" ",m.lnNode," (",m.lnImplementation,") ")}}function I3(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-select",10),e.bIt("selectionChange",function(D){v.eBV(m);const I=e.XpG();return v.Njj(I.onNodeSelectionChange(D.value))}),e.j41(1,"perfect-scrollbar"),e.DNE(2,L3,2,3,"mat-option",11),e.k0s()()}if(2&b){const m=e.XpG();e.Y8G("value",m.selConfigNodeIndex),e.R7$(2),e.Y8G("ngForOf",m.appConfig.nodes)}}function k3(b,_){if(1&b&&(e.j41(0,"span",21),e.eu8(1,22),e.k0s()),2&b){const m=e.XpG().$implicit;e.XpG(2);const E=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet","boltzIconBlock"===m.icon?E:null)}}function zd(b,_){if(1&b&&e.nrm(0,"fa-icon",23),2&b){const m=e.XpG().$implicit;e.Y8G("icon",m.icon)}}function O3(b,_){if(1&b&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m.icon)}}function R3(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-tree-node",15)(1,"div",16),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG(2);return v.Njj(I.onChildNavClicked(D))}),e.j41(2,"div",17),e.DNE(3,k3,2,1,"span",18)(4,zd,1,1,"fa-icon",19)(5,O3,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()()()()}if(2&b){const m=_.$implicit;e.Y8G("routerLink",e.mNQ(m.link)),e.R7$(3),e.Y8G("ngIf","SVG"===m.iconType),e.R7$(),e.Y8G("ngIf","FA"===m.iconType),e.R7$(),e.Y8G("ngIf",!m.iconType),e.R7$(2),e.JRh(m.name)}}function P3(b,_){if(1&b&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",m.icon)}}function Z2(b,_){if(1&b&&e.nrm(0,"fa-icon",23),2&b){const m=e.XpG().$implicit;e.Y8G("icon",m.icon)}}function Vu(b,_){if(1&b&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.JRh(m.icon)}}function Uu(b,_){if(1&b&&(e.j41(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.DNE(3,P3,2,1,"span",28)(4,Z2,1,1,"fa-icon",19)(5,Vu,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"button",29)(9,"mat-icon"),e.EFF(10),e.k0s()()(),e.j41(11,"div",30),e.eu8(12,31),e.k0s()()),2&b){const m=_.$implicit,E=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SVG"===m.iconType),e.R7$(),e.Y8G("ngIf","FA"===m.iconType),e.R7$(),e.Y8G("ngIf",!m.iconType),e.R7$(2),e.JRh(m.name),e.R7$(),e.BMQ("aria-label","toggle "+m.name),e.R7$(2),e.JRh(E.treeControlNested.isExpanded(m)?"arrow_drop_up":"arrow_drop_down"),e.R7$(),e.AVh("tree-children-invisible",!E.treeControlNested.isExpanded(m))}}function F3(b,_){if(1&b&&(e.j41(0,"mat-tree",7,1),e.DNE(2,R3,8,6,"mat-tree-node",13)(3,Uu,13,8,"mat-nested-tree-node",14),e.k0s()),2&b){const m=e.XpG();e.Y8G("dataSource",m.navMenus)("treeControl",m.treeControlNested),e.R7$(3),e.Y8G("matTreeNodeDefWhen",m.hasChild)}}function N3(b,_){if(1&b&&(e.j41(0,"span",37),e.eu8(1,22),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",m.icon)}}function B3(b,_){if(1&b&&e.nrm(0,"fa-icon",38),2&b){const m=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(m.name))("icon",m.icon)}}function J2(b,_){if(1&b&&(e.j41(0,"mat-icon",39),e.EFF(1),e.k0s()),2&b){const m=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(m.name)),e.R7$(),e.JRh(m.icon)}}function Vd(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG();return v.Njj(I.onShowData(D))}),e.DNE(1,N3,2,1,"span",34)(2,B3,1,3,"fa-icon",35)(3,J2,2,3,"mat-icon",36),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&b){const m=_.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===m.iconType),e.R7$(),e.Y8G("ngIf","FA"===m.iconType),e.R7$(),e.Y8G("ngIf",!m.iconType),e.R7$(2),e.JRh(m.name)}}function z3(b,_){if(1&b&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&b){const m=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",m.icon)}}function fm(b,_){if(1&b&&e.nrm(0,"fa-icon",38),2&b){const m=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(m.name))("icon",m.icon)}}function V3(b,_){if(1&b){const m=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const D=v.eBV(m).$implicit,I=e.XpG(2);return v.Njj(I.onClick(D))}),e.DNE(1,z3,2,1,"span",28)(2,fm,1,3,"fa-icon",35),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&b){const m=_.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===m.iconType),e.R7$(),e.Y8G("ngIf","FA"===m.iconType),e.R7$(2),e.JRh(m.name)}}function q2(b,_){if(1&b&&(e.j41(0,"mat-tree",7),e.DNE(1,V3,5,3,"mat-tree-node",8),e.k0s()),2&b){const m=e.XpG();e.Y8G("dataSource",m.navMenusLogout)("treeControl",m.treeControlLogout)}}function pm(b,_){1&b&&(v.qSk(),e.j41(0,"svg",40)(1,"g",41)(2,"g",42),e.nrm(3,"circle",43)(4,"path",44)(5,"path",45),e.k0s()()())}let gm=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt){this.logger=E,this.commonService=D,this.sessionService=I,this.store=Oe,this.actions=Ct,this.rtlEffects=Bt,this.ChildNavClicked=new e.bkB,this.faEject=Ti.njF,this.faEye=Ti.pS3,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Ti.njF,children:[]}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Ti.pS3,children:[]}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=_t.HW,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B],this.treeControlNested=new Bd.XO(yn=>yn.children),this.treeControlLogout=new Bd.XO(yn=>yn.children),this.treeControlShowData=new Bd.XO(yn=>yn.children),this.navMenus=new Cl.Zh,this.navMenusLogout=new Cl.Zh,this.navMenusShowData=new Cl.Zh,this.hasChild=(yn,Yn)=>!!Yn.children&&Yn.children.length>0,this.version=_t.xv,Dc.LNDChildren&&200===Dc.LNDChildren[Dc.LNDChildren.length-1].id&&Dc.LNDChildren.pop(),this.navMenus.data=Dc.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const E=this.sessionService.getItem("token");this.showLogout=!!E,this.flgLoading=!!E,this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[0])).subscribe(D=>{this.appConfig=D}),this.store.select(Oa.Az).pipe((0,li.Q)(this.unSubs[1])).subscribe(D=>{if(this.information=D.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const I=this.information.chains[0];this.informationChain.chain=I.chain,this.informationChain.network=I.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=D.selNode,this.selConfigNodeIndex=+(D.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(D)}),this.sessionService.watchSession().pipe((0,li.Q)(this.unSubs[2])).subscribe(D=>{this.showLogout=!!D.token,this.flgLoading=!!D.token}),this.actions.pipe((0,li.Q)(this.unSubs[3]),(0,za.p)(D=>D.type===_t.aU.LOGOUT)).subscribe(D=>{this.showLogout=!1})}onClick(E){"Logout"===E.name&&(this.store.dispatch((0,Bi.I1)({payload:{data:{type:_t.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,li.Q)(this.unSubs[4])).subscribe(D=>{D&&(this.showLogout=!1,this.store.dispatch((0,Bi.ri)({payload:""})))})),this.ChildNavClicked.emit(E)}onChildNavClicked(E){this.ChildNavClicked.emit(E)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){const E=JSON.parse(JSON.stringify(Dc.LNDChildren));this.navMenus.data=E?.filter(D=>D.children&&D.children.length?(D.children=D.children?.filter(I=>(I.userPersona===_t.HW.ALL||I.userPersona===this.selNode.settings.userPersona)&&"/services/loop"!==I.link&&"/services/boltz"!==I.link||"/services/loop"===I.link&&this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()||"/services/boltz"===I.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim()),D.children.length>0):D.userPersona===_t.HW.ALL||D.userPersona===this.selNode.settings.userPersona)}loadCLNMenu(){const E=JSON.parse(JSON.stringify(Dc.CLNChildren));this.navMenus.data=E?.filter(D=>D.children&&D.children.length?(D.children=D.children?.filter(I=>(I.userPersona===_t.HW.ALL||I.userPersona===this.selNode.settings.userPersona)&&(!I.link.includes("/services")||"/services/peerswap"===I.link&&this.selNode.settings.enablePeerswap||"/services/boltz"===I.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim())),D.children.length>0):D.userPersona===_t.HW.ALL||D.userPersona===this.selNode.settings.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Dc.ECLChildren))}onShowData(E){this.store.dispatch((0,Bi.OP)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(E){const D=this.selConfigNodeIndex;this.selConfigNodeIndex=E;const I=this.appConfig.nodes.find(Oe=>+Oe.index===E);this.store.dispatch((0,Bi.Qi)({payload:{uiMessage:_t.MZ.UPDATE_SELECTED_NODE,prevLnNodeIndex:+D,currentLnNode:I||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(ji.Q),e.rXU(mi.il),e.rXU(Uo.En),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-side-navigation"]],viewQuery:function(D,I){if(1&D&&e.GBs(Cl.lQ,5),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.tree=Oe.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},standalone:!1,decls:12,vars:5,consts:[["boltzIconBlock",""],["tree",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],[1,"m-2","multi-node-select",3,"selectionChange","value"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink"],["tabindex","2",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],[3,"click"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"matTooltip","icon",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"fa-icon-small","mr-2"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"matTooltip","icon"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(D,I){1&D&&(e.j41(0,"div",2)(1,"div",3),e.DNE(2,I3,3,2,"mat-select",4),e.nrm(3,"mat-divider",5),e.DNE(4,F3,4,3,"mat-tree",6),e.nrm(5,"mat-divider",5),e.j41(6,"mat-tree",7),e.DNE(7,Vd,6,4,"mat-tree-node",8),e.k0s()(),e.j41(8,"div",9),e.DNE(9,q2,2,2,"mat-tree",6),e.k0s()(),e.DNE(10,pm,6,0,"ng-template",null,0,e.C5r)),2&D&&(e.R7$(2),e.Y8G("ngIf",I.appConfig.nodes.length>1),e.R7$(2),e.Y8G("ngIf",null==I.selNode.settings?null:I.selNode.settings.lnServerUrl),e.R7$(2),e.Y8G("dataSource",I.navMenusShowData)("treeControl",I.treeControlShowData),e.R7$(3),e.Y8G("ngIf",I.showLogout))},dependencies:[w.Sq,w.bT,w.T3,os.aY,Jc.iY,qc.An,Hi.q,Cl.q1,Cl.yI,Cl.pO,Cl.lQ,Cl.d6,Cl.wx,Ie.DJ,Ie.sA,Ie.UI,sl.VO,ac.wT,fd.oV,lo.Wk,lo.wQ,go.ZF,go.Ld],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}))}return b(),_})();var G1=l(9115);function _m(b,_){if(1&b&&(e.j41(0,"p",14),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&b){const m=e.XpG();e.R7$(),e.Y8G("icon",m.faCode),e.R7$(2),e.SpI("API Version: ",null==m.information?null:m.information.api_version)}}function j1(b,_){if(1&b&&(e.j41(0,"p",15),e.nrm(1,"fa-icon",3),e.j41(2,"span",16),e.EFF(3,"Settings"),e.k0s()()),2&b){const m=e.XpG();e.R7$(),e.Y8G("icon",m.faUserCog)}}function U3(b,_){if(1&b&&(e.j41(0,"p",17),e.nrm(1,"fa-icon",3),e.j41(2,"span",18),e.EFF(3,"Help"),e.k0s()()),2&b){const m=e.XpG();e.R7$(),e.Y8G("icon",m.faQuestion)}}function vm(b,_){if(1&b){const m=e.RV6();e.j41(0,"p",19),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.onClick())}),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3,"Logout"),e.k0s()()}if(2&b){const m=e.XpG();e.R7$(),e.Y8G("icon",m.faEject)}}let Ud=(()=>{var b;class _{constructor(E,D,I,Oe,Ct){this.logger=E,this.sessionService=D,this.store=I,this.rtlEffects=Oe,this.actions=Ct,this.faUserCog=Ti.McB,this.faCodeBranch=Ti.Xbc,this.faCode=Ti.jTw,this.faCog=Ti.dB,this.faQuestion=Ti.EvL,this.faEject=Ti.njF,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B],this.version=_t.xv}ngOnInit(){this.store.select(Oa.N).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{if(this.information=E,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const D=this.information.chains[0];this.informationChain.chain=D.chain,this.informationChain.network=D.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(E)}),this.sessionService.watchSession().pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.showLogout=!!E.token,this.flgLoading=!!E.token}),this.actions.pipe((0,li.Q)(this.unSubs[2]),(0,za.p)(E=>E.type===_t.aU.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Bi.I1)({payload:{data:{type:_t.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,li.Q)(this.unSubs[3])).subscribe(E=>{E&&(this.showLogout=!1,this.store.dispatch((0,Bi.ri)({payload:""})))})}onDonate(){window.open("https://www.ridethelightning.info/donate/","_blank")}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(null),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(ji.Q),e.rXU(mi.il),e.rXU(Ko.H),e.rXU(Uo.En))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-top-menu"]],standalone:!1,decls:20,vars:8,consts:[["topMenu","matMenu"],[1,"top-menu",3,"overlapTrigger"],["tabindex","1","mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["tabindex","2","mat-menu-item","","class","cursor-default",4,"ngIf"],["tabindex","3","mat-menu-item","","routerLink","/settings",4,"ngIf"],["tabindex","4","mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","","tabindex","5","fxLayoutAlign","start center",3,"click"],["fill","currentColor","version","1.1","viewBox","0 0 64 64",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"svg-donation"],["d","M62.519,17.698l-12-14c-0.659-0.768-1.786-0.923-2.628-0.362l-8.712,5.808l-16.688,4.172 c-2.485,0.622-4.537,2.412-5.487,4.791L12.21,30.09C10.206,32.512,9,35.618,9,39c0,2.974,0.939,5.73,2.527,8H5 c-2.206,0-4,1.794-4,4v6c0,2.206,1.794,4,4,4h36c2.206,0,4-1.794,4-4v-6c0-2.206-1.794-4-4-4h-6.522 c0.375-0.535,0.713-1.1,1.013-1.691l4.291-2.452l3.378-0.965c2.619-0.749,4.903-2.269,6.604-4.395 c1.39-1.736,2.317-3.813,2.682-6.006l0.412-2.472l9.48-8.532C63.145,19.76,63.225,18.523,62.519,17.698z M34.428,30.929 c-1.487-2.094-3.517-3.732-5.842-4.75L29.207,25h7.058l0.588,4.11L34.428,30.929z M31.225,33.331l-0.373,0.28 c-1.772,1.329-2.889,3.273-3.146,5.473c-0.257,2.2,0.382,4.348,1.8,6.048l0.667,0.8C28.315,47.845,25.742,49,23,49 c-5.514,0-10-4.486-10-10s4.486-10,10-10C26.299,29,29.376,30.663,31.225,33.331z M41,57H5v-6h10.826c2.101,1.261,4.55,2,7.174,2 c2.571,0,5.041-0.723,7.176-2H41V57z M49.662,26.513c-0.336,0.303-0.561,0.711-0.635,1.158L48.5,30.833 c-0.253,1.521-0.896,2.96-1.86,4.165c-1.18,1.475-2.763,2.529-4.579,3.048l-3.61,1.031c-0.155,0.044-0.303,0.106-0.443,0.187 l-5.541,3.166c-0.63-0.826-0.909-1.843-0.788-2.882c0.128-1.1,0.687-2.072,1.573-2.737l6.001-4.5 c1.169-0.877,1.767-2.32,1.56-3.766l-0.587-4.11C39.946,22.477,38.244,21,36.266,21h-7.059c-1.489,0-2.845,0.818-3.539,2.136 l-1.037,1.969C24.093,25.041,23.549,25,23,25c-1.685,0-3.294,0.314-4.791,0.862l2.509-6.271c0.476-1.189,1.501-2.084,2.743-2.395 l17.024-4.256c0.223-0.056,0.434-0.149,0.625-0.276l7.525-5.017l9.576,11.172L49.662,26.513z"],["tabindex","6","mat-menu-item","",3,"click",4,"ngIf"],["tabindex","7","mat-icon-button","",3,"matMenuTriggerFor"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["tabindex","2","mat-menu-item","",1,"cursor-default"],["tabindex","3","mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["tabindex","4","mat-menu-item","","routerLink","/help"],["routerLink","/help"],["tabindex","6","mat-menu-item","",3,"click"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"mat-menu",1,0)(2,"p",2),e.nrm(3,"fa-icon",3),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.DNE(6,_m,4,2,"p",4)(7,j1,4,1,"p",5)(8,U3,4,1,"p",6),e.j41(9,"p",7),e.bIt("click",function(){return v.eBV(Oe),v.Njj(I.onDonate())}),v.qSk(),e.j41(10,"svg",8)(11,"g"),e.nrm(12,"path",9),e.k0s()(),v.joV(),e.j41(13,"span"),e.EFF(14,"Donate"),e.k0s()(),e.DNE(15,vm,4,1,"p",10),e.k0s(),e.j41(16,"button",11),e.nrm(17,"img",12),e.j41(18,"mat-icon",13),e.EFF(19,"arrow_drop_down"),e.k0s()()}if(2&D){const Oe=e.sdS(1);e.Y8G("overlapTrigger",!1),e.R7$(3),e.Y8G("icon",I.faCodeBranch),e.R7$(2),e.SpI("Version: ",I.version),e.R7$(),e.Y8G("ngIf",null==I.information?null:I.information.api_version),e.R7$(),e.Y8G("ngIf",I.showLogout),e.R7$(),e.Y8G("ngIf",I.showLogout),e.R7$(7),e.Y8G("ngIf",I.showLogout),e.R7$(),e.Y8G("matMenuTriggerFor",Oe)}},dependencies:[w.bT,os.aY,Jc.iY,qc.An,G1.kk,G1.fb,G1.Cp,Ie.sA,lo.Wk],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}))}return b(),_})();const Gd=["sideNavigation"],zf=["sideNavContent"],G3=(b,_)=>[b,_];function Gu(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.sideNavToggle())}),e.j41(1,"mat-icon",16),e.EFF(2,"menu"),e.k0s()()}if(2&b){const m=e.XpG();e.Y8G("matTooltip",m.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",m.smallScreen)}}function e0(b,_){1&b&&(v.qSk(),e.nrm(0,"path",21))}function t0(b,_){1&b&&(v.qSk(),e.nrm(0,"path",22))}function ju(b,_){if(1&b){const m=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){v.eBV(m);const D=e.XpG();return v.Njj(D.flgSidenavPinned=!D.flgSidenavPinned)}),v.qSk(),e.j41(1,"svg",18),e.DNE(2,e0,1,0,"path",19)(3,t0,1,0,"path",20),e.k0s()()}if(2&b){const m=e.XpG();e.Y8G("matTooltip",m.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.R7$(2),e.Y8G("ngIf",!m.flgSidenavPinned),e.R7$(),e.Y8G("ngIf",m.flgSidenavPinned)}}function ym(b,_){if(1&b&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&b){const m=e.XpG();e.R7$(),e.JRh(m.information.alias?"RTL - "+m.information.alias:"RTL")}}function bm(b,_){if(1&b&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&b){const m=e.XpG();e.R7$(),e.JRh(m.information.alias?"Ride The Lightning - "+m.information.alias:"Ride The Lightning")}}function Hu(b,_){1&b&&(e.j41(0,"div",25),e.nrm(1,"mat-spinner",26),e.j41(2,"h4"),e.EFF(3,"Loading RTL..."),e.k0s()())}let Wu=(()=>{var b;class _{constructor(E,D,I,Oe,Ct,Bt,yn,Yn,jn){this.logger=E,this.commonService=D,this.store=I,this.actions=Oe,this.userIdle=Ct,this.router=Bt,this.sessionService=yn,this.breakpointObserver=Yn,this.renderer=jn,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B,new gi.B]}ngOnInit(){this.router.events.subscribe(E=>{E instanceof Ha.wF&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([ds.Rp.XSmall,ds.Rp.TabletPortrait,ds.Rp.Small,ds.Rp.Medium,ds.Rp.Large,ds.Rp.XLarge]).pipe((0,li.Q)(this.unSubs[0])).subscribe(E=>{E.breakpoints[ds.Rp.XSmall]?(this.commonService.setScreenSize(_t.f7.XS),this.smallScreen=!0):E.breakpoints[ds.Rp.TabletPortrait]?(this.commonService.setScreenSize(_t.f7.SM),this.smallScreen=!0):E.breakpoints[ds.Rp.Small]||E.breakpoints[ds.Rp.Medium]?(this.commonService.setScreenSize(_t.f7.MD),this.smallScreen=!1):E.breakpoints[ds.Rp.Large]?(this.commonService.setScreenSize(_t.f7.LG),this.smallScreen=!1):(this.commonService.setScreenSize(_t.f7.XL),this.smallScreen=!1)}),this.store.dispatch((0,Bi.NU)()),this.accessKey=this.readAccessKey()||"",this.store.select(Oa._c).pipe((0,li.Q)(this.unSubs[1])).subscribe(E=>{this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1),this.selNode=E}),this.store.select(Oa.qv).pipe((0,li.Q)(this.unSubs[2])).subscribe(E=>{this.appConfig=E}),this.store.select(Oa.N).pipe((0,li.Q)(this.unSubs[3])).subscribe(E=>{this.information=E,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,li.Q)(this.unSubs[4]),(0,za.p)(E=>E.type===_t.aU.SET_APPLICATION_SETTINGS||E.type===_t.aU.LOGIN||E.type===_t.aU.LOGOUT)).subscribe(E=>{E.type===_t.aU.SET_APPLICATION_SETTINGS&&(this.sessionService.getItem("token")||(E.payload.disableAuth?this.store.dispatch((0,Bi.iD)({payload:{password:"disabledAuth",defaultPassword:!1}})):+E.payload.SSO.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,Bi.iD)({payload:{password:_c(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"],{state:{logoutReason:"Access key too short. It should be at least 32 characters long."}}))),E.type===_t.aU.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),E.type===_t.aU.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,li.Q)(this.unSubs[5])).subscribe(E=>{this.logger.info("Counting Down: "+(11-E))}),this.userIdle.onTimeout().pipe((0,li.Q)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,Bi.Jh)()),this.store.dispatch((0,Bi.xO)({payload:{data:{type:_t.A$.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Bi.ri)({payload:"Logging Out. Time limit exceeded for session inactivity."})))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const E=window.location.href;return E.includes("access-key=")?E.substring(E.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(E){this.smallScreen&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}backdropClicked(){(!this.flgSidenavPinned||this.smallScreen)&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}copiedText(E){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+E)}ngOnDestroy(){this.unSubs.forEach(E=>{E.next(),E.complete()})}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(e.rXU(Aa.gP),e.rXU(Qo.h),e.rXU(mi.il),e.rXU(Uo.En),e.rXU(v1),e.rXU(Ha.Ix),e.rXU(ji.Q),e.rXU(Fd.Q),e.rXU(e.sFG))},this.\u0275cmp=e.VBU({type:_,selectors:[["rtl-app"]],viewQuery:function(D,I){if(1&D&&(e.GBs(Gd,5),e.GBs(zf,5)),2&D){let Oe;e.mGM(Oe=e.lsd())&&(I.sideNavigation=Oe.first),e.mGM(Oe=e.lsd())&&(I.sideNavContent=Oe.first)}},standalone:!1,decls:22,vars:15,consts:[["sideNavigation",""],["sideNavContent",""],["outlet","outlet"],["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[3,"backdropClick"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip","matTooltipDisabled"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["width","20","height","20","viewBox","0 0 24 24",1,"icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(D,I){if(1&D){const Oe=e.RV6();e.j41(0,"div",3),e.nI1(1,"lowercase"),e.nI1(2,"lowercase"),e.j41(3,"mat-toolbar",4)(4,"div"),e.DNE(5,Gu,3,2,"button",5)(6,ju,4,3,"button",6),e.k0s(),e.j41(7,"div"),e.DNE(8,ym,2,1,"span",7)(9,bm,2,1,"span",8),e.k0s(),e.j41(10,"div"),e.nrm(11,"rtl-top-menu"),e.k0s()(),e.j41(12,"mat-sidenav-container",9),e.bIt("backdropClick",function(){return v.eBV(Oe),v.Njj(I.backdropClicked())}),e.j41(13,"mat-sidenav",10,0)(15,"rtl-side-navigation",11),e.bIt("ChildNavClicked",function(Bt){return v.eBV(Oe),v.Njj(I.onNavigationClicked(Bt))}),e.k0s()(),e.j41(16,"mat-sidenav-content",12,1)(18,"div",13),e.nrm(19,"router-outlet",null,2),e.k0s()()(),e.DNE(21,Hu,4,0,"div",14),e.k0s()}2&D&&(e.Y8G("ngClass",e.l_i(12,G3,e.bMT(1,8,I.selNode.settings.themeColor),e.bMT(2,10,I.selNode.settings.themeMode))),e.R7$(5),e.Y8G("ngIf",I.flgLoggedIn),e.R7$(),e.Y8G("ngIf",!I.smallScreen&&I.flgLoggedIn),e.R7$(2),e.Y8G("ngIf",I.smallScreen),e.R7$(),e.Y8G("ngIf",!I.smallScreen),e.R7$(4),e.Y8G("opened",I.flgSideNavOpened&&I.flgLoggedIn)("mode",I.flgSidenavPinned&&!I.smallScreen?"side":"over"),e.R7$(8),e.Y8G("ngIf",!I.selNode.settings.themeColor))},dependencies:[w.YU,w.bT,Jc.iY,qc.An,zu.LG,Ie.DJ,Ie.sA,Ie.UI,cl.PW,Nd.LG,Nd.US,Nd.El,Tc.KQ,fd.oV,go.Ld,gm,Ud,Ha.n3,w.GH],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[hm.E]}}))}return b(),_})(),Xu=(()=>{var b;class _{constructor(E){this.sessionService=E}intercept(E,D){if(this.sessionService.getItem("token")){const I=E.clone({headers:E.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return D.handle(I)}return D.handle(E)}static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)(v.KVO(ji.Q))},this.\u0275prov=v.jDH({token:_,factory:_.\u0275fac}))}return b(),_})();var Cm=l(7879),Ku=l(9579),j3=l(283),xm=l(3017);const H3={userPersona:_t.HW.OPERATOR,themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1,logLevel:"ERROR",lnServerUrl:"",swapServerUrl:"",boltzServerUrl:"",currencyUnit:"USD",blockExplorerUrl:"https://mempool.space"},Yu={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},n0={apiURL:"",apisCallStatus:{Login:{status:_t.wn.UN_INITIATED},IsAuthorized:{status:_t.wn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:H3,authentication:Yu,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,SSO:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,secret2FA:"",disableAuth:!1,allowPasswordUpdate:!0,nodes:[{settings:H3,authentication:Yu}]},nodeData:{}},Vf=(0,mi.vy)(n0,(0,mi.on)(Bi.Gd,(b,{payload:_})=>{const m=JSON.parse(JSON.stringify(b.apisCallStatus));return _.action&&(m[_.action]={status:_.status,statusCode:_.statusCode,message:_.message,URL:_.URL,filePath:_.filePath}),{...b,apisCallStatus:m}}),(0,mi.on)(Bi.Tn,(b,{payload:_})=>({...n0,apisCallStatus:b.apisCallStatus,appConfig:b.appConfig,selNode:_})),(0,mi.on)(Bi.Np,(b,{payload:_})=>({...b,selNode:_})),(0,mi.on)(Bi.Fl,(b,{payload:_})=>({...b,nodeData:_})),(0,mi.on)(Bi.IK,(b,{payload:_})=>({...b,appConfig:_}))),i0={apisCallStatus:{FetchPageSettings:{status:_t.wn.UN_INITIATED},FetchInfo:{status:_t.wn.UN_INITIATED},FetchFees:{status:_t.wn.UN_INITIATED},FetchPeers:{status:_t.wn.UN_INITIATED},FetchClosedChannels:{status:_t.wn.UN_INITIATED},FetchPendingChannels:{status:_t.wn.UN_INITIATED},FetchAllChannels:{status:_t.wn.UN_INITIATED},FetchBalanceBlockchain:{status:_t.wn.UN_INITIATED},FetchInvoices:{status:_t.wn.UN_INITIATED},FetchPayments:{status:_t.wn.UN_INITIATED},FetchForwardingHistory:{status:_t.wn.UN_INITIATED},FetchUTXOs:{status:_t.wn.UN_INITIATED},FetchTransactions:{status:_t.wn.UN_INITIATED},FetchLightningTransactions:{status:_t.wn.UN_INITIATED},FetchNetwork:{status:_t.wn.UN_INITIATED}},pageSettings:_t.ZC,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let Qu=!1,W3=!1;const $u=(0,mi.vy)(i0,(0,mi.on)(Qs.e8,(b,{payload:_})=>{const m=JSON.parse(JSON.stringify(b.apisCallStatus));return _.action&&(m[_.action]={status:_.status,statusCode:_.statusCode,message:_.message,URL:_.URL,filePath:_.filePath}),{...b,apisCallStatus:m}}),(0,mi.on)(Qs.p1,b=>({...i0})),(0,mi.on)(Qs.x1,(b,{payload:_})=>({...b,information:_})),(0,mi.on)(Qs.Qj,(b,{payload:_})=>({...b,peers:_})),(0,mi.on)(Qs.Zi,(b,{payload:_})=>{const m=[...b.peers],E=b.peers.findIndex(D=>D.pub_key===_.pubkey);return E>-1&&m.splice(E,1),{...b,peers:m}}),(0,mi.on)(Qs.Jx,(b,{payload:_})=>{const m=b.listInvoices;return m.invoices?.unshift(_),{...b,listInvoices:m}}),(0,mi.on)(Qs.Dq,(b,{payload:_})=>{const m=b.listInvoices;return m.invoices=m.invoices?.map(E=>E.payment_request===_.payment_request?_:E),{...b,listInvoices:m}}),(0,mi.on)(Qs._$,(b,{payload:_})=>{const m=b.listPayments;return m.payments=m.payments?.map(E=>E.payment_hash===_.payment_hash?_:E),{...b,listPayments:m}}),(0,mi.on)(Qs.Uo,(b,{payload:_})=>({...b,fees:_})),(0,mi.on)(Qs.z2,(b,{payload:_})=>({...b,closedChannels:_})),(0,mi.on)(Qs.cU,(b,{payload:_})=>({...b,pendingChannels:_.pendingChannels,pendingChannelsSummary:_.pendingChannelsSummary})),(0,mi.on)(Qs.dv,(b,{payload:_})=>{let m=0,E=0,D=0,I=0,Oe=0,Ct=0;return _&&_.forEach(Bt=>{Bt.local_balance||(Bt.local_balance=0),!0===Bt.active?(Oe+=+Bt.local_balance,D+=1,Bt.local_balance?m=+m+ +Bt.local_balance:Bt.local_balance=0,Bt.remote_balance?E=+E+ +Bt.remote_balance:Bt.remote_balance=0):(Ct+=+Bt.local_balance,I+=1)}),{...b,channels:_,channelsSummary:{active:{num_channels:D,capacity:Oe},inactive:{num_channels:I,capacity:Ct}},lightningBalance:{local:m,remote:E}}}),(0,mi.on)(Qs.cR,(b,{payload:_})=>{const m=[...b.channels],E=b.channels.findIndex(D=>D.channel_point===_.channelPoint);return E>-1&&m.splice(E,1),{...b,channels:m}}),(0,mi.on)(Qs.DI,(b,{payload:_})=>({...b,blockchainBalance:_})),(0,mi.on)(Qs.J9,(b,{payload:_})=>({...b,networkInfo:_})),(0,mi.on)(Qs.$6,(b,{payload:_})=>(_.total_invoices||(_.total_invoices=b.listInvoices.total_invoices),{...b,listInvoices:_})),(0,mi.on)(Qs.As,(b,{payload:_})=>{if(Qu=!0,_.length&&W3){const m=[...b.utxos];return m.forEach(E=>{const D=_.find(I=>I.tx_hash===E.outpoint?.txid_str);E.label=D&&D.label?D.label:""}),{...b,utxos:m,transactions:_}}return{...b,transactions:_}}),(0,mi.on)(Qs.O8,(b,{payload:_})=>{if(W3=!0,_.length&&Qu){const m=[...b.transactions];_.forEach(E=>{const D=m.find(I=>I.tx_hash===E.outpoint?.txid_str);E.label=D&&D.label?D.label:""})}return{...b,utxos:_}}),(0,mi.on)(Qs.Uj,(b,{payload:_})=>{const m={listInvoicesAll:b.allLightningTransactions.listInvoicesAll,listPaymentsAll:_};return{...b,listPayments:_,allLightningTransactions:m}}),(0,mi.on)(Qs.b1,(b,{payload:_})=>{const m={listInvoicesAll:_.listInvoicesAll,listPaymentsAll:b.listPayments};return{...b,allLightningTransactions:m}}),(0,mi.on)(Qs.kv,(b,{payload:_})=>{const m=[...b.channels,...b.closedChannels];let E=_.forwarding_events?JSON.parse(JSON.stringify(_)):{};return E.forwarding_events&&(E=c1(E,m)),{...b,forwardingHistory:E}}),(0,mi.on)(Qs.NS,(b,{payload:_})=>{const m=[];return _t.ZC.forEach(E=>{const D=_&&_.length&&_.length>0?_.find(I=>I.pageId===E.pageId):null;if(D){const I=JSON.parse(JSON.stringify(D.tables));D.tables=[],E.tables.forEach(Oe=>{const Ct=I.find(Bt=>Bt.tableId===Oe.tableId)||null;D.tables.push(Ct||JSON.parse(JSON.stringify(Oe)))}),m.push(D)}else m.push(JSON.parse(JSON.stringify(E)))}),{...b,pageSettings:m}})),c1=(b,_)=>(b.forwarding_events.forEach(m=>{if(_&&_.length>0)for(let E=0;E<_.length;E++){if(_[E].chan_id?.toString()===m.chan_id_in&&(m.alias_in=_[E].remote_alias?_[E].remote_alias:m.chan_id_in,m.alias_out)||_[E].chan_id?.toString()===m.chan_id_out&&(m.alias_out=_[E].remote_alias?_[E].remote_alias:m.chan_id_out,m.alias_in))return;E===_.length-1&&(m.alias_in||(m.alias_in=m.chan_id_in),m.alias_out||(m.alias_out=m.chan_id_out))}else m.alias_in=m.chan_id_in,m.alias_out=m.chan_id_out}),b),d1={apisCallStatus:{FetchPageSettings:{status:_t.wn.UN_INITIATED},FetchInfo:{status:_t.wn.UN_INITIATED},FetchInvoices:{status:_t.wn.UN_INITIATED},FetchChannels:{status:_t.wn.UN_INITIATED},FetchUTXOBalances:{status:_t.wn.UN_INITIATED},FetchFeeRatesperkb:{status:_t.wn.UN_INITIATED},FetchFeeRatesperkw:{status:_t.wn.UN_INITIATED},FetchPeers:{status:_t.wn.UN_INITIATED},FetchPayments:{status:_t.wn.UN_INITIATED},FetchForwardingHistoryS:{status:_t.wn.UN_INITIATED},FetchForwardingHistoryF:{status:_t.wn.UN_INITIATED},FetchForwardingHistoryL:{status:_t.wn.UN_INITIATED},FetchOffers:{status:_t.wn.UN_INITIATED},FetchOfferBookmarks:{status:_t.wn.UN_INITIATED}},pageSettings:_t.mu,information:{},fees:{},feeRatesPerKB:{},feeRatesPerKW:{},balance:{},localRemoteBalance:{localBalance:-1,remoteBalance:-1},peers:[],activeChannels:[],pendingChannels:[],inactiveChannels:[],payments:[],forwardingHistory:{},failedForwardingHistory:{},localFailedForwardingHistory:{},invoices:{invoices:[]},utxos:[],offers:[],offersBookmarks:[]},Zu=(0,mi.vy)(d1,(0,mi.on)(zs.no,(b,{payload:_})=>{const m=JSON.parse(JSON.stringify(b.apisCallStatus));return _.action&&(m[_.action]={status:_.status,statusCode:_.statusCode,message:_.message,URL:_.URL,filePath:_.filePath}),{...b,apisCallStatus:m}}),(0,mi.on)(zs.gf,b=>({...d1})),(0,mi.on)(zs.x1,(b,{payload:_})=>({...b,information:_,fees:{feeCollected:_.fees_collected_msat}})),(0,mi.on)(zs.C2,(b,{payload:_})=>_.perkb?{...b,feeRatesPerKB:_}:_.perkw?{...b,feeRatesPerKW:_}:{...b}),(0,mi.on)(zs.EM,(b,{payload:_})=>({...b,utxos:_.utxos||[],balance:_.balance,localRemoteBalance:_.localRemoteBalance})),(0,mi.on)(zs.Qj,(b,{payload:_})=>({...b,peers:_})),(0,mi.on)(zs.We,(b,{payload:_})=>({...b,peers:[...b.peers,_]})),(0,mi.on)(zs.Zi,(b,{payload:_})=>{const m=[...b.peers],E=b.peers.findIndex(D=>D.id===_.id);return E>-1&&m.splice(E,1),{...b,peers:m}}),(0,mi.on)(zs.dv,(b,{payload:_})=>({...b,activeChannels:_.activeChannels,pendingChannels:_.pendingChannels,inactiveChannels:_.inactiveChannels})),(0,mi.on)(zs.cR,(b,{payload:_})=>{const m=[...b.peers];return m.forEach(E=>{E.id===_.id&&(E.connected=!1,delete E.netaddr)}),{...b,peers:m}}),(0,mi.on)(zs.Uj,(b,{payload:_})=>({...b,payments:_})),(0,mi.on)(zs.kv,(b,{payload:_})=>{const m=[...b.activeChannels,...b.pendingChannels,...b.inactiveChannels],E=a0(_.listForwards,m);switch(_.listForwards=E,_.status){case _t.xk.SETTLED:const D=b.fees;return D.totalTxCount=_.totalForwards||0,{...b,fees:D,forwardingHistory:_};case _t.xk.FAILED:return{...b,failedForwardingHistory:_};case _t.xk.LOCAL_FAILED:return{...b,localFailedForwardingHistory:_};default:return{...b}}}),(0,mi.on)(zs.Jx,(b,{payload:_})=>{const m=b.invoices;return m.invoices?.unshift(_),{...b,invoices:m}}),(0,mi.on)(zs.$6,(b,{payload:_})=>({...b,invoices:_})),(0,mi.on)(zs.Dq,(b,{payload:_})=>{const m=b.invoices;return m.invoices=m.invoices?.map(E=>(E.label===_.label&&(E.amount_received_msat=_.msat,E.payment_preimage=_.preimage,E.status="paid"),E)),{...b,invoices:m}}),(0,mi.on)(zs.qw,(b,{payload:_})=>({...b,offers:_})),(0,mi.on)(zs.kQ,(b,{payload:_})=>{const m=b.offers;return m?.unshift(_),{...b,offers:m}}),(0,mi.on)(zs.Gz,(b,{payload:_})=>{const m=[...b.offers],E=b.offers.findIndex(D=>D.offer_id===_.offer.offer_id);return E>-1&&m.splice(E,1,_.offer),{...b,offers:m}}),(0,mi.on)(zs.Qv,(b,{payload:_})=>({...b,offersBookmarks:_})),(0,mi.on)(zs.Db,(b,{payload:_})=>{const m=[...b.offersBookmarks],E=m.findIndex(D=>D.bolt12===_.bolt12);if(E<0)m?.unshift(_);else{const D={...m[E]};D.title=_.title,D.amountMSat=_.amountMSat,D.lastUpdatedAt=_.lastUpdatedAt,D.description=_.description,D.issuer=_.issuer,m.splice(E,1,D)}return{...b,offersBookmarks:m}}),(0,mi.on)(zs.NU,(b,{payload:_})=>{const m=[...b.offersBookmarks],E=b.offersBookmarks.findIndex(D=>D.bolt12===_.bolt12);return E>-1&&m.splice(E,1),{...b,offersBookmarks:m}}),(0,mi.on)(zs.NS,(b,{payload:_})=>{const m=[];return _t.mu.forEach(E=>{const D=_&&_.length&&_.length>0?_.find(I=>I.pageId===E.pageId):null;if(D){const I=JSON.parse(JSON.stringify(D.tables));D.tables=[],E.tables.forEach(Oe=>{const Ct=I.find(Bt=>Bt.tableId===Oe.tableId)||null;D.tables.push(Ct||JSON.parse(JSON.stringify(Oe)))}),m.push(D)}else m.push(JSON.parse(JSON.stringify(E)))}),{...b,pageSettings:m}})),a0=(b,_)=>(b&&b.length>0?b.forEach((m,E)=>{if(_&&_.length>0)for(let D=0;D<_.length;D++){if(_[D].short_channel_id&&_[D].short_channel_id===m.in_channel&&(m.in_channel_alias=_[D].alias?_[D].alias:m.in_channel,m.out_channel_alias)||_[D].short_channel_id&&_[D].short_channel_id?.toString()===m.out_channel&&(m.out_channel_alias=_[D].alias?_[D].alias:m.out_channel,m.in_channel_alias))return;D===_.length-1&&(m.in_channel_alias||(m.in_channel_alias=m.in_channel?m.in_channel:"-"),m.out_channel_alias||(m.out_channel_alias=m.out_channel?m.out_channel:"-"))}else m.in_channel_alias=m.in_channel?m.in_channel:"-",m.out_channel_alias=m.out_channel?m.out_channel:"-"}):b=[],b),Ju={apisCallStatus:{FetchPageSettings:{status:_t.wn.UN_INITIATED},FetchInfo:{status:_t.wn.UN_INITIATED},FetchFees:{status:_t.wn.UN_INITIATED},FetchChannels:{status:_t.wn.UN_INITIATED},FetchOnchainBalance:{status:_t.wn.UN_INITIATED},FetchPeers:{status:_t.wn.UN_INITIATED},FetchPayments:{status:_t.wn.UN_INITIATED},FetchInvoices:{status:_t.wn.UN_INITIATED},FetchTransactions:{status:_t.wn.UN_INITIATED}},pageSettings:_t.X8,information:{},fees:{},activeChannels:[],pendingChannels:[],inactiveChannels:[],channelsStatus:{active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0},closing:{channels:0,capacity:0}},onchainBalance:{total:0,confirmed:0,unconfirmed:0},lightningBalance:{localBalance:-1,remoteBalance:-1},peers:[],payments:{},transactions:[],invoices:[]},u1=(0,mi.vy)(Ju,(0,mi.on)(Ds.uL,(b,{payload:_})=>{const m=JSON.parse(JSON.stringify(b.apisCallStatus));return _.action&&(m[_.action]={status:_.status,statusCode:_.statusCode,message:_.message,URL:_.URL,filePath:_.filePath}),{...b,apisCallStatus:m}}),(0,mi.on)(Ds.Hh,b=>({...Ju})),(0,mi.on)(Ds.x1,(b,{payload:_})=>({...b,information:_})),(0,mi.on)(Ds.Uo,(b,{payload:_})=>({...b,fees:_})),(0,mi.on)(Ds.Tp,(b,{payload:_})=>({...b,activeChannels:_})),(0,mi.on)(Ds.cU,(b,{payload:_})=>({...b,pendingChannels:_})),(0,mi.on)(Ds.I6,(b,{payload:_})=>({...b,inactiveChannels:_})),(0,mi.on)(Ds.ZE,(b,{payload:_})=>({...b,channelsStatus:_})),(0,mi.on)(Ds.Xx,(b,{payload:_})=>({...b,onchainBalance:_})),(0,mi.on)(Ds.N8,(b,{payload:_})=>({...b,lightningBalance:_})),(0,mi.on)(Ds.Qj,(b,{payload:_})=>({...b,peers:_})),(0,mi.on)(Ds.Zi,(b,{payload:_})=>{const m=[...b.peers],E=b.peers.findIndex(D=>D.nodeId===_.nodeId);return E>-1&&m.splice(E,1),{...b,peers:m}}),(0,mi.on)(Ds.cR,(b,{payload:_})=>{const m=[...b.activeChannels],E=b.activeChannels.findIndex(D=>D.channelId===_.channelId);return E>-1&&m.splice(E,1),{...b,activeChannels:m}}),(0,mi.on)(Ds.Uj,(b,{payload:_})=>{if(_&&_.sent){const m=[...b.activeChannels,...b.pendingChannels,...b.inactiveChannels];_.sent?.map(E=>{const D=b.peers.find(I=>I.nodeId===E.recipientNodeId);return E.recipientNodeAlias=D?D.alias:E.recipientNodeId,E.parts&&E.parts?.map(I=>{const Oe=m.find(Ct=>Ct.channelId===I.toChannelId);return I.toChannelAlias=Oe?Oe.alias:I.toChannelId,E.parts}),_.sent})}if(_&&_.relayed){const m=[...b.activeChannels,...b.pendingChannels,...b.inactiveChannels];_.relayed.forEach(E=>{E=H1(E,m)})}return{...b,payments:_}}),(0,mi.on)(Ds.As,(b,{payload:_})=>({...b,transactions:_})),(0,mi.on)(Ds.Jx,(b,{payload:_})=>{const m=b.invoices;return m?.unshift(_),{...b,invoices:m}}),(0,mi.on)(Ds.$6,(b,{payload:_})=>({...b,invoices:_})),(0,mi.on)(Ds.Dq,(b,{payload:_})=>{let m=b.invoices;return m=m?.map(E=>{if(E.paymentHash===_.paymentHash){if(_.hasOwnProperty("type")){const D=JSON.parse(JSON.stringify(E));return D.amountSettled=_.parts&&_.parts.length&&_.parts.length>0&&_.parts[0].amount?(_.parts[0].amount||0)/1e3:0,D.receivedAt=_.parts&&_.parts.length&&_.parts.length>0&&_.parts[0].timestamp?Math.round((_.parts[0].timestamp||0)/1e3):0,D.status="received",D}return _}return E}),{...b,invoices:m}}),(0,mi.on)(Ds.gZ,(b,{payload:_})=>{let m=b.pendingChannels;return m=m?.map(E=>(E.channelId===_.channelId&&E.nodeId===_.remoteNodeId&&(_.currentState=_.currentState?.replace(/_/g," "),E.state=_.currentState),E)),{...b,pendingChannels:m}}),(0,mi.on)(Ds.yn,(b,{payload:_})=>{const m=b.payments,E=H1(_,[...b.activeChannels,...b.pendingChannels,...b.inactiveChannels]);m.relayed?.unshift(E);const D=(_.amountIn||0)-(_.amountOut||0),I={localBalance:b.lightningBalance.localBalance+D,remoteBalance:b.lightningBalance.remoteBalance-D},Oe=b.channelsStatus;Oe.active&&(Oe.active.capacity=(b.channelsStatus?.active?.capacity||0)+D);const Ct={daily_fee:(b.fees.daily_fee||0)+D,daily_txs:(b.fees.daily_txs||0)+1,weekly_fee:(b.fees.weekly_fee||0)+D,weekly_txs:(b.fees.weekly_txs||0)+1,monthly_fee:(b.fees.monthly_fee||0)+D,monthly_txs:(b.fees.monthly_txs||0)+1},Bt=b.activeChannels;let yn=!1,Yn=!1;for(const jn of Bt){if(jn.channelId===_.fromChannelId){yn=!0;const Fi=(jn.toLocal||0)+(jn.toRemote||0);jn.toLocal=(jn.toLocal||0)+E.amountIn,jn.toRemote=(jn.toRemote||0)-E.amountIn,jn.balancedness=0===Fi?1:+(1-Math.abs((jn.toLocal-jn.toRemote)/Fi)).toFixed(3)}if(jn.channelId===_.toChannelId){Yn=!0;const Fi=(jn.toLocal||0)+(jn.toRemote||0);jn.toLocal=(jn.toLocal||0)-E.amountOut,jn.toRemote=(jn.toRemote||0)+E.amountOut,jn.balancedness=0===Fi?1:+(1-Math.abs((jn.toLocal-jn.toRemote)/Fi)).toFixed(3)}if(Yn&&yn)break}return{...b,payments:m,lightningBalance:I,channelStatus:Oe,fees:Ct,activeChannels:Bt}}),(0,mi.on)(Ds.NS,(b,{payload:_})=>{const m=[];return _t.X8.forEach(E=>{const D=_&&_.length&&_.length>0?_.find(I=>I.pageId===E.pageId):null;if(D){const I=JSON.parse(JSON.stringify(D.tables));D.tables=[],E.tables.forEach(Oe=>{const Ct=I.find(Bt=>Bt.tableId===Oe.tableId)||null;D.tables.push(Ct||JSON.parse(JSON.stringify(Oe)))}),m.push(D)}else m.push(JSON.parse(JSON.stringify(E)))}),{...b,pageSettings:m}})),H1=(b,_)=>{if("payment-relayed"===b.type)if(_&&_.length>0)for(let m=0;m<_.length;m++){if(_[m].channelId?.toString()===b.fromChannelId&&(b.fromChannelAlias=_[m].alias?_[m].alias:b.fromChannelId,b.fromShortChannelId=_[m].shortChannelId?_[m].shortChannelId:"",b.toChannelAlias)||_[m].channelId?.toString()===b.toChannelId&&(b.toChannelAlias=_[m].alias?_[m].alias:b.toChannelId,b.toShortChannelId=_[m].shortChannelId?_[m].shortChannelId:"",b.fromChannelAlias))return b;m===_.length-1&&(b.fromChannelAlias||(b.fromChannelAlias=b.fromChannelId?.substring(0,17)+"...",b.fromShortChannelId=""),b.toChannelAlias||(b.toChannelAlias=b.toChannelId?.substring(0,17)+"...",b.toShortChannelId=""))}else b.fromChannelAlias=b.fromChannelId?.substring(0,17)+"...",b.fromShortChannelId="",b.toChannelAlias=b.toChannelId?.substring(0,17)+"...",b.toShortChannelId="";else if(b.type="trampoline-payment-relayed"){if(_&&_.length>0)for(let D=0;D<_.length;D++)b.incoming?.forEach(I=>{_[D].channelId?.toString()===I.channelId&&(I.channelAlias=_[D].alias?_[D].alias:I.channelId,I.shortChannelId=_[D].shortChannelId?_[D].shortChannelId:"")}),b.outgoing?.forEach(I=>{_[D].channelId?.toString()===I.channelId&&(I.channelAlias=_[D].alias?_[D].alias:I.channelId,I.shortChannelId=_[D].shortChannelId?_[D].shortChannelId:"")}),D===_.length-1&&(b.incoming&&b.incoming.length&&b.incoming.length>0&&!b.incoming[0].channelAlias&&b.incoming?.forEach(I=>{I.channelAlias=I.channelId?.substring(0,17)+"...",I.shortChannelId=""}),b.outgoing&&b.outgoing.length&&b.outgoing.length>0&&!b.outgoing[0].channelAlias&&b.outgoing?.forEach(I=>{I.channelAlias=I.channelId?.substring(0,17)+"...",I.shortChannelId=""}));else b.incoming?.forEach(D=>{D.channelAlias=D.channelId?.substring(0,17)+"...",D.shortChannelId=""}),b.outgoing?.forEach(D=>{D.channelAlias=D.channelId?.substring(0,17)+"...",D.shortChannelId=""});const m=b.incoming?.reduce((D,I)=>D+I.amount,0)||0;b.amountIn=Math.round(m/1e3),b.fromChannelId=b.incoming&&b.incoming.length?b.incoming[0].channelId:"",b.fromChannelAlias=b.incoming&&b.incoming.length?b.incoming[0].channelAlias:"",b.fromShortChannelId=b.incoming&&b.incoming.length?b.incoming[0].shortChannelId:"";const E=b.outgoing?.reduce((D,I)=>D+I.amount,0)||0;b.amountOut=Math.round(E/1e3),b.toChannelId=b.outgoing&&b.outgoing.length?b.outgoing[0].channelId:"",b.toChannelAlias=b.outgoing&&b.outgoing.length?b.outgoing[0].channelAlias:"",b.toShortChannelId=b.outgoing&&b.outgoing.length?b.outgoing[0].shortChannelId:""}return b};let X3=!1;(0,O.naY)()&&(X3=!0);let Uf=(()=>{var b;class _{static#e=b=()=>(this.\u0275fac=function(D){return new(D||_)},this.\u0275mod=e.$C({type:_,bootstrap:[Wu]}),this.\u0275inj=v.G2t({providers:[(0,nr.$R)((0,nr.ZZ)(),(0,nr.Sx)()),nc({idle:_t.bz-10,timeout:10,ping:12e3}),{provide:nr.a7,useClass:Xu,multi:!0},ji.Q,o1.u,Cm.I,E1.Q,Qo.h,rc],imports:[Mo,Bu.G,Pd,ds.RH,Dt.fM,mi.md.forRoot({root:Vf,lnd:$u,cln:Zu,ecl:u1},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Uo.Vm.forRoot([Ko.H,Ku.L,j3.i,xm.B]),X3?Ls.instrument({connectInZone:!0}):[]]}))}return b(),_})();De().bootstrapModule(Uf).catch(b=>console.error(b))},4740(Zt){!function(pe){"use strict";var l={bytesToHex:function(v){return function i(v){return v.map(function(T){return function d(v,T){return v.length>T?v:Array(T-v.length+1).join("0")+v}(T.toString(16),2)}).join("")}(v)},hexToBytes:function(v){if(v.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===v.indexOf("0x")&&(v=v.slice(2)),v.match(/../g).map(function(T){return parseInt(T,16)})}};Zt.exports?Zt.exports=l:pe.convertHex=l}(this)},820(Zt){!function(pe){"use strict";var l={bytesToString:function(i){return i.map(function(d){return String.fromCharCode(d)}).join("")},stringToBytes:function(i){return i.split("").map(function(d){return d.charCodeAt(0)})}};l.UTF8={bytesToString:function(i){return decodeURIComponent(escape(l.bytesToString(i)))},stringToBytes:function(i){return l.stringToBytes(unescape(encodeURIComponent(i)))}},Zt.exports?Zt.exports=l:pe.convertString=l}(this)},243(Zt){"use strict";var pe={single_source_shortest_paths:function(l,i,d){var v={},T={};T[i]=0;var e,O,f,u,L,B,w=pe.PriorityQueue.make();for(w.push(i,0);!w.empty();)for(f in u=(e=w.pop()).cost,L=l[O=e.value]||{})L.hasOwnProperty(f)&&(B=u+L[f],(typeof T[f]>"u"||T[f]>B)&&(T[f]=B,w.push(f,B),v[f]=O));if(typeof d<"u"&&typeof T[d]>"u"){var le=["Could not find a path from ",i," to ",d,"."].join("");throw new Error(le)}return v},extract_shortest_path_from_predecessor_list:function(l,i){for(var d=[],v=i;v;)d.push(v),v=l[v];return d.reverse(),d},find_path:function(l,i,d){var v=pe.single_source_shortest_paths(l,i,d);return pe.extract_shortest_path_from_predecessor_list(v,d)},PriorityQueue:{make:function(l){var v,i=pe.PriorityQueue,d={};for(v in l=l||{},i)i.hasOwnProperty(v)&&(d[v]=i[v]);return d.queue=[],d.sorter=l.sorter||i.default_sorter,d},default_sorter:function(l,i){return l.cost-i.cost},push:function(l,i){this.queue.push({value:l,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Zt.exports=pe},8314(Zt,pe,l){const i=l(2836),d=l(9460),v=l(7030),T=l(6511);function w(e,O,f,u,L){const C=[].slice.call(arguments,1),B=C.length,A="function"==typeof C[B-1];if(!A&&!i())throw new Error("Callback required as last argument");if(!A){if(B<1)throw new Error("Too few arguments provided");return 1===B?(f=O,O=u=void 0):2===B&&!O.getContext&&(u=f,f=O,O=void 0),new Promise(function(Pe,le){try{const Ce=d.create(f,u);Pe(e(Ce,O,u))}catch(Ce){le(Ce)}})}if(B<2)throw new Error("Too few arguments provided");2===B?(L=f,f=O,O=u=void 0):3===B&&(O.getContext&&typeof L>"u"?(L=u,u=void 0):(L=u,u=f,f=O,O=void 0));try{const Pe=d.create(f,u);L(null,e(Pe,O,u))}catch(Pe){L(Pe)}}pe.create=d.create,pe.toCanvas=w.bind(null,v.render),pe.toDataURL=w.bind(null,v.renderToDataURL),pe.toString=w.bind(null,function(e,O,f){return T.render(e,f)})},2836(Zt){Zt.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6214(Zt,pe,l){const i=l(9089).getSymbolSize;pe.getRowColCoords=function(v){if(1===v)return[];const T=Math.floor(v/7)+2,w=i(v),e=145===w?26:2*Math.ceil((w-13)/(2*T-2)),O=[w-7];for(let f=1;f>>7-l%8&1)},put:function(l,i){for(let d=0;d>>i-d-1&1))},getLengthInBits:function(){return this.length},putBit:function(l){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),l&&(this.buffer[i]|=128>>>this.length%8),this.length++}},Zt.exports=pe},5941(Zt){function pe(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}pe.prototype.set=function(l,i,d,v){const T=l*this.size+i;this.data[T]=d,v&&(this.reservedBit[T]=!0)},pe.prototype.get=function(l,i){return this.data[l*this.size+i]},pe.prototype.xor=function(l,i,d){this.data[l*this.size+i]^=d},pe.prototype.isReserved=function(l,i){return this.reservedBit[l*this.size+i]},Zt.exports=pe},4969(Zt,pe,l){const i=l(1677);function d(v){this.mode=i.BYTE,this.data="string"==typeof v?(new TextEncoder).encode(v):new Uint8Array(v)}d.getBitsLength=function(T){return 8*T},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(v){for(let T=0,w=this.data.length;T=0&&d.bit<4},pe.from=function(d,v){if(pe.isValid(d))return d;try{return function l(i){if("string"!=typeof i)throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return pe.L;case"m":case"medium":return pe.M;case"q":case"quartile":return pe.Q;case"h":case"high":return pe.H;default:throw new Error("Unknown EC Level: "+i)}}(d)}catch{return v}}},6269(Zt,pe,l){const i=l(9089).getSymbolSize;pe.getPositions=function(T){const w=i(T);return[[0,0],[w-7,0],[0,w-7]]}},6254(Zt,pe,l){const i=l(9089),T=i.getBCHDigit(1335);pe.getEncodedBits=function(e,O){const f=e.bit<<3|O;let u=f<<10;for(;i.getBCHDigit(u)-T>=0;)u^=1335<=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[w]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),T.put(e,13)}},Zt.exports=v},3361(Zt,pe){pe.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(d,v,T){switch(d){case pe.Patterns.PATTERN000:return(v+T)%2==0;case pe.Patterns.PATTERN001:return v%2==0;case pe.Patterns.PATTERN010:return T%3==0;case pe.Patterns.PATTERN011:return(v+T)%3==0;case pe.Patterns.PATTERN100:return(Math.floor(v/2)+Math.floor(T/3))%2==0;case pe.Patterns.PATTERN101:return v*T%2+v*T%3==0;case pe.Patterns.PATTERN110:return(v*T%2+v*T%3)%2==0;case pe.Patterns.PATTERN111:return(v*T%3+(v+T)%2)%2==0;default:throw new Error("bad maskPattern:"+d)}}pe.isValid=function(v){return null!=v&&""!==v&&!isNaN(v)&&v>=0&&v<=7},pe.from=function(v){return pe.isValid(v)?parseInt(v,10):void 0},pe.getPenaltyN1=function(v){const T=v.size;let w=0,e=0,O=0,f=null,u=null;for(let L=0;L=5&&(w+=e-5+3),f=B,e=1),B=v.get(C,L),B===u?O++:(O>=5&&(w+=O-5+3),u=B,O=1)}e>=5&&(w+=e-5+3),O>=5&&(w+=O-5+3)}return w},pe.getPenaltyN2=function(v){const T=v.size;let w=0;for(let e=0;e=10&&(1488===e||93===e)&&w++,O=O<<1&2047|v.get(u,f),u>=10&&(1488===O||93===O)&&w++}return 40*w},pe.getPenaltyN4=function(v){let T=0;const w=v.data.length;for(let O=0;O=1&&e<10?w.ccBits[0]:e<27?w.ccBits[1]:w.ccBits[2]},pe.getBestModeForData=function(w){return d.testNumeric(w)?pe.NUMERIC:d.testAlphanumeric(w)?pe.ALPHANUMERIC:d.testKanji(w)?pe.KANJI:pe.BYTE},pe.toString=function(w){if(w&&w.id)return w.id;throw new Error("Invalid mode")},pe.isValid=function(w){return w&&w.bit&&w.ccBits},pe.from=function(w,e){if(pe.isValid(w))return w;try{return function v(T){if("string"!=typeof T)throw new Error("Param is not a string");switch(T.toLowerCase()){case"numeric":return pe.NUMERIC;case"alphanumeric":return pe.ALPHANUMERIC;case"kanji":return pe.KANJI;case"byte":return pe.BYTE;default:throw new Error("Unknown mode: "+T)}}(w)}catch{return e}}},6628(Zt,pe,l){const i=l(1677);function d(v){this.mode=i.NUMERIC,this.data=v.toString()}d.getBitsLength=function(T){return 10*Math.floor(T/3)+(T%3?T%3*3+1:0)},d.prototype.getLength=function(){return this.data.length},d.prototype.getBitsLength=function(){return d.getBitsLength(this.data.length)},d.prototype.write=function(T){let w,e,O;for(w=0;w+3<=this.data.length;w+=3)e=this.data.substr(w,3),O=parseInt(e,10),T.put(O,10);const f=this.data.length-w;f>0&&(e=this.data.substr(w),O=parseInt(e,10),T.put(O,3*f+1))},Zt.exports=d},1744(Zt,pe,l){const i=l(6686);pe.mul=function(v,T){const w=new Uint8Array(v.length+T.length-1);for(let e=0;e=0;){const e=w[0];for(let f=0;f>J&1),Ee.set(J<6?J:J<8?J+1:be-15+J,8,De,!0),Ee.set(8,J<8?be-J-1:J<9?15-J-1+1:15-J-1,De,!0);Ee.set(be-8,8,1,!0)}function xe(Ee,V,ce,be){let ne;if(Array.isArray(Ee))ne=A.fromArray(Ee);else{if("string"!=typeof Ee)throw new Error("Invalid data");{let _e=V;if(!_e){const he=A.rawSplit(Ee);_e=L.getBestVersionForData(he,ce)}ne=A.fromString(Ee,_e||40)}}const J=L.getBestVersionForData(ne,ce);if(!J)throw new Error("The amount of data is too big to be stored in a QR Code");if(V){if(V=0&&Re<=6&&(0===Xe||6===Xe)||Xe>=0&&Xe<=6&&(0===Re||6===Re)||Re>=2&&Re<=4&&Xe>=2&&Xe<=4,!0)}}(Xe,V),function le(Ee){const V=Ee.size;for(let ce=8;ce=7&&function Ae(Ee,V){const ce=Ee.size,be=L.getEncodedBits(V);let ne,J,De;for(let Re=0;Re<18;Re++)ne=Math.floor(Re/3),J=Re%3+ce-8-3,De=1==(be>>Re&1),Ee.set(ne,J,De,!0),Ee.set(J,ne,De,!0)}(Xe,V),function W(Ee,V){const ce=Ee.size;let be=-1,ne=ce-1,J=7,De=0;for(let Re=ce-1;Re>0;Re-=2)for(6===Re&&Re--;;){for(let Xe=0;Xe<2;Xe++)if(!Ee.isReserved(ne,Re-Xe)){let _e=!1;De>>J&1)),Ee.set(ne,Re-Xe,_e),J--,-1===J&&(De++,J=7)}if(ne+=be,ne<0||ce<=ne){ne-=be,be=-be;break}}}(Xe,De),isNaN(be)&&(be=O.getBestMask(Xe,j.bind(null,Xe,ce))),O.applyMask(be,Xe),j(Xe,ce,be),{modules:Xe,version:V,errorCorrectionLevel:ce,maskPattern:be,segments:ne}}pe.create=function(V,ce){if(typeof V>"u"||""===V)throw new Error("No input text");let ne,J,be=d.M;return typeof ce<"u"&&(be=d.from(ce.errorCorrectionLevel,d.M),ne=L.from(ce.version),J=O.from(ce.maskPattern),ce.toSJISFunc&&i.setToSJISFunction(ce.toSJISFunc)),xe(V,ne,be,J)}},6289(Zt,pe,l){const i=l(1744);function d(v){this.genPoly=void 0,this.degree=v,this.degree&&this.initialize(this.degree)}d.prototype.initialize=function(T){this.degree=T,this.genPoly=i.generateECPolynomial(this.degree)},d.prototype.encode=function(T){if(!this.genPoly)throw new Error("Encoder not initialized");const w=new Uint8Array(T.length+this.degree);w.set(T);const e=i.mod(w,this.genPoly),O=this.degree-e.length;if(O>0){const f=new Uint8Array(this.degree);return f.set(e,O),f}return e},Zt.exports=d},9359(Zt,pe){const l="[0-9]+";let d="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";d=d.replace(/u/g,"\\u");const v="(?:(?![A-Z0-9 $%*+\\-./:]|"+d+")(?:.|[\r\n]))+";pe.KANJI=new RegExp(d,"g"),pe.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),pe.BYTE=new RegExp(v,"g"),pe.NUMERIC=new RegExp(l,"g"),pe.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const T=new RegExp("^"+d+"$"),w=new RegExp("^"+l+"$"),e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");pe.testKanji=function(f){return T.test(f)},pe.testNumeric=function(f){return w.test(f)},pe.testAlphanumeric=function(f){return e.test(f)}},2868(Zt,pe,l){const i=l(1677),d=l(6628),v=l(1018),T=l(4969),w=l(3264),e=l(9359),O=l(9089),f=l(243);function u(Ae){return unescape(encodeURIComponent(Ae)).length}function L(Ae,j,W){const G=[];let re;for(;null!==(re=Ae.exec(W));)G.push({data:re[0],index:re.index,mode:j,length:re[0].length});return G}function C(Ae){const j=L(e.NUMERIC,i.NUMERIC,Ae),W=L(e.ALPHANUMERIC,i.ALPHANUMERIC,Ae);let G,re;return O.isKanjiModeEnabled()?(G=L(e.BYTE,i.BYTE,Ae),re=L(e.KANJI,i.KANJI,Ae)):(G=L(e.BYTE_KANJI,i.BYTE,Ae),re=[]),j.concat(W,G,re).sort(function(Ee,V){return Ee.index-V.index}).map(function(Ee){return{data:Ee.data,mode:Ee.mode,length:Ee.length}})}function B(Ae,j){switch(j){case i.NUMERIC:return d.getBitsLength(Ae);case i.ALPHANUMERIC:return v.getBitsLength(Ae);case i.KANJI:return w.getBitsLength(Ae);case i.BYTE:return T.getBitsLength(Ae)}}function Ce(Ae,j){let W;const G=i.getBestModeForData(Ae);if(W=i.from(j,G),W!==i.BYTE&&W.bit=0?j[j.length-1]:null;return G&&G.mode===W.mode?(j[j.length-1].data+=W.data,j):(j.push(W),j)},[])}(V))},pe.rawSplit=function(j){return pe.fromArray(C(j,O.isKanjiModeEnabled()))}},9089(Zt,pe){let l;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];pe.getSymbolSize=function(v){if(!v)throw new Error('"version" cannot be null or undefined');if(v<1||v>40)throw new Error('"version" should be in range from 1 to 40');return 4*v+17},pe.getSymbolTotalCodewords=function(v){return i[v]},pe.getBCHDigit=function(d){let v=0;for(;0!==d;)v++,d>>>=1;return v},pe.setToSJISFunction=function(v){if("function"!=typeof v)throw new Error('"toSJISFunc" is not a valid function.');l=v},pe.isKanjiModeEnabled=function(){return typeof l<"u"},pe.toSJIS=function(v){return l(v)}},377(Zt,pe){pe.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}},1252(Zt,pe,l){const i=l(9089),d=l(3677),v=l(7424),T=l(1677),w=l(377),O=i.getBCHDigit(7973);function u(B,A){return T.getCharCountIndicator(B,A)+4}function L(B,A){let Pe=0;return B.forEach(function(le){const Ce=u(le.mode,A);Pe+=Ce+le.getBitsLength()}),Pe}pe.from=function(A,Pe){return w.isValid(A)?parseInt(A,10):Pe},pe.getCapacity=function(A,Pe,le){if(!w.isValid(A))throw new Error("Invalid QR Code version");typeof le>"u"&&(le=T.BYTE);const j=8*(i.getSymbolTotalCodewords(A)-d.getTotalCodewordsCount(A,Pe));if(le===T.MIXED)return j;const W=j-u(le,A);switch(le){case T.NUMERIC:return Math.floor(W/10*3);case T.ALPHANUMERIC:return Math.floor(W/11*2);case T.KANJI:return Math.floor(W/13);default:return Math.floor(W/8)}},pe.getBestVersionForData=function(A,Pe){let le;const Ce=v.from(Pe,v.M);if(Array.isArray(A)){if(A.length>1)return function C(B,A){for(let Pe=1;Pe<=40;Pe++)if(L(B,Pe)<=pe.getCapacity(Pe,A,T.MIXED))return Pe}(A,Ce);if(0===A.length)return 1;le=A[0]}else le=A;return function f(B,A,Pe){for(let le=1;le<=40;le++)if(A<=pe.getCapacity(le,Pe,B))return le}(le.mode,le.getLength(),Ce)},pe.getEncodedBits=function(A){if(!w.isValid(A)||A<7)throw new Error("Invalid QR Code version");let Pe=A<<12;for(;i.getBCHDigit(Pe)-O>=0;)Pe^=7973<"u"&&(!e||!e.getContext)&&(f=e,e=void 0),e||(u=function v(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),f=i.getOptions(f);const L=i.getImageWidth(w.modules.size,f),C=u.getContext("2d"),B=C.createImageData(L,L);return i.qrToImageData(B.data,w,f),function d(T,w,e){T.clearRect(0,0,w.width,w.height),w.style||(w.style={}),w.height=e,w.width=e,w.style.height=e+"px",w.style.width=e+"px"}(C,u,L),C.putImageData(B,0,0),u},pe.renderToDataURL=function(w,e,O){let f=O;return typeof f>"u"&&(!e||!e.getContext)&&(f=e,e=void 0),f||(f={}),pe.render(w,e,f).toDataURL(f.type||"image/png",(f.rendererOpts||{}).quality)}},6511(Zt,pe,l){const i=l(7077);function d(w,e){const O=w.a/255,f=e+'="'+w.hex+'"';return O<1?f+" "+e+'-opacity="'+O.toFixed(2).slice(1)+'"':f}function v(w,e,O){let f=w+e;return typeof O<"u"&&(f+=" "+O),f}pe.render=function(e,O,f){const u=i.getOptions(O),L=e.modules.size,C=e.modules.data,B=L+2*u.margin,A=u.color.light.a?"':"",Pe="0&&A>0&&w[B-1]||(f+=L?v("M",A+O,.5+Pe+O):v("m",u,0),u=0,L=!1),A+1',Ae=''+A+Pe+"\n";return"function"==typeof f&&f(null,Ae),Ae}},7077(Zt,pe){function l(i){if("number"==typeof i&&(i=i.toString()),"string"!=typeof i)throw new Error("Color should be defined as hex string");let d=i.slice().replace("#","").split("");if(d.length<3||5===d.length||d.length>8)throw new Error("Invalid hex color: "+i);(3===d.length||4===d.length)&&(d=Array.prototype.concat.apply([],d.map(function(T){return[T,T]}))),6===d.length&&d.push("F","F");const v=parseInt(d.join(""),16);return{r:v>>24&255,g:v>>16&255,b:v>>8&255,a:255&v,hex:"#"+d.slice(0,6).join("")}}pe.getOptions=function(d){d||(d={}),d.color||(d.color={});const T=d.width&&d.width>=21?d.width:void 0;return{width:T,scale:T?4:d.scale||4,margin:typeof d.margin>"u"||null===d.margin||d.margin<0?4:d.margin,color:{dark:l(d.color.dark||"#000000ff"),light:l(d.color.light||"#ffffffff")},type:d.type,rendererOpts:d.rendererOpts||{}}},pe.getScale=function(d,v){return v.width&&v.width>=d+2*v.margin?v.width/(d+2*v.margin):v.scale},pe.getImageWidth=function(d,v){const T=pe.getScale(d,v);return Math.floor((d+2*v.margin)*T)},pe.qrToImageData=function(d,v,T){const w=v.modules.size,e=v.modules.data,O=pe.getScale(w,T),f=Math.floor((w+2*T.margin)*O),u=T.margin*O,L=[T.color.light,T.color.dark];for(let C=0;C=u&&B>=u&&Cd});var i=l(1413);class d extends i.B{constructor(T){super(),this._value=T}get value(){return this.getValue()}_subscribe(T){const w=super._subscribe(T);return!w.closed&&T.next(this._value),w}getValue(){const{hasError:T,thrownError:w,_value:e}=this;if(T)throw w;return this._throwIfClosed(),e}next(T){super.next(this._value=T)}}},1985(Zt,pe,l){"use strict";l.d(pe,{c:()=>f});var i=l(7707),d=l(8359),v=l(3494),T=l(1203),w=l(1026),e=l(8071),O=l(9786);let f=(()=>{class B{constructor(Pe){Pe&&(this._subscribe=Pe)}lift(Pe){const le=new B;return le.source=this,le.operator=Pe,le}subscribe(Pe,le,Ce){const Ae=function C(B){return B&&B instanceof i.vU||function L(B){return B&&(0,e.T)(B.next)&&(0,e.T)(B.error)&&(0,e.T)(B.complete)}(B)&&(0,d.Uv)(B)}(Pe)?Pe:new i.Ms(Pe,le,Ce);return(0,O.Y)(()=>{const{operator:j,source:W}=this;Ae.add(j?j.call(Ae,W):W?this._subscribe(Ae):this._trySubscribe(Ae))}),Ae}_trySubscribe(Pe){try{return this._subscribe(Pe)}catch(le){Pe.error(le)}}forEach(Pe,le){return new(le=u(le))((Ce,Ae)=>{const j=new i.Ms({next:W=>{try{Pe(W)}catch(G){Ae(G),j.unsubscribe()}},error:Ae,complete:Ce});this.subscribe(j)})}_subscribe(Pe){var le;return null===(le=this.source)||void 0===le?void 0:le.subscribe(Pe)}[v.s](){return this}pipe(...Pe){return(0,T.m)(Pe)(this)}toPromise(Pe){return new(Pe=u(Pe))((le,Ce)=>{let Ae;this.subscribe(j=>Ae=j,j=>Ce(j),()=>le(Ae))})}}return B.create=A=>new B(A),B})();function u(B){var A;return null!==(A=B??w.$.Promise)&&void 0!==A?A:Promise}},2771(Zt,pe,l){"use strict";l.d(pe,{m:()=>v});var i=l(1413),d=l(6129);class v extends i.B{constructor(w=1/0,e=1/0,O=d.U){super(),this._bufferSize=w,this._windowTime=e,this._timestampProvider=O,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,w),this._windowTime=Math.max(1,e)}next(w){const{isStopped:e,_buffer:O,_infiniteTimeWindow:f,_timestampProvider:u,_windowTime:L}=this;e||(O.push(w),!f&&O.push(u.now()+L)),this._trimBuffer(),super.next(w)}_subscribe(w){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(w),{_infiniteTimeWindow:O,_buffer:f}=this,u=f.slice();for(let L=0;Lf,B:()=>O});var i=l(1985),d=l(8359);const T=(0,l(1853).L)(u=>function(){u(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var w=l(7908),e=l(9786);let O=(()=>{class u extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(C){const B=new f(this,this);return B.operator=C,B}_throwIfClosed(){if(this.closed)throw new T}next(C){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const B of this.currentObservers)B.next(C)}})}error(C){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=C;const{observers:B}=this;for(;B.length;)B.shift().error(C)}})}complete(){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:C}=this;for(;C.length;)C.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var C;return(null===(C=this.observers)||void 0===C?void 0:C.length)>0}_trySubscribe(C){return this._throwIfClosed(),super._trySubscribe(C)}_subscribe(C){return this._throwIfClosed(),this._checkFinalizedStatuses(C),this._innerSubscribe(C)}_innerSubscribe(C){const{hasError:B,isStopped:A,observers:Pe}=this;return B||A?d.Kn:(this.currentObservers=null,Pe.push(C),new d.yU(()=>{this.currentObservers=null,(0,w.o)(Pe,C)}))}_checkFinalizedStatuses(C){const{hasError:B,thrownError:A,isStopped:Pe}=this;B?C.error(A):Pe&&C.complete()}asObservable(){const C=new i.c;return C.source=this,C}}return u.create=(L,C)=>new f(L,C),u})();class f extends O{constructor(L,C){super(),this.destination=L,this.source=C}next(L){var C,B;null===(B=null===(C=this.destination)||void 0===C?void 0:C.next)||void 0===B||B.call(C,L)}error(L){var C,B;null===(B=null===(C=this.destination)||void 0===C?void 0:C.error)||void 0===B||B.call(C,L)}complete(){var L,C;null===(C=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===C||C.call(L)}_subscribe(L){var C,B;return null!==(B=null===(C=this.source)||void 0===C?void 0:C.subscribe(L))&&void 0!==B?B:d.Kn}}},7707(Zt,pe,l){"use strict";l.d(pe,{Ms:()=>Ce,vU:()=>B});var i=l(8071),d=l(8359),v=l(1026),T=l(5334),w=l(5343);const e=u("C",void 0,void 0);function u(re,xe,Ee){return{kind:re,value:xe,error:Ee}}var L=l(9270),C=l(9786);class B extends d.yU{constructor(xe){super(),this.isStopped=!1,xe?(this.destination=xe,(0,d.Uv)(xe)&&xe.add(this)):this.destination=G}static create(xe,Ee,V){return new Ce(xe,Ee,V)}next(xe){this.isStopped?W(function f(re){return u("N",re,void 0)}(xe),this):this._next(xe)}error(xe){this.isStopped?W(function O(re){return u("E",void 0,re)}(xe),this):(this.isStopped=!0,this._error(xe))}complete(){this.isStopped?W(e,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(xe){this.destination.next(xe)}_error(xe){try{this.destination.error(xe)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const A=Function.prototype.bind;function Pe(re,xe){return A.call(re,xe)}class le{constructor(xe){this.partialObserver=xe}next(xe){const{partialObserver:Ee}=this;if(Ee.next)try{Ee.next(xe)}catch(V){Ae(V)}}error(xe){const{partialObserver:Ee}=this;if(Ee.error)try{Ee.error(xe)}catch(V){Ae(V)}else Ae(xe)}complete(){const{partialObserver:xe}=this;if(xe.complete)try{xe.complete()}catch(Ee){Ae(Ee)}}}class Ce extends B{constructor(xe,Ee,V){let ce;if(super(),(0,i.T)(xe)||!xe)ce={next:xe??void 0,error:Ee??void 0,complete:V??void 0};else{let be;this&&v.$.useDeprecatedNextContext?(be=Object.create(xe),be.unsubscribe=()=>this.unsubscribe(),ce={next:xe.next&&Pe(xe.next,be),error:xe.error&&Pe(xe.error,be),complete:xe.complete&&Pe(xe.complete,be)}):ce=xe}this.destination=new le(ce)}}function Ae(re){v.$.useDeprecatedSynchronousErrorHandling?(0,C.l)(re):(0,T.m)(re)}function W(re,xe){const{onStoppedNotification:Ee}=v.$;Ee&&L.f.setTimeout(()=>Ee(re,xe))}const G={closed:!0,next:w.l,error:function j(re){throw re},complete:w.l}},8359(Zt,pe,l){"use strict";l.d(pe,{Kn:()=>e,yU:()=>w,Uv:()=>O});var i=l(8071);const v=(0,l(1853).L)(u=>function(C){u(this),this.message=C?`${C.length} errors occurred during unsubscription:\n${C.map((B,A)=>`${A+1}) ${B.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=C});var T=l(7908);class w{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:C}=this;if(C)if(this._parentage=null,Array.isArray(C))for(const Pe of C)Pe.remove(this);else C.remove(this);const{initialTeardown:B}=this;if((0,i.T)(B))try{B()}catch(Pe){L=Pe instanceof v?Pe.errors:[Pe]}const{_finalizers:A}=this;if(A){this._finalizers=null;for(const Pe of A)try{f(Pe)}catch(le){L=L??[],le instanceof v?L=[...L,...le.errors]:L.push(le)}}if(L)throw new v(L)}}add(L){var C;if(L&&L!==this)if(this.closed)f(L);else{if(L instanceof w){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._finalizers=null!==(C=this._finalizers)&&void 0!==C?C:[]).push(L)}}_hasParent(L){const{_parentage:C}=this;return C===L||Array.isArray(C)&&C.includes(L)}_addParent(L){const{_parentage:C}=this;this._parentage=Array.isArray(C)?(C.push(L),C):C?[C,L]:L}_removeParent(L){const{_parentage:C}=this;C===L?this._parentage=null:Array.isArray(C)&&(0,T.o)(C,L)}remove(L){const{_finalizers:C}=this;C&&(0,T.o)(C,L),L instanceof w&&L._removeParent(this)}}w.EMPTY=(()=>{const u=new w;return u.closed=!0,u})();const e=w.EMPTY;function O(u){return u instanceof w||u&&"closed"in u&&(0,i.T)(u.remove)&&(0,i.T)(u.add)&&(0,i.T)(u.unsubscribe)}function f(u){(0,i.T)(u)?u():u.unsubscribe()}},1026(Zt,pe,l){"use strict";l.d(pe,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17(Zt,pe,l){"use strict";l.d(pe,{G:()=>e});var i=l(1985),d=l(8359),v=l(9898),T=l(4360),w=l(9974);class e extends i.c{constructor(f,u){super(),this.source=f,this.subjectFactory=u,this._subject=null,this._refCount=0,this._connection=null,(0,w.S)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,f?.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new d.yU;const u=this.getSubject();f.add(this.source.subscribe((0,T._)(u,void 0,()=>{this._teardown(),u.complete()},L=>{this._teardown(),u.error(L)},()=>this._teardown()))),f.closed&&(this._connection=null,f=d.yU.EMPTY)}return f}refCount(){return(0,v.B)()(this)}}},4572(Zt,pe,l){"use strict";l.d(pe,{z:()=>L});var i=l(1985),d=l(3073),v=l(2806),T=l(3669),w=l(6450),e=l(9326),O=l(8496),f=l(4360),u=l(5225);function L(...A){const Pe=(0,e.lI)(A),le=(0,e.ms)(A),{args:Ce,keys:Ae}=(0,d.D)(A);if(0===Ce.length)return(0,v.H)([],Pe);const j=new i.c(function C(A,Pe,le=T.D){return Ce=>{B(Pe,()=>{const{length:Ae}=A,j=new Array(Ae);let W=Ae,G=Ae;for(let re=0;re{const xe=(0,v.H)(A[re],Pe);let Ee=!1;xe.subscribe((0,f._)(Ce,V=>{j[re]=V,Ee||(Ee=!0,G--),G||Ce.next(le(j.slice()))},()=>{--W||Ce.complete()}))},Ce)},Ce)}}(Ce,Pe,Ae?W=>(0,O.e)(Ae,W):T.D));return le?j.pipe((0,w.I)(le)):j}function B(A,Pe,le){A?(0,u.N)(le,A,Pe):Pe()}},8793(Zt,pe,l){"use strict";l.d(pe,{x:()=>w});var i=l(6365),v=l(9326),T=l(2806);function w(...e){return function d(){return(0,i.U)(1)}()((0,T.H)(e,(0,v.lI)(e)))}},9030(Zt,pe,l){"use strict";l.d(pe,{v:()=>v});var i=l(1985),d=l(8750);function v(T){return new i.c(w=>{(0,d.Tg)(T()).subscribe(w)})}},983(Zt,pe,l){"use strict";l.d(pe,{w:()=>v});const v=new(l(1985).c)(e=>e.complete())},7468(Zt,pe,l){"use strict";l.d(pe,{p:()=>f});var i=l(1985),d=l(3073),v=l(8750),T=l(9326),w=l(4360),e=l(6450),O=l(8496);function f(...u){const L=(0,T.ms)(u),{args:C,keys:B}=(0,d.D)(u),A=new i.c(Pe=>{const{length:le}=C;if(!le)return void Pe.complete();const Ce=new Array(le);let Ae=le,j=le;for(let W=0;W{G||(G=!0,j--),Ce[W]=re},()=>Ae--,void 0,()=>{(!Ae||!G)&&(j||Pe.next(B?(0,O.e)(B,Ce):Ce),Pe.complete())}))}});return L?A.pipe((0,e.I)(L)):A}},2806(Zt,pe,l){"use strict";l.d(pe,{H:()=>Ee});var i=l(8750),d=l(941),v=l(9974);function T(V,ce=0){return(0,v.N)((be,ne)=>{ne.add(V.schedule(()=>be.subscribe(ne),ce))})}var O=l(1985),u=l(4761),L=l(8071),C=l(5225);function A(V,ce){if(!V)throw new Error("Iterable cannot be null");return new O.c(be=>{(0,C.N)(be,ce,()=>{const ne=V[Symbol.asyncIterator]();(0,C.N)(be,ce,()=>{ne.next().then(J=>{J.done?be.complete():be.next(J.value)})},0,!0)})})}var Pe=l(5055),le=l(9858),Ce=l(7441),Ae=l(5397),j=l(7953),W=l(591),G=l(5196);function Ee(V,ce){return ce?function xe(V,ce){if(null!=V){if((0,Pe.l)(V))return function w(V,ce){return(0,i.Tg)(V).pipe(T(ce),(0,d.Q)(ce))}(V,ce);if((0,Ce.X)(V))return function f(V,ce){return new O.c(be=>{let ne=0;return ce.schedule(function(){ne===V.length?be.complete():(be.next(V[ne++]),be.closed||this.schedule())})})}(V,ce);if((0,le.y)(V))return function e(V,ce){return(0,i.Tg)(V).pipe(T(ce),(0,d.Q)(ce))}(V,ce);if((0,j.T)(V))return A(V,ce);if((0,Ae.x)(V))return function B(V,ce){return new O.c(be=>{let ne;return(0,C.N)(be,ce,()=>{ne=V[u.l](),(0,C.N)(be,ce,()=>{let J,De;try{({value:J,done:De}=ne.next())}catch(Re){return void be.error(Re)}De?be.complete():be.next(J)},0,!0)}),()=>(0,L.T)(ne?.return)&&ne.return()})}(V,ce);if((0,G.U)(V))return function re(V,ce){return A((0,G.C)(V),ce)}(V,ce)}throw(0,W.L)(V)}(V,ce):(0,i.Tg)(V)}},3726(Zt,pe,l){"use strict";l.d(pe,{R:()=>L});var i=l(8750),d=l(1985),v=l(1397),T=l(7441),w=l(8071),e=l(6450);const O=["addListener","removeListener"],f=["addEventListener","removeEventListener"],u=["on","off"];function L(le,Ce,Ae,j){if((0,w.T)(Ae)&&(j=Ae,Ae=void 0),j)return L(le,Ce,Ae).pipe((0,e.I)(j));const[W,G]=function Pe(le){return(0,w.T)(le.addEventListener)&&(0,w.T)(le.removeEventListener)}(le)?f.map(re=>xe=>le[re](Ce,xe,Ae)):function B(le){return(0,w.T)(le.addListener)&&(0,w.T)(le.removeListener)}(le)?O.map(C(le,Ce)):function A(le){return(0,w.T)(le.on)&&(0,w.T)(le.off)}(le)?u.map(C(le,Ce)):[];if(!W&&(0,T.X)(le))return(0,v.Z)(re=>L(re,Ce,Ae))((0,i.Tg)(le));if(!W)throw new TypeError("Invalid event target");return new d.c(re=>{const xe=(...Ee)=>re.next(1G(xe)})}function C(le,Ce){return Ae=>j=>le[Ae](Ce,j)}},8750(Zt,pe,l){"use strict";l.d(pe,{Tg:()=>A});var i=l(1635),d=l(7441),v=l(9858),T=l(1985),w=l(5055),e=l(7953),O=l(591),f=l(5397),u=l(5196),L=l(8071),C=l(5334),B=l(3494);function A(re){if(re instanceof T.c)return re;if(null!=re){if((0,w.l)(re))return function Pe(re){return new T.c(xe=>{const Ee=re[B.s]();if((0,L.T)(Ee.subscribe))return Ee.subscribe(xe);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(re);if((0,d.X)(re))return function le(re){return new T.c(xe=>{for(let Ee=0;Ee{re.then(Ee=>{xe.closed||(xe.next(Ee),xe.complete())},Ee=>xe.error(Ee)).then(null,C.m)})}(re);if((0,e.T)(re))return j(re);if((0,f.x)(re))return function Ae(re){return new T.c(xe=>{for(const Ee of re)if(xe.next(Ee),xe.closed)return;xe.complete()})}(re);if((0,u.U)(re))return function W(re){return j((0,u.C)(re))}(re)}throw(0,O.L)(re)}function j(re){return new T.c(xe=>{(function G(re,xe){var Ee,V,ce,be;return(0,i.sH)(this,void 0,void 0,function*(){try{for(Ee=(0,i.xN)(re);!(V=yield Ee.next()).done;)if(xe.next(V.value),xe.closed)return}catch(ne){ce={error:ne}}finally{try{V&&!V.done&&(be=Ee.return)&&(yield be.call(Ee))}finally{if(ce)throw ce.error}}xe.complete()})})(re,xe).catch(Ee=>xe.error(Ee))})}},7786(Zt,pe,l){"use strict";l.d(pe,{h:()=>e});var i=l(6365),d=l(8750),v=l(983),T=l(9326),w=l(2806);function e(...O){const f=(0,T.lI)(O),u=(0,T.R0)(O,1/0),L=O;return L.length?1===L.length?(0,d.Tg)(L[0]):(0,i.U)(u)((0,w.H)(L,f)):v.w}},7673(Zt,pe,l){"use strict";l.d(pe,{of:()=>v});var i=l(9326),d=l(2806);function v(...T){const w=(0,i.lI)(T);return(0,d.H)(T,w)}},8810(Zt,pe,l){"use strict";l.d(pe,{$:()=>v});var i=l(1985),d=l(8071);function v(T,w){const e=(0,d.T)(T)?T:()=>T,O=f=>f.error(e());return new i.c(w?f=>w.schedule(O,0,f):O)}},1807(Zt,pe,l){"use strict";l.d(pe,{O:()=>w});var i=l(1985),d=l(3236),v=l(9470),T=l(8211);function w(e=0,O,f=d.b){let u=-1;return null!=O&&((0,v.m)(O)?f=O:u=O),new i.c(L=>{let C=(0,T.v)(e)?+e-f.now():e;C<0&&(C=0);let B=0;return f.schedule(function(){L.closed||(L.next(B++),0<=u?this.schedule(void 0,u):L.complete())},C)})}},4360(Zt,pe,l){"use strict";l.d(pe,{H:()=>v,_:()=>d});var i=l(7707);function d(T,w,e,O,f){return new v(T,w,e,O,f)}class v extends i.vU{constructor(w,e,O,f,u,L){super(w),this.onFinalize=u,this.shouldUnsubscribe=L,this._next=e?function(C){try{e(C)}catch(B){w.error(B)}}:super._next,this._error=f?function(C){try{f(C)}catch(B){w.error(B)}finally{this.unsubscribe()}}:super._error,this._complete=O?function(){try{O()}catch(C){w.error(C)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var w;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(w=this.onFinalize)||void 0===w||w.call(this))}}}},3798(Zt,pe,l){"use strict";l.d(pe,{Z:()=>O});var i=l(3236),d=l(9974),v=l(8750),T=l(4360),e=l(1807);function O(f,u=i.E){return function w(f){return(0,d.N)((u,L)=>{let C=!1,B=null,A=null,Pe=!1;const le=()=>{if(A?.unsubscribe(),A=null,C){C=!1;const Ae=B;B=null,L.next(Ae)}Pe&&L.complete()},Ce=()=>{A=null,Pe&&L.complete()};u.subscribe((0,T._)(L,Ae=>{C=!0,B=Ae,A||(0,v.Tg)(f(Ae)).subscribe(A=(0,T._)(L,le,Ce))},()=>{Pe=!0,(!C||!A||A.closed)&&L.complete()}))})}(()=>(0,e.O)(f,u))}},9437(Zt,pe,l){"use strict";l.d(pe,{W:()=>T});var i=l(8750),d=l(4360),v=l(9974);function T(w){return(0,v.N)((e,O)=>{let L,f=null,u=!1;f=e.subscribe((0,d._)(O,void 0,void 0,C=>{L=(0,i.Tg)(w(C,T(w)(e))),f?(f.unsubscribe(),f=null,L.subscribe(O)):u=!0})),u&&(f.unsubscribe(),f=null,L.subscribe(O))})}},274(Zt,pe,l){"use strict";l.d(pe,{H:()=>v});var i=l(1397),d=l(8071);function v(T,w){return(0,d.T)(w)?(0,i.Z)(T,w,1):(0,i.Z)(T,1)}},152(Zt,pe,l){"use strict";l.d(pe,{B:()=>T});var i=l(3236),d=l(9974),v=l(4360);function T(w,e=i.E){return(0,d.N)((O,f)=>{let u=null,L=null,C=null;const B=()=>{if(u){u.unsubscribe(),u=null;const Pe=L;L=null,f.next(Pe)}};function A(){const Pe=C+w,le=e.now();if(le{L=Pe,C=e.now(),u||(u=e.schedule(A,w),f.add(u))},()=>{B(),f.complete()},void 0,()=>{L=u=null}))})}},9901(Zt,pe,l){"use strict";l.d(pe,{U:()=>v});var i=l(9974),d=l(4360);function v(T){return(0,i.N)((w,e)=>{let O=!1;w.subscribe((0,d._)(e,f=>{O=!0,e.next(f)},()=>{O||e.next(T),e.complete()}))})}},3294(Zt,pe,l){"use strict";l.d(pe,{F:()=>T});var i=l(3669),d=l(9974),v=l(4360);function T(e,O=i.D){return e=e??w,(0,d.N)((f,u)=>{let L,C=!0;f.subscribe((0,v._)(u,B=>{const A=O(B);(C||!e(L,A))&&(C=!1,L=A,u.next(B))}))})}function w(e,O){return e===O}},5964(Zt,pe,l){"use strict";l.d(pe,{p:()=>v});var i=l(9974),d=l(4360);function v(T,w){return(0,i.N)((e,O)=>{let f=0;e.subscribe((0,d._)(O,u=>T.call(w,u,f++)&&O.next(u)))})}},980(Zt,pe,l){"use strict";l.d(pe,{j:()=>d});var i=l(9974);function d(v){return(0,i.N)((T,w)=>{try{T.subscribe(w)}finally{w.add(v)}})}},1594(Zt,pe,l){"use strict";l.d(pe,{$:()=>O});var i=l(9350),d=l(5964),v=l(6697),T=l(9901),w=l(3774),e=l(3669);function O(f,u){const L=arguments.length>=2;return C=>C.pipe(f?(0,d.p)((B,A)=>f(B,A,C)):e.D,(0,v.s)(1),L?(0,T.U)(u):(0,w.v)(()=>new i.G))}},3557(Zt,pe,l){"use strict";l.d(pe,{w:()=>T});var i=l(9974),d=l(4360),v=l(5343);function T(){return(0,i.N)((w,e)=>{w.subscribe((0,d._)(e,v.l))})}},6354(Zt,pe,l){"use strict";l.d(pe,{T:()=>v});var i=l(9974),d=l(4360);function v(T,w){return(0,i.N)((e,O)=>{let f=0;e.subscribe((0,d._)(O,u=>{O.next(T.call(w,u,f++))}))})}},3703(Zt,pe,l){"use strict";l.d(pe,{u:()=>d});var i=l(6354);function d(v){return(0,i.T)(()=>v)}},6365(Zt,pe,l){"use strict";l.d(pe,{U:()=>v});var i=l(1397),d=l(3669);function v(T=1/0){return(0,i.Z)(d.D,T)}},1397(Zt,pe,l){"use strict";l.d(pe,{Z:()=>f});var i=l(6354),d=l(8750),v=l(9974),T=l(5225),w=l(4360),O=l(8071);function f(u,L,C=1/0){return(0,O.T)(L)?f((B,A)=>(0,i.T)((Pe,le)=>L(B,Pe,A,le))((0,d.Tg)(u(B,A))),C):("number"==typeof L&&(C=L),(0,v.N)((B,A)=>function e(u,L,C,B,A,Pe,le,Ce){const Ae=[];let j=0,W=0,G=!1;const re=()=>{G&&!Ae.length&&!j&&L.complete()},xe=V=>j{Pe&&L.next(V),j++;let ce=!1;(0,d.Tg)(C(V,W++)).subscribe((0,w._)(L,be=>{A?.(be),Pe?xe(be):L.next(be)},()=>{ce=!0},void 0,()=>{if(ce)try{for(j--;Ae.length&&jEe(be)):Ee(be)}re()}catch(be){L.error(be)}}))};return u.subscribe((0,w._)(L,xe,()=>{G=!0,re()})),()=>{Ce?.()}}(B,A,u,C)))}},941(Zt,pe,l){"use strict";l.d(pe,{Q:()=>T});var i=l(5225),d=l(9974),v=l(4360);function T(w,e=0){return(0,d.N)((O,f)=>{O.subscribe((0,v._)(f,u=>(0,i.N)(f,w,()=>f.next(u),e),()=>(0,i.N)(f,w,()=>f.complete(),e),u=>(0,i.N)(f,w,()=>f.error(u),e)))})}},9898(Zt,pe,l){"use strict";l.d(pe,{B:()=>v});var i=l(9974),d=l(4360);function v(){return(0,i.N)((T,w)=>{let e=null;T._refCount++;const O=(0,d._)(w,void 0,void 0,void 0,()=>{if(!T||T._refCount<=0||0<--T._refCount)return void(e=null);const f=T._connection,u=e;e=null,f&&(!u||f===u)&&f.unsubscribe(),w.unsubscribe()});T.subscribe(O),O.closed||(e=T.connect())})}},1943(Zt,pe,l){"use strict";l.d(pe,{S:()=>v});var i=l(9974),d=l(6649);function v(T,w){return(0,i.N)((0,d.S)(T,w,arguments.length>=2,!0))}},6649(Zt,pe,l){"use strict";l.d(pe,{S:()=>d});var i=l(4360);function d(v,T,w,e,O){return(f,u)=>{let L=w,C=T,B=0;f.subscribe((0,i._)(u,A=>{const Pe=B++;C=L?v(C,A,Pe):(L=!0,A),e&&u.next(C)},O&&(()=>{L&&u.next(C),u.complete()})))}}},7647(Zt,pe,l){"use strict";l.d(pe,{u:()=>w});var i=l(8750),d=l(1413),v=l(7707),T=l(9974);function w(O={}){const{connector:f=()=>new d.B,resetOnError:u=!0,resetOnComplete:L=!0,resetOnRefCountZero:C=!0}=O;return B=>{let A,Pe,le,Ce=0,Ae=!1,j=!1;const W=()=>{Pe?.unsubscribe(),Pe=void 0},G=()=>{W(),A=le=void 0,Ae=j=!1},re=()=>{const xe=A;G(),xe?.unsubscribe()};return(0,T.N)((xe,Ee)=>{Ce++,!j&&!Ae&&W();const V=le=le??f();Ee.add(()=>{Ce--,0===Ce&&!j&&!Ae&&(Pe=e(re,C))}),V.subscribe(Ee),!A&&Ce>0&&(A=new v.Ms({next:ce=>V.next(ce),error:ce=>{j=!0,W(),Pe=e(G,u,ce),V.error(ce)},complete:()=>{Ae=!0,W(),Pe=e(G,L),V.complete()}}),(0,i.Tg)(xe).subscribe(A))})(B)}}function e(O,f,...u){if(!0===f)return void O();if(!1===f)return;const L=new v.Ms({next:()=>{L.unsubscribe(),O()}});return(0,i.Tg)(f(...u)).subscribe(L)}},5245(Zt,pe,l){"use strict";l.d(pe,{i:()=>d});var i=l(5964);function d(v){return(0,i.p)((T,w)=>v<=w)}},9172(Zt,pe,l){"use strict";l.d(pe,{Z:()=>T});var i=l(8793),d=l(9326),v=l(9974);function T(...w){const e=(0,d.lI)(w);return(0,v.N)((O,f)=>{(e?(0,i.x)(w,O,e):(0,i.x)(w,O)).subscribe(f)})}},5558(Zt,pe,l){"use strict";l.d(pe,{n:()=>T});var i=l(8750),d=l(9974),v=l(4360);function T(w,e){return(0,d.N)((O,f)=>{let u=null,L=0,C=!1;const B=()=>C&&!u&&f.complete();O.subscribe((0,v._)(f,A=>{u?.unsubscribe();let Pe=0;const le=L++;(0,i.Tg)(w(A,le)).subscribe(u=(0,v._)(f,Ce=>f.next(e?e(A,Ce,le,Pe++):Ce),()=>{u=null,B()}))},()=>{C=!0,B()}))})}},6697(Zt,pe,l){"use strict";l.d(pe,{s:()=>T});var i=l(983),d=l(9974),v=l(4360);function T(w){return w<=0?()=>i.w:(0,d.N)((e,O)=>{let f=0;e.subscribe((0,v._)(O,u=>{++f<=w&&(O.next(u),w<=f&&O.complete())}))})}},6977(Zt,pe,l){"use strict";l.d(pe,{Q:()=>w});var i=l(9974),d=l(4360),v=l(8750),T=l(5343);function w(e){return(0,i.N)((O,f)=>{(0,v.Tg)(e).subscribe((0,d._)(f,()=>f.complete(),T.l)),!f.closed&&O.subscribe(f)})}},8141(Zt,pe,l){"use strict";l.d(pe,{M:()=>w});var i=l(8071),d=l(9974),v=l(4360),T=l(3669);function w(e,O,f){const u=(0,i.T)(e)||O||f?{next:e,error:O,complete:f}:e;return u?(0,d.N)((L,C)=>{var B;null===(B=u.subscribe)||void 0===B||B.call(u);let A=!0;L.subscribe((0,v._)(C,Pe=>{var le;null===(le=u.next)||void 0===le||le.call(u,Pe),C.next(Pe)},()=>{var Pe;A=!1,null===(Pe=u.complete)||void 0===Pe||Pe.call(u),C.complete()},Pe=>{var le;A=!1,null===(le=u.error)||void 0===le||le.call(u,Pe),C.error(Pe)},()=>{var Pe,le;A&&(null===(Pe=u.unsubscribe)||void 0===Pe||Pe.call(u)),null===(le=u.finalize)||void 0===le||le.call(u)}))}):T.D}},3774(Zt,pe,l){"use strict";l.d(pe,{v:()=>T});var i=l(9350),d=l(9974),v=l(4360);function T(e=w){return(0,d.N)((O,f)=>{let u=!1;O.subscribe((0,v._)(f,L=>{u=!0,f.next(L)},()=>u?f.complete():f.error(e())))})}function w(){return new i.G}},3993(Zt,pe,l){"use strict";l.d(pe,{E:()=>O});var i=l(9974),d=l(4360),v=l(8750),T=l(3669),w=l(5343),e=l(9326);function O(...f){const u=(0,e.ms)(f);return(0,i.N)((L,C)=>{const B=f.length,A=new Array(B);let Pe=f.map(()=>!1),le=!1;for(let Ce=0;Ce{A[Ce]=Ae,!le&&!Pe[Ce]&&(Pe[Ce]=!0,(le=Pe.every(T.D))&&(Pe=null))},w.l));L.subscribe((0,d._)(C,Ce=>{if(le){const Ae=[Ce,...A];C.next(u?u(...Ae):Ae)}}))})}},6780(Zt,pe,l){"use strict";l.d(pe,{R:()=>w});var i=l(8359);class d extends i.yU{constructor(O,f){super()}schedule(O,f=0){return this}}const v={setInterval(e,O,...f){const{delegate:u}=v;return u?.setInterval?u.setInterval(e,O,...f):setInterval(e,O,...f)},clearInterval(e){const{delegate:O}=v;return(O?.clearInterval||clearInterval)(e)},delegate:void 0};var T=l(7908);class w extends d{constructor(O,f){super(O,f),this.scheduler=O,this.work=f,this.pending=!1}schedule(O,f=0){var u;if(this.closed)return this;this.state=O;const L=this.id,C=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(C,L,f)),this.pending=!0,this.delay=f,this.id=null!==(u=this.id)&&void 0!==u?u:this.requestAsyncId(C,this.id,f),this}requestAsyncId(O,f,u=0){return v.setInterval(O.flush.bind(O,this),u)}recycleAsyncId(O,f,u=0){if(null!=u&&this.delay===u&&!1===this.pending)return f;null!=f&&v.clearInterval(f)}execute(O,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const u=this._execute(O,f);if(u)return u;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(O,f){let L,u=!1;try{this.work(O)}catch(C){u=!0,L=C||new Error("Scheduled action threw falsy error")}if(u)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:O,scheduler:f}=this,{actions:u}=f;this.work=this.state=this.scheduler=null,this.pending=!1,(0,T.o)(u,this),null!=O&&(this.id=this.recycleAsyncId(f,O,null)),this.delay=null,super.unsubscribe()}}}},9687(Zt,pe,l){"use strict";l.d(pe,{q:()=>v});var i=l(6129);class d{constructor(w,e=d.now){this.schedulerActionCtor=w,this.now=e}schedule(w,e=0,O){return new this.schedulerActionCtor(this,w).schedule(O,e)}}d.now=i.U.now;class v extends d{constructor(w,e=d.now){super(w,e),this.actions=[],this._active=!1}flush(w){const{actions:e}=this;if(this._active)return void e.push(w);let O;this._active=!0;do{if(O=w.execute(w.state,w.delay))break}while(w=e.shift());if(this._active=!1,O){for(;w=e.shift();)w.unsubscribe();throw O}}}},3236(Zt,pe,l){"use strict";l.d(pe,{E:()=>v,b:()=>T});var i=l(6780);const v=new(l(9687).q)(i.R),T=v},6129(Zt,pe,l){"use strict";l.d(pe,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},7242(Zt,pe,l){"use strict";l.d(pe,{T:()=>w});var i=l(6780),v=l(9687);const w=new class T extends v.q{}(class d extends i.R{constructor(f,u){super(f,u),this.scheduler=f,this.work=u}schedule(f,u=0){return u>0?super.schedule(f,u):(this.delay=u,this.state=f,this.scheduler.flush(this),this)}execute(f,u){return u>0||this.closed?super.execute(f,u):this._execute(f,u)}requestAsyncId(f,u,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(f,u,L):(f.flush(this),0)}})},9270(Zt,pe,l){"use strict";l.d(pe,{f:()=>i});const i={setTimeout(d,v,...T){const{delegate:w}=i;return w?.setTimeout?w.setTimeout(d,v,...T):setTimeout(d,v,...T)},clearTimeout(d){const{delegate:v}=i;return(v?.clearTimeout||clearTimeout)(d)},delegate:void 0}},4761(Zt,pe,l){"use strict";l.d(pe,{l:()=>d});const d=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494(Zt,pe,l){"use strict";l.d(pe,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350(Zt,pe,l){"use strict";l.d(pe,{G:()=>d});const d=(0,l(1853).L)(v=>function(){v(this),this.name="EmptyError",this.message="no elements in sequence"})},9326(Zt,pe,l){"use strict";l.d(pe,{R0:()=>e,lI:()=>w,ms:()=>T});var i=l(8071),d=l(9470);function v(O){return O[O.length-1]}function T(O){return(0,i.T)(v(O))?O.pop():void 0}function w(O){return(0,d.m)(v(O))?O.pop():void 0}function e(O,f){return"number"==typeof v(O)?O.pop():f}},3073(Zt,pe,l){"use strict";l.d(pe,{D:()=>w});const{isArray:i}=Array,{getPrototypeOf:d,prototype:v,keys:T}=Object;function w(O){if(1===O.length){const f=O[0];if(i(f))return{args:f,keys:null};if(function e(O){return O&&"object"==typeof O&&d(O)===v}(f)){const u=T(f);return{args:u.map(L=>f[L]),keys:u}}}return{args:O,keys:null}}},7908(Zt,pe,l){"use strict";function i(d,v){if(d){const T=d.indexOf(v);0<=T&&d.splice(T,1)}}l.d(pe,{o:()=>i})},1853(Zt,pe,l){"use strict";function i(d){const T=d(w=>{Error.call(w),w.stack=(new Error).stack});return T.prototype=Object.create(Error.prototype),T.prototype.constructor=T,T}l.d(pe,{L:()=>i})},8496(Zt,pe,l){"use strict";function i(d,v){return d.reduce((T,w,e)=>(T[w]=v[e],T),{})}l.d(pe,{e:()=>i})},9786(Zt,pe,l){"use strict";l.d(pe,{Y:()=>v,l:()=>T});var i=l(1026);let d=null;function v(w){if(i.$.useDeprecatedSynchronousErrorHandling){const e=!d;if(e&&(d={errorThrown:!1,error:null}),w(),e){const{errorThrown:O,error:f}=d;if(d=null,O)throw f}}else w()}function T(w){i.$.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=w)}},5225(Zt,pe,l){"use strict";function i(d,v,T,w=0,e=!1){const O=v.schedule(function(){T(),e?d.add(this.schedule(null,w)):this.unsubscribe()},w);if(d.add(O),!e)return O}l.d(pe,{N:()=>i})},3669(Zt,pe,l){"use strict";function i(d){return d}l.d(pe,{D:()=>i})},7441(Zt,pe,l){"use strict";l.d(pe,{X:()=>i});const i=d=>d&&"number"==typeof d.length&&"function"!=typeof d},7953(Zt,pe,l){"use strict";l.d(pe,{T:()=>d});var i=l(8071);function d(v){return Symbol.asyncIterator&&(0,i.T)(v?.[Symbol.asyncIterator])}},8211(Zt,pe,l){"use strict";function i(d){return d instanceof Date&&!isNaN(d)}l.d(pe,{v:()=>i})},8071(Zt,pe,l){"use strict";function i(d){return"function"==typeof d}l.d(pe,{T:()=>i})},5055(Zt,pe,l){"use strict";l.d(pe,{l:()=>v});var i=l(3494),d=l(8071);function v(T){return(0,d.T)(T[i.s])}},5397(Zt,pe,l){"use strict";l.d(pe,{x:()=>v});var i=l(4761),d=l(8071);function v(T){return(0,d.T)(T?.[i.l])}},4402(Zt,pe,l){"use strict";l.d(pe,{A:()=>v});var i=l(1985),d=l(8071);function v(T){return!!T&&(T instanceof i.c||(0,d.T)(T.lift)&&(0,d.T)(T.subscribe))}},9858(Zt,pe,l){"use strict";l.d(pe,{y:()=>d});var i=l(8071);function d(v){return(0,i.T)(v?.then)}},5196(Zt,pe,l){"use strict";l.d(pe,{C:()=>v,U:()=>T});var i=l(1635),d=l(8071);function v(w){return(0,i.AQ)(this,arguments,function*(){const O=w.getReader();try{for(;;){const{value:f,done:u}=yield(0,i.N3)(O.read());if(u)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(f)}}finally{O.releaseLock()}})}function T(w){return(0,d.T)(w?.getReader)}},9470(Zt,pe,l){"use strict";l.d(pe,{m:()=>d});var i=l(8071);function d(v){return v&&(0,i.T)(v.schedule)}},9974(Zt,pe,l){"use strict";l.d(pe,{N:()=>v,S:()=>d});var i=l(8071);function d(T){return(0,i.T)(T?.lift)}function v(T){return w=>{if(d(w))return w.lift(function(e){try{return T(e,this)}catch(O){this.error(O)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450(Zt,pe,l){"use strict";l.d(pe,{I:()=>T});var i=l(6354);const{isArray:d}=Array;function T(w){return(0,i.T)(e=>function v(w,e){return d(e)?w(...e):w(e)}(w,e))}},5343(Zt,pe,l){"use strict";function i(){}l.d(pe,{l:()=>i})},1203(Zt,pe,l){"use strict";l.d(pe,{F:()=>d,m:()=>v});var i=l(3669);function d(...T){return v(T)}function v(T){return 0===T.length?i.D:1===T.length?T[0]:function(e){return T.reduce((O,f)=>f(O),e)}}},5334(Zt,pe,l){"use strict";l.d(pe,{m:()=>v});var i=l(1026),d=l(9270);function v(T){d.f.setTimeout(()=>{const{onUnhandledError:w}=i.$;if(!w)throw T;w(T)})}},591(Zt,pe,l){"use strict";function i(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(pe,{L:()=>i})},2852(Zt,pe,l){!function(i){"use strict";var d={};Zt.exports?(d.bytesToHex=l(4740).bytesToHex,d.convertString=l(820),Zt.exports=f):(d.bytesToHex=i.convertHex.bytesToHex,d.convertString=i.convertString,i.sha256=f);var v=[];!function(){function u(A){for(var Pe=Math.sqrt(A),le=2;le<=Pe;le++)if(!(A%le))return!1;return!0}function L(A){return 4294967296*(A-(0|A))|0}for(var C=2,B=0;B<64;)u(C)&&(v[B]=L(Math.pow(C,1/3)),B++),C++}();var T=function(u){for(var L=[],C=0,B=0;C>>5]|=u[C]<<24-B%32;return L},w=function(u){for(var L=[],C=0;C<32*u.length;C+=8)L.push(u[C>>>5]>>>24-C%32&255);return L},e=[],O=function(u,L,C){for(var B=u[0],A=u[1],Pe=u[2],le=u[3],Ce=u[4],Ae=u[5],j=u[6],W=u[7],G=0;G<64;G++){if(G<16)e[G]=0|L[C+G];else{var re=e[G-15],Ee=e[G-2];e[G]=((re<<25|re>>>7)^(re<<14|re>>>18)^re>>>3)+e[G-7]+((Ee<<15|Ee>>>17)^(Ee<<13|Ee>>>19)^Ee>>>10)+e[G-16]}var be=B&A^B&Pe^A&Pe,De=W+((Ce<<26|Ce>>>6)^(Ce<<21|Ce>>>11)^(Ce<<7|Ce>>>25))+(Ce&Ae^~Ce&j)+v[G]+e[G];W=j,j=Ae,Ae=Ce,Ce=le+De|0,le=Pe,Pe=A,A=B,B=De+(((B<<30|B>>>2)^(B<<19|B>>>13)^(B<<10|B>>>22))+be)|0}u[0]=u[0]+B|0,u[1]=u[1]+A|0,u[2]=u[2]+Pe|0,u[3]=u[3]+le|0,u[4]=u[4]+Ce|0,u[5]=u[5]+Ae|0,u[6]=u[6]+j|0,u[7]=u[7]+W|0};function f(u,L){u.constructor===String&&(u=d.convertString.UTF8.stringToBytes(u));var C=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],B=T(u),A=8*u.length;B[A>>5]|=128<<24-A%32,B[15+(A+64>>9<<4)]=A;for(var Pe=0;Pej,If:()=>i,K2:()=>e,Os:()=>w,P:()=>Pe,PZ:()=>Ae,hZ:()=>v,i0:()=>T,i7:()=>u,iF:()=>O,kY:()=>L,kp:()=>d,sf:()=>Ce,wk:()=>f});var i=function(W){return W[W.State=0]="State",W[W.Transition=1]="Transition",W[W.Sequence=2]="Sequence",W[W.Group=3]="Group",W[W.Animate=4]="Animate",W[W.Keyframes=5]="Keyframes",W[W.Style=6]="Style",W[W.Trigger=7]="Trigger",W[W.Reference=8]="Reference",W[W.AnimateChild=9]="AnimateChild",W[W.AnimateRef=10]="AnimateRef",W[W.Query=11]="Query",W[W.Stagger=12]="Stagger",W}(i||{});const d="*";function v(W,G){return{type:i.Trigger,name:W,definitions:G,options:{}}}function T(W,G=null){return{type:i.Animate,styles:G,timings:W}}function w(W,G=null){return{type:i.Group,steps:W,options:G}}function e(W,G=null){return{type:i.Sequence,steps:W,options:G}}function O(W){return{type:i.Style,styles:W,offset:null}}function f(W,G,re){return{type:i.State,name:W,styles:G,options:re}}function u(W){return{type:i.Keyframes,steps:W}}function L(W,G,re=null){return{type:i.Transition,expr:W,animation:G,options:re}}function Pe(W,G,re=null){return{type:i.Query,selector:W,animation:G,options:re}}class Ce{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(G=0,re=0){this.totalTime=G+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}onStart(G){this._originalOnStartFns.push(G),this._onStartFns.push(G)}onDone(G){this._originalOnDoneFns.push(G),this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(G=>G()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(G){this._position=this.totalTime?G*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(G){const re="start"==G?this._onStartFns:this._onDoneFns;re.forEach(xe=>xe()),re.length=0}}class Ae{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(G){this.players=G;let re=0,xe=0,Ee=0;const V=this.players.length;0==V?queueMicrotask(()=>this._onFinish()):this.players.forEach(ce=>{ce.onDone(()=>{++re==V&&this._onFinish()}),ce.onDestroy(()=>{++xe==V&&this._onDestroy()}),ce.onStart(()=>{++Ee==V&&this._onStart()})}),this.totalTime=this.players.reduce((ce,be)=>Math.max(ce,be.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(G=>G()),this._onDoneFns=[])}init(){this.players.forEach(G=>G.init())}onStart(G){this._onStartFns.push(G)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(G=>G()),this._onStartFns=[])}onDone(G){this._onDoneFns.push(G)}onDestroy(G){this._onDestroyFns.push(G)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(G=>G.play())}pause(){this.players.forEach(G=>G.pause())}restart(){this.players.forEach(G=>G.restart())}finish(){this._onFinish(),this.players.forEach(G=>G.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(G=>G.destroy()),this._onDestroyFns.forEach(G=>G()),this._onDestroyFns=[])}reset(){this.players.forEach(G=>G.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(G){const re=G*this.totalTime;this.players.forEach(xe=>{const Ee=xe.totalTime?Math.min(1,re/xe.totalTime):1;xe.setPosition(Ee)})}getPosition(){const G=this.players.reduce((re,xe)=>null===re||xe.totalTime>re.totalTime?xe:re,null);return null!=G?G.getPosition():0}beforeDestroy(){this.players.forEach(G=>{G.beforeDestroy&&G.beforeDestroy()})}triggerCallback(G){const re="start"==G?this._onStartFns:this._onDoneFns;re.forEach(xe=>xe()),re.length=0}}const j="!"},7094(Zt,pe,l){"use strict";l.d(pe,{Ai:()=>ie,GX:()=>_e,Pd:()=>Vt,Q_:()=>Ke,Z7:()=>j,kB:()=>he,sp:()=>Xe});var f=l(2615),u=l(3664),L=l(7705),C=l(9842),B=l(4522),A=l(8968),Pe=l(9046),le=l(4330),Ce=l(2318);let j=(()=>{class St{_platform=(0,f.WQX)(C.O);constructor(){}isDisabled(nt){return nt.hasAttribute("disabled")}isVisible(nt){return function G(St){return!!(St.offsetWidth||St.offsetHeight||"function"==typeof St.getClientRects&&St.getClientRects().length)}(nt)&&"visible"===getComputedStyle(nt).visibility}isTabbable(nt){if(!this._platform.isBrowser)return!1;const ht=function W(St){try{return St.frameElement}catch{return null}}(function Re(St){return St.ownerDocument&&St.ownerDocument.defaultView||window}(nt));if(ht&&(-1===ne(ht)||!this.isVisible(ht)))return!1;let oe=nt.nodeName.toLowerCase(),Ye=ne(nt);return nt.hasAttribute("contenteditable")?-1!==Ye:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function J(St){let ot=St.nodeName.toLowerCase(),nt="input"===ot&&St.type;return"text"===nt||"password"===nt||"select"===ot||"textarea"===ot}(nt))&&("audio"===oe?!!nt.hasAttribute("controls")&&-1!==Ye:"video"===oe?-1!==Ye&&(null!==Ye||this._platform.FIREFOX||nt.hasAttribute("controls")):nt.tabIndex>=0)}isFocusable(nt,ht){return function De(St){return!function xe(St){return function V(St){return"input"==St.nodeName.toLowerCase()}(St)&&"hidden"==St.type}(St)&&(function re(St){let ot=St.nodeName.toLowerCase();return"input"===ot||"select"===ot||"button"===ot||"textarea"===ot}(St)||function Ee(St){return function ce(St){return"a"==St.nodeName.toLowerCase()}(St)&&St.hasAttribute("href")}(St)||St.hasAttribute("contenteditable")||be(St))}(nt)&&!this.isDisabled(nt)&&(ht?.ignoreVisibility||this.isVisible(nt))}static \u0275fac=function(ht){return new(ht||St)};static \u0275prov=f.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})();function be(St){if(!St.hasAttribute("tabindex")||void 0===St.tabIndex)return!1;let ot=St.getAttribute("tabindex");return!(!ot||isNaN(parseInt(ot,10)))}function ne(St){if(!be(St))return null;const ot=parseInt(St.getAttribute("tabindex")||"",10);return isNaN(ot)?-1:ot}class Xe{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(ot){this._enabled=ot,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ot,this._startAnchor),this._toggleAnchorTabIndex(ot,this._endAnchor))}_enabled=!0;constructor(ot,nt,ht,oe,Ye=!1,fe){this._element=ot,this._checker=nt,this._ngZone=ht,this._document=oe,this._injector=fe,Ye||this.attachAnchors()}destroy(){const ot=this._startAnchor,nt=this._endAnchor;ot&&(ot.removeEventListener("focus",this.startAnchorListener),ot.remove()),nt&&(nt.removeEventListener("focus",this.endAnchorListener),nt.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(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(ot){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusInitialElement(ot)))})}focusFirstTabbableElementWhenReady(ot){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusFirstTabbableElement(ot)))})}focusLastTabbableElementWhenReady(ot){return new Promise(nt=>{this._executeOnStable(()=>nt(this.focusLastTabbableElement(ot)))})}_getRegionBoundary(ot){const nt=this._element.querySelectorAll(`[cdk-focus-region-${ot}], [cdkFocusRegion${ot}], [cdk-focus-${ot}]`);return"start"==ot?nt.length?nt[0]:this._getFirstTabbableElement(this._element):nt.length?nt[nt.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ot){const nt=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(nt){if(!this._checker.isFocusable(nt)){const ht=this._getFirstTabbableElement(nt);return ht?.focus(ot),!!ht}return nt.focus(ot),!0}return this.focusFirstTabbableElement(ot)}focusFirstTabbableElement(ot){const nt=this._getRegionBoundary("start");return nt&&nt.focus(ot),!!nt}focusLastTabbableElement(ot){const nt=this._getRegionBoundary("end");return nt&&nt.focus(ot),!!nt}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ot){if(this._checker.isFocusable(ot)&&this._checker.isTabbable(ot))return ot;const nt=ot.children;for(let ht=0;ht=0;ht--){const oe=nt[ht].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(nt[ht]):null;if(oe)return oe}return null}_createAnchor(){const ot=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ot),ot.classList.add("cdk-visually-hidden"),ot.classList.add("cdk-focus-trap-anchor"),ot.setAttribute("aria-hidden","true"),ot}_toggleAnchorTabIndex(ot,nt){ot?nt.setAttribute("tabindex","0"):nt.removeAttribute("tabindex")}toggleAnchors(ot){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ot,this._startAnchor),this._toggleAnchorTabIndex(ot,this._endAnchor))}_executeOnStable(ot){this._injector?(0,u.mal)(ot,{injector:this._injector}):setTimeout(ot)}}let _e=(()=>{class St{_checker=(0,f.WQX)(j);_ngZone=(0,f.WQX)(u.SKi);_document=(0,f.WQX)(f.qQL);_injector=(0,f.WQX)(f.zZn);constructor(){(0,f.WQX)(A.l).load(Pe.Y)}create(nt,ht=!1){return new Xe(nt,this._checker,this._ngZone,this._document,ht,this._injector)}static \u0275fac=function(ht){return new(ht||St)};static \u0275prov=f.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})(),he=(()=>{class St{_elementRef=(0,f.WQX)(u.aKT);_focusTrapFactory=(0,f.WQX)(_e);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(nt){this.focusTrap&&(this.focusTrap.enabled=nt)}autoCapture;constructor(){(0,f.WQX)(C.O).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(nt){const ht=nt.autoCapture;ht&&!ht.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,B.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(ht){return new(ht||St)};static \u0275dir=u.FsC({type:St,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",L.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",L.L39]},exportAs:["cdkTrapFocus"],features:[u.OA$]})}return St})();const Dt=new f.nKC("liveAnnouncerElement",{providedIn:"root",factory:function lt(){return null}}),Le=new f.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let te=0,ie=(()=>{class St{_ngZone=(0,f.WQX)(u.SKi);_defaultOptions=(0,f.WQX)(Le,{optional:!0});_liveElement;_document=(0,f.WQX)(f.qQL);_previousTimeout;_currentPromise;_currentResolve;constructor(){const nt=(0,f.WQX)(Dt,{optional:!0});this._liveElement=nt||this._createLiveElement()}announce(nt,...ht){const oe=this._defaultOptions;let Ye,fe;return 1===ht.length&&"number"==typeof ht[0]?fe=ht[0]:[Ye,fe]=ht,this.clear(),clearTimeout(this._previousTimeout),Ye||(Ye=oe&&oe.politeness?oe.politeness:"polite"),null==fe&&oe&&(fe=oe.duration),this._liveElement.setAttribute("aria-live",Ye),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(Qe=>this._currentResolve=Qe)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=nt,"number"==typeof fe&&(this._previousTimeout=setTimeout(()=>this.clear(),fe)),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(){const nt="cdk-live-announcer-element",ht=this._document.getElementsByClassName(nt),oe=this._document.createElement("div");for(let Ye=0;Ye .cdk-overlay-container [aria-modal="true"]');for(let oe=0;oe{class St{_platform=(0,f.WQX)(C.O);_hasCheckedHighContrastMode;_document=(0,f.WQX)(f.qQL);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,f.WQX)(le.Q).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return F.NONE;const nt=this._document.createElement("div");nt.style.backgroundColor="rgb(1,2,3)",nt.style.position="absolute",this._document.body.appendChild(nt);const ht=this._document.defaultView||window,oe=ht&&ht.getComputedStyle?ht.getComputedStyle(nt):null,Ye=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(nt.remove(),Ye){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return F.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return F.BLACK_ON_WHITE}return F.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const nt=this._document.body.classList;nt.remove($,ve,H),this._hasCheckedHighContrastMode=!0;const ht=this.getHighContrastMode();ht===F.BLACK_ON_WHITE?nt.add($,ve):ht===F.WHITE_ON_BLACK&&nt.add($,H)}}static \u0275fac=function(ht){return new(ht||St)};static \u0275prov=f.jDH({token:St,factory:St.\u0275fac,providedIn:"root"})}return St})(),Vt=(()=>{class St{constructor(){(0,f.WQX)(Ke)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(ht){return new(ht||St)};static \u0275mod=u.$C({type:St});static \u0275inj=f.G2t({imports:[Ce.w5]})}return St})()},8617(Zt,pe,l){"use strict";l.d(pe,{Ae:()=>Ae,px:()=>Ce,vr:()=>Ee}),l(7094);var f=l(2615),u=l(3664),L=l(9842),C=l(8968),B=l(9046);function Ce(Dt,lt,Le){const te=j(Dt,lt);Le=Le.trim(),!te.some(ie=>ie.trim()===Le)&&(te.push(Le),Dt.setAttribute(lt,te.join(" ")))}function Ae(Dt,lt,Le){const te=j(Dt,lt);Le=Le.trim();const ie=te.filter(P=>P!==Le);ie.length?Dt.setAttribute(lt,ie.join(" ")):Dt.removeAttribute(lt)}function j(Dt,lt){return Dt.getAttribute(lt)?.match(/\S+/g)??[]}l(1413),l(4125);const G="cdk-describedby-message",re="cdk-describedby-host";let xe=0,Ee=(()=>{class Dt{_platform=(0,f.WQX)(L.O);_document=(0,f.WQX)(f.qQL);_messageRegistry=new Map;_messagesContainer=null;_id=""+xe++;constructor(){(0,f.WQX)(C.l).load(B.Y),this._id=(0,f.WQX)(u.sZ2)+"-"+xe++}describe(Le,te,ie){if(!this._canBeDescribed(Le,te))return;const P=V(te,ie);"string"!=typeof te?(ce(te,this._id),this._messageRegistry.set(P,{messageElement:te,referenceCount:0})):this._messageRegistry.has(P)||this._createMessageElement(te,ie),this._isElementDescribedByMessage(Le,P)||this._addMessageReference(Le,P)}removeDescription(Le,te,ie){if(!te||!this._isElementNode(Le))return;const P=V(te,ie);if(this._isElementDescribedByMessage(Le,P)&&this._removeMessageReference(Le,P),"string"==typeof te){const F=this._messageRegistry.get(P);F&&0===F.referenceCount&&this._deleteMessageElement(P)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const Le=this._document.querySelectorAll(`[${re}="${this._id}"]`);for(let te=0;te0!=ie.indexOf(G));Le.setAttribute("aria-describedby",te.join(" "))}_addMessageReference(Le,te){const ie=this._messageRegistry.get(te);Ce(Le,"aria-describedby",ie.messageElement.id),Le.setAttribute(re,this._id),ie.referenceCount++}_removeMessageReference(Le,te){const ie=this._messageRegistry.get(te);ie.referenceCount--,Ae(Le,"aria-describedby",ie.messageElement.id),Le.removeAttribute(re)}_isElementDescribedByMessage(Le,te){const ie=j(Le,"aria-describedby"),P=this._messageRegistry.get(te),F=P&&P.messageElement.id;return!!F&&-1!=ie.indexOf(F)}_canBeDescribed(Le,te){if(!this._isElementNode(Le))return!1;if(te&&"object"==typeof te)return!0;const ie=null==te?"":`${te}`.trim(),P=Le.getAttribute("aria-label");return!(!ie||P&&P.trim()===ie)}_isElementNode(Le){return Le.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(te){return new(te||Dt)};static \u0275prov=f.jDH({token:Dt,factory:Dt.\u0275fac,providedIn:"root"})}return Dt})();function V(Dt,lt){return"string"==typeof Dt?`${lt||""}/${Dt}`:Dt}function ce(Dt,lt){Dt.id||(Dt.id=`${G}-${lt}-${xe++}`)}},9090(Zt,pe,l){"use strict";l.d(pe,{A:()=>d});var i=l(2593);class d extends i.l{setActiveItem(T){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(T),this.activeItem&&this.activeItem.setActiveStyles()}}},408(Zt,pe,l){"use strict";function i(d){return Array.isArray(d)?d:[d]}l.d(pe,{F:()=>i})},8203(Zt,pe,l){"use strict";l.d(pe,{jI:()=>u});var e=l(2615),O=l(3664);let u=(()=>{class L{static \u0275fac=function(A){return new(A||L)};static \u0275mod=O.$C({type:L});static \u0275inj=e.G2t({})}return L})()},4330(Zt,pe,l){"use strict";l.d(pe,{D:()=>Ae,Q:()=>G});var i=l(2615),d=l(3664),v=l(1985),T=l(1413),w=l(4572),e=l(8793),O=l(152),f=l(6354),u=l(5245),L=l(9172),C=l(6697),B=l(6977),A=l(9842),Pe=l(408);const le=new Set;let Ce,Ae=(()=>{class xe{_platform=(0,i.WQX)(A.O);_nonce=(0,i.WQX)(d.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):W}matchMedia(V){return(this._platform.WEBKIT||this._platform.BLINK)&&function j(xe,Ee){if(!le.has(xe))try{Ce||(Ce=document.createElement("style"),Ee&&Ce.setAttribute("nonce",Ee),Ce.setAttribute("type","text/css"),document.head.appendChild(Ce)),Ce.sheet&&(Ce.sheet.insertRule(`@media ${xe} {body{ }}`,0),le.add(xe))}catch(V){console.error(V)}}(V,this._nonce),this._matchMedia(V)}static \u0275fac=function(ce){return new(ce||xe)};static \u0275prov=i.jDH({token:xe,factory:xe.\u0275fac,providedIn:"root"})}return xe})();function W(xe){return{matches:"all"===xe||""===xe,media:xe,addListener:()=>{},removeListener:()=>{}}}let G=(()=>{class xe{_mediaMatcher=(0,i.WQX)(Ae);_zone=(0,i.WQX)(d.SKi);_queries=new Map;_destroySubject=new T.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(V){return re((0,Pe.F)(V)).some(be=>this._registerQuery(be).mql.matches)}observe(V){const be=re((0,Pe.F)(V)).map(J=>this._registerQuery(J).observable);let ne=(0,w.z)(be);return ne=(0,e.x)(ne.pipe((0,C.s)(1)),ne.pipe((0,u.i)(1),(0,O.B)(0))),ne.pipe((0,f.T)(J=>{const De={matches:!1,breakpoints:{}};return J.forEach(({matches:Re,query:Xe})=>{De.matches=De.matches||Re,De.breakpoints[Xe]=Re}),De}))}_registerQuery(V){if(this._queries.has(V))return this._queries.get(V);const ce=this._mediaMatcher.matchMedia(V),ne={observable:new v.c(J=>{const De=Re=>this._zone.run(()=>J.next(Re));return ce.addListener(De),()=>{ce.removeListener(De)}}).pipe((0,L.Z)(ce),(0,f.T)(({matches:J})=>({query:V,matches:J})),(0,B.Q)(this._destroySubject)),mql:ce};return this._queries.set(V,ne),ne}static \u0275fac=function(ce){return new(ce||xe)};static \u0275prov=i.jDH({token:xe,factory:xe.\u0275fac,providedIn:"root"})}return xe})();function re(xe){return xe.map(Ee=>Ee.split(",")).reduce((Ee,V)=>Ee.concat(V)).map(Ee=>Ee.trim())}},4085(Zt,pe,l){"use strict";function i(v){return null!=v&&"false"!=`${v}`}function d(v,T=/\s+/){const w=[];if(null!=v){const e=Array.isArray(v)?v:`${v}`.split(T);for(const O of e){const f=`${O}`.trim();f&&w.push(f)}}return w}l.d(pe,{cc:()=>d,he:()=>i})},8045(Zt,pe,l){"use strict";l.d(pe,{x:()=>v});var i=l(4402),d=l(7673);function v(T){return(0,i.A)(T)?T:(0,d.of)(T)}},4117(Zt,pe,l){"use strict";l.d(pe,{q:()=>d,y:()=>v});var i=l(17);class d{}function v(T){return T&&"function"==typeof T.connect&&!(T instanceof i.G)}},1577(Zt,pe,l){"use strict";l.d(pe,{dS:()=>O});var i=l(2615),d=l(3664);const v=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function T(){return(0,i.WQX)(i.qQL)}}),w=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let O=(()=>{class f{get value(){return this.valueSignal()}valueSignal=(0,i.vPA)("ltr");change=new d.bkB;constructor(){const L=(0,i.WQX)(v,{optional:!0});L&&this.valueSignal.set(function e(f){const u=f?.toLowerCase()||"";return"auto"===u&&typeof navigator<"u"&&navigator?.language?w.test(navigator.language)?"rtl":"ltr":"rtl"===u?"rtl":"ltr"}((L.body?L.body.dir:null)||(L.documentElement?L.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(C){return new(C||f)};static \u0275prov=i.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},7847(Zt,pe,l){"use strict";l.d(pe,{OE:()=>d,i8:()=>T,o1:()=>v});var i=l(3664);function d(w,e=0){return v(w)?Number(w):2===arguments.length?e:0}function v(w){return!isNaN(parseFloat(w))&&!isNaN(Number(w))}function T(w){return w instanceof i.aKT?w.nativeElement:w}},5735(Zt,pe,l){"use strict";function i(v){return 0===v.buttons||0===v.detail}function d(v){const T=v.touches&&v.touches[0]||v.changedTouches&&v.changedTouches[0];return!(!T||-1!==T.identifier||null!=T.radiusX&&1!==T.radiusX||null!=T.radiusY&&1!==T.radiusY)}l.d(pe,{_:()=>i,w:()=>d})},4123(Zt,pe,l){"use strict";l.d(pe,{B:()=>d});var i=l(2593);class d extends i.l{_origin="program";setFocusOrigin(T){return this._origin=T,this}setActiveItem(T){super.setActiveItem(T),this.activeItem&&this.activeItem.focus(this._origin)}}},6838(Zt,pe,l){"use strict";l.d(pe,{FN:()=>Ee,vR:()=>V});var i=l(2615),d=l(3664),v=l(1413),T=l(4412),w=l(7673),e=l(3294),O=l(5245),f=l(6977),u=l(5735),L=l(438),C=l(4522),B=l(9842),A=l(3300),Pe=l(7847);const le=new i.nKC("cdk-input-modality-detector-options"),Ce={ignoreKeys:[L.A$,L.W3,L.eg,L.Ge,L.FX]},j={passive:!0,capture:!0};let W=(()=>{class ce{_platform=(0,i.WQX)(B.O);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new T.t(null);_options;_lastTouchMs=0;_onKeydown=ne=>{this._options?.ignoreKeys?.some(J=>J===ne.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,C.Fb)(ne))};_onMousedown=ne=>{Date.now()-this._lastTouchMs<650||(this._modality.next((0,u._)(ne)?"keyboard":"mouse"),this._mostRecentTarget=(0,C.Fb)(ne))};_onTouchstart=ne=>{(0,u.w)(ne)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,C.Fb)(ne))};constructor(){const ne=(0,i.WQX)(d.SKi),J=(0,i.WQX)(i.qQL),De=(0,i.WQX)(le,{optional:!0});if(this._options={...Ce,...De},this.modalityDetected=this._modality.pipe((0,O.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,e.F)()),this._platform.isBrowser){const Re=(0,i.WQX)(d._9s).createRenderer(null,null);this._listenerCleanups=ne.runOutsideAngular(()=>[Re.listen(J,"keydown",this._onKeydown,j),Re.listen(J,"mousedown",this._onMousedown,j),Re.listen(J,"touchstart",this._onTouchstart,j)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(ne=>ne())}static \u0275fac=function(J){return new(J||ce)};static \u0275prov=i.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();var G=function(ce){return ce[ce.IMMEDIATE=0]="IMMEDIATE",ce[ce.EVENTUAL=1]="EVENTUAL",ce}(G||{});const re=new i.nKC("cdk-focus-monitor-default-options"),xe=(0,A.B)({passive:!0,capture:!0});let Ee=(()=>{class ce{_ngZone=(0,i.WQX)(d.SKi);_platform=(0,i.WQX)(B.O);_inputModalityDetector=(0,i.WQX)(W);_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=(0,i.WQX)(i.qQL);_stopInputModalityDetector=new v.B;constructor(){const ne=(0,i.WQX)(re,{optional:!0});this._detectionMode=ne?.detectionMode||G.IMMEDIATE}_rootNodeFocusAndBlurListener=ne=>{for(let De=(0,C.Fb)(ne);De;De=De.parentElement)"focus"===ne.type?this._onFocus(ne,De):this._onBlur(ne,De)};monitor(ne,J=!1){const De=(0,Pe.i8)(ne);if(!this._platform.isBrowser||1!==De.nodeType)return(0,w.of)();const Re=(0,C.KT)(De)||this._document,Xe=this._elementInfo.get(De);if(Xe)return J&&(Xe.checkChildren=!0),Xe.subject;const _e={checkChildren:J,subject:new v.B,rootNode:Re};return this._elementInfo.set(De,_e),this._registerGlobalListeners(_e),_e.subject}stopMonitoring(ne){const J=(0,Pe.i8)(ne),De=this._elementInfo.get(J);De&&(De.subject.complete(),this._setClasses(J),this._elementInfo.delete(J),this._removeGlobalListeners(De))}focusVia(ne,J,De){const Re=(0,Pe.i8)(ne);Re===this._document.activeElement?this._getClosestElementsInfo(Re).forEach(([_e,he])=>this._originChanged(_e,J,he)):(this._setOrigin(J),"function"==typeof Re.focus&&Re.focus(De))}ngOnDestroy(){this._elementInfo.forEach((ne,J)=>this.stopMonitoring(J))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(ne){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(ne)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:ne&&this._isLastInteractionFromInputLabel(ne)?"mouse":"program"}_shouldBeAttributedToTouch(ne){return this._detectionMode===G.EVENTUAL||!!ne?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(ne,J){ne.classList.toggle("cdk-focused",!!J),ne.classList.toggle("cdk-touch-focused","touch"===J),ne.classList.toggle("cdk-keyboard-focused","keyboard"===J),ne.classList.toggle("cdk-mouse-focused","mouse"===J),ne.classList.toggle("cdk-program-focused","program"===J)}_setOrigin(ne,J=!1){this._ngZone.runOutsideAngular(()=>{this._origin=ne,this._originFromTouchInteraction="touch"===ne&&J,this._detectionMode===G.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(ne,J){const De=this._elementInfo.get(J),Re=(0,C.Fb)(ne);!De||!De.checkChildren&&J!==Re||this._originChanged(J,this._getFocusOrigin(Re),De)}_onBlur(ne,J){const De=this._elementInfo.get(J);!De||De.checkChildren&&ne.relatedTarget instanceof Node&&J.contains(ne.relatedTarget)||(this._setClasses(J),this._emitOrigin(De,null))}_emitOrigin(ne,J){ne.subject.observers.length&&this._ngZone.run(()=>ne.subject.next(J))}_registerGlobalListeners(ne){if(!this._platform.isBrowser)return;const J=ne.rootNode,De=this._rootNodeFocusListenerCount.get(J)||0;De||this._ngZone.runOutsideAngular(()=>{J.addEventListener("focus",this._rootNodeFocusAndBlurListener,xe),J.addEventListener("blur",this._rootNodeFocusAndBlurListener,xe)}),this._rootNodeFocusListenerCount.set(J,De+1),1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,f.Q)(this._stopInputModalityDetector)).subscribe(Re=>{this._setOrigin(Re,!0)}))}_removeGlobalListeners(ne){const J=ne.rootNode;if(this._rootNodeFocusListenerCount.has(J)){const De=this._rootNodeFocusListenerCount.get(J);De>1?this._rootNodeFocusListenerCount.set(J,De-1):(J.removeEventListener("focus",this._rootNodeFocusAndBlurListener,xe),J.removeEventListener("blur",this._rootNodeFocusAndBlurListener,xe),this._rootNodeFocusListenerCount.delete(J))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(ne,J,De){this._setClasses(ne,J),this._emitOrigin(De,J),this._lastFocusOrigin=J}_getClosestElementsInfo(ne){const J=[];return this._elementInfo.forEach((De,Re)=>{(Re===ne||De.checkChildren&&Re.contains(ne))&&J.push([Re,De])}),J}_isLastInteractionFromInputLabel(ne){const{_mostRecentTarget:J,mostRecentModality:De}=this._inputModalityDetector;if("mouse"!==De||!J||J===ne||"INPUT"!==ne.nodeName&&"TEXTAREA"!==ne.nodeName||ne.disabled)return!1;const Re=ne.labels;if(Re)for(let Xe=0;Xe{class ce{_elementRef=(0,i.WQX)(d.aKT);_focusMonitor=(0,i.WQX)(Ee);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new d.bkB;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const ne=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(ne,1===ne.nodeType&&ne.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(J=>{this._focusOrigin=J,this.cdkFocusChange.emit(J)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(J){return new(J||ce)};static \u0275dir=d.FsC({type:ce,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return ce})()},9726(Zt,pe,l){"use strict";l.d(pe,{g:()=>T});var i=l(2615),d=l(3664);const v={};let T=(()=>{class w{_appId=(0,i.WQX)(d.sZ2);getId(O){return"ng"!==this._appId&&(O+=this._appId),v.hasOwnProperty(O)||(v[O]=0),`${O}${v[O]++}`}static \u0275fac=function(f){return new(f||w)};static \u0275prov=i.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},7336(Zt,pe,l){"use strict";function i(d,...v){return v.length?v.some(T=>d[T]):d.altKey||d.shiftKey||d.ctrlKey||d.metaKey}l.d(pe,{rp:()=>i})},438(Zt,pe,l){"use strict";l.d(pe,{A:()=>P,A$:()=>f,FX:()=>e,Fm:()=>w,G_:()=>d,Ge:()=>pt,Kp:()=>le,LE:()=>W,SJ:()=>V,UQ:()=>Ae,W3:()=>O,Z:()=>wt,_f:()=>C,bn:()=>Dt,dB:()=>Pe,eg:()=>ci,f2:()=>ce,i7:()=>j,n6:()=>G,t6:()=>B,w_:()=>A,wn:()=>v,yZ:()=>Ce});const d=8,v=9,w=13,e=16,O=17,f=18,C=27,B=32,A=33,Pe=34,le=35,Ce=36,Ae=37,j=38,W=39,G=40,V=46,ce=48,Dt=57,P=65,wt=90,pt=91,ci=224},9327(Zt,pe,l){"use strict";l.d(pe,{RH:()=>v,Rp:()=>T});var i=l(2615),d=l(3664);let v=(()=>{class w{static \u0275fac=function(f){return new(f||w)};static \u0275mod=d.$C({type:w});static \u0275inj=i.G2t({})}return w})();const T={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},2593(Zt,pe,l){"use strict";l.d(pe,{l:()=>u});var i=l(2615),d=l(3664),v=l(9295),T=l(1413),w=l(8359),e=l(9096),O=l(7336),f=l(438);class u{_items;_activeItemIndex=(0,i.vPA)(-1);_activeItem=(0,i.vPA)(null);_wrap=!1;_typeaheadSubscription=w.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=C=>C.disabled;constructor(C,B){this._items=C,C instanceof d.rOR?this._itemChangesSubscription=C.changes.subscribe(A=>this._itemsChanged(A.toArray())):(0,i.Hps)(C)&&(this._effectRef=(0,v.QZ)(()=>this._itemsChanged(C()),{injector:B}))}tabOut=new T.B;change=new T.B;skipPredicate(C){return this._skipPredicateFn=C,this}withWrap(C=!0){return this._wrap=C,this}withVerticalOrientation(C=!0){return this._vertical=C,this}withHorizontalOrientation(C){return this._horizontal=C,this}withAllowedModifierKeys(C){return this._allowedModifierKeys=C,this}withTypeAhead(C=200){this._typeaheadSubscription.unsubscribe();const B=this._getItemsArray();return this._typeahead=new e.i(B,{debounceInterval:"number"==typeof C?C:void 0,skipPredicate:A=>this._skipPredicateFn(A)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(A=>{this.setActiveItem(A)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(C=!0){return this._homeAndEnd=C,this}withPageUpDown(C=!0,B=10){return this._pageUpAndDown={enabled:C,delta:B},this}setActiveItem(C){const B=this._activeItem();this.updateActiveItem(C),this._activeItem()!==B&&this.change.next(this._activeItemIndex())}onKeydown(C){const B=C.keyCode,Pe=["altKey","ctrlKey","metaKey","shiftKey"].every(le=>!C[le]||this._allowedModifierKeys.indexOf(le)>-1);switch(B){case f.wn:return void this.tabOut.next();case f.n6:if(this._vertical&&Pe){this.setNextItemActive();break}return;case f.i7:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case f.LE:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.UQ:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.yZ:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case f.Kp:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;case f.w_:if(this._pageUpAndDown.enabled&&Pe){const le=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(le>0?le:0,1);break}return;case f.dB:if(this._pageUpAndDown.enabled&&Pe){const le=this._activeItemIndex()+this._pageUpAndDown.delta,Ce=this._getItemsArray().length;this._setActiveItemByIndex(le-1&&A!==this._activeItemIndex()&&(this._activeItemIndex.set(A),this._typeahead?.setCurrentSelectedItemIndex(A))}}}},2318(Zt,pe,l){"use strict";l.d(pe,{Wv:()=>A,w5:()=>Pe});var i=l(2615),d=l(3664),v=l(7705),T=l(1985),w=l(1413),e=l(152),O=l(5964),f=l(6354),u=l(7847);let C=(()=>{class le{create(Ae){return typeof MutationObserver>"u"?null:new MutationObserver(Ae)}static \u0275fac=function(j){return new(j||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})(),B=(()=>{class le{_mutationObserverFactory=(0,i.WQX)(C);_observedElements=new Map;_ngZone=(0,i.WQX)(d.SKi);constructor(){}ngOnDestroy(){this._observedElements.forEach((Ae,j)=>this._cleanupObserver(j))}observe(Ae){const j=(0,u.i8)(Ae);return new T.c(W=>{const re=this._observeElement(j).pipe((0,f.T)(xe=>xe.filter(Ee=>!function L(le){if("characterData"===le.type&&le.target instanceof Comment)return!0;if("childList"===le.type){for(let Ce=0;Ce!!xe.length)).subscribe(xe=>{this._ngZone.run(()=>{W.next(xe)})});return()=>{re.unsubscribe(),this._unobserveElement(j)}})}_observeElement(Ae){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(Ae))this._observedElements.get(Ae).count++;else{const j=new w.B,W=this._mutationObserverFactory.create(G=>j.next(G));W&&W.observe(Ae,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(Ae,{observer:W,stream:j,count:1})}return this._observedElements.get(Ae).stream})}_unobserveElement(Ae){this._observedElements.has(Ae)&&(this._observedElements.get(Ae).count--,this._observedElements.get(Ae).count||this._cleanupObserver(Ae))}_cleanupObserver(Ae){if(this._observedElements.has(Ae)){const{observer:j,stream:W}=this._observedElements.get(Ae);j&&j.disconnect(),W.complete(),this._observedElements.delete(Ae)}}static \u0275fac=function(j){return new(j||le)};static \u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"})}return le})(),A=(()=>{class le{_contentObserver=(0,i.WQX)(B);_elementRef=(0,i.WQX)(d.aKT);event=new d.bkB;get disabled(){return this._disabled}set disabled(Ae){this._disabled=Ae,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(Ae){this._debounce=(0,u.OE)(Ae),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const Ae=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?Ae.pipe((0,e.B)(this.debounce)):Ae).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(j){return new(j||le)};static \u0275dir=d.FsC({type:le,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",v.L39],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return le})(),Pe=(()=>{class le{static \u0275fac=function(j){return new(j||le)};static \u0275mod=d.$C({type:le});static \u0275inj=i.G2t({providers:[C]})}return le})()},3610(Zt,pe,l){"use strict";l.d(pe,{a:()=>B});var i=l(2615),d=l(3664),v=l(1413),T=l(1985),w=l(5964),e=l(2771),O=l(7647),u=l(6977);class C{_box;_destroyed=new v.B;_resizeSubject=new v.B;_resizeObserver;_elementObservables=new Map;constructor(Pe){this._box=Pe,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(le=>this._resizeSubject.next(le)))}observe(Pe){return this._elementObservables.has(Pe)||this._elementObservables.set(Pe,new T.c(le=>{const Ce=this._resizeSubject.subscribe(le);return this._resizeObserver?.observe(Pe,{box:this._box}),()=>{this._resizeObserver?.unobserve(Pe),Ce.unsubscribe(),this._elementObservables.delete(Pe)}}).pipe((0,w.p)(le=>le.some(Ce=>Ce.target===Pe)),function f(A,Pe,le){let Ce,Ae=!1;return A&&"object"==typeof A?({bufferSize:Ce=1/0,windowTime:Pe=1/0,refCount:Ae=!1,scheduler:le}=A):Ce=A??1/0,(0,O.u)({connector:()=>new e.m(Ce,Pe,le),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Ae})}({bufferSize:1,refCount:!0}),(0,u.Q)(this._destroyed))),this._elementObservables.get(Pe)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let B=(()=>{class A{_cleanupErrorListener;_observers=new Map;_ngZone=(0,i.WQX)(d.SKi);constructor(){}ngOnDestroy(){for(const[,le]of this._observers)le.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(le,Ce){const Ae=Ce?.box||"content-box";return this._observers.has(Ae)||this._observers.set(Ae,new C(Ae)),this._observers.get(Ae).observe(le)}static \u0275fac=function(Ce){return new(Ce||A)};static \u0275prov=i.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})()},9338(Zt,pe,l){"use strict";l.d(pe,{WB:()=>kn,$Q:()=>Ni,rW:()=>Gt,rR:()=>ie,Sf:()=>ht,z_:()=>ee,yY:()=>Ye,gA:()=>be,$M:()=>gt,uA:()=>Ue,Y$:()=>Pt,RH:()=>lt});var i=l(2615),d=l(3664),v=l(7705),T=l(7303),w=l(9842),e=l(4522);function O(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var f=l(8968),u=l(1413),L=l(8359);function C(ye){return null==ye?"":"string"==typeof ye?ye:`${ye}px`}var B=l(408),A=l(5718),Pe=l(6939),le=l(7860),Ce=l(5964),Ae=l(9974),j=l(4360),G=l(9726),re=l(1577),xe=l(438),Ee=l(7336),V=l(8203);const ce=(0,le.CZ)();function be(ye){return new ne(ye.get(A.Xj),ye.get(i.qQL))}class ne{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(ke,Se){this._viewportRuler=ke,this._document=Se}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=C(-this._previousScrollPosition.left),ke.style.top=C(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,ge=ke.style,N=this._document.body.style,Z=ge.scrollBehavior||"",Me=N.scrollBehavior||"";this._isEnabled=!1,ge.left=this._previousHTMLStyles.left,ge.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),ce&&(ge.scrollBehavior=N.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ce&&(ge.scrollBehavior=Z,N.scrollBehavior=Me)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Se=this._document.documentElement,ge=this._viewportRuler.getViewportSize();return Se.scrollHeight>ge.height||Se.scrollWidth>ge.width}}class Re{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(ke,Se,ge,N){this._scrollDispatcher=ke,this._ngZone=Se,this._viewportRuler=ge,this._config=N}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,Ce.p)(Se=>!Se||!this._overlayRef.overlayElement.contains(Se.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const Se=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Se-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class _e{enable(){}disable(){}attach(){}}function he(ye,ke){return ke.some(Se=>ye.bottomSe.bottom||ye.rightSe.right)}function Dt(ye,ke){return ke.some(Se=>ye.topSe.bottom||ye.leftSe.right)}function lt(ye,ke){return new Le(ye.get(A.R),ye.get(A.Xj),ye.get(d.SKi),ke)}class Le{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(ke,Se,ge,N){this._scrollDispatcher=ke,this._viewportRuler=Se,this._ngZone=ge,this._config=N}attach(ke){this._overlayRef=ke}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Se=this._overlayRef.overlayElement.getBoundingClientRect(),{width:ge,height:N}=this._viewportRuler.getViewportSize();he(Se,[{width:ge,height:N,bottom:N,right:ge,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let te=(()=>{class ye{_injector=(0,i.WQX)(i.zZn);constructor(){}noop=()=>new _e;close=Se=>function De(ye,ke){return new Re(ye.get(A.R),ye.get(d.SKi),ye.get(A.Xj),ke)}(this._injector,Se);block=()=>be(this._injector);reposition=Se=>lt(this._injector,Se);static \u0275fac=function(ge){return new(ge||ye)};static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();class ie{positionStrategy;scrollStrategy=new _e;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(ke){if(ke){const Se=Object.keys(ke);for(const ge of Se)void 0!==ke[ge]&&(this[ge]=ke[ge])}}}class ve{connectionPair;scrollableViewProperties;constructor(ke,Se){this.connectionPair=ke,this.scrollableViewProperties=Se}}let Ke=(()=>{class ye{_attachedOverlays=[];_document=(0,i.WQX)(i.qQL);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Se){this.remove(Se),this._attachedOverlays.push(Se)}remove(Se){const ge=this._attachedOverlays.indexOf(Se);ge>-1&&this._attachedOverlays.splice(ge,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(ge){return new(ge||ye)};static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})(),Vt=(()=>{class ye extends Ke{_ngZone=(0,i.WQX)(d.SKi);_renderer=(0,i.WQX)(d._9s).createRenderer(null,null);_cleanupKeydown;add(Se){super.add(Se),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=Se=>{const ge=this._attachedOverlays;for(let N=ge.length-1;N>-1;N--)if(ge[N]._keydownEvents.observers.length>0){this._ngZone.run(()=>ge[N]._keydownEvents.next(Se));break}};static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=d.xGo(ye)))(N||ye)}})();static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})(),St=(()=>{class ye extends Ke{_platform=(0,i.WQX)(w.O);_ngZone=(0,i.WQX)(d.SKi);_renderer=(0,i.WQX)(d._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(Se){if(super.add(Se),!this._isAttached){const ge=this._document.body,N={capture:!0},Z=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[Z.listen(ge,"pointerdown",this._pointerDownListener,N),Z.listen(ge,"click",this._clickListener,N),Z.listen(ge,"auxclick",this._clickListener,N),Z.listen(ge,"contextmenu",this._clickListener,N)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=ge.style.cursor,ge.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(Se=>Se()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=Se=>{this._pointerDownEventTarget=(0,e.Fb)(Se)};_clickListener=Se=>{const ge=(0,e.Fb)(Se),N="click"===Se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ge;this._pointerDownEventTarget=null;const Z=this._attachedOverlays.slice();for(let Me=Z.length-1;Me>-1;Me--){const at=Z[Me];if(at._outsidePointerEvents.observers.length<1||!at.hasAttached())continue;if(ot(at.overlayElement,ge)||ot(at.overlayElement,N))break;const qe=at._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>qe.next(Se)):qe.next(Se)}};static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=d.xGo(ye)))(N||ye)}})();static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();function ot(ye,ke){const Se=typeof ShadowRoot<"u"&&ShadowRoot;let ge=ke;for(;ge;){if(ge===ye)return!0;ge=Se&&ge instanceof ShadowRoot?ge.host:ge.parentNode}return!1}let nt=(()=>{class ye{static \u0275fac=function(ge){return new(ge||ye)};static \u0275cmp=d.VBU({type:ye,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(ge,N){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,changeDetection:0})}return ye})(),ht=(()=>{class ye{_platform=(0,i.WQX)(w.O);_containerElement;_document=(0,i.WQX)(i.qQL);_styleLoader=(0,i.WQX)(f.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Se="cdk-overlay-container";if(this._platform.isBrowser||O()){const N=this._document.querySelectorAll(`.${Se}[platform="server"], .${Se}[platform="test"]`);for(let Z=0;Z{const ke=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(ke,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),ke.style.pointerEvents="none",ke.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}class Ye{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new u.B;_attachments=new u.B;_detachments=new u.B;_positionStrategy;_scrollStrategy;_locationChanges=L.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new u.B;_outsidePointerEvents=new u.B;_afterNextRenderRef;constructor(ke,Se,ge,N,Z,Me,at,qe,pn,Je=!1,Be,ut){this._portalOutlet=ke,this._host=Se,this._pane=ge,this._config=N,this._ngZone=Z,this._keyboardDispatcher=Me,this._document=at,this._location=qe,this._outsideClickDispatcher=pn,this._animationsDisabled=Je,this._injector=Be,this._renderer=ut,N.scrollStrategy&&(this._scrollStrategy=N.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=N.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Se=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,d.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Se?.onDestroy&&Se.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Se}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,ke&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=C(this._config.width),ke.height=C(this._config.height),ke.minWidth=C(this._config.minWidth),ke.minHeight=C(this._config.minHeight),ke.maxWidth=C(this._config.maxWidth),ke.maxHeight=C(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new oe(this._document,this._renderer,this._ngZone,Se=>{this._backdropClick.next(Se)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(ke))}):this._backdropRef.element.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(ke,Se,ge){const N=(0,B.F)(Se||[]).filter(Z=>!!Z);N.length&&(ge?ke.classList.add(...N):ke.classList.remove(...N))}_detachContentWhenEmpty(){let ke=!1;try{this._detachContentAfterRenderRef=(0,d.mal)(()=>{ke=!0,this._detachContent()},{injector:this._injector})}catch(Se){if(ke)throw Se;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke?.disable(),ke?.detach?.()}}const fe="cdk-overlay-connected-position-bounding-box",Qe=/([A-Za-z%]+)$/;function gt(ye,ke){return new Gt(ke,ye.get(A.Xj),ye.get(i.qQL),ye.get(w.O),ye.get(ht))}class Gt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new u.B;_resizeSubscription=L.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(ke,Se,ge,N,Z){this._viewportRuler=Se,this._document=ge,this._platform=N,this._overlayContainer=Z,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(fe),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ke=this._originRect,Se=this._overlayRect,ge=this._viewportRect,N=this._containerRect,Z=[];let Me;for(let at of this._preferredPositions){let qe=this._getOriginPoint(ke,N,at),pn=this._getOverlayPoint(qe,Se,at),Je=this._getOverlayFit(pn,Se,ge,at);if(Je.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(at,qe);this._canFitWithFlexibleDimensions(Je,pn,ge)?Z.push({position:at,origin:qe,overlayRect:Se,boundingBoxRect:this._calculateBoundingBoxRect(qe,at)}):(!Me||Me.overlayFit.visibleAreaqe&&(qe=Je,at=pn)}return this._isPushed=!1,void this._applyPosition(at.position,at.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Me.position,Me.originPoint);this._applyPosition(Me.position,Me.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&rt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fe),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Se=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,Se)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,Se,ge){let N,Z;if("center"==ge.originX)N=ke.left+ke.width/2;else{const Me=this._isRtl()?ke.right:ke.left,at=this._isRtl()?ke.left:ke.right;N="start"==ge.originX?Me:at}return Se.left<0&&(N-=Se.left),Z="center"==ge.originY?ke.top+ke.height/2:"top"==ge.originY?ke.top:ke.bottom,Se.top<0&&(Z-=Se.top),{x:N,y:Z}}_getOverlayPoint(ke,Se,ge){let N,Z;return N="center"==ge.overlayX?-Se.width/2:"start"===ge.overlayX?this._isRtl()?-Se.width:0:this._isRtl()?0:-Se.width,Z="center"==ge.overlayY?-Se.height/2:"top"==ge.overlayY?0:-Se.height,{x:ke.x+N,y:ke.y+Z}}_getOverlayFit(ke,Se,ge,N){const Z=Ft(Se);let{x:Me,y:at}=ke,qe=this._getOffset(N,"x"),pn=this._getOffset(N,"y");qe&&(Me+=qe),pn&&(at+=pn);let ut=0-at,Ge=at+Z.height-ge.height,Ot=this._subtractOverflows(Z.width,0-Me,Me+Z.width-ge.width),se=this._subtractOverflows(Z.height,ut,Ge),We=Ot*se;return{visibleArea:We,isCompletelyWithinViewport:Z.width*Z.height===We,fitsInViewportVertically:se===Z.height,fitsInViewportHorizontally:Ot==Z.width}}_canFitWithFlexibleDimensions(ke,Se,ge){if(this._hasFlexibleDimensions){const N=ge.bottom-Se.y,Z=ge.right-Se.x,Me=cn(this._overlayRef.getConfig().minHeight),at=cn(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=Me&&Me<=N)&&(ke.fitsInViewportHorizontally||null!=at&&at<=Z)}return!1}_pushOverlayOnScreen(ke,Se,ge){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const N=Ft(Se),Z=this._viewportRect,Me=Math.max(ke.x+N.width-Z.width,0),at=Math.max(ke.y+N.height-Z.height,0),qe=Math.max(Z.top-ge.top-ke.y,0),pn=Math.max(Z.left-ge.left-ke.x,0);let Je=0,Be=0;return Je=N.width<=Z.width?pn||-Me:ke.xOt&&!this._isInitialRender&&!this._growAfterOpen&&(Me=ke.y-Ot/2)}if("end"===Se.overlayX&&!N||"start"===Se.overlayX&&N)ut=ge.width-ke.x+2*this._viewportMargin,Je=ke.x-this._viewportMargin;else if("start"===Se.overlayX&&!N||"end"===Se.overlayX&&N)Be=ke.x,Je=ge.right-ke.x;else{const Ge=Math.min(ge.right-ke.x+ge.left,ke.x),Ot=this._lastBoundingBoxSize.width;Je=2*Ge,Be=ke.x-Ge,Je>Ot&&!this._isInitialRender&&!this._growAfterOpen&&(Be=ke.x-Ot/2)}return{top:Me,left:Be,bottom:at,right:ut,width:Je,height:Z}}_setBoundingBoxStyles(ke,Se){const ge=this._calculateBoundingBoxRect(ke,Se);!this._isInitialRender&&!this._growAfterOpen&&(ge.height=Math.min(ge.height,this._lastBoundingBoxSize.height),ge.width=Math.min(ge.width,this._lastBoundingBoxSize.width));const N={};if(this._hasExactPosition())N.top=N.left="0",N.bottom=N.right=N.maxHeight=N.maxWidth="",N.width=N.height="100%";else{const Z=this._overlayRef.getConfig().maxHeight,Me=this._overlayRef.getConfig().maxWidth;N.height=C(ge.height),N.top=C(ge.top),N.bottom=C(ge.bottom),N.width=C(ge.width),N.left=C(ge.left),N.right=C(ge.right),N.alignItems="center"===Se.overlayX?"center":"end"===Se.overlayX?"flex-end":"flex-start",N.justifyContent="center"===Se.overlayY?"center":"bottom"===Se.overlayY?"flex-end":"flex-start",Z&&(N.maxHeight=C(Z)),Me&&(N.maxWidth=C(Me))}this._lastBoundingBoxSize=ge,rt(this._boundingBox.style,N)}_resetBoundingBoxStyles(){rt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){rt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,Se){const ge={},N=this._hasExactPosition(),Z=this._hasFlexibleDimensions,Me=this._overlayRef.getConfig();if(N){const Je=this._viewportRuler.getViewportScrollPosition();rt(ge,this._getExactOverlayY(Se,ke,Je)),rt(ge,this._getExactOverlayX(Se,ke,Je))}else ge.position="static";let at="",qe=this._getOffset(Se,"x"),pn=this._getOffset(Se,"y");qe&&(at+=`translateX(${qe}px) `),pn&&(at+=`translateY(${pn}px)`),ge.transform=at.trim(),Me.maxHeight&&(N?ge.maxHeight=C(Me.maxHeight):Z&&(ge.maxHeight="")),Me.maxWidth&&(N?ge.maxWidth=C(Me.maxWidth):Z&&(ge.maxWidth="")),rt(this._pane.style,ge)}_getExactOverlayY(ke,Se,ge){let N={top:"",bottom:""},Z=this._getOverlayPoint(Se,this._overlayRect,ke);return this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,ge)),"bottom"===ke.overlayY?N.bottom=this._document.documentElement.clientHeight-(Z.y+this._overlayRect.height)+"px":N.top=C(Z.y),N}_getExactOverlayX(ke,Se,ge){let Me,N={left:"",right:""},Z=this._getOverlayPoint(Se,this._overlayRect,ke);return this._isPushed&&(Z=this._pushOverlayOnScreen(Z,this._overlayRect,ge)),Me=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===Me?N.right=this._document.documentElement.clientWidth-(Z.x+this._overlayRect.width)+"px":N.left=C(Z.x),N}_getScrollVisibility(){const ke=this._getOriginRect(),Se=this._pane.getBoundingClientRect(),ge=this._scrollables.map(N=>N.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Dt(ke,ge),isOriginOutsideView:he(ke,ge),isOverlayClipped:Dt(Se,ge),isOverlayOutsideView:he(Se,ge)}}_subtractOverflows(ke,...Se){return Se.reduce((ge,N)=>ge-Math.max(N,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,Se=this._document.documentElement.clientHeight,ge=this._viewportRuler.getViewportScrollPosition();return{top:ge.top+this._viewportMargin,left:ge.left+this._viewportMargin,right:ge.left+ke-this._viewportMargin,bottom:ge.top+Se-this._viewportMargin,width:ke-2*this._viewportMargin,height:Se-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,Se){return"x"===Se?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,B.F)(ke).forEach(Se=>{""!==Se&&-1===this._appliedPanelClasses.indexOf(Se)&&(this._appliedPanelClasses.push(Se),this._pane.classList.add(Se))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof d.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const Se=ke.width||0,ge=ke.height||0;return{top:ke.y,bottom:ke.y+ge,left:ke.x,right:ke.x+Se,height:ge,width:Se}}}function rt(ye,ke){for(let Se in ke)ke.hasOwnProperty(Se)&&(ye[Se]=ke[Se]);return ye}function cn(ye){if("number"!=typeof ye&&null!=ye){const[ke,Se]=ye.split(Qe);return Se&&"px"!==Se?null:parseFloat(ke)}return ye||null}function Ft(ye){return{top:Math.floor(ye.top),right:Math.floor(ye.right),bottom:Math.floor(ye.bottom),left:Math.floor(ye.left),width:Math.floor(ye.width),height:Math.floor(ye.height)}}const jt="cdk-global-overlay-wrapper";function Ue(ye){return new wt}class wt{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(ke){const Se=ke.getConfig();this._overlayRef=ke,this._width&&!Se.width&&ke.updateSize({width:this._width}),this._height&&!Se.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(jt),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,Se=this._overlayRef.hostElement.style,ge=this._overlayRef.getConfig(),{width:N,height:Z,maxWidth:Me,maxHeight:at}=ge,qe=!("100%"!==N&&"100vw"!==N||Me&&"100%"!==Me&&"100vw"!==Me),pn=!("100%"!==Z&&"100vh"!==Z||at&&"100%"!==at&&"100vh"!==at),Je=this._xPosition,Be=this._xOffset,ut="rtl"===this._overlayRef.getConfig().direction;let Ge="",Ot="",se="";qe?se="flex-start":"center"===Je?(se="center",ut?Ot=Be:Ge=Be):ut?"left"===Je||"end"===Je?(se="flex-end",Ge=Be):("right"===Je||"start"===Je)&&(se="flex-start",Ot=Be):"left"===Je||"start"===Je?(se="flex-start",Ge=Be):("right"===Je||"end"===Je)&&(se="flex-end",Ot=Be),ke.position=this._cssPosition,ke.marginLeft=qe?"0":Ge,ke.marginTop=pn?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=qe?"0":Ot,Se.justifyContent=se,Se.alignItems=pn?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,Se=this._overlayRef.hostElement,ge=Se.style;Se.classList.remove(jt),ge.justifyContent=ge.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let pt=(()=>{class ye{_injector=(0,i.WQX)(i.zZn);constructor(){}global(){return Ue()}flexibleConnectedTo(Se){return gt(this._injector,Se)}static \u0275fac=function(ge){return new(ge||ye)};static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();function Pt(ye,ke){ye.get(f.l).load(nt);const Se=ye.get(ht),ge=ye.get(i.qQL),N=ye.get(G.g),Z=ye.get(d.o8S),Me=ye.get(re.dS),at=ge.createElement("div"),qe=ge.createElement("div");qe.id=N.getId("cdk-overlay-"),qe.classList.add("cdk-overlay-pane"),at.appendChild(qe),Se.getContainerElement().appendChild(at);const pn=new Pe.aI(qe,Z,ye),Je=new ie(ke),Be=ye.get(d.sFG,null,{optional:!0})||ye.get(d._9s).createRenderer(null,null);return Je.direction=Je.direction||Me.value,new Ye(pn,at,qe,Je,ye.get(d.SKi),ye.get(Vt),ge,ye.get(T.aZ),ye.get(St),ke?.disableAnimations??"NoopAnimations"===ye.get(d.bc$,null,{optional:!0}),ye.get(i.uvJ),Be)}let gn=(()=>{class ye{scrollStrategies=(0,i.WQX)(te);_positionBuilder=(0,i.WQX)(pt);_injector=(0,i.WQX)(i.zZn);constructor(){}create(Se){return Pt(this._injector,Se)}position(){return this._positionBuilder}static \u0275fac=function(ge){return new(ge||ye)};static \u0275prov=i.jDH({token:ye,factory:ye.\u0275fac,providedIn:"root"})}return ye})();const ei=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],vi=new i.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const ye=(0,i.WQX)(i.zZn);return()=>lt(ye)}});let Ni=(()=>{class ye{elementRef=(0,i.WQX)(d.aKT);constructor(){}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=d.FsC({type:ye,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return ye})(),kn=(()=>{class ye{_dir=(0,i.WQX)(re.dS,{optional:!0});_injector=(0,i.WQX)(i.zZn);_overlayRef;_templatePortal;_backdropSubscription=L.yU.EMPTY;_attachSubscription=L.yU.EMPTY;_detachSubscription=L.yU.EMPTY;_positionSubscription=L.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,i.WQX)(vi);_disposeOnNavigation=!1;_ngZone=(0,i.WQX)(d.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Se){this._offsetX=Se,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Se){this._offsetY=Se,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Se){this._disposeOnNavigation=Se}backdropClick=new d.bkB;positionChange=new d.bkB;attach=new d.bkB;detach=new d.bkB;overlayKeydown=new d.bkB;overlayOutsideClick=new d.bkB;constructor(){const Se=(0,i.WQX)(d.C4Q),ge=(0,i.WQX)(d.c1b);this._templatePortal=new Pe.VA(Se,ge),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(Se){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Se.origin&&this.open&&this._position.apply()),Se.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=ei);const Se=this._overlayRef=Pt(this._injector,this._buildConfig());this._attachSubscription=Se.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Se.detachments().subscribe(()=>this.detach.emit()),Se.keydownEvents().subscribe(ge=>{this.overlayKeydown.next(ge),ge.keyCode===xe._f&&!this.disableClose&&!(0,Ee.rp)(ge)&&(ge.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(ge=>{const N=this._getOriginElement(),Z=(0,e.Fb)(ge);(!N||N!==Z&&!N.contains(Z))&&this.overlayOutsideClick.next(ge)})}_buildConfig(){const Se=this._position=this.positionStrategy||this._createPositionStrategy(),ge=new ie({direction:this._dir||"ltr",positionStrategy:Se,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(ge.width=this.width),(this.height||0===this.height)&&(ge.height=this.height),(this.minWidth||0===this.minWidth)&&(ge.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(ge.minHeight=this.minHeight),this.backdropClass&&(ge.backdropClass=this.backdropClass),this.panelClass&&(ge.panelClass=this.panelClass),ge}_updatePositionStrategy(Se){const ge=this.positions.map(N=>({originX:N.originX,originY:N.originY,overlayX:N.overlayX,overlayY:N.overlayY,offsetX:N.offsetX||this.offsetX,offsetY:N.offsetY||this.offsetY,panelClass:N.panelClass||void 0}));return Se.setOrigin(this._getOrigin()).withPositions(ge).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Se=gt(this._injector,this._getOrigin());return this._updatePositionStrategy(Se),Se}_getOrigin(){return this.origin instanceof Ni?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ni?this.origin.elementRef.nativeElement:this.origin instanceof d.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Se=>{this.backdropClick.emit(Se)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function W(ye,ke=!1){return(0,Ae.N)((Se,ge)=>{let N=0;Se.subscribe((0,j._)(ge,Z=>{const Me=ye(Z,N++);(Me||ke)&&ge.next(Z),!Me&&ge.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(Se=>{this._ngZone.run(()=>this.positionChange.emit(Se)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=d.FsC({type:ye,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",v.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",v.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",v.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",v.L39],push:[2,"cdkConnectedOverlayPush","push",v.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",v.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[d.OA$]})}return ye})();const vt={provide:vi,useFactory:function Ri(ye){const ke=(0,i.WQX)(i.zZn);return()=>lt(ke)}};let ee=(()=>{class ye{static \u0275fac=function(ge){return new(ge||ye)};static \u0275mod=d.$C({type:ye});static \u0275inj=i.G2t({providers:[gn,vt],imports:[V.jI,Pe.jc,A.E9,A.E9]})}return ye})()},3300(Zt,pe,l){"use strict";let i;function v(T){return function d(){if(null==i&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>i=!0}))}finally{i=i||!1}return i}()?T:!!T.capture}l.d(pe,{B:()=>v})},9842(Zt,pe,l){"use strict";l.d(pe,{O:()=>w});var i=l(2615),d=l(3664),v=l(177);let T;try{T=typeof Intl<"u"&&Intl.v8BreakIterator}catch{T=!1}let w=(()=>{class e{_platformId=(0,i.WQX)(d.Agw);isBrowser=this._platformId?(0,v.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!T)&&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(u){return new(u||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},6939(Zt,pe,l){"use strict";l.d(pe,{A8:()=>B,I3:()=>W,VA:()=>A,aI:()=>Ce,bV:()=>Ae,jc:()=>re,lb:()=>le});var d=l(2615),v=l(3664),T=l(7705);class C{_attachedHost;attach(Ee){return this._attachedHost=Ee,Ee.attach(this)}detach(){let Ee=this._attachedHost;null!=Ee&&(this._attachedHost=null,Ee.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Ee){this._attachedHost=Ee}}class B extends C{component;viewContainerRef;injector;projectableNodes;constructor(Ee,V,ce,be){super(),this.component=Ee,this.viewContainerRef=V,this.injector=ce,this.projectableNodes=be}}class A extends C{templateRef;viewContainerRef;context;injector;constructor(Ee,V,ce,be){super(),this.templateRef=Ee,this.viewContainerRef=V,this.context=ce,this.injector=be}get origin(){return this.templateRef.elementRef}attach(Ee,V=this.context){return this.context=V,super.attach(Ee)}detach(){return this.context=void 0,super.detach()}}class Pe extends C{element;constructor(Ee){super(),this.element=Ee instanceof v.aKT?Ee.nativeElement:Ee}}class le{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(Ee){return Ee instanceof B?(this._attachedPortal=Ee,this.attachComponentPortal(Ee)):Ee instanceof A?(this._attachedPortal=Ee,this.attachTemplatePortal(Ee)):this.attachDomPortal&&Ee instanceof Pe?(this._attachedPortal=Ee,this.attachDomPortal(Ee)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Ee){this._disposeFn=Ee}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Ce extends le{outletElement;_appRef;_defaultInjector;constructor(Ee,V,ce){super(),this.outletElement=Ee,this._appRef=V,this._defaultInjector=ce}attachComponentPortal(Ee){let V;if(Ee.viewContainerRef){const ce=Ee.injector||Ee.viewContainerRef.injector,be=ce.get(v.Ab1,null,{optional:!0})||void 0;V=Ee.viewContainerRef.createComponent(Ee.component,{index:Ee.viewContainerRef.length,injector:ce,ngModuleRef:be,projectableNodes:Ee.projectableNodes||void 0}),this.setDisposeFn(()=>V.destroy())}else{const ce=this._appRef,be=Ee.injector||this._defaultInjector||d.zZn.NULL,ne=be.get(d.uvJ,ce.injector);V=(0,T.a0P)(Ee.component,{elementInjector:be,environmentInjector:ne,projectableNodes:Ee.projectableNodes||void 0}),ce.attachView(V.hostView),this.setDisposeFn(()=>{ce.viewCount>0&&ce.detachView(V.hostView),V.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(V)),this._attachedPortal=Ee,V}attachTemplatePortal(Ee){let V=Ee.viewContainerRef,ce=V.createEmbeddedView(Ee.templateRef,Ee.context,{injector:Ee.injector});return ce.rootNodes.forEach(be=>this.outletElement.appendChild(be)),ce.detectChanges(),this.setDisposeFn(()=>{let be=V.indexOf(ce);-1!==be&&V.remove(be)}),this._attachedPortal=Ee,ce}attachDomPortal=Ee=>{const V=Ee.element,ce=this.outletElement.ownerDocument.createComment("dom-portal");V.parentNode.insertBefore(ce,V),this.outletElement.appendChild(V),this._attachedPortal=Ee,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(V,ce)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Ee){return Ee.hostView.rootNodes[0]}}let Ae=(()=>{class xe extends A{constructor(){super((0,d.WQX)(v.C4Q),(0,d.WQX)(v.c1b))}static \u0275fac=function(ce){return new(ce||xe)};static \u0275dir=v.FsC({type:xe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[v.Vt3]})}return xe})(),W=(()=>{class xe extends le{_moduleRef=(0,d.WQX)(v.Ab1,{optional:!0});_document=(0,d.WQX)(d.qQL);_viewContainerRef=(0,d.WQX)(v.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(V){this.hasAttached()&&!V&&!this._isInitialized||(this.hasAttached()&&super.detach(),V&&super.attach(V),this._attachedPortal=V||null)}attached=new v.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(V){V.setAttachedHost(this);const ce=null!=V.viewContainerRef?V.viewContainerRef:this._viewContainerRef,be=ce.createComponent(V.component,{index:ce.length,injector:V.injector||ce.injector,projectableNodes:V.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return ce!==this._viewContainerRef&&this._getRootNode().appendChild(be.hostView.rootNodes[0]),super.setDisposeFn(()=>be.destroy()),this._attachedPortal=V,this._attachedRef=be,this.attached.emit(be),be}attachTemplatePortal(V){V.setAttachedHost(this);const ce=this._viewContainerRef.createEmbeddedView(V.templateRef,V.context,{injector:V.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=V,this._attachedRef=ce,this.attached.emit(ce),ce}attachDomPortal=V=>{const ce=V.element,be=this._document.createComment("dom-portal");V.setAttachedHost(this),ce.parentNode.insertBefore(be,ce),this._getRootNode().appendChild(ce),this._attachedPortal=V,super.setDisposeFn(()=>{be.parentNode&&be.parentNode.replaceChild(ce,be)})};_getRootNode(){const V=this._viewContainerRef.element.nativeElement;return V.nodeType===V.ELEMENT_NODE?V:V.parentNode}static \u0275fac=function(ce){return new(ce||xe)};static \u0275dir=v.FsC({type:xe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[v.Vt3]})}return xe})(),re=(()=>{class xe{static \u0275fac=function(ce){return new(ce||xe)};static \u0275mod=v.$C({type:xe});static \u0275inj=d.G2t({})}return xe})()},9046(Zt,pe,l){"use strict";l.d(pe,{Y:()=>d});var i=l(3664);let d=(()=>{class v{static \u0275fac=function(e){return new(e||v)};static \u0275cmp=i.VBU({type:v,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,O){},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}\n"],encapsulation:2,changeDetection:0})}return v})()},5718(Zt,pe,l){"use strict";l.d(pe,{uv:()=>Z,Gj:()=>bt,R:()=>N,E9:()=>tn,Xj:()=>at});var i=l(2615),d=l(3664),v=l(1413),T=l(7673),w=l(1985),e=l(6780),O=l(8359);const f={schedule(on){let un=requestAnimationFrame,Nt=cancelAnimationFrame;const{delegate:dn}=f;dn&&(un=dn.requestAnimationFrame,Nt=dn.cancelAnimationFrame);const xn=un(Jn=>{Nt=void 0,on(Jn)});return new O.yU(()=>Nt?.(xn))},requestAnimationFrame(...on){const{delegate:un}=f;return(un?.requestAnimationFrame||requestAnimationFrame)(...on)},cancelAnimationFrame(...on){const{delegate:un}=f;return(un?.cancelAnimationFrame||cancelAnimationFrame)(...on)},delegate:void 0};var L=l(9687);new class C extends L.q{flush(un){let Nt;this._active=!0,un?Nt=un.id:(Nt=this._scheduled,this._scheduled=void 0);const{actions:dn}=this;let xn;un=un||dn.shift();do{if(xn=un.execute(un.state,un.delay))break}while((un=dn[0])&&un.id===Nt&&dn.shift());if(this._active=!1,xn){for(;(un=dn[0])&&un.id===Nt&&dn.shift();)un.unsubscribe();throw xn}}}(class u extends e.R{constructor(un,Nt){super(un,Nt),this.scheduler=un,this.work=Nt}requestAsyncId(un,Nt,dn=0){return null!==dn&&dn>0?super.requestAsyncId(un,Nt,dn):(un.actions.push(this),un._scheduled||(un._scheduled=f.requestAnimationFrame(()=>un.flush(void 0))))}recycleAsyncId(un,Nt,dn=0){var xn;if(null!=dn?dn>0:this.delay>0)return super.recycleAsyncId(un,Nt,dn);const{actions:Jn}=un;null!=Nt&&Nt===un._scheduled&&(null===(xn=Jn[Jn.length-1])||void 0===xn?void 0:xn.id)!==Nt&&(f.cancelAnimationFrame(Nt),un._scheduled=void 0)}});let le,Pe=1;const Ce={};function Ae(on){return on in Ce&&(delete Ce[on],!0)}const j={setImmediate(on){const un=Pe++;return Ce[un]=!0,le||(le=Promise.resolve()),le.then(()=>Ae(un)&&on()),un},clearImmediate(on){Ae(on)}},{setImmediate:G,clearImmediate:re}=j,xe={setImmediate(...on){const{delegate:un}=xe;return(un?.setImmediate||G)(...on)},clearImmediate(on){const{delegate:un}=xe;return(un?.clearImmediate||re)(on)},delegate:void 0};new class V extends L.q{flush(un){this._active=!0;const Nt=this._scheduled;this._scheduled=void 0;const{actions:dn}=this;let xn;un=un||dn.shift();do{if(xn=un.execute(un.state,un.delay))break}while((un=dn[0])&&un.id===Nt&&dn.shift());if(this._active=!1,xn){for(;(un=dn[0])&&un.id===Nt&&dn.shift();)un.unsubscribe();throw xn}}}(class Ee extends e.R{constructor(un,Nt){super(un,Nt),this.scheduler=un,this.work=Nt}requestAsyncId(un,Nt,dn=0){return null!==dn&&dn>0?super.requestAsyncId(un,Nt,dn):(un.actions.push(this),un._scheduled||(un._scheduled=xe.setImmediate(un.flush.bind(un,void 0))))}recycleAsyncId(un,Nt,dn=0){var xn;if(null!=dn?dn>0:this.delay>0)return super.recycleAsyncId(un,Nt,dn);const{actions:Jn}=un;null!=Nt&&(null===(xn=Jn[Jn.length-1])||void 0===xn?void 0:xn.id)!==Nt&&(xe.clearImmediate(Nt),un._scheduled===Nt&&(un._scheduled=void 0))}});var ne=l(3798),J=l(5964),De=l(7847),Re=l(9842),Xe=l(1577),_e=l(7860),he=l(8203);let N=(()=>{class on{_ngZone=(0,i.WQX)(d.SKi);_platform=(0,i.WQX)(Re.O);_renderer=(0,i.WQX)(d._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new v.B;_scrolledCount=0;scrollContainers=new Map;register(Nt){this.scrollContainers.has(Nt)||this.scrollContainers.set(Nt,Nt.elementScrolled().subscribe(()=>this._scrolled.next(Nt)))}deregister(Nt){const dn=this.scrollContainers.get(Nt);dn&&(dn.unsubscribe(),this.scrollContainers.delete(Nt))}scrolled(Nt=20){return this._platform.isBrowser?new w.c(dn=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const xn=Nt>0?this._scrolled.pipe((0,ne.Z)(Nt)).subscribe(dn):this._scrolled.subscribe(dn);return this._scrolledCount++,()=>{xn.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,T.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((Nt,dn)=>this.deregister(dn)),this._scrolled.complete()}ancestorScrolled(Nt,dn){const xn=this.getAncestorScrollContainers(Nt);return this.scrolled(dn).pipe((0,J.p)(Jn=>!Jn||xn.indexOf(Jn)>-1))}getAncestorScrollContainers(Nt){const dn=[];return this.scrollContainers.forEach((xn,Jn)=>{this._scrollableContainsElement(Jn,Nt)&&dn.push(Jn)}),dn}_scrollableContainsElement(Nt,dn){let xn=(0,De.i8)(dn),Jn=Nt.getElementRef().nativeElement;do{if(xn==Jn)return!0}while(xn=xn.parentElement);return!1}static \u0275fac=function(dn){return new(dn||on)};static \u0275prov=i.jDH({token:on,factory:on.\u0275fac,providedIn:"root"})}return on})(),Z=(()=>{class on{elementRef=(0,i.WQX)(d.aKT);scrollDispatcher=(0,i.WQX)(N);ngZone=(0,i.WQX)(d.SKi);dir=(0,i.WQX)(Xe.dS,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new v.B;_renderer=(0,i.WQX)(d.sFG);_cleanupScroll;_elementScrolled=new v.B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",Nt=>this._elementScrolled.next(Nt))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Nt){const dn=this.elementRef.nativeElement,xn=this.dir&&"rtl"==this.dir.value;null==Nt.left&&(Nt.left=xn?Nt.end:Nt.start),null==Nt.right&&(Nt.right=xn?Nt.start:Nt.end),null!=Nt.bottom&&(Nt.top=dn.scrollHeight-dn.clientHeight-Nt.bottom),xn&&(0,_e.BD)()!=_e.r5.NORMAL?(null!=Nt.left&&(Nt.right=dn.scrollWidth-dn.clientWidth-Nt.left),(0,_e.BD)()==_e.r5.INVERTED?Nt.left=Nt.right:(0,_e.BD)()==_e.r5.NEGATED&&(Nt.left=Nt.right?-Nt.right:Nt.right)):null!=Nt.right&&(Nt.left=dn.scrollWidth-dn.clientWidth-Nt.right),this._applyScrollToOptions(Nt)}_applyScrollToOptions(Nt){const dn=this.elementRef.nativeElement;(0,_e.CZ)()?dn.scrollTo(Nt):(null!=Nt.top&&(dn.scrollTop=Nt.top),null!=Nt.left&&(dn.scrollLeft=Nt.left))}measureScrollOffset(Nt){const dn="left",Jn=this.elementRef.nativeElement;if("top"==Nt)return Jn.scrollTop;if("bottom"==Nt)return Jn.scrollHeight-Jn.clientHeight-Jn.scrollTop;const xi=this.dir&&"rtl"==this.dir.value;return"start"==Nt?Nt=xi?"right":dn:"end"==Nt&&(Nt=xi?dn:"right"),xi&&(0,_e.BD)()==_e.r5.INVERTED?Nt==dn?Jn.scrollWidth-Jn.clientWidth-Jn.scrollLeft:Jn.scrollLeft:xi&&(0,_e.BD)()==_e.r5.NEGATED?Nt==dn?Jn.scrollLeft+Jn.scrollWidth-Jn.clientWidth:-Jn.scrollLeft:Nt==dn?Jn.scrollLeft:Jn.scrollWidth-Jn.clientWidth-Jn.scrollLeft}static \u0275fac=function(dn){return new(dn||on)};static \u0275dir=d.FsC({type:on,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return on})(),at=(()=>{class on{_platform=(0,i.WQX)(Re.O);_listeners;_viewportSize;_change=new v.B;_document=(0,i.WQX)(i.qQL);constructor(){const Nt=(0,i.WQX)(d.SKi),dn=(0,i.WQX)(d._9s).createRenderer(null,null);Nt.runOutsideAngular(()=>{if(this._platform.isBrowser){const xn=Jn=>this._change.next(Jn);this._listeners=[dn.listen("window","resize",xn),dn.listen("window","orientationchange",xn)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(Nt=>Nt()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Nt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Nt}getViewportRect(){const Nt=this.getViewportScrollPosition(),{width:dn,height:xn}=this.getViewportSize();return{top:Nt.top,left:Nt.left,bottom:Nt.top+xn,right:Nt.left+dn,height:xn,width:dn}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Nt=this._document,dn=this._getWindow(),xn=Nt.documentElement,Jn=xn.getBoundingClientRect();return{top:-Jn.top||Nt.body.scrollTop||dn.scrollY||xn.scrollTop||0,left:-Jn.left||Nt.body.scrollLeft||dn.scrollX||xn.scrollLeft||0}}change(Nt=20){return Nt>0?this._change.pipe((0,ne.Z)(Nt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Nt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Nt.innerWidth,height:Nt.innerHeight}:{width:0,height:0}}static \u0275fac=function(dn){return new(dn||on)};static \u0275prov=i.jDH({token:on,factory:on.\u0275fac,providedIn:"root"})}return on})(),bt=(()=>{class on{static \u0275fac=function(dn){return new(dn||on)};static \u0275mod=d.$C({type:on});static \u0275inj=i.G2t({})}return on})(),tn=(()=>{class on{static \u0275fac=function(dn){return new(dn||on)};static \u0275mod=d.$C({type:on});static \u0275inj=i.G2t({imports:[he.jI,bt,he.jI,bt]})}return on})()},7860(Zt,pe,l){"use strict";l.d(pe,{BD:()=>w,CZ:()=>T,r5:()=>i});var i=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(i||{});let d,v;function T(){if(null==v){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return v=!1,v;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)v=!0;else{const e=Element.prototype.scrollTo;v=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return v}function w(){if("object"!=typeof document||!document)return i.NORMAL;if(null==d){const e=document.createElement("div"),O=e.style;e.dir="rtl",O.width="1px",O.overflow="auto",O.visibility="hidden",O.pointerEvents="none",O.position="absolute";const f=document.createElement("div"),u=f.style;u.width="2px",u.height="1px",e.appendChild(f),document.body.appendChild(e),d=i.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,d=0===e.scrollLeft?i.NEGATED:i.INVERTED),e.remove()}return d}},3869(Zt,pe,l){"use strict";l.d(pe,{C:()=>d});var i=l(1413);class d{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new i.B;constructor(w=!1,e,O=!0,f){this._multiple=w,this._emitChanges=O,this.compareWith=f,e&&e.length&&(w?e.forEach(u=>this._markSelected(u)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...w){this._verifyValueAssignment(w),w.forEach(O=>this._markSelected(O));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...w){this._verifyValueAssignment(w),w.forEach(O=>this._unmarkSelected(O));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...w){this._verifyValueAssignment(w);const e=this.selected,O=new Set(w.map(u=>this._getConcreteValue(u)));w.forEach(u=>this._markSelected(u)),e.filter(u=>!O.has(this._getConcreteValue(u,O))).forEach(u=>this._unmarkSelected(u));const f=this._hasQueuedChanges();return this._emitChangeEvent(),f}toggle(w){return this.isSelected(w)?this.deselect(w):this.select(w)}clear(w=!0){this._unmarkAll();const e=this._hasQueuedChanges();return w&&this._emitChangeEvent(),e}isSelected(w){return this._selection.has(this._getConcreteValue(w))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(w){this._multiple&&this.selected&&this._selected.sort(w)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(w){w=this._getConcreteValue(w),this.isSelected(w)||(this._multiple||this._unmarkAll(),this.isSelected(w)||this._selection.add(w),this._emitChanges&&this._selectedToEmit.push(w))}_unmarkSelected(w){w=this._getConcreteValue(w),this.isSelected(w)&&(this._selection.delete(w),this._emitChanges&&this._deselectedToEmit.push(w))}_unmarkAll(){this.isEmpty()||this._selection.forEach(w=>this._unmarkSelected(w))}_verifyValueAssignment(w){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(w,e){if(this.compareWith){e=e??this._selection;for(let O of e)if(this.compareWith(w,O))return O;return w}return w}}},4522(Zt,pe,l){"use strict";let i;function v(e){if(function d(){if(null==i){const e=typeof document<"u"?document.head:null;i=!(!e||!e.createShadowRoot&&!e.attachShadow)}return i}()){const O=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&O instanceof ShadowRoot)return O}return null}function T(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const O=e.shadowRoot.activeElement;if(O===e)break;e=O}return e}function w(e){return e.composedPath?e.composedPath()[0]:e.target}l.d(pe,{Fb:()=>w,KT:()=>v,vc:()=>T})},7768(Zt,pe,l){"use strict";l.d(pe,{FK:()=>ne,Up:()=>ce,VI:()=>V,nb:()=>G,oX:()=>W,uY:()=>J,v5:()=>be,x8:()=>Ee});var i=l(2615),d=l(3664),v=l(7705),T=l(9295),w=l(9417),e=l(1413),O=l(7673),f=l(9172),u=l(6977),L=l(1577),C=l(9726),B=l(4123),A=l(7336),Pe=l(438),le=l(4522),Ce=l(8203);const Ae=["*"];function j(De,Re){1&De&&d.SdG(0)}let W=(()=>{class De{_elementRef=(0,i.WQX)(d.aKT);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(_e){return new(_e||De)};static \u0275dir=d.FsC({type:De,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return De})(),G=(()=>{class De{template=(0,i.WQX)(d.C4Q);constructor(){}static \u0275fac=function(_e){return new(_e||De)};static \u0275dir=d.FsC({type:De,selectors:[["","cdkStepLabel",""]]})}return De})();const Ee=new i.nKC("STEPPER_GLOBAL_OPTIONS");let V=(()=>{class De{_stepperOptions;_stepper=(0,i.WQX)(ce);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(Xe){this._interacted.set(Xe)}_interacted=(0,i.vPA)(!1);interactedStream=new d.bkB;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(Xe){this._state.set(Xe)}_state=(0,i.vPA)(void 0);get editable(){return this._editable()}set editable(Xe){this._editable.set(Xe)}_editable=(0,i.vPA)(!0);optional=!1;get completed(){const Xe=this._completedOverride(),_e=this._interacted();return Xe??(_e&&(!this.stepControl||this.stepControl.valid))}set completed(Xe){this._completedOverride.set(Xe)}_completedOverride=(0,i.vPA)(null);index=(0,i.vPA)(-1);isSelected=(0,T.EW)(()=>this._stepper.selectedIndex===this.index());indicatorType=(0,T.EW)(()=>{const Xe=this.isSelected(),_e=this.completed,he=this._state()??"number",Dt=this._editable();return this._showError()&&this.hasError&&!Xe?"error":this._displayDefaultIndicatorType?!_e||Xe?"number":Dt?"edit":"done":_e&&!Xe?"done":_e&&Xe?he:Dt&&Xe?"edit":he});isNavigable=(0,T.EW)(()=>{const Xe=this.isSelected();return this.completed||Xe||!this._stepper.linear});get hasError(){return this._customError()??this._getDefaultError()}set hasError(Xe){this._customError.set(Xe)}_customError=(0,i.vPA)(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){const Xe=(0,i.WQX)(Ee,{optional:!0});this._stepperOptions=Xe||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),null!=this._completedOverride()&&this._completedOverride.set(!1),null!=this._customError()&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(Xe=>Xe.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError()}static \u0275fac=function(_e){return new(_e||De)};static \u0275cmp=d.VBU({type:De,selectors:[["cdk-step"]],contentQueries:function(_e,he,Dt){if(1&_e&&(d.wni(Dt,G,5),d.wni(Dt,w.ZU,5)),2&_e){let lt;d.mGM(lt=d.lsd())&&(he.stepLabel=lt.first),d.mGM(lt=d.lsd())&&(he._childForms=lt)}},viewQuery:function(_e,he){if(1&_e&&d.GBs(d.C4Q,7),2&_e){let Dt;d.mGM(Dt=d.lsd())&&(he.content=Dt.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",v.L39],optional:[2,"optional","optional",v.L39],completed:[2,"completed","completed",v.L39],hasError:[2,"hasError","hasError",v.L39]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[d.OA$],ngContentSelectors:Ae,decls:1,vars:0,template:function(_e,he){1&_e&&(d.NAR(),d.PeT(0,j,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return De})(),ce=(()=>{class De{_dir=(0,i.WQX)(L.dS,{optional:!0});_changeDetectorRef=(0,i.WQX)(v.gRc);_elementRef=(0,i.WQX)(d.aKT);_destroyed=new e.B;_keyManager;_steps;steps=new d.rOR;_stepHeader;_sortedHeaders=new d.rOR;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(Xe){this._steps?(this._isValidIndex(Xe),this.selectedIndex!==Xe&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(Xe)&&(Xe>=this.selectedIndex||this.steps.toArray()[Xe].editable)&&this._updateSelectedItemIndex(Xe))):this._selectedIndex.set(Xe)}_selectedIndex=(0,i.vPA)(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(Xe){this.selectedIndex=Xe&&this.steps?this.steps.toArray().indexOf(Xe):-1}selectionChange=new d.bkB;selectedIndexChange=new d.bkB;_groupId=(0,i.WQX)(C.g).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(Xe){this._orientation=Xe,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===Xe)}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe((0,f.Z)(this._steps),(0,u.Q)(this._destroyed)).subscribe(Xe=>{this.steps.reset(Xe.filter(_e=>_e._stepper===this)),this.steps.forEach((_e,he)=>_e.index.set(he)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe((0,f.Z)(this._stepHeader),(0,u.Q)(this._destroyed)).subscribe(Xe=>{this._sortedHeaders.reset(Xe.toArray().sort((_e,he)=>_e._elementRef.nativeElement.compareDocumentPosition(he._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new B.B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:(0,O.of)()).pipe((0,f.Z)(this._layoutDirection()),(0,u.Q)(this._destroyed)).subscribe(Xe=>this._keyManager?.withHorizontalOrientation(Xe)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){const Xe=this.steps.toArray().slice(0,this._selectedIndex());for(const _e of Xe)_e._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(Xe=>Xe.reset()),this._stateChanged()}_getStepLabelId(Xe){return`${this._groupId}-label-${Xe}`}_getStepContentId(Xe){return`${this._groupId}-content-${Xe}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(Xe){const _e=Xe-this._selectedIndex();return _e<0?"rtl"===this._layoutDirection()?"next":"previous":_e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(Xe){const _e=this.steps.toArray(),he=this._selectedIndex();this.selectionChange.emit({selectedIndex:Xe,previouslySelectedIndex:he,selectedStep:_e[Xe],previouslySelectedStep:_e[he]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(Xe):this._keyManager.updateActiveItem(Xe)),this._selectedIndex.set(Xe),this.selectedIndexChange.emit(Xe),this._stateChanged()}_onKeydown(Xe){const _e=(0,A.rp)(Xe),he=Xe.keyCode,Dt=this._keyManager;null==Dt?.activeItemIndex||_e||he!==Pe.t6&&he!==Pe.Fm?Dt?.setFocusOrigin("keyboard").onKeydown(Xe):(this.selectedIndex=Dt.activeItemIndex,Xe.preventDefault())}_anyControlsInvalidOrPending(Xe){return!!(this.linear&&Xe>=0)&&this.steps.toArray().slice(0,Xe).some(_e=>{const he=_e.stepControl;return(he?he.invalid||he.pending||!_e.interacted:!_e.completed)&&!_e.optional&&!_e._completedOverride()})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const Xe=this._elementRef.nativeElement,_e=(0,le.vc)();return Xe===_e||Xe.contains(_e)}_isValidIndex(Xe){return Xe>-1&&(!this.steps||Xe{class De{_stepper=(0,i.WQX)(ce);type="submit";constructor(){}static \u0275fac=function(_e){return new(_e||De)};static \u0275dir=d.FsC({type:De,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_e,he){1&_e&&d.bIt("click",function(){return he._stepper.next()}),2&_e&&d.Avn("type",he.type)},inputs:{type:"type"}})}return De})(),ne=(()=>{class De{_stepper=(0,i.WQX)(ce);type="button";constructor(){}static \u0275fac=function(_e){return new(_e||De)};static \u0275dir=d.FsC({type:De,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_e,he){1&_e&&d.bIt("click",function(){return he._stepper.previous()}),2&_e&&d.Avn("type",he.type)},inputs:{type:"type"}})}return De})(),J=(()=>{class De{static \u0275fac=function(_e){return new(_e||De)};static \u0275mod=d.$C({type:De});static \u0275inj=i.G2t({imports:[Ce.jI]})}return De})()},8968(Zt,pe,l){"use strict";l.d(pe,{l:()=>w});var i=l(2615),d=l(7705),v=l(3664);const T=new WeakMap;let w=(()=>{class e{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(f){const u=this._appRef=this._appRef||this._injector.get(v.o8S);let L=T.get(u);L||(L={loaders:new Set,refs:[]},T.set(u,L),u.onDestroy(()=>{T.get(u)?.refs.forEach(C=>C.destroy()),T.delete(u)})),L.loaders.has(f)||(L.loaders.add(f),L.refs.push((0,d.a0P)(f,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(u){return new(u||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},4125(Zt,pe,l){"use strict";l.d(pe,{Z2:()=>B});var i=l(2615),d=l(3664),v=l(1413),T=l(8359),w=l(4402),e=l(7673),O=l(6697),f=l(9096),u=l(8045);class L{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=le=>!1;_trackByFn=le=>le;_items=[];_typeahead;_typeaheadSubscription=T.yU.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||0===this._items.length)return;let le=0;for(let Ae=0;Ae{this._items=Ae.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):(0,w.A)(le)?le.subscribe(Ae=>{this._items=Ae,this._typeahead?.setItems(Ae),this._updateActiveItemIndex(Ae),this._initializeFocus()}):(this._items=le,this._initializeFocus()),"boolean"==typeof Ce.shouldActivationFollowFocus&&(this._shouldActivationFollowFocus=Ce.shouldActivationFollowFocus),Ce.horizontalOrientation&&(this._horizontalOrientation=Ce.horizontalOrientation),Ce.skipPredicate&&(this._skipPredicateFn=Ce.skipPredicate),Ce.trackBy&&(this._trackByFn=Ce.trackBy),typeof Ce.typeAheadDebounceInterval<"u"&&this._setTypeAhead(Ce.typeAheadDebounceInterval)}change=new v.B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(le){switch(le.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":"rtl"===this._horizontalOrientation?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":"rtl"===this._horizontalOrientation?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if("*"===le.key){this._expandAllItemsAtCurrentItemLevel();break}return void this._typeahead?.handleKey(le)}this._typeahead?.reset(),le.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(le,Ce={}){Ce.emitChangeEvent??=!0;let Ae="number"==typeof le?le:this._items.findIndex(G=>this._trackByFn(G)===this._trackByFn(le));if(Ae<0||Ae>=this._items.length)return;const j=this._items[Ae];if(null!==this._activeItem&&this._trackByFn(j)===this._trackByFn(this._activeItem))return;const W=this._activeItem;this._activeItem=j??null,this._activeItemIndex=Ae,this._typeahead?.setCurrentSelectedItemIndex(Ae),this._activeItem?.focus(),W?.unfocus(),Ce.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(le){const Ce=this._activeItem;if(!Ce)return;const Ae=le.findIndex(j=>this._trackByFn(j)===this._trackByFn(Ce));Ae>-1&&Ae!==this._activeItemIndex&&(this._activeItemIndex=Ae,this._typeahead?.setCurrentSelectedItemIndex(Ae))}_setTypeAhead(le){this._typeahead=new f.i(this._items,{debounceInterval:"number"==typeof le?le:void 0,skipPredicate:Ce=>this._skipPredicateFn(Ce)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Ce=>{this.focusItem(Ce)})}_findNextAvailableItemIndex(le){for(let Ce=le+1;Ce=0;Ce--)if(!this._skipPredicateFn(this._items[Ce]))return Ce;return le}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{const le=this._activeItem.getParent();if(!le||this._skipPredicateFn(le))return;this.focusItem(le)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?(0,u.x)(this._activeItem.getChildren()).pipe((0,O.s)(1)).subscribe(le=>{const Ce=le.find(Ae=>!this._skipPredicateFn(Ae));Ce&&this.focusItem(Ce)}):this._activeItem.expand())}_isCurrentItemExpanded(){return!!this._activeItem&&("boolean"==typeof this._activeItem.isExpanded?this._activeItem.isExpanded:this._activeItem.isExpanded())}_isItemDisabled(le){return"boolean"==typeof le.isDisabled?le.isDisabled:le.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;const le=this._activeItem.getParent();let Ce;Ce=le?(0,u.x)(le.getChildren()):(0,e.of)(this._items.filter(Ae=>null===Ae.getParent())),Ce.pipe((0,O.s)(1)).subscribe(Ae=>{for(const j of Ae)j.expand()})}_activateCurrentItem(){this._activeItem?.activate()}}const B=new i.nKC("tree-key-manager",{providedIn:"root",factory:function C(){return(Pe,le)=>new L(Pe,le)}})},2279(Zt,pe,l){"use strict";l.d(pe,{kZ:()=>Xe,s3:()=>Ke,NL:()=>F,Dc:()=>ht,xn:()=>ve,Sz:()=>Dt,a$:()=>_e,aI:()=>St,Hy:()=>ot,XO:()=>Re});var i=l(3869),d=l(4402),v=l(1413),T=l(4412),w=l(7673),e=l(4572),O=l(983),f=l(8793),u=l(6697),L=l(5964),C=l(6977),B=l(9172),A=l(8141),Pe=l(5558),le=l(6354),Ce=l(6649),Ae=l(9974);function j(oe,Ye){return(0,Ae.N)((0,Ce.S)(oe,Ye,arguments.length>=2,!1,!0))}var W=l(274),G=l(3294),re=l(3664),xe=l(2615),Ee=l(7705),V=l(4125),ce=l(1577),be=l(4117),ne=l(8045);class J{dataNodes;expansionModel=new i.C(!0);trackBy;getLevel;isExpandable;getChildren;toggle(Ye){this.expansionModel.toggle(this._trackByValue(Ye))}expand(Ye){this.expansionModel.select(this._trackByValue(Ye))}collapse(Ye){this.expansionModel.deselect(this._trackByValue(Ye))}isExpanded(Ye){return this.expansionModel.isSelected(this._trackByValue(Ye))}toggleDescendants(Ye){this.expansionModel.isSelected(this._trackByValue(Ye))?this.collapseDescendants(Ye):this.expandDescendants(Ye)}collapseAll(){this.expansionModel.clear()}expandDescendants(Ye){let fe=[Ye];fe.push(...this.getDescendants(Ye)),this.expansionModel.select(...fe.map(Qe=>this._trackByValue(Qe)))}collapseDescendants(Ye){let fe=[Ye];fe.push(...this.getDescendants(Ye)),this.expansionModel.deselect(...fe.map(Qe=>this._trackByValue(Qe)))}_trackByValue(Ye){return this.trackBy?this.trackBy(Ye):Ye}}class Re extends J{getChildren;options;constructor(Ye,fe){super(),this.getChildren=Ye,this.options=fe,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();const Ye=this.dataNodes.reduce((fe,Qe)=>[...fe,...this.getDescendants(Qe),Qe],[]);this.expansionModel.select(...Ye.map(fe=>this._trackByValue(fe)))}getDescendants(Ye){const fe=[];return this._getDescendants(fe,Ye),fe.splice(1)}_getDescendants(Ye,fe){Ye.push(fe);const Qe=this.getChildren(fe);Array.isArray(Qe)?Qe.forEach(gt=>this._getDescendants(Ye,gt)):(0,d.A)(Qe)&&Qe.pipe((0,u.s)(1),(0,L.p)(Boolean)).subscribe(gt=>{for(const Gt of gt)this._getDescendants(Ye,Gt)})}}const Xe=new xe.nKC("CDK_TREE_NODE_OUTLET_NODE");let _e=(()=>{class oe{viewContainer=(0,xe.WQX)(re.c1b);_node=(0,xe.WQX)(Xe,{optional:!0});constructor(){}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["","cdkTreeNodeOutlet",""]]})}return oe})();class he{$implicit;level;index;count;constructor(Ye){this.$implicit=Ye}}let Dt=(()=>{class oe{template=(0,xe.WQX)(re.C4Q);when;constructor(){}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return oe})();function ie(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}let F=(()=>{class oe{_differs=(0,xe.WQX)(Ee._q3);_changeDetectorRef=(0,xe.WQX)(Ee.gRc);_elementRef=(0,xe.WQX)(re.aKT);_dir=(0,xe.WQX)(ce.dS);_onDestroy=new v.B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(fe){this._dataSource!==fe&&this._switchDataSource(fe)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new T.t({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new T.t([]);_nodeType=new T.t(null);_nodes=new T.t(new Map);_keyManagerNodes=new T.t([]);_keyManagerFactory=(0,xe.WQX)(V.Z2);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){const fe=this._nodeDefs.filter(Qe=>!Qe.when);this._defaultNodeDef=fe[0]}_setNodeTypeIfUnset(fe){null===this._nodeType.value&&this._nodeType.next(fe)}_switchDataSource(fe){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),fe||this._nodeOutlet.viewContainer.clear(),this._dataSource=fe,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new i.C(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let fe;(0,be.y)(this._dataSource)?fe=this._dataSource.connect(this):(0,d.A)(this._dataSource)?fe=this._dataSource:Array.isArray(this._dataSource)&&(fe=(0,w.of)(this._dataSource)),fe&&(this._dataSubscription=this._getRenderData(fe).pipe((0,C.Q)(this._onDestroy)).subscribe(Qe=>{this._renderDataChanges(Qe)}))}_getRenderData(fe){const Qe=this._getExpansionModel();return(0,e.z)([fe,this._nodeType,Qe.changed.pipe((0,B.Z)(null),(0,A.M)(gt=>{this._emitExpansionChanges(gt)}))]).pipe((0,Pe.n)(([gt,Gt])=>null===Gt?(0,w.of)({renderNodes:gt,flattenedNodes:null,nodeType:Gt}):this._computeRenderingData(gt,Gt).pipe((0,le.T)(rt=>({...rt,nodeType:Gt})))))}_renderDataChanges(fe){null!==fe.nodeType?(this._updateCachedData(fe.flattenedNodes),this.renderNodeChanges(fe.renderNodes),this._updateKeyManagerItems(fe.flattenedNodes)):this.renderNodeChanges(fe.renderNodes)}_emitExpansionChanges(fe){if(!fe)return;const Qe=this._nodes.value;for(const gt of fe.added)Qe.get(gt)?._emitExpansionState(!0);for(const gt of fe.removed)Qe.get(gt)?._emitExpansionState(!1)}_initializeKeyManager(){const fe=(0,e.z)([this._keyManagerNodes,this._nodes]).pipe((0,le.T)(([gt,Gt])=>gt.reduce((rt,cn)=>{const Ft=Gt.get(this._getExpansionKey(cn));return Ft&&rt.push(Ft),rt},[])));this._keyManager=this._keyManagerFactory(fe,{trackBy:gt=>this._getExpansionKey(gt.data),skipPredicate:gt=>!!gt.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value})}_initializeDataDiffer(){const fe=this.trackBy??((Qe,gt)=>this._getExpansionKey(gt));this._dataDiffer=this._differs.find([]).create(fe)}_checkTreeControlUsage(){}renderNodeChanges(fe,Qe=this._dataDiffer,gt=this._nodeOutlet.viewContainer,Gt){const rt=Qe.diff(fe);!rt&&!this._viewInit||(rt?.forEachOperation((cn,Ft,Sn)=>{if(null==cn.previousIndex)this.insertNode(fe[Sn],Sn,gt,Gt);else if(null==Sn)gt.remove(Ft);else{const Qn=gt.get(Ft);gt.move(Qn,Sn)}}),rt?.forEachIdentityChange(cn=>{const Ft=cn.item;null!=cn.currentIndex&&(gt.get(cn.currentIndex).context.$implicit=Ft)}),Gt?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(fe,Qe){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(Gt=>Gt.when&&Gt.when(Qe,fe))||this._defaultNodeDef}insertNode(fe,Qe,gt,Gt){const rt=this._getLevelAccessor(),cn=this._getNodeDef(fe,Qe),Ft=this._getExpansionKey(fe),Sn=new he(fe);Sn.index=Qe,Gt??=this._parents.get(Ft)??void 0,Sn.level=rt?rt(fe):void 0!==Gt&&this._levels.has(this._getExpansionKey(Gt))?this._levels.get(this._getExpansionKey(Gt))+1:0,this._levels.set(Ft,Sn.level),(gt||this._nodeOutlet.viewContainer).createEmbeddedView(cn.template,Sn,Qe),ve.mostRecentTreeNode&&(ve.mostRecentTreeNode.data=fe)}isExpanded(fe){return!(!this.treeControl?.isExpanded(fe)&&!this._expansionModel?.isSelected(this._getExpansionKey(fe)))}toggle(fe){this.treeControl?this.treeControl.toggle(fe):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(fe))}expand(fe){this.treeControl?this.treeControl.expand(fe):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(fe))}collapse(fe){this.treeControl?this.treeControl.collapse(fe):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(fe))}toggleDescendants(fe){this.treeControl?this.treeControl.toggleDescendants(fe):this._expansionModel&&(this.isExpanded(fe)?this.collapseDescendants(fe):this.expandDescendants(fe))}expandDescendants(fe){if(this.treeControl)this.treeControl.expandDescendants(fe);else if(this._expansionModel){const Qe=this._expansionModel;Qe.select(this._getExpansionKey(fe)),this._getDescendants(fe).pipe((0,u.s)(1),(0,C.Q)(this._onDestroy)).subscribe(gt=>{Qe.select(...gt.map(Gt=>this._getExpansionKey(Gt)))})}}collapseDescendants(fe){if(this.treeControl)this.treeControl.collapseDescendants(fe);else if(this._expansionModel){const Qe=this._expansionModel;Qe.deselect(this._getExpansionKey(fe)),this._getDescendants(fe).pipe((0,u.s)(1),(0,C.Q)(this._onDestroy)).subscribe(gt=>{Qe.deselect(...gt.map(Gt=>this._getExpansionKey(Gt)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(fe=>this._expansionModel?.select(...fe))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(fe=>this._expansionModel?.deselect(...fe))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(fe){const Qe=this._getLevelAccessor(),gt=this._expansionModel??this.treeControl?.expansionModel;if(!gt)return(0,w.of)([]);const Gt=this._getExpansionKey(fe),rt=gt.changed.pipe((0,Pe.n)(Ft=>Ft.added.includes(Gt)?(0,w.of)(!0):Ft.removed.includes(Gt)?(0,w.of)(!1):O.w),(0,B.Z)(this.isExpanded(fe)));if(Qe)return(0,e.z)([rt,this._flattenedNodes]).pipe((0,le.T)(([Ft,Sn])=>Ft?this._findChildrenByLevel(Qe,Sn,fe,1):[]));const cn=this._getChildrenAccessor();if(cn)return(0,ne.x)(cn(fe)??[]);throw ie()}_findChildrenByLevel(fe,Qe,gt,Gt){const rt=this._getExpansionKey(gt),cn=Qe.findIndex(h=>this._getExpansionKey(h)===rt),Ft=fe(gt),Sn=Ft+Gt,Qn=[];for(let h=cn+1;hthis._getExpansionKey(Gt)===gt)+1}_getNodeParent(fe){const Qe=this._parents.get(this._getExpansionKey(fe.data));return Qe&&this._nodes.value.get(this._getExpansionKey(Qe))}_getNodeChildren(fe){return this._getDirectChildren(fe.data).pipe((0,le.T)(Qe=>Qe.reduce((gt,Gt)=>{const rt=this._nodes.value.get(this._getExpansionKey(Gt));return rt&>.push(rt),gt},[])))}_sendKeydownToKeyManager(fe){if(fe.target===this._elementRef.nativeElement)this._keyManager.onKeydown(fe);else{const Qe=this._nodes.getValue();for(const[,gt]of Qe)if(fe.target===gt._elementRef.nativeElement){this._keyManager.onKeydown(fe);break}}}_getDescendants(fe){if(this.treeControl)return(0,w.of)(this.treeControl.getDescendants(fe));if(this.levelAccessor){const Qe=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,fe,1/0);return(0,w.of)(Qe)}if(this.childrenAccessor)return this._getAllChildrenRecursively(fe).pipe(j((Qe,gt)=>(Qe.push(...gt),Qe),[]));throw ie()}_getAllChildrenRecursively(fe){return this.childrenAccessor?(0,ne.x)(this.childrenAccessor(fe)).pipe((0,u.s)(1),(0,Pe.n)(Qe=>{for(const gt of Qe)this._parents.set(this._getExpansionKey(gt),fe);return(0,w.of)(...Qe).pipe((0,W.H)(gt=>(0,f.x)((0,w.of)([gt]),this._getAllChildrenRecursively(gt))))})):(0,w.of)([])}_getExpansionKey(fe){return this.expansionKey?.(fe)??fe}_getAriaSet(fe){const Qe=this._getExpansionKey(fe),gt=this._parents.get(Qe),Gt=gt?this._getExpansionKey(gt):null;return this._ariaSets.get(Gt)??[fe]}_findParentForNode(fe,Qe,gt){if(!gt.length)return null;const Gt=this._levels.get(this._getExpansionKey(fe))??0;for(let rt=Qe-1;rt>=0;rt--){const cn=gt[rt];if((this._levels.get(this._getExpansionKey(cn))??0){const rt=this._getExpansionKey(Gt);this._parents.has(rt)||this._parents.set(rt,null),this._levels.set(rt,Qe);const cn=(0,ne.x)(gt(Gt));return(0,f.x)((0,w.of)([Gt]),cn.pipe((0,u.s)(1),(0,A.M)(Ft=>{this._ariaSets.set(rt,[...Ft??[]]);for(const Sn of Ft??[]){const Qn=this._getExpansionKey(Sn);this._parents.set(Qn,Gt),this._levels.set(Qn,Qe+1)}}),(0,Pe.n)(Ft=>Ft?this._flattenNestedNodesWithExpansion(Ft,Qe+1).pipe((0,le.T)(Sn=>this.isExpanded(Gt)?Sn:[])):(0,w.of)([]))))}),j((Gt,rt)=>(Gt.push(...rt),Gt),[])):(0,w.of)([...fe])}_computeRenderingData(fe,Qe){if(this.childrenAccessor&&"flat"===Qe)return this._clearPreviousCache(),this._ariaSets.set(null,[...fe]),this._flattenNestedNodesWithExpansion(fe).pipe((0,le.T)(gt=>({renderNodes:gt,flattenedNodes:gt})));if(this.levelAccessor&&"nested"===Qe){const gt=this.levelAccessor;return(0,w.of)(fe.filter(Gt=>0===gt(Gt))).pipe((0,le.T)(Gt=>({renderNodes:Gt,flattenedNodes:fe})),(0,A.M)(({flattenedNodes:Gt})=>{this._calculateParents(Gt)}))}return"flat"===Qe?(0,w.of)({renderNodes:fe,flattenedNodes:fe}).pipe((0,A.M)(({flattenedNodes:gt})=>{this._calculateParents(gt)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...fe]),this._flattenNestedNodesWithExpansion(fe).pipe((0,le.T)(gt=>({renderNodes:fe,flattenedNodes:gt}))))}_updateCachedData(fe){this._flattenedNodes.next(fe)}_updateKeyManagerItems(fe){this._keyManagerNodes.next(fe)}_calculateParents(fe){const Qe=this._getLevelAccessor();if(Qe){this._clearPreviousCache();for(let gt=0;gt{Qe.push(this._getExpansionKey(Gt.data)),gt.push(this._getDescendants(Gt.data))}),gt.length>0?(0,e.z)(gt).pipe((0,u.s)(1),(0,C.Q)(this._onDestroy)).subscribe(Gt=>{Gt.forEach(rt=>rt.forEach(cn=>Qe.push(this._getExpansionKey(cn)))),fe(Qe)}):fe(Qe)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275cmp=re.VBU({type:oe,selectors:[["cdk-tree"]],contentQueries:function(Qe,gt,Gt){if(1&Qe&&re.wni(Gt,Dt,5),2&Qe){let rt;re.mGM(rt=re.lsd())&&(gt._nodeDefs=rt)}},viewQuery:function(Qe,gt){if(1&Qe&&re.GBs(_e,7),2&Qe){let Gt;re.mGM(Gt=re.lsd())&&(gt._nodeOutlet=Gt.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(Qe,gt){1&Qe&&re.bIt("keydown",function(rt){return gt._sendKeydownToKeyManager(rt)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(Qe,gt){1&Qe&&re.eu8(0,0)},dependencies:[_e],encapsulation:2})}return oe})(),ve=(()=>{class oe{_elementRef=(0,xe.WQX)(re.aKT);_tree=(0,xe.WQX)(F);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(fe){}get isExpandable(){return this._isExpandable()}set isExpandable(fe){this._inputIsExpandable=fe,(!this.data||this._isExpandable)&&this._inputIsExpandable&&(this._inputIsExpanded?this.expand():!1===this._inputIsExpanded&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(fe){this._inputIsExpanded=fe,fe?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new re.bkB;expandedChange=new re.bkB;static mostRecentTreeNode=null;_destroyed=new v.B;_dataChanges=new v.B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(fe){fe!==this._data&&(this._data=fe,this._dataChanges.next())}_data;get isLeafNode(){return void 0!==this._tree.treeControl?.isExpandable&&!this._tree.treeControl.isExpandable(this._data)||void 0===this._tree.treeControl?.isExpandable&&0===this._tree.treeControl?.getDescendants(this._data).length}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=(0,xe.WQX)(Ee.gRc);constructor(){oe.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=function H(oe){let Ye=oe.parentElement;for(;Ye&&!$(Ye);)Ye=Ye.parentElement;return Ye?Ye.classList.contains("cdk-nested-tree-node")?(0,Ee.Udg)(Ye.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe((0,le.T)(()=>this.isExpanded),(0,G.F)(),(0,C.Q)(this._destroyed)).pipe((0,C.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){oe.mostRecentTreeNode===this&&(oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(fe){this.expandedChange.emit(fe)}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(Qe,gt){1&Qe&&re.bIt("click",function(){return gt._setActiveItem()})("focus",function(){return gt._focusItem()}),2&Qe&&(re.Avn("tabIndex",gt._tabindex),re.BMQ("aria-expanded",gt._getAriaExpanded())("aria-level",gt.level+1)("aria-posinset",gt._getPositionInSet())("aria-setsize",gt._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",Ee.L39],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",Ee.L39],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return oe})();function $(oe){const Ye=oe.classList;return!(!Ye?.contains("cdk-nested-tree-node")&&!Ye?.contains("cdk-tree"))}let Ke=(()=>{class oe extends ve{_type="nested";_differs=(0,xe.WQX)(Ee._q3);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe((0,C.Q)(this._destroyed)).subscribe(fe=>this.updateChildrenNodes(fe)),this.nodeOutlet.changes.pipe((0,C.Q)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(fe){const Qe=this._getNodeOutlet();fe&&(this._children=fe),Qe&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,Qe.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const fe=this._getNodeOutlet();fe&&(fe.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const fe=this.nodeOutlet;return fe&&fe.find(Qe=>!Qe._node||Qe._node===this)}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(Qe,gt,Gt){if(1&Qe&&re.wni(Gt,_e,5),2&Qe){let rt;re.mGM(rt=re.lsd())&&(gt.nodeOutlet=rt)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[re.Jv_([{provide:ve,useExisting:oe},{provide:Xe,useExisting:oe}]),re.Vt3]})}return oe})();const Vt=/([A-Za-z%]+)$/;let St=(()=>{class oe{_treeNode=(0,xe.WQX)(ve);_tree=(0,xe.WQX)(F);_element=(0,xe.WQX)(re.aKT);_dir=(0,xe.WQX)(ce.dS,{optional:!0});_currentPadding;_destroyed=new v.B;indentUnits="px";get level(){return this._level}set level(fe){this._setLevelInput(fe)}_level;get indent(){return this._indent}set indent(fe){this._setIndentInput(fe)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe((0,C.Q)(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const fe=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,Qe=null==this._level?fe:this._level;return"number"==typeof Qe?`${Qe*this._indent}${this.indentUnits}`:null}_setPadding(fe=!1){const Qe=this._paddingIndent();if(Qe!==this._currentPadding||fe){const gt=this._element.nativeElement,Gt=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",rt="paddingLeft"===Gt?"paddingRight":"paddingLeft";gt.style[Gt]=Qe||"",gt.style[rt]="",this._currentPadding=Qe}}_setLevelInput(fe){this._level=isNaN(fe)?null:fe,this._setPadding()}_setIndentInput(fe){let Qe=fe,gt="px";if("string"==typeof fe){const Gt=fe.split(Vt);Qe=Gt[0],gt=Gt[1]||gt}this.indentUnits=gt,this._indent=(0,Ee.Udg)(Qe),this._setPadding()}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",Ee.Udg],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return oe})(),ot=(()=>{class oe{_tree=(0,xe.WQX)(F);_treeNode=(0,xe.WQX)(ve);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275dir=re.FsC({type:oe,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(Qe,gt){1&Qe&&re.bIt("click",function(rt){return gt._toggle(),rt.stopPropagation()})("keydown.Enter",function(rt){return gt._toggle(),rt.preventDefault()})("keydown.Space",function(rt){return gt._toggle(),rt.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",Ee.L39]}})}return oe})(),ht=(()=>{class oe{static \u0275fac=function(Qe){return new(Qe||oe)};static \u0275mod=re.$C({type:oe});static \u0275inj=xe.G2t({})}return oe})()},9096(Zt,pe,l){"use strict";l.d(pe,{i:()=>f});var i=l(1413),d=l(152),v=l(5964),T=l(6354),w=l(8141),e=l(438);class f{_letterKeyStream=new i.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new i.B;selectedItem=this._selectedItem;constructor(L,C){const B="number"==typeof C?.debounceInterval?C.debounceInterval:200;C?.skipPredicate&&(this._skipPredicateFn=C.skipPredicate),this.setItems(L),this._setupKeyHandler(B)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(L){this._selectedItemIndex=L}setItems(L){this._items=L}handleKey(L){const C=L.keyCode;L.key&&1===L.key.length?this._letterKeyStream.next(L.key.toLocaleUpperCase()):(C>=e.A&&C<=e.Z||C>=e.f2&&C<=e.bn)&&this._letterKeyStream.next(String.fromCharCode(C))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(L){this._letterKeyStream.pipe((0,w.M)(C=>this._pressedLetters.push(C)),(0,d.B)(L),(0,v.p)(()=>this._pressedLetters.length>0),(0,T.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(C=>{for(let B=1;Bd});var i=l(2615);let d=(()=>{class v{_listeners=[];notify(w,e){for(let O of this._listeners)O(w,e)}listen(w){return this._listeners.push(w),()=>{this._listeners=this._listeners.filter(e=>w!==e)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(e){return new(e||v)};static \u0275prov=i.jDH({token:v,factory:v.\u0275fac,providedIn:"root"})}return v})()},177(Zt,pe,l){"use strict";l.d(pe,{AJ:()=>Ee,UE:()=>ce,Vy:()=>be,Xr:()=>J});var re=l(2615);const Ee="browser";function ce(qt){return qt===Ee}function be(qt){return"server"===qt}let J=(()=>{class qt{static \u0275prov=(0,re.jDH)({token:qt,providedIn:"root",factory:()=>new De((0,re.WQX)(re.qQL),window)})}return qt})();class De{document;window;offset=()=>[0,0];constructor(En,Wn){this.document=En,this.window=Wn}setOffset(En){this.offset=Array.isArray(En)?()=>En:En}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(En,Wn){this.window.scrollTo({...Wn,left:En[0],top:En[1]})}scrollToAnchor(En,Wn){const ri=function Re(qt,En){const Wn=qt.getElementById(En)||qt.getElementsByName(En)[0];if(Wn)return Wn;if("function"==typeof qt.createTreeWalker&&qt.body&&"function"==typeof qt.body.attachShadow){const ri=qt.createTreeWalker(qt.body,NodeFilter.SHOW_ELEMENT);let Rn=ri.currentNode;for(;Rn;){const Hn=Rn.shadowRoot;if(Hn){const Pi=Hn.getElementById(En)||Hn.querySelector(`[name="${En}"]`);if(Pi)return Pi}Rn=ri.nextNode()}}return null}(this.document,En);ri&&(this.scrollToElement(ri,Wn),ri.focus())}setHistoryScrollRestoration(En){try{this.window.history.scrollRestoration=En}catch{console.warn((0,re.OsK)(2400,!1))}}scrollToElement(En,Wn){const ri=En.getBoundingClientRect(),Rn=ri.left+this.window.pageXOffset,Hn=ri.top+this.window.pageYOffset,Pi=this.offset();this.window.scrollTo({...Wn,left:Rn-Pi[0],top:Hn-Pi[1]})}}},2200(Zt,pe,l){"use strict";l.d(pe,{B3:()=>Yt,GH:()=>ii,Jj:()=>Vn,MD:()=>Ca,P9:()=>yi,PV:()=>ia,Pc:()=>ra,QX:()=>en,Sq:()=>Tt,T3:()=>Un,TG:()=>Hn,YU:()=>xn,bT:()=>ae,e1:()=>bi,fG:()=>Qi,fw:()=>u,lG:()=>da,ux:()=>fi,vh:()=>En});var T=l(7705),w=l(2615),e=l(3664),O=l(9295),f=l(7303);let u=(()=>{class Fe extends f.hb{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(Ve,Et){super(),this._platformLocation=Ve,null!=Et&&(this._baseHref=Et)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ve){this._removeListenerFns.push(this._platformLocation.onPopState(Ve),this._platformLocation.onHashChange(Ve))}getBaseHref(){return this._baseHref}path(Ve=!1){const Et=this._platformLocation.hash??"#";return Et.length>0?Et.substring(1):Et}prepareExternalUrl(Ve){const Et=(0,f.om)(this._baseHref,Ve);return Et.length>0?"#"+Et:Et}pushState(Ve,Et,Jt,ti){const di=this.prepareExternalUrl(Jt+(0,f.Q)(ti))||this._platformLocation.pathname;this._platformLocation.pushState(Ve,Et,di)}replaceState(Ve,Et,Jt,ti){const di=this.prepareExternalUrl(Jt+(0,f.Q)(ti))||this._platformLocation.pathname;this._platformLocation.replaceState(Ve,Et,di)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ve=0){this._platformLocation.historyGo?.(Ve)}static \u0275fac=function(Et){return new(Et||Fe)(w.KVO(f.Vw),w.KVO(f.kB,8))};static \u0275prov=w.jDH({token:Fe,factory:Fe.\u0275fac})}return Fe})();var C=function(Fe){return Fe[Fe.Decimal=0]="Decimal",Fe[Fe.Percent=1]="Percent",Fe[Fe.Currency=2]="Currency",Fe[Fe.Scientific=3]="Scientific",Fe}(C||{}),A=function(Fe){return Fe[Fe.Format=0]="Format",Fe[Fe.Standalone=1]="Standalone",Fe}(A||{}),Pe=function(Fe){return Fe[Fe.Narrow=0]="Narrow",Fe[Fe.Abbreviated=1]="Abbreviated",Fe[Fe.Wide=2]="Wide",Fe[Fe.Short=3]="Short",Fe}(Pe||{}),le=function(Fe){return Fe[Fe.Short=0]="Short",Fe[Fe.Medium=1]="Medium",Fe[Fe.Long=2]="Long",Fe[Fe.Full=3]="Full",Fe}(le||{});function ce(Fe,Wt){return P((0,e.kBR)(Fe)[e.NSC.DateFormat],Wt)}function be(Fe,Wt){return P((0,e.kBR)(Fe)[e.NSC.TimeFormat],Wt)}function ne(Fe,Wt){return P((0,e.kBR)(Fe)[e.NSC.DateTimeFormat],Wt)}function J(Fe,Wt){const Ve=(0,e.kBR)(Fe),Et=Ve[e.NSC.NumberSymbols][Wt];if(typeof Et>"u"){if(12===Wt)return Ve[e.NSC.NumberSymbols][0];if(13===Wt)return Ve[e.NSC.NumberSymbols][1]}return Et}function lt(Fe){if(!Fe[e.NSC.ExtraData])throw new w.buA(2303,!1)}function P(Fe,Wt){for(let Ve=Wt;Ve>-1;Ve--)if(typeof Fe[Ve]<"u")return Fe[Ve];throw new w.buA(2304,!1)}function F(Fe){const[Wt,Ve]=Fe.split(":");return{hours:+Wt,minutes:+Ve}}const Ke=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Vt={},St=/((?:[^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 nt(Fe,Wt,Ve,Et){let Jt=function Ri(Fe){if(ee(Fe))return Fe;if("number"==typeof Fe&&!isNaN(Fe))return new Date(Fe);if("string"==typeof Fe){if(Fe=Fe.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(Fe)){const[Jt,ti=1,di=1]=Fe.split("-").map(Ii=>+Ii);return Ye(Jt,ti-1,di)}const Ve=parseFloat(Fe);if(!isNaN(Fe-Ve))return new Date(Ve);let Et;if(Et=Fe.match(Ke))return function vt(Fe){const Wt=new Date(0);let Ve=0,Et=0;const Jt=Fe[8]?Wt.setUTCFullYear:Wt.setFullYear,ti=Fe[8]?Wt.setUTCHours:Wt.setHours;Fe[9]&&(Ve=Number(Fe[9]+Fe[10]),Et=Number(Fe[9]+Fe[11])),Jt.call(Wt,Number(Fe[1]),Number(Fe[2])-1,Number(Fe[3]));const di=Number(Fe[4]||0)-Ve,Ii=Number(Fe[5]||0)-Et,ca=Number(Fe[6]||0),nn=Math.floor(1e3*parseFloat("0."+(Fe[7]||0)));return ti.call(Wt,di,Ii,ca,nn),Wt}(Et)}const Wt=new Date(Fe);if(!ee(Wt))throw new w.buA(2311,!1);return Wt}(Fe);(function ht(Fe){if(Fe.length>256)throw new w.buA(2300,!1)})(Wt),Wt=fe(Ve,Wt)||Wt;let Ii,di=[];for(;Wt;){if(Ii=St.exec(Wt),!Ii){di.push(Wt);break}{di=di.concat(Ii.slice(1));const ni=di.pop();if(!ni)break;Wt=ni}}let ca=Jt.getTimezoneOffset();Et&&(ca=vi(Et,ca),Jt=function kn(Fe,Wt){const Jt=Fe.getTimezoneOffset();return function Ni(Fe,Wt){return(Fe=new Date(Fe.getTime())).setMinutes(Fe.getMinutes()+Wt),Fe}(Fe,-1*(vi(Wt,Jt)-Jt))}(Jt,Et));let nn="";return di.forEach(ni=>{const U=function ei(Fe){if(gn[Fe])return gn[Fe];let Wt;switch(Fe){case"G":case"GG":case"GGG":Wt=Ft(3,Pe.Abbreviated);break;case"GGGG":Wt=Ft(3,Pe.Wide);break;case"GGGGG":Wt=Ft(3,Pe.Narrow);break;case"y":Wt=rt(0,1,0,!1,!0);break;case"yy":Wt=rt(0,2,0,!0,!0);break;case"yyy":Wt=rt(0,3,0,!1,!0);break;case"yyyy":Wt=rt(0,4,0,!1,!0);break;case"Y":Wt=Pt(1);break;case"YY":Wt=Pt(2,!0);break;case"YYY":Wt=Pt(3);break;case"YYYY":Wt=Pt(4);break;case"M":case"L":Wt=rt(1,1,1);break;case"MM":case"LL":Wt=rt(1,2,1);break;case"MMM":Wt=Ft(2,Pe.Abbreviated);break;case"MMMM":Wt=Ft(2,Pe.Wide);break;case"MMMMM":Wt=Ft(2,Pe.Narrow);break;case"LLL":Wt=Ft(2,Pe.Abbreviated,A.Standalone);break;case"LLLL":Wt=Ft(2,Pe.Wide,A.Standalone);break;case"LLLLL":Wt=Ft(2,Pe.Narrow,A.Standalone);break;case"w":Wt=pt(1);break;case"ww":Wt=pt(2);break;case"W":Wt=pt(1,!0);break;case"d":Wt=rt(2,1);break;case"dd":Wt=rt(2,2);break;case"c":case"cc":Wt=rt(7,1);break;case"ccc":Wt=Ft(1,Pe.Abbreviated,A.Standalone);break;case"cccc":Wt=Ft(1,Pe.Wide,A.Standalone);break;case"ccccc":Wt=Ft(1,Pe.Narrow,A.Standalone);break;case"cccccc":Wt=Ft(1,Pe.Short,A.Standalone);break;case"E":case"EE":case"EEE":Wt=Ft(1,Pe.Abbreviated);break;case"EEEE":Wt=Ft(1,Pe.Wide);break;case"EEEEE":Wt=Ft(1,Pe.Narrow);break;case"EEEEEE":Wt=Ft(1,Pe.Short);break;case"a":case"aa":case"aaa":Wt=Ft(0,Pe.Abbreviated);break;case"aaaa":Wt=Ft(0,Pe.Wide);break;case"aaaaa":Wt=Ft(0,Pe.Narrow);break;case"b":case"bb":case"bbb":Wt=Ft(0,Pe.Abbreviated,A.Standalone,!0);break;case"bbbb":Wt=Ft(0,Pe.Wide,A.Standalone,!0);break;case"bbbbb":Wt=Ft(0,Pe.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":Wt=Ft(0,Pe.Abbreviated,A.Format,!0);break;case"BBBB":Wt=Ft(0,Pe.Wide,A.Format,!0);break;case"BBBBB":Wt=Ft(0,Pe.Narrow,A.Format,!0);break;case"h":Wt=rt(3,1,-12);break;case"hh":Wt=rt(3,2,-12);break;case"H":Wt=rt(3,1);break;case"HH":Wt=rt(3,2);break;case"m":Wt=rt(4,1);break;case"mm":Wt=rt(4,2);break;case"s":Wt=rt(5,1);break;case"ss":Wt=rt(5,2);break;case"S":Wt=rt(6,1);break;case"SS":Wt=rt(6,2);break;case"SSS":Wt=rt(6,3);break;case"Z":case"ZZ":case"ZZZ":Wt=Qn(0);break;case"ZZZZZ":Wt=Qn(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Wt=Qn(1);break;case"OOOO":case"ZZZZ":case"zzzz":Wt=Qn(2);break;default:return null}return gn[Fe]=Wt,Wt}(ni);nn+=U?U(Jt,Ve,ca):"''"===ni?"'":ni.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),nn}function Ye(Fe,Wt,Ve){const Et=new Date(0);return Et.setFullYear(Fe,Wt,Ve),Et.setHours(0,0,0),Et}function fe(Fe,Wt){const Ve=function j(Fe){return(0,e.kBR)(Fe)[e.NSC.LocaleId]}(Fe);if(Vt[Ve]??={},Vt[Ve][Wt])return Vt[Ve][Wt];let Et="";switch(Wt){case"shortDate":Et=ce(Fe,le.Short);break;case"mediumDate":Et=ce(Fe,le.Medium);break;case"longDate":Et=ce(Fe,le.Long);break;case"fullDate":Et=ce(Fe,le.Full);break;case"shortTime":Et=be(Fe,le.Short);break;case"mediumTime":Et=be(Fe,le.Medium);break;case"longTime":Et=be(Fe,le.Long);break;case"fullTime":Et=be(Fe,le.Full);break;case"short":const Jt=fe(Fe,"shortTime"),ti=fe(Fe,"shortDate");Et=Qe(ne(Fe,le.Short),[Jt,ti]);break;case"medium":const di=fe(Fe,"mediumTime"),Ii=fe(Fe,"mediumDate");Et=Qe(ne(Fe,le.Medium),[di,Ii]);break;case"long":const ca=fe(Fe,"longTime"),nn=fe(Fe,"longDate");Et=Qe(ne(Fe,le.Long),[ca,nn]);break;case"full":const ni=fe(Fe,"fullTime"),U=fe(Fe,"fullDate");Et=Qe(ne(Fe,le.Full),[ni,U])}return Et&&(Vt[Ve][Wt]=Et),Et}function Qe(Fe,Wt){return Wt&&(Fe=Fe.replace(/\{([^}]+)}/g,function(Ve,Et){return null!=Wt&&Et in Wt?Wt[Et]:Ve})),Fe}function gt(Fe,Wt,Ve="-",Et,Jt){let ti="";(Fe<0||Jt&&Fe<=0)&&(Jt?Fe=1-Fe:(Fe=-Fe,ti=Ve));let di=String(Fe);for(;di.length0||Ii>-Ve)&&(Ii+=Ve),3===Fe)0===Ii&&-12===Ve&&(Ii=12);else if(6===Fe)return function Gt(Fe,Wt){return gt(Fe,3).substring(0,Wt)}(Ii,Wt);const ca=J(di,5);return gt(Ii,Wt,ca,Et,Jt)}}function Ft(Fe,Wt,Ve=A.Format,Et=!1){return function(Jt,ti){return function Sn(Fe,Wt,Ve,Et,Jt,ti){switch(Ve){case 2:return function re(Fe,Wt,Ve){const Et=(0,e.kBR)(Fe),ti=P([Et[e.NSC.MonthsFormat],Et[e.NSC.MonthsStandalone]],Wt);return P(ti,Ve)}(Wt,Jt,Et)[Fe.getMonth()];case 1:return function G(Fe,Wt,Ve){const Et=(0,e.kBR)(Fe),ti=P([Et[e.NSC.DaysFormat],Et[e.NSC.DaysStandalone]],Wt);return P(ti,Ve)}(Wt,Jt,Et)[Fe.getDay()];case 0:const di=Fe.getHours(),Ii=Fe.getMinutes();if(ti){const nn=function Le(Fe){const Wt=(0,e.kBR)(Fe);return lt(Wt),(Wt[e.NSC.ExtraData][2]||[]).map(Et=>"string"==typeof Et?F(Et):[F(Et[0]),F(Et[1])])}(Wt),ni=function te(Fe,Wt,Ve){const Et=(0,e.kBR)(Fe);lt(Et);const ti=P([Et[e.NSC.ExtraData][0],Et[e.NSC.ExtraData][1]],Wt)||[];return P(ti,Ve)||[]}(Wt,Jt,Et),U=nn.findIndex(tt=>{if(Array.isArray(tt)){const[Ze,Xt]=tt,Nn=di>=Ze.hours&&Ii>=Ze.minutes,Ki=di0?Math.floor(Jt/60):Math.ceil(Jt/60);switch(Fe){case 0:return(Jt>=0?"+":"")+gt(di,2,ti)+gt(Math.abs(Jt%60),2,ti);case 1:return"GMT"+(Jt>=0?"+":"")+gt(di,1,ti);case 2:return"GMT"+(Jt>=0?"+":"")+gt(di,2,ti)+":"+gt(Math.abs(Jt%60),2,ti);case 3:return 0===Et?"Z":(Jt>=0?"+":"")+gt(di,2,ti)+":"+gt(Math.abs(Jt%60),2,ti);default:throw new w.buA(2310,!1)}}}function wt(Fe){const Wt=Fe.getDay(),Ve=0===Wt?-3:4-Wt;return Ye(Fe.getFullYear(),Fe.getMonth(),Fe.getDate()+Ve)}function pt(Fe,Wt=!1){return function(Ve,Et){let Jt;if(Wt){const ti=new Date(Ve.getFullYear(),Ve.getMonth(),1).getDay()-1,di=Ve.getDate();Jt=1+Math.floor((di+ti)/7)}else{const ti=wt(Ve),di=function Ue(Fe){const Wt=Ye(Fe,0,1).getDay();return Ye(Fe,0,1+(Wt<=4?4:11)-Wt)}(ti.getFullYear()),Ii=ti.getTime()-di.getTime();Jt=1+Math.round(Ii/6048e5)}return gt(Jt,Fe,J(Et,5))}}function Pt(Fe,Wt=!1){return function(Ve,Et){return gt(wt(Ve).getFullYear(),Fe,J(Et,5),Wt)}}const gn={};function vi(Fe,Wt){Fe=Fe.replace(/:/g,"");const Ve=Date.parse("Jan 01, 1970 00:00:00 "+Fe)/6e4;return isNaN(Ve)?Wt:Ve}function ee(Fe){return Fe instanceof Date&&!isNaN(Fe.valueOf())}const ye=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function bt(Fe){const Wt=parseInt(Fe);if(isNaN(Wt))throw new w.buA(2305,!1);return Wt}const Nt=/\s+/,dn=[];let xn=(()=>{class Fe{_ngEl;_renderer;initialClasses=dn;rawClass;stateMap=new Map;constructor(Ve,Et){this._ngEl=Ve,this._renderer=Et}set klass(Ve){this.initialClasses=null!=Ve?Ve.trim().split(Nt):dn}set ngClass(Ve){this.rawClass="string"==typeof Ve?Ve.trim().split(Nt):Ve}ngDoCheck(){for(const Et of this.initialClasses)this._updateState(Et,!0);const Ve=this.rawClass;if(Array.isArray(Ve)||Ve instanceof Set)for(const Et of Ve)this._updateState(Et,!0);else if(null!=Ve)for(const Et of Object.keys(Ve))this._updateState(Et,!!Ve[Et]);this._applyStateDiff()}_updateState(Ve,Et){const Jt=this.stateMap.get(Ve);void 0!==Jt?(Jt.enabled!==Et&&(Jt.changed=!0,Jt.enabled=Et),Jt.touched=!0):this.stateMap.set(Ve,{enabled:Et,changed:!0,touched:!0})}_applyStateDiff(){for(const Ve of this.stateMap){const Et=Ve[0],Jt=Ve[1];Jt.changed?(this._toggleClass(Et,Jt.enabled),Jt.changed=!1):Jt.touched||(Jt.enabled&&this._toggleClass(Et,!1),this.stateMap.delete(Et)),Jt.touched=!1}}_toggleClass(Ve,Et){(Ve=Ve.trim()).length>0&&Ve.split(Nt).forEach(Jt=>{Et?this._renderer.addClass(this._ngEl.nativeElement,Jt):this._renderer.removeClass(this._ngEl.nativeElement,Jt)})}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.aKT),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return Fe})();class Yi{$implicit;ngForOf;index;count;constructor(Wt,Ve,Et,Jt){this.$implicit=Wt,this.ngForOf=Ve,this.index=Et,this.count=Jt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Tt=(()=>{class Fe{_viewContainer;_template;_differs;set ngForOf(Ve){this._ngForOf=Ve,this._ngForOfDirty=!0}set ngForTrackBy(Ve){this._trackByFn=Ve}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(Ve,Et,Jt){this._viewContainer=Ve,this._template=Et,this._differs=Jt}set ngForTemplate(Ve){Ve&&(this._template=Ve)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ve=this._ngForOf;!this._differ&&Ve&&(this._differ=this._differs.find(Ve).create(this.ngForTrackBy))}if(this._differ){const Ve=this._differ.diff(this._ngForOf);Ve&&this._applyChanges(Ve)}}_applyChanges(Ve){const Et=this._viewContainer;Ve.forEachOperation((Jt,ti,di)=>{if(null==Jt.previousIndex)Et.createEmbeddedView(this._template,new Yi(Jt.item,this._ngForOf,-1,-1),null===di?void 0:di);else if(null==di)Et.remove(null===ti?void 0:ti);else if(null!==ti){const Ii=Et.get(ti);Et.move(Ii,di),At(Ii,Jt)}});for(let Jt=0,ti=Et.length;Jt{At(Et.get(Jt.currentIndex),Jt)})}static ngTemplateContextGuard(Ve,Et){return!0}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(T._q3))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return Fe})();function At(Fe,Wt){Fe.context.$implicit=Wt.item}let ae=(()=>{class Fe{_viewContainer;_context=new Lt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(Ve,Et){this._viewContainer=Ve,this._thenTemplateRef=Et}set ngIf(Ve){this._context.$implicit=this._context.ngIf=Ve,this._updateView()}set ngIfThen(Ve){Ht(Ve),this._thenTemplateRef=Ve,this._thenViewRef=null,this._updateView()}set ngIfElse(Ve){Ht(Ve),this._elseTemplateRef=Ve,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(Ve,Et){return!0}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.c1b),e.rXU(e.C4Q))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return Fe})();class Lt{$implicit=null;ngIf=null}function Ht(Fe,Wt){if(Fe&&!Fe.createEmbeddedView)throw new w.buA(2020,!1)}class _n{_viewContainerRef;_templateRef;_created=!1;constructor(Wt,Ve){this._viewContainerRef=Wt,this._templateRef=Ve}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Wt){Wt&&!this._created?this.create():!Wt&&this._created&&this.destroy()}}let fi=(()=>{class Fe{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(Ve){this._ngSwitch=Ve,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Ve){this._defaultViews.push(Ve)}_matchCase(Ve){const Et=Ve===this._ngSwitch;return this._lastCasesMatched||=Et,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Et}_updateDefaultCases(Ve){if(this._defaultViews.length>0&&Ve!==this._defaultUsed){this._defaultUsed=Ve;for(const Et of this._defaultViews)Et.enforceState(Ve)}}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return Fe})(),bi=(()=>{class Fe{ngSwitch;_view;ngSwitchCase;constructor(Ve,Et,Jt){this.ngSwitch=Jt,Jt._addCase(),this._view=new _n(Ve,Et)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(fi,9))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return Fe})(),Qi=(()=>{class Fe{constructor(Ve,Et,Jt){Jt._addDefault(new _n(Ve,Et))}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(fi,9))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngSwitchDefault",""]]})}return Fe})(),Yt=(()=>{class Fe{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(Ve,Et,Jt){this._ngEl=Ve,this._differs=Et,this._renderer=Jt}set ngStyle(Ve){this._ngStyle=Ve,!this._differ&&Ve&&(this._differ=this._differs.find(Ve).create())}ngDoCheck(){if(this._differ){const Ve=this._differ.diff(this._ngStyle);Ve&&this._applyChanges(Ve)}}_setStyle(Ve,Et){const[Jt,ti]=Ve.split("."),di=-1===Jt.indexOf("-")?void 0:e.czy.DashCase;null!=Et?this._renderer.setStyle(this._ngEl.nativeElement,Jt,ti?`${Et}${ti}`:Et,di):this._renderer.removeStyle(this._ngEl.nativeElement,Jt,di)}_applyChanges(Ve){Ve.forEachRemovedItem(Et=>this._setStyle(Et.key,null)),Ve.forEachAddedItem(Et=>this._setStyle(Et.key,Et.currentValue)),Ve.forEachChangedItem(Et=>this._setStyle(Et.key,Et.currentValue))}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.aKT),e.rXU(T.MKu),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return Fe})(),Un=(()=>{class Fe{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(Ve){this._viewContainerRef=Ve}ngOnChanges(Ve){if(this._shouldRecreateView(Ve)){const Et=this._viewContainerRef;if(this._viewRef&&Et.remove(Et.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const Jt=this._createContextForwardProxy();this._viewRef=Et.createEmbeddedView(this.ngTemplateOutlet,Jt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(Ve){return!!Ve.ngTemplateOutlet||!!Ve.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(Ve,Et,Jt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Et,Jt),get:(Ve,Et,Jt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Et,Jt)}})}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.c1b))};static \u0275dir=e.FsC({type:Fe,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[e.OA$]})}return Fe})();function Fn(Fe,Wt){return new w.buA(2100,!1)}class ci{createSubscription(Wt,Ve,Et){return(0,O.O8)(()=>Wt.subscribe({next:Ve,error:Et}))}dispose(Wt){(0,O.O8)(()=>Wt.unsubscribe())}}class rn{createSubscription(Wt,Ve,Et){return Wt.then(Jt=>Ve?.(Jt),Jt=>Et?.(Jt)),{unsubscribe:()=>{Ve=null,Et=null}}}dispose(Wt){Wt.unsubscribe()}}const In=new rn,Mn=new ci;let Vn=(()=>{class Fe{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=(0,w.WQX)(w.ZTf);constructor(Ve){this._ref=Ve}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Ve){if(!this._obj){if(Ve)try{this.markForCheckOnValueUpdate=!1,this._subscribe(Ve)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return Ve!==this._obj?(this._dispose(),this.transform(Ve)):this._latestValue}_subscribe(Ve){this._obj=Ve,this._strategy=this._selectStrategy(Ve),this._subscription=this._strategy.createSubscription(Ve,Et=>this._updateLatestValue(Ve,Et),Et=>this.applicationErrorHandler(Et))}_selectStrategy(Ve){if((0,e.yLl)(Ve))return In;if((0,e.cdK)(Ve))return Mn;throw Fn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ve,Et){Ve===this._obj&&(this._latestValue=Et,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(T.gRc,16))};static \u0275pipe=e.EJ8({name:"async",type:Fe,pure:!1})}return Fe})(),ii=(()=>{class Fe{transform(Ve){if(null==Ve)return null;if("string"!=typeof Ve)throw Fn();return Ve.toLowerCase()}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275pipe=e.EJ8({name:"lowercase",type:Fe,pure:!0})}return Fe})();const Bn=/(?:[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;let ia=(()=>{class Fe{transform(Ve){if(null==Ve)return null;if("string"!=typeof Ve)throw Fn();return Ve.replace(Bn,Et=>Et[0].toUpperCase()+Et.slice(1).toLowerCase())}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275pipe=e.EJ8({name:"titlecase",type:Fe,pure:!0})}return Fe})(),ra=(()=>{class Fe{transform(Ve){if(null==Ve)return null;if("string"!=typeof Ve)throw Fn();return Ve.toUpperCase()}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275pipe=e.EJ8({name:"uppercase",type:Fe,pure:!0})}return Fe})();const ha=new w.nKC(""),qt=new w.nKC("");let En=(()=>{class Fe{locale;defaultTimezone;defaultOptions;constructor(Ve,Et,Jt){this.locale=Ve,this.defaultTimezone=Et,this.defaultOptions=Jt}transform(Ve,Et,Jt,ti){if(null==Ve||""===Ve||Ve!=Ve)return null;try{return nt(Ve,Et??this.defaultOptions?.dateFormat??"mediumDate",ti||this.locale,Jt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(di){throw Fn()}}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(e.xe9,16),e.rXU(ha,24),e.rXU(qt,24))};static \u0275pipe=e.EJ8({name:"date",type:Fe,pure:!0})}return Fe})(),Hn=(()=>{class Fe{transform(Ve){return JSON.stringify(Ve,null,2)}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275pipe=e.EJ8({name:"json",type:Fe,pure:!1})}return Fe})(),da=(()=>{class Fe{differs;constructor(Ve){this.differs=Ve}differ;keyValues=[];compareFn=Ta;transform(Ve,Et=Ta){if(!Ve||!(Ve instanceof Map)&&"object"!=typeof Ve)return null;this.differ??=this.differs.find(Ve).create();const Jt=this.differ.diff(Ve),ti=Et!==this.compareFn;return Jt&&(this.keyValues=[],Jt.forEachItem(di=>{this.keyValues.push(function Pi(Fe,Wt){return{key:Fe,value:Wt}}(di.key,di.currentValue))})),(Jt||ti)&&(Et&&this.keyValues.sort(Et),this.compareFn=Et),this.keyValues}static \u0275fac=function(Et){return new(Et||Fe)(e.rXU(T.MKu,16))};static \u0275pipe=e.EJ8({name:"keyvalue",type:Fe,pure:!1})}return Fe})();function Ta(Fe,Wt){const Ve=Fe.key,Et=Wt.key;if(Ve===Et)return 0;if(null==Ve)return 1;if(null==Et)return-1;if("string"==typeof Ve&&"string"==typeof Et)return Ve{class Fe{_locale;constructor(Ve){this._locale=Ve}transform(Ve,Et,Jt){if(!function bn(Fe){return!(null==Fe||""===Fe||Fe!=Fe)}(Ve))return null;Jt||=this._locale;try{return function ut(Fe,Wt,Ve){return function pn(Fe,Wt,Ve,Et,Jt,ti,di=!1){let Ii="",ca=!1;if(isFinite(Fe)){let nn=function se(Fe){let Et,Jt,ti,di,Ii,Wt=Math.abs(Fe)+"",Ve=0;for((Jt=Wt.indexOf("."))>-1&&(Wt=Wt.replace(".","")),(ti=Wt.search(/e/i))>0?(Jt<0&&(Jt=ti),Jt+=+Wt.slice(ti+1),Wt=Wt.substring(0,ti)):Jt<0&&(Jt=Wt.length),ti=0;"0"===Wt.charAt(ti);ti++);if(ti===(Ii=Wt.length))Et=[0],Jt=1;else{for(Ii--;"0"===Wt.charAt(Ii);)Ii--;for(Jt-=ti,Et=[],di=0;ti<=Ii;ti++,di++)Et[di]=Number(Wt.charAt(ti))}return Jt>22&&(Et=Et.splice(0,21),Ve=Jt-1,Jt=1),{digits:Et,exponent:Ve,integerLen:Jt}}(Fe);di&&(nn=function Ot(Fe){if(0===Fe.digits[0])return Fe;const Wt=Fe.digits.length-Fe.integerLen;return Fe.exponent?Fe.exponent+=2:(0===Wt?Fe.digits.push(0,0):1===Wt&&Fe.digits.push(0),Fe.integerLen+=2),Fe}(nn));let ni=Wt.minInt,U=Wt.minFrac,tt=Wt.maxFrac;if(ti){const Ua=ti.match(ye);if(null===Ua)throw new w.buA(2306,!1);const $a=Ua[1],ns=Ua[3],Ga=Ua[5];null!=$a&&(ni=bt($a)),null!=ns&&(U=bt(ns)),null!=Ga?tt=bt(Ga):null!=ns&&U>tt&&(tt=U);const As=100;if(ni>As||U>As||tt>As)throw new w.buA(2306,!1)}!function We(Fe,Wt,Ve){if(Wt>Ve)throw new w.buA(2307,!1);let Et=Fe.digits,Jt=Et.length-Fe.integerLen;const ti=Math.min(Math.max(Wt,Jt),Ve);let di=ti+Fe.integerLen,Ii=Et[di];if(di>0){Et.splice(Math.max(Fe.integerLen,di));for(let U=di;U=5)if(di-1<0){for(let U=0;U>di;U--)Et.unshift(0),Fe.integerLen++;Et.unshift(1),Fe.integerLen++}else Et[di-1]++;for(;Jt=nn?Xt.pop():ca=!1),tt>=10?1:0},0);ni&&(Et.unshift(ni),Fe.integerLen++)}(nn,U,tt);let Ze=nn.digits,Xt=nn.integerLen;const Nn=nn.exponent;let Ki=[];for(ca=Ze.every(Ua=>!Ua);Xt0?Ki=Ze.splice(Xt,Ze.length):(Ki=Ze,Ze=[0]);const _a=[];for(Ze.length>=Wt.lgSize&&_a.unshift(Ze.splice(-Wt.lgSize,Ze.length).join(""));Ze.length>Wt.gSize;)_a.unshift(Ze.splice(-Wt.gSize,Ze.length).join(""));Ze.length&&_a.unshift(Ze.join("")),Ii=_a.join(J(Ve,Et)),Ki.length&&(Ii+=J(Ve,Jt)+Ki.join("")),Nn&&(Ii+=J(Ve,6)+"+"+Nn)}else Ii=J(Ve,9);return Ii=Fe<0&&!ca?Wt.negPre+Ii+Wt.negSuf:Wt.posPre+Ii+Wt.posSuf,Ii}(Fe,function Ge(Fe,Wt="-"){const Ve={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Et=Fe.split(";"),Jt=Et[0],ti=Et[1],di=-1!==Jt.indexOf(".")?Jt.split("."):[Jt.substring(0,Jt.lastIndexOf("0")+1),Jt.substring(Jt.lastIndexOf("0")+1)],Ii=di[0],ca=di[1]||"";Ve.posPre=Ii.substring(0,Ii.indexOf("#"));for(let ni=0;ni{class Fe{transform(Ve,Et,Jt){if(null==Ve)return null;if("string"!=typeof Ve&&!Array.isArray(Ve))throw Fn();return Ve.slice(Et,Jt)}static \u0275fac=function(Et){return new(Et||Fe)};static \u0275pipe=e.EJ8({name:"slice",type:Fe,pure:!1})}return Fe})(),Ca=(()=>{class Fe{static \u0275fac=function(Et){return new(Et||Fe)};static \u0275mod=e.$C({type:Fe});static \u0275inj=w.G2t({})}return Fe})()},7303(Zt,pe,l){"use strict";l.d(pe,{Q:()=>B,Sm:()=>le,Vw:()=>O,aZ:()=>Ce,hb:()=>A,hj:()=>f,ig:()=>w,kB:()=>Pe,om:()=>L,qj:()=>e,rb:()=>T});var i=l(2615),d=l(1413);let v=null;function T(){return v}function w(re){v??=re}class e{}let O=(()=>{class re{historyGo(Ee){throw new Error("")}static \u0275fac=function(V){return new(V||re)};static \u0275prov=i.jDH({token:re,factory:()=>(0,i.WQX)(u),providedIn:"platform"})}return re})();const f=new i.nKC("");let u=(()=>{class re extends O{_location;_history;_doc=(0,i.WQX)(i.qQL);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return T().getBaseHref(this._doc)}onPopState(Ee){const V=T().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",Ee,!1),()=>V.removeEventListener("popstate",Ee)}onHashChange(Ee){const V=T().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",Ee,!1),()=>V.removeEventListener("hashchange",Ee)}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(Ee){this._location.pathname=Ee}pushState(Ee,V,ce){this._history.pushState(Ee,V,ce)}replaceState(Ee,V,ce){this._history.replaceState(Ee,V,ce)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ee=0){this._history.go(Ee)}getState(){return this._history.state}static \u0275fac=function(V){return new(V||re)};static \u0275prov=i.jDH({token:re,factory:()=>new re,providedIn:"platform"})}return re})();function L(re,xe){return re?xe?re.endsWith("/")?xe.startsWith("/")?re+xe.slice(1):re+xe:xe.startsWith("/")?re+xe:`${re}/${xe}`:re:xe}function C(re){const xe=re.search(/#|\?|$/);return"/"===re[xe-1]?re.slice(0,xe-1)+re.slice(xe):re}function B(re){return re&&"?"!==re[0]?`?${re}`:re}let A=(()=>{class re{historyGo(Ee){throw new Error("")}static \u0275fac=function(V){return new(V||re)};static \u0275prov=i.jDH({token:re,factory:()=>(0,i.WQX)(le),providedIn:"root"})}return re})();const Pe=new i.nKC("");let le=(()=>{class re extends A{_platformLocation;_baseHref;_removeListenerFns=[];constructor(Ee,V){super(),this._platformLocation=Ee,this._baseHref=V??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(i.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ee){this._removeListenerFns.push(this._platformLocation.onPopState(Ee),this._platformLocation.onHashChange(Ee))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ee){return L(this._baseHref,Ee)}path(Ee=!1){const V=this._platformLocation.pathname+B(this._platformLocation.search),ce=this._platformLocation.hash;return ce&&Ee?`${V}${ce}`:V}pushState(Ee,V,ce,be){const ne=this.prepareExternalUrl(ce+B(be));this._platformLocation.pushState(Ee,V,ne)}replaceState(Ee,V,ce,be){const ne=this.prepareExternalUrl(ce+B(be));this._platformLocation.replaceState(Ee,V,ne)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ee=0){this._platformLocation.historyGo?.(Ee)}static \u0275fac=function(V){return new(V||re)(i.KVO(O),i.KVO(Pe,8))};static \u0275prov=i.jDH({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Ce=(()=>{class re{_subject=new d.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(Ee){this._locationStrategy=Ee;const V=this._locationStrategy.getBaseHref();this._basePath=function G(re){if(new RegExp("^(https?:)?//").test(re)){const[,Ee]=re.split(/\/\/[^\/]+/);return Ee}return re}(C(W(V))),this._locationStrategy.onPopState(ce=>{this._subject.next({url:this.path(!0),pop:!0,state:ce.state,type:ce.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Ee=!1){return this.normalize(this._locationStrategy.path(Ee))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Ee,V=""){return this.path()==this.normalize(Ee+B(V))}normalize(Ee){return re.stripTrailingSlash(function j(re,xe){if(!re||!xe.startsWith(re))return xe;const Ee=xe.substring(re.length);return""===Ee||["/",";","?","#"].includes(Ee[0])?Ee:xe}(this._basePath,W(Ee)))}prepareExternalUrl(Ee){return Ee&&"/"!==Ee[0]&&(Ee="/"+Ee),this._locationStrategy.prepareExternalUrl(Ee)}go(Ee,V="",ce=null){this._locationStrategy.pushState(ce,"",Ee,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ee+B(V)),ce)}replaceState(Ee,V="",ce=null){this._locationStrategy.replaceState(ce,"",Ee,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ee+B(V)),ce)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Ee=0){this._locationStrategy.historyGo?.(Ee)}onUrlChange(Ee){return this._urlChangeListeners.push(Ee),this._urlChangeSubscription??=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)}),()=>{const V=this._urlChangeListeners.indexOf(Ee);this._urlChangeListeners.splice(V,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Ee="",V){this._urlChangeListeners.forEach(ce=>ce(Ee,V))}subscribe(Ee,V,ce){return this._subject.subscribe({next:Ee,error:V??void 0,complete:ce??void 0})}static normalizeQueryParams=B;static joinWithSlash=L;static stripTrailingSlash=C;static \u0275fac=function(V){return new(V||re)(i.KVO(A))};static \u0275prov=i.jDH({token:re,factory:()=>function Ae(){return new Ce((0,i.KVO)(A))}(),providedIn:"root"})}return re})();function W(re){return re.replace(/\/index.html$/,"")}},9330(Zt,pe,l){"use strict";l.d(pe,{$R:()=>Yi,Nl:()=>De,Qq:()=>Qe,Sx:()=>we,ZZ:()=>fi,a7:()=>pt,q1:()=>Qi});var O=l(467),f=l(2615),u=l(3664),L=l(274),C=l(5964),B=l(980),A=l(6354),Pe=l(5558),le=l(1985),Ae=(l(2806),l(7673)),j=l(2512);class W{}class G{}class re{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(an){an?"string"==typeof an?this.lazyInit=()=>{this.headers=new Map,an.split("\n").forEach(Yt=>{const Un=Yt.indexOf(":");if(Un>0){const zn=Yt.slice(0,Un),Fn=Yt.slice(Un+1).trim();this.addHeaderEntry(zn,Fn)}})}:typeof Headers<"u"&&an instanceof Headers?(this.headers=new Map,an.forEach((Yt,Un)=>{this.addHeaderEntry(Un,Yt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(an).forEach(([Yt,Un])=>{this.setHeaderEntries(Yt,Un)})}:this.headers=new Map}has(an){return this.init(),this.headers.has(an.toLowerCase())}get(an){this.init();const Yt=this.headers.get(an.toLowerCase());return Yt&&Yt.length>0?Yt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(an){return this.init(),this.headers.get(an.toLowerCase())||null}append(an,Yt){return this.clone({name:an,value:Yt,op:"a"})}set(an,Yt){return this.clone({name:an,value:Yt,op:"s"})}delete(an,Yt){return this.clone({name:an,value:Yt,op:"d"})}maybeSetNormalizedName(an,Yt){this.normalizedNames.has(Yt)||this.normalizedNames.set(Yt,an)}init(){this.lazyInit&&(this.lazyInit instanceof re?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(an=>this.applyUpdate(an)),this.lazyUpdate=null))}copyFrom(an){an.init(),Array.from(an.headers.keys()).forEach(Yt=>{this.headers.set(Yt,an.headers.get(Yt)),this.normalizedNames.set(Yt,an.normalizedNames.get(Yt))})}clone(an){const Yt=new re;return Yt.lazyInit=this.lazyInit&&this.lazyInit instanceof re?this.lazyInit:this,Yt.lazyUpdate=(this.lazyUpdate||[]).concat([an]),Yt}applyUpdate(an){const Yt=an.name.toLowerCase();switch(an.op){case"a":case"s":let Un=an.value;if("string"==typeof Un&&(Un=[Un]),0===Un.length)return;this.maybeSetNormalizedName(an.name,Yt);const zn=("a"===an.op?this.headers.get(Yt):void 0)||[];zn.push(...Un),this.headers.set(Yt,zn);break;case"d":const Fn=an.value;if(Fn){let ci=this.headers.get(Yt);if(!ci)return;ci=ci.filter(rn=>-1===Fn.indexOf(rn)),0===ci.length?(this.headers.delete(Yt),this.normalizedNames.delete(Yt)):this.headers.set(Yt,ci)}else this.headers.delete(Yt),this.normalizedNames.delete(Yt)}}addHeaderEntry(an,Yt){const Un=an.toLowerCase();this.maybeSetNormalizedName(an,Un),this.headers.has(Un)?this.headers.get(Un).push(Yt):this.headers.set(Un,[Yt])}setHeaderEntries(an,Yt){const Un=(Array.isArray(Yt)?Yt:[Yt]).map(Fn=>Fn.toString()),zn=an.toLowerCase();this.headers.set(zn,Un),this.maybeSetNormalizedName(an,zn)}forEach(an){this.init(),Array.from(this.normalizedNames.keys()).forEach(Yt=>an(this.normalizedNames.get(Yt),this.headers.get(Yt)))}}class Ee{encodeKey(an){return ne(an)}encodeValue(an){return ne(an)}decodeKey(an){return decodeURIComponent(an)}decodeValue(an){return decodeURIComponent(an)}}const ce=/%(\d[a-f0-9])/gi,be={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ne(It){return encodeURIComponent(It).replace(ce,(an,Yt)=>be[Yt]??an)}function J(It){return`${It}`}class De{map;encoder;updates=null;cloneFrom=null;constructor(an={}){if(this.encoder=an.encoder||new Ee,an.fromString){if(an.fromObject)throw new f.buA(2805,!1);this.map=function V(It,an){const Yt=new Map;return It.length>0&&It.replace(/^\?/,"").split("&").forEach(zn=>{const Fn=zn.indexOf("="),[ci,rn]=-1==Fn?[an.decodeKey(zn),""]:[an.decodeKey(zn.slice(0,Fn)),an.decodeValue(zn.slice(Fn+1))],In=Yt.get(ci)||[];In.push(rn),Yt.set(ci,In)}),Yt}(an.fromString,this.encoder)}else an.fromObject?(this.map=new Map,Object.keys(an.fromObject).forEach(Yt=>{const Un=an.fromObject[Yt],zn=Array.isArray(Un)?Un.map(J):[J(Un)];this.map.set(Yt,zn)})):this.map=null}has(an){return this.init(),this.map.has(an)}get(an){this.init();const Yt=this.map.get(an);return Yt?Yt[0]:null}getAll(an){return this.init(),this.map.get(an)||null}keys(){return this.init(),Array.from(this.map.keys())}append(an,Yt){return this.clone({param:an,value:Yt,op:"a"})}appendAll(an){const Yt=[];return Object.keys(an).forEach(Un=>{const zn=an[Un];Array.isArray(zn)?zn.forEach(Fn=>{Yt.push({param:Un,value:Fn,op:"a"})}):Yt.push({param:Un,value:zn,op:"a"})}),this.clone(Yt)}set(an,Yt){return this.clone({param:an,value:Yt,op:"s"})}delete(an,Yt){return this.clone({param:an,value:Yt,op:"d"})}toString(){return this.init(),this.keys().map(an=>{const Yt=this.encoder.encodeKey(an);return this.map.get(an).map(Un=>Yt+"="+this.encoder.encodeValue(Un)).join("&")}).filter(an=>""!==an).join("&")}clone(an){const Yt=new De({encoder:this.encoder});return Yt.cloneFrom=this.cloneFrom||this,Yt.updates=(this.updates||[]).concat(an),Yt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(an=>this.map.set(an,this.cloneFrom.map.get(an))),this.updates.forEach(an=>{switch(an.op){case"a":case"s":const Yt=("a"===an.op?this.map.get(an.param):void 0)||[];Yt.push(J(an.value)),this.map.set(an.param,Yt);break;case"d":if(void 0===an.value){this.map.delete(an.param);break}{let Un=this.map.get(an.param)||[];const zn=Un.indexOf(J(an.value));-1!==zn&&Un.splice(zn,1),Un.length>0?this.map.set(an.param,Un):this.map.delete(an.param)}}}),this.cloneFrom=this.updates=null)}}class Xe{map=new Map;set(an,Yt){return this.map.set(an,Yt),this}get(an){return this.map.has(an)||this.map.set(an,an.defaultValue()),this.map.get(an)}delete(an){return this.map.delete(an),this}has(an){return this.map.has(an)}keys(){return this.map.keys()}}function he(It){return typeof ArrayBuffer<"u"&&It instanceof ArrayBuffer}function Dt(It){return typeof Blob<"u"&&It instanceof Blob}function lt(It){return typeof FormData<"u"&&It instanceof FormData}const te="Content-Type",ie="Accept",P="X-Request-URL",F="text/plain",ve="application/json",H=`${ve}, ${F}, */*`;class ${url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(an,Yt,Un,zn){let Fn;if(this.url=Yt,this.method=an.toUpperCase(),function _e(It){switch(It){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||zn?(this.body=void 0!==Un?Un:null,Fn=zn):Fn=Un,Fn){if(this.reportProgress=!!Fn.reportProgress,this.withCredentials=!!Fn.withCredentials,this.keepalive=!!Fn.keepalive,Fn.responseType&&(this.responseType=Fn.responseType),Fn.headers&&(this.headers=Fn.headers),Fn.context&&(this.context=Fn.context),Fn.params&&(this.params=Fn.params),Fn.priority&&(this.priority=Fn.priority),Fn.cache&&(this.cache=Fn.cache),Fn.credentials&&(this.credentials=Fn.credentials),"number"==typeof Fn.timeout){if(Fn.timeout<1||!Number.isInteger(Fn.timeout))throw new f.buA(2822,"");this.timeout=Fn.timeout}Fn.mode&&(this.mode=Fn.mode),Fn.redirect&&(this.redirect=Fn.redirect),Fn.integrity&&(this.integrity=Fn.integrity),void 0!==Fn.referrer&&(this.referrer=Fn.referrer),this.transferCache=Fn.transferCache}if(this.headers??=new re,this.context??=new Xe,this.params){const ci=this.params.toString();if(0===ci.length)this.urlWithParams=Yt;else{const rn=Yt.indexOf("?");this.urlWithParams=Yt+(-1===rn?"?":rnRn.set(Hn,an.setHeaders[Hn]),En)),an.setParams&&(Wn=Object.keys(an.setParams).reduce((Rn,Hn)=>Rn.set(Hn,an.setParams[Hn]),Wn)),new $(Yt,Un,fa,{params:Wn,headers:En,context:ri,reportProgress:qt,responseType:zn,withCredentials:ha,transferCache:ia,keepalive:Fn,cache:rn,priority:ci,timeout:ra,mode:In,redirect:Mn,credentials:Vn,referrer:ii,integrity:Bn})}}var Ke=function(It){return It[It.Sent=0]="Sent",It[It.UploadProgress=1]="UploadProgress",It[It.ResponseHeader=2]="ResponseHeader",It[It.DownloadProgress=3]="DownloadProgress",It[It.Response=4]="Response",It[It.User=5]="User",It}(Ke||{});class Vt{headers;status;statusText;url;ok;type;redirected;constructor(an,Yt=200,Un="OK"){this.headers=an.headers||new re,this.status=void 0!==an.status?an.status:Yt,this.statusText=an.statusText||Un,this.url=an.url||null,this.redirected=an.redirected,this.ok=this.status>=200&&this.status<300}}class St extends Vt{constructor(an={}){super(an)}type=Ke.ResponseHeader;clone(an={}){return new St({headers:an.headers||this.headers,status:void 0!==an.status?an.status:this.status,statusText:an.statusText||this.statusText,url:an.url||this.url||void 0})}}class ot extends Vt{body;constructor(an={}){super(an),this.body=void 0!==an.body?an.body:null}type=Ke.Response;clone(an={}){return new ot({body:void 0!==an.body?an.body:this.body,headers:an.headers||this.headers,status:void 0!==an.status?an.status:this.status,statusText:an.statusText||this.statusText,url:an.url||this.url||void 0,redirected:an.redirected??this.redirected})}}class nt extends Vt{name="HttpErrorResponse";message;error;ok=!1;constructor(an){super(an,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${an.url||"(unknown url)"}`:`Http failure response for ${an.url||"(unknown url)"}: ${an.status} ${an.statusText}`,this.error=an.error||null}}function fe(It,an){return{body:an,headers:It.headers,context:It.context,observe:It.observe,params:It.params,reportProgress:It.reportProgress,responseType:It.responseType,withCredentials:It.withCredentials,credentials:It.credentials,transferCache:It.transferCache,timeout:It.timeout,keepalive:It.keepalive,priority:It.priority,cache:It.cache,mode:It.mode,redirect:It.redirect,integrity:It.integrity,referrer:It.referrer}}let Qe=(()=>{class It{handler;constructor(Yt){this.handler=Yt}request(Yt,Un,zn={}){let Fn;if(Yt instanceof $)Fn=Yt;else{let In,Mn;In=zn.headers instanceof re?zn.headers:new re(zn.headers),zn.params&&(Mn=zn.params instanceof De?zn.params:new De({fromObject:zn.params})),Fn=new $(Yt,Un,void 0!==zn.body?zn.body:null,{headers:In,context:zn.context,params:Mn,reportProgress:zn.reportProgress,responseType:zn.responseType||"json",withCredentials:zn.withCredentials,transferCache:zn.transferCache,keepalive:zn.keepalive,priority:zn.priority,cache:zn.cache,mode:zn.mode,redirect:zn.redirect,credentials:zn.credentials,referrer:zn.referrer,integrity:zn.integrity,timeout:zn.timeout})}const ci=(0,Ae.of)(Fn).pipe((0,L.H)(In=>this.handler.handle(In)));if(Yt instanceof $||"events"===zn.observe)return ci;const rn=ci.pipe((0,C.p)(In=>In instanceof ot));switch(zn.observe||"body"){case"body":switch(Fn.responseType){case"arraybuffer":return rn.pipe((0,A.T)(In=>{if(null!==In.body&&!(In.body instanceof ArrayBuffer))throw new f.buA(2806,!1);return In.body}));case"blob":return rn.pipe((0,A.T)(In=>{if(null!==In.body&&!(In.body instanceof Blob))throw new f.buA(2807,!1);return In.body}));case"text":return rn.pipe((0,A.T)(In=>{if(null!==In.body&&"string"!=typeof In.body)throw new f.buA(2808,!1);return In.body}));default:return rn.pipe((0,A.T)(In=>In.body))}case"response":return rn;default:throw new f.buA(2809,!1)}}delete(Yt,Un={}){return this.request("DELETE",Yt,Un)}get(Yt,Un={}){return this.request("GET",Yt,Un)}head(Yt,Un={}){return this.request("HEAD",Yt,Un)}jsonp(Yt,Un){return this.request("JSONP",Yt,{params:(new De).append(Un,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Yt,Un={}){return this.request("OPTIONS",Yt,Un)}patch(Yt,Un,zn={}){return this.request("PATCH",Yt,fe(zn,Un))}post(Yt,Un,zn={}){return this.request("POST",Yt,fe(zn,Un))}put(Yt,Un,zn={}){return this.request("PUT",Yt,fe(zn,Un))}static \u0275fac=function(Un){return new(Un||It)(f.KVO(W))};static \u0275prov=f.jDH({token:It,factory:It.\u0275fac})}return It})();const gt=/^\)\]\}',?\n/;function Gt(It){if(It.url)return It.url;const an=P.toLocaleLowerCase();return It.headers.get(an)}const rt=new f.nKC("");let cn=(()=>{class It{fetchImpl=(0,f.WQX)(Ft,{optional:!0})?.fetch??((...Yt)=>globalThis.fetch(...Yt));ngZone=(0,f.WQX)(u.SKi);destroyRef=(0,f.WQX)(f.abz);handle(Yt){return new le.c(Un=>{const zn=new AbortController;let Fn;return this.doRequest(Yt,zn.signal,Un).then(Sn,ci=>Un.error(new nt({error:ci}))),Yt.timeout&&(Fn=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{zn.signal.aborted||zn.abort(new DOMException("signal timed out","TimeoutError"))},Yt.timeout))),()=>{void 0!==Fn&&clearTimeout(Fn),zn.abort()}})}doRequest(Yt,Un,zn){var Fn=this;return(0,O.A)(function*(){const ci=Fn.createRequestInit(Yt);let rn;try{const fa=Fn.ngZone.runOutsideAngular(()=>Fn.fetchImpl(Yt.urlWithParams,{signal:Un,...ci}));(function h(It){It.then(Sn,Sn)})(fa),zn.next({type:Ke.Sent}),rn=yield fa}catch(fa){return void zn.error(new nt({error:fa,status:fa.status??0,statusText:fa.statusText,url:Yt.urlWithParams,headers:fa.headers}))}const In=new re(rn.headers),Mn=rn.statusText,Vn=Gt(rn)??Yt.urlWithParams;let ii=rn.status,Bn=null;if(Yt.reportProgress&&zn.next(new St({headers:In,status:ii,statusText:Mn,url:Vn})),rn.body){const fa=rn.headers.get("content-length"),ha=[],qt=rn.body.getReader();let Wn,ri,En=0;const Rn=typeof Zone<"u"&&Zone.current;let Hn=!1;if(yield Fn.ngZone.runOutsideAngular((0,O.A)(function*(){for(;;){if(Fn.destroyRef.destroyed){yield qt.cancel(),Hn=!0;break}const{done:da,value:Ta}=yield qt.read();if(da)break;if(ha.push(Ta),En+=Ta.length,Yt.reportProgress){ri="text"===Yt.responseType?(ri??"")+(Wn??=new TextDecoder).decode(Ta,{stream:!0}):void 0;const en=()=>zn.next({type:Ke.DownloadProgress,total:fa?+fa:void 0,loaded:En,partialText:ri});Rn?Rn.run(en):en()}}})),Hn)return void zn.complete();const Pi=Fn.concatChunks(ha,En);try{const da=rn.headers.get(te)??"";Bn=Fn.parseBody(Yt,Pi,da,ii)}catch(da){return void zn.error(new nt({error:da,headers:new re(rn.headers),status:rn.status,statusText:rn.statusText,url:Gt(rn)??Yt.urlWithParams}))}}0===ii&&(ii=Bn?200:0);const ra=rn.redirected;ii>=200&&ii<300?(zn.next(new ot({body:Bn,headers:In,status:ii,statusText:Mn,url:Vn,redirected:ra})),zn.complete()):zn.error(new nt({error:Bn,headers:In,status:ii,statusText:Mn,url:Vn,redirected:ra}))})()}parseBody(Yt,Un,zn,Fn){switch(Yt.responseType){case"json":const ci=(new TextDecoder).decode(Un).replace(gt,"");if(""===ci)return null;try{return JSON.parse(ci)}catch(rn){if(Fn<200||Fn>=300)return ci;throw rn}case"text":return(new TextDecoder).decode(Un);case"blob":return new Blob([Un],{type:zn});case"arraybuffer":return Un.buffer}}createRequestInit(Yt){const Un={};let zn;if(zn=Yt.credentials,Yt.withCredentials&&(zn="include"),Yt.headers.forEach((Fn,ci)=>Un[Fn]=ci.join(",")),Yt.headers.has(ie)||(Un[ie]=H),!Yt.headers.has(te)){const Fn=Yt.detectContentTypeHeader();null!==Fn&&(Un[te]=Fn)}return{body:Yt.serializeBody(),method:Yt.method,headers:Un,credentials:zn,keepalive:Yt.keepalive,cache:Yt.cache,priority:Yt.priority,mode:Yt.mode,redirect:Yt.redirect,referrer:Yt.referrer,integrity:Yt.integrity}}concatChunks(Yt,Un){const zn=new Uint8Array(Un);let Fn=0;for(const ci of Yt)zn.set(ci,Fn),Fn+=ci.length;return zn}static \u0275fac=function(Un){return new(Un||It)};static \u0275prov=f.jDH({token:It,factory:It.\u0275fac})}return It})();class Ft{}function Sn(){}function jt(It,an){return an(It)}function Ue(It,an){return(Yt,Un)=>an.intercept(Yt,{handle:zn=>It(zn,Un)})}const pt=new f.nKC(""),Pt=new f.nKC(""),gn=new f.nKC(""),ei=new f.nKC("",{providedIn:"root",factory:()=>!0});function vi(){let It=null;return(an,Yt)=>{null===It&&(It=((0,f.WQX)(pt,{optional:!0})??[]).reduceRight(Ue,jt));const Un=(0,f.WQX)(f.u5s);if((0,f.WQX)(ei)){const Fn=Un.add();return It(an,Yt).pipe((0,B.j)(Fn))}return It(an,Yt)}}let kn=(()=>{class It extends W{backend;injector;chain=null;pendingTasks=(0,f.WQX)(f.u5s);contributeToStability=(0,f.WQX)(ei);constructor(Yt,Un){super(),this.backend=Yt,this.injector=Un}handle(Yt){if(null===this.chain){const Un=Array.from(new Set([...this.injector.get(Pt),...this.injector.get(gn,[])]));this.chain=Un.reduceRight((zn,Fn)=>function wt(It,an,Yt){return(Un,zn)=>(0,f.N4e)(Yt,()=>an(Un,Fn=>It(Fn,zn)))}(zn,Fn,this.injector),jt)}if(this.contributeToStability){const Un=this.pendingTasks.add();return this.chain(Yt,zn=>this.backend.handle(zn)).pipe((0,B.j)(Un))}return this.chain(Yt,Un=>this.backend.handle(Un))}static \u0275fac=function(Un){return new(Un||It)(f.KVO(G),f.KVO(f.uvJ))};static \u0275prov=f.jDH({token:It,factory:It.\u0275fac})}return It})();const pn=/^\)\]\}',?\n/,Je=RegExp(`^${P}:`,"m");let Ge=(()=>{class It{xhrFactory;constructor(Yt){this.xhrFactory=Yt}handle(Yt){if("JSONP"===Yt.method)throw new f.buA(-2800,!1);const Un=this.xhrFactory;return(0,Ae.of)(null).pipe((0,Pe.n)(()=>new le.c(Fn=>{const ci=Un.build();if(ci.open(Yt.method,Yt.urlWithParams),Yt.withCredentials&&(ci.withCredentials=!0),Yt.headers.forEach((ha,qt)=>ci.setRequestHeader(ha,qt.join(","))),Yt.headers.has(ie)||ci.setRequestHeader(ie,H),!Yt.headers.has(te)){const ha=Yt.detectContentTypeHeader();null!==ha&&ci.setRequestHeader(te,ha)}if(Yt.timeout&&(ci.timeout=Yt.timeout),Yt.responseType){const ha=Yt.responseType.toLowerCase();ci.responseType="json"!==ha?ha:"text"}const rn=Yt.serializeBody();let In=null;const Mn=()=>{if(null!==In)return In;const ha=ci.statusText||"OK",qt=new re(ci.getAllResponseHeaders()),En=function Be(It){return"responseURL"in It&&It.responseURL?It.responseURL:Je.test(It.getAllResponseHeaders())?It.getResponseHeader(P):null}(ci)||Yt.url;return In=new St({headers:qt,status:ci.status,statusText:ha,url:En}),In},Vn=()=>{let{headers:ha,status:qt,statusText:En,url:Wn}=Mn(),ri=null;204!==qt&&(ri=typeof ci.response>"u"?ci.responseText:ci.response),0===qt&&(qt=ri?200:0);let Rn=qt>=200&&qt<300;if("json"===Yt.responseType&&"string"==typeof ri){const Hn=ri;ri=ri.replace(pn,"");try{ri=""!==ri?JSON.parse(ri):null}catch(Pi){ri=Hn,Rn&&(Rn=!1,ri={error:Pi,text:ri})}}Rn?(Fn.next(new ot({body:ri,headers:ha,status:qt,statusText:En,url:Wn||void 0})),Fn.complete()):Fn.error(new nt({error:ri,headers:ha,status:qt,statusText:En,url:Wn||void 0}))},ii=ha=>{const{url:qt}=Mn(),En=new nt({error:ha,status:ci.status||0,statusText:ci.statusText||"Unknown Error",url:qt||void 0});Fn.error(En)};let Bn=ii;Yt.timeout&&(Bn=ha=>{const{url:qt}=Mn(),En=new nt({error:new DOMException("Request timed out","TimeoutError"),status:ci.status||0,statusText:ci.statusText||"Request timeout",url:qt||void 0});Fn.error(En)});let ia=!1;const ra=ha=>{ia||(Fn.next(Mn()),ia=!0);let qt={type:Ke.DownloadProgress,loaded:ha.loaded};ha.lengthComputable&&(qt.total=ha.total),"text"===Yt.responseType&&ci.responseText&&(qt.partialText=ci.responseText),Fn.next(qt)},fa=ha=>{let qt={type:Ke.UploadProgress,loaded:ha.loaded};ha.lengthComputable&&(qt.total=ha.total),Fn.next(qt)};return ci.addEventListener("load",Vn),ci.addEventListener("error",ii),ci.addEventListener("timeout",Bn),ci.addEventListener("abort",ii),Yt.reportProgress&&(ci.addEventListener("progress",ra),null!==rn&&ci.upload&&ci.upload.addEventListener("progress",fa)),ci.send(rn),Fn.next({type:Ke.Sent}),()=>{ci.removeEventListener("error",ii),ci.removeEventListener("abort",ii),ci.removeEventListener("load",Vn),ci.removeEventListener("timeout",Bn),Yt.reportProgress&&(ci.removeEventListener("progress",ra),null!==rn&&ci.upload&&ci.upload.removeEventListener("progress",fa)),ci.readyState!==ci.DONE&&ci.abort()}})))}static \u0275fac=function(Un){return new(Un||It)(f.KVO(j.N))};static \u0275prov=f.jDH({token:It,factory:It.\u0275fac})}return It})();const Ot=new f.nKC(""),We=new f.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),tn=new f.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class on{}let un=(()=>{class It{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(Yt,Un){this.doc=Yt,this.cookieName=Un}getToken(){const Yt=this.doc.cookie||"";return Yt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,j.b)(Yt,this.cookieName),this.lastCookieString=Yt),this.lastToken}static \u0275fac=function(Un){return new(Un||It)(f.KVO(f.qQL),f.KVO(We))};static \u0275prov=f.jDH({token:It,factory:It.\u0275fac})}return It})();const Nt=/^(?:https?:)?\/\//i;function dn(It,an){if(!(0,f.WQX)(Ot)||"GET"===It.method||"HEAD"===It.method||Nt.test(It.url))return an(It);const Yt=(0,f.WQX)(on).getToken(),Un=(0,f.WQX)(tn);return null!=Yt&&!It.headers.has(Un)&&(It=It.clone({headers:It.headers.set(Un,Yt)})),an(It)}var Jn=function(It){return It[It.Interceptors=0]="Interceptors",It[It.LegacyInterceptors=1]="LegacyInterceptors",It[It.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",It[It.NoXsrfProtection=3]="NoXsrfProtection",It[It.JsonpSupport=4]="JsonpSupport",It[It.RequestsMadeViaParent=5]="RequestsMadeViaParent",It[It.Fetch=6]="Fetch",It}(Jn||{});function xi(It,an){return{\u0275kind:It,\u0275providers:an}}function Yi(...It){const an=[Qe,Ge,kn,{provide:W,useExisting:kn},{provide:G,useFactory:()=>(0,f.WQX)(rt,{optional:!0})??(0,f.WQX)(Ge)},{provide:Pt,useValue:dn,multi:!0},{provide:Ot,useValue:!0},{provide:on,useClass:un}];for(const Yt of It)an.push(...Yt.\u0275providers);return(0,f.EmA)(an)}const At=new f.nKC("");function we(){return xi(Jn.LegacyInterceptors,[{provide:At,useFactory:vi},{provide:Pt,useExisting:At,multi:!0}])}function fi(){return xi(Jn.Fetch,[cn,{provide:rt,useExisting:cn},{provide:G,useExisting:cn}])}let Qi=(()=>{class It{static \u0275fac=function(Un){return new(Un||It)};static \u0275mod=u.$C({type:It});static \u0275inj=f.G2t({providers:[Yi(we())]})}return It})()},2512(Zt,pe,l){"use strict";function i(v,T){T=encodeURIComponent(T);for(const w of v.split(";")){const e=w.indexOf("="),[O,f]=-1==e?[w,""]:[w.slice(0,e),w.slice(e+1)];if(O.trim()===T)return decodeURIComponent(f)}return null}l.d(pe,{N:()=>d,b:()=>i});class d{}},7705(Zt,pe,l){"use strict";l.d(pe,{ES_:()=>Ze,HJs:()=>Io,Hbi:()=>mi,L39:()=>ai,MKu:()=>Mo,Udg:()=>Gi,_q3:()=>Ss,a0P:()=>Rl,cCO:()=>Xt,ebz:()=>As,fpN:()=>nr,gRc:()=>Oi,geq:()=>Er,hFB:()=>$a,naY:()=>Ne,oH4:()=>Xs,sbv:()=>zo,uEv:()=>Gl});var Ve=l(2615),Et=l(8440),Jt=l(3664),ti=l(9295);const di=Symbol("InputSignalNode#UNSET"),Ii={...Et.s0,transformFn:void 0,applyValueToInputSignal(yt,je){(0,Et.j2)(yt,je)}};function nn(yt,je){const ct=Object.create(Ii);function Qt(){if((0,Et.mK)(ct),ct.value===di)throw new Ve.buA(-950,null);return ct.value}return ct.value=yt,ct.transformFn=je?.transform,Qt[Et.bh]=ct,Qt}class Ze{attributeName;constructor(je){this.attributeName=je}__NG_ELEMENT_ID__=()=>(0,Jt.kS0)(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}const Xt=new Ve.nKC("");function _a(yt,je){return nn(yt,je)}Xt.__NG_ELEMENT_ID__=yt=>{const je=(0,Ve.Mx4)();if(null===je)throw new Ve.buA(204,!1);if(2&je.type)return je.value;if(8&yt)return null;throw new Ve.buA(204,!1)};const $a=(_a.required=function Ua(yt){return nn(di,yt)},_a);function ns(yt,je){return(0,Jt.mU9)(je)}const As=(ns.required=function Ga(yt,je){return(0,Jt.hnC)(je)},ns);function mr(yt,je){return(0,Jt.mU9)(je)}const zo=(mr.required=function fr(yt,je){return(0,Jt.hnC)(je)},mr);function gr(yt,je){const ct=Object.create(Ii),Qt=new ti.Zf;function Pn(){return(0,Et.mK)(ct),bo(ct.value),ct.value}return ct.value=yt,Pn[Et.bh]=ct,Pn.asReadonly=Ve.HO5.bind(Pn),Pn.set=$n=>{ct.equal(ct.value,$n)||((0,Et.j2)(ct,$n),Qt.emit($n))},Pn.update=$n=>{bo(ct.value),Pn.set($n(ct.value))},Pn.subscribe=Qt.subscribe.bind(Qt),Pn.destroyRef=Qt.destroyRef,Pn}function bo(yt){if(yt===di)throw new Ve.buA(952,!1)}function Zs(yt,je){return gr(yt)}const Er=(Zs.required=function jr(yt){return gr(di)},Zs),is=new Ve.nKC(""),Hs=new Ve.nKC("");function Ws(yt){return!yt.moduleRef}let Ui;function xs(){Ui=vr}function vr(yt,je){const ct=yt.injector.get(Jt.o8S);if(yt._bootstrapComponents.length>0)yt._bootstrapComponents.forEach(Qt=>ct.bootstrap(Qt));else{if(!yt.instance.ngDoBootstrap)throw new Ve.buA(-403,!1);yt.instance.ngDoBootstrap(ct)}je.push(yt)}let Pa=(()=>{class yt{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(ct){this._injector=ct}bootstrapModuleFactory(ct,Qt){const Pn=Qt?.scheduleInRootZone,Ci=Qt?.ignoreChangesOutsideZone,wi=[(0,Jt.SdI)({ngZoneFactory:()=>(0,Jt.G5x)(Qt?.ngZone,{...(0,Jt.cZr)({eventCoalescing:Qt?.ngZoneEventCoalescing,runCoalescing:Qt?.ngZoneRunCoalescing}),scheduleInRootZone:Pn}),ignoreChangesOutsideZone:Ci}),{provide:Ve.hk6,useExisting:Jt.Ts$},Ve.gv8],$i=(0,Jt.VzW)(ct.moduleType,this.injector,wi);return xs(),function Mr(yt){const je=Ws(yt)?yt.r3Injector:yt.moduleRef.injector,ct=je.get(Jt.SKi);return ct.run(()=>{Ws(yt)?yt.r3Injector.resolveInjectorInitializers():yt.moduleRef.resolveInjectorInitializers();const Qt=je.get(Ve.ZTf);let Pn;if(ct.runOutsideAngular(()=>{Pn=ct.onError.subscribe({next:Qt})}),Ws(yt)){const $n=()=>je.destroy(),Ci=yt.platformInjector.get(is);Ci.add($n),je.onDestroy(()=>{Pn.unsubscribe(),Ci.delete($n)})}else{const $n=()=>yt.moduleRef.destroy(),Ci=yt.platformInjector.get(is);Ci.add($n),yt.moduleRef.onDestroy(()=>{(0,Jt.TFI)(yt.allPlatformModules,yt.moduleRef),Pn.unsubscribe(),Ci.delete($n)})}return function qs(yt,je,ct){try{const Qt=ct();return(0,Jt.yLl)(Qt)?Qt.catch(Pn=>{throw je.runOutsideAngular(()=>yt(Pn)),Pn}):Qt}catch(Qt){throw je.runOutsideAngular(()=>yt(Qt)),Qt}}(Qt,ct,()=>{const $n=je.get(Ve.rev),Ci=$n.add(),wi=je.get(Jt.H1s);return wi.runInitializers(),wi.donePromise.then(()=>{const $i=je.get(Jt.xe9,Jt.DkB);if((0,Jt.e6s)($i||Jt.DkB),!je.get(Hs,!0))return Ws(yt)?je.get(Jt.o8S):(yt.allPlatformModules.push(yt.moduleRef),yt.moduleRef);if(Ws(yt)){const va=je.get(Jt.o8S);return void 0!==yt.rootComponent&&va.bootstrap(yt.rootComponent),va}return Ui?.(yt.moduleRef,yt.allPlatformModules),yt.moduleRef}).finally(()=>{$n.remove(Ci)})})})}({moduleRef:$i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(ct,Qt=[]){const Pn=(0,Jt.lJT)({},Qt);return xs(),function qo(yt,je,ct){const Qt=new Jt.Co$(ct);return Promise.resolve(Qt)}(0,0,ct).then($n=>this.bootstrapModuleFactory($n,Pn))}onDestroy(ct){this._destroyListeners.push(ct)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Ve.buA(404,!1);this._modules.slice().forEach(Qt=>Qt.destroy()),this._destroyListeners.forEach(Qt=>Qt());const ct=this._injector.get(is,null);ct&&(ct.forEach(Qt=>Qt()),ct.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(Qt){return new(Qt||yt)((0,Ve.KVO)(Ve.zZn))};static \u0275prov=(0,Ve.jDH)({token:yt,factory:yt.\u0275fac,providedIn:"platform"})}return yt})(),yr=null;function Xs(yt,je,ct=[]){const Qt=`Platform: ${je}`,Pn=new Ve.nKC(Qt);return($n=[])=>{let Ci=Za();if(!Ci){const wi=[...ct,...$n,{provide:Pn,useValue:!0}];Ci=yt?.(wi)??function er(yt){if(Za())throw new Ve.buA(400,!1);(0,Jt.pl0)(),(0,Jt.ypd)(),yr=yt;const je=yt.get(Pa);return function Hr(yt){const je=yt.get(Jt.PLl,null);(0,Ve.N4e)(yt,()=>{je?.forEach(ct=>ct())})}(yt),je}(function wa(yt=[],je){return Ve.zZn.create({name:je,providers:[{provide:Ve.GBX,useValue:"platform"},{provide:is,useValue:new Set([()=>yr=null])},...yt]})}(wi,Qt))}return function ja(){const je=Za();if(!je)throw new Ve.buA(-401,!1);return je}()}}function Za(){return yr?.get(Pa)??null}function Ne(){return!1}let Oi=(()=>class yt{static __NG_ELEMENT_ID__=ua})();function ua(yt){return function Es(yt,je,ct){if((0,Ve.Qs1)(yt)&&!ct){const Qt=(0,Ve.KdJ)(yt.index,je);return new Jt.NCX(Qt,Qt)}return 175&yt.type?new Jt.NCX(je[Ve.b5C],je):null}((0,Ve.Mx4)(),(0,Ve.OAn)(),!(16&~yt))}class $e{constructor(){}supports(je){return(0,Jt.ozJ)(je)}create(je){return new Ln(je)}}const mn=(yt,je)=>je;class Ln{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(je){this._trackByFn=je||mn}forEachItem(je){let ct;for(ct=this._itHead;null!==ct;ct=ct._next)je(ct)}forEachOperation(je){let ct=this._itHead,Qt=this._removalsHead,Pn=0,$n=null;for(;ct||Qt;){const Ci=!Qt||ct&&ct.currentIndex{Ci=this._trackByFn(Pn,wi),null!==ct&&Object.is(ct.trackById,Ci)?(Qt&&(ct=this._verifyReinsertion(ct,wi,Ci,Pn)),Object.is(ct.item,wi)||this._addIdentityChange(ct,wi)):(ct=this._mismatch(ct,wi,Ci,Pn),Qt=!0),ct=ct._next,Pn++}),this.length=Pn;return this._truncate(ct),this.collection=je,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let je;for(je=this._previousItHead=this._itHead;null!==je;je=je._next)je._nextPrevious=je._next;for(je=this._additionsHead;null!==je;je=je._nextAdded)je.previousIndex=je.currentIndex;for(this._additionsHead=this._additionsTail=null,je=this._movesHead;null!==je;je=je._nextMoved)je.previousIndex=je.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(je,ct,Qt,Pn){let $n;return null===je?$n=this._itTail:($n=je._prev,this._remove(je)),null!==(je=null===this._unlinkedRecords?null:this._unlinkedRecords.get(Qt,null))?(Object.is(je.item,ct)||this._addIdentityChange(je,ct),this._reinsertAfter(je,$n,Pn)):null!==(je=null===this._linkedRecords?null:this._linkedRecords.get(Qt,Pn))?(Object.is(je.item,ct)||this._addIdentityChange(je,ct),this._moveAfter(je,$n,Pn)):je=this._addAfter(new Ei(ct,Qt),$n,Pn),je}_verifyReinsertion(je,ct,Qt,Pn){let $n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(Qt,null);return null!==$n?je=this._reinsertAfter($n,je._prev,Pn):je.currentIndex!=Pn&&(je.currentIndex=Pn,this._addToMoves(je,Pn)),je}_truncate(je){for(;null!==je;){const ct=je._next;this._addToRemovals(this._unlink(je)),je=ct}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(je,ct,Qt){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(je);const Pn=je._prevRemoved,$n=je._nextRemoved;return null===Pn?this._removalsHead=$n:Pn._nextRemoved=$n,null===$n?this._removalsTail=Pn:$n._prevRemoved=Pn,this._insertAfter(je,ct,Qt),this._addToMoves(je,Qt),je}_moveAfter(je,ct,Qt){return this._unlink(je),this._insertAfter(je,ct,Qt),this._addToMoves(je,Qt),je}_addAfter(je,ct,Qt){return this._insertAfter(je,ct,Qt),this._additionsTail=null===this._additionsTail?this._additionsHead=je:this._additionsTail._nextAdded=je,je}_insertAfter(je,ct,Qt){const Pn=null===ct?this._itHead:ct._next;return je._next=Pn,je._prev=ct,null===Pn?this._itTail=je:Pn._prev=je,null===ct?this._itHead=je:ct._next=je,null===this._linkedRecords&&(this._linkedRecords=new cs),this._linkedRecords.put(je),je.currentIndex=Qt,je}_remove(je){return this._addToRemovals(this._unlink(je))}_unlink(je){null!==this._linkedRecords&&this._linkedRecords.remove(je);const ct=je._prev,Qt=je._next;return null===ct?this._itHead=Qt:ct._next=Qt,null===Qt?this._itTail=ct:Qt._prev=ct,je}_addToMoves(je,ct){return je.previousIndex===ct||(this._movesTail=null===this._movesTail?this._movesHead=je:this._movesTail._nextMoved=je),je}_addToRemovals(je){return null===this._unlinkedRecords&&(this._unlinkedRecords=new cs),this._unlinkedRecords.put(je),je.currentIndex=null,je._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=je,je._prevRemoved=null):(je._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=je),je}_addIdentityChange(je,ct){return je.item=ct,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=je:this._identityChangesTail._nextIdentityChange=je,je}}class Ei{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(je,ct){this.item=je,this.trackById=ct}}class xa{_head=null;_tail=null;add(je){null===this._head?(this._head=this._tail=je,je._nextDup=null,je._prevDup=null):(this._tail._nextDup=je,je._prevDup=this._tail,je._nextDup=null,this._tail=je)}get(je,ct){let Qt;for(Qt=this._head;null!==Qt;Qt=Qt._nextDup)if((null===ct||ct<=Qt.currentIndex)&&Object.is(Qt.trackById,je))return Qt;return null}remove(je){const ct=je._prevDup,Qt=je._nextDup;return null===ct?this._head=Qt:ct._nextDup=Qt,null===Qt?this._tail=ct:Qt._prevDup=ct,null===this._head}}class cs{map=new Map;put(je){const ct=je.trackById;let Qt=this.map.get(ct);Qt||(Qt=new xa,this.map.set(ct,Qt)),Qt.add(je)}get(je,ct){const Pn=this.map.get(je);return Pn?Pn.get(je,ct):null}remove(je){const ct=je.trackById;return this.map.get(ct).remove(je)&&this.map.delete(ct),je}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qr(yt,je,ct){const Qt=yt.previousIndex;if(null===Qt)return Qt;let Pn=0;return ct&&Qt{if(ct&&ct.key===Pn)this._maybeAddToChanges(ct,Qt),this._appendAfter=ct,ct=ct._next;else{const $n=this._getOrCreateRecordForKey(Pn,Qt);ct=this._insertBeforeOrAppend(ct,$n)}}),ct){ct._prev&&(ct._prev._next=null),this._removalsHead=ct;for(let Qt=ct;null!==Qt;Qt=Qt._nextRemoved)Qt===this._mapHead&&(this._mapHead=null),this._records.delete(Qt.key),Qt._nextRemoved=Qt._next,Qt.previousValue=Qt.currentValue,Qt.currentValue=null,Qt._prev=null,Qt._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(je,ct){if(je){const Qt=je._prev;return ct._next=je,ct._prev=Qt,je._prev=ct,Qt&&(Qt._next=ct),je===this._mapHead&&(this._mapHead=ct),this._appendAfter=je,je}return this._appendAfter?(this._appendAfter._next=ct,ct._prev=this._appendAfter):this._mapHead=ct,this._appendAfter=ct,null}_getOrCreateRecordForKey(je,ct){if(this._records.has(je)){const Pn=this._records.get(je);this._maybeAddToChanges(Pn,ct);const $n=Pn._prev,Ci=Pn._next;return $n&&($n._next=Ci),Ci&&(Ci._prev=$n),Pn._next=null,Pn._prev=null,Pn}const Qt=new el(je);return this._records.set(je,Qt),Qt.currentValue=ct,this._addToAdditions(Qt),Qt}_reset(){if(this.isDirty){let je;for(this._previousMapHead=this._mapHead,je=this._previousMapHead;null!==je;je=je._next)je._nextPrevious=je._next;for(je=this._changesHead;null!==je;je=je._nextChanged)je.previousValue=je.currentValue;for(je=this._additionsHead;null!=je;je=je._nextAdded)je.previousValue=je.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(je,ct){Object.is(ct,je.currentValue)||(je.previousValue=je.currentValue,je.currentValue=ct,this._addToChanges(je))}_addToAdditions(je){null===this._additionsHead?this._additionsHead=this._additionsTail=je:(this._additionsTail._nextAdded=je,this._additionsTail=je)}_addToChanges(je){null===this._changesHead?this._changesHead=this._changesTail=je:(this._changesTail._nextChanged=je,this._changesTail=je)}_forEach(je,ct){je instanceof Map?je.forEach(ct):Object.keys(je).forEach(Qt=>ct(je[Qt],Qt))}}class el{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(je){this.key=je}}function Ml(){return new Ss([new $e])}let Ss=(()=>{class yt{factories;static \u0275prov=(0,Ve.jDH)({token:yt,providedIn:"root",factory:Ml});constructor(ct){this.factories=ct}static create(ct,Qt){if(null!=Qt){const Pn=Qt.factories.slice();ct=ct.concat(Pn)}return new yt(ct)}static extend(ct){return{provide:yt,useFactory:()=>{const Qt=(0,Ve.WQX)(yt,{optional:!0,skipSelf:!0});return yt.create(ct,Qt||Ml())}}}find(ct){const Qt=this.factories.find(Pn=>Pn.supports(ct));if(null!=Qt)return Qt;throw new Ve.buA(901,!1)}}return yt})();function Eo(){return new Mo([new xo])}let Mo=(()=>{class yt{static \u0275prov=(0,Ve.jDH)({token:yt,providedIn:"root",factory:Eo});factories;constructor(ct){this.factories=ct}static create(ct,Qt){if(Qt){const Pn=Qt.factories.slice();ct=ct.concat(Pn)}return new yt(ct)}static extend(ct){return{provide:yt,useFactory:()=>{const Qt=(0,Ve.WQX)(yt,{optional:!0,skipSelf:!0});return yt.create(ct,Qt||Eo())}}}find(ct){const Qt=this.factories.find(Pn=>Pn.supports(ct));if(Qt)return Qt;throw new Ve.buA(901,!1)}}return yt})();const nr=Xs(null,"core",[]);let mi=(()=>{class yt{constructor(ct){}static \u0275fac=function(Qt){return new(Qt||yt)((0,Ve.KVO)(Jt.o8S))};static \u0275mod=(0,Jt.$C)({type:yt});static \u0275inj=(0,Ve.G2t)({})}return yt})();function ai(yt){return"boolean"==typeof yt?yt:null!=yt&&"false"!==yt}function Gi(yt,je=NaN){return isNaN(parseFloat(yt))||isNaN(Number(yt))?je:Number(yt)}const vl=Symbol("NOT_SET"),al=new Set,Lo={...Et.s0,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:vl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase((0,Et.mK)(sa),sa.value),sa.signal[Et.bh]=sa,sa.registerCleanupFn=va=>(sa.cleanup??=new Set).add(va),this.nodes[wi]=sa,this.hooks[wi]=va=>sa.phaseFn(va)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(const je of this.nodes)if(je)try{for(const ct of je.cleanup??al)ct()}finally{(0,Et.XR)(je)}}}function Gl(yt,je){const ct=je?.injector??(0,Ve.WQX)(Ve.zZn),Qt=ct.get(Ve.hk6),Pn=ct.get(Jt.cf$),$n=ct.get(Jt.a8H,null,{optional:!0});Pn.impl??=ct.get(Jt.ziy);let Ci=yt;"function"==typeof Ci&&(Ci={mixedReadWrite:yt});const wi=ct.get(Ve.r4V,null,{optional:!0}),$i=new Ol(Pn.impl,[Ci.earlyRead,Ci.write,Ci.mixedReadWrite,Ci.read],wi?.view,Qt,ct,$n?.snapshot(null));return Pn.impl.register($i),$i}function Rl(yt,je){const ct=(0,Ve.xUg)(yt),Qt=je.elementInjector||(0,Ve.WB9)();return new Jt.eHC(ct).create(Qt,je.projectableNodes,je.hostElement,je.environmentInjector,je.directives,je.bindings)}function Io(yt){const je=(0,Ve.xUg)(yt);if(!je)return null;const ct=new Jt.eHC(je);return{get selector(){return ct.selector},get type(){return ct.componentType},get inputs(){return ct.inputs},get outputs(){return ct.outputs},get ngContentSelectors(){return ct.ngContentSelectors},get isStandalone(){return je.standalone},get isSignal(){return je.signals}}}},3664(Zt,pe,l){"use strict";l.d(pe,{$C:()=>_p,$Ln:()=>c_,AVh:()=>Ph,Ab1:()=>Xd,Agw:()=>Go,Avn:()=>mf,B1s:()=>si,BIS:()=>jo,BMQ:()=>Yp,C4Q:()=>U1,C5r:()=>Y6,C6U:()=>D8,C7A:()=>Os,Co$:()=>mp,DH7:()=>r5,DNE:()=>ph,DUP:()=>bl,DkB:()=>u6,Dyx:()=>W_,E5c:()=>B6,EFF:()=>Nh,EJ8:()=>zm,FsC:()=>Bm,FuF:()=>km,G5x:()=>Pc,GBs:()=>M8,H1s:()=>Bp,HbH:()=>B8,Hgh:()=>a6,JRh:()=>F6,Jt5:()=>d6,Jv_:()=>g5,KED:()=>z9,LHq:()=>Ef,Lme:()=>N6,NAR:()=>E8,NCX:()=>o1,NOj:()=>Q0,NSC:()=>S0,NYb:()=>C7,NyB:()=>w8,OA$:()=>tn,OR8:()=>zc,Ocv:()=>dy,Ol2:()=>Nm,PLl:()=>Uo,PYC:()=>Cn,PYt:()=>hl,PeT:()=>gh,QTQ:()=>ho,Ql9:()=>ay,R50:()=>V6,R7$:()=>t1,RPW:()=>_t,RV6:()=>Q_,SKi:()=>ms,SdG:()=>E6,SdI:()=>Z5,SpI:()=>Bh,TFI:()=>Eh,Ts$:()=>ag,UQu:()=>iy,V5L:()=>kf,VBU:()=>pp,VeQ:()=>Tl,VkB:()=>u5,Vt3:()=>uh,VwU:()=>bf,VzW:()=>fp,WPN:()=>lr,XpG:()=>C8,Xx1:()=>ye,Y8G:()=>lf,YEm:()=>ds,Z7z:()=>j_,Zhj:()=>lp,_9s:()=>xl,_9u:()=>zl,_jY:()=>Yr,_qm:()=>jr,_ys:()=>i1,a8H:()=>rc,aCM:()=>st,aKT:()=>Ps,ai1:()=>h5,bIt:()=>yf,bMT:()=>I5,bVm:()=>b4,bc$:()=>Tr,bkB:()=>oc,brH:()=>k5,c1b:()=>$o,cDI:()=>ks,cZr:()=>tg,cdK:()=>u_,cf$:()=>Sd,czy:()=>A1,d80:()=>sy,dOL:()=>l_,e6s:()=>bv,eHC:()=>c0,eq3:()=>Tf,eu8:()=>r6,eux:()=>y4,fX1:()=>G_,gXe:()=>Bi,giA:()=>$m,gil:()=>_s,hnC:()=>Qr,i5U:()=>K6,iLQ:()=>m_,iWE:()=>ft,j41:()=>Ih,jOp:()=>Kp,k0s:()=>cf,kBR:()=>c6,kS0:()=>_a,kdw:()=>Se,lJ4:()=>b5,lJT:()=>p_,l_i:()=>C5,lsd:()=>T8,mGM:()=>S8,mNQ:()=>d5,mU9:()=>p0,mal:()=>T2,mxI:()=>Mf,n$t:()=>G0,nI1:()=>A5,nI4:()=>mu,nM4:()=>Cp,nVh:()=>z_,npT:()=>pd,nrm:()=>i6,o8S:()=>Zm,ozJ:()=>Z3,p2i:()=>Zn,phd:()=>E7,pl0:()=>f_,qex:()=>uf,rAh:()=>Dn,rOR:()=>Vo,rXU:()=>m1,rj2:()=>df,sFG:()=>W1,sMw:()=>x5,sZ2:()=>nr,sdS:()=>A8,sgu:()=>dp,tSv:()=>K0,tvf:()=>Wo,uiO:()=>N,utN:()=>Yf,vDg:()=>Qf,vxM:()=>V_,w6W:()=>Fm,wEZ:()=>Cf,wni:()=>M6,wr$:()=>Zc,xGo:()=>Ze,xc7:()=>I6,xe9:()=>q5,yLl:()=>d_,y_5:()=>ee,ypd:()=>M7,ziy:()=>S2,zoo:()=>M2});var Qn=l(467),h=l(2615),jt=l(8440),Ue=l(1413),wt=l(8359),pt=l(6354);function Pt(t){return{toString:t}.toString()}const gn="__annotations__",ei="__parameters__",vi="__prop__metadata__";function Ni(t,n,a,o,p){return Pt(()=>{const M=kn(n);function k(...z){if(this instanceof k)return M.call(this,...z),this;const Y=new k(...z);return function(it){return p&&p(it,...z),(it.hasOwnProperty(gn)?it[gn]:Object.defineProperty(it,gn,{value:[]})[gn]).push(Y),it}}return a&&(k.prototype=Object.create(a.prototype)),k.prototype.ngMetadataName=t,k.annotationCls=k,k})}function kn(t){return function(...a){if(t){const o=t(...a);for(const p in o)this[p]=o[p]}}}function Ri(t,n,a){return Pt(()=>{const o=kn(n);function p(...M){if(this instanceof p)return o.apply(this,M),this;const k=new p(...M);return z.annotation=k,z;function z(Y,ze,it){const zt=Y.hasOwnProperty(ei)?Y[ei]:Object.defineProperty(Y,ei,{value:[]})[ei];for(;zt.length<=it;)zt.push(null);return(zt[it]=zt[it]||[]).push(k),Y}}return p.prototype.ngMetadataName=t,p.annotationCls=p,p})}const ee=(0,h.z6V)(Ri("Inject",t=>({token:t})),-1),ye=(0,h.z6V)(Ri("Optional"),8),ke=(0,h.z6V)(Ri("Self"),2),Se=(0,h.z6V)(Ri("SkipSelf"),4),ge=(0,h.z6V)(Ri("Host"),1);function N(t){const n=h.laP.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Z={\u0275\u0275defineInjectable:h.jDH,\u0275\u0275defineInjector:h.G2t,\u0275\u0275inject:h.KVO,\u0275\u0275invalidFactoryDep:h.dmw,resolveForwardRef:h.nl4},Me=Function;function at(t){return"function"==typeof t}const qe=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,pn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Je=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Be=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ge{_reflect;constructor(n){this._reflect=n||h.laP.Reflect}factory(n){return(...a)=>new n(...a)}_zipTypesAndAnnotations(n,a){let o;o=(0,h.WfI)(typeof n>"u"?a.length:n.length);for(let p=0;p"u"?[]:n[p]&&n[p]!=Object?[n[p]]:[],a&&null!=a[p]&&(o[p]=o[p].concat(a[p]));return o}_ownParameters(n,a){if(function ut(t){return qe.test(t)||Be.test(t)||pn.test(t)&&!Je.test(t)}(n.toString()))return null;if(n.parameters&&n.parameters!==a.parameters)return n.parameters;const p=n.ctorParameters;if(p&&p!==a.ctorParameters){const z="function"==typeof p?p():p,Y=z.map(it=>it&&it.type),ze=z.map(it=>it&&Ot(it.decorators));return this._zipTypesAndAnnotations(Y,ze)}const M=n.hasOwnProperty(ei)&&n[ei],k=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",n);return k||M?this._zipTypesAndAnnotations(k,M):(0,h.WfI)(n.length)}parameters(n){if(!at(n))return[];const a=se(n);let o=this._ownParameters(n,a);return!o&&a!==Object&&(o=this.parameters(a)),o||[]}_ownAnnotations(n,a){if(n.annotations&&n.annotations!==a.annotations){let o=n.annotations;return"function"==typeof o&&o.annotations&&(o=o.annotations),o}return n.decorators&&n.decorators!==a.decorators?Ot(n.decorators):n.hasOwnProperty(gn)?n[gn]:null}annotations(n){if(!at(n))return[];const a=se(n),o=this._ownAnnotations(n,a)||[];return(a!==Object?this.annotations(a):[]).concat(o)}_ownPropMetadata(n,a){if(n.propMetadata&&n.propMetadata!==a.propMetadata){let o=n.propMetadata;return"function"==typeof o&&o.propMetadata&&(o=o.propMetadata),o}if(n.propDecorators&&n.propDecorators!==a.propDecorators){const o=n.propDecorators,p={};return Object.keys(o).forEach(M=>{p[M]=Ot(o[M])}),p}return n.hasOwnProperty(vi)?n[vi]:null}propMetadata(n){if(!at(n))return{};const a=se(n),o={};if(a!==Object){const M=this.propMetadata(a);Object.keys(M).forEach(k=>{o[k]=M[k]})}const p=this._ownPropMetadata(n,a);return p&&Object.keys(p).forEach(M=>{const k=[];o.hasOwnProperty(M)&&k.push(...o[M]),k.push(...p[M]),o[M]=k}),o}ownPropMetadata(n){return at(n)&&this._ownPropMetadata(n,se(n))||{}}hasLifecycleHook(n,a){return n instanceof Me&&a in n.prototype}}function Ot(t){return t?t.map(n=>new(0,n.type.annotationCls)(...n.args?n.args:[])):[]}function se(t){const n=t.prototype?Object.getPrototypeOf(t.prototype):null;return(n?n.constructor:null)||Object}class We{previousValue;currentValue;firstChange;constructor(n,a,o){this.previousValue=n,this.currentValue=a,this.firstChange=o}isFirstChange(){return this.firstChange}}function bt(t,n,a,o){null!==n?n.applyValueToInputSignal(n,o):t[a]=o}const tn=(()=>{const t=()=>on;return t.ngInherit=!0,t})();function on(t){return t.type.prototype.ngOnChanges&&(t.setInput=Nt),un}function un(){const t=xn(this),n=t?.current;if(n){const a=t.previous;if(a===h.MZA)t.previous=n;else for(let o in n)a[o]=n[o];t.current=null,this.ngOnChanges(n)}}function Nt(t,n,a,o,p){const M=this.declaredInputs[o],k=xn(t)||function Jn(t,n){return t[dn]=n}(t,{previous:h.MZA,current:null}),z=k.current||(k.current={}),Y=k.previous,ze=Y[M];z[M]=new We(ze&&ze.currentValue,a,Y===h.MZA),bt(t,n,p,a)}const dn="__ngSimpleChanges__";function xn(t){return t[dn]||null}const xi=[],we=function(t,n=null,a){for(let o=0;o=o)break}else n[Y]<0&&(t[h.wVl]+=65536),(z>14>16&&(3&t[h.Wg1])===n&&(t[h.Wg1]+=16384,Qi(z,M)):Qi(z,M)}class an{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,a,o,p){this.factory=n,this.name=p,this.canSeeViewProviders=a,this.injectImpl=o}}function Un(t){return null!=t&&"object"==typeof t&&(null===t.insertBeforeIndex||"number"==typeof t.insertBeforeIndex||Array.isArray(t.insertBeforeIndex))}function Vn(t){return 3===t||4===t||6===t}function ii(t){return 64===t.charCodeAt(0)}function Bn(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let a=-1;for(let o=0;on){k=M-1;break}}}for(;M>16}(t),o=n;for(;a>0;)o=o[h.X5O],a--;return o}let En=!0;function Wn(t){const n=En;return En=t,n}let Pi=0;const da={};function en(t,n){const a=oi(t,n);if(-1!==a)return a;const o=n[h.eDl];o.firstCreatePass&&(t.injectorIndex=n.length,vn(o.data,t),vn(n,null),vn(o.blueprint,null));const p=bn(t,n),M=t.injectorIndex;if(ra(p)){const k=fa(p),z=qt(p,n),Y=z[h.eDl].data;for(let ze=0;ze<8;ze++)n[M+ze]=z[k+ze]|Y[k+ze]}return n[M+8]=p,M}function vn(t,n){t.push(0,0,0,0,0,0,0,0,n)}function oi(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function bn(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let a=0,o=null,p=n;for(;null!==p;){if(o=Ki(p),null===o)return-1;if(a++,p=p[h.X5O],-1!==o.injectorIndex)return o.injectorIndex|a<<16}return-1}function Kn(t,n,a){!function Ta(t,n,a){let o;"string"==typeof a?o=a.charCodeAt(0)||0:a.hasOwnProperty(h.p9y)&&(o=a[h.p9y]),null==o&&(o=a[h.p9y]=Pi++);const p=255&o;n.data[t+(p>>5)]|=1<=0?255&n:tt:n}(a);if("function"==typeof M){if(!(0,h.ihb)(n,t,o))return 1&o?Wi(p,a,o):Ca(n,a,o,p);try{let k;if(k=M(o),null!=k||8&o)return k;(0,h.$Hz)(a)}finally{(0,h.niQ)()}}else if("number"==typeof M){let k=null,z=oi(t,n),Y=-1,ze=1&o?n[h.b5C][h.qlT]:null;for((-1===z||4&o)&&(Y=-1===z?bn(t,n):n[z+8],-1!==Y&&ca(o,!1)?(k=n[h.eDl],z=fa(Y),n=qt(Y,n)):z=-1);-1!==z;){const it=n[h.eDl];if(Ii(M,z,it.data)){const zt=Ve(z,n,a,k,o,ze);if(zt!==da)return zt}Y=n[z+8],-1!==Y&&ca(o,n[h.eDl].data[z+8]===ze)&&Ii(M,z,n)?(k=it,z=fa(Y),n=qt(Y,n)):z=-1}}return p}function Ve(t,n,a,o,p,M){const k=n[h.eDl],z=k.data[t+8],it=Et(z,k,a,null==o?(0,h.Qs1)(z)&&En:o!=k&&!!(3&z.type),1&p&&M===z);return null!==it?ti(n,k,it,z,p):da}function Et(t,n,a,o,p){const M=t.providerIndexes,k=n.data,z=1048575&M,Y=t.directiveStart,it=M>>20,hn=p?z+it:t.directiveEnd;for(let fn=o?z:z+it;fn=Y&&qn.type===a)return fn}if(p){const fn=k[Y];if(fn&&(0,h.JlV)(fn)&&fn.type===a)return Y}return null}function ti(t,n,a,o,p){let M=t[a];const k=n.data;if(M instanceof an){const z=M;if(z.resolving){const fn=(0,h.PP7)(k[a]);throw(0,h.PQT)(fn)}const Y=Wn(z.canSeeViewProviders);z.resolving=!0;const zt=z.injectImpl?(0,h.a2B)(z.injectImpl):null;(0,h.ihb)(t,o,0);try{M=t[a]=z.factory(void 0,p,k,t,o),n.firstCreatePass&&a>=o.directiveStart&&function ae(t,n,a){const{ngOnChanges:o,ngOnInit:p,ngDoCheck:M}=n.type.prototype;if(o){const k=on(n);(a.preOrderHooks??=[]).push(t,k),(a.preOrderCheckHooks??=[]).push(t,k)}p&&(a.preOrderHooks??=[]).push(0-t,p),M&&((a.preOrderHooks??=[]).push(t,M),(a.preOrderCheckHooks??=[]).push(t,M))}(a,k[a],n)}finally{null!==zt&&(0,h.a2B)(zt),Wn(Y),z.resolving=!1,(0,h.niQ)()}}return M}function Ii(t,n,a){return!!(a[n+(t>>5)]&1<{const n=t.prototype.constructor,a=n[h.zSs]||Xt(n),o=Object.prototype;let p=Object.getPrototypeOf(t.prototype).constructor;for(;p&&p!==o;){const M=p[h.zSs]||Xt(p);if(M&&M!==a)return M;p=Object.getPrototypeOf(p)}return M=>new M})}function Xt(t){return(0,h.Jzi)(t)?()=>{const n=Xt((0,h.nl4)(t));return n&&n()}:(0,h.wGu)(t)}function Ki(t){const n=t[h.eDl],a=n.type;return 2===a?n.declTNode:1===a?t[h.qlT]:null}function _a(t){return function yi(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const a=t.attrs;if(a){const o=a.length;let p=0;for(;p({attributeName:t,__NG_ELEMENT_ID__:()=>_a(t)}));let $a=null;function Ga(t){return As(function ns(){return $a=$a||new Ge}().parameters(t))}function As(t){return t.map(n=>function hr(t){const n={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(t)&&t.length>0)for(let a=0;afunction mr(t,n){let a=null,o=null;t.hasOwnProperty(h.yAH)||Object.defineProperty(t,h.yAH,{get:()=>(null===a&&(a=N().compileInjectable(Z,`ng:///${t.name}/\u0275prov.js`,function Zs(t,n){const a=n||{providedIn:null},o={name:t.name,type:t,typeArgumentCount:0,providedIn:a.providedIn};return(zo(a)||gr(a))&&void 0!==a.deps&&(o.deps=As(a.deps)),zo(a)?o.useClass=a.useClass:function pr(t){return fr in t}(a)?o.useValue=a.useValue:gr(a)?o.useFactory=a.useFactory:function bo(t){return void 0!==t.useExisting}(a)&&(o.useExisting=a.useExisting),o}(t,n))),a)}),t.hasOwnProperty(h.zSs)||Object.defineProperty(t,h.zSs,{get:()=>{if(null===o){const p=N();o=p.compileFactory(Z,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,typeArgumentCount:0,deps:Ga(t),target:p.FactoryTarget.Injectable})}return o},configurable:!0})}(t,n));function Er(){return Ka((0,h.Mx4)(),(0,h.OAn)())}function Ka(t,n){return new Ps((0,h.d31)(t,n))}let Ps=(()=>class t{nativeElement;constructor(a){this.nativeElement=a}static __NG_ELEMENT_ID__=Er})();function kr(t){return t instanceof Ps?t.nativeElement:t}function js(){return this._results[Symbol.iterator]()}class Vo{_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 Ue.B}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,a){return this._results.reduce(n,a)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,a){this.dirty=!1;const o=(0,h.Bqz)(n);(this._changesDetected=!(0,h.ng7)(this._results,o,a))&&(this._results=o,this.length=o.length,this.last=o[this.length-1],this.first=o[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=js}function Js(t){return!(128&~t.flags)}var ls=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(ls||{});const is=new Map;let Hs=0;function xs(t){is.delete(t[h.ID])}const Xs="__ngContext__";function wa(t,n){(0,h.q$2)(n)?(t[Xs]=n[h.ID],function Mr(t){is.set(t[h.ID],t)}(n)):t[Xs]=n}function Oi(t){return Es(t[h.EJG])}function ua(t){return Es(t[h.K29])}function Es(t){for(;null!==t&&!(0,h.A0l)(t);)t=t[h.K29];return t}let pl;function zl(t){pl=t}function ds(){if(void 0!==pl)return pl;if(typeof document<"u")return document;throw new h.buA(210,!1)}const nr=new h.nKC("",{providedIn:"root",factory:()=>mi}),mi="ng",Uo=new h.nKC(""),Go=new h.nKC("",{providedIn:"platform",factory:()=>"unknown"}),Tr=new h.nKC(""),jo=new h.nKC("",{providedIn:"root",factory:()=>ds().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),mo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},Tl=new h.nKC("",{providedIn:"root",factory:()=>mo});function za(){const t=new us;return t.store=function Dl(t,n){const a=t.getElementById(n+"-state");if("SCRIPT"===a?.tagName&&a.textContent)try{return JSON.parse(a.textContent)}catch(o){console.warn("Exception while restoring TransferState for app "+n,o)}return{}}(ds(),(0,h.WQX)(nr)),t}let us=(()=>{class t{static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:za});store={};onSerializeCallbacks={};get(a,o){return void 0!==this.store[a]?this.store[a]:o}set(a,o){this.store[a]=o}remove(a){delete this.store[a]}hasKey(a){return this.store.hasOwnProperty(a)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(a,o){this.onSerializeCallbacks[a]=o}toJson(){for(const a in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(a))try{this.store[a]=this.onSerializeCallbacks[a]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/!1}),ir=new h.nKC(""),Wo=new h.nKC(""),nl={passive:!0,capture:!0},X=new WeakMap,de=new WeakMap,Q=new WeakMap,me=["click","keydown"],et=["mouseenter","mouseover","focusin"];let Mt=null,Kt=0;class Tn{callbacks=new Set;listener=()=>{for(const n of this.callbacks)n()}}function ai(t,n){let a=de.get(t);if(!a){a=new Tn,de.set(t,a);for(const o of me)t.addEventListener(o,a.listener,nl)}return a.callbacks.add(n),()=>{const{callbacks:o,listener:p}=a;if(o.delete(n),0===o.size){de.delete(t);for(const M of me)t.removeEventListener(M,p,nl)}}}function Gi(t,n){let a=X.get(t);if(!a){a=new Tn,X.set(t,a);for(const o of et)t.addEventListener(o,a.listener,nl)}return a.callbacks.add(n),()=>{const{callbacks:o,listener:p}=a;if(o.delete(n),0===o.size){for(const M of et)t.removeEventListener(M,p,nl);X.delete(t)}}}const wo=new h.nKC("");function Ao(t){return!(32&~t.flags)}function Wl(t){let n=t._lView;return 2===n[h.eDl].type?null:((0,h.EFk)(n)&&(n=n[h.Yw1]),n)}function oa(t){return t.get(ir,!1,{optional:!0})}function ui(t,n){const a=t.contentQueries;if(null!==a){const o=(0,jt.Ht)(null);try{for(let p=0;pt,createScript:t=>t,createScriptURL:t=>t})}catch{}return br}function Yl(t){return Yo()?.createHTML(t)||t}function y1(){if(void 0===Fl&&(Fl=null,h.laP.trustedTypes))try{Fl=h.laP.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Fl}function ld(t){return y1()?.createHTML(t)||t}function a2(t){return y1()?.createScript(t)||t}function A0(t){return y1()?.createScriptURL(t)||t}class Ic{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${h.ok8})`}}class T4 extends Ic{getTypeName(){return"HTML"}}class L0 extends Ic{getTypeName(){return"Style"}}class I0 extends Ic{getTypeName(){return"Script"}}class Te extends Ic{getTypeName(){return"URL"}}class dt extends Ic{getTypeName(){return"ResourceURL"}}function st(t){return t instanceof Ic?t.changingThisBreaksApplicationSecurity:t}function ft(t,n){const a=function $t(t){return t instanceof Ic&&t.getTypeName()||null}(t);if(null!=a&&a!==n){if("ResourceURL"===a&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${a} (see ${h.ok8})`)}return a===n}function Cn(t){return new T4(t)}function Dn(t){return new L0(t)}function Zn(t){return new I0(t)}function si(t){return new Te(t)}function _t(t){return new dt(t)}function ji(t){const n=new Ja(t);return function Ba(){try{return!!(new window.DOMParser).parseFromString(Yl(""),"text/html")}catch{return!1}}()?new Hi(n):n}class Hi{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const a=(new window.DOMParser).parseFromString(Yl(n),"text/html").body;return null===a?this.inertDocumentHelper.getInertBodyElement(n):(a.firstChild?.remove(),a)}catch{return null}}}class Ja{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const a=this.inertDocument.createElement("template");return a.innerHTML=Yl(n),a}}const wr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _s(t){return(t=String(t)).match(wr)?t:"unsafe:"+t}function vs(t){const n={};for(const a of t.split(","))n[a]=!0;return n}function rr(...t){const n={};for(const a of t)for(const o in a)a.hasOwnProperty(o)&&(n[o]=!0);return n}const Bs=vs("area,br,col,hr,img,wbr"),ol=vs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Kr=vs("rp,rt"),vc=rr(Bs,rr(ol,vs("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")),rr(Kr,vs("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")),rr(Kr,ol)),s2=vs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),r2=rr(s2,vs("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"),vs("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")),o2=vs("script,style,template");class cd{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let a=n.firstChild,o=!0,p=[];for(;a;)if(a.nodeType===Node.ELEMENT_NODE?o=this.startElement(a):a.nodeType===Node.TEXT_NODE?this.chars(a.nodeValue):this.sanitizedSomething=!0,o&&a.firstChild)p.push(a),a=k0(a);else for(;a;){a.nodeType===Node.ELEMENT_NODE&&this.endElement(a);let M=w4(a);if(M){a=M;break}a=p.pop()}return this.buf.join("")}startElement(n){const a=zr(n).toLowerCase();if(!vc.hasOwnProperty(a))return this.sanitizedSomething=!0,!o2.hasOwnProperty(a);this.buf.push("<"),this.buf.push(a);const o=n.attributes;for(let p=0;p"),!0}endElement(n){const a=zr(n).toLowerCase();vc.hasOwnProperty(a)&&!Bs.hasOwnProperty(a)&&(this.buf.push(""))}chars(n){this.buf.push(R0(n))}}function w4(t){const n=t.nextSibling;if(n&&t!==n.previousSibling)throw O0(n);return n}function k0(t){const n=t.firstChild;if(n&&function b1(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(t,n))throw O0(n);return n}function zr(t){const n=t.nodeName;return"string"==typeof n?n:"FORM"}function O0(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}const A4=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xa=/([^\#-~ |!])/g;function R0(t){return t.replace(/&/g,"&").replace(A4,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Xa,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let yc;function Zc(t,n){let a=null;try{yc=yc||ji(t);let o=n?String(n):"";a=yc.getInertBodyElement(o);let p=5,M=o;do{if(0===p)throw new Error("Failed to sanitize html because the input is unstable");p--,o=M,M=a.innerHTML,a=yc.getInertBodyElement(o)}while(o!==M);return Yl((new cd).sanitizeChildren(l2(a)||a))}finally{if(a){const o=l2(a)||a;for(;o.firstChild;)o.firstChild.remove()}}}function l2(t){return"content"in t&&function Qo(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}const or=/^>|^->||--!>|)/g;function ud(t,n){return t.createText(n)}function P0(t,n,a){t.setValue(n,a)}function c2(t,n){return t.createComment(function bc(t){return t.replace(or,n=>n.replace(dd,"\u200b$1\u200b"))}(n))}function hd(t,n,a){return t.createElement(n,a)}function Cc(t,n,a,o,p){t.insertBefore(n,a,o,p)}function F0(t,n,a){t.appendChild(n,a)}function d2(t,n,a,o,p){null!==o?Cc(t,n,a,o,p):F0(t,n,a)}function C1(t,n,a,o){t.removeChild(null,n,a,o)}function zs(t,n,a){const{mergedAttrs:o,classes:p,styles:M}=a;null!==o&&function Mn(t,n,a){let o=0;for(;o-1){let M;for(;++pM?"":p[it+1].toLowerCase(),2&o&&ze!==zt){if(ul(o))return!1;k=!0}}}}else{if(!k&&!ul(o)&&!ul(Y))return!1;if(k&&ul(Y))continue;k=!1,o=Y|1&o}}return ul(o)||k}function ul(t){return!(1&t)}function Z0(t,n,a,o){if(null===n)return-1;let p=0;if(o||!a){let M=!1;for(;p-1)for(a++;a0?'="'+z+'"':"")+"]"}else 8&o?p+="."+k:4&o&&(p+=" "+k);else""!==p&&!ul(k)&&(n+=v2(M,p),p=""),o=k,M=M||!ul(o);a++}return""!==p&&(n+=v2(M,p)),n}const qa={};function xc(t,n,a,o,p,M,k,z,Y,ze,it){const zt=h.Yw1+o,hn=zt+p,fn=function y2(t,n){const a=[];for(let o=0;o-1?1:1e3;return parseFloat(t)*n}function Ec(t,n){return t.getPropertyValue(n).split(",").map(o=>o.trim())}function Mc(t,n){return void 0!==t&&t.duration>n.duration}function tu(t){return(null!=t.animationName||null!=t.propertyName)&&t.duration>0}function iu(t,n,a){if(!a)return;const o=t.getAnimations();return 0===o.length?function nu(t,n){const a=getComputedStyle(t),o=function Cd(t){const n=Ec(t,"animation-name"),a=Ec(t,"animation-delay"),o=Ec(t,"animation-duration"),p={animationName:"",propertyName:void 0,duration:0};for(let M=0;Mp.duration&&(p.animationName=n[M],p.duration=k)}return p}(a),p=function eu(t){const n=Ec(t,"transition-property"),a=Ec(t,"transition-duration"),o=Ec(t,"transition-delay"),p={propertyName:"",duration:0,animationName:void 0};for(let M=0;Mp.duration&&(p.propertyName=n[M],p.duration=k)}return p}(a),M=o.duration>p.duration?o:p;Mc(n.get(t),M)||tu(M)&&n.set(t,M)}(t,n):function au(t,n,a){let o={animationName:void 0,propertyName:void 0,duration:0};for(const p of a){const M=p.effect?.getTiming(),k="number"==typeof M?.duration?M.duration:0;let Y,ze,z=(M?.delay??0)+k;p.animationName?ze=p.animationName:Y=p.transitionProperty,z>=o.duration&&(o={animationName:ze,propertyName:Y,duration:z})}Mc(n.get(t),o)||tu(o)&&n.set(t,o)}(t,n,o)}const bl=new Set;var L1=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(L1||{});const rc=new h.nKC(""),I1=new Set;function Yr(t){I1.has(t)||(I1.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}const n1=!1,oc=class su extends Ue.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,(0,h.M6u)()&&(this.destroyRef=(0,h.WQX)(h.abz,{optional:!0})??void 0,this.pendingTasks=(0,h.WQX)(h.rev,{optional:!0})??void 0)}emit(n){const a=(0,jt.Ht)(null);try{super.next(n)}finally{(0,jt.Ht)(a)}}subscribe(n,a,o){let p=n,M=a||(()=>null),k=o;if(n&&"object"==typeof n){const Y=n;p=Y.next?.bind(Y),M=Y.error?.bind(Y),k=Y.complete?.bind(Y)}this.__isAsync&&(M=this.wrapInTimeout(M),p&&(p=this.wrapInTimeout(p)),k&&(k=this.wrapInTimeout(k)));const z=super.subscribe({next:p,error:M,complete:k});return n instanceof wt.yU&&n.add(z),z}wrapInTimeout(n){return a=>{const o=this.pendingTasks?.add();setTimeout(()=>{try{n(a)}finally{void 0!==o&&this.pendingTasks?.remove(o)}})}}};function k1(t){let n,a;function o(){t=h.lQ1;try{void 0!==a&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(a),void 0!==n&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),o()}),"function"==typeof requestAnimationFrame&&(a=requestAnimationFrame(()=>{t(),o()})),()=>o()}function C2(t){return queueMicrotask(()=>t()),()=>{t=h.lQ1}}const x2="isAngularZone",xd=x2+"_ID";let Q4=0;class ms{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new oc(!1);onMicrotaskEmpty=new oc(!1);onStable=new oc(!1);onError=new oc(!1);constructor(n){const{enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:o=!1,shouldCoalesceRunChangeDetection:p=!1,scheduleInRootZone:M=n1}=n;if(typeof Zone>"u")throw new h.buA(908,!1);Zone.assertZonePatched();const k=this;k._nesting=0,k._outer=k._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(k._inner=k._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(k._inner=k._inner.fork(Zone.longStackTraceZoneSpec)),k.shouldCoalesceEventChangeDetection=!p&&o,k.shouldCoalesceRunChangeDetection=p,k.callbackScheduled=!1,k.scheduleInRootZone=M,function ou(t){const n=()=>{!function ru(t){function n(){k1(()=>{t.callbackScheduled=!1,lu(t),t.isCheckStableRunning=!0,lc(t),t.isCheckStableRunning=!1})}t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),lu(t))}(t)},a=Q4++;t._inner=t._inner.fork({name:"angular",properties:{[x2]:!0,[xd]:a,[xd+a]:!0},onInvokeTask:(o,p,M,k,z,Y)=>{if(function cu(t){return Md(t,"__ignore_ng_zone__")}(Y))return o.invokeTask(M,k,z,Y);try{return O1(t),o.invokeTask(M,k,z,Y)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===k.type||t.shouldCoalesceRunChangeDetection)&&n(),Ed(t)}},onInvoke:(o,p,M,k,z,Y,ze)=>{try{return O1(t),o.invoke(M,k,z,Y,ze)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!function E2(t){return Md(t,"__scheduler_tick__")}(Y)&&n(),Ed(t)}},onHasTask:(o,p,M,k)=>{o.hasTask(M,k),p===M&&("microTask"==k.change?(t._hasPendingMicrotasks=k.microTask,lu(t),lc(t)):"macroTask"==k.change&&(t.hasPendingMacrotasks=k.macroTask))},onHandleError:(o,p,M,k)=>(o.handleError(M,k),t.runOutsideAngular(()=>t.onError.emit(k)),!1)})}(k)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(x2)}static assertInAngularZone(){if(!ms.isInAngularZone())throw new h.buA(909,!1)}static assertNotInAngularZone(){if(ms.isInAngularZone())throw new h.buA(909,!1)}run(n,a,o){return this._inner.run(n,a,o)}runTask(n,a,o,p){const M=this._inner,k=M.scheduleEventTask("NgZoneEvent: "+p,n,$4,h.lQ1,h.lQ1);try{return M.runTask(k,a,o)}finally{M.cancelTask(k)}}runGuarded(n,a,o){return this._inner.runGuarded(n,a,o)}runOutsideAngular(n){return this._outer.run(n)}}const $4={};function lc(t){if(0==t._nesting&&!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 lu(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&!0===t.callbackScheduled)}function O1(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ed(t){t._nesting--,lc(t)}class Sc{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new oc;onMicrotaskEmpty=new oc;onStable=new oc;onError=new oc;run(n,a,o){return n.apply(a,o)}runGuarded(n,a,o){return n.apply(a,o)}runOutsideAngular(n){return n()}runTask(n,a,o,p){return n.apply(a,o)}}function Md(t,n){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0]?.data?.[n]}function Pc(t="zone.js",n){return"noop"===t?new Sc:"zone.js"===t?new ms(n):t}let Sd=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:()=>new t})}return t})();const M2=[0,1,2,3];let S2=(()=>{class t{ngZone=(0,h.WQX)(ms);scheduler=(0,h.WQX)(h.hk6);errorHandler=(0,h.WQX)(h.zcH,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){(0,h.WQX)(rc,{optional:!0})}execute(){const a=this.sequences.size>0;a&&we(16),this.executing=!0;for(const o of M2)for(const p of this.sequences)if(!p.erroredOrDestroyed&&p.hooks[o])try{p.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,p.hooks[o])(p.pipelinedValue),p.snapshot))}catch(M){p.erroredOrDestroyed=!0,this.errorHandler?.handleError(M)}this.executing=!1;for(const o of this.sequences)o.afterRun(),o.once&&(this.sequences.delete(o),o.destroy());for(const o of this.deferredRegistrations)this.sequences.add(o);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),a&&we(17)}register(a){const{view:o}=a;void 0!==o?((o[h.JEi]??=[]).push(a),(0,h.blu)(o),o[h.Wg1]|=8192):this.executing?this.deferredRegistrations.add(a):this.addSequence(a)}addSequence(a){this.sequences.add(a),this.scheduler.notify(7)}unregister(a){this.executing&&this.sequences.has(a)?(a.erroredOrDestroyed=!0,a.pipelinedValue=void 0,a.once=!0):(this.sequences.delete(a),this.deferredRegistrations.delete(a))}maybeTrace(a,o){return o?o.run(L1.AFTER_NEXT_RENDER,a):a()}static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:()=>new t})}return t})();class i1{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,a,o,p,M,k=null){this.impl=n,this.hooks=a,this.view=o,this.once=p,this.snapshot=k,this.unregisterOnDestroy=M?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const n=this.view?.[h.JEi];n&&(this.view[h.JEi]=n.filter(a=>a!==this))}}function T2(t,n){const a=n?.injector??(0,h.WQX)(h.zZn);return Yr("NgAfterNextRender"),hu(t,a,n,!0)}function hu(t,n,a,o){const p=n.get(Sd);p.impl??=n.get(S2);const M=n.get(rc,null,{optional:!0}),k=!0!==a?.manualCleanup?n.get(h.abz):null,z=n.get(h.r4V,null,{optional:!0}),Y=new i1(p.impl,function uu(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}(t),z?.view,o,k,M?.snapshot(null));return p.impl.register(Y),Y}const mu={destroy(){}},R1=new h.nKC("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function fu(t,n,a){const o=t.get(R1);if(Array.isArray(n))for(const p of n)o.queue.add(p),a?.detachedLeaveAnimationFns?.push(p);else o.queue.add(n),a?.detachedLeaveAnimationFns?.push(n);o.scheduler&&o.scheduler(t)}function Z4(t){const n=t.get(R1);n.isScheduled||(T2(()=>{n.isScheduled=!1;for(let a of n.queue)a();n.queue.clear()},{injector:t}),n.isScheduled=!0)}function D2(t){const n=t.get(R1);n.scheduler=Z4,n.scheduler(t)}function P1(t,n){for(const[a,o]of n)fu(t,o.animateFns)}function S(t,n,a,o){const p=t?.[h.Isx]?.enter;null!==n&&p&&p.has(a.index)&&P1(o,p)}function F1(t,n,a,o,p,M,k,z){if(null!=p){let Y,ze=!1;(0,h.A0l)(p)?Y=p:(0,h.q$2)(p)&&(ze=!0,p=p[h.jgP]);const it=(0,h.IvY)(p);0===t&&null!==o?(S(z,o,M,a),null==k?F0(n,o,it):Cc(n,o,it,k||null,!0)):1===t&&null!==o?(S(z,o,M,a),Cc(n,o,it,k||null,!0)):2===t?pu(z,M,a,zt=>{C1(n,it,ze,zt)}):3===t&&pu(z,M,a,()=>{n.destroyNode(it)}),null!=Y&&function O2(t,n,a,o,p,M,k){const z=o[h.s6P];z!==(0,h.IvY)(o)&&F1(n,t,a,M,z,p,k);for(let ze=h.Y20;ze=0?o[z]():o[-z].unsubscribe(),k+=2}else a[k].call(o[a[k+1]]);null!==o&&(n[h.VVG]=null);const p=n[h.Czx];if(null!==p){n[h.Czx]=null;for(let k=0;k{if(p.leave&&p.leave.has(n.index)){const k=p.leave.get(n.index),z=[];if(k){for(let Y=0;Y{t[h.Isx].running=void 0,bl.delete(t),n(!0)}):n(!1)}(t,o)}else t&&bl.delete(t),o(!1)},p)}function I2(t,n,a){return gu(t,n.parent,a)}function gu(t,n,a){let o=n;for(;null!==o&&168&o.type;)o=(n=o).parent;if(null===o)return a[h.jgP];if((0,h.Qs1)(o)){const{encapsulation:p}=t.data[o.directiveStart+o.componentOffset];if(p===Bi.None||p===Bi.Emulated)return null}return(0,h.d31)(o,a)}function t3(t,n,a){return _u(t,n,a)}function n3(t,n,a){return 40&t.type?(0,h.d31)(t,a):null}let vu,_u=n3;function i3(t,n){_u=t,vu=n}function yu(t,n,a,o){const p=I2(t,o,n),M=n[h.GpT],z=t3(o.parent||n[h.qlT],o,n);if(null!=p)if(Array.isArray(a))for(let Y=0;Yh.Yw1&&X4(t,n,h.Yw1,!1),we(k?2:0,p,a),a(o,p)}finally{(0,h.ypq)(M),we(k?3:1,p,a)}}function R2(t,n,a){(function c3(t,n,a){const o=a.directiveStart,p=a.directiveEnd;(0,h.Qs1)(a)&&function W4(t,n,a){const o=(0,h.d31)(n,t),p=q0(a),M=t[h.M0L].rendererFactory,k=yd(t,M1(t,p,null,S1(a),o,n,null,M.createRenderer(o,a),null,null,null));t[n.index]=k}(n,a,t.data[o+a.componentOffset]),t.firstCreatePass||en(a,n);const M=a.initialInputs;for(let k=o;knull;function P2(t,n,a,o,p,M){Id(t,n[h.eDl],n,a,o)?(0,h.Qs1)(t)&&N2(n,t.index):(3&t.type&&(a=function Mu(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(a)),F2(t,n,a,o,p,M))}function F2(t,n,a,o,p,M){if(3&t.type){const k=(0,h.d31)(t,n);o=null!=M?M(o,t.value||"",a):o,p.setProperty(k,a,o)}}function N2(t,n){const a=(0,h.KdJ)(n,t);16&a[h.Wg1]||(a[h.Wg1]|=64)}function Su(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function z2(t,n){const a=t.directiveRegistry;let o=null;if(a)for(let p=0;p{(0,h.blu)(t.lView)},consumerOnSignalRead(){this.lView[h.Iaj]=this}},y3={...jt.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=(0,h._0$)(t.lView);for(;n&&!U2(n[h.eDl]);)n=(0,h._0$)(n);n&&(0,h.HAh)(n)},consumerOnSignalRead(){this.lView[h.Iaj]=this}};function U2(t){return 2!==t.type}function ku(t){if(null===t[h.tQN])return;let n=!0;for(;n;){let a=!1;for(const o of t[h.tQN])o.dirty&&(a=!0,null===o.zone||Zone.current===o.zone?o.run():o.zone.run(()=>o.run()));n=a&&!!(8192&t[h.Wg1])}}function G2(t,n=0){const o=t[h.M0L].rendererFactory;o.begin?.();try{!function j2(t,n){const a=(0,h.yP_)();try{(0,h.cBl)(!0),H2(t,n);let o=0;for(;(0,h.dMS)(t);){if(100===o)throw new h.buA(103,!1);o++,H2(t,1)}}finally{(0,h.cBl)(a)}}(t,n)}finally{o.end?.()}}function Vr(t,n,a,o){if((0,h.EPY)(n))return;const p=n[h.Wg1];(0,h.ID8)(n);let z=!0,Y=null,ze=null;U2(t)?(ze=function Au(t){return t[h.Iaj]??function _3(t){const n=wu.pop()??Object.create(v3);return n.lView=t,n}(t)}(n),Y=(0,jt.Bg)(ze)):null===(0,jt.nR)()?(z=!1,ze=function Iu(t){const n=t[h.Iaj]??Object.create(y3);return n.lView=t,n}(n),Y=(0,jt.Bg)(ze)):n[h.Iaj]&&((0,jt.XR)(n[h.Iaj]),n[h.Iaj]=null);try{(0,h.HUe)(n),(0,h.Kw3)(t.bindingStartIndex),null!==a&&o3(t,n,a,2,o);const it=!(3&~p);if(it){const fn=t.preOrderCheckHooks;null!==fn&&Ht(n,fn,null)}else{const fn=t.preOrderHooks;null!==fn&&_n(n,fn,0,null),fi(n,0)}if(function b3(t){for(let n=Oi(t);null!==n;n=ua(n)){if(!(2&n[h.Wg1]))continue;const a=n[h.nfM];for(let o=0;o0&&(a[p-1][h.K29]=n),o0&&(t[a-1][h.K29]=o[h.K29]);const M=(0,h.E6O)(t,h.Y20+n);J4(o[h.eDl],o);const k=M[h.Ds7];null!==k&&k.detachView(M[h.eDl]),o[h.f7T]=null,o[h.K29]=null,o[h.Wg1]&=-129}return o}function co(t,n){const a=t[h.nfM],o=n[h.f7T];((0,h.q$2)(o)||n[h.b5C]!==o[h.f7T][h.b5C])&&(t[h.Wg1]|=2),null===a?t[h.nfM]=[n]:a.push(n)}class o1{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const n=this._lView,a=n[h.eDl];return z1(a,n,a.firstChild,[])}constructor(n,a){this._lView=n,this._cdRefInjectingView=a}get context(){return this._lView[h.SKP]}set context(n){this._lView[h.SKP]=n}get destroyed(){return(0,h.EPY)(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[h.f7T];if((0,h.A0l)(n)){const a=n[h.bm_],o=a?a.indexOf(this):-1;o>-1&&(V1(n,o),(0,h.E6O)(a,o))}this._attachedToViewContainer=!1}Td(this._lView[h.eDl],this._lView)}onDestroy(n){(0,h.ik5)(this._lView,n)}markForCheck(){r1(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[h.Wg1]&=-129}reattach(){(0,h._gW)(this._lView),this._lView[h.Wg1]|=128}detectChanges(){this._lView[h.Wg1]|=1024,G2(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new h.buA(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const n=(0,h.EFk)(this._lView),a=this._lView[h.rQE];null!==a&&!n&&w2(a,this._lView),q4(this._lView[h.eDl],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new h.buA(902,!1);this._appRef=n;const a=(0,h.EFk)(this._lView),o=this._lView[h.rQE];null!==o&&!a&&co(o,this._lView),(0,h._gW)(this._lView)}}let U1=(()=>class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=E3;constructor(a,o,p){this._declarationLView=a,this._declarationTContainer=o,this.elementRef=p}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(a,o){return this.createEmbeddedViewImpl(a,o)}createEmbeddedViewImpl(a,o,p){const M=cc(this._declarationLView,this._declarationTContainer,a,{embeddedViewInjector:o,dehydratedView:p});return new o1(M)}})();function E3(){return Od((0,h.Mx4)(),(0,h.OAn)())}function Od(t,n){return 4&t.type?new U1(n,t,Ka(t,n)):null}function zu(t,n,a){const o=n.insertBeforeIndex,p=Array.isArray(o)?o[0]:o;return null===p?n3(t,0,a):(0,h.IvY)(a[p])}function Nd(t,n,a,o,p){const M=n.insertBeforeIndex;if(Array.isArray(M)){let k=o,z=null;if(3&n.type||(z=k,k=p),null!==k&&-1===n.componentOffset)for(let Y=1;Y1)for(let a=t.length-2;a>=0;a--){const o=t[a];Dc(o)||L3(o,n)&&null===I3(o)&&k3(o,n.index)}}function Dc(t){return!(64&t.type)}function L3(t,n){return Dc(n)||t.index>n.index}function I3(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function k3(t,n){const a=t.insertBeforeIndex;Array.isArray(a)?a[0]=n:(i3(zu,Nd),t.insertBeforeIndex=n)}function zd(t,n){const a=t.data[n];return null===a||"string"==typeof a?null:a.hasOwnProperty("currentCaseLViewIndex")?a:a.value}function P3(t,n,a){const o=Bd(t,a,64,null,null);return mm(n,o),o}function Z2(t,n){const a=n[t.currentCaseLViewIndex];return null===a?a:a<0?~a:a}function Vu(t){return t>>>17}function Uu(t){return(131070&t)>>>1}function J2(t,n,a){t.index=0;const o=Z2(n,a);t.removes=null!==o?n.remove[o]:h.Mlv}function Vd(t){if(t.index0?t.lView[n]:(t.stack.push(t.index,t.removes),J2(t,t.lView[h.eDl].data[~n],t.lView),Vd(t))}return 0===t.stack.length?(t.lView=void 0,null):(t.removes=t.stack.pop(),t.index=t.stack.pop(),Vd(t))}function z3(){const t={stack:[],index:-1};return function n(a,o){for(t.lView=o;t.stack.length;)t.stack.pop();return J2(t,a.value,o),Vd.bind(null,t)}}function m(t,n,a){for(const o of a.node.cases[a.case]){const p=n.get(o.index-h.Yw1);p&&C1(t,p,!1)}}function E(t){const n=t[h.qFA]??[],o=t[h.f7T][h.GpT],p=[];for(const M of n)void 0!==M.data.di?p.push(M):I(M,o);t[h.qFA]=p}function D(t){const{lContainer:n}=t,a=n[h.qFA];if(null===a)return;const p=n[h.f7T][h.GpT];for(const M of a)I(M,p)}function I(t,n){let a=0,o=t.firstChild;if(o){const p=t.data.r;for(;aclass t{destroyNode=null;static __NG_ELEMENT_ID__=()=>function K3(){const t=(0,h.OAn)(),n=(0,h.Mx4)(),a=(0,h.KdJ)(n.index,t);return((0,h.q$2)(a)?a:t)[h.GpT]}()})(),h1=(()=>{class t{static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:()=>null})}return t})();function X1(t){return void 0!==t.ngModule}function zc(t){return!!(0,h.phH)(t)}function K1(t){return!!(0,h.oyA)(t)}function aa(t){return!!(0,h.HaV)(t)}function la(t){return!!(0,h.xUg)(t)}function Ya(t,n){if((0,h.Jzi)(t)&&!(t=(0,h.nl4)(t)))throw new Error(`Expected forwardRef function, imported from "${(0,h.PP7)(n)}", to return a standalone entity or NgModule but got "${(0,h.PP7)(t)||t}".`);if(null==(0,h.phH)(t)){const a=(0,h.xUg)(t)||(0,h.HaV)(t)||(0,h.oyA)(t);if(null==a)throw X1(t)?new Error(`A module with providers was imported from "${(0,h.PP7)(n)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${(0,h.PP7)(t)}" type, imported from "${(0,h.PP7)(n)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!a.standalone)throw new Error(`The "${(0,h.PP7)(t)}" ${function ya(t){return(0,h.xUg)(t)?"component":(0,h.HaV)(t)?"directive":(0,h.oyA)(t)?"pipe":"type"}(t)}, imported from "${(0,h.PP7)(n)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class uo{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const n of this.ngModulesWithSomeUnresolvedDecls){const a=(0,h.phH)(n);if(a?.declarations)for(const o of Ql(a.declarations))la(o)&&this.ownerNgModule.set(o,n)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(n,a){this.resolveNgModulesDecls();const o=(0,h.xUg)(n);if(null===o)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${n}`);if(o.standalone){const p=this.getStandaloneComponentScope(n,a);return p.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...p.compilation.directives,...p.compilation.pipes,...p.compilation.ngModules]}}{if(!this.ownerNgModule.has(n))return{dependencies:[]};const p=this.getNgModuleScope(this.ownerNgModule.get(n));return p.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...p.compilation.directives,...p.compilation.pipes]}}}registerNgModule(n,a){if(!zc(n))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${n}`);this.ngModulesWithSomeUnresolvedDecls.add(n)}clearScopeCacheFor(n){this.ngModulesScopeCache.delete(n),this.standaloneComponentsScopeCache.delete(n)}getNgModuleScope(n){if(this.ngModulesScopeCache.has(n))return this.ngModulesScopeCache.get(n);const a=this.computeNgModuleScope(n);return this.ngModulesScopeCache.set(n,a),a}computeNgModuleScope(n){const a=(0,h.WbQ)(n),o={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const p of Ql(a.imports))if(zc(p)){const M=this.getNgModuleScope(p);_o(M.exported.directives,o.compilation.directives),_o(M.exported.pipes,o.compilation.pipes)}else{if(!(0,h.QuC)(p)){o.compilation.isPoisoned=!0;break}if(aa(p)||la(p))o.compilation.directives.add(p);else{if(!K1(p))throw new h.buA(980,"The standalone imported type is neither a component nor a directive nor a pipe");o.compilation.pipes.add(p)}}if(!o.compilation.isPoisoned)for(const p of Ql(a.declarations)){if(zc(p)||(0,h.QuC)(p)){o.compilation.isPoisoned=!0;break}K1(p)?o.compilation.pipes.add(p):o.compilation.directives.add(p)}for(const p of Ql(a.exports))if(zc(p)){const M=this.getNgModuleScope(p);_o(M.exported.directives,o.exported.directives),_o(M.exported.pipes,o.exported.pipes),_o(M.exported.directives,o.compilation.directives),_o(M.exported.pipes,o.compilation.pipes)}else K1(p)?o.exported.pipes.add(p):o.exported.directives.add(p);return o}getStandaloneComponentScope(n,a){if(this.standaloneComponentsScopeCache.has(n))return this.standaloneComponentsScopeCache.get(n);const o=this.computeStandaloneComponentScope(n,a);return this.standaloneComponentsScopeCache.set(n,o),o}computeStandaloneComponentScope(n,a){const o={compilation:{directives:new Set([n]),pipes:new Set,ngModules:new Set}};for(const p of(0,h.Bqz)(a??[])){const M=(0,h.nl4)(p);try{Ya(M,n)}catch{return o.compilation.isPoisoned=!0,o}if(zc(M)){o.compilation.ngModules.add(M);const k=this.getNgModuleScope(M);if(k.exported.isPoisoned)return o.compilation.isPoisoned=!0,o;_o(k.exported.directives,o.compilation.directives),_o(k.exported.pipes,o.compilation.pipes)}else if(K1(M))o.compilation.pipes.add(M);else{if(!aa(M)&&!la(M))return o.compilation.isPoisoned=!0,o;o.compilation.directives.add(M)}}return o}isOrphanComponent(n){const a=(0,h.xUg)(n);return!(!a||a.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(n)))}}function _o(t,n){for(const a of t)n.add(a)}const vo=new uo,dc={};class ys{injector;parentInjector;constructor(n,a){this.injector=n,this.parentInjector=a}get(n,a,o){const p=this.injector.get(n,dc,o);return p!==dc||a===dc?p:this.parentInjector.get(n,a,o)}}function Y1(t,n,a){let o=a?t.styles:null,p=a?t.classes:null,M=0;if(null!==n)for(let k=0;k0&&(a.directiveToIndex=new Map);for(let hn=0;hn0;){const a=t[--n];if("number"==typeof a&&a<0)return a}return 0})(k)!=z&&k.push(z),k.push(a,o,M)}}(t,n,o,T1(t,a,p.hostVars,qa),p)}function gg(t,n,a){if(a){if(n.exportAs)for(let o=0;oY?z[Y]:null}"string"==typeof k&&(M+=2)}return null}(n,a,M,t.index)),null!==it)(it.__ngLastListenerFn__||it).__ngNextListenerFn__=k,it.__ngLastListenerFn__=k,ze=!0;else{const zt=(0,h.d31)(t,a),hn=o?o(zt):zt,fn=p.listen(hn,M,z);(function _g(t){return t.startsWith("animation")||t.startsWith("transition")})(M)||Jf(o?Si=>o((0,h.IvY)(Si[t.index])):t.index,n,a,M,z,fn,!1)}return ze}function Jf(t,n,a,o,p,M,k){const z=n.firstCreatePass?(0,h.vNG)(n):null,Y=(0,h.d_l)(a),ze=Y.length;Y.push(p,M),z&&z.push(o,t,ze,(ze+1)*(k?-1:1))}function q3(t,n,a,o,p,M){const z=n[h.eDl],zt=n[a][z.data[a].outputs[o]].subscribe(M);Jf(t.index,z,n,p,M,zt,!0)}const $1=Symbol("BINDING");class tp extends ps{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const a=(0,h.xUg)(n);return new c0(a,this.ngModule)}}class c0 extends Fa{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function Tg(t){return Object.keys(t).map(n=>{const[a,o,p]=t[n],M={propName:a,templateName:n,isSignal:0!==(o&D1.SignalBased)};return p&&(M.transform=p),M})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function Dg(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}(this.componentDef.outputs),this.cachedOutputs}constructor(n,a){super(),this.componentDef=n,this.ngModule=a,this.componentType=n.type,this.selector=function j4(t){return t.map(G4).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!a}create(n,a,o,p,M,k){we(22);const z=(0,jt.Ht)(null);try{const Y=this.componentDef,ze=function sp(t,n,a,o){const p=t?["ng-version","20.3.26"]:function H4(t){const n=[],a=[];let o=1,p=2;for(;o{if(1&a&&t)for(const o of t)o.create();if(2&a&&n)for(const o of n)o.update()}:null}(M,k),1,z,Y,null,null,null,[p],null)}(o,Y,k,M),it=function Ag(t,n,a){let o=n instanceof h.uvJ?n:n?.injector;return o&&null!==t.getStandaloneInjector&&(o=t.getStandaloneInjector(o)||o),o?new ys(a,o):a}(Y,p||this.ngModule,n),zt=function Lg(t){const n=t.get(xl,null);if(null===n)throw new h.buA(407,!1);return{rendererFactory:n,sanitizer:t.get(h1,null),changeDetectionScheduler:t.get(h.hk6,null),ngReflect:!1}}(it),hn=zt.rendererFactory.createRenderer(null,Y),fn=o?function a1(t,n,a,o){const M=o.get(Ul,!1)||a===Bi.ShadowDom,k=t.selectRootElement(n,M);return function Cu(t){xu(t)}(k),k}(hn,o,Y.encapsulation,it):function np(t,n){const a=function ap(t){return(t.selectors[0][0]||"div").toLowerCase()}(t);return hd(n,a,"svg"===a?h.jNX:"math"===a?h.rJ1:null)}(Y,hn);!function ip(t){if("script"===t?.toLowerCase())throw new h.buA(905,!1)}(fn?.tagName);const qn=k?.some(wc)||M?.some(na=>"function"!=typeof na&&na.bindings.some(wc)),Si=M1(null,ze,null,512|S1(Y),null,null,zt,hn,it,null,null);Si[h.Yw1]=fn,(0,h.ID8)(Si);let Xi=null;try{const na=r0(h.Yw1,Si,2,"#host",()=>ze.directiveRegistry,!0,0);zs(hn,fn,na),wa(fn,Si),R2(ze,Si,na),Wa(ze,na,Si),Q3(ze,na),void 0!==a&&function eh(t,n,a){const o=t.projection=[];for(let p=0;pclass t{static __NG_ELEMENT_ID__=rp})();function rp(){return Ac((0,h.Mx4)(),(0,h.OAn)())}const Tm=$o,Dm=class extends Tm{_lContainer;_hostTNode;_hostLView;constructor(n,a,o){super(),this._lContainer=n,this._hostTNode=a,this._hostLView=o}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new U(this._hostTNode,this._hostLView)}get parentInjector(){const n=bn(this._hostTNode,this._hostLView);if(ra(n)){const a=qt(n,this._hostLView),o=fa(n);return new U(a[h.eDl].data[o+8],a)}return new U(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const a=qu(this._lContainer);return null!==a&&a[n]||null}get length(){return this._lContainer.length-h.Y20}createEmbeddedView(n,a,o){let p,M;"number"==typeof o?p=o:null!=o&&(p=o.index,M=o.injector);const z=n.createEmbeddedViewImpl(a||{},M,null);return this.insertImpl(z,p,Nc(this._hostTNode,null)),z}createComponent(n,a,o,p,M,k,z){const Y=n&&!at(n);let ze;if(Y)ze=a;else{const Xi=a||{};ze=Xi.index,o=Xi.injector,p=Xi.projectableNodes,M=Xi.environmentInjector||Xi.ngModuleRef,k=Xi.directives,z=Xi.bindings}const it=Y?n:new c0((0,h.xUg)(n)),zt=o||this.parentInjector;if(!M&&null==it.ngModule){const na=(Y?zt:this.parentInjector).get(h.uvJ,null);na&&(M=na)}(0,h.xUg)(it.componentType??{});const Si=it.create(zt,p,null,M,k,z);return this.insertImpl(Si.hostView,ze,Nc(this._hostTNode,null)),Si}insert(n,a){return this.insertImpl(n,a,!0)}insertImpl(n,a,o){const p=n._lView;if((0,h.ITl)(p)){const z=this.indexOf(n);if(-1!==z)this.detach(z);else{const Y=p[h.f7T],ze=new Dm(Y,Y[h.qlT],Y[h.f7T]);ze.detach(ze.indexOf(n))}}const M=this._adjustIndex(a),k=this._lContainer;return Bc(k,p,M,o),n.attachToViewContainerRef(),(0,h.EYC)(d0(k),M,n),n}move(n,a){return this.insert(n,a)}indexOf(n){const a=qu(this._lContainer);return null!==a?a.indexOf(n):-1}remove(n){const a=this._adjustIndex(n,-1),o=V1(this._lContainer,a);o&&((0,h.E6O)(d0(this._lContainer),a),Td(o[h.eDl],o))}detach(n){const a=this._adjustIndex(n,-1),o=V1(this._lContainer,a);return o&&null!=(0,h.E6O)(d0(this._lContainer),a)?new o1(o):null}_adjustIndex(n,a=0){return n??this.length+a}};function qu(t){return t[h.bm_]}function d0(t){return t[h.bm_]||(t[h.bm_]=[])}function Ac(t,n){let a;const o=n[t.index];return(0,h.A0l)(o)?a=o:(a=Fu(o,n,null,t),n[t.index]=a,yd(n,a)),ma(a,n,t,o),new Dm(a,t,n)}let ma=function th(t,n,a,o){if(t[h.s6P])return;let p;p=8&a.type?(0,h.IvY)(o):function u0(t,n){const a=t[h.GpT],o=a.createComment(""),p=(0,h.d31)(n,t),M=a.parentNode(p);return Cc(a,M,o,a.nextSibling(p),!1),o}(n,a),t[h.s6P]=p};class ah{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new ah(this.queryList)}setDirty(){this.queryList.setDirty()}}class t4{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){const a=n.queries;if(null!==a){const o=null!==n.contentQueries?n.contentQueries[0]:a.length,p=[];for(let M=0;Mn.trim())}(n):n}}class h0{queries;constructor(n=[]){this.queries=n}elementStart(n,a){for(let o=0;o0)o.push(k[z/2]);else{const ze=M[z+1],it=n[-Y];for(let zt=h.Y20;zt{o._dirtyCounter();const M=function a4(t,n){const a=t._lView,o=t._queryIndex;if(void 0===a||void 0===o||4&a[h.Wg1])return n?void 0:h.Mlv;const p=n4(a,o),M=ch(a,o);return p.reset(M,kr),n?p.first:p._changesDetected||void 0===t._flatValue?t._flatValue=p.toArray():t._flatValue}(o,t);if(n&&void 0===M)throw new h.buA(-951,!1);return M});return o=p[jt.bh],o._dirtyCounter=(0,h.vPA)(0),o._flatValue=void 0,p}function p0(t){return f0(!0,!1)}function Qr(t){return f0(!0,!0)}function km(t){return f0(!1,!1)}function Wd(t,n){const a=t[jt.bh];a._lView=(0,h.OAn)(),a._queryIndex=n,a._queryList=n4(a._lView,n),a._queryList.onDirty(()=>a._dirtyCounter.update(o=>o+1))}function lp(t){const n=[],a=new Map;function o(p){let M=a.get(p);if(!M){const k=t(p);a.set(p,M=k.then(z=>function Pm(t,n){return"string"==typeof n?n:void 0!==n.status&&200!==n.status?Promise.reject(new h.buA(918,!1)):n.text()}(0,z)))}return M}return q1.forEach((p,M)=>{const k=[];p.templateUrl&&k.push(o(p.templateUrl).then(ze=>{p.template=ze}));const z="string"==typeof p.styles?[p.styles]:p.styles||[];if(p.styles=z,p.styleUrl&&p.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(p.styleUrls?.length){const ze=p.styles.length,it=p.styleUrls;p.styleUrls.forEach((zt,hn)=>{z.push(""),k.push(o(zt).then(fn=>{z[ze+hn]=fn,it.splice(it.indexOf(zt),1),0==it.length&&(p.styleUrls=void 0)}))})}else p.styleUrl&&k.push(o(p.styleUrl).then(ze=>{z.push(ze),p.styleUrl=void 0}));const Y=Promise.all(k).then(()=>function r4(t){Gc.delete(t)}(M));n.push(Y)}),function s4(){const t=q1;q1=new Map}(),Promise.all(n).then(()=>{})}let q1=new Map;const Gc=new Set;function dp(){return 0===q1.size}const o4=new Map;function dh(t,n){(function up(t,n,a){if(n&&n!==a)throw new Error(`Duplicate module registered for ${t} - ${(0,h.AsM)(n)} vs ${(0,h.AsM)(n.name)}`)})(n,o4.get(n)||null,t),o4.set(n,t)}let Xd=class{},hl=class{};function Fm(t,n){return new c4(t,n??null,[])}class c4 extends Xd{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new tp(this);constructor(n,a,o,p=!0){super(),this.ngModuleType=n,this._parent=a;const M=(0,h.phH)(n);this._bootstrapComponents=Ql(M.bootstrap),this._r3Injector=(0,h.Pz9)(n,a,[{provide:Xd,useValue:this},{provide:ps,useValue:this.componentFactoryResolver},...o],(0,h.AsM)(n),new Set(["environment"])),p&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(a=>a()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class mp extends hl{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new c4(this.moduleType,n,[])}}function fp(t,n,a){return new c4(t,n,a,!1)}class Og extends Xd{injector;componentFactoryResolver=new tp(this);instance=null;constructor(n){super();const a=new h.e5P([...n.providers,{provide:Xd,useValue:this},{provide:ps,useValue:this.componentFactoryResolver}],n.parent||(0,h.WB9)(),n.debugName,new Set(["environment"]));this.injector=a,n.runEnvironmentInitializers&&a.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nm(t,n,a=null){return new Og({providers:t,parent:n,debugName:a,runEnvironmentInitializers:!0}).injector}let Rg=(()=>{class t{_injector;cachedInjectors=new Map;constructor(a){this._injector=a}getOrCreateStandaloneInjector(a){if(!a.standalone)return null;if(!this.cachedInjectors.has(a)){const o=(0,h.jXY)(!1,a.type),p=o.length>0?Nm([o],this._injector,`Standalone[${a.type.name}]`):null;this.cachedInjectors.set(a,p)}return this.cachedInjectors.get(a)}ngOnDestroy(){try{for(const a of this.cachedInjectors.values())null!==a&&a.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,h.jDH)({token:t,providedIn:"environment",factory:()=>new t((0,h.KVO)(h.uvJ))})}return t})();function pp(t){return Pt(()=>{const n=jc(t),a={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ls.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?p=>p.get(Rg).getOrCreateStandaloneInjector(a):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Bi.Emulated,styles:t.styles||h.Mlv,_:null,schemas:t.schemas||null,tView:null,id:""};n.standalone&&Yr("NgStandalone"),f1(a);const o=t.dependencies;return a.directiveDefs=d4(o,gp),a.pipeDefs=d4(o,h.oyA),a.id=function Ng(t){let n=0;const o=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,"function"==typeof t.consts?"":t.consts,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(const M of o.join("|"))n=Math.imul(31,n)+M.charCodeAt(0)|0;return n+=2147483648,"c"+n}(a),a})}function gp(t){return(0,h.xUg)(t)||(0,h.HaV)(t)}function _p(t){return Pt(()=>({type:t.type,bootstrap:t.bootstrap||h.Mlv,declarations:t.declarations||h.Mlv,imports:t.imports||h.Mlv,exports:t.exports||h.Mlv,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Pg(t,n){if(null==t)return h.MZA;const a={};for(const o in t)if(t.hasOwnProperty(o)){const p=t[o];let M,k,z,Y;Array.isArray(p)?(z=p[0],M=p[1],k=p[2]??M,Y=p[3]||null):(M=p,k=p,z=D1.None,Y=null),a[M]=[o,z,Y],n[M]=k}return a}function vp(t){if(null==t)return h.MZA;const n={};for(const a in t)t.hasOwnProperty(a)&&(n[t[a]]=a);return n}function Bm(t){return Pt(()=>{const n=jc(t);return f1(n),n})}function zm(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jc(t){const n={};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:n,inputConfig:t.inputs||h.MZA,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:!0===t.signals,selectors:t.selectors||h.Mlv,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Pg(t.inputs,n),outputs:vp(t.outputs),debugInfo:null}}function f1(t){t.features?.forEach(n=>n(t))}function d4(t,n){return t?()=>{const a="function"==typeof t?t():t,o=[];for(const p of a){const M=n(p);null!==M&&o.push(M)}return o}:null}function yp(t){return Object.getPrototypeOf(t.prototype).constructor}function uh(t){let n=yp(t.type),a=!0;const o=[t];for(;n;){let p;if((0,h.JlV)(t))p=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new h.buA(903,!1);p=n.\u0275dir}if(p){if(a){o.push(p);const k=t;k.inputs=hh(t.inputs),k.declaredInputs=hh(t.declaredInputs),k.outputs=hh(t.outputs);const z=p.hostBindings;z&&Vg(t,z);const Y=p.viewQuery,ze=p.contentQueries;if(Y&&bp(t,Y),ze&&zg(t,ze),Bg(t,p),(0,h.dwj)(t.outputs,p.outputs),(0,h.JlV)(p)&&p.data.animation){const it=t.data;it.animation=(it.animation||[]).concat(p.data.animation)}}const M=p.features;if(M)for(let k=0;k=0;o--){const p=t[o];p.hostVars=n+=p.hostVars,p.hostAttrs=Bn(p.hostAttrs,a=Bn(a,p.hostAttrs))}}(o)}function Bg(t,n){for(const a in n.inputs){if(!n.inputs.hasOwnProperty(a)||t.inputs.hasOwnProperty(a))continue;const o=n.inputs[a];void 0!==o&&(t.inputs[a]=o,t.declaredInputs[a]=n.declaredInputs[a])}}function hh(t){return t===h.MZA?{}:t===h.Mlv?[]:t}function bp(t,n){const a=t.viewQuery;t.viewQuery=a?(o,p)=>{n(o,p),a(o,p)}:n}function zg(t,n){const a=t.contentQueries;t.contentQueries=a?(o,p,M)=>{n(o,p,M),a(o,p,M)}:n}function Vg(t,n){const a=t.hostBindings;t.hostBindings=a?(o,p)=>{n(o,p),a(o,p)}:n}const Um=["providersResolver"],g0=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Cp(t){const n=a=>{const o=Array.isArray(t);null===a.hostDirectives?(a.resolveHostDirectives=Ug,a.hostDirectives=o?t.map(mh):[t]):o?a.hostDirectives.unshift(...t.map(mh)):a.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function Ug(t){const n=[];let a=!1,o=null,p=null;for(let M=0;M{Q.has(t)&&(o.callbacks.delete(n),0===o.callbacks.size&&(Mt?.unobserve(t),Q.delete(t),Kt--),0===Kt&&(Mt?.disconnect(),Mt=null))}}(t,()=>o.run(n),()=>o.runOutsideAngular(()=>function La(){return new IntersectionObserver(t=>{for(const n of t)n.isIntersecting&&Q.has(n.target)&&Q.get(n.target).listener()})}()))}function td(t,n,a,o,p,M,k){const z=t[h.YEL],Y=z.get(ms);let ze;ze=function du(t,n){const a=n?.injector??(0,h.WQX)(h.zZn);return Yr("NgAfterRender"),hu(t,a,n,!1)}({read:function it(){if((0,h.EPY)(t))return void ze.destroy();const zt=Bl(t,n),hn=zt[1];if(hn!==_0.Initial&&hn!==Is.Placeholder)return void ze.destroy();const fn=function Ch(t,n,a){return null==a?t:a>=0?(0,h.jRZ)(a,t):t[n.index][h.Y20]??null}(t,n,o);if(!fn||(ze.destroy(),(0,h.EPY)(fn)))return;const qn=function $g(t,n){return(0,h.vaC)(h.Yw1+n,t)}(fn,a),Si=p(qn,()=>{Y.run(()=>{t!==fn&&(0,h.DyX)(fn,Si),M()})},z);t!==fn&&(0,h.ik5)(fn,Si),f4(k,zt,Si)}},{injector:z})}function p4(t,n){const a=n.get(g);return a.add(t),()=>a.remove(t)}let g=(()=>{class t{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=(0,h.WQX)(ms);requestIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout)().bind(globalThis);add(a){(this.executingCallbacks?this.deferred:this.current).add(a),null===this.idleId&&this.scheduleIdleCallback()}remove(a){const{current:o,deferred:p}=this;o.delete(a),p.delete(a),0===o.size&&0===p.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const a=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const o of this.current)o();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const o of this.deferred)this.current.add(o);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(a))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:()=>new t})}return t})();function c(t){return(n,a)=>r(t,n,a)}function r(t,n,a){const o=a.get(y),p=a.get(ms);return o.add(t,n,p),()=>o.remove(n)}let y=(()=>{class t{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(a,o,p){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+a,o),this.scheduleTimer(p)}remove(a){const{current:o,deferred:p}=this;-1===this.removeFromQueue(o,a)&&this.removeFromQueue(p,a),0===o.length&&0===p.length&&this.clearTimeout()}addToQueue(a,o,p){let M=a.length;for(let k=0;ko){M=k;break}(0,h.llW)(a,M,o,p)}removeFromQueue(a,o){let p=-1;for(let M=0;M-1&&(0,h.gsJ)(a,p,2),p}scheduleTimer(a){const o=()=>{this.clearTimeout(),this.executingCallbacks=!0;const M=[...this.current],k=Date.now();for(let Y=0;Y=0&&(0,h.gsJ)(this.current,0,z+1),this.executingCallbacks=!1,this.deferred.length>0){for(let Y=0;Y0){const M=Date.now(),k=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-k>16){this.clearTimeout();const z=Math.max(k-M,16);this.invokeTimerAt=k,this.timeoutId=a.runOutsideAngular(()=>setTimeout(()=>a.run(o),z))}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=(0,h.jDH)({token:t,providedIn:"root",factory:()=>new t})}return t})(),x=(()=>{class t{cachedInjectors=new Map;getOrCreateInjector(a,o,p,M){if(!this.cachedInjectors.has(a)){const k=p.length>0?Nm(p,o,M):null;this.cachedInjectors.set(a,k)}return this.cachedInjectors.get(a)}ngOnDestroy(){try{for(const a of this.cachedInjectors.values())null!==a&&a.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,h.jDH)({token:t,providedIn:"environment",factory:()=>new t})}return t})();const ue=new h.nKC("");function xt(t,n,a){return t.get(x).getOrCreateInjector(n,t,a,"")}function sn(t,n,a,o=!1){const p=a[h.f7T],M=p[h.eDl];if((0,h.EPY)(p))return;const k=Bl(p,n),Y=k[7];if(!(null!==Y&&t0&&(it=function Rt(t,n,a){if(t instanceof ys){const p=t.injector,k=xt(t.parentInjector,n,a);return new ys(p,k)}const o=t.get(h.uvJ);if(o!==t){const p=xt(o,n,a);return new ys(t,p)}return xt(t,n,a)}(p[h.YEL],qn,Si))}const{dehydratedView:zt,dehydratedViewIx:hn}=function wn(t,n){const a=t[h.qFA]?.findIndex(p=>p.data.s===n[1])??-1;return{dehydratedView:a>-1?t[h.qFA][a]:null,dehydratedViewIx:a}}(a,n),fn=cc(p,Y,null,{injector:it,dehydratedView:zt});if(Bc(a,fn,ze,Nc(Y,zt)),r1(fn,2),hn>-1&&a[h.qFA]?.splice(hn,1),(t===Is.Complete||t===Is.Error)&&Array.isArray(n[8])){for(const qn of n[8])qn();n[8]=null}}we(21)}function _i(t,n,a,o,p){const M=Date.now(),z=yo(p[h.eDl],o);if(null===n[2]||n[2]<=M){n[2]=null;const Y=yh(z),ze=null!==n[3];if(t!==Is.Loading||null===Y||ze){t>Is.Loading&&ze&&(n[3](),n[3]=null,n[0]=null),An(t,n,a,o,p);const it=Km(z,t);null!==it&&(n[2]=M+it,pi(it,n,o,a,p))}else{n[0]=t;const it=pi(Y,n,o,a,p);n[3]=it}}else n[0]=t}function pi(t,n,a,o,p){return r(t,()=>{const k=n[0];n[2]=null,n[0]=null,null!==k&&sn(k,a,o)},p[h.YEL])}function Ji(t,n){return t{t.loadingState===Ur.COMPLETE?sn(Is.Complete,n,a):t.loadingState===Ur.FAILED&&sn(Is.Error,n,a)})}let pa=null;function ks(t,n,a,o){return Pt(()=>{const p=t;null!==n&&(p.hasOwnProperty("decorators")&&void 0!==p.decorators?p.decorators.push(...n):p.decorators=n),null!==a&&(p.ctorParameters=a),null!==o&&(p.propDecorators=p.hasOwnProperty("propDecorators")&&void 0!==p.propDecorators?{...p.propDecorators,...o}:o)})}let Os=(()=>{class t{log(a){console.log(a)}warn(a){console.warn(a)}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const l_=new h.nKC(""),c_=new h.nKC("");let Np,C7=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(a,o,p){this._ngZone=a,this.registry=o,(0,h.M6u)()&&(this._destroyRef=(0,h.WQX)(h.abz,{optional:!0})??void 0),Np||(function x7(t){Np=t}(p),p.addToWindow(o)),this._watchAngularEvents(),a.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const a=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),o=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{ms.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{a.unsubscribe(),o.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let a=this._callbacks.pop();clearTimeout(a.timeoutId),a.doneCb()}});else{let a=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(a)||(clearTimeout(o.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(a=>({source:a.source,creationLocation:a.creationLocation,data:a.data})):[]}addCallback(a,o,p){let M=-1;o&&o>0&&(M=setTimeout(()=>{this._callbacks=this._callbacks.filter(k=>k.timeoutId!==M),a()},o)),this._callbacks.push({doneCb:a,timeoutId:M,updateCb:p})}whenStable(a,o,p){if(p&&!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(a,o,p),this._runCallbacksIfReady()}registerApplication(a){this.registry.registerApplication(a,this)}unregisterApplication(a){this.registry.unregisterApplication(a)}findProviders(a,o,p){return[]}static \u0275fac=function(o){return new(o||t)((0,h.KVO)(ms),(0,h.KVO)($m),(0,h.KVO)(c_))};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac})}return t})(),$m=(()=>{class t{_applications=new Map;registerApplication(a,o){this._applications.set(a,o)}unregisterApplication(a){this._applications.delete(a)}unregisterAllApplications(){this._applications.clear()}getTestability(a){return this._applications.get(a)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(a,o=!0){return Np?.findTestabilityInTree(this,a,o)??null}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function d_(t){return!!t&&"function"==typeof t.then}function u_(t){return!!t&&"function"==typeof t.subscribe}const h_=new h.nKC("");function E7(t){return(0,h.EmA)([{provide:h_,multi:!0,useValue:t}])}let Bp=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((a,o)=>{this.resolve=a,this.reject=o});appInits=(0,h.WQX)(h_,{optional:!0})??[];injector=(0,h.WQX)(h.zZn);constructor(){}runInitializers(){if(this.initialized)return;const a=[];for(const p of this.appInits){const M=(0,h.N4e)(this.injector,p);if(d_(M))a.push(M);else if(u_(M)){const k=new Promise((z,Y)=>{M.subscribe({complete:z,error:Y})});a.push(k)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(a).then(()=>{o()}).catch(p=>{this.reject(p)}),0===a.length&&o(),this.initialized=!0}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const m_=new h.nKC("");function f_(){}function M7(){(0,jt.KO)(()=>{throw new h.buA(600,"")})}function p_(t,n){return Array.isArray(n)?n.reduce(p_,t):{...t,...n}}let Zm=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=(0,h.WQX)(h.ZTf);afterRenderManager=(0,h.WQX)(Sd);zonelessEnabled=(0,h.WQX)(h.Evm);rootEffectScheduler=(0,h.WQX)(h.VML);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ue.B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=(0,h.WQX)(h.rev);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,pt.T)(a=>!a))}constructor(){(0,h.WQX)(rc,{optional:!0})}whenStable(){let a;return new Promise(o=>{a=this.isStable.subscribe({next:p=>{p&&o()}})}).finally(()=>{a.unsubscribe()})}_injector=(0,h.WQX)(h.uvJ);_rendererFactory=null;get injector(){return this._injector}bootstrap(a,o){return this.bootstrapImpl(a,o)}bootstrapImpl(a,o,p=h.zZn.NULL){return this._injector.get(ms).run(()=>{we(10);const k=a instanceof Fa;if(!this._injector.get(Bp).done)throw new h.buA(405,"");let Y;Y=k?a:this._injector.get(ps).resolveComponentFactory(a),this.componentTypes.push(Y.componentType);const ze=function S7(t){return t.isBoundToModule}(Y)?void 0:this._injector.get(Xd),zt=Y.create(p,[],o||Y.selector,ze),hn=zt.location.nativeElement,fn=zt.injector.get(l_,null);return fn?.registerApplication(hn),zt.onDestroy(()=>{this.detachView(zt.hostView),Eh(this.components,zt),fn?.unregisterApplication(hn)}),this._loadComponent(zt),we(11,zt),zt})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){we(12),null!==this.tracingSnapshot?this.tracingSnapshot.run(L1.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new h.buA(101,!1);const a=(0,jt.Ht)(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,(0,jt.Ht)(a),this.afterTick.next(),we(13)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(xl,null,{optional:!0}));let a=0;for(;0!==this.dirtyFlags&&a++<10;)we(14),this.synchronizeOnce(),we(15)}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let a=!1;if(7&this.dirtyFlags){const o=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:p}of this.allViews)(o||(0,h.dMS)(p))&&(G2(p,o&&!this.zonelessEnabled?0:1),a=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}a||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:a})=>(0,h.dMS)(a))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(a){const o=a;this._views.push(o),o.attachToAppRef(this)}detachView(a){const o=a;Eh(this._views,o),o.detachFromAppRef()}_loadComponent(a){this.attachView(a.hostView);try{this.tick()}catch(p){this.internalErrorHandler(p)}this.components.push(a),this._injector.get(m_,[]).forEach(p=>p(a))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(a=>a()),this._views.slice().forEach(a=>a.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(a){return this._destroyListeners.push(a),()=>Eh(this._destroyListeners,a)}destroy(){if(this._destroyed)throw new h.buA(406,!1);const a=this._injector;a.destroy&&!a.destroyed&&a.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Eh(t,n){const a=t.indexOf(n);a>-1&&t.splice(a,1)}function Vp(){let t,n;return{promise:new Promise((o,p)=>{t=o,n=p}),resolve:t,reject:n}}function Jm(t){const n=(0,h.OAn)(),a=(0,h.Mx4)();if(Xn(n,a),!__(0,n))return;const o=n[h.YEL];f4(0,Bl(n,a),t(()=>sd(0,n,a),o))}function Up(t){const n=(0,h.OAn)(),a=n[h.YEL],o=(0,h.Mx4)(),M=yo(n[h.eDl],o);M.loadingState===Ur.NOT_STARTED&&f4(1,Bl(n,o),t(()=>Mh(M,n,o),a))}function g_(t,n,a){const o=n[h.YEL],p=Bl(n,a),M=p[6];f4(2,p,t(()=>x0(o,M),o))}function Mh(t,n,a){Gp(t,n,a)}function Gp(t,n,a){const o=n[h.YEL],p=n[h.eDl];if(t.loadingState!==Ur.NOT_STARTED)return t.loadingPromise??Promise.resolve();const M=Bl(n,a),k=function Ip(t,n){return(0,h.XRZ)(t,n.primaryTmplIndex+h.Yw1)}(p,t);t.loadingState=Ur.IN_PROGRESS,vh(1,M);let z=t.dependencyResolverFn;const Y=o.get(h.u5s).add();return z?(t.loadingPromise=Promise.allSettled(z()).then(ze=>{let it=!1;const zt=[],hn=[];for(const fn of ze){if("fulfilled"!==fn.status){it=!0;break}{const qn=fn.value,Si=(0,h.xUg)(qn)||(0,h.HaV)(qn);if(Si)zt.push(Si);else{const Xi=(0,h.oyA)(qn);Xi&&hn.push(Xi)}}}if(it){if(t.loadingState=Ur.FAILED,null===t.errorTmplIndex){const qn=new h.buA(-750,!1);B1(n,qn)}}else{t.loadingState=Ur.COMPLETE;const fn=k.tView;if(zt.length>0){fn.directiveRegistry=Ym(fn.directiveRegistry,zt);const qn=zt.map(Xi=>Xi.type),Si=(0,h.jXY)(!1,...qn);t.providers=Si}hn.length>0&&(fn.pipeRegistry=Ym(fn.pipeRegistry,hn))}}),t.loadingPromise.finally(()=>{t.loadingPromise=null,Y()})):(t.loadingPromise=Promise.resolve().then(()=>{t.loadingPromise=null,t.loadingState=Ur.COMPLETE,Y()}),t.loadingPromise)}function __(t,n){return n[h.YEL].get(ue,null,{optional:!0})?.behavior!==wp.Manual}function sd(t,n,a){const o=n[h.eDl],p=n[a.index];if(!__(0,n))return;const M=Bl(n,a),k=yo(o,a);switch(Xm(M),k.loadingState){case Ur.NOT_STARTED:sn(Is.Loading,a,p),Gp(k,n,a),k.loadingState===Ur.IN_PROGRESS&&Vi(k,a,p);break;case Ur.IN_PROGRESS:sn(Is.Loading,a,p),Vi(k,a,p);break;case Ur.COMPLETE:sn(Is.Complete,a,p);break;case Ur.FAILED:sn(Is.Error,a,p)}}function x0(t,n,a){return jp.apply(this,arguments)}function jp(){return(jp=(0,Qn.A)(function*(t,n,a){const o=t.get(wo);if(o.hydrating.has(n))return;const{parentBlockPromise:M,hydrationQueue:k}=function _1(t,n){const a=n.get(wo),p=n.get(us).get("__nghDeferData__",{});let M=!1,k=t,z=null;const Y=[];for(;!M&&k;){M=a.has(k);const ze=a.hydrating.get(k);if(null===z&&null!=ze){z=ze.promise;break}Y.unshift(k),k=p[k].p}return{parentBlockPromise:z,hydrationQueue:Y}}(n,t);if(0===k.length)return;null!==M&&k.shift(),function y_(t,n){for(let a of n)t.hydrating.set(a,Vp())}(o,k),null!==M&&(yield M);const z=k[0];o.has(z)?yield Hp(t,k,a):o.awaitParentBlock(z,(0,Qn.A)(function*(){return yield Hp(t,k,a)}))})).apply(this,arguments)}function Hp(t,n,a){return Wp.apply(this,arguments)}function Wp(){return(Wp=(0,Qn.A)(function*(t,n,a){const o=t.get(wo),p=o.hydrating,M=t.get(h.rev),k=M.add();for(let Y=0;Y-1?a.get(n[o]):null;p&&Oe(p.lContainer)}function v_(t,n){const a=n.hydrating;for(const o in t)a.get(o)?.reject();n.cleanup(t)}function w7(t){return new Promise(n=>T2(n,{injector:t}))}function A7(t){return qm.apply(this,arguments)}function qm(){return(qm=(0,Qn.A)(function*(t){const{tNode:n,lView:a}=t,o=Bl(a,n);return new Promise(p=>{(function L7(t,n){Array.isArray(t[8])||(t[8]=[]),t[8].push(n)})(o,p),sd(0,a,n)})})).apply(this,arguments)}function $r(t,n,a){return 0===t?C_(n,a):2!==t||!C_(n,a)}function C_(t,n){const a=t[h.YEL],o=yo(t[h.eDl],n),p=oa(a),M=function b_(t){return null!=t&&!(1&~t)}(o.flags),z=null!==Bl(t,n)[6];return!(M&&z&&p)}function Qd(t,n){const a=yo(t,n);return a.hydrateTriggers??=new Map}function Kp(t,n){const a=(0,h.OAn)();if(cr(a,(0,h.xbp)(),n)){const p=(0,h.klJ)(),M=(0,h.CpD)();if(Id(M,p,a,t,n))(0,h.Qs1)(M)&&N2(a,M.index);else{const z=(0,h.d31)(M,a);wd(a[h.GpT],z,null,M.value,t,n,null)}}return Kp}function Yp(t,n,a,o){const p=(0,h.OAn)();return cr(p,(0,h.xbp)(),n)&&((0,h.klJ)(),function u3(t,n,a,o,p,M){const k=(0,h.d31)(t,n);wd(n[h.GpT],k,M,t.value,a,o,p)}((0,h.CpD)(),p,t,n,a,o)),Yp}const Y7=new h.nKC("",{providedIn:"root",factory:()=>!1}),Q7=new h.nKC("",{providedIn:"root",factory:()=>I_}),I_=4e3,$d=typeof document<"u"&&"function"==typeof document?.documentElement?.getAnimations;function ef(t){return t[h.YEL].get(Y7,!1)}function Qp(t){const n=g4.get(t);if(n){for(const a of n.cleanupFns)a();g4.delete(t)}E0.delete(t)}const O_=()=>{},g4=new WeakMap,E0=new WeakMap,_4=new WeakMap;function $p(t,n){const a=_4.get(t);if(a&&a.length>0){const o=a.findIndex(p=>p===n);o>-1&&a.splice(o,1)}0===a?.length&&_4.delete(t)}function Th(t,n){const a=_4.get(t)?.shift(),o=n[h.rQE];if(o){const M=Dd(t.index,o)?.previousSibling;a&&M&&a===M&&a.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))}}function R_(t,n){_4.has(t)?_4.get(t)?.push(n):_4.set(t,[n])}function v4(t){const n=t[h.Isx]??={};return n.enter??=new Map}function M0(t){const n=t[h.Isx]??={};return n.leave??=new Map}function P_(t){const n="function"==typeof t?t():t;let a=Array.isArray(n)?n:null;return"string"==typeof n&&(a=n.trim().split(/\s+/).filter(o=>o)),a}function F_(t,n){const a=E0.get(n);return void 0===a||n===t.target&&(void 0!==a.animationName&&t.animationName===a.animationName||void 0!==a.propertyName&&t.propertyName===a.propertyName)}function tf(t,n,a){const o=t.get(n.index)??{animateFns:[]};o.animateFns.push(a),t.set(n.index,o)}function nf(t,n){if(t)for(const a of t)a();for(const a of n)a()}function Zp(t,n){const a=M0(t).get(n.index);a&&(a.resolvers=void 0)}function Dh(t,n,a,o,p){$p(n,a),nf(o,p),Zp(t,n)}class rv{destroy(n){}updateValue(n,a){}swap(n,a){const o=Math.min(n,a),p=Math.max(n,a),M=this.detach(p);if(p-o>1){const k=this.detach(o);this.attach(o,M),this.attach(p,k)}else this.attach(o,M)}move(n,a){this.attach(a,this.detach(n))}}function qp(t,n,a,o,p){return t===a&&Object.is(n,o)?1:Object.is(p(t,n),p(a,o))?-1:0}function sf(t,n,a,o){return!(void 0===n||!n.has(o)||(t.attach(a,n.get(o)),n.delete(o),0))}function N_(t,n,a,o,p){if(sf(t,n,o,a(o,p)))t.updateValue(o,p);else{const M=t.create(o,p);t.attach(o,M)}}function B_(t,n,a,o){const p=new Set;for(let M=n;M<=a;M++)p.add(o(M,t.at(M)));return p}class e6{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;const a=this.kvMap.get(n);return void 0!==this._vMap&&this._vMap.has(a)?(this.kvMap.set(n,this._vMap.get(a)),this._vMap.delete(a)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,a){if(this.kvMap.has(n)){let o=this.kvMap.get(n);void 0===this._vMap&&(this._vMap=new Map);const p=this._vMap;for(;p.has(o);)o=p.get(o);p.set(o,a)}else this.kvMap.set(n,a)}forEach(n){for(let[a,o]of this.kvMap)if(n(o,a),void 0!==this._vMap){const p=this._vMap;for(;p.has(o);)o=p.get(o),n(o,a)}}}function z_(t,n,a,o,p,M,k,z){Yr("NgControlFlow");const Y=(0,h.OAn)(),ze=(0,h.klJ)();return Kd(Y,ze,t,n,a,o,p,(0,h.db4)(ze.consts,M),256,k,z),rf}function rf(t,n,a,o,p,M,k,z){Yr("NgControlFlow");const Y=(0,h.OAn)(),ze=(0,h.klJ)();return Kd(Y,ze,t,n,a,o,p,(0,h.db4)(ze.consts,M),512,k,z),rf}function V_(t,n){Yr("NgControlFlow");const a=(0,h.OAn)(),o=(0,h.xbp)(),p=a[o]!==qa?a[o]:-1,M=-1!==p?of(a,h.Yw1+p):void 0;if(cr(a,o,t)){const z=(0,jt.Ht)(null);try{if(void 0!==M&&W2(M,0),-1!==t){const Y=h.Yw1+t,ze=of(a,Y),it=t6(a[h.eDl],Y),zt=null;Bc(ze,cc(a,it,n,{dehydratedView:zt}),0,Nc(it,zt))}}finally{(0,jt.Ht)(z)}}else if(void 0!==M){const z=Nu(M,0);void 0!==z&&(z[h.SKP]=n)}}class U_{lContainer;$implicit;$index;constructor(n,a,o){this.lContainer=n,this.$implicit=a,this.$index=o}get $count(){return this.lContainer.length-h.Y20}}function G_(t,n){return n}class cv{hasEmptyBlock;trackByFn;liveCollection;constructor(n,a,o){this.hasEmptyBlock=n,this.trackByFn=a,this.liveCollection=o}}function j_(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn){Yr("NgControlFlow");const fn=(0,h.OAn)(),qn=(0,h.klJ)(),Si=void 0!==Y,Xi=(0,h.OAn)(),na=z?k.bind(Xi[h.b5C][h.SKP]):k,Di=new cv(Si,na);Xi[h.Yw1+t]=Di,Kd(fn,qn,t+1,n,a,o,p,(0,h.db4)(qn.consts,M),256),Si&&Kd(fn,qn,t+2,Y,ze,it,zt,(0,h.db4)(qn.consts,hn),512)}class H_ extends rv{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,a,o){super(),this.lContainer=n,this.hostLView=a,this.templateTNode=o}get length(){return this.lContainer.length-h.Y20}at(n){return this.getLView(n)[h.SKP].$implicit}attach(n,a){const o=a[h.tcA];this.needsIndexUpdate||=n!==this.length,Bc(this.lContainer,a,n,Nc(this.templateTNode,o)),function dv(t,n){if(t.length<=h.Y20)return;const o=t[h.Y20+n],p=o?o[h.Isx]:void 0;o&&p&&p.detachedLeaveAnimationFns&&p.detachedLeaveAnimationFns.length>0&&(function $h(t,n){const a=t.get(R1);if(n.detachedLeaveAnimationFns){for(const o of n.detachedLeaveAnimationFns)a.queue.delete(o);n.detachedLeaveAnimationFns=void 0}}(o[h.YEL],p),bl.delete(o),p.detachedLeaveAnimationFns=void 0)}(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,function uv(t,n){if(t.length<=h.Y20)return;const o=t[h.Y20+n],p=o?o[h.Isx]:void 0;p&&p.leave&&p.leave.size>0&&(p.detachedLeaveAnimationFns=[])}(this.lContainer,n),function hv(t,n){return V1(t,n)}(this.lContainer,n)}create(n,a){const p=cc(this.hostLView,this.templateTNode,new U_(this.lContainer,a,n),{dehydratedView:null});return this.operationsCounter?.recordCreate(),p}destroy(n){Td(n[h.eDl],n),this.operationsCounter?.recordDestroy()}updateValue(n,a){this.getLView(n)[h.SKP].$implicit=a}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n{t.destroy(Y)})}(Y,t,M.trackByFn),Y.updateIndexes(),M.hasEmptyBlock){const ze=(0,h.xbp)(),it=0===Y.length;if(cr(o,ze,it)){const zt=a+2,hn=of(o,zt);if(it){const fn=t6(p,zt),qn=null;Bc(hn,cc(o,fn,void 0,{dehydratedView:qn}),0,Nc(fn,qn))}else p.firstUpdatePass&&E(hn),W2(hn,0)}}}finally{(0,jt.Ht)(n)}}function of(t,n){return t[n]}function t6(t,n){return(0,h.XRZ)(t,n)}function lf(t,n,a){const o=(0,h.OAn)();return cr(o,(0,h.xbp)(),n)&&((0,h.klJ)(),P2((0,h.CpD)(),o,t,n,o[h.GpT],a)),lf}function n6(t,n,a,o,p){Id(n,t,a,p?"class":"style",o)}function Ih(t,n,a,o){const p=(0,h.OAn)(),M=p[h.eDl],k=t+h.Yw1,z=M.firstCreatePass?r0(k,p,2,n,z2,(0,h.ckz)(),a,o):M.data[k];if(Ad(z,p,t,n,s6),(0,h.yoD)(z)){const Y=p[h.eDl];R2(Y,p,z),Wa(Y,z,p)}return null!=o&&N1(p,z),Ih}function cf(){const t=(0,h.klJ)(),a=Ld((0,h.Mx4)());return t.firstCreatePass&&Q3(t,a),(0,h.UhH)(a)&&(0,h.krE)(),(0,h.N79)(),null!=a.classesWithoutHost&&function Fn(t){return!!(8&t.flags)}(a)&&n6(t,a,(0,h.OAn)(),a.classesWithoutHost,!0),null!=a.stylesWithoutHost&&function ci(t){return!!(16&t.flags)}(a)&&n6(t,a,(0,h.OAn)(),a.stylesWithoutHost,!1),cf}function i6(t,n,a,o){return Ih(t,n,a,o),cf(),i6}function df(t,n,a,o){const p=(0,h.OAn)(),M=p[h.eDl],k=t+h.Yw1,z=M.firstCreatePass?$3(k,M,2,n,a,o):M.data[k];return Ad(z,p,t,n,s6),null!=o&&N1(p,z),df}function y4(){const n=Ld((0,h.Mx4)());return(0,h.UhH)(n)&&(0,h.krE)(),(0,h.N79)(),y4}function a6(t,n,a,o){return df(t,n,a,o),y4(),a6}let s6=(t,n,a,o,p)=>((0,h.m7n)(!0),hd(n[h.GpT],o,(0,h.UaU)()));function uf(t,n,a){const o=(0,h.OAn)(),p=o[h.eDl],M=t+h.Yw1,k=p.firstCreatePass?r0(M,o,8,"ng-container",z2,(0,h.ckz)(),n,a):p.data[M];if(Ad(k,o,t,"ng-container",o6),(0,h.yoD)(k)){const z=o[h.eDl];R2(z,o,k),Wa(z,k,o)}return null!=a&&N1(o,k),uf}function b4(){const t=(0,h.klJ)(),a=Ld((0,h.Mx4)());return t.firstCreatePass&&Q3(t,a),b4}function r6(t,n,a){return uf(t,n,a),b4(),r6}function hf(t,n,a){const o=(0,h.OAn)(),p=o[h.eDl],M=t+h.Yw1,k=p.firstCreatePass?$3(M,p,8,"ng-container",n,a):p.data[M];return Ad(k,o,t,"ng-container",o6),null!=a&&N1(o,k),hf}function K_(){return Ld((0,h.Mx4)()),b4}let o6=(t,n,a,o,p)=>((0,h.m7n)(!0),c2(n[h.GpT],""));function Q_(){return(0,h.OAn)()}function mf(t,n,a){const o=(0,h.OAn)();return cr(o,(0,h.xbp)(),n)&&((0,h.klJ)(),F2((0,h.CpD)(),o,t,n,o[h.GpT],a)),mf}const ff=void 0;var gv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],ff,[["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"]],ff,[["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}",ff,"{1} 'at' {0}",ff],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function l6(t){const n=Math.floor(Math.abs(t)),a=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===a?1:5}];let C4={};function c6(t){const n=function _v(t){return t.toLowerCase().replace(/_/g,"-")}(t);let a=Z_(n);if(a)return a;const o=n.split("-")[0];if(a=Z_(o),a)return a;if("en"===o)return gv;throw new h.buA(701,!1)}function d6(t){return c6(t)[S0.PluralCase]}function Z_(t){if(!(t in C4)){const n=h.laP.ng&&h.laP.ng.common&&h.laP.ng.common.locales&&h.laP.ng.common.locales[t];return void 0!==n&&(C4[t]=n),n}return C4[t]}var S0=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}(S0||{});const J_=["zero","one","two","few","many"],u6="en-US",pf={marker:"element"},gf={marker:"ICU"};var Zl=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(Zl||{});let q_=u6;function bv(t){"string"==typeof t&&(q_=t.toLowerCase().replace(/_/g,"-"))}let kh=0,x4=0;let T0=(t,n,a,o)=>((0,h.m7n)(!0),function e8(t,n,a){const o=t[h.GpT];switch(a){case Node.COMMENT_NODE:return c2(o,n);case Node.TEXT_NODE:return ud(o,n);case Node.ELEMENT_NODE:return hd(o,n,null)}}(t,a,o));function t8(t,n,a,o){const p=a[h.GpT];let k,M=null;for(let z=0;z>>1,a),null,null,fn,qn,null)}else switch(Y){case gf:const ze=n[++z],it=n[++z];null===a[it]&&wa(a[it]=T0(a,0,ze,Node.COMMENT_NODE),a);break;case pf:const zt=n[++z],hn=n[++z];null===a[hn]&&wa(a[hn]=T0(a,0,zt,Node.ELEMENT_NODE),a)}}}function h6(t,n,a,o,p){for(let M=0;M>>2;switch(3&it){case 1:const hn=a[++ze],fn=a[++ze],qn=t.data[zt];if("string"==typeof qn)wd(n[h.GpT],n[zt],null,qn,hn,Y,fn);else{const Xi=(0,h._px)();(0,h.ypq)(zt);try{P2(qn,n,hn,Y,n[h.GpT],fn)}finally{(0,h.ypq)(Xi)}}break;case 0:const Si=n[zt];null!==Si&&P0(n[h.GpT],Si,Y);break;case 2:Tv(t,zd(t,zt),n,Y);break;case 3:n8(t,zd(t,zt),o,n)}}}}else{const Y=a[M+1];if(Y>0&&!(3&~Y)){const it=zd(t,Y>>>2);n[it.currentCaseLViewIndex]<0&&n8(t,it,o,n)}}M+=z}}function n8(t,n,a,o){let p=o[n.currentCaseLViewIndex];if(null!==p){let M=kh;p<0&&(p=o[n.currentCaseLViewIndex]=~p,M=-1),h6(t,o,n.update[p],a,M)}}function Tv(t,n,a,o){const p=function Dv(t,n){let a=t.cases.indexOf(n);if(-1===a)switch(t.type){case 1:{const o=function vv(t,n){const a=d6(n)(parseInt(t,10)),o=J_[a];return void 0!==o?o:"other"}(n,function Cv(){return q_}());a=t.cases.indexOf(o),-1===a&&"other"!==o&&(a=t.cases.indexOf("other"));break}case 0:a=t.cases.indexOf("other")}return-1===a?null:a}(n,o);if(Z2(n,a)!==p&&(m6(t,n,a),a[n.currentCaseLViewIndex]=null===p?null:~p,null!==p)){const k=a[n.anchorIdx];k&&t8(t,n.create[p],a,k)}}function m6(t,n,a){let o=Z2(n,a);if(null!==o){const p=n.remove[o];for(let M=0;M0){const z=(0,h.vaC)(k,a);null!==z&&C1(a[h.GpT],z)}else m6(t,zd(t,~k),a)}}}const _f=/\ufffd(\d+):?\d*\ufffd/gi,Av=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,a8=/\ufffd(\d+)\ufffd/,f6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,p6=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lv=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iv=/\uE500/g;function r8(t,n,a,o,p,M,k){const z=T1(t,o,1,null);let Y=z<a.length&&a.push(Y)}return{type:o,mainBinding:p,cases:n,values:a}}function v6(t){if(!t)return[];let n=0;const a=[],o=[],p=/[{}]/g;let M;for(p.lastIndex=0;M=p.exec(t);){const z=M.index;if("}"==M[0]){if(a.pop(),0==a.length){const Y=t.substring(n,z);f6.test(Y)?o.push(Nv(Y)):o.push(Y),n=z+1}}else{if(0==a.length){const Y=t.substring(n,z);o.push(Y),n=z+1}a.push("{")}}const k=t.substring(n);return o.push(k),o}function Bv(t,n,a,o,p,M,k,z,Y){const ze=[],it=[],zt=[];a.cases.push(k),a.create.push(ze),a.remove.push(it),a.update.push(zt);const fn=ji(ds()).getInertBodyElement(z),qn=l2(fn)||fn;return qn?l8(t,n,a,o,p,ze,it,zt,qn,M,Y,0):0}function l8(t,n,a,o,p,M,k,z,Y,ze,it,zt){let hn=0,fn=Y.firstChild;for(;fn;){const qn=T1(n,o,1,null);switch(fn.nodeType){case Node.ELEMENT_NODE:const Si=fn,Xi=Si.tagName.toLowerCase();if(vc.hasOwnProperty(Xi)){y6(M,pf,Xi,ze,qn),n.data[qn]=Xi;const Jo=Si.attributes;for(let rd=0;rd>>Zl.SHIFT;let zt=t[it],hn=!1;null===zt&&(zt=t[it]=T0(t,0,n[M],(k&Zl.COMMENT)===Zl.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),hn=(0,h.SX7)()),ze&&null!==a&&hn&&Cc(p,a,zt,o,!1)}})(p,Y.create,it,z&&8&z.type?p[z.index]:null),(0,h.xyx)(!0)}function _8(){(0,h.xyx)(!1)}function yf(t,n,a){const o=(0,h.OAn)(),p=(0,h.klJ)(),M=(0,h.Mx4)();return x6(p,o,o[h.GpT],M,t,n,a),yf}function bf(t,n,a){const o=(0,h.OAn)(),p=(0,h.klJ)(),M=(0,h.Mx4)();return(3&M.type||a)&&Zf(M,p,o,a,o[h.GpT],t,n,l0(M,o,n)),bf}function x6(t,n,a,o,p,M,k){let z=!0,Y=null;if((3&o.type||k)&&(Y??=l0(o,n,M),Zf(o,t,n,k,a,p,M,Y)&&(z=!1)),z){const ze=o.outputs?.[p],it=o.hostDirectiveOutputs?.[p];if(it&&it.length)for(let zt=0;zt>17&32767}function S6(t){return 2|t}function Jd(t){return(131068&t)>>2}function T6(t,n){return-131069&t|n<<2}function D6(t){return 1|t}function L8(t,n,a,o){const p=t[a+1],M=null===n;let k=o?Zd(p):Jd(p),z=!1;for(;0!==k&&(!1===z||M);){const ze=t[k+1];e9(t[k],n)&&(z=!0,t[k+1]=o?D6(ze):S6(ze)),k=o?Zd(ze):Jd(ze)}z&&(t[a+1]=o?S6(p):D6(p))}function e9(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&(0,h.FRF)(t,n)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I8(t){return t.substring(Bo.key,Bo.keyEnd)}function k8(t){return t.substring(Bo.value,Bo.valueEnd)}function A6(t,n){const a=Bo.textEnd;return a===n?-1:(n=Bo.keyEnd=function L6(t,n,a){for(;n32;)n++;return n}(t,Bo.key=n,a),E4(t,n,a))}function O8(t,n){const a=Bo.textEnd;let o=Bo.key=E4(t,n,a);return a===o?-1:(o=Bo.keyEnd=function i9(t,n,a){let o;for(;n=65&&(-33&o)<=90||o>=48&&o<=57);)n++;return n}(t,o,a),o=P8(t,o,a),o=Bo.value=E4(t,o,a),o=Bo.valueEnd=function a9(t,n,a){let o=-1,p=-1,M=-1,k=n,z=k;for(;k32&&(z=k),M=p,p=o,o=-33&Y}return z}(t,o,a),P8(t,o,a))}function R8(t){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=t.length}function E4(t,n,a){for(;n=0;a=O8(n,a))O6(t,I8(n),k8(n))}function B8(t){U8(d9,z8,t,!0)}function z8(t,n){for(let a=function t9(t){return R8(t),A6(t,E4(t,0,Bo.textEnd))}(n);a>=0;a=A6(n,a))(0,h.ezK)(t,I8(n),!0)}function V8(t,n,a,o){const p=(0,h.OAn)(),M=(0,h.klJ)(),k=(0,h.b$O)(2);M.firstUpdatePass&&j8(M,t,k,o),n!==qa&&cr(p,k,n)&&W8(M,M.data[(0,h._px)()],p,p[h.GpT],t,p[k+1]=function h9(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=(0,h.AsM)(st(t)))),t}(n,a),o,k)}function U8(t,n,a,o){const p=(0,h.klJ)(),M=(0,h.b$O)(2);p.firstUpdatePass&&j8(p,null,M,o);const k=(0,h.OAn)();if(a!==qa&&cr(k,M,a)){const z=p.data[(0,h._px)()];if(K8(z,o)&&!G8(p,M)){let Y=o?z.classesWithoutHost:z.stylesWithoutHost;null!==Y&&(a=(0,h.n$e)(Y,a||"")),n6(p,z,k,a,o)}else!function u9(t,n,a,o,p,M,k,z){p===qa&&(p=h.Mlv);let Y=0,ze=0,it=0=t.expandoStartIndex}function j8(t,n,a,o){const p=t.data;if(null===p[a+1]){const M=p[(0,h._px)()],k=G8(t,a);K8(M,o)&&null===n&&!k&&(n=!1),n=function H8(t,n,a,o){const p=(0,h.MT)(t);let M=o?n.residualClasses:n.residualStyles;if(null===p)0===(o?n.classBindings:n.styleBindings)&&(a=M4(a=k6(null,t,n,a,o),n.attrs,o),M=null);else{const k=n.directiveStylingLast;if(-1===k||t[k]!==p)if(a=k6(p,t,n,a,o),null===M){let Y=function r9(t,n,a){const o=a?n.classBindings:n.styleBindings;if(0!==Jd(o))return t[Zd(o)]}(t,n,o);void 0!==Y&&Array.isArray(Y)&&(Y=k6(null,t,n,Y[1],o),Y=M4(Y,n.attrs,o),function o9(t,n,a,o){t[Zd(a?n.classBindings:n.styleBindings)]=o}(t,n,o,Y))}else M=function l9(t,n,a){let o;const p=n.directiveEnd;for(let M=1+n.directiveStylingLast;M0)&&(ze=!0)):it=a,p)if(0!==Y){const hn=Zd(t[z+1]);t[o+1]=xf(hn,z),0!==hn&&(t[hn+1]=T6(t[hn+1],o)),t[z+1]=function Zv(t,n){return 131071&t|n<<17}(t[z+1],o)}else t[o+1]=xf(z,0),0!==z&&(t[z+1]=T6(t[z+1],o)),z=o;else t[o+1]=xf(Y,0),0===z?z=o:t[Y+1]=T6(t[Y+1],o),Y=o;ze&&(t[o+1]=S6(t[o+1])),L8(t,it,o,!0),L8(t,it,o,!1),function w6(t,n,a,o,p){const M=p?t.residualClasses:t.residualStyles;null!=M&&"string"==typeof n&&(0,h.FRF)(M,n)>=0&&(a[o+1]=D6(a[o+1]))}(n,it,t,o,M),k=xf(z,Y),M?n.classBindings=k:n.styleBindings=k}(p,M,n,a,k,o)}}function k6(t,n,a,o,p){let M=null;const k=a.directiveEnd;let z=a.directiveStylingLast;for(-1===z?z=a.directiveStart:z++;z0;){const Y=t[p],ze=Array.isArray(Y),it=ze?Y[1]:Y,zt=null===it;let hn=a[p+1];hn===qa&&(hn=zt?h.Mlv:void 0);let fn=zt?(0,h.K7h)(hn,o):it===o?hn:void 0;if(ze&&!Fh(fn)&&(fn=(0,h.K7h)(Y,o)),Fh(fn)&&(z=fn,k))return z;const qn=t[p+1];p=k?Zd(qn):Jd(qn)}if(null!==n){let Y=M?n.residualClasses:n.residualStyles;null!=Y&&(z=(0,h.K7h)(Y,o))}return z}function Fh(t){return void 0!==t}function K8(t,n){return!!(t.flags&(n?8:16))}function Nh(t,n=""){const a=(0,h.OAn)(),o=(0,h.klJ)(),p=t+h.Yw1,M=o.firstCreatePass?Tc(o,p,1,n,null):o.data[p],k=Y8(o,a,M,n,t);a[p]=k,(0,h.SX7)()&&yu(o,a,k,M),(0,h.iMd)(M,!1)}let Y8=(t,n,a,o,p)=>((0,h.m7n)(!0),ud(n[h.GpT],o));function R6(t,n){let a=!1,o=(0,h.c$7)();for(let M=1;M>20;if((0,h.Y3W)(t)||!t.multi){const fn=new an(ze,p,m1,null),qn=j6(Y,n,p?it:it+hn,zt);-1===qn?(Kn(en(z,k),M,Y),G6(M,t,n.length),n.push(Y),z.directiveStart++,z.directiveEnd++,p&&(z.providerIndexes+=1048576),a.push(fn),k.push(fn)):(a[qn]=fn,k[qn]=fn)}else{const fn=j6(Y,n,it+hn,zt),qn=j6(Y,n,it,it+hn),Xi=qn>=0&&a[qn];if(p&&!Xi||!p&&!(fn>=0&&a[fn])){Kn(en(z,k),M,Y);const na=function E9(t,n,a,o,p){const k=new an(t,a,m1,null);return k.multi=[],k.index=n,k.componentProviders=0,p5(k,p,o&&!a),k}(p?x9:H6,a.length,p,o,ze);!p&&Xi&&(a[qn].providerFactory=na),G6(M,t,n.length,0),n.push(Y),z.directiveStart++,z.directiveEnd++,p&&(z.providerIndexes+=1048576),a.push(na),k.push(na)}else G6(M,t,fn>-1?fn:qn,p5(a[p?qn:fn],ze,!p&&o));!p&&o&&Xi&&a[qn].componentProviders++}}}function G6(t,n,a,o){const p=(0,h.Y3W)(n),M=(0,h.MME)(n);if(p||M){const Y=(M?(0,h.nl4)(n.useClass):n).prototype.ngOnDestroy;if(Y){const ze=t.destroyHooks||(t.destroyHooks=[]);if(!p&&n.multi){const it=ze.indexOf(a);-1===it?ze.push(a,[o,Y]):ze[it+1].push(o,Y)}else ze.push(a,Y)}}}function p5(t,n,a){return a&&t.componentProviders++,t.multi.push(n)-1}function j6(t,n,a,o){for(let p=a;p{a.providersResolver=(o,p)=>function C9(t,n,a){const o=(0,h.klJ)();if(o.firstCreatePass){const p=(0,h.JlV)(t);U6(a,o.data,o.blueprint,p,!0),U6(n,o.data,o.blueprint,p,!1)}}(o,p?p(t):t,n)}}function Sf(t){if("function"==typeof t)return t;const n=(0,h.Bqz)(t);return n.some(h.Jzi)?()=>n.map(h.nl4).map(y5):n.map(y5)}function y5(t){return X1(t)?t.ngModule:t}function b5(t,n,a){const o=(0,h.gxQ)()+t,p=(0,h.OAn)();return p[o]===qa?Uc(p,o,a?n.call(a):n()):o0(p,o)}function Tf(t,n,a,o){return S5((0,h.OAn)(),(0,h.gxQ)(),t,n,a,o)}function C5(t,n,a,o,p){return T5((0,h.OAn)(),(0,h.gxQ)(),t,n,a,o,p)}function x5(t,n,a,o,p,M){return D5((0,h.OAn)(),(0,h.gxQ)(),t,n,a,o,p,M)}function zh(t,n){const a=t[n];return a===qa?void 0:a}function S5(t,n,a,o,p,M){const k=n+a;return cr(t,k,p)?Uc(t,k+1,M?o.call(M,p):o(p)):zh(t,k+1)}function T5(t,n,a,o,p,M,k){const z=n+a;return Q1(t,z,p,M)?Uc(t,z+2,k?o.call(k,p,M):o(p,M)):zh(t,z+2)}function D5(t,n,a,o,p,M,k,z){const Y=n+a;return J3(t,Y,p,M,k)?Uc(t,Y+3,z?o.call(z,p,M,k):o(p,M,k)):zh(t,Y+3)}function X6(t,n,a,o,p,M,k,z,Y){const ze=n+a;return uc(t,ze,p,M,k,z)?Uc(t,ze+4,Y?o.call(Y,p,M,k,z):o(p,M,k,z)):zh(t,ze+4)}function w5(t,n,a,o,p,M){let k=n+a,z=!1;for(let Y=0;Y=0;a--){const o=n[a];if(t===o.name)return o}}(n,a.pipeRegistry),a.data[p]=o,o.onDestroy&&(a.destroyHooks??=[]).push(p,o.onDestroy)):o=a.data[p];const M=o.factory||(o.factory=(0,h.wGu)(o.type,!0)),z=(0,h.a2B)(m1);try{const Y=Wn(!1),ze=M();return Wn(Y),(0,h.M_e)(a,(0,h.OAn)(),p,ze),ze}finally{(0,h.a2B)(z)}}function I5(t,n,a){const o=t+h.Yw1,p=(0,h.OAn)(),M=(0,h.Hh6)(p,o);return Vh(p,o)?S5(p,(0,h.gxQ)(),n,M.transform,a,M):M.transform(a)}function K6(t,n,a,o){const p=t+h.Yw1,M=(0,h.OAn)(),k=(0,h.Hh6)(M,p);return Vh(M,p)?T5(M,(0,h.gxQ)(),n,k.transform,a,o,k):k.transform(a,o)}function k5(t,n,a,o,p){const M=t+h.Yw1,k=(0,h.OAn)(),z=(0,h.Hh6)(k,M);return Vh(k,M)?D5(k,(0,h.gxQ)(),n,z.transform,a,o,p,z):z.transform(a,o,p)}function Vh(t,n){return t[h.eDl].data[n].pure}function Y6(t,n){return Od(t,n)}function Df(t,n,a,o,p){const M=p[h.eDl];if(M!==o.tView)for(let k=h.Yw1;k{if(o.encapsulation===Bi.ShadowDom){const qn=k.cloneNode(!1);k.replaceWith(qn),k=qn}const zt=q0(a),hn=M1(z,zt,M,S1(a),k,Y,null,null,null,null,null);(function P5(t,n,a,o){for(let p=h.Yw1;pR5(t,n,it))}(t,n,a,o,p)}function R5(t,n,a){try{a()}catch(o){if(null!==n&&o.message){const M=o.message+(o.stack?"\n"+o.stack:"");t?.hot?.send?.("angular:invalidate",{id:n,message:M,error:!0})}throw o}}const qd={\u0275\u0275animateEnter:function af(t){if(Yr("NgAnimateEnter"),!$d)return af;const n=(0,h.OAn)();if(ef(n))return af;const a=(0,h.Mx4)();return Th(a,n),tf(v4(n),a,()=>function ev(t,n,a){const o=(0,h.d31)(n,t),p=t[h.GpT],M=t[h.YEL].get(ms),k=P_(a),z=[],Y=it=>{if(it.target!==o)return;const zt=it instanceof AnimationEvent?"animationend":"transitionend";M.runOutsideAngular(()=>{p.listen(o,zt,ze)})},ze=it=>{it.target===o&&function tv(t,n,a){const o=g4.get(n);if(t.target===n&&o&&F_(t,n)){t.stopImmediatePropagation();for(const p of o.classList)a.removeClass(n,p);Qp(n)}}(it,o,p)};if(k&&k.length>0){M.runOutsideAngular(()=>{z.push(p.listen(o,"animationstart",Y)),z.push(p.listen(o,"transitionstart",Y))}),function Z7(t,n,a){const o=g4.get(t);if(o){for(const p of n)o.classList.push(p);for(const p of a)o.cleanupFns.push(p)}else g4.set(t,{classList:n,cleanupFns:a})}(o,k,z);for(const it of k)p.addClass(o,it);M.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(iu(o,E0,$d),!E0.has(o)){for(const it of k)p.removeClass(o,it);Qp(o)}})})}}(n,a,t)),D2(n[h.YEL]),P1(n[h.YEL],v4(n)),af},\u0275\u0275animateEnterListener:function wh(t){if(Yr("NgAnimateEnter"),!$d)return wh;const n=(0,h.OAn)();if(ef(n))return wh;const a=(0,h.Mx4)();return Th(a,n),tf(v4(n),a,()=>function nv(t,n,a){const o=(0,h.d31)(n,t);a.call(t[h.SKP],{target:o,animationComplete:O_})}(n,a,t)),D2(n[h.YEL]),P1(n[h.YEL],v4(n)),wh},\u0275\u0275animateLeave:function Ah(t){if(Yr("NgAnimateLeave"),!$d)return Ah;const n=(0,h.OAn)();if(ef(n))return Ah;const o=(0,h.Mx4)();return Th(o,n),tf(M0(n),o,()=>function iv(t,n,a){const{promise:o,resolve:p}=Vp(),M=(0,h.d31)(n,t),k=t[h.GpT],z=t[h.YEL].get(ms);bl.add(t),(M0(t).get(n.index).resolvers??=[]).push(p);const Y=P_(a);return Y&&Y.length>0?function Lh(t,n,a,o,p,M){!function J7(t,n){if(!$d)return;const a=g4.get(t);if(a&&a.classList.length>0&&function q7(t,n){for(const a of n)if(t.classList.contains(a))return!0;return!1}(t,a.classList))for(const o of a.classList)n.removeClass(t,o);Qp(t)}(t,p);const k=[],z=M0(a).get(n.index)?.resolvers,Y=ze=>{if(ze.target===t&&(ze instanceof CustomEvent||F_(ze,t))){if(ze.stopImmediatePropagation(),E0.delete(t),$p(n,t),Array.isArray(n.projection))for(const it of o)p.removeClass(t,it);nf(z,k),Zp(a,n)}};M.runOutsideAngular(()=>{k.push(p.listen(t,"animationend",Y)),k.push(p.listen(t,"transitionend",Y))}),R_(n,t);for(const ze of o)p.addClass(t,ze);M.runOutsideAngular(()=>{requestAnimationFrame(()=>{iu(t,E0,$d),E0.has(t)||($p(n,t),nf(z,k),Zp(a,n))})})}(M,n,t,Y,k,z):p(),{promise:o,resolve:p}}(n,o,t)),D2(n[h.YEL]),Ah},\u0275\u0275animateLeaveListener:function Jp(t){if(Yr("NgAnimateLeave"),!$d)return Jp;const n=(0,h.OAn)(),a=(0,h.Mx4)();return Th(a,n),bl.add(n),tf(M0(n),a,()=>function av(t,n,a){const{promise:o,resolve:p}=Vp(),M=(0,h.d31)(n,t),k=[],z=t[h.GpT],Y=ef(t),ze=t[h.YEL].get(ms),it=t[h.YEL].get(Q7);(M0(t).get(n.index).resolvers??=[]).push(p);const zt=M0(t).get(n.index)?.resolvers;if(Y)Dh(t,n,M,zt,k);else{const hn=setTimeout(()=>Dh(t,n,M,zt,k),it),fn={target:M,animationComplete:()=>{Dh(t,n,M,zt,k),clearTimeout(hn)}};R_(n,M),ze.runOutsideAngular(()=>{k.push(z.listen(M,"animationend",()=>{Dh(t,n,M,zt,k),clearTimeout(hn)},{once:!0}))}),a.call(t[h.SKP],fn)}return{promise:o,resolve:p}}(n,a,t)),D2(n[h.YEL]),Jp},\u0275\u0275attribute:Yp,\u0275\u0275defineComponent:pp,\u0275\u0275defineDirective:Bm,\u0275\u0275defineInjectable:h.jDH,\u0275\u0275defineInjector:h.G2t,\u0275\u0275defineNgModule:_p,\u0275\u0275definePipe:zm,\u0275\u0275directiveInject:m1,\u0275\u0275getInheritedFactory:Ze,\u0275\u0275inject:h.KVO,\u0275\u0275injectAttribute:_a,\u0275\u0275invalidFactory:ho,\u0275\u0275invalidFactoryDep:h.dmw,\u0275\u0275templateRefExtractor:Y6,\u0275\u0275resetView:h.Njj,\u0275\u0275HostDirectivesFeature:Cp,\u0275\u0275NgOnChangesFeature:tn,\u0275\u0275ProvidersFeature:g5,\u0275\u0275CopyDefinitionFeature:function u4(t){let a,n=yp(t.type);a=(0,h.JlV)(t)?n.\u0275cmp:n.\u0275dir;const o=t;for(const p of Um)o[p]=a[p];if((0,h.JlV)(a))for(const p of g0)o[p]=a[p]},\u0275\u0275InheritDefinitionFeature:uh,\u0275\u0275ExternalStylesFeature:function _5(t){return n=>{t.length<1||(n.getExternalStyles=a=>t.map(p=>p+"?ngcomp"+(a?"="+encodeURIComponent(a):"")+"&e="+n.encapsulation))}},\u0275\u0275nextContext:C8,\u0275\u0275namespaceHTML:h.joV,\u0275\u0275namespaceMathML:h.By9,\u0275\u0275namespaceSVG:h.qSk,\u0275\u0275enableBindings:h.cSN,\u0275\u0275disableBindings:h.fuf,\u0275\u0275elementStart:Ih,\u0275\u0275elementEnd:cf,\u0275\u0275element:i6,\u0275\u0275elementContainerStart:uf,\u0275\u0275elementContainerEnd:b4,\u0275\u0275domElement:a6,\u0275\u0275domElementStart:df,\u0275\u0275domElementEnd:y4,\u0275\u0275domElementContainer:function Y_(t,n,a){return hf(t,n,a),K_(),Y_},\u0275\u0275domElementContainerStart:hf,\u0275\u0275domElementContainerEnd:K_,\u0275\u0275domTemplate:gh,\u0275\u0275domListener:bf,\u0275\u0275elementContainer:r6,\u0275\u0275pureFunction0:b5,\u0275\u0275pureFunction1:Tf,\u0275\u0275pureFunction2:C5,\u0275\u0275pureFunction3:x5,\u0275\u0275pureFunction4:function S9(t,n,a,o,p,M,k){return X6((0,h.OAn)(),(0,h.gxQ)(),t,n,a,o,p,M,k)},\u0275\u0275pureFunction5:function E5(t,n,a,o,p,M,k,z){const Y=(0,h.gxQ)()+t,ze=(0,h.OAn)(),it=uc(ze,Y,a,o,p,M);return cr(ze,Y+4,k)||it?Uc(ze,Y+5,z?n.call(z,a,o,p,M,k):n(a,o,p,M,k)):o0(ze,Y+5)},\u0275\u0275pureFunction6:function T9(t,n,a,o,p,M,k,z,Y){const ze=(0,h.gxQ)()+t,it=(0,h.OAn)(),zt=uc(it,ze,a,o,p,M);return Q1(it,ze+4,k,z)||zt?Uc(it,ze+6,Y?n.call(Y,a,o,p,M,k,z):n(a,o,p,M,k,z)):o0(it,ze+6)},\u0275\u0275pureFunction7:function M5(t,n,a,o,p,M,k,z,Y,ze){const it=(0,h.gxQ)()+t,zt=(0,h.OAn)();let hn=uc(zt,it,a,o,p,M);return J3(zt,it+4,k,z,Y)||hn?Uc(zt,it+7,ze?n.call(ze,a,o,p,M,k,z,Y):n(a,o,p,M,k,z,Y)):o0(zt,it+7)},\u0275\u0275pureFunction8:function D9(t,n,a,o,p,M,k,z,Y,ze,it){const zt=(0,h.gxQ)()+t,hn=(0,h.OAn)(),fn=uc(hn,zt,a,o,p,M);return uc(hn,zt+4,k,z,Y,ze)||fn?Uc(hn,zt+8,it?n.call(it,a,o,p,M,k,z,Y,ze):n(a,o,p,M,k,z,Y,ze)):o0(hn,zt+8)},\u0275\u0275pureFunctionV:function w9(t,n,a,o){return w5((0,h.OAn)(),(0,h.gxQ)(),t,n,a,o)},\u0275\u0275getCurrentView:Q_,\u0275\u0275restoreView:h.eBV,\u0275\u0275listener:yf,\u0275\u0275projection:E6,\u0275\u0275syntheticHostProperty:function $_(t,n,a){const o=(0,h.OAn)();if(cr(o,(0,h.xbp)(),n)){const M=(0,h.klJ)(),k=(0,h.CpD)();F2(k,o,t,n,Tu((0,h.MT)(M.data),k,o),a)}return $_},\u0275\u0275syntheticHostListener:function b8(t,n){const a=(0,h.Mx4)(),o=(0,h.OAn)(),p=(0,h.klJ)();return x6(p,o,Tu((0,h.MT)(p.data),a,o),a,t,n),b8},\u0275\u0275pipeBind1:I5,\u0275\u0275pipeBind2:K6,\u0275\u0275pipeBind3:k5,\u0275\u0275pipeBind4:function L9(t,n,a,o,p,M){const k=t+h.Yw1,z=(0,h.OAn)(),Y=(0,h.Hh6)(z,k);return Vh(z,k)?X6(z,(0,h.gxQ)(),n,Y.transform,a,o,p,M,Y):Y.transform(a,o,p,M)},\u0275\u0275pipeBindV:function O5(t,n,a){const o=t+h.Yw1,p=(0,h.OAn)(),M=(0,h.Hh6)(p,o);return Vh(p,o)?w5(p,(0,h.gxQ)(),n,M.transform,a,M):M.transform.apply(M,a)},\u0275\u0275projectionDef:E8,\u0275\u0275domProperty:mf,\u0275\u0275ariaProperty:Kp,\u0275\u0275property:lf,\u0275\u0275pipe:A5,\u0275\u0275queryRefresh:S8,\u0275\u0275queryAdvance:w8,\u0275\u0275viewQuery:M8,\u0275\u0275viewQuerySignal:Cf,\u0275\u0275loadQuery:T8,\u0275\u0275contentQuery:M6,\u0275\u0275contentQuerySignal:D8,\u0275\u0275reference:A8,\u0275\u0275classMap:B8,\u0275\u0275styleMap:function N8(t){U8(O6,s9,t,!1)},\u0275\u0275styleProp:I6,\u0275\u0275classProp:Ph,\u0275\u0275advance:t1,\u0275\u0275template:ph,\u0275\u0275conditional:V_,\u0275\u0275conditionalCreate:z_,\u0275\u0275conditionalBranchCreate:rf,\u0275\u0275defer:function E_(t,n,a,o,p,M,k,z,Y,ze){const it=(0,h.OAn)(),zt=(0,h.klJ)(),hn=t+h.Yw1,fn=Kd(it,zt,t,null,0,0),qn=it[h.YEL],Si=oa(qn);if(zt.firstCreatePass){Yr("NgDefer");const rd={primaryTmplIndex:n,loadingTmplIndex:o??null,placeholderTmplIndex:p??null,errorTmplIndex:M??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:a??null,loadingState:Ur.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:ze??0};Y?.(zt,rd,z,k),function Lp(t,n,a){const o=y0(n);t.data[o]=a}(zt,hn,rd)}const Xi=it[hn];let na=null,Di=null;if(Xi[h.qFA]?.length>0){const rd=Xi[h.qFA][0].data;Di=rd.di??null,na=rd.s}const gs=[null,_0.Initial,null,null,null,null,Di,na,null,null];!function Kg(t,n,a){t[y0(n)]=a}(it,hn,gs);let Jo=null;null!==Di&&Si&&(Jo=qn.get(wo),Jo.add(Di,{lView:it,tNode:fn,lContainer:Xi}));const xr=()=>{Xm(gs),null!==Di&&Jo?.cleanup([Di])};f4(0,gs,()=>(0,h.DyX)(it,xr)),(0,h.ik5)(it,xr)},\u0275\u0275deferWhen:function M_(t){const n=(0,h.OAn)(),a=(0,h.CpD)();if($r(0,n,a)&&cr(n,(0,h.xbp)(),t)){const p=(0,jt.Ht)(null);try{const M=!!t,z=Bl(n,a)[1];!1===M&&z===_0.Initial?Xn(n,a):!0===M&&(z===_0.Initial||z===Is.Placeholder)&&sd(0,n,a)}finally{(0,jt.Ht)(p)}}},\u0275\u0275deferOnIdle:function N7(){$r(0,(0,h.OAn)(),(0,h.Mx4)())&&Jm(p4)},\u0275\u0275deferOnImmediate:function S_(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(0,t,n)&&(null===yo(t[h.eDl],n).loadingTmplIndex&&Xn(t,n),sd(0,t,n))},\u0275\u0275deferOnTimer:function U7(t){$r(0,(0,h.OAn)(),(0,h.Mx4)())&&Jm(c(t))},\u0275\u0275deferOnHover:function w_(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();$r(0,a,o)&&(Xn(a,o),td(a,o,t,n,Gi,()=>sd(0,a,o),0))},\u0275\u0275deferOnInteraction:function Sh(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();$r(0,a,o)&&(Xn(a,o),td(a,o,t,n,ai,()=>sd(0,a,o),0))},\u0275\u0275deferOnViewport:function K7(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();$r(0,a,o)&&(Xn(a,o),td(a,o,t,n,bh,()=>sd(0,a,o),0))},\u0275\u0275deferPrefetchWhen:function R7(t){const n=(0,h.OAn)(),a=(0,h.CpD)();if($r(1,n,a)&&cr(n,(0,h.xbp)(),t)){const p=(0,jt.Ht)(null);try{const M=!!t,z=yo(n[h.eDl],a);!0===M&&z.loadingState===Ur.NOT_STARTED&&Mh(z,n,a)}finally{(0,jt.Ht)(p)}}},\u0275\u0275deferPrefetchOnIdle:function B7(){$r(1,(0,h.OAn)(),(0,h.Mx4)())&&Up(p4)},\u0275\u0275deferPrefetchOnImmediate:function T_(){const t=(0,h.OAn)(),n=(0,h.Mx4)();if(!$r(1,t,n))return;const o=yo(t[h.eDl],n);o.loadingState===Ur.NOT_STARTED&&Gp(o,t,n)},\u0275\u0275deferPrefetchOnTimer:function D_(t){$r(1,(0,h.OAn)(),(0,h.Mx4)())&&Up(c(t))},\u0275\u0275deferPrefetchOnHover:function j7(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();if(!$r(1,a,o))return;const M=yo(a[h.eDl],o);M.loadingState===Ur.NOT_STARTED&&td(a,o,t,n,Gi,()=>Mh(M,a,o),1)},\u0275\u0275deferPrefetchOnInteraction:function W7(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();if(!$r(1,a,o))return;const M=yo(a[h.eDl],o);M.loadingState===Ur.NOT_STARTED&&td(a,o,t,n,ai,()=>Mh(M,a,o),1)},\u0275\u0275deferPrefetchOnViewport:function A_(t,n){const a=(0,h.OAn)(),o=(0,h.Mx4)();if(!$r(1,a,o))return;const M=yo(a[h.eDl],o);M.loadingState===Ur.NOT_STARTED&&td(a,o,t,n,bh,()=>Mh(M,a,o),1)},\u0275\u0275deferHydrateWhen:function P7(t){const n=(0,h.OAn)(),a=(0,h.CpD)();if(!$r(2,n,a))return;const o=(0,h.xbp)();if(Qd((0,h.klJ)(),a).set(6,null),cr(n,o,t)){const k=n[h.YEL],z=(0,jt.Ht)(null);try{1==!!t&&x0(k,Bl(n,a)[6])}finally{(0,jt.Ht)(z)}}},\u0275\u0275deferHydrateNever:function F7(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&Qd((0,h.klJ)(),n).set(7,null)},\u0275\u0275deferHydrateOnIdle:function z7(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&(Qd((0,h.klJ)(),n).set(0,null),g_(p4,t,n))},\u0275\u0275deferHydrateOnImmediate:function V7(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&(Qd((0,h.klJ)(),n).set(1,null),x0(t[h.YEL],Bl(t,n)[6]))},\u0275\u0275deferHydrateOnTimer:function G7(t){const n=(0,h.OAn)(),a=(0,h.Mx4)();$r(2,n,a)&&(Qd((0,h.klJ)(),a).set(5,{delay:t}),g_(c(t),n,a))},\u0275\u0275deferHydrateOnHover:function H7(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&Qd((0,h.klJ)(),n).set(4,null)},\u0275\u0275deferHydrateOnInteraction:function X7(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&Qd((0,h.klJ)(),n).set(3,null)},\u0275\u0275deferHydrateOnViewport:function L_(){const t=(0,h.OAn)(),n=(0,h.Mx4)();$r(2,t,n)&&Qd((0,h.klJ)(),n).set(2,null)},\u0275\u0275deferEnableTimerScheduling:function ea(t,n,a,o){const p=t.consts;null!=a&&(n.placeholderBlockConfig=(0,h.db4)(p,a)),null!=o&&(n.loadingBlockConfig=(0,h.db4)(p,o)),null===pa&&(pa=_i)},\u0275\u0275repeater:W_,\u0275\u0275repeaterCreate:j_,\u0275\u0275repeaterTrackByIndex:function lv(t){return t},\u0275\u0275repeaterTrackByIdentity:G_,\u0275\u0275componentInstance:function sv(){return(0,h.OAn)()[h.b5C][h.SKP]},\u0275\u0275text:Nh,\u0275\u0275textInterpolate:F6,\u0275\u0275textInterpolate1:Bh,\u0275\u0275textInterpolate2:N6,\u0275\u0275textInterpolate3:B6,\u0275\u0275textInterpolate4:Ef,\u0275\u0275textInterpolate5:function n5(t,n,a,o,p,M,k,z,Y,ze,it){const zt=(0,h.OAn)(),hn=J8(zt,t,n,a,o,p,M,k,z,Y,ze,it);return hn!==qa&&g1(zt,(0,h._px)(),hn),n5},\u0275\u0275textInterpolate6:function i5(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn){const fn=(0,h.OAn)(),qn=q8(fn,t,n,a,o,p,M,k,z,Y,ze,it,zt,hn);return qn!==qa&&g1(fn,(0,h._px)(),qn),i5},\u0275\u0275textInterpolate7:function a5(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn){const Si=(0,h.OAn)(),Xi=e5(Si,t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn);return Xi!==qa&&g1(Si,(0,h._px)(),Xi),a5},\u0275\u0275textInterpolate8:function z6(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn,Si,Xi){const na=(0,h.OAn)(),Di=t5(na,t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn,Si,Xi);return Di!==qa&&g1(na,(0,h._px)(),Di),z6},\u0275\u0275textInterpolateV:function s5(t){const n=(0,h.OAn)(),a=R6(n,t);return a!==qa&&g1(n,(0,h._px)(),a),s5},\u0275\u0275i18n:function C6(t,n,a){g8(t,n,a),_8()},\u0275\u0275i18nAttributes:function Kv(t,n){const a=(0,h.klJ)(),o=(0,h.db4)(a.consts,n);!function Rv(t,n,a){const o=(0,h.Mx4)(),p=o.index,M=[];if(t.firstCreatePass&&null===t.data[n]){for(let k=0;k0){const o=t.data[a];h6(t,n,Array.isArray(o)?o:o.update,(0,h.c$7)()-x4-1,kh)}kh=0,x4=0}((0,h.klJ)(),(0,h.OAn)(),t+h.Yw1)},\u0275\u0275i18nPostprocess:function Yv(t,n={}){return function p8(t,n={}){let a=t;if(m8.test(t)){const o={},p=[0];a=a.replace(Gv,(M,k,z)=>{const Y=k||z,ze=o[Y]||[];if(ze.length||(Y.split("|").forEach(Si=>{const Xi=Si.match(Xv),na=Xi?parseInt(Xi[1],10):0,Di=Wv.test(Si);ze.push([na,Di,Si])}),o[Y]=ze),!ze.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Y}`);const it=p[p.length-1];let zt=0;for(let Si=0;Sin.hasOwnProperty(M)?`${p}${n[M]}${Y}`:o),a=a.replace(f8,(o,p)=>n.hasOwnProperty(p)?n[p]:o),a=a.replace(Hv,(o,p)=>{if(n.hasOwnProperty(p)){const M=n[p];if(!M.length)throw new Error(`i18n postprocess: unmatched ICU - ${o} with key: ${p}`);return M.shift()}return o})),a}(t,n)},\u0275\u0275resolveWindow:K0,\u0275\u0275resolveDocument:function N4(t){return t.ownerDocument},\u0275\u0275resolveBody:function _d(t){return t.ownerDocument.body},\u0275\u0275setComponentScope:function M9(t,n,a){const o=t.\u0275cmp;o.directiveDefs=d4(n,gp),o.pipeDefs=d4(a,h.oyA)},\u0275\u0275setNgModuleScope:function v5(t,n){return Pt(()=>{const a=(0,h.WbQ)(t);a.declarations=Sf(n.declarations||h.Mlv),a.imports=Sf(n.imports||h.Mlv),a.exports=Sf(n.exports||h.Mlv),n.bootstrap&&(a.bootstrap=Sf(n.bootstrap)),vo.registerNgModule(t,n)})},\u0275\u0275registerNgModuleType:dh,\u0275\u0275getComponentDepsFactory:function I9(t,n){return()=>{try{return vo.getComponentDependencies(t,n).dependencies}catch(a){throw console.error(`Computing dependencies in local compilation mode for the component "${t.name}" failed with the exception:`,a),a}}},\u0275setClassDebugInfo:function k9(t,n){const a=(0,h.xUg)(t);null!==a&&(a.debugInfo=n)},\u0275\u0275declareLet:function l5(t){const n=(0,h.klJ)(),a=(0,h.OAn)(),o=t+h.Yw1,p=Tc(n,o,128,null,null);return(0,h.iMd)(p,!1),(0,h.M_e)(n,a,o,o5),l5},\u0275\u0275storeLet:function c5(t){Yr("NgLet");const n=(0,h.klJ)(),a=(0,h.OAn)(),o=(0,h._px)();return(0,h.M_e)(n,a,o,t),t},\u0275\u0275readContextLet:function f9(t){const n=(0,h.VPL)(),a=(0,h.Hh6)(n,h.Yw1+t);if(a===o5)throw new h.buA(314,!1);return a},\u0275\u0275attachSourceLocations:function p9(t,n){const a=(0,h.klJ)(),o=(0,h.OAn)(),p=o[h.GpT],M="data-ng-source-location";for(const[k,z,Y,ze]of n){(0,h.XRZ)(a,k+h.Yw1);const zt=(0,h.vaC)(k+h.Yw1,o);zt.hasAttribute(M)||p.setAttribute(zt,M,`${t}@o:${z},l:${Y},c:${ze}`)}},\u0275\u0275interpolate:d5,\u0275\u0275interpolate1:u5,\u0275\u0275interpolate2:h5,\u0275\u0275interpolate3:function m5(t,n,a,o,p,M,k=""){return Z8((0,h.OAn)(),t,n,a,o,p,M,k)},\u0275\u0275interpolate4:function g9(t,n,a,o,p,M,k,z,Y=""){return P6((0,h.OAn)(),t,n,a,o,p,M,k,z,Y)},\u0275\u0275interpolate5:function _9(t,n,a,o,p,M,k,z,Y,ze,it=""){return J8((0,h.OAn)(),t,n,a,o,p,M,k,z,Y,ze,it)},\u0275\u0275interpolate6:function v9(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn=""){return q8((0,h.OAn)(),t,n,a,o,p,M,k,z,Y,ze,it,zt,hn)},\u0275\u0275interpolate7:function y9(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn=""){return e5((0,h.OAn)(),t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn)},\u0275\u0275interpolate8:function b9(t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn,Si,Xi=""){return t5((0,h.OAn)(),t,n,a,o,p,M,k,z,Y,ze,it,zt,hn,fn,qn,Si,Xi)},\u0275\u0275interpolateV:function f5(t){return R6((0,h.OAn)(),t)},\u0275\u0275sanitizeHtml:pd,\u0275\u0275sanitizeStyle:u2,\u0275\u0275sanitizeResourceUrl:h2,\u0275\u0275sanitizeScript:m2,\u0275\u0275validateAttribute:f2,\u0275\u0275sanitizeUrl:z0,\u0275\u0275sanitizeUrlOrResourceUrl:G0,\u0275\u0275trustConstantHtml:function L4(t){return Yl(t[0])},\u0275\u0275trustConstantResourceUrl:function V0(t){return function i2(t){return Yo()?.createScriptURL(t)||t}(t[0])},forwardRef:h.Rfq,resolveForwardRef:h.nl4,\u0275\u0275twoWayProperty:V6,\u0275\u0275twoWayBindingSet:r5,\u0275\u0275twoWayListener:Mf,\u0275\u0275replaceMetadata:function R9(t,n,a,o,p=null,M=null){const k=(0,h.xUg)(t);n.apply(null,[t,a,...o]);const{newDef:z,oldDef:Y}=function P9(t,n){const a={...t};return{newDef:Object.assign(t,n,{directiveDefs:a.directiveDefs,pipeDefs:a.pipeDefs,setInput:a.setInput,type:a.type}),oldDef:a}}(k,(0,h.xUg)(t));if(t[h.CQl]=z,Y.tView){const ze=function vr(){return is}().values();for(const it of ze)(0,h.EFk)(it)&&null===it[h.f7T]&&Df(p,M,z,Y,it)}},\u0275\u0275getReplaceMetadataURL:function O9(t,n,a){const o=`./@ng/component?c=${t}&t=${encodeURIComponent(n)}`;return new URL(o,a).href}};let e2=null;function z9(t){null!==e2&&(t.defaultEncapsulation!==e2.defaultEncapsulation||t.preserveWhitespaces!==e2.preserveWhitespaces)||(e2=t)}const Uh=[];function Lf(t){return X1(t)?t.ngModule:t}const iy=Ni("NgModule",t=>t,void 0,0,(t,n)=>function j9(t,n={}){(function H9(t,n){const o=(0,h.Bqz)(n.declarations||h.Mlv);let p=null;Object.defineProperty(t,h.hmW,{configurable:!0,get:()=>(null===p&&(p=N().compileNgModule(qd,`ng:///${t.name}/\u0275mod.js`,{type:t,bootstrap:(0,h.Bqz)(n.bootstrap||h.Mlv).map(h.nl4),declarations:o.map(h.nl4),imports:(0,h.Bqz)(n.imports||h.Mlv).map(h.nl4).map(Lf),exports:(0,h.Bqz)(n.exports||h.Mlv).map(h.nl4).map(Lf),schemas:n.schemas?(0,h.Bqz)(n.schemas):null,id:n.id||null}),p.schemas||(p.schemas=[])),p)});let M=null;Object.defineProperty(t,h.zSs,{get:()=>{if(null===M){const z=N();M=z.compileFactory(qd,`ng:///${t.name}/\u0275fac.js`,{name:t.name,type:t,deps:Ga(t),target:z.FactoryTarget.NgModule,typeArgumentCount:0})}return M},configurable:!1});let k=null;Object.defineProperty(t,h.ONQ,{get:()=>{if(null===k){const z={name:t.name,type:t,providers:n.providers||h.Mlv,imports:[(n.imports||h.Mlv).map(h.nl4),(n.exports||h.Mlv).map(h.nl4)]};k=N().compileInjector(qd,`ng:///${t.name}/\u0275inj.js`,z)}return k},configurable:!1})})(t,n),void 0!==n.id&&dh(t,n.id),function G9(t,n){Uh.push({moduleType:t,ngModule:n})}(t,n)}(t,n));class $5{ngModuleFactory;componentFactories;constructor(n,a){this.ngModuleFactory=n,this.componentFactories=a}}let ay=(()=>{class t{compileModuleSync(a){return new mp(a)}compileModuleAsync(a){return Promise.resolve(this.compileModuleSync(a))}compileModuleAndAllComponentsSync(a){const o=this.compileModuleSync(a),M=Ql((0,h.phH)(a).declarations).reduce((k,z)=>{const Y=(0,h.xUg)(z);return Y&&k.push(new c0(Y)),k},[]);return new $5(o,M)}compileModuleAndAllComponentsAsync(a){return Promise.resolve(this.compileModuleAndAllComponentsSync(a))}clearCache(){}clearCacheFor(a){}getModuleId(a){}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const sy=new h.nKC("");let ry=(()=>{class t{zone=(0,h.WQX)(ms);changeDetectionScheduler=(0,h.WQX)(h.hk6);applicationRef=(0,h.WQX)(Zm);applicationErrorHandler=(0,h.WQX)(h.ZTf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(a){this.applicationErrorHandler(a)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const kf=new h.nKC("",{factory:()=>!1});function Z5({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:a}){return t??=()=>new ms({...tg(),scheduleInRootZone:a}),[{provide:ms,useFactory:t},{provide:h.Z63,multi:!0,useFactory:()=>{const o=(0,h.WQX)(ry,{optional:!0});return()=>o.initialize()}},{provide:h.Z63,multi:!0,useFactory:()=>{const o=(0,h.WQX)(ly);return()=>{o.initialize()}}},!0===n?{provide:h.Jy$,useValue:!0}:[],{provide:h.AQb,useValue:a??n1},{provide:h.ZTf,useFactory:()=>{const o=(0,h.WQX)(ms),p=(0,h.WQX)(h.uvJ);let M;return k=>{o.runOutsideAngular(()=>{p.destroyed&&!M?setTimeout(()=>{throw k}):(M??=p.get(h.zcH),M.handleError(k))})}}}]}function tg(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}let ly=(()=>{class t{subscription=new wt.yU;initialized=!1;zone=(0,h.WQX)(ms);pendingTasks=(0,h.WQX)(h.rev);initialize(){if(this.initialized)return;this.initialized=!0;let a=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(a=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ms.assertNotInAngularZone(),queueMicrotask(()=>{null!==a&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(a),a=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ms.assertInAngularZone(),a??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ag=(()=>{class t{applicationErrorHandler=(0,h.WQX)(h.ZTf);appRef=(0,h.WQX)(Zm);taskService=(0,h.WQX)(h.rev);ngZone=(0,h.WQX)(ms);zonelessEnabled=(0,h.WQX)(h.Evm);tracing=(0,h.WQX)(rc,{optional:!0});disableScheduling=(0,h.WQX)(h.Jy$,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new wt.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(xd):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((0,h.WQX)(h.AQb,{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 Sc||!this.zoneIsDefined)}notify(a){if(!this.zonelessEnabled&&5===a)return;let o=!1;switch(a){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,o=!0;break;case 12:this.appRef.dirtyFlags|=16,o=!0;break;case 11:o=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(o))return;const p=this.useMicrotaskScheduler?C2:k1;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>p(()=>this.tick())):this.ngZone.runOutsideAngular(()=>p(()=>this.tick()))}shouldScheduleTick(a){return!(this.disableScheduling&&!a||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(xd+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const a=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(o){this.taskService.remove(a),this.applicationErrorHandler(o)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,C2(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(a)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const a=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(a)}}static \u0275fac=function(o){return new(o||t)};static \u0275prov=(0,h.jDH)({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const q5=new h.nKC("",{providedIn:"root",factory:()=>(0,h.WQX)(q5,{optional:!0,skipSelf:!0})||function cy(){return typeof $localize<"u"&&$localize.locale||u6}()}),dy=new h.nKC("",{providedIn:"root",factory:()=>"USD"})},9295(Zt,pe,l){"use strict";l.d(pe,{Zf:()=>Ce,EW:()=>W,QZ:()=>re,O8:()=>j}),l(467);var d=l(2615),v=l(8440);const u={...v.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};class Ce{destroyed=!1;listeners=null;errorHandler=(0,d.WQX)(d.zcH,{optional:!0});destroyRef=(0,d.WQX)(d.abz);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe($){if(this.destroyed)throw new d.buA(953,!1);return(this.listeners??=[]).push($),{unsubscribe:()=>{const Ke=this.listeners?.indexOf($);void 0!==Ke&&-1!==Ke&&this.listeners?.splice(Ke,1)}}}emit($){if(this.destroyed)return void console.warn((0,d.OsK)(953,!1));if(null===this.listeners)return;const Ke=(0,v.Ht)(null);try{for(const Vt of this.listeners)try{Vt($)}catch(St){this.errorHandler?.handleError(St)}}finally{(0,v.Ht)(Ke)}}}function j(H){return function f(H){const $=(0,v.Ht)(null);try{return H()}finally{(0,v.Ht)($)}}(H)}function W(H,$){return(0,v.KZ)(H,$?.equal)}class G{[v.bh];constructor($){this[v.bh]=$}destroy(){this[v.bh].destroy()}}function re(H,$){const Ke=$?.injector??(0,d.WQX)(d.zZn);let St,Vt=!0!==$?.manualCleanup?Ke.get(d.abz):null;const ot=Ke.get(d.r4V,null,{optional:!0}),nt=Ke.get(d.hk6);return null!==ot?(St=function ce(H,$,Ke){const Vt=Object.create(V);return Vt.view=H,Vt.zone=typeof Zone<"u"?Zone.current:null,Vt.notifier=$,Vt.fn=ne(Vt,Ke),H[d.tQN]??=new Set,H[d.tQN].add(Vt),Vt.consumerMarkedDirty(Vt),Vt}(ot.view,nt,H),Vt instanceof d.KXn&&Vt._lView===ot.view&&(Vt=null)):St=function be(H,$,Ke){const Vt=Object.create(Ee);return Vt.fn=ne(Vt,H),Vt.scheduler=$,Vt.notifier=Ke,Vt.zone=typeof Zone<"u"?Zone.current:null,Vt.scheduler.add(Vt),Vt.notifier.notify(12),Vt}(H,Ke.get(d.VML),nt),St.injector=Ke,null!==Vt&&(St.onDestroyFn=Vt.onDestroy(()=>St.destroy())),new G(St)}const xe={...u,cleanupFns:void 0,zone:null,onDestroyFn:d.lQ1,run(){const H=(0,d.cBl)(!1);try{!function L(H){if(H.dirty=!1,H.version>0&&!(0,v.si)(H))return;H.version++;const $=(0,v.Bg)(H);try{H.cleanup(),H.fn()}finally{(0,v.Wu)(H,$)}}(this)}finally{(0,d.cBl)(H)}},cleanup(){if(!this.cleanupFns?.length)return;const H=(0,v.Ht)(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],(0,v.Ht)(H)}}},Ee={...xe,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){(0,v.XR)(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}},V={...xe,consumerMarkedDirty(){this.view[d.Wg1]|=8192,(0,d.blu)(this.view),this.notifier.notify(13)},destroy(){(0,v.XR)(this),this.onDestroyFn(),this.cleanup(),this.view[d.tQN]?.delete(this)}};function ne(H,$){return()=>{$(Ke=>(H.cleanupFns??=[]).push(Ke))}}Error,Error},2615(Zt,pe,l){"use strict";let i;function d(){return i}function v(K){const Ie=i;return i=K,Ie}l.d(pe,{JEi:()=>er,Isx:()=>Xs,EJG:()=>_r,Yrj:()=>rs,VVG:()=>Zr,Y20:()=>Hr,SKP:()=>qo,hk6:()=>gc,eVN:()=>Wr,b5C:()=>is,rQE:()=>Hs,X5O:()=>ls,qFA:()=>Za,qQL:()=>sa,abz:()=>va,tQN:()=>Pa,pcR:()=>qs,oMQ:()=>xs,Mlv:()=>Wn,MZA:()=>En,M0L:()=>Co,Z63:()=>ri,VML:()=>Oa,uvJ:()=>Ki,zcH:()=>Ls,Wg1:()=>Ka,Yw1:()=>wa,jgP:()=>jr,tcA:()=>Vo,ID:()=>Ui,YEL:()=>Jr,B9r:()=>Hn,GBX:()=>U,ZTf:()=>gi,nKC:()=>Qn,zZn:()=>$i,rJ1:()=>nr,nfM:()=>Fs,s6P:()=>Or,K29:()=>kr,CQl:()=>ke,p9y:()=>Me,zSs:()=>Z,ONQ:()=>Sn,hmW:()=>N,yAH:()=>Ft,KXn:()=>oa,oTH:()=>Pi,Czx:()=>vr,f7T:()=>Ps,wVl:()=>Ws,GYQ:()=>nc,u5s:()=>Ha,rev:()=>lo,Ds7:()=>Mr,e5P:()=>_a,Iaj:()=>yr,GpT:()=>Js,buA:()=>le,AQb:()=>ic,jNX:()=>ds,eDl:()=>Er,qlT:()=>js,bm_:()=>Rr,RxE:()=>C,r4V:()=>Kc,ok8:()=>Pe,Evm:()=>Yc,Jy$:()=>v1,laP:()=>j,EYC:()=>Mn,ng7:()=>ci,llW:()=>ia,gsJ:()=>Bn,GZS:()=>Ei,iYM:()=>$,PEr:()=>Ss,z7f:()=>Vt,LZP:()=>St,Xln:()=>Dt,yzR:()=>el,TWe:()=>Ml,LIA:()=>he,GWr:()=>F,pbo:()=>ve,bBq:()=>cs,Af3:()=>Zs,zQk:()=>tr,oZy:()=>Eo,tF7:()=>ot,ZFY:()=>we,cP4:()=>qr,MdC:()=>Ms,XvL:()=>ie,KET:()=>xa,Tkx:()=>zl,iw4:()=>lt,tdH:()=>Xl,pr_:()=>ht,IAh:()=>te,U45:()=>Re,WrV:()=>Xe,kNT:()=>nt,MI:()=>pl,biv:()=>Sl,ZQF:()=>Le,Cv0:()=>_e,W0r:()=>Ln,R2n:()=>mn,O8q:()=>On,VKj:()=>kt,Rom:()=>$e,z6V:()=>Un,n$e:()=>V,hjC:()=>It,Pz9:()=>wi,PQT:()=>se,VX4:()=>We,_Z$:()=>Je,N79:()=>Ul,xLP:()=>In,zuh:()=>vt,BI7:()=>Ri,U7d:()=>Ni,uXy:()=>kn,nZS:()=>vi,ihb:()=>vl,ID8:()=>al,gv8:()=>Nr,dwj:()=>xe,Bqz:()=>rn,OsK:()=>Ae,Rfq:()=>ne,c$7:()=>Il,gxQ:()=>oo,ckz:()=>Do,kLh:()=>re,xUg:()=>en,KdJ:()=>Vl,db4:()=>eo,VPL:()=>La,MT:()=>wo,Z9v:()=>pc,Ab:()=>Kt,w7Z:()=>od,Mx4:()=>et,veI:()=>Mt,HaV:()=>oi,Agf:()=>vn,znI:()=>so,wGu:()=>Fn,ebl:()=>cn,OAn:()=>X,_0$:()=>Al,UaU:()=>ct,vaC:()=>Go,d31:()=>gl,ZRn:()=>Tr,phH:()=>da,WbQ:()=>Ta,WB9:()=>Nn,d_l:()=>io,vNG:()=>Ys,oyA:()=>bn,_px:()=>Io,CpD:()=>Wl,XRZ:()=>jo,klJ:()=>de,Fje:()=>tl,b$O:()=>kl,SMZ:()=>G,WQX:()=>zi,MzJ:()=>At,jXY:()=>Fe,MME:()=>ni,JlV:()=>mt,Qs1:()=>He,srX:()=>Ne,vOT:()=>za,YWB:()=>ai,EPY:()=>Es,yoD:()=>q,P3H:()=>Ns,Jzi:()=>De,rFz:()=>as,JjR:()=>Xc,M6u:()=>bo,KtD:()=>Jl,muV:()=>gt,A0l:()=>Sr,q$2:()=>Ks,yP_:()=>ar,EFk:()=>ln,Hps:()=>Oo,UhH:()=>Ll,QuC:()=>Kn,Y3W:()=>nn,n$r:()=>tc,K7h:()=>fa,FRF:()=>ha,ezK:()=>ra,m7n:()=>$n,niQ:()=>jl,krE:()=>nl,bll:()=>Hl,Hh6:()=>mo,EmA:()=>yi,blu:()=>to,HAh:()=>fo,WfI:()=>ii,xbp:()=>ec,jvu:()=>Rl,lQ1:()=>Ti,BCV:()=>Wi,Rc9:()=>Ga,E6O:()=>Vn,DyX:()=>no,eFE:()=>qe,dMS:()=>Ho,HUe:()=>So,nl4:()=>J,N4e:()=>gr,XaM:()=>ee,Kw3:()=>mc,vQI:()=>fc,RZ9:()=>Fr,GA0:()=>Ao,iMd:()=>Tn,Pfq:()=>Gi,xyx:()=>po,a2B:()=>Tt,kcM:()=>gn,DFp:()=>Ue,P2g:()=>il,cBl:()=>ro,ypq:()=>ko,vPA:()=>yl,HO5:()=>Xr,M_e:()=>Tl,B22:()=>Dr,ik5:()=>wl,AsM:()=>Ee,PP7:()=>pn,$8:()=>Ke,$Hz:()=>on,zAe:()=>Uo,IvY:()=>mi,_gW:()=>_l,F1c:()=>us,ITl:()=>Dl,brz:()=>Ve,jRZ:()=>To,SX7:()=>Pn,jDH:()=>oe,G2t:()=>fe,fuf:()=>Wo,cSN:()=>ir,KVO:()=>bi,dmw:()=>Qi,joV:()=>yt,By9:()=>Ts,qSk:()=>sr,Njj:()=>me,eBV:()=>Q});const w=Symbol("NotFound");function O(K){return K===w||"\u0275NotFound"===K?.name}Error;var f=l(8440),u=l(4412),L=l(1985);class C{full;major;minor;patch;constructor(Ie){this.full=Ie;const Ut=Ie.split(".");this.major=Ut[0],this.minor=Ut[1],this.patch=Ut.slice(2).join(".")}}const Pe="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class le extends Error{code;constructor(Ie,Ut){super(Ae(Ie,Ut)),this.code=Ie}}function Ae(K,Ie){return`${function Ce(K){return`NG0${Math.abs(K)}`}(K)}${Ie?": "+Ie:""}`}const j=globalThis;function G(){return!1}function re(K){for(let Ie in K)if(K[Ie]===re)return Ie;throw Error("")}function xe(K,Ie){for(const Ut in Ie)Ie.hasOwnProperty(Ut)&&!K.hasOwnProperty(Ut)&&(K[Ut]=Ie[Ut])}function Ee(K){if("string"==typeof K)return K;if(Array.isArray(K))return`[${K.map(Ee).join(", ")}]`;if(null==K)return""+K;const Ie=K.overriddenName||K.name;if(Ie)return`${Ie}`;const Ut=K.toString();if(null==Ut)return""+Ut;const Gn=Ut.indexOf("\n");return Gn>=0?Ut.slice(0,Gn):Ut}function V(K,Ie){return K?Ie?`${K} ${Ie}`:K:Ie||""}const be=re({__forward_ref__:re});function ne(K){return K.__forward_ref__=ne,K.toString=function(){return Ee(this())},K}function J(K){return De(K)?K():K}function De(K){return"function"==typeof K&&K.hasOwnProperty(be)&&K.__forward_ref__===ne}function Re(K,Ie){"number"!=typeof K&&Ke(Ie,typeof K,"number","===")}function Xe(K,Ie,Ut){Re(K,"Expected a number"),function P(K,Ie,Ut){K<=Ie||Ke(Ut,K,Ie,"<=")}(K,Ut,"Expected number to be less than or equal to"),ve(K,Ie,"Expected number to be greater than or equal to")}function _e(K,Ie){"string"!=typeof K&&Ke(Ie,null===K?"null":typeof K,"string","===")}function he(K,Ie){"function"!=typeof K&&Ke(Ie,null===K?"null":typeof K,"function","===")}function Dt(K,Ie,Ut){K!=Ie&&Ke(Ut,K,Ie,"==")}function lt(K,Ie,Ut){K==Ie&&Ke(Ut,K,Ie,"!=")}function Le(K,Ie,Ut){K!==Ie&&Ke(Ut,K,Ie,"===")}function te(K,Ie,Ut){K===Ie&&Ke(Ut,K,Ie,"!==")}function ie(K,Ie,Ut){KIe||Ke(Ut,K,Ie,">")}function ve(K,Ie,Ut){K>=Ie||Ke(Ut,K,Ie,">=")}function $(K,Ie){null==K&&Ke(Ie,K,null,"!=")}function Ke(K,Ie,Ut,Gn){throw new Error(`ASSERTION ERROR: ${K}`+(null==Gn?"":` [Expected=> ${Ut} ${Gn} ${Ie} <=Actual]`))}function Vt(K){K instanceof Node||Ke(`The provided value must be an instance of a DOM Node but got ${Ee(K)}`)}function St(K){K instanceof Element||Ke(`The provided value must be an element but got ${Ee(K)}`)}function ot(K,Ie){$(K,"Array must be defined.");const Ut=K.length;(Ie<0||Ie>=Ut)&&Ke(`Index expected to be less than ${Ut} but got ${Ie}`)}function nt(K,...Ie){if(-1!==Ie.indexOf(K))return!0;Ke(`Expected value to be one of ${JSON.stringify(Ie)} but was ${JSON.stringify(K)}.`)}function ht(K){null!==(0,f.nR)()&&Ke(`${K}() should never be called in a reactive context.`)}function oe(K){return{token:K.token,providedIn:K.providedIn||null,factory:K.factory,value:void 0}}function fe(K){return{providers:K.providers||[],imports:K.imports||[]}}function Qe(K){return function Gt(K,Ie){return K.hasOwnProperty(Ie)&&K[Ie]||null}(K,Ft)}function gt(K){return null!==Qe(K)}function cn(K){return K&&K.hasOwnProperty(Sn)?K[Sn]:null}const Ft=re({\u0275prov:re}),Sn=re({\u0275inj:re});class Qn{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(Ie,Ut){this._desc=Ie,this.\u0275prov=void 0,"number"==typeof Ut?this.__NG_ELEMENT_ID__=Ut:void 0!==Ut&&(this.\u0275prov=oe({token:this,providedIn:Ut.providedIn||"root",factory:Ut.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let h;function jt(){return Ke("getInjectorProfilerContext should never be called in production mode"),h}function Ue(K){Ke("setInjectorProfilerContext should never be called in production mode");const Ie=h;return h=K,Ie}const wt=[],pt=()=>{};function gn(K){return Ke("setInjectorProfiler should never be called in production mode"),null!==K?(wt.includes(K)||wt.push(K),()=>function Pt(K){const Ie=wt.indexOf(K);-1!==Ie&&wt.splice(Ie,1)}(K)):(wt.length=0,pt)}function ei(K){Ke("Injector profiler should never be called in production mode");for(let Ie=0;Ie1&&(ui=` Path: ${Ut.join(" -> ")}.`);return Ae(Ie,`${K}${Gn?` Source: ${Gn}.`:""}${ui}`)}(K[Ge]||K.message,K[ut],K[Ot],Ie),K}(se(0,Ie),null)}function on(K,Ie){throw new le(-201,!1)}function dn(K,Ie,Ut){const Gn=new le(Ie,K);return Gn[ut]=Ie,Gn[Ge]=K,Ut&&(Gn[Ot]=Ut),Gn}let xi;function Yi(){return xi}function Tt(K){const Ie=xi;return xi=K,Ie}function At(K,Ie,Ut){const Gn=Qe(K);return Gn&&"root"==Gn.providedIn?void 0===Gn.value?Gn.value=Gn.factory():Gn.value:8&Ut?null:void 0!==Ie?Ie:void on()}function we(K){}const Lt={},Ht="__NG_DI_FLAG__";class _n{injector;constructor(Ie){this.injector=Ie}retrieve(Ie,Ut){const Gn=It(Ut)||0;try{return this.injector.get(Ie,8&Gn?null:Lt,Gn)}catch(ui){if(O(ui))return ui;throw ui}}}function fi(K,Ie=0){const Ut=d();if(void 0===Ut)throw new le(-203,!1);if(null===Ut)return At(K,void 0,Ie);{const Gn=function an(K){return{optional:!!(8&K),host:!!(1&K),self:!!(2&K),skipSelf:!!(4&K)}}(Ie),ui=Ut.retrieve(K,Gn);if(O(ui)){if(Gn.optional)return null;throw ui}return ui}}function bi(K,Ie=0){return(Yi()||fi)(J(K),Ie)}function Qi(K){throw new le(202,!1)}function zi(K,Ie){return bi(K,It(Ie))}function It(K){return typeof K>"u"||"number"==typeof K?K:0|(K.optional&&8)|(K.host&&1)|(K.self&&2)|(K.skipSelf&&4)}function Yt(K){const Ie=[];for(let Ut=0;UtArray.isArray(Ut)?In(Ut,Ie):Ie(Ut))}function Mn(K,Ie,Ut){Ie>=K.length?K.push(Ut):K.splice(Ie,0,Ut)}function Vn(K,Ie){return Ie>=K.length-1?K.pop():K.splice(Ie,1)[0]}function ii(K,Ie){const Ut=[];for(let Gn=0;GnIe;)K[ui]=K[ui-2],ui--;K[Ie]=Ut,K[Ie+1]=Gn}}function ra(K,Ie,Ut){let Gn=ha(K,Ie);return Gn>=0?K[1|Gn]=Ut:(Gn=~Gn,ia(K,Gn,Ie,Ut)),Gn}function fa(K,Ie){const Ut=ha(K,Ie);if(Ut>=0)return K[1|Ut]}function ha(K,Ie){return function qt(K,Ie,Ut){let Gn=0,ui=K.length>>Ut;for(;ui!==Gn;){const ki=Gn+(ui-Gn>>1),Wa=K[ki<Ie?ui=ki:Gn=ki+1}return~(ui<{Ut.push(Wa)};return In(Ie,Wa=>{const Bi=Wa;Ve(Bi,ki,[],Gn)&&(ui||=[],ui.push(Bi))}),void 0!==ui&&Wt(ui,ki),Ut}function Wt(K,Ie){for(let Ut=0;Ut{Ie(ki,Gn)})}}function Ve(K,Ie,Ut,Gn){if(!(K=J(K)))return!1;let ui=null,ki=cn(K);const Wa=!ki&&en(K);if(ki||Wa){if(Wa&&!Wa.standalone)return!1;ui=K}else{const Aa=K.ngModule;if(ki=cn(Aa),!ki)return!1;ui=Aa}const Bi=Gn.has(ui);if(Wa){if(Bi)return!1;if(Gn.add(ui),Wa.dependencies){const Aa="function"==typeof Wa.dependencies?Wa.dependencies():Wa.dependencies;for(const hi of Aa)Ve(hi,Ie,Ut,Gn)}}else{if(!ki)return!1;{if(null!=ki.imports&&!Bi){let hi;Gn.add(ui),In(ki.imports,es=>{Ve(es,Ie,Ut,Gn)&&(hi||=[],hi.push(es))}),void 0!==hi&&Wt(hi,Ie)}if(!Bi){const hi=Fn(ui)||(()=>new ui);Ie({provide:ui,useFactory:hi,deps:Wn},ui),Ie({provide:Hn,useValue:ui,multi:!0},ui),Ie({provide:ri,useValue:()=>bi(ui),multi:!0},ui)}const Aa=ki.providers;if(null!=Aa&&!Bi){const hi=K;Jt(Aa,es=>{Ie(es,hi)})}}}return ui!==K&&void 0!==K.providers}function Jt(K,Ie){for(let Ut of K)ye(Ut)&&(Ut=Ut.\u0275providers),Array.isArray(Ut)?Jt(Ut,Ie):Ie(Ut)}const ti=re({provide:String,useValue:re});function di(K){return null!==K&&"object"==typeof K&&ti in K}function nn(K){return"function"==typeof K}function ni(K){return!!K.useClass}const U=new Qn(""),tt={},Ze={};let Xt;function Nn(){return void 0===Xt&&(Xt=new Pi),Xt}class Ki{}class _a extends Ki{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(Ie,Ut,Gn,ui){super(),this.parent=Ut,this.source=Gn,this.scopes=ui,pr(Ie,Wa=>this.processProvider(Wa)),this.records.set(Rn,hr(void 0,this)),ui.has("environment")&&this.records.set(Ki,hr(void 0,this));const ki=this.records.get(U);null!=ki&&"string"==typeof ki.value&&this.scopes.add(ki.value),this.injectorDefTypes=new Set(this.get(Hn,Wn,{self:!0}))}retrieve(Ie,Ut){const Gn=It(Ut)||0;try{return this.get(Ie,Lt,Gn)}catch(ui){if(O(ui))return ui;throw ui}}destroy(){As(this),this._destroyed=!0;const Ie=(0,f.Ht)(null);try{for(const Gn of this._ngOnDestroyHooks)Gn.ngOnDestroy();const Ut=this._onDestroyHooks;this._onDestroyHooks=[];for(const Gn of Ut)Gn()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,f.Ht)(Ie)}}onDestroy(Ie){return As(this),this._onDestroyHooks.push(Ie),()=>this.removeOnDestroy(Ie)}runInContext(Ie){As(this);const Ut=v(this),Gn=Tt(void 0);try{return Ie()}finally{v(Ut),Tt(Gn)}}get(Ie,Ut=Lt,Gn){if(As(this),Ie.hasOwnProperty(at))return Ie[at](this);const ui=It(Gn),Wa=v(this),Bi=Tt(void 0);try{if(!(4&ui)){let hi=this.records.get(Ie);if(void 0===hi){const es=function zo(K){return"function"==typeof K||"object"==typeof K&&"InjectionToken"===K.ngMetadataName}(Ie)&&Qe(Ie);hi=es&&this.injectableDefInScope(es)?hr(Ua(Ie),tt):null,this.records.set(Ie,hi)}if(null!=hi)return this.hydrate(Ie,hi,ui)}return(2&ui?Nn():this.parent).get(Ie,Ut=8&ui&&Ut===Lt?null:Ut)}catch(Aa){const hi=function xn(K){return K[ut]}(Aa);throw-200===hi||-201===hi?new le(hi,null):Aa}finally{Tt(Bi),v(Wa)}}resolveInjectorInitializers(){const Ie=(0,f.Ht)(null),Ut=v(this),Gn=Tt(void 0);try{const ki=this.get(ri,Wn,{self:!0});for(const Wa of ki)Wa()}finally{v(Ut),Tt(Gn),(0,f.Ht)(Ie)}}toString(){const Ie=[],Ut=this.records;for(const Gn of Ut.keys())Ie.push(Ee(Gn));return`R3Injector[${Ie.join(", ")}]`}processProvider(Ie){let Ut=nn(Ie=J(Ie))?Ie:J(Ie&&Ie.provide);const Gn=function ns(K){return di(K)?hr(void 0,K.useValue):hr(Ga(K),tt)}(Ie);if(!nn(Ie)&&!0===Ie.multi){let ui=this.records.get(Ut);ui||(ui=hr(void 0,tt,!0),ui.factory=()=>Yt(ui.multi),this.records.set(Ut,ui)),Ut=Ie,ui.multi.push(Ie)}this.records.set(Ut,Gn)}hydrate(Ie,Ut,Gn){const ui=(0,f.Ht)(null);try{if(Ut.value===Ze)throw se(Ee(Ie));return Ut.value===tt&&(Ut.value=Ze,Ut.value=Ut.factory(void 0,Gn)),"object"==typeof Ut.value&&Ut.value&&function fr(K){return null!==K&&"object"==typeof K&&"function"==typeof K.ngOnDestroy}(Ut.value)&&this._ngOnDestroyHooks.add(Ut.value),Ut.value}finally{(0,f.Ht)(ui)}}injectableDefInScope(Ie){if(!Ie.providedIn)return!1;const Ut=J(Ie.providedIn);return"string"==typeof Ut?"any"===Ut||this.scopes.has(Ut):this.injectorDefTypes.has(Ut)}removeOnDestroy(Ie){const Ut=this._onDestroyHooks.indexOf(Ie);-1!==Ut&&this._onDestroyHooks.splice(Ut,1)}}function Ua(K){const Ie=Qe(K),Ut=null!==Ie?Ie.factory:Fn(K);if(null!==Ut)return Ut;if(K instanceof Qn)throw new le(204,!1);if(K instanceof Function)return function $a(K){if(K.length>0)throw new le(204,!1);const Ut=function rt(K){return(K?.[Ft]??null)||null}(K);return null!==Ut?()=>Ut.factory(K):()=>new K}(K);throw new le(204,!1)}function Ga(K,Ie,Ut){let Gn;if(nn(K)){const ui=J(K);return Fn(ui)||Ua(ui)}if(di(K))Gn=()=>J(K.useValue);else if(function ca(K){return!(!K||!K.useFactory)}(K))Gn=()=>K.useFactory(...Yt(K.deps||[]));else if(function Ii(K){return!(!K||!K.useExisting)}(K))Gn=(ui,ki)=>bi(J(K.useExisting),void 0!==ki&&8&ki?8:void 0);else{const ui=J(K&&(K.useClass||K.provide));if(!function mr(K){return!!K.deps}(K))return Fn(ui)||Ua(ui);Gn=()=>new ui(...Yt(K.deps))}return Gn}function As(K){if(K.destroyed)throw new le(205,!1)}function hr(K,Ie,Ut=!1){return{factory:K,value:Ie,multi:Ut?[]:void 0}}function pr(K,Ie){for(const Ut of K)Array.isArray(Ut)?pr(Ut,Ie):Ut&&ye(Ut)?pr(Ut.\u0275providers,Ie):Ie(Ut)}function gr(K,Ie){let Ut;K instanceof _a?(As(K),Ut=K):Ut=new _n(K);const ui=v(Ut),ki=Tt(void 0);try{return Ie()}finally{v(ui),Tt(ki)}}function bo(){return void 0!==Yi()||null!=d()}function Zs(K){if(!bo())throw new le(-203,!1)}const jr=0,Er=1,Ka=2,Ps=3,kr=4,js=5,Vo=6,Zr=7,qo=8,Jr=9,Co=10,Js=11,_r=12,rs=13,ls=14,is=15,Hs=16,Ws=17,Mr=18,Ui=19,xs=20,vr=21,qs=22,Pa=23,yr=24,er=25,Xs=26,wa=27,Za=6,Or=7,Rr=8,Fs=9,Hr=10;function Ks(K){return Array.isArray(K)&&"object"==typeof K[1]}function Sr(K){return Array.isArray(K)&&!0===K[1]}function Ne(K){return!!(4&K.flags)}function He(K){return K.componentOffset>-1}function q(K){return!(1&~K.flags)}function mt(K){return!!K.template}function ln(K){return!!(512&K[Ka])}function Es(K){return!(256&~K[Ka])}function kt(K,Ie){$e(K,Ie[Er])}function On(K,Ie){const Ut=Ie+wa;ot(K,Ut),ie(Ut,K[Er].bindingStartIndex,"TNodes should be created before any bindings")}function $e(K,Ie){mn(K);const Ut=Ie.data;for(let Gn=wa;Gn) must have projection slots defined.")}function pl(K,Ie){$(K,"Component views should always have a parent view (component's host view)")}function zl(K,Ie){Eo(K,Ie),Eo(K,Ie+8),Re(K[Ie+0],"injectorIndex should point to a bloom filter"),Re(K[Ie+1],"injectorIndex should point to a bloom filter"),Re(K[Ie+2],"injectorIndex should point to a bloom filter"),Re(K[Ie+3],"injectorIndex should point to a bloom filter"),Re(K[Ie+4],"injectorIndex should point to a bloom filter"),Re(K[Ie+5],"injectorIndex should point to a bloom filter"),Re(K[Ie+6],"injectorIndex should point to a bloom filter"),Re(K[Ie+7],"injectorIndex should point to a bloom filter"),Re(K[Ie+8],"injectorIndex should point to parent injector")}const ds="svg",nr="math";function mi(K){for(;Array.isArray(K);)K=K[jr];return K}function Uo(K){for(;Array.isArray(K);){if("object"==typeof K[1])return K;K=K[jr]}return null}function Go(K,Ie){return mi(Ie[K])}function gl(K,Ie){return mi(Ie[K.index])}function Tr(K,Ie){const Ut=null===K?-1:K.index;return-1!==Ut?mi(Ie[Ut]):null}function jo(K,Ie){return K.data[Ie]}function mo(K,Ie){return K[Ie]}function Tl(K,Ie,Ut,Gn){Ut>=K.data.length&&(K.data[Ut]=null,K.blueprint[Ut]=null),Ie[Ut]=Gn}function Vl(K,Ie){const Ut=Ie[K];return Ks(Ut)?Ut:Ut[jr]}function za(K){return!(4&~K[Ka])}function us(K){return!(128&~K[Ka])}function Dl(K){return Sr(K[Ps])}function eo(K,Ie){return null==Ie?null:K[Ie]}function So(K){K[Ws]=0}function fo(K){1024&K[Ka]||(K[Ka]|=1024,us(K)&&to(K))}function To(K,Ie){for(;K>0;)Ie=Ie[ls],K--;return Ie}function Ho(K){return!!(9216&K[Ka]||K[yr]?.dirty)}function _l(K){K[Co].changeDetectionScheduler?.notify(8),64&K[Ka]&&(K[Ka]|=1024),Ho(K)&&to(K)}function to(K){K[Co].changeDetectionScheduler?.notify(0);let Ie=Al(K);for(;null!==Ie&&!(8192&Ie[Ka])&&(Ie[Ka]|=8192,us(Ie));)Ie=Al(Ie)}function wl(K,Ie){if(Es(K))throw new le(911,!1);null===K[vr]&&(K[vr]=[]),K[vr].push(Ie)}function no(K,Ie){if(null===K[vr])return;const Ut=K[vr].indexOf(Ie);-1!==Ut&&K[vr].splice(Ut,1)}function Al(K){const Ie=K[Ps];return Sr(Ie)?Ie[Ps]:Ie}function io(K){return K[Zr]??=[]}function Ys(K){return K.cleanup??=[]}function Dr(K,Ie,Ut,Gn){const ui=io(Ie);ui.push(Ut),K.firstCreatePass&&Ys(K).push(Gn,ui.length-1)}const li={lFrame:Ol(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Wr=function(K){return K[K.Off=0]="Off",K[K.Exhaustive=1]="Exhaustive",K[K.OnlyDirtyViews=2]="OnlyDirtyViews",K}(Wr||{});let ao=0,Pr=!1;function so(){return li.lFrame.elementDepthCount}function tl(){li.lFrame.elementDepthCount++}function Ul(){li.lFrame.elementDepthCount--}function Do(){return li.bindingsEnabled}function Jl(){return null!==li.skipHydrationRootTNode}function Ll(K){return li.skipHydrationRootTNode===K}function ir(){li.bindingsEnabled=!0}function Wo(){li.bindingsEnabled=!1}function nl(){li.skipHydrationRootTNode=null}function X(){return li.lFrame.lView}function de(){return li.lFrame.tView}function Q(K){return li.lFrame.contextLView=K,K[qo]}function me(K){return li.lFrame.contextLView=null,K}function et(){let K=Mt();for(;null!==K&&64===K.type;)K=K.parent;return K}function Mt(){return li.lFrame.currentTNode}function Kt(){const K=li.lFrame,Ie=K.currentTNode;return K.isParent?Ie:Ie.parent}function Tn(K,Ie){const Ut=li.lFrame;Ut.currentTNode=K,Ut.isParent=Ie}function ai(){return li.lFrame.isParent}function Gi(){li.lFrame.isParent=!1}function La(){return li.lFrame.contextLView}function as(){return Ke("Must never be called in production mode"),ao!==Wr.Off}function Ns(){return Ke("Must never be called in production mode"),ao===Wr.Exhaustive}function il(K){Ke("Must never be called in production mode"),ao=K}function ar(){return Pr}function ro(K){const Ie=Pr;return Pr=K,Ie}function oo(){const K=li.lFrame;let Ie=K.bindingRootIndex;return-1===Ie&&(Ie=K.bindingRootIndex=K.tView.bindingStartIndex),Ie}function Il(){return li.lFrame.bindingIndex}function mc(K){return li.lFrame.bindingIndex=K}function ec(){return li.lFrame.bindingIndex++}function kl(K){const Ie=li.lFrame,Ut=Ie.bindingIndex;return Ie.bindingIndex=Ie.bindingIndex+K,Ut}function Xc(){return li.lFrame.inI18n}function po(K){li.lFrame.inI18n=K}function fc(K,Ie){const Ut=li.lFrame;Ut.bindingIndex=Ut.bindingRootIndex=K,Fr(Ie)}function pc(){return li.lFrame.currentDirectiveIndex}function Fr(K){li.lFrame.currentDirectiveIndex=K}function wo(K){const Ie=li.lFrame.currentDirectiveIndex;return-1===Ie?null:K[Ie]}function od(){return li.lFrame.currentQueryIndex}function Ao(K){li.lFrame.currentQueryIndex=K}function Lc(K){const Ie=K[Er];return 2===Ie.type?Ie.declTNode:1===Ie.type?K[js]:null}function vl(K,Ie,Ut){if(4&Ut){let ui=Ie,ki=K;for(;!(ui=ui.parent,null!==ui||1&Ut||(ui=Lc(ki),null===ui||(ki=ki[ls],10&ui.type))););if(null===ui)return!1;Ie=ui,K=ki}const Gn=li.lFrame=Lo();return Gn.currentTNode=Ie,Gn.lView=K,!0}function al(K){const Ie=Lo(),Ut=K[Er];li.lFrame=Ie,Ie.currentTNode=Ut.firstChild,Ie.lView=K,Ie.tView=Ut,Ie.contextLView=K,Ie.bindingIndex=Ut.bindingStartIndex,Ie.inI18n=!1}function Lo(){const K=li.lFrame,Ie=null===K?null:K.child;return null===Ie?Ol(K):Ie}function Ol(K){const Ie={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:K,child:null,inI18n:!1};return null!==K&&(K.child=Ie),Ie}function Gl(){const K=li.lFrame;return li.lFrame=K.parent,K.currentTNode=null,K.lView=null,K}const jl=Gl;function Hl(){const K=Gl();K.isParent=!0,K.tView=null,K.selectedIndex=-1,K.contextLView=null,K.elementDepthCount=0,K.currentDirectiveIndex=-1,K.currentNamespace=null,K.bindingRootIndex=-1,K.bindingIndex=-1,K.currentQueryIndex=0}function Rl(K){return(li.lFrame.contextLView=To(K,li.lFrame.contextLView))[qo]}function Io(){return li.lFrame.selectedIndex}function ko(K){li.lFrame.selectedIndex=K}function Wl(){const K=li.lFrame;return jo(K.tView,K.selectedIndex)}function sr(){li.lFrame.currentNamespace=ds}function Ts(){li.lFrame.currentNamespace=nr}function yt(){!function je(){li.lFrame.currentNamespace=null}()}function ct(){return li.lFrame.currentNamespace}let Qt=!0;function Pn(){return Qt}function $n(K){Qt=K}function Ci(K,Ie=null,Ut=null,Gn){const ui=wi(K,Ie,Ut,Gn);return ui.resolveInjectorInitializers(),ui}function wi(K,Ie=null,Ut=null,Gn,ui=new Set){const ki=[Ut||Wn,Ca(K)];return Gn=Gn||("object"==typeof K?void 0:Ee(K)),new _a(ki,Ie||Nn(),Gn||null,ui)}class $i{static THROW_IF_NOT_FOUND=Lt;static NULL=new Pi;static create(Ie,Ut){if(Array.isArray(Ie))return Ci({name:""},Ut,Ie,"");{const Gn=Ie.name??"";return Ci({name:Gn},Ie.parent,Ie.providers,Gn)}}static \u0275prov=oe({token:$i,providedIn:"any",factory:()=>bi(Rn)});static __NG_ELEMENT_ID__=-1}const sa=new Qn("");let va=(()=>class K{static __NG_ELEMENT_ID__=hs;static __NG_ENV_ID__=Ut=>Ut})();class oa extends va{_lView;constructor(Ie){super(),this._lView=Ie}get destroyed(){return Es(this._lView)}onDestroy(Ie){const Ut=this._lView;return wl(Ut,Ie),()=>no(Ut,Ie)}}function hs(){return new oa(X())}class Ls{_console=console;handleError(Ie){this._console.error("ERROR",Ie)}}const gi=new Qn("",{providedIn:"root",factory:()=>{const K=zi(Ki);let Ie;return Ut=>{K.destroyed&&!Ie?setTimeout(()=>{throw Ut}):(Ie??=K.get(Ls),Ie.handleError(Ut))}}}),Nr={provide:ri,useValue:()=>{zi(Ls)},multi:!0};function Oo(K){return"function"==typeof K&&void 0!==K[f.bh]}function yl(K,Ie){const[Ut,Gn,ui]=(0,f.n5)(K,Ie?.equal),ki=Ut;return ki.set=Gn,ki.update=ui,ki.asReadonly=Xr.bind(ki),ki}function Xr(){const K=this[f.bh];if(void 0===K.readonlyFn){const Ie=()=>this();Ie[f.bh]=K,K.readonlyFn=Ie}return K.readonlyFn}function tc(K){return Oo(K)&&"function"==typeof K.set}function Xl(K,Ie){if(null!==(0,f.nR)())throw new le(-602,!1)}let Kc=(()=>class K{view;node;constructor(Ut,Gn){this.view=Ut,this.node=Gn}static __NG_ELEMENT_ID__=_1})();function _1(){return new Kc(X(),et())}class gc{}const Yc=new Qn("",{providedIn:"root",factory:()=>!1}),nc=new Qn("",{providedIn:"root",factory:()=>!1}),v1=new Qn(""),ic=new Qn("");let lo=(()=>{class K{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new u.t(!1);get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new L.c(Ut=>{Ut.next(!1),Ut.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const Ut=this.taskId++;return this.pendingTasks.add(Ut),Ut}has(Ut){return this.pendingTasks.has(Ut)}remove(Ut){this.pendingTasks.delete(Ut),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=oe({token:K,providedIn:"root",factory:()=>new K})}return K})(),Ha=(()=>{class K{internalPendingTasks=zi(lo);scheduler=zi(gc);errorHandler=zi(gi);add(){const Ut=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(Ut)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(Ut))}}run(Ut){const Gn=this.add();Ut().catch(this.errorHandler).finally(Gn)}static \u0275prov=oe({token:K,providedIn:"root",factory:()=>new K})}return K})();function Ti(...K){}let Oa=(()=>{class K{static \u0275prov=oe({token:K,providedIn:"root",factory:()=>new os})}return K})();class os{dirtyEffectCount=0;queues=new Map;add(Ie){this.enqueue(Ie),this.schedule(Ie)}schedule(Ie){Ie.dirty&&this.dirtyEffectCount++}remove(Ie){const Gn=this.queues.get(Ie.zone);Gn.has(Ie)&&(Gn.delete(Ie),Ie.dirty&&this.dirtyEffectCount--)}enqueue(Ie){const Ut=Ie.zone;this.queues.has(Ut)||this.queues.set(Ut,new Set);const Gn=this.queues.get(Ut);Gn.has(Ie)||Gn.add(Ie)}flush(){for(;this.dirtyEffectCount>0;){let Ie=!1;for(const[Ut,Gn]of this.queues)Ie||=null===Ut?this.flushQueue(Gn):Ut.run(()=>this.flushQueue(Gn));Ie||(this.dirtyEffectCount=0)}}flushQueue(Ie){let Ut=!1;for(const Gn of Ie)Gn.dirty&&(this.dirtyEffectCount--,Ut=!0,Gn.run());return Ut}}},9079(Zt,pe,l){"use strict";l.d(pe,{ot:()=>Ee});var Ce=l(2615),Ae=l(9295);function Ee(ne,J){const Re=J?.manualCleanup?null:J?.injector?.get(Ce.abz)??(0,Ce.WQX)(Ce.abz),Xe=function V(ne=Object.is){return(J,De)=>1===J.kind&&1===De.kind&&ne(J.value,De.value)}(J?.equal);let _e,he;_e=(0,Ce.vPA)(J?.requireSync?{kind:0}:{kind:1,value:J?.initialValue},{equal:Xe});const Dt=ne.subscribe({next:lt=>_e.set({kind:1,value:lt}),error:lt=>{_e.set({kind:2,error:lt}),he?.()},complete:()=>{he?.()}});if(J?.requireSync&&0===_e().kind)throw new Ce.buA(601,!1);return he=Re?.onDestroy(Dt.unsubscribe.bind(Dt)),(0,Ae.EW)(()=>{const lt=_e();switch(lt.kind){case 1:return lt.value;case 2:throw lt.error;case 0:throw new Ce.buA(601,!1)}},{equal:J?.equal})}},8440(Zt,pe,l){"use strict";l.d(pe,{Ag:()=>_e,Bg:()=>j,EF:()=>Dt,H8:()=>Re,Ht:()=>e,JC:()=>A,KE:()=>f,KO:()=>P,KZ:()=>Xe,Ny:()=>he,TO:()=>Ae,Wu:()=>G,XR:()=>Ee,a7:()=>ne,bh:()=>w,j2:()=>Ke,mC:()=>Vt,mK:()=>C,n5:()=>ve,nR:()=>O,pL:()=>L,s0:()=>ot,si:()=>xe});let i=null,d=!1,v=1;const w=Symbol("SIGNAL");function e(ht){const oe=i;return i=ht,oe}function O(){return i}function f(){return d}const L={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function C(ht){if(d)throw new Error("");if(null===i)return;i.consumerOnSignalRead(ht);const oe=i.producersTail;if(void 0!==oe&&oe.producer===ht)return;let Ye;const fe=i.recomputing;if(fe&&(Ye=void 0!==oe?oe.nextProducer:i.producers,void 0!==Ye&&Ye.producer===ht))return i.producersTail=Ye,void(Ye.lastReadVersion=ht.version);const Qe=ht.consumersTail;if(void 0!==Qe&&Qe.consumer===i&&(!fe||function De(ht,oe){const Ye=oe.producersTail;if(void 0!==Ye){let fe=oe.producers;do{if(fe===ht)return!0;if(fe===Ye)break;fe=fe.nextProducer}while(void 0!==fe)}return!1}(Qe,i)))return;const gt=be(i),Gt={producer:ht,consumer:i,nextProducer:Ye,prevConsumer:Qe,lastReadVersion:ht.version,nextConsumer:void 0};i.producersTail=Gt,void 0!==oe?oe.nextProducer=Gt:i.producers=Gt,gt&&V(ht,Gt)}function A(ht){if((!be(ht)||ht.dirty)&&(ht.dirty||ht.lastCleanEpoch!==v)){if(!ht.producerMustRecompute(ht)&&!xe(ht))return void Ae(ht);ht.producerRecomputeValue(ht),Ae(ht)}}function Pe(ht){if(void 0===ht.consumers)return;const oe=d;d=!0;try{for(let Ye=ht.consumers;void 0!==Ye;Ye=Ye.nextConsumer){const fe=Ye.consumer;fe.dirty||Ce(fe)}}finally{d=oe}}function le(){return!1!==i?.consumerAllowSignalWrites}function Ce(ht){ht.dirty=!0,Pe(ht),ht.consumerMarkedDirty?.(ht)}function Ae(ht){ht.dirty=!1,ht.lastCleanEpoch=v}function j(ht){return ht&&function W(ht){ht.producersTail=void 0,ht.recomputing=!0}(ht),e(ht)}function G(ht,oe){e(oe),ht&&function re(ht){ht.recomputing=!1;const oe=ht.producersTail;let Ye=void 0!==oe?oe.nextProducer:ht.producers;if(void 0!==Ye){if(be(ht))do{Ye=ce(Ye)}while(void 0!==Ye);void 0!==oe?oe.nextProducer=void 0:ht.producers=void 0}}(ht)}function xe(ht){for(let oe=ht.producers;void 0!==oe;oe=oe.nextProducer){const Ye=oe.producer,fe=oe.lastReadVersion;if(fe!==Ye.version||(A(Ye),fe!==Ye.version))return!0}return!1}function Ee(ht){if(be(ht)){let oe=ht.producers;for(;void 0!==oe;)oe=ce(oe)}ht.producers=void 0,ht.producersTail=void 0,ht.consumers=void 0,ht.consumersTail=void 0}function V(ht,oe){const Ye=ht.consumersTail,fe=be(ht);if(void 0!==Ye?(oe.nextConsumer=Ye.nextConsumer,Ye.nextConsumer=oe):(oe.nextConsumer=void 0,ht.consumers=oe),oe.prevConsumer=Ye,ht.consumersTail=oe,!fe)for(let Qe=ht.producers;void 0!==Qe;Qe=Qe.nextProducer)V(Qe.producer,Qe)}function ce(ht){const oe=ht.producer,Ye=ht.nextProducer,fe=ht.nextConsumer,Qe=ht.prevConsumer;if(ht.nextConsumer=void 0,ht.prevConsumer=void 0,void 0!==fe?fe.prevConsumer=Qe:oe.consumersTail=Qe,void 0!==Qe)Qe.nextConsumer=fe;else if(oe.consumers=fe,!be(oe)){let gt=oe.producers;for(;void 0!==gt;)gt=ce(gt)}return Ye}function be(ht){return ht.consumerIsAlwaysLive||void 0!==ht.consumers}function ne(ht){}function Re(ht,oe){return Object.is(ht,oe)}function Xe(ht,oe){const Ye=Object.create(lt);Ye.computation=ht,void 0!==oe&&(Ye.equal=oe);const fe=()=>{if(A(Ye),C(Ye),Ye.value===Dt)throw Ye.error;return Ye.value};return fe[w]=Ye,fe}const _e=Symbol("UNSET"),he=Symbol("COMPUTING"),Dt=Symbol("ERRORED"),lt={...L,value:_e,dirty:!0,error:null,equal:Re,kind:"computed",producerMustRecompute:ht=>ht.value===_e||ht.value===he,producerRecomputeValue(ht){if(ht.value===he)throw new Error("");const oe=ht.value;ht.value=he;const Ye=j(ht);let fe,Qe=!1;try{fe=ht.computation(),e(null),Qe=oe!==_e&&oe!==Dt&&fe!==Dt&&ht.equal(oe,fe)}catch(gt){fe=Dt,ht.error=gt}finally{G(ht,Ye)}Qe?ht.value=oe:(ht.value=fe,ht.version++)}};let te=function Le(){throw new Error};function ie(ht){te(ht)}function P(ht){te=ht}function ve(ht,oe){const Ye=Object.create(ot);Ye.value=ht,void 0!==oe&&(Ye.equal=oe);const fe=()=>function $(ht){return C(ht),ht.value}(Ye);return fe[w]=Ye,[fe,Gt=>Ke(Ye,Gt),Gt=>Vt(Ye,Gt)]}function Ke(ht,oe){le()||ie(ht),ht.equal(ht.value,oe)||(ht.value=oe,function nt(ht){ht.version++,function B(){v++}(),Pe(ht)}(ht))}function Vt(ht,oe){le()||ie(ht),Ke(ht,oe(ht.value))}const ot={...L,equal:Re,value:void 0,kind:"signal"}},4545(Zt,pe,l){"use strict";function i(L){for(let C in L){let B=L[C]??"";switch(C){case"display":L.display="flex"===B?["-webkit-flex","flex"]:"inline-flex"===B?["-webkit-inline-flex","inline-flex"]:B;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":L["-webkit-"+C]=B;break;case"flex-direction":L["-webkit-flex-direction"]=B,L["flex-direction"]=B;break;case"order":L.order=L["-webkit-"+C]=isNaN(+B)?"0":B}}return L}l.d(pe,{C5:()=>u,O5:()=>i,Uo:()=>v,Vc:()=>e,uG:()=>T});const d="inline",v=["row","column","row-reverse","column-reverse"];function T(L){let[C,B,A]=w(L);return function f(L,C=null,B=!1){return{display:B?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":C||null}}(C,B,A)}function w(L){L=L?.toLowerCase()??"";let[C,B,A]=L.split(" ");return v.find(Pe=>Pe===C)||(C=v[0]),B===d&&(B=A!==d?A:"",A=d),[C,O(B),!!A]}function e(L){let[C]=w(L);return C.indexOf("row")>-1}function O(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function u(L,...C){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let B of C)if(null!=B)for(let A in B)B.hasOwnProperty(A)&&(L[A]=B[A]);return L}},9340(Zt,pe,l){"use strict";l.d(pe,{Ce:()=>Dt,DJ:()=>vt,EA:()=>he,PV:()=>_e,SL:()=>lt,Ui:()=>De,ZH:()=>ie,cL:()=>Je,hN:()=>at,qH:()=>kn,r3:()=>te});var Ce=l(2615),Ae=l(3664),j=l(177),W=l(1985),G=l(1413),re=l(4412),xe=l(7786),Ee=l(4545),V=l(5964),ce=l(8141);const ne={provide:Ae.iLQ,useFactory:function be(Be,ut){return()=>{if((0,j.UE)(ut)){const Ge=Array.from(Be.querySelectorAll(`[class*=${J}]`)),Ot=/\bflex-layout-.+?\b/g;Ge.forEach(se=>{se.classList.contains(`${J}ssr`)&&se.parentNode?se.parentNode.removeChild(se):se.className.replace(Ot,"")})}}},deps:[Ce.qQL,Ae.Agw],multi:!0},J="flex-layout-";let De=(()=>{class Be{}return Be.\u0275fac=function(Ge){return new(Ge||Be)},Be.\u0275mod=Ae.$C({type:Be}),Be.\u0275inj=Ce.G2t({providers:[ne]}),Be})();class Re{constructor(ut=!1,Ge="all",Ot="",se="",We=0){this.matches=ut,this.mediaQuery=Ge,this.mqAlias=Ot,this.suffix=se,this.priority=We,this.property=""}clone(){return new Re(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let Xe=(()=>{class Be{constructor(){this.stylesheet=new Map}addStyleToElement(Ge,Ot,se){const We=this.stylesheet.get(Ge);We?We.set(Ot,se):this.stylesheet.set(Ge,new Map([[Ot,se]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(Ge,Ot){const se=this.stylesheet.get(Ge);let We="";if(se){const bt=se.get(Ot);("number"==typeof bt||"string"==typeof bt)&&(We=bt+"")}return We}}return Be.\u0275fac=function(Ge){return new(Ge||Be)},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const _e={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},he=new Ce.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>_e}),Dt=new Ce.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),lt=new Ce.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function Le(Be,ut){return Be=Be?.clone()??new Re,ut&&(Be.mqAlias=ut.alias,Be.mediaQuery=ut.mediaQuery,Be.suffix=ut.suffix,Be.priority=ut.priority),Be}class te{constructor(){this.shouldCache=!0}sideEffect(ut,Ge,Ot){}}let ie=(()=>{class Be{constructor(Ge,Ot,se,We){this._serverStylesheet=Ge,this._serverModuleLoaded=Ot,this._platformId=se,this.layoutConfig=We}applyStyleToElement(Ge,Ot,se=null){let We={};"string"==typeof Ot&&(We[Ot]=se,Ot=We),We=this.layoutConfig.disableVendorPrefixes?Ot:(0,Ee.O5)(Ot),this._applyMultiValueStyleToElement(We,Ge)}applyStyleToElements(Ge,Ot=[]){const se=this.layoutConfig.disableVendorPrefixes?Ge:(0,Ee.O5)(Ge);Ot.forEach(We=>{this._applyMultiValueStyleToElement(se,We)})}getFlowDirection(Ge){const Ot="flex-direction";let se=this.lookupStyle(Ge,Ot);return[se||"row",this.lookupInlineStyle(Ge,Ot)||(0,j.Vy)(this._platformId)&&this._serverModuleLoaded?se:""]}hasWrap(Ge){return"wrap"===this.lookupStyle(Ge,"flex-wrap")}lookupAttributeValue(Ge,Ot){return Ge.getAttribute(Ot)??""}lookupInlineStyle(Ge,Ot){return(0,j.UE)(this._platformId)?Ge.style.getPropertyValue(Ot):function P(Be,ut){return H(Be)[ut]??""}(Ge,Ot)}lookupStyle(Ge,Ot,se=!1){let We="";return Ge&&((We=this.lookupInlineStyle(Ge,Ot))||((0,j.UE)(this._platformId)?se||(We=getComputedStyle(Ge).getPropertyValue(Ot)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(Ge,Ot)))),We?We.trim():""}_applyMultiValueStyleToElement(Ge,Ot){Object.keys(Ge).sort().forEach(se=>{const We=Ge[se],bt=Array.isArray(We)?We:[We];bt.sort();for(let tn of bt)tn=tn?tn+"":"",(0,j.UE)(this._platformId)||!this._serverModuleLoaded?(0,j.UE)(this._platformId)?Ot.style.setProperty(se,tn):F(Ot,se,tn):this._serverStylesheet.addStyleToElement(Ot,se,tn)})}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ce.KVO(Xe),Ce.KVO(Dt),Ce.KVO(Ae.Agw),Ce.KVO(he))},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();function F(Be,ut,Ge){ut=ut.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Ot=H(Be);Ot[ut]=Ge??"",function ve(Be,ut){let Ge="";for(const Ot in ut)ut[Ot]&&(Ge+=`${Ot}:${ut[Ot]};`);Be.setAttribute("style",Ge)}(Be,Ot)}function H(Be){const ut={},Ge=Be.getAttribute("style");if(Ge){const Ot=Ge.split(/;+/g);for(let se=0;se0){const bt=We.indexOf(":");if(-1===bt)throw new Error(`Invalid CSS style: ${We}`);ut[We.substr(0,bt).trim()]=We.substr(bt+1).trim()}}}return ut}function $(Be,ut){return(ut&&ut.priority||0)-(Be&&Be.priority||0)}function Ke(Be,ut){return(Be.priority||0)-(ut.priority||0)}let Vt=(()=>{class Be{constructor(Ge,Ot,se){this._zone=Ge,this._platformId=Ot,this._document=se,this.source=new re.t(new Re(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const Ge=[];return this.registry.forEach((Ot,se)=>{Ot.matches&&Ge.push(se)}),Ge}isActive(Ge){return this.registry.get(Ge)?.matches??this.registerQuery(Ge).some(se=>se.matches)}observe(Ge,Ot=!1){if(Ge&&Ge.length){const se=this._observable$.pipe((0,V.p)(bt=>!Ot||Ge.indexOf(bt.mediaQuery)>-1)),We=new W.c(bt=>{const tn=this.registerQuery(Ge);if(tn.length){const on=tn.pop();tn.forEach(un=>{bt.next(un)}),this.source.next(on)}bt.complete()});return(0,xe.h)(We,se)}return this._observable$}registerQuery(Ge){const Ot=Array.isArray(Ge)?Ge:[Ge],se=[];return function ot(Be,ut){const Ge=Be.filter(Ot=>!St[Ot]);if(Ge.length>0){const Ot=Ge.join(", ");try{const se=ut.createElement("style");se.setAttribute("type","text/css"),se.styleSheet||se.appendChild(ut.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Ot} {.fx-query-test{ }}\n`)),ut.head.appendChild(se),Ge.forEach(We=>St[We]=se)}catch(se){console.error(se)}}}(Ot,this._document),Ot.forEach(We=>{const bt=on=>{this._zone.run(()=>this.source.next(new Re(on.matches,We)))};let tn=this.registry.get(We);tn||(tn=this.buildMQL(We),tn.addListener(bt),this.pendingRemoveListenerFns.push(()=>tn.removeListener(bt)),this.registry.set(We,tn)),tn.matches&&se.push(new Re(!0,We))}),se}ngOnDestroy(){let Ge;for(;Ge=this.pendingRemoveListenerFns.pop();)Ge()}buildMQL(Ge){return function ht(Be,ut){return ut&&window.matchMedia("all").addListener?window.matchMedia(Be):function nt(Be){const ut=new EventTarget;return ut.matches="all"===Be||""===Be,ut.media=Be,ut.addListener=()=>{},ut.removeListener=()=>{},ut.addEventListener=()=>{},ut.dispatchEvent=()=>!1,ut.onchange=null,ut}(Be)}(Ge,(0,j.UE)(this._platformId))}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ce.KVO(Ae.SKi),Ce.KVO(Ae.Agw),Ce.KVO(Ce.qQL))},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const St={},oe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Ye="(orientation: portrait) and (max-width: 599.98px)",fe="(orientation: landscape) and (max-width: 959.98px)",Qe="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",gt="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",Gt="(orientation: portrait) and (min-width: 840px)",rt="(orientation: landscape) and (min-width: 1280px)",cn={HANDSET:`${Ye}, ${fe}`,TABLET:`${Qe} , ${gt}`,WEB:`${Gt}, ${rt} `,HANDSET_PORTRAIT:`${Ye}`,TABLET_PORTRAIT:`${Qe} `,WEB_PORTRAIT:`${Gt}`,HANDSET_LANDSCAPE:`${fe}`,TABLET_LANDSCAPE:`${gt}`,WEB_LANDSCAPE:`${rt}`},Ft=[{alias:"handset",priority:2e3,mediaQuery:cn.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:cn.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:cn.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:cn.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:cn.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:cn.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:cn.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:cn.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:cn.WEB_PORTRAIT,overlapping:!0}],Sn=/(\.|-|_)/g;function Qn(Be){let ut=Be.length>0?Be.charAt(0):"",Ge=Be.length>1?Be.slice(1):"";return ut.toUpperCase()+Ge}const wt=new Ce.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Be=(0,Ce.WQX)(lt),ut=(0,Ce.WQX)(he),Ge=[].concat.apply([],(Be||[]).map(se=>Array.isArray(se)?se:[se]));return function Ue(Be,ut=[]){const Ge={};return Be.forEach(Ot=>{Ge[Ot.alias]=Ot}),ut.forEach(Ot=>{Ge[Ot.alias]?(0,Ee.C5)(Ge[Ot.alias],Ot):Ge[Ot.alias]=Ot}),function jt(Be){return Be.forEach(ut=>{ut.suffix||(ut.suffix=function h(Be){return Be.replace(Sn,"|").split("|").map(Qn).join("")}(ut.alias),ut.overlapping=!!ut.overlapping)}),Be}(Object.keys(Ge).map(Ot=>Ge[Ot]))}((ut.disableDefaultBps?[]:oe).concat(ut.addOrientationBps?Ft:[]),Ge)}});let pt=(()=>{class Be{constructor(Ge){this.findByMap=new Map,this.items=[...Ge].sort(Ke)}findByAlias(Ge){return Ge?this.findWithPredicate(Ge,Ot=>Ot.alias===Ge):null}findByQuery(Ge){return this.findWithPredicate(Ge,Ot=>Ot.mediaQuery===Ge)}get overlappings(){return this.items.filter(Ge=>Ge.overlapping)}get aliases(){return this.items.map(Ge=>Ge.alias)}get suffixes(){return this.items.map(Ge=>Ge?.suffix??"")}findWithPredicate(Ge,Ot){let se=this.findByMap.get(Ge);return se||(se=this.items.find(Ot)??null,this.findByMap.set(Ge,se)),se??null}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ce.KVO(wt))},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();const Pt="print",gn={alias:Pt,mediaQuery:Pt,priority:1e3};let ei=(()=>{class Be{constructor(Ge,Ot,se){this.breakpoints=Ge,this.layoutConfig=Ot,this._document=se,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new vi,this.deactivations=[]}withPrintQuery(Ge){return[...Ge,Pt]}isPrintEvent(Ge){return Ge.mediaQuery.startsWith(Pt)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(Ge=>this.breakpoints.findByAlias(Ge)).filter(Ge=>null!==Ge)}getEventBreakpoints({mediaQuery:Ge}){const Ot=this.breakpoints.findByQuery(Ge);return(Ot?[...this.printBreakPoints,Ot]:this.printBreakPoints).sort($)}updateEvent(Ge){let Ot=this.breakpoints.findByQuery(Ge.mediaQuery);return this.isPrintEvent(Ge)&&(Ot=this.getEventBreakpoints(Ge)[0],Ge.mediaQuery=Ot?.mediaQuery??""),Le(Ge,Ot)}registerBeforeAfterPrintHooks(Ge){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Ot=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(Ge,this.getEventBreakpoints(new Re(!0,Pt))),Ge.updateStyles())},se=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(Ge),Ge.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Ot),this._document.defaultView.addEventListener("afterprint",se),this.beforePrintEventListeners.push(Ot),this.afterPrintEventListeners.push(se)}interceptEvents(Ge){return Ot=>{this.isPrintEvent(Ot)?Ot.matches&&!this.isPrinting?(this.startPrinting(Ge,this.getEventBreakpoints(Ot)),Ge.updateStyles()):!Ot.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(Ge),Ge.updateStyles()):this.collectActivations(Ge,Ot)}}blockPropagation(){return Ge=>!(this.isPrinting||this.isPrintEvent(Ge))}startPrinting(Ge,Ot){this.isPrinting=!0,this.formerActivations=Ge.activatedBreakpoints,Ge.activatedBreakpoints=this.queue.addPrintBreakpoints(Ot)}stopPrinting(Ge){Ge.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(Ge,Ot){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Ot.matches){const se=this.breakpoints.findByQuery(Ot.mediaQuery);if(se){const We=this.formerActivations&&this.formerActivations.includes(se),bt=!this.formerActivations&&Ge.activatedBreakpoints.includes(se);(We||bt)&&(this.deactivations.push(se),this.deactivations.sort($))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(Ge=>this._document.defaultView.removeEventListener("beforeprint",Ge)),this.afterPrintEventListeners.forEach(Ge=>this._document.defaultView.removeEventListener("afterprint",Ge)))}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ce.KVO(pt),Ce.KVO(he),Ce.KVO(Ce.qQL))},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();class vi{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(ut){return ut.push(gn),ut.sort($),ut.forEach(Ge=>this.addBreakpoint(Ge)),this.printBreakpoints}addBreakpoint(ut){ut&&void 0===this.printBreakpoints.find(Ot=>Ot.mediaQuery===ut.mediaQuery)&&(this.printBreakpoints=function Ni(Be){return Be?.mediaQuery.startsWith(Pt)??!1}(ut)?[ut,...this.printBreakpoints]:[...this.printBreakpoints,ut])}clear(){this.printBreakpoints=[]}}let kn=(()=>{class Be{constructor(Ge,Ot,se){this.matchMedia=Ge,this.breakpoints=Ot,this.hook=se,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new G.B,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(Ge){this._activatedBreakpoints=[...Ge]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(Ge){this._useFallbacks=Ge}onMediaChange(Ge){const Ot=this.findByQuery(Ge.mediaQuery);if(Ot){Ge=Le(Ge,Ot);const se=this.activatedBreakpoints.indexOf(Ot);Ge.matches&&-1===se?(this._activatedBreakpoints.push(Ot),this._activatedBreakpoints.sort($),this.updateStyles()):!Ge.matches&&-1!==se&&(this._activatedBreakpoints.splice(se,1),this._activatedBreakpoints.sort($),this.updateStyles())}}init(Ge,Ot,se,We,bt=[]){Ri(this.updateMap,Ge,Ot,se),Ri(this.clearMap,Ge,Ot,We),this.buildElementKeyMap(Ge,Ot),this.watchExtraTriggers(Ge,Ot,bt)}getValue(Ge,Ot,se){const We=this.elementMap.get(Ge);if(We){const bt=void 0!==se?We.get(se):this.getActivatedValues(We,Ot);if(bt)return bt.get(Ot)}}hasValue(Ge,Ot){const se=this.elementMap.get(Ge);if(se){const We=this.getActivatedValues(se,Ot);if(We)return void 0!==We.get(Ot)||!1}return!1}setValue(Ge,Ot,se,We){let bt=this.elementMap.get(Ge);if(bt){const on=(bt.get(We)??new Map).set(Ot,se);bt.set(We,on),this.elementMap.set(Ge,bt)}else bt=(new Map).set(We,(new Map).set(Ot,se)),this.elementMap.set(Ge,bt);const tn=this.getValue(Ge,Ot);void 0!==tn&&this.updateElement(Ge,Ot,tn)}trackValue(Ge,Ot){return this.subject.asObservable().pipe((0,V.p)(se=>se.element===Ge&&se.key===Ot))}updateStyles(){this.elementMap.forEach((Ge,Ot)=>{const se=new Set(this.elementKeyMap.get(Ot));let We=this.getActivatedValues(Ge);We&&We.forEach((bt,tn)=>{this.updateElement(Ot,tn,bt),se.delete(tn)}),se.forEach(bt=>{if(We=this.getActivatedValues(Ge,bt),We){const tn=We.get(bt);this.updateElement(Ot,bt,tn)}else this.clearElement(Ot,bt)})})}clearElement(Ge,Ot){const se=this.clearMap.get(Ge);if(se){const We=se.get(Ot);We&&(We(),this.subject.next({element:Ge,key:Ot,value:""}))}}updateElement(Ge,Ot,se){const We=this.updateMap.get(Ge);if(We){const bt=We.get(Ot);bt&&(bt(se),this.subject.next({element:Ge,key:Ot,value:se}))}}releaseElement(Ge){const Ot=this.watcherMap.get(Ge);Ot&&(Ot.forEach(We=>We.unsubscribe()),this.watcherMap.delete(Ge));const se=this.elementMap.get(Ge);se&&(se.forEach((We,bt)=>se.delete(bt)),this.elementMap.delete(Ge))}triggerUpdate(Ge,Ot){const se=this.elementMap.get(Ge);if(se){const We=this.getActivatedValues(se,Ot);We&&(Ot?this.updateElement(Ge,Ot,We.get(Ot)):We.forEach((bt,tn)=>this.updateElement(Ge,tn,bt)))}}buildElementKeyMap(Ge,Ot){let se=this.elementKeyMap.get(Ge);se||(se=new Set,this.elementKeyMap.set(Ge,se)),se.add(Ot)}watchExtraTriggers(Ge,Ot,se){if(se&&se.length){let We=this.watcherMap.get(Ge);if(We||(We=new Map,this.watcherMap.set(Ge,We)),!We.get(Ot)){const tn=(0,xe.h)(...se).subscribe(()=>{const on=this.getValue(Ge,Ot);this.updateElement(Ge,Ot,on)});We.set(Ot,tn)}}}findByQuery(Ge){return this.breakpoints.findByQuery(Ge)}getActivatedValues(Ge,Ot){for(let We=0;WeOt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(Ge)).pipe((0,ce.M)(this.hook.interceptEvents(this)),(0,V.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ce.KVO(Vt),Ce.KVO(pt),Ce.KVO(ei))},Be.\u0275prov=Ce.jDH({token:Be,factory:Be.\u0275fac,providedIn:"root"}),Be})();function Ri(Be,ut,Ge,Ot){if(void 0!==Ot){const se=Be.get(ut)??new Map;se.set(Ge,Ot),Be.set(ut,se)}}let vt=(()=>{class Be{constructor(Ge,Ot,se,We){this.elementRef=Ge,this.styleBuilder=Ot,this.styler=se,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new G.B,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(Ge){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ge,this.marshal.activatedAlias)}ngOnChanges(Ge){Object.keys(Ge).forEach(Ot=>{if(-1!==this.inputs.indexOf(Ot)){const se=Ot.split(".").slice(1).join(".");this.setValue(Ge[Ot].currentValue,se)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(Ge=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),Ge)}addStyles(Ge,Ot){const se=this.styleBuilder,We=se.shouldCache;let bt=this.styleCache.get(Ge);(!bt||!We)&&(bt=se.buildStyles(Ge,Ot),We&&this.styleCache.set(Ge,bt)),this.mru={...bt},this.applyStyleToElement(bt),se.sideEffect(Ge,bt,Ot)}clearStyles(){Object.keys(this.mru).forEach(Ge=>{this.mru[Ge]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(Ge,Ot=!1){if(Ge){const[se,We]=this.styler.getFlowDirection(Ge);if(!We&&Ot){const bt=(0,Ee.uG)(se);this.styler.applyStyleToElements(bt,[Ge])}return se.trim()}return"row"}hasWrap(Ge){return this.styler.hasWrap(Ge)}applyStyleToElement(Ge,Ot,se=this.nativeElement){this.styler.applyStyleToElement(se,Ge,Ot)}setValue(Ge,Ot){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,Ge,Ot)}updateWithValue(Ge){this.currentValue!==Ge&&(this.addStyles(Ge),this.currentValue=Ge)}}return Be.\u0275fac=function(Ge){return new(Ge||Be)(Ae.rXU(Ae.aKT),Ae.rXU(te),Ae.rXU(ie),Ae.rXU(kn))},Be.\u0275dir=Ae.FsC({type:Be,standalone:!1,features:[Ae.OA$]}),Be})();function at(Be,ut="1",Ge="1"){let Ot=[ut,Ge,Be],se=Be.indexOf("calc");if(se>0){Ot[2]=qe(Be.substring(se).trim());let We=Be.substr(0,se).trim().split(" ");2==We.length&&(Ot[0]=We[0],Ot[1]=We[1])}else if(0==se)Ot[2]=qe(Be.trim());else{let We=Be.split(" ");Ot=3===We.length?We:[ut,Ge,Be]}return Ot}function qe(Be){return Be.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Je(Be,ut){if(void 0===ut)return Be;const Ge=Ot=>{const se=+Ot.slice(0,-1);return Be.endsWith("x")&&!isNaN(se)?`${se*ut.value}${ut.unit}`:Be};return Be.includes(" ")?Be.split(" ").map(Ge).join(" "):Ge(Be)}EventTarget},6038(Zt,pe,l){"use strict";l.d(pe,{Cc:()=>P,PW:()=>W,eI:()=>Le});var i=l(7705),d=l(2615),v=l(3664),T=l(9340),w=l(2200),e=l(177),u=(l(4085),l(6977),l(345));let Ce=(()=>{class F extends T.DJ{constructor(H,$,Ke,Vt,St,ot,nt){super(H,null,$,Ke),this.ngClassInstance=nt,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new w.YU(Vt,St,H,ot)),this.init(),this.setValue("","")}set klass(H){this.ngClassInstance.klass=H,this.setValue(H,"")}updateWithValue(H){this.ngClassInstance.ngClass=H,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return F.\u0275fac=function(H){return new(H||F)(v.rXU(v.aKT),v.rXU(T.ZH),v.rXU(T.qH),v.rXU(i._q3),v.rXU(i.MKu),v.rXU(v.sFG),v.rXU(w.YU,10))},F.\u0275dir=v.FsC({type:F,inputs:{klass:[0,"class","klass"]},standalone:!1,features:[v.Vt3]}),F})();const Ae=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let W=(()=>{class F extends Ce{constructor(){super(...arguments),this.inputs=Ae}}return F.\u0275fac=(()=>{let ve;return function($){return(ve||(ve=v.xGo(F)))($||F)}})(),F.\u0275dir=v.FsC({type:F,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},standalone:!1,features:[v.Vt3]}),F})();class be{constructor(ve,H,$=!0){this.key=ve,this.value=H,this.key=$?ve.replace(/['"]/g,"").trim():ve.trim(),this.value=$?H.replace(/['"]/g,"").trim():H.trim(),this.value=this.value.replace(/;/,"")}}function ne(F){let ve=typeof F;return"object"===ve?F.constructor===Array?"array":F.constructor===Set?"set":"object":ve}function Xe(F){const[ve,...H]=F.split(":");return new be(ve,H.join(":"))}function _e(F,ve){return ve.key&&(F[ve.key]=ve.value),F}let he=(()=>{class F extends T.DJ{constructor(H,$,Ke,Vt,St,ot,nt,ht,oe){super(H,null,$,Ke),this.sanitizer=Vt,this.ngStyleInstance=nt,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new w.B3(H,St,ot)),this.init();const Ye=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Ye),this.isServer=ht&&(0,e.Vy)(oe)}updateWithValue(H){const $=this.buildStyleMap(H);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...$},this.isServer&&this.applyStyleToElement($),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(H){const $=Ke=>this.sanitizer.sanitize(v.WPN.STYLE,Ke)??"";if(H)switch(ne(H)){case"string":return te(function J(F,ve=";"){return String(F).trim().split(ve).map(H=>H.trim()).filter(H=>""!==H)}(H),$);case"array":return te(H,$);default:return function Re(F,ve){let H=[];return"set"===ne(F)?F.forEach($=>H.push($)):Object.keys(F).forEach($=>{H.push(`${$}:${F[$]}`)}),function De(F,ve){return F.map(Xe).filter($=>!!$).map($=>(ve&&($.value=ve($.value)),$)).reduce(_e,{})}(H,ve)}(H,$)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return F.\u0275fac=function(H){return new(H||F)(v.rXU(v.aKT),v.rXU(T.ZH),v.rXU(T.qH),v.rXU(u.up),v.rXU(i.MKu),v.rXU(v.sFG),v.rXU(w.B3,10),v.rXU(T.Ce),v.rXU(v.Agw))},F.\u0275dir=v.FsC({type:F,standalone:!1,features:[v.Vt3]}),F})();const Dt=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let Le=(()=>{class F extends he{constructor(){super(...arguments),this.inputs=Dt}}return F.\u0275fac=(()=>{let ve;return function($){return(ve||(ve=v.xGo(F)))($||F)}})(),F.\u0275dir=v.FsC({type:F,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},standalone:!1,features:[v.Vt3]}),F})();function te(F,ve){return F.map(Xe).filter($=>!!$).map($=>(ve&&($.value=ve($.value)),$)).reduce(_e,{})}let P=(()=>{class F{}return F.\u0275fac=function(H){return new(H||F)},F.\u0275mod=v.$C({type:F}),F.\u0275inj=d.G2t({imports:[T.Ui]}),F})()},2920(Zt,pe,l){"use strict";l.d(pe,{DJ:()=>A,UI:()=>Dt,sA:()=>ei,w2:()=>ge});var i=l(2615),d=l(3664),T=(l(1577),l(8203)),w=l(9340),e=l(4545),f=(l(1413),l(6977));let u=(()=>{class N extends w.r3{buildStyles(Me,{display:at}){const qe=(0,e.uG)(Me);return{...qe,display:"none"===at?at:qe.display}}}return N.\u0275fac=(()=>{let Z;return function(at){return(Z||(Z=d.xGo(N)))(at||N)}})(),N.\u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const L=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let B=(()=>{class N extends w.DJ{constructor(Me,at,qe,pn,Je){super(Me,qe,at,pn),this._config=Je,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(Me){const qe=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=Pe.get(qe)??new Map,Pe.set(qe,this.styleCache),this.currentValue!==Me&&(this.addStyles(Me,{display:qe}),this.currentValue=Me)}}return N.\u0275fac=function(Me){return new(Me||N)(d.rXU(d.aKT),d.rXU(w.ZH),d.rXU(u),d.rXU(w.qH),d.rXU(w.EA))},N.\u0275dir=d.FsC({type:N,standalone:!1,features:[d.Vt3]}),N})(),A=(()=>{class N extends B{constructor(){super(...arguments),this.inputs=L}}return N.\u0275fac=(()=>{let Z;return function(at){return(Z||(Z=d.xGo(N)))(at||N)}})(),N.\u0275dir=d.FsC({type:N,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},standalone:!1,features:[d.Vt3]}),N})();const Pe=new Map;let Re=(()=>{class N extends w.r3{constructor(Me){super(),this.layoutConfig=Me}buildStyles(Me,at){let[qe,pn,...Je]=Me.split(" "),Be=Je.join(" ");const ut=at.direction.indexOf("column")>-1?"column":"row",Ge=(0,e.Vc)(ut)?"max-width":"max-height",Ot=(0,e.Vc)(ut)?"min-width":"min-height",se=String(Be).indexOf("calc")>-1,We=se||"auto"===Be,bt=String(Be).indexOf("%")>-1&&!se,tn=String(Be).indexOf("px")>-1||String(Be).indexOf("rem")>-1||String(Be).indexOf("em")>-1||String(Be).indexOf("vw")>-1||String(Be).indexOf("vh")>-1;let on=se||tn;qe="0"==qe?0:qe,pn="0"==pn?0:pn;const un=!qe&&!pn;let Nt={};const dn={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(Be||""){case"":Be="row"===ut?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":qe=0,Be="auto";break;case"grow":Be="100%";break;case"noshrink":pn=0,Be="auto";break;case"auto":break;case"none":qe=0,pn=0,Be="auto";break;default:!on&&!bt&&!isNaN(Be)&&(Be+="%"),"0%"===Be&&(on=!0),"0px"===Be&&(Be="0%"),Nt=(0,e.C5)(dn,se?{"flex-grow":qe,"flex-shrink":pn,"flex-basis":on?Be:"100%"}:{flex:`${qe} ${pn} ${on?Be:"100%"}`})}return Nt.flex||Nt["flex-grow"]||(Nt=(0,e.C5)(dn,se?{"flex-grow":qe,"flex-shrink":pn,"flex-basis":Be}:{flex:`${qe} ${pn} ${Be}`})),"0%"!==Be&&"0px"!==Be&&"0.000000001px"!==Be&&"auto"!==Be&&(Nt[Ot]=un||on&&qe?Be:null,Nt[Ge]=un||!We&&pn?Be:null),Nt[Ot]||Nt[Ge]?at.hasWrap&&(Nt[se?"flex-basis":"flex"]=Nt[Ge]?se?Nt[Ge]:`${qe} ${pn} ${Nt[Ge]}`:se?Nt[Ot]:`${qe} ${pn} ${Nt[Ot]}`):Nt=(0,e.C5)(dn,se?{"flex-grow":qe,"flex-shrink":pn,"flex-basis":Be}:{flex:`${qe} ${pn} ${Be}`}),(0,e.C5)(Nt,{"box-sizing":"border-box"})}}return N.\u0275fac=function(Me){return new(Me||N)(i.KVO(w.EA))},N.\u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const Xe=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let he=(()=>{class N extends w.DJ{constructor(Me,at,qe,pn,Je){super(Me,pn,at,Je),this.layoutConfig=qe,this.marshal=Je,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(Me){this.flexShrink=Me||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(Me){this.flexGrow=Me||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,f.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,f.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(Me){const qe=Me.value.split(" ");this.direction=qe[0],this.wrap=void 0!==qe[1]&&"wrap"===qe[1],this.triggerUpdate()}updateWithValue(Me){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const qe=this.direction,pn=qe.startsWith("row"),Je=this.wrap;pn&&Je?this.styleCache=te:pn&&!Je?this.styleCache=lt:!pn&&Je?this.styleCache=ie:!pn&&!Je&&(this.styleCache=Le);const Be=String(Me).replace(";",""),ut=(0,w.hN)(Be,this.flexGrow,this.flexShrink);this.addStyles(ut.join(" "),{direction:qe,hasWrap:Je})}triggerReflow(){const Me=this.activatedValue;if(void 0!==Me){const at=(0,w.hN)(Me+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,at.join(" "))}}}return N.\u0275fac=function(Me){return new(Me||N)(d.rXU(d.aKT),d.rXU(w.ZH),d.rXU(w.EA),d.rXU(Re),d.rXU(w.qH))},N.\u0275dir=d.FsC({type:N,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},standalone:!1,features:[d.Vt3]}),N})(),Dt=(()=>{class N extends he{constructor(){super(...arguments),this.inputs=Xe}}return N.\u0275fac=(()=>{let Z;return function(at){return(Z||(Z=d.xGo(N)))(at||N)}})(),N.\u0275dir=d.FsC({type:N,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},standalone:!1,features:[d.Vt3]}),N})();const lt=new Map,Le=new Map,te=new Map,ie=new Map;let wt=(()=>{class N extends w.r3{buildStyles(Me,at){const qe={},[pn,Je]=Me.split(" ");switch(pn){case"center":qe["justify-content"]="center";break;case"space-around":qe["justify-content"]="space-around";break;case"space-between":qe["justify-content"]="space-between";break;case"space-evenly":qe["justify-content"]="space-evenly";break;case"end":case"flex-end":qe["justify-content"]="flex-end";break;default:qe["justify-content"]="flex-start"}switch(Je){case"start":case"flex-start":qe["align-items"]=qe["align-content"]="flex-start";break;case"center":qe["align-items"]=qe["align-content"]="center";break;case"end":case"flex-end":qe["align-items"]=qe["align-content"]="flex-end";break;case"space-between":qe["align-content"]="space-between",qe["align-items"]="stretch";break;case"space-around":qe["align-content"]="space-around",qe["align-items"]="stretch";break;case"baseline":qe["align-content"]="stretch",qe["align-items"]="baseline";break;default:qe["align-items"]=qe["align-content"]="stretch"}return(0,e.C5)(qe,{display:at.inline?"inline-flex":"flex","flex-direction":at.layout,"box-sizing":"border-box","max-width":"stretch"===Je?(0,e.Vc)(at.layout)?null:"100%":null,"max-height":"stretch"===Je&&(0,e.Vc)(at.layout)?"100%":null})}}return N.\u0275fac=(()=>{let Z;return function(at){return(Z||(Z=d.xGo(N)))(at||N)}})(),N.\u0275prov=i.jDH({token:N,factory:N.\u0275fac,providedIn:"root"}),N})();const pt=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let gn=(()=>{class N extends w.DJ{constructor(Me,at,qe,pn){super(Me,qe,at,pn),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,f.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(Me){const at=this.layout||"row",qe=this.inline;"row"===at&&qe?this.styleCache=vt:"row"!==at||qe?"row-reverse"===at&&qe?this.styleCache=ye:"row-reverse"!==at||qe?"column"===at&&qe?this.styleCache=ee:"column"!==at||qe?"column-reverse"===at&&qe?this.styleCache=ke:"column-reverse"===at&&!qe&&(this.styleCache=Ri):this.styleCache=Ni:this.styleCache=kn:this.styleCache=vi,this.addStyles(Me,{layout:at,inline:qe})}onLayoutChange(Me){const at=Me.value.split(" ");this.layout=at[0],this.inline=Me.value.includes("inline"),e.Uo.find(qe=>qe===this.layout)||(this.layout="row"),this.triggerUpdate()}}return N.\u0275fac=function(Me){return new(Me||N)(d.rXU(d.aKT),d.rXU(w.ZH),d.rXU(wt),d.rXU(w.qH))},N.\u0275dir=d.FsC({type:N,standalone:!1,features:[d.Vt3]}),N})(),ei=(()=>{class N extends gn{constructor(){super(...arguments),this.inputs=pt}}return N.\u0275fac=(()=>{let Z;return function(at){return(Z||(Z=d.xGo(N)))(at||N)}})(),N.\u0275dir=d.FsC({type:N,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},standalone:!1,features:[d.Vt3]}),N})();const vi=new Map,Ni=new Map,kn=new Map,Ri=new Map,vt=new Map,ee=new Map,ye=new Map,ke=new Map;let ge=(()=>{class N{}return N.\u0275fac=function(Me){return new(Me||N)},N.\u0275mod=d.$C({type:N}),N.\u0275inj=i.G2t({imports:[w.Ui,T.jI]}),N})()},9417(Zt,pe,l){"use strict";l.d(pe,{BC:()=>Sn,JD:()=>As,Q0:()=>Jt,VZ:()=>Jr,X1:()=>Sr,YN:()=>Ks,YS:()=>_r,ZU:()=>gt,cV:()=>Wn,cb:()=>Qn,cz:()=>Ee,hs:()=>Pi,j4:()=>Nn,k0:()=>be,kq:()=>Pe,l_:()=>Ze,me:()=>G,ok:()=>Or,qT:()=>Ve,vO:()=>Gt,vS:()=>Fe,zX:()=>Zr,ze:()=>Fs});var v=l(2615),T=l(3664),w=l(7705),e=l(9295),O=l(7303),f=l(1413),u=l(7468),L=l(2806),C=l(6354);let B=(()=>{class Ne{_renderer;_elementRef;onChange=q=>{};onTouched=()=>{};constructor(q,mt){this._renderer=q,this._elementRef=mt}setProperty(q,mt){this._renderer.setProperty(this._elementRef.nativeElement,q,mt)}registerOnTouched(q){this.onTouched=q}registerOnChange(q){this.onChange=q}setDisabledState(q){this.setProperty("disabled",q)}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(T.sFG),T.rXU(T.aKT))};static \u0275dir=T.FsC({type:Ne})}return Ne})(),A=(()=>{class Ne extends B{static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275dir=T.FsC({type:Ne,features:[T.Vt3]})}return Ne})();const Pe=new v.nKC(""),Ae={provide:Pe,useExisting:(0,v.Rfq)(()=>G),multi:!0},W=new v.nKC("");let G=(()=>{class Ne extends B{_compositionMode;_composing=!1;constructor(q,mt,ln){super(q,mt),this._compositionMode=ln,null==this._compositionMode&&(this._compositionMode=!function j(){const Ne=(0,O.rb)()?(0,O.rb)().getUserAgent():"";return/android (\d+)/.test(Ne.toLowerCase())}())}writeValue(q){this.setProperty("value",q??"")}_handleInput(q){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(q)}_compositionStart(){this._composing=!0}_compositionEnd(q){this._composing=!1,this._compositionMode&&this.onChange(q)}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(T.sFG),T.rXU(T.aKT),T.rXU(W,8))};static \u0275dir=T.FsC({type:Ne,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(mt,ln){1&mt&&T.bIt("input",function(ua){return ln._handleInput(ua.target.value)})("blur",function(){return ln.onTouched()})("compositionstart",function(){return ln._compositionStart()})("compositionend",function(ua){return ln._compositionEnd(ua.target.value)})},standalone:!1,features:[T.Jv_([Ae]),T.Vt3]})}return Ne})();function re(Ne){return null==Ne||0===xe(Ne)}function xe(Ne){return null==Ne?null:Array.isArray(Ne)||"string"==typeof Ne?Ne.length:Ne instanceof Set?Ne.size:null}const Ee=new v.nKC(""),V=new v.nKC(""),ce=/^(?=.{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])?)*$/;class be{static min(He){return ne(He)}static max(He){return J(He)}static required(He){return De(He)}static requiredTrue(He){return function Re(Ne){return!0===Ne.value?null:{required:!0}}(He)}static email(He){return function Xe(Ne){return re(Ne.value)||ce.test(Ne.value)?null:{email:!0}}(He)}static minLength(He){return function _e(Ne){return He=>{const q=He.value?.length??xe(He.value);return null===q||0===q?null:q{const q=He.value?.length??xe(He.value);return null!==q&&q>Ne?{maxlength:{requiredLength:Ne,actualLength:q}}:null}}(He)}static pattern(He){return function Dt(Ne){if(!Ne)return lt;let He,q;return"string"==typeof Ne?(q="","^"!==Ne.charAt(0)&&(q+="^"),q+=Ne,"$"!==Ne.charAt(Ne.length-1)&&(q+="$"),He=new RegExp(q)):(q=Ne.toString(),He=Ne),mt=>{if(re(mt.value))return null;const ln=mt.value;return He.test(ln)?null:{pattern:{requiredPattern:q,actualValue:ln}}}}(He)}static nullValidator(He){return null}static compose(He){return H(He)}static composeAsync(He){return Ke(He)}}function ne(Ne){return He=>{if(null==He.value||null==Ne)return null;const q=parseFloat(He.value);return!isNaN(q)&&q{if(null==He.value||null==Ne)return null;const q=parseFloat(He.value);return!isNaN(q)&&q>Ne?{max:{max:Ne,actual:He.value}}:null}}function De(Ne){return re(Ne.value)?{required:!0}:null}function lt(Ne){return null}function Le(Ne){return null!=Ne}function te(Ne){return(0,T.yLl)(Ne)?(0,L.H)(Ne):Ne}function ie(Ne){let He={};return Ne.forEach(q=>{He=null!=q?{...He,...q}:He}),0===Object.keys(He).length?null:He}function P(Ne,He){return He.map(q=>q(Ne))}function ve(Ne){return Ne.map(He=>function F(Ne){return!Ne.validate}(He)?He:q=>He.validate(q))}function H(Ne){if(!Ne)return null;const He=Ne.filter(Le);return 0==He.length?null:function(q){return ie(P(q,He))}}function $(Ne){return null!=Ne?H(ve(Ne)):null}function Ke(Ne){if(!Ne)return null;const He=Ne.filter(Le);return 0==He.length?null:function(q){const mt=P(q,He).map(te);return(0,u.p)(mt).pipe((0,C.T)(ie))}}function Vt(Ne){return null!=Ne?Ke(ve(Ne)):null}function St(Ne,He){return null===Ne?[He]:Array.isArray(Ne)?[...Ne,He]:[Ne,He]}function ot(Ne){return Ne._rawValidators}function nt(Ne){return Ne._rawAsyncValidators}function ht(Ne){return Ne?Array.isArray(Ne)?Ne:[Ne]:[]}function oe(Ne,He){return Array.isArray(Ne)?Ne.includes(He):Ne===He}function Ye(Ne,He){const q=ht(He);return ht(Ne).forEach(ln=>{oe(q,ln)||q.push(ln)}),q}function fe(Ne,He){return ht(He).filter(q=>!oe(Ne,q))}class Qe{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(He){this._rawValidators=He||[],this._composedValidatorFn=$(this._rawValidators)}_setAsyncValidators(He){this._rawAsyncValidators=He||[],this._composedAsyncValidatorFn=Vt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(He){this._onDestroyCallbacks.push(He)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(He=>He()),this._onDestroyCallbacks=[]}reset(He=void 0){this.control&&this.control.reset(He)}hasError(He,q){return!!this.control&&this.control.hasError(He,q)}getError(He,q){return this.control?this.control.getError(He,q):null}}class gt extends Qe{name;get formDirective(){return null}get path(){return null}}class Gt extends Qe{_parent=null;name=null;valueAccessor=null}class rt{_cd;constructor(He){this._cd=He}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}}let Sn=(()=>{class Ne extends rt{constructor(q){super(q)}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(Gt,2))};static \u0275dir=T.FsC({type:Ne,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(mt,ln){2&mt&&T.AVh("ng-untouched",ln.isUntouched)("ng-touched",ln.isTouched)("ng-pristine",ln.isPristine)("ng-dirty",ln.isDirty)("ng-valid",ln.isValid)("ng-invalid",ln.isInvalid)("ng-pending",ln.isPending)},standalone:!1,features:[T.Vt3]})}return Ne})(),Qn=(()=>{class Ne extends rt{constructor(q){super(q)}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(gt,10))};static \u0275dir=T.FsC({type:Ne,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(mt,ln){2&mt&&T.AVh("ng-untouched",ln.isUntouched)("ng-touched",ln.isTouched)("ng-pristine",ln.isPristine)("ng-dirty",ln.isDirty)("ng-valid",ln.isValid)("ng-invalid",ln.isInvalid)("ng-pending",ln.isPending)("ng-submitted",ln.isSubmitted)},standalone:!1,features:[T.Vt3]})}return Ne})();const N="VALID",Z="INVALID",Me="PENDING",at="DISABLED";class qe{}class pn extends qe{value;source;constructor(He,q){super(),this.value=He,this.source=q}}class Je extends qe{pristine;source;constructor(He,q){super(),this.pristine=He,this.source=q}}class Be extends qe{touched;source;constructor(He,q){super(),this.touched=He,this.source=q}}class ut extends qe{status;source;constructor(He,q){super(),this.status=He,this.source=q}}class Ge extends qe{source;constructor(He){super(),this.source=He}}class Ot extends qe{source;constructor(He){super(),this.source=He}}function se(Ne){return(on(Ne)?Ne.validators:Ne)||null}function bt(Ne,He){return(on(He)?He.asyncValidators:Ne)||null}function on(Ne){return null!=Ne&&!Array.isArray(Ne)&&"object"==typeof Ne}function un(Ne,He,q){const mt=Ne.controls;if(!(He?Object.keys(mt):mt).length)throw new v.buA(1e3,"");if(!mt[q])throw new v.buA(1001,"")}function Nt(Ne,He,q){Ne._forEachChild((mt,ln)=>{if(void 0===q[ln])throw new v.buA(1002,"")})}class dn{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(He,q){this._assignValidators(He),this._assignAsyncValidators(q)}get validator(){return this._composedValidatorFn}set validator(He){this._rawValidators=this._composedValidatorFn=He}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(He){this._rawAsyncValidators=this._composedAsyncValidatorFn=He}get parent(){return this._parent}get status(){return(0,e.O8)(this.statusReactive)}set status(He){(0,e.O8)(()=>this.statusReactive.set(He))}_status=(0,e.EW)(()=>this.statusReactive());statusReactive=(0,v.vPA)(void 0);get valid(){return this.status===N}get invalid(){return this.status===Z}get pending(){return this.status==Me}get disabled(){return this.status===at}get enabled(){return this.status!==at}errors;get pristine(){return(0,e.O8)(this.pristineReactive)}set pristine(He){(0,e.O8)(()=>this.pristineReactive.set(He))}_pristine=(0,e.EW)(()=>this.pristineReactive());pristineReactive=(0,v.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,e.O8)(this.touchedReactive)}set touched(He){(0,e.O8)(()=>this.touchedReactive.set(He))}_touched=(0,e.EW)(()=>this.touchedReactive());touchedReactive=(0,v.vPA)(!1);get untouched(){return!this.touched}_events=new f.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(He){this._assignValidators(He)}setAsyncValidators(He){this._assignAsyncValidators(He)}addValidators(He){this.setValidators(Ye(He,this._rawValidators))}addAsyncValidators(He){this.setAsyncValidators(Ye(He,this._rawAsyncValidators))}removeValidators(He){this.setValidators(fe(He,this._rawValidators))}removeAsyncValidators(He){this.setAsyncValidators(fe(He,this._rawAsyncValidators))}hasValidator(He){return oe(this._rawValidators,He)}hasAsyncValidator(He){return oe(this._rawAsyncValidators,He)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(He={}){const q=!1===this.touched;this.touched=!0;const mt=He.sourceControl??this;this._parent&&!He.onlySelf&&this._parent.markAsTouched({...He,sourceControl:mt}),q&&!1!==He.emitEvent&&this._events.next(new Be(!0,mt))}markAllAsDirty(He={}){this.markAsDirty({onlySelf:!0,emitEvent:He.emitEvent,sourceControl:this}),this._forEachChild(q=>q.markAllAsDirty(He))}markAllAsTouched(He={}){this.markAsTouched({onlySelf:!0,emitEvent:He.emitEvent,sourceControl:this}),this._forEachChild(q=>q.markAllAsTouched(He))}markAsUntouched(He={}){const q=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const mt=He.sourceControl??this;this._forEachChild(ln=>{ln.markAsUntouched({onlySelf:!0,emitEvent:He.emitEvent,sourceControl:mt})}),this._parent&&!He.onlySelf&&this._parent._updateTouched(He,mt),q&&!1!==He.emitEvent&&this._events.next(new Be(!1,mt))}markAsDirty(He={}){const q=!0===this.pristine;this.pristine=!1;const mt=He.sourceControl??this;this._parent&&!He.onlySelf&&this._parent.markAsDirty({...He,sourceControl:mt}),q&&!1!==He.emitEvent&&this._events.next(new Je(!1,mt))}markAsPristine(He={}){const q=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const mt=He.sourceControl??this;this._forEachChild(ln=>{ln.markAsPristine({onlySelf:!0,emitEvent:He.emitEvent})}),this._parent&&!He.onlySelf&&this._parent._updatePristine(He,mt),q&&!1!==He.emitEvent&&this._events.next(new Je(!0,mt))}markAsPending(He={}){this.status=Me;const q=He.sourceControl??this;!1!==He.emitEvent&&(this._events.next(new ut(this.status,q)),this.statusChanges.emit(this.status)),this._parent&&!He.onlySelf&&this._parent.markAsPending({...He,sourceControl:q})}disable(He={}){const q=this._parentMarkedDirty(He.onlySelf);this.status=at,this.errors=null,this._forEachChild(ln=>{ln.disable({...He,onlySelf:!0})}),this._updateValue();const mt=He.sourceControl??this;!1!==He.emitEvent&&(this._events.next(new pn(this.value,mt)),this._events.next(new ut(this.status,mt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...He,skipPristineCheck:q},this),this._onDisabledChange.forEach(ln=>ln(!0))}enable(He={}){const q=this._parentMarkedDirty(He.onlySelf);this.status=N,this._forEachChild(mt=>{mt.enable({...He,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:He.emitEvent}),this._updateAncestors({...He,skipPristineCheck:q},this),this._onDisabledChange.forEach(mt=>mt(!1))}_updateAncestors(He,q){this._parent&&!He.onlySelf&&(this._parent.updateValueAndValidity(He),He.skipPristineCheck||this._parent._updatePristine({},q),this._parent._updateTouched({},q))}setParent(He){this._parent=He}getRawValue(){return this.value}updateValueAndValidity(He={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const mt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===N||this.status===Me)&&this._runAsyncValidator(mt,He.emitEvent)}const q=He.sourceControl??this;!1!==He.emitEvent&&(this._events.next(new pn(this.value,q)),this._events.next(new ut(this.status,q)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!He.onlySelf&&this._parent.updateValueAndValidity({...He,sourceControl:q})}_updateTreeValidity(He={emitEvent:!0}){this._forEachChild(q=>q._updateTreeValidity(He)),this.updateValueAndValidity({onlySelf:!0,emitEvent:He.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?at:N}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(He,q){if(this.asyncValidator){this.status=Me,this._hasOwnPendingAsyncValidator={emitEvent:!1!==q,shouldHaveEmitted:!1!==He};const mt=te(this.asyncValidator(this));this._asyncValidationSubscription=mt.subscribe(ln=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(ln,{emitEvent:q,shouldHaveEmitted:He})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const He=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,He}return!1}setErrors(He,q={}){this.errors=He,this._updateControlsErrors(!1!==q.emitEvent,this,q.shouldHaveEmitted)}get(He){let q=He;return null==q||(Array.isArray(q)||(q=q.split(".")),0===q.length)?null:q.reduce((mt,ln)=>mt&&mt._find(ln),this)}getError(He,q){const mt=q?this.get(q):this;return mt&&mt.errors?mt.errors[He]:null}hasError(He,q){return!!this.getError(He,q)}get root(){let He=this;for(;He._parent;)He=He._parent;return He}_updateControlsErrors(He,q,mt){this.status=this._calculateStatus(),He&&this.statusChanges.emit(this.status),(He||mt)&&this._events.next(new ut(this.status,q)),this._parent&&this._parent._updateControlsErrors(He,q,mt)}_initObservables(){this.valueChanges=new T.bkB,this.statusChanges=new T.bkB}_calculateStatus(){return this._allControlsDisabled()?at:this.errors?Z:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Me)?Me:this._anyControlsHaveStatus(Z)?Z:N}_anyControlsHaveStatus(He){return this._anyControls(q=>q.status===He)}_anyControlsDirty(){return this._anyControls(He=>He.dirty)}_anyControlsTouched(){return this._anyControls(He=>He.touched)}_updatePristine(He,q){const mt=!this._anyControlsDirty(),ln=this.pristine!==mt;this.pristine=mt,this._parent&&!He.onlySelf&&this._parent._updatePristine(He,q),ln&&this._events.next(new Je(this.pristine,q))}_updateTouched(He={},q){this.touched=this._anyControlsTouched(),this._events.next(new Be(this.touched,q)),this._parent&&!He.onlySelf&&this._parent._updateTouched(He,q)}_onDisabledChange=[];_registerOnCollectionChange(He){this._onCollectionChange=He}_setUpdateStrategy(He){on(He)&&null!=He.updateOn&&(this._updateOn=He.updateOn)}_parentMarkedDirty(He){return!He&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(He){return null}_assignValidators(He){this._rawValidators=Array.isArray(He)?He.slice():He,this._composedValidatorFn=function We(Ne){return Array.isArray(Ne)?$(Ne):Ne||null}(this._rawValidators)}_assignAsyncValidators(He){this._rawAsyncValidators=Array.isArray(He)?He.slice():He,this._composedAsyncValidatorFn=function tn(Ne){return Array.isArray(Ne)?Vt(Ne):Ne||null}(this._rawAsyncValidators)}}class xn extends dn{constructor(He,q,mt){super(se(q),bt(mt,q)),this.controls=He,this._initObservables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(He,q){return this.controls[He]?this.controls[He]:(this.controls[He]=q,q.setParent(this),q._registerOnCollectionChange(this._onCollectionChange),q)}addControl(He,q,mt={}){this.registerControl(He,q),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}removeControl(He,q={}){this.controls[He]&&this.controls[He]._registerOnCollectionChange(()=>{}),delete this.controls[He],this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}setControl(He,q,mt={}){this.controls[He]&&this.controls[He]._registerOnCollectionChange(()=>{}),delete this.controls[He],q&&this.registerControl(He,q),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}contains(He){return this.controls.hasOwnProperty(He)&&this.controls[He].enabled}setValue(He,q={}){Nt(this,0,He),Object.keys(He).forEach(mt=>{un(this,!0,mt),this.controls[mt].setValue(He[mt],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(He,q={}){null!=He&&(Object.keys(He).forEach(mt=>{const ln=this.controls[mt];ln&&ln.patchValue(He[mt],{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(He={},q={}){this._forEachChild((mt,ln)=>{mt.reset(He?He[ln]:null,{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q,this),this._updateTouched(q,this),this.updateValueAndValidity(q),!1!==q?.emitEvent&&this._events.next(new Ot(this))}getRawValue(){return this._reduceChildren({},(He,q,mt)=>(He[mt]=q.getRawValue(),He))}_syncPendingControls(){let He=this._reduceChildren(!1,(q,mt)=>!!mt._syncPendingControls()||q);return He&&this.updateValueAndValidity({onlySelf:!0}),He}_forEachChild(He){Object.keys(this.controls).forEach(q=>{const mt=this.controls[q];mt&&He(mt,q)})}_setUpControls(){this._forEachChild(He=>{He.setParent(this),He._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(He){for(const[q,mt]of Object.entries(this.controls))if(this.contains(q)&&He(mt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(q,mt,ln)=>((mt.enabled||this.disabled)&&(q[ln]=mt.value),q))}_reduceChildren(He,q){let mt=He;return this._forEachChild((ln,Oi)=>{mt=q(mt,ln,Oi)}),mt}_allControlsDisabled(){for(const He of Object.keys(this.controls))if(this.controls[He].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(He){return this.controls.hasOwnProperty(He)?this.controls[He]:null}}class Tt extends xn{}const we=new v.nKC("",{providedIn:"root",factory:()=>ae}),ae="always";function Lt(Ne,He){return[...He.path,Ne]}function Ht(Ne,He,q=ae){Qi(Ne,He),He.valueAccessor.writeValue(Ne.value),(Ne.disabled||"always"===q)&&He.valueAccessor.setDisabledState?.(Ne.disabled),function It(Ne,He){He.valueAccessor.registerOnChange(q=>{Ne._pendingValue=q,Ne._pendingChange=!0,Ne._pendingDirty=!0,"change"===Ne.updateOn&&Yt(Ne,He)})}(Ne,He),function Un(Ne,He){const q=(mt,ln)=>{He.valueAccessor.writeValue(mt),ln&&He.viewToModelUpdate(mt)};Ne.registerOnChange(q),He._registerOnDestroy(()=>{Ne._unregisterOnChange(q)})}(Ne,He),function an(Ne,He){He.valueAccessor.registerOnTouched(()=>{Ne._pendingTouched=!0,"blur"===Ne.updateOn&&Ne._pendingChange&&Yt(Ne,He),"submit"!==Ne.updateOn&&Ne.markAsTouched()})}(Ne,He),function bi(Ne,He){if(He.valueAccessor.setDisabledState){const q=mt=>{He.valueAccessor.setDisabledState(mt)};Ne.registerOnDisabledChange(q),He._registerOnDestroy(()=>{Ne._unregisterOnDisabledChange(q)})}}(Ne,He)}function _n(Ne,He,q=!0){const mt=()=>{};He.valueAccessor&&(He.valueAccessor.registerOnChange(mt),He.valueAccessor.registerOnTouched(mt)),zi(Ne,He),Ne&&(He._invokeOnDestroyCallbacks(),Ne._registerOnCollectionChange(()=>{}))}function fi(Ne,He){Ne.forEach(q=>{q.registerOnValidatorChange&&q.registerOnValidatorChange(He)})}function Qi(Ne,He){const q=ot(Ne);null!==He.validator?Ne.setValidators(St(q,He.validator)):"function"==typeof q&&Ne.setValidators([q]);const mt=nt(Ne);null!==He.asyncValidator?Ne.setAsyncValidators(St(mt,He.asyncValidator)):"function"==typeof mt&&Ne.setAsyncValidators([mt]);const ln=()=>Ne.updateValueAndValidity();fi(He._rawValidators,ln),fi(He._rawAsyncValidators,ln)}function zi(Ne,He){let q=!1;if(null!==Ne){if(null!==He.validator){const ln=ot(Ne);if(Array.isArray(ln)&&ln.length>0){const Oi=ln.filter(ua=>ua!==He.validator);Oi.length!==ln.length&&(q=!0,Ne.setValidators(Oi))}}if(null!==He.asyncValidator){const ln=nt(Ne);if(Array.isArray(ln)&&ln.length>0){const Oi=ln.filter(ua=>ua!==He.asyncValidator);Oi.length!==ln.length&&(q=!0,Ne.setAsyncValidators(Oi))}}}const mt=()=>{};return fi(He._rawValidators,mt),fi(He._rawAsyncValidators,mt),q}function Yt(Ne,He){Ne._pendingDirty&&Ne.markAsDirty(),Ne.setValue(Ne._pendingValue,{emitModelToViewChange:!1}),He.viewToModelUpdate(Ne._pendingValue),Ne._pendingChange=!1}function zn(Ne,He){Qi(Ne,He)}function ii(Ne,He){if(!Ne.hasOwnProperty("model"))return!1;const q=Ne.model;return!!q.isFirstChange()||!Object.is(He,q.currentValue)}function ia(Ne,He){Ne._syncPendingControls(),He.forEach(q=>{const mt=q.control;"submit"===mt.updateOn&&mt._pendingChange&&(q.viewToModelUpdate(mt._pendingValue),mt._pendingChange=!1)})}function ra(Ne,He){if(!He)return null;let q,mt,ln;return Array.isArray(He),He.forEach(Oi=>{Oi.constructor===G?q=Oi:function Bn(Ne){return Object.getPrototypeOf(Ne.constructor)===A}(Oi)?mt=Oi:ln=Oi}),ln||mt||q||null}const qt={provide:gt,useExisting:(0,v.Rfq)(()=>Wn)},En=Promise.resolve();let Wn=(()=>{class Ne extends gt{callSetDisabledState;get submitted(){return(0,e.O8)(this.submittedReactive)}_submitted=(0,e.EW)(()=>this.submittedReactive());submittedReactive=(0,v.vPA)(!1);_directives=new Set;form;ngSubmit=new T.bkB;options;constructor(q,mt,ln){super(),this.callSetDisabledState=ln,this.form=new xn({},$(q),Vt(mt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(q){En.then(()=>{const mt=this._findContainer(q.path);q.control=mt.registerControl(q.name,q.control),Ht(q.control,q,this.callSetDisabledState),q.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(q)})}getControl(q){return this.form.get(q.path)}removeControl(q){En.then(()=>{const mt=this._findContainer(q.path);mt&&mt.removeControl(q.name),this._directives.delete(q)})}addFormGroup(q){En.then(()=>{const mt=this._findContainer(q.path),ln=new xn({});zn(ln,q),mt.registerControl(q.name,ln),ln.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(q){En.then(()=>{const mt=this._findContainer(q.path);mt&&mt.removeControl(q.name)})}getFormGroup(q){return this.form.get(q.path)}updateModel(q,mt){En.then(()=>{this.form.get(q.path).setValue(mt)})}setValue(q){this.control.setValue(q)}onSubmit(q){return this.submittedReactive.set(!0),ia(this.form,this._directives),this.ngSubmit.emit(q),this.form._events.next(new Ge(this.control)),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q=void 0){this.form.reset(q),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(q){return q.pop(),q.length?this.form.get(q):this.form}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(Ee,10),T.rXU(V,10),T.rXU(we,8))};static \u0275dir=T.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(mt,ln){1&mt&&T.bIt("submit",function(ua){return ln.onSubmit(ua)})("reset",function(){return ln.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[T.Jv_([qt]),T.Vt3]})}return Ne})();function ri(Ne,He){const q=Ne.indexOf(He);q>-1&&Ne.splice(q,1)}function Rn(Ne){return"object"==typeof Ne&&null!==Ne&&2===Object.keys(Ne).length&&"value"in Ne&&"disabled"in Ne}const Hn=class extends dn{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(He=null,q,mt){super(se(q),bt(mt,q)),this._applyFormState(He),this._setUpdateStrategy(q),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),on(q)&&(q.nonNullable||q.initialValueIsDefault)&&(this.defaultValue=Rn(He)?He.value:He)}setValue(He,q={}){this.value=this._pendingValue=He,this._onChange.length&&!1!==q.emitModelToViewChange&&this._onChange.forEach(mt=>mt(this.value,!1!==q.emitViewToModelChange)),this.updateValueAndValidity(q)}patchValue(He,q={}){this.setValue(He,q)}reset(He=this.defaultValue,q={}){this._applyFormState(He),this.markAsPristine(q),this.markAsUntouched(q),this.setValue(this.value,q),this._pendingChange=!1,!1!==q?.emitEvent&&this._events.next(new Ot(this))}_updateValue(){}_anyControls(He){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(He){this._onChange.push(He)}_unregisterOnChange(He){ri(this._onChange,He)}registerOnDisabledChange(He){this._onDisabledChange.push(He)}_unregisterOnDisabledChange(He){ri(this._onDisabledChange,He)}_forEachChild(He){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(He){Rn(He)?(this.value=this._pendingValue=He.value,He.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=He}},Pi=Hn,Wi={provide:Gt,useExisting:(0,v.Rfq)(()=>Fe)},Ca=Promise.resolve();let Fe=(()=>{class Ne extends Gt{_changeDetectorRef;callSetDisabledState;control=new Hn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new T.bkB;constructor(q,mt,ln,Oi,ua,Es){super(),this._changeDetectorRef=ua,this.callSetDisabledState=Es,this._parent=q,this._setValidators(mt),this._setAsyncValidators(ln),this.valueAccessor=ra(0,Oi)}ngOnChanges(q){if(this._checkForErrors(),!this._registered||"name"in q){if(this._registered&&(this._checkName(),this.formDirective)){const mt=q.name.previousValue;this.formDirective.removeControl({name:mt,path:this._getPath(mt)})}this._setUpControl()}"isDisabled"in q&&this._updateDisabled(q),ii(q,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(q){this.viewModel=q,this.update.emit(q)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ht(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()}_updateValue(q){Ca.then(()=>{this.control.setValue(q,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(q){const mt=q.isDisabled.currentValue,ln=0!==mt&&(0,w.L39)(mt);Ca.then(()=>{ln&&!this.control.disabled?this.control.disable():!ln&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(q){return this._parent?Lt(q,this._parent):[q]}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(gt,9),T.rXU(Ee,10),T.rXU(V,10),T.rXU(Pe,10),T.rXU(w.gRc,8),T.rXU(we,8))};static \u0275dir=T.FsC({type:Ne,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:[T.Jv_([Wi]),T.Vt3,T.OA$]})}return Ne})(),Ve=(()=>{class Ne{static \u0275fac=function(mt){return new(mt||Ne)};static \u0275dir=T.FsC({type:Ne,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return Ne})();const Et={provide:Pe,useExisting:(0,v.Rfq)(()=>Jt),multi:!0};let Jt=(()=>{class Ne extends A{writeValue(q){this.setProperty("value",q??"")}registerOnChange(q){this.onChange=mt=>{q(""==mt?null:parseFloat(mt))}}static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275dir=T.FsC({type:Ne,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(mt,ln){1&mt&&T.bIt("input",function(ua){return ln.onChange(ua.target.value)})("blur",function(){return ln.onTouched()})},standalone:!1,features:[T.Jv_([Et]),T.Vt3]})}return Ne})();const U=new v.nKC(""),tt={provide:Gt,useExisting:(0,v.Rfq)(()=>Ze)};let Ze=(()=>{class Ne extends Gt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(q){}model;update=new T.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(q,mt,ln,Oi,ua){super(),this._ngModelWarningConfig=Oi,this.callSetDisabledState=ua,this._setValidators(q),this._setAsyncValidators(mt),this.valueAccessor=ra(0,ln)}ngOnChanges(q){if(this._isControlChanged(q)){const mt=q.form.previousValue;mt&&_n(mt,this,!1),Ht(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ii(q,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&_n(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}_isControlChanged(q){return q.hasOwnProperty("form")}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(Ee,10),T.rXU(V,10),T.rXU(Pe,10),T.rXU(U,8),T.rXU(we,8))};static \u0275dir=T.FsC({type:Ne,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[T.Jv_([tt]),T.Vt3,T.OA$]})}return Ne})();const Xt={provide:gt,useExisting:(0,v.Rfq)(()=>Nn)};let Nn=(()=>{class Ne extends gt{callSetDisabledState;get submitted(){return(0,e.O8)(this._submittedReactive)}set submitted(q){this._submittedReactive.set(q)}_submitted=(0,e.EW)(()=>this._submittedReactive());_submittedReactive=(0,v.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new T.bkB;constructor(q,mt,ln){super(),this.callSetDisabledState=ln,this._setValidators(q),this._setAsyncValidators(mt)}ngOnChanges(q){q.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(zi(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(q){const mt=this.form.get(q.path);return Ht(mt,q,this.callSetDisabledState),mt.updateValueAndValidity({emitEvent:!1}),this.directives.push(q),mt}getControl(q){return this.form.get(q.path)}removeControl(q){_n(q.control||null,q,!1),function fa(Ne,He){const q=Ne.indexOf(He);q>-1&&Ne.splice(q,1)}(this.directives,q)}addFormGroup(q){this._setUpFormContainer(q)}removeFormGroup(q){this._cleanUpFormContainer(q)}getFormGroup(q){return this.form.get(q.path)}addFormArray(q){this._setUpFormContainer(q)}removeFormArray(q){this._cleanUpFormContainer(q)}getFormArray(q){return this.form.get(q.path)}updateModel(q,mt){this.form.get(q.path).setValue(mt)}onSubmit(q){return this._submittedReactive.set(!0),ia(this.form,this.directives),this.ngSubmit.emit(q),this.form._events.next(new Ge(this.control)),"dialog"===q?.target?.method}onReset(){this.resetForm()}resetForm(q=void 0,mt={}){this.form.reset(q,mt),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(q=>{const mt=q.control,ln=this.form.get(q.path);mt!==ln&&(_n(mt||null,q),(Ne=>Ne instanceof Hn)(ln)&&(Ht(ln,q,this.callSetDisabledState),q.control=ln))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(q){const mt=this.form.get(q.path);zn(mt,q),mt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(q){if(this.form){const mt=this.form.get(q.path);mt&&function Fn(Ne,He){return zi(Ne,He)}(mt,q)&&mt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qi(this.form,this),this._oldForm&&zi(this._oldForm,this)}static \u0275fac=function(mt){return new(mt||Ne)(T.rXU(Ee,10),T.rXU(V,10),T.rXU(we,8))};static \u0275dir=T.FsC({type:Ne,selectors:[["","formGroup",""]],hostBindings:function(mt,ln){1&mt&&T.bIt("submit",function(ua){return ln.onSubmit(ua)})("reset",function(){return ln.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[T.Jv_([Xt]),T.Vt3,T.OA$]})}return Ne})();const Ga={provide:Gt,useExisting:(0,v.Rfq)(()=>As)};let As=(()=>{class Ne extends Gt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(q){}model;update=new T.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(q,mt,ln,Oi,ua){super(),this._ngModelWarningConfig=ua,this._parent=q,this._setValidators(mt),this._setAsyncValidators(ln),this.valueAccessor=ra(0,Oi)}ngOnChanges(q){this._added||this._setUpControl(),ii(q,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(q){this.viewModel=q,this.update.emit(q)}get path(){return Lt(null==this.name?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(mt){return new(mt||Ne)(T.rXU(gt,13),T.rXU(Ee,10),T.rXU(V,10),T.rXU(Pe,10),T.rXU(U,8))};static \u0275dir=T.FsC({type:Ne,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[T.Jv_([Ga]),T.Vt3,T.OA$]})}return Ne})();function kr(Ne){return"number"==typeof Ne?Ne:parseFloat(Ne)}let js=(()=>{class Ne{_validator=lt;_onChange;_enabled;ngOnChanges(q){if(this.inputName in q){const mt=this.normalizeInput(q[this.inputName].currentValue);this._enabled=this.enabled(mt),this._validator=this._enabled?this.createValidator(mt):lt,this._onChange&&this._onChange()}}validate(q){return this._validator(q)}registerOnValidatorChange(q){this._onChange=q}enabled(q){return null!=q}static \u0275fac=function(mt){return new(mt||Ne)};static \u0275dir=T.FsC({type:Ne,features:[T.OA$]})}return Ne})();const Vo={provide:Ee,useExisting:(0,v.Rfq)(()=>Zr),multi:!0};let Zr=(()=>{class Ne extends js{max;inputName="max";normalizeInput=q=>kr(q);createValidator=q=>J(q);static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275dir=T.FsC({type:Ne,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(mt,ln){2&mt&&T.BMQ("max",ln._enabled?ln.max:null)},inputs:{max:"max"},standalone:!1,features:[T.Jv_([Vo]),T.Vt3]})}return Ne})();const qo={provide:Ee,useExisting:(0,v.Rfq)(()=>Jr),multi:!0};let Jr=(()=>{class Ne extends js{min;inputName="min";normalizeInput=q=>kr(q);createValidator=q=>ne(q);static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275dir=T.FsC({type:Ne,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(mt,ln){2&mt&&T.BMQ("min",ln._enabled?ln.min:null)},inputs:{min:"min"},standalone:!1,features:[T.Jv_([qo]),T.Vt3]})}return Ne})();const Co={provide:Ee,useExisting:(0,v.Rfq)(()=>_r),multi:!0};let _r=(()=>{class Ne extends js{required;inputName="required";normalizeInput=w.L39;createValidator=q=>De;enabled(q){return q}static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275dir=T.FsC({type:Ne,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(mt,ln){2&mt&&T.BMQ("required",ln._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[T.Jv_([Co]),T.Vt3]})}return Ne})(),er=(()=>{class Ne{static \u0275fac=function(mt){return new(mt||Ne)};static \u0275mod=T.$C({type:Ne});static \u0275inj=v.G2t({})}return Ne})();class Xs extends dn{constructor(He,q,mt){super(se(q),bt(mt,q)),this.controls=He,this._initObservables(),this._setUpdateStrategy(q),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(He){return this.controls[this._adjustIndex(He)]}push(He,q={}){Array.isArray(He)?He.forEach(mt=>{this.controls.push(mt),this._registerControl(mt)}):(this.controls.push(He),this._registerControl(He)),this.updateValueAndValidity({emitEvent:q.emitEvent}),this._onCollectionChange()}insert(He,q,mt={}){this.controls.splice(He,0,q),this._registerControl(q),this.updateValueAndValidity({emitEvent:mt.emitEvent})}removeAt(He,q={}){let mt=this._adjustIndex(He);mt<0&&(mt=0),this.controls[mt]&&this.controls[mt]._registerOnCollectionChange(()=>{}),this.controls.splice(mt,1),this.updateValueAndValidity({emitEvent:q.emitEvent})}setControl(He,q,mt={}){let ln=this._adjustIndex(He);ln<0&&(ln=0),this.controls[ln]&&this.controls[ln]._registerOnCollectionChange(()=>{}),this.controls.splice(ln,1),q&&(this.controls.splice(ln,0,q),this._registerControl(q)),this.updateValueAndValidity({emitEvent:mt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(He,q={}){Nt(this,0,He),He.forEach((mt,ln)=>{un(this,!1,ln),this.at(ln).setValue(mt,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q)}patchValue(He,q={}){null!=He&&(He.forEach((mt,ln)=>{this.at(ln)&&this.at(ln).patchValue(mt,{onlySelf:!0,emitEvent:q.emitEvent})}),this.updateValueAndValidity(q))}reset(He=[],q={}){this._forEachChild((mt,ln)=>{mt.reset(He[ln],{onlySelf:!0,emitEvent:q.emitEvent})}),this._updatePristine(q,this),this._updateTouched(q,this),this.updateValueAndValidity(q),!1!==q?.emitEvent&&this._events.next(new Ot(this))}getRawValue(){return this.controls.map(He=>He.getRawValue())}clear(He={}){this.controls.length<1||(this._forEachChild(q=>q._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:He.emitEvent}))}_adjustIndex(He){return He<0?He+this.length:He}_syncPendingControls(){let He=this.controls.reduce((q,mt)=>!!mt._syncPendingControls()||q,!1);return He&&this.updateValueAndValidity({onlySelf:!0}),He}_forEachChild(He){this.controls.forEach((q,mt)=>{He(q,mt)})}_updateValue(){this.value=this.controls.filter(He=>He.enabled||this.disabled).map(He=>He.value)}_anyControls(He){return this.controls.some(q=>q.enabled&&He(q))}_setUpControls(){this._forEachChild(He=>this._registerControl(He))}_allControlsDisabled(){for(const He of this.controls)if(He.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(He){He.setParent(this),He._registerOnCollectionChange(this._onCollectionChange)}_find(He){return this.at(He)??null}}function Za(Ne){return!!Ne&&(void 0!==Ne.asyncValidators||void 0!==Ne.validators||void 0!==Ne.updateOn)}let Or=(()=>{class Ne{useNonNullable=!1;get nonNullable(){const q=new Ne;return q.useNonNullable=!0,q}group(q,mt=null){const ln=this._reduceControls(q);let Oi={};return Za(mt)?Oi=mt:null!==mt&&(Oi.validators=mt.validator,Oi.asyncValidators=mt.asyncValidator),new xn(ln,Oi)}record(q,mt=null){const ln=this._reduceControls(q);return new Tt(ln,mt)}control(q,mt,ln){let Oi={};return this.useNonNullable?(Za(mt)?Oi=mt:(Oi.validators=mt,Oi.asyncValidators=ln),new Hn(q,{...Oi,nonNullable:!0})):new Hn(q,mt,ln)}array(q,mt,ln){const Oi=q.map(ua=>this._createControl(ua));return new Xs(Oi,mt,ln)}_reduceControls(q){const mt={};return Object.keys(q).forEach(ln=>{mt[ln]=this._createControl(q[ln])}),mt}_createControl(q){return q instanceof Hn||q instanceof dn?q:Array.isArray(q)?this.control(q[0],q.length>1?q[1]:null,q.length>2?q[2]:null):this.control(q)}static \u0275fac=function(mt){return new(mt||Ne)};static \u0275prov=v.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"})}return Ne})(),Fs=(()=>{class Ne extends Or{group(q,mt=null){return super.group(q,mt)}control(q,mt,ln){return super.control(q,mt,ln)}array(q,mt,ln){return super.array(q,mt,ln)}static \u0275fac=(()=>{let q;return function(ln){return(q||(q=T.xGo(Ne)))(ln||Ne)}})();static \u0275prov=v.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"})}return Ne})(),Ks=(()=>{class Ne{static withConfig(q){return{ngModule:Ne,providers:[{provide:we,useValue:q.callSetDisabledState??ae}]}}static \u0275fac=function(mt){return new(mt||Ne)};static \u0275mod=T.$C({type:Ne});static \u0275inj=v.G2t({imports:[er]})}return Ne})(),Sr=(()=>{class Ne{static withConfig(q){return{ngModule:Ne,providers:[{provide:U,useValue:q.warnOnNgModelWithFormControl??"always"},{provide:we,useValue:q.callSetDisabledState??ae}]}}static \u0275fac=function(mt){return new(mt||Ne)};static \u0275mod=T.$C({type:Ne});static \u0275inj=v.G2t({imports:[er]})}return Ne})()},1804(Zt,pe,l){"use strict";l.d(pe,{Rc:()=>u,_J:()=>f});var i=l(4330),d=l(2615),v=l(3664);const T=new d.nKC("MATERIAL_ANIMATIONS");let O=null;function f(){return(0,d.WQX)(T,{optional:!0})?.animationsDisabled||"NoopAnimations"===(0,d.WQX)(v.bc$,{optional:!0})?"di-disabled":(O??=(0,d.WQX)(i.D).matchMedia("(prefers-reduced-motion)").matches,O?"reduced-motion":"enabled")}function u(){return"enabled"!==f()}},2628(Zt,pe,l){"use strict";l.d(pe,{$3:()=>gt,jL:()=>jt,pN:()=>h});var i=l(3029),d=l(3664),v=l(2615),T=l(7705),w=l(5718),e=l(9338),O=l(9726),f=l(9090),u=l(8617),L=l(9842),C=l(4522),B=l(8359),A=l(1413),Pe=l(7786),le=l(7673),Ce=l(9030),Ae=l(1985),j=l(1804),W=l(1577),G=l(7336),re=l(438),xe=l(4330),Ee=l(9327),V=l(6939),ce=l(408),be=l(9417),ne=l(5964),J=l(6354),De=l(9172),Re=l(5558),Xe=l(8141),_e=l(3236),he=l(8793),Dt=l(6697),lt=l(3557),Le=l(3703),te=l(1397),ie=l(8750);function P(Ue,wt){return wt?pt=>(0,he.x)(wt.pipe((0,Dt.s)(1),(0,lt.w)()),pt.pipe(P(Ue))):(0,te.Z)((pt,Pt)=>(0,ie.Tg)(Ue(pt,Pt)).pipe((0,Dt.s)(1),(0,Le.u)(pt)))}var F=l(1807);function ve(Ue,wt=_e.E){const pt=(0,F.O)(Ue,wt);return P(()=>pt)}var H=l(9588),$=l(146),Ke=l(2466);const nt=["panel"],ht=["*"];function oe(Ue,wt){if(1&Ue&&(d.rj2(0,"div",1,0),d.SdG(2),d.eux()),2&Ue){const pt=wt.id,Pt=d.XpG();d.HbH(Pt._classList),d.AVh("mat-mdc-autocomplete-visible",Pt.showPanel)("mat-mdc-autocomplete-hidden",!Pt.showPanel)("mat-autocomplete-panel-animations-enabled",!Pt._animationsDisabled)("mat-primary","primary"===Pt._color)("mat-accent","accent"===Pt._color)("mat-warn","warn"===Pt._color),d.Avn("id",Pt.id),d.BMQ("aria-label",Pt.ariaLabel||null)("aria-labelledby",Pt._getPanelAriaLabelledby(pt))}}class Ye{source;option;constructor(wt,pt){this.source=wt,this.option=pt}}const fe=new v.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function Qe(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}});let gt=(()=>{class Ue{_changeDetectorRef=(0,v.WQX)(T.gRc);_elementRef=(0,v.WQX)(d.aKT);_defaults=(0,v.WQX)(fe);_animationsDisabled=(0,j.Rc)();_activeOptionChanges=B.yU.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(pt){this._color=pt,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new d.bkB;opened=new d.bkB;closed=new d.bkB;optionActivated=new d.bkB;set classList(pt){this._classList=pt,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(pt){this._hideSingleSelectionIndicator=pt,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const pt of this.options)pt._changeDetectorRef.markForCheck()}id=(0,v.WQX)(O.g).getId("mat-autocomplete-");inertGroups;constructor(){const pt=(0,v.WQX)(L.O);this.inertGroups=pt?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new f.A(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(pt=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[pt]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(pt){this.panel&&(this.panel.nativeElement.scrollTop=pt)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(pt){const Pt=new Ye(this,pt);this.optionSelected.emit(Pt)}_getPanelAriaLabelledby(pt){return this.ariaLabel?null:this.ariaLabelledby?(pt?pt+" ":"")+this.ariaLabelledby:pt}_skipPredicate(){return!1}static \u0275fac=function(Pt){return new(Pt||Ue)};static \u0275cmp=d.VBU({type:Ue,selectors:[["mat-autocomplete"]],contentQueries:function(Pt,gn,ei){if(1&Pt&&(d.wni(ei,i.wT,5),d.wni(ei,i.QC,5)),2&Pt){let vi;d.mGM(vi=d.lsd())&&(gn.options=vi),d.mGM(vi=d.lsd())&&(gn.optionGroups=vi)}},viewQuery:function(Pt,gn){if(1&Pt&&(d.GBs(d.C4Q,7),d.GBs(nt,5)),2&Pt){let ei;d.mGM(ei=d.lsd())&&(gn.template=ei.first),d.mGM(ei=d.lsd())&&(gn.panel=ei.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",T.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",T.L39],requireSelection:[2,"requireSelection","requireSelection",T.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",T.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[d.Jv_([{provide:i.is,useExisting:Ue}])],ngContentSelectors:ht,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(Pt,gn){1&Pt&&(d.NAR(),d.PeT(0,oe,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0})}return Ue})();const rt={provide:be.kq,useExisting:(0,v.Rfq)(()=>h),multi:!0},Ft=new v.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const Ue=(0,v.WQX)(v.zZn);return()=>(0,e.RH)(Ue)}}),Qn={provide:Ft,deps:[],useFactory:function Sn(Ue){const wt=(0,v.WQX)(v.zZn);return()=>(0,e.RH)(wt)}};let h=(()=>{class Ue{_environmentInjector=(0,v.WQX)(v.uvJ);_element=(0,v.WQX)(d.aKT);_injector=(0,v.WQX)(v.zZn);_viewContainerRef=(0,v.WQX)(d.c1b);_zone=(0,v.WQX)(d.SKi);_changeDetectorRef=(0,v.WQX)(T.gRc);_dir=(0,v.WQX)(W.dS,{optional:!0});_formField=(0,v.WQX)(H.xb,{optional:!0,host:!0});_viewportRuler=(0,v.WQX)(w.Xj);_scrollStrategy=(0,v.WQX)(Ft);_renderer=(0,v.WQX)(d.sFG);_animationsDisabled=(0,j.Rc)();_defaults=(0,v.WQX)(fe,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new A.B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=B.yU.EMPTY;_breakpointObserver=(0,v.WQX)(xe.Q);_handsetLandscapeSubscription=B.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new A.B;_overlayPanelClass=(0,ce.F)(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(pt){pt.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,u.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Pe.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ne.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ne.p)(()=>this._overlayAttached)):(0,le.of)()).pipe((0,J.T)(pt=>pt instanceof i.MI?pt:null))}optionSelections=(0,Ce.v)(()=>{const pt=this.autocomplete?this.autocomplete.options:null;return pt?pt.changes.pipe((0,De.Z)(pt),(0,Re.n)(()=>(0,Pe.h)(...pt.map(Pt=>Pt.onSelectionChange)))):this._initialized.pipe((0,Re.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Ae.c(pt=>{const Pt=ei=>{const vi=(0,C.Fb)(ei),Ni=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,kn=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&vi!==this._element.nativeElement&&!this._hasFocus()&&(!Ni||!Ni.contains(vi))&&(!kn||!kn.contains(vi))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(vi)&&pt.next(ei)},gn=[this._renderer.listen("document","click",Pt),this._renderer.listen("document","auxclick",Pt),this._renderer.listen("document","touchend",Pt)];return()=>{gn.forEach(ei=>ei())}})}writeValue(pt){Promise.resolve(null).then(()=>this._assignOptionValue(pt))}registerOnChange(pt){this._onChange=pt}registerOnTouched(pt){this._onTouched=pt}setDisabledState(pt){this._element.nativeElement.disabled=pt}_handleKeydown(pt){const Pt=pt,gn=Pt.keyCode,ei=(0,G.rp)(Pt);if(gn===re._f&&!ei&&Pt.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&gn===re.Fm&&this.panelOpen&&!ei)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Pt.preventDefault();else if(this.autocomplete){const vi=this.autocomplete._keyManager.activeItem,Ni=gn===re.i7||gn===re.n6;gn===re.wn||Ni&&!ei&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Pt):Ni&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(Ni||this.autocomplete._keyManager.activeItem!==vi)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(pt){let Pt=pt.target,gn=Pt.value;if("number"===Pt.type&&(gn=""==gn?null:parseFloat(gn)),this._previousValue!==gn){if(this._previousValue=gn,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(gn),gn){if(this.panelOpen&&!this.autocomplete.requireSelection){const ei=this.autocomplete.options?.find(vi=>vi.selected);ei&&gn!==this._getDisplayValue(ei.value)&&ei.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._hasFocus()){const ei=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(ei)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return(0,C.vc)()===this._element.nativeElement}_floatLabel(pt=!1){this._formField&&"auto"===this._formField.floatLabel&&(pt?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const pt=new Ae.c(gn=>{(0,d.mal)(()=>{gn.next()},{injector:this._environmentInjector})}),Pt=this.autocomplete.options?.changes.pipe((0,Xe.M)(()=>this._positionStrategy.reapplyLastPosition()),ve(0))??(0,le.of)();return(0,Pe.h)(pt,Pt).pipe((0,Re.n)(()=>this._zone.run(()=>{const gn=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),gn!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,Dt.s)(1)).subscribe(gn=>this._setValueAndClose(gn))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(pt){const Pt=this.autocomplete;return Pt&&Pt.displayWith?Pt.displayWith(pt):pt}_assignOptionValue(pt){const Pt=this._getDisplayValue(pt);null==pt&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Pt??"")}_updateNativeInputValue(pt){this._formField?this._formField._control.value=pt:this._element.nativeElement.value=pt,this._previousValue=pt}_setValueAndClose(pt){const Pt=this.autocomplete,gn=pt?pt.source:this._pendingAutoselectedOption;gn?(this._clearPreviousSelectedOption(gn),this._assignOptionValue(gn.value),this._onChange(gn.value),Pt._emitSelectEvent(gn),this._element.nativeElement.focus()):Pt.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(pt,Pt){this.autocomplete?.options?.forEach(gn=>{gn!==pt&&gn.selected&&gn.deselect(Pt)})}_openPanelInternal(pt=this._element.nativeElement.value){this._attachOverlay(pt),this._floatLabel(),this._trackedModal&&(0,u.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(pt){let Pt=this._overlayRef;Pt?(this._positionStrategy.setOrigin(this._getConnectedElement()),Pt.updateSize({width:this._getPanelWidth()})):(this._portal=new V.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Pt=(0,e.Y$)(this._injector,this._getOverlayConfig()),this._overlayRef=Pt,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Pt&&Pt.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(Ee.Rp.HandsetLandscape).subscribe(ei=>{ei.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),Pt&&!Pt.hasAttached()&&(Pt.attach(this._portal),this._valueOnAttach=pt,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const gn=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&gn!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=pt=>{(pt.keyCode===re._f&&!(0,G.rp)(pt)||pt.keyCode===re.i7&&(0,G.rp)(pt,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),pt.stopPropagation(),pt.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const pt=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=pt.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=pt.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new e.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){const pt=(0,e.$M)(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(pt),this._positionStrategy=pt,pt}_setStrategyPositions(pt){const Pt=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],gn=this._aboveClass,ei=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:gn},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:gn}];let vi;vi="above"===this.position?ei:"below"===this.position?Pt:[...Pt,...ei],pt.withPositions(vi)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const pt=this.autocomplete;if(pt.autoActiveFirstOption){let Pt=-1;for(let gn=0;gn .cdk-overlay-container [aria-modal="true"]');if(!pt)return;const Pt=this.autocomplete.id;this._trackedModal&&(0,u.Ae)(this._trackedModal,"aria-owns",Pt),(0,u.px)(pt,"aria-owns",Pt),this._trackedModal=pt}_clearFromModal(){this._trackedModal&&((0,u.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(Pt){return new(Pt||Ue)};static \u0275dir=d.FsC({type:Ue,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Pt,gn){1&Pt&&d.bIt("focusin",function(){return gn._handleFocus()})("blur",function(){return gn._onTouched()})("input",function(vi){return gn._handleInput(vi)})("keydown",function(vi){return gn._handleKeydown(vi)})("click",function(){return gn._handleClick()}),2&Pt&&d.BMQ("autocomplete",gn.autocompleteAttribute)("role",gn.autocompleteDisabled?null:"combobox")("aria-autocomplete",gn.autocompleteDisabled?null:"list")("aria-activedescendant",gn.panelOpen&&gn.activeOption?gn.activeOption.id:null)("aria-expanded",gn.autocompleteDisabled?null:gn.panelOpen.toString())("aria-controls",gn.autocompleteDisabled||!gn.panelOpen||null==gn.autocomplete?null:gn.autocomplete.id)("aria-haspopup",gn.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",T.L39]},exportAs:["matAutocompleteTrigger"],features:[d.Jv_([rt]),d.OA$]})}return Ue})(),jt=(()=>{class Ue{static \u0275fac=function(Pt){return new(Pt||Ue)};static \u0275mod=d.$C({type:Ue});static \u0275inj=v.G2t({providers:[Qn],imports:[e.z_,$.S,Ke.y,w.Gj,$.S,Ke.y]})}return Ue})()},1975(Zt,pe,l){"use strict";l.d(pe,{Y:()=>Pe,k:()=>A});var i=l(8617),d=l(7094),v=l(9726),T=l(2615),w=l(3664),e=l(7705),O=l(9046),f=l(8968),u=l(1804),L=l(2466);const C="mat-badge-content";let B=(()=>{class le{static \u0275fac=function(j){return new(j||le)};static \u0275cmp=w.VBU({type:le,selectors:[["ng-component"]],decls:0,vars:0,template:function(j,W){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,changeDetection:0})}return le})(),A=(()=>{class le{_ngZone=(0,T.WQX)(w.SKi);_elementRef=(0,T.WQX)(w.aKT);_ariaDescriber=(0,T.WQX)(i.vr);_renderer=(0,T.WQX)(w.sFG);_animationsDisabled=(0,u.Rc)();_idGenerator=(0,T.WQX)(v.g);get color(){return this._color}set color(Ae){this._setColor(Ae),this._color=Ae}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(Ae){this._updateRenderedContent(Ae)}_content;get description(){return this._description}set description(Ae){this._updateDescription(Ae)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=(0,T.WQX)(d.Z7);_document=(0,T.WQX)(T.qQL);constructor(){const Ae=(0,T.WQX)(f.l);Ae.load(B),Ae.load(O.Y)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const Ae=this._renderer.createElement("span"),j="mat-badge-active";return Ae.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),Ae.setAttribute("aria-hidden","true"),Ae.classList.add(C),this._animationsDisabled&&Ae.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(Ae),"function"!=typeof requestAnimationFrame||this._animationsDisabled?Ae.classList.add(j):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{Ae.classList.add(j)})}),Ae}_updateRenderedContent(Ae){const j=`${Ae??""}`.trim();this._isInitialized&&j&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=j),this._content=j}_updateDescription(Ae){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!Ae||this._isHostInteractive())&&this._removeInlineDescription(),this._description=Ae,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,Ae):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(Ae){const j=this._elementRef.nativeElement.classList;j.remove(`mat-badge-${this._color}`),Ae&&j.add(`mat-badge-${Ae}`)}_clearExistingBadges(){const Ae=this._elementRef.nativeElement.querySelectorAll(`:scope > .${C}`);for(const j of Array.from(Ae))j!==this._badgeElement&&j.remove()}static \u0275fac=function(j){return new(j||le)};static \u0275dir=w.FsC({type:le,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(j,W){2&j&&w.AVh("mat-badge-overlap",W.overlap)("mat-badge-above",W.isAbove())("mat-badge-below",!W.isAbove())("mat-badge-before",!W.isAfter())("mat-badge-after",W.isAfter())("mat-badge-small","small"===W.size)("mat-badge-medium","medium"===W.size)("mat-badge-large","large"===W.size)("mat-badge-hidden",W.hidden||!W.content)("mat-badge-disabled",W.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",e.L39],disabled:[2,"matBadgeDisabled","disabled",e.L39],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",e.L39]}})}return le})(),Pe=(()=>{class le{static \u0275fac=function(j){return new(j||le)};static \u0275mod=w.$C({type:le});static \u0275inj=T.G2t({imports:[d.Pd,L.y,L.y]})}return le})()},8834(Zt,pe,l){"use strict";l.d(pe,{$0:()=>V,$z:()=>Ae,Hl:()=>ne});var w=l(2598),e=l(2615),O=l(3664),f=l(6881),u=l(2466);const L=["matButton",""],C=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],B=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pe=["mat-mini-fab",""],Ce=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]);let Ae=(()=>{class J extends w.iM{get appearance(){return this._appearance}set appearance(Re){this.setAppearance(Re||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();const Re=function j(J){return J.hasAttribute("mat-raised-button")?"elevated":J.hasAttribute("mat-stroked-button")?"outlined":J.hasAttribute("mat-flat-button")?"filled":J.hasAttribute("mat-button")?"text":null}(this._elementRef.nativeElement);Re&&this.setAppearance(Re)}setAppearance(Re){if(Re===this._appearance)return;const Xe=this._elementRef.nativeElement.classList,_e=this._appearance?Ce.get(this._appearance):null,he=Ce.get(Re);_e&&Xe.remove(..._e),Xe.add(...he),this._appearance=Re}static \u0275fac=function(Xe){return new(Xe||J)};static \u0275cmp=O.VBU({type:J,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[O.Vt3],attrs:L,ngContentSelectors:B,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Xe,_e){1&Xe&&(O.NAR(C),O.Hgh(0,"span",0),O.SdG(1),O.rj2(2,"span",1),O.SdG(3,1),O.eux(),O.SdG(4,2),O.Hgh(5,"span",2)(6,"span",3)),2&Xe&&O.AVh("mdc-button__ripple",!_e._isFab)("mdc-fab__ripple",_e._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return J})();const G=new e.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:re});function re(){return{color:"accent"}}const xe=re();let V=(()=>{class J extends w.iM{_options=(0,e.WQX)(G,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||xe,this.color=this._options.color||xe.color}static \u0275fac=function(Xe){return new(Xe||J)};static \u0275cmp=O.VBU({type:J,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[O.Vt3],attrs:Pe,ngContentSelectors:B,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Xe,_e){1&Xe&&(O.NAR(C),O.Hgh(0,"span",0),O.SdG(1),O.rj2(2,"span",1),O.SdG(3,1),O.eux(),O.SdG(4,2),O.Hgh(5,"span",2)(6,"span",3)),2&Xe&&O.AVh("mdc-button__ripple",!_e._isFab)("mdc-fab__ripple",_e._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],encapsulation:2,changeDetection:0})}return J})(),ne=(()=>{class J{static \u0275fac=function(Xe){return new(Xe||J)};static \u0275mod=O.$C({type:J});static \u0275inj=e.G2t({imports:[u.y,f.p,u.y]})}return J})()},5596(Zt,pe,l){"use strict";l.d(pe,{Hu:()=>ce,Lc:()=>Pe,MM:()=>Ce,RN:()=>L,dh:()=>C,m2:()=>A});var i=l(2615),d=l(3664),v=l(2466);const T=["*"],O=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],f=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],u=new i.nKC("MAT_CARD_CONFIG");let L=(()=>{class be{appearance;constructor(){const J=(0,i.WQX)(u,{optional:!0});this.appearance=J?.appearance||"raised"}static \u0275fac=function(De){return new(De||be)};static \u0275cmp=d.VBU({type:be,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(De,Re){2&De&&d.AVh("mat-mdc-card-outlined","outlined"===Re.appearance)("mdc-card--outlined","outlined"===Re.appearance)("mat-mdc-card-filled","filled"===Re.appearance)("mdc-card--filled","filled"===Re.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:T,decls:1,vars:0,template:function(De,Re){1&De&&(d.NAR(),d.SdG(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],encapsulation:2,changeDetection:0})}return be})(),C=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275dir=d.FsC({type:be,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return be})(),A=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275dir=d.FsC({type:be,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return be})(),Pe=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275dir=d.FsC({type:be,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return be})(),Ce=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275cmp=d.VBU({type:be,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:f,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(De,Re){1&De&&(d.NAR(O),d.SdG(0),d.rj2(1,"div",0),d.SdG(2,1),d.eux(),d.SdG(3,2))},encapsulation:2,changeDetection:0})}return be})(),ce=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275mod=d.$C({type:be});static \u0275inj=i.G2t({imports:[v.y,v.y]})}return be})()},2765(Zt,pe,l){"use strict";l.d(pe,{So:()=>G,g7:()=>re});var i=l(9726),d=l(2615),v=l(3664),T=l(7705),w=l(9417),e=l(8968),O=l(3155),f=l(1804),u=l(2046),L=l(2496),C=l(2466);const B=["input"],A=["label"],Pe=["*"],le=new d.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Ce});function Ce(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Ae=function(xe){return xe[xe.Init=0]="Init",xe[xe.Checked=1]="Checked",xe[xe.Unchecked=2]="Unchecked",xe[xe.Indeterminate=3]="Indeterminate",xe}(Ae||{});class j{source;checked}const W=Ce();let G=(()=>{class xe{_elementRef=(0,d.WQX)(v.aKT);_changeDetectorRef=(0,d.WQX)(T.gRc);_ngZone=(0,d.WQX)(v.SKi);_animationsDisabled=(0,f.Rc)();_options=(0,d.WQX)(le,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(V){const ce=new j;return ce.source=this,ce.checked=V,ce}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new v.bkB;indeterminateChange=new v.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Ae.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,d.WQX)(e.l).load(u.A);const V=(0,d.WQX)(new T.ES_("tabindex"),{optional:!0});this._options=this._options||W,this.color=this._options.color||W.color,this.tabIndex=null==V?0:parseInt(V)||0,this.id=this._uniqueId=(0,d.WQX)(i.g).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(V){V.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(V){V!=this.checked&&(this._checked=V,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(V){V!==this.disabled&&(this._disabled=V,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(V){const ce=V!=this._indeterminate();this._indeterminate.set(V),ce&&(this._transitionCheckState(V?Ae.Indeterminate:this.checked?Ae.Checked:Ae.Unchecked),this.indeterminateChange.emit(V)),this._syncIndeterminate(V)}_indeterminate=(0,d.vPA)(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(V){this.checked=!!V}registerOnChange(V){this._controlValueAccessorChangeFn=V}registerOnTouched(V){this._onTouched=V}setDisabledState(V){this.disabled=V}validate(V){return this.required&&!0!==V.value?{required:!0}:null}registerOnValidatorChange(V){this._validatorChangeFn=V}_transitionCheckState(V){let ce=this._currentCheckState,be=this._getAnimationTargetElement();if(ce!==V&&be&&(this._currentAnimationClass&&be.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(ce,V),this._currentCheckState=V,this._currentAnimationClass.length>0)){be.classList.add(this._currentAnimationClass);const ne=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{be.classList.remove(ne)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const V=this._options?.clickAction;this.disabled||"noop"===V?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===V)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==V&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Ae.Checked:Ae.Unchecked),this._emitChangeEvent())}_onInteractionEvent(V){V.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(V,ce){if(this._animationsDisabled)return"";switch(V){case Ae.Init:if(ce===Ae.Checked)return this._animationClasses.uncheckedToChecked;if(ce==Ae.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Ae.Unchecked:return ce===Ae.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Ae.Checked:return ce===Ae.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Ae.Indeterminate:return ce===Ae.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(V){const ce=this._inputElement;ce&&(ce.nativeElement.indeterminate=V)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(V){V.target&&this._labelElement.nativeElement.contains(V.target)&&V.stopPropagation()}static \u0275fac=function(ce){return new(ce||xe)};static \u0275cmp=v.VBU({type:xe,selectors:[["mat-checkbox"]],viewQuery:function(ce,be){if(1&ce&&(v.GBs(B,5),v.GBs(A,5)),2&ce){let ne;v.mGM(ne=v.lsd())&&(be._inputElement=ne.first),v.mGM(ne=v.lsd())&&(be._labelElement=ne.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(ce,be){2&ce&&(v.Avn("id",be.id),v.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),v.HbH(be.color?"mat-"+be.color:"mat-accent"),v.AVh("_mat-animation-noopable",be._animationsDisabled)("mdc-checkbox--disabled",be.disabled)("mat-mdc-checkbox-disabled",be.disabled)("mat-mdc-checkbox-checked",be.checked)("mat-mdc-checkbox-disabled-interactive",be.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",T.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",T.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",T.L39],tabIndex:[2,"tabIndex","tabIndex",V=>null==V?void 0:(0,T.Udg)(V)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",T.L39],checked:[2,"checked","checked",T.L39],disabled:[2,"disabled","disabled",T.L39],indeterminate:[2,"indeterminate","indeterminate",T.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[v.Jv_([{provide:w.kq,useExisting:(0,d.Rfq)(()=>xe),multi:!0},{provide:w.cz,useExisting:xe,multi:!0}]),v.OA$],ngContentSelectors:Pe,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(ce,be){if(1&ce){const ne=v.RV6();v.NAR(),v.j41(0,"div",3),v.bIt("click",function(De){return d.eBV(ne),d.Njj(be._preventBubblingFromLabel(De))}),v.j41(1,"div",4,0)(3,"div",5),v.bIt("click",function(){return d.eBV(ne),d.Njj(be._onTouchTargetClick())}),v.k0s(),v.j41(4,"input",6,1),v.bIt("blur",function(){return d.eBV(ne),d.Njj(be._onBlur())})("click",function(){return d.eBV(ne),d.Njj(be._onInputClick())})("change",function(De){return d.eBV(ne),d.Njj(be._onInteractionEvent(De))}),v.k0s(),v.nrm(6,"div",7),v.j41(7,"div",8),d.qSk(),v.j41(8,"svg",9),v.nrm(9,"path",10),v.k0s(),d.joV(),v.nrm(10,"div",11),v.k0s(),v.nrm(11,"div",12),v.k0s(),v.j41(12,"label",13,2),v.SdG(14),v.k0s()()}if(2&ce){const ne=v.sdS(2);v.Y8G("labelPosition",be.labelPosition),v.R7$(4),v.AVh("mdc-checkbox--selected",be.checked),v.Y8G("checked",be.checked)("indeterminate",be.indeterminate)("disabled",be.disabled&&!be.disabledInteractive)("id",be.inputId)("required",be.required)("tabIndex",be.disabled&&!be.disabledInteractive?-1:be.tabIndex),v.BMQ("aria-label",be.ariaLabel||null)("aria-labelledby",be.ariaLabelledby)("aria-describedby",be.ariaDescribedby)("aria-checked",be.indeterminate?"mixed":null)("aria-controls",be.ariaControls)("aria-disabled",!(!be.disabled||!be.disabledInteractive)||null)("aria-expanded",be.ariaExpanded)("aria-owns",be.ariaOwns)("name",be.name)("value",be.value),v.R7$(7),v.Y8G("matRippleTrigger",ne)("matRippleDisabled",be.disableRipple||be.disabled)("matRippleCentered",!0),v.R7$(),v.Y8G("for",be.inputId)}},dependencies:[L.r6,O.t],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return xe})(),re=(()=>{class xe{static \u0275fac=function(ce){return new(ce||xe)};static \u0275mod=v.$C({type:xe});static \u0275inj=d.G2t({imports:[G,C.y,C.y]})}return xe})()},6471(Zt,pe,l){"use strict";l.d(pe,{Jl:()=>cn,YN:()=>Ni});var i=l(6838),d=l(9726),w=(l(4123),l(7336),l(438)),e=l(9046),O=l(8968),f=l(2615),u=l(3664),L=l(7705),C=l(1413),B=l(7786),A=l(2046),Pe=l(2496),le=l(1804),Ce=l(1048),xe=(l(9172),l(5558),l(6977),l(1577),l(9417),l(2709)),ce=(l(9336),l(9588),l(2466)),be=l(6881);const ne=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],J=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function De(kn,Ri){1&kn&&(u.j41(0,"span",3),u.SdG(1,1),u.k0s())}function Re(kn,Ri){1&kn&&(u.j41(0,"span",6),u.SdG(1,2),u.k0s())}const St=new f.nKC("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[w.Fm]})}),ot=new f.nKC("MatChipAvatar"),nt=new f.nKC("MatChipTrailingIcon"),ht=new f.nKC("MatChipEdit"),oe=new f.nKC("MatChipRemove"),Ye=new f.nKC("MatChip");let fe=(()=>{class kn{_elementRef=(0,f.WQX)(u.aKT);_parentChip=(0,f.WQX)(Ye);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(vt){this._disabled=vt}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){(0,f.WQX)(O.l).load(A.A),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(vt){!this.disabled&&this.isInteractive&&this._isPrimary&&(vt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(vt){(vt.keyCode===w.Fm||vt.keyCode===w.t6)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(vt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(ee){return new(ee||kn)};static \u0275dir=u.FsC({type:kn,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(ee,ye){1&ee&&u.bIt("click",function(Se){return ye._handleClick(Se)})("keydown",function(Se){return ye._handleKeydown(Se)}),2&ee&&(u.BMQ("tabindex",ye._getTabindex())("disabled",ye._getDisabledAttribute())("aria-disabled",ye.disabled),u.AVh("mdc-evolution-chip__action--primary",ye._isPrimary)("mdc-evolution-chip__action--presentational",!ye.isInteractive)("mdc-evolution-chip__action--secondary",!ye._isPrimary)("mdc-evolution-chip__action--trailing",!ye._isPrimary&&!ye._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",L.L39],tabIndex:[2,"tabIndex","tabIndex",vt=>null==vt?-1:(0,L.Udg)(vt)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return kn})(),cn=(()=>{class kn{_changeDetectorRef=(0,f.WQX)(L.gRc);_elementRef=(0,f.WQX)(u.aKT);_tagName=(0,f.WQX)(L.cCO);_ngZone=(0,f.WQX)(u.SKi);_focusMonitor=(0,f.WQX)(i.FN);_globalRippleOptions=(0,f.WQX)(Pe.$E,{optional:!0});_document=(0,f.WQX)(f.qQL);_onFocus=new C.B;_onBlur=new C.B;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=(0,le.Rc)();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=(0,f.WQX)(d.g).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(vt){this._value=vt}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(vt){this._disabled=vt}_disabled=!1;removed=new u.bkB;destroyed=new u.bkB;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=(0,f.WQX)(Ce.E);_injector=(0,f.WQX)(f.zZn);constructor(){const vt=(0,f.WQX)(O.l);vt.load(A.A),vt.load(e.Y),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,B.h)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(vt){(vt.keyCode===w.G_&&!vt.repeat||vt.keyCode===w.SJ)&&(vt.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(vt){return this._getActions().find(ee=>{const ye=ee._elementRef.nativeElement;return ye===vt||ye.contains(vt)})}_getActions(){const vt=[];return this.editIcon&&vt.push(this.editIcon),this.primaryAction&&vt.push(this.primaryAction),this.removeIcon&&vt.push(this.removeIcon),this.trailingIcon&&vt.push(this.trailingIcon),vt}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(vt=>vt.isInteractive)}_edit(vt){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(vt=>{const ee=null!==vt;ee!==this._hasFocusInternal&&(this._hasFocusInternal=ee,ee?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(ee){return new(ee||kn)};static \u0275cmp=u.VBU({type:kn,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(ee,ye,ke){if(1&ee&&(u.wni(ke,ot,5),u.wni(ke,ht,5),u.wni(ke,nt,5),u.wni(ke,oe,5),u.wni(ke,ot,5),u.wni(ke,nt,5),u.wni(ke,ht,5),u.wni(ke,oe,5)),2&ee){let Se;u.mGM(Se=u.lsd())&&(ye.leadingIcon=Se.first),u.mGM(Se=u.lsd())&&(ye.editIcon=Se.first),u.mGM(Se=u.lsd())&&(ye.trailingIcon=Se.first),u.mGM(Se=u.lsd())&&(ye.removeIcon=Se.first),u.mGM(Se=u.lsd())&&(ye._allLeadingIcons=Se),u.mGM(Se=u.lsd())&&(ye._allTrailingIcons=Se),u.mGM(Se=u.lsd())&&(ye._allEditIcons=Se),u.mGM(Se=u.lsd())&&(ye._allRemoveIcons=Se)}},viewQuery:function(ee,ye){if(1&ee&&u.GBs(fe,5),2&ee){let ke;u.mGM(ke=u.lsd())&&(ye.primaryAction=ke.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(ee,ye){1&ee&&u.bIt("keydown",function(Se){return ye._handleKeydown(Se)}),2&ee&&(u.Avn("id",ye.id),u.BMQ("role",ye.role)("aria-label",ye.ariaLabel),u.HbH("mat-"+(ye.color||"primary")),u.AVh("mdc-evolution-chip",!ye._isBasicChip)("mdc-evolution-chip--disabled",ye.disabled)("mdc-evolution-chip--with-trailing-action",ye._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",ye.leadingIcon)("mdc-evolution-chip--with-primary-icon",ye.leadingIcon)("mdc-evolution-chip--with-avatar",ye.leadingIcon)("mat-mdc-chip-with-avatar",ye.leadingIcon)("mat-mdc-chip-highlighted",ye.highlighted)("mat-mdc-chip-disabled",ye.disabled)("mat-mdc-basic-chip",ye._isBasicChip)("mat-mdc-standard-chip",!ye._isBasicChip)("mat-mdc-chip-with-trailing-icon",ye._hasTrailingIcon())("_mat-animation-noopable",ye._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",L.L39],highlighted:[2,"highlighted","highlighted",L.L39],disableRipple:[2,"disableRipple","disableRipple",L.L39],disabled:[2,"disabled","disabled",L.L39]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[u.Jv_([{provide:Ye,useExisting:kn}])],ngContentSelectors:J,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(ee,ye){1&ee&&(u.NAR(ne),u.nrm(0,"span",0),u.j41(1,"span",1)(2,"span",2),u.nVh(3,De,2,0,"span",3),u.j41(4,"span",4),u.SdG(5),u.nrm(6,"span",5),u.k0s()()(),u.nVh(7,Re,2,0,"span",6)),2&ee&&(u.R7$(2),u.Y8G("isInteractive",!1),u.R7$(),u.vxM(ye.leadingIcon?3:-1),u.R7$(4),u.vxM(ye._hasTrailingIcon()?7:-1))},dependencies:[fe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],encapsulation:2,changeDetection:0})}return kn})(),Ni=(()=>{class kn{static \u0275fac=function(ee){return new(ee||kn)};static \u0275mod=u.$C({type:kn});static \u0275inj=f.G2t({providers:[xe.e,{provide:St,useValue:{separatorKeyCodes:[w.Fm]}}],imports:[ce.y,be.p,ce.y]})}return kn})()},2466(Zt,pe,l){"use strict";l.d(pe,{y:()=>e});var i=l(7094),d=l(8203),v=l(2615),T=l(3664);let e=(()=>{class O{constructor(){(0,v.WQX)(i.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(L){return new(L||O)};static \u0275mod=T.$C({type:O});static \u0275inj=v.G2t({imports:[d.jI,d.jI]})}return O})()},3(Zt,pe,l){"use strict";l.d(pe,{WX:()=>Pe,xW:()=>L});var v=l(2615),T=l(3664),w=l(9945);const O=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,f=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function u(Ce,Ae){const j=Array(Ce);for(let W=0;W{class Ce extends w.MJ{useUtcForDisplay=!1;_matDateLocale=(0,v.WQX)(w.Ju,{optional:!0});constructor(){super();const j=(0,v.WQX)(w.Ju,{optional:!0});void 0!==j&&(this._matDateLocale=j),super.setLocale(this._matDateLocale)}getYear(j){return j.getFullYear()}getMonth(j){return j.getMonth()}getDate(j){return j.getDate()}getDayOfWeek(j){return j.getDay()}getMonthNames(j){const W=new Intl.DateTimeFormat(this.locale,{month:j,timeZone:"utc"});return u(12,G=>this._format(W,new Date(2017,G,1)))}getDateNames(){const j=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return u(31,W=>this._format(j,new Date(2017,0,W+1)))}getDayOfWeekNames(j){const W=new Intl.DateTimeFormat(this.locale,{weekday:j,timeZone:"utc"});return u(7,G=>this._format(W,new Date(2017,0,G+1)))}getYearName(j){const W=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(W,j)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const j=new Intl.Locale(this.locale),W=(j.getWeekInfo?.()||j.weekInfo)?.firstDay??0;return 7===W?0:W}return 0}getNumDaysInMonth(j){return this.getDate(this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+1,0))}clone(j){return new Date(j.getTime())}createDate(j,W,G){let re=this._createDateWithOverflow(j,W,G);return re.getMonth(),re}today(){return new Date}parse(j,W){return"number"==typeof j?new Date(j):j?new Date(Date.parse(j)):null}format(j,W){if(!this.isValid(j))throw Error("NativeDateAdapter: Cannot format invalid date.");const G=new Intl.DateTimeFormat(this.locale,{...W,timeZone:"utc"});return this._format(G,j)}addCalendarYears(j,W){return this.addCalendarMonths(j,12*W)}addCalendarMonths(j,W){let G=this._createDateWithOverflow(this.getYear(j),this.getMonth(j)+W,this.getDate(j));return this.getMonth(G)!=((this.getMonth(j)+W)%12+12)%12&&(G=this._createDateWithOverflow(this.getYear(G),this.getMonth(G),0)),G}addCalendarDays(j,W){return this._createDateWithOverflow(this.getYear(j),this.getMonth(j),this.getDate(j)+W)}toIso8601(j){return[j.getUTCFullYear(),this._2digit(j.getUTCMonth()+1),this._2digit(j.getUTCDate())].join("-")}deserialize(j){if("string"==typeof j){if(!j)return null;if(O.test(j)){let W=new Date(j);if(this.isValid(W))return W}}return super.deserialize(j)}isDateInstance(j){return j instanceof Date}isValid(j){return!isNaN(j.getTime())}invalid(){return new Date(NaN)}setTime(j,W,G,re){const xe=this.clone(j);return xe.setHours(W,G,re,0),xe}getHours(j){return j.getHours()}getMinutes(j){return j.getMinutes()}getSeconds(j){return j.getSeconds()}parseTime(j,W){if("string"!=typeof j)return j instanceof Date?new Date(j.getTime()):null;const G=j.trim();if(0===G.length)return null;let re=this._parseTimeString(G);if(null===re){const xe=G.replace(/[^0-9:(AM|PM)]/gi,"").trim();xe.length>0&&(re=this._parseTimeString(xe))}return re||this.invalid()}addSeconds(j,W){return new Date(j.getTime()+1e3*W)}_createDateWithOverflow(j,W,G){const re=new Date;return re.setFullYear(j,W,G),re.setHours(0,0,0,0),re}_2digit(j){return("00"+j).slice(-2)}_format(j,W){const G=new Date;return G.setUTCFullYear(W.getFullYear(),W.getMonth(),W.getDate()),G.setUTCHours(W.getHours(),W.getMinutes(),W.getSeconds(),W.getMilliseconds()),j.format(G)}_parseTimeString(j){const W=j.toUpperCase().match(f);if(W){let G=parseInt(W[1]);const re=parseInt(W[2]);let xe=null==W[3]?void 0:parseInt(W[3]);const Ee=W[4];if(12===G?G="AM"===Ee?0:G:"PM"===Ee&&(G+=12),C(G,0,23)&&C(re,0,59)&&(null==xe||C(xe,0,59)))return this.setTime(this.today(),G,re,xe||0)}return null}static \u0275fac=function(W){return new(W||Ce)};static \u0275prov=v.jDH({token:Ce,factory:Ce.\u0275fac})}return Ce})();function C(Ce,Ae,j){return!isNaN(Ce)&&Ce>=Ae&&Ce<=j}const B={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};let Pe=(()=>{class Ce{static \u0275fac=function(W){return new(W||Ce)};static \u0275mod=T.$C({type:Ce});static \u0275inj=v.G2t({providers:[le()]})}return Ce})();function le(Ce=B){return[{provide:w.MJ,useClass:L},{provide:w.de,useValue:Ce}]}},9945(Zt,pe,l){"use strict";l.d(pe,{Ju:()=>T,MJ:()=>O,de:()=>f});var i=l(2615),d=l(3664),v=l(1413);const T=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function w(){return(0,i.WQX)(d.xe9)}}),e="Method not implemented";class O{locale;_localeChanges=new v.B;localeChanges=this._localeChanges;setTime(L,C,B,A){throw new Error(e)}getHours(L){throw new Error(e)}getMinutes(L){throw new Error(e)}getSeconds(L){throw new Error(e)}parseTime(L,C){throw new Error(e)}addSeconds(L,C){throw new Error(e)}getValidDateOrNull(L){return this.isDateInstance(L)&&this.isValid(L)?L:null}deserialize(L){return null==L||this.isDateInstance(L)&&this.isValid(L)?L:this.invalid()}setLocale(L){this.locale=L,this._localeChanges.next()}compareDate(L,C){return this.getYear(L)-this.getYear(C)||this.getMonth(L)-this.getMonth(C)||this.getDate(L)-this.getDate(C)}compareTime(L,C){return this.getHours(L)-this.getHours(C)||this.getMinutes(L)-this.getMinutes(C)||this.getSeconds(L)-this.getSeconds(C)}sameDate(L,C){if(L&&C){let B=this.isValid(L),A=this.isValid(C);return B&&A?!this.compareDate(L,C):B==A}return L==C}sameTime(L,C){if(L&&C){const B=this.isValid(L),A=this.isValid(C);return B&&A?!this.compareTime(L,C):B==A}return L==C}clampDate(L,C,B){return C&&this.compareDate(L,C)<0?C:B&&this.compareDate(L,B)>0?B:L}}const f=new i.nKC("mat-date-formats")},5084(Zt,pe,l){"use strict";l.d(pe,{Vh:()=>Wn,X6:()=>Ii,bU:()=>vn,bZ:()=>Ta});var _e=l(2615),he=l(3664),Dt=l(7705),lt=l(1413),Le=l(8359),te=l(7786),ie=l(7673),P=l(9945),F=l(6838),ve=l(7094),H=l(9726),$=l(1577),Ke=l(4085),Vt=l(7336),St=l(438),ot=l(9338),nt=l(9842),ht=l(4522),oe=l(6939),Ye=l(5964),fe=l(9172),Qe=l(6697),gt=l(2200),Gt=l(9046),rt=l(8968),cn=l(2046),Ft=l(8834),Sn=l(2598),Qn=l(455),h=l(1804),jt=l(9417),Ue=l(8010),wt=l(9588),pt=l(5718),Pt=l(2466);const gn=["mat-calendar-body",""];function ei(nn,ni){return this._trackRow(ni)}const vi=(nn,ni)=>ni.id;function Ni(nn,ni){if(1&nn&&(he.j41(0,"tr",0)(1,"td",3),he.EFF(2),he.k0s()()),2&nn){const U=he.XpG();he.R7$(),he.xc7("padding-top",U._cellPadding)("padding-bottom",U._cellPadding),he.BMQ("colspan",U.numCols),he.R7$(),he.SpI(" ",U.label," ")}}function kn(nn,ni){if(1&nn&&(he.j41(0,"td",3),he.EFF(1),he.k0s()),2&nn){const U=he.XpG(2);he.xc7("padding-top",U._cellPadding)("padding-bottom",U._cellPadding),he.BMQ("colspan",U._firstRowOffset),he.R7$(),he.SpI(" ",U._firstRowOffset>=U.labelMinRequiredCells?U.label:""," ")}}function Ri(nn,ni){if(1&nn){const U=he.RV6();he.j41(0,"td",6)(1,"button",7),he.bIt("click",function(Ze){const Xt=_e.eBV(U).$implicit,Nn=he.XpG(2);return _e.Njj(Nn._cellClicked(Xt,Ze))})("focus",function(Ze){const Xt=_e.eBV(U).$implicit,Nn=he.XpG(2);return _e.Njj(Nn._emitActiveDateChange(Xt,Ze))}),he.j41(2,"span",8),he.EFF(3),he.k0s(),he.nrm(4,"span",9),he.k0s()()}if(2&nn){const U=ni.$implicit,tt=ni.$index,Ze=he.XpG().$index,Xt=he.XpG();he.xc7("width",Xt._cellWidth)("padding-top",Xt._cellPadding)("padding-bottom",Xt._cellPadding),he.BMQ("data-mat-row",Ze)("data-mat-col",tt),he.R7$(),he.AVh("mat-calendar-body-disabled",!U.enabled)("mat-calendar-body-active",Xt._isActiveCell(Ze,tt))("mat-calendar-body-range-start",Xt._isRangeStart(U.compareValue))("mat-calendar-body-range-end",Xt._isRangeEnd(U.compareValue))("mat-calendar-body-in-range",Xt._isInRange(U.compareValue))("mat-calendar-body-comparison-bridge-start",Xt._isComparisonBridgeStart(U.compareValue,Ze,tt))("mat-calendar-body-comparison-bridge-end",Xt._isComparisonBridgeEnd(U.compareValue,Ze,tt))("mat-calendar-body-comparison-start",Xt._isComparisonStart(U.compareValue))("mat-calendar-body-comparison-end",Xt._isComparisonEnd(U.compareValue))("mat-calendar-body-in-comparison-range",Xt._isInComparisonRange(U.compareValue))("mat-calendar-body-preview-start",Xt._isPreviewStart(U.compareValue))("mat-calendar-body-preview-end",Xt._isPreviewEnd(U.compareValue))("mat-calendar-body-in-preview",Xt._isInPreview(U.compareValue)),he.Y8G("ngClass",U.cssClasses)("tabindex",Xt._isActiveCell(Ze,tt)?0:-1),he.BMQ("aria-label",U.ariaLabel)("aria-disabled",!U.enabled||null)("aria-pressed",Xt._isSelected(U.compareValue))("aria-current",Xt.todayValue===U.compareValue?"date":null)("aria-describedby",Xt._getDescribedby(U.compareValue)),he.R7$(),he.AVh("mat-calendar-body-selected",Xt._isSelected(U.compareValue))("mat-calendar-body-comparison-identical",Xt._isComparisonIdentical(U.compareValue))("mat-calendar-body-today",Xt.todayValue===U.compareValue),he.R7$(),he.SpI(" ",U.displayValue," ")}}function vt(nn,ni){if(1&nn&&(he.j41(0,"tr",1),he.nVh(1,kn,2,6,"td",4),he.Z7z(2,Ri,5,48,"td",5,vi),he.k0s()),2&nn){const U=ni.$implicit,tt=ni.$index,Ze=he.XpG();he.R7$(),he.vxM(0===tt&&Ze._firstRowOffset?1:-1),he.R7$(),he.Dyx(U)}}function ee(nn,ni){if(1&nn&&(he.j41(0,"th",2)(1,"span",6),he.EFF(2),he.k0s(),he.j41(3,"span",3),he.EFF(4),he.k0s()()),2&nn){const U=ni.$implicit;he.R7$(2),he.JRh(U.long),he.R7$(2),he.JRh(U.narrow)}}const ye=["*"];function ke(nn,ni){}function Se(nn,ni){if(1&nn){const U=he.RV6();he.j41(0,"mat-month-view",4),he.mxI("activeDateChange",function(Ze){_e.eBV(U);const Xt=he.XpG();return he.DH7(Xt.activeDate,Ze)||(Xt.activeDate=Ze),_e.Njj(Ze)}),he.bIt("_userSelection",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._dateSelected(Ze))})("dragStarted",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._dragStarted(Ze))})("dragEnded",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._dragEnded(Ze))}),he.k0s()}if(2&nn){const U=he.XpG();he.R50("activeDate",U.activeDate),he.Y8G("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)("comparisonStart",U.comparisonStart)("comparisonEnd",U.comparisonEnd)("startDateAccessibleName",U.startDateAccessibleName)("endDateAccessibleName",U.endDateAccessibleName)("activeDrag",U._activeDrag)}}function ge(nn,ni){if(1&nn){const U=he.RV6();he.j41(0,"mat-year-view",5),he.mxI("activeDateChange",function(Ze){_e.eBV(U);const Xt=he.XpG();return he.DH7(Xt.activeDate,Ze)||(Xt.activeDate=Ze),_e.Njj(Ze)}),he.bIt("monthSelected",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._monthSelectedInYearView(Ze))})("selectedChange",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._goToDateInView(Ze,"month"))}),he.k0s()}if(2&nn){const U=he.XpG();he.R50("activeDate",U.activeDate),he.Y8G("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)}}function N(nn,ni){if(1&nn){const U=he.RV6();he.j41(0,"mat-multi-year-view",6),he.mxI("activeDateChange",function(Ze){_e.eBV(U);const Xt=he.XpG();return he.DH7(Xt.activeDate,Ze)||(Xt.activeDate=Ze),_e.Njj(Ze)}),he.bIt("yearSelected",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._yearSelectedInMultiYearView(Ze))})("selectedChange",function(Ze){_e.eBV(U);const Xt=he.XpG();return _e.Njj(Xt._goToDateInView(Ze,"year"))}),he.k0s()}if(2&nn){const U=he.XpG();he.R50("activeDate",U.activeDate),he.Y8G("selected",U.selected)("dateFilter",U.dateFilter)("maxDate",U.maxDate)("minDate",U.minDate)("dateClass",U.dateClass)}}function Z(nn,ni){}const Me=["button"],at=[[["","matDatepickerToggleIcon",""]]],qe=["[matDatepickerToggleIcon]"];function pn(nn,ni){1&nn&&(_e.qSk(),he.j41(0,"svg",2),he.nrm(1,"path",3),he.k0s())}let Ot=(()=>{class nn{changes=new lt.B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(U,tt){return`${U} \u2013 ${tt}`}formatYearRangeLabel(U,tt){return`${U} to ${tt}`}static \u0275fac=function(tt){return new(tt||nn)};static \u0275prov=_e.jDH({token:nn,factory:nn.\u0275fac,providedIn:"root"})}return nn})(),se=0;class We{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=se++;constructor(ni,U,tt,Ze,Xt={},Nn=ni,Ki){this.value=ni,this.displayValue=U,this.ariaLabel=tt,this.enabled=Ze,this.cssClasses=Xt,this.compareValue=Nn,this.rawValue=Ki}}const bt={passive:!1,capture:!0},tn={passive:!0,capture:!0},on={passive:!0};let un=(()=>{class nn{_elementRef=(0,_e.WQX)(he.aKT);_ngZone=(0,_e.WQX)(he.SKi);_platform=(0,_e.WQX)(nt.O);_intl=(0,_e.WQX)(Ot);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new he.bkB;previewChange=new he.bkB;activeDateChange=new he.bkB;dragStarted=new he.bkB;dragEnded=new he.bkB;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=(0,_e.WQX)(_e.zZn);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=U=>U;constructor(){const U=(0,_e.WQX)(he.sFG),tt=(0,_e.WQX)(H.g);this._startDateLabelId=tt.getId("mat-calendar-body-start-"),this._endDateLabelId=tt.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=tt.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=tt.getId("mat-calendar-body-comparison-end-"),(0,_e.WQX)(rt.l).load(cn.A),this._ngZone.runOutsideAngular(()=>{const Ze=this._elementRef.nativeElement,Xt=[U.listen(Ze,"touchmove",this._touchmoveHandler,bt),U.listen(Ze,"mouseenter",this._enterHandler,tn),U.listen(Ze,"focus",this._enterHandler,tn),U.listen(Ze,"mouseleave",this._leaveHandler,tn),U.listen(Ze,"blur",this._leaveHandler,tn),U.listen(Ze,"mousedown",this._mousedownHandler,on),U.listen(Ze,"touchstart",this._mousedownHandler,on)];this._platform.isBrowser&&Xt.push(U.listen("window","mouseup",this._mouseupHandler),U.listen("window","touchend",this._touchendHandler)),this._eventCleanups=Xt})}_cellClicked(U,tt){this._didDragSinceMouseDown||U.enabled&&this.selectedValueChange.emit({value:U.value,event:tt})}_emitActiveDateChange(U,tt){U.enabled&&this.activeDateChange.emit({value:U.value,event:tt})}_isSelected(U){return this.startValue===U||this.endValue===U}ngOnChanges(U){const tt=U.numCols,{rows:Ze,numCols:Xt}=this;(U.rows||tt)&&(this._firstRowOffset=Ze&&Ze.length&&Ze[0].length?Xt-Ze[0].length:0),(U.cellAspectRatio||tt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Xt+"%"),(tt||!this._cellWidth)&&(this._cellWidth=100/Xt+"%")}ngOnDestroy(){this._eventCleanups.forEach(U=>U())}_isActiveCell(U,tt){let Ze=U*this.numCols+tt;return U&&(Ze-=this._firstRowOffset),Ze==this.activeCell}_focusActiveCell(U=!0){(0,he.mal)(()=>{setTimeout(()=>{const tt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");tt&&(U||(this._skipNextFocus=!0),tt.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(U){return xn(U,this.startValue,this.endValue)}_isRangeEnd(U){return Jn(U,this.startValue,this.endValue)}_isInRange(U){return xi(U,this.startValue,this.endValue,this.isRange)}_isComparisonStart(U){return xn(U,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(U,tt,Ze){if(!this._isComparisonStart(U)||this._isRangeStart(U)||!this._isInRange(U))return!1;let Xt=this.rows[tt][Ze-1];if(!Xt){const Nn=this.rows[tt-1];Xt=Nn&&Nn[Nn.length-1]}return Xt&&!this._isRangeEnd(Xt.compareValue)}_isComparisonBridgeEnd(U,tt,Ze){if(!this._isComparisonEnd(U)||this._isRangeEnd(U)||!this._isInRange(U))return!1;let Xt=this.rows[tt][Ze+1];if(!Xt){const Nn=this.rows[tt+1];Xt=Nn&&Nn[0]}return Xt&&!this._isRangeStart(Xt.compareValue)}_isComparisonEnd(U){return Jn(U,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(U){return xi(U,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(U){return this.comparisonStart===this.comparisonEnd&&U===this.comparisonStart}_isPreviewStart(U){return xn(U,this.previewStart,this.previewEnd)}_isPreviewEnd(U){return Jn(U,this.previewStart,this.previewEnd)}_isInPreview(U){return xi(U,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(U){if(!this.isRange)return null;if(this.startValue===U&&this.endValue===U)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===U)return this._startDateLabelId;if(this.endValue===U)return this._endDateLabelId;if(null!==this.comparisonStart&&null!==this.comparisonEnd){if(U===this.comparisonStart&&U===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(U===this.comparisonStart)return this._comparisonStartDateLabelId;if(U===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=U=>{if(this._skipNextFocus&&"focus"===U.type)this._skipNextFocus=!1;else if(U.target&&this.isRange){const tt=this._getCellFromElement(U.target);tt&&this._ngZone.run(()=>this.previewChange.emit({value:tt.enabled?tt:null,event:U}))}};_touchmoveHandler=U=>{if(!this.isRange)return;const tt=Yi(U),Ze=tt?this._getCellFromElement(tt):null;tt!==U.target&&(this._didDragSinceMouseDown=!0),dn(U.target)&&U.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:Ze?.enabled?Ze:null,event:U}))};_leaveHandler=U=>{null!==this.previewEnd&&this.isRange&&("blur"!==U.type&&(this._didDragSinceMouseDown=!0),U.target&&this._getCellFromElement(U.target)&&(!U.relatedTarget||!this._getCellFromElement(U.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:U})))};_mousedownHandler=U=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const tt=U.target&&this._getCellFromElement(U.target);!tt||!this._isInRange(tt.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:tt.rawValue,event:U})})};_mouseupHandler=U=>{if(!this.isRange)return;const tt=dn(U.target);tt?tt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const Ze=this._getCellFromElement(tt);this.dragEnded.emit({value:Ze?.rawValue??null,event:U})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:U})})};_touchendHandler=U=>{const tt=Yi(U);tt&&this._mouseupHandler({target:tt})};_getCellFromElement(U){const tt=dn(U);if(tt){const Ze=tt.getAttribute("data-mat-row"),Xt=tt.getAttribute("data-mat-col");if(Ze&&Xt)return this.rows[parseInt(Ze)]?.[parseInt(Xt)]||null}return null}static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[he.OA$],attrs:gn,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(tt,Ze){1&tt&&(he.nVh(0,Ni,3,6,"tr",0),he.Z7z(1,vt,4,1,"tr",1,ei,!0),he.j41(3,"span",2),he.EFF(4),he.k0s(),he.j41(5,"span",2),he.EFF(6),he.k0s(),he.j41(7,"span",2),he.EFF(8),he.k0s(),he.j41(9,"span",2),he.EFF(10),he.k0s()),2&tt&&(he.vxM(Ze._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],encapsulation:2,changeDetection:0})}return nn})();function Nt(nn){return"TD"===nn?.nodeName}function dn(nn){let ni;return Nt(nn)?ni=nn:Nt(nn.parentNode)?ni=nn.parentNode:Nt(nn.parentNode?.parentNode)&&(ni=nn.parentNode.parentNode),null!=ni?.getAttribute("data-mat-row")?ni:null}function xn(nn,ni,U){return null!==U&&ni!==U&&nn=ni&&nn===U}function xi(nn,ni,U,tt){return tt&&null!==ni&&null!==U&&ni!==U&&nn>=ni&&nn<=U}function Yi(nn){const ni=nn.changedTouches[0];return document.elementFromPoint(ni.clientX,ni.clientY)}class Tt{start;end;_disableStructuralEquivalency;constructor(ni,U){this.start=ni,this.end=U}}let At=(()=>{class nn{selection;_adapter;_selectionChanged=new lt.B;selectionChanged=this._selectionChanged;constructor(U,tt){this.selection=U,this._adapter=tt,this.selection=U}updateSelection(U,tt){const Ze=this.selection;this.selection=U,this._selectionChanged.next({selection:U,source:tt,oldValue:Ze})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(U){return this._adapter.isDateInstance(U)&&this._adapter.isValid(U)}static \u0275fac=function(tt){he.QTQ()};static \u0275prov=_e.jDH({token:nn,factory:nn.\u0275fac})}return nn})(),we=(()=>{class nn extends At{constructor(U){super(null,U)}add(U){super.updateSelection(U,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const U=new nn(this._adapter);return U.updateSelection(this.selection,this),U}static \u0275fac=function(tt){return new(tt||nn)(_e.KVO(P.MJ))};static \u0275prov=_e.jDH({token:nn,factory:nn.\u0275fac})}return nn})();const Ht={provide:At,deps:[[new he.Xx1,new he.kdw,At],P.MJ],useFactory:function Lt(nn,ni){return nn||new we(ni)}},bi=new _e.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let Yt=0,Un=(()=>{class nn{_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_dateFormats=(0,_e.WQX)(P.de,{optional:!0});_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dir=(0,_e.WQX)($.dS,{optional:!0});_rangeStrategy=(0,_e.WQX)(bi,{optional:!0});_rerenderSubscription=Le.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(U){const tt=this._activeDate,Ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Ze,this.minDate,this.maxDate),this._hasSameMonthAndYear(tt,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(U){this._selected=U instanceof Tt?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_minDate;get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new he.bkB;_userSelection=new he.bkB;dragStarted=new he.bkB;dragEnded=new he.bkB;activeDateChange=new he.bkB;_matCalendarBody;_monthLabel=(0,_e.vPA)("");_weeks=(0,_e.vPA)([]);_firstWeekOffset=(0,_e.vPA)(0);_rangeStart=(0,_e.vPA)(null);_rangeEnd=(0,_e.vPA)(null);_comparisonRangeStart=(0,_e.vPA)(null);_comparisonRangeEnd=(0,_e.vPA)(null);_previewStart=(0,_e.vPA)(null);_previewEnd=(0,_e.vPA)(null);_isRange=(0,_e.vPA)(!1);_todayDate=(0,_e.vPA)(null);_weekdays=(0,_e.vPA)([]);constructor(){(0,_e.WQX)(rt.l).load(Gt.Y),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,fe.Z)(null)).subscribe(()=>this._init())}ngOnChanges(U){const tt=U.comparisonStart||U.comparisonEnd;tt&&!tt.firstChange&&this._setRanges(this.selected),U.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(U){const tt=U.value,Ze=this._getDateFromDayOfMonth(tt);let Xt,Nn;this._selected instanceof Tt?(Xt=this._getDateInCurrentMonth(this._selected.start),Nn=this._getDateInCurrentMonth(this._selected.end)):Xt=Nn=this._getDateInCurrentMonth(this._selected),(Xt!==tt||Nn!==tt)&&this.selectedChange.emit(Ze),this._userSelection.emit({value:Ze,event:U.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(U){const Ze=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(U.value),this._dateAdapter.compareDate(Ze,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(U){const tt=this._activeDate,Ze=this._isRtl();switch(U.keyCode){case St.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Ze?1:-1);break;case St.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,Ze?-1:1);break;case St.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case St.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case St.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case St.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case St.w_:this.activeDate=U.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case St.dB:this.activeDate=U.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case St.Fm:case St.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&U.preventDefault());case St._f:return void(null!=this._previewEnd()&&!(0,Vt.rp)(U)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:U}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:U})),U.preventDefault(),U.stopPropagation()));default:return}this._dateAdapter.compareDate(tt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===St.t6||U.keyCode===St.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:U}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let U=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+this._dateAdapter.getDayOfWeek(U)-this._dateAdapter.getFirstDayOfWeek())%7),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(U){this._matCalendarBody._focusActiveCell(U)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:U,value:tt}){if(this._rangeStrategy){const Ze=tt?tt.rawValue:null,Xt=this._rangeStrategy.createPreview(Ze,this.selected,U);if(this._previewStart.set(this._getCellCompareValue(Xt.start)),this._previewEnd.set(this._getCellCompareValue(Xt.end)),this.activeDrag&&Ze){const Nn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,Ze,U);Nn&&(this._previewStart.set(this._getCellCompareValue(Nn.start)),this._previewEnd.set(this._getCellCompareValue(Nn.end)))}}}_dragEnded(U){if(this.activeDrag)if(U.value){const tt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,U.value,U.event);this.dragEnded.emit({value:tt??null,event:U.event})}else this.dragEnded.emit({value:null,event:U.event})}_getDateFromDayOfMonth(U){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),U)}_initWeekdays(){const U=this._dateAdapter.getFirstDayOfWeek(),tt=this._dateAdapter.getDayOfWeekNames("narrow"),Xt=this._dateAdapter.getDayOfWeekNames("long").map((Nn,Ki)=>({long:Nn,narrow:tt[Ki],id:Yt++}));this._weekdays.set(Xt.slice(U).concat(Xt.slice(0,U)))}_createWeekCells(){const U=this._dateAdapter.getNumDaysInMonth(this.activeDate),tt=this._dateAdapter.getDateNames(),Ze=[[]];for(let Xt=0,Nn=this._firstWeekOffset();Xt=0)&&(!this.maxDate||this._dateAdapter.compareDate(U,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(U))}_getDateInCurrentMonth(U){return U&&this._hasSameMonthAndYear(U,this.activeDate)?this._dateAdapter.getDate(U):null}_hasSameMonthAndYear(U,tt){return!(!U||!tt||this._dateAdapter.getMonth(U)!=this._dateAdapter.getMonth(tt)||this._dateAdapter.getYear(U)!=this._dateAdapter.getYear(tt))}_getCellCompareValue(U){if(U){const tt=this._dateAdapter.getYear(U),Ze=this._dateAdapter.getMonth(U),Xt=this._dateAdapter.getDate(U);return new Date(tt,Ze,Xt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(U){U instanceof Tt?(this._rangeStart.set(this._getCellCompareValue(U.start)),this._rangeEnd.set(this._getCellCompareValue(U.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(U)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(U){return!this.dateFilter||this.dateFilter(U)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["mat-month-view"]],viewQuery:function(tt,Ze){if(1&tt&&he.GBs(un,5),2&tt){let Xt;he.mGM(Xt=he.lsd())&&(Ze._matCalendarBody=Xt.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[he.OA$],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(tt,Ze){1&tt&&(he.j41(0,"table",0)(1,"thead",1)(2,"tr"),he.Z7z(3,ee,5,2,"th",2,vi),he.k0s(),he.j41(5,"tr",3),he.nrm(6,"th",4),he.k0s()(),he.j41(7,"tbody",5),he.bIt("selectedValueChange",function(Nn){return Ze._dateSelected(Nn)})("activeDateChange",function(Nn){return Ze._updateActiveDate(Nn)})("previewChange",function(Nn){return Ze._previewChanged(Nn)})("dragStarted",function(Nn){return Ze.dragStarted.emit(Nn)})("dragEnded",function(Nn){return Ze._dragEnded(Nn)})("keyup",function(Nn){return Ze._handleCalendarBodyKeyup(Nn)})("keydown",function(Nn){return Ze._handleCalendarBodyKeydown(Nn)}),he.k0s()()),2&tt&&(he.R7$(3),he.Dyx(Ze._weekdays()),he.R7$(4),he.Y8G("label",Ze._monthLabel())("rows",Ze._weeks())("todayValue",Ze._todayDate())("startValue",Ze._rangeStart())("endValue",Ze._rangeEnd())("comparisonStart",Ze._comparisonRangeStart())("comparisonEnd",Ze._comparisonRangeEnd())("previewStart",Ze._previewStart())("previewEnd",Ze._previewEnd())("isRange",Ze._isRange())("labelMinRequiredCells",3)("activeCell",Ze._dateAdapter.getDate(Ze.activeDate)-1)("startDateAccessibleName",Ze.startDateAccessibleName)("endDateAccessibleName",Ze.endDateAccessibleName))},dependencies:[un],encapsulation:2,changeDetection:0})}return nn})(),ci=(()=>{class nn{_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dir=(0,_e.WQX)($.dS,{optional:!0});_rerenderSubscription=Le.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(U){let tt=this._activeDate;const Ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Ze,this.minDate,this.maxDate),rn(this._dateAdapter,tt,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(U){this._selected=U instanceof Tt?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setSelectedYear(U)}_selected;get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_minDate;get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_maxDate;dateFilter;dateClass;selectedChange=new he.bkB;yearSelected=new he.bkB;activeDateChange=new he.bkB;_matCalendarBody;_years=(0,_e.vPA)([]);_todayYear=(0,_e.vPA)(0);_selectedYear=(0,_e.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,fe.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));const tt=this._dateAdapter.getYear(this._activeDate)-In(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),Ze=[];for(let Xt=0,Nn=[];Xt<24;Xt++)Nn.push(tt+Xt),4==Nn.length&&(Ze.push(Nn.map(Ki=>this._createCellForYear(Ki))),Nn=[]);this._years.set(Ze),this._changeDetectorRef.markForCheck()}_yearSelected(U){const tt=U.value,Ze=this._dateAdapter.createDate(tt,0,1),Xt=this._getDateFromYear(tt);this.yearSelected.emit(Ze),this.selectedChange.emit(Xt)}_updateActiveDate(U){const Ze=this._activeDate;this.activeDate=this._getDateFromYear(U.value),this._dateAdapter.compareDate(Ze,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(U){const tt=this._activeDate,Ze=this._isRtl();switch(U.keyCode){case St.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ze?1:-1);break;case St.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ze?-1:1);break;case St.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case St.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case St.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-In(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case St.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-In(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case St.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?-240:-24);break;case St.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?240:24);break;case St.Fm:case St.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(tt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===St.t6||U.keyCode===St.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:U}),this._selectionKeyPressed=!1)}_getActiveCell(){return In(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(U){const tt=this._dateAdapter.getMonth(this.activeDate),Ze=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(U,tt,1));return this._dateAdapter.createDate(U,tt,Math.min(this._dateAdapter.getDate(this.activeDate),Ze))}_createCellForYear(U){const tt=this._dateAdapter.createDate(U,0,1),Ze=this._dateAdapter.getYearName(tt),Xt=this.dateClass?this.dateClass(tt,"multi-year"):void 0;return new We(U,Ze,Ze,this._shouldEnableYear(U),Xt)}_shouldEnableYear(U){if(null==U||this.maxDate&&U>this._dateAdapter.getYear(this.maxDate)||this.minDate&&U{class nn{_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_dateFormats=(0,_e.WQX)(P.de,{optional:!0});_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dir=(0,_e.WQX)($.dS,{optional:!0});_rerenderSubscription=Le.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(U){let tt=this._activeDate;const Ze=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(Ze,this.minDate,this.maxDate),this._dateAdapter.getYear(tt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(U){this._selected=U instanceof Tt?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U)),this._setSelectedMonth(U)}_selected;get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_minDate;get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_maxDate;dateFilter;dateClass;selectedChange=new he.bkB;monthSelected=new he.bkB;activeDateChange=new he.bkB;_matCalendarBody;_months=(0,_e.vPA)([]);_yearLabel=(0,_e.vPA)("");_todayMonth=(0,_e.vPA)(null);_selectedMonth=(0,_e.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,fe.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(U){const tt=U.value,Ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),tt,1);this.monthSelected.emit(Ze);const Xt=this._getDateFromMonth(tt);this.selectedChange.emit(Xt)}_updateActiveDate(U){const Ze=this._activeDate;this.activeDate=this._getDateFromMonth(U.value),this._dateAdapter.compareDate(Ze,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(U){const tt=this._activeDate,Ze=this._isRtl();switch(U.keyCode){case St.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Ze?1:-1);break;case St.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,Ze?-1:1);break;case St.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case St.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case St.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case St.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case St.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?-10:-1);break;case St.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,U.altKey?10:1);break;case St.Fm:case St.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(tt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),U.preventDefault()}_handleCalendarBodyKeyup(U){(U.keyCode===St.t6||U.keyCode===St.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:U}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let U=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(tt=>tt.map(Ze=>this._createCellForMonth(Ze,U[Ze])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(U){return U&&this._dateAdapter.getYear(U)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(U):null}_getDateFromMonth(U){const tt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),U,1),Ze=this._dateAdapter.getNumDaysInMonth(tt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),U,Math.min(this._dateAdapter.getDate(this.activeDate),Ze))}_createCellForMonth(U,tt){const Ze=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),U,1),Xt=this._dateAdapter.format(Ze,this._dateFormats.display.monthYearA11yLabel),Nn=this.dateClass?this.dateClass(Ze,"year"):void 0;return new We(U,tt.toLocaleUpperCase(),Xt,this._shouldEnableMonth(U),Nn)}_shouldEnableMonth(U){const tt=this._dateAdapter.getYear(this.activeDate);if(null==U||this._isYearAndMonthAfterMaxDate(tt,U)||this._isYearAndMonthBeforeMinDate(tt,U))return!1;if(!this.dateFilter)return!0;for(let Xt=this._dateAdapter.createDate(tt,U,1);this._dateAdapter.getMonth(Xt)==U;Xt=this._dateAdapter.addCalendarDays(Xt,1))if(this.dateFilter(Xt))return!0;return!1}_isYearAndMonthAfterMaxDate(U,tt){if(this.maxDate){const Ze=this._dateAdapter.getYear(this.maxDate),Xt=this._dateAdapter.getMonth(this.maxDate);return U>Ze||U===Ze&&tt>Xt}return!1}_isYearAndMonthBeforeMinDate(U,tt){if(this.minDate){const Ze=this._dateAdapter.getYear(this.minDate),Xt=this._dateAdapter.getMonth(this.minDate);return U{class nn{_intl=(0,_e.WQX)(Ot);calendar=(0,_e.WQX)(ia);_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dateFormats=(0,_e.WQX)(P.de,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){(0,_e.WQX)(rt.l).load(Gt.Y);const U=(0,_e.WQX)(Dt.gRc);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),U.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24))}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){const U=this.calendar,tt=this._intl,Ze=this._dateAdapter;"month"===U.currentView?(this._periodButtonText=Ze.format(U.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=Ze.format(U.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=tt.switchToMultiYearViewLabel,this._prevButtonLabel=tt.prevMonthLabel,this._nextButtonLabel=tt.nextMonthLabel):"year"===U.currentView?(this._periodButtonText=Ze.getYearName(U.activeDate),this._periodButtonDescription=Ze.getYearName(U.activeDate),this._periodButtonLabel=tt.switchToMonthViewLabel,this._prevButtonLabel=tt.prevYearLabel,this._nextButtonLabel=tt.nextYearLabel):(this._periodButtonText=tt.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=tt.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=tt.switchToMonthViewLabel,this._prevButtonLabel=tt.prevMultiYearLabel,this._nextButtonLabel=tt.nextMultiYearLabel)}_isSameView(U,tt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(U)==this._dateAdapter.getYear(tt)&&this._dateAdapter.getMonth(U)==this._dateAdapter.getMonth(tt):"year"==this.calendar.currentView?this._dateAdapter.getYear(U)==this._dateAdapter.getYear(tt):rn(this._dateAdapter,U,tt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const tt=this._dateAdapter.getYear(this.calendar.activeDate)-In(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),Ze=tt+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(tt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(Ze,0,1))]}_periodButtonLabelId=(0,_e.WQX)(H.g).getId("mat-calendar-period-label-");static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ye,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(tt,Ze){1&tt&&(he.NAR(),he.j41(0,"div",0)(1,"div",1)(2,"span",2),he.EFF(3),he.k0s(),he.j41(4,"button",3),he.bIt("click",function(){return Ze.currentPeriodClicked()}),he.j41(5,"span",4),he.EFF(6),he.k0s(),_e.qSk(),he.j41(7,"svg",5),he.nrm(8,"polygon",6),he.k0s()(),_e.joV(),he.nrm(9,"div",7),he.SdG(10),he.j41(11,"button",8),he.bIt("click",function(){return Ze.previousClicked()}),_e.qSk(),he.j41(12,"svg",9),he.nrm(13,"path",10),he.k0s()(),_e.joV(),he.j41(14,"button",11),he.bIt("click",function(){return Ze.nextClicked()}),_e.qSk(),he.j41(15,"svg",9),he.nrm(16,"path",12),he.k0s()()()()),2&tt&&(he.R7$(2),he.Y8G("id",Ze._periodButtonLabelId),he.R7$(),he.JRh(Ze.periodButtonDescription),he.R7$(),he.BMQ("aria-label",Ze.periodButtonLabel)("aria-describedby",Ze._periodButtonLabelId),he.R7$(2),he.JRh(Ze.periodButtonText),he.R7$(),he.AVh("mat-calendar-invert","month"!==Ze.calendar.currentView),he.R7$(4),he.Y8G("disabled",!Ze.previousEnabled())("matTooltip",Ze.prevButtonLabel),he.BMQ("aria-label",Ze.prevButtonLabel),he.R7$(3),he.Y8G("disabled",!Ze.nextEnabled())("matTooltip",Ze.nextButtonLabel),he.BMQ("aria-label",Ze.nextButtonLabel))},dependencies:[Ft.$z,Sn.iY,Qn.oV],encapsulation:2,changeDetection:0})}return nn})(),ia=(()=>{class nn{_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dateFormats=(0,_e.WQX)(P.de,{optional:!0});_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_elementRef=(0,_e.WQX)(he.aKT);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(U){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_startAt;startView="month";get selected(){return this._selected}set selected(U){this._selected=U instanceof Tt?U:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_selected;get minDate(){return this._minDate}set minDate(U){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_minDate;get maxDate(){return this._maxDate}set maxDate(U){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new he.bkB;yearSelected=new he.bkB;monthSelected=new he.bkB;viewChanged=new he.bkB(!0);_userSelection=new he.bkB;_userDragDrop=new he.bkB;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(U){this._clampedActiveDate=this._dateAdapter.clampDate(U,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(U){const tt=this._currentView!==U?U:null;this._currentView=U,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),tt&&(this.stateChanges.next(),this.viewChanged.emit(tt))}_currentView;_activeDrag=null;stateChanges=new lt.B;constructor(){this._intlChanges=(0,_e.WQX)(Ot).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new oe.A8(this.headerComponent||Bn),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(U){const tt=U.minDate&&!this._dateAdapter.sameDate(U.minDate.previousValue,U.minDate.currentValue)?U.minDate:void 0,Ze=U.maxDate&&!this._dateAdapter.sameDate(U.maxDate.previousValue,U.maxDate.currentValue)?U.maxDate:void 0,Xt=tt||Ze||U.dateFilter;if(Xt&&!Xt.firstChange){const Nn=this._getCurrentViewComponent();Nn&&(this._elementRef.nativeElement.contains((0,ht.vc)())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),Nn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(U){const tt=U.value;(this.selected instanceof Tt||tt&&!this._dateAdapter.sameDate(tt,this.selected))&&this.selectedChange.emit(tt),this._userSelection.emit(U)}_yearSelectedInMultiYearView(U){this.yearSelected.emit(U)}_monthSelectedInYearView(U){this.monthSelected.emit(U)}_goToDateInView(U,tt){this.activeDate=U,this.currentView=tt}_dragStarted(U){this._activeDrag=U}_dragEnded(U){this._activeDrag&&(U.value&&this._userDragDrop.emit(U),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["mat-calendar"]],viewQuery:function(tt,Ze){if(1&tt&&(he.GBs(Un,5),he.GBs(ii,5),he.GBs(ci,5)),2&tt){let Xt;he.mGM(Xt=he.lsd())&&(Ze.monthView=Xt.first),he.mGM(Xt=he.lsd())&&(Ze.yearView=Xt.first),he.mGM(Xt=he.lsd())&&(Ze.multiYearView=Xt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[he.Jv_([Ht]),he.OA$],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(tt,Ze){if(1&tt&&(he.DNE(0,ke,0,0,"ng-template",0),he.j41(1,"div",1),he.nVh(2,Se,1,11,"mat-month-view",2)(3,ge,1,6,"mat-year-view",3)(4,N,1,6,"mat-multi-year-view",3),he.k0s()),2&tt){let Xt;he.Y8G("cdkPortalOutlet",Ze._calendarHeaderPortal),he.R7$(2),he.vxM("month"===(Xt=Ze.currentView)?2:"year"===Xt?3:"multi-year"===Xt?4:-1)}},dependencies:[oe.I3,F.vR,Un,ii,ci],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return nn})();const ra=new _e.nKC("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const nn=(0,_e.WQX)(_e.zZn);return()=>(0,ot.RH)(nn)}}),ha={provide:ra,deps:[],useFactory:function fa(nn){const ni=(0,_e.WQX)(_e.zZn);return()=>(0,ot.RH)(ni)}};let qt=(()=>{class nn{_elementRef=(0,_e.WQX)(he.aKT);_animationsDisabled=(0,h.Rc)();_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_globalModel=(0,_e.WQX)(At);_dateAdapter=(0,_e.WQX)(P.MJ);_ngZone=(0,_e.WQX)(he.SKi);_rangeSelectionStrategy=(0,_e.WQX)(bi,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new lt.B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if((0,_e.WQX)(rt.l).load(Gt.Y),this._closeButtonText=(0,_e.WQX)(Ot).closeCalendarLabel,!this._animationsDisabled){const U=this._elementRef.nativeElement,tt=(0,_e.WQX)(he.sFG);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[tt.listen(U,"animationstart",this._handleAnimationEvent),tt.listen(U,"animationend",this._handleAnimationEvent),tt.listen(U,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(U=>U()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(U){const tt=this._model.selection,Ze=U.value,Xt=tt instanceof Tt;if(Xt&&this._rangeSelectionStrategy){const Nn=this._rangeSelectionStrategy.selectionFinished(Ze,tt,U.event);this._model.updateSelection(Nn,this)}else Ze&&(Xt||!this._dateAdapter.sameDate(Ze,tt))&&this._model.add(Ze);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(U){this._model.updateSelection(U.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=U=>{const tt=this._elementRef.nativeElement;U.target!==tt||!U.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating="animationstart"===U.type,tt.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(U,tt){this._model=U?this._globalModel.clone():this._globalModel,this._actionsPortal=U,tt&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["mat-datepicker-content"]],viewQuery:function(tt,Ze){if(1&tt&&he.GBs(ia,5),2&tt){let Xt;he.mGM(Xt=he.lsd())&&(Ze._calendar=Xt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(tt,Ze){2&tt&&(he.HbH(Ze.color?"mat-"+Ze.color:""),he.AVh("mat-datepicker-content-touch",Ze.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!Ze._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(tt,Ze){1&tt&&(he.j41(0,"div",0)(1,"mat-calendar",1),he.bIt("yearSelected",function(Nn){return Ze.datepicker._selectYear(Nn)})("monthSelected",function(Nn){return Ze.datepicker._selectMonth(Nn)})("viewChanged",function(Nn){return Ze.datepicker._viewChanged(Nn)})("_userSelection",function(Nn){return Ze._handleUserSelection(Nn)})("_userDragDrop",function(Nn){return Ze._handleUserDragDrop(Nn)}),he.k0s(),he.DNE(2,Z,0,0,"ng-template",2),he.j41(3,"button",3),he.bIt("focus",function(){return Ze._closeButtonFocused=!0})("blur",function(){return Ze._closeButtonFocused=!1})("click",function(){return Ze.datepicker.close()}),he.EFF(4),he.k0s()()),2&tt&&(he.AVh("mat-datepicker-content-container-with-custom-header",Ze.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Ze._actionsPortal),he.BMQ("aria-modal",!0)("aria-labelledby",Ze._dialogLabelId??void 0),he.R7$(),he.HbH(Ze.datepicker.panelClass),he.Y8G("id",Ze.datepicker.id)("startAt",Ze.datepicker.startAt)("startView",Ze.datepicker.startView)("minDate",Ze.datepicker._getMinDate())("maxDate",Ze.datepicker._getMaxDate())("dateFilter",Ze.datepicker._getDateFilter())("headerComponent",Ze.datepicker.calendarHeaderComponent)("selected",Ze._getSelected())("dateClass",Ze.datepicker.dateClass)("comparisonStart",Ze.comparisonStart)("comparisonEnd",Ze.comparisonEnd)("startDateAccessibleName",Ze.startDateAccessibleName)("endDateAccessibleName",Ze.endDateAccessibleName),he.R7$(),he.Y8G("cdkPortalOutlet",Ze._actionsPortal),he.R7$(),he.AVh("cdk-visually-hidden",!Ze._closeButtonFocused),he.Y8G("color",Ze.color||"primary"),he.R7$(),he.JRh(Ze._closeButtonText))},dependencies:[ve.kB,ia,oe.I3,Ft.$z],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,changeDetection:0})}return nn})(),En=(()=>{class nn{_injector=(0,_e.WQX)(_e.zZn);_viewContainerRef=(0,_e.WQX)(he.c1b);_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dir=(0,_e.WQX)($.dS,{optional:!0});_model=(0,_e.WQX)(At);_animationsDisabled=(0,h.Rc)();_scrollStrategy=(0,_e.WQX)(ra);_inputStateChanges=Le.yU.EMPTY;_document=(0,_e.WQX)(_e.qQL);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(U){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(U){this._color=U}_color;touchUi=!1;get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(U){U!==this._disabled&&(this._disabled=U,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new he.bkB;monthSelected=new he.bkB;viewChanged=new he.bkB(!0);dateClass;openedStream=new he.bkB;closedStream=new he.bkB;get panelClass(){return this._panelClass}set panelClass(U){this._panelClass=(0,Ke.cc)(U)}_panelClass;get opened(){return this._opened}set opened(U){U?this.open():this.close()}_opened=!1;id=(0,_e.WQX)(H.g).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new lt.B;_changeDetectorRef=(0,_e.WQX)(Dt.gRc);constructor(){this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(U){const tt=U.xPosition||U.yPosition;if(tt&&!tt.firstChange&&this._overlayRef){const Ze=this._overlayRef.getConfig().positionStrategy;Ze instanceof ot.rW&&(this._setConnectedPositions(Ze),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(U){this._model.add(U)}_selectYear(U){this.yearSelected.emit(U)}_selectMonth(U){this.monthSelected.emit(U)}_viewChanged(U){this.viewChanged.emit(U)}registerInput(U){return this._inputStateChanges.unsubscribe(),this.datepickerInput=U,this._inputStateChanges=U.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(U){this._actionsPortal=U,this._componentRef?.instance._assignActions(U,!0)}removeActions(U){U===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ht.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const U=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,tt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:Ze,location:Xt}=this._componentRef;Ze._animationDone.pipe((0,Qe.s)(1)).subscribe(()=>{const Nn=this._document.activeElement;U&&(!Nn||Nn===this._document.activeElement||Xt.nativeElement.contains(Nn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),Ze._startExitAnimation()}U?setTimeout(tt):tt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(U){U.datepicker=this,U.color=this.color,U._dialogLabelId=this.datepickerInput.getOverlayLabelId(),U._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const U=this.touchUi,tt=new oe.A8(qt,this._viewContainerRef),Ze=this._overlayRef=(0,ot.Y$)(this._injector,new ot.rR({positionStrategy:U?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[U?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:U?(0,ot.gA)(this._injector):this._scrollStrategy(),panelClass:"mat-datepicker-"+(U?"dialog":"popup"),disableAnimations:this._animationsDisabled}));this._getCloseStream(Ze).subscribe(Xt=>{Xt&&Xt.preventDefault(),this.close()}),Ze.keydownEvents().subscribe(Xt=>{const Nn=Xt.keyCode;(Nn===St.i7||Nn===St.n6||Nn===St.UQ||Nn===St.LE||Nn===St.w_||Nn===St.dB)&&Xt.preventDefault()}),this._componentRef=Ze.attach(tt),this._forwardContentValues(this._componentRef.instance),U||(0,he.mal)(()=>{Ze.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return(0,ot.uA)(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){const U=(0,ot.$M)(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(U)}_setConnectedPositions(U){const tt="end"===this.xPosition?"end":"start",Ze="start"===tt?"end":"start",Xt="above"===this.yPosition?"bottom":"top",Nn="top"===Xt?"bottom":"top";return U.withPositions([{originX:tt,originY:Nn,overlayX:tt,overlayY:Xt},{originX:tt,originY:Xt,overlayX:tt,overlayY:Nn},{originX:Ze,originY:Nn,overlayX:Ze,overlayY:Xt},{originX:Ze,originY:Xt,overlayX:Ze,overlayY:Nn}])}_getCloseStream(U){const tt=["ctrlKey","shiftKey","metaKey"];return(0,te.h)(U.backdropClick(),U.detachments(),U.keydownEvents().pipe((0,Ye.p)(Ze=>Ze.keyCode===St._f&&!(0,Vt.rp)(Ze)||this.datepickerInput&&(0,Vt.rp)(Ze,"altKey")&&Ze.keyCode===St.i7&&tt.every(Xt=>!(0,Vt.rp)(Ze,Xt)))))}static \u0275fac=function(tt){return new(tt||nn)};static \u0275dir=he.FsC({type:nn,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",Dt.L39],disabled:[2,"disabled","disabled",Dt.L39],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",Dt.L39],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",Dt.L39]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[he.OA$]})}return nn})(),Wn=(()=>{class nn extends En{static \u0275fac=(()=>{let U;return function(Ze){return(U||(U=he.xGo(nn)))(Ze||nn)}})();static \u0275cmp=he.VBU({type:nn,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[he.Jv_([Ht,{provide:En,useExisting:nn}]),he.Vt3],decls:0,vars:0,template:function(tt,Ze){},encapsulation:2,changeDetection:0})}return nn})();class ri{target;targetElement;value;constructor(ni,U){this.target=ni,this.targetElement=U,this.value=this.target.value}}let Rn=(()=>{class nn{_elementRef=(0,_e.WQX)(he.aKT);_dateAdapter=(0,_e.WQX)(P.MJ,{optional:!0});_dateFormats=(0,_e.WQX)(P.de,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(U){this._assignValueProgrammatically(U)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(U){const tt=U,Ze=this._elementRef.nativeElement;this._disabled!==tt&&(this._disabled=tt,this.stateChanges.next(void 0)),tt&&this._isInitialized&&Ze.blur&&Ze.blur()}_disabled;dateChange=new he.bkB;dateInput=new he.bkB;stateChanges=new lt.B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Le.yU.EMPTY;_localeSubscription=Le.yU.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=U=>{const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U.value));return!tt||this._matchesFilter(tt)?null:{matDatepickerFilter:!0}};_minValidator=U=>{const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U.value)),Ze=this._getMinDate();return!Ze||!tt||this._dateAdapter.compareDate(Ze,tt)<=0?null:{matDatepickerMin:{min:Ze,actual:tt}}};_maxValidator=U=>{const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U.value)),Ze=this._getMaxDate();return!Ze||!tt||this._dateAdapter.compareDate(Ze,tt)>=0?null:{matDatepickerMax:{max:Ze,actual:tt}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(U){this._model=U,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(tt=>{if(this._shouldHandleChangeEvent(tt)){const Ze=this._getValueFromModel(tt.selection);this._lastValueValid=this._isValidValue(Ze),this._cvaOnChange(Ze),this._onTouched(),this._formatValue(Ze),this.dateInput.emit(new ri(this,this._elementRef.nativeElement)),this.dateChange.emit(new ri(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(U){(function Hn(nn,ni){const U=Object.keys(nn);for(let tt of U){const{previousValue:Ze,currentValue:Xt}=nn[tt];if(!ni.isDateInstance(Ze)||!ni.isDateInstance(Xt))return!0;if(!ni.sameDate(Ze,Xt))return!0}return!1})(U,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(U){this._validatorOnChange=U}validate(U){return this._validator?this._validator(U):null}writeValue(U){this._assignValueProgrammatically(U)}registerOnChange(U){this._cvaOnChange=U}registerOnTouched(U){this._onTouched=U}setDisabledState(U){this.disabled=U}_onKeydown(U){(0,Vt.rp)(U,"altKey")&&U.keyCode===St.n6&&["ctrlKey","shiftKey","metaKey"].every(Xt=>!(0,Vt.rp)(U,Xt))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),U.preventDefault())}_onInput(U){const tt=U.target.value,Ze=this._lastValueValid;let Xt=this._dateAdapter.parse(tt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(Xt),Xt=this._dateAdapter.getValidDateOrNull(Xt);const Nn=!this._dateAdapter.sameDate(Xt,this.value);!Xt||Nn?this._cvaOnChange(Xt):(tt&&!this.value&&this._cvaOnChange(Xt),Ze!==this._lastValueValid&&this._validatorOnChange()),Nn&&(this._assignValue(Xt),this.dateInput.emit(new ri(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new ri(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(U){this._elementRef.nativeElement.value=null!=U?this._dateAdapter.format(U,this._dateFormats.display.dateInput):""}_assignValue(U){this._model?(this._assignValueToModel(U),this._pendingValue=null):this._pendingValue=U}_isValidValue(U){return!U||this._dateAdapter.isValid(U)}_parentDisabled(){return!1}_assignValueProgrammatically(U){U=this._dateAdapter.deserialize(U),this._lastValueValid=this._isValidValue(U),U=this._dateAdapter.getValidDateOrNull(U),this._assignValue(U),this._formatValue(U)}_matchesFilter(U){const tt=this._getDateFilter();return!tt||tt(U)}static \u0275fac=function(tt){return new(tt||nn)};static \u0275dir=he.FsC({type:nn,inputs:{value:"value",disabled:[2,"disabled","disabled",Dt.L39]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[he.OA$]})}return nn})();const Pi={provide:jt.kq,useExisting:(0,_e.Rfq)(()=>Ta),multi:!0},da={provide:jt.cz,useExisting:(0,_e.Rfq)(()=>Ta),multi:!0};let Ta=(()=>{class nn extends Rn{_formField=(0,_e.WQX)(wt.xb,{optional:!0});_closedSubscription=Le.yU.EMPTY;_openedSubscription=Le.yU.EMPTY;set matDatepicker(U){U&&(this._datepicker=U,this._ariaOwns.set(U.opened?U.id:null),this._closedSubscription=U.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=U.openedStream.subscribe(()=>{this._ariaOwns.set(U.id)}),this._registerModel(U.registerInput(this)))}_datepicker;_ariaOwns=(0,_e.vPA)(null);get min(){return this._min}set min(U){const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U));this._dateAdapter.sameDate(tt,this._min)||(this._min=tt,this._validatorOnChange())}_min;get max(){return this._max}set max(U){const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(U));this._dateAdapter.sameDate(tt,this._max)||(this._max=tt,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(U){const tt=this._matchesFilter(this.value);this._dateFilter=U,this._matchesFilter(this.value)!==tt&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=jt.k0.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(U){return U}_assignValueToModel(U){this._model&&this._model.updateSelection(U,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(U){return U.source!==this}static \u0275fac=function(tt){return new(tt||nn)};static \u0275dir=he.FsC({type:nn,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(tt,Ze){1&tt&&he.bIt("input",function(Nn){return Ze._onInput(Nn)})("change",function(){return Ze._onChange()})("blur",function(){return Ze._onBlur()})("keydown",function(Nn){return Ze._onKeydown(Nn)}),2&tt&&(he.Avn("disabled",Ze.disabled),he.BMQ("aria-haspopup",Ze._datepicker?"dialog":null)("aria-owns",Ze._ariaOwns())("min",Ze.min?Ze._dateAdapter.toIso8601(Ze.min):null)("max",Ze.max?Ze._dateAdapter.toIso8601(Ze.max):null)("data-mat-calendar",Ze._datepicker?Ze._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[he.Jv_([Pi,da,{provide:Ue.O,useExisting:nn}]),he.Vt3]})}return nn})(),en=(()=>{class nn{static \u0275fac=function(tt){return new(tt||nn)};static \u0275dir=he.FsC({type:nn,selectors:[["","matDatepickerToggleIcon",""]]})}return nn})(),vn=(()=>{class nn{_intl=(0,_e.WQX)(Ot);_changeDetectorRef=(0,_e.WQX)(Dt.gRc);_stateChanges=Le.yU.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(U){this._disabled=U}_disabled;disableRipple;_customIcon;_button;constructor(){const U=(0,_e.WQX)(new Dt.ES_("tabindex"),{optional:!0}),tt=Number(U);this.tabIndex=tt||0===tt?tt:null}ngOnChanges(U){U.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(U){this.datepicker&&!this.disabled&&(this.datepicker.open(),U.stopPropagation())}_watchStateChanges(){const U=this.datepicker?this.datepicker.stateChanges:(0,ie.of)(),tt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,ie.of)(),Ze=this.datepicker?(0,te.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,ie.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,te.h)(this._intl.changes,U,tt,Ze).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(tt){return new(tt||nn)};static \u0275cmp=he.VBU({type:nn,selectors:[["mat-datepicker-toggle"]],contentQueries:function(tt,Ze,Xt){if(1&tt&&he.wni(Xt,en,5),2&tt){let Nn;he.mGM(Nn=he.lsd())&&(Ze._customIcon=Nn.first)}},viewQuery:function(tt,Ze){if(1&tt&&he.GBs(Me,5),2&tt){let Xt;he.mGM(Xt=he.lsd())&&(Ze._button=Xt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(tt,Ze){1&tt&&he.bIt("click",function(Nn){return Ze._open(Nn)}),2&tt&&(he.BMQ("tabindex",null)("data-mat-calendar",Ze.datepicker?Ze.datepicker.id:null),he.AVh("mat-datepicker-toggle-active",Ze.datepicker&&Ze.datepicker.opened)("mat-accent",Ze.datepicker&&"accent"===Ze.datepicker.color)("mat-warn",Ze.datepicker&&"warn"===Ze.datepicker.color))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",Dt.L39],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[he.OA$],ngContentSelectors:qe,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(tt,Ze){1&tt&&(he.NAR(at),he.j41(0,"button",1,0),he.nVh(2,pn,2,0,":svg:svg",2),he.SdG(3),he.k0s()),2&tt&&(he.Y8G("tabIndex",Ze.disabled?-1:Ze.tabIndex)("disabled",Ze.disabled)("disableRipple",Ze.disableRipple),he.BMQ("aria-haspopup",Ze.datepicker?"dialog":null)("aria-label",Ze.ariaLabel||Ze._intl.openCalendarLabel)("aria-expanded",Ze.datepicker?Ze.datepicker.opened:null),he.R7$(2),he.vxM(Ze._customIcon?-1:2))},dependencies:[Sn.iY],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],encapsulation:2,changeDetection:0})}return nn})(),Ii=(()=>{class nn{static \u0275fac=function(tt){return new(tt||nn)};static \u0275mod=he.$C({type:nn});static \u0275inj=_e.G2t({providers:[Ot,ha],imports:[Ft.Hl,ot.z_,ve.Pd,oe.jc,Pt.y,qt,vn,Bn,pt.Gj]})}return nn})()},1585(Zt,pe,l){"use strict";l.d(pe,{Vh:()=>ht,di:()=>oe,bZ:()=>fe,tx:()=>Qe,hM:()=>Qn,CP:()=>ot});var i=l(3664),d=l(2615),v=l(7705),T=l(1413),w=l(9030),e=l(6939),O=l(7094),f=l(6838),u=l(9842),L=l(4522),C=l(438),B=l(7336),A=l(9172),Pe=l(6697),le=l(9338),Ce=l(9726),Ae=l(1577);function j(h,jt){}class W{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext}let re=(()=>{class h extends e.lb{_elementRef=(0,d.WQX)(i.aKT);_focusTrapFactory=(0,d.WQX)(O.GX);_config;_interactivityChecker=(0,d.WQX)(O.Z7);_ngZone=(0,d.WQX)(i.SKi);_focusMonitor=(0,d.WQX)(f.FN);_renderer=(0,d.WQX)(i.sFG);_changeDetectorRef=(0,d.WQX)(v.gRc);_injector=(0,d.WQX)(d.zZn);_platform=(0,d.WQX)(u.O);_document=(0,d.WQX)(d.qQL);_portalOutlet;_focusTrapped=new T.B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=(0,d.WQX)(W,{optional:!0})||new W,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(Ue){this._ariaLabelledByQueue.push(Ue),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(Ue){const wt=this._ariaLabelledByQueue.indexOf(Ue);wt>-1&&(this._ariaLabelledByQueue.splice(wt,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(Ue){this._portalOutlet.hasAttached();const wt=this._portalOutlet.attachComponentPortal(Ue);return this._contentAttached(),wt}attachTemplatePortal(Ue){this._portalOutlet.hasAttached();const wt=this._portalOutlet.attachTemplatePortal(Ue);return this._contentAttached(),wt}attachDomPortal=Ue=>{this._portalOutlet.hasAttached();const wt=this._portalOutlet.attachDomPortal(Ue);return this._contentAttached(),wt};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ue,wt){this._interactivityChecker.isFocusable(Ue)||(Ue.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const pt=()=>{Pt(),gn(),Ue.removeAttribute("tabindex")},Pt=this._renderer.listen(Ue,"blur",pt),gn=this._renderer.listen(Ue,"mousedown",pt)})),Ue.focus(wt)}_focusByCssSelector(Ue,wt){let pt=this._elementRef.nativeElement.querySelector(Ue);pt&&this._forceFocus(pt,wt)}_trapFocus(Ue){this._isDestroyed||(0,i.mal)(()=>{const wt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||wt.focus(Ue);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(Ue)||this._focusDialogContainer(Ue);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',Ue);break;default:this._focusByCssSelector(this._config.autoFocus,Ue)}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){const Ue=this._config.restoreFocus;let wt=null;if("string"==typeof Ue?wt=this._document.querySelector(Ue):"boolean"==typeof Ue?wt=Ue?this._elementFocusedBeforeDialogWasOpened:null:Ue&&(wt=Ue),this._config.restoreFocus&&wt&&"function"==typeof wt.focus){const pt=(0,L.vc)(),Pt=this._elementRef.nativeElement;(!pt||pt===this._document.body||pt===Pt||Pt.contains(pt))&&(this._focusMonitor?(this._focusMonitor.focusVia(wt,this._closeInteractionType),this._closeInteractionType=null):wt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(Ue){this._elementRef.nativeElement.focus?.(Ue)}_containsFocus(){const Ue=this._elementRef.nativeElement,wt=(0,L.vc)();return Ue===wt||Ue.contains(wt)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,L.vc)()))}static \u0275fac=function(wt){return new(wt||h)};static \u0275cmp=i.VBU({type:h,selectors:[["cdk-dialog-container"]],viewQuery:function(wt,pt){if(1&wt&&i.GBs(e.I3,7),2&wt){let Pt;i.mGM(Pt=i.lsd())&&(pt._portalOutlet=Pt.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(wt,pt){2&wt&&i.BMQ("id",pt._config.id||null)("role",pt._config.role)("aria-modal",pt._config.ariaModal)("aria-labelledby",pt._config.ariaLabel?null:pt._ariaLabelledByQueue[0])("aria-label",pt._config.ariaLabel)("aria-describedby",pt._config.ariaDescribedBy||null)},features:[i.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(wt,pt){1&wt&&i.DNE(0,j,0,0,"ng-template",0)},dependencies:[e.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2})}return h})();class xe{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new T.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(jt,Ue){this.overlayRef=jt,this.config=Ue,this.disableClose=Ue.disableClose,this.backdropClick=jt.backdropClick(),this.keydownEvents=jt.keydownEvents(),this.outsidePointerEvents=jt.outsidePointerEvents(),this.id=Ue.id,this.keydownEvents.subscribe(wt=>{wt.keyCode===C._f&&!this.disableClose&&!(0,B.rp)(wt)&&(wt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=jt.detachments().subscribe(()=>{!1!==Ue.closeOnOverlayDetachments&&this.close()})}close(jt,Ue){if(this._canClose(jt)){const wt=this.closed;this.containerInstance._closeInteractionType=Ue?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),wt.next(jt),wt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(jt="",Ue=""){return this.overlayRef.updateSize({width:jt,height:Ue}),this}addPanelClass(jt){return this.overlayRef.addPanelClass(jt),this}removePanelClass(jt){return this.overlayRef.removePanelClass(jt),this}_canClose(jt){const Ue=this.config;return!!this.containerInstance&&(!Ue.closePredicate||Ue.closePredicate(jt,Ue,this.componentInstance))}}const Ee=new d.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const h=(0,d.WQX)(d.zZn);return()=>(0,le.gA)(h)}}),V=new d.nKC("DialogData"),ce=new d.nKC("DefaultDialogConfig");function be(h){const jt=(0,d.vPA)(h),Ue=new i.bkB;return{valueSignal:jt,get value(){return jt()},change:Ue,ngOnDestroy(){Ue.complete()}}}let ne=(()=>{class h{_injector=(0,d.WQX)(d.zZn);_defaultOptions=(0,d.WQX)(ce,{optional:!0});_parentDialog=(0,d.WQX)(h,{optional:!0,skipSelf:!0});_overlayContainer=(0,d.WQX)(le.Sf);_idGenerator=(0,d.WQX)(Ce.g);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new T.B;_afterOpenedAtThisLevel=new T.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,d.WQX)(Ee);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,w.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.Z)(void 0)));constructor(){}open(Ue,wt){(wt={...this._defaultOptions||new W,...wt}).id=wt.id||this._idGenerator.getId("cdk-dialog-"),wt.id&&this.getDialogById(wt.id);const Pt=this._getOverlayConfig(wt),gn=(0,le.Y$)(this._injector,Pt),ei=new xe(gn,wt),vi=this._attachContainer(gn,ei,wt);if(ei.containerInstance=vi,!this.openDialogs.length){const Ni=this._overlayContainer.getContainerElement();vi._focusTrapped?vi._focusTrapped.pipe((0,Pe.s)(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(Ni)}):this._hideNonDialogContentFromAssistiveTechnology(Ni)}return this._attachDialogContent(Ue,ei,vi,wt),this.openDialogs.push(ei),ei.closed.subscribe(()=>this._removeOpenDialog(ei,!0)),this.afterOpened.next(ei),ei}closeAll(){J(this.openDialogs,Ue=>Ue.close())}getDialogById(Ue){return this.openDialogs.find(wt=>wt.id===Ue)}ngOnDestroy(){J(this._openDialogsAtThisLevel,Ue=>{!1===Ue.config.closeOnDestroy&&this._removeOpenDialog(Ue,!1)}),J(this._openDialogsAtThisLevel,Ue=>Ue.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(Ue){const wt=new le.rR({positionStrategy:Ue.positionStrategy||(0,le.uA)().centerHorizontally().centerVertically(),scrollStrategy:Ue.scrollStrategy||this._scrollStrategy(),panelClass:Ue.panelClass,hasBackdrop:Ue.hasBackdrop,direction:Ue.direction,minWidth:Ue.minWidth,minHeight:Ue.minHeight,maxWidth:Ue.maxWidth,maxHeight:Ue.maxHeight,width:Ue.width,height:Ue.height,disposeOnNavigation:Ue.closeOnNavigation,disableAnimations:Ue.disableAnimations});return Ue.backdropClass&&(wt.backdropClass=Ue.backdropClass),wt}_attachContainer(Ue,wt,pt){const Pt=pt.injector||pt.viewContainerRef?.injector,gn=[{provide:W,useValue:pt},{provide:xe,useValue:wt},{provide:le.yY,useValue:Ue}];let ei;pt.container?"function"==typeof pt.container?ei=pt.container:(ei=pt.container.type,gn.push(...pt.container.providers(pt))):ei=re;const vi=new e.A8(ei,pt.viewContainerRef,d.zZn.create({parent:Pt||this._injector,providers:gn}));return Ue.attach(vi).instance}_attachDialogContent(Ue,wt,pt,Pt){if(Ue instanceof i.C4Q){const gn=this._createInjector(Pt,wt,pt,void 0);let ei={$implicit:Pt.data,dialogRef:wt};Pt.templateContext&&(ei={...ei,..."function"==typeof Pt.templateContext?Pt.templateContext():Pt.templateContext}),pt.attachTemplatePortal(new e.VA(Ue,null,ei,gn))}else{const gn=this._createInjector(Pt,wt,pt,this._injector),ei=pt.attachComponentPortal(new e.A8(Ue,Pt.viewContainerRef,gn));wt.componentRef=ei,wt.componentInstance=ei.instance}}_createInjector(Ue,wt,pt,Pt){const gn=Ue.injector||Ue.viewContainerRef?.injector,ei=[{provide:V,useValue:Ue.data},{provide:xe,useValue:wt}];return Ue.providers&&("function"==typeof Ue.providers?ei.push(...Ue.providers(wt,Ue,pt)):ei.push(...Ue.providers)),Ue.direction&&(!gn||!gn.get(Ae.dS,null,{optional:!0}))&&ei.push({provide:Ae.dS,useValue:be(Ue.direction)}),d.zZn.create({parent:gn||Pt,providers:ei})}_removeOpenDialog(Ue,wt){const pt=this.openDialogs.indexOf(Ue);pt>-1&&(this.openDialogs.splice(pt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Pt,gn)=>{Pt?gn.setAttribute("aria-hidden",Pt):gn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),wt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(Ue){if(Ue.parentElement){const wt=Ue.parentElement.children;for(let pt=wt.length-1;pt>-1;pt--){const Pt=wt[pt];Pt!==Ue&&"SCRIPT"!==Pt.nodeName&&"STYLE"!==Pt.nodeName&&!Pt.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Pt,Pt.getAttribute("aria-hidden")),Pt.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const Ue=this._parentDialog;return Ue?Ue._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(wt){return new(wt||h)};static \u0275prov=d.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();function J(h,jt){let Ue=h.length;for(;Ue--;)jt(h[Ue])}let De=(()=>{class h{static \u0275fac=function(wt){return new(wt||h)};static \u0275mod=i.$C({type:h});static \u0275inj=d.G2t({providers:[ne],imports:[le.z_,e.jc,O.Pd,e.jc]})}return h})();var Re=l(7847),Xe=l(1804),_e=l(7786),he=l(5964),lt=(l(5718),l(2466));function Le(h,jt){}class te{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration}const ie="mdc-dialog--open",P="mdc-dialog--opening",F="mdc-dialog--closing";let $=(()=>{class h extends re{_animationStateChanged=new i.bkB;_animationsEnabled=!(0,Xe.Rc)();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Vt(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?Vt(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(P,ie)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(ie),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(ie),this._animationsEnabled?(this._hostElement.style.setProperty(Ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(F)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(Ue){this._actionSectionCount+=Ue,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(P,F)}_waitForAnimationToComplete(Ue,wt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(wt,Ue)}_requestAnimationFrame(Ue){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(Ue):Ue()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(Ue){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Ue})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(Ue){const wt=super.attachComponentPortal(Ue);return wt.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),wt}static \u0275fac=(()=>{let Ue;return function(pt){return(Ue||(Ue=i.xGo(h)))(pt||h)}})();static \u0275cmp=i.VBU({type:h,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(wt,pt){2&wt&&(i.Avn("id",pt._config.id),i.BMQ("aria-modal",pt._config.ariaModal)("role",pt._config.role)("aria-labelledby",pt._config.ariaLabel?null:pt._ariaLabelledByQueue[0])("aria-label",pt._config.ariaLabel)("aria-describedby",pt._config.ariaDescribedBy||null),i.AVh("_mat-animation-noopable",!pt._animationsEnabled)("mat-mdc-dialog-container-with-actions",pt._actionSectionCount>0))},features:[i.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(wt,pt){1&wt&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,Le,0,0,"ng-template",2),i.k0s()())},dependencies:[e.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],encapsulation:2})}return h})();const Ke="--mat-dialog-transition-duration";function Vt(h){return null==h?null:"number"==typeof h?h:h.endsWith("ms")?(0,Re.OE)(h.substring(0,h.length-2)):h.endsWith("s")?1e3*(0,Re.OE)(h.substring(0,h.length-1)):"0"===h?0:null}var St=function(h){return h[h.OPEN=0]="OPEN",h[h.CLOSING=1]="CLOSING",h[h.CLOSED=2]="CLOSED",h}(St||{});class ot{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new T.B;_beforeClosed=new T.B;_result;_closeFallbackTimeout;_state=St.OPEN;_closeInteractionType;constructor(jt,Ue,wt){this._ref=jt,this._config=Ue,this._containerInstance=wt,this.disableClose=Ue.disableClose,this.id=jt.id,jt.addPanelClass("mat-mdc-dialog-panel"),wt._animationStateChanged.pipe((0,he.p)(pt=>"opened"===pt.state),(0,Pe.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),wt._animationStateChanged.pipe((0,he.p)(pt=>"closed"===pt.state),(0,Pe.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),jt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,_e.h)(this.backdropClick(),this.keydownEvents().pipe((0,he.p)(pt=>pt.keyCode===C._f&&!this.disableClose&&!(0,B.rp)(pt)))).subscribe(pt=>{this.disableClose||(pt.preventDefault(),nt(this,"keydown"===pt.type?"keyboard":"mouse"))})}close(jt){const Ue=this._config.closePredicate;Ue&&!Ue(jt,this._config,this.componentInstance)||(this._result=jt,this._containerInstance._animationStateChanged.pipe((0,he.p)(wt=>"closing"===wt.state),(0,Pe.s)(1)).subscribe(wt=>{this._beforeClosed.next(jt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),wt.totalTime+100)}),this._state=St.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(jt){let Ue=this._ref.config.positionStrategy;return jt&&(jt.left||jt.right)?jt.left?Ue.left(jt.left):Ue.right(jt.right):Ue.centerHorizontally(),jt&&(jt.top||jt.bottom)?jt.top?Ue.top(jt.top):Ue.bottom(jt.bottom):Ue.centerVertically(),this._ref.updatePosition(),this}updateSize(jt="",Ue=""){return this._ref.updateSize(jt,Ue),this}addPanelClass(jt){return this._ref.addPanelClass(jt),this}removePanelClass(jt){return this._ref.removePanelClass(jt),this}getState(){return this._state}_finishDialogClose(){this._state=St.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function nt(h,jt,Ue){return h._closeInteractionType=jt,h.close(Ue)}const ht=new d.nKC("MatMdcDialogData"),oe=new d.nKC("mat-mdc-dialog-default-options"),Ye=new d.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,d.WQX)(d.zZn);return()=>(0,le.gA)(h)}});let fe=(()=>{class h{_defaultOptions=(0,d.WQX)(oe,{optional:!0});_scrollStrategy=(0,d.WQX)(Ye);_parentDialog=(0,d.WQX)(h,{optional:!0,skipSelf:!0});_idGenerator=(0,d.WQX)(Ce.g);_injector=(0,d.WQX)(d.zZn);_dialog=(0,d.WQX)(ne);_animationsDisabled=(0,Xe.Rc)();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new T.B;_afterOpenedAtThisLevel=new T.B;dialogConfigClass=te;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ue=this._parentDialog;return Ue?Ue._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,w.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,A.Z)(void 0)));constructor(){this._dialogRefConstructor=ot,this._dialogContainerType=$,this._dialogDataToken=ht}open(Ue,wt){let pt;(wt={...this._defaultOptions||new te,...wt}).id=wt.id||this._idGenerator.getId("mat-mdc-dialog-"),wt.scrollStrategy=wt.scrollStrategy||this._scrollStrategy();const Pt=this._dialog.open(Ue,{...wt,positionStrategy:(0,le.uA)(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||"0"===wt.enterAnimationDuration?.toLocaleString()||"0"===wt.exitAnimationDuration?.toString(),container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:wt},{provide:W,useValue:wt}]},templateContext:()=>({dialogRef:pt}),providers:(gn,ei,vi)=>(pt=new this._dialogRefConstructor(gn,wt,vi),pt.updatePosition(wt?.position),[{provide:this._dialogContainerType,useValue:vi},{provide:this._dialogDataToken,useValue:ei.data},{provide:this._dialogRefConstructor,useValue:pt}])});return pt.componentRef=Pt.componentRef,pt.componentInstance=Pt.componentInstance,this.openDialogs.push(pt),this.afterOpened.next(pt),pt.afterClosed().subscribe(()=>{const gn=this.openDialogs.indexOf(pt);gn>-1&&(this.openDialogs.splice(gn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),pt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ue){return this.openDialogs.find(wt=>wt.id===Ue)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(Ue){let wt=Ue.length;for(;wt--;)Ue[wt].close()}static \u0275fac=function(wt){return new(wt||h)};static \u0275prov=d.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Qe=(()=>{class h{dialogRef=(0,d.WQX)(ot,{optional:!0});_elementRef=(0,d.WQX)(i.aKT);_dialog=(0,d.WQX)(fe);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=function Ft(h,jt){let Ue=h.nativeElement.parentElement;for(;Ue&&!Ue.classList.contains("mat-mdc-dialog-container");)Ue=Ue.parentElement;return Ue?jt.find(wt=>wt.id===Ue.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ue){const wt=Ue._matDialogClose||Ue._matDialogCloseResult;wt&&(this.dialogResult=wt.currentValue)}_onButtonClick(Ue){nt(this.dialogRef,0===Ue.screenX&&0===Ue.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(wt){return new(wt||h)};static \u0275dir=i.FsC({type:h,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(wt,pt){1&wt&&i.bIt("click",function(gn){return pt._onButtonClick(gn)}),2&wt&&i.BMQ("aria-label",pt.ariaLabel||null)("type",pt.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.OA$]})}return h})();let Qn=(()=>{class h{static \u0275fac=function(wt){return new(wt||h)};static \u0275mod=i.$C({type:h});static \u0275inj=d.G2t({providers:[fe],imports:[De,le.z_,e.jc,lt.y,lt.y]})}return h})()},1997(Zt,pe,l){"use strict";l.d(pe,{q:()=>w,w:()=>e});var i=l(2615),d=l(3664),v=l(4085),T=l(2466);let w=(()=>{class O{get vertical(){return this._vertical}set vertical(u){this._vertical=(0,v.he)(u)}_vertical=!1;get inset(){return this._inset}set inset(u){this._inset=(0,v.he)(u)}_inset=!1;static \u0275fac=function(L){return new(L||O)};static \u0275cmp=d.VBU({type:O,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(L,C){2&L&&(d.BMQ("aria-orientation",C.vertical?"vertical":"horizontal"),d.AVh("mat-divider-vertical",C.vertical)("mat-divider-horizontal",!C.vertical)("mat-divider-inset",C.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(L,C){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0})}return O})(),e=(()=>{class O{static \u0275fac=function(L){return new(L||O)};static \u0275mod=d.$C({type:O});static \u0275inj=i.G2t({imports:[T.y,T.y]})}return O})()},2709(Zt,pe,l){"use strict";l.d(pe,{e:()=>T});var d=l(2615);let T=(()=>{class w{isErrorState(O,f){return!!(O&&O.invalid&&(O.touched||f&&f.submitted))}static \u0275fac=function(f){return new(f||w)};static \u0275prov=d.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},9336(Zt,pe,l){"use strict";l.d(pe,{X:()=>i});class i{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(v,T,w,e,O){this._defaultMatcher=v,this.ngControl=T,this._parentFormGroup=w,this._parentForm=e,this._stateChanges=O}updateErrorState(){const v=this.errorState,T=this._parentFormGroup||this._parentForm,w=this.matcher||this._defaultMatcher,e=this.ngControl?this.ngControl.control:null,O=w?.isErrorState(e,T)??!1;O!==v&&(this.errorState=O,this._stateChanges.next())}}},9454(Zt,pe,l){"use strict";l.d(pe,{BS:()=>Ke,MY:()=>Vt,GK:()=>P,Q6:()=>H,Z2:()=>ve,WN:()=>$});var i=l(3664),d=l(2615),v=l(7705),T=l(1413),w=l(8359),e=l(9726),O=l(8689);const f=new d.nKC("CdkAccordion");let u=(()=>{class nt{_stateChanges=new T.B;_openCloseAllActions=new T.B;id=(0,d.WQX)(e.g).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",v.L39]},exportAs:["cdkAccordion"],features:[i.Jv_([{provide:f,useExisting:nt}]),i.OA$]})}return nt})(),L=(()=>{class nt{accordion=(0,d.WQX)(f,{optional:!0,skipSelf:!0});_changeDetectorRef=(0,d.WQX)(v.gRc);_expansionDispatcher=(0,d.WQX)(O.z);_openCloseAllSubscription=w.yU.EMPTY;closed=new i.bkB;opened=new i.bkB;destroyed=new i.bkB;expandedChange=new i.bkB;id=(0,d.WQX)(e.g).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(oe){this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}_expanded=!1;get disabled(){return this._disabled()}set disabled(oe){this._disabled.set(oe)}_disabled=(0,d.vPA)(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((oe,Ye)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Ye&&this.id!==oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",v.L39],disabled:[2,"disabled","disabled",v.L39]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Jv_([{provide:f,useValue:void 0}])]})}return nt})(),C=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275mod=i.$C({type:nt});static \u0275inj=d.G2t({})}return nt})();var B=l(6939),A=l(6838),Pe=l(4123),le=l(9172),Ce=l(5964),Ae=l(6697),j=l(438),W=l(7336),G=l(983),re=l(7786),xe=l(1804),Ee=l(8968),V=l(2046),ce=l(2466);const ne=["body"],J=["bodyWrapper"],De=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Re=["mat-expansion-panel-header","*","mat-action-row"];function Xe(nt,ht){}const _e=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],he=["mat-panel-title","mat-panel-description","*"];function Dt(nt,ht){1&nt&&(i.rj2(0,"span",1),d.qSk(),i.rj2(1,"svg",2),i.Hgh(2,"path",3),i.eux()())}const lt=new d.nKC("MAT_ACCORDION"),Le=new d.nKC("MAT_EXPANSION_PANEL");let te=(()=>{class nt{_template=(0,d.WQX)(i.C4Q);_expansionPanel=(0,d.WQX)(Le,{optional:!0});constructor(){}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["ng-template","matExpansionPanelContent",""]]})}return nt})();const ie=new d.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let P=(()=>{class nt extends L{_viewContainerRef=(0,d.WQX)(i.c1b);_animationsDisabled=(0,xe.Rc)();_document=(0,d.WQX)(d.qQL);_ngZone=(0,d.WQX)(i.SKi);_elementRef=(0,d.WQX)(i.aKT);_renderer=(0,d.WQX)(i.sFG);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=oe}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}_togglePosition;afterExpand=new i.bkB;afterCollapse=new i.bkB;_inputChanges=new T.B;accordion=(0,d.WQX)(lt,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=(0,d.WQX)(e.g).getId("mat-expansion-panel-header-");constructor(){super();const oe=(0,d.WQX)(ie,{optional:!0});this._expansionDispatcher=(0,d.WQX)(O.z),oe&&(this.hideToggle=oe.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,le.Z)(null),(0,Ce.p)(()=>this.expanded&&!this._portal),(0,Ae.s)(1)).subscribe(()=>{this._portal=new B.VA(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Ye=this._body.nativeElement;return oe===Ye||Ye.contains(oe)}return!1}_transitionEndListener=({target:oe,propertyName:Ye})=>{oe===this._bodyWrapper?.nativeElement&&"grid-template-rows"===Ye&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{const oe=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(oe,"transitionend",this._transitionEndListener),oe.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=i.VBU({type:nt,selectors:[["mat-expansion-panel"]],contentQueries:function(Ye,fe,Qe){if(1&Ye&&i.wni(Qe,te,5),2&Ye){let gt;i.mGM(gt=i.lsd())&&(fe._lazyContent=gt.first)}},viewQuery:function(Ye,fe){if(1&Ye&&(i.GBs(ne,5),i.GBs(J,5)),2&Ye){let Qe;i.mGM(Qe=i.lsd())&&(fe._body=Qe.first),i.mGM(Qe=i.lsd())&&(fe._bodyWrapper=Qe.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(Ye,fe){2&Ye&&i.AVh("mat-expanded",fe.expanded)("mat-expansion-panel-spacing",fe._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",v.L39],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Jv_([{provide:lt,useValue:void 0},{provide:Le,useExisting:nt}]),i.Vt3,i.OA$],ngContentSelectors:Re,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Ye,fe){1&Ye&&(i.NAR(De),i.SdG(0),i.j41(1,"div",2,0)(3,"div",3,1)(5,"div",4),i.SdG(6,1),i.DNE(7,Xe,0,0,"ng-template",5),i.k0s(),i.SdG(8,2),i.k0s()()),2&Ye&&(i.R7$(),i.BMQ("inert",fe.expanded?null:""),i.R7$(2),i.Y8G("id",fe.id),i.BMQ("aria-labelledby",fe._headerId),i.R7$(4),i.Y8G("cdkPortalOutlet",fe._portal))},dependencies:[B.I3],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,changeDetection:0})}return nt})(),ve=(()=>{class nt{panel=(0,d.WQX)(P,{host:!0});_element=(0,d.WQX)(i.aKT);_focusMonitor=(0,d.WQX)(A.FN);_changeDetectorRef=(0,d.WQX)(v.gRc);_parentChangeSubscription=w.yU.EMPTY;constructor(){(0,d.WQX)(Ee.l).load(V.A);const oe=this.panel,Ye=(0,d.WQX)(ie,{optional:!0}),fe=(0,d.WQX)(new v.ES_("tabindex"),{optional:!0}),Qe=oe.accordion?oe.accordion._stateChanges.pipe((0,Ce.p)(gt=>!(!gt.hideToggle&&!gt.togglePosition))):G.w;this.tabIndex=parseInt(fe||"")||0,this._parentChangeSubscription=(0,re.h)(oe.opened,oe.closed,Qe,oe._inputChanges.pipe((0,Ce.p)(gt=>!!(gt.hideToggle||gt.disabled||gt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Ce.p)(()=>oe._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),Ye&&(this.expandedHeight=Ye.expandedHeight,this.collapsedHeight=Ye.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case j.t6:case j.Fm:(0,W.rp)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Ye){oe?this._focusMonitor.focusVia(this._element,oe,Ye):this._element.nativeElement.focus(Ye)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=i.VBU({type:nt,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(Ye,fe){1&Ye&&i.bIt("click",function(){return fe._toggle()})("keydown",function(gt){return fe._keydown(gt)}),2&Ye&&(i.BMQ("id",fe.panel._headerId)("tabindex",fe.disabled?-1:fe.tabIndex)("aria-controls",fe._getPanelId())("aria-expanded",fe._isExpanded())("aria-disabled",fe.panel.disabled),i.xc7("height",fe._getHeaderHeight()),i.AVh("mat-expanded",fe._isExpanded())("mat-expansion-toggle-indicator-after","after"===fe._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===fe._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",oe=>null==oe?0:(0,v.Udg)(oe)]},ngContentSelectors:he,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(Ye,fe){1&Ye&&(i.NAR(_e),i.rj2(0,"span",0),i.SdG(1),i.SdG(2,1),i.SdG(3,2),i.eux(),i.nVh(4,Dt,3,0,"span",1)),2&Ye&&(i.AVh("mat-content-hide-toggle",!fe._showToggle()),i.R7$(4),i.vxM(fe._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],encapsulation:2,changeDetection:0})}return nt})(),H=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return nt})(),$=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=i.FsC({type:nt,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return nt})(),Ke=(()=>{class nt extends u{_keyManager;_ownHeaders=new i.rOR;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe((0,le.Z)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Ye=>Ye.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Pe.B(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let oe;return function(fe){return(oe||(oe=i.xGo(nt)))(fe||nt)}})();static \u0275dir=i.FsC({type:nt,selectors:[["mat-accordion"]],contentQueries:function(Ye,fe,Qe){if(1&Ye&&i.wni(Qe,ve,5),2&Ye){let gt;i.mGM(gt=i.lsd())&&(fe._headers=gt)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Ye,fe){2&Ye&&i.AVh("mat-accordion-multi",fe.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",v.L39],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Jv_([{provide:lt,useExisting:nt}]),i.Vt3]})}return nt})(),Vt=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275mod=i.$C({type:nt});static \u0275inj=d.G2t({imports:[ce.y,C,B.jc]})}return nt})()},1228(Zt,pe,l){"use strict";l.d(pe,{R:()=>e});var i=l(2318),d=l(2615),v=l(3664),T=l(9588),w=l(2466);let e=(()=>{class O{static \u0275fac=function(L){return new(L||O)};static \u0275mod=v.$C({type:O});static \u0275inj=d.G2t({imports:[w.y,i.w5,T.rl,w.y]})}return O})()},9588(Zt,pe,l){"use strict";l.d(pe,{xb:()=>vi,TL:()=>fe,rl:()=>ye,qT:()=>pt,MV:()=>Qe,nJ:()=>oe,yw:()=>cn});var i=l(9726),d=l(1577),v=l(4085),T=l(9842),w=l(2200),e=l(3664),O=l(2615),f=l(7705),u=l(9295),L=l(8359),C=l(1413),B=l(7786),A=l(9172),Pe=l(6354),le=l(9974),Ce=l(4360),j=l(5964),W=l(6977),G=l(3610),re=l(1804);const Ee=["notch"],V=["matFormFieldNotchedOutline",""],ce=["*"],be=["iconPrefixContainer"],ne=["textPrefixContainer"],J=["iconSuffixContainer"],De=["textSuffixContainer"],Re=["textField"],Xe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_e=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function he(ke,Se){1&ke&&e.nrm(0,"span",21)}function Dt(ke,Se){if(1&ke&&(e.j41(0,"label",20),e.SdG(1,1),e.nVh(2,he,1,0,"span",21),e.k0s()),2&ke){const ge=e.XpG(2);e.Y8G("floating",ge._shouldLabelFloat())("monitorResize",ge._hasOutline())("id",ge._labelId),e.BMQ("for",ge._control.disableAutomaticLabeling?null:ge._control.id),e.R7$(2),e.vxM(!ge.hideRequiredMarker&&ge._control.required?2:-1)}}function lt(ke,Se){if(1&ke&&e.nVh(0,Dt,3,5,"label",20),2&ke){const ge=e.XpG();e.vxM(ge._hasFloatingLabel()?0:-1)}}function Le(ke,Se){1&ke&&e.nrm(0,"div",7)}function te(ke,Se){}function ie(ke,Se){if(1&ke&&e.DNE(0,te,0,0,"ng-template",13),2&ke){e.XpG(2);const ge=e.sdS(1);e.Y8G("ngTemplateOutlet",ge)}}function P(ke,Se){if(1&ke&&(e.j41(0,"div",9),e.nVh(1,ie,1,1,null,13),e.k0s()),2&ke){const ge=e.XpG();e.Y8G("matFormFieldNotchedOutlineOpen",ge._shouldLabelFloat()),e.R7$(),e.vxM(ge._forceDisplayInfixLabel()?-1:1)}}function F(ke,Se){1&ke&&(e.j41(0,"div",10,2),e.SdG(2,2),e.k0s())}function ve(ke,Se){1&ke&&(e.j41(0,"div",11,3),e.SdG(2,3),e.k0s())}function H(ke,Se){}function $(ke,Se){if(1&ke&&e.DNE(0,H,0,0,"ng-template",13),2&ke){e.XpG();const ge=e.sdS(1);e.Y8G("ngTemplateOutlet",ge)}}function Ke(ke,Se){1&ke&&(e.j41(0,"div",14,4),e.SdG(2,4),e.k0s())}function Vt(ke,Se){1&ke&&(e.j41(0,"div",15,5),e.SdG(2,5),e.k0s())}function St(ke,Se){1&ke&&e.nrm(0,"div",16)}function ot(ke,Se){1&ke&&(e.j41(0,"div",18),e.SdG(1,6),e.k0s())}function nt(ke,Se){if(1&ke&&(e.j41(0,"mat-hint",22),e.EFF(1),e.k0s()),2&ke){const ge=e.XpG(2);e.Y8G("id",ge._hintLabelId),e.R7$(),e.JRh(ge.hintLabel)}}function ht(ke,Se){if(1&ke&&(e.j41(0,"div",19),e.nVh(1,nt,2,2,"mat-hint",22),e.SdG(2,7),e.nrm(3,"div",23),e.SdG(4,8),e.k0s()),2&ke){const ge=e.XpG();e.R7$(),e.vxM(ge.hintLabel?1:-1)}}let oe=(()=>{class ke{static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["mat-label"]]})}return ke})();const Ye=new O.nKC("MatError");let fe=(()=>{class ke{id=(0,O.WQX)(i.g).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(N,Z){2&N&&e.Avn("id",Z.id)},inputs:{id:"id"},features:[e.Jv_([{provide:Ye,useExisting:ke}])]})}return ke})(),Qe=(()=>{class ke{align="start";id=(0,O.WQX)(i.g).getId("mat-mdc-hint-");static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(N,Z){2&N&&(e.Avn("id",Z.id),e.BMQ("align",null),e.AVh("mat-mdc-form-field-hint-end","end"===Z.align))},inputs:{align:"align",id:"id"}})}return ke})();const gt=new O.nKC("MatPrefix"),rt=new O.nKC("MatSuffix");let cn=(()=>{class ke{set _isTextSelector(ge){this._isText=!0}_isText=!1;static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[e.Jv_([{provide:rt,useExisting:ke}])]})}return ke})();const Ft=new O.nKC("FloatingLabelParent");let Sn=(()=>{class ke{_elementRef=(0,O.WQX)(e.aKT);get floating(){return this._floating}set floating(ge){this._floating=ge,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(ge){this._monitorResize=ge,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,O.WQX)(G.a);_ngZone=(0,O.WQX)(e.SKi);_parent=(0,O.WQX)(Ft);_resizeSubscription=new L.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Qn(ke){if(null!==ke.offsetParent)return ke.scrollWidth;const ge=ke.cloneNode(!0);ge.style.setProperty("position","absolute"),ge.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(ge);const N=ge.scrollWidth;return ge.remove(),N}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(N,Z){2&N&&e.AVh("mdc-floating-label--float-above",Z.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return ke})();const h="mdc-line-ripple--active",jt="mdc-line-ripple--deactivating";let Ue=(()=>{class ke{_elementRef=(0,O.WQX)(e.aKT);_cleanupTransitionEnd;constructor(){const ge=(0,O.WQX)(e.SKi),N=(0,O.WQX)(e.sFG);ge.runOutsideAngular(()=>{this._cleanupTransitionEnd=N.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){const ge=this._elementRef.nativeElement.classList;ge.remove(jt),ge.add(h)}deactivate(){this._elementRef.nativeElement.classList.add(jt)}_handleTransitionEnd=ge=>{const N=this._elementRef.nativeElement.classList,Z=N.contains(jt);"opacity"===ge.propertyName&&Z&&N.remove(h,jt)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return ke})(),wt=(()=>{class ke{_elementRef=(0,O.WQX)(e.aKT);_ngZone=(0,O.WQX)(e.SKi);open=!1;_notch;ngAfterViewInit(){const ge=this._elementRef.nativeElement,N=ge.querySelector(".mdc-floating-label");N?(ge.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(N.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>N.style.transitionDuration="")}))):ge.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(ge){this._notch.nativeElement.style.width=this.open&&ge?`calc(${ge}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}_setMaxWidth(ge){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${ge}px)`)}static \u0275fac=function(N){return new(N||ke)};static \u0275cmp=e.VBU({type:ke,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(N,Z){if(1&N&&e.GBs(Ee,5),2&N){let Me;e.mGM(Me=e.lsd())&&(Z._notch=Me.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(N,Z){2&N&&e.AVh("mdc-notched-outline--notched",Z.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:V,ngContentSelectors:ce,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(N,Z){1&N&&(e.NAR(),e.Hgh(0,"div",1),e.rj2(1,"div",2,0),e.SdG(3),e.eux(),e.Hgh(4,"div",3))},encapsulation:2,changeDetection:0})}return ke})(),pt=(()=>{class ke{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(N){return new(N||ke)};static \u0275dir=e.FsC({type:ke})}return ke})();const vi=new O.nKC("MatFormField"),Ni=new O.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let ye=(()=>{class ke{_elementRef=(0,O.WQX)(e.aKT);_changeDetectorRef=(0,O.WQX)(f.gRc);_platform=(0,O.WQX)(T.O);_idGenerator=(0,O.WQX)(i.g);_ngZone=(0,O.WQX)(e.SKi);_defaults=(0,O.WQX)(Ni,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=(0,f.ebz)("iconPrefixContainer");_textPrefixContainerSignal=(0,f.ebz)("textPrefixContainer");_iconSuffixContainerSignal=(0,f.ebz)("iconSuffixContainer");_textSuffixContainerSignal=(0,f.ebz)("textSuffixContainer");_prefixSuffixContainers=(0,u.EW)(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(ge=>ge?.nativeElement).filter(ge=>void 0!==ge));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,f.sbv)(oe);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(ge){this._hideRequiredMarker=(0,v.he)(ge)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(ge){ge!==this._floatLabel&&(this._floatLabel=ge,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(ge){this._appearanceSignal.set(ge||this._defaults?.appearance||"fill")}_appearanceSignal=(0,O.vPA)("fill");get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(ge){this._subscriptSizing=ge||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(ge){this._hintLabel=ge,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(ge){this._explicitFormFieldControl=ge}_destroyed=new C.B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=(0,re.Rc)();constructor(){const ge=this._defaults,N=(0,O.WQX)(d.dS);ge&&(ge.appearance&&(this.appearance=ge.appearance),this._hideRequiredMarker=!!ge?.hideRequiredMarker,ge.color&&(this.color=ge.color)),(0,u.QZ)(()=>this._currentDirection=N.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,u.EW)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(ge){const N=this._control,Z="mat-mdc-form-field-type-";ge&&this._elementRef.nativeElement.classList.remove(Z+ge.controlType),N.controlType&&this._elementRef.nativeElement.classList.add(Z+N.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=N.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=N.stateChanges.pipe((0,A.Z)([void 0,void 0]),(0,Pe.T)(()=>[N.errorState,N.userAriaDescribedBy]),function Ae(){return(0,le.N)((ke,Se)=>{let ge,N=!1;ke.subscribe((0,Ce._)(Se,Z=>{const Me=ge;ge=Z,N&&Se.next([Me,Z]),N=!0}))})}(),(0,j.p)(([[Me,at],[qe,pn]])=>Me!==qe||at!==pn)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),N.ngControl&&N.ngControl.valueChanges&&(this._valueChanges=N.ngControl.valueChanges.pipe((0,W.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(ge=>!ge._isText),this._hasTextPrefix=!!this._prefixChildren.find(ge=>ge._isText),this._hasIconSuffix=!!this._suffixChildren.find(ge=>!ge._isText),this._hasTextSuffix=!!this._suffixChildren.find(ge=>ge._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,B.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){const ge=this._control.focused;ge&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!ge&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",ge),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",ge)}_syncOutlineLabelOffset(){(0,f.uEv)({earlyRead:()=>{if("outline"!==this._appearanceSignal())return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(const ge of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(ge,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:ge=>this._writeOutlinedLabelStyles(ge())})}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,u.EW)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(ge){const N=this._control?this._control.ngControl:null;return N&&N[ge]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let ge=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&ge.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getSubscriptMessageType()){const Me=this._hintChildren?this._hintChildren.find(qe=>"start"===qe.align):null,at=this._hintChildren?this._hintChildren.find(qe=>"end"===qe.align):null;Me?ge.push(Me.id):this._hintLabel&&ge.push(this._hintLabelId),at&&ge.push(at.id)}else this._errorChildren&&ge.push(...this._errorChildren.map(Me=>Me.id));const N=this._control.describedByIds;let Z;if(N){const Me=this._describedByIds||ge;Z=ge.concat(N.filter(at=>at&&!Me.includes(at)))}else Z=ge;this._control.setDescribedByIds(Z),this._describedByIds=ge}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;const ge=this._iconPrefixContainer?.nativeElement,N=this._textPrefixContainer?.nativeElement,Z=this._iconSuffixContainer?.nativeElement,Me=this._textSuffixContainer?.nativeElement,at=ge?.getBoundingClientRect().width??0,qe=N?.getBoundingClientRect().width??0,pn=Z?.getBoundingClientRect().width??0,Je=Me?.getBoundingClientRect().width??0;return[`var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc(${"rtl"===this._currentDirection?"-1":"1"} * (${at+qe}px + var(--mat-mdc-form-field-label-offset-x, 0px)))))`,at+qe+pn+Je]}_writeOutlinedLabelStyles(ge){if(null!==ge){const[N,Z]=ge;this._floatingLabel&&(this._floatingLabel.element.style.transform=N),null!==Z&&this._notchedOutline?._setMaxWidth(Z)}}_isAttachedToDom(){const ge=this._elementRef.nativeElement;if(ge.getRootNode){const N=ge.getRootNode();return N&&N!==ge}return document.documentElement.contains(ge)}static \u0275fac=function(N){return new(N||ke)};static \u0275cmp=e.VBU({type:ke,selectors:[["mat-form-field"]],contentQueries:function(N,Z,Me){if(1&N&&(e.C6U(Me,Z._labelChild,oe,5),e.wni(Me,pt,5),e.wni(Me,gt,5),e.wni(Me,rt,5),e.wni(Me,Ye,5),e.wni(Me,Qe,5)),2&N){let at;e.NyB(),e.mGM(at=e.lsd())&&(Z._formFieldControl=at.first),e.mGM(at=e.lsd())&&(Z._prefixChildren=at),e.mGM(at=e.lsd())&&(Z._suffixChildren=at),e.mGM(at=e.lsd())&&(Z._errorChildren=at),e.mGM(at=e.lsd())&&(Z._hintChildren=at)}},viewQuery:function(N,Z){if(1&N&&(e.wEZ(Z._iconPrefixContainerSignal,be,5),e.wEZ(Z._textPrefixContainerSignal,ne,5),e.wEZ(Z._iconSuffixContainerSignal,J,5),e.wEZ(Z._textSuffixContainerSignal,De,5),e.GBs(Re,5),e.GBs(be,5),e.GBs(ne,5),e.GBs(J,5),e.GBs(De,5),e.GBs(Sn,5),e.GBs(wt,5),e.GBs(Ue,5)),2&N){let Me;e.NyB(4),e.mGM(Me=e.lsd())&&(Z._textField=Me.first),e.mGM(Me=e.lsd())&&(Z._iconPrefixContainer=Me.first),e.mGM(Me=e.lsd())&&(Z._textPrefixContainer=Me.first),e.mGM(Me=e.lsd())&&(Z._iconSuffixContainer=Me.first),e.mGM(Me=e.lsd())&&(Z._textSuffixContainer=Me.first),e.mGM(Me=e.lsd())&&(Z._floatingLabel=Me.first),e.mGM(Me=e.lsd())&&(Z._notchedOutline=Me.first),e.mGM(Me=e.lsd())&&(Z._lineRipple=Me.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(N,Z){2&N&&e.AVh("mat-mdc-form-field-label-always-float",Z._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Z._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Z._hasIconSuffix)("mat-form-field-invalid",Z._control.errorState)("mat-form-field-disabled",Z._control.disabled)("mat-form-field-autofilled",Z._control.autofilled)("mat-form-field-appearance-fill","fill"==Z.appearance)("mat-form-field-appearance-outline","outline"==Z.appearance)("mat-form-field-hide-placeholder",Z._hasFloatingLabel()&&!Z._shouldLabelFloat())("mat-primary","accent"!==Z.color&&"warn"!==Z.color)("mat-accent","accent"===Z.color)("mat-warn","warn"===Z.color)("ng-untouched",Z._shouldForward("untouched"))("ng-touched",Z._shouldForward("touched"))("ng-pristine",Z._shouldForward("pristine"))("ng-dirty",Z._shouldForward("dirty"))("ng-valid",Z._shouldForward("valid"))("ng-invalid",Z._shouldForward("invalid"))("ng-pending",Z._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e.Jv_([{provide:vi,useExisting:ke},{provide:Ft,useExisting:ke}])],ngContentSelectors:_e,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(N,Z){if(1&N){const Me=e.RV6();e.NAR(Xe),e.DNE(0,lt,1,1,"ng-template",null,0,e.C5r),e.j41(2,"div",6,1),e.bIt("click",function(qe){return O.eBV(Me),O.Njj(Z._control.onContainerClick(qe))}),e.nVh(4,Le,1,0,"div",7),e.j41(5,"div",8),e.nVh(6,P,2,2,"div",9),e.nVh(7,F,3,0,"div",10),e.nVh(8,ve,3,0,"div",11),e.j41(9,"div",12),e.nVh(10,$,1,1,null,13),e.SdG(11),e.k0s(),e.nVh(12,Ke,3,0,"div",14),e.nVh(13,Vt,3,0,"div",15),e.k0s(),e.nVh(14,St,1,0,"div",16),e.k0s(),e.j41(15,"div",17),e.nVh(16,ot,2,0,"div",18)(17,ht,5,1,"div",19),e.k0s()}if(2&N){let Me;e.R7$(2),e.AVh("mdc-text-field--filled",!Z._hasOutline())("mdc-text-field--outlined",Z._hasOutline())("mdc-text-field--no-label",!Z._hasFloatingLabel())("mdc-text-field--disabled",Z._control.disabled)("mdc-text-field--invalid",Z._control.errorState),e.R7$(2),e.vxM(Z._hasOutline()||Z._control.disabled?-1:4),e.R7$(2),e.vxM(Z._hasOutline()?6:-1),e.R7$(),e.vxM(Z._hasIconPrefix?7:-1),e.R7$(),e.vxM(Z._hasTextPrefix?8:-1),e.R7$(2),e.vxM(!Z._hasOutline()||Z._forceDisplayInfixLabel()?10:-1),e.R7$(2),e.vxM(Z._hasTextSuffix?12:-1),e.R7$(),e.vxM(Z._hasIconSuffix?13:-1),e.R7$(),e.vxM(Z._hasOutline()?-1:14),e.R7$(),e.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Z.subscriptSizing);const at=Z._getSubscriptMessageType();e.R7$(),e.vxM("error"===(Me=at)?16:"hint"===Me?17:-1)}},dependencies:[Sn,wt,w.T3,Ue,Qe],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],encapsulation:2,changeDetection:0})}return ke})()},2885(Zt,pe,l){"use strict";l.d(pe,{B_:()=>ie,Fe:()=>P,NS:()=>ce});class i{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){const ve=Math.max(...this.tracker);return ve>1?this.rowCount+ve-1:this.rowCount}positions;update(ve,H){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(ve),this.tracker.fill(0,0,this.tracker.length),this.positions=H.map($=>this._trackTile($))}_trackTile(ve){const H=this._findMatchingGap(ve.colspan);return this._markTilePosition(H,ve),this.columnIndex=H+ve.colspan,new d(this.rowIndex,H)}_findMatchingGap(ve){let H=-1,$=-1;do{this.columnIndex+ve>this.tracker.length?(this._nextRow(),H=this.tracker.indexOf(0,this.columnIndex),$=this._findGapEndIndex(H)):(H=this.tracker.indexOf(0,this.columnIndex),-1!=H?($=this._findGapEndIndex(H),this.columnIndex=H+1):(this._nextRow(),H=this.tracker.indexOf(0,this.columnIndex),$=this._findGapEndIndex(H)))}while($-H{class F{static \u0275fac=function($){return new($||F)};static \u0275mod=T.$C({type:F});static \u0275inj=w.G2t({imports:[e.y,e.y]})}return F})();var A=l(7847),Pe=l(1577);const G=["*"],V=new w.nKC("MAT_GRID_LIST");let ce=(()=>{class F{_element=(0,w.WQX)(T.aKT);_gridList=(0,w.WQX)(V,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(H){this._rowspan=Math.round((0,A.OE)(H))}get colspan(){return this._colspan}set colspan(H){this._colspan=Math.round((0,A.OE)(H))}_setStyle(H,$){this._element.nativeElement.style[H]=$}static \u0275fac=function($){return new($||F)};static \u0275cmp=T.VBU({type:F,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function($,Ke){2&$&&T.BMQ("rowspan",Ke.rowspan)("colspan",Ke.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:G,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function($,Ke){1&$&&(T.NAR(),T.rj2(0,"div",0),T.SdG(1),T.eux())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0})}return F})();const Re=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Xe{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(ve,H,$,Ke){this._gutterSize=Le(ve),this._rows=H.rowCount,this._rowspan=H.rowspan,this._cols=$,this._direction=Ke}getBaseTileSize(ve,H){return`(${ve}% - (${this._gutterSize} * ${H}))`}getTilePosition(ve,H){return 0===H?"0":lt(`(${ve} + ${this._gutterSize}) * ${H}`)}getTileSize(ve,H){return`(${ve} * ${H}) + (${H-1} * ${this._gutterSize})`}setStyle(ve,H,$){let Ke=100/this._cols,Vt=(this._cols-1)/this._cols;this.setColStyles(ve,$,Ke,Vt),this.setRowStyles(ve,H,Ke,Vt)}setColStyles(ve,H,$,Ke){let Vt=this.getBaseTileSize($,Ke);ve._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(Vt,H)),ve._setStyle("width",lt(this.getTileSize(Vt,ve.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(ve){return`${this._rowspan} * ${this.getTileSize(ve,1)}`}getComputedHeight(){return null}}class _e extends Xe{fixedRowHeight;constructor(ve){super(),this.fixedRowHeight=ve}init(ve,H,$,Ke){super.init(ve,H,$,Ke),this.fixedRowHeight=Le(this.fixedRowHeight),Re.test(this.fixedRowHeight)}setRowStyles(ve,H){ve._setStyle("top",this.getTilePosition(this.fixedRowHeight,H)),ve._setStyle("height",lt(this.getTileSize(this.fixedRowHeight,ve.rowspan)))}getComputedHeight(){return["height",lt(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(ve){ve._setListStyle(["height",null]),ve._tiles&&ve._tiles.forEach(H=>{H._setStyle("top",null),H._setStyle("height",null)})}}class he extends Xe{rowHeightRatio;baseTileHeight;constructor(ve){super(),this._parseRatio(ve)}setRowStyles(ve,H,$,Ke){this.baseTileHeight=this.getBaseTileSize($/this.rowHeightRatio,Ke),ve._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,H)),ve._setStyle("paddingTop",lt(this.getTileSize(this.baseTileHeight,ve.rowspan)))}getComputedHeight(){return["paddingBottom",lt(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(ve){ve._setListStyle(["paddingBottom",null]),ve._tiles.forEach(H=>{H._setStyle("marginTop",null),H._setStyle("paddingTop",null)})}_parseRatio(ve){const H=ve.split(":");this.rowHeightRatio=parseFloat(H[0])/parseFloat(H[1])}}class Dt extends Xe{setRowStyles(ve,H){let Vt=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);ve._setStyle("top",this.getTilePosition(Vt,H)),ve._setStyle("height",lt(this.getTileSize(Vt,ve.rowspan)))}reset(ve){ve._tiles&&ve._tiles.forEach(H=>{H._setStyle("top",null),H._setStyle("height",null)})}}function lt(F){return`calc(${F})`}function Le(F){return F.match(/([A-Za-z%]+)$/)?F:`${F}px`}let ie=(()=>{class F{_element=(0,w.WQX)(T.aKT);_dir=(0,w.WQX)(Pe.dS,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(H){this._cols=Math.max(1,Math.round((0,A.OE)(H)))}get gutterSize(){return this._gutter}set gutterSize(H){this._gutter=`${H??""}`}get rowHeight(){return this._rowHeight}set rowHeight(H){const $=`${H??""}`;$!==this._rowHeight&&(this._rowHeight=$,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(H){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===H?new Dt:H&&H.indexOf(":")>-1?new he(H):new _e(H)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new i);const H=this._tileCoordinator,$=this._tiles.filter(Vt=>!Vt._gridList||Vt._gridList===this),Ke=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,$),this._tileStyler.init(this.gutterSize,H,this.cols,Ke),$.forEach((Vt,St)=>{const ot=H.positions[St];this._tileStyler.setStyle(Vt,ot.row,ot.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(H){H&&(this._element.nativeElement.style[H[0]]=H[1])}static \u0275fac=function($){return new($||F)};static \u0275cmp=T.VBU({type:F,selectors:[["mat-grid-list"]],contentQueries:function($,Ke,Vt){if(1&$&&T.wni(Vt,ce,5),2&$){let St;T.mGM(St=T.lsd())&&(Ke._tiles=St)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function($,Ke){2&$&&T.BMQ("cols",Ke.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[T.Jv_([{provide:V,useExisting:F}])],ngContentSelectors:G,decls:2,vars:0,template:function($,Ke){1&$&&(T.NAR(),T.rj2(0,"div"),T.SdG(1),T.eux())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0})}return F})(),P=(()=>{class F{static \u0275fac=function($){return new($||F)};static \u0275mod=T.$C({type:F});static \u0275inj=w.G2t({imports:[B,e.y,B,e.y]})}return F})()},2598(Zt,pe,l){"use strict";l.d(pe,{iM:()=>A,iY:()=>Pe});var i=l(3664),d=l(7705),v=l(2615),T=l(6838),w=l(8968),e=l(1048),O=l(2046),f=l(1804);const u=["mat-icon-button",""],L=["*"],C=new v.nKC("MAT_BUTTON_CONFIG");function B(Ce){return null==Ce?void 0:(0,d.Udg)(Ce)}let A=(()=>{class Ce{_elementRef=(0,v.WQX)(i.aKT);_ngZone=(0,v.WQX)(i.SKi);_animationsDisabled=(0,f.Rc)();_config=(0,v.WQX)(C,{optional:!0});_focusMonitor=(0,v.WQX)(T.FN);_cleanupClick;_renderer=(0,v.WQX)(i.sFG);_rippleLoader=(0,v.WQX)(e.E);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(j){this._disableRipple=j,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(j){this._disabled=j,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(j){this.tabIndex=j}constructor(){(0,v.WQX)(w.l).load(O.A);const j=this._elementRef.nativeElement;this._isAnchor="A"===j.tagName,this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(j,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(j="program",W){j?this._focusMonitor.focusVia(this._elementRef.nativeElement,j,W):this._elementRef.nativeElement.focus(W)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this._isAnchor?this.disabled||null:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor&&this.disabled&&!this.disabledInteractive?-1:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",j=>{this.disabled&&(j.preventDefault(),j.stopImmediatePropagation())}))}static \u0275fac=function(W){return new(W||Ce)};static \u0275dir=i.FsC({type:Ce,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(W,G){2&W&&(i.BMQ("disabled",G._getDisabledAttribute())("aria-disabled",G._getAriaDisabled())("tabindex",G._getTabIndex()),i.HbH(G.color?"mat-"+G.color:""),i.AVh("mat-mdc-button-disabled",G.disabled)("mat-mdc-button-disabled-interactive",G.disabledInteractive)("mat-unthemed",!G.color)("_mat-animation-noopable",G._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",d.L39],disabled:[2,"disabled","disabled",d.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",d.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",d.L39],tabIndex:[2,"tabIndex","tabIndex",B],_tabindex:[2,"tabindex","_tabindex",B]}})}return Ce})(),Pe=(()=>{class Ce extends A{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(W){return new(W||Ce)};static \u0275cmp=i.VBU({type:Ce,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:u,ngContentSelectors:L,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(W,G){1&W&&(i.NAR(),i.Hgh(0,"span",0),i.SdG(1),i.Hgh(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return Ce})()},2629(Zt,pe,l){"use strict";l.d(pe,{An:()=>ie,m_:()=>P});var i=l(3664),d=l(2615),v=l(7705),T=l(8359),w=l(6697),e=l(9330),O=l(345),f=l(7673),u=l(8810),L=l(7468),C=l(8141),B=l(6354),A=l(9437),Pe=l(980),le=l(7647);let Ce;function j(F){return function Ae(){if(void 0===Ce&&(Ce=null,typeof window<"u")){const F=window;void 0!==F.trustedTypes&&(Ce=F.trustedTypes.createPolicy("angular#components",{createHTML:ve=>ve}))}return Ce}()?.createHTML(F)||F}function W(F){return Error(`Unable to find icon with the name "${F}"`)}function re(F){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${F}".`)}function xe(F){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${F}".`)}class Ee{url;svgText;options;svgElement;constructor(ve,H,$){this.url=ve,this.svgText=H,this.options=$}}let V=(()=>{class F{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(H,$,Ke,Vt){this._httpClient=H,this._sanitizer=$,this._errorHandler=Vt,this._document=Ke}addSvgIcon(H,$,Ke){return this.addSvgIconInNamespace("",H,$,Ke)}addSvgIconLiteral(H,$,Ke){return this.addSvgIconLiteralInNamespace("",H,$,Ke)}addSvgIconInNamespace(H,$,Ke,Vt){return this._addSvgIconConfig(H,$,new Ee(Ke,null,Vt))}addSvgIconResolver(H){return this._resolvers.push(H),this}addSvgIconLiteralInNamespace(H,$,Ke,Vt){const St=this._sanitizer.sanitize(i.WPN.HTML,Ke);if(!St)throw xe(Ke);const ot=j(St);return this._addSvgIconConfig(H,$,new Ee("",ot,Vt))}addSvgIconSet(H,$){return this.addSvgIconSetInNamespace("",H,$)}addSvgIconSetLiteral(H,$){return this.addSvgIconSetLiteralInNamespace("",H,$)}addSvgIconSetInNamespace(H,$,Ke){return this._addSvgIconSetConfig(H,new Ee($,null,Ke))}addSvgIconSetLiteralInNamespace(H,$,Ke){const Vt=this._sanitizer.sanitize(i.WPN.HTML,$);if(!Vt)throw xe($);const St=j(Vt);return this._addSvgIconSetConfig(H,new Ee("",St,Ke))}registerFontClassAlias(H,$=H){return this._fontCssClassesByAlias.set(H,$),this}classNameForFontAlias(H){return this._fontCssClassesByAlias.get(H)||H}setDefaultFontSetClass(...H){return this._defaultFontSetClass=H,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(H){const $=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,H);if(!$)throw re(H);const Ke=this._cachedIconsByUrl.get($);return Ke?(0,f.of)(ne(Ke)):this._loadSvgIconFromConfig(new Ee(H,null)).pipe((0,C.M)(Vt=>this._cachedIconsByUrl.set($,Vt)),(0,B.T)(Vt=>ne(Vt)))}getNamedSvgIcon(H,$=""){const Ke=J($,H);let Vt=this._svgIconConfigs.get(Ke);if(Vt)return this._getSvgFromConfig(Vt);if(Vt=this._getIconConfigFromResolvers($,H),Vt)return this._svgIconConfigs.set(Ke,Vt),this._getSvgFromConfig(Vt);const St=this._iconSetConfigs.get($);return St?this._getSvgFromIconSetConfigs(H,St):(0,u.$)(W(Ke))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(H){return H.svgText?(0,f.of)(ne(this._svgElementFromConfig(H))):this._loadSvgIconFromConfig(H).pipe((0,B.T)($=>ne($)))}_getSvgFromIconSetConfigs(H,$){const Ke=this._extractIconWithNameFromAnySet(H,$);if(Ke)return(0,f.of)(Ke);const Vt=$.filter(St=>!St.svgText).map(St=>this._loadSvgIconSetFromConfig(St).pipe((0,A.W)(ot=>{const ht=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,St.url)} failed: ${ot.message}`;return this._errorHandler.handleError(new Error(ht)),(0,f.of)(null)})));return(0,L.p)(Vt).pipe((0,B.T)(()=>{const St=this._extractIconWithNameFromAnySet(H,$);if(!St)throw W(H);return St}))}_extractIconWithNameFromAnySet(H,$){for(let Ke=$.length-1;Ke>=0;Ke--){const Vt=$[Ke];if(Vt.svgText&&Vt.svgText.toString().indexOf(H)>-1){const St=this._svgElementFromConfig(Vt),ot=this._extractSvgIconFromSet(St,H,Vt.options);if(ot)return ot}}return null}_loadSvgIconFromConfig(H){return this._fetchIcon(H).pipe((0,C.M)($=>H.svgText=$),(0,B.T)(()=>this._svgElementFromConfig(H)))}_loadSvgIconSetFromConfig(H){return H.svgText?(0,f.of)(null):this._fetchIcon(H).pipe((0,C.M)($=>H.svgText=$))}_extractSvgIconFromSet(H,$,Ke){const Vt=H.querySelector(`[id="${$}"]`);if(!Vt)return null;const St=Vt.cloneNode(!0);if(St.removeAttribute("id"),"svg"===St.nodeName.toLowerCase())return this._setSvgAttributes(St,Ke);if("symbol"===St.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(St),Ke);const ot=this._svgElementFromString(j(""));return ot.appendChild(St),this._setSvgAttributes(ot,Ke)}_svgElementFromString(H){const $=this._document.createElement("DIV");$.innerHTML=H;const Ke=$.querySelector("svg");if(!Ke)throw Error(" tag not found");return Ke}_toSvgElement(H){const $=this._svgElementFromString(j("")),Ke=H.attributes;for(let Vt=0;Vtj(ht)),(0,Pe.j)(()=>this._inProgressUrlFetches.delete(St)),(0,le.u)());return this._inProgressUrlFetches.set(St,nt),nt}_addSvgIconConfig(H,$,Ke){return this._svgIconConfigs.set(J(H,$),Ke),this}_addSvgIconSetConfig(H,$){const Ke=this._iconSetConfigs.get(H);return Ke?Ke.push($):this._iconSetConfigs.set(H,[$]),this}_svgElementFromConfig(H){if(!H.svgElement){const $=this._svgElementFromString(H.svgText);this._setSvgAttributes($,H.options),H.svgElement=$}return H.svgElement}_getIconConfigFromResolvers(H,$){for(let Ke=0;Keve?ve.pathname+ve.search:""}}}),lt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Le=lt.map(F=>`[${F}]`).join(", "),te=/^url\(['"]?#(.*?)['"]?\)$/;let ie=(()=>{class F{_elementRef=(0,d.WQX)(i.aKT);_iconRegistry=(0,d.WQX)(V);_location=(0,d.WQX)(he);_errorHandler=(0,d.WQX)(d.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(H){this._color=H}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(H){H!==this._svgIcon&&(H?this._updateSvgIcon(H):this._svgIcon&&this._clearSvgElement(),this._svgIcon=H)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(H){const $=this._cleanupFontValue(H);$!==this._fontSet&&(this._fontSet=$,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(H){const $=this._cleanupFontValue(H);$!==this._fontIcon&&(this._fontIcon=$,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=T.yU.EMPTY;constructor(){const H=(0,d.WQX)(new v.ES_("aria-hidden"),{optional:!0}),$=(0,d.WQX)(_e,{optional:!0});$&&($.color&&(this.color=this._defaultColor=$.color),$.fontSet&&(this.fontSet=$.fontSet)),H||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(H){if(!H)return["",""];const $=H.split(":");switch($.length){case 1:return["",$[0]];case 2:return $;default:throw Error(`Invalid icon name: "${H}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const H=this._elementsWithExternalReferences;if(H&&H.size){const $=this._location.getPathname();$!==this._previousPath&&(this._previousPath=$,this._prependPathToReferences($))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(H){this._clearSvgElement();const $=this._location.getPathname();this._previousPath=$,this._cacheChildrenWithExternalReferences(H),this._prependPathToReferences($),this._elementRef.nativeElement.appendChild(H)}_clearSvgElement(){const H=this._elementRef.nativeElement;let $=H.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();$--;){const Ke=H.childNodes[$];(1!==Ke.nodeType||"svg"===Ke.nodeName.toLowerCase())&&Ke.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const H=this._elementRef.nativeElement,$=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ke=>Ke.length>0);this._previousFontSetClass.forEach(Ke=>H.classList.remove(Ke)),$.forEach(Ke=>H.classList.add(Ke)),this._previousFontSetClass=$,this.fontIcon!==this._previousFontIconClass&&!$.includes("mat-ligature-font")&&(this._previousFontIconClass&&H.classList.remove(this._previousFontIconClass),this.fontIcon&&H.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(H){return"string"==typeof H?H.trim().split(" ")[0]:H}_prependPathToReferences(H){const $=this._elementsWithExternalReferences;$&&$.forEach((Ke,Vt)=>{Ke.forEach(St=>{Vt.setAttribute(St.name,`url('${H}#${St.value}')`)})})}_cacheChildrenWithExternalReferences(H){const $=H.querySelectorAll(Le),Ke=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Vt=0;Vt<$.length;Vt++)lt.forEach(St=>{const ot=$[Vt],nt=ot.getAttribute(St),ht=nt?nt.match(te):null;if(ht){let oe=Ke.get(ot);oe||(oe=[],Ke.set(ot,oe)),oe.push({name:St,value:ht[1]})}})}_updateSvgIcon(H){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),H){const[$,Ke]=this._splitIconName(H);$&&(this._svgNamespace=$),Ke&&(this._svgName=Ke),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ke,$).pipe((0,w.s)(1)).subscribe(Vt=>this._setSvgElement(Vt),Vt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${$}:${Ke}! ${Vt.message}`))})}}static \u0275fac=function($){return new($||F)};static \u0275cmp=i.VBU({type:F,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function($,Ke){2&$&&(i.BMQ("data-mat-icon-type",Ke._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ke._svgName||Ke.fontIcon)("data-mat-icon-namespace",Ke._svgNamespace||Ke.fontSet)("fontIcon",Ke._usingFontIcon()?Ke.fontIcon:null),i.HbH(Ke.color?"mat-"+Ke.color:""),i.AVh("mat-icon-inline",Ke.inline)("mat-icon-no-color","primary"!==Ke.color&&"accent"!==Ke.color&&"warn"!==Ke.color))},inputs:{color:"color",inline:[2,"inline","inline",v.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:Xe,decls:1,vars:0,template:function($,Ke){1&$&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0})}return F})(),P=(()=>{class F{static \u0275fac=function($){return new($||F)};static \u0275mod=i.$C({type:F});static \u0275inj=d.G2t({imports:[Re.y,Re.y]})}return F})()},8010(Zt,pe,l){"use strict";l.d(pe,{O:()=>d});const d=new(l(2615).nKC)("MAT_INPUT_VALUE_ACCESSOR")},3746(Zt,pe,l){"use strict";l.d(pe,{fg:()=>St,fS:()=>ot});var i=l(4085),d=l(9842);let w;const e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function O(){if(w)return w;if("object"!=typeof document||!document)return w=new Set(e),w;let nt=document.createElement("input");return w=new Set(e.filter(ht=>(nt.setAttribute("type",ht),nt.type===ht))),w}var f=l(3664),u=l(2615),L=l(983),C=l(1413),B=l(8968),A=l(7847);let ne=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=f.VBU({type:nt,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Ye,fe){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,changeDetection:0})}return nt})();const J={passive:!0};let De=(()=>{class nt{_platform=(0,u.WQX)(d.O);_ngZone=(0,u.WQX)(f.SKi);_renderer=(0,u.WQX)(f._9s).createRenderer(null,null);_styleLoader=(0,u.WQX)(B.l);_monitoredElements=new Map;constructor(){}monitor(oe){if(!this._platform.isBrowser)return L.w;this._styleLoader.load(ne);const Ye=(0,A.i8)(oe),fe=this._monitoredElements.get(Ye);if(fe)return fe.subject;const Qe=new C.B,gt="cdk-text-field-autofilled",Gt=cn=>{"cdk-text-field-autofill-start"!==cn.animationName||Ye.classList.contains(gt)?"cdk-text-field-autofill-end"===cn.animationName&&Ye.classList.contains(gt)&&(Ye.classList.remove(gt),this._ngZone.run(()=>Qe.next({target:cn.target,isAutofilled:!1}))):(Ye.classList.add(gt),this._ngZone.run(()=>Qe.next({target:cn.target,isAutofilled:!0})))},rt=this._ngZone.runOutsideAngular(()=>(Ye.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(Ye,"animationstart",Gt,J)));return this._monitoredElements.set(Ye,{subject:Qe,unlisten:rt}),Qe}stopMonitoring(oe){const Ye=(0,A.i8)(oe),fe=this._monitoredElements.get(Ye);fe&&(fe.unlisten(),fe.subject.complete(),Ye.classList.remove("cdk-text-field-autofill-monitored"),Ye.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Ye))}ngOnDestroy(){this._monitoredElements.forEach((oe,Ye)=>this.stopMonitoring(Ye))}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275prov=u.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})(),_e=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275mod=f.$C({type:nt});static \u0275inj=u.G2t({})}return nt})();var he=l(9295),Dt=l(7705),lt=l(9726),Le=l(9417),te=l(8010),ie=l(9588),P=l(2709),F=l(9336),ve=l(1228),H=l(2466);const Ke=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Vt=new u.nKC("MAT_INPUT_CONFIG");let St=(()=>{class nt{_elementRef=(0,u.WQX)(f.aKT);_platform=(0,u.WQX)(d.O);ngControl=(0,u.WQX)(Le.vO,{optional:!0,self:!0});_autofillMonitor=(0,u.WQX)(De);_ngZone=(0,u.WQX)(f.SKi);_formField=(0,u.WQX)(ie.xb,{optional:!0});_renderer=(0,u.WQX)(f.sFG);_uid=(0,u.WQX)(lt.g).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=(0,u.WQX)(Vt,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new C.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,i.he)(oe),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(oe){this._id=oe||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Le.k0.required)??!1}set required(oe){this._required=(0,i.he)(oe)}_required;get type(){return this._type}set type(oe){this._type=oe||"text",this._validateType(),!this._isTextarea&&O().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(oe){this._errorStateTracker.matcher=oe}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(oe){oe!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(oe):this._inputValueAccessor.value=oe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(oe){this._readonly=(0,i.he)(oe)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(oe){this._errorStateTracker.errorState=oe}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(oe=>O().has(oe));constructor(){const oe=(0,u.WQX)(Le.cV,{optional:!0}),Ye=(0,u.WQX)(Le.j4,{optional:!0}),fe=(0,u.WQX)(P.e),Qe=(0,u.WQX)(te.O,{optional:!0,self:!0}),gt=this._elementRef.nativeElement,Gt=gt.nodeName.toLowerCase();Qe?(0,u.Hps)(Qe.value)?this._signalBasedValueAccessor=Qe:this._inputValueAccessor=Qe:this._inputValueAccessor=gt,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(gt,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new F.X(fe,this.ngControl,Ye,oe,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===Gt,this._isTextarea="textarea"===Gt,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=gt.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,he.QZ)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(oe=>{this.autofilled=oe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(oe){this._elementRef.nativeElement.focus(oe)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(oe){if(oe!==this.focused){if(!this._isNativeSelect&&oe&&this.disabled&&this.disabledInteractive){const Ye=this._elementRef.nativeElement;"number"===Ye.type?(Ye.type="text",Ye.setSelectionRange(0,0),Ye.type="number"):Ye.setSelectionRange(0,0)}this.focused=oe,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const oe=this._elementRef.nativeElement.value;this._previousNativeValue!==oe&&(this._previousNativeValue=oe,this.stateChanges.next())}_dirtyCheckPlaceholder(){const oe=this._getPlaceholder();if(oe!==this._previousPlaceholder){const Ye=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?Ye.setAttribute("placeholder",oe):Ye.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Ke.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let oe=this._elementRef.nativeElement.validity;return oe&&oe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const oe=this._elementRef.nativeElement,Ye=oe.options[0];return this.focused||oe.multiple||!this.empty||!!(oe.selectedIndex>-1&&Ye&&Ye.label)}return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(oe){const Ye=this._elementRef.nativeElement;oe.length?Ye.setAttribute("aria-describedby",oe.join(" ")):Ye.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const oe=this._elementRef.nativeElement;return this._isNativeSelect&&(oe.multiple||oe.size>1)}_iOSKeyupListener=oe=>{const Ye=oe.target;!Ye.value&&0===Ye.selectionStart&&0===Ye.selectionEnd&&(Ye.setSelectionRange(1,1),Ye.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275dir=f.FsC({type:nt,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Ye,fe){1&Ye&&f.bIt("focus",function(){return fe._focusChanged(!0)})("blur",function(){return fe._focusChanged(!1)})("input",function(){return fe._onInput()}),2&Ye&&(f.Avn("id",fe.id)("disabled",fe.disabled&&!fe.disabledInteractive)("required",fe.required),f.BMQ("name",fe.name||null)("readonly",fe._getReadonlyAttribute())("aria-disabled",fe.disabled&&fe.disabledInteractive?"true":null)("aria-invalid",fe.empty&&fe.required?null:fe.errorState)("aria-required",fe.required)("id",fe.id),f.AVh("mat-input-server",fe._isServer)("mat-mdc-form-field-textarea-control",fe._isInFormField&&fe._isTextarea)("mat-mdc-form-field-input-control",fe._isInFormField)("mat-mdc-input-disabled-interactive",fe.disabledInteractive)("mdc-text-field__input",fe._isInFormField)("mat-mdc-native-select-inline",fe._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",Dt.L39]},exportAs:["matInput"],features:[f.Jv_([{provide:ie.qT,useExisting:nt}]),f.OA$]})}return nt})(),ot=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275mod=f.$C({type:nt});static \u0275inj=u.G2t({imports:[H.y,ve.R,ve.R,_e,H.y]})}return nt})()},3155(Zt,pe,l){"use strict";l.d(pe,{t:()=>T});var i=l(3664);const d=["mat-internal-form-field",""],v=["*"];let T=(()=>{class w{labelPosition;static \u0275fac=function(f){return new(f||w)};static \u0275cmp=i.VBU({type:w,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(f,u){2&f&&i.AVh("mdc-form-field--align-end","before"===u.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:d,ngContentSelectors:v,decls:1,vars:0,template:function(f,u){1&f&&(i.NAR(),i.SdG(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}\n"],encapsulation:2,changeDetection:0})}return w})()},3902(Zt,pe,l){"use strict";l.d(pe,{Fg:()=>ee,YE:()=>pt,jt:()=>wt});var d=l(4085),v=l(7847),T=l(2615),w=l(3664),O=(l(7705),l(9842)),u=(l(4522),l(8968)),C=(l(1413),l(8359)),B=l(7786),A=l(2496),Pe=l(1804),le=l(2046),Ae=(l(2200),l(2318)),j=l(1997),ce=(l(4123),l(3869),l(7336),l(438),l(9417),l(6977),l(483)),be=l(2466),ne=l(6881);const J=["*"],Re=["unscopedContent"],Xe=["text"],_e=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],he=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Ye=new T.nKC("ListOption");let fe=(()=>{class ye{_elementRef=(0,T.WQX)(w.aKT);constructor(){}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return ye})(),Qe=(()=>{class ye{_elementRef=(0,T.WQX)(w.aKT);constructor(){}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return ye})(),gt=(()=>{class ye{static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return ye})(),Gt=(()=>{class ye{_listOption=(0,T.WQX)(Ye,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,hostVars:4,hostBindings:function(ge,N){2&ge&&w.AVh("mdc-list-item__start",N._isAlignedAtStart())("mdc-list-item__end",!N._isAlignedAtStart())}})}return ye})(),rt=(()=>{class ye extends Gt{static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=w.xGo(ye)))(N||ye)}})();static \u0275dir=w.FsC({type:ye,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[w.Vt3]})}return ye})(),cn=(()=>{class ye extends Gt{static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=w.xGo(ye)))(N||ye)}})();static \u0275dir=w.FsC({type:ye,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[w.Vt3]})}return ye})();const Ft=new T.nKC("MAT_LIST_CONFIG");let Sn=(()=>{class ye{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(Se){this._disableRipple=(0,d.he)(Se)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(Se){this._disabled.set((0,d.he)(Se))}_disabled=(0,T.vPA)(!1);_defaultOptions=(0,T.WQX)(Ft,{optional:!0});static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,hostVars:1,hostBindings:function(ge,N){2&ge&&w.BMQ("aria-disabled",N.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return ye})(),Qn=(()=>{class ye{_elementRef=(0,T.WQX)(w.aKT);_ngZone=(0,T.WQX)(w.SKi);_listBase=(0,T.WQX)(Sn,{optional:!0});_platform=(0,T.WQX)(O.O);_hostElement;_isButtonElement;_noopAnimations=(0,Pe.Rc)();_avatars;_icons;set lines(Se){this._explicitLines=(0,v.OE)(Se,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(Se){this._disableRipple=(0,d.he)(Se)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(Se){this._disabled.set((0,d.he)(Se))}_disabled=(0,T.vPA)(!1);_subscriptions=new C.yU;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){(0,T.WQX)(u.l).load(le.A);const Se=(0,T.WQX)(A.$E,{optional:!0});this.rippleConfig=Se||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new A.ug(this,this._ngZone,this._hostElement,this._platform,(0,T.WQX)(T.zZn)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,B.h)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(Se){if(!this._lines||!this._titles||!this._unscopedContent)return;Se&&this._checkDomForUnscopedTextContent();const ge=this._explicitLines??this._inferLinesFromContent(),N=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",ge<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",ge<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===ge),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===ge),this._hasUnscopedTextContent){const Z=0===this._titles.length&&1===ge;N.classList.toggle("mdc-list-item__primary-text",Z),N.classList.toggle("mdc-list-item__secondary-text",!Z)}else N.classList.remove("mdc-list-item__primary-text"),N.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let Se=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(Se+=1),Se}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(Se=>Se.nodeType!==Se.COMMENT_NODE).some(Se=>!(!Se.textContent||!Se.textContent.trim()))}static \u0275fac=function(ge){return new(ge||ye)};static \u0275dir=w.FsC({type:ye,contentQueries:function(ge,N,Z){if(1&ge&&(w.wni(Z,rt,4),w.wni(Z,cn,4)),2&ge){let Me;w.mGM(Me=w.lsd())&&(N._avatars=Me),w.mGM(Me=w.lsd())&&(N._icons=Me)}},hostVars:4,hostBindings:function(ge,N){2&ge&&(w.BMQ("aria-disabled",N.disabled)("disabled",N._isButtonElement&&N.disabled||null),w.AVh("mdc-list-item--disabled",N.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return ye})(),wt=(()=>{class ye extends Sn{static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=w.xGo(ye)))(N||ye)}})();static \u0275cmp=w.VBU({type:ye,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[w.Jv_([{provide:Sn,useExisting:ye}]),w.Vt3],ngContentSelectors:J,decls:1,vars:0,template:function(ge,N){1&ge&&(w.NAR(),w.SdG(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],encapsulation:2,changeDetection:0})}return ye})(),pt=(()=>{class ye extends Qn{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(Se){this._activated=(0,d.he)(Se)}_activated=!1;_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return 0!==this._meta.length&&(0!==this._avatars.length||0!==this._icons.length)}static \u0275fac=(()=>{let Se;return function(N){return(Se||(Se=w.xGo(ye)))(N||ye)}})();static \u0275cmp=w.VBU({type:ye,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(ge,N,Z){if(1&ge&&(w.wni(Z,Qe,5),w.wni(Z,fe,5),w.wni(Z,gt,5)),2&ge){let Me;w.mGM(Me=w.lsd())&&(N._lines=Me),w.mGM(Me=w.lsd())&&(N._titles=Me),w.mGM(Me=w.lsd())&&(N._meta=Me)}},viewQuery:function(ge,N){if(1&ge&&(w.GBs(Re,5),w.GBs(Xe,5)),2&ge){let Z;w.mGM(Z=w.lsd())&&(N._unscopedContent=Z.first),w.mGM(Z=w.lsd())&&(N._itemText=Z.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(ge,N){2&ge&&(w.BMQ("aria-current",N._getAriaCurrent()),w.AVh("mdc-list-item--activated",N.activated)("mdc-list-item--with-leading-avatar",0!==N._avatars.length)("mdc-list-item--with-leading-icon",0!==N._icons.length)("mdc-list-item--with-trailing-meta",0!==N._meta.length)("mat-mdc-list-item-both-leading-and-trailing",N._hasBothLeadingAndTrailing())("_mat-animation-noopable",N._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[w.Vt3],ngContentSelectors:he,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(ge,N){if(1&ge){const Z=w.RV6();w.NAR(_e),w.SdG(0),w.j41(1,"span",1),w.SdG(2,1),w.SdG(3,2),w.j41(4,"span",2,0),w.bIt("cdkObserveContent",function(){return T.eBV(Z),T.Njj(N._updateItemLines(!0))}),w.SdG(6,3),w.k0s()(),w.SdG(7,4),w.SdG(8,5),w.nrm(9,"div",3)}},dependencies:[Ae.Wv],encapsulation:2,changeDetection:0})}return ye})(),ee=(()=>{class ye{static \u0275fac=function(ge){return new(ge||ye)};static \u0275mod=w.$C({type:ye});static \u0275inj=T.G2t({imports:[Ae.w5,be.y,ne.p,ce.O,j.w]})}return ye})()},9115(Zt,pe,l){"use strict";l.d(pe,{Cn:()=>vt,Cp:()=>kn,fb:()=>gt,kk:()=>wt});var W=l(2615),G=l(3664),re=l(7705),xe=l(6838),Ee=l(9726),V=l(4123),ce=l(5735),be=l(7336),ne=l(438),J=l(1413),De=l(8359),Re=l(7786),Xe=l(7673),_e=l(5964),he=l(9172),Dt=l(5558),lt=l(6697),Le=l(6977),te=l(8968),ie=l(2046),P=l(2496),F=l(6939),ve=l(1804),H=l(1577),$=l(9338),Ke=l(5718),Vt=l(6881),St=l(2466);const ot=["mat-menu-item",""],nt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ht=["mat-icon, [matMenuItemIcon]","*"];function oe(Se,ge){1&Se&&(W.qSk(),G.j41(0,"svg",2),G.nrm(1,"polygon",3),G.k0s())}const Ye=["*"];function fe(Se,ge){if(1&Se){const N=G.RV6();G.rj2(0,"div",0),G.VwU("click",function(){W.eBV(N);const Me=G.XpG();return W.Njj(Me.closed.emit("click"))})("animationstart",function(Me){W.eBV(N);const at=G.XpG();return W.Njj(at._onAnimationStart(Me.animationName))})("animationend",function(Me){W.eBV(N);const at=G.XpG();return W.Njj(at._onAnimationDone(Me.animationName))})("animationcancel",function(Me){W.eBV(N);const at=G.XpG();return W.Njj(at._onAnimationDone(Me.animationName))}),G.rj2(1,"div",1),G.SdG(2),G.eux()()}if(2&Se){const N=G.XpG();G.HbH(N._classList),G.AVh("mat-menu-panel-animations-disabled",N._animationsDisabled)("mat-menu-panel-exit-animation","void"===N._panelAnimationState)("mat-menu-panel-animating",N._isAnimating()),G.Avn("id",N.panelId),G.BMQ("aria-label",N.ariaLabel||null)("aria-labelledby",N.ariaLabelledby||null)("aria-describedby",N.ariaDescribedby||null)}}const Qe=new W.nKC("MAT_MENU_PANEL");let gt=(()=>{class Se{_elementRef=(0,W.WQX)(G.aKT);_document=(0,W.WQX)(W.qQL);_focusMonitor=(0,W.WQX)(xe.FN);_parentMenu=(0,W.WQX)(Qe,{optional:!0});_changeDetectorRef=(0,W.WQX)(re.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new J.B;_focused=new J.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,W.WQX)(te.l).load(ie.A),this._parentMenu?.addItem?.(this)}focus(N,Z){this._focusMonitor&&N?this._focusMonitor.focusVia(this._getHostElement(),N,Z):this._getHostElement().focus(Z),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(N){this.disabled&&(N.preventDefault(),N.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const N=this._elementRef.nativeElement.cloneNode(!0),Z=N.querySelectorAll("mat-icon, .material-icons");for(let Me=0;Me{class Se{_elementRef=(0,W.WQX)(G.aKT);_changeDetectorRef=(0,W.WQX)(re.gRc);_injector=(0,W.WQX)(W.zZn);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=(0,ve.Rc)();_allItems;_directDescendantItems=new G.rOR;_classList={};_panelAnimationState="void";_animationDone=new J.B;_isAnimating=(0,W.vPA)(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(N){this._xPosition=N,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(N){this._yPosition=N,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(N){const Z=this._previousPanelClass,Me={...this._classList};Z&&Z.length&&Z.split(" ").forEach(at=>{Me[at]=!1}),this._previousPanelClass=N,N&&N.length&&(N.split(" ").forEach(at=>{Me[at]=!0}),this._elementRef.nativeElement.className=""),this._classList=Me}_previousPanelClass;get classList(){return this.panelClass}set classList(N){this.panelClass=N}closed=new G.bkB;close=this.closed;panelId=(0,W.WQX)(Ee.g).getId("mat-menu-panel-");constructor(){const N=(0,W.WQX)(Qn);this.overlayPanelClass=N.overlayPanelClass||"",this._xPosition=N.xPosition,this._yPosition=N.yPosition,this.backdropClass=N.backdropClass,this.overlapTrigger=N.overlapTrigger,this.hasBackdrop=N.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new V.B(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,he.Z)(this._directDescendantItems),(0,Dt.n)(N=>(0,Re.h)(...N.map(Z=>Z._focused)))).subscribe(N=>this._keyManager.updateActiveItem(N)),this._directDescendantItems.changes.subscribe(N=>{const Z=this._keyManager;if("enter"===this._panelAnimationState&&Z.activeItem?._hasFocus()){const Me=N.toArray(),at=Math.max(0,Math.min(Me.length-1,Z.activeItemIndex||0));Me[at]&&!Me[at].disabled?Z.setActiveItem(at):Z.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe((0,he.Z)(this._directDescendantItems),(0,Dt.n)(Z=>(0,Re.h)(...Z.map(Me=>Me._hovered))))}addItem(N){}removeItem(N){}_handleKeydown(N){const Z=N.keyCode,Me=this._keyManager;switch(Z){case ne._f:(0,be.rp)(N)||(N.preventDefault(),this.closed.emit("keydown"));break;case ne.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case ne.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Z===ne.i7||Z===ne.n6)&&Me.setFocusOrigin("keyboard"),void Me.onKeydown(N)}}focusFirstItem(N="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,G.mal)(()=>{const Z=this._resolvePanel();if(!Z||!Z.contains(document.activeElement)){const Me=this._keyManager;Me.setFocusOrigin(N).setFirstItemActive(),!Me.activeItem&&Z&&Z.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(N){}setPositionClasses(N=this.xPosition,Z=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===N,"mat-menu-after":"after"===N,"mat-menu-above":"above"===Z,"mat-menu-below":"below"===Z},this._changeDetectorRef.markForCheck()}_onAnimationDone(N){const Z=N===Ue;(Z||N===jt)&&(Z&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(Z?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(N){(N===jt||N===Ue)&&this._isAnimating.set(!0)}_setIsOpen(N){if(this._panelAnimationState=N?"enter":"void",N){if(0===this._keyManager.activeItemIndex){const Z=this._resolvePanel();Z&&(Z.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Ue),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(N?jt:Ue)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe((0,he.Z)(this._allItems)).subscribe(N=>{this._directDescendantItems.reset(N.filter(Z=>Z._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let N=null;return this._directDescendantItems.length&&(N=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),N}static \u0275fac=function(Z){return new(Z||Se)};static \u0275cmp=G.VBU({type:Se,selectors:[["mat-menu"]],contentQueries:function(Z,Me,at){if(1&Z&&(G.wni(at,Ft,5),G.wni(at,gt,5),G.wni(at,gt,4)),2&Z){let qe;G.mGM(qe=G.lsd())&&(Me.lazyContent=qe.first),G.mGM(qe=G.lsd())&&(Me._allItems=qe),G.mGM(qe=G.lsd())&&(Me.items=qe)}},viewQuery:function(Z,Me){if(1&Z&&G.GBs(G.C4Q,5),2&Z){let at;G.mGM(at=G.lsd())&&(Me.templateRef=at.first)}},hostVars:3,hostBindings:function(Z,Me){2&Z&&G.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",re.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",N=>null==N?null:(0,re.L39)(N)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[G.Jv_([{provide:Qe,useExisting:Se}])],ngContentSelectors:Ye,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(Z,Me){1&Z&&(G.NAR(),G.PeT(0,fe,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,changeDetection:0})}return Se})();const pt=new W.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Se=(0,W.WQX)(W.zZn);return()=>(0,$.RH)(Se)}}),gn={provide:pt,deps:[],useFactory:function Pt(Se){const ge=(0,W.WQX)(W.zZn);return()=>(0,$.RH)(ge)}},vi=new WeakMap;let Ni=(()=>{class Se{_canHaveBackdrop;_element=(0,W.WQX)(G.aKT);_viewContainerRef=(0,W.WQX)(G.c1b);_menuItemInstance=(0,W.WQX)(gt,{optional:!0,self:!0});_dir=(0,W.WQX)(H.dS,{optional:!0});_focusMonitor=(0,W.WQX)(xe.FN);_ngZone=(0,W.WQX)(G.SKi);_injector=(0,W.WQX)(W.zZn);_scrollStrategy=(0,W.WQX)(pt);_changeDetectorRef=(0,W.WQX)(re.gRc);_animationsDisabled=(0,ve.Rc)();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=De.yU.EMPTY;_menuCloseSubscription=De.yU.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(N){N!==this._menuInternal&&(this._menuInternal=N,this._menuCloseSubscription.unsubscribe(),N&&(this._menuCloseSubscription=N.close.subscribe(Z=>{this._destroyMenu(Z),("click"===Z||"tab"===Z)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Z)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(N){this._canHaveBackdrop=N;const Z=(0,W.WQX)(Qe,{optional:!0});this._parentMaterialMenu=Z instanceof wt?Z:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&vi.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(N){const Z=this._menu;if(this._menuOpen||!Z)return;this._pendingRemoval?.unsubscribe();const Me=vi.get(Z);vi.set(Z,this),Me&&Me!==this&&Me._closeMenu();const at=this._createOverlay(Z),qe=at.getConfig(),pn=qe.positionStrategy;this._setPosition(Z,pn),qe.hasBackdrop=!!this._canHaveBackdrop&&(null==Z.hasBackdrop?!this._triggersSubmenu():Z.hasBackdrop),at.hasAttached()||(at.attach(this._getPortal(Z)),Z.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),Z.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,Z.direction=this.dir,N&&Z.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),Z instanceof wt&&(Z._setIsOpen(!0),Z._directDescendantItems.changes.pipe((0,Le.Q)(Z.close)).subscribe(()=>{pn.withLockedPosition(!1).reapplyLastPosition(),pn.withLockedPosition(!0)}))}focus(N,Z){this._focusMonitor&&N?this._focusMonitor.focusVia(this._element,N,Z):this._element.nativeElement.focus(Z)}_destroyMenu(N){const Z=this._overlayRef,Me=this._menu;!Z||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),Me instanceof wt&&this._ownsMenu(Me)?(this._pendingRemoval=Me._animationDone.pipe((0,lt.s)(1)).subscribe(()=>{Z.detach(),vi.has(Me)||Me.lazyContent?.detach()}),Me._setIsOpen(!1)):(Z.detach(),Me?.lazyContent?.detach()),Me&&this._ownsMenu(Me)&&vi.delete(Me),this.restoreFocus&&("keydown"===N||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(N){N!==this._menuOpen&&(this._menuOpen=N,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(N),this._changeDetectorRef.markForCheck())}_createOverlay(N){if(!this._overlayRef){const Z=this._getOverlayConfig(N);this._subscribeToPositions(N,Z.positionStrategy),this._overlayRef=(0,$.Y$)(this._injector,Z),this._overlayRef.keydownEvents().subscribe(Me=>{this._menu instanceof wt&&this._menu._handleKeydown(Me)})}return this._overlayRef}_getOverlayConfig(N){return new $.rR({positionStrategy:(0,$.$M)(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:N.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:N.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(N,Z){N.setPositionClasses&&Z.positionChanges.subscribe(Me=>{this._ngZone.run(()=>{N.setPositionClasses("start"===Me.connectionPair.overlayX?"after":"before","top"===Me.connectionPair.overlayY?"below":"above")})})}_setPosition(N,Z){let[Me,at]="before"===N.xPosition?["end","start"]:["start","end"],[qe,pn]="above"===N.yPosition?["bottom","top"]:["top","bottom"],[Je,Be]=[qe,pn],[ut,Ge]=[Me,at],Ot=0;if(this._triggersSubmenu()){if(Ge=Me="before"===N.xPosition?"start":"end",at=ut="end"===Me?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const se=this._parentMaterialMenu.items.first;this._parentInnerPadding=se?se._getHostElement().offsetTop:0}Ot="bottom"===qe?this._parentInnerPadding:-this._parentInnerPadding}}else N.overlapTrigger||(Je="top"===qe?"bottom":"top",Be="top"===pn?"bottom":"top");Z.withPositions([{originX:Me,originY:Je,overlayX:ut,overlayY:qe,offsetY:Ot},{originX:at,originY:Je,overlayX:Ge,overlayY:qe,offsetY:Ot},{originX:Me,originY:Be,overlayX:ut,overlayY:pn,offsetY:-Ot},{originX:at,originY:Be,overlayX:Ge,overlayY:pn,offsetY:-Ot}])}_menuClosingActions(){const N=this._getOutsideClickStream(this._overlayRef),Z=this._overlayRef.detachments(),Me=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Xe.of)(),at=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_e.p)(qe=>this._menuOpen&&qe!==this._menuItemInstance)):(0,Xe.of)();return(0,Re.h)(N,Me,at,Z)}_getPortal(N){return(!this._portal||this._portal.templateRef!==N.templateRef)&&(this._portal=new F.VA(N.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(N){return vi.get(N)===this}static \u0275fac=function(Z){G.QTQ()};static \u0275dir=G.FsC({type:Se})}return Se})(),kn=(()=>{class Se extends Ni{_cleanupTouchstart;_hoverSubscription=De.yU.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(N){this.menu=N}get menu(){return this._menu}set menu(N){this._menu=N}menuData;restoreFocus=!0;menuOpened=new G.bkB;onMenuOpen=this.menuOpened;menuClosed=new G.bkB;onMenuClose=this.menuClosed;constructor(){super(!0);const N=(0,W.WQX)(G.sFG);this._cleanupTouchstart=N.listen(this._element.nativeElement,"touchstart",Z=>{(0,ce.w)(Z)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(N){return N.backdropClick()}_handleMousedown(N){(0,ce._)(N)||(this._openedBy=0===N.button?"mouse":void 0,this.triggersSubmenu()&&N.preventDefault())}_handleKeydown(N){const Z=N.keyCode;(Z===ne.Fm||Z===ne.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Z===ne.LE&&"ltr"===this.dir||Z===ne.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(N){this.triggersSubmenu()?(N.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(N=>{N===this._menuItemInstance&&!N.disabled&&"void"!==this._parentMaterialMenu?._panelAnimationState&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(Z){return new(Z||Se)};static \u0275dir=G.FsC({type:Se,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Z,Me){1&Z&&G.bIt("click",function(qe){return Me._handleClick(qe)})("mousedown",function(qe){return Me._handleMousedown(qe)})("keydown",function(qe){return Me._handleKeydown(qe)}),2&Z&&G.BMQ("aria-haspopup",Me.menu?"menu":null)("aria-expanded",Me.menuOpen)("aria-controls",Me.menuOpen?null==Me.menu?null:Me.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[G.Vt3]})}return Se})(),vt=(()=>{class Se{static \u0275fac=function(Z){return new(Z||Se)};static \u0275mod=G.$C({type:Se});static \u0275inj=W.G2t({providers:[gn],imports:[Vt.p,St.y,$.z_,Ke.Gj,St.y]})}return Se})()},146(Zt,pe,l){"use strict";l.d(pe,{S:()=>O});var i=l(2615),d=l(3664),v=l(6881),T=l(483),w=l(2466),e=l(3029);let O=(()=>{class f{static \u0275fac=function(C){return new(C||f)};static \u0275mod=d.$C({type:f});static \u0275inj=i.G2t({imports:[v.p,w.y,T.O,e.wT]})}return f})()},3029(Zt,pe,l){"use strict";l.d(pe,{MI:()=>J,QC:()=>be,TL:()=>Xe,is:()=>ce,jb:()=>Re,wT:()=>De});var w=l(9726),e=l(7336),O=l(438),f=l(3664),u=l(7705),L=l(2615),C=l(1413),B=l(2496),A=l(3386),Pe=l(2046),le=l(9046),Ce=l(8968);const W=["text"],G=[[["mat-icon"]],"*"],re=["mat-icon","*"];function xe(_e,he){if(1&_e&&f.nrm(0,"mat-pseudo-checkbox",1),2&_e){const Dt=f.XpG();f.Y8G("disabled",Dt.disabled)("state",Dt.selected?"checked":"unchecked")}}function Ee(_e,he){if(1&_e&&f.nrm(0,"mat-pseudo-checkbox",3),2&_e){const Dt=f.XpG();f.Y8G("disabled",Dt.disabled)}}function V(_e,he){if(1&_e&&(f.j41(0,"span",4),f.EFF(1),f.k0s()),2&_e){const Dt=f.XpG();f.R7$(),f.SpI("(",Dt.group.label,")")}}const ce=new L.nKC("MAT_OPTION_PARENT_COMPONENT"),be=new L.nKC("MatOptgroup");class J{source;isUserInput;constructor(he,Dt=!1){this.source=he,this.isUserInput=Dt}}let De=(()=>{class _e{_element=(0,L.WQX)(f.aKT);_changeDetectorRef=(0,L.WQX)(u.gRc);_parent=(0,L.WQX)(ce,{optional:!0});group=(0,L.WQX)(be,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,L.WQX)(w.g).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(Dt){this._disabled.set(Dt)}_disabled=(0,L.vPA)(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new f.bkB;_text;_stateChanges=new C.B;constructor(){const Dt=(0,L.WQX)(Ce.l);Dt.load(Pe.A),Dt.load(le.Y),this._signalDisableRipple=!!this._parent&&(0,L.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Dt=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Dt&&this._emitSelectionChangeEvent())}deselect(Dt=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Dt&&this._emitSelectionChangeEvent())}focus(Dt,lt){const Le=this._getHostElement();"function"==typeof Le.focus&&Le.focus(lt)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Dt){(Dt.keyCode===O.Fm||Dt.keyCode===O.t6)&&!(0,e.rp)(Dt)&&(this._selectViaInteraction(),Dt.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Dt=this.viewValue;Dt!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Dt)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Dt=!1){this.onSelectionChange.emit(new J(this,Dt))}static \u0275fac=function(lt){return new(lt||_e)};static \u0275cmp=f.VBU({type:_e,selectors:[["mat-option"]],viewQuery:function(lt,Le){if(1<&&f.GBs(W,7),2<){let te;f.mGM(te=f.lsd())&&(Le._text=te.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(lt,Le){1<&&f.bIt("click",function(){return Le._selectViaInteraction()})("keydown",function(ie){return Le._handleKeydown(ie)}),2<&&(f.Avn("id",Le.id),f.BMQ("aria-selected",Le.selected)("aria-disabled",Le.disabled.toString()),f.AVh("mdc-list-item--selected",Le.selected)("mat-mdc-option-multiple",Le.multiple)("mat-mdc-option-active",Le.active)("mdc-list-item--disabled",Le.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",u.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:re,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(lt,Le){1<&&(f.NAR(G),f.nVh(0,xe,1,2,"mat-pseudo-checkbox",1),f.SdG(1),f.j41(2,"span",2,0),f.SdG(4,1),f.k0s(),f.nVh(5,Ee,1,1,"mat-pseudo-checkbox",3),f.nVh(6,V,2,1,"span",4),f.nrm(7,"div",5)),2<&&(f.vxM(Le.multiple?0:-1),f.R7$(5),f.vxM(Le.multiple||!Le.selected||Le.hideSingleSelectionIndicator?-1:5),f.R7$(),f.vxM(Le.group&&Le.group._inert?6:-1),f.R7$(),f.Y8G("matRippleTrigger",Le._getHostElement())("matRippleDisabled",Le.disabled||Le.disableRipple))},dependencies:[A.w,B.r6],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _e})();function Re(_e,he,Dt){if(Dt.length){let lt=he.toArray(),Le=Dt.toArray(),te=0;for(let ie=0;ie<_e+1;ie++)lt[ie].group&<[ie].group===Le[te]&&te++;return te}return 0}function Xe(_e,he,Dt,lt){return _eDt+lt?Math.max(0,_e-lt+he):Dt}},6695(Zt,pe,l){"use strict";l.d(pe,{Ou:()=>ne,iy:()=>be,xX:()=>G});var i=l(2615),d=l(3664),v=l(7705),T=l(1413),w=l(2771),e=l(9726),O=l(9588),f=l(6183),u=l(3029),L=l(2598),C=l(455),B=l(6156),A=l(8834);function Pe(J,De){if(1&J&&(d.j41(0,"mat-option",17),d.EFF(1),d.k0s()),2&J){const Re=De.$implicit;d.Y8G("value",Re),d.R7$(),d.SpI(" ",Re," ")}}function le(J,De){if(1&J){const Re=d.RV6();d.j41(0,"mat-form-field",14)(1,"mat-select",16,0),d.bIt("selectionChange",function(_e){i.eBV(Re);const he=d.XpG(2);return i.Njj(he._changePageSize(_e.value))}),d.Z7z(3,Pe,2,2,"mat-option",17,d.fX1),d.k0s(),d.j41(5,"div",18),d.bIt("click",function(){i.eBV(Re);const _e=d.sdS(2);return i.Njj(_e.open())}),d.k0s()()}if(2&J){const Re=d.XpG(2);d.Y8G("appearance",Re._formFieldAppearance)("color",Re.color),d.R7$(),d.Y8G("value",Re.pageSize)("disabled",Re.disabled),d.jOp("aria-labelledby",Re._pageSizeLabelId),d.Y8G("panelClass",Re.selectConfig.panelClass||"")("disableOptionCentering",Re.selectConfig.disableOptionCentering),d.R7$(2),d.Dyx(Re._displayedPageSizeOptions)}}function Ce(J,De){if(1&J&&(d.j41(0,"div",15),d.EFF(1),d.k0s()),2&J){const Re=d.XpG(2);d.R7$(),d.JRh(Re.pageSize)}}function Ae(J,De){if(1&J&&(d.j41(0,"div",3)(1,"div",13),d.EFF(2),d.k0s(),d.nVh(3,le,6,7,"mat-form-field",14),d.nVh(4,Ce,2,1,"div",15),d.k0s()),2&J){const Re=d.XpG();d.R7$(),d.BMQ("id",Re._pageSizeLabelId),d.R7$(),d.SpI(" ",Re._intl.itemsPerPageLabel," "),d.R7$(),d.vxM(Re._displayedPageSizeOptions.length>1?3:-1),d.R7$(),d.vxM(Re._displayedPageSizeOptions.length<=1?4:-1)}}function j(J,De){if(1&J){const Re=d.RV6();d.j41(0,"button",19),d.bIt("click",function(){i.eBV(Re);const _e=d.XpG();return i.Njj(_e._buttonClicked(0,_e._previousButtonsDisabled()))}),i.qSk(),d.j41(1,"svg",8),d.nrm(2,"path",20),d.k0s()()}if(2&J){const Re=d.XpG();d.Y8G("matTooltip",Re._intl.firstPageLabel)("matTooltipDisabled",Re._previousButtonsDisabled())("disabled",Re._previousButtonsDisabled())("tabindex",Re._previousButtonsDisabled()?-1:null),d.BMQ("aria-label",Re._intl.firstPageLabel)}}function W(J,De){if(1&J){const Re=d.RV6();d.j41(0,"button",21),d.bIt("click",function(){i.eBV(Re);const _e=d.XpG();return i.Njj(_e._buttonClicked(_e.getNumberOfPages()-1,_e._nextButtonsDisabled()))}),i.qSk(),d.j41(1,"svg",8),d.nrm(2,"path",22),d.k0s()()}if(2&J){const Re=d.XpG();d.Y8G("matTooltip",Re._intl.lastPageLabel)("matTooltipDisabled",Re._nextButtonsDisabled())("disabled",Re._nextButtonsDisabled())("tabindex",Re._nextButtonsDisabled()?-1:null),d.BMQ("aria-label",Re._intl.lastPageLabel)}}let G=(()=>{class J{changes=new T.B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(Re,Xe,_e)=>{if(0==_e||0==Xe)return`0 of ${_e}`;const he=Re*Xe;return`${he+1} \u2013 ${he<(_e=Math.max(_e,0))?Math.min(he+Xe,_e):he+Xe} of ${_e}`};static \u0275fac=function(Xe){return new(Xe||J)};static \u0275prov=i.jDH({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})();const xe={provide:G,deps:[[new d.Xx1,new d.kdw,G]],useFactory:function re(J){return J||new G}},ce=new i.nKC("MAT_PAGINATOR_DEFAULT_OPTIONS");let be=(()=>{class J{_intl=(0,i.WQX)(G);_changeDetectorRef=(0,i.WQX)(v.gRc);_formFieldAppearance;_pageSizeLabelId=(0,i.WQX)(e.g).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new w.m(1);color;get pageIndex(){return this._pageIndex}set pageIndex(Re){this._pageIndex=Math.max(Re||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(Re){this._length=Re||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(Re){this._pageSize=Math.max(Re||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(Re){this._pageSizeOptions=(Re||[]).map(Xe=>(0,v.Udg)(Xe,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new d.bkB;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){const Re=this._intl,Xe=(0,i.WQX)(ce,{optional:!0});if(this._intlChanges=Re.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Xe){const{pageSize:_e,pageSizeOptions:he,hidePageSize:Dt,showFirstLastButtons:lt}=Xe;null!=_e&&(this._pageSize=_e),null!=he&&(this._pageSizeOptions=he),null!=Dt&&(this.hidePageSize=Dt),null!=lt&&(this.showFirstLastButtons=lt)}this._formFieldAppearance=Xe?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const Re=this.getNumberOfPages()-1;return this.pageIndexRe-Xe),this._changeDetectorRef.markForCheck())}_emitPageEvent(Re){this.page.emit({previousPageIndex:Re,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(Re){const Xe=this.pageIndex;Re!==Xe&&(this.pageIndex=Re,this._emitPageEvent(Xe))}_buttonClicked(Re,Xe){Xe||this._navigate(Re)}static \u0275fac=function(Xe){return new(Xe||J)};static \u0275cmp=d.VBU({type:J,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",v.Udg],length:[2,"length","length",v.Udg],pageSize:[2,"pageSize","pageSize",v.Udg],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",v.L39],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",v.L39],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",v.L39]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(Xe,_e){1&Xe&&(d.j41(0,"div",1)(1,"div",2),d.nVh(2,Ae,5,4,"div",3),d.j41(3,"div",4)(4,"div",5),d.EFF(5),d.k0s(),d.nVh(6,j,3,5,"button",6),d.j41(7,"button",7),d.bIt("click",function(){return _e._buttonClicked(_e.pageIndex-1,_e._previousButtonsDisabled())}),i.qSk(),d.j41(8,"svg",8),d.nrm(9,"path",9),d.k0s()(),i.joV(),d.j41(10,"button",10),d.bIt("click",function(){return _e._buttonClicked(_e.pageIndex+1,_e._nextButtonsDisabled())}),i.qSk(),d.j41(11,"svg",8),d.nrm(12,"path",11),d.k0s()(),d.nVh(13,W,3,5,"button",12),d.k0s()()()),2&Xe&&(d.R7$(2),d.vxM(_e.hidePageSize?-1:2),d.R7$(3),d.SpI(" ",_e._intl.getRangeLabel(_e.pageIndex,_e.pageSize,_e.length)," "),d.R7$(),d.vxM(_e.showFirstLastButtons?6:-1),d.R7$(),d.Y8G("matTooltip",_e._intl.previousPageLabel)("matTooltipDisabled",_e._previousButtonsDisabled())("disabled",_e._previousButtonsDisabled())("tabindex",_e._previousButtonsDisabled()?-1:null),d.BMQ("aria-label",_e._intl.previousPageLabel),d.R7$(3),d.Y8G("matTooltip",_e._intl.nextPageLabel)("matTooltipDisabled",_e._nextButtonsDisabled())("disabled",_e._nextButtonsDisabled())("tabindex",_e._nextButtonsDisabled()?-1:null),d.BMQ("aria-label",_e._intl.nextPageLabel),d.R7$(3),d.vxM(_e.showFirstLastButtons?13:-1))},dependencies:[O.rl,f.VO,u.wT,L.iY,C.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],encapsulation:2,changeDetection:0})}return J})(),ne=(()=>{class J{static \u0275fac=function(Xe){return new(Xe||J)};static \u0275mod=d.$C({type:J});static \u0275inj=i.G2t({providers:[xe],imports:[A.Hl,f.Ve,B.u,be]})}return J})()},7575(Zt,pe,l){"use strict";l.d(pe,{HM:()=>L,PO:()=>B});var i=l(2615),d=l(3664),v=l(7705),T=l(1804),w=l(2466);function e(A,Pe){1&A&&d.Hgh(0,"div",2)}const O=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let L=(()=>{class A{_elementRef=(0,i.WQX)(d.aKT);_ngZone=(0,i.WQX)(d.SKi);_changeDetectorRef=(0,i.WQX)(v.gRc);_renderer=(0,i.WQX)(d.sFG);_cleanupTransitionEnd;constructor(){const le=(0,T._J)(),Ce=(0,i.WQX)(O,{optional:!0});this._isNoopAnimation="di-disabled"===le,"reduced-motion"===le&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),Ce&&(Ce.color&&(this.color=this._defaultColor=Ce.color),this.mode=Ce.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(le){this._color=le}_color;_defaultColor="primary";get value(){return this._value}set value(le){this._value=C(le||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(le){this._bufferValue=C(le||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new d.bkB;get mode(){return this._mode}set mode(le){this._mode=le,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=le=>{0===this.animationEnd.observers.length||!le.target||!le.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(Ce){return new(Ce||A)};static \u0275cmp=d.VBU({type:A,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(Ce,Ae){2&Ce&&(d.BMQ("aria-valuenow",Ae._isIndeterminate()?null:Ae.value)("mode",Ae.mode),d.HbH("mat-"+Ae.color),d.AVh("_mat-animation-noopable",Ae._isNoopAnimation)("mdc-linear-progress--animation-ready",!Ae._isNoopAnimation)("mdc-linear-progress--indeterminate",Ae._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",v.Udg],bufferValue:[2,"bufferValue","bufferValue",v.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Ce,Ae){1&Ce&&(d.rj2(0,"div",0),d.Hgh(1,"div",1),d.nVh(2,e,1,0,"div",2),d.eux(),d.rj2(3,"div",3),d.Hgh(4,"span",4),d.eux(),d.rj2(5,"div",5),d.Hgh(6,"span",4),d.eux()),2&Ce&&(d.R7$(),d.xc7("flex-basis",Ae._getBufferBarFlexBasis()),d.R7$(),d.vxM("buffer"===Ae.mode?2:-1),d.R7$(),d.xc7("transform",Ae._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],encapsulation:2,changeDetection:0})}return A})();function C(A,Pe=0,le=100){return Math.max(Pe,Math.min(le,A))}let B=(()=>{class A{static \u0275fac=function(Ce){return new(Ce||A)};static \u0275mod=d.$C({type:A});static \u0275inj=i.G2t({imports:[w.y]})}return A})()},9183(Zt,pe,l){"use strict";l.d(pe,{D6:()=>le,LG:()=>A});var i=l(2615),d=l(3664),v=l(7705),T=l(2200),w=l(1804),e=l(2466);const O=["determinateSpinner"];function f(Ce,Ae){if(1&Ce&&(i.qSk(),d.j41(0,"svg",11),d.nrm(1,"circle",12),d.k0s()),2&Ce){const j=d.XpG();d.BMQ("viewBox",j._viewBox()),d.R7$(),d.xc7("stroke-dasharray",j._strokeCircumference(),"px")("stroke-dashoffset",j._strokeCircumference()/2,"px")("stroke-width",j._circleStrokeWidth(),"%"),d.BMQ("r",j._circleRadius())}}const u=new i.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function L(){return{diameter:C}}}),C=100;let A=(()=>{class Ce{_elementRef=(0,i.WQX)(d.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(j){this._color=j}_color;_defaultColor="primary";_determinateCircle;constructor(){const j=(0,i.WQX)(u),W=(0,w._J)(),G=this._elementRef.nativeElement;this._noopAnimations="di-disabled"===W&&!!j&&!j._forceAnimations,this.mode="mat-spinner"===G.nodeName.toLowerCase()?"indeterminate":"determinate",!this._noopAnimations&&"reduced-motion"===W&&G.classList.add("mat-progress-spinner-reduced-motion"),j&&(j.color&&(this.color=this._defaultColor=j.color),j.diameter&&(this.diameter=j.diameter),j.strokeWidth&&(this.strokeWidth=j.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(j){this._value=Math.max(0,Math.min(100,j||0))}_value=0;get diameter(){return this._diameter}set diameter(j){this._diameter=j||0}_diameter=C;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(j){this._strokeWidth=j||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const j=2*this._circleRadius()+this.strokeWidth;return`0 0 ${j} ${j}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(W){return new(W||Ce)};static \u0275cmp=d.VBU({type:Ce,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(W,G){if(1&W&&d.GBs(O,5),2&W){let re;d.mGM(re=d.lsd())&&(G._determinateCircle=re.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(W,G){2&W&&(d.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===G.mode?G.value:null)("mode",G.mode),d.HbH("mat-"+G.color),d.xc7("width",G.diameter,"px")("height",G.diameter,"px")("--mat-progress-spinner-size",G.diameter+"px")("--mat-progress-spinner-active-indicator-width",G.diameter+"px"),d.AVh("_mat-animation-noopable",G._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===G.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",v.Udg],diameter:[2,"diameter","diameter",v.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",v.Udg]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(W,G){if(1&W&&(d.DNE(0,f,2,8,"ng-template",null,0,d.C5r),d.j41(2,"div",2,1),i.qSk(),d.j41(4,"svg",3),d.nrm(5,"circle",4),d.k0s()(),i.joV(),d.j41(6,"div",5)(7,"div",6)(8,"div",7),d.eu8(9,8),d.k0s(),d.j41(10,"div",9),d.eu8(11,8),d.k0s(),d.j41(12,"div",10),d.eu8(13,8),d.k0s()()()),2&W){const re=d.sdS(1);d.R7$(4),d.BMQ("viewBox",G._viewBox()),d.R7$(),d.xc7("stroke-dasharray",G._strokeCircumference(),"px")("stroke-dashoffset",G._strokeDashOffset(),"px")("stroke-width",G._circleStrokeWidth(),"%"),d.BMQ("r",G._circleRadius()),d.R7$(4),d.Y8G("ngTemplateOutlet",re),d.R7$(2),d.Y8G("ngTemplateOutlet",re),d.R7$(2),d.Y8G("ngTemplateOutlet",re)}},dependencies:[T.T3],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],encapsulation:2,changeDetection:0})}return Ce})(),le=(()=>{class Ce{static \u0275fac=function(W){return new(W||Ce)};static \u0275mod=d.$C({type:Ce});static \u0275inj=i.G2t({imports:[e.y]})}return Ce})()},483(Zt,pe,l){"use strict";l.d(pe,{O:()=>T});var i=l(2615),d=l(3664),v=l(2466);let T=(()=>{class w{static \u0275fac=function(f){return new(f||w)};static \u0275mod=d.$C({type:w});static \u0275inj=i.G2t({imports:[v.y]})}return w})()},3386(Zt,pe,l){"use strict";l.d(pe,{w:()=>v});var i=l(3664),d=l(1804);let v=(()=>{class T{_animationsDisabled=(0,d.Rc)();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(O){return new(O||T)};static \u0275cmp=i.VBU({type:T,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(O,f){2&O&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===f.state)("mat-pseudo-checkbox-checked","checked"===f.state)("mat-pseudo-checkbox-disabled",f.disabled)("mat-pseudo-checkbox-minimal","minimal"===f.appearance)("mat-pseudo-checkbox-full","full"===f.appearance)("_mat-animation-noopable",f._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(O,f){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],encapsulation:2,changeDetection:0})}return T})()},5951(Zt,pe,l){"use strict";l.d(pe,{VT:()=>Ee,Wk:()=>ce,_g:()=>V});var i=l(6838),d=l(9726),v=l(8689),T=l(2615),w=l(3664),e=l(7705),O=l(9417),f=l(8968),u=l(1804),L=l(2046),C=l(2496),B=l(3155),A=l(2466),Pe=l(6881);const le=["input"],Ce=["formField"],Ae=["*"];class j{source;value;constructor(ne,J){this.source=ne,this.value=J}}const W={provide:O.kq,useExisting:(0,T.Rfq)(()=>Ee),multi:!0},G=new T.nKC("MatRadioGroup"),re=new T.nKC("mat-radio-default-options",{providedIn:"root",factory:function xe(){return{color:"accent",disabledInteractive:!1}}});let Ee=(()=>{class be{_changeDetector=(0,T.WQX)(e.gRc);_value=null;_name=(0,T.WQX)(d.g).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new w.bkB;_radios;color;get name(){return this._name}set name(J){this._name=J,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(J){this._labelPosition="before"===J?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(J){this._selected=J,this.value=J?J.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(J){this._disabled=J,this._markRadiosForCheck()}get required(){return this._required}set required(J){this._required=J,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(J){this._disabledInteractive=J,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(J=>J===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(J=>{J.name=this.name,J._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(De=>{De.checked=this.value===De.value,De.checked&&(this._selected=De)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new j(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(J=>J._markForCheck())}writeValue(J){this.value=J,this._changeDetector.markForCheck()}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this.onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetector.markForCheck()}static \u0275fac=function(De){return new(De||be)};static \u0275dir=w.FsC({type:be,selectors:[["mat-radio-group"]],contentQueries:function(De,Re,Xe){if(1&De&&w.wni(Xe,V,5),2&De){let _e;w.mGM(_e=w.lsd())&&(Re._radios=_e)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[w.Jv_([W,{provide:G,useExisting:be}])]})}return be})(),V=(()=>{class be{_elementRef=(0,T.WQX)(w.aKT);_changeDetector=(0,T.WQX)(e.gRc);_focusMonitor=(0,T.WQX)(i.FN);_radioDispatcher=(0,T.WQX)(v.z);_defaultOptions=(0,T.WQX)(re,{optional:!0});_ngZone=(0,T.WQX)(w.SKi);_renderer=(0,T.WQX)(w.sFG);_uniqueId=(0,T.WQX)(d.g).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(J){this._checked!==J&&(this._checked=J,J&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!J&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),J&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===J),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(J){this._labelPosition=J}_labelPosition;get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(J){this._setDisabled(J)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(J){J!==this._required&&this._changeDetector.markForCheck(),this._required=J}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(J){this._color=J}_color;get disabledInteractive(){return this._disabledInteractive||null!==this.radioGroup&&this.radioGroup.disabledInteractive}set disabledInteractive(J){this._disabledInteractive=J}_disabledInteractive;change=new w.bkB;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=(0,u.Rc)();_injector=(0,T.WQX)(T.zZn);constructor(){(0,T.WQX)(f.l).load(L.A);const J=(0,T.WQX)(G,{optional:!0}),De=(0,T.WQX)(new e.ES_("tabindex"),{optional:!0});this.radioGroup=J,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,De&&(this.tabIndex=(0,e.Udg)(De,0))}focus(J,De){De?this._focusMonitor.focusVia(this._inputElement,De,J):this._inputElement.nativeElement.focus(J)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((J,De)=>{J!==this.id&&De===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{!J&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new j(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(J){if(J.stopPropagation(),!this.checked&&!this.disabled){const De=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),De&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(J){this._onInputInteraction(J),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(J){this._disabled!==J&&(this._disabled=J,this._changeDetector.markForCheck())}_onInputClick=J=>{this.disabled&&this.disabledInteractive&&J.preventDefault()};_updateTabIndex(){const J=this.radioGroup;let De;if(De=J&&J.selected&&!this.disabled?J.selected===this?this.tabIndex:-1:this.tabIndex,De!==this._previousTabIndex){const Re=this._inputElement?.nativeElement;Re&&(Re.setAttribute("tabindex",De+""),this._previousTabIndex=De,(0,w.mal)(()=>{queueMicrotask(()=>{J&&J.selected&&J.selected!==this&&document.activeElement===Re&&(J.selected?._inputElement.nativeElement.focus(),document.activeElement===Re&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(De){return new(De||be)};static \u0275cmp=w.VBU({type:be,selectors:[["mat-radio-button"]],viewQuery:function(De,Re){if(1&De&&(w.GBs(le,5),w.GBs(Ce,7,w.aKT)),2&De){let Xe;w.mGM(Xe=w.lsd())&&(Re._inputElement=Xe.first),w.mGM(Xe=w.lsd())&&(Re._rippleTrigger=Xe.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(De,Re){1&De&&w.bIt("focus",function(){return Re._inputElement.nativeElement.focus()}),2&De&&(w.BMQ("id",Re.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),w.AVh("mat-primary","primary"===Re.color)("mat-accent","accent"===Re.color)("mat-warn","warn"===Re.color)("mat-mdc-radio-checked",Re.checked)("mat-mdc-radio-disabled",Re.disabled)("mat-mdc-radio-disabled-interactive",Re.disabledInteractive)("_mat-animation-noopable",Re._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",e.L39],tabIndex:[2,"tabIndex","tabIndex",J=>null==J?0:(0,e.Udg)(J)],checked:[2,"checked","checked",e.L39],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Ae,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(De,Re){if(1&De){const Xe=w.RV6();w.NAR(),w.j41(0,"div",2,0)(2,"div",3)(3,"div",4),w.bIt("click",function(he){return T.eBV(Xe),T.Njj(Re._onTouchTargetClick(he))}),w.k0s(),w.j41(4,"input",5,1),w.bIt("change",function(he){return T.eBV(Xe),T.Njj(Re._onInputInteraction(he))}),w.k0s(),w.j41(6,"div",6),w.nrm(7,"div",7)(8,"div",8),w.k0s(),w.j41(9,"div",9),w.nrm(10,"div",10),w.k0s()(),w.j41(11,"label",11),w.SdG(12),w.k0s()()}2&De&&(w.Y8G("labelPosition",Re.labelPosition),w.R7$(2),w.AVh("mdc-radio--disabled",Re.disabled),w.R7$(2),w.Y8G("id",Re.inputId)("checked",Re.checked)("disabled",Re.disabled&&!Re.disabledInteractive)("required",Re.required),w.BMQ("name",Re.name)("value",Re.value)("aria-label",Re.ariaLabel)("aria-labelledby",Re.ariaLabelledby)("aria-describedby",Re.ariaDescribedby)("aria-disabled",Re.disabled&&Re.disabledInteractive?"true":null),w.R7$(5),w.Y8G("matRippleTrigger",Re._rippleTrigger.nativeElement)("matRippleDisabled",Re._isRippleDisabled())("matRippleCentered",!0),w.R7$(2),w.Y8G("for",Re.inputId))},dependencies:[C.r6,B.t],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return be})(),ce=(()=>{class be{static \u0275fac=function(De){return new(De||be)};static \u0275mod=w.$C({type:be});static \u0275inj=T.G2t({imports:[A.y,Pe.p,V,A.y]})}return be})()},1048(Zt,pe,l){"use strict";l.d(pe,{E:()=>A});var i=l(2615),d=l(3664),v=l(9842),T=l(4522),w=l(1804),e=l(2496);const O={capture:!0},f=["focus","mousedown","mouseenter","touchstart"],u="mat-ripple-loader-uninitialized",L="mat-ripple-loader-class-name",C="mat-ripple-loader-centered",B="mat-ripple-loader-disabled";let A=(()=>{class Pe{_document=(0,i.WQX)(i.qQL);_animationsDisabled=(0,w.Rc)();_globalRippleOptions=(0,i.WQX)(e.$E,{optional:!0});_platform=(0,i.WQX)(v.O);_ngZone=(0,i.WQX)(d.SKi);_injector=(0,i.WQX)(i.zZn);_eventCleanups;_hosts=new Map;constructor(){const Ce=(0,i.WQX)(d._9s).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>f.map(Ae=>Ce.listen(this._document,Ae,this._onInteraction,O)))}ngOnDestroy(){const Ce=this._hosts.keys();for(const Ae of Ce)this.destroyRipple(Ae);this._eventCleanups.forEach(Ae=>Ae())}configureRipple(Ce,Ae){Ce.setAttribute(u,this._globalRippleOptions?.namespace??""),(Ae.className||!Ce.hasAttribute(L))&&Ce.setAttribute(L,Ae.className||""),Ae.centered&&Ce.setAttribute(C,""),Ae.disabled&&Ce.setAttribute(B,"")}setDisabled(Ce,Ae){const j=this._hosts.get(Ce);j?(j.target.rippleDisabled=Ae,!Ae&&!j.hasSetUpEvents&&(j.hasSetUpEvents=!0,j.renderer.setupTriggerEvents(Ce))):Ae?Ce.setAttribute(B,""):Ce.removeAttribute(B)}_onInteraction=Ce=>{const Ae=(0,T.Fb)(Ce);if(Ae instanceof HTMLElement){const j=Ae.closest(`[${u}="${this._globalRippleOptions?.namespace??""}"]`);j&&this._createRipple(j)}};_createRipple(Ce){if(!this._document||this._hosts.has(Ce))return;Ce.querySelector(".mat-ripple")?.remove();const Ae=this._document.createElement("span");Ae.classList.add("mat-ripple",Ce.getAttribute(L)),Ce.append(Ae);const j=this._globalRippleOptions,W=this._animationsDisabled?0:j?.animation?.enterDuration??e.EX.enterDuration,G=this._animationsDisabled?0:j?.animation?.exitDuration??e.EX.exitDuration,re={rippleDisabled:this._animationsDisabled||j?.disabled||Ce.hasAttribute(B),rippleConfig:{centered:Ce.hasAttribute(C),terminateOnPointerUp:j?.terminateOnPointerUp,animation:{enterDuration:W,exitDuration:G}}},xe=new e.ug(re,this._ngZone,Ae,this._platform,this._injector),Ee=!re.rippleDisabled;Ee&&xe.setupTriggerEvents(Ce),this._hosts.set(Ce,{target:re,renderer:xe,hasSetUpEvents:Ee}),Ce.removeAttribute(u)}destroyRipple(Ce){const Ae=this._hosts.get(Ce);Ae&&(Ae.renderer._removeTriggerEvents(),this._hosts.delete(Ce))}static \u0275fac=function(Ae){return new(Ae||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})()},6881(Zt,pe,l){"use strict";l.d(pe,{p:()=>T});var i=l(2615),d=l(3664),v=l(2466);let T=(()=>{class w{static \u0275fac=function(f){return new(f||w)};static \u0275mod=d.$C({type:w});static \u0275inj=i.G2t({imports:[v.y,v.y]})}return w})()},2496(Zt,pe,l){"use strict";l.d(pe,{$E:()=>xe,EX:()=>Pe,r6:()=>Ee,ug:()=>G});var i=l(9842),d=l(3300),v=l(4522),T=l(3664),w=l(2615),e=l(5735),O=l(7847),f=l(8968),u=l(1804),L=function(V){return V[V.FADING_IN=0]="FADING_IN",V[V.VISIBLE=1]="VISIBLE",V[V.FADING_OUT=2]="FADING_OUT",V[V.HIDDEN=3]="HIDDEN",V}(L||{});class C{_renderer;element;config;_animationForciblyDisabledThroughCss;state=L.HIDDEN;constructor(ce,be,ne,J=!1){this._renderer=ce,this.element=be,this.config=ne,this._animationForciblyDisabledThroughCss=J}fadeOut(){this._renderer.fadeOutRipple(this)}}const B=(0,d.B)({passive:!0,capture:!0});class A{_events=new Map;addHandler(ce,be,ne,J){const De=this._events.get(be);if(De){const Re=De.get(ne);Re?Re.add(J):De.set(ne,new Set([J]))}else this._events.set(be,new Map([[ne,new Set([J])]])),ce.runOutsideAngular(()=>{document.addEventListener(be,this._delegateEventHandler,B)})}removeHandler(ce,be,ne){const J=this._events.get(ce);if(!J)return;const De=J.get(be);De&&(De.delete(ne),0===De.size&&J.delete(be),0===J.size&&(this._events.delete(ce),document.removeEventListener(ce,this._delegateEventHandler,B)))}_delegateEventHandler=ce=>{const be=(0,v.Fb)(ce);be&&this._events.get(ce.type)?.forEach((ne,J)=>{(J===be||J.contains(be))&&ne.forEach(De=>De.handleEvent(ce))})}}const Pe={enterDuration:225,exitDuration:150},Ce=(0,d.B)({passive:!0,capture:!0}),Ae=["mousedown","touchstart"],j=["mouseup","mouseleave","touchend","touchcancel"];let W=(()=>{class V{static \u0275fac=function(ne){return new(ne||V)};static \u0275cmp=T.VBU({type:V,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(ne,J){},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}\n"],encapsulation:2,changeDetection:0})}return V})();class G{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new A;constructor(ce,be,ne,J,De){this._target=ce,this._ngZone=be,this._platform=J,J.isBrowser&&(this._containerElement=(0,O.i8)(ne)),De&&De.get(f.l).load(W)}fadeInRipple(ce,be,ne={}){const J=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),De={...Pe,...ne.animation};ne.centered&&(ce=J.left+J.width/2,be=J.top+J.height/2);const Re=ne.radius||function re(V,ce,be){const ne=Math.max(Math.abs(V-be.left),Math.abs(V-be.right)),J=Math.max(Math.abs(ce-be.top),Math.abs(ce-be.bottom));return Math.sqrt(ne*ne+J*J)}(ce,be,J),Xe=ce-J.left,_e=be-J.top,he=De.enterDuration,Dt=document.createElement("div");Dt.classList.add("mat-ripple-element"),Dt.style.left=Xe-Re+"px",Dt.style.top=_e-Re+"px",Dt.style.height=2*Re+"px",Dt.style.width=2*Re+"px",null!=ne.color&&(Dt.style.backgroundColor=ne.color),Dt.style.transitionDuration=`${he}ms`,this._containerElement.appendChild(Dt);const lt=window.getComputedStyle(Dt),te=lt.transitionDuration,ie="none"===lt.transitionProperty||"0s"===te||"0s, 0s"===te||0===J.width&&0===J.height,P=new C(this,Dt,ne,ie);Dt.style.transform="scale3d(1, 1, 1)",P.state=L.FADING_IN,ne.persistent||(this._mostRecentTransientRipple=P);let F=null;return!ie&&(he||De.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const ve=()=>{F&&(F.fallbackTimer=null),clearTimeout($),this._finishRippleTransition(P)},H=()=>this._destroyRipple(P),$=setTimeout(H,he+100);Dt.addEventListener("transitionend",ve),Dt.addEventListener("transitioncancel",H),F={onTransitionEnd:ve,onTransitionCancel:H,fallbackTimer:$}}),this._activeRipples.set(P,F),(ie||!he)&&this._finishRippleTransition(P),P}fadeOutRipple(ce){if(ce.state===L.FADING_OUT||ce.state===L.HIDDEN)return;const be=ce.element,ne={...Pe,...ce.config.animation};be.style.transitionDuration=`${ne.exitDuration}ms`,be.style.opacity="0",ce.state=L.FADING_OUT,(ce._animationForciblyDisabledThroughCss||!ne.exitDuration)&&this._finishRippleTransition(ce)}fadeOutAll(){this._getActiveRipples().forEach(ce=>ce.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(ce=>{ce.config.persistent||ce.fadeOut()})}setupTriggerEvents(ce){const be=(0,O.i8)(ce);!this._platform.isBrowser||!be||be===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=be,Ae.forEach(ne=>{G._eventManager.addHandler(this._ngZone,ne,be,this)}))}handleEvent(ce){"mousedown"===ce.type?this._onMousedown(ce):"touchstart"===ce.type?this._onTouchStart(ce):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{j.forEach(be=>{this._triggerElement.addEventListener(be,this,Ce)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(ce){ce.state===L.FADING_IN?this._startFadeOutTransition(ce):ce.state===L.FADING_OUT&&this._destroyRipple(ce)}_startFadeOutTransition(ce){const be=ce===this._mostRecentTransientRipple,{persistent:ne}=ce.config;ce.state=L.VISIBLE,!ne&&(!be||!this._isPointerDown)&&ce.fadeOut()}_destroyRipple(ce){const be=this._activeRipples.get(ce)??null;this._activeRipples.delete(ce),this._activeRipples.size||(this._containerRect=null),ce===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),ce.state=L.HIDDEN,null!==be&&(ce.element.removeEventListener("transitionend",be.onTransitionEnd),ce.element.removeEventListener("transitioncancel",be.onTransitionCancel),null!==be.fallbackTimer&&clearTimeout(be.fallbackTimer)),ce.element.remove()}_onMousedown(ce){const be=(0,e._)(ce),ne=this._lastTouchStartEvent&&Date.now(){!ce.config.persistent&&(ce.state===L.VISIBLE||ce.config.terminateOnPointerUp&&ce.state===L.FADING_IN)&&ce.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const ce=this._triggerElement;ce&&(Ae.forEach(be=>G._eventManager.removeHandler(be,ce,this)),this._pointerUpEventsRegistered&&(j.forEach(be=>ce.removeEventListener(be,this,Ce)),this._pointerUpEventsRegistered=!1))}}const xe=new w.nKC("mat-ripple-global-options");let Ee=(()=>{class V{_elementRef=(0,w.WQX)(T.aKT);_animationsDisabled=(0,u.Rc)();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(be){be&&this.fadeOutAllNonPersistent(),this._disabled=be,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(be){this._trigger=be,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const be=(0,w.WQX)(T.SKi),ne=(0,w.WQX)(i.O),J=(0,w.WQX)(xe,{optional:!0}),De=(0,w.WQX)(w.zZn);this._globalOptions=J||{},this._rippleRenderer=new G(this,be,this._elementRef,ne,De)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,...this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(be,ne=0,J){return"number"==typeof be?this._rippleRenderer.fadeInRipple(be,ne,{...this.rippleConfig,...J}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...be})}static \u0275fac=function(ne){return new(ne||V)};static \u0275dir=T.FsC({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ne,J){2&ne&&T.AVh("mat-ripple-unbounded",J.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return V})()},6183(Zt,pe,l){"use strict";l.d(pe,{$2:()=>fe,JO:()=>ot,VO:()=>Ye,Ve:()=>Qe});var i=l(9338),d=l(2615),v=l(3664),T=l(7705),w=l(5718),e=l(8617),O=l(7094),f=l(9726),u=l(9090),L=l(1577),C=l(3869),B=l(7336),A=l(438),Pe=l(9417),le=l(1413),Ce=l(9030),Ae=l(7786),j=l(5964),W=l(6354),G=l(9172),re=l(5558),xe=l(6697),Ee=l(6977),V=l(2200),ce=l(9588),be=l(1804),ne=l(3029),J=l(2709),De=l(9336),Re=l(146),Xe=l(2466),_e=l(1228);const he=["trigger"],Dt=["panel"],lt=[[["mat-select-trigger"]],"*"],Le=["mat-select-trigger","*"];function te(gt,Gt){if(1>&&(v.j41(0,"span",4),v.EFF(1),v.k0s()),2>){const rt=v.XpG();v.R7$(),v.JRh(rt.placeholder)}}function ie(gt,Gt){1>&&v.SdG(0)}function P(gt,Gt){if(1>&&(v.j41(0,"span",11),v.EFF(1),v.k0s()),2>){const rt=v.XpG(2);v.R7$(),v.JRh(rt.triggerValue)}}function F(gt,Gt){if(1>&&(v.j41(0,"span",5),v.nVh(1,ie,1,0)(2,P,2,1,"span",11),v.k0s()),2>){const rt=v.XpG();v.R7$(),v.vxM(rt.customTrigger?1:2)}}function ve(gt,Gt){if(1>){const rt=v.RV6();v.j41(0,"div",12,1),v.bIt("keydown",function(Ft){d.eBV(rt);const Sn=v.XpG();return d.Njj(Sn._handleKeydown(Ft))}),v.SdG(2,1),v.k0s()}if(2>){const rt=v.XpG();v.HbH(v.VkB("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",rt._getPanelTheme())),v.AVh("mat-select-panel-animations-enabled",!rt._animationsDisabled),v.Y8G("ngClass",rt.panelClass),v.BMQ("id",rt.id+"-panel")("aria-multiselectable",rt.multiple)("aria-label",rt.ariaLabel||null)("aria-labelledby",rt._getPanelAriaLabelledby())}}const Vt=new d.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const gt=(0,d.WQX)(d.zZn);return()=>(0,i.RH)(gt)}}),ot=new d.nKC("MAT_SELECT_CONFIG"),nt={provide:Vt,deps:[],useFactory:function St(gt){const Gt=(0,d.WQX)(d.zZn);return()=>(0,i.RH)(Gt)}},ht=new d.nKC("MatSelectTrigger");class oe{source;value;constructor(Gt,rt){this.source=Gt,this.value=rt}}let Ye=(()=>{class gt{_viewportRuler=(0,d.WQX)(w.Xj);_changeDetectorRef=(0,d.WQX)(T.gRc);_elementRef=(0,d.WQX)(v.aKT);_dir=(0,d.WQX)(L.dS,{optional:!0});_idGenerator=(0,d.WQX)(f.g);_renderer=(0,d.WQX)(v.sFG);_parentFormField=(0,d.WQX)(ce.xb,{optional:!0});ngControl=(0,d.WQX)(Pe.vO,{self:!0,optional:!0});_liveAnnouncer=(0,d.WQX)(O.Ai);_defaultOptions=(0,d.WQX)(ot,{optional:!0});_animationsDisabled=(0,be.Rc)();_initialized=new le.B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(rt){const cn=this.options.toArray()[rt];if(cn){const Ft=this.panel.nativeElement,Sn=(0,ne.jb)(rt,this.options,this.optionGroups),Qn=cn._getHostElement();Ft.scrollTop=0===rt&&1===Sn?0:(0,ne.TL)(Qn.offsetTop,Qn.offsetHeight,Ft.scrollTop,Ft.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(rt){return new oe(this,rt)}_scrollStrategyFactory=(0,d.WQX)(Vt);_panelOpen=!1;_compareWith=(rt,cn)=>rt===cn;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new le.B;_errorStateTracker;stateChanges=new le.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(rt){this._disableRipple.set(rt)}_disableRipple=(0,d.vPA)(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(rt){this._hideSingleSelectionIndicator=rt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(rt){this._placeholder=rt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Pe.k0.required)??!1}set required(rt){this._required=rt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(rt){this._multiple=rt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(rt){this._compareWith=rt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(rt){this._assignValue(rt)&&this._onChange(rt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(rt){this._errorStateTracker.matcher=rt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(rt){this._id=rt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(rt){this._errorStateTracker.errorState=rt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=(0,Ce.v)(()=>{const rt=this.options;return rt?rt.changes.pipe((0,G.Z)(rt),(0,re.n)(()=>(0,Ae.h)(...rt.map(cn=>cn.onSelectionChange)))):this._initialized.pipe((0,re.n)(()=>this.optionSelectionChanges))});openedChange=new v.bkB;_openedStream=this.openedChange.pipe((0,j.p)(rt=>rt),(0,W.T)(()=>{}));_closedStream=this.openedChange.pipe((0,j.p)(rt=>!rt),(0,W.T)(()=>{}));selectionChange=new v.bkB;valueChange=new v.bkB;constructor(){const rt=(0,d.WQX)(J.e),cn=(0,d.WQX)(Pe.cV,{optional:!0}),Ft=(0,d.WQX)(Pe.j4,{optional:!0}),Sn=(0,d.WQX)(new T.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new De.X(rt,this.ngControl,Ft,cn,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Sn?0:parseInt(Sn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new C.C(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe((0,Ee.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,Ee.Q)(this._destroy)).subscribe(rt=>{rt.added.forEach(cn=>cn.select()),rt.removed.forEach(cn=>cn.deselect())}),this.options.changes.pipe((0,G.Z)(null),(0,Ee.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const rt=this._getTriggerAriaLabelledby(),cn=this.ngControl;if(rt!==this._triggerAriaLabelledBy){const Ft=this._elementRef.nativeElement;this._triggerAriaLabelledBy=rt,rt?Ft.setAttribute("aria-labelledby",rt):Ft.removeAttribute("aria-labelledby")}cn&&(this._previousControl!==cn.control&&(void 0!==this._previousControl&&null!==cn.disabled&&cn.disabled!==this.disabled&&(this.disabled=cn.disabled),this._previousControl=cn.control),this.updateErrorState())}ngOnChanges(rt){(rt.disabled||rt.userAriaDescribedBy)&&this.stateChanges.next(),rt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe((0,xe.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){const rt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!rt)return;const cn=`${this.id}-panel`;this._trackedModal&&(0,e.Ae)(this._trackedModal,"aria-owns",cn),(0,e.px)(rt,"aria-owns",cn),this._trackedModal=rt}_clearFromModal(){this._trackedModal&&((0,e.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel)return void this._detachOverlay();this._cleanupDetach?.(),this._cleanupDetach=()=>{cn(),clearTimeout(Ft),this._cleanupDetach=void 0};const rt=this.panel.nativeElement,cn=this._renderer.listen(rt,"animationend",Sn=>{"_mat-select-exit"===Sn.animationName&&(this._cleanupDetach?.(),this._detachOverlay())}),Ft=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);rt.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(rt){this._assignValue(rt)}registerOnChange(rt){this._onChange=rt}registerOnTouched(rt){this._onTouched=rt}setDisabledState(rt){this.disabled=rt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const rt=this._selectionModel.selected.map(cn=>cn.viewValue);return this._isRtl()&&rt.reverse(),rt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(rt){this.disabled||(this.panelOpen?this._handleOpenKeydown(rt):this._handleClosedKeydown(rt))}_handleClosedKeydown(rt){const cn=rt.keyCode,Ft=cn===A.n6||cn===A.i7||cn===A.UQ||cn===A.LE,Sn=cn===A.Fm||cn===A.t6,Qn=this._keyManager;if(!Qn.isTyping()&&Sn&&!(0,B.rp)(rt)||(this.multiple||rt.altKey)&&Ft)rt.preventDefault(),this.open();else if(!this.multiple){const h=this.selected;Qn.onKeydown(rt);const jt=this.selected;jt&&h!==jt&&this._liveAnnouncer.announce(jt.viewValue,1e4)}}_handleOpenKeydown(rt){const cn=this._keyManager,Ft=rt.keyCode,Sn=Ft===A.n6||Ft===A.i7,Qn=cn.isTyping();if(Sn&&rt.altKey)rt.preventDefault(),this.close();else if(Qn||Ft!==A.Fm&&Ft!==A.t6||!cn.activeItem||(0,B.rp)(rt))if(!Qn&&this._multiple&&Ft===A.A&&rt.ctrlKey){rt.preventDefault();const h=this.options.some(jt=>!jt.disabled&&!jt.selected);this.options.forEach(jt=>{jt.disabled||(h?jt.select():jt.deselect())})}else{const h=cn.activeItemIndex;cn.onKeydown(rt),this._multiple&&Sn&&rt.shiftKey&&cn.activeItem&&cn.activeItemIndex!==h&&cn.activeItem._selectViaInteraction()}else rt.preventDefault(),cn.activeItem._selectViaInteraction()}_handleOverlayKeydown(rt){rt.keyCode===A._f&&!(0,B.rp)(rt)&&(rt.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(rt){if(this.options.forEach(cn=>cn.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&rt)Array.isArray(rt),rt.forEach(cn=>this._selectOptionByValue(cn)),this._sortValues();else{const cn=this._selectOptionByValue(rt);cn?this._keyManager.updateActiveItem(cn):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(rt){const cn=this.options.find(Ft=>{if(this._selectionModel.isSelected(Ft))return!1;try{return(null!=Ft.value||this.canSelectNullableOptions)&&this._compareWith(Ft.value,rt)}catch{return!1}});return cn&&this._selectionModel.select(cn),cn}_assignValue(rt){return!!(rt!==this._value||this._multiple&&Array.isArray(rt))&&(this.options&&this._setSelectionByValue(rt),this._value=rt,!0)}_skipPredicate=rt=>!this.panelOpen&&rt.disabled;_getOverlayWidth(rt){return"auto"===this.panelWidth?(rt instanceof i.$Q?rt.elementRef:rt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const rt of this.options)rt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new u.A(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const rt=(0,Ae.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Ee.Q)(rt)).subscribe(cn=>{this._onSelect(cn.source,cn.isUserInput),cn.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,Ae.h)(...this.options.map(cn=>cn._stateChanges)).pipe((0,Ee.Q)(rt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(rt,cn){const Ft=this._selectionModel.isSelected(rt);this.canSelectNullableOptions||null!=rt.value||this._multiple?(Ft!==rt.selected&&(rt.selected?this._selectionModel.select(rt):this._selectionModel.deselect(rt)),cn&&this._keyManager.setActiveItem(rt),this.multiple&&(this._sortValues(),cn&&this.focus())):(rt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(rt.value)),Ft!==this._selectionModel.isSelected(rt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const rt=this.options.toArray();this._selectionModel.sort((cn,Ft)=>this.sortComparator?this.sortComparator(cn,Ft,rt):rt.indexOf(cn)-rt.indexOf(Ft)),this.stateChanges.next()}}_propagateChanges(rt){let cn;cn=this.multiple?this.selected.map(Ft=>Ft.value):this.selected?this.selected.value:rt,this._value=cn,this.valueChange.emit(cn),this._onChange(cn),this.selectionChange.emit(this._getChangeEvent(cn)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let rt=-1;for(let cn=0;cn0&&!!this._overlayDir}focus(rt){this._elementRef.nativeElement.focus(rt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const rt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(rt?rt+" ":"")+this.ariaLabelledby:rt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let rt=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(rt+=" "+this.ariaLabelledby),rt||(rt=this._valueId),rt}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(rt){rt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",rt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(cn){return new(cn||gt)};static \u0275cmp=v.VBU({type:gt,selectors:[["mat-select"]],contentQueries:function(cn,Ft,Sn){if(1&cn&&(v.wni(Sn,ht,5),v.wni(Sn,ne.wT,5),v.wni(Sn,ne.QC,5)),2&cn){let Qn;v.mGM(Qn=v.lsd())&&(Ft.customTrigger=Qn.first),v.mGM(Qn=v.lsd())&&(Ft.options=Qn),v.mGM(Qn=v.lsd())&&(Ft.optionGroups=Qn)}},viewQuery:function(cn,Ft){if(1&cn&&(v.GBs(he,5),v.GBs(Dt,5),v.GBs(i.WB,5)),2&cn){let Sn;v.mGM(Sn=v.lsd())&&(Ft.trigger=Sn.first),v.mGM(Sn=v.lsd())&&(Ft.panel=Sn.first),v.mGM(Sn=v.lsd())&&(Ft._overlayDir=Sn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(cn,Ft){1&cn&&v.bIt("keydown",function(Qn){return Ft._handleKeydown(Qn)})("focus",function(){return Ft._onFocus()})("blur",function(){return Ft._onBlur()}),2&cn&&(v.BMQ("id",Ft.id)("tabindex",Ft.disabled?-1:Ft.tabIndex)("aria-controls",Ft.panelOpen?Ft.id+"-panel":null)("aria-expanded",Ft.panelOpen)("aria-label",Ft.ariaLabel||null)("aria-required",Ft.required.toString())("aria-disabled",Ft.disabled.toString())("aria-invalid",Ft.errorState)("aria-activedescendant",Ft._getAriaActiveDescendant()),v.AVh("mat-mdc-select-disabled",Ft.disabled)("mat-mdc-select-invalid",Ft.errorState)("mat-mdc-select-required",Ft.required)("mat-mdc-select-empty",Ft.empty)("mat-mdc-select-multiple",Ft.multiple)("mat-select-open",Ft.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",T.L39],disableRipple:[2,"disableRipple","disableRipple",T.L39],tabIndex:[2,"tabIndex","tabIndex",rt=>null==rt?0:(0,T.Udg)(rt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",T.L39],placeholder:"placeholder",required:[2,"required","required",T.L39],multiple:[2,"multiple","multiple",T.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",T.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",T.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",T.L39]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[v.Jv_([{provide:ce.qT,useExisting:gt},{provide:ne.is,useExisting:gt}]),v.OA$],ngContentSelectors:Le,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(cn,Ft){if(1&cn){const Sn=v.RV6();v.NAR(lt),v.j41(0,"div",2,0),v.bIt("click",function(){return d.eBV(Sn),d.Njj(Ft.open())}),v.j41(3,"div",3),v.nVh(4,te,2,1,"span",4)(5,F,3,1,"span",5),v.k0s(),v.j41(6,"div",6)(7,"div",7),d.qSk(),v.j41(8,"svg",8),v.nrm(9,"path",9),v.k0s()()()(),v.DNE(10,ve,3,10,"ng-template",10),v.bIt("detach",function(){return d.eBV(Sn),d.Njj(Ft.close())})("backdropClick",function(){return d.eBV(Sn),d.Njj(Ft.close())})("overlayKeydown",function(h){return d.eBV(Sn),d.Njj(Ft._handleOverlayKeydown(h))})}if(2&cn){const Sn=v.sdS(1);v.R7$(3),v.BMQ("id",Ft._valueId),v.R7$(),v.vxM(Ft.empty?4:5),v.R7$(6),v.Y8G("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",Ft._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",Ft._scrollStrategy)("cdkConnectedOverlayOrigin",Ft._preferredOverlayOrigin||Sn)("cdkConnectedOverlayPositions",Ft._positions)("cdkConnectedOverlayWidth",Ft._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[i.$Q,i.WB,V.YU],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],encapsulation:2,changeDetection:0})}return gt})(),fe=(()=>{class gt{static \u0275fac=function(cn){return new(cn||gt)};static \u0275dir=v.FsC({type:gt,selectors:[["mat-select-trigger"]],features:[v.Jv_([{provide:ht,useExisting:gt}])]})}return gt})(),Qe=(()=>{class gt{static \u0275fac=function(cn){return new(cn||gt)};static \u0275mod=v.$C({type:gt});static \u0275inj=d.G2t({providers:[nt],imports:[i.z_,Re.S,Xe.y,w.Gj,_e.R,Re.S,Xe.y]})}return gt})()},882(Zt,pe,l){"use strict";l.d(pe,{El:()=>$,LG:()=>Ke,US:()=>Vt,vg:()=>St});var i=l(6838),d=l(7094),v=l(1577),T=l(4085),w=l(7847),e=l(7336),O=l(438),f=l(9842),u=l(5718),L=l(2615),C=l(3664),B=l(7705),A=l(1413),Pe=l(3726),le=l(7786),Ce=l(152),Ae=l(5964),j=l(6354),W=l(3703),G=l(9172),re=l(6697),xe=l(6977),Ee=l(1804),V=l(2466);const ce=["*"],be=["content"],ne=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],J=["mat-drawer","mat-drawer-content","*"];function De(nt,ht){if(1&nt){const oe=C.RV6();C.j41(0,"div",1),C.bIt("click",function(){L.eBV(oe);const fe=C.XpG();return L.Njj(fe._onBackdropClicked())}),C.k0s()}if(2&nt){const oe=C.XpG();C.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function Re(nt,ht){1&nt&&(C.j41(0,"mat-drawer-content"),C.SdG(1,2),C.k0s())}const Xe=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_e=["mat-sidenav","mat-sidenav-content","*"];function he(nt,ht){if(1&nt){const oe=C.RV6();C.j41(0,"div",1),C.bIt("click",function(){L.eBV(oe);const fe=C.XpG();return L.Njj(fe._onBackdropClicked())}),C.k0s()}if(2&nt){const oe=C.XpG();C.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function Dt(nt,ht){1&nt&&(C.j41(0,"mat-sidenav-content"),C.SdG(1,2),C.k0s())}const te=new L.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function P(){return!1}}),ie=new L.nKC("MAT_DRAWER_CONTAINER");let F=(()=>{class nt extends u.uv{_platform=(0,L.WQX)(f.O);_changeDetectorRef=(0,L.WQX)(B.gRc);_container=(0,L.WQX)(H);constructor(){super((0,L.WQX)(C.aKT),(0,L.WQX)(u.R),(0,L.WQX)(C.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:oe,end:Ye}=this._container;return null!=oe&&"over"!==oe.mode&&oe.opened||null!=Ye&&"over"!==Ye.mode&&Ye.opened}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=C.VBU({type:nt,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Ye,fe){2&Ye&&(C.xc7("margin-left",fe._container._contentMargins.left,"px")("margin-right",fe._container._contentMargins.right,"px"),C.AVh("mat-drawer-content-hidden",fe._shouldBeHidden()))},features:[C.Jv_([{provide:u.uv,useExisting:nt}]),C.Vt3],ngContentSelectors:ce,decls:1,vars:0,template:function(Ye,fe){1&Ye&&(C.NAR(),C.SdG(0))},encapsulation:2,changeDetection:0})}return nt})(),ve=(()=>{class nt{_elementRef=(0,L.WQX)(C.aKT);_focusTrapFactory=(0,L.WQX)(d.GX);_focusMonitor=(0,L.WQX)(i.FN);_platform=(0,L.WQX)(f.O);_ngZone=(0,L.WQX)(C.SKi);_renderer=(0,L.WQX)(C.sFG);_interactivityChecker=(0,L.WQX)(d.Z7);_doc=(0,L.WQX)(L.qQL);_container=(0,L.WQX)(ie,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(oe){(oe="end"===oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(oe),this._position=oe,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(oe){this._mode=oe,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(oe){this._disableClose=(0,T.he)(oe)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(oe){("true"===oe||"false"===oe||null==oe)&&(oe=(0,T.he)(oe)),this._autoFocus=oe}_autoFocus;get opened(){return this._opened()}set opened(oe){this.toggle((0,T.he)(oe))}_opened=(0,L.vPA)(!1);_openedVia;_animationStarted=new A.B;_animationEnd=new A.B;openedChange=new C.bkB(!0);_openedStream=this.openedChange.pipe((0,Ae.p)(oe=>oe),(0,j.T)(()=>{}));openedStart=this._animationStarted.pipe((0,Ae.p)(()=>this.opened),(0,W.u)(void 0));_closedStream=this.openedChange.pipe((0,Ae.p)(oe=>!oe),(0,j.T)(()=>{}));closedStart=this._animationStarted.pipe((0,Ae.p)(()=>!this.opened),(0,W.u)(void 0));_destroyed=new A.B;onPositionChanged=new C.bkB;_content;_modeChanged=new A.B;_injector=(0,L.WQX)(L.zZn);_changeDetectorRef=(0,L.WQX)(B.gRc);constructor(){this.openedChange.pipe((0,xe.Q)(this._destroyed)).subscribe(oe=>{oe?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{const oe=this._elementRef.nativeElement;(0,Pe.R)(oe,"keydown").pipe((0,Ae.p)(Ye=>Ye.keyCode===O._f&&!this.disableClose&&!(0,e.rp)(Ye)),(0,xe.Q)(this._destroyed)).subscribe(Ye=>this._ngZone.run(()=>{this.close(),Ye.stopPropagation(),Ye.preventDefault()})),this._eventCleanups=[this._renderer.listen(oe,"transitionrun",this._handleTransitionEvent),this._renderer.listen(oe,"transitionend",this._handleTransitionEvent),this._renderer.listen(oe,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(oe,Ye){this._interactivityChecker.isFocusable(oe)||(oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const fe=()=>{Qe(),gt(),oe.removeAttribute("tabindex")},Qe=this._renderer.listen(oe,"blur",fe),gt=this._renderer.listen(oe,"mousedown",fe)})),oe.focus(Ye)}_focusByCssSelector(oe,Ye){let fe=this._elementRef.nativeElement.querySelector(oe);fe&&this._forceFocus(fe,Ye)}_takeFocus(){if(!this._focusTrap)return;const oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,C.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof oe.focus&&oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const oe=this._doc.activeElement;return!!oe&&this._elementRef.nativeElement.contains(oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(oe=>oe()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(oe){return this.toggle(!0,oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(oe=!this.opened,Ye){oe&&Ye&&(this._openedVia=Ye);const fe=this._setOpen(oe,!oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return oe||(this._openedVia=null),fe}_setOpen(oe,Ye,fe){return oe===this.opened?Promise.resolve(oe?"open":"close"):(this._opened.set(oe),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",oe),!oe&&Ye&&this._restoreFocus(fe),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(Qe=>{this.openedChange.pipe((0,re.s)(1)).subscribe(gt=>Qe(gt?"open":"close"))}))}_setIsAnimating(oe){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",oe)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(oe){if(!this._platform.isBrowser)return;const Ye=this._elementRef.nativeElement,fe=Ye.parentNode;"end"===oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),fe.insertBefore(this._anchor,Ye)),fe.appendChild(Ye)):this._anchor&&this._anchor.parentNode.insertBefore(Ye,this._anchor)}_handleTransitionEvent=oe=>{oe.target===this._elementRef.nativeElement&&this._ngZone.run(()=>{"transitionrun"===oe.type?this._animationStarted.next(oe):("transitionend"===oe.type&&this._setIsAnimating(!1),this._animationEnd.next(oe))})};static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=C.VBU({type:nt,selectors:[["mat-drawer"]],viewQuery:function(Ye,fe){if(1&Ye&&C.GBs(be,5),2&Ye){let Qe;C.mGM(Qe=C.lsd())&&(fe._content=Qe.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(Ye,fe){2&Ye&&(C.BMQ("align",null)("tabIndex","side"!==fe.mode?"-1":null),C.xc7("visibility",fe._container||fe.opened?null:"hidden"),C.AVh("mat-drawer-end","end"===fe.position)("mat-drawer-over","over"===fe.mode)("mat-drawer-push","push"===fe.mode)("mat-drawer-side","side"===fe.mode))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:ce,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Ye,fe){1&Ye&&(C.NAR(),C.j41(0,"div",1,0),C.SdG(2),C.k0s())},dependencies:[u.uv],encapsulation:2,changeDetection:0})}return nt})(),H=(()=>{class nt{_dir=(0,L.WQX)(v.dS,{optional:!0});_element=(0,L.WQX)(C.aKT);_ngZone=(0,L.WQX)(C.SKi);_changeDetectorRef=(0,L.WQX)(B.gRc);_animationDisabled=(0,Ee.Rc)();_transitionsEnabled=!1;_allDrawers;_drawers=new C.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(oe){this._autosize=(0,T.he)(oe)}_autosize=(0,L.WQX)(te);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(oe){this._backdropOverride=null==oe?null:(0,T.he)(oe)}_backdropOverride;backdropClick=new C.bkB;_start;_end;_left;_right;_destroyed=new A.B;_doCheckSubject=new A.B;_contentMargins={left:null,right:null};_contentMarginChanges=new A.B;get scrollable(){return this._userContent||this._content}_injector=(0,L.WQX)(L.zZn);constructor(){const oe=(0,L.WQX)(f.O),Ye=(0,L.WQX)(u.Xj);this._dir?.change.pipe((0,xe.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ye.change().pipe((0,xe.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&oe.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe((0,G.Z)(this._allDrawers),(0,xe.Q)(this._destroyed)).subscribe(oe=>{this._drawers.reset(oe.filter(Ye=>!Ye._container||Ye._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,G.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(oe=>{this._watchDrawerToggle(oe),this._watchDrawerPosition(oe),this._watchDrawerMode(oe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Ce.B)(10),(0,xe.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(oe=>oe.open())}close(){this._drawers.forEach(oe=>oe.close())}updateContentMargins(){let oe=0,Ye=0;if(this._left&&this._left.opened)if("side"==this._left.mode)oe+=this._left._getWidth();else if("push"==this._left.mode){const fe=this._left._getWidth();oe+=fe,Ye-=fe}if(this._right&&this._right.opened)if("side"==this._right.mode)Ye+=this._right._getWidth();else if("push"==this._right.mode){const fe=this._right._getWidth();Ye+=fe,oe-=fe}oe=oe||null,Ye=Ye||null,(oe!==this._contentMargins.left||Ye!==this._contentMargins.right)&&(this._contentMargins={left:oe,right:Ye},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(oe){oe._animationStarted.pipe((0,xe.Q)(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==oe.mode&&oe.openedChange.pipe((0,xe.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(oe.opened))}_watchDrawerPosition(oe){oe.onPositionChanged.pipe((0,xe.Q)(this._drawers.changes)).subscribe(()=>{(0,C.mal)({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(oe){oe._modeChanged.pipe((0,xe.Q)((0,le.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(oe){const Ye=this._element.nativeElement.classList,fe="mat-drawer-container-has-open";oe?Ye.add(fe):Ye.remove(fe)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(oe=>{"end"==oe.position?this._end=oe:this._start=oe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(oe=>oe&&!oe.disableClose&&this._drawerHasBackdrop(oe)).forEach(oe=>oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(oe){return null!=oe&&oe.opened}_drawerHasBackdrop(oe){return null==this._backdropOverride?!!oe&&"side"!==oe.mode:this._backdropOverride}static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275cmp=C.VBU({type:nt,selectors:[["mat-drawer-container"]],contentQueries:function(Ye,fe,Qe){if(1&Ye&&(C.wni(Qe,F,5),C.wni(Qe,ve,5)),2&Ye){let gt;C.mGM(gt=C.lsd())&&(fe._content=gt.first),C.mGM(gt=C.lsd())&&(fe._allDrawers=gt)}},viewQuery:function(Ye,fe){if(1&Ye&&C.GBs(F,5),2&Ye){let Qe;C.mGM(Qe=C.lsd())&&(fe._userContent=Qe.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Ye,fe){2&Ye&&C.AVh("mat-drawer-container-explicit-backdrop",fe._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[C.Jv_([{provide:ie,useExisting:nt}])],ngContentSelectors:J,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ye,fe){1&Ye&&(C.NAR(ne),C.nVh(0,De,1,2,"div",0),C.SdG(1),C.SdG(2,1),C.nVh(3,Re,2,0,"mat-drawer-content")),2&Ye&&(C.vxM(fe.hasBackdrop?0:-1),C.R7$(3),C.vxM(fe._content?-1:3))},dependencies:[F],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return nt})(),$=(()=>{class nt extends F{static \u0275fac=(()=>{let oe;return function(fe){return(oe||(oe=C.xGo(nt)))(fe||nt)}})();static \u0275cmp=C.VBU({type:nt,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[C.Jv_([{provide:u.uv,useExisting:nt}]),C.Vt3],ngContentSelectors:ce,decls:1,vars:0,template:function(Ye,fe){1&Ye&&(C.NAR(),C.SdG(0))},encapsulation:2,changeDetection:0})}return nt})(),Ke=(()=>{class nt extends ve{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(oe){this._fixedInViewport=(0,T.he)(oe)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(oe){this._fixedTopGap=(0,w.OE)(oe)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(oe){this._fixedBottomGap=(0,w.OE)(oe)}_fixedBottomGap=0;static \u0275fac=(()=>{let oe;return function(fe){return(oe||(oe=C.xGo(nt)))(fe||nt)}})();static \u0275cmp=C.VBU({type:nt,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(Ye,fe){2&Ye&&(C.BMQ("tabIndex","side"!==fe.mode?"-1":null)("align",null),C.xc7("top",fe.fixedInViewport?fe.fixedTopGap:null,"px")("bottom",fe.fixedInViewport?fe.fixedBottomGap:null,"px"),C.AVh("mat-drawer-end","end"===fe.position)("mat-drawer-over","over"===fe.mode)("mat-drawer-push","push"===fe.mode)("mat-drawer-side","side"===fe.mode)("mat-sidenav-fixed",fe.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[C.Jv_([{provide:ve,useExisting:nt}]),C.Vt3],ngContentSelectors:ce,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Ye,fe){1&Ye&&(C.NAR(),C.j41(0,"div",1,0),C.SdG(2),C.k0s())},dependencies:[u.uv],encapsulation:2,changeDetection:0})}return nt})(),Vt=(()=>{class nt extends H{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let oe;return function(fe){return(oe||(oe=C.xGo(nt)))(fe||nt)}})();static \u0275cmp=C.VBU({type:nt,selectors:[["mat-sidenav-container"]],contentQueries:function(Ye,fe,Qe){if(1&Ye&&(C.wni(Qe,$,5),C.wni(Qe,Ke,5)),2&Ye){let gt;C.mGM(gt=C.lsd())&&(fe._content=gt.first),C.mGM(gt=C.lsd())&&(fe._allDrawers=gt)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Ye,fe){2&Ye&&C.AVh("mat-drawer-container-explicit-backdrop",fe._backdropOverride)},exportAs:["matSidenavContainer"],features:[C.Jv_([{provide:ie,useExisting:nt},{provide:H,useExisting:nt}]),C.Vt3],ngContentSelectors:_e,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Ye,fe){1&Ye&&(C.NAR(Xe),C.nVh(0,he,1,2,"div",0),C.SdG(1),C.SdG(2,1),C.nVh(3,Dt,2,0,"mat-sidenav-content")),2&Ye&&(C.vxM(fe.hasBackdrop?0:-1),C.R7$(3),C.vxM(fe._content?-1:3))},dependencies:[$],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return nt})(),St=(()=>{class nt{static \u0275fac=function(Ye){return new(Ye||nt)};static \u0275mod=C.$C({type:nt});static \u0275inj=L.G2t({imports:[V.y,u.Gj,u.Gj,V.y]})}return nt})()},450(Zt,pe,l){"use strict";l.d(pe,{mV:()=>W,sG:()=>j});var i=l(2615),d=l(3664),v=l(7705),T=l(9417),w=l(6838),e=l(9726),O=l(8968),f=l(1804),u=l(2046),L=l(2496),C=l(3155),B=l(2466);const A=["switch"],Pe=["*"];function le(G,re){1&G&&(d.j41(0,"span",11),i.qSk(),d.j41(1,"svg",13),d.nrm(2,"path",14),d.k0s(),d.j41(3,"svg",15),d.nrm(4,"path",16),d.k0s()())}const Ce=new i.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})});class Ae{source;checked;constructor(re,xe){this.source=re,this.checked=xe}}let j=(()=>{class G{_elementRef=(0,i.WQX)(d.aKT);_focusMonitor=(0,i.WQX)(w.FN);_changeDetectorRef=(0,i.WQX)(v.gRc);defaults=(0,i.WQX)(Ce);_onChange=xe=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(xe){return new Ae(this,xe)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=(0,f.Rc)();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(xe){this._checked=xe,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new d.bkB;toggleChange=new d.bkB;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){(0,i.WQX)(O.l).load(u.A);const xe=(0,i.WQX)(new v.ES_("tabindex"),{optional:!0}),Ee=this.defaults;this.tabIndex=null==xe?0:parseInt(xe)||0,this.color=Ee.color||"accent",this.id=this._uniqueId=(0,i.WQX)(e.g).getId("mat-mdc-slide-toggle-"),this.hideIcon=Ee.hideIcon??!1,this.disabledInteractive=Ee.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(xe=>{"keyboard"===xe||"program"===xe?(this._focused=!0,this._changeDetectorRef.markForCheck()):xe||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(xe){xe.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(xe){this.checked=!!xe}registerOnChange(xe){this._onChange=xe}registerOnTouched(xe){this._onTouched=xe}validate(xe){return this.required&&!0!==xe.value?{required:!0}:null}registerOnValidatorChange(xe){this._validatorOnChange=xe}setDisabledState(xe){this.disabled=xe,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new Ae(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(Ee){return new(Ee||G)};static \u0275cmp=d.VBU({type:G,selectors:[["mat-slide-toggle"]],viewQuery:function(Ee,V){if(1&Ee&&d.GBs(A,5),2&Ee){let ce;d.mGM(ce=d.lsd())&&(V._switchElement=ce.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(Ee,V){2&Ee&&(d.Avn("id",V.id),d.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),d.HbH(V.color?"mat-"+V.color:""),d.AVh("mat-mdc-slide-toggle-focused",V._focused)("mat-mdc-slide-toggle-checked",V.checked)("_mat-animation-noopable",V._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",v.L39],color:"color",disabled:[2,"disabled","disabled",v.L39],disableRipple:[2,"disableRipple","disableRipple",v.L39],tabIndex:[2,"tabIndex","tabIndex",xe=>null==xe?0:(0,v.Udg)(xe)],checked:[2,"checked","checked",v.L39],hideIcon:[2,"hideIcon","hideIcon",v.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",v.L39]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[d.Jv_([{provide:T.kq,useExisting:(0,i.Rfq)(()=>G),multi:!0},{provide:T.cz,useExisting:G,multi:!0}]),d.OA$],ngContentSelectors:Pe,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(Ee,V){if(1&Ee){const ce=d.RV6();d.NAR(),d.j41(0,"div",1)(1,"button",2,0),d.bIt("click",function(){return i.eBV(ce),i.Njj(V._handleClick())}),d.nrm(3,"div",3)(4,"span",4),d.j41(5,"span",5)(6,"span",6)(7,"span",7),d.nrm(8,"span",8),d.k0s(),d.j41(9,"span",9),d.nrm(10,"span",10),d.k0s(),d.nVh(11,le,5,0,"span",11),d.k0s()()(),d.j41(12,"label",12),d.bIt("click",function(ne){return i.eBV(ce),i.Njj(ne.stopPropagation())}),d.SdG(13),d.k0s()()}if(2&Ee){const ce=d.sdS(2);d.Y8G("labelPosition",V.labelPosition),d.R7$(),d.AVh("mdc-switch--selected",V.checked)("mdc-switch--unselected",!V.checked)("mdc-switch--checked",V.checked)("mdc-switch--disabled",V.disabled)("mat-mdc-slide-toggle-disabled-interactive",V.disabledInteractive),d.Y8G("tabIndex",V.disabled&&!V.disabledInteractive?-1:V.tabIndex)("disabled",V.disabled&&!V.disabledInteractive),d.BMQ("id",V.buttonId)("name",V.name)("aria-label",V.ariaLabel)("aria-labelledby",V._getAriaLabelledBy())("aria-describedby",V.ariaDescribedby)("aria-required",V.required||null)("aria-checked",V.checked)("aria-disabled",V.disabled&&V.disabledInteractive?"true":null),d.R7$(9),d.Y8G("matRippleTrigger",ce)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0),d.R7$(),d.vxM(V.hideIcon?-1:11),d.R7$(),d.Y8G("for",V.buttonId),d.BMQ("id",V._labelId)}},dependencies:[L.r6,C.t],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return G})(),W=(()=>{class G{static \u0275fac=function(Ee){return new(Ee||G)};static \u0275mod=d.$C({type:G});static \u0275inj=i.G2t({imports:[j,B.y,B.y]})}return G})()},5416(Zt,pe,l){"use strict";l.d(pe,{UG:()=>he,_T:()=>lt,x6:()=>_e});var i=l(2615),d=l(3664),v=l(7705),T=l(1413),w=l(7673),e=l(8834),O=l(7094),f=l(9726),u=l(9842),L=l(6939),C=l(1804),B=l(9327),A=l(4330),Pe=l(9338),le=l(6977),Ce=l(2466);function Ae(te,ie){if(1&te){const P=d.RV6();d.j41(0,"div",1)(1,"button",2),d.bIt("click",function(){i.eBV(P);const ve=d.XpG();return i.Njj(ve.action())}),d.EFF(2),d.k0s()()}if(2&te){const P=d.XpG();d.R7$(2),d.SpI(" ",P.data.action," ")}}const j=["label"];function W(te,ie){}const G=Math.pow(2,31)-1;class re{_overlayRef;instance;containerInstance;_afterDismissed=new T.B;_afterOpened=new T.B;_onAction=new T.B;_durationTimeoutId;_dismissedByAction=!1;constructor(ie,P){this._overlayRef=P,this.containerInstance=ie,ie._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(ie){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(ie,G))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const xe=new i.nKC("MatSnackBarData");class Ee{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"}let V=(()=>{class te{static \u0275fac=function(F){return new(F||te)};static \u0275dir=d.FsC({type:te,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return te})(),ce=(()=>{class te{static \u0275fac=function(F){return new(F||te)};static \u0275dir=d.FsC({type:te,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return te})(),be=(()=>{class te{static \u0275fac=function(F){return new(F||te)};static \u0275dir=d.FsC({type:te,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return te})(),ne=(()=>{class te{snackBarRef=(0,i.WQX)(re);data=(0,i.WQX)(xe);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(F){return new(F||te)};static \u0275cmp=d.VBU({type:te,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(F,ve){1&F&&(d.j41(0,"div",0),d.EFF(1),d.k0s(),d.nVh(2,Ae,3,1,"div",1)),2&F&&(d.R7$(),d.SpI(" ",ve.data.message,"\n"),d.R7$(),d.vxM(ve.hasAction?2:-1))},dependencies:[e.$z,V,ce,be],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],encapsulation:2,changeDetection:0})}return te})();const J="_mat-snack-bar-enter",De="_mat-snack-bar-exit";let Re=(()=>{class te extends L.lb{_ngZone=(0,i.WQX)(d.SKi);_elementRef=(0,i.WQX)(d.aKT);_changeDetectorRef=(0,i.WQX)(v.gRc);_platform=(0,i.WQX)(u.O);_animationsDisabled=(0,C.Rc)();snackBarConfig=(0,i.WQX)(Ee);_document=(0,i.WQX)(i.qQL);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=(0,i.WQX)(i.zZn);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new T.B;_onExit=new T.B;_onEnter=new T.B;_animationState="void";_live;_label;_role;_liveElementId=(0,i.WQX)(f.g).getId("mat-snack-bar-container-live-");constructor(){super();const P=this.snackBarConfig;this._live="assertive"!==P.politeness||P.announcementMessage?"off"===P.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(P){this._assertNotAttached();const F=this._portalOutlet.attachComponentPortal(P);return this._afterPortalAttached(),F}attachTemplatePortal(P){this._assertNotAttached();const F=this._portalOutlet.attachTemplatePortal(P);return this._afterPortalAttached(),F}attachDomPortal=P=>{this._assertNotAttached();const F=this._portalOutlet.attachDomPortal(P);return this._afterPortalAttached(),F};onAnimationEnd(P){P===De?this._completeExit():P===J&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?(0,d.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(J)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(J)},200)))}exit(){return this._destroyed?(0,w.of)(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?(0,d.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(De)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(De),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const P=this._elementRef.nativeElement,F=this.snackBarConfig.panelClass;F&&(Array.isArray(F)?F.forEach($=>P.classList.add($)):P.classList.add(F)),this._exposeToModals();const ve=this._label.nativeElement,H="mdc-snackbar__label";ve.classList.toggle(H,!ve.querySelector(`.${H}`))}_exposeToModals(){const P=this._liveElementId,F=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let ve=0;ve{const F=P.getAttribute("aria-owns");if(F){const ve=F.replace(this._liveElementId,"").trim();ve.length>0?P.setAttribute("aria-owns",ve):P.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;const P=this._elementRef.nativeElement,F=P.querySelector("[aria-hidden]"),ve=P.querySelector("[aria-live]");if(F&&ve){let H=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&F.contains(document.activeElement)&&(H=document.activeElement),F.removeAttribute("aria-hidden"),ve.appendChild(F),H?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(F){return new(F||te)};static \u0275cmp=d.VBU({type:te,selectors:[["mat-snack-bar-container"]],viewQuery:function(F,ve){if(1&F&&(d.GBs(L.I3,7),d.GBs(j,7)),2&F){let H;d.mGM(H=d.lsd())&&(ve._portalOutlet=H.first),d.mGM(H=d.lsd())&&(ve._label=H.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(F,ve){1&F&&d.bIt("animationend",function($){return ve.onAnimationEnd($.animationName)})("animationcancel",function($){return ve.onAnimationEnd($.animationName)}),2&F&&d.AVh("mat-snack-bar-container-enter","visible"===ve._animationState)("mat-snack-bar-container-exit","hidden"===ve._animationState)("mat-snack-bar-container-animations-enabled",!ve._animationsDisabled)},features:[d.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(F,ve){1&F&&(d.j41(0,"div",1)(1,"div",2,0)(3,"div",3),d.DNE(4,W,0,0,"ng-template",4),d.k0s(),d.nrm(5,"div"),d.k0s()()),2&F&&(d.R7$(5),d.BMQ("aria-live",ve._live)("role",ve._role)("id",ve._liveElementId))},dependencies:[L.I3],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],encapsulation:2})}return te})();const _e=new i.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function Xe(){return new Ee}});let he=(()=>{class te{_live=(0,i.WQX)(O.Ai);_injector=(0,i.WQX)(i.zZn);_breakpointObserver=(0,i.WQX)(A.Q);_parentSnackBar=(0,i.WQX)(te,{optional:!0,skipSelf:!0});_defaultConfig=(0,i.WQX)(_e);_animationsDisabled=(0,C.Rc)();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ne;snackBarContainerComponent=Re;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){const P=this._parentSnackBar;return P?P._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(P){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=P:this._snackBarRefAtThisLevel=P}constructor(){}openFromComponent(P,F){return this._attach(P,F)}openFromTemplate(P,F){return this._attach(P,F)}open(P,F="",ve){const H={...this._defaultConfig,...ve};return H.data={message:P,action:F},H.announcementMessage===P&&(H.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,H)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(P,F){const H=i.zZn.create({parent:F&&F.viewContainerRef&&F.viewContainerRef.injector||this._injector,providers:[{provide:Ee,useValue:F}]}),$=new L.A8(this.snackBarContainerComponent,F.viewContainerRef,H),Ke=P.attach($);return Ke.instance.snackBarConfig=F,Ke.instance}_attach(P,F){const ve={...new Ee,...this._defaultConfig,...F},H=this._createOverlay(ve),$=this._attachSnackBarContainer(H,ve),Ke=new re($,H);if(P instanceof d.C4Q){const Vt=new L.VA(P,null,{$implicit:ve.data,snackBarRef:Ke});Ke.instance=$.attachTemplatePortal(Vt)}else{const Vt=this._createInjector(ve,Ke),St=new L.A8(P,void 0,Vt),ot=$.attachComponentPortal(St);Ke.instance=ot.instance}return this._breakpointObserver.observe(B.Rp.HandsetPortrait).pipe((0,le.Q)(H.detachments())).subscribe(Vt=>{H.overlayElement.classList.toggle(this.handsetCssClass,Vt.matches)}),ve.announcementMessage&&$._onAnnounce.subscribe(()=>{this._live.announce(ve.announcementMessage,ve.politeness)}),this._animateSnackBar(Ke,ve),this._openedSnackBarRef=Ke,this._openedSnackBarRef}_animateSnackBar(P,F){P.afterDismissed().subscribe(()=>{this._openedSnackBarRef==P&&(this._openedSnackBarRef=null),F.announcementMessage&&this._live.clear()}),F.duration&&F.duration>0&&P.afterOpened().subscribe(()=>P._dismissAfter(F.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{P.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):P.containerInstance.enter()}_createOverlay(P){const F=new Pe.rR;F.direction=P.direction;const ve=(0,Pe.uA)(this._injector),H="rtl"===P.direction,$="left"===P.horizontalPosition||"start"===P.horizontalPosition&&!H||"end"===P.horizontalPosition&&H,Ke=!$&&"center"!==P.horizontalPosition;return $?ve.left("0"):Ke?ve.right("0"):ve.centerHorizontally(),"top"===P.verticalPosition?ve.top("0"):ve.bottom("0"),F.positionStrategy=ve,F.disableAnimations=this._animationsDisabled,(0,Pe.Y$)(this._injector,F)}_createInjector(P,F){return i.zZn.create({parent:P&&P.viewContainerRef&&P.viewContainerRef.injector||this._injector,providers:[{provide:re,useValue:F},{provide:xe,useValue:P.data}]})}static \u0275fac=function(F){return new(F||te)};static \u0275prov=i.jDH({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})(),lt=(()=>{class te{static \u0275fac=function(F){return new(F||te)};static \u0275mod=d.$C({type:te});static \u0275inj=i.G2t({providers:[he],imports:[Pe.z_,L.jc,e.Hl,Ce.y,ne,Ce.y]})}return te})()},2042(Zt,pe,l){"use strict";l.d(pe,{B4:()=>xe,NQ:()=>J,aE:()=>ne});var i=l(2615),d=l(3664),v=l(7705),T=l(8617),w=l(6838),e=l(438),O=l(1413),f=l(2771),u=l(7786),L=l(8968),C=l(1804),B=l(2046),A=l(2466);const Pe=["mat-sort-header",""],le=["*"];function Ce(Re,Xe){1&Re&&(d.rj2(0,"div",2),i.qSk(),d.rj2(1,"svg",3),d.Hgh(2,"path",4),d.eux()())}const re=new i.nKC("MAT_SORT_DEFAULT_OPTIONS");let xe=(()=>{class Re{_defaultOptions;_initializedStream=new f.m(1);sortables=new Map;_stateChanges=new O.B;active;start="asc";get direction(){return this._direction}set direction(_e){this._direction=_e}_direction="";disableClear;disabled=!1;sortChange=new d.bkB;initialized=this._initializedStream;constructor(_e){this._defaultOptions=_e}register(_e){this.sortables.set(_e.id,_e)}deregister(_e){this.sortables.delete(_e.id)}sort(_e){this.active!=_e.id?(this.active=_e.id,this.direction=_e.start?_e.start:this.start):this.direction=this.getNextSortDirection(_e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(_e){if(!_e)return"";let Dt=function Ee(Re,Xe){let _e=["asc","desc"];return"desc"==Re&&_e.reverse(),Xe||_e.push(""),_e}(_e.start||this.start,_e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),lt=Dt.indexOf(this.direction)+1;return lt>=Dt.length&&(lt=0),Dt[lt]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(he){return new(he||Re)(d.rXU(re,8))};static \u0275dir=d.FsC({type:Re,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",v.L39],disabled:[2,"matSortDisabled","disabled",v.L39]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[d.OA$]})}return Re})(),V=(()=>{class Re{changes=new O.B;static \u0275fac=function(he){return new(he||Re)};static \u0275prov=i.jDH({token:Re,factory:Re.\u0275fac,providedIn:"root"})}return Re})();const be={provide:V,deps:[[new d.Xx1,new d.kdw,V]],useFactory:function ce(Re){return Re||new V}};let ne=(()=>{class Re{_intl=(0,i.WQX)(V);_sort=(0,i.WQX)(xe,{optional:!0});_columnDef=(0,i.WQX)("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=(0,i.WQX)(v.gRc);_focusMonitor=(0,i.WQX)(w.FN);_elementRef=(0,i.WQX)(d.aKT);_ariaDescriber=(0,i.WQX)(T.vr,{optional:!0});_renderChanges;_animationsDisabled=(0,C.Rc)();_recentlyCleared=(0,i.vPA)(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(_e){this._updateSortActionDescription(_e)}_sortActionDescription="Sort";disableClear;constructor(){(0,i.WQX)(L.l).load(B.A);const _e=(0,i.WQX)(re,{optional:!0});_e?.arrowPosition&&(this.arrowPosition=_e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=(0,u.h)(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){const _e=this._isSorted(),he=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(_e&&!this._isSorted()?he:null)}}_handleKeydown(_e){(_e.keyCode===e.t6||_e.keyCode===e.Fm)&&(_e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(_e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,_e)),this._sortActionDescription=_e}static \u0275fac=function(he){return new(he||Re)};static \u0275cmp=d.VBU({type:Re,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(he,Dt){1&he&&d.bIt("click",function(){return Dt._toggleOnInteraction()})("keydown",function(Le){return Dt._handleKeydown(Le)})("mouseleave",function(){return Dt._recentlyCleared.set(null)}),2&he&&(d.BMQ("aria-sort",Dt._getAriaSortAttribute()),d.AVh("mat-sort-header-disabled",Dt._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",v.L39],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",v.L39]},exportAs:["matSortHeader"],attrs:Pe,ngContentSelectors:le,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(he,Dt){1&he&&(d.NAR(),d.rj2(0,"div",0)(1,"div",1),d.SdG(2),d.eux(),d.nVh(3,Ce,3,0,"div",2),d.eux()),2&he&&(d.AVh("mat-sort-header-sorted",Dt._isSorted())("mat-sort-header-position-before","before"===Dt.arrowPosition)("mat-sort-header-descending","desc"===Dt._sort.direction)("mat-sort-header-ascending","asc"===Dt._sort.direction)("mat-sort-header-recently-cleared-ascending","asc"===Dt._recentlyCleared())("mat-sort-header-recently-cleared-descending","desc"===Dt._recentlyCleared())("mat-sort-header-animations-disabled",Dt._animationsDisabled),d.BMQ("tabindex",Dt._isDisabled()?null:0)("role",Dt._isDisabled()?null:"button"),d.R7$(3),d.vxM(Dt._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}\n"],encapsulation:2,changeDetection:0})}return Re})(),J=(()=>{class Re{static \u0275fac=function(he){return new(he||Re)};static \u0275mod=d.$C({type:Re});static \u0275inj=i.G2t({providers:[be],imports:[A.y]})}return Re})()},6013(Zt,pe,l){"use strict";l.d(pe,{F7:()=>cn,FR:()=>Ft,M6:()=>rt,Ti:()=>nt,V5:()=>Gt,aP:()=>Sn,xJ:()=>Qe});var i=l(6939),d=l(7768),v=l(2615),T=l(3664),w=l(7705),e=l(6838),O=l(1413),f=l(8359),u=l(2200),L=l(9046),C=l(8968),B=l(2629),A=l(2046),Pe=l(2496),le=l(9842),Ce=l(6354),Ae=l(9172),j=l(5558),W=l(6977),G=l(2709),re=l(1804),xe=l(2466),Ee=l(6881);const V=(h,jt,Ue)=>({index:h,active:jt,optional:Ue});function ce(h,jt){if(1&h&&T.eu8(0,2),2&h){const Ue=T.XpG();T.Y8G("ngTemplateOutlet",Ue.iconOverrides[Ue.state])("ngTemplateOutletContext",T.sMw(2,V,Ue.index,Ue.active,Ue.optional))}}function be(h,jt){if(1&h&&(T.j41(0,"span",7),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG(2);T.R7$(),T.JRh(Ue._getDefaultTextForState(Ue.state))}}function ne(h,jt){if(1&h&&(T.j41(0,"span",8),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG(3);T.R7$(),T.JRh(Ue._intl.completedLabel)}}function J(h,jt){if(1&h&&(T.j41(0,"span",8),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG(3);T.R7$(),T.JRh(Ue._intl.editableLabel)}}function De(h,jt){if(1&h&&(T.nVh(0,ne,2,1,"span",8)(1,J,2,1,"span",8),T.j41(2,"mat-icon",7),T.EFF(3),T.k0s()),2&h){const Ue=T.XpG(2);T.vxM("done"===Ue.state?0:"edit"===Ue.state?1:-1),T.R7$(3),T.JRh(Ue._getDefaultTextForState(Ue.state))}}function Re(h,jt){if(1&h&&T.nVh(0,be,2,1,"span",7)(1,De,4,2),2&h){let Ue;const wt=T.XpG();T.vxM("number"===(Ue=wt.state)?0:1)}}function Xe(h,jt){1&h&&(T.j41(0,"div",4),T.eu8(1,9),T.k0s()),2&h&&(T.R7$(),T.Y8G("ngTemplateOutlet",jt.template))}function _e(h,jt){if(1&h&&(T.j41(0,"div",4),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG();T.R7$(),T.JRh(Ue.label)}}function he(h,jt){if(1&h&&(T.j41(0,"div",5),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG();T.R7$(),T.JRh(Ue._intl.optionalLabel)}}function Dt(h,jt){if(1&h&&(T.j41(0,"div",6),T.EFF(1),T.k0s()),2&h){const Ue=T.XpG();T.R7$(),T.JRh(Ue.errorMessage)}}const lt=["*"];function Le(h,jt){}function te(h,jt){if(1&h&&(T.SdG(0),T.DNE(1,Le,0,0,"ng-template",0)),2&h){const Ue=T.XpG();T.R7$(),T.Y8G("cdkPortalOutlet",Ue._portal)}}const ie=["animatedContainer"],P=h=>({step:h});function F(h,jt){1&h&&T.SdG(0)}function ve(h,jt){1&h&&T.nrm(0,"div",7)}function H(h,jt){if(1&h&&(T.eu8(0,6),T.nVh(1,ve,1,0,"div",7)),2&h){const Ue=jt.$implicit,wt=jt.$index,pt=jt.$count;T.XpG(2);const Pt=T.sdS(4);T.Y8G("ngTemplateOutlet",Pt)("ngTemplateOutletContext",T.eq3(3,P,Ue)),T.R7$(),T.vxM(wt!==pt-1?1:-1)}}function $(h,jt){if(1&h&&(T.j41(0,"div",8,1),T.eu8(2,9),T.k0s()),2&h){const Ue=jt.$implicit,wt=jt.$index,pt=T.XpG(2);T.HbH("mat-horizontal-stepper-content-"+pt._getAnimationDirection(wt)),T.Y8G("id",pt._getStepContentId(wt)),T.BMQ("aria-labelledby",pt._getStepLabelId(wt))("inert",pt.selectedIndex===wt?null:""),T.R7$(2),T.Y8G("ngTemplateOutlet",Ue.content)}}function Ke(h,jt){if(1&h&&(T.j41(0,"div",2)(1,"div",3),T.Z7z(2,H,2,5,null,null,T.fX1),T.k0s(),T.j41(4,"div",4),T.Z7z(5,$,3,6,"div",5,T.fX1),T.k0s()()),2&h){const Ue=T.XpG();T.R7$(2),T.Dyx(Ue.steps),T.R7$(3),T.Dyx(Ue.steps)}}function Vt(h,jt){if(1&h&&(T.j41(0,"div",10),T.eu8(1,6),T.j41(2,"div",11,1)(4,"div",12)(5,"div",13),T.eu8(6,9),T.k0s()()()()),2&h){const Ue=jt.$implicit,wt=jt.$index,pt=jt.$index,Pt=jt.$count,gn=T.XpG(2),ei=T.sdS(4);T.R7$(),T.Y8G("ngTemplateOutlet",ei)("ngTemplateOutletContext",T.eq3(10,P,Ue)),T.R7$(),T.AVh("mat-stepper-vertical-line",pt!==Pt-1)("mat-vertical-content-container-active",gn.selectedIndex===wt),T.BMQ("inert",gn.selectedIndex===wt?null:""),T.R7$(2),T.Y8G("id",gn._getStepContentId(wt)),T.BMQ("aria-labelledby",gn._getStepLabelId(wt)),T.R7$(2),T.Y8G("ngTemplateOutlet",Ue.content)}}function St(h,jt){if(1&h&&T.Z7z(0,Vt,7,12,"div",10,T.fX1),2&h){const Ue=T.XpG();T.Dyx(Ue.steps)}}function ot(h,jt){if(1&h){const Ue=T.RV6();T.j41(0,"mat-step-header",14),T.bIt("click",function(){const pt=v.eBV(Ue).step;return v.Njj(pt.select())})("keydown",function(pt){v.eBV(Ue);const Pt=T.XpG();return v.Njj(Pt._onKeydown(pt))}),T.k0s()}if(2&h){const Ue=jt.step,wt=T.XpG();T.AVh("mat-horizontal-stepper-header","horizontal"===wt.orientation)("mat-vertical-stepper-header","vertical"===wt.orientation),T.Y8G("tabIndex",wt._getFocusIndex()===Ue.index()?0:-1)("id",wt._getStepLabelId(Ue.index()))("index",Ue.index())("state",Ue.indicatorType())("label",Ue.stepLabel||Ue.label)("selected",Ue.isSelected())("active",Ue.isNavigable())("optional",Ue.optional)("errorMessage",Ue.errorMessage)("iconOverrides",wt._iconOverrides)("disableRipple",wt.disableRipple||!Ue.isNavigable())("color",Ue.color||wt.color),T.BMQ("aria-posinset",Ue.index()+1)("aria-setsize",wt.steps.length)("aria-controls",wt._getStepContentId(Ue.index()))("aria-selected",Ue.isSelected())("aria-label",Ue.ariaLabel||null)("aria-labelledby",!Ue.ariaLabel&&Ue.ariaLabelledby?Ue.ariaLabelledby:null)("aria-disabled",!Ue.isNavigable()||null)}}let nt=(()=>{class h extends d.nb{static \u0275fac=(()=>{let Ue;return function(pt){return(Ue||(Ue=T.xGo(h)))(pt||h)}})();static \u0275dir=T.FsC({type:h,selectors:[["","matStepLabel",""]],features:[T.Vt3]})}return h})(),ht=(()=>{class h{changes=new O.B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(wt){return new(wt||h)};static \u0275prov=v.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const Ye={provide:ht,deps:[[new T.Xx1,new T.kdw,ht]],useFactory:function oe(h){return h||new ht}};let fe=(()=>{class h extends d.oX{_intl=(0,v.WQX)(ht);_focusMonitor=(0,v.WQX)(e.FN);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();const Ue=(0,v.WQX)(C.l);Ue.load(A.A),Ue.load(L.Y);const wt=(0,v.WQX)(w.gRc);this._intlSubscription=this._intl.changes.subscribe(()=>wt.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(Ue,wt){Ue?this._focusMonitor.focusVia(this._elementRef,Ue,wt):this._elementRef.nativeElement.focus(wt)}_stringLabel(){return this.label instanceof nt?null:this.label}_templateLabel(){return this.label instanceof nt?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(Ue){return"number"==Ue?`${this.index+1}`:"edit"==Ue?"create":"error"==Ue?"warning":Ue}_hasEmptyLabel(){return!(this._stringLabel()||this._templateLabel()||this._hasOptionalLabel()||this._hasErrorLabel())}_hasOptionalLabel(){return this.optional&&"error"!==this.state}_hasErrorLabel(){return"error"===this.state}static \u0275fac=function(wt){return new(wt||h)};static \u0275cmp=T.VBU({type:h,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(wt,pt){2&wt&&(T.HbH("mat-"+(pt.color||"primary")),T.AVh("mat-step-header-empty-label",pt._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[T.Vt3],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(wt,pt){if(1&wt&&(T.nrm(0,"div",0),T.j41(1,"div")(2,"div",1),T.nVh(3,ce,1,6,"ng-container",2)(4,Re,2,1),T.k0s()(),T.j41(5,"div",3),T.nVh(6,Xe,2,1,"div",4)(7,_e,2,1,"div",4),T.nVh(8,he,2,1,"div",5),T.nVh(9,Dt,2,1,"div",6),T.k0s()),2&wt){let Pt;T.Y8G("matRippleTrigger",pt._getHostElement())("matRippleDisabled",pt.disableRipple),T.R7$(),T.HbH(T.VkB("mat-step-icon-state-",pt.state," mat-step-icon")),T.AVh("mat-step-icon-selected",pt.selected),T.R7$(2),T.vxM(pt.iconOverrides&&pt.iconOverrides[pt.state]?3:4),T.R7$(2),T.AVh("mat-step-label-active",pt.active)("mat-step-label-selected",pt.selected)("mat-step-label-error","error"==pt.state),T.R7$(),T.vxM((Pt=pt._templateLabel())?6:pt._stringLabel()?7:-1,Pt),T.R7$(2),T.vxM(pt._hasOptionalLabel()?8:-1),T.R7$(),T.vxM(pt._hasErrorLabel()?9:-1)}},dependencies:[Pe.r6,u.T3,B.An],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],encapsulation:2,changeDetection:0})}return h})(),Qe=(()=>{class h{templateRef=(0,v.WQX)(T.C4Q);name;constructor(){}static \u0275fac=function(wt){return new(wt||h)};static \u0275dir=T.FsC({type:h,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return h})(),gt=(()=>{class h{_template=(0,v.WQX)(T.C4Q);constructor(){}static \u0275fac=function(wt){return new(wt||h)};static \u0275dir=T.FsC({type:h,selectors:[["ng-template","matStepContent",""]]})}return h})(),Gt=(()=>{class h extends d.VI{_errorStateMatcher=(0,v.WQX)(G.e,{skipSelf:!0});_viewContainerRef=(0,v.WQX)(T.c1b);_isSelected=f.yU.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,j.n)(()=>this._stepper.selectionChange.pipe((0,Ce.T)(Ue=>Ue.selectedStep===this),(0,Ae.Z)(this._stepper.selected===this)))).subscribe(Ue=>{Ue&&this._lazyContent&&!this._portal&&(this._portal=new i.VA(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(Ue,wt){return this._errorStateMatcher.isErrorState(Ue,wt)||!!(Ue&&Ue.invalid&&this.interacted)}static \u0275fac=(()=>{let Ue;return function(pt){return(Ue||(Ue=T.xGo(h)))(pt||h)}})();static \u0275cmp=T.VBU({type:h,selectors:[["mat-step"]],contentQueries:function(wt,pt,Pt){if(1&wt&&(T.wni(Pt,nt,5),T.wni(Pt,gt,5)),2&wt){let gn;T.mGM(gn=T.lsd())&&(pt.stepLabel=gn.first),T.mGM(gn=T.lsd())&&(pt._lazyContent=gn.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[T.Jv_([{provide:G.e,useExisting:h},{provide:d.VI,useExisting:h}]),T.Vt3],ngContentSelectors:lt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(wt,pt){1&wt&&(T.NAR(),T.DNE(0,te,2,1,"ng-template"))},dependencies:[i.I3],encapsulation:2,changeDetection:0})}return h})(),rt=(()=>{class h extends d.Up{_ngZone=(0,v.WQX)(T.SKi);_renderer=(0,v.WQX)(T.sFG);_animationsDisabled=(0,re.Rc)();_cleanupTransition;_isAnimating=(0,v.vPA)(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new T.rOR;_icons;animationDone=new T.bkB;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(Ue){this._animationDuration=/^\d+$/.test(Ue)?Ue+"ms":Ue}_animationDuration="";_isServer=!(0,v.WQX)(le.O).isBrowser;constructor(){super();const wt=(0,v.WQX)(T.aKT).nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===wt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:Ue,templateRef:wt})=>this._iconOverrides[Ue]=wt),this.steps.changes.pipe((0,W.Q)(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe((0,W.Q)(this._destroyed)).subscribe(()=>{const Ue=this._getAnimationDuration();"0ms"===Ue||"0s"===Ue?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),"function"==typeof queueMicrotask){let Ue=!1;this._animatedContainers.changes.pipe((0,Ae.Z)(null),(0,W.Q)(this._destroyed)).subscribe(()=>queueMicrotask(()=>{Ue||(Ue=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}_handleTransitionend=Ue=>{const wt=Ue.target;if(!wt)return;const pt="horizontal"===this.orientation&&"transform"===Ue.propertyName&&wt.classList.contains("mat-horizontal-stepper-content-current"),Pt="vertical"===this.orientation&&"grid-template-rows"===Ue.propertyName&&wt.classList.contains("mat-vertical-content-container-active");(pt||Pt)&&this._animatedContainers.find(ei=>ei.nativeElement===wt)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(wt){return new(wt||h)};static \u0275cmp=T.VBU({type:h,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(wt,pt,Pt){if(1&wt&&(T.wni(Pt,Gt,5),T.wni(Pt,Qe,5)),2&wt){let gn;T.mGM(gn=T.lsd())&&(pt._steps=gn),T.mGM(gn=T.lsd())&&(pt._icons=gn)}},viewQuery:function(wt,pt){if(1&wt&&(T.GBs(fe,5),T.GBs(ie,5)),2&wt){let Pt;T.mGM(Pt=T.lsd())&&(pt._stepHeader=Pt),T.mGM(Pt=T.lsd())&&(pt._animatedContainers=Pt)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(wt,pt){2&wt&&(T.BMQ("aria-orientation",pt.orientation),T.xc7("--mat-stepper-animation-duration",pt._getAnimationDuration()),T.AVh("mat-stepper-horizontal","horizontal"===pt.orientation)("mat-stepper-vertical","vertical"===pt.orientation)("mat-stepper-label-position-end","horizontal"===pt.orientation&&"end"==pt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===pt.orientation&&"bottom"==pt.labelPosition)("mat-stepper-header-position-bottom","bottom"===pt.headerPosition)("mat-stepper-animating",pt._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[T.Jv_([{provide:d.Up,useExisting:h}]),T.Vt3],ngContentSelectors:lt,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(wt,pt){if(1&wt&&(T.NAR(),T.nVh(0,F,1,0),T.nVh(1,Ke,7,0,"div",2)(2,St,2,0),T.DNE(3,ot,1,23,"ng-template",null,0,T.C5r)),2&wt){let Pt;T.vxM(pt._isServer?0:-1),T.R7$(),T.vxM("horizontal"===(Pt=pt.orientation)?1:"vertical"===Pt?2:-1)}},dependencies:[u.T3,fe],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],encapsulation:2,changeDetection:0})}return h})(),cn=(()=>{class h extends d.v5{static \u0275fac=(()=>{let Ue;return function(pt){return(Ue||(Ue=T.xGo(h)))(pt||h)}})();static \u0275dir=T.FsC({type:h,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(wt,pt){2&wt&&T.Avn("type",pt.type)},features:[T.Vt3]})}return h})(),Ft=(()=>{class h extends d.FK{static \u0275fac=(()=>{let Ue;return function(pt){return(Ue||(Ue=T.xGo(h)))(pt||h)}})();static \u0275dir=T.FsC({type:h,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(wt,pt){2&wt&&T.Avn("type",pt.type)},features:[T.Vt3]})}return h})(),Sn=(()=>{class h{static \u0275fac=function(wt){return new(wt||h)};static \u0275mod=T.$C({type:h});static \u0275inj=v.G2t({providers:[Ye,G.e],imports:[xe.y,i.jc,d.uY,B.m_,Ee.p,rt,fe,xe.y]})}return h})()},2046(Zt,pe,l){"use strict";l.d(pe,{A:()=>d});var i=l(3664);let d=(()=>{class v{static \u0275fac=function(e){return new(e||v)};static \u0275cmp=i.VBU({type:v,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,O){},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}}\n'],encapsulation:2,changeDetection:0})}return v})()},1676(Zt,pe,l){"use strict";l.d(pe,{$R:()=>Ge,YV:()=>at,cC:()=>Je,Qo:()=>ut,Zq:()=>pn,iF:()=>on,xW:()=>We,KS:()=>Be,tL:()=>qe,YZ:()=>tn,ji:()=>se,NB:()=>un,iL:()=>bt,Zl:()=>Me,I6:()=>Yi,tP:()=>Jn});var i=l(3664),d=l(2615),v=l(7705),T=l(4117),w=l(1413),e=l(4412),O=l(4402),f=l(7673),u=l(6977),C=function(Tt){return Tt[Tt.REPLACED=0]="REPLACED",Tt[Tt.INSERTED=1]="INSERTED",Tt[Tt.MOVED=2]="MOVED",Tt[Tt.REMOVED=3]="REMOVED",Tt}(C||{});const B=new d.nKC("_ViewRepeater");class Pe{applyChanges(At,we,ae,Lt,Ht){At.forEachOperation((_n,fi,bi)=>{let Qi,zi;if(null==_n.previousIndex){const It=ae(_n,fi,bi);Qi=we.createEmbeddedView(It.templateRef,It.context,It.index),zi=C.INSERTED}else null==bi?(we.remove(fi),zi=C.REMOVED):(Qi=we.get(fi),we.move(Qi,bi),zi=C.MOVED);Ht&&Ht({context:Qi?.context,operation:zi,record:_n})})}detach(){}}var le=l(1577),Ce=l(9842),Ae=l(5718);const j=[[["caption"]],[["colgroup"],["col"]],"*"],W=["caption","colgroup, col","*"];function G(Tt,At){1&Tt&&i.SdG(0,2)}function re(Tt,At){1&Tt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",0),i.eu8(3,2)(4,3),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,4),i.k0s())}function xe(Tt,At){1&Tt&&i.eu8(0,1)(1,2)(2,3)(3,4)}const ce=new d.nKC("CDK_TABLE");let ne=(()=>{class Tt{template=(0,d.WQX)(i.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkCellDef",""]]})}return Tt})(),J=(()=>{class Tt{template=(0,d.WQX)(i.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkHeaderCellDef",""]]})}return Tt})(),De=(()=>{class Tt{template=(0,d.WQX)(i.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkFooterCellDef",""]]})}return Tt})(),Re=(()=>{class Tt{_table=(0,d.WQX)(ce,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(we){this._setNameInput(we)}_name;get sticky(){return this._sticky}set sticky(we){we!==this._sticky&&(this._sticky=we,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(we){we!==this._stickyEnd&&(this._stickyEnd=we,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){const we=this._hasStickyChanged;return this.resetStickyChanged(),we}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(we){we&&(this._name=we,this.cssClassFriendlyName=we.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkColumnDef",""]],contentQueries:function(ae,Lt,Ht){if(1&ae&&(i.wni(Ht,ne,5),i.wni(Ht,J,5),i.wni(Ht,De,5)),2&ae){let _n;i.mGM(_n=i.lsd())&&(Lt.cell=_n.first),i.mGM(_n=i.lsd())&&(Lt.headerCell=_n.first),i.mGM(_n=i.lsd())&&(Lt.footerCell=_n.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",v.L39],stickyEnd:[2,"stickyEnd","stickyEnd",v.L39]},features:[i.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Tt}])]})}return Tt})();class Xe{constructor(At,we){we.nativeElement.classList.add(...At._columnCssClassName)}}let _e=(()=>{class Tt extends Xe{constructor(){super((0,d.WQX)(Re),(0,d.WQX)(i.aKT))}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Vt3]})}return Tt})(),he=(()=>{class Tt extends Xe{constructor(){const we=(0,d.WQX)(Re),ae=(0,d.WQX)(i.aKT);super(we,ae);const Lt=we._table?._getCellRole();Lt&&ae.nativeElement.setAttribute("role",Lt)}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.Vt3]})}return Tt})(),Dt=(()=>{class Tt extends Xe{constructor(){const we=(0,d.WQX)(Re),ae=(0,d.WQX)(i.aKT);super(we,ae);const Lt=we._table?._getCellRole();Lt&&ae.nativeElement.setAttribute("role",Lt)}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.Vt3]})}return Tt})(),Le=(()=>{class Tt{template=(0,d.WQX)(i.C4Q);_differs=(0,d.WQX)(v._q3);columns;_columnsDiffer;constructor(){}ngOnChanges(we){if(!this._columnsDiffer){const ae=we.columns&&we.columns.currentValue||[];this._columnsDiffer=this._differs.find(ae).create(),this._columnsDiffer.diff(ae)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(we){return this instanceof te?we.headerCell.template:this instanceof ie?we.footerCell.template:we.cell.template}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,features:[i.OA$]})}return Tt})(),te=(()=>{class Tt extends Le{_table=(0,d.WQX)(ce,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(we){we!==this._sticky&&(this._sticky=we,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,d.WQX)(i.C4Q),(0,d.WQX)(v._q3))}ngOnChanges(we){super.ngOnChanges(we)}hasStickyChanged(){const we=this._hasStickyChanged;return this.resetStickyChanged(),we}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",v.L39]},features:[i.Vt3,i.OA$]})}return Tt})(),ie=(()=>{class Tt extends Le{_table=(0,d.WQX)(ce,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(we){we!==this._sticky&&(this._sticky=we,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,d.WQX)(i.C4Q),(0,d.WQX)(v._q3))}ngOnChanges(we){super.ngOnChanges(we)}hasStickyChanged(){const we=this._hasStickyChanged;return this.resetStickyChanged(),we}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",v.L39]},features:[i.Vt3,i.OA$]})}return Tt})(),P=(()=>{class Tt extends Le{_table=(0,d.WQX)(ce,{optional:!0});when;constructor(){super((0,d.WQX)(i.C4Q),(0,d.WQX)(v._q3))}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[i.Vt3]})}return Tt})(),F=(()=>{class Tt{_viewContainer=(0,d.WQX)(i.c1b);cells;context;static mostRecentCellOutlet=null;constructor(){Tt.mostRecentCellOutlet=this}ngOnDestroy(){Tt.mostRecentCellOutlet===this&&(Tt.mostRecentCellOutlet=null)}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","cdkCellOutlet",""]]})}return Tt})(),ve=(()=>{class Tt{static \u0275fac=function(ae){return new(ae||Tt)};static \u0275cmp=i.VBU({type:Tt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),H=(()=>{class Tt{static \u0275fac=function(ae){return new(ae||Tt)};static \u0275cmp=i.VBU({type:Tt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),$=(()=>{class Tt{static \u0275fac=function(ae){return new(ae||Tt)};static \u0275cmp=i.VBU({type:Tt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),Ke=(()=>{class Tt{templateRef=(0,d.WQX)(i.C4Q);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["ng-template","cdkNoDataRow",""]]})}return Tt})();const Vt=["top","bottom","left","right"];class St{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(At=>this._updateCachedSizes(At)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(At,we,ae=!0,Lt=!0,Ht,_n,fi){this._isNativeHtmlTable=At,this._stickCellCss=we,this._isBrowser=ae,this._needsPositionStickyOnElement=Lt,this.direction=Ht,this._positionListener=_n,this._tableInjector=fi,this._borderCellCss={top:`${we}-border-elem-top`,bottom:`${we}-border-elem-bottom`,left:`${we}-border-elem-left`,right:`${we}-border-elem-right`}}clearStickyPositioning(At,we){(we.includes("left")||we.includes("right"))&&this._removeFromStickyColumnReplayQueue(At);const ae=[];for(const Lt of At)Lt.nodeType===Lt.ELEMENT_NODE&&ae.push(Lt,...Array.from(Lt.children));(0,i.mal)({write:()=>{for(const Lt of ae)this._removeStickyStyle(Lt,we)}},{injector:this._tableInjector})}updateStickyColumns(At,we,ae,Lt=!0,Ht=!0){if(!At.length||!this._isBrowser||!we.some(Fn=>Fn)&&!ae.some(Fn=>Fn))return this._positionListener?.stickyColumnsUpdated({sizes:[]}),void this._positionListener?.stickyEndColumnsUpdated({sizes:[]});const _n=At[0],fi=_n.children.length,bi="rtl"===this.direction,Qi=bi?"right":"left",zi=bi?"left":"right",It=we.lastIndexOf(!0),an=ae.indexOf(!0);let Yt,Un,zn;Ht&&this._updateStickyColumnReplayQueue({rows:[...At],stickyStartStates:[...we],stickyEndStates:[...ae]}),(0,i.mal)({earlyRead:()=>{Yt=this._getCellWidths(_n,Lt),Un=this._getStickyStartColumnPositions(Yt,we),zn=this._getStickyEndColumnPositions(Yt,ae)},write:()=>{for(const Fn of At)for(let ci=0;ci!!Fn)&&(this._positionListener.stickyColumnsUpdated({sizes:-1===It?[]:Yt.slice(0,It+1).map((Fn,ci)=>we[ci]?Fn:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===an?[]:Yt.slice(an).map((Fn,ci)=>ae[ci+an]?Fn:null).reverse()}))}},{injector:this._tableInjector})}stickRows(At,we,ae){if(!this._isBrowser)return;const Lt="bottom"===ae?At.slice().reverse():At,Ht="bottom"===ae?we.slice().reverse():we,_n=[],fi=[],bi=[];(0,i.mal)({earlyRead:()=>{for(let Qi=0,zi=0;Qi{const Qi=Ht.lastIndexOf(!0);for(let zi=0;zi{const ae=At.querySelector("tfoot");ae&&(we.some(Lt=>!Lt)?this._removeStickyStyle(ae,["bottom"]):this._addStickyStyle(ae,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(At,we){if(At.classList.contains(this._stickCellCss)){for(const Lt of we)At.style[Lt]="",At.classList.remove(this._borderCellCss[Lt]);Vt.some(Lt=>-1===we.indexOf(Lt)&&At.style[Lt])?At.style.zIndex=this._getCalculatedZIndex(At):(At.style.zIndex="",this._needsPositionStickyOnElement&&(At.style.position=""),At.classList.remove(this._stickCellCss))}}_addStickyStyle(At,we,ae,Lt){At.classList.add(this._stickCellCss),Lt&&At.classList.add(this._borderCellCss[we]),At.style[we]=`${ae}px`,At.style.zIndex=this._getCalculatedZIndex(At),this._needsPositionStickyOnElement&&(At.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(At){const we={top:100,bottom:10,left:1,right:1};let ae=0;for(const Lt of Vt)At.style[Lt]&&(ae+=we[Lt]);return ae?`${ae}`:""}_getCellWidths(At,we=!0){if(!we&&this._cachedCellWidths.length)return this._cachedCellWidths;const ae=[],Lt=At.children;for(let Ht=0;Ht0;Ht--)we[Ht]&&(ae[Ht]=Lt,Lt+=At[Ht]);return ae}_retrieveElementSize(At){const we=this._elemSizeCache.get(At);if(we)return we;const ae=At.getBoundingClientRect(),Lt={width:ae.width,height:ae.height};return this._resizeObserver&&(this._elemSizeCache.set(At,Lt),this._resizeObserver.observe(At,{box:"border-box"})),Lt}_updateStickyColumnReplayQueue(At){this._removeFromStickyColumnReplayQueue(At.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(At)}_removeFromStickyColumnReplayQueue(At){const we=new Set(At);for(const ae of this._updatedStickyColumnsParamsToReplay)ae.rows=ae.rows.filter(Lt=>!we.has(Lt));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(ae=>!!ae.rows.length)}_updateCachedSizes(At){let we=!1;for(const ae of At){const Lt=ae.borderBoxSize?.length?{width:ae.borderBoxSize[0].inlineSize,height:ae.borderBoxSize[0].blockSize}:{width:ae.contentRect.width,height:ae.contentRect.height};Lt.width!==this._elemSizeCache.get(ae.target)?.width&&ot(ae.target)&&(we=!0),this._elemSizeCache.set(ae.target,Lt)}we&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(const ae of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(ae.rows,ae.stickyStartStates,ae.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}}function ot(Tt){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(At=>Tt.classList.contains(At))}const rt=new d.nKC("CDK_SPL");let Ft=(()=>{class Tt{viewContainer=(0,d.WQX)(i.c1b);elementRef=(0,d.WQX)(i.aKT);constructor(){const we=(0,d.WQX)(ce);we._rowOutlet=this,we._outletAssigned()}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","rowOutlet",""]]})}return Tt})(),Sn=(()=>{class Tt{viewContainer=(0,d.WQX)(i.c1b);elementRef=(0,d.WQX)(i.aKT);constructor(){const we=(0,d.WQX)(ce);we._headerRowOutlet=this,we._outletAssigned()}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","headerRowOutlet",""]]})}return Tt})(),Qn=(()=>{class Tt{viewContainer=(0,d.WQX)(i.c1b);elementRef=(0,d.WQX)(i.aKT);constructor(){const we=(0,d.WQX)(ce);we._footerRowOutlet=this,we._outletAssigned()}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","footerRowOutlet",""]]})}return Tt})(),h=(()=>{class Tt{viewContainer=(0,d.WQX)(i.c1b);elementRef=(0,d.WQX)(i.aKT);constructor(){const we=(0,d.WQX)(ce);we._noDataRowOutlet=this,we._outletAssigned()}static \u0275fac=function(ae){return new(ae||Tt)};static \u0275dir=i.FsC({type:Tt,selectors:[["","noDataRowOutlet",""]]})}return Tt})(),jt=(()=>{class Tt{_differs=(0,d.WQX)(v._q3);_changeDetectorRef=(0,d.WQX)(v.gRc);_elementRef=(0,d.WQX)(i.aKT);_dir=(0,d.WQX)(le.dS,{optional:!0});_platform=(0,d.WQX)(Ce.O);_viewRepeater=(0,d.WQX)(B);_viewportRuler=(0,d.WQX)(Ae.Xj);_stickyPositioningListener=(0,d.WQX)(rt,{optional:!0,skipSelf:!0});_document=(0,d.WQX)(d.qQL);_data;_onDestroy=new w.B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(void 0===this._cellRoleInternal){const we=this._elementRef.nativeElement.getAttribute("role");return"grid"===we||"treegrid"===we?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(we){this._trackByFn=we}_trackByFn;get dataSource(){return this._dataSource}set dataSource(we){this._dataSource!==we&&this._switchDataSource(we)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(we){this._multiTemplateDataRows=we,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(we){this._fixedLayout=we,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new i.bkB;viewChange=new e.t({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=(0,d.WQX)(d.zZn);constructor(){(0,d.WQX)(new v.ES_("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName,this._dataDiffer=this._differs.find([]).create((ae,Lt)=>this.trackBy?this.trackBy(Lt.dataIndex,Lt.data):Lt)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe((0,u.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(we=>{we?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,T.y)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const we=this._dataDiffer.diff(this._renderRows);if(!we)return this._updateNoDataRow(),void this.contentChanged.next();const ae=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(we,ae,(Lt,Ht,_n)=>this._getEmbeddedViewArgs(Lt.item,_n),Lt=>Lt.item.data,Lt=>{Lt.operation===C.INSERTED&&Lt.context&&this._renderCellTemplateForItem(Lt.record.item.rowDef,Lt.context)}),this._updateRowIndexContext(),we.forEachIdentityChange(Lt=>{ae.get(Lt.currentIndex).context.$implicit=Lt.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(we){this._customColumnDefs.add(we)}removeColumnDef(we){this._customColumnDefs.delete(we)}addRowDef(we){this._customRowDefs.add(we)}removeRowDef(we){this._customRowDefs.delete(we)}addHeaderRowDef(we){this._customHeaderRowDefs.add(we),this._headerRowDefChanged=!0}removeHeaderRowDef(we){this._customHeaderRowDefs.delete(we),this._headerRowDefChanged=!0}addFooterRowDef(we){this._customFooterRowDefs.add(we),this._footerRowDefChanged=!0}removeFooterRowDef(we){this._customFooterRowDefs.delete(we),this._footerRowDefChanged=!0}setNoDataRow(we){this._customNoDataRow=we}updateStickyHeaderRowStyles(){const we=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Lt=wt(this._headerRowOutlet,"thead");Lt&&(Lt.style.display=we.length?"":"none")}const ae=this._headerRowDefs.map(Lt=>Lt.sticky);this._stickyStyler.clearStickyPositioning(we,["top"]),this._stickyStyler.stickRows(we,ae,"top"),this._headerRowDefs.forEach(Lt=>Lt.resetStickyChanged())}updateStickyFooterRowStyles(){const we=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Lt=wt(this._footerRowOutlet,"tfoot");Lt&&(Lt.style.display=we.length?"":"none")}const ae=this._footerRowDefs.map(Lt=>Lt.sticky);this._stickyStyler.clearStickyPositioning(we,["bottom"]),this._stickyStyler.stickRows(we,ae,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ae),this._footerRowDefs.forEach(Lt=>Lt.resetStickyChanged())}updateStickyColumnStyles(){const we=this._getRenderedRows(this._headerRowOutlet),ae=this._getRenderedRows(this._rowOutlet),Lt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...we,...ae,...Lt],["left","right"]),this._stickyColumnStylesNeedReset=!1),we.forEach((Ht,_n)=>{this._addStickyColumnStyles([Ht],this._headerRowDefs[_n])}),this._rowDefs.forEach(Ht=>{const _n=[];for(let fi=0;fi{this._addStickyColumnStyles([Ht],this._footerRowDefs[_n])}),Array.from(this._columnDefsByName.values()).forEach(Ht=>Ht.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const ae=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ae,this._forceRecalculateCellWidths=ae,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const we=[],ae=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return we;for(let Lt=0;Lt{const fi=Lt&&Lt.has(_n)?Lt.get(_n):[];if(fi.length){const bi=fi.shift();return bi.dataIndex=ae,bi}return{data:we,rowDef:_n,dataIndex:ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ue(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ae=>{this._columnDefsByName.has(ae.name),this._columnDefsByName.set(ae.name,ae)})}_cacheRowDefs(){this._headerRowDefs=Ue(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ue(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ue(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const we=this._rowDefs.filter(ae=>!ae.when);this._defaultRowDef=we[0]}_renderUpdatedColumns(){const we=(_n,fi)=>{const bi=!!fi.getColumnsDiff();return _n||bi},ae=this._rowDefs.reduce(we,!1);ae&&this._forceRenderDataRows();const Lt=this._headerRowDefs.reduce(we,!1);Lt&&this._forceRenderHeaderRows();const Ht=this._footerRowDefs.reduce(we,!1);return Ht&&this._forceRenderFooterRows(),ae||Lt||Ht}_switchDataSource(we){this._data=[],(0,T.y)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),we||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=we}_observeRenderChanges(){if(!this.dataSource)return;let we;(0,T.y)(this.dataSource)?we=this.dataSource.connect(this):(0,O.A)(this.dataSource)?we=this.dataSource:Array.isArray(this.dataSource)&&(we=(0,f.of)(this.dataSource)),this._renderChangeSubscription=we.pipe((0,u.Q)(this._onDestroy)).subscribe(ae=>{this._data=ae||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((we,ae)=>this._renderRow(this._headerRowOutlet,we,ae)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((we,ae)=>this._renderRow(this._footerRowOutlet,we,ae)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(we,ae){const Lt=Array.from(ae?.columns||[]).map(fi=>this._columnDefsByName.get(fi)),Ht=Lt.map(fi=>fi.sticky),_n=Lt.map(fi=>fi.stickyEnd);this._stickyStyler.updateStickyColumns(we,Ht,_n,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(we){const ae=[];for(let Lt=0;Lt!Ht.when||Ht.when(ae,we));else{let Ht=this._rowDefs.find(_n=>_n.when&&_n.when(ae,we))||this._defaultRowDef;Ht&&Lt.push(Ht)}return Lt}_getEmbeddedViewArgs(we,ae){return{templateRef:we.rowDef.template,context:{$implicit:we.data},index:ae}}_renderRow(we,ae,Lt,Ht={}){const _n=we.viewContainer.createEmbeddedView(ae.template,Ht,Lt);return this._renderCellTemplateForItem(ae,Ht),_n}_renderCellTemplateForItem(we,ae){for(let Lt of this._getCellTemplates(we))F.mostRecentCellOutlet&&F.mostRecentCellOutlet._viewContainer.createEmbeddedView(Lt,ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const we=this._rowOutlet.viewContainer;for(let ae=0,Lt=we.length;ae{const Lt=this._columnDefsByName.get(ae);return we.extractCellTemplate(Lt)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const we=(ae,Lt)=>ae||Lt.hasStickyChanged();this._headerRowDefs.reduce(we,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(we,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(we,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new St(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:(0,f.of)()).pipe((0,u.Q)(this._onDestroy)).subscribe(ae=>{this._stickyStyler.direction=ae,this.updateStickyColumnStyles()})}_getOwnDefs(we){return we.filter(ae=>!ae._table||ae._table===this)}_updateNoDataRow(){const we=this._customNoDataRow||this._noDataRow;if(!we)return;const ae=0===this._rowOutlet.viewContainer.length;if(ae===this._isShowingNoDataRow)return;const Lt=this._noDataRowOutlet.viewContainer;if(ae){const Ht=Lt.createEmbeddedView(we.templateRef),_n=Ht.rootNodes[0];if(1===Ht.rootNodes.length&&_n?.nodeType===this._document.ELEMENT_NODE){_n.setAttribute("role","row"),_n.classList.add(...we._contentClassNames);const fi=_n.querySelectorAll(we._cellSelector);for(let bi=0;bi{class Tt{static \u0275fac=function(ae){return new(ae||Tt)};static \u0275mod=i.$C({type:Tt});static \u0275inj=d.G2t({imports:[Ae.E9]})}return Tt})();var ei=l(2466),vi=l(7786),Ni=l(4572),kn=l(7847),Ri=l(6354);const vt=[[["caption"]],[["colgroup"],["col"]],"*"],ee=["caption","colgroup, col","*"];function ye(Tt,At){1&Tt&&i.SdG(0,2)}function ke(Tt,At){1&Tt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",2),i.eu8(3,3)(4,4),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,5),i.k0s())}function Se(Tt,At){1&Tt&&i.eu8(0,1)(1,3)(2,4)(3,5)}let Me=(()=>{class Tt extends jt{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275cmp=i.VBU({type:Tt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(ae,Lt){2&ae&&i.AVh("mdc-table-fixed-layout",Lt.fixedLayout)},exportAs:["matTable"],features:[i.Jv_([{provide:jt,useExisting:Tt},{provide:ce,useExisting:Tt},{provide:B,useClass:Pe},{provide:rt,useValue:null}]),i.Vt3],ngContentSelectors:ee,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ae,Lt){1&ae&&(i.NAR(vt),i.SdG(0),i.SdG(1,1),i.nVh(2,ye,1,0),i.nVh(3,ke,7,0)(4,Se,4,0)),2&ae&&(i.R7$(2),i.vxM(Lt._isServer?2:-1),i.R7$(),i.vxM(Lt._isNativeHtmlTable?3:4))},dependencies:[Sn,Ft,h,Qn],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],encapsulation:2})}return Tt})(),at=(()=>{class Tt extends ne{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matCellDef",""]],features:[i.Jv_([{provide:ne,useExisting:Tt}]),i.Vt3]})}return Tt})(),qe=(()=>{class Tt extends J{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matHeaderCellDef",""]],features:[i.Jv_([{provide:J,useExisting:Tt}]),i.Vt3]})}return Tt})(),pn=(()=>{class Tt extends De{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matFooterCellDef",""]],features:[i.Jv_([{provide:De,useExisting:Tt}]),i.Vt3]})}return Tt})(),Je=(()=>{class Tt extends Re{get name(){return this._name}set name(we){this._setNameInput(we)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[i.Jv_([{provide:Re,useExisting:Tt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Tt}]),i.Vt3]})}return Tt})(),Be=(()=>{class Tt extends _e{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.Vt3]})}return Tt})(),ut=(()=>{class Tt extends he{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[i.Vt3]})}return Tt})(),Ge=(()=>{class Tt extends Dt{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.Vt3]})}return Tt})(),se=(()=>{class Tt extends te{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",v.L39]},features:[i.Jv_([{provide:te,useExisting:Tt}]),i.Vt3]})}return Tt})(),We=(()=>{class Tt extends ie{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",v.L39]},features:[i.Jv_([{provide:ie,useExisting:Tt}]),i.Vt3]})}return Tt})(),bt=(()=>{class Tt extends P{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275dir=i.FsC({type:Tt,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[i.Jv_([{provide:P,useExisting:Tt}]),i.Vt3]})}return Tt})(),tn=(()=>{class Tt extends ve{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275cmp=i.VBU({type:Tt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i.Jv_([{provide:ve,useExisting:Tt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),on=(()=>{class Tt extends H{static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275cmp=i.VBU({type:Tt,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[i.Jv_([{provide:H,useExisting:Tt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),un=(()=>{class Tt extends ${static \u0275fac=(()=>{let we;return function(Lt){return(we||(we=i.xGo(Tt)))(Lt||Tt)}})();static \u0275cmp=i.VBU({type:Tt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i.Jv_([{provide:$,useExisting:Tt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ae,Lt){1&ae&&i.eu8(0,0)},dependencies:[F],encapsulation:2})}return Tt})(),Jn=(()=>{class Tt{static \u0275fac=function(ae){return new(ae||Tt)};static \u0275mod=i.$C({type:Tt});static \u0275inj=d.G2t({imports:[ei.y,gn,ei.y]})}return Tt})();class Yi extends T.q{_data;_renderData=new e.t([]);_filter=new e.t("");_internalPageChanges=new w.B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(At){At=Array.isArray(At)?At:[],this._data.next(At),this._renderChangesSubscription||this._filterData(At)}get filter(){return this._filter.value}set filter(At){this._filter.next(At),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(At){this._sort=At,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(At){this._paginator=At,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(At,we)=>{const ae=At[we];if((0,kn.o1)(ae)){const Lt=Number(ae);return Lt<9007199254740991?Lt:ae}return ae};sortData=(At,we)=>{const ae=we.active,Lt=we.direction;return ae&&""!=Lt?At.sort((Ht,_n)=>{let fi=this.sortingDataAccessor(Ht,ae),bi=this.sortingDataAccessor(_n,ae);const Qi=typeof fi,zi=typeof bi;Qi!==zi&&("number"===Qi&&(fi+=""),"number"===zi&&(bi+=""));let It=0;return null!=fi&&null!=bi?fi>bi?It=1:fi{const ae=we.trim().toLowerCase();return Object.values(At).some(Lt=>`${Lt}`.toLowerCase().includes(ae))};constructor(At=[]){super(),this._data=new e.t(At),this._updateChangeSubscription()}_updateChangeSubscription(){const At=this._sort?(0,vi.h)(this._sort.sortChange,this._sort.initialized):(0,f.of)(null),we=this._paginator?(0,vi.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,f.of)(null),Lt=(0,Ni.z)([this._data,this._filter]).pipe((0,Ri.T)(([fi])=>this._filterData(fi))),Ht=(0,Ni.z)([Lt,At]).pipe((0,Ri.T)(([fi])=>this._orderData(fi))),_n=(0,Ni.z)([Ht,we]).pipe((0,Ri.T)(([fi])=>this._pageData(fi)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=_n.subscribe(fi=>this._renderData.next(fi))}_filterData(At){return this.filteredData=null==this.filter||""===this.filter?At:At.filter(we=>this.filterPredicate(we,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(At){return this.sort?this.sortData(At.slice(),this.sort):At}_pageData(At){if(!this.paginator)return At;const we=this.paginator.pageIndex*this.paginator.pageSize;return At.slice(we,we+this.paginator.pageSize)}_updatePaginator(At){Promise.resolve().then(()=>{const we=this.paginator;if(we&&(we.length=At,we.pageIndex>0)){const ae=Math.ceil(we.length/we.pageSize)-1||0,Lt=Math.min(we.pageIndex,ae);Lt!==we.pageIndex&&(we.pageIndex=Lt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},6850(Zt,pe,l){"use strict";l.d(pe,{Bu:()=>ge,ES:()=>Ft,Ql:()=>N,RI:()=>Me,T8:()=>ke,hQ:()=>Z,mq:()=>Qn});var i=l(6838),d=l(9726),v=l(4123),T=l(1577),w=l(7336),e=l(438),O=l(3610),f=l(9842),u=l(5718),L=l(2615),C=l(3664),B=l(7705),A=l(9295),Pe=l(1985),le=l(1413),Ce=l(4412),Ae=l(8359),j=l(7786),W=l(7673),G=l(1807),re=l(983),xe=l(152),Ee=l(5964),V=l(5245),ce=l(9172),be=l(5558),ne=l(6977),J=l(1804),De=l(6939),Re=l(8968),Xe=l(2046),_e=l(2318),he=l(2496),Dt=l(2466);const lt=["*"];function Le(qe,pn){1&qe&&C.SdG(0)}const te=["tabListContainer"],ie=["tabList"],P=["tabListInner"],F=["nextPaginator"],ve=["previousPaginator"],H=["content"];function $(qe,pn){}const Ke=["tabBodyWrapper"],Vt=["tabHeader"];function St(qe,pn){}function ot(qe,pn){if(1&qe&&C.DNE(0,St,0,0,"ng-template",12),2&qe){const Je=C.XpG().$implicit;C.Y8G("cdkPortalOutlet",Je.templateLabel)}}function nt(qe,pn){if(1&qe&&C.EFF(0),2&qe){const Je=C.XpG().$implicit;C.JRh(Je.textLabel)}}function ht(qe,pn){if(1&qe){const Je=C.RV6();C.j41(0,"div",7,2),C.bIt("click",function(){const ut=L.eBV(Je),Ge=ut.$implicit,Ot=ut.$index,se=C.XpG(),We=C.sdS(1);return L.Njj(se._handleClick(Ge,We,Ot))})("cdkFocusChange",function(ut){const Ge=L.eBV(Je).$index,Ot=C.XpG();return L.Njj(Ot._tabFocusChanged(ut,Ge))}),C.nrm(2,"span",8)(3,"div",9),C.j41(4,"span",10)(5,"span",11),C.nVh(6,ot,1,1,null,12)(7,nt,1,1),C.k0s()()()}if(2&qe){const Je=pn.$implicit,Be=pn.$index,ut=C.sdS(1),Ge=C.XpG();C.HbH(Je.labelClass),C.AVh("mdc-tab--active",Ge.selectedIndex===Be),C.Y8G("id",Ge._getTabLabelId(Je,Be))("disabled",Je.disabled)("fitInkBarToContent",Ge.fitInkBarToContent),C.BMQ("tabIndex",Ge._getTabIndex(Be))("aria-posinset",Be+1)("aria-setsize",Ge._tabs.length)("aria-controls",Ge._getTabContentId(Be))("aria-selected",Ge.selectedIndex===Be)("aria-label",Je.ariaLabel||null)("aria-labelledby",!Je.ariaLabel&&Je.ariaLabelledby?Je.ariaLabelledby:null),C.R7$(3),C.Y8G("matRippleTrigger",ut)("matRippleDisabled",Je.disabled||Ge.disableRipple),C.R7$(3),C.vxM(Je.templateLabel?6:7)}}function oe(qe,pn){1&qe&&C.SdG(0)}function Ye(qe,pn){if(1&qe){const Je=C.RV6();C.j41(0,"mat-tab-body",13),C.bIt("_onCentered",function(){L.eBV(Je);const ut=C.XpG();return L.Njj(ut._removeTabBodyWrapperHeight())})("_onCentering",function(ut){L.eBV(Je);const Ge=C.XpG();return L.Njj(Ge._setTabBodyWrapperHeight(ut))})("_beforeCentering",function(ut){L.eBV(Je);const Ge=C.XpG();return L.Njj(Ge._bodyCentered(ut))}),C.k0s()}if(2&qe){const Je=pn.$implicit,Be=pn.$index,ut=C.XpG();C.HbH(Je.bodyClass),C.Y8G("id",ut._getTabContentId(Be))("content",Je.content)("position",Je.position)("animationDuration",ut.animationDuration)("preserveContent",ut.preserveContent),C.BMQ("tabindex",null!=ut.contentTabIndex&&ut.selectedIndex===Be?ut.contentTabIndex:null)("aria-labelledby",ut._getTabLabelId(Je,Be))("aria-hidden",ut.selectedIndex!==Be)}}const fe=["mat-tab-nav-bar",""],Qe=["mat-tab-link",""],gt=new L.nKC("MatTabContent");let Gt=(()=>{class qe{template=(0,L.WQX)(C.C4Q);constructor(){}static \u0275fac=function(Be){return new(Be||qe)};static \u0275dir=C.FsC({type:qe,selectors:[["","matTabContent",""]],features:[C.Jv_([{provide:gt,useExisting:qe}])]})}return qe})();const rt=new L.nKC("MatTabLabel"),cn=new L.nKC("MAT_TAB");let Ft=(()=>{class qe extends De.bV{_closestTab=(0,L.WQX)(cn,{optional:!0});static \u0275fac=(()=>{let Je;return function(ut){return(Je||(Je=C.xGo(qe)))(ut||qe)}})();static \u0275dir=C.FsC({type:qe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[C.Jv_([{provide:rt,useExisting:qe}]),C.Vt3]})}return qe})();const Sn=new L.nKC("MAT_TAB_GROUP");let Qn=(()=>{class qe{_viewContainerRef=(0,L.WQX)(C.c1b);_closestTabGroup=(0,L.WQX)(Sn,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(Je){this._setTemplateLabelInput(Je)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new le.B;position=null;origin=null;isActive=!1;constructor(){(0,L.WQX)(Re.l).load(Xe.A)}ngOnChanges(Je){(Je.hasOwnProperty("textLabel")||Je.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new De.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Je){Je&&Je._closestTab===this&&(this._templateLabel=Je)}static \u0275fac=function(Be){return new(Be||qe)};static \u0275cmp=C.VBU({type:qe,selectors:[["mat-tab"]],contentQueries:function(Be,ut,Ge){if(1&Be&&(C.wni(Ge,Ft,5),C.wni(Ge,Gt,7,C.C4Q)),2&Be){let Ot;C.mGM(Ot=C.lsd())&&(ut.templateLabel=Ot.first),C.mGM(Ot=C.lsd())&&(ut._explicitContent=Ot.first)}},viewQuery:function(Be,ut){if(1&Be&&C.GBs(C.C4Q,7),2&Be){let Ge;C.mGM(Ge=C.lsd())&&(ut._implicitContent=Ge.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(Be,ut){2&Be&&C.BMQ("id",null)},inputs:{disabled:[2,"disabled","disabled",B.L39],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[C.Jv_([{provide:cn,useExisting:qe}]),C.OA$],ngContentSelectors:lt,decls:1,vars:0,template:function(Be,ut){1&Be&&(C.NAR(),C.PeT(0,Le,1,0,"ng-template"))},encapsulation:2})}return qe})();const h="mdc-tab-indicator--active",jt="mdc-tab-indicator--no-transition";class Ue{_items;_currentItem;constructor(pn){this._items=pn}hide(){this._items.forEach(pn=>pn.deactivateInkBar()),this._currentItem=void 0}alignToElement(pn){const Je=this._items.find(ut=>ut.elementRef.nativeElement===pn),Be=this._currentItem;if(Je!==Be&&(Be?.deactivateInkBar(),Je)){const ut=Be?.elementRef.nativeElement.getBoundingClientRect?.();Je.activateInkBar(ut),this._currentItem=Je}}}let wt=(()=>{class qe{_elementRef=(0,L.WQX)(C.aKT);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Je){this._fitToContent!==Je&&(this._fitToContent=Je,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Je){const Be=this._elementRef.nativeElement;if(!Je||!Be.getBoundingClientRect||!this._inkBarContentElement)return void Be.classList.add(h);const ut=Be.getBoundingClientRect(),Ge=Je.width/ut.width,Ot=Je.left-ut.left;Be.classList.add(jt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Ot}px) scaleX(${Ge})`),Be.getBoundingClientRect(),Be.classList.remove(jt),Be.classList.add(h),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(h)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Je=this._elementRef.nativeElement.ownerDocument||document,Be=this._inkBarElement=Je.createElement("span"),ut=this._inkBarContentElement=Je.createElement("span");Be.className="mdc-tab-indicator",ut.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",Be.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static \u0275fac=function(Be){return new(Be||qe)};static \u0275dir=C.FsC({type:qe,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",B.L39]}})}return qe})(),gn=(()=>{class qe extends wt{elementRef=(0,L.WQX)(C.aKT);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let Je;return function(ut){return(Je||(Je=C.xGo(qe)))(ut||qe)}})();static \u0275dir=C.FsC({type:qe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(Be,ut){2&Be&&(C.BMQ("aria-disabled",!!ut.disabled),C.AVh("mat-mdc-tab-disabled",ut.disabled))},inputs:{disabled:[2,"disabled","disabled",B.L39]},features:[C.Vt3]})}return qe})();const ei={passive:!0};let kn=(()=>{class qe{_elementRef=(0,L.WQX)(C.aKT);_changeDetectorRef=(0,L.WQX)(B.gRc);_viewportRuler=(0,L.WQX)(u.Xj);_dir=(0,L.WQX)(T.dS,{optional:!0});_ngZone=(0,L.WQX)(C.SKi);_platform=(0,L.WQX)(f.O);_sharedResizeObserver=(0,L.WQX)(O.a);_injector=(0,L.WQX)(L.zZn);_renderer=(0,L.WQX)(C.sFG);_animationsDisabled=(0,J.Rc)();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new le.B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new le.B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){const Be=isNaN(Je)?0:Je;this._selectedIndex!=Be&&(this._selectedIndexChanged=!0,this._selectedIndex=Be,this._keyManager&&this._keyManager.updateActiveItem(Be))}_selectedIndex=0;selectFocusedIndex=new C.bkB;indexFocused=new C.bkB;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),ei),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),ei))}ngAfterContentInit(){const Je=this._dir?this._dir.change:(0,W.of)("ltr"),Be=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe((0,xe.B)(32),(0,ne.Q)(this._destroyed)),ut=this._viewportRuler.change(150).pipe((0,ne.Q)(this._destroyed)),Ge=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new v.B(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),(0,C.mal)(Ge,{injector:this._injector}),(0,j.h)(Je,ut,Be,this._items.changes,this._itemsResized()).pipe((0,ne.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ge()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Ot=>{this.indexFocused.emit(Ot),this._setTabFocus(Ot)})}_itemsResized(){return"function"!=typeof ResizeObserver?re.w:this._items.changes.pipe((0,ce.Z)(this._items),(0,be.n)(Je=>new Pe.c(Be=>this._ngZone.runOutsideAngular(()=>{const ut=new ResizeObserver(Ge=>Be.next(Ge));return Je.forEach(Ge=>ut.observe(Ge.elementRef.nativeElement)),()=>{ut.disconnect()}}))),(0,V.i)(1),(0,Ee.p)(Je=>Je.some(Be=>Be.contentRect.width>0&&Be.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(Je=>Je()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Je){if(!(0,w.rp)(Je))switch(Je.keyCode){case e.Fm:case e.t6:if(this.focusIndex!==this.selectedIndex){const Be=this._items.get(this.focusIndex);Be&&!Be.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Je))}break;default:this._keyManager?.onKeydown(Je)}}_onContentChanges(){const Je=this._elementRef.nativeElement.textContent;Je!==this._currentTextContent&&(this._currentTextContent=Je||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Je){!this._isValidIndex(Je)||this.focusIndex===Je||!this._keyManager||this._keyManager.setActiveItem(Je)}_isValidIndex(Je){return!this._items||!!this._items.toArray()[Je]}_setTabFocus(Je){if(this._showPaginationControls&&this._scrollToLabel(Je),this._items&&this._items.length){this._items.toArray()[Je].focus();const Be=this._tabListContainer.nativeElement;Be.scrollLeft="ltr"==this._getLayoutDirection()?0:Be.scrollWidth-Be.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Je=this.scrollDistance,Be="ltr"===this._getLayoutDirection()?-Je:Je;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Be)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Je){this._scrollTo(Je)}_scrollHeader(Je){return this._scrollTo(this._scrollDistance+("before"==Je?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Je){this._stopInterval(),this._scrollHeader(Je)}_scrollToLabel(Je){if(this.disablePagination)return;const Be=this._items?this._items.toArray()[Je]:null;if(!Be)return;const ut=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Ge,offsetWidth:Ot}=Be.elementRef.nativeElement;let se,We;"ltr"==this._getLayoutDirection()?(se=Ge,We=se+Ot):(We=this._tabListInner.nativeElement.offsetWidth-Ge,se=We-Ot);const bt=this.scrollDistance,tn=this.scrollDistance+ut;setn&&(this.scrollDistance+=Math.min(We-tn,se-bt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const ut=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;ut||(this.scrollDistance=0),ut!==this._showPaginationControls&&(this._showPaginationControls=ut,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Je=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Be=Je?Je.elementRef.nativeElement:null;Be?this._inkBar.alignToElement(Be):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Je,Be){Be&&null!=Be.button&&0!==Be.button||(this._stopInterval(),(0,G.O)(650,100).pipe((0,ne.Q)((0,j.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ut,distance:Ge}=this._scrollHeader(Je);(0===Ge||Ge>=ut)&&this._stopInterval()}))}_scrollTo(Je){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Be=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Be,Je)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Be,distance:this._scrollDistance}}static \u0275fac=function(Be){return new(Be||qe)};static \u0275dir=C.FsC({type:qe,inputs:{disablePagination:[2,"disablePagination","disablePagination",B.L39],selectedIndex:[2,"selectedIndex","selectedIndex",B.Udg]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return qe})(),Ri=(()=>{class qe extends kn{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Ue(this._items),super.ngAfterContentInit()}_itemSelected(Je){Je.preventDefault()}static \u0275fac=(()=>{let Je;return function(ut){return(Je||(Je=C.xGo(qe)))(ut||qe)}})();static \u0275cmp=C.VBU({type:qe,selectors:[["mat-tab-header"]],contentQueries:function(Be,ut,Ge){if(1&Be&&C.wni(Ge,gn,4),2&Be){let Ot;C.mGM(Ot=C.lsd())&&(ut._items=Ot)}},viewQuery:function(Be,ut){if(1&Be&&(C.GBs(te,7),C.GBs(ie,7),C.GBs(P,7),C.GBs(F,5),C.GBs(ve,5)),2&Be){let Ge;C.mGM(Ge=C.lsd())&&(ut._tabListContainer=Ge.first),C.mGM(Ge=C.lsd())&&(ut._tabList=Ge.first),C.mGM(Ge=C.lsd())&&(ut._tabListInner=Ge.first),C.mGM(Ge=C.lsd())&&(ut._nextPaginator=Ge.first),C.mGM(Ge=C.lsd())&&(ut._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(Be,ut){2&Be&&C.AVh("mat-mdc-tab-header-pagination-controls-enabled",ut._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ut._getLayoutDirection())},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",B.L39]},features:[C.Vt3],ngContentSelectors:lt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(Be,ut){if(1&Be){const Ge=C.RV6();C.NAR(),C.j41(0,"div",5,0),C.bIt("click",function(){return L.eBV(Ge),L.Njj(ut._handlePaginatorClick("before"))})("mousedown",function(se){return L.eBV(Ge),L.Njj(ut._handlePaginatorPress("before",se))})("touchend",function(){return L.eBV(Ge),L.Njj(ut._stopInterval())}),C.nrm(2,"div",6),C.k0s(),C.j41(3,"div",7,1),C.bIt("keydown",function(se){return L.eBV(Ge),L.Njj(ut._handleKeydown(se))}),C.j41(5,"div",8,2),C.bIt("cdkObserveContent",function(){return L.eBV(Ge),L.Njj(ut._onContentChanges())}),C.j41(7,"div",9,3),C.SdG(9),C.k0s()()(),C.j41(10,"div",10,4),C.bIt("mousedown",function(se){return L.eBV(Ge),L.Njj(ut._handlePaginatorPress("after",se))})("click",function(){return L.eBV(Ge),L.Njj(ut._handlePaginatorClick("after"))})("touchend",function(){return L.eBV(Ge),L.Njj(ut._stopInterval())}),C.nrm(12,"div",6),C.k0s()}2&Be&&(C.AVh("mat-mdc-tab-header-pagination-disabled",ut._disableScrollBefore),C.Y8G("matRippleDisabled",ut._disableScrollBefore||ut.disableRipple),C.R7$(3),C.AVh("_mat-animation-noopable",ut._animationsDisabled),C.R7$(2),C.BMQ("aria-label",ut.ariaLabel||null)("aria-labelledby",ut.ariaLabelledby||null),C.R7$(5),C.AVh("mat-mdc-tab-header-pagination-disabled",ut._disableScrollAfter),C.Y8G("matRippleDisabled",ut._disableScrollAfter||ut.disableRipple))},dependencies:[he.r6,_e.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],encapsulation:2})}return qe})();const vt=new L.nKC("MAT_TABS_CONFIG");let ee=(()=>{class qe extends De.I3{_host=(0,L.WQX)(ye);_ngZone=(0,L.WQX)(C.SKi);_centeringSub=Ae.yU.EMPTY;_leavingSub=Ae.yU.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ce.Z)(this._host._isCenterPosition())).subscribe(Je=>{this._host._content&&Je&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(Be){return new(Be||qe)};static \u0275dir=C.FsC({type:qe,selectors:[["","matTabBodyHost",""]],features:[C.Vt3]})}return qe})(),ye=(()=>{class qe{_elementRef=(0,L.WQX)(C.aKT);_dir=(0,L.WQX)(T.dS,{optional:!0});_ngZone=(0,L.WQX)(C.SKi);_injector=(0,L.WQX)(L.zZn);_renderer=(0,L.WQX)(C.sFG);_diAnimationsDisabled=(0,J.Rc)();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Ae.yU.EMPTY;_position;_previousPosition;_onCentering=new C.bkB;_beforeCentering=new C.bkB;_afterLeavingCenter=new C.bkB;_onCentered=new C.bkB(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(Je){this._positionIndex=Je,this._computePositionAnimationState()}constructor(){if(this._dir){const Je=(0,L.WQX)(B.gRc);this._dirChangeSubscription=this._dir.change.subscribe(Be=>{this._computePositionAnimationState(Be),Je.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),"center"===this._position&&(this._setActiveClass(!0),(0,C.mal)(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(Je=>Je()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{const Je=this._elementRef.nativeElement,Be=ut=>{ut.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),"transitionend"===ut.type&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(Je,"transitionstart",ut=>{ut.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(Je,"transitionend",Be),this._renderer.listen(Je,"transitioncancel",Be)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);const Je="center"===this._position;this._beforeCentering.emit(Je),Je&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){"center"===this._position?this._onCentered.emit():"center"===this._previousPosition&&this._afterLeavingCenter.emit()}_setActiveClass(Je){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",Je)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(){return 0===this._positionIndex}_computePositionAnimationState(Je=this._getLayoutDirection()){this._previousPosition=this._position,this._position=this._positionIndex<0?"ltr"==Je?"left":"right":this._positionIndex>0?"ltr"==Je?"right":"left":"center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&("center"===this._position||"center"===this._previousPosition)&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),(0,C.mal)(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||"0ms"===this.animationDuration||"0s"===this.animationDuration}static \u0275fac=function(Be){return new(Be||qe)};static \u0275cmp=C.VBU({type:qe,selectors:[["mat-tab-body"]],viewQuery:function(Be,ut){if(1&Be&&(C.GBs(ee,5),C.GBs(H,5)),2&Be){let Ge;C.mGM(Ge=C.lsd())&&(ut._portalHost=Ge.first),C.mGM(Ge=C.lsd())&&(ut._contentElement=Ge.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(Be,ut){2&Be&&C.BMQ("inert","center"===ut._position?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(Be,ut){1&Be&&(C.j41(0,"div",1,0),C.DNE(2,$,0,0,"ng-template",2),C.k0s()),2&Be&&C.AVh("mat-tab-body-content-left","left"===ut._position)("mat-tab-body-content-right","right"===ut._position)("mat-tab-body-content-can-animate","center"===ut._position||"center"===ut._previousPosition)},dependencies:[ee,u.uv],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],encapsulation:2})}return qe})(),ke=(()=>{class qe{_elementRef=(0,L.WQX)(C.aKT);_changeDetectorRef=(0,L.WQX)(B.gRc);_ngZone=(0,L.WQX)(C.SKi);_tabsSubscription=Ae.yU.EMPTY;_tabLabelSubscription=Ae.yU.EMPTY;_tabBodySubscription=Ae.yU.EMPTY;_diAnimationsDisabled=(0,J.Rc)();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new C.rOR;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Je){this._fitInkBarToContent=Je,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Je){this._indexToSelect=isNaN(Je)?null:Je}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(Je){const Be=Je+"";this._animationDuration=/^\d+$/.test(Be)?Je+"ms":Be}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Je){this._contentTabIndex=isNaN(Je)?null:Je}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Be=this._elementRef.nativeElement.classList;Be.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Je&&Be.add("mat-tabs-with-background",`mat-background-${Je}`),this._backgroundColor=Je}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new C.bkB;focusChange=new C.bkB;animationDone=new C.bkB;selectedTabChange=new C.bkB(!0);_groupId;_isServer=!(0,L.WQX)(f.O).isBrowser;constructor(){const Je=(0,L.WQX)(vt,{optional:!0});this._groupId=(0,L.WQX)(d.g).getId("mat-tab-group-"),this.animationDuration=Je&&Je.animationDuration?Je.animationDuration:"500ms",this.disablePagination=!(!Je||null==Je.disablePagination)&&Je.disablePagination,this.dynamicHeight=!(!Je||null==Je.dynamicHeight)&&Je.dynamicHeight,null!=Je?.contentTabIndex&&(this.contentTabIndex=Je.contentTabIndex),this.preserveContent=!!Je?.preserveContent,this.fitInkBarToContent=!(!Je||null==Je.fitInkBarToContent)&&Je.fitInkBarToContent,this.stretchTabs=!Je||null==Je.stretchTabs||Je.stretchTabs,this.alignTabs=Je&&null!=Je.alignTabs?Je.alignTabs:null}ngAfterContentChecked(){const Je=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Je){const Be=null==this._selectedIndex;if(!Be){this.selectedTabChange.emit(this._createChangeEvent(Je));const ut=this._tabBodyWrapper.nativeElement;ut.style.minHeight=ut.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ut,Ge)=>ut.isActive=Ge===Je),Be||(this.selectedIndexChange.emit(Je),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Be,ut)=>{Be.position=ut-Je,null!=this._selectedIndex&&0==Be.position&&!Be.origin&&(Be.origin=Je-this._selectedIndex)}),this._selectedIndex!==Je&&(this._selectedIndex=Je,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Je=this._clampTabIndex(this._indexToSelect);if(Je===this._selectedIndex){const Be=this._tabs.toArray();let ut;for(let Ge=0;Ge{Be[Je].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Je))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,ce.Z)(this._allTabs)).subscribe(Je=>{this._tabs.reset(Je.filter(Be=>Be._closestTabGroup===this||!Be._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Je){const Be=this._tabHeader;Be&&(Be.focusIndex=Je)}_focusChanged(Je){this._lastFocusedTabIndex=Je,this.focusChange.emit(this._createChangeEvent(Je))}_createChangeEvent(Je){const Be=new Se;return Be.index=Je,this._tabs&&this._tabs.length&&(Be.tab=this._tabs.toArray()[Je]),Be}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,j.h)(...this._tabs.map(Je=>Je._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Je){return Math.min(this._tabs.length-1,Math.max(Je||0,0))}_getTabLabelId(Je,Be){return Je.id||`${this._groupId}-label-${Be}`}_getTabContentId(Je){return`${this._groupId}-content-${Je}`}_setTabBodyWrapperHeight(Je){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return void(this._tabBodyWrapperHeight=Je);const Be=this._tabBodyWrapper.nativeElement;Be.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Be.style.height=Je+"px")}_removeTabBodyWrapperHeight(){const Je=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Je.clientHeight,Je.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(Je,Be,ut){Be.focusIndex=ut,Je.disabled||(this.selectedIndex=ut)}_getTabIndex(Je){return Je===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Je,Be){Je&&"mouse"!==Je&&"touch"!==Je&&(this._tabHeader.focusIndex=Be)}_bodyCentered(Je){Je&&this._tabBodies?.forEach((Be,ut)=>Be._setActiveClass(ut===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||"0"===this.animationDuration||"0ms"===this.animationDuration}static \u0275fac=function(Be){return new(Be||qe)};static \u0275cmp=C.VBU({type:qe,selectors:[["mat-tab-group"]],contentQueries:function(Be,ut,Ge){if(1&Be&&C.wni(Ge,Qn,5),2&Be){let Ot;C.mGM(Ot=C.lsd())&&(ut._allTabs=Ot)}},viewQuery:function(Be,ut){if(1&Be&&(C.GBs(Ke,5),C.GBs(Vt,5),C.GBs(ye,5)),2&Be){let Ge;C.mGM(Ge=C.lsd())&&(ut._tabBodyWrapper=Ge.first),C.mGM(Ge=C.lsd())&&(ut._tabHeader=Ge.first),C.mGM(Ge=C.lsd())&&(ut._tabBodies=Ge)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(Be,ut){2&Be&&(C.BMQ("mat-align-tabs",ut.alignTabs),C.HbH("mat-"+(ut.color||"primary")),C.xc7("--mat-tab-animation-duration",ut.animationDuration),C.AVh("mat-mdc-tab-group-dynamic-height",ut.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ut.headerPosition)("mat-mdc-tab-group-stretch-tabs",ut.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",B.L39],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",B.L39],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",B.L39],selectedIndex:[2,"selectedIndex","selectedIndex",B.Udg],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",B.Udg],disablePagination:[2,"disablePagination","disablePagination",B.L39],disableRipple:[2,"disableRipple","disableRipple",B.L39],preserveContent:[2,"preserveContent","preserveContent",B.L39],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[C.Jv_([{provide:Sn,useExisting:qe}])],ngContentSelectors:lt,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(Be,ut){if(1&Be){const Ge=C.RV6();C.NAR(),C.j41(0,"mat-tab-header",3,0),C.bIt("indexFocused",function(se){return L.eBV(Ge),L.Njj(ut._focusChanged(se))})("selectFocusedIndex",function(se){return L.eBV(Ge),L.Njj(ut.selectedIndex=se)}),C.Z7z(2,ht,8,17,"div",4,C.fX1),C.k0s(),C.nVh(4,oe,1,0),C.j41(5,"div",5,1),C.Z7z(7,Ye,1,10,"mat-tab-body",6,C.fX1),C.k0s()}2&Be&&(C.Y8G("selectedIndex",ut.selectedIndex||0)("disableRipple",ut.disableRipple)("disablePagination",ut.disablePagination),C.jOp("aria-label",ut.ariaLabel)("aria-labelledby",ut.ariaLabelledby),C.R7$(2),C.Dyx(ut._tabs),C.R7$(2),C.vxM(ut._isServer?4:-1),C.R7$(),C.AVh("_mat-animation-noopable",ut._animationsDisabled()),C.R7$(2),C.Dyx(ut._tabs))},dependencies:[Ri,gn,i.vR,he.r6,De.I3,ye],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],encapsulation:2})}return qe})();class Se{index;tab}let ge=(()=>{class qe extends kn{_focusedItem=(0,L.vPA)(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Je){this._fitInkBarToContent.next(Je),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Ce.t(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(Je){const Be=Je+"";this._animationDuration=/^\d+$/.test(Be)?Je+"ms":Be}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(Je){const Be=this._elementRef.nativeElement.classList;Be.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Je&&Be.add("mat-tabs-with-background",`mat-background-${Je}`),this._backgroundColor=Je}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(Je){this._disableRipple.set(Je)}_disableRipple=(0,L.vPA)(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){const Je=(0,L.WQX)(vt,{optional:!0});super(),this.disablePagination=!(!Je||null==Je.disablePagination)&&Je.disablePagination,this.fitInkBarToContent=!(!Je||null==Je.fitInkBarToContent)&&Je.fitInkBarToContent,this.stretchTabs=!Je||null==Je.stretchTabs||Je.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Ue(this._items),this._items.changes.pipe((0,ce.Z)(null),(0,ne.Q)(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe((0,ce.Z)(null),(0,ne.Q)(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const Je=this._items.toArray();for(let Be=0;Be.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}\n"],encapsulation:2})}return qe})(),N=(()=>{class qe extends wt{_tabNavBar=(0,L.WQX)(ge);elementRef=(0,L.WQX)(C.aKT);_focusMonitor=(0,L.WQX)(i.FN);_destroyed=new le.B;_isActive=!1;_tabIndex=(0,A.EW)(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(Je){Je!==this._isActive&&(this._isActive=Je,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(Je){this._disableRipple.set(Je)}_disableRipple=(0,L.vPA)(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=(0,L.WQX)(d.g).getId("mat-tab-link-");constructor(){super(),(0,L.WQX)(Re.l).load(Xe.A);const Je=(0,L.WQX)(he.$E,{optional:!0}),Be=(0,L.WQX)(new B.ES_("tabindex"),{optional:!0});this.rippleConfig=Je||{},this.tabIndex=null==Be?0:parseInt(Be)||0,(0,J.Rc)()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe((0,ne.Q)(this._destroyed)).subscribe(ut=>{this.fitInkBarToContent=ut})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Je){(Je.keyCode===e.t6||Je.keyCode===e.Fm)&&(this.disabled?Je.preventDefault():this._tabNavBar.tabPanel&&(Je.keyCode===e.t6&&Je.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(Be){return new(Be||qe)};static \u0275cmp=C.VBU({type:qe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(Be,ut){1&Be&&C.bIt("focus",function(){return ut._handleFocus()})("keydown",function(Ot){return ut._handleKeydown(Ot)}),2&Be&&(C.BMQ("aria-controls",ut._getAriaControls())("aria-current",ut._getAriaCurrent())("aria-disabled",ut.disabled)("aria-selected",ut._getAriaSelected())("id",ut.id)("tabIndex",ut._tabIndex())("role",ut._getRole()),C.AVh("mat-mdc-tab-disabled",ut.disabled)("mdc-tab--active",ut.active))},inputs:{active:[2,"active","active",B.L39],disabled:[2,"disabled","disabled",B.L39],disableRipple:[2,"disableRipple","disableRipple",B.L39],tabIndex:[2,"tabIndex","tabIndex",Je=>null==Je?0:(0,B.Udg)(Je)],id:"id"},exportAs:["matTabLink"],features:[C.Vt3],attrs:Qe,ngContentSelectors:lt,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(Be,ut){1&Be&&(C.NAR(),C.nrm(0,"span",0)(1,"div",1),C.j41(2,"span",2)(3,"span",3),C.SdG(4),C.k0s()()),2&Be&&(C.R7$(),C.Y8G("matRippleTrigger",ut.elementRef.nativeElement)("matRippleDisabled",ut.rippleDisabled))},dependencies:[he.r6],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],encapsulation:2,changeDetection:0})}return qe})(),Z=(()=>{class qe{id=(0,L.WQX)(d.g).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(Be){return new(Be||qe)};static \u0275cmp=C.VBU({type:qe,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(Be,ut){2&Be&&C.BMQ("aria-labelledby",ut._activeTabId)("id",ut.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:lt,decls:1,vars:0,template:function(Be,ut){1&Be&&(C.NAR(),C.SdG(0))},encapsulation:2,changeDetection:0})}return qe})(),Me=(()=>{class qe{static \u0275fac=function(Be){return new(Be||qe)};static \u0275mod=C.$C({type:qe});static \u0275inj=L.G2t({imports:[Dt.y,Dt.y]})}return qe})()},5911(Zt,pe,l){"use strict";l.d(pe,{KQ:()=>f,s5:()=>L});var i=l(2615),d=l(3664),v=l(9842),T=l(2466);const w=["*",[["mat-toolbar-row"]]],e=["*","mat-toolbar-row"];let O=(()=>{class C{static \u0275fac=function(Pe){return new(Pe||C)};static \u0275dir=d.FsC({type:C,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return C})(),f=(()=>{class C{_elementRef=(0,i.WQX)(d.aKT);_platform=(0,i.WQX)(v.O);_document=(0,i.WQX)(i.qQL);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(Pe){return new(Pe||C)};static \u0275cmp=d.VBU({type:C,selectors:[["mat-toolbar"]],contentQueries:function(Pe,le,Ce){if(1&Pe&&d.wni(Ce,O,5),2&Pe){let Ae;d.mGM(Ae=d.lsd())&&(le._toolbarRows=Ae)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(Pe,le){2&Pe&&(d.HbH(le.color?"mat-"+le.color:""),d.AVh("mat-toolbar-multiple-rows",le._toolbarRows.length>0)("mat-toolbar-single-row",0===le._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:e,decls:2,vars:0,template:function(Pe,le){1&Pe&&(d.NAR(w),d.SdG(0),d.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"],encapsulation:2,changeDetection:0})}return C})(),L=(()=>{class C{static \u0275fac=function(Pe){return new(Pe||C)};static \u0275mod=d.$C({type:C});static \u0275inj=i.G2t({imports:[T.y,T.y]})}return C})()},6156(Zt,pe,l){"use strict";l.d(pe,{u:()=>f});var i=l(2615),d=l(3664),v=l(7094),T=l(9338),w=l(5718),e=l(455),O=l(2466);let f=(()=>{class u{static \u0275fac=function(B){return new(B||u)};static \u0275mod=d.$C({type:u});static \u0275inj=i.G2t({providers:[e.YZ],imports:[v.Pd,T.z_,O.y,O.y,w.Gj]})}return u})()},455(Zt,pe,l){"use strict";l.d(pe,{YZ:()=>ce,oV:()=>lt});var i=l(6977),d=l(4085),v=l(7847),T=l(7336),w=l(438),e=l(2615),O=l(3664),f=l(7705),u=l(2200),L=l(9842),C=l(3300),B=l(8617),A=l(6838),Pe=l(1577),le=l(9338),Ce=l(5718),Ae=l(6939),j=l(1413),W=l(1804);const G=["tooltip"],Ee=new e.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const te=(0,e.WQX)(e.zZn);return()=>(0,le.RH)(te,{scrollThrottle:20})}}),ce={provide:Ee,deps:[],useFactory:function V(te){const ie=(0,e.WQX)(e.zZn);return()=>(0,le.RH)(ie,{scrollThrottle:20})}},ne=new e.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function be(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),De="tooltip-panel",Re=(0,C.B)({passive:!0});let lt=(()=>{class te{_elementRef=(0,e.WQX)(O.aKT);_ngZone=(0,e.WQX)(O.SKi);_platform=(0,e.WQX)(L.O);_ariaDescriber=(0,e.WQX)(B.vr);_focusMonitor=(0,e.WQX)(A.FN);_dir=(0,e.WQX)(Pe.dS);_injector=(0,e.WQX)(e.zZn);_viewContainerRef=(0,e.WQX)(O.c1b);_animationsDisabled=(0,W.Rc)();_defaultOptions=(0,e.WQX)(ne,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Le;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(P){P!==this._position&&(this._position=P,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(P){this._positionAtOrigin=(0,d.he)(P),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(P){const F=(0,d.he)(P);this._disabled!==F&&(this._disabled=F,F?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(P){this._showDelay=(0,v.OE)(P)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(P){this._hideDelay=(0,v.OE)(P),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(P){const F=this._message;this._message=null!=P?String(P).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(F)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(P){this._tooltipClass=P,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new j.B;_isDestroyed=!1;constructor(){const P=this._defaultOptions;P&&(this._showDelay=P.showDelay,this._hideDelay=P.hideDelay,P.position&&(this.position=P.position),P.positionAtOrigin&&(this.positionAtOrigin=P.positionAtOrigin),P.touchGestures&&(this.touchGestures=P.touchGestures),P.tooltipClass&&(this.tooltipClass=P.tooltipClass)),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(P=>{P?"keyboard"===P&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const P=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([F,ve])=>{P.removeEventListener(F,ve,Re)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(P,this.message,"tooltip"),this._focusMonitor.stopMonitoring(P)}show(P=this.showDelay,F){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const ve=this._createOverlay(F);this._detach(),this._portal=this._portal||new Ae.A8(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=ve.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(P)}hide(P=this.hideDelay){const F=this._tooltipInstance;F&&(F.isVisible()?F.hide(P):(F._cancelPendingAnimations(),this._detach()))}toggle(P){this._isTooltipVisible()?this.hide():this.show(void 0,P)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(P){if(this._overlayRef){const $=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!P)&&$._origin instanceof O.aKT)return this._overlayRef;this._detach()}const F=this._injector.get(Ce.R).getAncestorScrollContainers(this._elementRef),ve=`${this._cssClassPrefix}-${De}`,H=(0,le.$M)(this._injector,this.positionAtOrigin&&P||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(F);return H.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe($=>{this._updateCurrentPositionClass($.connectionPair),this._tooltipInstance&&$.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=(0,le.Y$)(this._injector,{direction:this._dir,positionStrategy:H,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,ve]:ve,scrollStrategy:this._injector.get(Ee)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe($=>{this._isTooltipVisible()&&$.keyCode===w._f&&!(0,T.rp)($)&&($.preventDefault(),$.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(P){const F=P.getConfig().positionStrategy,ve=this._getOrigin(),H=this._getOverlayPosition();F.withPositions([this._addOffset({...ve.main,...H.main}),this._addOffset({...ve.fallback,...H.fallback})])}_addOffset(P){const ve=!this._dir||"ltr"==this._dir.value;return"top"===P.originY?P.offsetY=-8:"bottom"===P.originY?P.offsetY=8:"start"===P.originX?P.offsetX=ve?-8:8:"end"===P.originX&&(P.offsetX=ve?8:-8),P}_getOrigin(){const P=!this._dir||"ltr"==this._dir.value,F=this.position;let ve;"above"==F||"below"==F?ve={originX:"center",originY:"above"==F?"top":"bottom"}:"before"==F||"left"==F&&P||"right"==F&&!P?ve={originX:"start",originY:"center"}:("after"==F||"right"==F&&P||"left"==F&&!P)&&(ve={originX:"end",originY:"center"});const{x:H,y:$}=this._invertPosition(ve.originX,ve.originY);return{main:ve,fallback:{originX:H,originY:$}}}_getOverlayPosition(){const P=!this._dir||"ltr"==this._dir.value,F=this.position;let ve;"above"==F?ve={overlayX:"center",overlayY:"bottom"}:"below"==F?ve={overlayX:"center",overlayY:"top"}:"before"==F||"left"==F&&P||"right"==F&&!P?ve={overlayX:"end",overlayY:"center"}:("after"==F||"right"==F&&P||"left"==F&&!P)&&(ve={overlayX:"start",overlayY:"center"});const{x:H,y:$}=this._invertPosition(ve.overlayX,ve.overlayY);return{main:ve,fallback:{overlayX:H,overlayY:$}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,O.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(P){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=P,this._tooltipInstance._markForCheck())}_invertPosition(P,F){return"above"===this.position||"below"===this.position?"top"===F?F="bottom":"bottom"===F&&(F="top"):"end"===P?P="start":"start"===P&&(P="end"),{x:P,y:F}}_updateCurrentPositionClass(P){const{overlayY:F,originX:ve,originY:H}=P;let $;if($="center"===F?this._dir&&"rtl"===this._dir.value?"end"===ve?"left":"right":"start"===ve?"left":"right":"bottom"===F&&"top"===H?"above":"below",$!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const Vt=`${this._cssClassPrefix}-${De}-`;Ke.removePanelClass(Vt+this._currentPosition),Ke.addPanelClass(Vt+$)}this._currentPosition=$}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",P=>{let F;this._setupPointerExitEventsIfNeeded(),void 0!==P.x&&void 0!==P.y&&(F=P),this.show(void 0,F)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",P=>{const F=P.targetTouches?.[0],ve=F?{x:F.clientX,y:F.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,ve)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const P=[];if(this._platformSupportsMouseEvents())P.push(["mouseleave",F=>{const ve=F.relatedTarget;(!ve||!this._overlayRef?.overlayElement.contains(ve))&&this.hide()}],["wheel",F=>this._wheelListener(F)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const F=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};P.push(["touchend",F],["touchcancel",F])}this._addListeners(P),this._passiveListeners.push(...P)}_addListeners(P){P.forEach(([F,ve])=>{this._elementRef.nativeElement.addEventListener(F,ve,Re)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(P){if(this._isTooltipVisible()){const F=this._injector.get(e.qQL).elementFromPoint(P.clientX,P.clientY),ve=this._elementRef.nativeElement;F!==ve&&!ve.contains(F)&&this.hide()}}_disableNativeGesturesIfNecessary(){const P=this.touchGestures;if("off"!==P){const F=this._elementRef.nativeElement,ve=F.style;("on"===P||"INPUT"!==F.nodeName&&"TEXTAREA"!==F.nodeName)&&(ve.userSelect=ve.msUserSelect=ve.webkitUserSelect=ve.MozUserSelect="none"),("on"===P||!F.draggable)&&(ve.webkitUserDrag="none"),ve.touchAction="none",ve.webkitTapHighlightColor="transparent"}}_syncAriaDescription(P){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,P,"tooltip"),this._isDestroyed||(0,O.mal)({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(F){return new(F||te)};static \u0275dir=O.FsC({type:te,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(F,ve){2&F&&O.AVh("mat-mdc-tooltip-disabled",ve.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return te})(),Le=(()=>{class te{_changeDetectorRef=(0,e.WQX)(f.gRc);_elementRef=(0,e.WQX)(O.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=(0,W.Rc)();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new j.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(P){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},P)}hide(P){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},P)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:P}){(!P||!this._triggerElement.contains(P))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const P=this._elementRef.nativeElement.getBoundingClientRect();return P.height>24&&P.width>=200}_handleAnimationEnd({animationName:P}){(P===this._showAnimation||P===this._hideAnimation)&&this._finalizeAnimation(P===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(P){P?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(P){const F=this._tooltip.nativeElement,ve=this._showAnimation,H=this._hideAnimation;if(F.classList.remove(P?H:ve),F.classList.add(P?ve:H),this._isVisible!==P&&(this._isVisible=P,this._changeDetectorRef.markForCheck()),P&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const $=getComputedStyle(F);("0s"===$.getPropertyValue("animation-duration")||"none"===$.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}P&&this._onShow(),this._animationsDisabled&&(F.classList.add("_mat-animation-noopable"),this._finalizeAnimation(P))}static \u0275fac=function(F){return new(F||te)};static \u0275cmp=O.VBU({type:te,selectors:[["mat-tooltip-component"]],viewQuery:function(F,ve){if(1&F&&O.GBs(G,7),2&F){let H;O.mGM(H=O.lsd())&&(ve._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(F,ve){1&F&&O.bIt("mouseleave",function($){return ve._handleMouseLeave($)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(F,ve){if(1&F){const H=O.RV6();O.j41(0,"div",1,0),O.bIt("animationend",function(Ke){return e.eBV(H),e.Njj(ve._handleAnimationEnd(Ke))}),O.j41(2,"div",2),O.EFF(3),O.k0s()()}2&F&&(O.AVh("mdc-tooltip--multiline",ve._isMultiline),O.Y8G("ngClass",ve.tooltipClass),O.R7$(3),O.JRh(ve.message))},dependencies:[u.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],encapsulation:2,changeDetection:0})}return te})()},7358(Zt,pe,l){"use strict";l.d(pe,{Zh:()=>Ee,d6:()=>B,jH:()=>G,lQ:()=>Ae,pO:()=>j,q1:()=>Pe,wx:()=>Ce,yI:()=>A});var d=l(2279),v=l(2615),T=l(3664),w=l(7705),e=l(2466),O=l(4117),f=l(4412),u=l(7786),L=l(6354);let B=(()=>{class V extends d.xn{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(be){this._tabIndexInputBinding=be}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return function C(V){return!!V._isNoopTreeKeyManager}(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(be){this.isDisabled=be}constructor(){super();const be=(0,v.WQX)(new w.ES_("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(be)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(ne){return new(ne||V)};static \u0275dir=T.FsC({type:V,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(ne,J){1&ne&&T.bIt("click",function(){return J._focusItem()}),2&ne&&(T.Avn("tabIndex",J._getTabindexAttribute()),T.BMQ("aria-expanded",J._getAriaExpanded())("aria-level",J.level+1)("aria-posinset",J._getPositionInSet())("aria-setsize",J._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",be=>null==be?0:(0,w.Udg)(be)],disabled:[2,"disabled","disabled",w.L39]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[T.Jv_([{provide:d.xn,useExisting:V}]),T.Vt3]})}return V})(),A=(()=>{class V extends d.Sz{data;static \u0275fac=(()=>{let be;return function(J){return(be||(be=T.xGo(V)))(J||V)}})();static \u0275dir=T.FsC({type:V,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[T.Jv_([{provide:d.Sz,useExisting:V}]),T.Vt3]})}return V})(),Pe=(()=>{class V extends d.s3{node;get disabled(){return this.isDisabled}set disabled(be){this.isDisabled=be}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(be){this._tabIndex=be}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let be;return function(J){return(be||(be=T.xGo(V)))(J||V)}})();static \u0275dir=T.FsC({type:V,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",w.L39],tabIndex:[2,"tabIndex","tabIndex",be=>null==be?0:(0,w.Udg)(be)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[T.Jv_([{provide:d.s3,useExisting:V},{provide:d.xn,useExisting:V},{provide:d.kZ,useExisting:V}]),T.Vt3]})}return V})(),Ce=(()=>{class V{viewContainer=(0,v.WQX)(T.c1b);_node=(0,v.WQX)(d.kZ,{optional:!0});static \u0275fac=function(ne){return new(ne||V)};static \u0275dir=T.FsC({type:V,selectors:[["","matTreeNodeOutlet",""]],features:[T.Jv_([{provide:d.a$,useExisting:V}])]})}return V})(),Ae=(()=>{class V extends d.NL{_nodeOutlet=void 0;static \u0275fac=(()=>{let be;return function(J){return(be||(be=T.xGo(V)))(J||V)}})();static \u0275cmp=T.VBU({type:V,selectors:[["mat-tree"]],viewQuery:function(ne,J){if(1&ne&&T.GBs(Ce,7),2&ne){let De;T.mGM(De=T.lsd())&&(J._nodeOutlet=De.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[T.Jv_([{provide:d.NL,useExisting:V}]),T.Vt3],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ne,J){1&ne&&T.eu8(0,0)},dependencies:[Ce],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2})}return V})(),j=(()=>{class V extends d.Hy{static \u0275fac=(()=>{let be;return function(J){return(be||(be=T.xGo(V)))(J||V)}})();static \u0275dir=T.FsC({type:V,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[T.Jv_([{provide:d.Hy,useExisting:V}]),T.Vt3]})}return V})(),G=(()=>{class V{static \u0275fac=function(ne){return new(ne||V)};static \u0275mod=T.$C({type:V});static \u0275inj=v.G2t({imports:[d.Dc,e.y,e.y]})}return V})();class Ee extends O.q{get data(){return this._data.value}set data(ce){this._data.next(ce)}_data=new f.t([]);connect(ce){return(0,u.h)(ce.viewChange,this._data).pipe((0,L.T)(()=>this.data))}disconnect(){}}},3393(Zt,pe,l){"use strict";l.d(pe,{CI:()=>A,EU:()=>O,Hl:()=>T,Q5:()=>e,jd:()=>w,mE:()=>ne});var i=l(2615),d=l(7303),v=l(3664);class T{_doc;constructor(Le){this._doc=Le}manager}let w=(()=>{class lt extends T{constructor(te){super(te)}supports(te){return!0}addEventListener(te,ie,P,F){return te.addEventListener(ie,P,F),()=>this.removeEventListener(te,ie,P,F)}removeEventListener(te,ie,P,F){return te.removeEventListener(ie,P,F)}static \u0275fac=function(ie){return new(ie||lt)(i.KVO(i.qQL))};static \u0275prov=i.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const e=new i.nKC("");let O=(()=>{class lt{_zone;_plugins;_eventNameToPlugin=new Map;constructor(te,ie){this._zone=ie,te.forEach(ve=>{ve.manager=this});const P=te.filter(ve=>!(ve instanceof w));this._plugins=P.slice().reverse();const F=te.find(ve=>ve instanceof w);F&&this._plugins.push(F)}addEventListener(te,ie,P,F){return this._findPluginFor(ie).addEventListener(te,ie,P,F)}getZone(){return this._zone}_findPluginFor(te){let ie=this._eventNameToPlugin.get(te);if(ie)return ie;if(ie=this._plugins.find(F=>F.supports(te)),!ie)throw new i.buA(5101,!1);return this._eventNameToPlugin.set(te,ie),ie}static \u0275fac=function(ie){return new(ie||lt)(i.KVO(e),i.KVO(v.SKi))};static \u0275prov=i.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const f="ng-app-id";function u(lt){for(const Le of lt)Le.remove()}function L(lt,Le){const te=Le.createElement("style");return te.textContent=lt,te}function B(lt,Le){const te=Le.createElement("link");return te.setAttribute("rel","stylesheet"),te.setAttribute("href",lt),te}let A=(()=>{class lt{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(te,ie,P,F={}){this.doc=te,this.appId=ie,this.nonce=P,function C(lt,Le,te,ie){const P=lt.head?.querySelectorAll(`style[${f}="${Le}"],link[${f}="${Le}"]`);if(P)for(const F of P)F.removeAttribute(f),F instanceof HTMLLinkElement?ie.set(F.href.slice(F.href.lastIndexOf("/")+1),{usage:0,elements:[F]}):F.textContent&&te.set(F.textContent,{usage:0,elements:[F]})}(te,ie,this.inline,this.external),this.hosts.add(te.head)}addStyles(te,ie){for(const P of te)this.addUsage(P,this.inline,L);ie?.forEach(P=>this.addUsage(P,this.external,B))}removeStyles(te,ie){for(const P of te)this.removeUsage(P,this.inline);ie?.forEach(P=>this.removeUsage(P,this.external))}addUsage(te,ie,P){const F=ie.get(te);F?F.usage++:ie.set(te,{usage:1,elements:[...this.hosts].map(ve=>this.addElement(ve,P(te,this.doc)))})}removeUsage(te,ie){const P=ie.get(te);P&&(P.usage--,P.usage<=0&&(u(P.elements),ie.delete(te)))}ngOnDestroy(){for(const[,{elements:te}]of[...this.inline,...this.external])u(te);this.hosts.clear()}addHost(te){this.hosts.add(te);for(const[ie,{elements:P}]of this.inline)P.push(this.addElement(te,L(ie,this.doc)));for(const[ie,{elements:P}]of this.external)P.push(this.addElement(te,B(ie,this.doc)))}removeHost(te){this.hosts.delete(te)}addElement(te,ie){return this.nonce&&ie.setAttribute("nonce",this.nonce),te.appendChild(ie)}static \u0275fac=function(ie){return new(ie||lt)(i.KVO(i.qQL),i.KVO(v.sZ2),i.KVO(v.BIS,8),i.KVO(v.Agw))};static \u0275prov=i.jDH({token:lt,factory:lt.\u0275fac})}return lt})();const Pe={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"},le=/%COMP%/g,j="%COMP%",W=`_nghost-${j}`,G=`_ngcontent-${j}`,xe=new i.nKC("",{providedIn:"root",factory:()=>!0});function ce(lt,Le){return Le.map(te=>te.replace(le,lt))}let ne=(()=>{class lt{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(te,ie,P,F,ve,H,$=null,Ke=null){this.eventManager=te,this.sharedStylesHost=ie,this.appId=P,this.removeStylesOnCompDestroy=F,this.doc=ve,this.ngZone=H,this.nonce=$,this.tracingService=Ke,this.platformIsServer=!1,this.defaultRenderer=new J(te,ve,H,this.platformIsServer,this.tracingService)}createRenderer(te,ie){if(!te||!ie)return this.defaultRenderer;const P=this.getOrCreateRenderer(te,ie);return P instanceof Dt?P.applyToHost(te):P instanceof he&&P.applyStyles(),P}getOrCreateRenderer(te,ie){const P=this.rendererByCompId;let F=P.get(ie.id);if(!F){const ve=this.doc,H=this.ngZone,$=this.eventManager,Ke=this.sharedStylesHost,Vt=this.removeStylesOnCompDestroy,St=this.platformIsServer,ot=this.tracingService;switch(ie.encapsulation){case v.gXe.Emulated:F=new Dt($,Ke,ie,this.appId,Vt,ve,H,St,ot);break;case v.gXe.ShadowDom:return new _e($,Ke,te,ie,ve,H,this.nonce,St,ot);default:F=new he($,Ke,ie,Vt,ve,H,St,ot)}P.set(ie.id,F)}return F}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(te){this.rendererByCompId.delete(te)}static \u0275fac=function(ie){return new(ie||lt)(i.KVO(O),i.KVO(A),i.KVO(v.sZ2),i.KVO(xe),i.KVO(i.qQL),i.KVO(v.SKi),i.KVO(v.BIS),i.KVO(v.a8H,8))};static \u0275prov=i.jDH({token:lt,factory:lt.\u0275fac})}return lt})();class J{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(Le,te,ie,P,F){this.eventManager=Le,this.doc=te,this.ngZone=ie,this.platformIsServer=P,this.tracingService=F}destroy(){}destroyNode=null;createElement(Le,te){return te?this.doc.createElementNS(Pe[te]||te,Le):this.doc.createElement(Le)}createComment(Le){return this.doc.createComment(Le)}createText(Le){return this.doc.createTextNode(Le)}appendChild(Le,te){(Xe(Le)?Le.content:Le).appendChild(te)}insertBefore(Le,te,ie){Le&&(Xe(Le)?Le.content:Le).insertBefore(te,ie)}removeChild(Le,te){te.remove()}selectRootElement(Le,te){let ie="string"==typeof Le?this.doc.querySelector(Le):Le;if(!ie)throw new i.buA(-5104,!1);return te||(ie.textContent=""),ie}parentNode(Le){return Le.parentNode}nextSibling(Le){return Le.nextSibling}setAttribute(Le,te,ie,P){if(P){te=P+":"+te;const F=Pe[P];F?Le.setAttributeNS(F,te,ie):Le.setAttribute(te,ie)}else Le.setAttribute(te,ie)}removeAttribute(Le,te,ie){if(ie){const P=Pe[ie];P?Le.removeAttributeNS(P,te):Le.removeAttribute(`${ie}:${te}`)}else Le.removeAttribute(te)}addClass(Le,te){Le.classList.add(te)}removeClass(Le,te){Le.classList.remove(te)}setStyle(Le,te,ie,P){P&(v.czy.DashCase|v.czy.Important)?Le.style.setProperty(te,ie,P&v.czy.Important?"important":""):Le.style[te]=ie}removeStyle(Le,te,ie){ie&v.czy.DashCase?Le.style.removeProperty(te):Le.style[te]=""}setProperty(Le,te,ie){null!=Le&&(Le[te]=ie)}setValue(Le,te){Le.nodeValue=te}listen(Le,te,ie,P){if("string"==typeof Le&&!(Le=(0,d.rb)().getGlobalEventTarget(this.doc,Le)))throw new i.buA(5102,!1);let F=this.decoratePreventDefault(ie);return this.tracingService?.wrapEventListener&&(F=this.tracingService.wrapEventListener(Le,te,F)),this.eventManager.addEventListener(Le,te,F,P)}decoratePreventDefault(Le){return te=>{if("__ngUnwrap__"===te)return Le;!1===Le(te)&&te.preventDefault()}}}function Xe(lt){return"TEMPLATE"===lt.tagName&&void 0!==lt.content}class _e extends J{sharedStylesHost;hostEl;shadowRoot;constructor(Le,te,ie,P,F,ve,H,$,Ke){super(Le,F,ve,$,Ke),this.sharedStylesHost=te,this.hostEl=ie,this.shadowRoot=ie.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let Vt=P.styles;Vt=ce(P.id,Vt);for(const ot of Vt){const nt=document.createElement("style");H&&nt.setAttribute("nonce",H),nt.textContent=ot,this.shadowRoot.appendChild(nt)}const St=P.getExternalStyles?.();if(St)for(const ot of St){const nt=B(ot,F);H&&nt.setAttribute("nonce",H),this.shadowRoot.appendChild(nt)}}nodeOrShadowRoot(Le){return Le===this.hostEl?this.shadowRoot:Le}appendChild(Le,te){return super.appendChild(this.nodeOrShadowRoot(Le),te)}insertBefore(Le,te,ie){return super.insertBefore(this.nodeOrShadowRoot(Le),te,ie)}removeChild(Le,te){return super.removeChild(null,te)}parentNode(Le){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Le)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class he extends J{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(Le,te,ie,P,F,ve,H,$,Ke){super(Le,F,ve,H,$),this.sharedStylesHost=te,this.removeStylesOnCompDestroy=P;let Vt=ie.styles;this.styles=Ke?ce(Ke,Vt):Vt,this.styleUrls=ie.getExternalStyles?.(Ke)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===v.DUP.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Dt extends he{contentAttr;hostAttr;constructor(Le,te,ie,P,F,ve,H,$,Ke){const Vt=P+"-"+ie.id;super(Le,te,ie,F,ve,H,$,Ke,Vt),this.contentAttr=function Ee(lt){return G.replace(le,lt)}(Vt),this.hostAttr=function V(lt){return W.replace(le,lt)}(Vt)}applyToHost(Le){this.applyStyles(),this.setAttribute(Le,this.hostAttr,"")}createElement(Le,te){const ie=super.createElement(Le,te);return super.setAttribute(ie,this.contentAttr,""),ie}}},345(Zt,pe,l){"use strict";l.d(pe,{fM:()=>P,hE:()=>ce,up:()=>F});var G=l(2615),re=l(3664),xe=l(3393);let ce=(()=>{class Qe{_doc;constructor(Gt){this._doc=Gt}getTitle(){return this._doc.title}setTitle(Gt){this._doc.title=Gt||""}static \u0275fac=function(rt){return new(rt||Qe)(G.KVO(G.qQL))};static \u0275prov=G.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}return Qe})();const Dt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},lt=new G.nKC(""),Le=new G.nKC("");let te=(()=>{class Qe{events=[];overrides={};options;buildHammer(Gt){const rt=new Hammer(Gt,this.options);rt.get("pinch").set({enable:!0}),rt.get("rotate").set({enable:!0});for(const cn in this.overrides)rt.get(cn).set(this.overrides[cn]);return rt}static \u0275fac=function(rt){return new(rt||Qe)};static \u0275prov=G.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})(),ie=(()=>{class Qe extends xe.Hl{_config;_injector;loader;_loaderPromise=null;constructor(Gt,rt,cn,Ft){super(Gt),this._config=rt,this._injector=cn,this.loader=Ft}supports(Gt){return!(!Dt.hasOwnProperty(Gt.toLowerCase())&&!this.isCustomEvent(Gt)||!window.Hammer&&!this.loader)}addEventListener(Gt,rt,cn){const Ft=this.manager.getZone();if(rt=rt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Ft.runOutsideAngular(()=>this.loader());let Sn=!1,Qn=()=>{Sn=!0};return Ft.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Sn||(Qn=this.addEventListener(Gt,rt,cn)):Qn=()=>{}}).catch(()=>{Qn=()=>{}})),()=>{Qn()}}return Ft.runOutsideAngular(()=>{const Sn=this._config.buildHammer(Gt),Qn=function(h){Ft.runGuarded(function(){cn(h)})};return Sn.on(rt,Qn),()=>{Sn.off(rt,Qn),"function"==typeof Sn.destroy&&Sn.destroy()}})}isCustomEvent(Gt){return this._config.events.indexOf(Gt)>-1}static \u0275fac=function(rt){return new(rt||Qe)(G.KVO(G.qQL),G.KVO(lt),G.KVO(G.zZn),G.KVO(Le,8))};static \u0275prov=G.jDH({token:Qe,factory:Qe.\u0275fac})}return Qe})(),P=(()=>{class Qe{static \u0275fac=function(rt){return new(rt||Qe)};static \u0275mod=re.$C({type:Qe});static \u0275inj=G.G2t({providers:[{provide:xe.Q5,useClass:ie,multi:!0,deps:[G.qQL,lt,G.zZn,[new re.Xx1,Le]]},{provide:lt,useClass:te}]})}return Qe})(),F=(()=>{class Qe{static \u0275fac=function(rt){return new(rt||Qe)};static \u0275prov=G.jDH({token:Qe,factory:function(rt){let cn=null;return cn=rt?new(rt||Qe):G.KVO(ve),cn},providedIn:"root"})}return Qe})(),ve=(()=>{class Qe extends F{_doc;constructor(Gt){super(),this._doc=Gt}sanitize(Gt,rt){if(null==rt)return null;switch(Gt){case re.WPN.NONE:return rt;case re.WPN.HTML:return(0,re.iWE)(rt,"HTML")?(0,re.aCM)(rt):(0,re.wr$)(this._doc,String(rt)).toString();case re.WPN.STYLE:return(0,re.iWE)(rt,"Style")?(0,re.aCM)(rt):rt;case re.WPN.SCRIPT:if((0,re.iWE)(rt,"Script"))return(0,re.aCM)(rt);throw new G.buA(5200,!1);case re.WPN.URL:return(0,re.iWE)(rt,"URL")?(0,re.aCM)(rt):(0,re.gil)(String(rt));case re.WPN.RESOURCE_URL:if((0,re.iWE)(rt,"ResourceURL"))return(0,re.aCM)(rt);throw new G.buA(5201,!1);default:throw new G.buA(5202,!1)}}bypassSecurityTrustHtml(Gt){return(0,re.PYC)(Gt)}bypassSecurityTrustStyle(Gt){return(0,re.rAh)(Gt)}bypassSecurityTrustScript(Gt){return(0,re.p2i)(Gt)}bypassSecurityTrustUrl(Gt){return(0,re.B1s)(Gt)}bypassSecurityTrustResourceUrl(Gt){return(0,re.RPW)(Gt)}static \u0275fac=function(rt){return new(rt||Qe)(G.KVO(G.qQL))};static \u0275prov=G.jDH({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}return Qe})()},3694(Zt,pe,l){"use strict";l.d(pe,{nX:()=>Ze,Pu:()=>io,Zp:()=>Jt,nU:()=>Ni,wU:()=>Un,c1:()=>fr,XR:()=>Wr,j5:()=>Vn,wF:()=>rn,L6:()=>Bn,lW:()=>ii,mo:()=>Mn,Z:()=>ci,J2:()=>ao,J_:()=>So,bw:()=>fo,gx:()=>qt,tD:()=>zo,Ix:()=>Wo,D$:()=>To,n3:()=>hr,OY:()=>da,Sd:()=>vi,bK:()=>Ys,gk:()=>Ll,Lg:()=>Dr,wO:()=>un,Us:()=>oi,we:()=>pr});var i=l(2615),d=l(7303),v=l(3664),T=l(7705),w=l(9295),e=l(4402),O=l(2806),f=l(7673),u=l(4412),L=l(4572),C=l(9350),B=l(8793),A=l(9030),Pe=l(1203),le=l(8810),Ce=l(983),Ae=l(17),j=l(1413),W=l(1985),G=l(8359),re=l(6354),xe=l(5558),Ee=l(6697),V=l(9172),ce=l(5964),be=l(1397),ne=l(1594),J=l(274),De=l(8141),Re=l(9437),Xe=l(1943),_e=l(9901),he=l(9974),Dt=l(4360);function lt(X){return X<=0?()=>Ce.w:(0,he.N)((de,Q)=>{let me=[];de.subscribe((0,Dt._)(Q,et=>{me.push(et),X{for(const et of me)Q.next(et);Q.complete()},void 0,()=>{me=null}))})}var Le=l(3774),te=l(3669),P=l(980),F=l(9898),ve=l(6977),H=l(345);const $="primary",Ke=Symbol("RouteTitle");class Vt{params;constructor(de){this.params=de||{}}has(de){return Object.prototype.hasOwnProperty.call(this.params,de)}get(de){if(this.has(de)){const Q=this.params[de];return Array.isArray(Q)?Q[0]:Q}return null}getAll(de){if(this.has(de)){const Q=this.params[de];return Array.isArray(Q)?Q:[Q]}return[]}get keys(){return Object.keys(this.params)}}function St(X){return new Vt(X)}function ot(X,de,Q){const me=Q.path.split("/");if(me.length>X.length||"full"===Q.pathMatch&&(de.hasChildren()||me.lengthme[Mt]===et)}return X===de}function fe(X){return X.length>0?X[X.length-1]:null}function Qe(X){return(0,e.A)(X)?X:(0,v.yLl)(X)?(0,O.H)(Promise.resolve(X)):(0,f.of)(X)}const gt={exact:function Ft(X,de,Q){if(!gn(X.segments,de.segments)||!jt(X.segments,de.segments,Q)||X.numberOfChildren!==de.numberOfChildren)return!1;for(const me in de.children)if(!X.children[me]||!Ft(X.children[me],de.children[me],Q))return!1;return!0},subset:Qn},Gt={exact:function cn(X,de){return ht(X,de)},subset:function Sn(X,de){return Object.keys(de).length<=Object.keys(X).length&&Object.keys(de).every(Q=>Ye(X[Q],de[Q]))},ignored:()=>!0};function rt(X,de,Q){return gt[Q.paths](X.root,de.root,Q.matrixParams)&&Gt[Q.queryParams](X.queryParams,de.queryParams)&&!("exact"===Q.fragment&&X.fragment!==de.fragment)}function Qn(X,de,Q){return h(X,de,de.segments,Q)}function h(X,de,Q,me){if(X.segments.length>Q.length){const et=X.segments.slice(0,Q.length);return!(!gn(et,Q)||de.hasChildren()||!jt(et,Q,me))}if(X.segments.length===Q.length){if(!gn(X.segments,Q)||!jt(X.segments,Q,me))return!1;for(const et in de.children)if(!X.children[et]||!Qn(X.children[et],de.children[et],me))return!1;return!0}{const et=Q.slice(0,X.segments.length),Mt=Q.slice(X.segments.length);return!!(gn(X.segments,et)&&jt(X.segments,et,me)&&X.children[$])&&h(X.children[$],de,Mt,me)}}function jt(X,de,Q){return de.every((me,et)=>Gt[Q](X[et].parameters,me.parameters))}class Ue{root;queryParams;fragment;_queryParamMap;constructor(de=new wt([],{}),Q={},me=null){this.root=de,this.queryParams=Q,this.fragment=me}get queryParamMap(){return this._queryParamMap??=St(this.queryParams),this._queryParamMap}toString(){return kn.serialize(this)}}class wt{segments;children;parent=null;constructor(de,Q){this.segments=de,this.children=Q,Object.values(Q).forEach(me=>me.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ri(this)}}class pt{path;parameters;_parameterMap;constructor(de,Q){this.path=de,this.parameters=Q}get parameterMap(){return this._parameterMap??=St(this.parameters),this._parameterMap}toString(){return Z(this)}}function gn(X,de){return X.length===de.length&&X.every((Q,me)=>Q.path===de[me].path)}let vi=(()=>{class X{static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:()=>new Ni,providedIn:"root"})}return X})();class Ni{parse(de){const Q=new We(de);return new Ue(Q.parseRootSegment(),Q.parseQueryParams(),Q.parseFragment())}serialize(de){const Q=`/${vt(de.root,!0)}`,me=function at(X){const de=Object.entries(X).map(([Q,me])=>Array.isArray(me)?me.map(et=>`${ye(Q)}=${ye(et)}`).join("&"):`${ye(Q)}=${ye(me)}`).filter(Q=>Q);return de.length?`?${de.join("&")}`:""}(de.queryParams);return`${Q}${me}${"string"==typeof de.fragment?`#${function ke(X){return encodeURI(X)}(de.fragment)}`:""}`}}const kn=new Ni;function Ri(X){return X.segments.map(de=>Z(de)).join("/")}function vt(X,de){if(!X.hasChildren())return Ri(X);if(de){const Q=X.children[$]?vt(X.children[$],!1):"",me=[];return Object.entries(X.children).forEach(([et,Mt])=>{et!==$&&me.push(`${et}:${vt(Mt,!1)}`)}),me.length>0?`${Q}(${me.join("//")})`:Q}{const Q=function ei(X,de){let Q=[];return Object.entries(X.children).forEach(([me,et])=>{me===$&&(Q=Q.concat(de(et,me)))}),Object.entries(X.children).forEach(([me,et])=>{me!==$&&(Q=Q.concat(de(et,me)))}),Q}(X,(me,et)=>et===$?[vt(X.children[$],!1)]:[`${et}:${vt(me,!1)}`]);return 1===Object.keys(X.children).length&&null!=X.children[$]?`${Ri(X)}/${Q[0]}`:`${Ri(X)}/(${Q.join("//")})`}}function ee(X){return encodeURIComponent(X).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ye(X){return ee(X).replace(/%3B/gi,";")}function Se(X){return ee(X).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ge(X){return decodeURIComponent(X)}function N(X){return ge(X.replace(/\+/g,"%20"))}function Z(X){return`${Se(X.path)}${function Me(X){return Object.entries(X).map(([de,Q])=>`;${Se(de)}=${Se(Q)}`).join("")}(X.parameters)}`}const qe=/^[^\/()?;#]+/;function pn(X){const de=X.match(qe);return de?de[0]:""}const Je=/^[^\/()?;=#]+/,ut=/^[^=?&#]+/,Ot=/^[^&#]+/;class We{url;remaining;constructor(de){this.url=de,this.remaining=de}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new wt([],{}):new wt([],this.parseChildren())}parseQueryParams(){const de={};if(this.consumeOptional("?"))do{this.parseQueryParam(de)}while(this.consumeOptional("&"));return de}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const de=[];for(this.peekStartsWith("(")||de.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),de.push(this.parseSegment());let Q={};this.peekStartsWith("/(")&&(this.capture("/"),Q=this.parseParens(!0));let me={};return this.peekStartsWith("(")&&(me=this.parseParens(!1)),(de.length>0||Object.keys(Q).length>0)&&(me[$]=new wt(de,Q)),me}parseSegment(){const de=pn(this.remaining);if(""===de&&this.peekStartsWith(";"))throw new i.buA(4009,!1);return this.capture(de),new pt(ge(de),this.parseMatrixParams())}parseMatrixParams(){const de={};for(;this.consumeOptional(";");)this.parseParam(de);return de}parseParam(de){const Q=function Be(X){const de=X.match(Je);return de?de[0]:""}(this.remaining);if(!Q)return;this.capture(Q);let me="";if(this.consumeOptional("=")){const et=pn(this.remaining);et&&(me=et,this.capture(me))}de[ge(Q)]=ge(me)}parseQueryParam(de){const Q=function Ge(X){const de=X.match(ut);return de?de[0]:""}(this.remaining);if(!Q)return;this.capture(Q);let me="";if(this.consumeOptional("=")){const Kt=function se(X){const de=X.match(Ot);return de?de[0]:""}(this.remaining);Kt&&(me=Kt,this.capture(me))}const et=N(Q),Mt=N(me);if(de.hasOwnProperty(et)){let Kt=de[et];Array.isArray(Kt)||(Kt=[Kt],de[et]=Kt),Kt.push(Mt)}else de[et]=Mt}parseParens(de){const Q={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const me=pn(this.remaining),et=this.remaining[me.length];if("/"!==et&&")"!==et&&";"!==et)throw new i.buA(4010,!1);let Mt;me.indexOf(":")>-1?(Mt=me.slice(0,me.indexOf(":")),this.capture(Mt),this.capture(":")):de&&(Mt=$);const Kt=this.parseChildren();Q[Mt??$]=1===Object.keys(Kt).length&&Kt[$]?Kt[$]:new wt([],Kt),this.consumeOptional("//")}return Q}peekStartsWith(de){return this.remaining.startsWith(de)}consumeOptional(de){return!!this.peekStartsWith(de)&&(this.remaining=this.remaining.substring(de.length),!0)}capture(de){if(!this.consumeOptional(de))throw new i.buA(4011,!1)}}function bt(X){return X.segments.length>0?new wt([],{[$]:X}):X}function tn(X){const de={};for(const[me,et]of Object.entries(X.children)){const Mt=tn(et);if(me===$&&0===Mt.segments.length&&Mt.hasChildren())for(const[Kt,Tn]of Object.entries(Mt.children))de[Kt]=Tn;else(Mt.segments.length>0||Mt.hasChildren())&&(de[me]=Mt)}return function on(X){if(1===X.numberOfChildren&&X.children[$]){const de=X.children[$];return new wt(X.segments.concat(de.segments),de.children)}return X}(new wt(X.segments,de))}function un(X){return X instanceof Ue}function dn(X){let de;const et=bt(function Q(Mt){const Kt={};for(const ai of Mt.children){const Gi=Q(ai);Kt[ai.outlet]=Gi}const Tn=new wt(Mt.url,Kt);return Mt===X&&(de=Tn),Tn}(X.root));return de??et}function xn(X,de,Q,me){let et=X;for(;et.parent;)et=et.parent;if(0===de.length)return Yi(et,et,et,Q,me);const Mt=function we(X){if("string"==typeof X[0]&&1===X.length&&"/"===X[0])return new At(!0,0,X);let de=0,Q=!1;const me=X.reduce((et,Mt,Kt)=>{if("object"==typeof Mt&&null!=Mt){if(Mt.outlets){const Tn={};return Object.entries(Mt.outlets).forEach(([ai,Gi])=>{Tn[ai]="string"==typeof Gi?Gi.split("/"):Gi}),[...et,{outlets:Tn}]}if(Mt.segmentPath)return[...et,Mt.segmentPath]}return"string"!=typeof Mt?[...et,Mt]:0===Kt?(Mt.split("/").forEach((Tn,ai)=>{0==ai&&"."===Tn||(0==ai&&""===Tn?Q=!0:".."===Tn?de++:""!=Tn&&et.push(Tn))}),et):[...et,Mt]},[]);return new At(Q,de,me)}(de);if(Mt.toRoot())return Yi(et,et,new wt([],{}),Q,me);const Kt=function Lt(X,de,Q){if(X.isAbsolute)return new ae(de,!0,0);if(!Q)return new ae(de,!1,NaN);if(null===Q.parent)return new ae(Q,!0,0);const me=Jn(X.commands[0])?0:1;return function Ht(X,de,Q){let me=X,et=de,Mt=Q;for(;Mt>et;){if(Mt-=et,me=me.parent,!me)throw new i.buA(4005,!1);et=me.segments.length}return new ae(me,!1,et-Mt)}(Q,Q.segments.length-1+me,X.numberOfDoubleDots)}(Mt,et,X),Tn=Kt.processChildren?bi(Kt.segmentGroup,Kt.index,Mt.commands):fi(Kt.segmentGroup,Kt.index,Mt.commands);return Yi(et,Kt.segmentGroup,Tn,Q,me)}function Jn(X){return"object"==typeof X&&null!=X&&!X.outlets&&!X.segmentPath}function xi(X){return"object"==typeof X&&null!=X&&X.outlets}function Yi(X,de,Q,me,et){let Kt,Mt={};me&&Object.entries(me).forEach(([ai,Gi])=>{Mt[ai]=Array.isArray(Gi)?Gi.map(La=>`${La}`):`${Gi}`}),Kt=X===de?Q:Tt(X,de,Q);const Tn=bt(tn(Kt));return new Ue(Tn,Mt,et)}function Tt(X,de,Q){const me={};return Object.entries(X.children).forEach(([et,Mt])=>{me[et]=Mt===de?Q:Tt(Mt,de,Q)}),new wt(X.segments,me)}class At{isAbsolute;numberOfDoubleDots;commands;constructor(de,Q,me){if(this.isAbsolute=de,this.numberOfDoubleDots=Q,this.commands=me,de&&me.length>0&&Jn(me[0]))throw new i.buA(4003,!1);const et=me.find(xi);if(et&&et!==fe(me))throw new i.buA(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ae{segmentGroup;processChildren;index;constructor(de,Q,me){this.segmentGroup=de,this.processChildren=Q,this.index=me}}function fi(X,de,Q){if(X??=new wt([],{}),0===X.segments.length&&X.hasChildren())return bi(X,de,Q);const me=function Qi(X,de,Q){let me=0,et=de;const Mt={match:!1,pathIndex:0,commandIndex:0};for(;et=Q.length)return Mt;const Kt=X.segments[et],Tn=Q[me];if(xi(Tn))break;const ai=`${Tn}`,Gi=me0&&void 0===ai)break;if(ai&&Gi&&"object"==typeof Gi&&void 0===Gi.outlets){if(!Yt(ai,Gi,Kt))return Mt;me+=2}else{if(!Yt(ai,{},Kt))return Mt;me++}et++}return{match:!0,pathIndex:et,commandIndex:me}}(X,de,Q),et=Q.slice(me.commandIndex);if(me.match&&me.pathIndexMt!==$)&&X.children[$]&&1===X.numberOfChildren&&0===X.children[$].segments.length){const Mt=bi(X.children[$],de,Q);return new wt(X.segments,Mt.children)}return Object.entries(me).forEach(([Mt,Kt])=>{"string"==typeof Kt&&(Kt=[Kt]),null!==Kt&&(et[Mt]=fi(X.children[Mt],de,Kt))}),Object.entries(X.children).forEach(([Mt,Kt])=>{void 0===me[Mt]&&(et[Mt]=Kt)}),new wt(X.segments,et)}}function zi(X,de,Q){const me=X.segments.slice(0,de);let et=0;for(;et{"string"==typeof me&&(me=[me]),null!==me&&(de[Q]=zi(new wt([],{}),0,me))}),de}function an(X){const de={};return Object.entries(X).forEach(([Q,me])=>de[Q]=`${me}`),de}function Yt(X,de,Q){return X==Q.path&&ht(de,Q.parameters)}const Un="imperative";var zn=function(X){return X[X.NavigationStart=0]="NavigationStart",X[X.NavigationEnd=1]="NavigationEnd",X[X.NavigationCancel=2]="NavigationCancel",X[X.NavigationError=3]="NavigationError",X[X.RoutesRecognized=4]="RoutesRecognized",X[X.ResolveStart=5]="ResolveStart",X[X.ResolveEnd=6]="ResolveEnd",X[X.GuardsCheckStart=7]="GuardsCheckStart",X[X.GuardsCheckEnd=8]="GuardsCheckEnd",X[X.RouteConfigLoadStart=9]="RouteConfigLoadStart",X[X.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",X[X.ChildActivationStart=11]="ChildActivationStart",X[X.ChildActivationEnd=12]="ChildActivationEnd",X[X.ActivationStart=13]="ActivationStart",X[X.ActivationEnd=14]="ActivationEnd",X[X.Scroll=15]="Scroll",X[X.NavigationSkipped=16]="NavigationSkipped",X}(zn||{});class Fn{id;url;constructor(de,Q){this.id=de,this.url=Q}}class ci extends Fn{type=zn.NavigationStart;navigationTrigger;restoredState;constructor(de,Q,me="imperative",et=null){super(de,Q),this.navigationTrigger=me,this.restoredState=et}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class rn extends Fn{urlAfterRedirects;type=zn.NavigationEnd;constructor(de,Q,me){super(de,Q),this.urlAfterRedirects=me}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var In=function(X){return X[X.Redirect=0]="Redirect",X[X.SupersededByNewNavigation=1]="SupersededByNewNavigation",X[X.NoDataFromResolver=2]="NoDataFromResolver",X[X.GuardRejected=3]="GuardRejected",X[X.Aborted=4]="Aborted",X}(In||{}),Mn=function(X){return X[X.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",X[X.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",X}(Mn||{});class Vn extends Fn{reason;code;type=zn.NavigationCancel;constructor(de,Q,me,et){super(de,Q),this.reason=me,this.code=et}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ii extends Fn{reason;code;type=zn.NavigationSkipped;constructor(de,Q,me,et){super(de,Q),this.reason=me,this.code=et}}class Bn extends Fn{error;target;type=zn.NavigationError;constructor(de,Q,me,et){super(de,Q),this.error=me,this.target=et}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class ia extends Fn{urlAfterRedirects;state;type=zn.RoutesRecognized;constructor(de,Q,me,et){super(de,Q),this.urlAfterRedirects=me,this.state=et}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ra extends Fn{urlAfterRedirects;state;type=zn.GuardsCheckStart;constructor(de,Q,me,et){super(de,Q),this.urlAfterRedirects=me,this.state=et}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class fa extends Fn{urlAfterRedirects;state;shouldActivate;type=zn.GuardsCheckEnd;constructor(de,Q,me,et,Mt){super(de,Q),this.urlAfterRedirects=me,this.state=et,this.shouldActivate=Mt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ha extends Fn{urlAfterRedirects;state;type=zn.ResolveStart;constructor(de,Q,me,et){super(de,Q),this.urlAfterRedirects=me,this.state=et}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qt extends Fn{urlAfterRedirects;state;type=zn.ResolveEnd;constructor(de,Q,me,et){super(de,Q),this.urlAfterRedirects=me,this.state=et}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class En{route;type=zn.RouteConfigLoadStart;constructor(de){this.route=de}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Wn{route;type=zn.RouteConfigLoadEnd;constructor(de){this.route=de}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ri{snapshot;type=zn.ChildActivationStart;constructor(de){this.snapshot=de}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rn{snapshot;type=zn.ChildActivationEnd;constructor(de){this.snapshot=de}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Hn{snapshot;type=zn.ActivationStart;constructor(de){this.snapshot=de}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pi{snapshot;type=zn.ActivationEnd;constructor(de){this.snapshot=de}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class da{routerEvent;position;anchor;type=zn.Scroll;constructor(de,Q,me){this.routerEvent=de,this.position=Q,this.anchor=me}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ta{}class en{url;navigationBehaviorOptions;constructor(de,Q){this.url=de,this.navigationBehaviorOptions=Q}}function oi(X){switch(X.type){case zn.ActivationEnd:return`ActivationEnd(path: '${X.snapshot.routeConfig?.path||""}')`;case zn.ActivationStart:return`ActivationStart(path: '${X.snapshot.routeConfig?.path||""}')`;case zn.ChildActivationEnd:return`ChildActivationEnd(path: '${X.snapshot.routeConfig?.path||""}')`;case zn.ChildActivationStart:return`ChildActivationStart(path: '${X.snapshot.routeConfig?.path||""}')`;case zn.GuardsCheckEnd:return`GuardsCheckEnd(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}', state: ${X.state}, shouldActivate: ${X.shouldActivate})`;case zn.GuardsCheckStart:return`GuardsCheckStart(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}', state: ${X.state})`;case zn.NavigationCancel:return`NavigationCancel(id: ${X.id}, url: '${X.url}')`;case zn.NavigationSkipped:return`NavigationSkipped(id: ${X.id}, url: '${X.url}')`;case zn.NavigationEnd:return`NavigationEnd(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}')`;case zn.NavigationError:return`NavigationError(id: ${X.id}, url: '${X.url}', error: ${X.error})`;case zn.NavigationStart:return`NavigationStart(id: ${X.id}, url: '${X.url}')`;case zn.ResolveEnd:return`ResolveEnd(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}', state: ${X.state})`;case zn.ResolveStart:return`ResolveStart(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}', state: ${X.state})`;case zn.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${X.route.path})`;case zn.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${X.route.path})`;case zn.RoutesRecognized:return`RoutesRecognized(id: ${X.id}, url: '${X.url}', urlAfterRedirects: '${X.urlAfterRedirects}', state: ${X.state})`;case zn.Scroll:return`Scroll(anchor: '${X.anchor}', position: '${X.position?`${X.position[0]}, ${X.position[1]}`:null}')`}}function Fe(X){return X.outlet||$}function Ve(X){if(!X)return null;if(X.routeConfig?._injector)return X.routeConfig._injector;for(let de=X.parent;de;de=de.parent){const Q=de.routeConfig;if(Q?._loadedInjector)return Q._loadedInjector;if(Q?._injector)return Q._injector}return null}class Et{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ve(this.route?.snapshot)??this.rootInjector}constructor(de){this.rootInjector=de,this.children=new Jt(this.rootInjector)}}let Jt=(()=>{class X{rootInjector;contexts=new Map;constructor(Q){this.rootInjector=Q}onChildOutletCreated(Q,me){const et=this.getOrCreateContext(Q);et.outlet=me,this.contexts.set(Q,et)}onChildOutletDestroyed(Q){const me=this.getContext(Q);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const Q=this.contexts;return this.contexts=new Map,Q}onOutletReAttached(Q){this.contexts=Q}getOrCreateContext(Q){let me=this.getContext(Q);return me||(me=new Et(this.rootInjector),this.contexts.set(Q,me)),me}getContext(Q){return this.contexts.get(Q)||null}static \u0275fac=function(me){return new(me||X)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();class ti{_root;constructor(de){this._root=de}get root(){return this._root.value}parent(de){const Q=this.pathFromRoot(de);return Q.length>1?Q[Q.length-2]:null}children(de){const Q=di(de,this._root);return Q?Q.children.map(me=>me.value):[]}firstChild(de){const Q=di(de,this._root);return Q&&Q.children.length>0?Q.children[0].value:null}siblings(de){const Q=Ii(de,this._root);return Q.length<2?[]:Q[Q.length-2].children.map(et=>et.value).filter(et=>et!==de)}pathFromRoot(de){return Ii(de,this._root).map(Q=>Q.value)}}function di(X,de){if(X===de.value)return de;for(const Q of de.children){const me=di(X,Q);if(me)return me}return null}function Ii(X,de){if(X===de.value)return[de];for(const Q of de.children){const me=Ii(X,Q);if(me.length)return me.unshift(de),me}return[]}class ca{value;children;constructor(de,Q){this.value=de,this.children=Q}toString(){return`TreeNode(${this.value})`}}function nn(X){const de={};return X&&X.children.forEach(Q=>de[Q.value.outlet]=Q),de}class ni extends ti{snapshot;constructor(de,Q){super(de),this.snapshot=Q,_a(this,de)}toString(){return this.snapshot.toString()}}function U(X){const de=function tt(X){const Mt=new Nn([],{},{},"",{},$,X,null,{});return new Ki("",new ca(Mt,[]))}(X),Q=new u.t([new pt("",{})]),me=new u.t({}),et=new u.t({}),Mt=new u.t({}),Kt=new u.t(""),Tn=new Ze(Q,me,Mt,Kt,et,$,X,de.root);return Tn.snapshot=de.root,new ni(new ca(Tn,[]),de)}class Ze{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(de,Q,me,et,Mt,Kt,Tn,ai){this.urlSubject=de,this.paramsSubject=Q,this.queryParamsSubject=me,this.fragmentSubject=et,this.dataSubject=Mt,this.outlet=Kt,this.component=Tn,this._futureSnapshot=ai,this.title=this.dataSubject?.pipe((0,re.T)(Gi=>Gi[Ke]))??(0,f.of)(void 0),this.url=de,this.params=Q,this.queryParams=me,this.fragment=et,this.data=Mt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,re.T)(de=>St(de))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,re.T)(de=>St(de))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(X,de,Q="emptyOnly"){let me;const{routeConfig:et}=X;return me=null===de||"always"!==Q&&""!==et?.path&&(de.component||de.routeConfig?.loadComponent)?{params:{...X.params},data:{...X.data},resolve:{...X.data,...X._resolvedData??{}}}:{params:{...de.params,...X.params},data:{...de.data,...X.data},resolve:{...X.data,...de.data,...et?.data,...X._resolvedData}},et&&Ga(et)&&(me.resolve[Ke]=et.title),me}class Nn{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ke]}constructor(de,Q,me,et,Mt,Kt,Tn,ai,Gi){this.url=de,this.params=Q,this.queryParams=me,this.fragment=et,this.data=Mt,this.outlet=Kt,this.component=Tn,this.routeConfig=ai,this._resolve=Gi}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=St(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=St(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(me=>me.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ki extends ti{url;constructor(de,Q){super(Q),this.url=de,_a(this,Q)}toString(){return Ua(this._root)}}function _a(X,de){de.value._routerState=X,de.children.forEach(Q=>_a(X,Q))}function Ua(X){const de=X.children.length>0?` { ${X.children.map(Ua).join(", ")} } `:"";return`${X.value}${de}`}function $a(X){if(X.snapshot){const de=X.snapshot,Q=X._futureSnapshot;X.snapshot=Q,ht(de.queryParams,Q.queryParams)||X.queryParamsSubject.next(Q.queryParams),de.fragment!==Q.fragment&&X.fragmentSubject.next(Q.fragment),ht(de.params,Q.params)||X.paramsSubject.next(Q.params),function nt(X,de){if(X.length!==de.length)return!1;for(let Q=0;Qht(Q.parameters,de[me].parameters))}(X.url,de.url);return Q&&!(!X.parent!=!de.parent)&&(!X.parent||ns(X.parent,de.parent))}function Ga(X){return"string"==typeof X.title||null===X.title}const As=new i.nKC("");let hr=(()=>{class X{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=$;activateEvents=new v.bkB;deactivateEvents=new v.bkB;attachEvents=new v.bkB;detachEvents=new v.bkB;routerOutletData=(0,T.hFB)();parentContexts=(0,i.WQX)(Jt);location=(0,i.WQX)(v.c1b);changeDetector=(0,i.WQX)(T.gRc);inputBinder=(0,i.WQX)(fr,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(Q){if(Q.name){const{firstChange:me,previousValue:et}=Q.name;if(me)return;this.isTrackedInParentContexts(et)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(et)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Q){return this.parentContexts.getContext(Q)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Q=this.parentContexts.getContext(this.name);Q?.route&&(Q.attachRef?this.attach(Q.attachRef,Q.route):this.activateWith(Q.route,Q.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.buA(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.buA(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.buA(4012,!1);this.location.detach();const Q=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Q.instance),Q}attach(Q,me){this.activated=Q,this._activatedRoute=me,this.location.insert(Q.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Q.instance)}deactivate(){if(this.activated){const Q=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Q)}}activateWith(Q,me){if(this.isActivated)throw new i.buA(4013,!1);this._activatedRoute=Q;const et=this.location,Kt=Q.snapshot.component,Tn=this.parentContexts.getOrCreateContext(this.name).children,ai=new mr(Q,Tn,et.injector,this.routerOutletData);this.activated=et.createComponent(Kt,{index:et.length,injector:ai,environmentInjector:me}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(me){return new(me||X)};static \u0275dir=v.FsC({type:X,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[v.OA$]})}return X})();class mr{route;childContexts;parent;outletData;constructor(de,Q,me,et){this.route=de,this.childContexts=Q,this.parent=me,this.outletData=et}get(de,Q){return de===Ze?this.route:de===Jt?this.childContexts:de===As?this.outletData:this.parent.get(de,Q)}}const fr=new i.nKC("");let zo=(()=>{class X{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(Q){this.unsubscribeFromRouteData(Q),this.subscribeToRouteData(Q)}unsubscribeFromRouteData(Q){this.outletDataSubscriptions.get(Q)?.unsubscribe(),this.outletDataSubscriptions.delete(Q)}subscribeToRouteData(Q){const{activatedRoute:me}=Q,et=(0,L.z)([me.queryParams,me.params,me.data]).pipe((0,xe.n)(([Mt,Kt,Tn],ai)=>(Tn={...Mt,...Kt,...Tn},0===ai?(0,f.of)(Tn):Promise.resolve(Tn)))).subscribe(Mt=>{if(!Q.isActivated||!Q.activatedComponentRef||Q.activatedRoute!==me||null===me.component)return void this.unsubscribeFromRouteData(Q);const Kt=(0,T.HJs)(me.component);if(Kt)for(const{templateName:Tn}of Kt.inputs)Q.activatedComponentRef.setInput(Tn,Mt[Tn]);else this.unsubscribeFromRouteData(Q)});this.outletDataSubscriptions.set(Q,et)}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac})}return X})(),pr=(()=>{class X{static \u0275fac=function(me){return new(me||X)};static \u0275cmp=v.VBU({type:X,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(me,et){1&me&&v.nrm(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return X})();function gr(X){const de=X.children&&X.children.map(gr),Q=de?{...X,children:de}:{...X};return!Q.component&&!Q.loadComponent&&(de||Q.loadChildren)&&Q.outlet&&Q.outlet!==$&&(Q.component=pr),Q}function Zs(X,de,Q){if(Q&&X.shouldReuseRoute(de.value,Q.value.snapshot)){const me=Q.value;me._futureSnapshot=de.value;const et=function jr(X,de,Q){return de.children.map(me=>{for(const et of Q.children)if(X.shouldReuseRoute(me.value,et.value.snapshot))return Zs(X,me,et);return Zs(X,me)})}(X,de,Q);return new ca(me,et)}{if(X.shouldAttach(de.value)){const Mt=X.retrieve(de.value);if(null!==Mt){const Kt=Mt.route;return Kt.value._futureSnapshot=de.value,Kt.children=de.children.map(Tn=>Zs(X,Tn)),Kt}}const me=function Er(X){return new Ze(new u.t(X.url),new u.t(X.params),new u.t(X.queryParams),new u.t(X.fragment),new u.t(X.data),X.outlet,X.component,X)}(de.value),et=de.children.map(Mt=>Zs(X,Mt));return new ca(me,et)}}class Ka{redirectTo;navigationBehaviorOptions;constructor(de,Q){this.redirectTo=de,this.navigationBehaviorOptions=Q}}const Ps="ngNavigationCancelingError";function kr(X,de){const{redirectTo:Q,navigationBehaviorOptions:me}=un(de)?{redirectTo:de,navigationBehaviorOptions:void 0}:de,et=js(!1,In.Redirect);return et.url=Q,et.navigationBehaviorOptions=me,et}function js(X,de){const Q=new Error(`NavigationCancelingError: ${X||""}`);return Q[Ps]=!0,Q.cancellationCode=de,Q}function Zr(X){return!!X&&X[Ps]}class Co{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(de,Q,me,et,Mt){this.routeReuseStrategy=de,this.futureState=Q,this.currState=me,this.forwardEvent=et,this.inputBindingEnabled=Mt}activate(de){const Q=this.futureState._root,me=this.currState?this.currState._root:null;this.deactivateChildRoutes(Q,me,de),$a(this.futureState.root),this.activateChildRoutes(Q,me,de)}deactivateChildRoutes(de,Q,me){const et=nn(Q);de.children.forEach(Mt=>{const Kt=Mt.value.outlet;this.deactivateRoutes(Mt,et[Kt],me),delete et[Kt]}),Object.values(et).forEach(Mt=>{this.deactivateRouteAndItsChildren(Mt,me)})}deactivateRoutes(de,Q,me){const et=de.value,Mt=Q?Q.value:null;if(et===Mt)if(et.component){const Kt=me.getContext(et.outlet);Kt&&this.deactivateChildRoutes(de,Q,Kt.children)}else this.deactivateChildRoutes(de,Q,me);else Mt&&this.deactivateRouteAndItsChildren(Q,me)}deactivateRouteAndItsChildren(de,Q){de.value.component&&this.routeReuseStrategy.shouldDetach(de.value.snapshot)?this.detachAndStoreRouteSubtree(de,Q):this.deactivateRouteAndOutlet(de,Q)}detachAndStoreRouteSubtree(de,Q){const me=Q.getContext(de.value.outlet),et=me&&de.value.component?me.children:Q,Mt=nn(de);for(const Kt of Object.values(Mt))this.deactivateRouteAndItsChildren(Kt,et);if(me&&me.outlet){const Kt=me.outlet.detach(),Tn=me.children.onOutletDeactivated();this.routeReuseStrategy.store(de.value.snapshot,{componentRef:Kt,route:de,contexts:Tn})}}deactivateRouteAndOutlet(de,Q){const me=Q.getContext(de.value.outlet),et=me&&de.value.component?me.children:Q,Mt=nn(de);for(const Kt of Object.values(Mt))this.deactivateRouteAndItsChildren(Kt,et);me&&(me.outlet&&(me.outlet.deactivate(),me.children.onOutletDeactivated()),me.attachRef=null,me.route=null)}activateChildRoutes(de,Q,me){const et=nn(Q);de.children.forEach(Mt=>{this.activateRoutes(Mt,et[Mt.value.outlet],me),this.forwardEvent(new Pi(Mt.value.snapshot))}),de.children.length&&this.forwardEvent(new Rn(de.value.snapshot))}activateRoutes(de,Q,me){const et=de.value,Mt=Q?Q.value:null;if($a(et),et===Mt)if(et.component){const Kt=me.getOrCreateContext(et.outlet);this.activateChildRoutes(de,Q,Kt.children)}else this.activateChildRoutes(de,Q,me);else if(et.component){const Kt=me.getOrCreateContext(et.outlet);if(this.routeReuseStrategy.shouldAttach(et.snapshot)){const Tn=this.routeReuseStrategy.retrieve(et.snapshot);this.routeReuseStrategy.store(et.snapshot,null),Kt.children.onOutletReAttached(Tn.contexts),Kt.attachRef=Tn.componentRef,Kt.route=Tn.route.value,Kt.outlet&&Kt.outlet.attach(Tn.componentRef,Tn.route.value),$a(Tn.route.value),this.activateChildRoutes(de,null,Kt.children)}else Kt.attachRef=null,Kt.route=et,Kt.outlet&&Kt.outlet.activateWith(et,Kt.injector),this.activateChildRoutes(de,null,Kt.children)}else this.activateChildRoutes(de,null,me)}}class Js{path;route;constructor(de){this.path=de,this.route=this.path[this.path.length-1]}}class _r{component;route;constructor(de,Q){this.component=de,this.route=Q}}function rs(X,de,Q){const me=X._root;return Hs(me,de?de._root:null,Q,[me.value])}function is(X,de){const Q=Symbol(),me=de.get(X,Q);return me===Q?"function"!=typeof X||(0,i.muV)(X)?de.get(X):X:me}function Hs(X,de,Q,me,et={canDeactivateChecks:[],canActivateChecks:[]}){const Mt=nn(de);return X.children.forEach(Kt=>{(function Ws(X,de,Q,me,et={canDeactivateChecks:[],canActivateChecks:[]}){const Mt=X.value,Kt=de?de.value:null,Tn=Q?Q.getContext(X.value.outlet):null;if(Kt&&Mt.routeConfig===Kt.routeConfig){const ai=function Mr(X,de,Q){if("function"==typeof Q)return Q(X,de);switch(Q){case"pathParamsChange":return!gn(X.url,de.url);case"pathParamsOrQueryParamsChange":return!gn(X.url,de.url)||!ht(X.queryParams,de.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ns(X,de)||!ht(X.queryParams,de.queryParams);default:return!ns(X,de)}}(Kt,Mt,Mt.routeConfig.runGuardsAndResolvers);ai?et.canActivateChecks.push(new Js(me)):(Mt.data=Kt.data,Mt._resolvedData=Kt._resolvedData),Hs(X,de,Mt.component?Tn?Tn.children:null:Q,me,et),ai&&Tn&&Tn.outlet&&Tn.outlet.isActivated&&et.canDeactivateChecks.push(new _r(Tn.outlet.component,Kt))}else Kt&&Ui(de,Tn,et),et.canActivateChecks.push(new Js(me)),Hs(X,null,Mt.component?Tn?Tn.children:null:Q,me,et)})(Kt,Mt[Kt.value.outlet],Q,me.concat([Kt.value]),et),delete Mt[Kt.value.outlet]}),Object.entries(Mt).forEach(([Kt,Tn])=>Ui(Tn,Q.getContext(Kt),et)),et}function Ui(X,de,Q){const me=nn(X),et=X.value;Object.entries(me).forEach(([Mt,Kt])=>{Ui(Kt,et.component?de?de.children.getContext(Mt):null:de,Q)}),Q.canDeactivateChecks.push(new _r(et.component&&de&&de.outlet&&de.outlet.isActivated?de.outlet.component:null,et))}function xs(X){return"function"==typeof X}function wa(X){return X instanceof C.G||"EmptyError"===X?.name}const ja=Symbol("INITIAL_VALUE");function Za(){return(0,xe.n)(X=>(0,L.z)(X.map(de=>de.pipe((0,Ee.s)(1),(0,V.Z)(ja)))).pipe((0,re.T)(de=>{for(const Q of de)if(!0!==Q){if(Q===ja)return ja;if(!1===Q||Or(Q))return Q}return!0}),(0,ce.p)(de=>de!==ja),(0,Ee.s)(1)))}function Or(X){return un(X)||X instanceof Ka}function ln(X){return(0,Pe.F)((0,De.M)(de=>{if("boolean"!=typeof de)throw kr(0,de)}),(0,re.T)(de=>!0===de))}class ua{segmentGroup;constructor(de){this.segmentGroup=de||null}}class Es extends Error{urlTree;constructor(de){super(),this.urlTree=de}}function kt(X){return(0,le.$)(new ua(X))}function On(X){return(0,le.$)(new i.buA(4e3,!1))}class mn{urlSerializer;urlTree;constructor(de,Q){this.urlSerializer=de,this.urlTree=Q}lineralizeSegments(de,Q){let me=[],et=Q.root;for(;;){if(me=me.concat(et.segments),0===et.numberOfChildren)return(0,f.of)(me);if(et.numberOfChildren>1||!et.children[$])return On();et=et.children[$]}}applyRedirectCommands(de,Q,me,et,Mt){return function Ln(X,de,Q){if("string"==typeof X)return(0,f.of)(X);const me=X,{queryParams:et,fragment:Mt,routeConfig:Kt,url:Tn,outlet:ai,params:Gi,data:La,title:as}=de;return Qe((0,i.N4e)(Q,()=>me({params:Gi,data:La,queryParams:et,fragment:Mt,routeConfig:Kt,url:Tn,outlet:ai,title:as})))}(Q,et,Mt).pipe((0,re.T)(Kt=>{if(Kt instanceof Ue)throw new Es(Kt);const Tn=this.applyRedirectCreateUrlTree(Kt,this.urlSerializer.parse(Kt),de,me);if("/"===Kt[0])throw new Es(Tn);return Tn}))}applyRedirectCreateUrlTree(de,Q,me,et){const Mt=this.createSegmentGroup(de,Q.root,me,et);return new Ue(Mt,this.createQueryParams(Q.queryParams,this.urlTree.queryParams),Q.fragment)}createQueryParams(de,Q){const me={};return Object.entries(de).forEach(([et,Mt])=>{if("string"==typeof Mt&&":"===Mt[0]){const Tn=Mt.substring(1);me[et]=Q[Tn]}else me[et]=Mt}),me}createSegmentGroup(de,Q,me,et){const Mt=this.createSegments(de,Q.segments,me,et);let Kt={};return Object.entries(Q.children).forEach(([Tn,ai])=>{Kt[Tn]=this.createSegmentGroup(de,ai,me,et)}),new wt(Mt,Kt)}createSegments(de,Q,me,et){return Q.map(Mt=>":"===Mt.path[0]?this.findPosParam(de,Mt,et):this.findOrReturn(Mt,me))}findPosParam(de,Q,me){const et=me[Q.path.substring(1)];if(!et)throw new i.buA(4001,!1);return et}findOrReturn(de,Q){let me=0;for(const et of Q){if(et.path===de.path)return Q.splice(me),et;me++}return de}}const Ei={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function xa(X,de,Q,me,et){const Mt=cs(X,de,Q);return Mt.matched?(me=function bn(X,de){return X.providers&&!X._injector&&(X._injector=(0,v.Ol2)(X.providers,de,`Route: ${X.path}`)),X._injector??de}(de,me),function Oi(X,de,Q,me){const et=de.canMatch;if(!et||0===et.length)return(0,f.of)(!0);const Mt=et.map(Kt=>{const Tn=is(Kt,X);return Qe(function Xs(X){return X&&xs(X.canMatch)}(Tn)?Tn.canMatch(de,Q):(0,i.N4e)(X,()=>Tn(de,Q)))});return(0,f.of)(Mt).pipe(Za(),ln())}(me,de,Q).pipe((0,re.T)(Kt=>!0===Kt?Mt:{...Ei}))):(0,f.of)(Mt)}function cs(X,de,Q){if("**"===de.path)return function qr(X){return{matched:!0,parameters:X.length>0?fe(X).parameters:{},consumedSegments:X,remainingSegments:[],positionalParamSegments:{}}}(Q);if(""===de.path)return"full"===de.pathMatch&&(X.hasChildren()||Q.length>0)?{...Ei}:{matched:!0,consumedSegments:[],remainingSegments:Q,parameters:{},positionalParamSegments:{}};const et=(de.matcher||ot)(Q,X,de);if(!et)return{...Ei};const Mt={};Object.entries(et.posParams??{}).forEach(([Tn,ai])=>{Mt[Tn]=ai.path});const Kt=et.consumed.length>0?{...Mt,...et.consumed[et.consumed.length-1].parameters}:Mt;return{matched:!0,consumedSegments:et.consumed,remainingSegments:Q.slice(et.consumed.length),parameters:Kt,positionalParamSegments:et.posParams??{}}}function xo(X,de,Q,me){return Q.length>0&&function Ml(X,de,Q){return Q.some(me=>tr(X,de,me)&&Fe(me)!==$)}(X,Q,me)?{segmentGroup:new wt(de,el(me,new wt(Q,X.children))),slicedSegments:[]}:0===Q.length&&function Ss(X,de,Q){return Q.some(me=>tr(X,de,me))}(X,Q,me)?{segmentGroup:new wt(X.segments,Ms(X,Q,me,X.children)),slicedSegments:Q}:{segmentGroup:new wt(X.segments,X.children),slicedSegments:Q}}function Ms(X,de,Q,me){const et={};for(const Mt of Q)if(tr(X,de,Mt)&&!me[Fe(Mt)]){const Kt=new wt([],{});et[Fe(Mt)]=Kt}return{...me,...et}}function el(X,de){const Q={};Q[$]=de;for(const me of X)if(""===me.path&&Fe(me)!==$){const et=new wt([],{});Q[Fe(me)]=et}return Q}function tr(X,de,Q){return(!(X.hasChildren()||de.length>0)||"full"!==Q.pathMatch)&&""===Q.path}class Mo{}class zl{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(de,Q,me,et,Mt,Kt,Tn){this.injector=de,this.configLoader=Q,this.rootComponentType=me,this.config=et,this.urlTree=Mt,this.paramsInheritanceStrategy=Kt,this.urlSerializer=Tn,this.applyRedirects=new mn(this.urlSerializer,this.urlTree)}noMatchError(de){return new i.buA(4002,`'${de.segmentGroup}'`)}recognize(){const de=xo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(de).pipe((0,re.T)(({children:Q,rootSnapshot:me})=>{const et=new ca(me,Q),Mt=new Ki("",et),Kt=function Nt(X,de,Q=null,me=null){return xn(dn(X),de,Q,me)}(me,[],this.urlTree.queryParams,this.urlTree.fragment);return Kt.queryParams=this.urlTree.queryParams,Mt.url=this.urlSerializer.serialize(Kt),{state:Mt,tree:Kt}}))}match(de){const Q=new Nn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,de,$,Q).pipe((0,re.T)(me=>({children:me,rootSnapshot:Q})),(0,Re.W)(me=>{if(me instanceof Es)return this.urlTree=me.urlTree,this.match(me.urlTree.root);throw me instanceof ua?this.noMatchError(me):me}))}processSegmentGroup(de,Q,me,et,Mt){return 0===me.segments.length&&me.hasChildren()?this.processChildren(de,Q,me,Mt):this.processSegment(de,Q,me,me.segments,et,!0,Mt).pipe((0,re.T)(Kt=>Kt instanceof ca?[Kt]:[]))}processChildren(de,Q,me,et){const Mt=[];for(const Kt of Object.keys(me.children))"primary"===Kt?Mt.unshift(Kt):Mt.push(Kt);return(0,O.H)(Mt).pipe((0,J.H)(Kt=>{const Tn=me.children[Kt],ai=function Wt(X,de){const Q=X.filter(me=>Fe(me)===de);return Q.push(...X.filter(me=>Fe(me)!==de)),Q}(Q,Kt);return this.processSegmentGroup(de,ai,Tn,Kt,et)}),(0,Xe.S)((Kt,Tn)=>(Kt.push(...Tn),Kt)),(0,_e.U)(null),function ie(X,de){const Q=arguments.length>=2;return me=>me.pipe(X?(0,ce.p)((et,Mt)=>X(et,Mt,me)):te.D,lt(1),Q?(0,_e.U)(de):(0,Le.v)(()=>new C.G))}(),(0,be.Z)(Kt=>{if(null===Kt)return kt(me);const Tn=mi(Kt);return function ds(X){X.sort((de,Q)=>de.value.outlet===$?-1:Q.value.outlet===$?1:de.value.outlet.localeCompare(Q.value.outlet))}(Tn),(0,f.of)(Tn)}))}processSegment(de,Q,me,et,Mt,Kt,Tn){return(0,O.H)(Q).pipe((0,J.H)(ai=>this.processSegmentAgainstRoute(ai._injector??de,Q,ai,me,et,Mt,Kt,Tn).pipe((0,Re.W)(Gi=>{if(Gi instanceof ua)return(0,f.of)(null);throw Gi}))),(0,ne.$)(ai=>!!ai),(0,Re.W)(ai=>{if(wa(ai))return function Eo(X,de,Q){return 0===de.length&&!X.children[Q]}(me,et,Mt)?(0,f.of)(new Mo):kt(me);throw ai}))}processSegmentAgainstRoute(de,Q,me,et,Mt,Kt,Tn,ai){return Fe(me)===Kt||Kt!==$&&tr(et,Mt,me)?void 0===me.redirectTo?this.matchSegmentAgainstRoute(de,et,me,Mt,Kt,ai):this.allowRedirects&&Tn?this.expandSegmentAgainstRouteUsingRedirect(de,et,Q,me,Mt,Kt,ai):kt(et):kt(et)}expandSegmentAgainstRouteUsingRedirect(de,Q,me,et,Mt,Kt,Tn){const{matched:ai,parameters:Gi,consumedSegments:La,positionalParamSegments:as,remainingSegments:Ns}=cs(Q,et,Mt);if(!ai)return kt(Q);"string"==typeof et.redirectTo&&"/"===et.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const il=new Nn(Mt,Gi,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(et),Fe(et),et.component??et._loadedComponent??null,et,gl(et)),ar=Xt(il,Tn,this.paramsInheritanceStrategy);return il.params=Object.freeze(ar.params),il.data=Object.freeze(ar.data),this.applyRedirects.applyRedirectCommands(La,et.redirectTo,as,il,de).pipe((0,xe.n)(oo=>this.applyRedirects.lineralizeSegments(et,oo)),(0,be.Z)(oo=>this.processSegment(de,me,Q,oo.concat(Ns),Kt,!1,Tn)))}matchSegmentAgainstRoute(de,Q,me,et,Mt,Kt){const Tn=xa(Q,me,et,de);return"**"===me.path&&(Q.children={}),Tn.pipe((0,xe.n)(ai=>ai.matched?this.getChildConfig(de=me._injector??de,me,et).pipe((0,xe.n)(({routes:Gi})=>{const La=me._loadedInjector??de,{parameters:as,consumedSegments:Ns,remainingSegments:il}=ai,ar=new Nn(Ns,as,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(me),Fe(me),me.component??me._loadedComponent??null,me,gl(me)),ro=Xt(ar,Kt,this.paramsInheritanceStrategy);ar.params=Object.freeze(ro.params),ar.data=Object.freeze(ro.data);const{segmentGroup:oo,slicedSegments:Il}=xo(Q,Ns,il,Gi);if(0===Il.length&&oo.hasChildren())return this.processChildren(La,Gi,oo,ar).pipe((0,re.T)(ec=>new ca(ar,ec)));if(0===Gi.length&&0===Il.length)return(0,f.of)(new ca(ar,[]));const mc=Fe(me)===Mt;return this.processSegment(La,Gi,oo,Il,mc?$:Mt,!0,ar).pipe((0,re.T)(ec=>new ca(ar,ec instanceof ca?[ec]:[])))})):kt(Q)))}getChildConfig(de,Q,me){return Q.children?(0,f.of)({routes:Q.children,injector:de}):Q.loadChildren?void 0!==Q._loadedRoutes?(0,f.of)({routes:Q._loadedRoutes,injector:Q._loadedInjector}):function mt(X,de,Q,me){const et=de.canLoad;if(void 0===et||0===et.length)return(0,f.of)(!0);const Mt=et.map(Kt=>{const Tn=is(Kt,X);return Qe(function qs(X){return X&&xs(X.canLoad)}(Tn)?Tn.canLoad(de,Q):(0,i.N4e)(X,()=>Tn(de,Q)))});return(0,f.of)(Mt).pipe(Za(),ln())}(de,Q,me).pipe((0,be.Z)(et=>et?this.configLoader.loadChildren(de,Q).pipe((0,De.M)(Mt=>{Q._loadedRoutes=Mt.routes,Q._loadedInjector=Mt.injector})):function $e(){return(0,le.$)(js(!1,In.GuardRejected))}())):(0,f.of)({routes:[],injector:de})}}function nr(X){const de=X.value.routeConfig;return de&&""===de.path}function mi(X){const de=[],Q=new Set;for(const me of X){if(!nr(me)){de.push(me);continue}const et=de.find(Mt=>me.value.routeConfig===Mt.value.routeConfig);void 0!==et?(et.children.push(...me.children),Q.add(et)):de.push(me)}for(const me of Q){const et=mi(me.children);de.push(new ca(me.value,et))}return de.filter(me=>!Q.has(me))}function Go(X){return X.data||{}}function gl(X){return X.resolve||{}}function mo(X){const de=X.children.map(Q=>mo(Q)).flat();return[X,...de]}function us(X){return(0,xe.n)(de=>{const Q=X(de);return Q?(0,O.H)(Q).pipe((0,re.T)(()=>de)):(0,f.of)(de)})}let Dl=(()=>{class X{buildTitle(Q){let me,et=Q.root;for(;void 0!==et;)me=this.getResolvedTitleForRoute(et)??me,et=et.children.find(Mt=>Mt.outlet===$);return me}getResolvedTitleForRoute(Q){return Q.data[Ke]}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:()=>(0,i.WQX)(eo),providedIn:"root"})}return X})(),eo=(()=>{class X extends Dl{title;constructor(Q){super(),this.title=Q}updateTitle(Q){const me=this.buildTitle(Q);void 0!==me&&this.title.setTitle(me)}static \u0275fac=function(me){return new(me||X)(i.KVO(H.hE))};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();const So=new i.nKC("",{providedIn:"root",factory:()=>({})}),fo=new i.nKC("");let To=(()=>{class X{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(v.Ql9);loadComponent(Q,me){if(this.componentLoaders.get(me))return this.componentLoaders.get(me);if(me._loadedComponent)return(0,f.of)(me._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(me);const et=Qe((0,i.N4e)(Q,()=>me.loadComponent())).pipe((0,re.T)(to),(0,xe.n)(wl),(0,De.M)(Kt=>{this.onLoadEndListener&&this.onLoadEndListener(me),me._loadedComponent=Kt}),(0,P.j)(()=>{this.componentLoaders.delete(me)})),Mt=new Ae.G(et,()=>new j.B).pipe((0,F.B)());return this.componentLoaders.set(me,Mt),Mt}loadChildren(Q,me){if(this.childrenLoaders.get(me))return this.childrenLoaders.get(me);if(me._loadedRoutes)return(0,f.of)({routes:me._loadedRoutes,injector:me._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(me);const Mt=function Ho(X,de,Q,me){return Qe((0,i.N4e)(Q,()=>X.loadChildren())).pipe((0,re.T)(to),(0,xe.n)(wl),(0,be.Z)(et=>et instanceof v.PYt||Array.isArray(et)?(0,f.of)(et):(0,O.H)(de.compileModuleAsync(et))),(0,re.T)(et=>{me&&me(X);let Mt,Kt,Tn=!1;return Array.isArray(et)?(Kt=et,!0):(Mt=et.create(Q).injector,Kt=Mt.get(fo,[],{optional:!0,self:!0}).flat()),{routes:Kt.map(gr),injector:Mt}}))}(me,this.compiler,Q,this.onLoadEndListener).pipe((0,P.j)(()=>{this.childrenLoaders.delete(me)})),Kt=new Ae.G(Mt,()=>new j.B).pipe((0,F.B)());return this.childrenLoaders.set(me,Kt),Kt}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();function to(X){return function _l(X){return X&&"object"==typeof X&&"default"in X}(X)?X.default:X}function wl(X){return(0,f.of)(X)}let no=(()=>{class X{static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:()=>(0,i.WQX)(Al),providedIn:"root"})}return X})(),Al=(()=>{class X{shouldProcessUrl(Q){return!0}extract(Q){return Q}merge(Q,me){return Q}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();const io=new i.nKC(""),Ys=new i.nKC("");function Dr(X,de,Q){const me=X.get(Ys),et=X.get(i.qQL);if(!et.startViewTransition||me.skipNextTransition)return me.skipNextTransition=!1,new Promise(Gi=>setTimeout(Gi));let Mt;const Kt=new Promise(Gi=>{Mt=Gi}),Tn=et.startViewTransition(()=>(Mt(),function li(X){return new Promise(de=>{(0,v.mal)({read:()=>setTimeout(de)},{injector:X})})}(X)));Tn.ready.catch(Gi=>{});const{onViewTransitionCreated:ai}=me;return ai&&(0,i.N4e)(X,()=>ai({transition:Tn,from:de,to:Q})),Kt}const Wr=new i.nKC("");let ao=(()=>{class X{currentNavigation=(0,i.vPA)(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new j.B;transitionAbortWithErrorSubject=new j.B;configLoader=(0,i.WQX)(To);environmentInjector=(0,i.WQX)(i.uvJ);destroyRef=(0,i.WQX)(i.abz);urlSerializer=(0,i.WQX)(vi);rootContexts=(0,i.WQX)(Jt);location=(0,i.WQX)(d.aZ);inputBindingEnabled=null!==(0,i.WQX)(fr,{optional:!0});titleStrategy=(0,i.WQX)(Dl);options=(0,i.WQX)(So,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(no);createViewTransition=(0,i.WQX)(io,{optional:!0});navigationErrorHandler=(0,i.WQX)(Wr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,f.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=et=>this.events.next(new Wn(et)),this.configLoader.onLoadStartListener=et=>this.events.next(new En(et)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(Q){const me=++this.navigationId;(0,w.O8)(()=>{this.transitions?.next({...Q,extractedUrl:this.urlHandlingStrategy.extract(Q.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:me})})}setupNavigations(Q){return this.transitions=new u.t(null),this.transitions.pipe((0,ce.p)(me=>null!==me),(0,xe.n)(me=>{let et=!1;return(0,f.of)(me).pipe((0,xe.n)(Mt=>{if(this.navigationId>me.id)return this.cancelNavigationTransition(me,"",In.SupersededByNewNavigation),Ce.w;this.currentTransition=me,this.currentNavigation.set({id:Mt.id,initialUrl:Mt.rawUrl,extractedUrl:Mt.extractedUrl,targetBrowserUrl:"string"==typeof Mt.extras.browserUrl?this.urlSerializer.parse(Mt.extras.browserUrl):Mt.extras.browserUrl,trigger:Mt.source,extras:Mt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>Mt.abortController.abort()});const Kt=!Q.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Kt&&"reload"!==(Mt.extras.onSameUrlNavigation??Q.onSameUrlNavigation))return this.events.next(new ii(Mt.id,this.urlSerializer.serialize(Mt.rawUrl),"",Mn.IgnoredSameUrlNavigation)),Mt.resolve(!1),Ce.w;if(this.urlHandlingStrategy.shouldProcessUrl(Mt.rawUrl))return(0,f.of)(Mt).pipe((0,xe.n)(ai=>(this.events.next(new ci(ai.id,this.urlSerializer.serialize(ai.extractedUrl),ai.source,ai.restoredState)),ai.id!==this.navigationId?Ce.w:Promise.resolve(ai))),function Tr(X,de,Q,me,et,Mt){return(0,be.Z)(Kt=>function Sl(X,de,Q,me,et,Mt,Kt="emptyOnly"){return new zl(X,de,Q,me,et,Kt,Mt).recognize()}(X,de,Q,me,Kt.extractedUrl,et,Mt).pipe((0,re.T)(({state:Tn,tree:ai})=>({...Kt,targetSnapshot:Tn,urlAfterRedirects:ai}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Q.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,De.M)(ai=>{me.targetSnapshot=ai.targetSnapshot,me.urlAfterRedirects=ai.urlAfterRedirects,this.currentNavigation.update(La=>(La.finalUrl=ai.urlAfterRedirects,La));const Gi=new ia(ai.id,this.urlSerializer.serialize(ai.extractedUrl),this.urlSerializer.serialize(ai.urlAfterRedirects),ai.targetSnapshot);this.events.next(Gi)}));if(Kt&&this.urlHandlingStrategy.shouldProcessUrl(Mt.currentRawUrl)){const{id:ai,extractedUrl:Gi,source:La,restoredState:as,extras:Ns}=Mt,il=new ci(ai,this.urlSerializer.serialize(Gi),La,as);this.events.next(il);const ar=U(this.rootComponentType).snapshot;return this.currentTransition=me={...Mt,targetSnapshot:ar,urlAfterRedirects:Gi,extras:{...Ns,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(ro=>(ro.finalUrl=Gi,ro)),(0,f.of)(me)}return this.events.next(new ii(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),"",Mn.IgnoredByUrlHandlingStrategy)),Mt.resolve(!1),Ce.w}),(0,De.M)(Mt=>{const Kt=new ra(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),this.urlSerializer.serialize(Mt.urlAfterRedirects),Mt.targetSnapshot);this.events.next(Kt)}),(0,re.T)(Mt=>(this.currentTransition=me={...Mt,guards:rs(Mt.targetSnapshot,Mt.currentSnapshot,this.rootContexts)},me)),function Rr(X,de){return(0,be.Z)(Q=>{const{targetSnapshot:me,currentSnapshot:et,guards:{canActivateChecks:Mt,canDeactivateChecks:Kt}}=Q;return 0===Kt.length&&0===Mt.length?(0,f.of)({...Q,guardsResult:!0}):function Fs(X,de,Q,me){return(0,O.H)(X).pipe((0,be.Z)(et=>function q(X,de,Q,me,et){const Mt=de&&de.routeConfig?de.routeConfig.canDeactivate:null;if(!Mt||0===Mt.length)return(0,f.of)(!0);const Kt=Mt.map(Tn=>{const ai=Ve(de)??et,Gi=is(Tn,ai);return Qe(function er(X){return X&&xs(X.canDeactivate)}(Gi)?Gi.canDeactivate(X,de,Q,me):(0,i.N4e)(ai,()=>Gi(X,de,Q,me))).pipe((0,ne.$)())});return(0,f.of)(Kt).pipe(Za())}(et.component,et.route,Q,de,me)),(0,ne.$)(et=>!0!==et,!0))}(Kt,me,et,X).pipe((0,be.Z)(Tn=>Tn&&function vr(X){return"boolean"==typeof X}(Tn)?function Hr(X,de,Q,me){return(0,O.H)(de).pipe((0,J.H)(et=>(0,B.x)(function Sr(X,de){return null!==X&&de&&de(new ri(X)),(0,f.of)(!0)}(et.route.parent,me),function Ks(X,de){return null!==X&&de&&de(new Hn(X)),(0,f.of)(!0)}(et.route,me),function He(X,de,Q){const me=de[de.length-1],Mt=de.slice(0,de.length-1).reverse().map(Kt=>function ls(X){const de=X.routeConfig?X.routeConfig.canActivateChild:null;return de&&0!==de.length?{node:X,guards:de}:null}(Kt)).filter(Kt=>null!==Kt).map(Kt=>(0,A.v)(()=>{const Tn=Kt.guards.map(ai=>{const Gi=Ve(Kt.node)??Q,La=is(ai,Gi);return Qe(function yr(X){return X&&xs(X.canActivateChild)}(La)?La.canActivateChild(me,X):(0,i.N4e)(Gi,()=>La(me,X))).pipe((0,ne.$)())});return(0,f.of)(Tn).pipe(Za())}));return(0,f.of)(Mt).pipe(Za())}(X,et.path,Q),function Ne(X,de,Q){const me=de.routeConfig?de.routeConfig.canActivate:null;if(!me||0===me.length)return(0,f.of)(!0);const et=me.map(Mt=>(0,A.v)(()=>{const Kt=Ve(de)??Q,Tn=is(Mt,Kt);return Qe(function Pa(X){return X&&xs(X.canActivate)}(Tn)?Tn.canActivate(de,X):(0,i.N4e)(Kt,()=>Tn(de,X))).pipe((0,ne.$)())}));return(0,f.of)(et).pipe(Za())}(X,et.route,Q))),(0,ne.$)(et=>!0!==et,!0))}(me,Mt,X,de):(0,f.of)(Tn)),(0,re.T)(Tn=>({...Q,guardsResult:Tn})))})}(this.environmentInjector,Mt=>this.events.next(Mt)),(0,De.M)(Mt=>{if(me.guardsResult=Mt.guardsResult,Mt.guardsResult&&"boolean"!=typeof Mt.guardsResult)throw kr(0,Mt.guardsResult);const Kt=new fa(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),this.urlSerializer.serialize(Mt.urlAfterRedirects),Mt.targetSnapshot,!!Mt.guardsResult);this.events.next(Kt)}),(0,ce.p)(Mt=>!!Mt.guardsResult||(this.cancelNavigationTransition(Mt,"",In.GuardRejected),!1)),us(Mt=>{if(0!==Mt.guards.canActivateChecks.length)return(0,f.of)(Mt).pipe((0,De.M)(Kt=>{const Tn=new ha(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot);this.events.next(Tn)}),(0,xe.n)(Kt=>{let Tn=!1;return(0,f.of)(Kt).pipe(function jo(X,de){return(0,be.Z)(Q=>{const{targetSnapshot:me,guards:{canActivateChecks:et}}=Q;if(!et.length)return(0,f.of)(Q);const Mt=new Set(et.map(ai=>ai.route)),Kt=new Set;for(const ai of Mt)if(!Kt.has(ai))for(const Gi of mo(ai))Kt.add(Gi);let Tn=0;return(0,O.H)(Kt).pipe((0,J.H)(ai=>Mt.has(ai)?function Tl(X,de,Q,me){const et=X.routeConfig,Mt=X._resolve;return void 0!==et?.title&&!Ga(et)&&(Mt[Ke]=et.title),(0,A.v)(()=>(X.data=Xt(X,X.parent,Q).resolve,function Vl(X,de,Q,me){const et=oe(X);if(0===et.length)return(0,f.of)({});const Mt={};return(0,O.H)(et).pipe((0,be.Z)(Kt=>function za(X,de,Q,me){const et=Ve(de)??me,Mt=is(X,et);return Qe(Mt.resolve?Mt.resolve(de,Q):(0,i.N4e)(et,()=>Mt(de,Q)))}(X[Kt],de,Q,me).pipe((0,ne.$)(),(0,De.M)(Tn=>{if(Tn instanceof Ka)throw kr(new Ni,Tn);Mt[Kt]=Tn}))),lt(1),(0,re.T)(()=>Mt),(0,Re.W)(Kt=>wa(Kt)?Ce.w:(0,le.$)(Kt)))}(Mt,X,de,me).pipe((0,re.T)(Kt=>(X._resolvedData=Kt,X.data={...X.data,...Kt},null)))))}(ai,me,X,de):(ai.data=Xt(ai,ai.parent,X).resolve,(0,f.of)(void 0))),(0,De.M)(()=>Tn++),lt(1),(0,be.Z)(ai=>Tn===Kt.size?(0,f.of)(Q):Ce.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,De.M)({next:()=>Tn=!0,complete:()=>{Tn||this.cancelNavigationTransition(Kt,"",In.NoDataFromResolver)}}))}),(0,De.M)(Kt=>{const Tn=new qt(Kt.id,this.urlSerializer.serialize(Kt.extractedUrl),this.urlSerializer.serialize(Kt.urlAfterRedirects),Kt.targetSnapshot);this.events.next(Tn)}))}),us(Mt=>{const Kt=Tn=>{const ai=[];if(Tn.routeConfig?.loadComponent){const Gi=Ve(Tn)??this.environmentInjector;ai.push(this.configLoader.loadComponent(Gi,Tn.routeConfig).pipe((0,De.M)(La=>{Tn.component=La}),(0,re.T)(()=>{})))}for(const Gi of Tn.children)ai.push(...Kt(Gi));return ai};return(0,L.z)(Kt(Mt.targetSnapshot.root)).pipe((0,_e.U)(null),(0,Ee.s)(1))}),us(()=>this.afterPreactivation()),(0,xe.n)(()=>{const{currentSnapshot:Mt,targetSnapshot:Kt}=me,Tn=this.createViewTransition?.(this.environmentInjector,Mt.root,Kt.root);return Tn?(0,O.H)(Tn).pipe((0,re.T)(()=>me)):(0,f.of)(me)}),(0,re.T)(Mt=>{const Kt=function bo(X,de,Q){const me=Zs(X,de._root,Q?Q._root:void 0);return new ni(me,de)}(Q.routeReuseStrategy,Mt.targetSnapshot,Mt.currentRouterState);return this.currentTransition=me={...Mt,targetRouterState:Kt},this.currentNavigation.update(Tn=>(Tn.targetRouterState=Kt,Tn)),me}),(0,De.M)(()=>{this.events.next(new Ta)}),((X,de,Q,me)=>(0,re.T)(et=>(new Co(de,et.targetRouterState,et.currentRouterState,Q,me).activate(X),et)))(this.rootContexts,Q.routeReuseStrategy,Mt=>this.events.next(Mt),this.inputBindingEnabled),(0,Ee.s)(1),(0,ve.Q)(new W.c(Mt=>{const Kt=me.abortController.signal,Tn=()=>Mt.next();return Kt.addEventListener("abort",Tn),()=>Kt.removeEventListener("abort",Tn)}).pipe((0,ce.p)(()=>!et&&!me.targetRouterState),(0,De.M)(()=>{this.cancelNavigationTransition(me,me.abortController.signal.reason+"",In.Aborted)}))),(0,De.M)({next:Mt=>{et=!0,this.lastSuccessfulNavigation=(0,w.O8)(this.currentNavigation),this.events.next(new rn(Mt.id,this.urlSerializer.serialize(Mt.extractedUrl),this.urlSerializer.serialize(Mt.urlAfterRedirects))),this.titleStrategy?.updateTitle(Mt.targetRouterState.snapshot),Mt.resolve(!0)},complete:()=>{et=!0}}),(0,ve.Q)(this.transitionAbortWithErrorSubject.pipe((0,De.M)(Mt=>{throw Mt}))),(0,P.j)(()=>{et||this.cancelNavigationTransition(me,"",In.SupersededByNewNavigation),this.currentTransition?.id===me.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),(0,Re.W)(Mt=>{if(this.destroyed)return me.resolve(!1),Ce.w;if(et=!0,Zr(Mt))this.events.next(new Vn(me.id,this.urlSerializer.serialize(me.extractedUrl),Mt.message,Mt.cancellationCode)),function Vo(X){return Zr(X)&&un(X.url)}(Mt)?this.events.next(new en(Mt.url,Mt.navigationBehaviorOptions)):me.resolve(!1);else{const Kt=new Bn(me.id,this.urlSerializer.serialize(me.extractedUrl),Mt,me.targetSnapshot??void 0);try{const Tn=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(Kt));if(!(Tn instanceof Ka))throw this.events.next(Kt),Mt;{const{message:ai,cancellationCode:Gi}=kr(0,Tn);this.events.next(new Vn(me.id,this.urlSerializer.serialize(me.extractedUrl),ai,Gi)),this.events.next(new en(Tn.redirectTo,Tn.navigationBehaviorOptions))}}catch(Tn){this.options.resolveNavigationPromiseOnError?me.resolve(!1):me.reject(Tn)}}return Ce.w}))}))}cancelNavigationTransition(Q,me,et){const Mt=new Vn(Q.id,this.urlSerializer.serialize(Q.extractedUrl),me,et);this.events.next(Mt),Q.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const Q=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),me=(0,w.O8)(this.currentNavigation),et=me?.targetBrowserUrl??me?.extractedUrl;return Q.toString()!==et?.toString()&&!me?.extras.skipLocationChange}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();function Pr(X){return X!==Un}let so=(()=>{class X{static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:()=>(0,i.WQX)(Ul),providedIn:"root"})}return X})();class tl{shouldDetach(de){return!1}store(de,Q){}shouldAttach(de){return!1}retrieve(de){return null}shouldReuseRoute(de,Q){return de.routeConfig===Q.routeConfig}}let Ul=(()=>{class X extends tl{static \u0275fac=(()=>{let Q;return function(et){return(Q||(Q=v.xGo(X)))(et||X)}})();static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})(),Do=(()=>{class X{urlSerializer=(0,i.WQX)(vi);options=(0,i.WQX)(So,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=(0,i.WQX)(d.aZ);urlHandlingStrategy=(0,i.WQX)(no);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Ue;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:Q,initialUrl:me,targetBrowserUrl:et}){const Mt=void 0!==Q?this.urlHandlingStrategy.merge(Q,me):me,Kt=et??Mt;return Kt instanceof Ue?this.urlSerializer.serialize(Kt):Kt}commitTransition({targetRouterState:Q,finalUrl:me,initialUrl:et}){me&&Q?(this.currentUrlTree=me,this.rawUrlTree=this.urlHandlingStrategy.merge(me,et),this.routerState=Q):this.rawUrlTree=et}routerState=U(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:Q}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Q??this.rawUrlTree)}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:()=>(0,i.WQX)(Jl),providedIn:"root"})}return X})(),Jl=(()=>{class X extends Do{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(Q){return this.location.subscribe(me=>{"popstate"===me.type&&setTimeout(()=>{Q(me.url,me.state,"popstate")})})}handleRouterEvent(Q,me){Q instanceof ci?this.updateStateMemento():Q instanceof ii?this.commitTransition(me):Q instanceof ia?"eager"===this.urlUpdateStrategy&&(me.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(me),me)):Q instanceof Ta?(this.commitTransition(me),"deferred"===this.urlUpdateStrategy&&!me.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(me),me)):Q instanceof Vn&&Q.code!==In.SupersededByNewNavigation&&Q.code!==In.Redirect?this.restoreHistory(me):Q instanceof Bn?this.restoreHistory(me,!0):Q instanceof rn&&(this.lastSuccessfulId=Q.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Q,{extras:me,id:et}){const{replaceUrl:Mt,state:Kt}=me;if(this.location.isCurrentPathEqualTo(Q)||Mt){const Tn=this.browserPageId,ai={...Kt,...this.generateNgRouterState(et,Tn)};this.location.replaceState(Q,"",ai)}else{const Tn={...Kt,...this.generateNgRouterState(et,this.browserPageId+1)};this.location.go(Q,"",Tn)}}restoreHistory(Q,me=!1){if("computed"===this.canceledNavigationResolution){const Mt=this.currentPageId-this.browserPageId;0!==Mt?this.location.historyGo(Mt):this.getCurrentUrlTree()===Q.finalUrl&&0===Mt&&(this.resetInternalState(Q),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(me&&this.resetInternalState(Q),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Q,me){return"computed"===this.canceledNavigationResolution?{navigationId:Q,\u0275routerPageId:me}:{navigationId:Q}}static \u0275fac=(()=>{let Q;return function(et){return(Q||(Q=v.xGo(X)))(et||X)}})();static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();function Ll(X,de){X.events.pipe((0,ce.p)(Q=>Q instanceof rn||Q instanceof Vn||Q instanceof Bn||Q instanceof ii),(0,re.T)(Q=>Q instanceof rn||Q instanceof ii?0:Q instanceof Vn&&(Q.code===In.Redirect||Q.code===In.SupersededByNewNavigation)?2:1),(0,ce.p)(Q=>2!==Q),(0,Ee.s)(1)).subscribe(()=>{de()})}const ir={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ql={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wo=(()=>{class X{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(v.C7A);stateManager=(0,i.WQX)(Do);options=(0,i.WQX)(So,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.rev);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(ao);urlSerializer=(0,i.WQX)(vi);location=(0,i.WQX)(d.aZ);urlHandlingStrategy=(0,i.WQX)(no);injector=(0,i.WQX)(i.uvJ);_events=new j.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(so);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(fo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(fr,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:Q=>{this.console.warn(Q)}}),this.subscribeToNavigationEvents()}eventsSubscription=new G.yU;subscribeToNavigationEvents(){const Q=this.navigationTransitions.events.subscribe(me=>{try{const et=this.navigationTransitions.currentTransition,Mt=(0,w.O8)(this.navigationTransitions.currentNavigation);if(null!==et&&null!==Mt)if(this.stateManager.handleRouterEvent(me,Mt),me instanceof Vn&&me.code!==In.Redirect&&me.code!==In.SupersededByNewNavigation)this.navigated=!0;else if(me instanceof rn)this.navigated=!0;else if(me instanceof en){const Kt=me.navigationBehaviorOptions,Tn=this.urlHandlingStrategy.merge(me.url,et.currentRawUrl),ai={browserUrl:et.extras.browserUrl,info:et.extras.info,skipLocationChange:et.extras.skipLocationChange,replaceUrl:et.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Pr(et.source),...Kt};this.scheduleNavigation(Tn,Un,null,ai,{resolve:et.resolve,reject:et.reject,promise:et.promise})}(function vn(X){return!(X instanceof Ta||X instanceof en)})(me)&&this._events.next(me)}catch(et){this.navigationTransitions.transitionAbortWithErrorSubject.next(et)}});this.eventsSubscription.add(Q)}resetRootComponentType(Q){this.routerState.root.component=Q,this.navigationTransitions.rootComponentType=Q}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Un,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Q,me,et)=>{this.navigateToSyncWithBrowser(Q,et,me)})}navigateToSyncWithBrowser(Q,me,et){const Mt={replaceUrl:!0},Kt=et?.navigationId?et:null;if(et){const ai={...et};delete ai.navigationId,delete ai.\u0275routerPageId,0!==Object.keys(ai).length&&(Mt.state=ai)}const Tn=this.parseUrl(Q);this.scheduleNavigation(Tn,me,Kt,Mt).catch(ai=>{this.disposed||this.injector.get(i.ZTf)(ai)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return(0,w.O8)(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Q){this.config=Q.map(gr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Q,me={}){const{relativeTo:et,queryParams:Mt,fragment:Kt,queryParamsHandling:Tn,preserveFragment:ai}=me,Gi=ai?this.currentUrlTree.fragment:Kt;let as,La=null;switch(Tn??this.options.defaultQueryParamsHandling){case"merge":La={...this.currentUrlTree.queryParams,...Mt};break;case"preserve":La=this.currentUrlTree.queryParams;break;default:La=Mt||null}null!==La&&(La=this.removeEmptyProps(La));try{as=dn(et?et.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Q[0]||"/"!==Q[0][0])&&(Q=[]),as=this.currentUrlTree.root}return xn(as,Q,La,Gi??null)}navigateByUrl(Q,me={skipLocationChange:!1}){const et=un(Q)?Q:this.parseUrl(Q),Mt=this.urlHandlingStrategy.merge(et,this.rawUrlTree);return this.scheduleNavigation(Mt,Un,null,me)}navigate(Q,me={skipLocationChange:!1}){return function nl(X){for(let de=0;de(null!=Mt&&(me[et]=Mt),me),{})}scheduleNavigation(Q,me,et,Mt,Kt){if(this.disposed)return Promise.resolve(!1);let Tn,ai,Gi;Kt?(Tn=Kt.resolve,ai=Kt.reject,Gi=Kt.promise):Gi=new Promise((as,Ns)=>{Tn=as,ai=Ns});const La=this.pendingTasks.add();return Ll(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(La))}),this.navigationTransitions.handleNavigationRequest({source:me,restoredState:et,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Q,extras:Mt,resolve:Tn,reject:ai,promise:Gi,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Gi.catch(as=>Promise.reject(as))}static \u0275fac=function(me){return new(me||X)};static \u0275prov=i.jDH({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})()},8132(Zt,pe,l){"use strict";l.d(pe,{Wk:()=>lt,iI:()=>Ni,wQ:()=>Le});var W=l(467),G=l(7303),re=l(177),xe=l(2200),Ee=l(7705),V=l(2615),ce=l(3664),be=l(9295),ne=l(3694),J=l(1413),De=l(2806),Re=l(7673),Xe=l(274),_e=l(5964),he=l(6365),Dt=l(1397);let lt=(()=>{class ge{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=(0,V.vPA)(null);get href(){return(0,be.O8)(this.reactiveHref)}set href(Z){this.reactiveHref.set(Z)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new J.B;applicationErrorHandler=(0,V.WQX)(V.ZTf);options=(0,V.WQX)(ne.J_,{optional:!0});constructor(Z,Me,at,qe,pn,Je){this.router=Z,this.route=Me,this.tabIndexAttribute=at,this.renderer=qe,this.el=pn,this.locationStrategy=Je,this.reactiveHref.set((0,V.WQX)(new Ee.ES_("href"),{optional:!0}));const Be=pn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Be||"area"===Be||!("object"!=typeof customElements||!customElements.get(Be)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(void 0!==this.subscription||!this.isAnchorElement)return;let Z=this.preserveFragment;const Me=at=>"merge"===at||"preserve"===at;Z||=Me(this.queryParamsHandling),Z||=!this.queryParamsHandling&&!Me(this.options?.defaultQueryParamsHandling),Z&&(this.subscription=this.router.events.subscribe(at=>{at instanceof ne.wF&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(Z){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Z)}ngOnChanges(Z){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(Z){null==Z?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=(0,ne.wO)(Z)||Array.isArray(Z)?Z:[Z],this.setTabIndexIfNotOnNativeEl("0"))}onClick(Z,Me,at,qe,pn){const Je=this.urlTree;if(null===Je||this.isAnchorElement&&(0!==Z||Me||at||qe||pn||"string"==typeof this.target&&"_self"!=this.target))return!0;const Be={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(Je,Be)?.catch(ut=>{this.applicationErrorHandler(ut)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Z=this.urlTree;this.reactiveHref.set(null!==Z&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Z))??"":null)}applyAttributeValue(Z,Me){const at=this.renderer,qe=this.el.nativeElement;null!==Me?at.setAttribute(qe,Z,Me):at.removeAttribute(qe,Z)}get urlTree(){return null===this.routerLinkInput?null:(0,ne.wO)(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(Me){return new(Me||ge)(ce.rXU(ne.Ix),ce.rXU(ne.nX),ce.kS0("tabindex"),ce.rXU(ce.sFG),ce.rXU(ce.aKT),ce.rXU(G.hb))};static \u0275dir=ce.FsC({type:ge,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(Me,at){1&Me&&ce.bIt("click",function(pn){return at.onClick(pn.button,pn.ctrlKey,pn.shiftKey,pn.altKey,pn.metaKey)}),2&Me&&ce.BMQ("href",at.reactiveHref(),ce.n$t)("target",at.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Ee.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Ee.L39],replaceUrl:[2,"replaceUrl","replaceUrl",Ee.L39],routerLink:"routerLink"},features:[ce.OA$]})}return ge})(),Le=(()=>{class ge{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new ce.bkB;constructor(Z,Me,at,qe,pn){this.router=Z,this.element=Me,this.renderer=at,this.cdr=qe,this.link=pn,this.routerEventsSubscription=Z.events.subscribe(Je=>{Je instanceof ne.wF&&this.update()})}ngAfterContentInit(){(0,Re.of)(this.links.changes,(0,Re.of)(null)).pipe((0,he.U)()).subscribe(Z=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Z=[...this.links.toArray(),this.link].filter(Me=>!!Me).map(Me=>Me.onChanges);this.linkInputChangesSubscription=(0,De.H)(Z).pipe((0,he.U)()).subscribe(Me=>{this._isActive!==this.isLinkActive(this.router)(Me)&&this.update()})}set routerLinkActive(Z){const Me=Array.isArray(Z)?Z:Z.split(" ");this.classes=Me.filter(at=>!!at)}ngOnChanges(Z){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Z=this.hasActiveLinks();this.classes.forEach(Me=>{Z?this.renderer.addClass(this.element.nativeElement,Me):this.renderer.removeClass(this.element.nativeElement,Me)}),Z&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==Z&&(this._isActive=Z,this.cdr.markForCheck(),this.isActiveChange.emit(Z))})}isLinkActive(Z){const Me=function te(ge){return!!ge.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return at=>{const qe=at.urlTree;return!!qe&&Z.isActive(qe,Me)}}hasActiveLinks(){const Z=this.isLinkActive(this.router);return this.link&&Z(this.link)||this.links.some(Z)}static \u0275fac=function(Me){return new(Me||ge)(ce.rXU(ne.Ix),ce.rXU(ce.aKT),ce.rXU(ce.sFG),ce.rXU(Ee.gRc),ce.rXU(lt,8))};static \u0275dir=ce.FsC({type:ge,selectors:[["","routerLinkActive",""]],contentQueries:function(Me,at,qe){if(1&Me&&ce.wni(qe,lt,5),2&Me){let pn;ce.mGM(pn=ce.lsd())&&(at.links=pn)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ce.OA$]})}return ge})();class ie{}let ve=(()=>{class ge{router;injector;preloadingStrategy;loader;subscription;constructor(Z,Me,at,qe){this.router=Z,this.injector=Me,this.preloadingStrategy=at,this.loader=qe}setUpPreloading(){this.subscription=this.router.events.pipe((0,_e.p)(Z=>Z instanceof ne.wF),(0,Xe.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Z,Me){const at=[];for(const qe of Me){qe.providers&&!qe._injector&&(qe._injector=(0,ce.Ol2)(qe.providers,Z,`Route: ${qe.path}`));const pn=qe._injector??Z,Je=qe._loadedInjector??pn;(qe.loadChildren&&!qe._loadedRoutes&&void 0===qe.canLoad||qe.loadComponent&&!qe._loadedComponent)&&at.push(this.preloadConfig(pn,qe)),(qe.children||qe._loadedRoutes)&&at.push(this.processRoutes(Je,qe.children??qe._loadedRoutes))}return(0,De.H)(at).pipe((0,he.U)())}preloadConfig(Z,Me){return this.preloadingStrategy.preload(Me,()=>{let at;at=Me.loadChildren&&void 0===Me.canLoad?this.loader.loadChildren(Z,Me):(0,Re.of)(null);const qe=at.pipe((0,Dt.Z)(pn=>null===pn?(0,Re.of)(void 0):(Me._loadedRoutes=pn.routes,Me._loadedInjector=pn.injector,this.processRoutes(pn.injector??Z,pn.routes))));if(Me.loadComponent&&!Me._loadedComponent){const pn=this.loader.loadComponent(Z,Me);return(0,De.H)([qe,pn]).pipe((0,he.U)())}return qe})}static \u0275fac=function(Me){return new(Me||ge)(V.KVO(ne.Ix),V.KVO(V.uvJ),V.KVO(ie),V.KVO(ne.D$))};static \u0275prov=V.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}return ge})();const H=new V.nKC("");let $=(()=>{class ge{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=ne.wU;restoredId=0;store={};constructor(Z,Me,at,qe,pn={}){this.urlSerializer=Z,this.transitions=Me,this.viewportScroller=at,this.zone=qe,this.options=pn,pn.scrollPositionRestoration||="disabled",pn.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Z=>{Z instanceof ne.Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Z.navigationTrigger,this.restoredId=Z.restoredState?Z.restoredState.navigationId:0):Z instanceof ne.wF?(this.lastId=Z.id,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.urlAfterRedirects).fragment)):Z instanceof ne.lW&&Z.code===ne.mo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Z,this.urlSerializer.parse(Z.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Z=>{if(!(Z instanceof ne.OY))return;const Me={behavior:"instant"};Z.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0],Me):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Z.position,Me):Z.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Z.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(Z,Me){var at=this;this.zone.runOutsideAngular((0,W.A)(function*(){yield new Promise(qe=>{setTimeout(qe),typeof requestAnimationFrame<"u"&&requestAnimationFrame(qe)}),at.zone.run(()=>{at.transitions.events.next(new ne.OY(Z,"popstate"===at.lastSource?at.store[at.restoredId]:null,Me))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(Me){ce.QTQ()};static \u0275prov=V.jDH({token:ge,factory:ge.\u0275fac})}return ge})();function ht(ge,N){return{\u0275kind:ge,\u0275providers:N}}function gt(){const ge=(0,V.WQX)(V.zZn);return N=>{const Z=ge.get(ce.o8S);if(N!==Z.components[0])return;const Me=ge.get(ne.Ix),at=ge.get(Gt);1===ge.get(rt)&&Me.initialNavigation(),ge.get(Qn,null,{optional:!0})?.setUpPreloading(),ge.get(H,null,{optional:!0})?.init(),Me.resetRootComponentType(Z.componentTypes[0]),at.closed||(at.next(),at.complete(),at.unsubscribe())}}const Gt=new V.nKC("",{factory:()=>new J.B}),rt=new V.nKC("",{providedIn:"root",factory:()=>1}),Qn=new V.nKC("");function h(ge){return ht(0,[{provide:Qn,useExisting:ve},{provide:ie,useExisting:ge}])}function Pt(ge){return(0,ce._jY)("NgRouterViewTransitions"),ht(9,[{provide:ne.Pu,useValue:ne.Lg},{provide:ne.bK,useValue:{skipNextTransition:!!ge?.skipInitialTransition,...ge}}])}const vi=[G.aZ,{provide:ne.Sd,useClass:ne.nU},ne.Ix,ne.Zp,{provide:ne.nX,useFactory:function nt(ge){return ge.routerState.root},deps:[ne.Ix]},ne.D$,[]];let Ni=(()=>{class ge{constructor(){}static forRoot(Z,Me){return{ngModule:ge,providers:[vi,[],{provide:ne.bw,multi:!0,useValue:Z},[],Me?.errorHandler?{provide:ne.XR,useValue:Me.errorHandler}:[],{provide:ne.J_,useValue:Me||{}},Me?.useHash?{provide:G.hb,useClass:xe.fw}:{provide:G.hb,useClass:G.Sm},{provide:H,useFactory:()=>{const ge=(0,V.WQX)(re.Xr),N=(0,V.WQX)(ce.SKi),Z=(0,V.WQX)(ne.J_),Me=(0,V.WQX)(ne.J2),at=(0,V.WQX)(ne.Sd);return Z.scrollOffset&&ge.setOffset(Z.scrollOffset),new $(at,Me,ge,N,Z)}},Me?.preloadingStrategy?h(Me.preloadingStrategy).\u0275providers:[],Me?.initialNavigation?ye(Me):[],Me?.bindToComponentInputs?ht(8,[ne.tD,{provide:ne.c1,useExisting:ne.tD}]).\u0275providers:[],Me?.enableViewTransitions?Pt().\u0275providers:[],[{provide:ke,useFactory:gt},{provide:ce.iLQ,multi:!0,useExisting:ke}]]}}static forChild(Z){return{ngModule:ge,providers:[{provide:ne.bw,multi:!0,useValue:Z}]}}static \u0275fac=function(Me){return new(Me||ge)};static \u0275mod=ce.$C({type:ge});static \u0275inj=V.G2t({})}return ge})();function ye(ge){return["disabled"===ge.initialNavigation?ht(3,[(0,ce.phd)(()=>{(0,V.WQX)(ne.Ix).setUpLocationChangeListener()}),{provide:rt,useValue:2}]).\u0275providers:[],"enabledBlocking"===ge.initialNavigation?ht(2,[{provide:ce.tvf,useValue:!0},{provide:rt,useValue:0},(0,ce.phd)(()=>{const N=(0,V.WQX)(V.zZn);return N.get(G.hj,Promise.resolve()).then(()=>new Promise(Me=>{const at=N.get(ne.Ix),qe=N.get(Gt);(0,ne.gk)(at,()=>{Me(!0)}),N.get(ne.J2).afterPreactivation=()=>(Me(!0),qe.closed?(0,Re.of)(void 0):qe),at.initialNavigation()}))})]).\u0275providers:[]]}const ke=new V.nKC("")},60(Zt,pe,l){"use strict";l.d(pe,{aY:()=>ld,dX:()=>I0});var i=l(2615),d=l(3664),v=l(7705),T=l(9295),w=l(345);function e(Te,dt){(null==dt||dt>Te.length)&&(dt=Te.length);for(var st=0,ft=Array(dt);st=Te.length?{done:!0}:{done:!1,value:Te[ft++]}},e:function(si){throw si},f:$t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Cn,Dn=!0,Zn=!1;return{s:function(){st=st.call(Te)},n:function(){var si=st.next();return Dn=si.done,si},e:function(si){Zn=!0,Cn=si},f:function(){try{Dn||null==st.return||st.return()}finally{if(Zn)throw Cn}}}}function A(Te,dt,st){return(dt=ce(dt))in Te?Object.defineProperty(Te,dt,{value:st,enumerable:!0,configurable:!0,writable:!0}):Te[dt]=st,Te}function W(Te,dt){var st=Object.keys(Te);if(Object.getOwnPropertySymbols){var ft=Object.getOwnPropertySymbols(Te);dt&&(ft=ft.filter(function($t){return Object.getOwnPropertyDescriptor(Te,$t).enumerable})),st.push.apply(st,ft)}return st}function G(Te){for(var dt=1;dt0;)dt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return dt}function wa(Te){for(var dt=[],st=(Te||[]).length>>>0;st--;)dt[st]=Te[st];return dt}function ja(Te){return Te.classList?wa(Te.classList):(Te.getAttribute("class")||"").split(" ").filter(function(dt){return dt})}function Za(Te){return"".concat(Te).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Rr(Te){return Object.keys(Te||{}).reduce(function(dt,st){return dt+"".concat(st,": ").concat(Te[st].trim(),";")},"")}function Fs(Te){return Te.size!==Pa.size||Te.x!==Pa.x||Te.y!==Pa.y||Te.rotate!==Pa.rotate||Te.flipX||Te.flipY}function Ne(){var dt=Ki,st=Ui.cssPrefix,ft=Ui.replacementClass,$t=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if("fa"!==st||ft!==dt){var Cn=new RegExp("\\.".concat("fa","\\-"),"g"),Dn=new RegExp("\\--".concat("fa","\\-"),"g"),Zn=new RegExp("\\.".concat(dt),"g");$t=$t.replace(Cn,".".concat(st,"-")).replace(Dn,"--".concat(st,"-")).replace(Zn,".".concat(ft))}return $t}var He=!1;function q(){Ui.autoAddCss&&!He&&(function yr(Te){if(Te&&H){var dt=ie.createElement("style");dt.setAttribute("type","text/css"),dt.innerHTML=Te;for(var st=ie.head.childNodes,ft=null,$t=st.length-1;$t>-1;$t--){var Cn=st[$t],Dn=(Cn.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(Dn)>-1&&(ft=Cn)}ie.head.insertBefore(dt,ft)}}(Ne()),He=!0)}var mt={mixout:function(){return{dom:{css:Ne,insertCss:q}}},hooks:function(){return{beforeDOMElementCreation:function(){q()},beforeI2svg:function(){q()}}}},ln=te||{};ln[Ze]||(ln[Ze]={}),ln[Ze].styles||(ln[Ze].styles={}),ln[Ze].hooks||(ln[Ze].hooks={}),ln[Ze].shims||(ln[Ze].shims=[]);var Oi=ln[Ze],ua=[],Es=function(){ie.removeEventListener("DOMContentLoaded",Es),kt=1,ua.map(function(dt){return dt()})},kt=!1;function $e(Te){var dt=Te.tag,st=Te.attributes,ft=void 0===st?{}:st,$t=Te.children,Cn=void 0===$t?[]:$t;return"string"==typeof Te?Za(Te):"<".concat(dt," ").concat(function Or(Te){return Object.keys(Te||{}).reduce(function(dt,st){return dt+"".concat(st,'="').concat(Za(Te[st]),'" ')},"").trim()}(ft),">").concat(Cn.map($e).join(""),"")}function mn(Te,dt,st){if(Te&&Te[dt]&&Te[dt][st])return{prefix:dt,iconName:st,icon:Te[dt][st]}}H&&((kt=(ie.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ie.readyState))||ie.addEventListener("DOMContentLoaded",Es));var Ei=function(dt,st,ft,$t){var si,_t,ji,Cn=Object.keys(dt),Dn=Cn.length,Zn=void 0!==$t?function(dt,st){return function(ft,$t,Cn,Dn){return dt.call(st,ft,$t,Cn,Dn)}}(st,$t):st;for(void 0===ft?(si=1,ji=dt[Cn[0]]):(si=0,ji=ft);si2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,$t=void 0!==ft&&ft,Cn=cs(dt);"function"!=typeof Oi.hooks.addPack||$t?Oi.styles[Te]=G(G({},Oi.styles[Te]||{}),Cn):Oi.hooks.addPack(Te,cs(dt)),"fas"===Te&&qr("fa",dt)}var Ss=Oi.styles,tr=Oi.shims,Eo=Object.keys(Ka),Mo=Eo.reduce(function(Te,dt){return Te[dt]=Object.keys(Ka[dt]),Te},{}),Sl=null,pl={},zl={},ds={},nr={},mi={};var gl=function(){var dt=function(Cn){return Ei(Ss,function(Dn,Zn,si){return Dn[si]=Ei(Zn,Cn,{}),Dn},{})};pl=dt(function($t,Cn,Dn){return Cn[3]&&($t[Cn[3]]=Dn),Cn[2]&&Cn[2].filter(function(si){return"number"==typeof si}).forEach(function(si){$t[si.toString(16)]=Dn}),$t}),zl=dt(function($t,Cn,Dn){return $t[Dn]=Dn,Cn[2]&&Cn[2].filter(function(si){return"string"==typeof si}).forEach(function(si){$t[si]=Dn}),$t}),mi=dt(function($t,Cn,Dn){var Zn=Cn[2];return $t[Dn]=Dn,Zn.forEach(function(si){$t[si]=Dn}),$t});var st="far"in Ss||Ui.autoFetchSvg,ft=Ei(tr,function($t,Cn){var Dn=Cn[0],Zn=Cn[1],si=Cn[2];return"far"===Zn&&!st&&(Zn="fas"),"string"==typeof Dn&&($t.names[Dn]={prefix:Zn,iconName:si}),"number"==typeof Dn&&($t.unicodes[Dn.toString(16)]={prefix:Zn,iconName:si}),$t},{names:{},unicodes:{}});ds=ft.names,nr=ft.unicodes,Sl=eo(Ui.styleDefault,{family:Ui.familyDefault})};function Tr(Te,dt){return(pl[Te]||{})[dt]}function mo(Te,dt){return(mi[Te]||{})[dt]}function Tl(Te){return ds[Te]||{prefix:null,iconName:null}}function za(){return Sl}function eo(Te){var st=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,ft=void 0===st?oe:st;return ft!==Ye||Te?jr[ft][Te]||jr[ft][bo[ft][Te]]||(Te in Oi.styles?Te:null)||null:"fad"}function fo(Te){return Te.sort().filter(function(dt,st,ft){return ft.indexOf(dt)===st})}(function vr(Te){xs.push(Te)})(function(Te){Sl=eo(Te.styleDefault,{family:Ui.familyDefault})}),gl();var To=di.concat(bt);function Ho(Te){var st=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,ft=void 0!==st&&st,$t=null,Cn=fo(Te.filter(function(Ba){return To.includes(Ba)})),Dn=fo(Te.filter(function(Ba){return!To.includes(Ba)})),_t=xe(Cn.filter(function(Ba){return $t=Ba,!ht.includes(Ba)}),1)[0],ji=void 0===_t?null:_t,Hi=function Dl(Te){var dt=oe,st=Eo.reduce(function(ft,$t){return ft[$t]="".concat(Ui.cssPrefix,"-").concat($t),ft},{});return Be.forEach(function(ft){(Te.includes(st[ft])||Te.some(function($t){return Mo[ft].includes($t)}))&&(dt=ft)}),dt}(Cn),Ja=G(G({},function So(Te){var dt=[],st=null;return Te.forEach(function(ft){var $t=function Go(Te,dt){var st=dt.split("-"),ft=st[0],$t=st.slice(1).join("-");return ft!==Te||""===$t||function Uo(Te){return~_r.indexOf(Te)}($t)?null:$t}(Ui.cssPrefix,ft);$t?st=$t:ft&&dt.push(ft)}),{iconName:st,rest:dt}}(Dn)),{},{prefix:eo(ji,{family:Hi})});return G(G(G({},Ja),function no(Te){var dt=Te.values,st=Te.family,ft=Te.canonical,$t=Te.givenPrefix,Cn=void 0===$t?"":$t,Dn=Te.styles,Zn=void 0===Dn?{}:Dn,si=Te.config,_t=void 0===si?{}:si,ji=st===Ye,Hi=dt.includes("fa-duotone")||dt.includes("fad");if(!ji&&(Hi||"duotone"===_t.familyDefault||("fad"===ft.prefix||"fa-duotone"===ft.prefix))&&(ft.prefix="fad"),(dt.includes("fa-brands")||dt.includes("fab"))&&(ft.prefix="fab"),!ft.prefix&&to.includes(st)&&(Object.keys(Zn).find(function(vs){return wl.includes(vs)})||_t.autoFetchSvg)){var _s=se.get(st).defaultShortPrefixId;ft.prefix=_s,ft.iconName=mo(ft.prefix,ft.iconName)||ft.iconName}return("fa"===ft.prefix||"fa"===Cn)&&(ft.prefix=za()||"fas"),ft}({values:Te,family:Hi,styles:Ss,config:Ui,canonical:Ja,givenPrefix:$t})),function _l(Te,dt,st){var ft=st.prefix,$t=st.iconName;if(Te||!ft||!$t)return{prefix:ft,iconName:$t};var Cn="fa"===dt?Tl($t):{},Dn=mo(ft,$t);return"far"===(ft=Cn.prefix||ft)&&!Ss.far&&Ss.fas&&!Ui.autoFetchSvg&&(ft="fas"),{prefix:ft,iconName:$t=Cn.iconName||Dn||$t}}(ft,$t,Ja))}var to=Be.filter(function(Te){return Te!==oe||Te!==Ye}),wl=Object.keys(Jt).filter(function(Te){return Te!==oe}).map(function(Te){return Object.keys(Jt[Te])}).flat(),Al=function(){return function C(Te,dt,st){return dt&&L(Te.prototype,dt),st&&L(Te,st),Object.defineProperty(Te,"prototype",{writable:!1}),Te}(function Te(){(function u(Te,dt){if(!(Te instanceof dt))throw new TypeError("Cannot call a class as a function")})(this,Te),this.definitions={}},[{key:"add",value:function(){for(var st=this,ft=arguments.length,$t=new Array(ft),Cn=0;Cn0&&ji.forEach(function(Hi){"string"==typeof Hi&&(st[Zn][Hi]=_t)}),st[Zn][si]=_t}),st}}])}(),io=[],Ys={},Dr={},li=Object.keys(Dr);function ao(Te,dt){for(var st=arguments.length,ft=new Array(st>2?st-2:0),$t=2;$t1?dt-1:0),ft=1;ft0&&void 0!==arguments[0]?arguments[0]:{};return H?(Pr("beforeI2svg",dt),so("pseudoElements2svg",dt),so("i2svg",dt)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},st=dt.autoReplaceSvgRoot;!1===Ui.autoReplaceSvg&&(Ui.autoReplaceSvg=!0),Ui.observeMutations=!0,function On(Te){H&&(kt?setTimeout(Te,0):ua.push(Te))}(function(){ql({autoReplaceSvgRoot:st}),Pr("watch",dt)})}},ir={noAuto:function(){Ui.autoReplaceSvg=!1,Ui.observeMutations=!1,Pr("noAuto")},config:Ui,dom:Jl,parse:{icon:function(dt){if(null===dt)return null;if("object"===be(dt)&&dt.prefix&&dt.iconName)return{prefix:dt.prefix,iconName:mo(dt.prefix,dt.iconName)||dt.iconName};if(Array.isArray(dt)&&2===dt.length){var st=0===dt[1].indexOf("fa-")?dt[1].slice(3):dt[1],ft=eo(dt[0]);return{prefix:ft,iconName:mo(ft,st)||st}}if("string"==typeof dt&&(dt.indexOf("".concat(Ui.cssPrefix,"-"))>-1||dt.match(js))){var $t=Ho(dt.split(" "),{skipLookups:!0});return{prefix:$t.prefix||za(),iconName:mo($t.prefix,$t.iconName)||$t.iconName}}if("string"==typeof dt){var Cn=za();return{prefix:Cn,iconName:mo(Cn,dt)||dt}}}},library:Ul,findIconDefinition:tl,toHtml:$e},ql=function(){var st=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,ft=void 0===st?ie:st;(Object.keys(Oi.styles).length>0||Ui.autoFetchSvg)&&H&&Ui.autoReplaceSvg&&ir.dom.i2svg({node:ft})};function Wo(Te,dt){return Object.defineProperty(Te,"abstract",{get:dt}),Object.defineProperty(Te,"html",{get:function(){return Te.abstract.map(function(ft){return $e(ft)})}}),Object.defineProperty(Te,"node",{get:function(){if(H){var ft=ie.createElement("div");return ft.innerHTML=Te.html,ft.children}}}),Te}function Q(Te){var dt=Te.icons,st=dt.main,ft=dt.mask,$t=Te.prefix,Cn=Te.iconName,Dn=Te.transform,Zn=Te.symbol,si=Te.maskId,_t=Te.extra,ji=Te.watchable,Hi=void 0!==ji&&ji,Ja=ft.found?ft:st,Ba=Ja.width,wr=Ja.height,_s=[Ui.replacementClass,Cn?"".concat(Ui.cssPrefix,"-").concat(Cn):""].filter(function(sc){return-1===_t.classes.indexOf(sc)}).filter(function(sc){return""!==sc||!!sc}).concat(_t.classes).join(" "),vs={children:[],attributes:G(G({},_t.attributes),{},{"data-prefix":$t,"data-icon":Cn,class:_s,role:_t.attributes.role||"img",viewBox:"0 0 ".concat(Ba," ").concat(wr)})};!function de(Te){return["aria-label","aria-labelledby","title","role"].some(function(st){return st in Te})}(_t.attributes)&&!_t.attributes["aria-hidden"]&&(vs.attributes["aria-hidden"]="true"),Hi&&(vs.attributes[_a]="");var rr=G(G({},vs),{},{prefix:$t,iconName:Cn,main:st,mask:ft,maskId:si,transform:Dn,symbol:Zn,styles:G({},_t.styles)}),Bs=ft.found&&st.found?so("generateAbstractMask",rr)||{children:[],attributes:{}}:so("generateAbstractIcon",rr)||{children:[],attributes:{}},Kr=Bs.attributes;return rr.children=Bs.children,rr.attributes=Kr,Zn?function X(Te){var st=Te.iconName,ft=Te.children,$t=Te.attributes,Cn=Te.symbol,Dn=!0===Cn?"".concat(Te.prefix,"-").concat(Ui.cssPrefix,"-").concat(st):Cn;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:G(G({},$t),{},{id:Dn}),children:ft}]}]}(rr):function nl(Te){var dt=Te.children,st=Te.main,ft=Te.mask,$t=Te.attributes,Cn=Te.styles,Dn=Te.transform;if(Fs(Dn)&&st.found&&!ft.found){var _t={x:st.width/st.height/2,y:.5};$t.style=Rr(G(G({},Cn),{},{"transform-origin":"".concat(_t.x+Dn.x/16,"em ").concat(_t.y+Dn.y/16,"em")}))}return[{tag:"svg",attributes:$t,children:dt}]}(rr)}function me(Te){var dt=Te.content,st=Te.width,ft=Te.height,$t=Te.transform,Cn=Te.extra,Dn=Te.watchable,Zn=void 0!==Dn&&Dn,si=G(G({},Cn.attributes),{},{class:Cn.classes.join(" ")});Zn&&(si[_a]="");var _t=G({},Cn.styles);Fs($t)&&(_t.transform=function Ks(Te){var dt=Te.transform,st=Te.width,$t=Te.height,Cn=void 0===$t?16:$t,Dn=Te.startCentered,Zn=void 0!==Dn&&Dn,si="";return si+=Zn&&$?"translate(".concat(dt.x/16-(void 0===st?16:st)/2,"em, ").concat(dt.y/16-Cn/2,"em) "):Zn?"translate(calc(-50% + ".concat(dt.x/16,"em), calc(-50% + ").concat(dt.y/16,"em)) "):"translate(".concat(dt.x/16,"em, ").concat(dt.y/16,"em) "),(si+="scale(".concat(dt.size/16*(dt.flipX?-1:1),", ").concat(dt.size/16*(dt.flipY?-1:1),") "))+"rotate(".concat(dt.rotate,"deg) ")}({transform:$t,startCentered:!0,width:st,height:ft}),_t["-webkit-transform"]=_t.transform);var ji=Rr(_t);ji.length>0&&(si.style=ji);var Hi=[];return Hi.push({tag:"span",attributes:si,children:[dt]}),Hi}var Mt=Oi.styles;function Kt(Te){var dt=Te[0],st=Te[1],Cn=xe(Te.slice(4),1)[0];return{found:!0,width:dt,height:st,icon:Array.isArray(Cn)?{tag:"g",attributes:{class:"".concat(Ui.cssPrefix,"-").concat(Js_GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ui.cssPrefix,"-").concat(Js_SECONDARY),fill:"currentColor",d:Cn[0]}},{tag:"path",attributes:{class:"".concat(Ui.cssPrefix,"-").concat(Js_PRIMARY),fill:"currentColor",d:Cn[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:Cn}}}}var Tn={found:!1,width:512,height:512};function Gi(Te,dt){var st=dt;return"fa"===dt&&null!==Ui.styleDefault&&(dt=za()),new Promise(function(ft,$t){if("fa"===st){var Cn=Tl(Te)||{};Te=Cn.iconName||Te,dt=Cn.prefix||dt}if(Te&&dt&&Mt[dt]&&Mt[dt][Te])return ft(Kt(Mt[dt][Te]));(function ai(Te,dt){!zo&&!Ui.showMissingIcons&&Te&&console.error('Icon with name "'.concat(Te,'" and prefix "').concat(dt,'" is missing.'))})(Te,dt),ft(G(G({},Tn),{},{icon:Ui.showMissingIcons&&Te&&so("missingIconAbstract")||{}}))})}var La=function(){},as=Ui.measurePerformance&&F&&F.mark&&F.measure?F:{mark:La,measure:La},Ns='FA "7.1.0"',ro_begin=function(dt){return as.mark("".concat(Ns," ").concat(dt," begins")),function(){return function(dt){as.mark("".concat(Ns," ").concat(dt," ends")),as.measure("".concat(Ns," ").concat(dt),"".concat(Ns," ").concat(dt," begins"),"".concat(Ns," ").concat(dt," ends"))}(dt)}},oo=function(){};function Il(Te){return"string"==typeof(Te.getAttribute?Te.getAttribute(_a):null)}function Xc(Te){return ie.createElementNS("http://www.w3.org/2000/svg",Te)}function po(Te){return ie.createElement(Te)}function fc(Te){var st=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,ft=void 0===st?"svg"===Te.tag?Xc:po:st;if("string"==typeof Te)return ie.createTextNode(Te);var $t=ft(Te.tag);return Object.keys(Te.attributes||[]).forEach(function(Dn){$t.setAttribute(Dn,Te.attributes[Dn])}),(Te.children||[]).forEach(function(Dn){$t.appendChild(fc(Dn,{ceFn:ft}))}),$t}var Fr={replace:function(dt){var st=dt[0];if(st.parentNode)if(dt[1].forEach(function($t){st.parentNode.insertBefore(fc($t),st)}),null===st.getAttribute(_a)&&Ui.keepOriginalSource){var ft=ie.createComment(function pc(Te){var dt=" ".concat(Te.outerHTML," ");return"".concat(dt,"Font Awesome fontawesome.com ")}(st));st.parentNode.replaceChild(ft,st)}else st.remove()},nest:function(dt){var st=dt[0],ft=dt[1];if(~ja(st).indexOf(Ui.replacementClass))return Fr.replace(dt);var $t=new RegExp("".concat(Ui.cssPrefix,"-.*"));if(delete ft[0].attributes.id,ft[0].attributes.class){var Cn=ft[0].attributes.class.split(" ").reduce(function(Zn,si){return si===Ui.replacementClass||si.match($t)?Zn.toSvg.push(si):Zn.toNode.push(si),Zn},{toNode:[],toSvg:[]});ft[0].attributes.class=Cn.toSvg.join(" "),0===Cn.toNode.length?st.removeAttribute("class"):st.setAttribute("class",Cn.toNode.join(" "))}var Dn=ft.map(function(Zn){return $e(Zn)}).join("\n");st.setAttribute(_a,""),st.innerHTML=Dn}};function wo(Te){Te()}function od(Te,dt){var st="function"==typeof dt?dt:oo;if(0===Te.length)st();else{var ft=wo;"async"===Ui.mutateApproach&&(ft=te.requestAnimationFrame||wo),ft(function(){var $t=function kl(){return!0===Ui.autoReplaceSvg?Fr.replace:Fr[Ui.autoReplaceSvg]||Fr.replace}(),Cn=ro_begin("mutate");Te.map($t),Cn(),st()})}}var Ao=!1;function Lc(){Ao=!0}function vl(){Ao=!1}var al=null;function Lo(Te){if(P&&Ui.observeMutations){var dt=Te.treeCallback,st=void 0===dt?oo:dt,ft=Te.nodeCallback,$t=void 0===ft?oo:ft,Cn=Te.pseudoElementsCallback,Dn=void 0===Cn?oo:Cn,Zn=Te.observeMutationsRoot,si=void 0===Zn?ie:Zn;al=new P(function(_t){if(!Ao){var ji=za();wa(_t).forEach(function(Hi){if("childList"===Hi.type&&Hi.addedNodes.length>0&&!Il(Hi.addedNodes[0])&&(Ui.searchPseudoElements&&Dn(Hi.target),st(Hi.target)),"attributes"===Hi.type&&Hi.target.parentNode&&Ui.searchPseudoElements&&Dn([Hi.target],!0),"attributes"===Hi.type&&Il(Hi.target)&&~Co.indexOf(Hi.attributeName))if("class"===Hi.attributeName&&function mc(Te){var dt=Te.getAttribute?Te.getAttribute(ns):null,st=Te.getAttribute?Te.getAttribute(Ga):null;return dt&&st}(Hi.target)){var Ja=Ho(ja(Hi.target)),wr=Ja.iconName;Hi.target.setAttribute(ns,Ja.prefix||ji),wr&&Hi.target.setAttribute(Ga,wr)}else(function ec(Te){return Te&&Te.classList&&Te.classList.contains&&Te.classList.contains(Ui.replacementClass)})(Hi.target)&&$t(Hi.target)})}}),H&&al.observe(si,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Io(Te){var dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},st=function jl(Te){var dt=Te.getAttribute("data-prefix"),st=Te.getAttribute("data-icon"),ft=void 0!==Te.innerText?Te.innerText.trim():"",$t=Ho(ja(Te));return $t.prefix||($t.prefix=za()),dt&&st&&($t.prefix=dt,$t.iconName=st),$t.iconName&&$t.prefix||($t.prefix&&ft.length>0&&($t.iconName=function jo(Te,dt){return(zl[Te]||{})[dt]}($t.prefix,Te.innerText)||Tr($t.prefix,xa(Te.innerText))),!$t.iconName&&Ui.autoFetchSvg&&Te.firstChild&&Te.firstChild.nodeType===Node.TEXT_NODE&&($t.iconName=Te.firstChild.data)),$t}(Te),ft=st.iconName,$t=st.prefix,Cn=st.rest,Dn=function Hl(Te){return wa(Te.attributes).reduce(function(st,ft){return"class"!==st.name&&"style"!==st.name&&(st[ft.name]=ft.value),st},{})}(Te),Zn=ao("parseNodeAttributes",{},Te),si=dt.styleParser?function Gl(Te){var dt=Te.getAttribute("style"),st=[];return dt&&(st=dt.split(";").reduce(function(ft,$t){var Cn=$t.split(":"),Dn=Cn[0],Zn=Cn.slice(1);return Dn&&Zn.length>0&&(ft[Dn]=Zn.join(":").trim()),ft},{})),st}(Te):[];return G({iconName:ft,prefix:$t,transform:Pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Cn,styles:si,attributes:Dn}},Zn)}var ko=Oi.styles;function Wl(Te){var dt="nest"===Ui.autoReplaceSvg?Io(Te,{styleParser:!1}):Io(Te);return~dt.extra.classes.indexOf(Vo)?so("generateLayersText",Te,dt):so("generateSvgReplacementMutation",Te,dt)}function Ts(Te){var dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!H)return Promise.resolve();var st=ie.documentElement.classList,ft=function(Hi){return st.add("".concat(As,"-").concat(Hi))},$t=function(Hi){return st.remove("".concat(As,"-").concat(Hi))},Cn=Ui.autoFetchSvg?function sr(){return[].concat(Ee(bt),Ee(di))}():ht.concat(Object.keys(ko));Cn.includes("fa")||Cn.push("fa");var Dn=[".".concat(Vo,":not([").concat(_a,"])")].concat(Cn.map(function(ji){return".".concat(ji,":not([").concat(_a,"])")})).join(", ");if(0===Dn.length)return Promise.resolve();var Zn=[];try{Zn=wa(Te.querySelectorAll(Dn))}catch{}if(!(Zn.length>0))return Promise.resolve();ft("pending"),$t("complete");var si=ro_begin("onTree"),_t=Zn.reduce(function(ji,Hi){try{var Ja=Wl(Hi);Ja&&ji.push(Ja)}catch(Ba){zo||"MissingIcon"===Ba.name&&console.error(Ba)}return ji},[]);return new Promise(function(ji,Hi){Promise.all(_t).then(function(Ja){od(Ja,function(){ft("active"),ft("complete"),$t("pending"),"function"==typeof dt&&dt(),si(),ji()})}).catch(function(Ja){si(),Hi(Ja)})})}function yt(Te){var dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Wl(Te).then(function(st){st&&od([st],dt)})}var ct=function(dt){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft=st.transform,$t=void 0===ft?Pa:ft,Cn=st.symbol,Dn=void 0!==Cn&&Cn,Zn=st.mask,si=void 0===Zn?null:Zn,_t=st.maskId,ji=void 0===_t?null:_t,Hi=st.classes,Ja=void 0===Hi?[]:Hi,Ba=st.attributes,wr=void 0===Ba?{}:Ba,_s=st.styles,vs=void 0===_s?{}:_s;if(dt){var rr=dt.prefix,Bs=dt.iconName,ol=dt.icon;return Wo(G({type:"icon"},dt),function(){return Pr("beforeDOMElementCreation",{iconDefinition:dt,params:st}),Q({icons:{main:Kt(ol),mask:si?Kt(si.icon):{found:!1,width:null,height:null,icon:{}}},prefix:rr,iconName:Bs,transform:G(G({},Pa),$t),symbol:Dn,maskId:ji,extra:{attributes:wr,styles:vs,classes:Ja}})})}},Qt={mixout:function(){return{icon:(Te=ct,function(dt){var st=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ft=(dt||{}).icon?dt:tl(dt||{}),$t=st.mask;return $t&&($t=($t||{}).icon?$t:tl($t||{})),Te(ft,G(G({},st),{},{mask:$t}))})};var Te},hooks:function(){return{mutationObserverCallbacks:function(st){return st.treeCallback=Ts,st.nodeCallback=yt,st}}},provides:function(dt){dt.i2svg=function(st){var ft=st.node,Cn=st.callback;return Ts(void 0===ft?ie:ft,void 0===Cn?function(){}:Cn)},dt.generateSvgReplacementMutation=function(st,ft){var $t=ft.iconName,Cn=ft.prefix,Dn=ft.transform,Zn=ft.symbol,si=ft.mask,_t=ft.maskId,ji=ft.extra;return new Promise(function(Hi,Ja){Promise.all([Gi($t,Cn),si.iconName?Gi(si.iconName,si.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Ba){var wr=xe(Ba,2);Hi([st,Q({icons:{main:wr[0],mask:wr[1]},prefix:Cn,iconName:$t,transform:Dn,symbol:Zn,maskId:_t,extra:ji,watchable:!0})])}).catch(Ja)})},dt.generateAbstractIcon=function(st){var _t,ft=st.children,$t=st.attributes,Cn=st.main,Dn=st.transform,si=Rr(st.styles);return si.length>0&&($t.style=si),Fs(Dn)&&(_t=so("generateAbstractTransformGrouping",{main:Cn,transform:Dn,containerWidth:Cn.width,iconWidth:Cn.width})),ft.push(_t||Cn.icon),{children:ft,attributes:$t}}}},Pn={mixout:function(){return{layer:function(st){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=ft.classes,Cn=void 0===$t?[]:$t;return Wo({type:"layer"},function(){Pr("beforeDOMElementCreation",{assembler:st,params:ft});var Dn=[];return st(function(Zn){Array.isArray(Zn)?Zn.map(function(si){Dn=Dn.concat(si.abstract)}):Dn=Dn.concat(Zn.abstract)}),[{tag:"span",attributes:{class:["".concat(Ui.cssPrefix,"-layers")].concat(Ee(Cn)).join(" ")},children:Dn}]})}}}},$n={mixout:function(){return{counter:function(st){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=ft.title,Cn=void 0===$t?null:$t,Dn=ft.classes,Zn=void 0===Dn?[]:Dn,si=ft.attributes,_t=void 0===si?{}:si,ji=ft.styles,Hi=void 0===ji?{}:ji;return Wo({type:"counter",content:st},function(){return Pr("beforeDOMElementCreation",{content:st,params:ft}),function et(Te){var dt=Te.content,st=Te.extra,ft=G(G({},st.attributes),{},{class:st.classes.join(" ")}),$t=Rr(st.styles);$t.length>0&&(ft.style=$t);var Cn=[];return Cn.push({tag:"span",attributes:ft,children:[dt]}),Cn}({content:st.toString(),title:Cn,extra:{attributes:_t,styles:Hi,classes:["".concat(Ui.cssPrefix,"-layers-counter")].concat(Ee(Zn))}})})}}}},Ci={mixout:function(){return{text:function(st){var ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=ft.transform,Cn=void 0===$t?Pa:$t,Dn=ft.classes,Zn=void 0===Dn?[]:Dn,si=ft.attributes,_t=void 0===si?{}:si,ji=ft.styles,Hi=void 0===ji?{}:ji;return Wo({type:"text",content:st},function(){return Pr("beforeDOMElementCreation",{content:st,params:ft}),me({content:st,transform:G(G({},Pa),Cn),extra:{attributes:_t,styles:Hi,classes:["".concat(Ui.cssPrefix,"-layers-text")].concat(Ee(Zn))}})})}}},provides:function(dt){dt.generateLayersText=function(st,ft){var $t=ft.transform,Cn=ft.extra,Dn=null,Zn=null;if($){var si=parseInt(getComputedStyle(st).fontSize,10),_t=st.getBoundingClientRect();Dn=_t.width/si,Zn=_t.height/si}return Promise.resolve([st,me({content:st.innerHTML,width:Dn,height:Zn,transform:$t,extra:Cn,watchable:!0})])}}},wi=new RegExp('"',"ug"),$i=[1105920,1112319],sa=G(G(G(G({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),va=Object.keys(sa).reduce(function(Te,dt){return Te[dt.toLowerCase()]=sa[dt],Te},{}),oa=Object.keys(va).reduce(function(Te,dt){var st=va[dt];return Te[dt]=st[900]||Ee(Object.entries(st))[0][1],Te},{});function Nr(Te,dt){var st="".concat("data-fa-pseudo-element-pending").concat(dt.replace(":","-"));return new Promise(function(ft,$t){if(null!==Te.getAttribute(st))return ft();var Dn=wa(Te.children).filter(function(ll){return ll.getAttribute(Ua)===dt})[0],Zn=te.getComputedStyle(Te,dt),si=Zn.getPropertyValue("font-family"),_t=si.match(Zr),ji=Zn.getPropertyValue("font-weight"),Hi=Zn.getPropertyValue("content");if(Dn&&!_t)return Te.removeChild(Dn),ft();if(_t&&"none"!==Hi&&""!==Hi){var Ja=Zn.getPropertyValue("content"),Ba=function gi(Te,dt){var st=Te.replace(/^['"]|['"]$/g,"").toLowerCase(),ft=parseInt(dt),$t=isNaN(ft)?"normal":ft;return(va[st]||{})[$t]||oa[st]}(si,ji),wr=function hs(Te){return xa(Ee(Te.replace(wi,""))[0]||"")}(Ja),_s=_t[0].startsWith("FontAwesome"),vs=function Ls(Te){var dt=Te.getPropertyValue("font-feature-settings").includes("ss01"),ft=Te.getPropertyValue("content").replace(wi,""),$t=ft.codePointAt(0);return $t>=$i[0]&&$t<=$i[1]||2===ft.length&&ft[0]===ft[1]||dt}(Zn),rr=Tr(Ba,wr),Bs=rr;if(_s){var ol=function Vl(Te){var dt=nr[Te],st=Tr("fas",Te);return dt||(st?{prefix:"fas",iconName:st}:null)||{prefix:null,iconName:null}}(wr);ol.iconName&&ol.prefix&&(rr=ol.iconName,Ba=ol.prefix)}if(!rr||vs||Dn&&Dn.getAttribute(ns)===Ba&&Dn.getAttribute(Ga)===Bs)ft();else{Te.setAttribute(st,Bs),Dn&&Te.removeChild(Dn);var Kr=function Rl(){return{iconName:null,prefix:null,transform:Pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),sc=Kr.extra;sc.attributes[Ua]=dt,Gi(rr,Ba).then(function(ll){var D4=Q(G(G({},Kr),{},{icons:{main:ll,mask:{prefix:null,iconName:null,rest:[]}},prefix:Ba,iconName:Bs,extra:sc,watchable:!0})),vc=ie.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===dt?Te.insertBefore(vc,Te.firstChild):Te.appendChild(vc),vc.outerHTML=D4.map(function(s2){return $e(s2)}).join("\n"),Te.removeAttribute(st),ft()}).catch($t)}}else ft()})}function Br(Te){return Promise.all([Nr(Te,"::before"),Nr(Te,"::after")])}function Xo(Te){return!(Te.parentNode===document.head||~mr.indexOf(Te.tagName.toUpperCase())||Te.getAttribute(Ua)||Te.parentNode&&"svg"===Te.parentNode.tagName)}var Oo=function(dt){return!!dt&&fr.some(function(st){return dt.includes(st)})},Pl=function(dt){if(!dt)return[];var Cn,st=new Set,ft=dt.split(/,(?![^()]*\))/).map(function(si){return si.trim()}),$t=B(ft=ft.flatMap(function(si){return si.includes("(")?si:si.split(",").map(function(_t){return _t.trim()})}));try{for($t.s();!(Cn=$t.n()).done;){var Dn=Cn.value;if(Oo(Dn)){var Zn=fr.reduce(function(si,_t){return si.replace(_t,"")},Dn);""!==Zn&&"*"!==Zn&&st.add(Zn)}}}catch(si){$t.e(si)}finally{$t.f()}return st};function yl(Te){if(H){var st;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])st=Te;else if(Ui.searchPseudoElementsFullScan)st=Te.querySelectorAll("*");else{var Cn,ft=new Set,$t=B(document.styleSheets);try{for($t.s();!(Cn=$t.n()).done;){var Dn=Cn.value;try{var si,Zn=B(Dn.cssRules);try{for(Zn.s();!(si=Zn.n()).done;){var Ja,Hi=B(Pl(si.value.selectorText));try{for(Hi.s();!(Ja=Hi.n()).done;)ft.add(Ja.value)}catch(_s){Hi.e(_s)}finally{Hi.f()}}}catch(_s){Zn.e(_s)}finally{Zn.f()}}catch(_s){Ui.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(Dn.href," (").concat(_s.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(_s){$t.e(_s)}finally{$t.f()}if(!ft.size)return;var wr=Array.from(ft).join(", ");try{st=Te.querySelectorAll(wr)}catch{}}return new Promise(function(_s,vs){var rr=wa(st).filter(Xo).map(Br),Bs=ro_begin("searchPseudoElements");Lc(),Promise.all(rr).then(function(){Bs(),vl(),_s()}).catch(function(){Bs(),vl(),vs()})})}}var tc=!1,Kc=function(dt){return dt.toLowerCase().split(" ").reduce(function(ft,$t){var Cn=$t.toLowerCase().split("-"),Dn=Cn[0],Zn=Cn.slice(1).join("-");if(Dn&&"h"===Zn)return ft.flipX=!0,ft;if(Dn&&"v"===Zn)return ft.flipY=!0,ft;if(Zn=parseFloat(Zn),isNaN(Zn))return ft;switch(Dn){case"grow":ft.size=ft.size+Zn;break;case"shrink":ft.size=ft.size-Zn;break;case"left":ft.x=ft.x-Zn;break;case"right":ft.x=ft.x+Zn;break;case"up":ft.y=ft.y-Zn;break;case"down":ft.y=ft.y+Zn;break;case"rotate":ft.rotate=ft.rotate+Zn}return ft},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},gc={x:0,y:0,width:"100%",height:"100%"};function Yc(Te){return Te.attributes&&(Te.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(Te.attributes.fill="black"),Te}!function Wr(Te,dt){var st=dt.mixoutsTo;io=Te,Ys={},Object.keys(Dr).forEach(function(ft){-1===li.indexOf(ft)&&delete Dr[ft]}),io.forEach(function(ft){var $t=ft.mixout?ft.mixout():{};if(Object.keys($t).forEach(function(Dn){"function"==typeof $t[Dn]&&(st[Dn]=$t[Dn]),"object"===be($t[Dn])&&Object.keys($t[Dn]).forEach(function(Zn){st[Dn]||(st[Dn]={}),st[Dn][Zn]=$t[Dn][Zn]})}),ft.hooks){var Cn=ft.hooks();Object.keys(Cn).forEach(function(Dn){Ys[Dn]||(Ys[Dn]=[]),Ys[Dn].push(Cn[Dn])})}ft.provides&&ft.provides(Dr)})}([mt,Qt,Pn,$n,Ci,{hooks:function(){return{mutationObserverCallbacks:function(st){return st.pseudoElementsCallback=yl,st}}},provides:function(dt){dt.pseudoElements2svg=function(st){var ft=st.node;Ui.searchPseudoElements&&yl(void 0===ft?ie:ft)}}},{mixout:function(){return{dom:{unwatch:function(){Lc(),tc=!0}}}},hooks:function(){return{bootstrap:function(){Lo(ao("mutationObserverCallbacks",{}))},noAuto:function(){!function Ol(){al&&al.disconnect()}()},watch:function(st){var ft=st.observeMutationsRoot;tc?vl():Lo(ao("mutationObserverCallbacks",{observeMutationsRoot:ft}))}}}},{mixout:function(){return{parse:{transform:function(st){return Kc(st)}}}},hooks:function(){return{parseNodeAttributes:function(st,ft){var $t=ft.getAttribute("data-fa-transform");return $t&&(st.transform=Kc($t)),st}}},provides:function(dt){dt.generateAbstractTransformGrouping=function(st){var ft=st.main,$t=st.transform,Dn=st.iconWidth,Zn={transform:"translate(".concat(st.containerWidth/2," 256)")},si="translate(".concat(32*$t.x,", ").concat(32*$t.y,") "),_t="scale(".concat($t.size/16*($t.flipX?-1:1),", ").concat($t.size/16*($t.flipY?-1:1),") "),ji="rotate(".concat($t.rotate," 0 0)"),Ba={outer:Zn,inner:{transform:"".concat(si," ").concat(_t," ").concat(ji)},path:{transform:"translate(".concat(Dn/2*-1," -256)")}};return{tag:"g",attributes:G({},Ba.outer),children:[{tag:"g",attributes:G({},Ba.inner),children:[{tag:ft.icon.tag,children:ft.icon.children,attributes:G(G({},ft.icon.attributes),Ba.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(st,ft){var $t=ft.getAttribute("data-fa-mask"),Cn=$t?Ho($t.split(" ").map(function(Dn){return Dn.trim()})):{prefix:null,iconName:null,rest:[]};return Cn.prefix||(Cn.prefix=za()),st.mask=Cn,st.maskId=ft.getAttribute("data-fa-mask-id"),st}}},provides:function(dt){dt.generateAbstractMask=function(st){var Te,ft=st.children,$t=st.attributes,Cn=st.main,Dn=st.mask,Zn=st.maskId,ji=Cn.icon,Ja=Dn.icon,Ba=function Hr(Te){var dt=Te.transform,ft=Te.iconWidth,$t={transform:"translate(".concat(Te.containerWidth/2," 256)")},Cn="translate(".concat(32*dt.x,", ").concat(32*dt.y,") "),Dn="scale(".concat(dt.size/16*(dt.flipX?-1:1),", ").concat(dt.size/16*(dt.flipY?-1:1),") "),Zn="rotate(".concat(dt.rotate," 0 0)");return{outer:$t,inner:{transform:"".concat(Cn," ").concat(Dn," ").concat(Zn)},path:{transform:"translate(".concat(ft/2*-1," -256)")}}}({transform:st.transform,containerWidth:Dn.width,iconWidth:Cn.width}),wr={tag:"rect",attributes:G(G({},gc),{},{fill:"white"})},_s=ji.children?{children:ji.children.map(Yc)}:{},vs={tag:"g",attributes:G({},Ba.inner),children:[Yc(G({tag:ji.tag,attributes:G(G({},ji.attributes),Ba.path)},_s))]},rr={tag:"g",attributes:G({},Ba.outer),children:[vs]},Bs="mask-".concat(Zn||Xs()),ol="clip-".concat(Zn||Xs()),Kr={tag:"mask",attributes:G(G({},gc),{},{id:Bs,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[wr,rr]},sc={tag:"defs",children:[{tag:"clipPath",attributes:{id:ol},children:(Te=Ja,"g"===Te.tag?Te.children:[Te])},Kr]};return ft.push(sc,{tag:"rect",attributes:G({fill:"currentColor","clip-path":"url(#".concat(ol,")"),mask:"url(#".concat(Bs,")")},gc)}),{children:ft,attributes:$t}}}},{provides:function(dt){var st=!1;te.matchMedia&&(st=te.matchMedia("(prefers-reduced-motion: reduce)").matches),dt.missingIconAbstract=function(){var ft=[],$t={fill:"currentColor"},Cn={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};ft.push({tag:"path",attributes:G(G({},$t),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var Dn=G(G({},Cn),{},{attributeName:"opacity"}),Zn={tag:"circle",attributes:G(G({},$t),{},{cx:"256",cy:"364",r:"28"}),children:[]};return st||Zn.children.push({tag:"animate",attributes:G(G({},Cn),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:G(G({},Dn),{},{values:"1;0;1;1;0;1;"})}),ft.push(Zn),ft.push({tag:"path",attributes:G(G({},$t),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:st?[]:[{tag:"animate",attributes:G(G({},Dn),{},{values:"1;0;0;0;0;1;"})}]}),st||ft.push({tag:"path",attributes:G(G({},$t),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:G(G({},Dn),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:ft}}}},{hooks:function(){return{parseNodeAttributes:function(st,ft){var $t=ft.getAttribute("data-fa-symbol");return st.symbol=null!==$t&&(""===$t||$t),st}}}}],{mixoutsTo:ir});var Oa=ir.config,K=ir.dom,Ie=ir.parse,ui=ir.icon;const S4=["*"];let Qc=(()=>{class Te{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(st){Oa.autoAddCss=st,this._autoAddCss=st}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(ft){return new(ft||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})(),_c=(()=>{class Te{definitions={};addIcons(...st){for(const ft of st){ft.prefix in this.definitions||(this.definitions[ft.prefix]={}),this.definitions[ft.prefix][ft.iconName]=ft;for(const $t of ft.icon[2])"string"==typeof $t&&(this.definitions[ft.prefix][$t]=ft)}}addIconPacks(...st){for(const ft of st){const $t=Object.keys(ft).map(Cn=>ft[Cn]);this.addIcons(...$t)}}getIconDefinition(st,ft){return st in this.definitions&&ft in this.definitions[st]?this.definitions[st][ft]:null}static \u0275fac=function(ft){return new(ft||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const $c=Te=>null!=Te&&(90===Te||180===Te||270===Te||"90"===Te||"180"===Te||"270"===Te),n2=Te=>{const dt=$c(Te.rotate),st={[`fa-${Te.animation}`]:null!=Te.animation&&!Te.animation.startsWith("spin"),"fa-spin":"spin"===Te.animation||"spin-reverse"===Te.animation,"fa-spin-pulse":"spin-pulse"===Te.animation||"spin-pulse-reverse"===Te.animation,"fa-spin-reverse":"spin-reverse"===Te.animation||"spin-pulse-reverse"===Te.animation,"fa-pulse":"spin-pulse"===Te.animation||"spin-pulse-reverse"===Te.animation,"fa-fw":Te.fixedWidth,"fa-border":Te.border,"fa-inverse":Te.inverse,"fa-layers-counter":Te.counter,"fa-flip-horizontal":"horizontal"===Te.flip||"both"===Te.flip,"fa-flip-vertical":"vertical"===Te.flip||"both"===Te.flip,[`fa-${Te.size}`]:null!==Te.size,[`fa-rotate-${Te.rotate}`]:dt,"fa-rotate-by":null!=Te.rotate&&!dt,[`fa-pull-${Te.pull}`]:null!==Te.pull,[`fa-stack-${Te.stackItemSize}`]:null!=Te.stackItemSize};return Object.keys(st).map(ft=>st[ft]?ft:null).filter(ft=>null!=ft)},rl=new WeakSet,br="fa-auto-css";let Fl=(()=>{class Te{stackItemSize=(0,v.hFB)("1x");size=(0,v.hFB)();_effect=(0,T.QZ)(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(ft){return new(ft||Te)};static \u0275dir=d.FsC({type:Te,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return Te})(),y1=(()=>{class Te{size=(0,v.hFB)();classes=(0,T.EW)(()=>{const st=this.size();return{...st?{[`fa-${st}`]:!0}:{},"fa-stack":!0}});static \u0275fac=function(ft){return new(ft||Te)};static \u0275cmp=d.VBU({type:Te,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(ft,$t){2&ft&&d.HbH($t.classes())},inputs:{size:[1,"size"]},ngContentSelectors:S4,decls:1,vars:0,template:function(ft,$t){1&ft&&(d.NAR(),d.SdG(0))},encapsulation:2,changeDetection:0})}return Te})(),ld=(()=>{class Te{icon=(0,v.geq)();title=(0,v.geq)();animation=(0,v.geq)();mask=(0,v.geq)();flip=(0,v.geq)();size=(0,v.geq)();pull=(0,v.geq)();border=(0,v.geq)();inverse=(0,v.geq)();symbol=(0,v.geq)();rotate=(0,v.geq)();fixedWidth=(0,v.geq)();transform=(0,v.geq)();a11yRole=(0,v.geq)();renderedIconHTML=(0,T.EW)(()=>{const st=this.icon()??this.config.fallbackIcon;if(!st)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})(),"";const ft=this.findIconDefinition(st);if(!ft)return"";const $t=this.buildParams();!function Yo(Te,dt){if(!dt.autoAddCss||rl.has(Te))return;if(null!=Te.getElementById(br))return dt.autoAddCss=!1,void rl.add(Te);const st=Te.createElement("style");st.setAttribute("type","text/css"),st.setAttribute("id",br),st.innerHTML=K.css();const ft=Te.head.childNodes;let $t=null;for(let Cn=ft.length-1;Cn>-1;Cn--){const Dn=ft[Cn],Zn=Dn.nodeName.toUpperCase();["STYLE","LINK"].indexOf(Zn)>-1&&($t=Dn)}Te.head.insertBefore(st,$t),dt.autoAddCss=!1,rl.add(Te)}(this.document,this.config);const Cn=ui(ft,$t);return this.sanitizer.bypassSecurityTrustHtml(Cn.html.join("\n"))});document=(0,i.WQX)(i.qQL);sanitizer=(0,i.WQX)(w.up);config=(0,i.WQX)(Qc);iconLibrary=(0,i.WQX)(_c);stackItem=(0,i.WQX)(Fl,{optional:!0});stack=(0,i.WQX)(y1,{optional:!0});constructor(){null!=this.stack&&null==this.stackItem&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(st){const ft=((Te,dt)=>(Te=>void 0!==Te.prefix&&void 0!==Te.iconName)(Te)?Te:Array.isArray(Te)&&2===Te.length?{prefix:Te[0],iconName:Te[1]}:{prefix:dt,iconName:Te})(st,this.config.defaultPrefix);return"icon"in ft?ft:this.iconLibrary.getIconDefinition(ft.prefix,ft.iconName)??((Te=>{throw new Error(`Could not find icon with iconName=${Te.iconName} and prefix=${Te.prefix} in the icon library.`)})(ft),null)}buildParams(){const st=this.fixedWidth(),ft={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:"boolean"==typeof st?st:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize():void 0},$t=this.transform(),Cn="string"==typeof $t?Ie.transform($t):$t,Dn=this.mask(),Zn=null!=Dn?this.findIconDefinition(Dn):null,si={},_t=this.a11yRole();null!=_t&&(si.role=_t);const ji={};return null!=ft.rotate&&!$c(ft.rotate)&&(ji["--fa-rotate-angle"]=`${ft.rotate}`),{title:this.title(),transform:Cn,classes:n2(ft),mask:Zn??void 0,symbol:this.symbol(),attributes:si,styles:ji}}static \u0275fac=function(ft){return new(ft||Te)};static \u0275cmp=d.VBU({type:Te,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(ft,$t){2&ft&&(d.Avn("innerHTML",$t.renderedIconHTML(),d.npT),d.BMQ("title",$t.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(ft,$t){},encapsulation:2,changeDetection:0})}return Te})(),I0=(()=>{class Te{static \u0275fac=function(ft){return new(ft||Te)};static \u0275mod=d.$C({type:Te});static \u0275inj=i.G2t({})}return Te})()},5383(Zt,pe,l){"use strict";l.d(pe,{$$g:()=>qa,$Fj:()=>Ch,$sC:()=>Xb,BA1:()=>In,C8j:()=>cd,CQO:()=>r0,Ccf:()=>gs,D6w:()=>t_,DW4:()=>M4,EvL:()=>te,FYJ:()=>We,GR4:()=>wt,GRI:()=>A_,HEq:()=>ki,If6:()=>Yt,Int:()=>f6,JKM:()=>n1,Kcb:()=>Op,M29:()=>ub,McB:()=>Fb,Mf0:()=>mc,MjD:()=>ln,Oh6:()=>cC,QLR:()=>kf,TBz:()=>Hb,Tq9:()=>Ia,Vpi:()=>B,VwO:()=>S_,W1p:()=>vf,WKo:()=>er,WxX:()=>Tc,Xbc:()=>On,_eQ:()=>So,_qq:()=>M_,aAJ:()=>yo,aFw:()=>P6,cbP:()=>g1,dB:()=>c0,e4L:()=>M6,eGi:()=>N3,f6_:()=>Lh,gdJ:()=>_d,hb3:()=>cc,iW_:()=>CC,iy8:()=>Jo,jPR:()=>oy,jTw:()=>J2,k02:()=>Ve,k6j:()=>dg,knH:()=>r3,ld_:()=>Iu,njF:()=>qb,nsx:()=>Vb,o97:()=>Ii,pCJ:()=>dn,pS3:()=>X,peG:()=>Fp,qFF:()=>n0,qIE:()=>SC,s5m:()=>j2,vfE:()=>a7,xiI:()=>Up,ymQ:()=>E,zPk:()=>s1,zjW:()=>A2,zm_:()=>gy,zpE:()=>N8});var B={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M136 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 56 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-114.9 0c-24.9 0-45.1 20.2-45.1 45.1 0 22.5 16.5 41.5 38.7 44.7l91.6 13.1c53.8 7.7 93.7 53.7 93.7 108 0 60.3-48.9 109.1-109.1 109.1l-10.9 0 0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40-72 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l130.9 0c24.9 0 45.1-20.2 45.1-45.1 0-22.5-16.5-41.5-38.7-44.7l-91.6-13.1C55.9 273.5 16 227.4 16 173.1 16 112.9 64.9 64 125.1 64l10.9 0 0-40z"]},te={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},wt={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3l0 294.7 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-384 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288L584.4 320 512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9zM126.8 195.8L54.4 320 199.3 320 126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9S11.7 382 .9 337.1z"]},We={prefix:"fas",iconName:"indian-rupee-sign",icon:[320,512,["indian-rupee","inr"],"e1bc","M0 64C0 46.3 14.3 32 32 32l264 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-76.7 0c17.7 19.8 30.1 44.6 34.7 72l42 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-42 0c-10.4 62.2-60.8 110.9-123.8 118.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256l80 0c35.8 0 66.1-23.5 76.3-56L24 200c-13.3 0-24-10.7-24-24s10.7-24 24-24l164.3 0c-10.2-32.5-40.5-56-76.3-56L32 96C14.3 96 0 81.7 0 64z"]},dn={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},Yt={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[448,512,[],"e4c1","M265.4-6.6c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L285.3 64 352 64c53 0 96 43 96 96l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32c0-17.7-14.3-32-32-32l-66.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm-82.7 272l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L162.7 400 96 400c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 481.7 0 464l0-32c0-53 43-96 96-96l66.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM320 368a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 160a64 64 0 1 1 0-128 64 64 0 1 1 0 128z"]},In={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L72 128c-13.3 0-24-10.7-24-24S58.7 80 72 80l384 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L64 32zM416 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Ve={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},Ii={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},er={prefix:"fas",iconName:"percent",icon:[448,512,[62101,62785,"percentage"],"25","M192 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM448 384a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM438.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-384 384c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l384-384z"]},ln={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},On={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 70.7 176 0c26.5 0 48-21.5 48-48l0-22.7c-28.3-12.3-48-40.5-48-73.3 0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 22.7c0 61.9-50.1 112-112 112l-176 0 0 70.7c28.3 12.3 48 40.5 48 73.3 0 44.2-35.8 80-80 80S0 476.2 0 432c0-32.8 19.7-61 48-73.3l0-205.3C19.7 141 0 112.8 0 80 0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},So={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M480.5 10.3L259.1 158c-29.1 19.4-47.6 50.9-50.6 85.3 62.3 12.8 111.4 61.9 124.3 124.3 34.5-3 65.9-21.5 85.3-50.6L565.7 95.5c6.7-10.1 10.3-21.9 10.3-34.1 0-33.9-27.5-61.4-61.4-61.4-12.1 0-24 3.6-34.1 10.3zM288 400c0-61.9-50.1-112-112-112S64 338.1 64 400c0 3.9 .2 7.8 .6 11.6 1.8 17.5-10.2 36.4-27.8 36.4L32 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112z"]},X={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},mc={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},ki={prefix:"fas",iconName:"unlock-keyhole",icon:[384,512,["unlock-alt"],"f13e","M192 32c-35.3 0-64 28.7-64 64l0 64 192 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l0-64c0-70.7 57.3-128 128-128 63.5 0 116.1 46.1 126.2 106.7 2.9 17.4-8.8 33.9-26.3 36.9s-33.9-8.8-36.9-26.3C250 55.1 223.7 32 192 32zm40 328c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0z"]},cd={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 256c0-88.4 71.6-160 160-160 50.4 0 97.8 23.7 128 64l32 42.7 32-42.7c30.2-40.3 77.6-64 128-64 88.4 0 160 71.6 160 160S568.4 416 480 416c-50.4 0-97.8-23.7-128-64l-32-42.7-32 42.7c-30.2 40.3-77.6 64-128 64-88.4 0-160-71.6-160-160zm280 0l-43.2-57.6c-18.1-24.2-46.6-38.4-76.8-38.4-53 0-96 43-96 96s43 96 96 96c30.2 0 58.7-14.2 76.8-38.4L280 256zm80 0l43.2 57.6c18.1 24.2 46.6 38.4 76.8 38.4 53 0 96-43 96-96s-43-96-96-96c-30.2 0-58.7 14.2-76.8 38.4L360 256z"]},_d={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},qa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M404 0c19.2 0 37.6 7.6 51.1 21.2l35.7 35.7C504.4 70.4 512 88.8 512 108s-7.6 37.6-21.2 51.1L445.9 204 308 66.1 352.9 21.2C366.4 7.6 384.8 0 404 0zM58.9 315.1L274.1 100 412 237.9 196.9 453.1c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 511.1c-8.3 2.3-17.3 0-23.4-6.2s-8.5-15.1-6.2-23.4L36.4 353.8c4.1-14.6 11.8-27.9 22.6-38.7zM225.4 80.8L80.8 225.4 11.7 156.3c-15.6-15.6-15.6-40.9 0-56.6l88-88c15.6-15.6 40.9-15.6 56.6 0l5.9 5.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 34.9 34.9zM431.2 286.6l34.9 34.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 5.9 5.9c15.6 15.6 15.6 40.9 0 56.6l-88 88c-15.6 15.6-40.9 15.6-56.6 0l-69.1-69.1 144.6-144.6z"]},n1={prefix:"fas",iconName:"won-sign",icon:[512,512,[8361,"krw","won"],"f159","M62.4 53.9C56.8 37.1 38.7 28.1 21.9 33.6S-3.9 57.4 1.7 74.1L56.9 240 32 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l40.9 0 56.7 170.1c4.5 13.5 17.4 22.4 31.6 21.9s26.4-10.4 29.8-24.2L233 288 279 288 321 455.8c3.4 13.8 15.6 23.7 29.8 24.2s27.1-8.4 31.6-21.9L439.1 288 480 288c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24.9 0 55.3-165.9c5.6-16.8-3.5-34.9-20.2-40.5s-34.9 3.5-40.5 20.2l-62 186.1-54.6 0-45.9-183.8C283.5 42 270.7 32 256 32s-27.5 10-31 24.2L179 240 124.4 240 62.4 53.9zm78 234.1l26.6 0-11.4 45.6-15.2-45.6zM245 240l11-44.1 11 44.1-22 0zm100 48l26.6 0-15.2 45.6-11.4-45.6z"]},A2={prefix:"fas",iconName:"franc-sign",icon:[320,512,[],"e18f","M80 32C62.3 32 48 46.3 48 64l0 256-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 80c0 17.7 14.3 32 32 32s32-14.3 32-32l0-80 88 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-88 0 0-64 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-96 176 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},r3={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M256.4 0c-17.7 0-32 14.3-32 32l0 32-160 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l160 0 0 64-153.4 0c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7l153.4 0 0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96 160 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-160 0 0-64 153.4 0c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7l-153.4 0 0-32c0-17.7-14.3-32-32-32z"]},cc={prefix:"fas",iconName:"turkish-lira-sign",icon:[448,512,["try","turkish-lira"],"e2bb","M160 32c17.7 0 32 14.3 32 32l0 43.6 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 46.1 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 162.5 72 0c53 0 96-43 96-96 0-17.7 14.3-32 32-32s32 14.3 32 32c0 88.4-71.6 160-160 160l-104 0c-17.7 0-32-14.3-32-32l0-176.2-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-46.1-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-61.9c0-17.7 14.3-32 32-32z"]},Iu={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},j2={prefix:"fas",iconName:"euro-sign",icon:[448,512,[8364,"eur","euro"],"f153","M73.3 192C100.8 99.5 186.5 32 288 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-65.6 0-122 39.5-146.7 96L272 192c13.3 0 24 10.7 24 24s-10.7 24-24 24l-143.2 0c-.5 5.3-.8 10.6-.8 16s.3 10.7 .8 16L272 272c13.3 0 24 10.7 24 24s-10.7 24-24 24l-130.7 0c24.7 56.5 81.1 96 146.7 96l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-101.5 0-187.2-67.5-214.7-160L40 320c-13.3 0-24-10.7-24-24s10.7-24 24-24l24.6 0c-.7-10.5-.7-21.5 0-32L40 240c-13.3 0-24-10.7-24-24s10.7-24 24-24l33.3 0z"]},s1={prefix:"fas",iconName:"yen-sign",icon:[384,512,[165,"cny","jpy","rmb","yen"],"f157","M74.9 46.7c-9.6-14.9-29.4-19.2-44.2-9.6S11.5 66.4 21.1 81.3L143.7 272 88 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 32-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0 0-32 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.7 0 122.6-190.7c9.6-14.9 5.3-34.7-9.6-44.2s-34.7-5.3-44.2 9.6L192 228.8 74.9 46.7z"]},Tc={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 402.7 329.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},N3={prefix:"fas",iconName:"network-wired",icon:[576,512,[],"f6ff","M248 88l80 0 0 48-80 0 0-48zm-8-56c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l16 0 0 32-224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 192 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0 0-32 16 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0zM448 376l8 0 0 48-80 0 0-48 72 0zm-256 0l8 0 0 48-80 0 0-48 72 0z"]},J2={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]},n0={prefix:"fas",iconName:"diagram-project",icon:[512,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"]},E={prefix:"fas",iconName:"money-bill-wave",icon:[512,512,[],"f53a","M0 419.6L0 109.5c0-23.2 24.1-38.6 46.3-32 87.7 26.2 149.7 5.5 212.1-15.3 64.5-21.5 129.4-43.1 223.3-13.1 18.5 5.9 30.3 23.8 30.3 43.3l0 310.1c0 23.2-24.1 38.6-46.2 32-87.7-26.2-149.8-5.5-212.1 15.3-64.5 21.5-129.4 43.1-223.3 13.1-18.5-5.9-30.3-23.8-30.3-43.3zM336 256c0-53-35.8-96-80-96s-80 43-80 96 35.8 96 80 96 80-43 80-96zM120 413.6c4.4 0 7.9-3.8 7.2-8.1-4.6-27.8-27-49.5-55.2-53-4.4-.5-8 3.1-8 7.5l0 39.9c0 3.6 2.4 6.8 6 7.7 17.9 4.2 34.3 6.1 50 6.1zm318.5-51.1c5 .8 9.5-3 9.5-8l0-42.6c0-4.4-3.6-8.1-8-7.5-25.2 3.1-45.9 20.9-53.2 44.6-1.4 4.7 2.3 9.1 7.2 9.2 14.2 .4 29 1.7 44.4 4.3zM448 152l0-39.9c0-3.6-2.5-6.8-6-7.7-17.9-4.2-34.3-6.1-50-6.1-4.4 0-7.9 3.8-7.2 8.1 4.6 27.8 27 49.5 55.2 53 4.4 .5 8-3.1 8-7.5zM125.2 162.9c1.4-4.7-2.3-9.1-7.2-9.2-14.2-.4-29-1.7-44.4-4.3-5-.8-9.5 3-9.5 8L64 200c0 4.4 3.6 8.1 8 7.5 25.2-3.1 45.9-20.9 53.2-44.6z"]},Ia={prefix:"fas",iconName:"brazilian-real-sign",icon:[512,512,[],"e46c","M400 16c17.7 0 32 14.3 32 32l0 16 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48.9 0c-26 0-47.1 21.1-47.1 47.1 0 22.5 15.9 41.8 37.9 46.2l32.8 6.6c51.9 10.4 89.3 56 89.3 109 0 50.6-33.8 93.3-80 106.7l0 20.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-16-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.9 0c26 0 47.1-21.1 47.1-47.1 0-22.5-15.9-41.8-37.9-46.2l-32.8-6.6c-51.9-10.4-89.3-56-89.3-109 0-50.6 33.8-93.2 80-106.7L368 48c0-17.7 14.3-32 32-32zM0 64C0 46.3 14.3 32 32 32l80 0c79.5 0 144 64.5 144 144 0 54.3-30 101.5-74.4 126.1l41 136.7c5.1 16.9-4.5 34.8-21.5 39.8s-34.8-4.5-39.8-21.5L120.1 319.8c-2.7 .1-5.4 .2-8.1 .2l-48 0 0 128c0 17.7-14.3 32-32 32S0 465.7 0 448L0 64zM64 256l48 0c44.2 0 80-35.8 80-80s-35.8-80-80-80l-48 0 0 160z"]},r0={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},c0={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"]},yo={prefix:"fas",iconName:"user-lock",icon:[576,512,[],"f502","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c29.7 0 57.7 7.3 82.3 20.1l0 4.3c-19.6 17.6-32 43.1-32 71.5l0 96c0 5.5 .5 10.9 1.3 16.1L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zm301.7 .1c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 47.9 64 0 0-47.9zM352 400c0-20.9 13.4-38.7 32-45.3l0-50.6c0-44.2 35.8-80 80-80s80 35.8 80 80l0 50.6c18.6 6.6 32 24.4 32 45.3l0 96c0 26.5-21.5 48-48 48l-128 0c-26.5 0-48-21.5-48-48l0-96z"]},Ch={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 64c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 80l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 112l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Op={prefix:"fas",iconName:"baht-sign",icon:[320,512,[],"e0ac","M136 0c-13.3 0-24 10.7-24 24l0 40-74.4 0C16.8 64 0 80.8 0 101.6L0 406.3c0 23 18.7 41.7 41.7 41.7l70.3 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 48 0c61.9 0 112-50.1 112-112 0-40.1-21.1-75.3-52.7-95.1 13.1-18.3 20.7-40.7 20.7-64.9 0-61.9-50.1-112-112-112l-16 0 0-40c0-13.3-10.7-24-24-24zM112 128l0 96-48 0 0-96 48 0zm48 96l0-96 16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-16 0zm-48 64l0 96-48 0 0-96 48 0zm48 96l0-96 48 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-48 0z"]},t_={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Fp={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M313.4-6.6c12.5-12.5 32.8-12.5 45.3 0l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 128 128 128c-35.3 0-64 28.7-64 64l0 32c0 17.7-14.3 32-32 32S0 241.7 0 224l0-32C0 121.3 57.3 64 128 64l210.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 384 96 384c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 465.7 0 448l0-32c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Up={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},M_={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M502.6 150.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 236.9 352 224l0-64-320 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 275.1 160 288l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9z"]},S_={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 112 256 0 0-112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 16 16 0c26.5 0 48 21.5 48 48l0 48c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 48c0 26.5-21.5 48-48 48l-16 0 0 16c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-112-256 0 0 112c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-16-16 0c-26.5 0-48-21.5-48-48l0-48c-17.7 0-32-14.3-32-32s14.3-32 32-32l0-48c0-26.5 21.5-48 48-48l16 0 0-16z"]},A_={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Lh={prefix:"fas",iconName:"ruble-sign",icon:[448,512,[8381,"rouble","rub","ruble"],"f158","M112 32C94.3 32 80 46.3 80 64l0 208-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 48-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 152 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-152 0 0-48 112 0c79.5 0 144-64.5 144-144S335.5 32 256 32L112 32zM256 256l-112 0 0-160 112 0c44.2 0 80 35.8 80 80s-35.8 80-80 80z"]},f6={prefix:"fas",iconName:"clock-rotate-left",icon:[576,512,["history"],"f1da","M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z"]},vf={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},M6={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M461.2 18.9C472.7 24 480 35.4 480 48l0 416c0 12.6-7.3 24-18.8 29.1s-24.8 3.2-34.3-5.1l-46.6-40.7c-43.6-38.1-98.7-60.3-156.4-63l0 95.7c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-96C57.3 384 0 326.7 0 256S57.3 128 128 128l84.5 0c61.8-.2 121.4-22.7 167.9-63.3l46.6-40.7c9.4-8.3 22.9-10.2 34.3-5.1zM224 320l0 .2c70.3 2.7 137.8 28.5 192 73.4l0-275.3c-54.2 44.9-121.7 70.7-192 73.4L224 320z"]},N8={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},M4={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},P6={prefix:"fas",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 96L160 96c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-64 48 0 0-192zM0 224c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224zm64 40c0 13.3 10.7 24 24 24l240 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 240c-13.3 0-24 10.7-24 24z"]},g1={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},kf={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},oy={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]},gs={prefix:"fas",iconName:"money-bill-1",icon:[512,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm192 80a112 112 0 1 1 0 224 112 112 0 1 1 0-224zM64 184l0-48c0-4.4 3.6-8 8-8l48 0c4.4 0 8.1 3.6 7.5 8-3.6 29-26.6 51.9-55.5 55.5-4.4 .5-8-3.1-8-7.5zm0 144c0-4.4 3.6-8.1 8-7.5 29 3.6 51.9 26.6 55.5 55.5 .5 4.4-3.1 8-7.5 8l-48 0c-4.4 0-8-3.6-8-8l0-48zM440 191.5c-29-3.6-51.9-26.6-55.5-55.5-.5-4.4 3.1-8 7.5-8l48 0c4.4 0 8 3.6 8 8l0 48c0 4.4-3.6 8.1-8 7.5zM448 328l0 48c0 4.4-3.6 8-8 8l-48 0c-4.4 0-8.1-3.6-7.5-8 3.6-29 26.6-51.9 55.5-55.5 4.4-.5 8 3.1 8 7.5zM240 188c-11 0-20 9-20 20 0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l48 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0z"]},Jo=gs,dg={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},gy={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"]},ub={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7S-2.3 28 4.2 37.6l112 163.3-99.6 32.3C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4-52.9 100.6c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1l-52.9-100.6 103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8l-106.5-34.5 25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7-34.5-106.5C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6L200.9 116.2 37.6 4.2z"]},Fb={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M256.5 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM226.7 304l59.4 0 1.5 0c-12.9 26.8-7.8 58.2 11.5 79.5-20.2 22.3-24.8 55.8-9.4 83.4l22.5 40.4c.9 1.6 1.9 3.2 2.9 4.7l-237 0c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3zm205.9-56.4c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 6.1c0 18.9 24.1 32.8 40.5 23.4l5-2.9c11.6-6.7 26.5-2.6 33 9.1l22.4 40.2c6.2 11.2 2.6 25.2-8.2 32l-4.7 2.9c-16.2 10.1-16.2 39.9 0 50.1l4.6 2.9c10.8 6.8 14.5 20.8 8.3 32L607 483.8c-6.5 11.7-21.4 15.9-33 9.1l-4.9-2.9c-16.4-9.5-40.5 4.5-40.5 23.4l0 6.1c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24l0-5.9c0-19-24.2-33-40.7-23.5l-4.8 2.8c-11.6 6.7-26.4 2.6-33-9.1l-22.6-40.4c-6.2-11.2-2.6-25.3 8.3-32.1l4.4-2.7c16.3-10.1 16.3-40.1 0-50.2l-4.5-2.8c-10.9-6.8-14.5-20.9-8.3-32.1l22.5-40.3c6.5-11.7 21.4-15.8 32.9-9.1l4.8 2.8c16.5 9.5 40.7-4.5 40.7-23.5l0-5.9zm99.9 136.2a52 52 0 1 0 -104 0 52 52 0 1 0 104 0z"]},Vb={prefix:"fas",iconName:"screwdriver-wrench",icon:[576,512,["tools"],"f7d9","M70.8-6.7c5.4-5.4 13.8-6.2 20.2-2L209.9 70.5c8.9 5.9 14.2 15.9 14.2 26.6l0 49.6 90.8 90.8c33.3-15 73.9-8.9 101.2 18.5L542.2 382.1c18.7 18.7 18.7 49.1 0 67.9l-60.1 60.1c-18.7 18.7-49.1 18.7-67.9 0L288.1 384c-27.4-27.4-33.5-67.9-18.5-101.2l-90.8-90.8-49.6 0c-10.7 0-20.7-5.3-26.6-14.2L23.4 58.9c-4.2-6.3-3.4-14.8 2-20.2L70.8-6.7zm145 303.5c-6.3 36.9 2.3 75.9 26.2 107.2l-94.9 95c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8l135.4-135.5 35.2 35.1zM384.1 0c20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1L388.8 91.3c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l56.7-56.7c7.6-7.5 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 43.2-17.2 82.3-45 111.1l-49.1-49.1c-33.1-33-78.5-45.7-121.1-38.4l-56.8-56.8 0-29.7-.2-5c-.8-12.4-4.4-24.3-10.5-34.9 29.4-35 73.4-57.2 122.7-57.3z"]},Hb={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xb={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 109.3 329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},qb={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320L48 320c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48l352 0c26.5 0 48 21.5 48 48s-21.5 48-48 48L48 480c-26.5 0-48-21.5-48-48z"]},cC={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M0 64C0 46.3 14.3 32 32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64zM32 176l448 0 0 240c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-240zm152 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},a7={prefix:"fas",iconName:"sterling-sign",icon:[384,512,[163,"gbp","pound-sign"],"f154","M91.3 288l-34.8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l21.4 0C37.3 147.3 105.1 42 207.6 42l8.2 0c33.6 0 66.2 11.3 92.5 32.2l16.1 12.7c13.9 11 16.2 31.1 5.2 45s-31.1 16.2-45 5.2l-16.1-12.7c-15-11.9-33.6-18.4-52.8-18.4l-8.2 0c-57.3 0-94.7 59.9-69.7 111.4 3.6 7.4 6.6 14.9 9.1 22.6l149.5 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-141.2 0c1 35.3-8.7 70.6-28.9 100.9l-18.1 27.1 212.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-272 0c-11.8 0-22.6-6.5-28.2-16.9s-5-23 1.6-32.9l51.2-76.8c13.1-19.6 19.2-42.6 18.2-65.4z"]},CC={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},SC={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"]}},1747(Zt,pe,l){"use strict";l.d(pe,{En:()=>ot,Vm:()=>ye,EH:()=>lt,gp:()=>nt});var i=l(7786),d=l(1985),v=l(1413),T=l(3557),w=l(983),e=l(7673),O=l(8810),f=l(8071);class L{constructor(Z,Me,at){this.kind=Z,this.value=Me,this.error=at,this.hasValue="N"===Z}observe(Z){return C(this,Z)}do(Z,Me,at){const{kind:qe,value:pn,error:Je}=this;return"N"===qe?Z?.(pn):"E"===qe?Me?.(Je):at?.()}accept(Z,Me,at){var qe;return(0,f.T)(null===(qe=Z)||void 0===qe?void 0:qe.next)?this.observe(Z):this.do(Z,Me,at)}toObservable(){const{kind:Z,value:Me,error:at}=this,qe="N"===Z?(0,e.of)(Me):"E"===Z?(0,O.$)(()=>at):"C"===Z?w.w:0;if(!qe)throw new TypeError(`Unexpected notification kind ${Z}`);return qe}static createNext(Z){return new L("N",Z)}static createError(Z){return new L("E",void 0,Z)}static createComplete(){return L.completeNotification}}function C(N,Z){var Me,at,qe;const{kind:pn,value:Je,error:Be}=N;if("string"!=typeof pn)throw new TypeError('Invalid notification, missing "kind"');"N"===pn?null===(Me=Z.next)||void 0===Me||Me.call(Z,Je):"E"===pn?null===(at=Z.error)||void 0===at||at.call(Z,Be):null===(qe=Z.complete)||void 0===qe||qe.call(Z)}L.completeNotification=new L("C");var B=l(9974),A=l(4360),le=l(6354),Ce=l(9437),Ae=l(5964),j=l(8750);function W(N,Z,Me,at){return(0,B.N)((qe,pn)=>{let Je;Z&&"function"!=typeof Z?({duration:Me,element:Je,connector:at}=Z):Je=Z;const Be=new Map,ut=tn=>{Be.forEach(tn),tn(pn)},Ge=tn=>ut(on=>on.error(tn));let Ot=0,se=!1;const We=new A.H(pn,tn=>{try{const on=N(tn);let un=Be.get(on);if(!un){Be.set(on,un=at?at():new v.B);const Nt=function bt(tn,on){const un=new d.c(Nt=>{Ot++;const dn=on.subscribe(Nt);return()=>{dn.unsubscribe(),0===--Ot&&se&&We.unsubscribe()}});return un.key=tn,un}(on,un);if(pn.next(Nt),Me){const dn=(0,A._)(un,()=>{un.complete(),dn?.unsubscribe()},void 0,void 0,()=>Be.delete(on));We.add((0,j.Tg)(Me(Nt)).subscribe(dn))}}un.next(Je?Je(tn):tn)}catch(on){Ge(on)}},()=>ut(tn=>tn.complete()),Ge,()=>Be.clear(),()=>(se=!0,0===Ot));qe.subscribe(We)})}var G=l(1397);function re(N,Z){return Z?Me=>Me.pipe(re((at,qe)=>(0,j.Tg)(N(at,qe)).pipe((0,le.T)((pn,Je)=>Z(at,pn,qe,Je))))):(0,B.N)((Me,at)=>{let qe=0,pn=null,Je=!1;Me.subscribe((0,A._)(at,Be=>{pn||(pn=(0,A._)(at,void 0,()=>{pn=null,Je&&at.complete()}),(0,j.Tg)(N(Be,qe++)).subscribe(pn))},()=>{Je=!0,!pn&&at.complete()}))})}var Ee=l(6697),V=l(2615),ce=l(3664),be=l(9640);const he={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Dt="__@ngrx/effects_create__";function lt(N,Z={}){const Me=Z.functional?N:N(),at={...he,...Z};return Object.defineProperty(Me,Dt,{value:at}),Me}function P(N){return Object.getPrototypeOf(N)}function ve(N){return"function"==typeof N}function H(N){return N.filter(ve)}function Ke(N,Z,Me){const at=P(N),pn=at&&"Object"!==at.constructor.name?at.constructor.name:null,Je=function ie(N){return function Le(N){return Object.getOwnPropertyNames(N).filter(at=>!(!N[at]||!N[at].hasOwnProperty(Dt))&&N[at][Dt].hasOwnProperty("dispatch")).map(at=>({propertyName:at,...N[at][Dt]}))}(N)}(N).map(({propertyName:Be,dispatch:ut,useEffectsErrorHandler:Ge})=>{const Ot="function"==typeof N[Be]?N[Be]():N[Be],se=Ge?Me(Ot,Z):Ot;return!1===ut?se.pipe((0,T.w)()):se.pipe(function Pe(){return(0,B.N)((N,Z)=>{N.subscribe((0,A._)(Z,Me=>{Z.next(L.createNext(Me))},()=>{Z.next(L.createComplete()),Z.complete()},Me=>{Z.next(L.createError(Me)),Z.complete()}))})}()).pipe((0,le.T)(bt=>({effect:N[Be],notification:bt,propertyName:Be,sourceName:pn,sourceInstance:N})))});return(0,i.h)(...Je)}function St(N,Z,Me=10){return N.pipe((0,Ce.W)(at=>(Z&&Z.handleError(at),Me<=1?N:St(N,Z,Me-1))))}let ot=(()=>{var N;class Z extends d.c{constructor(at){super(),at&&(this.source=at)}lift(at){const qe=new Z;return qe.source=this,qe.operator=at,qe}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)(V.KVO(be.sA))},this.\u0275prov=V.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}))}return N(),Z})();function nt(...N){return(0,Ae.p)(Z=>N.some(Me=>"string"==typeof Me?Me===Z.type:Me.type===Z.type))}const ht=new V.nKC("@ngrx/effects Internal Root Guard"),oe=new V.nKC("@ngrx/effects User Provided Effects"),Ye=new V.nKC("@ngrx/effects Internal Root Effects"),fe=new V.nKC("@ngrx/effects Internal Root Effects Instances"),Qe=new V.nKC("@ngrx/effects Internal Feature Effects"),gt=new V.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),Gt=new V.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>St}),rt="@ngrx/effects/init";function gn(N){return ei(N,"ngrxOnInitEffects")}function ei(N,Z){return N&&Z in N&&"function"==typeof N[Z]}(0,be.VP)(rt);let vi=(()=>{var N;class Z extends v.B{constructor(at,qe){super(),this.errorHandler=at,this.effectsErrorHandler=qe}addEffects(at){this.next(at)}toActions(){return this.pipe(W(at=>function F(N){return!!N.constructor&&"Object"!==N.constructor.name&&"Function"!==N.constructor.name}(at)?P(at):at),(0,G.Z)(at=>at.pipe(W(Ni))),(0,G.Z)(at=>{const qe=at.pipe(re(Je=>function kn(N,Z){return Me=>{const at=Ke(Me,N,Z);return function pt(N){return ei(N,"ngrxOnRunEffects")}(Me)?Me.ngrxOnRunEffects(at):at}}(this.errorHandler,this.effectsErrorHandler)(Je)),(0,le.T)(Je=>(function Ft(N,Z){if("N"===N.notification.kind){const Me=N.notification.value;!function Sn(N){return"function"!=typeof N&&N&&N.type&&"string"==typeof N.type}(Me)&&Z.handleError(new Error(`Effect ${function Qn({propertyName:N,sourceInstance:Z,sourceName:Me}){const at="function"==typeof Z[N];return Me?`"${Me}.${String(N)}${at?"()":""}"`:`"${String(N)}()"`}(N)} dispatched an invalid action: ${function h(N){try{return JSON.stringify(N)}catch{return N}}(Me)}`))}}(Je,this.errorHandler),Je.notification)),(0,Ae.p)(Je=>"N"===Je.kind&&null!=Je.value),function xe(){return(0,B.N)((N,Z)=>{N.subscribe((0,A._)(Z,Me=>C(Me,Z)))})}()),pn=at.pipe((0,Ee.s)(1),(0,Ae.p)(gn),(0,le.T)(Je=>Je.ngrxOnInitEffects()));return(0,i.h)(qe,pn)}))}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)(V.KVO(V.zcH),V.KVO(Gt))},this.\u0275prov=V.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}))}return N(),Z})();function Ni(N){return function Ue(N){return ei(N,"ngrxOnIdentifyEffects")}(N)?N.ngrxOnIdentifyEffects():""}let Ri=(()=>{var N;class Z{get isStarted(){return!!this.effectsSubscription}constructor(at,qe){this.effectSources=at,this.store=qe,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)(V.KVO(vi),V.KVO(be.il))},this.\u0275prov=V.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"}))}return N(),Z})(),vt=(()=>{var N;class Z{constructor(at,qe,pn,Je,Be,ut,Ge){this.sources=at,qe.start();for(const Ot of Je)at.addEffects(Ot);pn.dispatch({type:rt})}addEffects(at){this.sources.addEffects(at)}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)(V.KVO(vi),V.KVO(Ri),V.KVO(be.il),V.KVO(fe),V.KVO(be.wc,8),V.KVO(be.ae,8),V.KVO(ht,8))},this.\u0275mod=ce.$C({type:Z}),this.\u0275inj=V.G2t({}))}return N(),Z})(),ee=(()=>{var N;class Z{constructor(at,qe,pn,Je){const Be=qe.flat();for(const ut of Be)at.addEffects(ut)}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)(V.KVO(vt),V.KVO(gt),V.KVO(be.wc,8),V.KVO(be.ae,8))},this.\u0275mod=ce.$C({type:Z}),this.\u0275inj=V.G2t({}))}return N(),Z})(),ye=(()=>{var N;class Z{static forFeature(...at){const qe=at.flat(),pn=H(qe);return{ngModule:ee,providers:[pn,{provide:Qe,multi:!0,useValue:qe},{provide:oe,multi:!0,useValue:[]},{provide:gt,multi:!0,useFactory:ke,deps:[Qe,oe]}]}}static forRoot(...at){const qe=at.flat(),pn=H(qe);return{ngModule:vt,providers:[pn,{provide:Ye,useValue:[qe]},{provide:ht,useFactory:Se},{provide:oe,multi:!0,useValue:[]},{provide:fe,useFactory:ke,deps:[Ye,oe]}]}}static#e=N=()=>(this.\u0275fac=function(qe){return new(qe||Z)},this.\u0275mod=ce.$C({type:Z}),this.\u0275inj=V.G2t({}))}return N(),Z})();function ke(N,Z){const Me=[];for(const at of N)Me.push(...at);for(const at of Z)Me.push(...at);return Me.map(at=>function $(N){return N instanceof V.nKC||ve(N)}(at)?(0,V.WQX)(at):at)}function Se(){const N=(0,V.WQX)(Ri,{optional:!0,skipSelf:!0}),Z=(0,V.WQX)(Ye,{self:!0});if((1!==Z.length||0!==Z[0].length)&&N)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9640(Zt,pe,l){"use strict";l.d(pe,{SS:()=>Xe,Zz:()=>Re,N_:()=>lt,Bh:()=>jt,QU:()=>h,sA:()=>Pt,h1:()=>ei,il:()=>Ri,ae:()=>Hn,md:()=>Pi,wc:()=>Rn,q6:()=>Ue,VP:()=>W,UX:()=>Jn,vy:()=>Ta,Mz:()=>Nt,on:()=>da,xk:()=>G});var i=l(2615),d=l(3664),v=l(9295),T=l(7705),w=l(4412),e=l(1985),O=l(1413),f=l(7242),u=l(941),L=l(3993),C=l(1943),B=l(6354),Pe=l(3294),le=l(9079);const Ae={};function W(en,vn){if(Ae[en]=(Ae[en]||0)+1,"function"==typeof vn)return xe(en,(...bn)=>({...vn(...bn),type:en}));switch(vn?vn._as:"empty"){case"empty":return xe(en,()=>({type:en}));case"props":return xe(en,bn=>({...bn,type:en}));default:throw new Error("Unexpected config.")}}function G(){return{_as:"props",_p:void 0}}function xe(en,vn){return Object.defineProperty(vn,"type",{value:en,writable:!1})}const Re="@ngrx/store/init";let Xe=(()=>{var en;class vn extends w.t{constructor(){super({type:Re})}next(bn){if("function"==typeof bn)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof bn>"u")throw new TypeError("Actions must be objects");if(typeof bn.type>"u")throw new TypeError("Actions must have a type property");super.next(bn)}complete(){}ngOnDestroy(){super.complete()}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)},this.\u0275prov=i.jDH({token:vn,factory:vn.\u0275fac}))}return en(),vn})();const _e=[Xe],he=new i.nKC("@ngrx/store Internal Root Guard"),Dt=new i.nKC("@ngrx/store Internal Initial State"),lt=new i.nKC("@ngrx/store Initial State"),Le=new i.nKC("@ngrx/store Reducer Factory"),te=new i.nKC("@ngrx/store Internal Reducer Factory Provider"),ie=new i.nKC("@ngrx/store Initial Reducers"),P=new i.nKC("@ngrx/store Internal Initial Reducers"),F=new i.nKC("@ngrx/store Store Features"),ve=new i.nKC("@ngrx/store Internal Store Reducers"),H=new i.nKC("@ngrx/store Internal Feature Reducers"),$=new i.nKC("@ngrx/store Internal Feature Configs"),Ke=new i.nKC("@ngrx/store Internal Store Features"),Vt=new i.nKC("@ngrx/store Internal Feature Reducers Token"),St=new i.nKC("@ngrx/store Feature Reducers"),ot=new i.nKC("@ngrx/store User Provided Meta Reducers"),nt=new i.nKC("@ngrx/store Meta Reducers"),ht=new i.nKC("@ngrx/store Internal Resolved Meta Reducers"),oe=new i.nKC("@ngrx/store User Runtime Checks Config"),Ye=new i.nKC("@ngrx/store Internal User Runtime Checks Config"),fe=new i.nKC("@ngrx/store Internal Runtime Checks"),Qe=new i.nKC("@ngrx/store Check if Action types are unique"),gt=new i.nKC("@ngrx/store Root Store Provider"),Gt=new i.nKC("@ngrx/store Feature State Provider");function rt(en,vn={}){const oi=Object.keys(en),bn={};for(let yi=0;yiyi(Kn),oi(vn))}}function Sn(en,vn){return Array.isArray(vn)&&vn.length>0&&(en=Ft.apply(null,[...vn,en])),(oi,bn)=>{const Kn=en(oi);return(yi,Wi)=>Kn(yi=void 0===yi?bn:yi,Wi)}}class h extends e.c{}class jt extends Xe{}const Ue="@ngrx/store/update-reducers";let wt=(()=>{var en;class vn extends w.t{get currentReducers(){return this.reducers}constructor(bn,Kn,yi,Wi){super(Wi(yi,Kn)),this.dispatcher=bn,this.initialState=Kn,this.reducers=yi,this.reducerFactory=Wi}addFeature(bn){this.addFeatures([bn])}addFeatures(bn){const Kn=bn.reduce((yi,{reducers:Wi,reducerFactory:Ca,metaReducers:Fe,initialState:Wt,key:Ve})=>{const Et="function"==typeof Wi?function Qn(en){const vn=Array.isArray(en)&&en.length>0?Ft(...en):oi=>oi;return(oi,bn)=>(oi=vn(oi),(Kn,yi)=>oi(Kn=void 0===Kn?bn:Kn,yi))}(Fe)(Wi,Wt):Sn(Ca,Fe)(Wi,Wt);return yi[Ve]=Et,yi},{});this.addReducers(Kn)}removeFeature(bn){this.removeFeatures([bn])}removeFeatures(bn){this.removeReducers(bn.map(Kn=>Kn.key))}addReducer(bn,Kn){this.addReducers({[bn]:Kn})}addReducers(bn){this.reducers={...this.reducers,...bn},this.updateReducers(Object.keys(bn))}removeReducer(bn){this.removeReducers([bn])}removeReducers(bn){bn.forEach(Kn=>{this.reducers=function cn(en,vn){return Object.keys(en).filter(oi=>oi!==vn).reduce((oi,bn)=>Object.assign(oi,{[bn]:en[bn]}),{})}(this.reducers,Kn)}),this.updateReducers(bn)}updateReducers(bn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:Ue,features:bn})}ngOnDestroy(){this.complete()}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)(i.KVO(jt),i.KVO(lt),i.KVO(ie),i.KVO(Le))},this.\u0275prov=i.jDH({token:vn,factory:vn.\u0275fac}))}return en(),vn})();const pt=[wt,{provide:h,useExisting:wt},{provide:jt,useExisting:Xe}];let Pt=(()=>{var en;class vn extends O.B{ngOnDestroy(){this.complete()}static#e=en=()=>(this.\u0275fac=(()=>{let bn;return function(yi){return(bn||(bn=d.xGo(vn)))(yi||vn)}})(),this.\u0275prov=i.jDH({token:vn,factory:vn.\u0275fac}))}return en(),vn})();const gn=[Pt];class ei extends e.c{}let vi=(()=>{var en;class vn extends w.t{constructor(bn,Kn,yi,Wi){super(Wi);const Ve=bn.pipe((0,u.Q)(f.T)).pipe((0,L.E)(Kn)).pipe((0,C.S)(Ni,{state:Wi}));this.stateSubscription=Ve.subscribe(({state:Et,action:Jt})=>{this.next(Et),yi.next(Jt)}),this.state=(0,le.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static#e=en=()=>(this.INIT=Re,this.\u0275fac=function(Kn){return new(Kn||vn)(i.KVO(Xe),i.KVO(h),i.KVO(Pt),i.KVO(lt))},this.\u0275prov=i.jDH({token:vn,factory:vn.\u0275fac}))}return en(),vn})();function Ni(en={state:void 0},[vn,oi]){const{state:bn}=en;return{state:oi(bn,vn),action:vn}}const kn=[vi,{provide:ei,useExisting:vi}];let Ri=(()=>{var en;class vn extends e.c{constructor(bn,Kn,yi,Wi){super(),this.actionsObserver=Kn,this.reducerManager=yi,this.injector=Wi,this.source=bn,this.state=bn.state}select(bn,...Kn){return ee.call(null,bn,...Kn)(this)}selectSignal(bn,Kn){return(0,v.EW)(()=>bn(this.state()),Kn)}lift(bn){const Kn=new vn(this,this.actionsObserver,this.reducerManager);return Kn.operator=bn,Kn}dispatch(bn,Kn){if("function"==typeof bn)return this.processDispatchFn(bn,Kn);this.actionsObserver.next(bn)}next(bn){this.actionsObserver.next(bn)}error(bn){this.actionsObserver.error(bn)}complete(){this.actionsObserver.complete()}addReducer(bn,Kn){this.reducerManager.addReducer(bn,Kn)}removeReducer(bn){this.reducerManager.removeReducer(bn)}processDispatchFn(bn,Kn){!function ce(en,vn){if(null==en)throw new Error(`${vn} must be defined.`)}(this.injector,"Store Injector");const yi=Kn?.injector??function ye(){try{return(0,i.WQX)(i.zZn)}catch{return}}()??this.injector;return(0,v.QZ)(()=>{const Wi=bn();(0,v.O8)(()=>this.dispatch(Wi))},{injector:yi})}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)(i.KVO(ei),i.KVO(Xe),i.KVO(wt),i.KVO(i.zZn))},this.\u0275prov=i.jDH({token:vn,factory:vn.\u0275fac}))}return en(),vn})();const vt=[Ri];function ee(en,vn,...oi){return function(Kn){let yi;if("string"==typeof en){const Wi=[vn,...oi].filter(Boolean);yi=Kn.pipe(function A(...en){const vn=en.length;if(0===vn)throw new Error("list of properties cannot be empty.");return(0,B.T)(oi=>{let bn=oi;for(let Kn=0;Knen(Wi,vn)))}return yi.pipe((0,Pe.F)())}}const ke="https://ngrx.io/guide/store/configuration/runtime-checks";function Se(en){return void 0===en}function ge(en){return null===en}function N(en){return Array.isArray(en)}function qe(en){return"object"==typeof en&&null!==en}function Be(en){return"function"==typeof en}function bt(en,vn){return en===vn}function un(en,vn=bt,oi=bt){let yi,bn=null,Kn=null;return{memoized:function Wt(){if(void 0!==yi)return yi.result;if(!bn)return Kn=en.apply(null,arguments),bn=arguments,Kn;if(!function tn(en,vn,oi){for(let bn=0;bn"function"==typeof vn)}(bn[0])&&(bn=function Yi(en){const vn=Object.values(en),oi=Object.keys(en);return[...vn,(...Kn)=>oi.reduce((yi,Wi,Ca)=>({...yi,[Wi]:Kn[Ca]}),{})]}(bn[0]));const Kn=bn.slice(0,bn.length-1),yi=bn[bn.length-1],Wi=Kn.filter(Ve=>Ve.release&&"function"==typeof Ve.release),Ca=en(function(...Ve){return yi.apply(null,Ve)}),Fe=un(function(Ve,Et){return vn.stateFn.apply(null,[Ve,Kn,Et,Ca])});return Object.assign(Fe.memoized,{release:function Wt(){Fe.reset(),Ca.reset(),Wi.forEach(Ve=>Ve.release())},projector:Ca.memoized,setResult:Fe.setResult,clearResult:Fe.clearResult})}}(un)(...en)}function dn(en,vn,oi,bn){if(void 0===oi){const yi=vn.map(Wi=>Wi(en));return bn.memoized.apply(null,yi)}const Kn=vn.map(yi=>yi(en,oi));return bn.memoized.apply(null,[...Kn,oi])}function Jn(en){return Nt(vn=>{const oi=vn[en];return(0,T.naY)()&&!(en in vn)&&console.warn(`@ngrx/store: The feature name "${en}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${en}', ...) or StoreModule.forFeature('${en}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),oi},vn=>vn)}function ae(en){return en instanceof i.nKC?(0,i.WQX)(en):en}function Lt(en,vn){return vn.map((oi,bn)=>{if(en[bn]instanceof i.nKC){const Kn=(0,i.WQX)(en[bn]);return{key:oi.key,reducerFactory:Kn.reducerFactory?Kn.reducerFactory:rt,metaReducers:Kn.metaReducers?Kn.metaReducers:[],initialState:Kn.initialState}}return oi})}function Ht(en){return en.map(vn=>vn instanceof i.nKC?(0,i.WQX)(vn):vn)}function _n(en){return"function"==typeof en?en():en}function fi(en,vn){return en.concat(vn)}function bi(){if((0,i.WQX)(Ri,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function zi(en){Object.freeze(en);const vn=Be(en);return Object.getOwnPropertyNames(en).forEach(oi=>{if(!oi.startsWith("\u0275")&&function Ge(en,vn){return Object.prototype.hasOwnProperty.call(en,vn)}(en,oi)&&(!vn||"caller"!==oi&&"callee"!==oi&&"arguments"!==oi)){const bn=en[oi];(qe(bn)||Be(bn))&&!Object.isFrozen(bn)&&zi(bn)}}),en}function an(en,vn=[]){return(Se(en)||ge(en))&&0===vn.length?{path:["root"],value:en}:Object.keys(en).reduce((bn,Kn)=>{if(bn)return bn;const yi=en[Kn];return function ut(en){return Be(en)&&en.hasOwnProperty("\u0275cmp")}(yi)?bn:!(Se(yi)||ge(yi)||function at(en){return"number"==typeof en}(yi)||function Me(en){return"boolean"==typeof en}(yi)||function Z(en){return"string"==typeof en}(yi)||N(yi))&&(function Je(en){if(!function pn(en){return qe(en)&&!N(en)}(en))return!1;const vn=Object.getPrototypeOf(en);return vn===Object.prototype||null===vn}(yi)?an(yi,[...vn,Kn]):{path:[...vn,Kn],value:yi})},!1)}function Yt(en,vn){if(!1===en)return;const oi=en.path.join("."),bn=new Error(`Detected unserializable ${vn} at "${oi}". ${ke}#strict${vn}serializability`);throw bn.value=en.value,bn.unserializablePath=oi,bn}function zn(en){return(0,T.naY)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...en}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Fn({strictActionSerializability:en,strictStateSerializability:vn}){return oi=>en||vn?function It(en,vn){return function(oi,bn){vn.action(bn)&&Yt(an(bn),"action");const Kn=en(oi,bn);return vn.state()&&Yt(an(Kn),"state"),Kn}}(oi,{action:bn=>en&&!rn(bn),state:()=>vn}):oi}function ci({strictActionImmutability:en,strictStateImmutability:vn}){return oi=>en||vn?function Qi(en,vn){return function(oi,bn){const Kn=vn.action(bn)?zi(bn):bn,yi=en(oi,Kn);return vn.state()?zi(yi):yi}}(oi,{action:bn=>en&&!rn(bn),state:()=>vn}):oi}function rn(en){return en.type.startsWith("@ngrx")}function In({strictActionWithinNgZone:en}){return vn=>en?function Un(en,vn){return function(oi,bn){if(vn.action(bn)&&!d.SKi.isInAngularZone())throw new Error(`Action '${bn.type}' running outside NgZone. ${ke}#strictactionwithinngzone`);return en(oi,bn)}}(vn,{action:oi=>en&&!rn(oi)}):vn}function Mn(en){return[{provide:Ye,useValue:en},{provide:oe,useFactory:ii,deps:[Ye]},{provide:fe,deps:[oe],useFactory:zn},{provide:nt,multi:!0,deps:[fe],useFactory:ci},{provide:nt,multi:!0,deps:[fe],useFactory:Fn},{provide:nt,multi:!0,deps:[fe],useFactory:In}]}function Vn(){return[{provide:Qe,multi:!0,deps:[fe],useFactory:Bn}]}function ii(en){return en}function Bn(en){if(!en.strictActionTypeUniqueness)return;const vn=Object.entries(Ae).filter(([,oi])=>oi>1).map(([oi])=>oi);if(vn.length)throw new Error(`Action types are registered more than once, ${vn.map(oi=>`"${oi}"`).join(", ")}. ${ke}#strictactiontypeuniqueness`)}function ra(en={},vn={}){return[{provide:he,useFactory:bi},{provide:Dt,useValue:vn.initialState},{provide:lt,useFactory:_n,deps:[Dt]},{provide:P,useValue:en},{provide:ve,useExisting:en instanceof i.nKC?en:P},{provide:ie,deps:[P,[new d.y_5(ve)]],useFactory:ae},{provide:ot,useValue:vn.metaReducers?vn.metaReducers:[]},{provide:ht,deps:[nt,ot],useFactory:fi},{provide:te,useValue:vn.reducerFactory?vn.reducerFactory:rt},{provide:Le,deps:[te,ht],useFactory:Sn},_e,pt,gn,kn,vt,Mn(vn.runtimeChecks),Vn()]}function ri(en,vn,oi={}){return[{provide:$,multi:!0,useValue:en instanceof Object?{}:oi},{provide:F,multi:!0,useValue:{key:en instanceof Object?en.name:en,reducerFactory:oi instanceof i.nKC||!oi.reducerFactory?rt:oi.reducerFactory,metaReducers:oi instanceof i.nKC||!oi.metaReducers?[]:oi.metaReducers,initialState:oi instanceof i.nKC||!oi.initialState?void 0:oi.initialState}},{provide:Ke,deps:[$,F],useFactory:Lt},{provide:H,multi:!0,useValue:en instanceof Object?en.reducer:vn},{provide:Vt,multi:!0,useExisting:vn instanceof i.nKC?vn:H},{provide:St,multi:!0,deps:[H,[new d.y_5(Vt)]],useFactory:Ht},Vn()]}(0,i.BCV)(()=>(0,i.WQX)(gt)),(0,i.BCV)(()=>(0,i.WQX)(Gt));let Rn=(()=>{var en;class vn{constructor(bn,Kn,yi,Wi,Ca,Fe){}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)(i.KVO(Xe),i.KVO(h),i.KVO(Pt),i.KVO(Ri),i.KVO(he,8),i.KVO(Qe,8))},this.\u0275mod=d.$C({type:vn}),this.\u0275inj=i.G2t({}))}return en(),vn})(),Hn=(()=>{var en;class vn{constructor(bn,Kn,yi,Wi,Ca){this.features=bn,this.featureReducers=Kn,this.reducerManager=yi;const Fe=bn.map((Wt,Ve)=>{const Jt=Kn.shift()[Ve];return{...Wt,reducers:Jt,initialState:_n(Wt.initialState)}});yi.addFeatures(Fe)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)(i.KVO(Ke),i.KVO(St),i.KVO(wt),i.KVO(Rn),i.KVO(Qe,8))},this.\u0275mod=d.$C({type:vn}),this.\u0275inj=i.G2t({}))}return en(),vn})(),Pi=(()=>{var en;class vn{static forRoot(bn,Kn){return{ngModule:Rn,providers:[...ra(bn,Kn)]}}static forFeature(bn,Kn,yi={}){return{ngModule:Hn,providers:[...ri(bn,Kn,yi)]}}static#e=en=()=>(this.\u0275fac=function(Kn){return new(Kn||vn)},this.\u0275mod=d.$C({type:vn}),this.\u0275inj=i.G2t({}))}return en(),vn})();function da(...en){return{reducer:en.pop(),types:en.map(bn=>bn.type)}}function Ta(en,...vn){const oi=new Map;for(const bn of vn)for(const Kn of bn.types){const yi=oi.get(Kn);oi.set(Kn,yi?(Ca,Fe)=>bn.reducer(yi(Ca,Fe),Fe):bn.reducer)}return function(bn=en,Kn){const yi=oi.get(Kn.type);return yi?yi(bn,Kn):bn}}},1993(Zt,pe,l){"use strict";l.d(pe,{Dl:()=>bp,L8:()=>hh,dV:()=>p4});var i=l(3664),d=l(2615),v=l(7705),T=l(2200),w=l(177),e=l(1635),O=l(6939),f=l(3726),u=l(152),L=l(1514);function C(){}function B(s){return null==s?C:function(){return this.querySelector(s)}}function le(){return[]}function Ce(s){return null==s?le:function(){return this.querySelectorAll(s)}}function W(s){return function(){return this.matches(s)}}function G(s){return function(g){return g.matches(s)}}var re=Array.prototype.find;function Ee(){return this.firstElementChild}var ce=Array.prototype.filter;function be(){return Array.from(this.children)}function Re(s){return new Array(s.length)}function _e(s,g){this.ownerDocument=s.ownerDocument,this.namespaceURI=s.namespaceURI,this._next=null,this._parent=s,this.__data__=g}function Dt(s,g,c,r,y,x){for(var ue,R=0,xt=g.length,Rt=x.length;Rg?1:s>=g?0:NaN}_e.prototype={constructor:_e,appendChild:function(s){return this._parent.insertBefore(s,this._next)},insertBefore:function(s,g){return this._parent.insertBefore(s,g)},querySelector:function(s){return this._parent.querySelector(s)},querySelectorAll:function(s){return this._parent.querySelectorAll(s)}};var Ye="http://www.w3.org/1999/xhtml";const fe={svg:"http://www.w3.org/2000/svg",xhtml:Ye,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qe(s){var g=s+="",c=g.indexOf(":");return c>=0&&"xmlns"!==(g=s.slice(0,c))&&(s=s.slice(c+1)),fe.hasOwnProperty(g)?{space:fe[g],local:s}:s}function gt(s){return function(){this.removeAttribute(s)}}function Gt(s){return function(){this.removeAttributeNS(s.space,s.local)}}function rt(s,g){return function(){this.setAttribute(s,g)}}function cn(s,g){return function(){this.setAttributeNS(s.space,s.local,g)}}function Ft(s,g){return function(){var c=g.apply(this,arguments);null==c?this.removeAttribute(s):this.setAttribute(s,c)}}function Sn(s,g){return function(){var c=g.apply(this,arguments);null==c?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,c)}}function h(s){return s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView}function jt(s){return function(){this.style.removeProperty(s)}}function Ue(s,g,c){return function(){this.style.setProperty(s,g,c)}}function wt(s,g,c){return function(){var r=g.apply(this,arguments);null==r?this.style.removeProperty(s):this.style.setProperty(s,r,c)}}function Pt(s,g){return s.style.getPropertyValue(g)||h(s).getComputedStyle(s,null).getPropertyValue(g)}function gn(s){return function(){delete this[s]}}function ei(s,g){return function(){this[s]=g}}function vi(s,g){return function(){var c=g.apply(this,arguments);null==c?delete this[s]:this[s]=c}}function kn(s){return s.trim().split(/^|\s+/)}function Ri(s){return s.classList||new vt(s)}function vt(s){this._node=s,this._names=kn(s.getAttribute("class")||"")}function ee(s,g){for(var c=Ri(s),r=-1,y=g.length;++r=0&&(this._names.splice(g,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(s){return this._names.indexOf(s)>=0}};var an=[null];function Yt(s,g){this._groups=s,this._parents=g}function Un(){return new Yt([[document.documentElement]],an)}Yt.prototype=Un.prototype={constructor:Yt,select:function A(s){"function"!=typeof s&&(s=B(s));for(var g=this._groups,c=g.length,r=new Array(c),y=0;y=ea&&(ea=pa+1);!(Na=Xn[ea])&&++ea=0;)(R=r[y])&&(x&&4^R.compareDocumentPosition(x)&&x.parentNode.insertBefore(R,x),x=R);return this},sort:function $(s){function g(wn,An){return wn&&An?s(wn.__data__,An.__data__):!wn-!An}s||(s=Ke);for(var c=this._groups,r=c.length,y=new Array(r),x=0;x1?this.each((null==g?jt:"function"==typeof g?wt:Ue)(s,g,c??"")):Pt(this.node(),s)},property:function Ni(s,g){return arguments.length>1?this.each((null==g?gn:"function"==typeof g?vi:ei)(s,g)):this.node()[s]},classed:function N(s,g){var c=kn(s+"");if(arguments.length<2){for(var r=Ri(this.node()),y=-1,x=c.length;++y=0&&(c=g.slice(r+1),g=g.slice(0,r)),{type:g,name:c}})}(s+""),x=r.length;if(!(arguments.length<2)){for(ue=g?Ht:Lt,y=0;y{}};function In(){for(var r,s=0,g=arguments.length,c={};s=0&&(r=c.slice(y+1),c=c.slice(0,y)),c&&!g.hasOwnProperty(c))throw new Error("unknown type: "+c);return{type:c,name:r}})}(s+"",c),x=-1,R=r.length;if(!(arguments.length<2)){if(null!=g&&"function"!=typeof g)throw new Error("invalid callback: "+g);for(;++x0)for(var y,x,c=new Array(y),r=0;r>8&15|g>>4&240,g>>4&15|240&g,(15&g)<<4|15&g,1):8===c?ca(g>>24&255,g>>16&255,g>>8&255,(255&g)/255):4===c?ca(g>>12&15|g>>8&240,g>>8&15|g>>4&240,g>>4&15|240&g,((15&g)<<4|15&g)/255):null):(g=bn.exec(s))?new U(g[1],g[2],g[3],1):(g=Kn.exec(s))?new U(255*g[1]/100,255*g[2]/100,255*g[3]/100,1):(g=yi.exec(s))?ca(g[1],g[2],g[3],g[4]):(g=Wi.exec(s))?ca(255*g[1]/100,255*g[2]/100,255*g[3]/100,g[4]):(g=Ca.exec(s))?Ua(g[1],g[2]/100,g[3]/100,1):(g=Fe.exec(s))?Ua(g[1],g[2]/100,g[3]/100,g[4]):Wt.hasOwnProperty(s)?Ii(Wt[s]):"transparent"===s?new U(NaN,NaN,NaN,0):null}function Ii(s){return new U(s>>16&255,s>>8&255,255&s,1)}function ca(s,g,c,r){return r<=0&&(s=g=c=NaN),new U(s,g,c,r)}function ni(s,g,c,r){return 1===arguments.length?function nn(s){return s instanceof Hn||(s=di(s)),s?new U((s=s.rgb()).r,s.g,s.b,s.opacity):new U}(s):new U(s,g,c,r??1)}function U(s,g,c,r){this.r=+s,this.g=+g,this.b=+c,this.opacity=+r}function tt(){return`#${_a(this.r)}${_a(this.g)}${_a(this.b)}`}function Xt(){const s=Nn(this.opacity);return`${1===s?"rgb(":"rgba("}${Ki(this.r)}, ${Ki(this.g)}, ${Ki(this.b)}${1===s?")":`, ${s})`}`}function Nn(s){return isNaN(s)?1:Math.max(0,Math.min(1,s))}function Ki(s){return Math.max(0,Math.min(255,Math.round(s)||0))}function _a(s){return((s=Ki(s))<16?"0":"")+s.toString(16)}function Ua(s,g,c,r){return r<=0?s=g=c=NaN:c<=0||c>=1?s=g=NaN:g<=0&&(s=NaN),new Ga(s,g,c,r)}function $a(s){if(s instanceof Ga)return new Ga(s.h,s.s,s.l,s.opacity);if(s instanceof Hn||(s=di(s)),!s)return new Ga;if(s instanceof Ga)return s;var g=(s=s.rgb()).r/255,c=s.g/255,r=s.b/255,y=Math.min(g,c,r),x=Math.max(g,c,r),R=NaN,ue=x-y,xt=(x+y)/2;return ue?(R=g===x?(c-r)/ue+6*(c0&&xt<1?0:R,new Ga(R,ue,xt,s.opacity)}function Ga(s,g,c,r){this.h=+s,this.s=+g,this.l=+c,this.opacity=+r}function As(s){return(s=(s||0)%360)<0?s+360:s}function hr(s){return Math.max(0,Math.min(1,s||0))}function mr(s,g,c){return 255*(s<60?g+(c-g)*s/60:s<180?c:s<240?g+(c-g)*(240-s)/60:g)}function fr(s,g,c,r,y){var x=s*s,R=x*s;return((1-3*s+3*x-R)*g+(4-6*x+3*R)*c+(1+3*s+3*x-3*R)*r+R*y)/6}ri(Hn,di,{copy(s){return Object.assign(new this.constructor,this,s)},displayable(){return this.rgb().displayable()},hex:Ve,formatHex:Ve,formatHex8:function Et(){return this.rgb().formatHex8()},formatHsl:function Jt(){return $a(this).formatHsl()},formatRgb:ti,toString:ti}),ri(U,ni,Rn(Hn,{brighter(s){return s=null==s?da:Math.pow(da,s),new U(this.r*s,this.g*s,this.b*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new U(this.r*s,this.g*s,this.b*s,this.opacity)},rgb(){return this},clamp(){return new U(Ki(this.r),Ki(this.g),Ki(this.b),Nn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tt,formatHex:tt,formatHex8:function Ze(){return`#${_a(this.r)}${_a(this.g)}${_a(this.b)}${_a(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xt,toString:Xt})),ri(Ga,function ns(s,g,c,r){return 1===arguments.length?$a(s):new Ga(s,g,c,r??1)},Rn(Hn,{brighter(s){return s=null==s?da:Math.pow(da,s),new Ga(this.h,this.s,this.l*s,this.opacity)},darker(s){return s=null==s?.7:Math.pow(.7,s),new Ga(this.h,this.s,this.l*s,this.opacity)},rgb(){var s=this.h%360+360*(this.h<0),g=isNaN(s)||isNaN(this.s)?0:this.s,c=this.l,r=c+(c<.5?c:1-c)*g,y=2*c-r;return new U(mr(s>=240?s-240:s+120,y,r),mr(s,y,r),mr(s<120?s+240:s-120,y,r),this.opacity)},clamp(){return new Ga(As(this.h),hr(this.s),hr(this.l),Nn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const s=Nn(this.opacity);return`${1===s?"hsl(":"hsla("}${As(this.h)}, ${100*hr(this.s)}%, ${100*hr(this.l)}%${1===s?")":`, ${s})`}`}}));const gr=s=>()=>s;function Ps(s,g){var c=g-s;return c?function Zs(s,g){return function(c){return s+c*g}}(s,c):gr(isNaN(s)?g:s)}const kr=function s(g){var c=function Ka(s){return 1==(s=+s)?Ps:function(g,c){return c-g?function jr(s,g,c){return s=Math.pow(s,c),g=Math.pow(g,c)-s,c=1/c,function(r){return Math.pow(s+r*g,c)}}(g,c,s):gr(isNaN(g)?c:g)}}(g);function r(y,x){var R=c((y=ni(y)).r,(x=ni(x)).r),ue=c(y.g,x.g),xt=c(y.b,x.b),Rt=Ps(y.opacity,x.opacity);return function(sn){return y.r=R(sn),y.g=ue(sn),y.b=xt(sn),y.opacity=Rt(sn),y+""}}return r.gamma=s,r}(1);function js(s){return function(g){var R,ue,c=g.length,r=new Array(c),y=new Array(c),x=new Array(c);for(R=0;R=1?(c=1,g-1):Math.floor(c*g),y=s[r],x=s[r+1];return fr((c-r/g)*g,r>0?s[r-1]:2*y-x,y,x,rc&&(x=g.slice(c,x),ue[R]?ue[R]+=x:ue[++R]=x),(r=r[0])===(y=y[0])?ue[R]?ue[R]+=y:ue[++R]=y:(ue[++R]=null,xt.push({i:R,x:rs(r,y)})),c=Hs.lastIndex;return c=0&&s._call.call(void 0,g),s=s._next;--er}()}finally{er=0,function Es(){for(var s,c,g=Za,r=1/0;g;)g._call?(r>g._time&&(r=g._time),s=g,g=g._next):(c=g._next,g._next=null,g=s?s._next=c:Za=c);Or=s,kt(r)}(),Fs=0}}function ua(){var s=Ks.now(),g=s-Rr;g>1e3&&(Hr-=g,Rr=s)}function kt(s){er||(Xs&&(Xs=clearTimeout(Xs)),s-Fs>24?(s<1/0&&(Xs=setTimeout(Oi,s-Ks.now()-Hr)),wa&&(wa=clearInterval(wa))):(wa||(Rr=Ks.now(),wa=setInterval(ua,1e3)),er=1,Sr(Oi)))}function On(s,g,c){var r=new q;return r.restart(y=>{r.stop(),s(y+g)},g=null==g?0:+g,c),r}q.prototype=mt.prototype={constructor:q,restart:function(s,g,c){if("function"!=typeof s)throw new TypeError("callback is not a function");c=(null==c?Ne():+c)+(null==g?0:+g),!this._next&&Or!==this&&(Or?Or._next=this:Za=this,Or=this),this._call=s,this._time=c,kt()},stop:function(){this._call&&(this._call=null,this._time=1/0,kt())}};var $e=ia("start","end","cancel","interrupt"),mn=[];function el(s,g,c,r,y,x){var R=s.__transition;if(R){if(c in R)return}else s.__transition={};!function Eo(s,g,c){var y,r=s.__transition;function R(Rt){var sn,wn,An,_i;if(1!==c.state)return xt();for(sn in r)if((_i=r[sn]).name===c.name){if(3===_i.state)return On(R);4===_i.state?(_i.state=6,_i.timer.stop(),_i.on.call("interrupt",s,s.__data__,_i.index,_i.group),delete r[sn]):+sn0)throw new Error("too late; already scheduled");return c}function Ss(s,g){var c=tr(s,g);if(c.state>3)throw new Error("too late; already running");return c}function tr(s,g){var c=s.__transition;if(!c||!(c=c[g]))throw new Error("transition not found");return c}var nr,pl=180/Math.PI,zl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ds(s,g,c,r,y,x){var R,ue,xt;return(R=Math.sqrt(s*s+g*g))&&(s/=R,g/=R),(xt=s*c+g*r)&&(c-=s*xt,r-=g*xt),(ue=Math.sqrt(c*c+r*r))&&(c/=ue,r/=ue,xt/=ue),s*r180?sn+=360:sn-Rt>180&&(Rt+=360),An.push({i:wn.push(y(wn)+"rotate(",null,r)-2,x:rs(Rt,sn)})):sn&&wn.push(y(wn)+"rotate("+sn+r)}(Rt.rotate,sn.rotate,wn,An),function ue(Rt,sn,wn,An){Rt!==sn?An.push({i:wn.push(y(wn)+"skewX(",null,r)-2,x:rs(Rt,sn)}):sn&&wn.push(y(wn)+"skewX("+sn+r)}(Rt.skewX,sn.skewX,wn,An),function xt(Rt,sn,wn,An,_i,pi){if(Rt!==wn||sn!==An){var Ji=_i.push(y(_i)+"scale(",null,",",null,")");pi.push({i:Ji-4,x:rs(Rt,wn)},{i:Ji-2,x:rs(sn,An)})}else(1!==wn||1!==An)&&_i.push(y(_i)+"scale("+wn+","+An+")")}(Rt.scaleX,Rt.scaleY,sn.scaleX,sn.scaleY,wn,An),Rt=sn=null,function(_i){for(var Xn,pi=-1,Ji=An.length;++pi=0&&(g=g.slice(0,c)),!g||"start"===g})}(g)?Ml:Ss;return function(){var R=x(this,s),ue=R.on;ue!==r&&(y=(r=ue).copy()).on(g,c),R.on=y}}(c,s,g))},attr:function Ho(s,g){var c=Qe(s),r="transform"===c?Tr:za;return this.attrTween(s,"function"==typeof g?(c.local?To:fo)(c,r,Vl(this,"attr."+s,g)):null==g?(c.local?Dl:us)(c):(c.local?So:eo)(c,r,g))},attrTween:function Al(s,g){var c="attr."+s;if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==g)return this.tween(c,null);if("function"!=typeof g)throw new Error;var r=Qe(s);return this.tween(c,(r.local?wl:no)(r,g))},style:function Gi(s,g,c){var r="transform"==(s+="")?gl:za;return null==g?this.styleTween(s,function et(s,g){var c,r,y;return function(){var x=Pt(this,s),R=(this.style.removeProperty(s),Pt(this,s));return x===R?null:x===c&&R===r?y:y=g(c=x,r=R)}}(s,r)).on("end.style."+s,Mt(s)):"function"==typeof g?this.styleTween(s,function Tn(s,g,c){var r,y,x;return function(){var R=Pt(this,s),ue=c(this),xt=ue+"";return null==ue&&(this.style.removeProperty(s),xt=ue=Pt(this,s)),R===xt?null:R===r&&xt===y?x:(y=xt,x=g(r=R,ue))}}(s,r,Vl(this,"style."+s,g))).each(function ai(s,g){var c,r,y,ue,x="style."+g,R="end."+x;return function(){var xt=Ss(this,s),Rt=xt.on,sn=null==xt.value[x]?ue||(ue=Mt(g)):void 0;(Rt!==c||y!==sn)&&(r=(c=Rt).copy()).on(R,y=sn),xt.on=r}}(this._id,s)):this.styleTween(s,function Kt(s,g,c){var r,x,y=c+"";return function(){var R=Pt(this,s);return R===y?null:R===r?x:x=g(r=R,c)}}(s,r,g),c).on("end.style."+s,null)},styleTween:function Ns(s,g,c){var r="style."+(s+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==g)return this.tween(r,null);if("function"!=typeof g)throw new Error;return this.tween(r,function as(s,g,c){var r,y;function x(){var R=g.apply(this,arguments);return R!==y&&(r=(y=R)&&function La(s,g,c){return function(r){this.style.setProperty(s,g.call(this,r),c)}}(s,R,c)),r}return x._value=g,x}(s,g,c??""))},text:function ro(s){return this.tween("text","function"==typeof s?function ar(s){return function(){var g=s(this);this.textContent=g??""}}(Vl(this,"text",s)):function il(s){return function(){this.textContent=s}}(null==s?"":s+""))},textTween:function mc(s){var g="text";if(arguments.length<1)return(g=this.tween(g))&&g._value;if(null==s)return this.tween(g,null);if("function"!=typeof s)throw new Error;return this.tween(g,function Il(s){var g,c;function r(){var y=s.apply(this,arguments);return y!==c&&(g=(c=y)&&function oo(s){return function(g){this.textContent=s.call(this,g)}}(y)),g}return r._value=s,r}(s))},remove:function nl(){return this.on("end.remove",function Wo(s){return function(){var g=this.parentNode;for(var c in this.__transition)if(+c!==s)return;g&&g.removeChild(this)}}(this._id))},tween:function Tl(s,g){var c=this._id;if(s+="",arguments.length<2){for(var R,r=tr(this.node(),c).tween,y=0,x=r.length;y2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(y?"interrupt":"cancel",s,s.__data__,r.index,r.group),delete c[R]):x=!1;x&&delete s.__transition}}(this,s)})},Fn.prototype.transition=function al(s){var g,c;s instanceof po?(g=s._id,s=s._name):(g=pc(),(c=Lc).time=Ne(),s=null==s?null:s+"");for(var r=this._groups,y=r.length,x=0;xg?1:s>=g?0:NaN}function tc(s,g){return null==s||null==g?NaN:gs?1:g>=s?0:NaN}function Xl(s){let g,c,r;function y(ue,xt,Rt=0,sn=ue.length){if(Rt>>1;c(ue[wn],xt)<0?Rt=wn+1:sn=wn}while(RtXr(s(ue),xt),r=(ue,xt)=>s(ue)-xt):(g=s===Xr||s===tc?s:Kc,c=s,r=s),{left:y,center:function R(ue,xt,Rt=0,sn=ue.length){const wn=y(ue,xt,Rt,sn-1);return wn>Rt&&r(ue[wn-1],xt)>-r(ue[wn],xt)?wn-1:wn},right:function x(ue,xt,Rt=0,sn=ue.length){if(Rt>>1;c(ue[wn],xt)<=0?Rt=wn+1:sn=wn}while(Rt=_1?10:x>=gc?5:x>=Yc?2:1;let ue,xt,Rt;return y<0?(Rt=Math.pow(10,-y)/R,ue=Math.round(s*Rt),xt=Math.round(g*Rt),ue/Rtg&&--xt,Rt=-Rt):(Rt=Math.pow(10,y)*R,ue=Math.round(s/Rt),xt=Math.round(g/Rt),ue*Rtg&&--xt),xt(s(x=new Date(+x)),x),y.ceil=x=>(s(x=new Date(x-1)),g(x,1),s(x),x),y.round=x=>{const R=y(x),ue=y.ceil(x);return x-R(g(x=new Date(+x),null==R?1:Math.floor(R)),x),y.range=(x,R,ue)=>{const xt=[];if(x=y.ceil(x),ue=null==ue?1:Math.floor(ue),!(x0))return xt;let Rt;do{xt.push(Rt=new Date(+x)),g(x,ue),s(x)}while(Rtki(R=>{if(R>=R)for(;s(R),!x(R);)R.setTime(R-1)},(R,ue)=>{if(R>=R)if(ue<0)for(;++ue<=0;)for(;g(R,-1),!x(R););else for(;--ue>=0;)for(;g(R,1),!x(R););}),c&&(y.count=(x,R)=>(Gn.setTime(+x),ui.setTime(+R),s(Gn),s(ui),Math.floor(c(Gn,ui))),y.every=x=>(x=Math.floor(x),isFinite(x)&&x>0?x>1?y.filter(r?R=>r(R)%x===0:R=>y.count(0,R)%x===0):y:null)),y}const Wa=ki(()=>{},(s,g)=>{s.setTime(+s+g)},(s,g)=>g-s);Wa.every=s=>(s=Math.floor(s),isFinite(s)&&s>0?s>1?ki(g=>{g.setTime(Math.floor(g/s)*s)},(g,c)=>{g.setTime(+g+c*s)},(g,c)=>(c-g)/s):Wa:null);const Aa=ki(s=>{s.setTime(s-s.getMilliseconds())},(s,g)=>{s.setTime(+s+g*Ha)},(s,g)=>(g-s)/Ha,s=>s.getUTCSeconds()),es=ki(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ha)},(s,g)=>{s.setTime(+s+g*Ti)},(s,g)=>(g-s)/Ti,s=>s.getMinutes()),sl=ki(s=>{s.setUTCSeconds(0,0)},(s,g)=>{s.setTime(+s+g*Ti)},(s,g)=>(g-s)/Ti,s=>s.getUTCMinutes()),go=ki(s=>{s.setTime(s-s.getMilliseconds()-s.getSeconds()*Ha-s.getMinutes()*Ti)},(s,g)=>{s.setTime(+s+g*Oa)},(s,g)=>(g-s)/Oa,s=>s.getHours()),t2=ki(s=>{s.setUTCMinutes(0,0,0)},(s,g)=>{s.setTime(+s+g*Oa)},(s,g)=>(g-s)/Oa,s=>s.getUTCHours()),Qc=ki(s=>s.setHours(0,0,0,0),(s,g)=>s.setDate(s.getDate()+g),(s,g)=>(g-s-(g.getTimezoneOffset()-s.getTimezoneOffset())*Ti)/os,s=>s.getDate()-1),Ro=ki(s=>{s.setUTCHours(0,0,0,0)},(s,g)=>{s.setUTCDate(s.getUTCDate()+g)},(s,g)=>(g-s)/os,s=>s.getUTCDate()-1),$c=ki(s=>{s.setUTCHours(0,0,0,0)},(s,g)=>{s.setUTCDate(s.getUTCDate()+g)},(s,g)=>(g-s)/os,s=>Math.floor(s/os));function rl(s){return ki(g=>{g.setDate(g.getDate()-(g.getDay()+7-s)%7),g.setHours(0,0,0,0)},(g,c)=>{g.setDate(g.getDate()+7*c)},(g,c)=>(c-g-(c.getTimezoneOffset()-g.getTimezoneOffset())*Ti)/K)}const br=rl(0),Yo=rl(1),Fl=(rl(2),rl(3),rl(4));function dt(s){return ki(g=>{g.setUTCDate(g.getUTCDate()-(g.getUTCDay()+7-s)%7),g.setUTCHours(0,0,0,0)},(g,c)=>{g.setUTCDate(g.getUTCDate()+7*c)},(g,c)=>(c-g)/K)}rl(5),rl(6);const st=dt(0),ft=dt(1),Dn=(dt(2),dt(3),dt(4)),vs=(dt(5),dt(6),ki(s=>{s.setDate(1),s.setHours(0,0,0,0)},(s,g)=>{s.setMonth(s.getMonth()+g)},(s,g)=>g.getMonth()-s.getMonth()+12*(g.getFullYear()-s.getFullYear()),s=>s.getMonth())),Bs=ki(s=>{s.setUTCDate(1),s.setUTCHours(0,0,0,0)},(s,g)=>{s.setUTCMonth(s.getUTCMonth()+g)},(s,g)=>g.getUTCMonth()-s.getUTCMonth()+12*(g.getUTCFullYear()-s.getUTCFullYear()),s=>s.getUTCMonth()),Kr=ki(s=>{s.setMonth(0,1),s.setHours(0,0,0,0)},(s,g)=>{s.setFullYear(s.getFullYear()+g)},(s,g)=>g.getFullYear()-s.getFullYear(),s=>s.getFullYear());Kr.every=s=>isFinite(s=Math.floor(s))&&s>0?ki(g=>{g.setFullYear(Math.floor(g.getFullYear()/s)*s),g.setMonth(0,1),g.setHours(0,0,0,0)},(g,c)=>{g.setFullYear(g.getFullYear()+c*s)}):null;const ll=ki(s=>{s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},(s,g)=>{s.setUTCFullYear(s.getUTCFullYear()+g)},(s,g)=>g.getUTCFullYear()-s.getUTCFullYear(),s=>s.getUTCFullYear());function vc(s,g,c,r,y,x){const R=[[Aa,1,Ha],[Aa,5,5e3],[Aa,15,15e3],[Aa,30,3e4],[x,1,Ti],[x,5,5*Ti],[x,15,15*Ti],[x,30,30*Ti],[y,1,Oa],[y,3,3*Oa],[y,6,6*Oa],[y,12,12*Oa],[r,1,os],[r,2,2*os],[c,1,K],[g,1,Ie],[g,3,3*Ie],[s,1,Ut]];function xt(Rt,sn,wn){const An=Math.abs(sn-Rt)/wn,_i=Xl(([,,Xn])=>Xn).right(R,An);if(_i===R.length)return s.every(lo(Rt/Ut,sn/Ut,wn));if(0===_i)return Wa.every(Math.max(lo(Rt,sn,wn),1));const[pi,Ji]=R[An/R[_i-1][2]isFinite(s=Math.floor(s))&&s>0?ki(g=>{g.setUTCFullYear(Math.floor(g.getUTCFullYear()/s)*s),g.setUTCMonth(0,1),g.setUTCHours(0,0,0,0)},(g,c)=>{g.setUTCFullYear(g.getUTCFullYear()+c*s)}):null;const[s2,Pf]=vc(ll,Bs,st,$c,t2,sl),[Hh,r2]=vc(Kr,vs,br,Qc,go,es);function o2(s){if(0<=s.y&&s.y<100){var g=new Date(-1,s.m,s.d,s.H,s.M,s.S,s.L);return g.setFullYear(s.y),g}return new Date(s.y,s.m,s.d,s.H,s.M,s.S,s.L)}function cd(s){if(0<=s.y&&s.y<100){var g=new Date(Date.UTC(-1,s.m,s.d,s.H,s.M,s.S,s.L));return g.setUTCFullYear(s.y),g}return new Date(Date.UTC(s.y,s.m,s.d,s.H,s.M,s.S,s.L))}function b1(s,g,c){return{y:s,m:g,d:c,H:0,M:0,S:0,L:0}}var k0={"-":"",_:" ",0:"0"},zr=/^\s*\d+/,O0=/^%/,A4=/[\\^$*+?|[\]().{}]/g;function Xa(s,g,c){var r=s<0?"-":"",y=(r?-s:s)+"",x=y.length;return r+(x[g.toLowerCase(),c]))}function l2(s,g,c){var r=zr.exec(g.slice(c,c+1));return r?(s.w=+r[0],c+r[0].length):-1}function Qo(s,g,c){var r=zr.exec(g.slice(c,c+1));return r?(s.u=+r[0],c+r[0].length):-1}function or(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.U=+r[0],c+r[0].length):-1}function dd(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.V=+r[0],c+r[0].length):-1}function cl(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.W=+r[0],c+r[0].length):-1}function bc(s,g,c){var r=zr.exec(g.slice(c,c+4));return r?(s.y=+r[0],c+r[0].length):-1}function ud(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.y=+r[0]+(+r[0]>68?1900:2e3),c+r[0].length):-1}function P0(s,g,c){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(g.slice(c,c+6));return r?(s.Z=r[1]?0:-(r[2]+(r[3]||"00")),c+r[0].length):-1}function c2(s,g,c){var r=zr.exec(g.slice(c,c+1));return r?(s.q=3*r[0]-3,c+r[0].length):-1}function hd(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.m=r[0]-1,c+r[0].length):-1}function Cc(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.d=+r[0],c+r[0].length):-1}function F0(s,g,c){var r=zr.exec(g.slice(c,c+3));return r?(s.m=0,s.d=+r[0],c+r[0].length):-1}function d2(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.H=+r[0],c+r[0].length):-1}function C1(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.M=+r[0],c+r[0].length):-1}function N0(s,g,c){var r=zr.exec(g.slice(c,c+2));return r?(s.S=+r[0],c+r[0].length):-1}function B0(s,g,c){var r=zr.exec(g.slice(c,c+3));return r?(s.L=+r[0],c+r[0].length):-1}function md(s,g,c){var r=zr.exec(g.slice(c,c+6));return r?(s.L=Math.floor(r[0]/1e3),c+r[0].length):-1}function zs(s,g,c){var r=O0.exec(g.slice(c,c+1));return r?c+r[0].length:-1}function Qs(s,g,c){var r=zr.exec(g.slice(c));return r?(s.Q=+r[0],c+r[0].length):-1}function lr(s,g,c){var r=zr.exec(g.slice(c));return r?(s.s=+r[0],c+r[0].length):-1}function Ds(s,g){return Xa(s.getDate(),g,2)}function Jc(s,g){return Xa(s.getHours(),g,2)}function qc(s,g){return Xa(s.getHours()%12||12,g,2)}function fd(s,g){return Xa(1+Qc.count(Kr(s),s),g,3)}function dl(s,g){return Xa(s.getMilliseconds(),g,3)}function pd(s,g){return dl(s,g)+"000"}function u2(s,g){return Xa(s.getMonth()+1,g,2)}function z0(s,g){return Xa(s.getMinutes(),g,2)}function h2(s,g){return Xa(s.getSeconds(),g,2)}function m2(s){var g=s.getDay();return 0===g?7:g}function L4(s,g){return Xa(br.count(Kr(s)-1,s),g,2)}function V0(s){var g=s.getDay();return g>=4||0===g?Fl(s):Fl.ceil(s)}function I4(s,g){return s=V0(s),Xa(Fl.count(Kr(s),s)+(4===Kr(s).getDay()),g,2)}function U0(s){return s.getDay()}function G0(s,g){return Xa(Yo.count(Kr(s)-1,s),g,2)}function Wh(s,g){return Xa(s.getFullYear()%100,g,2)}function x1(s,g){return Xa((s=V0(s)).getFullYear()%100,g,2)}function j0(s,g){return Xa(s.getFullYear()%1e4,g,4)}function gd(s,g){var c=s.getDay();return Xa((s=c>=4||0===c?Fl(s):Fl.ceil(s)).getFullYear()%1e4,g,4)}function H0(s){var g=s.getTimezoneOffset();return(g>0?"-":(g*=-1,"+"))+Xa(g/60|0,"0",2)+Xa(g%60,"0",2)}function f2(s,g){return Xa(s.getUTCDate(),g,2)}function k4(s,g){return Xa(s.getUTCHours(),g,2)}function W0(s,g){return Xa(s.getUTCHours()%12||12,g,2)}function Xh(s,g){return Xa(1+Ro.count(ll(s),s),g,3)}function O4(s,g){return Xa(s.getUTCMilliseconds(),g,3)}function R4(s,g){return O4(s,g)+"000"}function P4(s,g){return Xa(s.getUTCMonth()+1,g,2)}function X0(s,g){return Xa(s.getUTCMinutes(),g,2)}function F4(s,g){return Xa(s.getUTCSeconds(),g,2)}function K0(s){var g=s.getUTCDay();return 0===g?7:g}function N4(s,g){return Xa(st.count(ll(s)-1,s),g,2)}function _d(s){var g=s.getUTCDay();return g>=4||0===g?Dn(s):Dn.ceil(s)}function e1(s,g){return s=_d(s),Xa(Dn.count(ll(s),s)+(4===ll(s).getUTCDay()),g,2)}function Ql(s){return s.getUTCDay()}function Y0(s,g){return Xa(ft.count(ll(s)-1,s),g,2)}function B4(s,g){return Xa(s.getUTCFullYear()%100,g,2)}function Q0(s,g){return Xa((s=_d(s)).getUTCFullYear()%100,g,2)}function Kh(s,g){return Xa(s.getUTCFullYear()%1e4,g,4)}function Yh(s,g){var c=s.getUTCDay();return Xa((s=c>=4||0===c?Dn(s):Dn.ceil(s)).getUTCFullYear()%1e4,g,4)}function p2(){return"+0000"}function E1(){return"%"}function kc(s){return+s}function Oc(s){return Math.floor(+s/1e3)}function Z0(s){return null===s?NaN:+s}!function ul(s){(function w4(s){var g=s.dateTime,c=s.date,r=s.time,y=s.periods,x=s.days,R=s.shortDays,ue=s.months,xt=s.shortMonths,Rt=yc(y),sn=Zc(y),wn=yc(x),An=Zc(x),_i=yc(R),pi=Zc(R),Ji=yc(ue),Xn=Zc(ue),Vi=yc(xt),pa=Zc(xt),ea={a:function dr(ta){return R[ta.getDay()]},A:function ml(ta){return x[ta.getDay()]},b:function ur(ta){return xt[ta.getMonth()]},B:function ss(ta){return ue[ta.getMonth()]},c:null,d:Ds,e:Ds,f:pd,g:x1,G:gd,H:Jc,I:qc,j:fd,L:dl,m:u2,M:z0,p:function Gr(ta){return y[+(ta.getHours()>=12)]},q:function Ar(ta){return 1+~~(ta.getMonth()/3)},Q:kc,s:Oc,S:h2,u:m2,U:L4,V:I4,w:U0,W:G0,x:null,X:null,y:Wh,Y:j0,Z:H0,"%":E1},ga={a:function b0(ta){return R[ta.getUTCDay()]},A:function Hc(ta){return x[ta.getUTCDay()]},b:function nd(ta){return xt[ta.getUTCMonth()]},B:function id(ta){return ue[ta.getUTCMonth()]},c:null,d:f2,e:f2,f:R4,g:Q0,G:Yh,H:k4,I:W0,j:Xh,L:O4,m:P4,M:X0,p:function No(ta){return y[+(ta.getUTCHours()>=12)]},q:function ad(ta){return 1+~~(ta.getUTCMonth()/3)},Q:kc,s:Oc,S:F4,u:K0,U:N4,V:e1,w:Ql,W:Y0,x:null,X:null,y:B4,Y:Kh,Z:p2,"%":E1},Na={a:function bs(ta,ka,Qa){var Li=_i.exec(ka.slice(Qa));return Li?(ta.w=pi.get(Li[0].toLowerCase()),Qa+Li[0].length):-1},A:function Gs(ta,ka,Qa){var Li=wn.exec(ka.slice(Qa));return Li?(ta.w=An.get(Li[0].toLowerCase()),Qa+Li[0].length):-1},b:function Da(ta,ka,Qa){var Li=Vi.exec(ka.slice(Qa));return Li?(ta.m=pa.get(Li[0].toLowerCase()),Qa+Li[0].length):-1},B:function Rs(ta,ka,Qa){var Li=Ji.exec(ka.slice(Qa));return Li?(ta.m=Xn.get(Li[0].toLowerCase()),Qa+Li[0].length):-1},c:function ts(ta,ka,Qa){return Os(ta,g,ka,Qa)},d:Cc,e:Cc,f:md,g:ud,G:bc,H:d2,I:d2,j:F0,L:B0,m:hd,M:C1,p:function Po(ta,ka,Qa){var Li=Rt.exec(ka.slice(Qa));return Li?(ta.p=sn.get(Li[0].toLowerCase()),Qa+Li[0].length):-1},q:c2,Q:Qs,s:lr,S:N0,u:Qo,U:or,V:dd,w:l2,W:cl,x:function Fo(ta,ka,Qa){return Os(ta,c,ka,Qa)},X:function Cr(ta,ka,Qa){return Os(ta,r,ka,Qa)},y:ud,Y:bc,Z:P0,"%":zs};function qi(ta,ka){return function(Qa){var Zo,ba,Ir,Li=[],Lr=-1,Cs=0,fl=ta.length;for(Qa instanceof Date||(Qa=new Date(+Qa));++Lr53)return null;"w"in Li||(Li.w=1),"Z"in Li?(fl=(Cs=cd(b1(Li.y,0,1))).getUTCDay(),Cs=fl>4||0===fl?ft.ceil(Cs):ft(Cs),Cs=Ro.offset(Cs,7*(Li.V-1)),Li.y=Cs.getUTCFullYear(),Li.m=Cs.getUTCMonth(),Li.d=Cs.getUTCDate()+(Li.w+6)%7):(fl=(Cs=o2(b1(Li.y,0,1))).getDay(),Cs=fl>4||0===fl?Yo.ceil(Cs):Yo(Cs),Cs=Qc.offset(Cs,7*(Li.V-1)),Li.y=Cs.getFullYear(),Li.m=Cs.getMonth(),Li.d=Cs.getDate()+(Li.w+6)%7)}else("W"in Li||"U"in Li)&&("w"in Li||(Li.w="u"in Li?Li.u%7:"W"in Li?1:0),fl="Z"in Li?cd(b1(Li.y,0,1)).getUTCDay():o2(b1(Li.y,0,1)).getDay(),Li.m=0,Li.d="W"in Li?(Li.w+6)%7+7*Li.W-(fl+5)%7:Li.w+7*Li.U-(fl+6)%7);return"Z"in Li?(Li.H+=Li.Z/100|0,Li.M+=Li.Z%100,cd(Li)):o2(Li)}}function Os(ta,ka,Qa,Li){for(var Zo,ba,Lr=0,Cs=ka.length,fl=Qa.length;Lr=fl)return-1;if(37===(Zo=ka.charCodeAt(Lr++))){if(Zo=ka.charAt(Lr++),!(ba=Na[Zo in k0?ka.charAt(Lr++):Zo])||(Li=ba(ta,Qa,Li))<0)return-1}else if(Zo!=Qa.charCodeAt(Li++))return-1}return Li}return ea.x=qi(c,ea),ea.X=qi(r,ea),ea.c=qi(g,ea),ga.x=qi(c,ga),ga.X=qi(r,ga),ga.c=qi(g,ga),{format:function(ta){var ka=qi(ta+="",ea);return ka.toString=function(){return ta},ka},parse:function(ta){var ka=ks(ta+="",!1);return ka.toString=function(){return ta},ka},utcFormat:function(ta){var ka=qi(ta+="",ga);return ka.toString=function(){return ta},ka},utcParse:function(ta){var ka=ks(ta+="",!0);return ka.toString=function(){return ta},ka}}})(s)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const U4=Xl(Xr).right,v2=(Xl(Z0),U4);function G4(s,g){return s=+s,g=+g,function(c){return Math.round(s*(1-c)+g*c)}}function H4(s){return+s}var qa=[0,1];function xc(s){return s}function y2(s,g){return(g-=s=+s)?function(c){return(c-s)/g}:function j4(s){return function(){return s}}(isNaN(g)?NaN:.5)}function M1(s,g,c){var r=s[0],y=s[1],x=g[0],R=g[1];return yg&&(c=s,s=g,g=c),function(r){return Math.max(s,Math.min(g,r))}}(s[0],s[An-1])),ue=An>2?W4:M1,xt=Rt=null,wn}function wn(An){return null==An||isNaN(An=+An)?x:(xt||(xt=ue(s.map(r),g,c)))(r(R(An)))}return wn.invert=function(An){return R(y((Rt||(Rt=ue(g,s.map(r),rs)))(An)))},wn.domain=function(An){return arguments.length?(s=Array.from(An,H4),sn()):s.slice()},wn.range=function(An){return arguments.length?(g=Array.from(An),sn()):g.slice()},wn.rangeRound=function(An){return g=Array.from(An),c=G4,sn()},wn.clamp=function(An){return arguments.length?(R=!!An||xc,sn()):R!==xc},wn.interpolate=function(An){return arguments.length?(c=An,sn()):c},wn.unknown=function(An){return arguments.length?(x=An,wn):x},function(An,_i){return r=An,y=_i,sn()}}()(xc,xc)}function t1(s,g){switch(arguments.length){case 0:break;case 1:this.range(s);break;default:this.range(g).domain(s)}return this}var bl,K4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rc(s){if(!(g=K4.exec(s)))throw new Error("invalid format: "+s);var g;return new Ec({fill:g[1],align:g[2],sign:g[3],symbol:g[4],zero:g[5],width:g[6],comma:g[7],precision:g[8]&&g[8].slice(1),trim:g[9],type:g[10]})}function Ec(s){this.fill=void 0===s.fill?" ":s.fill+"",this.align=void 0===s.align?">":s.align+"",this.sign=void 0===s.sign?"-":s.sign+"",this.symbol=void 0===s.symbol?"":s.symbol+"",this.zero=!!s.zero,this.width=void 0===s.width?void 0:+s.width,this.comma=!!s.comma,this.precision=void 0===s.precision?void 0:+s.precision,this.trim=!!s.trim,this.type=void 0===s.type?"":s.type+""}function Cd(s,g){if(!isFinite(s)||0===s)return null;var c=(s=g?s.toExponential(g-1):s.toExponential()).indexOf("e"),r=s.slice(0,c);return[r.length>1?r[0]+r.slice(2):r,+s.slice(c+1)]}function Mc(s){return(s=Cd(Math.abs(s)))?s[1]:NaN}function rc(s,g){var c=Cd(s,g);if(!c)return s+"";var r=c[0],y=c[1];return y<0?"0."+new Array(-y).join("0")+r:r.length>y+1?r.slice(0,y+1)+"."+r.slice(y+1):r+new Array(y-r.length+2).join("0")}Rc.prototype=Ec.prototype,Ec.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const I1={"%":(s,g)=>(100*s).toFixed(g),b:s=>Math.round(s).toString(2),c:s=>s+"",d:function eu(s){return Math.abs(s=Math.round(s))>=1e21?s.toLocaleString("en").replace(/,/g,""):s.toString(10)},e:(s,g)=>s.toExponential(g),f:(s,g)=>s.toFixed(g),g:(s,g)=>s.toPrecision(g),o:s=>Math.round(s).toString(8),p:(s,g)=>rc(100*s,g),r:rc,s:function L1(s,g){var c=Cd(s,g);if(!c)return bl=void 0,s.toPrecision(g);var r=c[0],y=c[1],x=y-(bl=3*Math.max(-8,Math.min(8,Math.floor(y/3))))+1,R=r.length;return x===R?r:x>R?r+new Array(x-R+1).join("0"):x>0?r.slice(0,x)+"."+r.slice(x):"0."+new Array(1-x).join("0")+Cd(s,Math.max(0,g+x-1))[0]},X:s=>Math.round(s).toString(16).toUpperCase(),x:s=>Math.round(s).toString(16)};function Yr(s){return s}var k1,C2,Y4,n1=Array.prototype.map,su=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function $4(s){var g=s.domain;return s.ticks=function(c){var r=g();return function v1(s,g,c){if(!((c=+c)>0))return[];if((s=+s)===(g=+g))return[s];const r=g=y))return[];const ue=x-y+1,xt=new Array(ue);if(r)if(R<0)for(let Rt=0;Rt0;){if((Rt=ic(R,ue,c))===xt)return r[y]=R,r[x]=ue,g(r);if(Rt>0)R=Math.floor(R/Rt)*Rt,ue=Math.ceil(ue/Rt)*Rt;else{if(!(Rt<0))break;R=Math.ceil(R*Rt)/Rt,ue=Math.floor(ue*Rt)/Rt}xt=Rt}return s},s}function lc(){var s=yd();return s.copy=function(){return function S1(s,g){return g.domain(s.domain()).range(s.range()).interpolate(s.interpolate()).clamp(s.clamp()).unknown(s.unknown())}(s,lc())},t1.apply(s,arguments),$4(s)}function ru(s,g,c){s=+s,g=+g,c=(y=arguments.length)<2?(g=s,s=0,1):y<3?1:+c;for(var r=-1,y=0|Math.max(0,Math.ceil((g-s)/c)),x=new Array(y);++r0&&ue>0&&(xt+ue+1>r&&(ue=Math.max(1,r-xt)),x.push(c.substring(y-=ue,y+ue)),!((xt+=ue+1)>r));)ue=s[R=(R+1)%s.length];return x.reverse().join(g)}}(n1.call(s.grouping,Number),s.thousands+""),c=void 0===s.currency?"":s.currency[0]+"",r=void 0===s.currency?"":s.currency[1]+"",y=void 0===s.decimal?".":s.decimal+"",x=void 0===s.numerals?Yr:function iu(s){return function(g){return g.replace(/[0-9]/g,function(c){return s[+c]})}}(n1.call(s.numerals,String)),R=void 0===s.percent?"%":s.percent+"",ue=void 0===s.minus?"\u2212":s.minus+"",xt=void 0===s.nan?"NaN":s.nan+"";function Rt(wn,An){var _i=(wn=Rc(wn)).fill,pi=wn.align,Ji=wn.sign,Xn=wn.symbol,Vi=wn.zero,pa=wn.width,ea=wn.comma,ga=wn.precision,Na=wn.trim,qi=wn.type;"n"===qi?(ea=!0,qi="g"):I1[qi]||(void 0===ga&&(ga=12),Na=!0,qi="g"),(Vi||"0"===_i&&"="===pi)&&(Vi=!0,_i="0",pi="=");var ks=(An&&void 0!==An.prefix?An.prefix:"")+("$"===Xn?c:"#"===Xn&&/[boxX]/.test(qi)?"0"+qi.toLowerCase():""),Os=("$"===Xn?r:/[%p]/.test(qi)?R:"")+(An&&void 0!==An.suffix?An.suffix:""),Po=I1[qi],bs=/[defgprs%]/.test(qi);function Gs(Da){var Fo,Cr,dr,Rs=ks,ts=Os;if("c"===qi)ts=Po(Da)+ts,Da="";else{var ml=(Da=+Da)<0||1/Da<0;if(Da=isNaN(Da)?xt:Po(Math.abs(Da),ga),Na&&(Da=function au(s){e:for(var y,g=s.length,c=1,r=-1;c0&&(r=0)}return r>0?s.slice(0,r)+s.slice(y+1):s}(Da)),ml&&0==+Da&&"+"!==Ji&&(ml=!1),Rs=(ml?"("===Ji?Ji:ue:"-"===Ji||"("===Ji?"":Ji)+Rs,ts=("s"!==qi||isNaN(Da)||void 0===bl?"":su[8+bl/3])+ts+(ml&&"("===Ji?")":""),bs)for(Fo=-1,Cr=Da.length;++Fo(dr=Da.charCodeAt(Fo))||dr>57){ts=(46===dr?y+Da.slice(Fo+1):Da.slice(Fo))+ts,Da=Da.slice(0,Fo);break}}ea&&!Vi&&(Da=g(Da,1/0));var ur=Rs.length+Da.length+ts.length,ss=ur>1)+Rs+Da+ts+ss.slice(ur);break;default:Da=ss+Rs+Da+ts}return x(Da)}return ga=void 0===ga?6:/[gprs]/.test(qi)?Math.max(1,Math.min(21,ga)):Math.max(0,Math.min(20,ga)),Gs.toString=function(){return wn+""},Gs}return{format:Rt,formatPrefix:function sn(wn,An){var _i=3*Math.max(-8,Math.min(8,Math.floor(Mc(An)/3))),pi=Math.pow(10,-_i),Ji=Rt(((wn=Rc(wn)).type="f",wn),{suffix:su[8+_i/3]});return function(Xn){return Ji(pi*Xn)}}}}(s),C2=k1.format,Y4=k1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class ou extends Map{constructor(g,c=cu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:c}}),null!=g)for(const[r,y]of g)this.set(r,y)}get(g){return super.get(O1(this,g))}has(g){return super.has(O1(this,g))}set(g,c){return super.set(function Ed({_intern:s,_key:g},c){const r=g(c);return s.has(r)?s.get(r):(s.set(r,c),c)}(this,g),c)}delete(g){return super.delete(function Sc({_intern:s,_key:g},c){const r=g(c);return s.has(r)&&(c=s.get(r),s.delete(r)),c}(this,g))}}function O1({_intern:s,_key:g},c){const r=g(c);return s.has(r)?s.get(r):c}function cu(s){return null!==s&&"object"==typeof s?s.valueOf():s}Set;const E2=Symbol("implicit");function Md(){var s=new ou,g=[],c=[],r=E2;function y(x){let R=s.get(x);if(void 0===R){if(r!==E2)return r;s.set(x,R=g.push(x)-1)}return c[R%c.length]}return y.domain=function(x){if(!arguments.length)return g.slice();g=[],s=new ou;for(const R of x)s.has(R)||s.set(R,g.push(R)-1);return y},y.range=function(x){return arguments.length?(c=Array.from(x),y):c.slice()},y.unknown=function(x){return arguments.length?(r=x,y):r},y.copy=function(){return Md(g,c).unknown(r)},t1.apply(y,arguments),y}function Pc(){var x,R,s=Md().unknown(void 0),g=s.domain,c=s.range,r=0,y=1,ue=!1,xt=0,Rt=0,sn=.5;function wn(){var An=g().length,_i=y=1)return+c(s[r-1],r-1,s);var r,y=(r-1)*g,x=Math.floor(y),R=+c(s[x],x,s);return R+(+c(s[x+1],x+1,s)-R)*(y-x)}}function P1(){var r,s=[],g=[],c=[];function y(){var R=0,ue=Math.max(1,g.length);for(c=new Array(ue-1);++R0?c[ue-1]:s[0],ue({model:s});function tm(s,g){}function Mu(s,g){if(1&s&&(i.j41(0,"span"),i.DNE(1,tm,0,0,"ng-template",5),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngTemplateOutlet",c.template)("ngTemplateOutletContext",i.eq3(2,Eu,c.context))}}function P2(s,g){if(1&s&&i.nrm(0,"span",6),2&s){const c=i.XpG();i.Y8G("innerHTML",c.title,i.npT)}}function F2(s,g){if(1&s&&(i.j41(0,"header",4)(1,"span",5),i.EFF(2),i.k0s()()),2&s){const c=i.XpG();i.R7$(2),i.JRh(c.title)}}function N2(s,g){if(1&s){const c=i.RV6();i.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),i.bIt("select",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.labelClick.emit(y))})("activate",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.activate(y))})("deactivate",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.deactivate(y))}),i.k0s()()}if(2&s){const c=g.$implicit,r=i.XpG();i.R7$(),i.Y8G("label",c.label)("formattedLabel",c.formattedLabel)("color",c.color)("isActive",r.isActive(c))}}const B2=["*"];function l3(s,g){if(1&s&&i.nrm(0,"ngx-charts-scale-legend",4),2&s){const c=i.XpG();i.Y8G("horizontal",c.legendOptions&&c.legendOptions.position===c.LegendPosition.Below)("valueRange",c.legendOptions.domain)("colors",c.legendOptions.colors)("height",c.view[1])("width",c.legendWidth)}}function c3(s,g){if(1&s){const c=i.RV6();i.j41(0,"ngx-charts-legend",5),i.bIt("labelClick",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.legendLabelClick.emit(y))})("labelActivate",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.legendLabelActivate.emit(y))})("labelDeactivate",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.legendLabelDeactivate.emit(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("horizontal",c.legendOptions&&c.legendOptions.position===c.LegendPosition.Below)("data",c.legendOptions.domain)("title",c.legendOptions.title)("colors",c.legendOptions.colors)("height",c.view[1])("width",c.legendWidth)("activeEntries",c.activeEntries)}}const d3=["ngx-charts-axis-label",""],Su=["ticksel"],z2=["ngx-charts-x-axis-ticks",""];function u3(s,g){1&s&&(d.qSk(),i.eu8(0))}function wd(s,g){if(1&s&&(d.qSk(),i.j41(0,"tspan",12),i.EFF(1),i.k0s()),2&s){const c=g.$implicit;i.BMQ("y",12*g.index),i.R7$(),i.SpI(" ",c," ")}}function h3(s,g){if(1&s&&(d.qSk(),i.qex(0),i.DNE(1,wd,2,2,"tspan",11),i.bVm()),2&s){const c=g.ngIf;i.R7$(),i.Y8G("ngForOf",c)}}function Ad(s,g){if(1&s&&i.DNE(0,h3,2,1,"ng-container",8),2&s){const c=i.XpG(2).$implicit,r=i.XpG();i.Y8G("ngIf",r.tickChunks(c))}}function Ld(s,g){if(1&s&&i.EFF(0),2&s){const c=i.XpG().ngIf,r=i.XpG(2);i.SpI(" ",r.tickTrim(c)," ")}}function nm(s,g){if(1&s&&(d.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,u3,1,0,"ng-container",10),i.k0s(),i.DNE(5,Ad,1,1,"ng-template",null,1,i.C5r)(7,Ld,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&s){const c=g.ngIf,r=i.sdS(6),y=i.sdS(8),x=i.XpG(2);i.R7$(2),i.JRh(c),i.R7$(),i.BMQ("text-anchor",x.textAnchor)("transform",x.textTransform),i.R7$(),i.Y8G("ngIf",x.isWrapTicksSupported)("ngIfThen",r)("ngIfElse",y)}}function Tu(s,g){if(1&s&&(d.qSk(),i.j41(0,"g",7),i.DNE(1,nm,9,6,"ng-container",8),i.k0s()),2&s){const c=g.$implicit,r=i.XpG();i.BMQ("transform",r.tickTransform(c)),i.R7$(),i.Y8G("ngIf",r.tickFormat(c))}}function B1(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.nrm(1,"line",13),i.k0s()),2&s){const c=i.XpG(2);i.BMQ("transform",c.gridLineTransform()),i.R7$(),i.BMQ("y1",-c.gridLineHeight)}}function Id(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,B1,2,2,"g",8),i.k0s()),2&s){const c=g.$implicit,r=i.XpG();i.BMQ("transform",r.tickTransform(c)),i.R7$(),i.Y8G("ngIf",r.showGridLines)}}function m3(s,g){if(1&s&&(d.qSk(),i.nrm(0,"path",14)),2&s){const c=i.XpG();i.BMQ("d",c.referenceAreaPath)("transform",c.gridLineTransform())}}function V2(s,g){if(1&s&&(d.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",17),i.EFF(4),i.k0s()()),2&s){const c=i.XpG(2).$implicit,r=i.XpG();i.R7$(2),i.JRh(r.tickTrim(r.tickFormat(c.value))),i.R7$(2),i.SpI(" ",c.name," ")}}function f3(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.nrm(1,"line",16),i.DNE(2,V2,5,2,"g",8),i.k0s()),2&s){const c=i.XpG().$implicit,r=i.XpG();i.BMQ("transform",r.transform(c.value)),i.R7$(),i.BMQ("y2",25+r.gridLineHeight)("transform",r.gridLineTransform()),i.R7$(),i.Y8G("ngIf",r.showRefLabels)}}function kd(s,g){if(1&s&&(d.qSk(),i.j41(0,"g",15),i.DNE(1,f3,3,4,"g",8),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngIf",c.showRefLines)}}const p3=["ngx-charts-x-axis",""];function cc(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.emitTicksHeight(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("trimTicks",c.trimTicks)("rotateTicks",c.rotateTicks)("maxTickLength",c.maxTickLength)("tickFormatting",c.tickFormatting)("tickArguments",c.tickArguments)("tickStroke",c.tickStroke)("scale",c.xScale)("orient",c.xOrient)("showGridLines",c.showGridLines)("gridLineHeight",c.dims.height)("referenceLines",c.referenceLines)("showRefLines",c.showRefLines)("showRefLabels",c.showRefLabels)("width",c.dims.width)("tickValues",c.ticks)("wrapTicks",c.wrapTicks)}}function Nc(s,g){if(1&s&&(d.qSk(),i.nrm(0,"g",3)),2&s){const c=i.XpG();i.Y8G("label",c.labelText)("offset",c.labelOffset)("orient",c.orientation.Bottom)("height",c.dims.height)("width",c.dims.width)}}const im=["ngx-charts-y-axis-ticks",""];function am(s,g){1&s&&(d.qSk(),i.eu8(0))}function z1(s,g){if(1&s&&(d.qSk(),i.j41(0,"tspan",13),i.EFF(1),i.k0s()),2&s){const c=g.$implicit,r=g.index,y=i.XpG(6);i.BMQ("y",r*(8+y.tickSpacing)),i.R7$(),i.SpI(" ",c," ")}}function g3(s,g){if(1&s&&(d.qSk(),i.qex(0),i.DNE(1,z1,2,2,"tspan",12),i.bVm()),2&s){const c=i.XpG().ngIf;i.R7$(),i.Y8G("ngForOf",c)}}function Du(s,g){if(1&s&&(d.qSk(),i.qex(0),i.DNE(1,g3,2,1,"ng-container",11),i.bVm()),2&s){const c=g.ngIf;i.XpG(2);const r=i.sdS(8);i.R7$(),i.Y8G("ngIf",c.length>1)("ngIfElse",r)}}function wu(s,g){if(1&s&&i.DNE(0,Du,2,2,"ng-container",8),2&s){const c=i.XpG(2).$implicit,r=i.XpG();i.Y8G("ngIf",r.tickChunks(c))}}function Au(s,g){if(1&s&&i.EFF(0),2&s){const c=i.XpG().ngIf,r=i.XpG(2);i.SpI(" ",r.tickTrim(c)," ")}}function _3(s,g){if(1&s&&(d.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,am,1,0,"ng-container",10),i.k0s(),i.DNE(5,wu,1,1,"ng-template",null,1,i.C5r)(7,Au,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&s){const c=g.ngIf,r=i.sdS(6),y=i.sdS(8),x=i.XpG(2);i.R7$(2),i.JRh(c),i.R7$(),i.xc7("font-size","12px"),i.BMQ("dy",x.dy)("x",x.x1)("y",x.y1)("text-anchor",x.textAnchor),i.R7$(),i.Y8G("ngIf",x.wrapTicks)("ngIfThen",r)("ngIfElse",y)}}function Lu(s,g){if(1&s&&(d.qSk(),i.j41(0,"g",7),i.DNE(1,_3,9,10,"ng-container",8),i.k0s()),2&s){const c=g.$implicit,r=i.XpG();i.BMQ("transform",r.transform(c)),i.R7$(),i.Y8G("ngIf",r.tickFormat(c))}}function v3(s,g){if(1&s&&(d.qSk(),i.nrm(0,"path",14)),2&s){const c=i.XpG();i.BMQ("d",c.referenceAreaPath)("transform",c.gridLineTransform())}}function Iu(s,g){if(1&s&&(d.qSk(),i.nrm(0,"line",16)),2&s){const c=i.XpG(3);i.BMQ("x2",c.gridLineWidth)}}function y3(s,g){if(1&s&&(d.qSk(),i.nrm(0,"line",16)),2&s){const c=i.XpG(3);i.BMQ("x2",-c.gridLineWidth)}}function U2(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,Iu,1,1,"line",15)(2,y3,1,1,"line",15),i.k0s()),2&s){const c=i.XpG(2);i.BMQ("transform",c.gridLineTransform()),i.R7$(),i.Y8G("ngIf",c.orient===c.Orientation.Left),i.R7$(),i.Y8G("ngIf",c.orient===c.Orientation.Right)}}function sm(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,U2,3,3,"g",8),i.k0s()),2&s){const c=g.$implicit,r=i.XpG();i.BMQ("transform",r.transform(c)),i.R7$(),i.Y8G("ngIf",r.showGridLines)}}function ku(s,g){if(1&s&&(d.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",19),i.EFF(4),i.k0s()()),2&s){const c=i.XpG(2).$implicit,r=i.XpG();i.R7$(2),i.JRh(r.tickTrim(r.tickFormat(c.value))),i.R7$(),i.BMQ("dy",r.dy)("y",-6)("x",r.gridLineWidth)("text-anchor",r.textAnchor),i.R7$(),i.SpI(" ",c.name," ")}}function rm(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.nrm(1,"line",18),i.DNE(2,ku,5,6,"g",8),i.k0s()),2&s){const c=i.XpG().$implicit,r=i.XpG();i.BMQ("transform",r.transform(c.value)),i.R7$(),i.BMQ("x2",r.gridLineWidth),i.R7$(),i.Y8G("ngIf",r.showRefLabels)}}function G2(s,g){if(1&s&&(d.qSk(),i.j41(0,"g",17),i.DNE(1,rm,3,3,"g",8),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngIf",c.showRefLines)}}const j2=["ngx-charts-y-axis",""];function Ff(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.emitTicksWidth(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("trimTicks",c.trimTicks)("maxTickLength",c.maxTickLength)("tickFormatting",c.tickFormatting)("tickArguments",c.tickArguments)("tickValues",c.ticks)("tickStroke",c.tickStroke)("scale",c.yScale)("orient",c.yOrient)("showGridLines",c.showGridLines)("gridLineWidth",c.dims.width)("referenceLines",c.referenceLines)("showRefLines",c.showRefLines)("showRefLabels",c.showRefLabels)("height",c.dims.height)("wrapTicks",c.wrapTicks)}}function Vr(s,g){if(1&s&&(d.qSk(),i.nrm(0,"g",3)),2&s){const c=i.XpG();i.Y8G("label",c.labelText)("offset",c.labelOffset)("orient",c.yOrient)("height",c.dims.height)("width",c.dims.width)}}const b3=["ngx-charts-svg-linear-gradient",""];function s1(s,g){if(1&s&&(d.qSk(),i.nrm(0,"stop")),2&s){const c=g.$implicit;i.xc7("stop-color",c.color)("stop-opacity",c.opacity),i.BMQ("offset",c.offset+"%")}}const Fu=["ngx-charts-grid-panel",""],Nu=["ngx-charts-grid-panel-series",""];function Bc(s,g){if(1&s&&(d.qSk(),i.nrm(0,"g",1)),2&s){const c=g.$implicit;i.AVh("grid-panel",!0)("odd","odd"===c.class)("even","even"===c.class),i.Y8G("height",c.height)("width",c.width)("x",c.x)("y",c.y)}}const w3=["tooltipTemplate"],l1=(s,g)=>[s,g],Cl=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",O3=["ngx-charts-bar",""];function R3(s,g){if(1&s&&(d.qSk(),i.j41(0,"defs"),i.nrm(1,"g",2),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("orientation",c.orientation)("name",c.gradientId)("stops",c.gradientStops)}}const P3=["ngx-charts-bar-label",""],e0=["ngx-charts-series-vertical",""];function t0(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",2),i.bIt("select",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.onClick(y))})("activate",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.activate.emit(y))})("deactivate",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.deactivate.emit(y))}),i.k0s()}if(2&s){const c=g.$implicit,r=i.XpG(2);i.Y8G("@animationState","active")("@.disabled",!r.animations)("width",c.width)("height",c.height)("x",c.x)("y",c.y)("fill",c.color)("stops",c.gradientStops)("data",c.data)("orientation",r.barOrientation.Vertical)("roundEdges",c.roundEdges)("gradient",r.gradient)("ariaLabel",c.ariaLabel)("isActive",r.isActive(c.data))("tooltipDisabled",r.tooltipDisabled)("tooltipPlacement",r.tooltipPlacement)("tooltipType",r.tooltipType)("tooltipTitle",r.tooltipTemplate?void 0:c.tooltipText)("tooltipTemplate",r.tooltipTemplate)("tooltipContext",c.data)("noBarWhenZero",r.noBarWhenZero)("animations",r.animations)}}function ju(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,t0,1,22,"g",1),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.bars)("ngForTrackBy",c.trackBy)}}function ym(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",2),i.bIt("select",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.onClick(y))})("activate",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.activate.emit(y))})("deactivate",function(y){d.eBV(c);const x=i.XpG(2);return d.Njj(x.deactivate.emit(y))}),i.k0s()}if(2&s){const c=g.$implicit,r=i.XpG(2);i.Y8G("width",c.width)("height",c.height)("x",c.x)("y",c.y)("fill",c.color)("stops",c.gradientStops)("data",c.data)("orientation",r.barOrientation.Vertical)("roundEdges",c.roundEdges)("gradient",r.gradient)("ariaLabel",c.ariaLabel)("isActive",r.isActive(c.data))("tooltipDisabled",r.tooltipDisabled)("tooltipPlacement",r.tooltipPlacement)("tooltipType",r.tooltipType)("tooltipTitle",r.tooltipTemplate?void 0:c.tooltipText)("tooltipTemplate",r.tooltipTemplate)("tooltipContext",c.data)("noBarWhenZero",r.noBarWhenZero)("animations",r.animations)}}function bm(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,ym,1,20,"g",1),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.bars)("ngForTrackBy",c.trackBy)}}function Hu(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",4),i.bIt("dimensionsChanged",function(y){const x=d.eBV(c).index,R=i.XpG(2);return d.Njj(R.dataLabelHeightChanged.emit({size:y,index:x}))}),i.k0s()}if(2&s){const c=g.$implicit,r=i.XpG(2);i.Y8G("barX",c.x)("barY",c.y)("barWidth",c.width)("barHeight",c.height)("value",c.total)("valueFormatting",r.dataLabelFormatting)("orientation",r.barOrientation.Vertical)}}function Wu(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,Hu,1,7,"g",3),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.barsForDataLabels)("ngForTrackBy",c.trackDataLabelBy)}}function Xu(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",5),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.updateXAxisHeight(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("xScale",c.xScale)("dims",c.dims)("showGridLines",c.showGridLines)("showLabel",c.showXAxisLabel)("labelText",c.xAxisLabel)("trimTicks",c.trimXAxisTicks)("rotateTicks",c.rotateXAxisTicks)("maxTickLength",c.maxXAxisTickLength)("tickFormatting",c.xAxisTickFormatting)("ticks",c.xAxisTicks)("xAxisOffset",c.dataLabelMaxHeight.negative)("wrapTicks",c.wrapTicks)}}function Cm(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.updateYAxisWidth(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("yScale",c.yScale)("dims",c.dims)("showGridLines",c.showGridLines)("showLabel",c.showYAxisLabel)("labelText",c.yAxisLabel)("trimTicks",c.trimYAxisTicks)("maxTickLength",c.maxYAxisTickLength)("tickFormatting",c.yAxisTickFormatting)("ticks",c.yAxisTicks)("referenceLines",c.referenceLines)("showRefLines",c.showRefLines)("showRefLabels",c.showRefLabels)("wrapTicks",c.wrapTicks)}}function Ku(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.updateXAxisHeight(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("xScale",c.groupScale)("dims",c.dims)("showLabel",c.showXAxisLabel)("labelText",c.xAxisLabel)("trimTicks",c.trimXAxisTicks)("rotateTicks",c.rotateXAxisTicks)("maxTickLength",c.maxXAxisTickLength)("tickFormatting",c.xAxisTickFormatting)("ticks",c.xAxisTicks)("xAxisOffset",c.dataLabelMaxHeight.negative)("wrapTicks",c.wrapTicks)}}function j3(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",7),i.bIt("dimensionsChanged",function(y){d.eBV(c);const x=i.XpG();return d.Njj(x.updateYAxisWidth(y))}),i.k0s()}if(2&s){const c=i.XpG();i.Y8G("yScale",c.valueScale)("dims",c.dims)("showGridLines",c.showGridLines)("showLabel",c.showYAxisLabel)("labelText",c.yAxisLabel)("trimTicks",c.trimYAxisTicks)("maxTickLength",c.maxYAxisTickLength)("tickFormatting",c.yAxisTickFormatting)("ticks",c.yAxisTicks)("wrapTicks",c.wrapTicks)}}function xm(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",9),i.bIt("select",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onClick(y,x))})("activate",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onActivate(y,x))})("deactivate",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onDeactivate(y,x))})("dataLabelHeightChanged",function(y){const x=d.eBV(c).index,R=i.XpG(2);return d.Njj(R.onDataLabelMaxHeightChanged(y,x))}),i.k0s()}if(2&s){const c=g.$implicit,r=i.XpG(2);i.Y8G("@animationState","active")("activeEntries",r.activeEntries)("xScale",r.innerScale)("yScale",r.valueScale)("colors",r.colors)("series",c.series)("dims",r.dims)("gradient",r.gradient)("tooltipDisabled",r.tooltipDisabled)("tooltipTemplate",r.tooltipTemplate)("showDataLabel",r.showDataLabel)("dataLabelFormatting",r.dataLabelFormatting)("seriesName",c.name)("roundEdges",r.roundEdges)("animations",r.animations)("noBarWhenZero",r.noBarWhenZero),i.BMQ("transform",r.groupTransform(c))}}function H3(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,xm,1,17,"g",8),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.results)("ngForTrackBy",c.trackBy)}}function Yu(s,g){if(1&s){const c=i.RV6();d.qSk(),i.j41(0,"g",9),i.bIt("select",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onClick(y,x))})("activate",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onActivate(y,x))})("deactivate",function(y){const x=d.eBV(c).$implicit,R=i.XpG(2);return d.Njj(R.onDeactivate(y,x))})("dataLabelHeightChanged",function(y){const x=d.eBV(c).index,R=i.XpG(2);return d.Njj(R.onDataLabelMaxHeightChanged(y,x))}),i.k0s()}if(2&s){const c=g.$implicit,r=i.XpG(2);i.Y8G("activeEntries",r.activeEntries)("xScale",r.innerScale)("yScale",r.valueScale)("colors",r.colors)("series",c.series)("dims",r.dims)("gradient",r.gradient)("tooltipDisabled",r.tooltipDisabled)("tooltipTemplate",r.tooltipTemplate)("showDataLabel",r.showDataLabel)("dataLabelFormatting",r.dataLabelFormatting)("seriesName",c.name)("roundEdges",r.roundEdges)("animations",r.animations)("noBarWhenZero",r.noBarWhenZero),i.BMQ("transform",r.groupTransform(c))}}function n0(s,g){if(1&s&&(d.qSk(),i.j41(0,"g"),i.DNE(1,Yu,1,16,"g",8),i.k0s()),2&s){const c=i.XpG();i.R7$(),i.Y8G("ngForOf",c.results)("ngForTrackBy",c.trackBy)}}function c0(s,g,c){c=c||{};let r,y,x,R=null,ue=0;function xt(){ue=!1===c.leading?0:+new Date,R=null,x=s.apply(r,y)}return function(){const Rt=+new Date;!ue&&!1===c.leading&&(ue=Rt);const sn=g-(Rt-ue);return r=this,y=arguments,sn<=0?(clearTimeout(R),R=null,ue=Rt,x=s.apply(r,y)):!R&&!1!==c.trailing&&(R=setTimeout(xt,sn)),x}}function sp(s,g){return function(r,y,x){return{configurable:!0,enumerable:x.enumerable,get:function(){return Object.defineProperty(this,y,{configurable:!0,enumerable:x.enumerable,value:c0(x.value,s,g)}),this[y]}}}}var Va=function(s){return s.Top="top",s.Bottom="bottom",s.Left="left",s.Right="right",s.Center="center",s}(Va||{});function Sm(s,g,c){return c===Va.Top?s.top-7:c===Va.Bottom?s.top+s.height-g.height+7:c===Va.Center?s.top+s.height/2-g.height/2:void 0}function eh(s,g,c){return c===Va.Left?s.left-7:c===Va.Right?s.left+s.width-g.width+7:c===Va.Center?s.left+s.width/2-g.width/2:void 0}class $o{static calculateVerticalAlignment(g,c,r){let y=Sm(g,c,r);return y+c.height>window.innerHeight&&(y=window.innerHeight-c.height),y}static calculateVerticalCaret(g,c,r,y){let x;y===Va.Top&&(x=g.height/2-r.height/2+7),y===Va.Bottom&&(x=c.height-g.height/2-r.height/2-7),y===Va.Center&&(x=c.height/2-r.height/2);const R=Sm(g,c,y);return R+c.height>window.innerHeight&&(x+=R+c.height-window.innerHeight),x}static calculateHorizontalAlignment(g,c,r){let y=eh(g,c,r);return y+c.width>window.innerWidth&&(y=window.innerWidth-c.width),y}static calculateHorizontalCaret(g,c,r,y){let x;y===Va.Left&&(x=g.width/2-r.width/2+7),y===Va.Right&&(x=c.width-g.width/2-r.width/2-7),y===Va.Center&&(x=c.width/2-r.width/2);const R=eh(g,c,y);return R+c.width>window.innerWidth&&(x+=R+c.width-window.innerWidth),x}static shouldFlip(g,c,r,y){let x=!1;return r===Va.Right&&g.left+g.width+c.width+y>window.innerWidth&&(x=!0),r===Va.Left&&g.left-c.width-y<0&&(x=!0),r===Va.Top&&g.top-c.height-y<0&&(x=!0),r===Va.Bottom&&g.top+g.height+c.height+y>window.innerHeight&&(x=!0),x}static positionCaret(g,c,r,y,x){let R=0,ue=0;return g===Va.Right?(ue=-7,R=$o.calculateVerticalCaret(r,c,y,x)):g===Va.Left?(ue=c.width,R=$o.calculateVerticalCaret(r,c,y,x)):g===Va.Top?(R=c.height,ue=$o.calculateHorizontalCaret(r,c,y,x)):g===Va.Bottom&&(R=-7,ue=$o.calculateHorizontalCaret(r,c,y,x)),{top:R,left:ue}}static positionContent(g,c,r,y,x){let R=0,ue=0;return g===Va.Right?(ue=r.left+r.width+y,R=$o.calculateVerticalAlignment(r,c,x)):g===Va.Left?(ue=r.left-c.width-y,R=$o.calculateVerticalAlignment(r,c,x)):g===Va.Top?(R=r.top-c.height-y,ue=$o.calculateHorizontalAlignment(r,c,x)):g===Va.Bottom&&(R=r.top+r.height+y,ue=$o.calculateHorizontalAlignment(r,c,x)),{top:R,left:ue}}static determinePlacement(g,c,r,y){if($o.shouldFlip(r,c,g,y)){if(g===Va.Right)return Va.Left;if(g===Va.Left)return Va.Right;if(g===Va.Top)return Va.Bottom;if(g===Va.Bottom)return Va.Top}return g}}let rp=(()=>{var s;class g{get cssClasses(){let r="ngx-charts-tooltip-content";return r+=` position-${this.placement}`,r+=` type-${this.type}`,r+=` ${this.cssClass}`,r}constructor(r,y,x){this.element=r,this.renderer=y,this.platformId=x}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,w.UE)(this.platformId))return;const r=this.element.nativeElement,y=this.host.nativeElement.getBoundingClientRect();if(!y.height&&!y.width)return;const x=r.getBoundingClientRect();this.checkFlip(y,x),this.positionContent(r,y,x),this.showCaret&&this.positionCaret(y,x),setTimeout(()=>this.renderer.addClass(r,"animate"),1)}positionContent(r,y,x){const{top:R,left:ue}=$o.positionContent(this.placement,x,y,this.spacing,this.alignment);this.renderer.setStyle(r,"top",`${R}px`),this.renderer.setStyle(r,"left",`${ue}px`)}positionCaret(r,y){const x=this.caretElm.nativeElement,R=x.getBoundingClientRect(),{top:ue,left:xt}=$o.positionCaret(this.placement,y,r,R,this.alignment);this.renderer.setStyle(x,"top",`${ue}px`),this.renderer.setStyle(x,"left",`${xt}px`)}checkFlip(r,y){this.placement=$o.determinePlacement(this.placement,y,r,this.spacing)}onWindowResize(){this.position()}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-tooltip-content"]],viewQuery:function(y,x){if(1&y&&i.GBs(xu,5),2&y){let R;i.mGM(R=i.lsd())&&(x.caretElm=R.first)}},hostVars:2,hostBindings:function(y,x){1&y&&i.bIt("resize",function(){return x.onWindowResize()},i.tSv),2&y&&i.HbH(x.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},standalone:!1,decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(y,x){1&y&&(i.j41(0,"div"),i.nrm(1,"span",1,0),i.j41(3,"div",2),i.DNE(4,Mu,2,4,"span",3)(5,P2,1,1,"span",4),i.k0s()()),2&y&&(i.R7$(),i.HbH(i.VkB("tooltip-caret position-",x.placement)),i.Y8G("hidden",!x.showCaret),i.R7$(3),i.Y8G("ngIf",!x.title),i.R7$(),i.Y8G("ngIf",x.title))},dependencies:[T.bT,T.T3],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:#000000bf;font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translateZ(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}))}return s(),(0,e.Cg)([sp(100)],g.prototype,"onWindowResize",null),g})();class Tm{constructor(g){this.injectionService=g,this.defaults={},this.components=new Map}getByType(g=this.type){return this.components.get(g)}create(g){return this.createByType(this.type,g)}createByType(g,c){c=this.assignDefaults(c);const r=this.injectComponent(g,c);return this.register(g,r),r}destroy(g){const c=this.components.get(g.componentType);if(c&&c.length){const r=c.indexOf(g);r>-1&&(c[r].destroy(),c.splice(r,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(g){const c=this.components.get(g);if(c&&c.length){let r=c.length-1;for(;r>=0;)this.destroy(c[r--])}}injectComponent(g,c){return this.injectionService.appendComponent(g,c)}assignDefaults(g){const c={...this.defaults.inputs},r={...this.defaults.outputs};return!g.inputs&&!g.outputs&&(g={inputs:g}),c&&(g.inputs={...c,...g.inputs}),r&&(g.outputs={...r,...g.outputs}),g}register(g,c){this.components.has(g)||this.components.set(g,[]),this.components.get(g).push(c)}}let qu=(()=>{var s;class g{static setGlobalRootViewContainer(r){g.globalRootViewContainer=r}constructor(r,y){this.applicationRef=r,this.injector=y}getRootViewContainer(){if(this._container)return this._container;if(g.globalRootViewContainer)return g.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(r){this._container=r}getComponentRootNode(r){return function Dm(s){return s.element}(r)?r.element.nativeElement:r.hostView&&r.hostView.rootNodes.length>0?r.hostView.rootNodes[0]:r.location.nativeElement}getRootViewContainerNode(r){return this.getComponentRootNode(r)}projectComponentBindings(r,y){if(y){if(void 0!==y.inputs){const x=Object.getOwnPropertyNames(y.inputs);for(const R of x)r.instance[R]=y.inputs[R]}if(void 0!==y.outputs){const x=Object.getOwnPropertyNames(y.outputs);for(const R of x)r.instance[R]=y.outputs[R]}}return r}appendComponent(r,y={},x){x||(x=this.getRootViewContainer());const R=this.getComponentRootNode(x),ue=new O.aI(R,this.applicationRef,this.injector),xt=new O.A8(r),Rt=ue.attach(xt);return this.projectComponentBindings(Rt,y),Rt}static#e=s=()=>(this.globalRootViewContainer=null,this.\u0275fac=function(y){return new(y||g)(d.KVO(i.o8S),d.KVO(d.zZn))},this.\u0275prov=d.jDH({token:g,factory:g.\u0275fac}))}return s(),g})(),d0=(()=>{var s;class g extends Tm{constructor(r){super(r),this.type=rp}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(d.KVO(qu))},this.\u0275prov=d.jDH({token:g,factory:g.\u0275fac}))}return s(),g})();var Ac=function(s){return s.Right="right",s.Below="below",s}(Ac||{}),u0=function(s){return s.ScaleLegend="scaleLegend",s.Legend="legend",s}(u0||{}),ma=function(s){return s.Time="time",s.Linear="linear",s.Ordinal="ordinal",s.Quantile="quantile",s}(ma||{});function Z1(s){return s instanceof Date?s.toLocaleDateString():s.toLocaleString()}let th=(()=>{var s;class g{constructor(){this.isActive=!1,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.toggle=new i.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(y,x){1&y&&i.bIt("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},standalone:!1,decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(y,x){1&y&&(i.j41(0,"span",0),i.bIt("click",function(){return x.select.emit(x.formattedLabel)}),i.j41(1,"span",1),i.bIt("click",function(){return x.toggle.emit(x.formattedLabel)}),i.k0s(),i.j41(2,"span",2),i.EFF(3),i.k0s()()),2&y&&(i.AVh("active",x.isActive),i.Y8G("title",x.formattedLabel),i.R7$(),i.xc7("background-color",x.color),i.R7$(2),i.SpI(" ",x.trimmedLabel," "))},encapsulation:2,changeDetection:0}))}return s(),g})(),nh=(()=>{var s;class g{constructor(r){this.cd=r,this.horizontal=!1,this.labelClick=new i.bkB,this.labelActivate=new i.bkB,this.labelDeactivate=new i.bkB,this.legendEntries=[]}ngOnChanges(r){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const r=[];for(const y of this.data){const x=Z1(y);-1===r.findIndex(ue=>ue.label===x)&&r.push({label:y,formattedLabel:x,color:this.colors.getColor(y)})}return r}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(x=>r.label===x.name)}activate(r){this.labelActivate.emit(r)}deactivate(r){this.labelDeactivate.emit(r)}trackBy(r,y){return y.label}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(v.gRc))},this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},standalone:!1,features:[i.OA$],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(y,x){1&y&&(i.j41(0,"div"),i.DNE(1,F2,3,1,"header",0),i.j41(2,"div",1)(3,"ul",2),i.DNE(4,N2,2,4,"li",3),i.k0s()()()),2&y&&(i.xc7("width",x.width,"px"),i.R7$(),i.Y8G("ngIf",(null==x.title?null:x.title.length)>0),i.R7$(2),i.xc7("max-height",x.height-45,"px"),i.AVh("horizontal-legend",x.horizontal),i.R7$(),i.Y8G("ngForOf",x.legendEntries)("ngForTrackBy",x.trackBy))},dependencies:[T.Sq,T.bT,th],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:#0000000d}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}))}return s(),g})(),wm=(()=>{var s;class g{constructor(){this.horizontal=!1}ngOnChanges(r){const y=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${y})`}gradientString(r,y){y.push(1);const x=[];return r.reverse().forEach((R,ue)=>{x.push(`${R} ${Math.round(100*y[ue])}%`)}),x.join(", ")}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},standalone:!1,features:[i.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(y,x){1&y&&(i.j41(0,"div",0)(1,"div",1)(2,"span"),i.EFF(3),i.k0s()(),i.nrm(4,"div",2),i.j41(5,"div",1)(6,"span"),i.EFF(7),i.k0s()()()),2&y&&(i.xc7("height",x.horizontal?void 0:x.height,"px")("width",x.width,"px"),i.AVh("horizontal-legend",x.horizontal),i.R7$(3),i.JRh(x.valueRange[1].toLocaleString()),i.R7$(),i.xc7("background",x.gradient),i.R7$(3),i.JRh(x.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}))}return s(),g})(),ih=(()=>{var s;class g{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.bkB,this.legendLabelActivate=new i.bkB,this.legendLabelDeactivate=new i.bkB,this.LegendPosition=Ac,this.LegendType=u0}ngOnChanges(r){this.update()}update(){let r=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ac.Right)&&(r=this.legendType===u0.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-r)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ac.Right?this.chartWidth:Math.floor(this.view[0]*r/12)}getLegendType(){return this.legendOptions.scaleType===ma.Linear?u0.ScaleLegend:u0.Legend}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},standalone:!1,features:[i.Jv_([d0]),i.OA$],ngContentSelectors:B2,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(y,x){1&y&&(i.NAR(),i.j41(0,"div",0),d.qSk(),i.j41(1,"svg",1),i.SdG(2),i.k0s(),i.DNE(3,l3,1,5,"ngx-charts-scale-legend",2)(4,c3,1,7,"ngx-charts-legend",3),i.k0s()),2&y&&(i.xc7("width",x.view[0],"px")("height",x.view[1],"px"),i.R7$(),i.BMQ("width",x.chartWidth)("height",x.view[1]),i.R7$(2),i.Y8G("ngIf",x.showLegend&&x.legendType===x.LegendType.ScaleLegend),i.R7$(),i.Y8G("ngIf",x.showLegend&&x.legendType===x.LegendType.Legend))},dependencies:[T.bT,nh,wm],encapsulation:2,changeDetection:0}))}return s(),g})(),ah=(()=>{var s;class g{constructor(r,y){this.element=r,this.zone=y,this.visible=new i.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const r=()=>{if(!this.element)return;const{offsetHeight:y,offsetWidth:x}=this.element.nativeElement;y&&x?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>r())})}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT),i.rXU(i.SKi))},this.\u0275dir=i.FsC({type:g,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1}))}return s(),g})();function t4(s){return"[object Date]"===toString.call(s)}let h0=(()=>{var s;class g{constructor(r,y,x,R){this.chartElement=r,this.zone=y,this.cd=x,this.platformId=R,this.scheme="cool",this.schemeType=ma.Ordinal,this.animations=!0,this.select=new i.bkB}ngOnInit(){(0,w.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ah(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(r){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const r=this.getContainerDims();r&&(this.width=r.width,this.height=r.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let r,y;const x=this.chartElement.nativeElement;if((0,w.UE)(this.platformId)&&null!==x.parentNode){const R=x.parentNode.getBoundingClientRect();r=R.width,y=R.height}return r&&y?{width:r,height:y}:null}formatDates(){for(let r=0;r{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=y}cloneData(r){const y=[];for(const x of r){const R={};if(void 0!==x.name&&(R.name=x.name),void 0!==x.value&&(R.value=x.value),void 0!==x.series){R.series=[];for(const ue of x.series){const xt=Object.assign({},ue);R.series.push(xt)}}void 0!==x.extra&&(R.extra=JSON.parse(JSON.stringify(x.extra))),void 0!==x.source&&(R.source=x.source),void 0!==x.target&&(R.target=x.target),y.push(R)}return y}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(v.gRc),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:g,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[i.OA$],decls:1,vars:0,template:function(y,x){1&y&&i.nrm(0,"div")},encapsulation:2}))}return s(),g})();var Us=function(s){return s.Top="top",s.Bottom="bottom",s.Left="left",s.Right="right",s}(Us||{});let Am=(()=>{var s;class g{constructor(r){this.textHeight=25,this.margin=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Us.Top:case Us.Bottom:this.y=this.offset,this.x=this.width/2;break;case Us.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Us.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},standalone:!1,features:[i.OA$],attrs:d3,decls:2,vars:6,template:function(y,x){1&y&&(d.qSk(),i.j41(0,"text"),i.EFF(1),i.k0s()),2&y&&(i.BMQ("stroke-width",x.strokeWidth)("x",x.x)("y",x.y)("text-anchor",x.textAnchor)("transform",x.transform),i.R7$(),i.SpI(" ",x.label," "))},encapsulation:2,changeDetection:0}))}return s(),g})();function sh(s,g=16){return"string"!=typeof s?"number"==typeof s?s+"":"":(s=s.trim()).length<=g?s:`${s.slice(0,g)}...`}function Lm(s,g){if(s.length>g){const c=[],r=Math.floor(s.length/g);for(let y=0;y{const ue=(x.pop()||"")+" ";return ue.length+R.length>g?[...x,ue.trim(),R.trim()]:[...x,ue+R]},[]);else{let x=0;for(;xc&&(y=y.splice(0,c),y[y.length-1]+="..."),y}var El=function(s){return s.Start="start",s.Middle="middle",s.End="end",s}(El||{});function hc(s,g,c,r,y,[x,R,ue,xt]){let Rt="";return Rt=`M${[s+y,g]}`,Rt+="h"+((c=0===(c=Math.floor(c))?1:c)-2*y),Rt+=R?`a${[y,y]} 0 0 1 ${[y,y]}`:`h${y}v${y}`,Rt+="v"+((r=0===(r=Math.floor(r))?1:r)-2*y),Rt+=xt?`a${[y,y]} 0 0 1 ${[-y,y]}`:`v${y}h${-y}`,Rt+="h"+(2*y-c),Rt+=ue?`a${[y,y]} 0 0 1 ${[-y,-y]}`:`h${-y}v${-y}`,Rt+="v"+(2*y-r),Rt+=x?`a${[y,y]} 0 0 1 ${[y,-y]}`:`v${-y}h${y}`,Rt+="z",Rt}let n4=(()=>{var s;class g{get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.bkB,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=El.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16,this.referenceLineLength=0}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,w.UE)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);r!==this.height&&(this.height=r,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale;this.adjustedScale=this.scale.bandwidth?function(R){return this.scale(R)+.5*this.scale.bandwidth()}:this.scale,this.ticks=this.getTicks();const y=this.orient===Us.Top||this.orient===Us.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.orient){case Us.Bottom:this.transform=function(R){return"translate("+this.adjustedScale(R)+",0)"},this.textAnchor=El.Middle,this.x2=this.innerTickSize*y,this.x1=this.tickSpacing*y,this.dx=y<0?"0em":".71em";break;case Us.Left:this.transform=function(R){return"translate(0,"+this.adjustedScale(R)+")"},this.textAnchor=El.End,this.y2=this.innerTickSize*-y,this.y1=this.tickSpacing*-y,this.dx=".32em";break;case Us.Top:this.transform=function(R){return"translate("+this.adjustedScale(R)+",0)"},this.textAnchor=El.Middle,this.y2=this.innerTickSize*y,this.y1=this.tickSpacing*y,this.dx=y<0?"0em":".71em";break;case Us.Right:this.transform=function(R){return"translate(0,"+this.adjustedScale(R)+")"},this.textAnchor=El.Start,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dx=".32em"}this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(R){return"Date"===R.constructor.name?R.toLocaleDateString():R.toLocaleString()};const x=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.textTransform="",x&&0!==x?(this.textTransform=`rotate(${x})`,this.textAnchor=El.End,this.verticalSpacing=10):this.textAnchor=El.Middle,setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=hc(this.refMax,25-this.gridLineHeight,this.refMin-this.refMax,this.gridLineHeight,0,[!1,!1,!1,!1])}getRotationAngle(r){let y=0;this.maxTicksLength=0;for(let An=0;Anthis.maxTicksLength&&(this.maxTicksLength=pi)}const ue=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let xt=ue;const Rt=Math.floor(this.width/r.length);for(;xt>Rt&&y>-90;)y-=30,xt=Math.cos(y*(Math.PI/180))*ue;let sn=14;if(this.isWrapTicksSupported){const An=this.ticks.reduce((pi,Ji)=>Ji.length>pi.length?Ji:pi,"");sn=14*(this.tickChunks(An).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(An)}const wn=0!==y?Math.max(Math.abs(Math.sin(y*Math.PI/180))*this.maxTickLength*7,10):sn;return this.approxHeight=Math.min(wn,200),this.showRefLines&&this.referenceLines&&this.setReferencelines(),y}getTicks(){let r;const y=this.getMaxTicks(20),x=this.getMaxTicks(100);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[x]):(r=this.scale.domain(),r=Lm(r,y)),r}getMaxTicks(r){return Math.floor(this.width/r)}tickTransform(r){return"translate("+this.adjustedScale(r)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(r){return this.trimTicks?sh(r,this.maxTickLength):r}getMaxPossibleLengthForTick(r){if(this.scale.bandwidth){const x=Math.floor(this.scale.bandwidth()/7),R=r.slice(0,x);return Math.max(R.length,this.maxTickLength)}return this.maxTickLength}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){let x=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(x<=1)return[this.tickTrim(r)];let R=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,w.UE)(this.platformId)||(R=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),x=Math.min(x,5),rh(r,R,x<1?1:x)}return[this.tickTrim(r)]}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(y,x){if(1&y&&i.GBs(Su,5),2&y){let R;i.mGM(R=i.lsd())&&(x.ticksElement=R.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:z2,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"],[1,"reference-area"],[1,"ref-line"],["y1","25",1,"refline-path","gridline-path-vertical"],["transform","rotate(-270) translate(5, -5)",1,"refline-label"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"g",null,0),i.DNE(2,Tu,2,2,"g",3),i.k0s(),i.DNE(3,Id,2,2,"g",4)(4,m3,1,2,"path",5)(5,kd,2,1,"g",6)),2&y&&(i.R7$(2),i.Y8G("ngForOf",x.ticks),i.R7$(),i.Y8G("ngForOf",x.ticks),i.R7$(),i.Y8G("ngIf",x.referenceLineLength>1&&x.refMax&&x.refMin&&x.showRefLines),i.R7$(),i.Y8G("ngForOf",x.referenceLines))},dependencies:[T.Sq,T.bT],encapsulation:2,changeDetection:0}))}return s(),g})(),i4=(()=>{var s;class g{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Us.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Us}ngOnChanges(r){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:r}){const y=r+25+5;y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({height:r})},0))}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(y,x){if(1&y&&i.GBs(n4,5),2&y){let R;i.mGM(R=i.lsd())&&(x.ticksComponent=R.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:p3,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"dimensionsChanged","trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"g"),i.DNE(1,cc,1,16,"g",0)(2,Nc,1,5,"g",1),i.k0s()),2&y&&(i.BMQ("class",x.xAxisClassName)("transform",x.transform),i.R7$(),i.Y8G("ngIf",x.xScale),i.R7$(),i.Y8G("ngIf",x.showLabel))},dependencies:[T.bT,Am,n4],encapsulation:2,changeDetection:0}))}return s(),g})(),oh=(()=>{var s;class g{constructor(r){this.platformId=r,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=El.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Us}ngOnChanges(r){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,w.UE)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const r=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);r!==this.width&&(this.width=r,this.dimensionsChanged.emit({width:r}),setTimeout(()=>this.updateDims()))}update(){const r=this.scale,y=this.orient===Us.Top||this.orient===Us.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:r.tickFormat?r.tickFormat.apply(r,this.tickArguments):function(x){return"Date"===x.constructor.name?x.toLocaleDateString():x.toLocaleString()},this.adjustedScale=r.bandwidth?x=>{const R=r(x)+.5*r.bandwidth();if(this.wrapTicks&&x.toString().length>this.maxTickLength){const ue=this.tickChunks(x).length;if(1===ue)return R;const sn=.5*r.bandwidth()-8*ue*.5;return r(x)+sn}return R}:r,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Us.Top:case Us.Bottom:this.transform=function(x){return"translate("+this.adjustedScale(x)+",0)"},this.textAnchor=El.Middle,this.y2=this.innerTickSize*y,this.y1=this.tickSpacing*y,this.dy=y<0?"0em":".71em";break;case Us.Left:this.transform=function(x){return"translate(0,"+this.adjustedScale(x)+")"},this.textAnchor=El.End,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dy=".32em";break;case Us.Right:this.transform=function(x){return"translate(0,"+this.adjustedScale(x)+")"},this.textAnchor=El.Start,this.x2=this.innerTickSize*-y,this.x1=this.tickSpacing*-y,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(r=>r.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(r=>r.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=hc(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let r;const y=this.getMaxTicks(20),x=this.getMaxTicks(50);return this.tickValues?r=this.tickValues:this.scale.ticks?r=this.scale.ticks.apply(this.scale,[x]):(r=this.scale.domain(),r=Lm(r,y)),r}getMaxTicks(r){return Math.floor(this.height/r)}tickTransform(r){return`translate(${this.adjustedScale(r)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(r){return this.trimTicks?sh(r,this.maxTickLength):r}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(x=>this.tickTrim(this.tickFormat(x)).length))}tickChunks(r){if(r.toString().length>this.maxTickLength&&this.scale.bandwidth){const y=this.maxTickLength,x=Math.floor(this.scale.bandwidth()/15);return x<=1?[this.tickTrim(r)]:rh(r,y,Math.min(x,5))}return[this.tickFormat(r)]}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(y,x){if(1&y&&i.GBs(Su,5),2&y){let R;i.mGM(R=i.lsd())&&(x.ticksElement=R.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:im,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],[1,"ref-line"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"g",null,0),i.DNE(2,Lu,2,2,"g",3),i.k0s(),i.DNE(3,v3,1,2,"path",4)(4,sm,2,2,"g",5)(5,G2,2,1,"g",6)),2&y&&(i.R7$(2),i.Y8G("ngForOf",x.ticks),i.R7$(),i.Y8G("ngIf",x.referenceLineLength>1&&x.refMax&&x.refMin&&x.showRefLines),i.R7$(),i.Y8G("ngForOf",x.ticks),i.R7$(),i.Y8G("ngForOf",x.referenceLines))},dependencies:[T.Sq,T.bT],encapsulation:2,changeDetection:0}))}return s(),g})(),lh=(()=>{var s;class g{constructor(){this.showGridLines=!1,this.yOrient=Us.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(r){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Us.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:r}){r!==this.labelOffset&&this.yOrient===Us.Right?(this.labelOffset=r+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0)):r!==this.labelOffset&&(this.labelOffset=r,setTimeout(()=>{this.dimensionsChanged.emit({width:r})},0))}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(y,x){if(1&y&&i.GBs(oh,5),2&y){let R;i.mGM(R=i.lsd())&&(x.ticksComponent=R.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:j2,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"dimensionsChanged","trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"g"),i.DNE(1,Ff,1,15,"g",0)(2,Vr,1,5,"g",1),i.k0s()),2&y&&(i.BMQ("class",x.yAxisClassName)("transform",x.transform),i.R7$(),i.Y8G("ngIf",x.yScale),i.R7$(),i.Y8G("ngIf",x.showLabel))},dependencies:[T.bT,Am,oh],encapsulation:2,changeDetection:0}))}return s(),g})(),Im=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[T.MD]}))}return s(),g})();var Hd=function(s){return s.popover="popover",s.tooltip="tooltip",s}(Hd||{}),J1=function(s){return s[s.all="all"]="all",s[s.focus="focus"]="focus",s[s.mouseover="mouseover"]="mouseover",s}(J1||{});let m0=(()=>{var s;class g{get listensForFocus(){return this.tooltipShowEvent===J1.all||this.tooltipShowEvent===J1.focus}get listensForHover(){return this.tooltipShowEvent===J1.all||this.tooltipShowEvent===J1.mouseover}constructor(r,y,x){this.tooltipService=r,this.viewContainerRef=y,this.renderer=x,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Va.Top,this.tooltipAlignment=Va.Center,this.tooltipType=Hd.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=J1.all,this.tooltipImmediateExit=!1,this.show=new i.bkB,this.hide=new i.bkB}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(r){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(r))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(r){if(this.component||this.tooltipDisabled)return;const y=r?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const x=this.createBoundOptions();this.component=this.tooltipService.create(x),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},y)}addHideListeners(r){this.mouseEnterContentEvent=this.renderer.listen(r,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(r,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",y=>{r.contains(y.target)||this.hideTooltip()}))}hideTooltip(r=!1){if(!this.component)return;const y=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),r?y():this.timeout=setTimeout(y,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(d0),i.rXU(i.c1b),i.rXU(i.sFG))},this.\u0275dir=i.FsC({type:g,selectors:[["","ngx-tooltip",""]],hostBindings:function(y,x){1&y&&i.bIt("focusin",function(){return x.onFocus()})("blur",function(){return x.onBlur()})("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(ue){return x.onMouseLeave(ue.target)})("click",function(){return x.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"},standalone:!1}))}return s(),g})(),ch=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({providers:[qu,d0],imports:[T.MD]}))}return s(),g})();const f0={};function p0(){let s=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return s=`a${s}`,f0[s]?p0():(f0[s]=!0,s)}var Qr=function(s){return s.Vertical="vertical",s.Horizontal="horizontal",s}(Qr||{});let Wd=(()=>{var s;class g{constructor(){this.orientation=Qr.Vertical}ngOnChanges(r){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Qr.Horizontal?this.x2="100%":this.orientation===Qr.Vertical&&(this.y1="100%")}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},standalone:!1,features:[i.OA$],attrs:b3,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"linearGradient",0),i.DNE(1,s1,1,5,"stop",1),i.k0s()),2&y&&(i.Y8G("id",x.name),i.BMQ("x1",x.x1)("y1",x.y1)("x2",x.x2)("y2",x.y2),i.R7$(),i.Y8G("ngForOf",x.stops))},dependencies:[T.Sq],encapsulation:2,changeDetection:0}))}return s(),g})(),q1=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},standalone:!1,attrs:Fu,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(y,x){1&y&&(d.qSk(),i.nrm(0,"rect",0)),2&y&&i.BMQ("height",x.height)("width",x.width)("x",x.x)("y",x.y)},encapsulation:2,changeDetection:0}))}return s(),g})();var Gc=function(s){return s.Odd="odd",s.Even="even",s}(Gc||{});let r4,Om=(()=>{var s;class g{ngOnChanges(r){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(r=>{let y,x,R,ue,xt,Rt=Gc.Odd;if(this.orient===Qr.Vertical){const sn=this.xScale(r.name);Number.parseInt((sn/this.xScale.step()).toString(),10)%2==1&&(Rt=Gc.Even),y=this.xScale.bandwidth()*this.xScale.paddingInner(),x=this.xScale.bandwidth()+y,R=this.dims.height,ue=this.xScale(r.name)-y/2,xt=0}else if(this.orient===Qr.Horizontal){const sn=this.yScale(r.name);Number.parseInt((sn/this.yScale.step()).toString(),10)%2==1&&(Rt=Gc.Even),y=this.yScale.bandwidth()*this.yScale.paddingInner(),x=this.dims.width,R=this.yScale.bandwidth()+y,ue=0,xt=this.yScale(r.name)-y/2}return{name:r.name,class:Rt,height:R,width:x,x:ue,y:xt}})}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},standalone:!1,features:[i.OA$],attrs:Nu,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(y,x){1&y&&i.DNE(0,Bc,1,10,"g",0),2&y&&i.Y8G("ngForOf",x.gridPanels)},dependencies:[T.Sq,q1],encapsulation:2,changeDetection:0}))}return s(),g})();typeof window<"u"?r4=window:typeof global<"u"&&(r4=global);let hl=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[T.MD,Im,ch,T.MD,Im,ch]}))}return s(),g})();function Fm({width:s,height:g,margins:c,showXAxis:r=!1,showYAxis:y=!1,xAxisHeight:x=0,yAxisWidth:R=0,showXLabel:ue=!1,showYLabel:xt=!1,showLegend:Rt=!1,legendType:sn=ma.Ordinal,legendPosition:wn=Ac.Right,columns:An=12}){let _i=c[3],pi=s,Ji=g-c[0]-c[2];return Rt&&wn===Ac.Right&&(An-=sn===ma.Ordinal?2:1),pi=pi*An/12,pi=pi-c[1]-c[3],r&&(Ji-=5,Ji-=x,ue&&(Ji-=30)),y&&(pi-=5,pi-=R,_i+=R,_i+=10,xt&&(pi-=30,_i+=30)),pi=Math.max(0,pi),Ji=Math.max(0,Ji),{width:Math.floor(pi),height:Math.floor(Ji),xOffset:Math.floor(_i)}}const hp=[{name:"vivid",selectable:!0,group:ma.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:ma.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:ma.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:ma.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:ma.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:ma.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:ma.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:ma.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:ma.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:ma.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:ma.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:ma.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:ma.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:ma.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:ma.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class c4{constructor(g,c,r,y){"string"==typeof g&&(g=hp.find(x=>x.name===g)),this.colorDomain=g.domain,this.scaleType=c,this.domain=r,this.customColors=y,this.scale=this.generateColorScheme(g,c,this.domain)}generateColorScheme(g,c,r){let y;switch("string"==typeof g&&(g=hp.find(x=>x.name===g)),c){case ma.Quantile:y=P1().range(g.domain).domain(r);break;case ma.Ordinal:y=Md().range(g.domain).domain(r);break;case ma.Linear:{const x=[...g.domain];1===x.length&&(x.push(x[0]),this.colorDomain=x);const R=ru(0,1,1/x.length);y=lc().range(x).domain(R)}}return y}getColor(g){if(null==g)throw new Error("Value can not be null");if(this.scaleType===ma.Linear){const c=lc().domain(this.domain).range([0,1]);return this.scale(c(g))}{if("function"==typeof this.customColors)return this.customColors(g);const c=g.toString();let r;return this.customColors&&this.customColors.length>0&&(r=this.customColors.find(y=>y.name.toLowerCase()===c.toLowerCase())),r?r.value:this.scale(g)}}getLinearGradientStops(g,c){void 0===c&&(c=this.domain[0]);const r=lc().domain(this.domain).range([0,1]),y=Pc().domain(this.colorDomain).range([0,1]),x=this.getColor(g),R=r(c),ue=this.getColor(c),xt=r(g);let Rt=1,sn=R;const wn=[];for(wn.push({color:ue,offset:R,originalOffset:R,opacity:1});sn=(xt-y.bandwidth()).toFixed(4))break;wn.push({color:An,offset:_i,opacity:1}),sn=_i,Rt++}}if(wn[wn.length-1].offset<100&&wn.push({color:x,offset:xt,opacity:1}),xt===R)wn[0].offset=0,wn[1].offset=100;else if(100!==wn[wn.length-1].offset)for(const An of wn)An.offset=(An.offset-R)/(xt-R)*100;return wn}}let Bm=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),zm=(()=>{var s;class g{constructor(r){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.hasGradient=!1,this.hideBar=!1,this.element=r.nativeElement}ngOnChanges(r){r.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+p0().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const r=ci(this.element).select(".bar"),y=this.getPath();this.animations?r.transition().duration(500).attr("d",y):r.attr("d",y)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let y,r=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(r=Math.min(this.height,r),y=hc(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Qr.Horizontal&&(r=Math.min(this.width,r),y=hc(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Qr.Vertical?y=hc(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Qr.Horizontal&&(y=hc(this.x,this.y,1,this.height,0,this.edges)),y}getPath(){let y,r=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(r=Math.min(this.height,r),y=hc(this.x,this.y,this.width,this.height,r,this.edges)):this.orientation===Qr.Horizontal&&(r=Math.min(this.width,r),y=hc(this.x,this.y,this.width,this.height,r,this.edges)):y=hc(this.x,this.y,this.width,this.height,r,this.edges),y}getRadius(){let r=0;return this.roundEdges&&this.height>5&&this.width>5&&(r=Math.floor(Math.min(5,this.height/2,this.width/2))),r}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let r=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Qr.Vertical?r=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Qr.Horizontal&&(r=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),r}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Qr.Vertical&&0===this.height||this.orientation===Qr.Horizontal&&0===this.width)}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(y,x){1&y&&i.bIt("mouseenter",function(){return x.onMouseEnter()})("mouseleave",function(){return x.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.OA$],attrs:O3,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(y,x){1&y&&(i.DNE(0,R3,2,3,"defs",0),d.qSk(),i.j41(1,"path",1),i.bIt("click",function(){return x.select.emit(x.data)}),i.k0s()),2&y&&(i.Y8G("ngIf",x.hasGradient),i.R7$(),i.AVh("active",x.isActive)("hidden",x.hideBar),i.BMQ("d",x.path)("aria-label",x.ariaLabel)("fill",x.hasGradient?x.gradientFill:x.fill))},dependencies:[T.bT,Wd],encapsulation:2,changeDetection:0}))}return s(),g})();var jc=function(s){return s.Standard="standard",s.Normalized="normalized",s.Stacked="stacked",s}(jc||{}),f1=function(s){return s.positive="positive",s.negative="negative",s}(f1||{});let d4=(()=>{var s;class g{constructor(r){this.dimensionsChanged=new i.bkB,this.horizontalPadding=2,this.verticalPadding=5,this.element=r.nativeElement}ngOnChanges(r){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):Z1(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:P3,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(y,x){1&y&&(d.qSk(),i.j41(0,"text",0),i.EFF(1),i.k0s()),2&y&&(i.BMQ("text-anchor",x.textAnchor)("transform",x.transform)("x",x.x)("y",x.y),i.R7$(),i.SpI(" ",x.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}))}return s(),g})(),Vm=(()=>{var s;class g{constructor(r){this.platformId=r,this.type=jc.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.dataLabelHeightChanged=new i.bkB,this.barsForDataLabels=[],this.barOrientation=Qr,this.isSSR=!1}ngOnInit(){(0,w.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){let r;this.updateTooltipSettings(),this.series.length&&(r=this.xScale.bandwidth()),r=Math.round(r);const y=Math.max(this.yScale.domain()[0],0),x={[f1.positive]:0,[f1.negative]:0};let ue,R=f1.positive;this.type===jc.Normalized&&(ue=this.series.map(xt=>xt.value).reduce((xt,Rt)=>xt+Rt,0)),this.bars=this.series.map((xt,Rt)=>{let sn=xt.value;const wn=this.getLabel(xt),An=Z1(wn);R=sn>0?f1.positive:f1.negative;const pi={value:sn,label:wn,roundEdges:this.roundEdges,data:xt,width:r,formattedLabel:An,height:0,x:0,y:0};if(this.type===jc.Standard)pi.height=Math.abs(this.yScale(sn)-this.yScale(y)),pi.x=this.xScale(wn),pi.y=this.yScale(sn<0?0:sn);else if(this.type===jc.Stacked){const Xn=x[R],Vi=Xn+sn;x[R]+=sn,pi.height=this.yScale(Xn)-this.yScale(Vi),pi.x=0,pi.y=this.yScale(Vi),pi.offset0=Xn,pi.offset1=Vi}else if(this.type===jc.Normalized){let Xn=x[R],Vi=Xn+sn;x[R]+=sn,ue>0?(Xn=100*Xn/ue,Vi=100*Vi/ue):(Xn=0,Vi=0),pi.height=this.yScale(Xn)-this.yScale(Vi),pi.x=0,pi.y=this.yScale(Vi),pi.offset0=Xn,pi.offset1=Vi,sn=(Vi-Xn).toFixed(2)+"%"}this.colors.scaleType===ma.Ordinal?pi.color=this.colors.getColor(wn):this.type===jc.Standard?(pi.color=this.colors.getColor(sn),pi.gradientStops=this.colors.getLinearGradientStops(sn)):(pi.color=this.colors.getColor(pi.offset1),pi.gradientStops=this.colors.getLinearGradientStops(pi.offset1,pi.offset0));let Ji=An;return pi.ariaLabel=An+" "+sn.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${An}`,pi.data.series=this.seriesName,pi.ariaLabel=this.seriesName+" "+pi.ariaLabel),pi.tooltipText=this.tooltipDisabled?void 0:`\n ${function e4(s){return s.toLocaleString().replace(/[&'`"<>]/g,g=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[g]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(sn):sn.toLocaleString()}\n `,pi}),this.updateDataLabels()}updateDataLabels(){if(this.type===jc.Stacked){this.barsForDataLabels=[];const r={};r.series=this.seriesName;const y=this.series.map(R=>R.value).reduce((R,ue)=>ue>0?R+ue:R,0),x=this.series.map(R=>R.value).reduce((R,ue)=>ue<0?R+ue:R,0);r.total=y+x,r.x=0,r.y=0,r.height=this.yScale(r.total>0?y:x),r.width=this.xScale.bandwidth(),this.barsForDataLabels.push(r)}else this.barsForDataLabels=this.series.map(r=>{const y={};return y.series=this.seriesName??r.label,y.total=r.value,y.x=this.xScale(r.label),y.y=this.yScale(0),y.height=this.yScale(y.total)-this.yScale(0),y.width=this.xScale.bandwidth(),y})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Va.Top,this.tooltipType=this.tooltipDisabled?void 0:Hd.tooltip}isActive(r){return!!this.activeEntries&&void 0!==this.activeEntries.find(x=>r.name===x.name&&r.value===x.value)}onClick(r){this.select.emit(r)}getLabel(r){return r.label?r.label:r.name}trackBy(r,y){return y.label}trackDataLabelBy(r,y){return r+"#"+y.series+"#"+y.total}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:g,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},standalone:!1,features:[i.OA$],attrs:e0,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"select","activate","deactivate","width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"dimensionsChanged","barX","barY","barWidth","barHeight","value","valueFormatting","orientation"]],template:function(y,x){1&y&&i.DNE(0,ju,2,2,"g",0)(1,bm,2,2,"g",0)(2,Wu,2,2,"g",0),2&y&&(i.Y8G("ngIf",!x.isSSR),i.R7$(),i.Y8G("ngIf",x.isSSR),i.R7$(),i.Y8G("ngIf",x.showDataLabel))},dependencies:[T.Sq,T.bT,m0,zm,d4],encapsulation:2,data:{animation:[(0,L.hZ)("animationState",[(0,L.kY)(":leave",[(0,L.iF)({opacity:1}),(0,L.i0)(500,(0,L.iF)({opacity:0}))])])]},changeDetection:0}))}return s(),g})(),hh=(()=>{var s;class g extends h0{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ac.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}ngOnChanges(){this.update()}update(){if(super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Fm({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`,this.showRefLines){const r=ci(this.chartElement.nativeElement).select(".bar-chart").node();ci(this.chartElement.nativeElement).selectAll(".ref-line").nodes().forEach(x=>r.appendChild(x))}}getXScale(){this.xDomain=this.getXDomain();const r=this.xDomain.length/(this.dims.width/this.barPadding+1);return Pc().range([0,this.dims.width]).paddingInner(r).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const r=lc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?r.nice():r}getXDomain(){return this.results.map(r=>r.label)}getYDomain(){const r=this.results.map(R=>R.value);let y=this.yScaleMin?Math.min(this.yScaleMin,...r):Math.min(0,...r);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(y=Math.min(y,...this.yAxisTicks));let x=this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(x=Math.max(x,...this.yAxisTicks)),[y,x]}onClick(r){this.select.emit(r)}setColors(){let r;r=this.schemeType===ma.Ordinal?this.xDomain:this.yDomain,this.colors=new c4(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===ma.Ordinal?(r.domain=this.xDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.yDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onDataLabelMaxHeightChanged(r){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),r.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(r,y=!1){r=this.results.find(R=>y?R.label===r.name:R.name===r.name),!(this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series)>-1)&&(this.activeEntries=[r,...this.activeEntries],this.activate.emit({value:r,entries:this.activeEntries}))}onDeactivate(r,y=!1){r=this.results.find(R=>y?R.label===r.name:R.name===r.name);const x=this.activeEntries.findIndex(R=>R.name===r.name&&R.value===r.value&&R.series===r.series);this.activeEntries.splice(x,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:r,entries:this.activeEntries})}static#e=s=()=>(this.\u0275fac=(()=>{let r;return function(x){return(r||(r=i.xGo(g)))(x||g)}})(),this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(y,x,R){if(1&y&&i.wni(R,w3,5),2&y){let ue;i.mGM(ue=i.lsd())&&(x.tooltipTemplate=ue.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3,i.OA$],decls:5,vars:25,consts:[[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activate","deactivate","select","dataLabelHeightChanged","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks"]],template:function(y,x){1&y&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelClick",function(ue){return x.onClick(ue)})("legendLabelActivate",function(ue){return x.onActivate(ue,!0)})("legendLabelDeactivate",function(ue){return x.onDeactivate(ue,!0)}),d.qSk(),i.j41(1,"g",1),i.DNE(2,Xu,1,12,"g",2)(3,Cm,1,13,"g",3),i.j41(4,"g",4),i.bIt("activate",function(ue){return x.onActivate(ue)})("deactivate",function(ue){return x.onDeactivate(ue)})("select",function(ue){return x.onClick(ue)})("dataLabelHeightChanged",function(ue){return x.onDataLabelMaxHeightChanged(ue)}),i.k0s()()()),2&y&&(i.Y8G("view",i.l_i(22,l1,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),i.R7$(),i.BMQ("transform",x.transform),i.R7$(),i.Y8G("ngIf",x.xAxis),i.R7$(),i.Y8G("ngIf",x.yAxis),i.R7$(),i.Y8G("xScale",x.xScale)("yScale",x.yScale)("colors",x.colors)("series",x.results)("dims",x.dims)("gradient",x.gradient)("tooltipDisabled",x.tooltipDisabled)("tooltipTemplate",x.tooltipTemplate)("showDataLabel",x.showDataLabel)("dataLabelFormatting",x.dataLabelFormatting)("activeEntries",x.activeEntries)("roundEdges",x.roundEdges)("animations",x.animations)("noBarWhenZero",x.noBarWhenZero))},dependencies:[T.bT,i4,lh,ih,Vm],styles:[Cl],encapsulation:2,changeDetection:0}))}return s(),g})(),bp=(()=>{var s;class g extends h0{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ac.Right,this.tooltipDisabled=!1,this.scaleType=ma.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.schemeType=ma.Ordinal,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Qr,this.trackBy=(r,y)=>y.name}ngOnInit(){(0,w.Vy)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=Fm({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(r,y){r.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,r.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,r.size.height),y===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const r=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Pc().rangeRound([0,this.dims.width]).paddingInner(r).paddingOuter(r/2).domain(this.groupDomain)}getInnerScale(){const r=this.groupScale.bandwidth(),y=this.innerDomain.length/(r/this.barPadding+1);return Pc().rangeRound([0,r]).paddingInner(y).domain(this.innerDomain)}getValueScale(){const r=lc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?r.nice():r}getGroupDomain(){const r=[];for(const y of this.results)r.includes(y.label)||r.push(y.label);return r}getInnerDomain(){const r=[];for(const y of this.results)for(const x of y.series)r.includes(x.label)||r.push(x.label);return r}getValueDomain(){const r=[];for(const R of this.results)for(const ue of R.series)r.includes(ue.value)||r.push(ue.value);return[Math.min(0,...r),this.yScaleMax?Math.max(this.yScaleMax,...r):Math.max(0,...r)]}groupTransform(r){return`translate(${this.groupScale(r.label)}, 0)`}onClick(r,y){y&&(r.series=y.name),this.select.emit(r)}setColors(){let r;r=this.schemeType===ma.Ordinal?this.innerDomain:this.valueDomain,this.colors=new c4(this.scheme,this.schemeType,r,this.customColors)}getLegendOptions(){const r={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return r.scaleType===ma.Ordinal?(r.domain=this.innerDomain,r.colors=this.colors,r.title=this.legendTitle):(r.domain=this.valueDomain,r.colors=this.colors.scale),r}updateYAxisWidth({width:r}){this.yAxisWidth=r,this.update()}updateXAxisHeight({height:r}){this.xAxisHeight=r,this.update()}onActivate(r,y,x=!1){const R=Object.assign({},r);y&&(R.series=y.name);const ue=this.results.map(xt=>xt.series).flat().filter(xt=>x?xt.label===R.name:xt.name===R.name&&xt.series===R.series);this.activeEntries=[...ue],this.activate.emit({value:R,entries:this.activeEntries})}onDeactivate(r,y,x=!1){const R=Object.assign({},r);y&&(R.series=y.name),this.activeEntries=this.activeEntries.filter(ue=>x?ue.label!==R.name:!(ue.name===R.name&&ue.series===R.series)),this.deactivate.emit({value:R,entries:this.activeEntries})}static#e=s=()=>(this.\u0275fac=(()=>{let r;return function(x){return(r||(r=i.xGo(g)))(x||g)}})(),this.\u0275cmp=i.VBU({type:g,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(y,x,R){if(1&y&&i.wni(R,w3,5),2&y){let ue;i.mGM(ue=i.lsd())&&(x.tooltipTemplate=ue.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3],decls:7,vars:18,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"select","activate","deactivate","dataLabelHeightChanged","activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero"]],template:function(y,x){1&y&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelActivate",function(ue){return x.onActivate(ue,void 0,!0)})("legendLabelDeactivate",function(ue){return x.onDeactivate(ue,void 0,!0)})("legendLabelClick",function(ue){return x.onClick(ue)}),d.qSk(),i.j41(1,"g",1),i.nrm(2,"g",2),i.DNE(3,Ku,1,11,"g",3)(4,j3,1,10,"g",4)(5,H3,2,2,"g",5)(6,n0,2,2,"g",5),i.k0s()()),2&y&&(i.Y8G("view",i.l_i(15,l1,x.width,x.height))("showLegend",x.legend)("legendOptions",x.legendOptions)("activeEntries",x.activeEntries)("animations",x.animations),i.R7$(),i.BMQ("transform",x.transform),i.R7$(),i.Y8G("xScale",x.groupScale)("yScale",x.valueScale)("data",x.results)("dims",x.dims)("orient",x.barOrientation.Vertical),i.R7$(),i.Y8G("ngIf",x.xAxis),i.R7$(),i.Y8G("ngIf",x.yAxis),i.R7$(),i.Y8G("ngIf",!x.isSSR),i.R7$(),i.Y8G("ngIf",x.isSSR))},dependencies:[T.Sq,T.bT,i4,lh,ih,Om,Vm],styles:[Cl],encapsulation:2,data:{animation:[(0,L.hZ)("animationState",[(0,L.kY)(":leave",[(0,L.iF)({opacity:1,transform:"*"}),(0,L.i0)(500,(0,L.iF)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}))}return s(),g})(),Um=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),mh=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),fh=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),gh=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),Tp=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})();Math;let p1=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),Dp=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl,p1,Tp]}))}return s(),g})(),yo=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),yh=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),bh=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl,p1,Um]}))}return s(),g})(),td=(()=>{var s;class g{static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl]}))}return s(),g})(),p4=(()=>{var s;class g{constructor(){!function Ch(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}static#e=s=()=>(this.\u0275fac=function(y){return new(y||g)},this.\u0275mod=i.$C({type:g}),this.\u0275inj=d.G2t({imports:[hl,Bm,Um,mh,fh,gh,td,Tp,Dp,yo,p1,yh,bh]}))}return s(),g})()},8288(Zt,pe,l){"use strict";l.d(pe,{Um:()=>A,XK:()=>Pe});var i=l(467),d=l(2200),v=l(2615),T=l(3664),w=l(7705),e=l(8314);function O(le,Ce){if(1&le&&T.nrm(0,"canvas",1),2&le){const Ae=T.XpG();T.HbH(Ae.styleClass),T.Y8G("qrCode",Ae.value)("qrCodeErrorCorrectionLevel",Ae.errorCorrectionLevel)("qrCodeCenterImageSrc",Ae.centerImageSrc)("qrCodeCenterImageWidth",Ae.centerImageSize)("qrCodeCenterImageHeight",Ae.centerImageSize)("qrCodeMargin",Ae.margin)("qrScale",Ae.scale)("qrCodeMaskPattern",Ae.maskPattern)("width",Ae.size)("height",Ae.size)("ngStyle",Ae.style)("darkColor",Ae.darkColor)("lightColor",Ae.lightColor)}}const f=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/,u=/^[0-9.]+$/;let L=(()=>{var le;class Ce{constructor(j){this.viewContainerRef=j,this.errorCorrectionLevel=Ce.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var j=this;return(0,i.A)(function*(){if(!j.value)return;j.version&&j.version>40?(console.warn("[qrCode] max version is 40, clamping"),j.version=40):j.version&&j.version<1?(console.warn("[qrCode] min version is 1, clamping"),j.version=1):void 0!==j.version&&isNaN(j.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),j.version=void 0);const W=j.viewContainerRef.element.nativeElement;if(!W)return;const G=W.getContext("2d");G&&G.clearRect(0,0,G.canvas.width,G.canvas.height);const re=j.errorCorrectionLevel??Ce.DEFAULT_ERROR_CORRECTION_LEVEL,xe=j.darkColor&&f.test(j.darkColor)?j.darkColor:void 0,Ee=j.lightColor&&f.test(j.lightColor)?j.lightColor:void 0;(0,w.naY)()&&(!xe&&j.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!Ee&&j.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield e.toCanvas(W,j.value,{version:j.version,errorCorrectionLevel:re,width:C(j.width),margin:j.margin,scale:j.qrScale,maskPattern:j.qrCodeMaskPattern,color:{dark:xe,light:Ee}});const V=j.centerImageSrc,ce=B(j.centerImageWidth,Ce.DEFAULT_CENTER_IMAGE_SIZE),be=B(j.centerImageHeight,Ce.DEFAULT_CENTER_IMAGE_SIZE);if(V&&G){j.centerImage||(j.centerImage=new Image(ce,be));const ne=j.centerImage;V!==j.centerImage.src&&(ne.src=V),ce!==j.centerImage.width&&(ne.width=ce),be!==j.centerImage.height&&(ne.height=be);const J=()=>{G.drawImage(ne,W.width/2-ce/2,W.height/2-be/2,ce,be)};ne.onload=J,ne.complete&&J()}})()}static#e=le=()=>(this.DEFAULT_ERROR_CORRECTION_LEVEL="M",this.DEFAULT_CENTER_IMAGE_SIZE=40,this.\u0275fac=function(W){return new(W||Ce)(T.rXU(T.c1b))},this.\u0275dir=T.FsC({type:Ce,selectors:[["canvas","qrCode",""]],inputs:{value:[0,"qrCode","value"],version:[0,"qrCodeVersion","version"],errorCorrectionLevel:[0,"qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:[0,"qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:[0,"qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:[0,"qrCodeCenterImageHeight","centerImageHeight"],margin:[0,"qrCodeMargin","margin"],qrScale:"qrScale",qrCodeMaskPattern:"qrCodeMaskPattern"},features:[T.OA$]}))}return le(),Ce})();function C(le){if(void 0!==le&&""!==le){if("string"==typeof le){if(!u.test(le))throw new Error(`'${le}' is not a valid number`);return parseFloat(le)}return le}}function B(le,Ce){return void 0===le||""===le?Ce:C(le)}let A=(()=>{var le;class Ce{static#e=le=()=>(this.\u0275fac=function(W){return new(W||Ce)},this.\u0275cmp=T.VBU({type:Ce,selectors:[["qr-code"]],inputs:{value:"value",size:"size",style:"style",styleClass:"styleClass",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin",scale:"scale",maskPattern:"maskPattern"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","class","ngStyle","darkColor","lightColor"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","ngStyle","darkColor","lightColor"]],template:function(W,G){1&W&&T.nVh(0,O,1,15,"canvas",0),2&W&&T.vxM(G.value?0:-1)},dependencies:[L,d.MD,d.B3],encapsulation:2}))}return le(),Ce})(),Pe=(()=>{var le;class Ce{static#e=le=()=>(this.\u0275fac=function(W){return new(W||Ce)},this.\u0275mod=T.$C({type:Ce}),this.\u0275inj=v.G2t({imports:[d.MD,A]}))}return le(),Ce})()},497(Zt,pe,l){"use strict";l.d(pe,{kU:()=>Me,ZF:()=>ut,Ld:()=>Be,U$:()=>Ot});var i=l(1413),d=l(3726),v=l(7786),T=l(3798),w=l(6977),e=l(3294),O=l(3703),f=l(3664),u=l(7705),L=l(2615),C=l(2200),B=l(177);function A(se){return getComputedStyle(se)}function Pe(se,We){for(var bt in We){var tn=We[bt];"number"==typeof tn&&(tn+="px"),se.style[bt]=tn}return se}function le(se){var We=document.createElement("div");return We.className=se,We}var Ce=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Ae(se,We){if(!Ce)throw new Error("No element matching method supported");return Ce.call(se,We)}function j(se){se.remove?se.remove():se.parentNode&&se.parentNode.removeChild(se)}function W(se,We){return Array.prototype.filter.call(se.children,function(bt){return Ae(bt,We)})}var G_element_thumb=function(se){return"ps__thumb-"+se},G_element_rail=function(se){return"ps__rail-"+se},G_element_consuming="ps__child--consume",G_state_focus="ps--focus",G_state_clicking="ps--clicking",G_state_active=function(se){return"ps--active-"+se},G_state_scrolling=function(se){return"ps--scrolling-"+se},re={x:null,y:null};function xe(se,We){var bt=se.element.classList,tn=G_state_scrolling(We);bt.contains(tn)?clearTimeout(re[We]):bt.add(tn)}function Ee(se,We){re[We]=setTimeout(function(){return se.isAlive&&se.element.classList.remove(G_state_scrolling(We))},se.settings.scrollingThreshold)}var ce=function(We){this.element=We,this.handlers={}},be={isEmpty:{configurable:!0}};ce.prototype.bind=function(We,bt){typeof this.handlers[We]>"u"&&(this.handlers[We]=[]),this.handlers[We].push(bt),this.element.addEventListener(We,bt,!1)},ce.prototype.unbind=function(We,bt){var tn=this;this.handlers[We]=this.handlers[We].filter(function(on){return!(!bt||on===bt)||(tn.element.removeEventListener(We,on,!1),!1)})},ce.prototype.unbindAll=function(){for(var We in this.handlers)this.unbind(We)},be.isEmpty.get=function(){var se=this;return Object.keys(this.handlers).every(function(We){return 0===se.handlers[We].length})},Object.defineProperties(ce.prototype,be);var ne=function(){this.eventElements=[]};function J(se){if("function"==typeof window.CustomEvent)return new CustomEvent(se);var We=document.createEvent("CustomEvent");return We.initCustomEvent(se,!1,!1,void 0),We}function De(se,We,bt,tn,on){var un;if(void 0===tn&&(tn=!0),void 0===on&&(on=!1),"top"===We)un=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==We)throw new Error("A proper axis should be provided");un=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function Re(se,We,bt,tn,on){var un=bt[0],Nt=bt[1],dn=bt[2],xn=bt[3],Jn=bt[4],xi=bt[5];void 0===tn&&(tn=!0),void 0===on&&(on=!1);var Yi=se.element;se.reach[xn]=null,Yi[dn]<1&&(se.reach[xn]="start"),Yi[dn]>se[un]-se[Nt]-1&&(se.reach[xn]="end"),We&&(Yi.dispatchEvent(J("ps-scroll-"+xn)),We<0?Yi.dispatchEvent(J("ps-scroll-"+Jn)):We>0&&Yi.dispatchEvent(J("ps-scroll-"+xi)),tn&&function V(se,We){xe(se,We),Ee(se,We)}(se,xn)),se.reach[xn]&&(We||on)&&Yi.dispatchEvent(J("ps-"+xn+"-reach-"+se.reach[xn]))}(se,bt,un,tn,on)}function Xe(se){return parseInt(se,10)||0}ne.prototype.eventElement=function(We){var bt=this.eventElements.filter(function(tn){return tn.element===We})[0];return bt||(bt=new ce(We),this.eventElements.push(bt)),bt},ne.prototype.bind=function(We,bt,tn){this.eventElement(We).bind(bt,tn)},ne.prototype.unbind=function(We,bt,tn){var on=this.eventElement(We);on.unbind(bt,tn),on.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(on),1)},ne.prototype.unbindAll=function(){this.eventElements.forEach(function(We){return We.unbindAll()}),this.eventElements=[]},ne.prototype.once=function(We,bt,tn){var on=this.eventElement(We),un=function(Nt){on.unbind(bt,un),tn(Nt)};on.bind(bt,un)};var Dt={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function lt(se){var We=se.element,bt=Math.floor(We.scrollTop),tn=We.getBoundingClientRect();se.containerWidth=Math.round(tn.width),se.containerHeight=Math.round(tn.height),se.contentWidth=We.scrollWidth,se.contentHeight=We.scrollHeight,We.contains(se.scrollbarXRail)||(W(We,G_element_rail("x")).forEach(function(on){return j(on)}),We.appendChild(se.scrollbarXRail)),We.contains(se.scrollbarYRail)||(W(We,G_element_rail("y")).forEach(function(on){return j(on)}),We.appendChild(se.scrollbarYRail)),!se.settings.suppressScrollX&&se.containerWidth+se.settings.scrollXMarginOffset=se.railXWidth-se.scrollbarXWidth&&(se.scrollbarXLeft=se.railXWidth-se.scrollbarXWidth),se.scrollbarYTop>=se.railYHeight-se.scrollbarYHeight&&(se.scrollbarYTop=se.railYHeight-se.scrollbarYHeight),function te(se,We){var bt={width:We.railXWidth},tn=Math.floor(se.scrollTop);bt.left=We.isRtl?We.negativeScrollAdjustment+se.scrollLeft+We.containerWidth-We.contentWidth:se.scrollLeft,We.isScrollbarXUsingBottom?bt.bottom=We.scrollbarXBottom-tn:bt.top=We.scrollbarXTop+tn,Pe(We.scrollbarXRail,bt);var on={top:tn,height:We.railYHeight};We.isScrollbarYUsingRight?on.right=We.isRtl?We.contentWidth-(We.negativeScrollAdjustment+se.scrollLeft)-We.scrollbarYRight-We.scrollbarYOuterWidth-9:We.scrollbarYRight-se.scrollLeft:on.left=We.isRtl?We.negativeScrollAdjustment+se.scrollLeft+2*We.containerWidth-We.contentWidth-We.scrollbarYLeft-We.scrollbarYOuterWidth:We.scrollbarYLeft+se.scrollLeft,Pe(We.scrollbarYRail,on),Pe(We.scrollbarX,{left:We.scrollbarXLeft,width:We.scrollbarXWidth-We.railBorderXWidth}),Pe(We.scrollbarY,{top:We.scrollbarYTop,height:We.scrollbarYHeight-We.railBorderYWidth})}(We,se),se.scrollbarXActive?We.classList.add(G_state_active("x")):(We.classList.remove(G_state_active("x")),se.scrollbarXWidth=0,se.scrollbarXLeft=0,We.scrollLeft=!0===se.isRtl?se.contentWidth:0),se.scrollbarYActive?We.classList.add(G_state_active("y")):(We.classList.remove(G_state_active("y")),se.scrollbarYHeight=0,se.scrollbarYTop=0,We.scrollTop=0)}function Le(se,We){return se.settings.minScrollbarLength&&(We=Math.max(We,se.settings.minScrollbarLength)),se.settings.maxScrollbarLength&&(We=Math.min(We,se.settings.maxScrollbarLength)),We}function F(se,We){var bt=We[0],tn=We[1],on=We[2],un=We[3],Nt=We[4],dn=We[5],xn=We[6],Jn=We[7],xi=We[8],Yi=se.element,Tt=null,At=null,we=null;function ae(_n){_n.touches&&_n.touches[0]&&(_n[on]=_n.touches[0].pageY),Yi[xn]=Tt+we*(_n[on]-At),xe(se,Jn),lt(se),_n.stopPropagation(),_n.type.startsWith("touch")&&_n.changedTouches.length>1&&_n.preventDefault()}function Lt(){Ee(se,Jn),se[xi].classList.remove(G_state_clicking),se.event.unbind(se.ownerDocument,"mousemove",ae)}function Ht(_n,fi){Tt=Yi[xn],fi&&_n.touches&&(_n[on]=_n.touches[0].pageY),At=_n[on],we=(se[tn]-se[bt])/(se[un]-se[dn]),fi?se.event.bind(se.ownerDocument,"touchmove",ae):(se.event.bind(se.ownerDocument,"mousemove",ae),se.event.once(se.ownerDocument,"mouseup",Lt),_n.preventDefault()),se[xi].classList.add(G_state_clicking),_n.stopPropagation()}se.event.bind(se[Nt],"mousedown",function(_n){Ht(_n)}),se.event.bind(se[Nt],"touchstart",function(_n){Ht(_n,!0)})}var Vt={"click-rail":function ie(se){se.event.bind(se.scrollbarY,"mousedown",function(bt){return bt.stopPropagation()}),se.event.bind(se.scrollbarYRail,"mousedown",function(bt){var tn=bt.pageY-window.pageYOffset-se.scrollbarYRail.getBoundingClientRect().top;se.element.scrollTop+=(tn>se.scrollbarYTop?1:-1)*se.containerHeight,lt(se),bt.stopPropagation()}),se.event.bind(se.scrollbarX,"mousedown",function(bt){return bt.stopPropagation()}),se.event.bind(se.scrollbarXRail,"mousedown",function(bt){var tn=bt.pageX-window.pageXOffset-se.scrollbarXRail.getBoundingClientRect().left;se.element.scrollLeft+=(tn>se.scrollbarXLeft?1:-1)*se.containerWidth,lt(se),bt.stopPropagation()})},"drag-thumb":function P(se){F(se,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),F(se,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function ve(se){var We=se.element;se.event.bind(se.ownerDocument,"keydown",function(un){if(!(un.isDefaultPrevented&&un.isDefaultPrevented()||un.defaultPrevented)&&(Ae(We,":hover")||Ae(se.scrollbarX,":focus")||Ae(se.scrollbarY,":focus"))){var Nt=document.activeElement?document.activeElement:se.ownerDocument.activeElement;if(Nt){if("IFRAME"===Nt.tagName)Nt=Nt.contentDocument.activeElement;else for(;Nt.shadowRoot;)Nt=Nt.shadowRoot.activeElement;if(function _e(se){return Ae(se,"input,[contenteditable]")||Ae(se,"select,[contenteditable]")||Ae(se,"textarea,[contenteditable]")||Ae(se,"button,[contenteditable]")}(Nt))return}var dn=0,xn=0;switch(un.which){case 37:dn=un.metaKey?-se.contentWidth:un.altKey?-se.containerWidth:-30;break;case 38:xn=un.metaKey?se.contentHeight:un.altKey?se.containerHeight:30;break;case 39:dn=un.metaKey?se.contentWidth:un.altKey?se.containerWidth:30;break;case 40:xn=un.metaKey?-se.contentHeight:un.altKey?-se.containerHeight:-30;break;case 32:xn=un.shiftKey?se.containerHeight:-se.containerHeight;break;case 33:xn=se.containerHeight;break;case 34:xn=-se.containerHeight;break;case 36:xn=se.contentHeight;break;case 35:xn=-se.contentHeight;break;default:return}se.settings.suppressScrollX&&0!==dn||se.settings.suppressScrollY&&0!==xn||(We.scrollTop-=xn,We.scrollLeft+=dn,lt(se),function on(un,Nt){var dn=Math.floor(We.scrollTop);if(0===un){if(!se.scrollbarYActive)return!1;if(0===dn&&Nt>0||dn>=se.contentHeight-se.containerHeight&&Nt<0)return!se.settings.wheelPropagation}var xn=We.scrollLeft;if(0===Nt){if(!se.scrollbarXActive)return!1;if(0===xn&&un<0||xn>=se.contentWidth-se.containerWidth&&un>0)return!se.settings.wheelPropagation}return!0}(dn,xn)&&un.preventDefault())}})},wheel:function H(se){var We=se.element;function un(Nt){var dn=function tn(Nt){var dn=Nt.deltaX,xn=-1*Nt.deltaY;return(typeof dn>"u"||typeof xn>"u")&&(dn=-1*Nt.wheelDeltaX/6,xn=Nt.wheelDeltaY/6),Nt.deltaMode&&1===Nt.deltaMode&&(dn*=10,xn*=10),dn!=dn&&xn!=xn&&(dn=0,xn=Nt.wheelDelta),Nt.shiftKey?[-xn,-dn]:[dn,xn]}(Nt),xn=dn[0],Jn=dn[1];if(!function on(Nt,dn,xn){if(!Dt.isWebKit&&We.querySelector("select:focus"))return!0;if(!We.contains(Nt))return!1;for(var Jn=Nt;Jn&&Jn!==We;){if(Jn.classList.contains(G_element_consuming))return!0;var xi=A(Jn);if(xn&&xi.overflowY.match(/(scroll|auto)/)){var Yi=Jn.scrollHeight-Jn.clientHeight;if(Yi>0&&(Jn.scrollTop>0&&xn<0||Jn.scrollTop0))return!0}if(dn&&xi.overflowX.match(/(scroll|auto)/)){var Tt=Jn.scrollWidth-Jn.clientWidth;if(Tt>0&&(Jn.scrollLeft>0&&dn<0||Jn.scrollLeft0))return!0}Jn=Jn.parentNode}return!1}(Nt.target,xn,Jn)){var xi=!1;se.settings.useBothWheelAxes?se.scrollbarYActive&&!se.scrollbarXActive?(Jn?We.scrollTop-=Jn*se.settings.wheelSpeed:We.scrollTop+=xn*se.settings.wheelSpeed,xi=!0):se.scrollbarXActive&&!se.scrollbarYActive&&(xn?We.scrollLeft+=xn*se.settings.wheelSpeed:We.scrollLeft-=Jn*se.settings.wheelSpeed,xi=!0):(We.scrollTop-=Jn*se.settings.wheelSpeed,We.scrollLeft+=xn*se.settings.wheelSpeed),lt(se),xi=xi||function bt(Nt,dn){var xn=Math.floor(We.scrollTop),Jn=0===We.scrollTop,xi=xn+We.offsetHeight===We.scrollHeight,Yi=0===We.scrollLeft,Tt=We.scrollLeft+We.offsetWidth===We.scrollWidth;return!(Math.abs(dn)>Math.abs(Nt)?Jn||xi:Yi||Tt)||!se.settings.wheelPropagation}(xn,Jn),xi&&!Nt.ctrlKey&&(Nt.stopPropagation(),Nt.preventDefault())}}typeof window.onwheel<"u"?se.event.bind(We,"wheel",un):typeof window.onmousewheel<"u"&&se.event.bind(We,"mousewheel",un)},touch:function $(se){if(Dt.supportsTouch||Dt.supportsIePointer){var We=se.element,on={},un=0,Nt={},dn=null;Dt.supportsTouch?(se.event.bind(We,"touchstart",xi),se.event.bind(We,"touchmove",Tt),se.event.bind(We,"touchend",At)):Dt.supportsIePointer&&(window.PointerEvent?(se.event.bind(We,"pointerdown",xi),se.event.bind(We,"pointermove",Tt),se.event.bind(We,"pointerup",At)):window.MSPointerEvent&&(se.event.bind(We,"MSPointerDown",xi),se.event.bind(We,"MSPointerMove",Tt),se.event.bind(We,"MSPointerUp",At)))}function tn(we,ae){We.scrollTop-=ae,We.scrollLeft-=we,lt(se)}function xn(we){return we.targetTouches?we.targetTouches[0]:we}function Jn(we){return!(we.pointerType&&"pen"===we.pointerType&&0===we.buttons||!(we.targetTouches&&1===we.targetTouches.length||we.pointerType&&"mouse"!==we.pointerType&&we.pointerType!==we.MSPOINTER_TYPE_MOUSE))}function xi(we){if(Jn(we)){var ae=xn(we);on.pageX=ae.pageX,on.pageY=ae.pageY,un=(new Date).getTime(),null!==dn&&clearInterval(dn)}}function Tt(we){if(Jn(we)){var ae=xn(we),Lt={pageX:ae.pageX,pageY:ae.pageY},Ht=Lt.pageX-on.pageX,_n=Lt.pageY-on.pageY;if(function Yi(we,ae,Lt){if(!We.contains(we))return!1;for(var Ht=we;Ht&&Ht!==We;){if(Ht.classList.contains(G_element_consuming))return!0;var _n=A(Ht);if(Lt&&_n.overflowY.match(/(scroll|auto)/)){var fi=Ht.scrollHeight-Ht.clientHeight;if(fi>0&&(Ht.scrollTop>0&&Lt<0||Ht.scrollTop0))return!0}if(ae&&_n.overflowX.match(/(scroll|auto)/)){var bi=Ht.scrollWidth-Ht.clientWidth;if(bi>0&&(Ht.scrollLeft>0&&ae<0||Ht.scrollLeft0))return!0}Ht=Ht.parentNode}return!1}(we.target,Ht,_n))return;tn(Ht,_n),on=Lt;var fi=(new Date).getTime(),bi=fi-un;bi>0&&(Nt.x=Ht/bi,Nt.y=_n/bi,un=fi),function bt(we,ae){var Lt=Math.floor(We.scrollTop),Ht=We.scrollLeft,_n=Math.abs(we),fi=Math.abs(ae);if(fi>_n){if(ae<0&&Lt===se.contentHeight-se.containerHeight||ae>0&&0===Lt)return 0===window.scrollY&&ae>0&&Dt.isChrome}else if(_n>fi&&(we<0&&Ht===se.contentWidth-se.containerWidth||we>0&&0===Ht))return!0;return!0}(Ht,_n)&&we.preventDefault()}}function At(){se.settings.swipeEasing&&(clearInterval(dn),dn=setInterval(function(){se.isInitialized?clearInterval(dn):Nt.x||Nt.y?Math.abs(Nt.x)<.01&&Math.abs(Nt.y)<.01?clearInterval(dn):se.element?(tn(30*Nt.x,30*Nt.y),Nt.x*=.8,Nt.y*=.8):clearInterval(dn):clearInterval(dn)},10))}}},St=function(We,bt){var tn=this;if(void 0===bt&&(bt={}),"string"==typeof We&&(We=document.querySelector(We)),!We||!We.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var on in this.element=We,We.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},bt)this.settings[on]=bt[on];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var xi,Jn,un=function(){return We.classList.add(G_state_focus)},Nt=function(){return We.classList.remove(G_state_focus)};this.isRtl="rtl"===A(We).direction,!0===this.isRtl&&We.classList.add("ps__rtl"),this.isNegativeScroll=(Jn=We.scrollLeft,We.scrollLeft=-1,xi=We.scrollLeft<0,We.scrollLeft=Jn,xi),this.negativeScrollAdjustment=this.isNegativeScroll?We.scrollWidth-We.clientWidth:0,this.event=new ne,this.ownerDocument=We.ownerDocument||document,this.scrollbarXRail=le(G_element_rail("x")),We.appendChild(this.scrollbarXRail),this.scrollbarX=le(G_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",un),this.event.bind(this.scrollbarX,"blur",Nt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var dn=A(this.scrollbarXRail);this.scrollbarXBottom=parseInt(dn.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=Xe(dn.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=Xe(dn.borderLeftWidth)+Xe(dn.borderRightWidth),Pe(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=Xe(dn.marginLeft)+Xe(dn.marginRight),Pe(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=le(G_element_rail("y")),We.appendChild(this.scrollbarYRail),this.scrollbarY=le(G_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",un),this.event.bind(this.scrollbarY,"blur",Nt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var xn=A(this.scrollbarYRail);this.scrollbarYRight=parseInt(xn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=Xe(xn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function he(se){var We=A(se);return Xe(We.width)+Xe(We.paddingLeft)+Xe(We.paddingRight)+Xe(We.borderLeftWidth)+Xe(We.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=Xe(xn.borderTopWidth)+Xe(xn.borderBottomWidth),Pe(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=Xe(xn.marginTop)+Xe(xn.marginBottom),Pe(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:We.scrollLeft<=0?"start":We.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:We.scrollTop<=0?"start":We.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(Jn){return Vt[Jn](tn)}),this.lastScrollTop=Math.floor(We.scrollTop),this.lastScrollLeft=We.scrollLeft,this.event.bind(this.element,"scroll",function(Jn){return tn.onScroll(Jn)}),lt(this)};St.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Pe(this.scrollbarXRail,{display:"block"}),Pe(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=Xe(A(this.scrollbarXRail).marginLeft)+Xe(A(this.scrollbarXRail).marginRight),this.railYMarginHeight=Xe(A(this.scrollbarYRail).marginTop)+Xe(A(this.scrollbarYRail).marginBottom),Pe(this.scrollbarXRail,{display:"none"}),Pe(this.scrollbarYRail,{display:"none"}),lt(this),De(this,"top",0,!1,!0),De(this,"left",0,!1,!0),Pe(this.scrollbarXRail,{display:""}),Pe(this.scrollbarYRail,{display:""}))},St.prototype.onScroll=function(We){this.isAlive&&(lt(this),De(this,"top",this.element.scrollTop-this.lastScrollTop),De(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},St.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),j(this.scrollbarX),j(this.scrollbarY),j(this.scrollbarXRail),j(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},St.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(We){return!We.match(/^ps([-_].+|)$/)}).join(" ")};const ot=St;var nt=function(){if(typeof Map<"u")return Map;function se(We,bt){var tn=-1;return We.some(function(on,un){return on[0]===bt&&(tn=un,!0)}),tn}return function(){function We(){this.__entries__=[]}return Object.defineProperty(We.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),We.prototype.get=function(bt){var tn=se(this.__entries__,bt),on=this.__entries__[tn];return on&&on[1]},We.prototype.set=function(bt,tn){var on=se(this.__entries__,bt);~on?this.__entries__[on][1]=tn:this.__entries__.push([bt,tn])},We.prototype.delete=function(bt){var tn=this.__entries__,on=se(tn,bt);~on&&tn.splice(on,1)},We.prototype.has=function(bt){return!!~se(this.__entries__,bt)},We.prototype.clear=function(){this.__entries__.splice(0)},We.prototype.forEach=function(bt,tn){void 0===tn&&(tn=null);for(var on=0,un=this.__entries__;on0},se.prototype.connect_=function(){!ht||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},se.prototype.disconnect_=function(){!ht||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},se.prototype.onTransitionEnd_=function(We){var bt=We.propertyName,tn=void 0===bt?"":bt;Gt.some(function(un){return!!~tn.indexOf(un)})&&this.refresh()},se.getInstance=function(){return this.instance_||(this.instance_=new se),this.instance_},se.instance_=null,se}(),Ft=function(se,We){for(var bt=0,tn=Object.keys(We);bt"u")&&Element instanceof Object){if(!(We instanceof Sn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var bt=this.observations_;bt.has(We)||(bt.set(We,new kn(We)),this.controller_.addObserver(this),this.controller_.refresh())}},se.prototype.unobserve=function(We){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(We instanceof Sn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var bt=this.observations_;bt.has(We)&&(bt.delete(We),bt.size||this.controller_.removeObserver(this))}},se.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},se.prototype.gatherActive=function(){var We=this;this.clearActive(),this.observations_.forEach(function(bt){bt.isActive()&&We.activeObservations_.push(bt)})},se.prototype.broadcastActive=function(){if(this.hasActive()){var We=this.callbackCtx_,bt=this.activeObservations_.map(function(tn){return new Ri(tn.target,tn.broadcastRect())});this.callback_.call(We,bt,We),this.clearActive()}},se.prototype.clearActive=function(){this.activeObservations_.splice(0)},se.prototype.hasActive=function(){return this.activeObservations_.length>0},se}(),ee=typeof WeakMap<"u"?new WeakMap:new nt,ye=function(){return function se(We){if(!(this instanceof se))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var bt=cn.getInstance(),tn=new vt(We,bt,this);ee.set(this,tn)}}();["observe","unobserve","disconnect"].forEach(function(se){ye.prototype[se]=function(){var We;return(We=ee.get(this))[se].apply(We,arguments)}});const Se=typeof oe.ResizeObserver<"u"?oe.ResizeObserver:ye,N=["*"];function Z(se,We){if(1&se&&(f.j41(0,"div",3),f.nrm(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),f.k0s()),2&se){const bt=f.XpG();f.AVh("ps-at-top",bt.states.top)("ps-at-left",bt.states.left)("ps-at-right",bt.states.right)("ps-at-bottom",bt.states.bottom),f.R7$(),f.AVh("ps-indicator-show",bt.indicatorY&&bt.interaction),f.R7$(),f.AVh("ps-indicator-show",bt.indicatorX&&bt.interaction),f.R7$(),f.AVh("ps-indicator-show",bt.indicatorX&&bt.interaction),f.R7$(),f.AVh("ps-indicator-show",bt.indicatorY&&bt.interaction)}}const Me=new L.nKC("PERFECT_SCROLLBAR_CONFIG");class at{constructor(We,bt,tn,on){this.x=We,this.y=bt,this.w=tn,this.h=on}}class qe{constructor(We,bt){this.x=We,this.y=bt}}const pn=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Je{constructor(We={}){this.assign(We)}assign(We={}){for(const bt in We)this[bt]=We[bt]}}let Be=(()=>{class se{constructor(bt,tn,on,un,Nt){this.zone=bt,this.differs=tn,this.elementRef=on,this.platformId=un,this.defaults=Nt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.B,this.disabled=!1,this.psScrollY=new f.bkB,this.psScrollX=new f.bkB,this.psScrollUp=new f.bkB,this.psScrollDown=new f.bkB,this.psScrollLeft=new f.bkB,this.psScrollRight=new f.bkB,this.psYReachEnd=new f.bkB,this.psYReachStart=new f.bkB,this.psXReachEnd=new f.bkB,this.psXReachStart=new f.bkB}ngOnInit(){if(!this.disabled&&(0,B.UE)(this.platformId)){const bt=new Je(this.defaults);bt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new ot(this.elementRef.nativeElement,bt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Se(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{pn.forEach(tn=>{const on=tn.replace(/([A-Z])/g,un=>`-${un.toLowerCase()}`);(0,d.R)(this.elementRef.nativeElement,on).pipe((0,T.Z)(20),(0,w.Q)(this.ngDestroy)).subscribe(un=>{this[tn].emit(un)})})})}}ngOnDestroy(){(0,B.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,B.UE)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(bt){bt.disabled&&!bt.disabled.isFirstChange()&&(0,B.UE)(this.platformId)&&bt.disabled.currentValue!==bt.disabled.previousValue&&(!0===bt.disabled.currentValue?this.ngOnDestroy():!1===bt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(bt="scroll"){return new at(this.elementRef.nativeElement[bt+"Left"],this.elementRef.nativeElement[bt+"Top"],this.elementRef.nativeElement[bt+"Width"],this.elementRef.nativeElement[bt+"Height"])}position(bt=!1){return!bt&&this.instance?new qe(this.instance.reach.x||0,this.instance.reach.y||0):new qe(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(bt="any"){const tn=this.elementRef.nativeElement;return"any"===bt?tn.classList.contains("ps--active-x")||tn.classList.contains("ps--active-y"):"both"===bt?tn.classList.contains("ps--active-x")&&tn.classList.contains("ps--active-y"):tn.classList.contains("ps--active-"+bt)}scrollTo(bt,tn,on){this.disabled||(null==tn&&null==on?this.animateScrolling("scrollTop",bt,on):(null!=bt&&this.animateScrolling("scrollLeft",bt,on),null!=tn&&this.animateScrolling("scrollTop",tn,on)))}scrollToX(bt,tn){this.animateScrolling("scrollLeft",bt,tn)}scrollToY(bt,tn){this.animateScrolling("scrollTop",bt,tn)}scrollToTop(bt,tn){this.animateScrolling("scrollTop",bt||0,tn)}scrollToLeft(bt,tn){this.animateScrolling("scrollLeft",bt||0,tn)}scrollToRight(bt,tn){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(bt||0),tn)}scrollToBottom(bt,tn){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(bt||0),tn)}scrollToElement(bt,tn,on){if("string"==typeof bt&&(bt=this.elementRef.nativeElement.querySelector(bt)),bt){const un=bt.getBoundingClientRect(),Nt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",un.left-Nt.left+this.elementRef.nativeElement.scrollLeft+(tn||0),on),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",un.top-Nt.top+this.elementRef.nativeElement.scrollTop+(tn||0),on)}}animateScrolling(bt,tn,on){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!on||typeof window>"u")this.elementRef.nativeElement[bt]=tn;else if(tn!==this.elementRef.nativeElement[bt]){let un=0,Nt=0,dn=performance.now(),xn=this.elementRef.nativeElement[bt];const Jn=(xn-tn)/2,xi=Yi=>{Nt+=Math.PI/(on/(Yi-dn)),un=Math.round(tn+Jn+Jn*Math.cos(Nt)),this.elementRef.nativeElement[bt]===xn&&(Nt>=Math.PI?this.animateScrolling(bt,tn,0):(this.elementRef.nativeElement[bt]=un,xn=this.elementRef.nativeElement[bt],dn=Yi,this.animation=window.requestAnimationFrame(xi)))};window.requestAnimationFrame(xi)}}}return se.\u0275fac=function(bt){return new(bt||se)(f.rXU(f.SKi),f.rXU(u.MKu),f.rXU(f.aKT),f.rXU(f.Agw),f.rXU(Me,8))},se.\u0275dir=f.FsC({type:se,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:[0,"perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,features:[f.OA$]}),se})(),ut=(()=>{class se{constructor(bt,tn,on){this.zone=bt,this.cdRef=tn,this.platformId=on,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new i.B,this.stateUpdate=new i.B,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new f.bkB,this.psScrollX=new f.bkB,this.psScrollUp=new f.bkB,this.psScrollDown=new f.bkB,this.psScrollLeft=new f.bkB,this.psScrollRight=new f.bkB,this.psYReachEnd=new f.bkB,this.psYReachStart=new f.bkB,this.psXReachEnd=new f.bkB,this.psXReachStart=new f.bkB}ngOnInit(){(0,B.UE)(this.platformId)&&(this.stateUpdate.pipe((0,w.Q)(this.ngDestroy),(0,e.F)((bt,tn)=>bt===tn&&!this.stateTimeout)).subscribe(bt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===bt||"y"===bt?(this.interaction=!1,"x"===bt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===bt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===bt||"right"===bt?(this.states.left=!1,this.states.right=!1,this.states[bt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===bt||"bottom"===bt)&&(this.states.top=!1,this.states.bottom=!1,this.states[bt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const bt=this.directiveRef.elementRef.nativeElement;(0,d.R)(bt,"wheel").pipe((0,w.Q)(this.ngDestroy)).subscribe(tn=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(tn,tn.deltaX,tn.deltaY)}),(0,d.R)(bt,"touchmove").pipe((0,w.Q)(this.ngDestroy)).subscribe(tn=>{if(!this.disabled&&this.autoPropagation){const on=tn.touches[0].clientX,un=tn.touches[0].clientY;this.checkPropagation(tn,on-this.scrollPositionX,un-this.scrollPositionY),this.scrollPositionX=on,this.scrollPositionY=un}}),(0,v.h)((0,d.R)(bt,"ps-scroll-x").pipe((0,O.u)("x")),(0,d.R)(bt,"ps-scroll-y").pipe((0,O.u)("y")),(0,d.R)(bt,"ps-x-reach-end").pipe((0,O.u)("right")),(0,d.R)(bt,"ps-y-reach-end").pipe((0,O.u)("bottom")),(0,d.R)(bt,"ps-x-reach-start").pipe((0,O.u)("left")),(0,d.R)(bt,"ps-y-reach-start").pipe((0,O.u)("top"))).pipe((0,w.Q)(this.ngDestroy)).subscribe(tn=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(tn)})}}),window.setTimeout(()=>{pn.forEach(bt=>{this.directiveRef&&(this.directiveRef[bt]=this[bt])})},0))}ngOnDestroy(){(0,B.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,B.UE)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const bt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=bt.classList.contains("ps--active-x"),this.usePropagationY=bt.classList.contains("ps--active-y")}}checkPropagation(bt,tn,on){this.interaction=!0;const un=tn<0?-1:1,Nt=on<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==un)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==Nt))&&(bt.preventDefault(),bt.stopPropagation()),tn&&(this.scrollDirectionX=un),on&&(this.scrollDirectionY=Nt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return se.\u0275fac=function(bt){return new(bt||se)(f.rXU(f.SKi),f.rXU(u.gRc),f.rXU(f.Agw))},se.\u0275cmp=f.VBU({type:se,selectors:[["perfect-scrollbar"]],viewQuery:function(bt,tn){if(1&bt&&f.GBs(Be,7),2&bt){let on;f.mGM(on=f.lsd())&&(tn.directiveRef=on.first)}},hostVars:4,hostBindings:function(bt,tn){2&bt&&f.AVh("ps-show-limits",tn.autoPropagation)("ps-show-active",tn.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,ngContentSelectors:N,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(bt,tn){1&bt&&(f.NAR(),f.j41(0,"div",0)(1,"div",1),f.SdG(2),f.k0s(),f.DNE(3,Z,5,16,"div",2),f.k0s()),2&bt&&(f.AVh("ps",tn.usePSClass),f.Y8G("perfectScrollbar",tn.config)("disabled",tn.disabled),f.R7$(3),f.Y8G("ngIf",tn.scrollIndicators))},dependencies:[Be,C.bT],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),se})(),Ot=(()=>{class se{}return se.\u0275fac=function(bt){return new(bt||se)},se.\u0275mod=f.$C({type:se}),se.\u0275inj=L.G2t({imports:[[C.MD],C.MD]}),se})()},467(Zt,pe,l){"use strict";function i(v,T,w,e,O,f,u){try{var L=v[f](u),C=L.value}catch(B){return void w(B)}L.done?T(C):Promise.resolve(C).then(e,O)}function d(v){return function(){var T=this,w=arguments;return new Promise(function(e,O){var f=v.apply(T,w);function u(C){i(f,e,O,u,L,"next",C)}function L(C){i(f,e,O,u,L,"throw",C)}u(void 0)})}}l.d(pe,{A:()=>d})},1635(Zt,pe,l){"use strict";function w(ie,P,F,ve){var Ke,H=arguments.length,$=H<3?P:null===ve?ve=Object.getOwnPropertyDescriptor(P,F):ve;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)$=Reflect.decorate(ie,P,F,ve);else for(var Vt=ie.length-1;Vt>=0;Vt--)(Ke=ie[Vt])&&($=(H<3?Ke($):H>3?Ke(P,F,$):Ke(P,F))||$);return H>3&&$&&Object.defineProperty(P,F,$),$}function B(ie,P,F,ve){return new(F||(F=Promise))(function($,Ke){function Vt(nt){try{ot(ve.next(nt))}catch(ht){Ke(ht)}}function St(nt){try{ot(ve.throw(nt))}catch(ht){Ke(ht)}}function ot(nt){nt.done?$(nt.value):function H($){return $ instanceof F?$:new F(function(Ke){Ke($)})}(nt.value).then(Vt,St)}ot((ve=ve.apply(ie,P||[])).next())})}function re(ie){return this instanceof re?(this.v=ie,this):new re(ie)}function xe(ie,P,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,ve=F.apply(ie,P||[]),$=[];return H=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Vt("next"),Vt("throw"),Vt("return",function Ke(Ye){return function(fe){return Promise.resolve(fe).then(Ye,ht)}}),H[Symbol.asyncIterator]=function(){return this},H;function Vt(Ye,fe){ve[Ye]&&(H[Ye]=function(Qe){return new Promise(function(gt,Gt){$.push([Ye,Qe,gt,Gt])>1||St(Ye,Qe)})},fe&&(H[Ye]=fe(H[Ye])))}function St(Ye,fe){try{!function ot(Ye){Ye.value instanceof re?Promise.resolve(Ye.value.v).then(nt,ht):oe($[0][2],Ye)}(ve[Ye](fe))}catch(Qe){oe($[0][3],Qe)}}function nt(Ye){St("next",Ye)}function ht(Ye){St("throw",Ye)}function oe(Ye,fe){Ye(fe),$.shift(),$.length&&St($[0][0],$[0][1])}}function V(ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,P=ie[Symbol.asyncIterator];return P?P.call(ie):(ie=function Ce(ie){var P="function"==typeof Symbol&&Symbol.iterator,F=P&&ie[P],ve=0;if(F)return F.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&ve>=ie.length&&(ie=void 0),{value:ie&&ie[ve++],done:!ie}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")}(ie),F={},ve("next"),ve("throw"),ve("return"),F[Symbol.asyncIterator]=function(){return this},F);function ve($){F[$]=ie[$]&&function(Ke){return new Promise(function(Vt,St){!function H($,Ke,Vt,St){Promise.resolve(St).then(function(ot){$({value:ot,done:Vt})},Ke)}(Vt,St,(Ke=ie[$](Ke)).done,Ke.value)})}}}l.d(pe,{AQ:()=>xe,Cg:()=>w,N3:()=>re,sH:()=>B,xN:()=>V}),"function"==typeof SuppressedError&&SuppressedError}},Zt=>{Zt(Zt.s=599)}]); \ No newline at end of file diff --git a/frontend/main.408918db3309e4a9.js b/frontend/main.408918db3309e4a9.js deleted file mode 100644 index 7d96e185..00000000 --- a/frontend/main.408918db3309e4a9.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[792],{28430(ke,q,l){"use strict";l.d(q,{$6:()=>U,$J:()=>a,$Q:()=>L,Aw:()=>h,C2:()=>f,CK:()=>ie,Db:()=>Mn,Do:()=>R,Dq:()=>he,ED:()=>qt,EM:()=>Me,Eb:()=>Se,Ew:()=>ve,Fd:()=>ye,GZ:()=>oe,Gy:()=>K,Gz:()=>yt,Hm:()=>Ee,Jx:()=>re,Ml:()=>Et,N4:()=>se,NS:()=>e,NU:()=>S,Qj:()=>j,Qv:()=>rt,Sn:()=>A,T4:()=>pe,Uj:()=>_e,VK:()=>fe,We:()=>V,XT:()=>F,Yi:()=>C,Zi:()=>$,a5:()=>Oe,aB:()=>ge,cR:()=>_,dv:()=>t,ed:()=>Q,fy:()=>s,g6:()=>Re,gf:()=>D,ij:()=>P,jQ:()=>dt,kQ:()=>$e,kX:()=>w,kv:()=>Y,lg:()=>o,no:()=>p,qw:()=>be,sq:()=>Z,uK:()=>x,vL:()=>m,w0:()=>u,x1:()=>d,y0:()=>nt,zU:()=>T});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.TC.UPDATE_API_CALL_STATUS_CLN,(0,i.xk)()),D=(0,i.VP)(g.TC.RESET_CLN_STORE),o=(0,i.VP)(g.TC.FETCH_PAGE_SETTINGS_CLN),e=(0,i.VP)(g.TC.SET_PAGE_SETTINGS_CLN,(0,i.xk)()),A=(0,i.VP)(g.TC.SAVE_PAGE_SETTINGS_CLN,(0,i.xk)()),h=(0,i.VP)(g.TC.FETCH_INFO_CLN,(0,i.xk)()),d=(0,i.VP)(g.TC.SET_INFO_CLN,(0,i.xk)()),w=(0,i.VP)(g.TC.FETCH_FEE_RATES_CLN,(0,i.xk)()),f=(0,i.VP)(g.TC.SET_FEE_RATES_CLN,(0,i.xk)()),F=(0,i.VP)(g.TC.GET_NEW_ADDRESS_CLN,(0,i.xk)()),K=((0,i.VP)(g.TC.SET_NEW_ADDRESS_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_PEERS_CLN)),j=(0,i.VP)(g.TC.SET_PEERS_CLN,(0,i.xk)()),Z=(0,i.VP)(g.TC.SAVE_NEW_PEER_CLN,(0,i.xk)()),V=((0,i.VP)(g.TC.NEWLY_ADDED_PEER_CLN,(0,i.xk)()),(0,i.VP)(g.TC.ADD_PEER_CLN,(0,i.xk)())),Q=(0,i.VP)(g.TC.DETACH_PEER_CLN,(0,i.xk)()),$=(0,i.VP)(g.TC.REMOVE_PEER_CLN,(0,i.xk)()),ie=(0,i.VP)(g.TC.FETCH_PAYMENTS_CLN),_e=(0,i.VP)(g.TC.SET_PAYMENTS_CLN,(0,i.xk)()),ye=(0,i.VP)(g.TC.SEND_PAYMENT_CLN,(0,i.xk)()),se=(0,i.VP)(g.TC.SEND_PAYMENT_STATUS_CLN,(0,i.xk)()),pe=(0,i.VP)(g.TC.GET_QUERY_ROUTES_CLN,(0,i.xk)()),Ee=(0,i.VP)(g.TC.SET_QUERY_ROUTES_CLN,(0,i.xk)()),L=(0,i.VP)(g.TC.FETCH_CHANNELS_CLN),t=(0,i.VP)(g.TC.SET_CHANNELS_CLN,(0,i.xk)()),s=(0,i.VP)(g.TC.UPDATE_CHANNEL_CLN,(0,i.xk)()),m=(0,i.VP)(g.TC.SAVE_NEW_CHANNEL_CLN,(0,i.xk)()),u=(0,i.VP)(g.TC.CLOSE_CHANNEL_CLN,(0,i.xk)()),_=(0,i.VP)(g.TC.REMOVE_CHANNEL_CLN,(0,i.xk)()),T=(0,i.VP)(g.TC.PEER_LOOKUP_CLN,(0,i.xk)()),P=(0,i.VP)(g.TC.CHANNEL_LOOKUP_CLN,(0,i.xk)()),C=(0,i.VP)(g.TC.INVOICE_LOOKUP_CLN,(0,i.xk)()),a=(0,i.VP)(g.TC.SET_LOOKUP_CLN,(0,i.xk)()),x=(0,i.VP)(g.TC.GET_FORWARDING_HISTORY_CLN,(0,i.xk)()),Y=(0,i.VP)(g.TC.SET_FORWARDING_HISTORY_CLN,(0,i.xk)()),R=(0,i.VP)(g.TC.FETCH_INVOICES_CLN),U=(0,i.VP)(g.TC.SET_INVOICES_CLN,(0,i.xk)()),fe=(0,i.VP)(g.TC.SAVE_NEW_INVOICE_CLN,(0,i.xk)()),re=(0,i.VP)(g.TC.ADD_INVOICE_CLN,(0,i.xk)()),he=(0,i.VP)(g.TC.UPDATE_INVOICE_CLN,(0,i.xk)()),Oe=(0,i.VP)(g.TC.DELETE_EXPIRED_INVOICE_CLN,(0,i.xk)()),ge=(0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_CLN,(0,i.xk)()),Re=((0,i.VP)(g.TC.SET_CHANNEL_TRANSACTION_RES_CLN,(0,i.xk)()),(0,i.VP)(g.TC.FETCH_UTXO_BALANCES_CLN)),Me=(0,i.VP)(g.TC.SET_UTXO_BALANCES_CLN,(0,i.xk)()),ve=(0,i.VP)(g.TC.FETCH_OFFER_INVOICE_CLN,(0,i.xk)()),oe=(0,i.VP)(g.TC.SET_OFFER_INVOICE_CLN,(0,i.xk)()),Se=(0,i.VP)(g.TC.FETCH_OFFERS_CLN),be=(0,i.VP)(g.TC.SET_OFFERS_CLN,(0,i.xk)()),nt=(0,i.VP)(g.TC.SAVE_NEW_OFFER_CLN,(0,i.xk)()),$e=(0,i.VP)(g.TC.ADD_OFFER_CLN,(0,i.xk)()),dt=(0,i.VP)(g.TC.DISABLE_OFFER_CLN,(0,i.xk)()),yt=(0,i.VP)(g.TC.UPDATE_OFFER_CLN,(0,i.xk)()),Et=(0,i.VP)(g.TC.FETCH_OFFER_BOOKMARKS_CLN),rt=(0,i.VP)(g.TC.SET_OFFER_BOOKMARKS_CLN,(0,i.xk)()),Mn=(0,i.VP)(g.TC.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,i.xk)()),qt=(0,i.VP)(g.TC.DELETE_OFFER_BOOKMARK_CLN,(0,i.xk)()),S=(0,i.VP)(g.TC.REMOVE_OFFER_BOOKMARK_CLN,(0,i.xk)())},283(ke,q,l){"use strict";l.d(q,{i:()=>se});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(8321),w=l(4416),f=l(11771),F=l(28430),M=l(59584),K=l(32142),j=l(2615),Z=l(29330),ee=l(59640),V=l(53202),Q=l(82571),$=l(98570),ie=l(43694),_e=l(7879),ye=l(57303);let se=(()=>{var pe;class Ee{constructor(t,s,m,u,_,T,P,C,a){this.actions=t,this.httpClient=s,this.store=m,this.sessionService=u,this.commonService=_,this.logger=T,this.router=P,this.wsService=C,this.location=a,this.CHILD_API_URL=w.H$+"/cln",this.CLN_VERISON="",this.flgInitialized=!1,this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INFO_CLN),(0,e.Z)(x=>(this.flgInitialized=!1,this.store.dispatch((0,f.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.INITIATED}})),this.store.dispatch((0,f.mt)({payload:w.MZ.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+w.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(w.aU.SET_SELECTED_NODE))),(0,o.T)(Y=>(this.logger.info(Y),this.CLN_VERISON=Y.version||"",Y.chains&&Y.chains.length&&Y.chains[0]&&"object"==typeof Y.chains[0]&&Y.chains[0].hasOwnProperty("chain")&&Y?.chains[0].chain&&Y?.chains[0].chain.toLowerCase().indexOf("bitcoin")<0&&Y?.chains[0].chain.toLowerCase().indexOf("liquid")<0?(this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),this.store.dispatch((0,f.Jh)()),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:w.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.aU.LOGOUT,payload:"Sorry Not Sorry, RTL is Bitcoin Only!"}):(this.initializeRemainingData(Y,x.payload.loadPage),this.store.dispatch((0,F.no)({payload:{action:"FetchInfo",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.GET_NODE_INFO})),{type:w.TC.SET_INFO_CLN,payload:Y||{}}))),(0,D.W)(Y=>{const R=this.commonService.extractErrorCode(Y),U=503===R?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(Y);return this.router.navigate(["/error"],{state:{errorCode:R,errorMessage:U}}),this.handleErrorWithoutAlert("FetchInfo",w.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:R,error:U}),(0,p.of)({type:w.aU.VOID})})))))),this.fetchFeeRatesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_FEE_RATES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/feeRates",{style:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchFeeRates"+x.payload,status:w.wn.COMPLETED}})),{type:w.TC.SET_FEE_RATES_CLN,payload:Y||{}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchFeeRates"+x.payload,w.MZ.NO_SPINNER,"Fetching Fee Rates Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.getNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_NEW_ADDRESS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/newaddr",{addresstype:x.payload.addressCode}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.GENERATE_NEW_ADDRESS})),{type:w.TC.SET_NEW_ADDRESS_CLN,payload:Y&&Y[x.payload.addressCode]?Y[x.payload.addressCode]:{}})),(0,D.W)(Y=>(this.handleErrorWithAlert("GenerateNewAddress",w.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+w.rl.ON_CHAIN_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.setNewAddressCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_NEW_ADDRESS_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.peersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PEERS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PEERS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPeers",status:w.wn.COMPLETED}})),{type:w.TC.SET_PEERS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPeers",w.MZ.NO_SPINNER,"Fetching Peers Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API,{id:x.payload.id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewPeer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:Y||[]})),{type:w.TC.NEWLY_ADDED_PEER_CLN,payload:{peer:Y.find(R=>0===x.payload.id.indexOf(R.id?R.id:""))}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewPeer",w.MZ.CONNECT_PEER,"Peer Connection Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.detachPeerCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DETACH_PEER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISCONNECT_PEER})),this.httpClient.post(this.CHILD_API_URL+w.rl.PEERS_API+"/disconnect",{id:x.payload.id,force:x.payload.force}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DISCONNECT_PEER})),this.store.dispatch((0,f.UI)({payload:"Peer Disconnected Successfully!"})),{type:w.TC.REMOVE_PEER_CLN,payload:{id:x.payload.id}})),(0,D.W)(Y=>(this.handleErrorWithAlert("PeerDisconnect",w.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+w.rl.PEERS_API+"/"+x.payload.id,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_CHANNELS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listPeerChannels"))),(0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchChannels",status:w.wn.COMPLETED}}));const Y={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return x.forEach(R=>{"CHANNELD_NORMAL"===R.state?R.peer_connected?Y.activeChannels.push(R):Y.inactiveChannels.push(R):Y.pendingChannels.push(R)}),{type:w.TC.SET_CHANNELS_CLN,payload:Y}}),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",w.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.openNewChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_CHANNEL_CLN),(0,e.Z)(x=>{this.store.dispatch((0,f.mt)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.INITIATED}}));const Y={id:x.payload.peerId,amount:x.payload.amount,feerate:x.payload.feeRate,announce:x.payload.announce};return x.payload.minconf&&(Y.minconf=x.payload.minconf),x.payload.utxos&&(Y.utxos=x.payload.utxos),x.payload.requestAmount&&(Y.request_amt=x.payload.requestAmount),x.payload.compactLease&&(Y.compact_lease=x.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API,Y).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"SaveNewChannel",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.OPEN_CHANNEL})),this.store.dispatch((0,f.UI)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,F.g6)()),{type:w.TC.FETCH_CHANNELS_CLN})),(0,D.W)(R=>(this.handleErrorWithoutAlert("SaveNewChannel",w.MZ.OPEN_CHANNEL,"Opening Channel Failed.",R),(0,p.of)({type:w.aU.VOID}))))}))),this.updateChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.UPDATE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/setChannelFee",x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,f.UI)("all"===x.payload.id?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:w.TC.FETCH_CHANNELS_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannel",w.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.closeChannelCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CLOSE_CHANNEL_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/close",{id:x.payload.channelId,unilateraltimeout:x.payload.force?1:null}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,f.UI)({payload:"Channel Closed Successfully!"})),{type:w.TC.REMOVE_CHANNEL_CLN,payload:x.payload})),(0,D.W)(Y=>(this.handleErrorWithAlert("CloseChannel",x.payload.force?w.MZ.FORCE_CLOSE_CHANNEL:w.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+w.rl.CHANNELS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.paymentsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAYMENTS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.PAYMENTS_API))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPayments",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAYMENTS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",w.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.fetchOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/fetchOfferInvoice",x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),setTimeout(()=>{this.store.dispatch((0,F.no)({payload:{action:"FetchOfferInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.FETCH_INVOICE})),this.store.dispatch((0,F.GZ)({payload:Y||{}}))},500)}),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.MZ.FETCH_INVOICE,"Offer Invoice Fetch Failed",Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_OFFER_INVOICE_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.sendPaymentCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SEND_PAYMENT_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.PAYMENTS_API,x.payload).pipe((0,o.T)(Y=>{this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SendPayment",status:w.wn.COMPLETED}}));let R="Payment Sent Successfully!";Y.saveToDBError&&(R="Payment Sent Successfully but Offer Saving to Database Failed."),Y.saveToDBResponse&&"NA"!==Y.saveToDBResponse&&(this.store.dispatch((0,F.Db)({payload:Y.saveToDBResponse})),R="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.CK)()),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,f.UI)({payload:R})),this.store.dispatch((0,F.N4)({payload:Y.paymentResponse}))},1e3)}),(0,D.W)(Y=>(this.logger.error("Error: "+JSON.stringify(Y)),x.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed.",Y):this.handleErrorWithAlert("SendPayment",x.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+w.rl.PAYMENTS_API,Y),(0,p.of)({type:w.aU.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_QUERY_ROUTES_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",{id:x.payload.destPubkey,amount_msat:x.payload.amount,riskfactor:0}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"GetQueryRoutes",status:w.wn.COMPLETED}})),{type:w.TC.SET_QUERY_ROUTES_CLN,payload:Y})),(0,D.W)(Y=>(this.store.dispatch((0,F.Hm)({payload:{route:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/getRoute",Y),(0,p.of)({type:w.aU.VOID})))))))),this.setQueryRoutesCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_QUERY_ROUTES_CLN),(0,o.T)(x=>x.payload)),{dispatch:!1}),this.peerLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.PEER_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes",{id:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_NODE})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithAlert("Lookup",w.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listNodes/"+x.payload,Y),(0,p.of)({type:w.aU.VOID})))))))),this.channelLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.CHANNEL_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels",{short_channel_id:x.payload.shortChannelID}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),{type:w.TC.SET_LOOKUP_CLN,payload:Y})),(0,D.W)(Y=>(x.payload.showError?this.handleErrorWithAlert("Lookup",x.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+w.rl.NETWORK_API+"/listChannels/"+x.payload.shortChannelID,Y):this.store.dispatch((0,f.y0)({payload:x.payload.uiMessage})),this.store.dispatch((0,F.$J)({payload:[]})),(0,p.of)({type:w.aU.VOID})))))))),this.invoiceLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.INVOICE_LOOKUP_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",{label:x.payload}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"Lookup",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEARCHING_INVOICE})),Y.invoices&&Y.invoices.length&&Y.invoices.length>0&&this.store.dispatch((0,F.Dq)({payload:Y.invoices[0]})),{type:w.TC.SET_LOOKUP_CLN,payload:Y.invoices&&Y.invoices.length&&Y.invoices.length>0?Y.invoices[0]:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("Lookup",w.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",Y),this.store.dispatch((0,f.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:w.aU.VOID})))))))),this.setLookupCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_LOOKUP_CLN),(0,o.T)(x=>(this.logger.info(x.payload),x.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.GET_FORWARDING_HISTORY_CLN),(0,e.Z)(x=>{const Y=x.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",x.payload).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,F.no)({payload:{action:"FetchForwardingHistory"+Y,status:w.wn.COMPLETED}})),x.payload.status===w.xk.FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.LOCAL_FAILED?this.store.dispatch((0,F.kv)({payload:{status:w.xk.LOCAL_FAILED,totalForwards:R.length,listForwards:R}})):x.payload.status===w.xk.SETTLED&&this.store.dispatch((0,F.kv)({payload:{status:w.xk.SETTLED,totalForwards:R.length,listForwards:R}})),{type:w.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("FetchForwardingHistory"+Y,w.MZ.NO_SPINNER,"Get "+x.payload.status+" Forwarding History Failed",this.CHILD_API_URL+w.rl.CHANNELS_API+"/listForwards",R),(0,p.of)({type:w.aU.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_EXPIRED_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_INVOICE})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/delete",{subsystem:"expiredinvoices",age:w.NG}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_INVOICE})),this.store.dispatch((0,f.UI)({payload:Y.status})),{type:w.TC.FETCH_INVOICES_CLN})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteInvoices",w.MZ.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+w.rl.INVOICES_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewInvoiceCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_INVOICE_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.ADD_INVOICE})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewInvoice",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.ADD_INVOICE})),Y.amount_msat=x.payload.amount_msat,Y.label=x.payload.label,Y.expires_at=Math.round((new Date).getTime()/1e3+x.payload.expiry),Y.description=x.payload.description,Y.status="unpaid",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{invoice:Y,newlyAdded:!0,component:d.y}}}))},200),{type:w.TC.ADD_INVOICE_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.MZ.ADD_INVOICE,"Add Invoice Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.saveNewOfferCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_NEW_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.CREATE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SaveNewOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{offer:Y,newlyAdded:!0,component:K.f}}}))},100),{type:w.TC.ADD_OFFER_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewOffer",w.MZ.CREATE_OFFER,"Create Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.invoicesFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_INVOICES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.INVOICES_API+"/lookup",null))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchInvoices",status:w.wn.COMPLETED}})),{type:w.TC.SET_INVOICES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",w.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.offersFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFERS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOffers",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFERS_CLN,payload:Y.offers?Y.offers:[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOffers",w.MZ.NO_SPINNER,"Fetching Offers Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offersDisableCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DISABLE_OFFER_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/disableOffer",{offer_id:x.payload.offer_id}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DisableOffer",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DISABLE_OFFER})),this.store.dispatch((0,f.UI)({payload:"Offer Disabled Successfully!"})),{type:w.TC.UPDATE_OFFER_CLN,payload:{offer:Y}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("DisableOffer",w.MZ.DISABLE_OFFER,"Disabling Offer Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.offerBookmarksFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_OFFER_BOOKMARKS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmarks").pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"FetchOfferBookmarks",status:w.wn.COMPLETED}})),{type:w.TC.SET_OFFER_BOOKMARKS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.MZ.NO_SPINNER,"Fetching Offer Bookmarks Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.peidOffersDeleteCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.DELETE_OFFER_BOOKMARK_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/delete",{offer_str:x.payload.bolt12}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"DeleteOfferBookmark",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,f.UI)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.TC.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:x.payload.bolt12}})),(0,D.W)(Y=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.MZ.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+w.rl.OFFERS_API+"/offerbookmark/"+x.payload.bolt12,Y),(0,p.of)({type:w.aU.VOID})))))))),this.SetChannelTransactionCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SET_CHANNEL_TRANSACTION_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+w.rl.ON_CHAIN_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SetChannelTransaction",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.SEND_FUNDS})),this.store.dispatch((0,F.g6)()),{type:w.TC.SET_CHANNEL_TRANSACTION_RES_CLN,payload:Y})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.MZ.SEND_FUNDS,"Sending Fund Failed.",Y),(0,p.of)({type:w.aU.VOID})))))))),this.utxoBalancesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_UTXO_BALANCES_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+w.rl.ON_CHAIN_API+"/utxos"))),(0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchUTXOBalances",status:w.wn.COMPLETED}})),{type:w.TC.SET_UTXO_BALANCES_CLN,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchUTXOBalances",w.MZ.NO_SPINNER,"Fetching UTXO and Balances Failed.",x),(0,p.of)({type:w.aU.VOID}))))),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.FETCH_PAGE_SETTINGS_CLN),(0,e.Z)(()=>(this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.INITIATED}})),this.httpClient.get(w.rl.PAGE_SETTINGS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.no)({payload:{action:"FetchPageSettings",status:w.wn.COMPLETED}})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:x||[]})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPageSettings",w.MZ.NO_SPINNER,"Fetching Page Settings Failed.",x),(0,p.of)({type:w.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(w.TC.SAVE_PAGE_SETTINGS_CLN),(0,e.Z)(x=>(this.store.dispatch((0,f.mt)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.INITIATED}})),this.httpClient.post(w.rl.PAGE_SETTINGS_API,x.payload).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.no)({payload:{action:"SavePageSettings",status:w.wn.COMPLETED}})),this.store.dispatch((0,f.y0)({payload:w.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,f.UI)({payload:"Page Layout Updated Successfully!"})),{type:w.TC.SET_PAGE_SETTINGS_CLN,payload:Y||[]})),(0,D.W)(Y=>(this.handleErrorWithAlert("SavePageSettings",w.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",w.rl.PAGE_SETTINGS_API,Y),(0,p.of)({type:w.aU.VOID})))))))),this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(x=>{x.FetchInfo.status!==w.wn.COMPLETED&&x.FetchInfo.status!==w.wn.ERROR||x.FetchChannels.status!==w.wn.COMPLETED&&x.FetchChannels.status!==w.wn.ERROR||x.FetchUTXOBalances.status!==w.wn.COMPLETED&&x.FetchUTXOBalances.status!==w.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,f.y0)({payload:w.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(x=>{this.logger.info("Received new message from the service: "+JSON.stringify(x)),x&&x.data&&x.data[w.Jr.INVOICE_PAYMENT]&&x.data[w.Jr.INVOICE_PAYMENT].label&&this.store.dispatch((0,F.Dq)({payload:x.data[w.Jr.INVOICE_PAYMENT]}))})}initializeRemainingData(t,s){this.sessionService.setItem("clnUnlocked","true");const m={identity_pubkey:t.id,alias:t.alias,testnet:"testnet"===t.network.toLowerCase(),chains:t.chains,uris:t.uris,version:t.version,api_version:t.api_version,numberOfPendingChannels:t.num_pending_channels};this.store.dispatch((0,f.mt)({payload:w.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,f.Fl)({payload:m}));let u=this.location.path();u.includes("/lnd/")?u=u?.replace("/lnd/","/cln/"):u.includes("/ecl/")&&(u=u?.replace("/ecl/","/cln/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===s||u.includes("?access-key="))&&(u="/cln/home"),this.router.navigate([u]),this.store.dispatch((0,F.Do)()),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.g6)()),this.store.dispatch((0,F.kX)({payload:"perkw"})),this.store.dispatch((0,F.kX)({payload:"perkb"})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.CK)())}handleErrorWithoutAlert(t,s,m,u){if(this.logger.error("ERROR IN: "+t+"\n"+JSON.stringify(u)),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,f.y0)({payload:s}));const _=this.commonService.extractErrorMessage(u,m);this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:u.status.toString(),message:_}}))}}handleErrorWithAlert(t,s,m,u,_){if(this.logger.error(_),401===_.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.Jh)()),this.store.dispatch((0,f.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)})),this.store.dispatch((0,f.UI)({payload:"Authentication Failed: "+_.error}));else{this.store.dispatch((0,f.y0)({payload:s}));const T=this.commonService.extractErrorMessage(_);this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:m,message:{code:_.status,message:T,URL:u},component:h.f}}})),this.store.dispatch((0,F.no)({payload:{action:t,status:w.wn.ERROR,statusCode:_.status.toString(),message:T,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(t=>{t.next(null),t.complete()})}static#e=pe=()=>(this.\u0275fac=function(s){return new(s||Ee)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.Q),j.KVO(Q.h),j.KVO($.gP),j.KVO(ie.Ix),j.KVO(_e.I),j.KVO(ye.aZ))},this.\u0275prov=j.jDH({token:Ee,factory:Ee.\u0275fac}))}return pe(),Ee})()},59584(ke,q,l){"use strict";l.d(q,{Al:()=>M,BM:()=>K,Dv:()=>Z,GX:()=>V,Ie:()=>j,KT:()=>h,O5:()=>ie,Pj:()=>F,RB:()=>f,RQ:()=>$,aJ:()=>ee,av:()=>D,ip:()=>_e,kQ:()=>Q,kr:()=>w,mH:()=>o,os:()=>d,ru:()=>A});var g=l(59640);const p=(0,g.UX)("cln"),D=(0,g.Mz)(p,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),o=(0,g.Mz)(p,se=>se.information),A=((0,g.Mz)(p,se=>se.apisCallStatus.FetchInfo),(0,g.Mz)(p,se=>se.apisCallStatus)),h=(0,g.Mz)(p,se=>({payments:se.payments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,g.Mz)(p,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),w=(0,g.Mz)(p,se=>({feeRatesPerKB:se.feeRatesPerKB,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkb})),f=(0,g.Mz)(p,se=>({feeRatesPerKW:se.feeRatesPerKW,apiCallStatus:se.apisCallStatus.FetchFeeRatesperkw})),F=(0,g.Mz)(p,se=>({listInvoices:se.invoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,g.Mz)(p,se=>({utxos:se.utxos,balance:se.balance,localRemoteBalance:se.localRemoteBalance,apiCallStatus:se.apisCallStatus.FetchUTXOBalances})),K=(0,g.Mz)(p,se=>({activeChannels:se.activeChannels,pendingChannels:se.pendingChannels,inactiveChannels:se.inactiveChannels,apiCallStatus:se.apisCallStatus.FetchChannels})),j=(0,g.Mz)(p,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryS})),Z=(0,g.Mz)(p,se=>({failedForwardingHistory:se.failedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryF})),ee=(0,g.Mz)(p,se=>({localFailedForwardingHistory:se.localFailedForwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistoryL})),V=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance,numPeers:se.peers.length})),Q=(0,g.Mz)(p,se=>({information:se.information,balance:se.balance})),$=(0,g.Mz)(p,se=>({information:se.information,fees:se.fees,apisCallStatus:[se.apisCallStatus.FetchInfo,se.apisCallStatus.FetchForwardingHistoryS]})),ie=(0,g.Mz)(p,se=>({offers:se.offers,apiCallStatus:se.apisCallStatus.FetchOffers})),_e=(0,g.Mz)(p,se=>({offersBookmarks:se.offersBookmarks,apiCallStatus:se.apisCallStatus.FetchOfferBookmarks}))},8321(ke,q,l){"use strict";l.d(q,{y:()=>be});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(59584),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(40455),_e=l(38288),ye=l(29157),se=l(89587);const pe=nt=>({"display-none":nt}),Ee=nt=>({"xs-scroll-y":nt}),L=(nt,$e)=>({"mt-2":nt,"mt-1":$e}),t=nt=>({"mr-0":nt}),s=()=>[];function m(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function u(nt,$e){1&nt&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function _(nt,$e){if(1&nt&&h.nrm(0,"span",35),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function T(nt,$e){if(1&nt&&h.nrm(0,"span",36),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function P(nt,$e){if(1&nt&&h.nrm(0,"span",37),2&nt){const dt=h.XpG();h.Y8G("ngClass",h.eq3(1,t,dt.screenSize===dt.screenSizeEnum.XS))}}function C(nt,$e){if(1&nt&&h.nrm(0,"qr-code",33),2&nt){const dt=h.XpG();h.Y8G("value",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))("size",dt.qrWidth)}}function a(nt,$e){1&nt&&(h.j41(0,"span",38),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(nt,$e){1&nt&&h.nrm(0,"mat-divider",39)}function Y(nt,$e){if(1&nt&&(h.j41(0,"div",20)(1,"div",40),h.nrm(2,"fa-icon",41),h.j41(3,"span"),h.EFF(4),h.k0s()()()),2&nt){const dt=h.XpG();h.R7$(2),h.Y8G("icon",dt.faExclamationTriangle),h.R7$(2),h.JRh(null==dt.invoice?null:dt.invoice.warning_capacity)}}function R(nt,$e){1&nt&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function U(nt,$e){1&nt&&h.nrm(0,"span",47)}function fe(nt,$e){if(1&nt&&(h.j41(0,"div",43)(1,"div",44)(2,"span",45),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,U,1,0,"span",46),h.k0s()()),2&nt){const dt=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,s).constructor(35))}}function re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&nt){const dt=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,(null==dt.invoice?null:dt.invoice.amount_received_msat)/1e3)," Sats")}}function he(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,fe,6,5,"div",42)(2,re,3,3,"div",24),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf",dt.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!dt.flgInvoicePaid)}}function Oe(nt,$e){1&nt&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function ge(nt,$e){1&nt&&h.nrm(0,"mat-spinner",49),2&nt&&h.Y8G("diameter",20)}function ce(nt,$e){if(1&nt&&(h.qex(0),h.DNE(1,Oe,2,0,"span",24)(2,ge,1,1,"mat-spinner",48),h.bVm()),2&nt){const dt=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==dt.invoice?null:dt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==dt.invoice?null:dt.invoice.status))}}function Re(nt,$e){if(1&nt&&(h.j41(0,"div"),h.nrm(1,"mat-divider",26),h.j41(2,"div",20)(3,"div",27)(4,"h4",22),h.EFF(5,"Payment Hash"),h.k0s(),h.j41(6,"span",25),h.EFF(7),h.k0s()()(),h.nrm(8,"mat-divider",26),h.j41(9,"div",20)(10,"div",27)(11,"h4",22),h.EFF(12,"Label"),h.k0s(),h.j41(13,"span",25),h.EFF(14),h.k0s()()(),h.nrm(15,"mat-divider",26),h.k0s()),2&nt){const dt=h.XpG();h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.payment_hash),h.R7$(7),h.JRh(null==dt.invoice?null:dt.invoice.label)}}function Me(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function ve(nt,$e){1&nt&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function oe(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",50),h.bIt("copied",function(Et){A.eBV(dt);const rt=h.XpG();return A.Njj(rt.onCopyPayment(Et))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&nt){const dt=h.XpG();h.Y8G("payload",(null==dt.invoice?null:dt.invoice.bolt11)||(null==dt.invoice?null:dt.invoice.bolt12))}}function Se(nt,$e){if(1&nt){const dt=h.RV6();h.j41(0,"button",51),h.bIt("click",function(){A.eBV(dt);const Et=h.XpG();return A.Njj(Et.onClose())}),h.EFF(1,"OK"),h.k0s()}}let be=(()=>{var nt;class $e{constructor(yt,Et,rt,Mn,qt,S){this.dialogRef=yt,this.data=Et,this.logger=rt,this.commonService=Mn,this.snackBar=qt,this.store=S,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.invoiceStatus="",this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.invoiceStatus=this.invoice.status,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.Pj).pipe((0,D.Q)(this.unSubs[1])).subscribe(yt=>{const rt=(yt.listInvoices.invoices||[])?.find(Mn=>Mn.payment_hash===this.invoice.payment_hash)||null;rt&&(this.invoice=rt),this.invoiceStatus!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(this.invoice),this.logger.info(this.invoiceStatus),this.logger.info(rt),this.logger.info(yt)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(yt){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+yt)}ngOnDestroy(){this.unSubs.forEach(yt=>{yt.next(null),yt.complete()})}static#e=nt=()=>(this.\u0275fac=function(Et){return new(Et||$e)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:$e,selectors:[["rtl-cln-invoice-information"]],standalone:!1,decls:72,vars:49,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Et,rt){if(1&Et){const Mn=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,m,1,2,"qr-code",3)(3,u,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.DNE(10,_,1,3,"span",10)(11,T,1,3,"span",11)(12,P,1,3,"span",12),h.k0s()(),h.j41(13,"button",13),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onClose())}),h.EFF(14,"X"),h.k0s()(),h.j41(15,"mat-card-content",14)(16,"div",15)(17,"div",16),h.DNE(18,C,1,2,"qr-code",3)(19,a,2,0,"span",17),h.k0s(),h.DNE(20,x,1,0,"mat-divider",18)(21,Y,5,2,"div",19),h.j41(22,"div",20)(23,"div",21)(24,"h4",22),h.EFF(25),h.k0s(),h.j41(26,"span",23),h.EFF(27),h.nI1(28,"number"),h.DNE(29,R,2,0,"ng-container",24),h.k0s()(),h.j41(30,"div",21)(31,"h4",22),h.EFF(32,"Amount Received"),h.k0s(),h.j41(33,"span",25),h.DNE(34,he,3,2,"ng-container",24)(35,ce,3,2,"ng-container",24),h.k0s()()(),h.nrm(36,"mat-divider",26),h.j41(37,"div",20)(38,"div",21)(39,"h4",22),h.EFF(40,"Date Expiry"),h.k0s(),h.j41(41,"span",23),h.EFF(42),h.nI1(43,"date"),h.k0s()(),h.j41(44,"div",21)(45,"h4",22),h.EFF(46,"Date Settled"),h.k0s(),h.j41(47,"span",23),h.EFF(48),h.nI1(49,"date"),h.k0s()()(),h.nrm(50,"mat-divider",26),h.j41(51,"div",20)(52,"div",27)(53,"h4",22),h.EFF(54,"Description"),h.k0s(),h.j41(55,"span",23),h.EFF(56),h.k0s()()(),h.nrm(57,"mat-divider",26),h.j41(58,"div",20)(59,"div",27)(60,"h4",22),h.EFF(61),h.k0s(),h.j41(62,"span",25),h.EFF(63),h.k0s()()(),h.DNE(64,Re,16,2,"div",24),h.j41(65,"div",28)(66,"button",29),h.bIt("click",function(){return A.eBV(Mn),A.Njj(rt.onShowAdvanced())}),h.DNE(67,Me,2,0,"p",30)(68,ve,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(70,oe,2,1,"button",31)(71,Se,2,0,"button",32),h.k0s()()()()()}if(2&Et){const Mn=h.sdS(69);h.R7$(),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(40,pe,rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(4),h.Y8G("icon",rt.faReceipt),h.R7$(2),h.SpI(" ",rt.screenSize===rt.screenSizeEnum.XS?rt.newlyAdded?"Created":"Invoice":rt.newlyAdded?"Invoice Created":"Invoice Information"," "),h.R7$(),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","unpaid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","expired"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(3),h.Y8G("ngClass",h.eq3(42,Ee,rt.screenSize===rt.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=rt.invoice&&rt.invoice.bolt11&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||null!=rt.invoice&&rt.invoice.bolt12&&""!==(null==rt.invoice?null:rt.invoice.bolt12)?"center start":"center center")("ngClass",h.eq3(44,pe,rt.screenSize!==rt.screenSizeEnum.XS&&rt.screenSize!==rt.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.screenSize===rt.screenSizeEnum.XS||rt.screenSize===rt.screenSizeEnum.SM),h.R7$(),h.Y8G("ngIf",null==rt.invoice?null:rt.invoice.warning_capacity),h.R7$(4),h.JRh(rt.screenSize===rt.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI(" ",h.bMT(28,32,(null==rt.invoice?null:rt.invoice.amount_msat)/1e3||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.amount_msat)||"0"===(null==rt.invoice?null:rt.invoice.amount_msat)||"any"===(null==rt.invoice?null:rt.invoice.amount_msat)),h.R7$(5),h.Y8G("ngIf","paid"===(null==rt.invoice?null:rt.invoice.status)),h.R7$(),h.Y8G("ngIf","paid"!==(null==rt.invoice?null:rt.invoice.status)),h.R7$(7),h.JRh(h.i5U(43,34,1e3*(null==rt.invoice?null:rt.invoice.expires_at),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(49,37,1e3*(null==rt.invoice?null:rt.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),h.R7$(8),h.JRh((null==rt.invoice?null:rt.invoice.description)||"-"),h.R7$(5),h.SpI("",null!=rt.invoice&&rt.invoice.bolt12?"Bolt12":null!=rt.invoice&&rt.invoice.bolt11&&!rt.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),h.R7$(2),h.JRh((null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",rt.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(46,L,!rt.showAdvanced,rt.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!rt.showAdvanced)("ngIfElse",Mn),h.R7$(3),h.Y8G("ngIf",(null==rt.invoice?null:rt.invoice.bolt11)&&""!==(null==rt.invoice?null:rt.invoice.bolt11)||(null==rt.invoice?null:rt.invoice.bolt12)&&""!==(null==rt.invoice?null:rt.invoice.bolt12)),h.R7$(),h.Y8G("ngIf",!(null!=rt.invoice&&rt.invoice.bolt11||null!=rt.invoice&&rt.invoice.bolt12))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.oV,_e.Um,ye.U,se.N,M.QX,M.vh],encapsulation:2}))}return nt(),$e})()},32142(ke,q,l){"use strict";l.d(q,{f:()=>fe});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(2615),A=l(73664),h=l(98570),d=l(82571),w=l(95416),f=l(51534),F=l(72200),M=l(20060),K=l(88834),j=l(25596),Z=l(71997),ee=l(52920),V=l(16038),Q=l(38288),$=l(29157),ie=l(89587);const _e=re=>({"display-none":re}),ye=re=>({"xs-scroll-y":re}),se=(re,he)=>({"mt-2":re,"mt-1":he});function pe(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function Ee(re,he){1&re&&(A.j41(0,"span",29),A.EFF(1,"N/A"),A.k0s())}function L(re,he){if(1&re&&A.nrm(0,"qr-code",28),2&re){const Oe=A.XpG();A.Y8G("value",null==Oe.offer?null:Oe.offer.bolt12)("size",Oe.qrWidth)}}function t(re,he){1&re&&(A.j41(0,"span",30),A.EFF(1,"QR Code Not Applicable"),A.k0s())}function s(re,he){1&re&&A.nrm(0,"mat-divider",31),2&re&&A.Y8G("inset",!0)}function m(re,he){1&re&&A.nrm(0,"mat-divider",20)}function u(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",17)(2,"h4",18),A.EFF(3,"Used"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()(),A.j41(6,"div",17)(7,"h4",18),A.EFF(8,"Single Use"),A.k0s(),A.j41(9,"span",19),A.EFF(10),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.used?null!=Oe.offer&&Oe.offer.used?"Yes":"No":"N/K"," "),A.R7$(5),A.SpI(" ",null!=Oe.offer&&Oe.offer.single_use?null!=Oe.offer&&Oe.offer.single_use?"Yes":"No":"N/K"," ")}}function _(re,he){1&re&&A.nrm(0,"mat-divider",20)}function T(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Issuer"),A.k0s(),A.j41(4,"span",34),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_issuer)}}function P(re,he){1&re&&A.nrm(0,"mat-divider",20)}function C(re,he){if(1&re&&(A.j41(0,"div",16)(1,"div",21)(2,"h4",18),A.EFF(3,"Label"),A.k0s(),A.j41(4,"span",19),A.EFF(5),A.k0s()()()),2&re){const Oe=A.XpG(2);A.R7$(5),A.JRh(Oe.offer.label)}}function a(re,he){if(1&re&&(A.j41(0,"div"),A.DNE(1,m,1,0,"mat-divider",32)(2,u,11,2,"div",33)(3,_,1,0,"mat-divider",32)(4,T,6,1,"div",33)(5,P,1,0,"mat-divider",32)(6,C,6,1,"div",33),A.nrm(7,"mat-divider",20),A.j41(8,"div",16)(9,"div",21)(10,"h4",18),A.EFF(11,"Offer ID"),A.k0s(),A.j41(12,"span",19),A.EFF(13),A.k0s()()(),A.nrm(14,"mat-divider",20),A.j41(15,"div",16)(16,"div",21)(17,"h4",18),A.EFF(18,"Offer Node ID"),A.k0s(),A.j41(19,"span",19),A.EFF(20),A.k0s()()(),A.nrm(21,"mat-divider",20),A.k0s()),2&re){const Oe=A.XpG();A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",(null==Oe.offer?null:Oe.offer.used)||(null==Oe.offer?null:Oe.offer.single_use)),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",null==Oe.offerDecoded?null:Oe.offerDecoded.issuer),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(),A.Y8G("ngIf",Oe.offer.label),A.R7$(7),A.JRh(Oe.offerDecoded.offer_id),A.R7$(7),A.JRh(null==Oe.offerDecoded?null:Oe.offerDecoded.offer_node_id)}}function x(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Show Advanced"),A.k0s())}function Y(re,he){1&re&&(A.j41(0,"p"),A.EFF(1,"Hide Advanced"),A.k0s())}function R(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",35),A.bIt("copied",function(ce){e.eBV(Oe);const Re=A.XpG();return e.Njj(Re.onCopyOffer(ce))}),A.EFF(1,"Copy Offer"),A.k0s()}if(2&re){const Oe=A.XpG();A.Y8G("payload",null==Oe.offer?null:Oe.offer.bolt12)}}function U(re,he){if(1&re){const Oe=A.RV6();A.j41(0,"button",36),A.bIt("click",function(){e.eBV(Oe);const ce=A.XpG();return e.Njj(ce.onClose())}),A.EFF(1,"OK"),A.k0s()}}let fe=(()=>{var re;class he{constructor(ge,ce,Re,Me,ve,oe){this.dialogRef=ge,this.data=ce,this.logger=Re,this.commonService=Me,this.snackBar=ve,this.dataService=oe,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOfferPaid=!1,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,D.Q)(this.unSubs[1])).subscribe(ge=>{this.offerDecoded=ge,this.offerDecoded.offer_id&&!this.offerDecoded.offer_amount_msat&&(this.offerDecoded.offer_amount_msat=0)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(ge){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+ge)}ngOnDestroy(){this.unSubs.forEach(ge=>{ge.next(null),ge.complete()})}static#e=re=()=>(this.\u0275fac=function(ce){return new(ce||he)(A.rXU(i.CP),A.rXU(i.Vh),A.rXU(h.gP),A.rXU(d.h),A.rXU(w.UG),A.rXU(f.u))},this.\u0275cmp=A.VBU({type:he,selectors:[["rtl-cln-offer-information"]],standalone:!1,decls:52,vars:33,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Re){if(1&ce){const Me=A.RV6();A.j41(0,"div",1)(1,"div",2),A.DNE(2,pe,1,2,"qr-code",3)(3,Ee,2,0,"span",4),A.k0s(),A.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),A.nrm(7,"fa-icon",8),A.j41(8,"span",9),A.EFF(9),A.k0s()(),A.j41(10,"button",10),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onClose())}),A.EFF(11,"X"),A.k0s()(),A.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),A.DNE(15,L,1,2,"qr-code",3)(16,t,2,0,"span",14),A.k0s(),A.DNE(17,s,1,1,"mat-divider",15),A.j41(18,"div",16)(19,"div",17)(20,"h4",18),A.EFF(21,"Amount Requested (Sats)"),A.k0s(),A.j41(22,"span",19),A.EFF(23),A.nI1(24,"number"),A.k0s()(),A.j41(25,"div",17)(26,"h4",18),A.EFF(27,"Valid"),A.k0s(),A.j41(28,"span",19),A.EFF(29),A.k0s()()(),A.nrm(30,"mat-divider",20),A.j41(31,"div",16)(32,"div",21)(33,"h4",18),A.EFF(34,"Description"),A.k0s(),A.j41(35,"span",19),A.EFF(36),A.k0s()()(),A.nrm(37,"mat-divider",20),A.j41(38,"div",16)(39,"div",21)(40,"h4",18),A.EFF(41,"Offer"),A.k0s(),A.j41(42,"span",19),A.EFF(43),A.k0s()()(),A.DNE(44,a,22,8,"div",22),A.j41(45,"div",23)(46,"button",24),A.bIt("click",function(){return e.eBV(Me),e.Njj(Re.onShowAdvanced())}),A.DNE(47,x,2,0,"p",25)(48,Y,2,0,"ng-template",null,0,A.C5r),A.k0s(),A.DNE(50,R,2,1,"button",26)(51,U,2,0,"button",27),A.k0s()()()()()}if(2&ce){const Me=A.sdS(49);A.R7$(),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(24,_e,Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(4),A.Y8G("icon",Re.faReceipt),A.R7$(2),A.JRh(Re.screenSize===Re.screenSizeEnum.XS?Re.newlyAdded?"Created":"Offer":Re.newlyAdded?"Offer Created":"Offer Information"),A.R7$(3),A.Y8G("ngClass",A.eq3(26,ye,Re.screenSize===Re.screenSizeEnum.XS)),A.R7$(2),A.Y8G("fxLayoutAlign",null!=Re.offer&&Re.offer.bolt12&&""!==(null==Re.offer?null:Re.offer.bolt12)?"center start":"center center")("ngClass",A.eq3(28,_e,Re.screenSize!==Re.screenSizeEnum.XS&&Re.screenSize!==Re.screenSizeEnum.SM)),A.R7$(),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",Re.screenSize===Re.screenSizeEnum.XS||Re.screenSize===Re.screenSizeEnum.SM),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.offer_amount_msat&&0!==(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)?A.bMT(24,22,(null==Re.offerDecoded?null:Re.offerDecoded.offer_amount_msat)/1e3):"Open Offer"," "),A.R7$(6),A.SpI(" ",null!=Re.offerDecoded&&Re.offerDecoded.valid?null!=Re.offerDecoded&&Re.offerDecoded.valid?"Yes":"No":"N/K"," "),A.R7$(7),A.SpI(" ",null==Re.offerDecoded?null:Re.offerDecoded.offer_description," "),A.R7$(7),A.JRh(null==Re.offer?null:Re.offer.bolt12),A.R7$(),A.Y8G("ngIf",Re.showAdvanced),A.R7$(),A.Y8G("ngClass",A.l_i(30,se,!Re.showAdvanced,Re.showAdvanced)),A.R7$(2),A.Y8G("ngIf",!Re.showAdvanced)("ngIfElse",Me),A.R7$(3),A.Y8G("ngIf",(null==Re.offer?null:Re.offer.bolt12)&&""!==(null==Re.offer?null:Re.offer.bolt12)),A.R7$(),A.Y8G("ngIf",!(null!=Re.offer&&Re.offer.bolt12)||""===(null==Re.offer?null:Re.offer.bolt12))}},dependencies:[F.YU,F.bT,M.aY,K.$z,j.m2,j.MM,Z.q,ee.DJ,ee.sA,ee.UI,V.PW,Q.Um,$.U,ie.N,F.QX],encapsulation:2}))}return re(),he})()},95428(ke,q,l){"use strict";l.d(q,{$6:()=>Oe,$Q:()=>F,As:()=>U,CK:()=>T,Do:()=>he,Dq:()=>Re,Fd:()=>x,Gy:()=>$,Hh:()=>D,Hm:()=>a,I6:()=>j,Jx:()=>ce,Lc:()=>pe,Lz:()=>fe,N4:()=>Y,N8:()=>V,NS:()=>e,Qj:()=>ie,Sn:()=>A,T4:()=>C,Tp:()=>M,Uj:()=>P,Uo:()=>f,XT:()=>L,Xx:()=>ee,Yi:()=>ve,ZE:()=>Q,Zi:()=>Ee,cR:()=>_,cU:()=>K,fy:()=>m,gZ:()=>Se,iO:()=>ge,jJ:()=>Z,lg:()=>o,mh:()=>R,sq:()=>_e,uL:()=>p,vL:()=>s,w0:()=>u,x1:()=>d,yn:()=>be,yp:()=>w,zR:()=>h,zU:()=>Me});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.Uu.UPDATE_API_CALL_STATUS_ECL,(0,i.xk)()),D=(0,i.VP)(g.Uu.RESET_ECL_STORE),o=(0,i.VP)(g.Uu.FETCH_PAGE_SETTINGS_ECL),e=(0,i.VP)(g.Uu.SET_PAGE_SETTINGS_ECL,(0,i.xk)()),A=(0,i.VP)(g.Uu.SAVE_PAGE_SETTINGS_ECL,(0,i.xk)()),h=(0,i.VP)(g.Uu.FETCH_INFO_ECL,(0,i.xk)()),d=(0,i.VP)(g.Uu.SET_INFO_ECL,(0,i.xk)()),w=(0,i.VP)(g.Uu.FETCH_FEES_ECL),f=(0,i.VP)(g.Uu.SET_FEES_ECL,(0,i.xk)()),F=(0,i.VP)(g.Uu.FETCH_CHANNELS_ECL),M=(0,i.VP)(g.Uu.SET_ACTIVE_CHANNELS_ECL,(0,i.xk)()),K=(0,i.VP)(g.Uu.SET_PENDING_CHANNELS_ECL,(0,i.xk)()),j=(0,i.VP)(g.Uu.SET_INACTIVE_CHANNELS_ECL,(0,i.xk)()),Z=(0,i.VP)(g.Uu.FETCH_ONCHAIN_BALANCE_ECL),ee=(0,i.VP)(g.Uu.SET_ONCHAIN_BALANCE_ECL,(0,i.xk)()),V=(0,i.VP)(g.Uu.SET_LIGHTNING_BALANCE_ECL,(0,i.xk)()),Q=(0,i.VP)(g.Uu.SET_CHANNELS_STATUS_ECL,(0,i.xk)()),$=(0,i.VP)(g.Uu.FETCH_PEERS_ECL),ie=(0,i.VP)(g.Uu.SET_PEERS_ECL,(0,i.xk)()),_e=(0,i.VP)(g.Uu.SAVE_NEW_PEER_ECL,(0,i.xk)()),pe=((0,i.VP)(g.Uu.NEWLY_ADDED_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.ADD_PEER_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.DETACH_PEER_ECL,(0,i.xk)())),Ee=(0,i.VP)(g.Uu.REMOVE_PEER_ECL,(0,i.xk)()),L=(0,i.VP)(g.Uu.GET_NEW_ADDRESS_ECL),s=((0,i.VP)(g.Uu.SET_NEW_ADDRESS_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.SAVE_NEW_CHANNEL_ECL,(0,i.xk)())),m=(0,i.VP)(g.Uu.UPDATE_CHANNEL_ECL,(0,i.xk)()),u=(0,i.VP)(g.Uu.CLOSE_CHANNEL_ECL,(0,i.xk)()),_=(0,i.VP)(g.Uu.REMOVE_CHANNEL_ECL,(0,i.xk)()),T=(0,i.VP)(g.Uu.FETCH_PAYMENTS_ECL,(0,i.xk)()),P=(0,i.VP)(g.Uu.SET_PAYMENTS_ECL,(0,i.xk)()),C=(0,i.VP)(g.Uu.GET_QUERY_ROUTES_ECL,(0,i.xk)()),a=(0,i.VP)(g.Uu.SET_QUERY_ROUTES_ECL,(0,i.xk)()),x=(0,i.VP)(g.Uu.SEND_PAYMENT_ECL,(0,i.xk)()),Y=(0,i.VP)(g.Uu.SEND_PAYMENT_STATUS_ECL,(0,i.xk)()),R=(0,i.VP)(g.Uu.FETCH_TRANSACTIONS_ECL,(0,i.xk)()),U=(0,i.VP)(g.Uu.SET_TRANSACTIONS_ECL,(0,i.xk)()),fe=(0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_ECL,(0,i.xk)()),he=((0,i.VP)(g.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.FETCH_INVOICES_ECL,(0,i.xk)())),Oe=(0,i.VP)(g.Uu.SET_INVOICES_ECL,(0,i.xk)()),ge=(0,i.VP)(g.Uu.CREATE_INVOICE_ECL,(0,i.xk)()),ce=(0,i.VP)(g.Uu.ADD_INVOICE_ECL,(0,i.xk)()),Re=(0,i.VP)(g.Uu.UPDATE_INVOICE_ECL,(0,i.xk)()),Me=(0,i.VP)(g.Uu.PEER_LOOKUP_ECL,(0,i.xk)()),ve=(0,i.VP)(g.Uu.INVOICE_LOOKUP_ECL,(0,i.xk)()),Se=((0,i.VP)(g.Uu.SET_LOOKUP_ECL,(0,i.xk)()),(0,i.VP)(g.Uu.UPDATE_CHANNEL_STATE_ECL,(0,i.xk)())),be=(0,i.VP)(g.Uu.UPDATE_RELAYED_PAYMENT_ECL,(0,i.xk)())},13017(ke,q,l){"use strict";l.d(q,{B:()=>ye});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(12462),d=l(4416),w=l(11771),f=l(86439),F=l(95428),M=l(72730),K=l(2615),j=l(29330),Z=l(59640),ee=l(53202),V=l(82571),Q=l(98570),$=l(43694),ie=l(7879),_e=l(57303);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u,_,T,P,C){this.actions=L,this.httpClient=t,this.store=s,this.sessionService=m,this.commonService=u,this.logger=_,this.router=T,this.wsService=P,this.location=C,this.CHILD_API_URL=d.H$+"/ecl",this.invoicesPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"invoices"===a.tableId),this.paymentsPageSettings=d.X8.find(a=>"transactions"===a.pageId)?.tables.find(a=>"payments"===a.tableId),this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new g.B,new g.B,new g.B],this.infoFetchECL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INFO_ECL),(0,e.Z)(a=>(this.flgInitialized=!1,this.store.dispatch((0,w.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.mt)({payload:d.MZ.GET_NODE_INFO})),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(d.aU.SET_SELECTED_NODE))),(0,o.T)(x=>(this.logger.info(x),this.initializeRemainingData(x,a.payload.loadPage),this.store.dispatch((0,F.uL)({payload:{action:"FetchInfo",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.GET_NODE_INFO})),{type:d.Uu.SET_INFO_ECL,payload:x||{}})),(0,D.W)(x=>{const Y=this.commonService.extractErrorCode(x),R=503===Y?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(x);return this.router.navigate(["/error"],{state:{errorCode:Y,errorMessage:R}}),this.handleErrorWithoutAlert("FetchInfo",d.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:Y,error:R}),(0,p.of)({type:d.aU.VOID})})))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_FEES_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/fees").pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchFees",status:d.wn.COMPLETED}})),{type:d.Uu.SET_FEES_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchFees",d.MZ.NO_SPINNER,"Fetching Fees Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.fetchPayments=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAYMENTS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.FEES_API+"/payments?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchPayments",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PAYMENTS_ECL,payload:x||{}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchPayments",d.MZ.NO_SPINNER,"Fetching Payments Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_CHANNELS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.CHANNELS_API).pipe((0,o.T)(x=>(this.logger.info(x),this.rawChannelsList=x,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,F.uL)({payload:{action:"FetchChannels",status:d.wn.COMPLETED}})),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchChannels",d.MZ.NO_SPINNER,"Fetching Channels Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.fetchOnchainBalance=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_ONCHAIN_BALANCE_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/balance"))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchOnchainBalance",status:d.wn.COMPLETED}})),{type:d.Uu.SET_ONCHAIN_BALANCE_ECL,payload:a||{}})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchOnchainBalance",d.MZ.NO_SPINNER,"Fetching Onchain Balances Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PEERS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.PEERS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPeers",status:d.wn.COMPLETED}})),{type:d.Uu.SET_PEERS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPeers",d.MZ.NO_SPINNER,"Fetching Peers Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_NEW_ADDRESS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,w.mt)({payload:d.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,w.y0)({payload:d.MZ.GENERATE_NEW_ADDRESS})),{type:d.Uu.SET_NEW_ADDRESS_ECL,payload:a})),(0,D.W)(a=>(this.handleErrorWithAlert("GetNewAddress",d.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+d.rl.ON_CHAIN_API,a),(0,p.of)({type:d.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_NEW_ADDRESS_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PEERS_API+(a.payload.id.includes("@")?"?uri=":"?nodeId=")+a.payload.id,{}).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewPeer",status:d.wn.COMPLETED}})),x=x||[],this.store.dispatch((0,w.y0)({payload:d.MZ.CONNECT_PEER})),this.store.dispatch((0,F.Qj)({payload:x})),{type:d.Uu.NEWLY_ADDED_PEER_ECL,payload:{peer:x.find(Y=>Y.nodeId===(a.payload.id.includes("@")?a.payload.id.substring(0,a.payload.id.indexOf("@")):a.payload.id))}})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SaveNewPeer",d.MZ.CONNECT_PEER,"Peer Connection Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.DETACH_PEER_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,w.y0)({payload:d.MZ.DISCONNECT_PEER})),this.store.dispatch((0,w.UI)({payload:"Disconnecting Peer!"})),{type:d.Uu.REMOVE_PEER_ECL,payload:{nodeId:a.payload.nodeId}})),(0,D.W)(x=>(this.handleErrorWithAlert("DisconnectPeer",d.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+d.rl.PEERS_API+"/"+a.payload.nodeId,x),(0,p.of)({type:d.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_NEW_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.INITIATED}}));const x={nodeId:a.payload.nodeId,fundingSatoshis:a.payload.amount,announceChannel:!a.payload.private};return a.payload.feeRate&&a.payload.feeRate>0&&(x.fundingFeerateSatByte=a.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API,x).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,F.uL)({payload:{action:"SaveNewChannel",status:d.wn.COMPLETED}})),this.store.dispatch((0,F.Gy)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,w.y0)({payload:d.MZ.OPEN_CHANNEL})),this.store.dispatch((0,w.UI)({payload:"Channel Added Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithoutAlert("SaveNewChannel",d.MZ.OPEN_CHANNEL,"Opening Channel Failed.",Y),(0,p.of)({type:d.aU.VOID}))))}))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.UPDATE_CHANNEL_ECL),(0,e.Z)(a=>{this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_CHAN_POLICY}));let x="?feeBaseMsat="+a.payload.baseFeeMsat+"&feeProportionalMillionths="+a.payload.feeRate;return x=a.payload.nodeIds?x+"&nodeIds="+a.payload.nodeIds:a.payload.nodeId?x+"&nodeId="+a.payload.nodeId:a.payload.channelIds?x+"&channelIds="+a.payload.channelIds:x+"&channelId="+a.payload.channelId,this.httpClient.post(this.CHILD_API_URL+d.rl.CHANNELS_API+"/updateRelayFee"+x,{}).pipe((0,o.T)(Y=>(this.logger.info(Y),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.UI)(a.payload.nodeIds||a.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:d.Uu.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,D.W)(Y=>(this.handleErrorWithAlert("UpdateChannels",d.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+d.rl.CHANNELS_API,Y),(0,p.of)({type:d.aU.VOID}))))}))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CLOSE_CHANNEL_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+d.rl.CHANNELS_API+"?channelId="+a.payload.channelId+"&force="+a.payload.force).pipe((0,o.T)(x=>(this.logger.info(x),setTimeout(()=>{this.store.dispatch((0,w.y0)({payload:a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,w.UI)({payload:a.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.handleErrorWithAlert("CloseChannel",a.payload.force?d.MZ.FORCE_CLOSE_CHANNEL:d.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+d.rl.CHANNELS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.GET_QUERY_ROUTES_ECL),(0,e.Z)(a=>this.httpClient.get(this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount).pipe((0,o.T)(x=>(this.logger.info(x),{type:d.Uu.SET_QUERY_ROUTES_ECL,payload:x})),(0,D.W)(x=>(this.store.dispatch((0,F.Hm)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",d.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API+"/route?nodeId="+a.payload.nodeId+"&amountMsat="+a.payload.amount,x),(0,p.of)({type:d.aU.VOID}))))))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_QUERY_ROUTES_ECL),(0,o.T)(a=>a.payload)),{dispatch:!1}),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_PAYMENT_ECL),(0,e.Z)(a=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.PAYMENTS_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.latestPaymentRes=x,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:d.aU.VOID})),(0,D.W)(x=>(this.logger.error("Error: "+JSON.stringify(x)),a.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed.",x):this.handleErrorWithAlert("SendPayment",d.MZ.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+d.rl.PAYMENTS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_TRANSACTIONS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.ON_CHAIN_API+"/transactions?count="+a.payload.count+"&skip="+a.payload.skip))),(0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchTransactions",status:d.wn.COMPLETED}})),{type:d.Uu.SET_TRANSACTIONS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchTransactions",d.MZ.NO_SPINNER,"Fetching Transactions Failed.",a),(0,p.of)({type:d.aU.VOID}))))),this.SendOnchainFunds=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SEND_ONCHAIN_FUNDS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.ON_CHAIN_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SendOnchainFunds",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_FUNDS})),this.store.dispatch((0,F.jJ)()),{type:d.Uu.SEND_ONCHAIN_FUNDS_RES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("SendOnchainFunds",d.MZ.SEND_FUNDS,"Sending Fund Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.createInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.CREATE_INVOICE_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.CREATE_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+d.rl.INVOICES_API,a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"CreateInvoice",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.CREATE_INVOICE})),x.timestamp=Math.round((new Date).getTime()/1e3),x.expiresAt=Math.round(x.timestamp+a.payload.expireIn),x.description=a.payload.description,x.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.xO)({payload:{data:{invoice:x,newlyAdded:!0,component:f.Z}}}))},200),{type:d.Uu.ADD_INVOICE_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("CreateInvoice",d.MZ.CREATE_INVOICE,"Create Invoice Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_INVOICES_ECL),(0,e.Z)(a=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"?count="+a.payload.count+"&skip="+a.payload.skip).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"FetchInvoices",status:d.wn.COMPLETED}})),{type:d.Uu.SET_INVOICES_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("FetchInvoices",d.MZ.NO_SPINNER,"Fetching Invoices Failed.",x),(0,p.of)({type:d.aU.VOID})))))))),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.PEER_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_NODE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_NODE})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithAlert("Lookup",d.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+d.rl.NETWORK_API+"/nodes/"+a.payload,x),(0,p.of)({type:d.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.INVOICE_LOOKUP_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+d.rl.INVOICES_API+"/"+a.payload).pipe((0,o.T)(x=>(this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"Lookup",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,F.Dq)({payload:x})),{type:d.Uu.SET_LOOKUP_ECL,payload:x})),(0,D.W)(x=>(this.handleErrorWithoutAlert("Lookup",d.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",x),this.store.dispatch((0,w.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:d.aU.VOID})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SET_LOOKUP_ECL),(0,o.T)(a=>(this.logger.info(a.payload),a.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.FETCH_PAGE_SETTINGS_ECL),(0,e.Z)(()=>(this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.INITIATED}})),this.httpClient.get(d.rl.PAGE_SETTINGS_API).pipe((0,o.T)(a=>(this.logger.info(a),this.store.dispatch((0,F.uL)({payload:{action:"FetchPageSettings",status:d.wn.COMPLETED}})),this.invoicesPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"invoices"===x.tableId),this.paymentsPageSettings=a&&Object.keys(a).length>0?a.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId):d.X8.find(x=>"transactions"===x.pageId)?.tables.find(x=>"payments"===x.tableId),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:a||[]})),(0,D.W)(a=>(this.handleErrorWithoutAlert("FetchPageSettings",d.MZ.NO_SPINNER,"Fetching Page Settings Failed.",a),(0,p.of)({type:d.aU.VOID})))))))),this.savePageSettingsCL=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(d.Uu.SAVE_PAGE_SETTINGS_ECL),(0,e.Z)(a=>(this.store.dispatch((0,w.mt)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.INITIATED}})),this.httpClient.post(d.rl.PAGE_SETTINGS_API,a.payload).pipe((0,o.T)(x=>{this.logger.info(x),this.store.dispatch((0,F.uL)({payload:{action:"SavePageSettings",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.UI)({payload:"Page Layout Updated Successfully!"}));const Y=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId))?.recordsPerPage,R=(x.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId)||d.X8.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId))?.recordsPerPage;return this.invoicesPageSettings&&Y!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=Y),this.paymentsPageSettings&&R!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=R),{type:d.Uu.SET_PAGE_SETTINGS_ECL,payload:x||[]}}),(0,D.W)(x=>(this.handleErrorWithAlert("SavePageSettings",d.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",d.rl.PAGE_SETTINGS_API,x),(0,p.of)({type:d.aU.VOID})))))))),this.handleSendPaymentStatus=a=>{this.store.dispatch((0,F.uL)({payload:{action:"SendPayment",status:d.wn.COMPLETED}})),this.store.dispatch((0,w.y0)({payload:d.MZ.SEND_PAYMENT})),this.store.dispatch((0,F.N4)({payload:this.latestPaymentRes})),this.store.dispatch((0,w.UI)({payload:a}))},this.store.select(M.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(a=>{a.FetchInfo.status!==d.wn.COMPLETED&&a.FetchInfo.status!==d.wn.ERROR||a.FetchFees.status!==d.wn.COMPLETED&&a.FetchFees.status!==d.wn.ERROR||a.FetchOnchainBalance.status!==d.wn.COMPLETED&&a.FetchOnchainBalance.status!==d.wn.ERROR||a.FetchChannels.status!==d.wn.COMPLETED&&a.FetchChannels.status!==d.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.y0)({payload:d.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(a=>{this.logger.info("Received new message from the service: "+JSON.stringify(a));let x="";if(a)switch(a.type){case d.ck.PAYMENT_SENT:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Sent: "+(a.paymentHash?"with payment hash "+a.paymentHash:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_FAILED:a&&a.id&&this.latestPaymentRes===a.id&&(this.flgReceivedPaymentUpdateFromWS=!0,x="Payment Failed: "+(a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].t?a.failures[0].t:a.failures&&a.failures.length&&a.failures.length>0&&a.failures[0].e&&a.failures[0].e.failureMessage?a.failures[0].e.failureMessage:JSON.stringify(a)),this.handleSendPaymentStatus(x));break;case d.ck.PAYMENT_RECEIVED:this.store.dispatch((0,F.Dq)({payload:a}));break;case d.ck.PAYMENT_RELAYED:delete a.source,a.amountIn=Math.round((a.amountIn||0)/1e3),a.amountOut=Math.round((a.amountOut||0)/1e3),a.timestamp.unix&&(a.timestamp=1e3*a.timestamp.unix),this.store.dispatch((0,F.yn)({payload:a}));break;case d.ck.CHANNEL_STATE_CHANGED:"NORMAL"===a.currentState||"CLOSED"===a.currentState?(this.rawChannelsList=this.rawChannelsList?.map(Y=>(Y.channelId===a.channelId&&Y.nodeId===a.remoteNodeId&&(Y.state=a.currentState),Y)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,F.gZ)({payload:a}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(a))}})}setChannelsAndStatusAndBalances(){let L=0,t=0,s=0,m={localBalance:0,remoteBalance:0},u=[];const _=[],T=[],P={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((C,a)=>{C&&("NORMAL"===C.state?(L=(C.toLocal||0)+(C.toRemote||0),t+=C.toLocal||0,s+=C.toRemote||0,C.balancedness=0===L?1:+(1-Math.abs(((C.toLocal||0)-(C.toRemote||0))/L)).toFixed(3),u.push(C),P.active.channels=P.active.channels+1,P.active.capacity=P.active.capacity+(C.toLocal||0)):C.state?.includes("WAIT")||C.state?.includes("CLOSING")||C.state?.includes("SYNCING")?(C.state=C.state?.replace(/_/g," "),_.push(C),P.pending.channels=P.pending.channels+1,P.pending.capacity=P.pending.capacity+(C.toLocal||0)):(C.state=C.state?.replace(/_/g," "),T.push(C),P.inactive.channels=P.inactive.channels+1,P.inactive.capacity=P.inactive.capacity+(C.toLocal||0)))}),m={localBalance:t,remoteBalance:s},u=this.commonService.sortDescByKey(u,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(u)),this.logger.info("Pending Channels: "+JSON.stringify(_)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(m)),this.logger.info("Channels Status: "+JSON.stringify(P)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:u,pending:_,inactive:T,balances:m,status:P})),this.store.dispatch((0,F.Tp)({payload:u})),this.store.dispatch((0,F.cU)({payload:_})),this.store.dispatch((0,F.I6)({payload:T})),this.store.dispatch((0,F.N8)({payload:m})),this.store.dispatch((0,F.ZE)({payload:P}))}initializeRemainingData(L,t){this.sessionService.setItem("eclUnlocked","true");const s={identity_pubkey:L.nodeId,alias:L.alias,testnet:"testnet"===L.network,chains:L.publicAddresses,uris:L.uris,version:L.version,numberOfPendingChannels:0};this.store.dispatch((0,w.mt)({payload:d.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,w.Fl)({payload:s}));let m=this.location.path();m.includes("/lnd/")?m=m?.replace("/lnd/","/ecl/"):m.includes("/cln/")&&(m=m?.replace("/cln/","/ecl/")),(m.includes("/login")||m.includes("/error")||""===m||"HOME"===t||m.includes("?access-key="))&&(m="/ecl/home"),this.router.navigate([m]),this.store.dispatch((0,F.$Q)()),this.store.dispatch((0,F.yp)()),this.store.dispatch((0,F.jJ)()),this.store.dispatch((0,F.Gy)())}handleErrorWithoutAlert(L,t,s,m){this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(m)),401===m.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(m.error)}))):(this.store.dispatch((0,w.y0)({payload:t})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:m.status.toString(),message:this.commonService.extractErrorMessage(m,s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.Jh)()),this.store.dispatch((0,w.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,w.y0)({payload:t}));const _=this.commonService.extractErrorMessage(u);this.store.dispatch((0,w.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status,message:_,URL:m},component:h.f}}})),this.store.dispatch((0,F.uL)({payload:{action:L,status:d.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(K.KVO(i.En),K.KVO(j.Qq),K.KVO(Z.il),K.KVO(ee.Q),K.KVO(V.h),K.KVO(Q.gP),K.KVO($.Ix),K.KVO(ie.I),K.KVO(_e.aZ))},this.\u0275prov=K.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},72730(ke,q,l){"use strict";l.d(q,{DW:()=>ee,KT:()=>h,Ou:()=>M,b_:()=>o,gN:()=>K,jZ:()=>p,oR:()=>d,os:()=>Z,p3:()=>D,rN:()=>j,ru:()=>A});var i=l(59640);const g=(0,i.UX)("ecl"),p=(0,i.Mz)(g,V=>({pageSettings:V.pageSettings,apiCallStatus:V.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,V=>V.information),o=(0,i.Mz)(g,V=>({information:V.information,apiCallStatus:V.apisCallStatus.FetchInfo})),A=((0,i.Mz)(g,V=>V.apisCallStatus.FetchInfo),(0,i.Mz)(g,V=>V.apisCallStatus)),h=(0,i.Mz)(g,V=>({payments:V.payments,apiCallStatus:V.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,V=>({fees:V.fees,apiCallStatus:V.apisCallStatus.FetchFees})),M=((0,i.Mz)(g,V=>({activeChannels:V.activeChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({pendingChannels:V.pendingChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({inactiveChannels:V.inactiveChannels,apiCallStatus:V.apisCallStatus.FetchChannels})),(0,i.Mz)(g,V=>({activeChannels:V.activeChannels,pendingChannels:V.pendingChannels,inactiveChannels:V.inactiveChannels,lightningBalance:V.lightningBalance,channelsStatus:V.channelsStatus,apiCallStatus:V.apisCallStatus.FetchChannels}))),K=(0,i.Mz)(g,V=>({transactions:V.transactions,apiCallStatus:V.apisCallStatus.FetchTransactions})),j=(0,i.Mz)(g,V=>({invoices:V.invoices,apiCallStatus:V.apisCallStatus.FetchInvoices})),Z=(0,i.Mz)(g,V=>({peers:V.peers,apiCallStatus:V.apisCallStatus.FetchPeers})),ee=(0,i.Mz)(g,V=>({onchainBalance:V.onchainBalance,apiCallStatus:V.apisCallStatus.FetchOnchainBalance}))},86439(ke,q,l){"use strict";l.d(q,{Z:()=>ce});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(72730),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(71997),V=l(9183),Q=l(52920),$=l(16038),ie=l(38288),_e=l(29157),ye=l(89587);const se=Re=>({"display-none":Re}),pe=Re=>({"xs-scroll-y":Re}),Ee=(Re,Me)=>({"mt-2":Re,"mt-1":Me}),L=()=>[];function t(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function s(Re,Me){1&Re&&(h.j41(0,"span",30),h.EFF(1,"N/A"),h.k0s())}function m(Re,Me){if(1&Re&&h.nrm(0,"qr-code",29),2&Re){const ve=h.XpG();h.Y8G("value",null==ve.invoice?null:ve.invoice.serialized)("size",ve.qrWidth)}}function u(Re,Me){1&Re&&(h.j41(0,"span",31),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function _(Re,Me){1&Re&&h.nrm(0,"mat-divider",32),2&Re&&h.Y8G("inset",!0)}function T(Re,Me){1&Re&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function P(Re,Me){1&Re&&h.nrm(0,"span",38)}function C(Re,Me){if(1&Re&&(h.j41(0,"div",34)(1,"div",35)(2,"span",36),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,P,1,0,"span",37),h.k0s()()),2&Re){const ve=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==ve.invoice?null:ve.invoice.amountSettled)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,L).constructor(35))}}function a(Re,Me){if(1&Re&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&Re){const ve=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==ve.invoice?null:ve.invoice.amountSettled)," Sats")}}function x(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,C,6,5,"div",33)(2,a,3,3,"div",20),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf",ve.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!ve.flgInvoicePaid)}}function Y(Re,Me){1&Re&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function R(Re,Me){1&Re&&h.nrm(0,"mat-spinner",40),2&Re&&h.Y8G("diameter",20)}function U(Re,Me){if(1&Re&&(h.qex(0),h.DNE(1,Y,2,0,"span",20)(2,R,1,1,"mat-spinner",39),h.bVm()),2&Re){const ve=h.XpG();h.R7$(),h.Y8G("ngIf","unpaid"!==(null==ve.invoice?null:ve.invoice.status)||!ve.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","unpaid"===(null==ve.invoice?null:ve.invoice.status)&&ve.flgVersionCompatible)}}function fe(Re,Me){if(1&Re&&(h.j41(0,"div"),h.nrm(1,"mat-divider",21),h.j41(2,"div",16)(3,"div",41)(4,"h4",18),h.EFF(5,"Date Expiry"),h.k0s(),h.j41(6,"span",19),h.EFF(7),h.nI1(8,"date"),h.k0s()(),h.j41(9,"div",42)(10,"h4",18),h.EFF(11,"Date Settled"),h.k0s(),h.j41(12,"span",22),h.EFF(13),h.nI1(14,"date"),h.k0s()()(),h.nrm(15,"mat-divider",21),h.j41(16,"div",16)(17,"div",23)(18,"h4",18),h.EFF(19,"Payment Hash"),h.k0s(),h.j41(20,"span",22),h.EFF(21),h.k0s()()(),h.nrm(22,"mat-divider",21),h.j41(23,"div",16)(24,"div",23)(25,"h4",18),h.EFF(26,"Node ID"),h.k0s(),h.j41(27,"span",22),h.EFF(28),h.k0s()()(),h.nrm(29,"mat-divider",21),h.k0s()),2&Re){const ve=h.XpG();h.R7$(7),h.JRh(h.i5U(8,4,1e3*(null==ve.invoice?null:ve.invoice.expiresAt),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.i5U(14,7,1e3*(null==ve.invoice?null:ve.invoice.receivedAt),"dd/MMM/y HH:mm")),h.R7$(8),h.JRh(null==ve.invoice?null:ve.invoice.paymentHash),h.R7$(7),h.JRh(null==ve.invoice?null:ve.invoice.nodeId)}}function re(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function he(Re,Me){1&Re&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Oe(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",43),h.bIt("copied",function(Se){A.eBV(ve);const be=h.XpG();return A.Njj(be.onCopyPayment(Se))}),h.EFF(1,"Copy Invoice"),h.k0s()}if(2&Re){const ve=h.XpG();h.Y8G("payload",null==ve.invoice?null:ve.invoice.serialized)}}function ge(Re,Me){if(1&Re){const ve=h.RV6();h.j41(0,"button",44),h.bIt("click",function(){A.eBV(ve);const Se=h.XpG();return A.Njj(Se.onClose())}),h.EFF(1,"OK"),h.k0s()}}let ce=(()=>{var Re;class Me{constructor(oe,Se,be,nt,$e,dt){this.dialogRef=oe,this.data=Se,this.logger=be,this.commonService=nt,this.snackBar=$e,this.store=dt,this.faReceipt=g.Mf0,this.faExclamationTriangle=g.zpE,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.p3).pipe((0,D.Q)(this.unSubs[0])).subscribe(oe=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(oe.version,"0.5.0")}),this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(oe=>{const Se=this.invoice.status,nt=(oe.invoices&&oe.invoices.length>0?oe.invoices:[])?.find($e=>$e.paymentHash===this.invoice.paymentHash)||null;nt&&(this.invoice=nt),Se!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(oe)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(oe){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+oe)}ngOnDestroy(){this.unSubs.forEach(oe=>{oe.next(null),oe.complete()})}static#e=Re=()=>(this.\u0275fac=function(Se){return new(Se||Me)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Me,selectors:[["rtl-ecl-invoice-information"]],standalone:!1,decls:68,vars:42,consts:[["hideAdvancedText",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"w-100","my-1"],[1,"overflow-wrap","foreground-secondary-text"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Se,be){if(1&Se){const nt=h.RV6();h.j41(0,"div",1)(1,"div",2),h.DNE(2,t,1,2,"qr-code",3)(3,s,2,0,"span",4),h.k0s(),h.j41(4,"div",5)(5,"mat-card-header",6)(6,"div",7),h.nrm(7,"fa-icon",8),h.j41(8,"span",9),h.EFF(9),h.k0s()(),h.j41(10,"button",10),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",11)(13,"div",12)(14,"div",13),h.DNE(15,m,1,2,"qr-code",3)(16,u,2,0,"span",14),h.k0s(),h.DNE(17,_,1,1,"mat-divider",15),h.j41(18,"div",16)(19,"div",17)(20,"h4",18),h.EFF(21,"Amount Requested"),h.k0s(),h.j41(22,"span",19),h.EFF(23),h.nI1(24,"number"),h.DNE(25,T,2,0,"ng-container",20),h.k0s()(),h.j41(26,"div",17)(27,"h4",18),h.EFF(28,"Amount Settled"),h.k0s(),h.j41(29,"span",19),h.DNE(30,x,3,2,"ng-container",20)(31,U,3,2,"ng-container",20),h.k0s()()(),h.nrm(32,"mat-divider",21),h.j41(33,"div",16)(34,"div",17)(35,"h4",18),h.EFF(36,"Date Created"),h.k0s(),h.j41(37,"span",22),h.EFF(38),h.nI1(39,"date"),h.k0s()(),h.j41(40,"div",17)(41,"h4",18),h.EFF(42,"Status"),h.k0s(),h.j41(43,"span",22),h.EFF(44),h.nI1(45,"titlecase"),h.k0s()()(),h.nrm(46,"mat-divider",21),h.j41(47,"div",16)(48,"div",23)(49,"h4",18),h.EFF(50,"Description"),h.k0s(),h.j41(51,"span",19),h.EFF(52),h.k0s()()(),h.nrm(53,"mat-divider",21),h.j41(54,"div",16)(55,"div",23)(56,"h4",18),h.EFF(57,"Invoice"),h.k0s(),h.j41(58,"span",22),h.EFF(59),h.k0s()()(),h.DNE(60,fe,30,10,"div",20),h.j41(61,"div",24)(62,"button",25),h.bIt("click",function(){return A.eBV(nt),A.Njj(be.onShowAdvanced())}),h.DNE(63,re,2,0,"p",26)(64,he,2,0,"ng-template",null,0,h.C5r),h.k0s(),h.DNE(66,Oe,2,1,"button",27)(67,ge,2,0,"button",28),h.k0s()()()()()}if(2&Se){const nt=h.sdS(65);h.R7$(),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(33,se,be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(4),h.Y8G("icon",be.faReceipt),h.R7$(2),h.JRh(be.screenSize===be.screenSizeEnum.XS?be.newlyAdded?"Created":"Invoice":be.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(35,pe,be.screenSize===be.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=be.invoice&&be.invoice.serialized&&""!==(null==be.invoice?null:be.invoice.serialized)?"center start":"center center")("ngClass",h.eq3(37,se,be.screenSize!==be.screenSizeEnum.XS&&be.screenSize!==be.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",be.screenSize===be.screenSizeEnum.XS||be.screenSize===be.screenSizeEnum.SM),h.R7$(6),h.SpI("",h.bMT(24,26,(null==be.invoice?null:be.invoice.amount)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amount)||"0"===(null==be.invoice?null:be.invoice.amount)),h.R7$(5),h.Y8G("ngIf",null==be.invoice?null:be.invoice.amountSettled),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.amountSettled)),h.R7$(7),h.JRh(h.i5U(39,28,1e3*(null==be.invoice?null:be.invoice.timestamp),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(h.bMT(45,31,null==be.invoice?null:be.invoice.status)),h.R7$(8),h.JRh((null==be.invoice?null:be.invoice.description)||"-"),h.R7$(7),h.JRh((null==be.invoice?null:be.invoice.serialized)||"N/A"),h.R7$(),h.Y8G("ngIf",be.showAdvanced),h.R7$(),h.Y8G("ngClass",h.l_i(39,Ee,!be.showAdvanced,be.showAdvanced)),h.R7$(2),h.Y8G("ngIf",!be.showAdvanced)("ngIfElse",nt),h.R7$(3),h.Y8G("ngIf",(null==be.invoice?null:be.invoice.serialized)&&""!==(null==be.invoice?null:be.invoice.serialized)),h.R7$(),h.Y8G("ngIf",!(null!=be.invoice&&be.invoice.serialized)||""===(null==be.invoice?null:be.invoice.serialized))}},dependencies:[M.YU,M.Sq,M.bT,K.aY,j.$z,Z.m2,Z.MM,ee.q,V.LG,Q.DJ,Q.sA,Q.UI,$.PW,ie.Um,_e.U,ye.N,M.QX,M.PV,M.vh],encapsulation:2}))}return Re(),Me})()},190(ke,q,l){"use strict";l.d(q,{$6:()=>ge,$J:()=>U,$Q:()=>Ee,As:()=>ve,Br:()=>d,CK:()=>be,DI:()=>ye,DY:()=>_e,Do:()=>Oe,Dq:()=>ce,Fd:()=>$e,GZ:()=>ae,Gy:()=>f,H2:()=>a,Hm:()=>Pe,J9:()=>pe,Jx:()=>Q,L:()=>x,Lf:()=>re,NS:()=>A,O8:()=>Se,Qj:()=>F,SM:()=>oe,Sn:()=>h,T4:()=>Fe,Uj:()=>nt,Uo:()=>ie,VK:()=>ee,WE:()=>Le,X9:()=>e,XT:()=>rt,Yi:()=>Vt,Zi:()=>Z,_$:()=>Re,aB:()=>qt,ar:()=>t,b1:()=>Qe,cR:()=>C,cU:()=>s,dv:()=>L,e8:()=>p,ed:()=>j,fy:()=>_,ij:()=>tn,jk:()=>hn,kv:()=>tt,lg:()=>o,mh:()=>Me,oX:()=>Xt,p1:()=>D,pL:()=>m,sq:()=>M,t0:()=>yt,t5:()=>fe,tG:()=>Ue,tf:()=>se,uK:()=>_n,vL:()=>T,w0:()=>P,x1:()=>w,yp:()=>$,z2:()=>u,zU:()=>et});var i=l(59640),g=l(4416);const p=(0,i.VP)(g.QP.UPDATE_API_CALL_STATUS_LND,(0,i.xk)()),D=(0,i.VP)(g.QP.RESET_LND_STORE),o=(0,i.VP)(g.QP.FETCH_PAGE_SETTINGS_LND),e=(0,i.VP)(g.QP.UPDATE_SELECTED_NODE_OPTIONS),A=(0,i.VP)(g.QP.SET_PAGE_SETTINGS_LND,(0,i.xk)()),h=(0,i.VP)(g.QP.SAVE_PAGE_SETTINGS_LND,(0,i.xk)()),d=(0,i.VP)(g.QP.FETCH_INFO_LND,(0,i.xk)()),w=(0,i.VP)(g.QP.SET_INFO_LND,(0,i.xk)()),f=(0,i.VP)(g.QP.FETCH_PEERS_LND),F=(0,i.VP)(g.QP.SET_PEERS_LND,(0,i.xk)()),M=(0,i.VP)(g.QP.SAVE_NEW_PEER_LND,(0,i.xk)()),j=((0,i.VP)(g.QP.NEWLY_ADDED_PEER_LND,(0,i.xk)()),(0,i.VP)(g.QP.DETACH_PEER_LND,(0,i.xk)())),Z=(0,i.VP)(g.QP.REMOVE_PEER_LND,(0,i.xk)()),ee=(0,i.VP)(g.QP.SAVE_NEW_INVOICE_LND,(0,i.xk)()),Q=((0,i.VP)(g.QP.NEWLY_SAVED_INVOICE_LND,(0,i.xk)()),(0,i.VP)(g.QP.ADD_INVOICE_LND,(0,i.xk)())),$=(0,i.VP)(g.QP.FETCH_FEES_LND),ie=(0,i.VP)(g.QP.SET_FEES_LND,(0,i.xk)()),_e=(0,i.VP)(g.QP.FETCH_BLOCKCHAIN_BALANCE_LND),ye=(0,i.VP)(g.QP.SET_BLOCKCHAIN_BALANCE_LND,(0,i.xk)()),se=(0,i.VP)(g.QP.FETCH_NETWORK_LND),pe=(0,i.VP)(g.QP.SET_NETWORK_LND,(0,i.xk)()),Ee=(0,i.VP)(g.QP.FETCH_CHANNELS_LND),L=(0,i.VP)(g.QP.SET_CHANNELS_LND,(0,i.xk)()),t=(0,i.VP)(g.QP.FETCH_PENDING_CHANNELS_LND),s=(0,i.VP)(g.QP.SET_PENDING_CHANNELS_LND,(0,i.xk)()),m=(0,i.VP)(g.QP.FETCH_CLOSED_CHANNELS_LND),u=(0,i.VP)(g.QP.SET_CLOSED_CHANNELS_LND,(0,i.xk)()),_=(0,i.VP)(g.QP.UPDATE_CHANNEL_LND,(0,i.xk)()),T=(0,i.VP)(g.QP.SAVE_NEW_CHANNEL_LND,(0,i.xk)()),P=(0,i.VP)(g.QP.CLOSE_CHANNEL_LND,(0,i.xk)()),C=(0,i.VP)(g.QP.REMOVE_CHANNEL_LND,(0,i.xk)()),a=(0,i.VP)(g.QP.BACKUP_CHANNELS_LND,(0,i.xk)()),x=(0,i.VP)(g.QP.VERIFY_CHANNEL_LND,(0,i.xk)()),U=((0,i.VP)(g.QP.BACKUP_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.VERIFY_CHANNEL_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.RESTORE_CHANNELS_LIST_LND)),fe=(0,i.VP)(g.QP.SET_RESTORE_CHANNELS_LIST_LND,(0,i.xk)()),re=(0,i.VP)(g.QP.RESTORE_CHANNELS_LND,(0,i.xk)()),Oe=((0,i.VP)(g.QP.RESTORE_CHANNELS_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_INVOICES_LND,(0,i.xk)())),ge=(0,i.VP)(g.QP.SET_INVOICES_LND,(0,i.xk)()),ce=(0,i.VP)(g.QP.UPDATE_INVOICE_LND,(0,i.xk)()),Re=(0,i.VP)(g.QP.UPDATE_PAYMENT_LND,(0,i.xk)()),Me=(0,i.VP)(g.QP.FETCH_TRANSACTIONS_LND),ve=(0,i.VP)(g.QP.SET_TRANSACTIONS_LND,(0,i.xk)()),oe=(0,i.VP)(g.QP.FETCH_UTXOS_LND),Se=(0,i.VP)(g.QP.SET_UTXOS_LND,(0,i.xk)()),be=(0,i.VP)(g.QP.FETCH_PAYMENTS_LND,(0,i.xk)()),nt=(0,i.VP)(g.QP.SET_PAYMENTS_LND,(0,i.xk)()),$e=(0,i.VP)(g.QP.SEND_PAYMENT_LND,(0,i.xk)()),yt=((0,i.VP)(g.QP.SEND_PAYMENT_STATUS_LND,(0,i.xk)()),(0,i.VP)(g.QP.FETCH_GRAPH_NODE_LND,(0,i.xk)())),rt=((0,i.VP)(g.QP.SET_GRAPH_NODE_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_NEW_ADDRESS_LND,(0,i.xk)())),qt=((0,i.VP)(g.QP.SET_NEW_ADDRESS_LND,(0,i.xk)()),(0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_LND,(0,i.xk)())),Xt=((0,i.VP)(g.QP.SET_CHANNEL_TRANSACTION_RES_LND,(0,i.xk)()),(0,i.VP)(g.QP.GEN_SEED_LND,(0,i.xk)())),ae=((0,i.VP)(g.QP.GEN_SEED_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.INIT_WALLET_LND,(0,i.xk)())),Le=((0,i.VP)(g.QP.INIT_WALLET_RESPONSE_LND,(0,i.xk)()),(0,i.VP)(g.QP.UNLOCK_WALLET_LND,(0,i.xk)())),et=(0,i.VP)(g.QP.PEER_LOOKUP_LND,(0,i.xk)()),tn=(0,i.VP)(g.QP.CHANNEL_LOOKUP_LND,(0,i.xk)()),Vt=(0,i.VP)(g.QP.INVOICE_LOOKUP_LND,(0,i.xk)()),hn=(0,i.VP)(g.QP.PAYMENT_LOOKUP_LND,(0,i.xk)()),_n=((0,i.VP)(g.QP.SET_LOOKUP_LND,(0,i.xk)()),(0,i.VP)(g.QP.GET_FORWARDING_HISTORY_LND,(0,i.xk)())),tt=(0,i.VP)(g.QP.SET_FORWARDING_HISTORY_LND,(0,i.xk)()),Fe=(0,i.VP)(g.QP.GET_QUERY_ROUTES_LND,(0,i.xk)()),Pe=(0,i.VP)(g.QP.SET_QUERY_ROUTES_LND,(0,i.xk)()),Ue=(0,i.VP)(g.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),Qe=(0,i.VP)(g.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,i.xk)())},69579(ke,q,l){"use strict";l.d(q,{L:()=>pe});var i=l(11747),g=l(21413),p=l(7673),D=l(99437),o=l(96354),e=l(31397),A=l(56977),h=l(53993),d=l(46391),w=l(12462),f=l(4416),F=l(11771),M=l(190),K=l(63536),j=l(2615),Z=l(29330),ee=l(59640),V=l(98570),Q=l(82571),$=l(53202),ie=l(51585),_e=l(43694),ye=l(7879),se=l(57303);let pe=(()=>{var Ee;class L{constructor(s,m,u,_,T,P,C,a,x,Y){this.actions=s,this.httpClient=m,this.store=u,this.logger=_,this.commonService=T,this.sessionService=P,this.dialog=C,this.router=a,this.wsService=x,this.location=Y,this.CHILD_API_URL=f.H$+"/lnd",this.invoicesPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"invoices"===R.tableId),this.paymentsPageSettings=f.ZC.find(R=>"transactions"===R.pageId)?.tables.find(R=>"payments"===R.tableId),this.flgInitialized=!1,this.unSubs=[new g.B,new g.B],this.infoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INFO_LND),(0,e.Z)(R=>(this.flgInitialized=!1,this.store.dispatch((0,F.My)({payload:this.CHILD_API_URL})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_INFO})),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.GETINFO_API).pipe((0,A.Q)(this.actions.pipe((0,i.gp)(f.aU.SET_SELECTED_NODE))),(0,o.T)(U=>(this.logger.info(U),U.chains&&U.chains.length&&U.chains[0]&&("string"==typeof U.chains[0]&&U.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof U.chains[0]&&U.chains[0].hasOwnProperty("chain")&&U.chains[0].chain&&U.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.xO)({payload:{data:{type:f.A$.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:f.aU.LOGOUT}):U.identity_pubkey?(U.lnImplementation="LND",this.initializeRemainingData(U,R.payload.loadPage),this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),{type:f.QP.SET_INFO_LND,payload:U||{}}):(this.store.dispatch((0,M.e8)({payload:{action:"FetchInfo",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.Jh)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:f.QP.SET_INFO_LND,payload:{}}))),(0,D.W)(U=>{if("string"==typeof U.error.error&&U.error.error.includes("Not Found")||"string"==typeof U.error.error&&U.error.error.includes("wallet locked")||502===U.status&&!U.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",U);else if("string"==typeof U.error.error&&U.error.error.includes("starting up")&&500===U.status)setTimeout(()=>{this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},2e3);else{const fe=this.commonService.extractErrorCode(U),re=503===fe?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(U);this.router.navigate(["/error"],{state:{errorCode:fe,errorMessage:re}}),this.handleErrorWithoutAlert("FetchInfo",f.MZ.GET_NODE_INFO,"Fetching Node Info Failed.",{status:fe,error:re})}return(0,p.of)({type:f.aU.VOID})})))))),this.peersFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PEERS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PEERS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPeers",status:f.wn.COMPLETED}})),{type:f.QP.SET_PEERS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPeers",f.MZ.NO_SPINNER,"Fetching Peers Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.PEERS_API,{pubkey:R.payload.pubkey,host:R.payload.host,perm:R.payload.perm}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewPeer",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.CONNECT_PEER})),this.store.dispatch((0,M.Qj)({payload:U||[]})),{type:f.QP.NEWLY_ADDED_PEER_LND,payload:{peer:U[0]}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewPeer",f.MZ.CONNECT_PEER,"Peer Connection Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.detachPeer=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.DETACH_PEER_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.DISCONNECT_PEER})),this.store.dispatch((0,F.UI)({payload:"Peer Disconnected Successfully."})),{type:f.QP.REMOVE_PEER_LND,payload:{pubkey:R.payload.pubkey}})),(0,D.W)(U=>(this.handleErrorWithAlert("DetachPeer",f.MZ.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+f.rl.PEERS_API+"/"+R.payload.pubkey,U),(0,p.of)({type:f.aU.VOID})))))))),this.saveNewInvoice=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_INVOICE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.INVOICES_API,{memo:R.payload.memo,value:R.payload.value,private:R.payload.private,expiry:R.payload.expiry,is_amp:R.payload.is_amp}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewInvoice",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:R.payload.pageSize,reversed:!0}})),R.payload.openModal?(U.memo=R.payload.memo,U.value=R.payload.value,U.expiry=R.payload.expiry,U.private=R.payload.private,U.is_amp=R.payload.is_amp,U.cltv_expiry="144",U.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,F.xO)({payload:{data:{invoice:U,newlyAdded:!0,component:d.H}}}))},200),{type:f.aU.CLOSE_SPINNER,payload:R.payload.uiMessage}):{type:f.QP.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:U.payment_request}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewInvoice",R.payload.uiMessage,"Add Invoice Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.openNewChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_NEW_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API,{node_pubkey:R.payload.selectedPeerPubkey,local_funding_amount:R.payload.fundingAmount,private:R.payload.private,trans_type:R.payload.transType,trans_type_value:R.payload.transTypeValue,spend_unconfirmed:R.payload.spendUnconfirmed,commitment_type:R.payload.commitmentType}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SaveNewChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.OPEN_CHANNEL})),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:f.QP.FETCH_PENDING_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SaveNewChannel",f.MZ.OPEN_CHANNEL,"Opening Channel Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.updateChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",{baseFeeMsat:R.payload.baseFeeMsat,feeRate:R.payload.feeRate,timeLockDelta:R.payload.timeLockDelta,max_htlc_msat:R.payload.maxHtlcMsat,min_htlc_msat:R.payload.minHtlcMsat,chanPoint:R.payload.chanPoint}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_CHAN_POLICY})),this.store.dispatch((0,F.UI)("all"===R.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:f.QP.FETCH_CHANNELS_LND})),(0,D.W)(U=>(this.handleErrorWithAlert("UpdateChannels",f.MZ.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/chanPolicy",U),(0,p.of)({type:f.aU.VOID})))))))),this.closeChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CLOSE_CHANNEL_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL}));let U=this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly;return R.payload.targetConf&&(U=U+"&target_conf="+R.payload.targetConf),R.payload.satPerVByte&&(U=U+"&sat_per_vbyte="+R.payload.satPerVByte),this.httpClient.delete(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.H2)({payload:{uiMessage:f.MZ.NO_SPINNER,channelPoint:"ALL",showMessage:fe.message}})),{type:f.aU.VOID})),(0,D.W)(fe=>(this.handleErrorWithAlert("CloseChannel",R.payload.forcibly?f.MZ.FORCE_CLOSE_CHANNEL:f.MZ.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_API+"/"+R.payload.channelPoint+"?force="+R.payload.forcibly,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.backupChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.BACKUP_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"BackupChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,F.UI)({payload:R.payload.showMessage+" "+U.message})),{type:f.QP.BACKUP_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("BackupChannels",R.payload.uiMessage,R.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.verifyChannel=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.VERIFY_CHANNEL_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"VerifyChannel",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.VERIFY_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),{type:f.QP.VERIFY_CHANNEL_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("VerifyChannel",f.MZ.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/verify/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.restoreChannels=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,{}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannels",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.RESTORE_CHANNEL})),this.store.dispatch((0,F.UI)({payload:U.message})),this.store.dispatch((0,M.t5)({payload:U.list})),{type:f.QP.RESTORE_CHANNELS_RES_LND,payload:U.message})),(0,D.W)(U=>(this.handleErrorWithAlert("RestoreChannels",f.MZ.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/"+R.payload.channelPoint,U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchFees=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_FEES_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.FEES_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchFees",status:f.wn.COMPLETED}})),R.forwarding_events_history&&(this.store.dispatch((0,M.kv)({payload:R.forwarding_events_history})),delete R.forwarding_events_history),{type:f.QP.SET_FEES_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchFees",f.MZ.NO_SPINNER,"Fetching Fees Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.balanceBlockchainFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_BLOCKCHAIN_BALANCE_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.BALANCE_API))),(0,o.T)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchBalance",status:f.wn.COMPLETED}})),this.logger.info(R),{type:f.QP.SET_BLOCKCHAIN_BALANCE_LND,payload:R||{total_balance:""}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchBalance",f.MZ.NO_SPINNER,"Fetching Blockchain Balance Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.networkInfoFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_NETWORK_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/info"))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchNetwork",status:f.wn.COMPLETED}})),{type:f.QP.SET_NETWORK_LND,payload:R||{}})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchNetwork",f.MZ.NO_SPINNER,"Fetching Network Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.channelsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchChannels",f.MZ.NO_SPINNER,"Fetching Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsPendingFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PENDING_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/pending").pipe((0,o.T)(R=>{this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPendingChannels",status:f.wn.COMPLETED}}));const U={open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0};return R&&(U.total_limbo_balance=R.total_limbo_balance,R.pending_closing_channels&&(U.closing.num_channels=R.pending_closing_channels.length,U.total_channels=U.total_channels+R.pending_closing_channels.length,R.pending_closing_channels.forEach(fe=>{U.closing.limbo_balance=+U.closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_force_closing_channels&&(U.force_closing.num_channels=R.pending_force_closing_channels.length,U.total_channels=U.total_channels+R.pending_force_closing_channels.length,R.pending_force_closing_channels.forEach(fe=>{U.force_closing.limbo_balance=+U.force_closing.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.pending_open_channels&&(U.open.num_channels=R.pending_open_channels.length,U.total_channels=U.total_channels+R.pending_open_channels.length,R.pending_open_channels.forEach(fe=>{U.open.limbo_balance=+U.open.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)})),R.waiting_close_channels&&(U.waiting_close.num_channels=R.waiting_close_channels.length,U.total_channels=U.total_channels+R.waiting_close_channels.length,R.waiting_close_channels.forEach(fe=>{U.waiting_close.limbo_balance=+U.waiting_close.limbo_balance+(fe.channel.local_balance?+fe.channel.local_balance:0)}))),{type:f.QP.SET_PENDING_CHANNELS_LND,payload:R?{pendingChannels:R,pendingChannelsSummary:U}:{pendingChannels:{},pendingChannelsSummary:U}}}),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPendingChannels",f.MZ.NO_SPINNER,"Fetching Pending Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.channelsClosedFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_CLOSED_CHANNELS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_API+"/closed").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchClosedChannels",status:f.wn.COMPLETED}})),{type:f.QP.SET_CLOSED_CHANNELS_LND,payload:R.channels||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchClosedChannels",f.MZ.NO_SPINNER,"Fetching Closed Channels Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.invoicesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_INVOICES_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.INVOICES_API+"?num_max_invoices="+(R.payload.num_max_invoices?R.payload.num_max_invoices:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchInvoices",status:f.wn.COMPLETED}})),R.payload.reversed&&!R.payload.index_offset&&(he.total_invoices=+(he.last_index_offset||0)),{type:f.QP.SET_INVOICES_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchInvoices",f.MZ.NO_SPINNER,"Fetching Invoices Failed.",he),(0,p.of)({type:f.aU.VOID})))))))),this.transactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_TRANSACTIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.TRANSACTIONS_API))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_TRANSACTIONS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchTransactions",f.MZ.NO_SPINNER,"Fetching Transactions Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.utxosFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_UTXOS_LND),(0,h.E)(this.store.select(K.pI)),(0,e.Z)(([R,U])=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/getUTXOs?max_confs="+(U&&U.block_height?U.block_height:1e9)))),(0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchUTXOs",status:f.wn.COMPLETED}})),{type:f.QP.SET_UTXOS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchUTXOs",f.MZ.NO_SPINNER,"Fetching UTXOs Failed.",R),(0,p.of)({type:f.aU.VOID}))))),this.paymentsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAYMENTS_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"?max_payments="+(R.payload.max_payments?R.payload.max_payments:100)+"&index_offset="+(R.payload.index_offset?R.payload.index_offset:0)+"&reversed="+(!!R.payload.reversed&&R.payload.reversed)).pipe((0,o.T)(he=>(this.logger.info(he),this.store.dispatch((0,M.e8)({payload:{action:"FetchPayments",status:f.wn.COMPLETED}})),this.commonService.sortByKey(he.payments||[],this.paymentsPageSettings?.sortBy||"creation_date","number",this.paymentsPageSettings?.sortOrder),{type:f.QP.SET_PAYMENTS_LND,payload:he})),(0,D.W)(he=>(this.handleErrorWithoutAlert("FetchPayments",f.MZ.NO_SPINNER,"Fetching Payments Failed.",he),(0,p.of)({type:f.QP.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SEND_PAYMENT_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.INITIATED}}));const U=JSON.parse(JSON.stringify(R.payload));return delete U.uiMessage,delete U.fromDialog,this.httpClient.post(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/send",U).pipe((0,o.T)(fe=>{if(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),fe.payment_error)return R.payload.allow_self_payment?(this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe.payment_error):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe.payment_error),{type:f.aU.VOID});if(this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"SendPayment",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.CK)({payload:{max_payments:this.paymentsPageSettings?.recordsPerPage,reversed:!0}})),R.payload.allow_self_payment)this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}));else{let re="Payment Sent Successfully.";fe.payment_route&&fe.payment_route.total_fees_msat&&(re="Payment sent successfully with the total fee "+fe.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,F.UI)({payload:re}))}return{type:f.QP.SEND_PAYMENT_STATUS_LND,payload:fe}}),(0,D.W)(fe=>(this.logger.error("Error: "+JSON.stringify(fe)),R.payload.allow_self_payment?(this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}})),(0,p.of)({type:f.QP.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(fe)}})):(R.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed.",fe):this.handleErrorWithAlert("SendPayment",R.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+f.rl.CHANNELS_API+"/transactions",fe),(0,p.of)({type:f.aU.VOID})))))}))),this.graphNodeFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_GRAPH_NODE_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload.pubkey).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GET_NODE_ADDRESS})),this.store.dispatch((0,M.e8)({payload:{action:"FetchGraphNode",status:f.wn.COMPLETED}})),{type:f.QP.SET_GRAPH_NODE_LND,payload:U&&U.node?{node:U.node}:{node:null}})),(0,D.W)(U=>(this.handleErrorWithoutAlert("FetchGraphNode",f.MZ.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.setGraphNode=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_GRAPH_NODE_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_NEW_ADDRESS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GENERATE_NEW_ADDRESS})),{type:f.QP.SET_NEW_ADDRESS_LND,payload:U&&U.address?U.address:{}})),(0,D.W)(U=>(this.handleErrorWithAlert("GetNewAddress",f.MZ.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+f.rl.NEW_ADDRESS_API+"?type="+R.payload.addressId,U),(0,p.of)({type:f.aU.VOID})))))))),this.setNewAddress=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_NEW_ADDRESS_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_CHANNEL_TRANSACTION_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.TRANSACTIONS_API,{amount:R.payload.amount,address:R.payload.address,sendAll:R.payload.sendAll,fees:R.payload.fees,blocks:R.payload.blocks}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SetChannelTransaction",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.SEND_FUNDS})),this.store.dispatch((0,M.mh)()),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),{type:f.QP.SET_CHANNEL_TRANSACTION_RES_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithoutAlert("SetChannelTransaction",f.MZ.SEND_FUNDS,"Sending Fund Failed.",U),(0,p.of)({type:f.aU.VOID})))))))),this.fetchForwardingHistory=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_FORWARDING_HISTORY_LND),(0,e.Z)(R=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+f.rl.SWITCH_API,{num_max_events:R.payload.num_max_events,index_offset:R.payload.index_offset,end_time:R.payload.end_time,start_time:R.payload.start_time}).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,M.e8)({payload:{action:"FetchForwardingHistory",status:f.wn.COMPLETED}})),{type:f.QP.SET_FORWARDING_HISTORY_LND,payload:fe})),(0,D.W)(fe=>(this.handleErrorWithAlert("FetchForwardingHistory",f.MZ.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+f.rl.SWITCH_API,fe),(0,p.of)({type:f.aU.VOID})))))))),this.queryRoutesFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_QUERY_ROUTES_LND),(0,e.Z)(R=>{let U=this.CHILD_API_URL+f.rl.NETWORK_API+"/routes/"+R.payload.destPubkey+"/"+R.payload.amount;return R.payload.outgoingChanId&&(U=U+"?outgoing_chan_id="+R.payload.outgoingChanId),this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),{type:f.QP.SET_QUERY_ROUTES_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.Hm)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",f.MZ.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+f.rl.NETWORK_API,fe),(0,p.of)({type:f.aU.VOID}))))}))),this.setQueryRoutes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_QUERY_ROUTES_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.genSeed=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload).pipe((0,o.T)(U=>(this.logger.info("Generated GenSeed!"),this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.GEN_SEED})),{type:f.QP.GEN_SEED_RESPONSE_LND,payload:U.cipher_seed_mnemonic})),(0,D.W)(U=>(this.handleErrorWithAlert("GenSeed",f.MZ.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/genseed/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.updateSelNodeOptions=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UPDATE_SELECTED_NODE_OPTIONS),(0,e.Z)(()=>this.httpClient.get(this.CHILD_API_URL+f.rl.WALLET_API+"/updateSelNodeOptions").pipe((0,o.T)(R=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(R),{type:f.aU.VOID})),(0,D.W)(R=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",f.MZ.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",R),(0,p.of)({type:f.aU.VOID}))))))),this.genSeedResponse=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GEN_SEED_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWalletRes=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_RESPONSE_LND),(0,o.T)(R=>R.payload)),{dispatch:!1}),this.initWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INIT_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/initwallet",{wallet_password:R.payload.pwd,cipher_seed_mnemonic:R.payload.cipher?R.payload.cipher:"",aezeed_passphrase:R.payload.passphrase?R.payload.passphrase:""}).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.INITIALIZE_WALLET})),{type:f.QP.INIT_WALLET_RESPONSE_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("InitWallet",f.MZ.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/initwallet",U),(0,p.of)({type:f.aU.VOID})))))))),this.unlockWallet=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.UNLOCK_WALLET_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+f.rl.WALLET_API+"/wallet/unlockwallet",{wallet_password:R.payload.pwd}).pipe((0,o.T)(U=>(this.logger.info(U),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,F.y0)({payload:f.MZ.UNLOCK_WALLET})),this.store.dispatch((0,F.mt)({payload:f.MZ.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,F.y0)({payload:f.MZ.WAIT_SYNC_NODE})),this.store.dispatch((0,M.Br)({payload:{loadPage:"HOME"}}))},5e3),{type:f.aU.VOID})),(0,D.W)(U=>(this.handleErrorWithAlert("UnlockWallet",f.MZ.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+f.rl.WALLET_API+"/unlockwallet",U),(0,p.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PEER_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_NODE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",f.MZ.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/node/"+R.payload,U),(0,p.of)({type:f.aU.VOID})))))))),this.channelLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.CHANNEL_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:R.payload.uiMessage})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.handleErrorWithAlert("Lookup",R.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+f.rl.NETWORK_API+"/edge/"+R.payload.channelID,U),(0,p.of)({type:f.aU.VOID})))))))),this.invoiceLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.INVOICE_LOOKUP_LND),(0,e.Z)(R=>{this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}}));let U=this.CHILD_API_URL+f.rl.INVOICES_API+"/lookup";return U=R.payload.paymentAddress&&""!==R.payload.paymentAddress?U+"?payment_addr="+R.payload.paymentAddress:U+"?payment_hash="+R.payload.paymentHash,this.httpClient.get(U).pipe((0,o.T)(fe=>(this.logger.info(fe),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_INVOICE})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M.Dq)({payload:fe})),{type:f.QP.SET_LOOKUP_LND,payload:fe})),(0,D.W)(fe=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_INVOICE,"Invoice Lookup Failed",fe),R.payload.openSnackBar&&this.store.dispatch((0,F.UI)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:fe}}))))}))),this.paymentLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.PAYMENT_LOOKUP_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/lookup/"+R.payload).pipe((0,o.T)(U=>(this.logger.info(U),this.store.dispatch((0,F.y0)({payload:f.MZ.SEARCHING_PAYMENT})),this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.COMPLETED}})),this.store.dispatch((0,M._$)({payload:U})),{type:f.QP.SET_LOOKUP_LND,payload:U})),(0,D.W)(U=>(this.store.dispatch((0,M.e8)({payload:{action:"Lookup",status:f.wn.ERROR}})),this.handleErrorWithoutAlert("Lookup",f.MZ.SEARCHING_PAYMENT,"Payment Lookup Failed",U),(0,p.of)({type:f.QP.SET_LOOKUP_LND,payload:{error:U}})))))))),this.setLookup=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_LOOKUP_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.RESTORE_CHANNELS_LIST_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API+"/restore/list").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"RestoreChannelsList",status:f.wn.COMPLETED}})),{type:f.QP.SET_RESTORE_CHANNELS_LIST_LND,payload:R||{all_restore_exists:!1,files:[]}})),(0,D.W)(R=>(this.handleErrorWithAlert("RestoreChannelsList",f.MZ.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+f.rl.CHANNELS_BACKUP_API,R),(0,p.of)({type:f.aU.VOID})))))))),this.setRestoreChannelList=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SET_RESTORE_CHANNELS_LIST_LND),(0,o.T)(R=>(this.logger.info(R.payload),R.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+f.rl.PAYMENTS_API+"/alltransactions").pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchLightningTransactions",status:f.wn.COMPLETED}})),{type:f.QP.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:R})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchLightningTransactions",f.MZ.NO_SPINNER,"Fetching All Lightning Transaction Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.pageSettingsFetch=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.FETCH_PAGE_SETTINGS_LND),(0,e.Z)(()=>(this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.PAGE_SETTINGS_API).pipe((0,o.T)(R=>(this.logger.info(R),this.store.dispatch((0,M.e8)({payload:{action:"FetchPageSettings",status:f.wn.COMPLETED}})),this.invoicesPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"invoices"===U.tableId),this.paymentsPageSettings=R&&Object.keys(R).length>0?R.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId):f.ZC.find(U=>"transactions"===U.pageId)?.tables.find(U=>"payments"===U.tableId),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:R||[]})),(0,D.W)(R=>(this.handleErrorWithoutAlert("FetchPageSettings",f.MZ.NO_SPINNER,"Fetching Page Settings Failed.",R),(0,p.of)({type:f.aU.VOID})))))))),this.savePageSettings=(0,i.EH)(()=>this.actions.pipe((0,i.gp)(f.QP.SAVE_PAGE_SETTINGS_LND),(0,e.Z)(R=>(this.store.dispatch((0,F.mt)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.PAGE_SETTINGS_API,R.payload).pipe((0,o.T)(U=>{this.logger.info(U),this.store.dispatch((0,M.e8)({payload:{action:"SavePageSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,F.y0)({payload:f.MZ.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,F.UI)({payload:"Page Layout Updated Successfully!"}));const fe=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"invoices"===he.tableId)).recordsPerPage,re=(U.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)||f.ZC.find(he=>"transactions"===he.pageId)?.tables.find(he=>"payments"===he.tableId)).recordsPerPage;return this.invoicesPageSettings&&fe!==this.invoicesPageSettings?.recordsPerPage&&(this.invoicesPageSettings.recordsPerPage=fe,this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))),this.paymentsPageSettings&&re!==this.paymentsPageSettings?.recordsPerPage&&(this.paymentsPageSettings.recordsPerPage=re),{type:f.QP.SET_PAGE_SETTINGS_LND,payload:U||[]}}),(0,D.W)(U=>(this.handleErrorWithAlert("SavePageSettings",f.MZ.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",f.rl.PAGE_SETTINGS_API,U),(0,p.of)({type:f.aU.VOID})))))))),this.store.select(K.ru).pipe((0,A.Q)(this.unSubs[0])).subscribe(R=>{R.FetchInfo.status!==f.wn.COMPLETED&&R.FetchInfo.status!==f.wn.ERROR||R.FetchFees.status!==f.wn.COMPLETED&&R.FetchFees.status!==f.wn.ERROR||R.FetchBalanceBlockchain.status!==f.wn.COMPLETED&&R.FetchBalanceBlockchain.status!==f.wn.ERROR||R.FetchAllChannels.status!==f.wn.COMPLETED&&R.FetchAllChannels.status!==f.wn.ERROR||R.FetchPendingChannels.status!==f.wn.COMPLETED&&R.FetchPendingChannels.status!==f.wn.ERROR||this.flgInitialized||(this.store.dispatch((0,F.y0)({payload:f.MZ.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,A.Q)(this.unSubs[1])).subscribe(R=>{this.logger.info("Received new message from the service: "+JSON.stringify(R)),R&&(R.type===f.o1.INVOICE?(this.logger.info(R),R&&R.result&&R.result.payment_request&&this.store.dispatch((0,M.Dq)({payload:R.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(R)))})}initializeRemainingData(s,m){this.sessionService.setItem("lndUnlocked","true");const u={identity_pubkey:s.identity_pubkey,alias:s.alias,testnet:s.testnet,chains:s.chains,uris:s.uris,version:s.version?s.version.split(" ")[0]:""};this.store.dispatch((0,F.mt)({payload:f.MZ.INITALIZE_NODE_DATA})),this.store.dispatch((0,F.Fl)({payload:u}));let _=this.location.path();_.includes("/cln/")?_=_?.replace("/cln/","/lnd/"):_.includes("/ecl/")&&(_=_?.replace("/ecl/","/lnd/")),(_.includes("/unlock")||_.includes("/login")||_.includes("/error")||""===_||"HOME"===m||_.includes("?access-key="))&&(_="/lnd/home"),this.router.navigate([_]),this.store.dispatch((0,M.DY)()),this.store.dispatch((0,M.$Q)()),this.store.dispatch((0,M.ar)()),this.store.dispatch((0,M.pL)()),this.store.dispatch((0,M.Gy)()),this.store.dispatch((0,M.tf)()),this.store.dispatch((0,M.yp)()),this.store.dispatch((0,M.CK)({payload:{max_payments:1e5,reversed:!0}})),this.store.dispatch((0,M.Do)({payload:{num_max_invoices:this.invoicesPageSettings?.recordsPerPage,reversed:!0}}))}handleErrorWithoutAlert(s,m,u,_){this.logger.error("ERROR IN: "+s+"\n"+JSON.stringify(_)),401===_.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(_.error)}))):(this.store.dispatch((0,F.y0)({payload:m})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:_.status.toString(),message:this.commonService.extractErrorMessage(_,u)}})))}handleErrorWithAlert(s,m,u,_,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,F.Jh)()),this.store.dispatch((0,F.ri)({payload:"Authentication Failed: "+JSON.stringify(T.error)}));else{this.store.dispatch((0,F.y0)({payload:m}));const P=this.commonService.extractErrorMessage(T);this.store.dispatch((0,F.xO)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:T.status,message:P,URL:_},component:w.f}}})),this.store.dispatch((0,M.e8)({payload:{action:s,status:f.wn.ERROR,statusCode:T.status.toString(),message:P,URL:_}}))}}ngOnDestroy(){this.unSubs.forEach(s=>{s.next(null),s.complete()})}static#e=Ee=()=>(this.\u0275fac=function(m){return new(m||L)(j.KVO(i.En),j.KVO(Z.Qq),j.KVO(ee.il),j.KVO(V.gP),j.KVO(Q.h),j.KVO($.Q),j.KVO(ie.bZ),j.KVO(_e.Ix),j.KVO(ye.I),j.KVO(se.aZ))},this.\u0275prov=j.jDH({token:L,factory:L.\u0275fac}))}return Ee(),L})()},63536(ke,q,l){"use strict";l.d(q,{$7:()=>ee,$G:()=>p,BM:()=>M,Bw:()=>Z,Ie:()=>A,KT:()=>h,Uv:()=>j,ah:()=>Q,eO:()=>_e,gN:()=>f,gj:()=>ye,n_:()=>ie,oR:()=>d,os:()=>w,pI:()=>D,rN:()=>F,ru:()=>e,tA:()=>$});var i=l(59640);const g=(0,i.UX)("lnd"),p=(0,i.Mz)(g,se=>({pageSettings:se.pageSettings,apiCallStatus:se.apisCallStatus.FetchPageSettings})),D=(0,i.Mz)(g,se=>se.information),e=((0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo})),(0,i.Mz)(g,se=>se.apisCallStatus)),A=(0,i.Mz)(g,se=>({forwardingHistory:se.forwardingHistory,apiCallStatus:se.apisCallStatus.FetchForwardingHistory})),h=(0,i.Mz)(g,se=>({listPayments:se.listPayments,apiCallStatus:se.apisCallStatus.FetchPayments})),d=(0,i.Mz)(g,se=>({fees:se.fees,apiCallStatus:se.apisCallStatus.FetchFees})),w=(0,i.Mz)(g,se=>({peers:se.peers,apiCallStatus:se.apisCallStatus.FetchPeers})),f=(0,i.Mz)(g,se=>({transactions:se.transactions,apiCallStatus:se.apisCallStatus.FetchTransactions})),F=(0,i.Mz)(g,se=>({listInvoices:se.listInvoices,apiCallStatus:se.apisCallStatus.FetchInvoices})),M=(0,i.Mz)(g,se=>({channels:se.channels,channelsSummary:se.channelsSummary,lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),j=((0,i.Mz)(g,se=>({channelsSummary:se.channelsSummary,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({pendingChannels:se.pendingChannels,pendingChannelsSummary:se.pendingChannelsSummary,apiCallStatus:se.apisCallStatus.FetchPendingChannels}))),Z=(0,i.Mz)(g,se=>({closedChannels:se.closedChannels,apiCallStatus:se.apisCallStatus.FetchClosedChannels})),ee=(0,i.Mz)(g,se=>({blockchainBalance:se.blockchainBalance,apiCallStatus:se.apisCallStatus.FetchBalanceBlockchain})),Q=((0,i.Mz)(g,se=>({lightningBalance:se.lightningBalance,apiCallStatus:se.apisCallStatus.FetchAllChannels})),(0,i.Mz)(g,se=>({utxos:se.utxos,apiCallStatus:se.apisCallStatus.FetchUTXOs}))),$=(0,i.Mz)(g,se=>({networkInfo:se.networkInfo,apiCallStatus:se.apisCallStatus.FetchNetwork})),ie=(0,i.Mz)(g,se=>({allLightningTransactions:se.allLightningTransactions,apiCallStatus:se.apisCallStatus.FetchLightningTransactions})),_e=(0,i.Mz)(g,se=>({channels:se.channels,pendingChannels:se.pendingChannels,closedChannels:se.closedChannels})),ye=(0,i.Mz)(g,se=>({information:se.information,apiCallStatus:se.apisCallStatus.FetchInfo}))},46391(ke,q,l){"use strict";l.d(q,{H:()=>qt});var i=l(51585),g=l(45383),p=l(21413),D=l(56977),o=l(4416),e=l(63536),A=l(2615),h=l(73664),d=l(98570),w=l(82571),f=l(95416),F=l(59640),M=l(72200),K=l(20060),j=l(88834),Z=l(25596),ee=l(9454),V=l(12629),Q=l(71997),$=l(9183),ie=l(52920),_e=l(16038),ye=l(40455),se=l(38288),pe=l(29157),Ee=l(89587);const L=["scrollContainer"],t=S=>({"display-none":S}),s=S=>({"xs-scroll-y":S}),m=S=>({"h-50":S}),u=()=>[],_=S=>({"mr-0":S});function T(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function P(S,Xt){1&S&&(h.j41(0,"span",34),h.EFF(1,"N/A"),h.k0s())}function C(S,Xt){if(1&S&&h.nrm(0,"qr-code",33),2&S){const de=h.XpG();h.Y8G("value",null==de.invoice?null:de.invoice.payment_request)("size",de.qrWidth)}}function a(S,Xt){1&S&&(h.j41(0,"span",35),h.EFF(1,"QR Code Not Applicable"),h.k0s())}function x(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Y(S,Xt){1&S&&(h.qex(0),h.EFF(1," (zero amount) "),h.bVm())}function R(S,Xt){1&S&&h.nrm(0,"span",41)}function U(S,Xt){if(1&S&&(h.j41(0,"div",37)(1,"div",38)(2,"span",39),h.EFF(3),h.nI1(4,"number"),h.k0s(),h.DNE(5,R,1,0,"span",40),h.k0s()()),2&S){const de=h.XpG(2);h.R7$(3),h.SpI("",h.bMT(4,2,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats"),h.R7$(2),h.Y8G("ngForOf",h.lJ4(4,u).constructor(35))}}function fe(S,Xt){if(1&S&&(h.j41(0,"div"),h.EFF(1),h.nI1(2,"number"),h.k0s()),2&S){const de=h.XpG(2);h.R7$(),h.SpI("",h.bMT(2,1,null==de.invoice?null:de.invoice.amt_paid_sat)," Sats")}}function re(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,U,6,5,"div",36)(2,fe,3,3,"div",23),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf",de.flgInvoicePaid),h.R7$(),h.Y8G("ngIf",!de.flgInvoicePaid)}}function he(S,Xt){1&S&&(h.j41(0,"span"),h.EFF(1,"-"),h.k0s())}function Oe(S,Xt){1&S&&h.nrm(0,"mat-spinner",43),2&S&&h.Y8G("diameter",20)}function ge(S,Xt){if(1&S&&(h.qex(0),h.DNE(1,he,2,0,"span",23)(2,Oe,1,1,"mat-spinner",42),h.bVm()),2&S){const de=h.XpG();h.R7$(),h.Y8G("ngIf","OPEN"!==(null==de.invoice?null:de.invoice.state)||!de.flgVersionCompatible),h.R7$(),h.Y8G("ngIf","OPEN"===(null==de.invoice?null:de.invoice.state)&&de.flgVersionCompatible)}}function ce(S,Xt){1&S&&h.eu8(0)}function Re(S,Xt){if(1&S&&(h.j41(0,"div"),h.DNE(1,ce,1,0,"ng-container",44),h.k0s()),2&S){h.XpG();const de=h.sdS(79);h.R7$(),h.Y8G("ngTemplateOutlet",de)}}function Me(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",45)(1,"button",46),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onScrollDown())}),h.j41(2,"mat-icon",47),h.EFF(3,"arrow_downward"),h.k0s()()()}}function ve(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Show Advanced"),h.k0s())}function oe(S,Xt){1&S&&(h.j41(0,"p"),h.EFF(1,"Hide Advanced"),h.k0s())}function Se(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",48),h.bIt("copied",function(me){A.eBV(de);const Le=h.XpG();return A.Njj(Le.onCopyPayment(me))}),h.EFF(1),h.k0s()}if(2&S){const de=h.XpG();h.Y8G("payload",null==de.invoice?null:de.invoice.payment_request),h.R7$(),h.JRh(de.screenSize===de.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function be(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"button",49),h.bIt("click",function(){A.eBV(de);const me=h.XpG();return A.Njj(me.onClose())}),h.EFF(1,"OK"),h.k0s()}}function nt(S,Xt){if(1&S&&h.nrm(0,"span",64),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function $e(S,Xt){if(1&S&&h.nrm(0,"span",65),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function dt(S,Xt){if(1&S&&h.nrm(0,"span",66),2&S){const de=h.XpG(4);h.Y8G("ngClass",h.eq3(1,_,de.screenSize===de.screenSizeEnum.XS))}}function yt(S,Xt){if(1&S&&(h.j41(0,"div",53)(1,"div",58)(2,"span",59),h.DNE(3,nt,1,3,"span",60)(4,$e,1,3,"span",61)(5,dt,1,3,"span",62),h.EFF(6),h.k0s(),h.j41(7,"span",63),h.EFF(8),h.nI1(9,"number"),h.k0s()(),h.nrm(10,"mat-divider",24),h.k0s()),2&S){const de=Xt.$implicit,ae=h.XpG(3);h.R7$(3),h.Y8G("ngIf","SETTLED"===de.state),h.R7$(),h.Y8G("ngIf","ACCEPTED"===de.state),h.R7$(),h.Y8G("ngIf","CANCELED"===de.state),h.R7$(),h.SpI(" ",de.chan_id," "),h.R7$(2),h.JRh(h.i5U(9,6,+de.amt_msat/1e3||0,ae.getDecimalFormat(de))),h.R7$(2),h.Y8G("inset",!0)}}function Et(S,Xt){if(1&S){const de=h.RV6();h.j41(0,"div",19)(1,"mat-expansion-panel",51),h.bIt("opened",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.flgOpened=!0)})("closed",function(){A.eBV(de);const me=h.XpG(2);return A.Njj(me.onExpansionClosed())}),h.j41(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",52),h.EFF(5,"HTLCs"),h.k0s()()(),h.j41(6,"div",53)(7,"div",54)(8,"span",55),h.EFF(9,"Channel ID"),h.k0s(),h.j41(10,"span",56),h.EFF(11,"Amount (Sats)"),h.k0s()(),h.nrm(12,"mat-divider",24),h.DNE(13,yt,11,9,"div",57),h.k0s()()()}if(2&S){const de=h.XpG(2);h.R7$(12),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngForOf",null==de.invoice?null:de.invoice.htlcs)}}function rt(S,Xt){1&S&&h.nrm(0,"mat-divider",24),2&S&&h.Y8G("inset",!0)}function Mn(S,Xt){if(1&S&&(h.nrm(0,"mat-divider",24),h.j41(1,"div",19)(2,"div",25)(3,"h4",21),h.EFF(4,"Preimage"),h.k0s(),h.j41(5,"span",26),h.EFF(6),h.k0s()()(),h.nrm(7,"mat-divider",24),h.j41(8,"div",19)(9,"div",20)(10,"h4",21),h.EFF(11,"State"),h.k0s(),h.j41(12,"span",26),h.EFF(13),h.k0s()(),h.j41(14,"div",20)(15,"h4",21),h.EFF(16,"Expiry"),h.k0s(),h.j41(17,"span",26),h.EFF(18),h.nI1(19,"date"),h.k0s()()(),h.nrm(20,"mat-divider",24),h.j41(21,"div",19)(22,"div",20)(23,"h4",21),h.EFF(24,"Private Routing Hints"),h.k0s(),h.j41(25,"span",26),h.EFF(26),h.k0s()(),h.j41(27,"div",20)(28,"h4",21),h.EFF(29,"AMP Invoice"),h.k0s(),h.j41(30,"span",26),h.EFF(31),h.k0s()()(),h.nrm(32,"mat-divider",24),h.DNE(33,Et,14,2,"div",50)(34,rt,1,1,"mat-divider",17)),2&S){const de=h.XpG();h.Y8G("inset",!0),h.R7$(6),h.JRh((null==de.invoice?null:de.invoice.r_preimage)||"-"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==de.invoice?null:de.invoice.state),h.R7$(5),h.JRh(h.i5U(19,11,1e3*(+(null==de.invoice?null:de.invoice.creation_date)+ +(null==de.invoice?null:de.invoice.expiry)),"dd/MMM/y HH:mm")),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null!=de.invoice&&de.invoice.private?"Yes":"No"),h.R7$(5),h.JRh(null!=de.invoice&&de.invoice.is_amp?"Yes":"No"),h.R7$(),h.Y8G("inset",!0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0),h.R7$(),h.Y8G("ngIf",(null==de.invoice?null:de.invoice.htlcs)&&(null==de.invoice?null:de.invoice.htlcs.length)>0)}}let qt=(()=>{var S;class Xt{set container(ae){ae&&(this.scrollContainer=ae)}constructor(ae,me,Le,et,tn,Vt){this.dialogRef=ae,this.data=me,this.logger=Le,this.commonService=et,this.snackBar=tn,this.store=Vt,this.faReceipt=g.Mf0,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=o.f7,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new p.B,new p.B,new p.B,new p.B,new p.B]}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===o.f7.XS&&(this.qrWidth=220),this.store.select(e.pI).pipe((0,D.Q)(this.unSubs[0])).subscribe(me=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(me.version,"0.11.0")});const ae=JSON.parse(JSON.stringify(this.invoice));this.store.select(e.rN).pipe((0,D.Q)(this.unSubs[1])).subscribe(me=>{const Le=this.invoice?.state,tn=(me.listInvoices.invoices||[]).find(Vt=>Vt.r_hash===ae.r_hash)||null;tn&&(this.invoice=tn),Le!==this.invoice?.state&&"SETTLED"===this.invoice?.state&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(me)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced,this.flgOpened=!1}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+60}onExpansionClosed(){this.flgOpened=!1,this.scrollContainer.nativeElement.scrollTop=0}onCopyPayment(ae){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+ae)}getDecimalFormat(ae){return ae.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(ae=>{ae.next(null),ae.complete()})}static#e=S=()=>(this.\u0275fac=function(me){return new(me||Xt)(h.rXU(i.CP),h.rXU(i.Vh),h.rXU(d.gP),h.rXU(w.h),h.rXU(f.UG),h.rXU(F.il))},this.\u0275cmp=h.VBU({type:Xt,selectors:[["rtl-invoice-information"]],viewQuery:function(me,Le){if(1&me&&h.GBs(L,5),2&me){let et;h.mGM(et=h.lsd())&&(Le.container=et.first)}},standalone:!1,decls:80,vars:49,consts:[["scrollContainer",""],["hideAdvancedText",""],["advancedBlock",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign.gt-sm","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["class","font-size-300",4,"ngIf"],["fxLayout","column","fxFlex","65"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large",3,"ngClass"],["fxLayout","column"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],[3,"ngClass"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[4,"ngIf"],[1,"my-1",3,"inset"],["fxFlex","100"],[1,"overflow-wrap","foreground-secondary-text"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll Down","fxLayoutAlign","center center",3,"click"],["fxLayoutAlign","center center"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"flat-expansion-panel",3,"opened","closed"],["fxLayoutAlign","start center","fxFlex","100",1,"font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100",1,"mt-minus-1"],["fxFlex","60",1,"foreground-secondary-text","font-bold-500"],["fxFlex","40",1,"foreground-secondary-text","font-bold-500"],["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start","fxFlex","100"],["fxFlex","60",1,"foreground-secondary-text"],["class","dot green","matTooltip","Settled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Accepted","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Cancelled","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["fxFlex","40",1,"foreground-secondary-text"],["matTooltip","Settled","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Accepted","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Cancelled","matTooltipPosition","right",1,"dot","red",3,"ngClass"]],template:function(me,Le){if(1&me){const et=h.RV6();h.j41(0,"div",3)(1,"div",4),h.DNE(2,T,1,2,"qr-code",5)(3,P,2,0,"span",6),h.k0s(),h.j41(4,"div",7)(5,"mat-card-header",8)(6,"div",9),h.nrm(7,"fa-icon",10),h.j41(8,"span",11),h.EFF(9),h.k0s()(),h.j41(10,"button",12),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onClose())}),h.EFF(11,"X"),h.k0s()(),h.j41(12,"mat-card-content",13)(13,"div",14)(14,"div",15),h.DNE(15,C,1,2,"qr-code",5)(16,a,2,0,"span",16),h.k0s(),h.DNE(17,x,1,1,"mat-divider",17),h.j41(18,"div",18,0)(20,"div",19)(21,"div",20)(22,"h4",21),h.EFF(23),h.k0s(),h.j41(24,"span",22),h.EFF(25),h.nI1(26,"number"),h.DNE(27,Y,2,0,"ng-container",23),h.k0s()(),h.j41(28,"div",20)(29,"h4",21),h.EFF(30,"Amount Settled"),h.k0s(),h.j41(31,"span",22),h.DNE(32,re,3,2,"ng-container",23)(33,ge,3,2,"ng-container",23),h.k0s()()(),h.nrm(34,"mat-divider",24),h.j41(35,"div",19)(36,"div",20)(37,"h4",21),h.EFF(38,"Date Created"),h.k0s(),h.j41(39,"span",22),h.EFF(40),h.nI1(41,"date"),h.k0s()(),h.j41(42,"div",20)(43,"h4",21),h.EFF(44,"Date Settled"),h.k0s(),h.j41(45,"span",22),h.EFF(46),h.nI1(47,"date"),h.k0s()()(),h.nrm(48,"mat-divider",24),h.j41(49,"div",19)(50,"div",25)(51,"h4",21),h.EFF(52,"Memo"),h.k0s(),h.j41(53,"span",22),h.EFF(54),h.k0s()()(),h.nrm(55,"mat-divider",24),h.j41(56,"div",19)(57,"div",25)(58,"h4",21),h.EFF(59,"Payment Request"),h.k0s(),h.j41(60,"span",26),h.EFF(61),h.k0s()()(),h.nrm(62,"mat-divider",24),h.j41(63,"div",19)(64,"div",25)(65,"h4",21),h.EFF(66,"Payment Hash"),h.k0s(),h.j41(67,"span",26),h.EFF(68),h.k0s()()(),h.DNE(69,Re,2,1,"div",23),h.k0s()()(),h.DNE(70,Me,4,0,"div",27),h.j41(71,"div",28)(72,"button",29),h.bIt("click",function(){return A.eBV(et),A.Njj(Le.onShowAdvanced())}),h.DNE(73,ve,2,0,"p",30)(74,oe,2,0,"ng-template",null,1,h.C5r),h.k0s(),h.DNE(76,Se,2,2,"button",31)(77,be,2,0,"button",32),h.k0s()()(),h.DNE(78,Mn,35,14,"ng-template",null,2,h.C5r)}if(2&me){const et=h.sdS(75);h.R7$(),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(41,t,Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(4),h.Y8G("icon",Le.faReceipt),h.R7$(2),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?Le.newlyAdded?"Created":"Invoice":Le.newlyAdded?"Invoice Created":"Invoice Information"),h.R7$(3),h.Y8G("ngClass",h.eq3(43,s,Le.screenSize===Le.screenSizeEnum.XS)),h.R7$(2),h.Y8G("fxLayoutAlign",null!=Le.invoice&&Le.invoice.payment_request&&""!==(null==Le.invoice?null:Le.invoice.payment_request)?"center start":"center center")("ngClass",h.eq3(45,t,Le.screenSize!==Le.screenSizeEnum.XS&&Le.screenSize!==Le.screenSizeEnum.SM)),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",Le.screenSize===Le.screenSizeEnum.XS||Le.screenSize===Le.screenSizeEnum.SM),h.R7$(),h.Y8G("ngClass",h.eq3(47,m,(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced)),h.R7$(5),h.JRh(Le.screenSize===Le.screenSizeEnum.XS?"Amount":"Amount Requested"),h.R7$(2),h.SpI("",h.bMT(26,33,(null==Le.invoice?null:Le.invoice.value)||0)," Sats"),h.R7$(2),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.value)||"0"===(null==Le.invoice?null:Le.invoice.value)),h.R7$(5),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.amt_paid_sat)&&"OPEN"!==(null==Le.invoice?null:Le.invoice.state)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.amt_paid_sat)||"0"===(null==Le.invoice?null:Le.invoice.amt_paid_sat)),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh(h.i5U(41,35,1e3*(null==Le.invoice?null:Le.invoice.creation_date),"dd/MMM/y HH:mm")),h.R7$(6),h.JRh(0!=+(null==Le.invoice?null:Le.invoice.settle_date)?h.i5U(47,38,1e3*+(null==Le.invoice?null:Le.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),h.R7$(2),h.Y8G("inset",!0),h.R7$(6),h.JRh(null==Le.invoice?null:Le.invoice.memo),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.payment_request)||"N/A"),h.R7$(),h.Y8G("inset",!0),h.R7$(6),h.JRh((null==Le.invoice?null:Le.invoice.r_hash)||""),h.R7$(),h.Y8G("ngIf",Le.showAdvanced),h.R7$(),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.htlcs)&&(null==Le.invoice?null:Le.invoice.htlcs.length)>0&&Le.showAdvanced&&Le.flgOpened),h.R7$(3),h.Y8G("ngIf",!Le.showAdvanced)("ngIfElse",et),h.R7$(3),h.Y8G("ngIf",(null==Le.invoice?null:Le.invoice.payment_request)&&""!==(null==Le.invoice?null:Le.invoice.payment_request)),h.R7$(),h.Y8G("ngIf",!(null!=Le.invoice&&Le.invoice.payment_request)||""===(null==Le.invoice?null:Le.invoice.payment_request))}},dependencies:[M.YU,M.Sq,M.bT,M.T3,K.aY,j.$z,j.$0,Z.m2,Z.MM,ee.GK,ee.Z2,ee.WN,V.An,Q.q,$.LG,ie.DJ,ie.sA,ie.UI,_e.PW,ye.oV,se.Um,pe.U,Ee.N,M.QX,M.vh],encapsulation:2}))}return S(),Xt})()},1001(ke,q,l){"use strict";l.d(q,{C:()=>g,q:()=>p});var i=l(11514);const g=[(0,i.hZ)("opacityAnimation",[(0,i.kY)(":enter",[(0,i.iF)({opacity:0}),(0,i.i0)("1000ms ease-in",(0,i.iF)({opacity:1}))]),(0,i.kY)(":leave",[(0,i.i0)("0ms",(0,i.iF)({opacity:0}))])])],p=[(0,i.hZ)("fadeIn",[(0,i.kY)("void => *",[]),(0,i.kY)("* => void",[]),(0,i.kY)("* => *",[(0,i.i0)(800,(0,i.i7)([(0,i.iF)({opacity:0,transform:"translateY(100%)"}),(0,i.iF)({opacity:1,transform:"translateY(0%)"})]))])])]},9881(ke,q,l){"use strict";l.d(q,{E:()=>g});var i=l(11514);const g=(0,i.hZ)("routeAnimation",[(0,i.kY)("* => *",[(0,i.P)(":enter, :leave",(0,i.iF)({position:"fixed",width:"100%"}),{optional:!0}),(0,i.Os)([(0,i.P)(":enter",[(0,i.iF)({transform:"translateX(100%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(0%)"}))],{optional:!0}),(0,i.P)(":leave",[(0,i.iF)({transform:"translateX(0%)"}),(0,i.i0)("1000ms ease-in-out",(0,i.iF)({transform:"translateX(-100%)"}))],{optional:!0})])])])},16949(ke,q,l){"use strict";l.d(q,{k:()=>g});var i=l(11514);const g=[(0,i.hZ)("sliderAnimation",[(0,i.wk)("*",(0,i.iF)({transform:"translateX(0)"})),(0,i.kY)("void => backward",[(0,i.iF)({transform:"translateX(-100%"}),(0,i.i0)("800ms")]),(0,i.kY)("backward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(100%)"}))]),(0,i.kY)("void => forward",[(0,i.iF)({transform:"translateX(100%"}),(0,i.i0)("800ms")]),(0,i.kY)("forward => void",[(0,i.i0)("0ms",(0,i.iF)({transform:"translateX(-100%)"}))])])]},12462(ke,q,l){"use strict";l.d(q,{f:()=>f});var i=l(51585),g=l(73664),p=l(98570),D=l(72200),o=l(88834),e=l(25596),A=l(71997),h=l(52920),d=l(89587);function w(F,M){if(1&F&&(g.j41(0,"p",14),g.EFF(1),g.k0s()),2&F){const K=g.XpG();g.R7$(),g.JRh(K.data.titleMessage)}}let f=(()=>{var F;class M{constructor(j,Z,ee){this.dialogRef=j,this.data=Z,this.logger=ee,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&this.data.message.message?this.data.message.message:"",!this.data.message&&!this.data.titleMessage&&!this.data.message&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.data.message)}onClose(){this.dialogRef.close(!1)}static#e=F=()=>(this.\u0275fac=function(Z){return new(Z||M)(g.rXU(i.CP),g.rXU(i.Vh),g.rXU(p.gP))},this.\u0275cmp=g.VBU({type:M,selectors:[["rtl-error-message"]],standalone:!1,decls:29,vars:6,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large","error-alert-block"],["fxLayout","column"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"],[1,"word-break"],["fxLayout","row","fxLayoutAlign","end center"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(Z,ee){1&Z&&(g.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),g.EFF(5),g.k0s()(),g.j41(6,"button",5),g.bIt("click",function(){return ee.onClose()}),g.EFF(7,"X"),g.k0s()(),g.j41(8,"mat-card-content",6)(9,"div",7),g.DNE(10,w,2,1,"p",8),g.j41(11,"h4",9),g.EFF(12,"Error Code"),g.k0s(),g.j41(13,"span"),g.EFF(14),g.k0s(),g.nrm(15,"mat-divider",10),g.j41(16,"h4",9),g.EFF(17,"Error Message"),g.k0s(),g.j41(18,"span",11),g.EFF(19),g.k0s(),g.nrm(20,"mat-divider",10),g.j41(21,"h4",9),g.EFF(22,"API URL"),g.k0s(),g.j41(23,"span",11),g.EFF(24),g.k0s(),g.nrm(25,"mat-divider",10),g.j41(26,"div",12)(27,"button",13),g.EFF(28,"OK"),g.k0s()()()()()()),2&Z&&(g.R7$(5),g.JRh(ee.data.alertTitle||"ERROR"),g.R7$(5),g.Y8G("ngIf",ee.data.titleMessage),g.R7$(4),g.JRh(ee.data.message.code),g.R7$(5),g.JRh(ee.errorMessage),g.R7$(5),g.JRh(ee.data.message.URL),g.R7$(3),g.Y8G("mat-dialog-close",!1))},dependencies:[D.bT,i.tx,o.$z,e.m2,e.MM,A.q,h.DJ,h.sA,h.UI,d.N],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return F(),M})()},1092(ke,q,l){"use strict";l.d(q,{D:()=>kt});var i=l(89417),g=l(21413),p=l(56977),D=l(51585),o=l(45383),e=l(1001),A=l(4416),h=l(63536),d=l(73664),w=l(2615),f=l(59640),F=l(4104),M=l(72200),K=l(98570),j=l(43694),Z=l(82571),ee=l(88834),V=l(25596),Q=l(9454),$=l(12629),ie=l(33746),_e=l(69588),ye=l(67575),se=l(5951),pe=l(52920),Ee=l(16038),L=l(30450),t=l(40455),s=l(36013),m=l(89587),u=l(71997);const _=Ot=>({"h-5":Ot});function T(Ot,Ze){1&Ot&&d.eu8(0)}function P(Ot,Ze){1&Ot&&d.eu8(0)}function C(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),d.EFF(4),d.nI1(5,"number"),d.k0s()()(),d.DNE(6,P,1,0,"ng-container",2),d.k0s()),2&Ot){const Ge=d.XpG(),Pt=d.sdS(4);d.Y8G("expanded",Ge.panelExpanded)("ngClass",d.eq3(7,_,!Ge.flgShowPanel)),d.R7$(4),d.Lme("Quote for ",Ge.termCaption," amount (",d.bMT(5,5,Ge.quote.amount)," Sats)"),d.R7$(2),d.Y8G("ngTemplateOutlet",Pt)}}function a(Ot,Ze){if(1&Ot&&(d.j41(0,"div",19)(1,"h4",8),d.EFF(2," Prepay Amount (Sats) "),d.j41(3,"mat-icon",20),d.EFF(4,"info_outline"),d.k0s()(),d.j41(5,"span",10),d.EFF(6),d.nI1(7,"number"),d.k0s()()),2&Ot){const Ge=d.XpG(2);d.R7$(6),d.JRh(d.bMT(7,1,null==Ge.quote?null:Ge.quote.prepay_amt_sat))}}function x(Ot,Ze){1&Ot&&d.nrm(0,"mat-divider",13)}function Y(Ot,Ze){if(1&Ot&&(d.j41(0,"div",6)(1,"div",21)(2,"h4",8),d.EFF(3," Swap Server Node Pubkey "),d.j41(4,"mat-icon",22),d.EFF(5,"info_outline"),d.k0s()(),d.j41(6,"span",10),d.EFF(7),d.k0s()()()),2&Ot){const Ge=d.XpG(2);d.R7$(7),d.JRh(null==Ge.quote?null:Ge.quote.swap_payment_dest)}}function R(Ot,Ze){if(1&Ot&&(d.j41(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),d.EFF(4," Swap Fee (Sats) "),d.j41(5,"mat-icon",9),d.EFF(6,"info_outline"),d.k0s()(),d.j41(7,"span",10),d.EFF(8),d.nI1(9,"number"),d.k0s()(),d.j41(10,"div",7)(11,"h4",8),d.EFF(12),d.j41(13,"mat-icon",11),d.EFF(14,"info_outline"),d.k0s()(),d.j41(15,"span",10),d.EFF(16),d.nI1(17,"number"),d.k0s()(),d.DNE(18,a,8,3,"div",12),d.k0s(),d.nrm(19,"mat-divider",13),d.j41(20,"div",6)(21,"div",14)(22,"h4",8),d.EFF(23," Max Off-chain Swap Routing Fee (Sats) "),d.j41(24,"mat-icon",15),d.EFF(25,"info_outline"),d.k0s()(),d.j41(26,"span",10),d.EFF(27),d.nI1(28,"number"),d.k0s()(),d.j41(29,"div",14)(30,"h4",8),d.EFF(31," Max Off-chain Prepay Routing Fee (Sats) "),d.j41(32,"mat-icon",16),d.EFF(33,"info_outline"),d.k0s()(),d.j41(34,"span",10),d.EFF(35,"36"),d.k0s()()(),d.DNE(36,x,1,0,"mat-divider",17)(37,Y,8,1,"div",18),d.k0s()),2&Ot){const Ge=d.XpG();d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-30":"flex-50"),d.R7$(6),d.JRh(d.bMT(9,9,null==Ge.quote?null:Ge.quote.swap_fee_sat)),d.R7$(2),d.Y8G("ngClass",null!=Ge.quote&&Ge.quote.prepay_amt_sat?"flex-35":"flex-50"),d.R7$(2),d.SpI(" ",null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),d.R7$(4),d.JRh(d.bMT(17,11,null!=Ge.quote&&Ge.quote.htlc_sweep_fee_sat?Ge.quote.htlc_sweep_fee_sat:null!=Ge.quote&&Ge.quote.htlc_publish_fee_sat?Ge.quote.htlc_publish_fee_sat:0)),d.R7$(2),d.Y8G("ngIf",null==Ge.quote?null:Ge.quote.prepay_amt_sat),d.R7$(9),d.JRh(d.bMT(28,13,(null==Ge.quote?null:Ge.quote.amount)*((null!=Ge.quote&&Ge.quote.off_chain_swap_routing_fee_percentage?null==Ge.quote?null:Ge.quote.off_chain_swap_routing_fee_percentage:2)/100))),d.R7$(9),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest)),d.R7$(),d.Y8G("ngIf",""!==(null==Ge.quote?null:Ge.quote.swap_payment_dest))}}let U=(()=>{var Ot;class Ze{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-quote"]],inputs:{quote:"quote",termCaption:"termCaption",showPanel:"showPanel",panelExpanded:"panelExpanded"},standalone:!1,decls:5,vars:1,consts:[["informationBlock",""],["quoteDetailsBlock",""],[4,"ngTemplateOutlet"],["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded","ngClass"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],[3,"ngClass"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","50"],["matTooltip","Maximum off-chain fee that may be paid for routing the payment amount to the server",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,T,1,0,"ng-container",2)(1,C,7,9,"ng-template",null,0,d.C5r)(3,R,38,15,"ng-template",null,1,d.C5r),2&Yt){const Zn=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",bn.showPanel?Zn:oi)}},dependencies:[M.YU,M.bT,M.T3,Q.GK,Q.Z2,Q.WN,$.An,u.q,pe.DJ,pe.sA,pe.UI,Ee.PW,t.oV,M.QX],encapsulation:2}))}return Ot(),Ze})();function fe(Ot,Ze){1&Ot&&d.eu8(0)}function re(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"span",4),d.EFF(2),d.k0s()()),2&Ot){const Ge=d.XpG();d.R7$(2),d.JRh(null!=Ge.loopStatus&&Ge.loopStatus.error?null==Ge.loopStatus?null:Ge.loopStatus.error:"Unknown Error.")}}function he(Ot,Ze){if(1&Ot&&(d.j41(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),d.EFF(4,"ID"),d.k0s(),d.j41(5,"span",4),d.EFF(6),d.k0s()()(),d.nrm(7,"mat-divider",8),d.j41(8,"div",5)(9,"div",6)(10,"h4",7),d.EFF(11,"HTLC Address"),d.k0s(),d.j41(12,"span",4),d.EFF(13),d.k0s()()()()),2&Ot){const Ge=d.XpG();d.R7$(6),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.id_bytes),d.R7$(7),d.JRh(null==Ge.loopStatus?null:Ge.loopStatus.htlc_address)}}let Oe=(()=>{var Ot;class Ze{constructor(){}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-status"]],inputs:{loopStatus:"loopStatus"},standalone:!1,decls:5,vars:1,consts:[["loopFailedBlock",""],["loopSuccessfulBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"w-100","my-1"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,fe,1,0,"ng-container",2)(1,re,3,1,"ng-template",null,0,d.C5r)(3,he,14,2,"ng-template",null,1,d.C5r),2&Yt){const Zn=d.sdS(2),oi=d.sdS(4);d.Y8G("ngTemplateOutlet",null!=bn.loopStatus&&bn.loopStatus.error?Zn:oi)}},dependencies:[M.T3,u.q,pe.DJ,pe.sA,pe.UI],encapsulation:2}))}return Ot(),Ze})();var ge=l(16949);const ce=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function Re(Ot,Ze){1&Ot&&d.eu8(0)}function Me(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop In explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function ve(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),d.nrm(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),d.k0s(),d.j41(28,"g",56)(29,"g",57)(30,"g",58),d.nrm(31,"path",59)(32,"rect",60)(33,"polygon",61),d.j41(34,"g",62),d.nrm(35,"path",63),d.k0s(),d.nrm(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),d.k0s(),d.j41(45,"g",73),d.nrm(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),d.k0s(),d.nrm(59,"path",87),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Step 1: Deciding to Loop In"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(65," Your outgoing capacity is depleted and you want to regain it without opening new channels. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function oe(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",88)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",89),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),d.nrm(14,"circle",95)(15,"path",96),d.j41(16,"g",97),d.nrm(17,"polygon",98)(18,"polygon",99)(19,"path",100),d.k0s(),d.j41(20,"g",101),d.nrm(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),d.j41(31,"g",112)(32,"g",113),d.nrm(33,"g",114),d.k0s(),d.nrm(34,"g",115),d.k0s()()(),d.j41(35,"g",116)(36,"g",40),d.nrm(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),d.k0s(),d.j41(53,"g",56)(54,"g",57)(55,"g",58),d.nrm(56,"path",59)(57,"rect",60)(58,"polygon",61),d.j41(59,"g",122),d.nrm(60,"path",63),d.k0s(),d.nrm(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),d.k0s(),d.j41(70,"g",73),d.nrm(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),d.k0s(),d.nrm(84,"path",139),d.k0s()()()(),d.nrm(85,"path",140)(86,"path",141),d.k0s()()()(),w.joV(),d.j41(87,"div",30)(88,"mat-card-title"),d.EFF(89,"Step 2: Send payment out"),d.k0s()(),d.j41(90,"div",31)(91,"mat-card-subtitle",32),d.EFF(92," Your node sends funds on-chain to loop server to be swapped with off-chain liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Se(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",142)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),d.nrm(10,"circle",12)(11,"path",147),d.k0s(),d.j41(12,"g",14),d.nrm(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),d.k0s()(),d.j41(28,"g",149),d.nrm(29,"polygon",150)(30,"polygon",99)(31,"path",151),d.k0s(),d.j41(32,"g",152),d.nrm(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),d.j41(43,"g",112)(44,"g",113),d.nrm(45,"g",114),d.k0s(),d.nrm(46,"g",115),d.k0s()()(),d.nrm(47,"path",153),d.k0s()()()(),w.joV(),d.j41(48,"div",30)(49,"mat-card-title"),d.EFF(50,"Step 3: Recieve Funds Off-chain"),d.k0s()(),d.j41(51,"div",31)(52,"mat-card-subtitle",32),d.EFF(53," Loop server sends equivalent funds off-chain to your node by making a lightning payment to you. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function be(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",154)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),d.nrm(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),d.k0s(),d.j41(28,"g",172),d.nrm(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),d.k0s(),d.nrm(43,"path",187),d.k0s()(),d.nrm(44,"circle",188),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Done!"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(50," You send the payment on-chain from your wallet and also move remote balance to the local side of the node, gaining outgoing capacity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,ce,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let nt=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-in-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopIn_Step02","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(542.000000, 210.000000)"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"],["fxFlex","30","viewBox","0 0 364 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","Loopv0.3","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopIn_Step03","transform","translate(-1127.000000, -164.000000)"],["id","LoopIn_Step03","transform","translate(1127.000000, 164.000000)"],["id","Group-21"],["id","Group-35","transform","translate(107.000000, 10.000000)"],["id","Oval","fill-rule","nonzero","cx","214.487742","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M232.082742,28.5000036 C236.446821,28.5000036 239.999928,25.1343958 239.999928,21.0000215 C239.999928,16.8656472 236.446821,13.5000393 232.082742,13.5000393 C228.98433,13.5000393 226.560889,15.4359631 224.999964,17.1843872 C223.43904,15.4359631 221.015599,13.5000393 217.917187,13.5000393 C213.553107,13.5000393 210,16.8656472 210,21.0000215 C210,25.1343958 213.553107,28.5000036 217.917187,28.5000036 C221.015599,28.5000036 223.43904,26.5640798 224.999964,24.8156557 C226.560889,26.5640798 228.98433,28.5000036 232.082742,28.5000036 Z M217.917187,24.0000143 C216.032807,24.0000143 214.499989,22.6546959 214.499989,21.0000286 C214.499989,19.3453471 216.032807,18.0000286 217.917187,18.0000286 C219.707771,18.0000286 221.357776,19.6921938 222.323426,21.0000286 C221.36716,22.2937501 219.703102,24.0000143 217.917187,24.0000143 Z M232.082742,24.0000143 C230.292157,24.0000143 228.642152,22.3078492 227.676502,21.0000286 C228.632768,19.7062929 230.296827,18.0000286 232.082742,18.0000286 C233.967121,18.0000286 235.499939,19.3453471 235.499939,21.0000286 C235.499939,22.6546959 233.967121,24.0000143 232.082742,24.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(0.000000, 64.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-20"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-20"],["id","Group-43","transform","translate(152.000000, 35.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["id","LoopIn_Step03","fill-rule","nonzero"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-10"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","15.8607624","r","7.93434243"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.35996418",1,"fill-color-31"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-20"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-4"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-20"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-20"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-16"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-9"],["d","M93.2292414,91.9116485 L93.2292414,89.7922708 C93.647506,89.8022089 94.0558324,89.8022089 94.4442517,89.8022089 L94.4442517,91.9116485 L95.9779294,91.9116485 L95.9779294,89.7623948 C98.5473303,89.6229527 100.264986,88.975618 100.494057,86.5555973 C100.673282,84.6136241 99.757032,83.7471573 98.3030443,83.3986138 C99.1794183,82.9504733 99.7371558,82.1537275 99.6076827,80.8291821 C99.4383337,79.0166511 97.9497787,78.4091306 95.9778985,78.2398742 L95.9778985,75.7301945 L94.4442208,75.7301945 L94.4442208,78.1701531 C94.0458325,78.1701531 93.6375061,78.1800912 93.2292106,78.1900602 L93.2292106,75.7301945 L91.695502,75.7301945 L91.695502,78.2398742 C91.1316227,78.2569109 90.4748746,78.2485777 88.6181777,78.2398742 L88.6181777,79.8731181 C89.8290831,79.8516987 90.4644118,79.7738914 90.6099957,80.5502979 L90.6099957,87.4220333 C90.517559,88.0380413 90.0245427,87.9493391 88.926907,87.9299259 L88.6181777,89.7524258 L89.5798445,89.7528809 C91.4824304,89.7548325 91.6955329,89.7623948 91.6955329,89.7623948 L91.6955329,91.9116485 L93.2292414,91.9116485 Z M93.2591175,83.0400705 L93.2591175,79.9826533 C94.1255534,79.9826533 96.8343964,79.7137998 96.8343964,81.5163618 C96.8343964,83.2392647 94.1255843,83.0400705 93.2591175,83.0400705 Z M93.2591175,87.9398948 L93.2591175,84.5737791 C94.2948407,84.5737791 97.4665153,84.2849568 97.4665153,86.2568678 C97.4665153,88.1589961 94.2948407,87.9398948 93.2591175,87.9398948 Z","id","b","fill-rule","nonzero","transform","translate(94.567271, 83.820921) rotate(14.000000) translate(-94.567271, -83.820921) ",1,"fill-color-9"],["d","M305.611064,96.181454 L305.611064,94.0620763 C306.029328,94.0720144 306.437655,94.0720144 306.826074,94.0720144 L306.826074,96.181454 L308.359752,96.181454 L308.359752,94.0322003 C310.929153,93.8927582 312.646809,93.2454235 312.875879,90.8254028 C313.055104,88.8834296 312.138854,88.0169628 310.684867,87.6684193 C311.561241,87.2202788 312.118978,86.423533 311.989505,85.0989876 C311.820156,83.2864566 310.331601,82.678936 308.359721,82.5096797 L308.359721,80 L306.826043,80 L306.826043,82.4399586 C306.427655,82.4399586 306.019328,82.4498967 305.611033,82.4598657 L305.611033,80 L304.077324,80 L304.077324,82.5096797 C303.513445,82.5267164 302.856697,82.5183832 301,82.5096797 L301,84.1429236 C302.210905,84.1215042 302.846234,84.0436969 302.991818,84.8201034 L302.991818,91.6918387 C302.899381,92.3078468 302.406365,92.2191446 301.308729,92.1997314 L301,94.0222313 L301.961667,94.0226864 C303.864253,94.024638 304.077355,94.0322003 304.077355,94.0322003 L304.077355,96.181454 L305.611064,96.181454 Z M305.64094,87.309876 L305.64094,84.2524587 C306.507376,84.2524587 309.216219,83.9836053 309.216219,85.7861673 C309.216219,87.5090702 306.507407,87.309876 305.64094,87.309876 Z M305.64094,92.2097003 L305.64094,88.8435846 C306.676663,88.8435846 309.848338,88.5547623 309.848338,90.5266733 C309.848338,92.4288016 306.676663,92.2097003 305.64094,92.2097003 Z","id","b","fill-rule","nonzero","transform","translate(306.949093, 88.090727) rotate(14.000000) translate(-306.949093, -88.090727) ",1,"fill-color-26"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step04","transform","translate(-1799.000000, -756.000000)"],["id","LoopIn_Step04","transform","translate(1799.000000, 756.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["d","M225.805162,92.2474279 C226.071703,92.2474279 226.325569,92.1077892 226.465207,91.8666288 L232.050261,82.2197185 C232.345374,81.7151473 231.980441,81.0773212 231.393376,81.0773212 L227.731346,81.0773212 L229.083201,76.9583506 C229.210134,76.4759989 228.845202,76 228.346983,76 L223.777394,76 C223.396595,76 223.07291,76.2824384 223.022149,76.6600456 L222.006685,84.2760274 C221.946379,84.7329987 222.301798,85.1391782 222.76193,85.1391782 L226.528674,85.1391782 L225.065752,91.3112968 C224.951525,91.7936485 225.319618,92.2474279 225.805162,92.2474279 Z","id","b","fill-rule","nonzero","transform","translate(227.077378, 84.123714) rotate(14.000000) translate(-227.077378, -84.123714) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopIn_Step05","transform","translate(-2386.000000, -764.000000)","fill-rule","nonzero"],["id","LoopIn_Step05","transform","translate(2386.000000, 764.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,Re,1,0,"ng-container",5)(1,Me,32,5,"ng-template",null,0,d.C5r)(3,ve,66,5,"ng-template",null,1,d.C5r)(5,oe,93,5,"ng-template",null,2,d.C5r)(7,Se,54,5,"ng-template",null,3,d.C5r)(9,be,51,5,"ng-template",null,4,d.C5r),2&Yt){const Zn=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?Zn:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ge.k]}}))}return Ot(),Ze})();const $e=(Ot,Ze)=>({"small-svg":Ot,"large-svg":Ze});function dt(Ot,Ze){1&Ot&&d.eu8(0)}function yt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",7)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),d.nrm(8,"circle",12)(9,"path",13),d.k0s(),d.j41(10,"g",14),d.nrm(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),d.k0s()()()()(),w.joV(),d.j41(26,"div",30)(27,"mat-card-title"),d.EFF(28,"Loop Out explained."),d.k0s()(),d.j41(29,"div",31)(30,"mat-card-subtitle",32),d.EFF(31," Lightning Loop is a non custodial service offered by Lightning Labs to bridge on-chain and off-chain Bitcoin using Submarine swaps. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Et(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",33)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),d.nrm(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),d.k0s(),d.j41(28,"g",56),d.nrm(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),d.k0s(),d.nrm(43,"path",71),d.k0s()(),d.nrm(44,"circle",72),d.k0s()()()(),w.joV(),d.j41(45,"div",30)(46,"mat-card-title"),d.EFF(47,"Step 1: Deciding to Loop Out"),d.k0s()(),d.j41(48,"div",31)(49,"mat-card-subtitle",32),d.EFF(50," You have a channel with a local balance amount and you want to gain inbound liquidity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function rt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",73)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",74),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",75)(11,"g",76),d.nrm(12,"circle",77)(13,"path",78),d.j41(14,"g",79),d.nrm(15,"polygon",80)(16,"polygon",81)(17,"path",82),d.k0s(),d.j41(18,"g",83),d.nrm(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),d.j41(29,"g",94)(30,"g",95),d.nrm(31,"g",96),d.k0s(),d.nrm(32,"g",97),d.k0s(),d.nrm(33,"path",98),d.k0s(),d.j41(34,"g",99)(35,"g",41)(36,"g",42),d.nrm(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),d.k0s(),d.j41(52,"g",56),d.nrm(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),d.k0s(),d.nrm(67,"path",111),d.k0s()()()()()(),w.joV(),d.j41(68,"div",30)(69,"mat-card-title"),d.EFF(70,"Step 2: Send lightning payment"),d.k0s()(),d.j41(71,"div",31)(72,"mat-card-subtitle",32),d.EFF(73," Your node pays a lightning invoice for the amount requested via the loop service. This moves the local balance, for the amount paid, to the remote side of the channel. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function Mn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",112)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),d.nrm(9,"circle",12)(10,"path",117),d.k0s(),d.j41(11,"g",14),d.nrm(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),d.k0s()(),d.j41(27,"g",119),d.nrm(28,"polygon",80)(29,"polygon",120)(30,"path",82),d.k0s(),d.j41(31,"g",121),d.nrm(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),d.j41(42,"g",94)(43,"g",95),d.nrm(44,"g",96),d.k0s(),d.nrm(45,"g",97),d.k0s(),d.nrm(46,"path",123),d.k0s()()()()(),w.joV(),d.j41(47,"div",30)(48,"mat-card-title"),d.EFF(49,"Step 3: Receive funds back"),d.k0s()(),d.j41(50,"div",31)(51,"mat-card-subtitle",32),d.EFF(52," Loop service then sends you a payment on-chain for the amount same as the lightning payment minus the fee. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}function qt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",6),d.bIt("swipe",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.onSwipe(Yt))}),w.qSk(),d.j41(1,"svg",124)(2,"desc"),d.EFF(3,"Created with Sketch."),d.k0s(),d.j41(4,"defs")(5,"linearGradient",34),d.nrm(6,"stop",35)(7,"stop",36)(8,"stop",37),d.k0s()(),d.j41(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),d.nrm(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),d.k0s(),d.j41(28,"g",142)(29,"g",143)(30,"g",144),d.nrm(31,"path",145)(32,"rect",146)(33,"polygon",147),d.j41(34,"g",148),d.nrm(35,"path",149),d.k0s(),d.nrm(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),d.k0s(),d.j41(45,"g",159),d.nrm(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),d.k0s(),d.nrm(59,"path",173),d.k0s()()()()()(),w.joV(),d.j41(60,"div",30)(61,"mat-card-title"),d.EFF(62,"Done!"),d.k0s()(),d.j41(63,"div",31)(64,"mat-card-subtitle",32),d.EFF(65," Final settlement occurs when your node sweeps the on-chain payment and the loop server settles the lightning invoice. You receive the payment on-chain in your wallet and also move local balance to the remote side of the channel, gaining inbound capacity. "),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@sliderAnimation",Ge.animationDirection),d.R7$(),d.Y8G("ngClass",d.l_i(2,$e,Ge.screenSize===Ge.screenSizeEnum.XS,Ge.screenSize!==Ge.screenSizeEnum.XS))}}let S=(()=>{var Ot;class Ze{constructor(Pt){this.commonService=Pt,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new d.bkB,this.screenSize="",this.screenSizeEnum=A.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(Pt){2===Pt.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===Pt.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-out-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["loopStepBlock1",""],["loopStepBlock2",""],["loopStepBlock3",""],["loopStepBlock4",""],["loopStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",3,"swipe"],["fxFlex","30","viewBox","0 0 108 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","Loopv0.2","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","LoopOut_Step01","transform","translate(-594.000000, -215.000000)","fill-rule","nonzero"],["id","Loop_Step01","transform","translate(594.000000, 215.000000)"],["id","Group-16","transform","translate(23.000000, 0.000000)"],["id","Oval","cx","42.4877419","cy","42.4877419","r","42.4877419",1,"fill-color-2"],["d","M56.0827415,28.5000036 C60.4468211,28.5000036 63.9999285,25.1343958 63.9999285,21.0000215 C63.9999285,16.8656472 60.4468211,13.5000393 56.0827415,13.5000393 C52.9843297,13.5000393 50.5608889,15.4359631 48.9999642,17.1843872 C47.4390396,15.4359631 45.0155987,13.5000393 41.9171869,13.5000393 C37.5531074,13.5000393 34,16.8656472 34,21.0000215 C34,25.1343958 37.5531074,28.5000036 41.9171869,28.5000036 C45.0155987,28.5000036 47.4390396,26.5640798 48.9999642,24.8156557 C50.5608889,26.5640798 52.9843297,28.5000036 56.0827415,28.5000036 Z M41.9171869,24.0000143 C40.0328073,24.0000143 38.4999893,22.6546959 38.4999893,21.0000286 C38.4999893,19.3453471 40.0328073,18.0000286 41.9171869,18.0000286 C43.707771,18.0000286 45.3577763,19.6921938 46.3234264,21.0000286 C45.3671604,22.2937501 43.7031019,24.0000143 41.9171869,24.0000143 Z M56.0827415,24.0000143 C54.2921574,24.0000143 52.6421522,22.3078492 51.676502,21.0000286 C52.6327681,19.7062929 54.2968266,18.0000286 56.0827415,18.0000286 C57.9671212,18.0000286 59.4999392,19.3453471 59.4999392,21.0000286 C59.4999392,22.6546959 57.9671212,24.0000143 56.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Group-21","transform","translate(0.000000, 36.000000)"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-7"],["id","Oval","opacity","0.1","cx","48.644129","cy","75.1589677","rx","40.8402581","ry","5.55600756",1,"fill-color-27"],["id","Rectangle","x","25.2325161","y","6.09470968","width","54.1068387","height","62.9512258",1,"fill-color-26"],["id","Rectangle","x","20","y","1.24344979e-14","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","20","y","26","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","19.7698065","y","52.9179355","width","65.0322581","height","22.3710968",1,"fill-color-19"],["id","Rectangle","x","67.6335484","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","3.75354839","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","30.0265806","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","67.6335484","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","73.6165161","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["id","Rectangle","x","79.5994839","y","56.2996129","width","4.16206452","height","4.16206452",1,"fill-color-green-light"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","viewBox","0 0 205 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","0%","id","linearGradient-1"],["stop-color","#808080","stop-opacity","0.25","offset","0%"],["stop-color","#808080","stop-opacity","0.12","offset","54%"],["stop-color","#808080","stop-opacity","0.1","offset","100%"],["id","LoopOut_Step02","transform","translate(-540.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step02","transform","translate(540.000000, 210.000000)"],["id","Illustration_Step02"],["id","Group-31"],["id","Group-2"],["id","Rectangle","x","0","y","0","width","90.1490688","height","100.616012",1,"fill-color-10"],["id","Rectangle","x","1.48932403","y","67.1775068","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","82.4918815","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","34.712875","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","42.1244006","width","51.2","height","16.0118784",1,"fill-color-primary-lighter"],["id","Oval","cx","76.317438","cy","50.0294431","r","8.15070413",1,"fill-color-primary-darker"],["id","Rectangle","x","1.48932403","y","2.2482432","width","87.1682273","height","31.2472904",1,"fill-color-1"],["id","Rectangle","x","8.64422093","y","74.5890324","width","24","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","42.1244006","width","36.8","height","16.0118784",1,"fill-color-primary"],["id","Rectangle","x","8.64422093","y","9.66196224","width","51.2","height","16.0118784",1,"fill-color-primary"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","50.2465905","r","8.78679245"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","82.7090289","r","8.78679245"],["id","Group","transform","translate(60.115627, 35.744427)"],["d","M133.318807,1.04548939 L82.5936439,1.04548939 L82.5936439,0 L59.5928852,0 L59.5928852,1.04548939 L8.65861943,1.04548939 C7.74861523,1.04548887 6.87588228,1.4069864 6.23241214,2.05045654 C5.58894199,2.69392669 5.22744498,3.56665964 5.22744498,4.47666384 L5.22744498,73.9350108 C5.22744498,74.8450173 5.5889387,75.7177532 6.23240879,76.3612266 C6.87587888,77.0047 7.74861298,77.3662028 8.65861943,77.3662028 L133.318807,77.3662028 C135.213795,77.3662028 136.749981,75.8300048 136.749981,73.9350167 L136.749981,4.47666384 C136.749981,3.56665964 136.388484,2.69392669 135.745014,2.05045654 C135.101544,1.4069864 134.228811,1.04548887 133.318807,1.04548939 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-25"],["id","Path","opacity","0.257273065","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-24"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-25"],["d","M31.5848237,68.0274261 C25.669241,68.0274261 20.3361447,64.4639649 18.0723494,58.9986791 C15.808554,53.5333932 17.0598755,47.2425772 21.2428244,43.0596288 C25.4257733,38.8766804 31.7165895,37.6253598 37.1818751,39.8891559 C42.6471607,42.1529519 46.2106203,47.4860487 46.2106203,53.4016314 C46.2014756,61.4754447 39.6586369,68.0182825 31.5848237,68.0274261 L31.5848237,68.0274261 Z M31.5848237,38.967022 C23.612809,38.967022 17.1502143,45.4296168 17.1502143,53.4016314 C17.1502143,61.3736461 23.612809,67.8362409 31.5848237,67.8362409 C39.5568383,67.8362409 46.0194331,61.3736461 46.0194331,53.4016314 C46.010427,45.4333502 39.5531049,38.9760281 31.5848237,38.967022 L31.5848237,38.967022 Z","id","Shape",1,"fill-color-primary"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-13"],["id","Rectangle","x","119.89017","y","8.50924347","width","4.7751428","height","4.7751428",1,"fill-color-6"],["d","M126.882344,15.5014148 L121.083948,15.5014148 L121.083948,9.70301894 L126.882344,9.70301894 L126.882344,15.5014148 Z M121.336061,15.2493191 L126.63024,15.2493191 L126.63024,9.95513218 L121.336061,9.95513218 L121.336061,15.2493191 Z","id","Shape",1,"fill-color-19"],["d","M140.184525,74.8570201 L128.246669,74.8570201 L128.246669,73.9969059 C128.246671,73.9516751 128.228704,73.9082962 128.196721,73.876313 C128.164738,73.8443298 128.12136,73.826364 128.076129,73.826364 L123.98315,73.826364 C123.937919,73.826364 123.89454,73.8443305 123.862558,73.8763135 C123.830575,73.9082966 123.812608,73.9516752 123.81261,73.9969059 L123.81261,74.8570201 L121.254497,74.8570201 L121.254497,73.9969059 C121.254499,73.9516752 121.236532,73.9082966 121.204549,73.8763135 C121.172566,73.8443305 121.129188,73.826364 121.083957,73.826364 L116.990978,73.826364 C116.945747,73.826364 116.902368,73.8443297 116.870385,73.8763129 C116.838402,73.908296 116.820435,73.9516749 116.820436,73.9969059 L116.820436,74.8570201 L114.262326,74.8570201 L114.262326,73.9969059 C114.262328,73.9516749 114.24436,73.908296 114.212377,73.8763129 C114.180394,73.8443297 114.137015,73.826364 114.091784,73.826364 L109.998805,73.826364 C109.953574,73.826364 109.910196,73.8443305 109.878213,73.8763135 C109.84623,73.9082966 109.828263,73.9516752 109.828265,73.9969059 L109.828265,74.8570201 L107.270153,74.8570201 L107.270153,73.9969059 C107.270154,73.9516752 107.252187,73.9082966 107.220204,73.8763135 C107.188222,73.8443305 107.144843,73.826364 107.099613,73.826364 L103.00663,73.826364 C102.961399,73.826364 102.91802,73.8443298 102.886037,73.876313 C102.854054,73.9082962 102.836088,73.9516751 102.83609,73.9969059 L102.83609,74.8570201 L100.277981,74.8570201 L100.277981,73.9969059 C100.277983,73.9516749 100.260016,73.908296 100.228032,73.8763129 C100.196049,73.8443297 100.15267,73.826364 100.107439,73.826364 L96.0144621,73.826364 C95.9692311,73.826364 95.9258522,73.8443297 95.8938691,73.8763129 C95.861886,73.908296 95.8439187,73.9516749 95.8439202,73.9969059 L95.8439202,74.8570201 L93.285808,74.8570201 L93.285808,73.9969059 C93.2858095,73.9516752 93.2678425,73.9082966 93.2358598,73.8763135 C93.2038771,73.8443305 93.1604987,73.826364 93.1152681,73.826364 L89.0222888,73.826364 C88.9770581,73.826364 88.9336797,73.8443305 88.901697,73.8763135 C88.8697143,73.9082966 88.8517473,73.9516752 88.8517489,73.9969059 L88.8517489,74.8570201 L86.2936405,74.8570201 L86.2936405,73.9969059 C86.293642,73.9516752 86.2756751,73.9082966 86.2436923,73.8763135 C86.2117096,73.8443305 86.1683312,73.826364 86.1231006,73.826364 L54.061428,73.826364 C54.0161974,73.826364 53.972819,73.8443305 53.9408363,73.8763135 C53.9088536,73.9082966 53.8908866,73.9516752 53.8908881,73.9969059 L53.8908881,74.8570201 L51.3327759,74.8570201 L51.3327759,73.9969059 C51.3327774,73.9516749 51.3148102,73.908296 51.282827,73.8763129 C51.2508439,73.8443297 51.207465,73.826364 51.162234,73.826364 L47.0692664,73.826364 C47.0240354,73.826364 46.9806565,73.8443297 46.9486734,73.8763129 C46.9166903,73.908296 46.898723,73.9516749 46.8987246,73.9969059 L46.8987246,74.8570201 L44.3406025,74.8570201 L44.3406025,73.9969059 C44.3406046,73.9516751 44.3226378,73.9082962 44.290655,73.876313 C44.2586721,73.8443298 44.2152934,73.826364 44.1700626,73.826364 L40.0770834,73.826364 C40.0318527,73.826364 39.9884743,73.8443305 39.9564916,73.8763135 C39.9245089,73.9082966 39.9065419,73.9516752 39.9065435,73.9969059 L39.9065435,74.8570201 L37.3484312,74.8570201 L37.3484312,73.9969059 C37.3484327,73.9516752 37.3304657,73.9082966 37.298483,73.8763135 C37.2665003,73.8443305 37.2231219,73.826364 37.1778913,73.826364 L33.084912,73.826364 C33.039681,73.826364 32.9963021,73.8443297 32.964319,73.8763129 C32.9323358,73.908296 32.9143686,73.9516749 32.9143701,73.9969059 L32.9143701,74.8570201 L30.3562598,74.8570201 L30.3562598,73.9969059 C30.3562614,73.9516749 30.3382941,73.908296 30.306311,73.8763129 C30.2743278,73.8443297 30.2309489,73.826364 30.1857179,73.826364 L26.0927387,73.826364 C26.047508,73.826364 26.0041296,73.8443305 25.9721469,73.8763135 C25.9401642,73.9082966 25.9221972,73.9516752 25.9221988,73.9969059 L25.9221988,74.8570201 L23.3640826,74.8570201 L23.3640826,73.9969059 C23.3640841,73.9516752 23.3461171,73.9082966 23.3141344,73.8763135 C23.2821517,73.8443305 23.2387733,73.826364 23.1935427,73.826364 L19.1005673,73.826364 C19.0553365,73.826364 19.0119578,73.8443298 18.979975,73.876313 C18.9479921,73.9082962 18.9300253,73.9516751 18.9300274,73.9969059 L18.9300274,74.8570201 L16.3719151,74.8570201 L16.3719151,73.9969059 C16.3719167,73.9516749 16.3539494,73.908296 16.3219663,73.8763129 C16.2899831,73.8443297 16.2466042,73.826364 16.2013733,73.826364 L12.1083959,73.826364 C12.0631649,73.826364 12.0197861,73.8443297 11.9878029,73.8763129 C11.9558198,73.908296 11.9378525,73.9516749 11.9378541,73.9969059 L11.9378541,74.8570201 L4.09297732,74.8570201 C1.83248849,74.8570223 0,76.6895106 0,78.9499994 L0,80.8007483 C0,83.061233 1.83249262,84.8937159 4.09297732,84.8937159 L140.184525,84.8937159 C142.44501,84.8937159 144.277504,83.0612333 144.277504,80.8007483 L144.277504,78.9499994 C144.277504,76.6895102 142.445014,74.8570223 140.184525,74.8570201 Z","id","Path",1,"fill-color-20"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-21"],["id","Oval","cx","74.1507041","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["fxFlex","30","viewBox","0 0 373 121","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["x1","50%","y1","100%","x2","50%","y2","8.86848147e-15%","id","linearGradient-1"],["id","LoopOut_Step03","transform","translate(-460.000000, -210.000000)"],["id","Loop_Step03","transform","translate(460.000000, 210.000000)"],["id","Oval","fill-rule","nonzero","cx","330.487742","cy","57.4877419","r","42.4877419",1,"fill-color-2"],["d","M345.082742,43.5000036 C349.446821,43.5000036 352.999928,40.1343958 352.999928,36.0000215 C352.999928,31.8656472 349.446821,28.5000393 345.082742,28.5000393 C341.98433,28.5000393 339.560889,30.4359631 337.999964,32.1843872 C336.43904,30.4359631 334.015599,28.5000393 330.917187,28.5000393 C326.553107,28.5000393 323,31.8656472 323,36.0000215 C323,40.1343958 326.553107,43.5000036 330.917187,43.5000036 C334.015599,43.5000036 336.43904,41.5640798 337.999964,39.8156557 C339.560889,41.5640798 341.98433,43.5000036 345.082742,43.5000036 Z M330.917187,39.0000143 C329.032807,39.0000143 327.499989,37.6546959 327.499989,36.0000286 C327.499989,34.3453471 329.032807,33.0000286 330.917187,33.0000286 C332.707771,33.0000286 334.357776,34.6921938 335.323426,36.0000286 C334.36716,37.2937501 332.703102,39.0000143 330.917187,39.0000143 Z M345.082742,39.0000143 C343.292157,39.0000143 341.642152,37.3078492 340.676502,36.0000286 C341.632768,34.7062929 343.296827,33.0000286 345.082742,33.0000286 C346.967121,33.0000286 348.499939,34.3453471 348.499939,36.0000286 C348.499939,37.6546959 346.967121,39.0000143 345.082742,39.0000143 Z","id","i","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-44","transform","translate(113.000000, 79.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 7.089946) scale(-1, 1) translate(-118.400000, -7.089946) ","points","234.731878 6.60770626 8.52651283e-14 6.60770626 8.52651283e-14 7.57218541 236.8 7.57218541",1,"fill-color-19"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-22"],["d","M120.192,8.96 L105.856,8.96 L105.856,1.86517468e-14 L120.192,1.86517468e-14 L120.192,8.96 Z M106.479304,8.57043501 L119.568696,8.57043501 L119.568696,0.389564988 L106.479304,0.389564988 L106.479304,8.57043501 Z","id","Shape","transform","translate(113.024000, 4.480000) scale(-1, 1) translate(-113.024000, -4.480000) ",1,"fill-color-19"],["id","Group-43","transform","translate(265.000000, 50.000000)"],["id","Path","fill-rule","nonzero","points","-9.84073267e-14 7.36243469 92.3919279 7.36243469 92.3919279 70.3073253 -1.13686838e-13 70.3073253",1,"fill-color-23"],["d","M97.5448374,1.70530257e-13 L6.62592538,1.70530257e-13 C6.01615907,0.000922175294 5.52114394,0.495001701 5.52114394,1.104768 L5.52114394,62.57664 C5.52114394,62.8696481 5.63752746,63.150658 5.84471672,63.3578447 C6.05190598,63.5650315 6.3329173,63.681408 6.62592538,63.681408 L97.5448374,63.681408 C97.8378436,63.681408 98.1188523,63.5650282 98.3260389,63.3578415 C98.5332256,63.1506549 98.6496054,62.8696462 98.6496054,62.57664 L98.6496054,1.104768 C98.6496054,0.495005713 98.1545997,0.000926622272 97.5448374,1.70530257e-13 L97.5448374,1.70530257e-13 Z M97.9130952,62.57664 C97.9130952,62.6744022 97.8747043,62.7682496 97.8055756,62.8373783 C97.736447,62.9065069 97.6425996,62.9448978 97.5448374,62.9448978 L6.62592538,62.9448978 C6.52816341,62.9448978 6.4343164,62.906506 6.3651879,62.8373775 C6.29605941,62.768249 6.25766754,62.674402 6.25766754,62.57664 L6.25766754,1.104768 C6.25766754,0.901512883 6.42267026,0.736512 6.62592538,0.736512 L97.5448374,0.736512 C97.7480931,0.736512 97.9130952,0.901512271 97.9130952,1.104768 L97.9130952,62.57664 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","10.3066764","y","43.4358624","width","41.5947948","height","4.78524211","rx","0.5376",1,"fill-color-19"],["d","M89.8141359,39.3872559 L76.5649839,39.3872559 C76.2719769,39.3872559 75.9909677,39.5036372 75.7837792,39.7108232 C75.5765907,39.9180091 75.4602025,40.1990169 75.4602025,40.4920239 L75.4602025,50.7978159 C75.4602025,51.090824 75.576586,51.3718339 75.7837753,51.5790207 C75.9909645,51.7862074 76.2719759,51.9025839 76.5649839,51.9025839 L89.8141359,51.9025839 C90.107143,51.9025839 90.3881533,51.7862079 90.5953406,51.5790206 C90.8025279,51.3718333 90.9189039,51.090823 90.9189039,50.7978159 L90.9189039,40.4920239 C90.9189039,40.199018 90.8025232,39.9180097 90.5953367,39.7108232 C90.3881502,39.5036367 90.1071419,39.3872559 89.8141359,39.3872559 Z M90.1823938,50.7978159 C90.182087,51.0010717 90.0173917,51.165767 89.8141359,51.1660719 L76.5649839,51.1660719 C76.3617256,51.165767 76.1970256,51.0010743 76.19671,50.7978159 L76.19671,40.4920239 C76.1964064,40.3942603 76.2351088,40.3004129 76.30424,40.2312847 C76.3733712,40.1621565 76.4672203,40.1234582 76.5649839,40.1237661 L89.8141359,40.1237661 C89.9118981,40.1234582 90.0057456,40.162157 90.0748742,40.2312857 C90.1440029,40.3004143 90.1827017,40.3942617 90.1823938,40.4920239 L90.1823938,50.7978159 Z","id","Shape","fill-rule","nonzero",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","41.7652758","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","44.7100416","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","78.6733409","y","47.6548047","width","9.03249715","height","1.86879168","rx","0.5376",1,"fill-color-19"],["id","Rectangle","fill-rule","nonzero","x","11.4109632","y","4.41773875","width","19.1409684","height","8.09810266","rx","0.5376",1,"fill-color-19"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-3"],["d","M50.1798649,51.9764517 C43.6553251,51.9764517 37.7732336,48.0461636 35.2764005,42.0182748 C32.7795674,35.990386 34.1597014,29.0519859 38.773248,24.4384399 C43.3867946,19.824894 50.3251948,18.4447609 56.3530833,20.9415948 C62.3809718,23.4384287 66.3112582,29.3205207 66.3112582,35.8450605 C66.3011721,44.7500015 59.0848059,51.9663668 50.1798649,51.9764517 L50.1798649,51.9764517 Z M50.1798649,19.9245354 C41.3872016,19.9245354 34.2593397,27.0523972 34.2593397,35.8450605 C34.2593397,44.6377237 41.3872016,51.7655856 50.1798649,51.7655856 C58.9725281,51.7655856 66.10039,44.6377237 66.10039,35.8450605 C66.0904567,27.056515 58.9684103,19.9344686 50.1798649,19.9245354 L50.1798649,19.9245354 Z","id","Shape","fill-rule","nonzero",1,"fill-color-primary"],["id","Group-23","transform","translate(5.000000, 0.001193)"],["id","Group-22"],["id","Group","transform","translate(0.378134, 0.000000)"],["id","Group-24","transform","translate(29.048000, 19.712000)"],["d","M46.60483,51.432122 C46.8713708,51.432122 47.1252368,51.2924832 47.2648756,51.0513229 L52.8499289,41.4044125 C53.145042,40.8998413 52.7801095,40.2620153 52.1930443,40.2620153 L48.5310139,40.2620153 L49.8828693,36.1430446 C50.0098023,35.6606929 49.6448699,35.184694 49.1466515,35.184694 L44.5770624,35.184694 C44.1962633,35.184694 43.8725779,35.4671324 43.8218171,35.8447396 L42.8063528,43.4607214 C42.7460473,43.9176927 43.1014659,44.3238722 43.5615982,44.3238722 L47.3283421,44.3238722 L45.8654203,50.4959909 C45.751193,50.9783426 46.1192864,51.432122 46.60483,51.432122 Z","id","b","fill-rule","nonzero","transform","translate(47.877046, 43.308408) rotate(14.000000) translate(-47.877046, -43.308408) ",1,"fill-color-12"],["id","Group-34","fill-rule","nonzero"],["id","Oval","fill","url(#linearGradient-1)","cx","76.317438","cy","17.5648113","r","8.78679245"],["id","Oval","cx","76.317438","cy","17.5648113","r","8.15070413",1,"fill-color-primary"],["id","Rectangle","x","9.82759671","y","7.10932665","width","122.322231","height","69.0022838",1,"fill-color-8"],["id","Path","opacity","0.222721354","points","97.1677755 76.1116475 9.82763376 76.1116475 9.82763376 7.10937149",1,"fill-color-18"],["id","Oval","cx","28.9673627","cy","59.1901502","r","11.7579927",1,"fill-color-8"],["id","Rectangle","x","99.4252759","y","44.3228077","width","11.4262324","height","2.38757043",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","25.733862","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","28.9741379","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","32.2144137","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","35.4546875","width","39.05384","height","1.0232453",1,"fill-color-14"],["id","Rectangle","x","85.6114731","y","38.6949634","width","39.05384","height","1.0232453",1,"fill-color-14"],["d","M88.0406297,103.870828 C88.3071704,103.870828 88.5610365,103.731189 88.7006752,103.490029 L94.2857286,93.8431185 C94.5808417,93.3385473 94.2159092,92.7007212 93.6288439,92.7007212 L89.9668136,92.7007212 L91.318669,88.5817505 C91.445602,88.0993988 91.0806695,87.6234 90.5824512,87.6234 L86.0128621,87.6234 C85.632063,87.6234 85.3083776,87.9058383 85.2576168,88.2834455 L84.2421525,95.8994274 C84.1818469,96.3563987 84.5372656,96.7625782 84.9973979,96.7625782 L88.7641417,96.7625782 L87.30122,102.934697 C87.1869926,103.417048 87.555086,103.870828 88.0406297,103.870828 Z","id","b","transform","translate(89.312846, 95.747114) rotate(14.000000) translate(-89.312846, -95.747114) ",1,"fill-color-12"],["fxFlex","30","viewBox","0 0 278 118","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step04","transform","translate(-503.000000, -212.000000)"],["id","Loop_Step04","transform","translate(503.000000, 212.000000)"],["id","Loop","fill-rule","nonzero"],["id","Group-16","transform","translate(24.000000, 0.000000)"],["d","M55.0827415,28.5000036 C59.4468211,28.5000036 62.9999285,25.1343958 62.9999285,21.0000215 C62.9999285,16.8656472 59.4468211,13.5000393 55.0827415,13.5000393 C51.9843297,13.5000393 49.5608889,15.4359631 47.9999642,17.1843872 C46.4390396,15.4359631 44.0155987,13.5000393 40.9171869,13.5000393 C36.5531074,13.5000393 33,16.8656472 33,21.0000215 C33,25.1343958 36.5531074,28.5000036 40.9171869,28.5000036 C44.0155987,28.5000036 46.4390396,26.5640798 47.9999642,24.8156557 C49.5608889,26.5640798 51.9843297,28.5000036 55.0827415,28.5000036 Z M40.9171869,24.0000143 C39.0328073,24.0000143 37.4999893,22.6546959 37.4999893,21.0000286 C37.4999893,19.3453471 39.0328073,18.0000286 40.9171869,18.0000286 C42.707771,18.0000286 44.3577763,19.6921938 45.3234264,21.0000286 C44.3671604,22.2937501 42.7031019,24.0000143 40.9171869,24.0000143 Z M55.0827415,24.0000143 C53.2921574,24.0000143 51.6421522,22.3078492 50.676502,21.0000286 C51.6327681,19.7062929 53.2968266,18.0000286 55.0827415,18.0000286 C56.9671212,18.0000286 58.4999392,19.3453471 58.4999392,21.0000286 C58.4999392,22.6546959 56.9671212,24.0000143 55.0827415,24.0000143 Z","id","i",1,"fill-color-primary"],["id","Oval","cx","48.644129","cy","75.1589677","rx","48.644129","ry","6.61766437",1,"fill-color-2"],["id","Group-44","transform","translate(27.000000, 69.000000)","fill-rule","nonzero"],["id","Path","transform","translate(118.400000, 8.960000) scale(-1, 1) translate(-118.400000, -8.960000) ","points","113.024 5.376 123.776 5.376 123.776 12.544 113.024 12.544",1,"fill-color-23"],["id","Group-43","transform","translate(179.000000, 40.000000)"],["id","Oval","fill-rule","nonzero","cx","47.2929593","cy","42.2294561","r","12.9683743",1,"fill-color-4"],["d","M46.519593,50.6740439 L46.519593,48.5460252 C46.9395628,48.5560039 47.349554,48.5560039 47.739557,48.5560039 L47.739557,50.6740439 L49.2794877,50.6740439 L49.2794877,48.5160274 C51.8593644,48.3760168 53.5840235,47.7260428 53.8140277,45.2961554 C53.9939838,43.3462645 53.0739982,42.476265 51.6140824,42.1263004 C52.4940295,41.6763328 53.054041,40.8763386 52.92404,39.5463928 C52.7540005,37.7264719 51.2593765,37.1164744 49.2794567,36.9465279 L49.2794567,34.4266159 L47.739526,34.4266159 L47.739526,36.8765226 C47.3395134,36.8765226 46.9295222,36.8865012 46.519562,36.8965108 L46.519562,34.4266159 L44.9796003,34.4266159 L44.9796003,36.9465279 C44.413422,36.9636341 43.7539962,36.9552669 41.8897293,36.9465279 L41.8897293,38.5864308 C43.1055717,38.564924 43.7434908,38.4867995 43.8896683,39.2663716 L43.8896683,46.1661239 C43.7968547,46.7846435 43.3018283,46.6955796 42.1997174,46.6760872 L41.8897293,48.5060178 C44.6975648,48.5060178 44.9796313,48.5160274 44.9796313,48.5160274 L44.9796313,50.6740439 L46.519593,50.6740439 Z M46.5495908,41.7662953 L46.5495908,38.6964125 C47.4195593,38.6964125 50.1394466,38.4264629 50.1394466,40.2363742 C50.1394466,41.9663016 47.4195903,41.7662953 46.5495908,41.7662953 Z M46.5495908,46.6860969 L46.5495908,43.306257 C47.5895368,43.306257 50.7741427,43.0162572 50.7741427,44.9962079 C50.7741427,46.9060914 47.5895368,46.6860969 46.5495908,46.6860969 Z","id","B","fill-rule","nonzero","transform","translate(47.863077, 42.550330) rotate(14.000000) translate(-47.863077, -42.550330) ",1,"fill-color-29"],["fxFlex","30","viewBox","0 0 200 120","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["id","LoopOut_Step05","transform","translate(-542.000000, -210.000000)","fill-rule","nonzero"],["id","Loop_Step05","transform","translate(542.000000, 210.000000)"],["id","Rectangle","x","0","y","0","width","81.4032636","height","90.8547569",1,"fill-color-11"],["id","Rectangle","x","1.34483737","y","60.660286","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","67.352783","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","74.4889377","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","31.345208","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","38.0377051","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Oval","cx","68.9135074","cy","45.1758404","r","7.35996418",1,"fill-color-primary-darker"],["id","Rectangle","x","1.34483737","y","2.03013005","width","78.7116083","height","28.2158368",1,"fill-color-9"],["id","Rectangle","x","7.80560248","y","8.72460769","width","46.2328358","height","14.4584872",1,"fill-color-primary-lighter"],["id","Rectangle","x","7.80560248","y","67.352783","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","38.0377051","width","33.2298507","height","14.4584872",1,"fill-color-primary"],["id","Rectangle","x","7.80560248","y","8.72460769","width","23.1164179","height","14.4584872",1,"fill-color-primary"],["id","Oval","cx","68.9135074","cy","15.8607624","r","7.93434243",1,"fill-color-31"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","45.3719212","r","7.93434243"],["id","Oval","fill","url(#linearGradient-1)","cx","68.9135074","cy","74.6850186","r","7.93434243"],["id","Group-16","transform","translate(55.804478, 34.674627)"],["id","Group-29","transform","translate(0.310627, 0.751284)"],["id","Group"],["d","M132.777455,1.04124409 L82.2582659,1.04124409 L82.2582659,0 L59.3509036,0 L59.3509036,1.04124409 L8.62346042,1.04124409 C7.71715136,1.04124358 6.84796221,1.40127322 6.20710493,2.0421305 C5.56624765,2.68298778 5.20621852,3.55217693 5.20621852,4.45848599 L5.20621852,73.6347918 C5.20621852,74.5411031 5.56624437,75.4102953 6.2071016,76.0511558 C6.84795882,76.6920163 7.71714912,77.0520512 8.62346042,77.0520512 L132.777455,77.0520512 C134.664749,77.0520512 136.194697,75.522091 136.194697,73.6347977 L136.194697,4.45848599 C136.194697,3.55217693 135.834668,2.68298778 135.193811,2.0421305 C134.552953,1.40127322 133.683764,1.04124358 132.777455,1.04124409 Z","id","Path",1,"fill-color-20"],["id","Rectangle","x","9.78769098","y","7.08045867","width","121.825532","height","68.7220946",1,"fill-color-7"],["id","Path","opacity","0.306775484","points","96.7732181 75.8025901 9.78772787 75.8025901 9.78772787 7.08050333",1,"fill-color-27"],["id","Group-24","transform","translate(16.889738, 38.617955)",1,"fill-color-primary-darker"],["d","M14.5668332,29.1332406 C8.67527117,29.1332406 3.36383033,25.5842492 1.10922733,20.1411555 C-1.14537566,14.6980619 0.100864684,8.43279022 4.26682842,4.26682704 C8.43279215,0.100863866 14.698064,-1.14537564 20.1411573,1.10922807 C25.5842507,3.36383179 29.1332406,8.67527311 29.1332406,14.5668351 C29.124133,22.607864 22.6078621,29.1241341 14.5668332,29.1332406 L14.5668332,29.1332406 Z M14.5668332,0.190838576 C6.62718953,0.190838576 0.190836635,6.62719147 0.190836635,14.5668351 C0.190836635,22.5064788 6.62718953,28.9428317 14.5668332,28.9428317 C22.5064768,28.9428317 28.9428297,22.5064788 28.9428297,14.5668351 C28.9338602,6.63090975 22.5027586,0.199808125 14.5668332,0.190838576 L14.5668332,0.190838576 Z","id","Shape"],["id","Rectangle","x","99.0215517","y","44.1428314","width","11.3798353","height","2.37787551",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","25.6293676","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","28.8564861","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","32.0836045","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","35.310721","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","85.2638409","y","38.5378394","width","38.8952588","height","1.01909033",1,"fill-color-15"],["id","Rectangle","x","119.403347","y","8.47469101","width","4.75575295","height","4.75575295",1,"fill-color-5"],["d","M126.367128,15.4384701 L120.592277,15.4384701 L120.592277,9.66361906 L126.367128,9.66361906 L126.367128,15.4384701 Z M120.843366,15.1873981 L126.116048,15.1873981 L126.116048,9.91470857 L120.843366,9.91470857 L120.843366,15.1873981 Z","id","Shape",1,"fill-color-19"],["d","M139.615294,74.5530572 L127.725913,74.5530572 L127.725913,73.6964356 C127.725915,73.6513884 127.708021,73.6081857 127.676168,73.5763323 C127.644315,73.544479 127.601113,73.5265862 127.556065,73.5265862 L123.479706,73.5265862 C123.434659,73.5265862 123.391457,73.5444797 123.359604,73.5763329 C123.327751,73.6081861 123.309857,73.6513886 123.309859,73.6964356 L123.309859,74.5530572 L120.762134,74.5530572 L120.762134,73.6964356 C120.762135,73.6513886 120.744241,73.6081861 120.712388,73.5763329 C120.680536,73.5444797 120.637333,73.5265862 120.592286,73.5265862 L116.515927,73.5265862 C116.47088,73.5265862 116.427677,73.5444789 116.395824,73.5763322 C116.36397,73.6081855 116.346076,73.6513882 116.346078,73.6964356 L116.346078,74.5530572 L113.798355,74.5530572 L113.798355,73.6964356 C113.798356,73.6513882 113.780462,73.6081855 113.748609,73.5763322 C113.716755,73.5444789 113.673553,73.5265862 113.628505,73.5265862 L109.552146,73.5265862 C109.507099,73.5265862 109.463897,73.5444797 109.432044,73.5763329 C109.400191,73.6081861 109.382297,73.6513886 109.382299,73.6964356 L109.382299,74.5530572 L106.834574,74.5530572 L106.834574,73.6964356 C106.834575,73.6513886 106.816681,73.6081861 106.784828,73.5763329 C106.752975,73.5444797 106.709773,73.5265862 106.664726,73.5265862 L102.588363,73.5265862 C102.543316,73.5265862 102.500113,73.544479 102.46826,73.5763323 C102.436407,73.6081857 102.418513,73.6513884 102.418516,73.6964356 L102.418516,74.5530572 L99.8707946,74.5530572 L99.8707946,73.6964356 C99.8707961,73.6513882 99.8529018,73.6081855 99.8210486,73.5763322 C99.7891953,73.5444789 99.7459925,73.5265862 99.7009452,73.5265862 L95.6245878,73.5265862 C95.5795404,73.5265862 95.5363377,73.5444789 95.5044844,73.5763322 C95.4726311,73.6081855 95.4547369,73.6513882 95.4547384,73.6964356 L95.4547384,74.5530572 L92.9070135,74.5530572 L92.9070135,73.6964356 C92.9070151,73.6513886 92.889121,73.6081861 92.8572682,73.5763329 C92.8254153,73.5444797 92.7822131,73.5265862 92.7371661,73.5265862 L88.6608067,73.5265862 C88.6157597,73.5265862 88.5725575,73.5444797 88.5407046,73.5763329 C88.5088518,73.6081861 88.4909577,73.6513886 88.4909593,73.6964356 L88.4909593,74.5530572 L85.9432383,74.5530572 L85.9432383,73.6964356 C85.9432399,73.6513886 85.9253458,73.6081861 85.893493,73.5763329 C85.8616401,73.5444797 85.8184379,73.5265862 85.7733909,73.5265862 L53.8419073,73.5265862 C53.7968603,73.5265862 53.7536581,73.5444797 53.7218052,73.5763329 C53.6899524,73.6081861 53.6720584,73.6513886 53.6720599,73.6964356 L53.6720599,74.5530572 L51.124335,74.5530572 L51.124335,73.6964356 C51.1243366,73.6513882 51.1064423,73.6081855 51.074589,73.5763322 C51.0427358,73.5444789 50.999533,73.5265862 50.9544857,73.5265862 L46.8781379,73.5265862 C46.8330906,73.5265862 46.7898879,73.5444789 46.7580346,73.5763322 C46.7261813,73.6081855 46.708287,73.6513882 46.7082886,73.6964356 L46.7082886,74.5530572 L44.160554,74.5530572 L44.160554,73.6964356 C44.1605561,73.6513884 44.1426622,73.6081857 44.1108092,73.5763323 C44.0789563,73.544479 44.0357537,73.5265862 43.9907066,73.5265862 L39.9143472,73.5265862 C39.8693002,73.5265862 39.8260979,73.5444797 39.7942451,73.5763329 C39.7623922,73.6081861 39.7444982,73.6513886 39.7444998,73.6964356 L39.7444998,74.5530572 L37.1967749,74.5530572 L37.1967749,73.6964356 C37.1967764,73.6513886 37.1788824,73.6081861 37.1470296,73.5763329 C37.1151767,73.5444797 37.0719745,73.5265862 37.0269275,73.5265862 L32.9505681,73.5265862 C32.9055208,73.5265862 32.862318,73.5444789 32.8304647,73.5763322 C32.7986115,73.6081855 32.7807172,73.6513882 32.7807187,73.6964356 L32.7807187,74.5530572 L30.2329958,74.5530572 L30.2329958,73.6964356 C30.2329973,73.6513882 30.215103,73.6081855 30.1832498,73.5763322 C30.1513965,73.5444789 30.1081938,73.5265862 30.0631464,73.5265862 L25.986787,73.5265862 C25.94174,73.5265862 25.8985378,73.5444797 25.866685,73.5763329 C25.8348321,73.6081861 25.8169381,73.6513886 25.8169396,73.6964356 L25.8169396,74.5530572 L23.2692109,74.5530572 L23.2692109,73.6964356 C23.2692124,73.6513886 23.2513184,73.6081861 23.2194655,73.5763329 C23.1876127,73.5444797 23.1444104,73.5265862 23.0993634,73.5265862 L19.0230079,73.5265862 C18.9779608,73.5265862 18.9347582,73.544479 18.9029053,73.5763323 C18.8710523,73.6081857 18.8531585,73.6513884 18.8531605,73.6964356 L18.8531605,74.5530572 L16.3054357,74.5530572 L16.3054357,73.6964356 C16.3054372,73.6513882 16.2875429,73.6081855 16.2556896,73.5763322 C16.2238364,73.5444789 16.1806336,73.5265862 16.1355863,73.5265862 L12.0592288,73.5265862 C12.0141815,73.5265862 11.9709788,73.5444789 11.9391255,73.5763322 C11.9072722,73.6081855 11.8893779,73.6513882 11.8893795,73.6964356 L11.8893795,74.5530572 L4.07635746,74.5530572 C1.82504753,74.5530594 0,76.3781067 0,78.6294166 L0,80.4726504 C0,82.7239563 1.82505163,84.5489982 4.07635746,84.5489982 L139.615294,84.5489982 C141.8666,84.5489982 143.691654,82.7239566 143.691654,80.4726504 L143.691654,78.6294166 C143.691654,76.3781064 141.866605,74.5530594 139.615294,74.5530572 Z","id","Path",1,"fill-color-20"],["id","Group","transform","translate(14.563343, 25.890388)"],["d","M34.1898756,18.6935074 C34.8335754,18.7760331 35.5015474,18.8284611 36.1180622,18.6284578 C36.2151512,18.5983603 36.321949,18.5313689 36.3122401,18.4342799 C36.3052976,18.3990002 36.2903506,18.3657846 36.2685501,18.337191 C36.0361522,17.9886397 35.8409087,17.6167008 35.6860164,17.2274642 C35.6798777,17.2071636 35.6672606,17.1894314 35.6500935,17.176978 C35.6300188,17.1697099 35.6080312,17.1697099 35.5879565,17.176978 C35.3034859,17.2517365 35.0578508,17.4352346 34.775322,17.5138766 C34.6312683,17.5533966 34.4809179,17.5646069 34.3325963,17.5468869 C34.2044389,17.5323235 34.0296788,17.4264966 33.9131721,17.440089 C33.9791925,17.8643678 34.1403602,18.2604907 34.1898756,18.6935074 Z","id","Path",1,"fill-color-primary-darker"],["d","M46.3638597,17.6187327 C46.7881384,17.3274658 47.2279514,17.0216356 47.4784409,16.5721138 C47.4963243,16.5452282 47.5067138,16.5140596 47.5085385,16.481821 C47.5042662,16.4500929 47.4918946,16.4199997 47.4726155,16.394441 C47.2340087,16.0151166 46.9268212,15.6835648 46.5667756,15.4167552 C46.3789189,15.549458 46.2091963,15.7061249 46.061913,15.8827822 C45.9551152,15.9954054 45.6599648,16.1740491 45.6570521,16.3458965 C45.6570521,16.4429855 45.7696753,16.5556086 45.8221033,16.6371634 C45.8929782,16.7420194 45.9599696,16.8488173 46.0240483,16.9575569 C46.0609421,17.0109558 46.3978408,17.5973731 46.3638597,17.6187327 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2730042,20.0320475 30.3444715,19.9740213 30.423795,19.9284789 L30.7548683,19.7148832 C30.9101158,19.6051008 31.0788103,19.515696 31.2568182,19.4488595 C31.3878883,19.4061404 31.5267255,19.3876935 31.6597374,19.3517706 C32.1247935,19.215846 32.4801391,18.846908 32.8102415,18.4925333 L33.2607343,18.011943 C33.3028503,17.9590638 33.3562578,17.9162715 33.4170475,17.8866982 C33.4795282,17.8658617 33.5459388,17.8595527 33.6112254,17.8682513 C34.0488232,17.8994947 34.4713668,18.041122 34.8394007,18.2799085 C34.9334629,18.3504651 35.0350556,18.4103788 35.1423182,18.4585522 C35.4064002,18.5614665 35.7452406,18.4837953 35.9889339,18.3536961 C36.1044698,18.2915592 36.0792267,18.2566071 36.1277711,18.1459257 C36.1763156,18.0352443 36.2947641,17.9643694 36.3976784,18.0653419 C36.4287289,18.1002598 36.4507324,18.1422664 36.4617571,18.187674 C36.5588461,18.5080675 36.5219523,18.8527333 36.5219523,19.1886611 C36.519104,19.2411857 36.5256803,19.2937961 36.5413701,19.3440034 C36.566144,19.3946232 36.5957307,19.4427421 36.629721,19.4876951 C36.6366398,19.4995928 36.642801,19.5119152 36.6481679,19.5245889 C36.7075588,19.673314 36.7298837,19.8342531 36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M36.7132175,19.9935285 C36.7207976,20.0935521 36.6933371,20.1930963 36.6355464,20.2750865 C36.5902231,20.3206727 36.5341172,20.3540691 36.4724369,20.3721755 C35.5724223,20.6945108 34.5306578,20.2925625 33.632585,20.6100434 C33.448116,20.675093 33.2733558,20.7692693 33.0879159,20.8314062 C32.8668382,20.8978733 32.6387504,20.9382775 32.4082933,20.9517965 C32.0908124,20.9818941 31.7713897,21.0013119 31.4529379,21.0100499 C31.2109788,21.0271812 30.9678332,21.0058814 30.7325379,20.9469421 C30.494578,20.8860354 30.29373,20.7268395 30.1801017,20.5090709 C30.1312849,20.4125511 30.1215484,20.3009295 30.1529168,20.1974154 C30.1669968,20.1619216 30.1870252,20.1290882 30.2121411,20.1003264 C30.2645691,20.2100369 30.3024338,20.3556704 30.3354441,20.4080984 C30.4256618,20.5652773 30.5791886,20.6760005 30.7568101,20.7119868 C30.8882242,20.7200556 31.0199808,20.7032567 31.1451659,20.6624715 C31.9607132,20.4605264 32.8277175,20.4576138 33.6112254,20.1517835 C33.8801618,20.0459566 34.1364767,19.9051776 34.4190055,19.8410989 C34.7015344,19.7770202 35.0015392,19.7944962 35.2928061,19.770224 C35.7530078,19.7333301 36.1986461,19.5944929 36.6520515,19.5216762 C36.7105975,19.6716231 36.7315958,19.83361 36.7132175,19.9935285 L36.7132175,19.9935285 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.3279723,20.332004 43.3179103,20.2563656 43.3356552,20.1847938 C43.3626747,20.1059564 43.4090817,20.0351774 43.4706088,19.9789652 C43.5770067,19.8683202 43.6912186,19.7654647 43.8123619,19.6711932 C43.9785829,19.5639234 44.1283649,19.4331094 44.2570293,19.2828374 C44.335968,19.1640934 44.3940832,19.0327597 44.4288768,18.8944816 C44.4976483,18.652227 44.5396476,18.4031617 44.5541216,18.1517511 C44.5535898,17.9846963 44.5708393,17.8180593 44.6055787,17.6546556 C44.6774245,17.3983408 44.8677189,17.1692108 44.8463593,16.904158 C44.8377185,16.866204 44.8411119,16.8265011 44.8560682,16.7905639 C44.8786704,16.7624825 44.9101823,16.7429588 44.94539,16.7352232 C45.0937604,16.6760869 45.2502282,16.6397523 45.4094752,16.6274545 C45.571226,16.6162976 45.7294484,16.6783037 45.8405502,16.7963893 C45.9065707,16.8760022 45.9502607,16.9905672 46.0473497,17.0216356 C46.0954598,17.0347655 46.1459295,17.0367577 46.1949249,17.027461 C46.4337637,17.0031887 46.686195,16.9730912 46.8745476,16.8187197 C47.0505482,16.6608586 47.152616,16.4366614 47.1561056,16.2002631 C47.1561056,16.1119121 47.1162991,16.0196776 47.2531945,16.0060852 C47.3561088,15.9924927 47.4376635,16.1031741 47.4900916,16.1711364 C47.679415,16.4245386 47.8735929,16.6895914 47.9444679,16.9983343 C47.9720312,16.9876362 48.0013112,16.9820434 48.030877,16.9818292 C48.1537854,16.9807475 48.2694521,17.0398499 48.3405908,17.1400842 C48.4179108,17.2653269 48.447872,17.4140998 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M48.4250582,17.5595084 C48.3823391,17.9012616 48.1658307,18.1954411 47.9279627,18.4449597 C47.6900948,18.6944783 47.4211584,18.9187538 47.2318349,19.2061371 C46.9988214,19.5624536 46.8939654,20.0042083 46.5910478,20.3051841 C46.4747693,20.4146353 46.3441148,20.5077266 46.202692,20.5818876 C46.0442646,20.6753601 45.8767312,20.752458 45.7026839,20.8119884 C45.2502494,20.956651 44.7628628,20.9236407 44.2900396,20.8886887 C44.1365309,20.8872131 43.9845596,20.8579372 43.8414886,20.8022795 C43.7763574,20.7691922 43.7140162,20.7308783 43.6550778,20.6877146 C43.5365551,20.6147292 43.4367964,20.5149704 43.363811,20.3964477 C43.4548211,20.3526902 43.5541213,20.3288581 43.6550778,20.3265437 C43.86479,20.3381943 44.0181905,20.5362558 44.2191647,20.5974219 C44.5055771,20.683831 44.7910186,20.481886 45.0813146,20.4129528 C45.270638,20.3682919 45.4696704,20.3799426 45.6570521,20.3158639 C45.8132081,20.2555144 45.9574928,20.168089 46.0832726,20.0576073 C46.2556706,19.9343474 46.4090818,19.786497 46.5386198,19.6187652 C46.646198,19.4510234 46.735696,19.2723528 46.8056144,19.0857468 C46.9589198,18.7281302 47.1393856,18.3827784 47.345429,18.0527203 C47.375905,18.0004629 47.4127576,17.9521958 47.4551395,17.9090287 C47.5007713,17.8672804 47.5522285,17.8381537 47.6036856,17.8012599 C47.7978635,17.6546556 47.8784474,17.4129041 47.9464096,17.1760071 C47.9648208,17.1040024 47.9905203,17.0340608 48.0231099,16.9672512 C48.1460183,16.9661841 48.2616849,17.0252865 48.3328237,17.1255208 C48.4163608,17.2537243 48.4492363,17.4084124 48.4250582,17.5595084 L48.4250582,17.5595084 Z","id","Path",1,"fill-color-primary-darker"],["d","M54.316416,4.55250111 L54.316416,3.34665629 C54.316416,1.49819202 52.8172532,0 50.9687888,0 L3.34762718,0 C1.49916283,0 0,1.49819202 0,3.34665629 L0,5.56999336 L54.316416,4.55250111 Z","id","Path",1,"fill-color-16"],["d","M55.6018738,5.73601547 L55.6018738,39.231705 C55.6018738,39.9999836 55.2966099,40.7367813 54.7532639,41.2799452 C54.2099179,41.8231092 53.4730179,42.1278687 52.7047393,42.1278687 L2.89810531,42.1278687 C1.29897753,42.1273325 0.00291266866,40.8308329 0.00291266866,39.231705 L0.00291266866,2.35926161 C1.43012031,2.88936731 1.43012031,2.88936731 2.89810531,2.84470639 L52.7047393,2.84470639 C54.3025103,2.84470316 55.5986611,4.13824772 55.6018738,5.73601547 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,6.16223599 L55.6018738,39.6579255 C55.6018738,41.2575895 54.3044034,42.5540891 52.7047393,42.5540891 L2.89810531,42.5540891 C1.29897753,42.553553 0.00291266866,41.2570534 0.00291266866,39.6579255 L0.00291266866,2.78451124 C1.43012031,3.31364604 1.43012031,3.31364604 2.89810531,3.26995601 L52.7047393,3.26995601 C54.3028886,3.26995377 55.5991959,4.56408894 55.6018738,6.16223599 Z","id","Path",1,"fill-color-19"],["d","M55.4601239,18.5459322 L55.4601239,29.2577567 L45.0716057,29.2577567 C42.141738,29.2183086 39.7873207,26.8319777 39.7873207,23.9018444 C39.7873207,20.9717112 42.141738,18.5853803 45.0716057,18.5459322 L55.4601239,18.5459322 Z","id","Path","opacity","0.1",1,"fill-color-27"],["d","M55.6018738,18.2604907 L55.6018738,28.9742569 L45.2133556,28.9742569 C42.2834879,28.9348088 39.9290706,26.5484779 39.9290706,23.6183447 C39.9290706,20.6882114 42.2834879,18.3018806 45.2133556,18.2624325 L55.6018738,18.2604907 Z","id","Path",1,"fill-color-17"],["id","Oval","opacity","0.1","cx","45.7114219","cy","23.9023299","r","2.08838343",1,"fill-color-27"],["id","Oval","cx","45.8531718","cy","23.6188301","r","2.08838343",1,"fill-color-28"],["d","M37.114137,56.485738 L37.114137,54.3663604 C37.5324015,54.3762985 37.9407279,54.3762985 38.3291472,54.3762985 L38.3291472,56.485738 L39.8628249,56.485738 L39.8628249,54.3364843 C42.4322258,54.1970423 44.1498818,53.5497076 44.378952,51.1296869 C44.5581774,49.1877136 43.6419275,48.3212469 42.1879398,47.9727034 C43.0643138,47.5245628 43.6220513,46.7278171 43.4925782,45.4032717 C43.3232292,43.5907407 41.8346742,42.9832201 39.8627941,42.8139637 L39.8627941,40.3042841 L38.3291164,40.3042841 L38.3291164,42.7442427 C37.9307281,42.7442427 37.5224017,42.7541808 37.1141061,42.7641498 L37.1141061,40.3042841 L35.5803975,40.3042841 L35.5803975,42.8139637 C35.0165182,42.8310005 34.3597701,42.8226673 32.5030732,42.8139637 L32.5030732,44.4472076 C33.7139786,44.4257882 34.3493073,44.3479809 34.4948913,45.1243875 L34.4948913,51.9961228 C34.4024546,52.6121309 33.9094382,52.5234287 32.8118025,52.5040154 L32.5030732,54.3265154 L33.46474,54.3269705 C35.3673259,54.328922 35.5804284,54.3364843 35.5804284,54.3364843 L35.5804284,56.485738 L37.114137,56.485738 Z M37.144013,47.6141601 L37.144013,44.5567428 C38.0104489,44.5567428 40.7192919,44.2878893 40.7192919,46.0904514 C40.7192919,47.8133542 38.0104798,47.6141601 37.144013,47.6141601 Z M37.144013,52.5139844 L37.144013,49.1478686 C38.1797362,49.1478686 41.3514108,48.8590464 41.3514108,50.8309574 C41.3514108,52.7330856 38.1797362,52.5139844 37.144013,52.5139844 Z","id","b","transform","translate(38.452166, 48.395011) rotate(14.000000) translate(-38.452166, -48.395011) ",1,"fill-color-30"]],template:function(Yt,bn){if(1&Yt&&d.DNE(0,dt,1,0,"ng-container",5)(1,yt,32,5,"ng-template",null,0,d.C5r)(3,Et,51,5,"ng-template",null,1,d.C5r)(5,rt,74,5,"ng-template",null,2,d.C5r)(7,Mn,53,5,"ng-template",null,3,d.C5r)(9,qt,66,5,"ng-template",null,4,d.C5r),2&Yt){const Zn=d.sdS(2),oi=d.sdS(4),Ii=d.sdS(6),Ei=d.sdS(8),Nt=d.sdS(10);d.Y8G("ngTemplateOutlet",1===bn.stepNumber?Zn:2===bn.stepNumber?oi:3===bn.stepNumber?Ii:4===bn.stepNumber?Ei:Nt)}},dependencies:[M.YU,M.T3,V.Lc,V.dh,pe.DJ,pe.sA,pe.UI,Ee.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ge.k]}}))}return Ot(),Ze})();const Xt=["stepper"],de=()=>[1,2,3,4,5],ae=(Ot,Ze)=>({"dot-primary":Ot,"dot-primary-lighter":Ze});function me(Ot,Ze){if(1&Ot&&(d.j41(0,"div",49)(1,"p",50)(2,"strong"),d.EFF(3,"Channel Peer:\xa0"),d.k0s(),d.EFF(4),d.nI1(5,"titlecase"),d.k0s(),d.j41(6,"p",51)(7,"strong"),d.EFF(8,"Channel ID:\xa0"),d.k0s(),d.EFF(9),d.k0s(),d.nrm(10,"p",51),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(4),d.JRh(d.bMT(5,2,Ge.channel.remote_alias)),d.R7$(5),d.JRh(Ge.channel.chan_id)}}function Le(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.inputFormLabel)}}function et(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Amount is required."),d.k0s())}function tn(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be greater than or equal to ",d.bMT(2,1,Ge.minQuote.amount),".")}}function Vt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-error"),d.EFF(1),d.nI1(2,"number"),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Amount must be less than or equal to ",d.bMT(2,1,Ge.maxQuote.amount),".")}}function hn(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target is required."),d.k0s())}function En(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Confirmation target must be a positive number."),d.k0s())}function _n(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage is required."),d.k0s())}function tt(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Percentage must be a positive number."),d.k0s())}function Fe(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-form-field",51)(1,"mat-label"),d.EFF(2,"Max Off-chain Routing Fee (%)"),d.k0s(),d.nrm(3,"input",52),d.DNE(4,_n,2,0,"mat-error",26)(5,tt,2,0,"mat-error",26),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.routingFeePercent.errors?null:Ge.inputFormGroup.controls.routingFeePercent.errors.min)}}function Pe(Ot,Ze){1&Ot&&(d.j41(0,"div",53)(1,"mat-slide-toggle",54),d.EFF(2,"Fast"),d.k0s(),d.j41(3,"mat-icon",55),d.EFF(4,"info_outline"),d.k0s()())}function Ue(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.JRh(Ge.quoteFormLabel)}}function Qe(Ot,Ze){1&Ot&&(d.j41(0,"p",56)(1,"mat-icon",57),d.EFF(2,"close"),d.k0s(),d.EFF(3,"Local balance amount is insufficient for swap."),d.k0s())}function Ie(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",58),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onValidateAmount())}),d.EFF(1,"Next"),d.k0s()}}function le(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",59),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(1),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.R7$(),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function Ne(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(3);d.JRh(Ge.addressFormLabel)}}function ze(Ot,Ze){1&Ot&&(d.j41(0,"mat-error"),d.EFF(1,"Address is required."),d.k0s())}function Je(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"mat-step",16)(1,"form",17),d.DNE(2,Ne,1,1,"ng-template",18),d.j41(3,"div",60)(4,"mat-radio-group",61),d.bIt("change",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return w.Njj(bn.onAddressTypeChange(Yt))}),d.j41(5,"mat-radio-button",62),d.EFF(6,"Node Local Address"),d.k0s(),d.j41(7,"mat-radio-button",63),d.EFF(8,"External Address"),d.k0s()(),d.j41(9,"mat-form-field",64)(10,"mat-label"),d.EFF(11,"Address"),d.k0s(),d.nrm(12,"input",65),d.DNE(13,ze,2,0,"mat-error",26),d.k0s()(),d.j41(14,"div",30)(15,"button",66),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onLoop())}),d.EFF(16),d.k0s()()()()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("stepControl",Ge.addressFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.addressFormGroup),d.R7$(11),d.Y8G("required","external"===Ge.addressFormGroup.controls.addressType.value),d.R7$(),d.Y8G("ngIf",null==Ge.addressFormGroup.controls.address.errors?null:Ge.addressFormGroup.controls.address.errors.required),d.R7$(3),d.SpI("Initiate ",Ge.loopDirectionCaption)}}function gt(Ot,Ze){if(1&Ot&&d.EFF(0),2&Ot){const Ge=d.XpG(2);d.SpI("",Ge.loopDirectionCaption," Status")}}function zt(Ot,Ze){if(1&Ot&&(d.j41(0,"mat-icon",67),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&null!=Ge.loopStatus&&Ge.loopStatus.id_bytes?"check":"close")}}function Ye(Ot,Ze){1&Ot&&d.nrm(0,"div")}function st(Ot,Ze){1&Ot&&d.nrm(0,"mat-progress-bar",68)}function it(Ot,Ze){if(1&Ot&&(d.j41(0,"h4",69),d.EFF(1),d.k0s()),2&Ot){const Ge=d.XpG(2);d.R7$(),d.JRh(Ge.loopStatus&&Ge.loopStatus.error?Ge.loopDirectionCaption+" failed.":Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel?Ge.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":Ge.loopDirectionCaption+" request placed successfully.")}}function He(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",70),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.goToLoop())}),d.EFF(1,"Check Status"),d.k0s()}}function Wt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",71),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onRestart())}),d.EFF(1,"Start Again"),d.k0s()}}function we(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),d.EFF(5),d.k0s()(),d.j41(6,"div",9)(7,"button",10),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.showInfo())}),d.EFF(8,"?"),d.k0s(),d.j41(9,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onClose())}),d.EFF(10,"X"),d.k0s()()(),d.j41(11,"mat-card-content",12)(12,"div",13),d.DNE(13,me,11,4,"div",14),d.j41(14,"mat-vertical-stepper",15,1),d.bIt("selectionChange",function(Yt){w.eBV(Ge);const bn=d.XpG();return w.Njj(bn.stepSelectionChanged(Yt))}),d.j41(16,"mat-step",16)(17,"form",17),d.DNE(18,Le,1,1,"ng-template",18),d.j41(19,"div",19),d.nrm(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",21),d.k0s(),d.j41(22,"div",22)(23,"mat-form-field",23)(24,"mat-label"),d.EFF(25,"Amount"),d.k0s(),d.nrm(26,"input",24),d.j41(27,"mat-hint"),d.EFF(28),d.nI1(29,"number"),d.nI1(30,"number"),d.k0s(),d.j41(31,"span",25),d.EFF(32,"Sats"),d.k0s(),d.DNE(33,et,2,0,"mat-error",26)(34,tn,3,3,"mat-error",26)(35,Vt,3,3,"mat-error",26),d.k0s(),d.j41(36,"mat-form-field",23)(37,"mat-label"),d.EFF(38,"Sweep Confirmation Target"),d.k0s(),d.nrm(39,"input",27),d.DNE(40,hn,2,0,"mat-error",26)(41,En,2,0,"mat-error",26),d.k0s(),d.DNE(42,Fe,6,3,"mat-form-field",28),d.k0s(),d.DNE(43,Pe,5,0,"div",29),d.j41(44,"div",30)(45,"button",31),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return w.Njj(Yt.onEstimateQuote())}),d.EFF(46,"Estimate Quote"),d.k0s()()()(),d.j41(47,"mat-step",16)(48,"form",17),d.DNE(49,Ue,1,1,"ng-template",18),d.nrm(50,"rtl-loop-quote",32),d.DNE(51,Qe,4,0,"p",33),d.j41(52,"div",30),d.DNE(53,Ie,2,0,"button",34)(54,le,2,1,"button",35),d.k0s()()(),d.DNE(55,Je,17,6,"mat-step",36),d.j41(56,"mat-step",37)(57,"form",17),d.DNE(58,gt,1,1,"ng-template",18),d.j41(59,"div",38)(60,"mat-expansion-panel",39)(61,"mat-expansion-panel-header")(62,"mat-panel-title")(63,"span",40),d.EFF(64),d.DNE(65,zt,2,1,"mat-icon",41),d.k0s()()(),d.DNE(66,Ye,1,0,"div",42),d.k0s(),d.DNE(67,st,1,0,"mat-progress-bar",43),d.k0s(),d.DNE(68,it,2,1,"h4",44),d.j41(69,"div",30),d.DNE(70,He,2,0,"button",45)(71,Wt,2,0,"button",46),d.k0s()()()(),d.j41(72,"div",47)(73,"button",48),d.EFF(74,"Close"),d.k0s()()()()()()}if(2&Ot){const Ge=d.XpG(),Pt=d.sdS(2);d.Y8G("@opacityAnimation",void 0),d.R7$(3),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-83":"flex-91"),d.R7$(2),d.JRh(Ge.channel?"Channel "+Ge.loopDirectionCaption:Ge.loopDirectionCaption),d.R7$(),d.Y8G("ngClass",Ge.screenSize===Ge.screenSizeEnum.XS||Ge.screenSize===Ge.screenSizeEnum.SM?"flex-17":"flex-9"),d.R7$(7),d.Y8G("ngIf",Ge.channel),d.R7$(),d.Y8G("linear",!0),d.R7$(2),d.Y8G("stepControl",Ge.inputFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.inputFormGroup),d.R7$(3),d.Y8G("quote",Ge.minQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(),d.Y8G("quote",Ge.maxQuote)("panelExpanded",!1)("showPanel",!0),d.R7$(2),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-35":"flex-48"),d.R7$(3),d.Y8G("step",1e3),d.R7$(2),d.Lme("Range: ",d.bMT(29,49,Ge.minQuote.amount),"-",d.bMT(30,51,Ge.maxQuote.amount)),d.R7$(5),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.min),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.amount.errors?null:Ge.inputFormGroup.controls.amount.errors.max),d.R7$(),d.Y8G("ngClass",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT?"flex-30":"flex-48"),d.R7$(3),d.Y8G("step",1),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.required),d.R7$(),d.Y8G("ngIf",null==Ge.inputFormGroup.controls.sweepConfTarget.errors?null:Ge.inputFormGroup.controls.sweepConfTarget.errors.min),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(4),d.Y8G("stepControl",Ge.quoteFormGroup)("editable",Ge.flgEditable),d.R7$(),d.Y8G("formGroup",Ge.quoteFormGroup),d.R7$(2),d.Y8G("quote",Ge.quote)("showPanel",!1),d.R7$(),d.Y8G("ngIf",Ge.inputFormGroup.controls.amount.value>Ge.localBalanceToCompare),d.R7$(2),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("stepControl",Ge.statusFormGroup),d.R7$(),d.Y8G("formGroup",Ge.statusFormGroup),d.R7$(3),d.Y8G("expanded",!!Ge.loopStatus),d.R7$(4),d.JRh(Ge.loopStatus?Ge.loopStatus.id_bytes?Ge.loopDirectionCaption+" request details":Ge.loopDirectionCaption+" error details":"Waiting for "+Ge.loopDirectionCaption+" request..."),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus)("ngIfElse",Pt),d.R7$(),d.Y8G("ngIf",!Ge.loopStatus),d.R7$(),d.Y8G("ngIf",Ge.loopStatus),d.R7$(2),d.Y8G("ngIf",Ge.loopStatus&&Ge.loopStatus.id_bytes&&Ge.channel),d.R7$(),d.Y8G("ngIf",Ge.loopStatus&&(Ge.loopStatus.error||!Ge.loopStatus.id_bytes)),d.R7$(2),d.Y8G("mat-dialog-close",!1)}}function We(Ot,Ze){if(1&Ot&&d.nrm(0,"rtl-loop-status",72),2&Ot){const Ge=d.XpG();d.Y8G("loopStatus",Ge.loopStatus)}}function Lt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-out-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function St(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"rtl-loop-in-info-graphics",88),d.mxI("stepNumberChange",function(Yt){w.eBV(Ge);const bn=d.XpG(2);return d.DH7(bn.stepNumber,Yt)||(bn.stepNumber=Yt),w.Njj(Yt)}),d.k0s()}if(2&Ot){const Ge=d.XpG(2);d.Y8G("animationDirection",Ge.animationDirection),d.R50("stepNumber",Ge.stepNumber)}}function At(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"span",89),d.bIt("click",function(){const Yt=w.eBV(Ge).$implicit,bn=d.XpG(2);return w.Njj(bn.onStepChanged(Yt))}),d.nrm(1,"p",90),d.k0s()}if(2&Ot){const Ge=Ze.$implicit,Pt=d.XpG(2);d.R7$(),d.Y8G("ngClass",d.l_i(1,ae,Pt.stepNumber===Ge,Pt.stepNumber!==Ge))}}function fn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",91),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onReadMore())}),d.EFF(1,"Read More"),d.k0s()}}function mt(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",92),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(4))}),d.EFF(1,"Back"),d.k0s()}}function It(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",93),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function wn(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",94),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(1,"Close"),d.k0s()}}function In(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",95),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber-1))}),d.EFF(1,"Back"),d.k0s()}}function ei(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"button",96),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG(2);return w.Njj(Yt.onStepChanged(Yt.stepNumber+1))}),d.EFF(1,"Next"),d.k0s()}}function Li(Ot,Ze){if(1&Ot){const Ge=d.RV6();d.j41(0,"div",73)(1,"div",19)(2,"mat-card-header",74)(3,"div",75),d.nrm(4,"span",8),d.k0s(),d.j41(5,"div",76)(6,"button",11),d.bIt("click",function(){w.eBV(Ge);const Yt=d.XpG();return Yt.flgShowInfo=!1,w.Njj(Yt.stepNumber=1)}),d.EFF(7,"X"),d.k0s()()(),d.j41(8,"mat-card-content",77),d.DNE(9,Lt,1,2,"rtl-loop-out-info-graphics",78)(10,St,1,2,"rtl-loop-in-info-graphics",78),d.k0s(),d.j41(11,"div",79),d.DNE(12,At,2,4,"span",80),d.k0s(),d.j41(13,"div",81),d.DNE(14,fn,2,0,"button",82)(15,mt,2,0,"button",83)(16,It,2,0,"button",84)(17,wn,2,0,"button",85)(18,In,2,0,"button",86)(19,ei,2,0,"button",87),d.k0s()()()}if(2&Ot){const Ge=d.XpG();d.Y8G("@opacityAnimation",void 0),d.R7$(9),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_OUT),d.R7$(),d.Y8G("ngIf",Ge.direction===Ge.LoopTypeEnum.LOOP_IN),d.R7$(2),d.Y8G("ngForOf",d.lJ4(10,de)),d.R7$(2),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",5===Ge.stepNumber),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber>1&&Ge.stepNumber<5),d.R7$(),d.Y8G("ngIf",Ge.stepNumber<5)}}let kt=(()=>{var Ot;class Ze{constructor(Pt,Yt,bn,Zn,oi,Ii,Ei,Nt,nn){this.dialogRef=Pt,this.data=Yt,this.store=bn,this.loopService=Zn,this.formBuilder=oi,this.decimalPipe=Ii,this.logger=Ei,this.router=Nt,this.commonService=nn,this.faInfoCircle=o.iW_,this.LoopTypeEnum=A.C7,this.direction=A.C7.LOOP_OUT,this.loopDirectionCaption="Loop out",this.loopStatus=null,this.inputFormLabel="Amount to loop out",this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address",this.prepayRoutingFee=36,this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=A.f7,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.channel=this.data.channel,this.minQuote=this.data.minQuote?this.data.minQuote:{},this.maxQuote=this.data.maxQuote?this.data.maxQuote:{},this.direction=this.data.direction||A.C7.LOOP_OUT,this.loopDirectionCaption=this.direction===A.C7.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[i.k0.required,i.k0.min(this.minQuote.amount||0),i.k0.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[i.k0.required,i.k0.min(1)]],routingFeePercent:[2,[i.k0.required,i.k0.min(0)]],fast:[!1,[i.k0.required]]}),this.inputFormGroup.setErrors({Invalid:!0}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[i.k0.required]],address:[{value:"",disabled:!0}]}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(h.BM).pipe((0,p.Q)(this.unSubs[6])).subscribe(Pt=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:Pt.lightningBalance&&Pt.lightningBalance.local?+Pt.lightningBalance.local:null})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[4])).subscribe(Pt=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===A.C7.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,p.Q)(this.unSubs[5])).subscribe(Pt=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(Pt){"external"===Pt.value?(this.addressFormGroup.controls.address.setValidators([i.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onValidateAmount(){this.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===A.C7.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===A.C7.LOOP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===A.C7.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,p.Q)(this.unSubs[0])).subscribe({next:Pt=>{this.loopStatus=Pt,this.loopService.listSwaps(),this.flgEditable=!0},error:Pt=>{this.loopStatus={error:Pt},this.flgEditable=!0,this.logger.error(Pt)}});else{const Pt=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),Yt="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",bn=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.loopService.loopOut(this.inputFormGroup.controls.amount.value,this.channel&&this.channel.chan_id?this.channel.chan_id:"",this.inputFormGroup.controls.sweepConfTarget.value,Pt,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),bn,Yt).pipe((0,p.Q)(this.unSubs[1])).subscribe({next:Zn=>{this.loopStatus=Zn,this.loopService.listSwaps(),this.flgEditable=!0},error:Zn=>{this.loopStatus={error:Zn},this.flgEditable=!0,this.logger.error(Zn)}})}}onEstimateQuote(){if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const Pt=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===A.C7.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Pt).pipe((0,p.Q)(this.unSubs[2])).subscribe(Yt=>{this.quote=Yt,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}):this.loopService.getLoopOutQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Pt).pipe((0,p.Q)(this.unSubs[3])).subscribe(Yt=>{this.quote=Yt,this.quote.off_chain_swap_routing_fee_percentage=this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:2}),this.stepper.selected?.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(Pt){switch(Pt.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 1:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===A.C7.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Percentage: "+(this.inputFormGroup.controls.routingFeePercent.value?this.inputFormGroup.controls.routingFeePercent.value:"2")+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel="Confirm Quote",this.addressFormLabel="Withdrawal Address";break;case 2:this.inputFormLabel=this.inputFormGroup.controls.amount.value||this.inputFormGroup.controls.sweepConfTarget.value?this.direction===A.C7.LOOP_IN?this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6):this.loopDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Target Confirmation: "+(this.inputFormGroup.controls.sweepConfTarget.value?this.inputFormGroup.controls.sweepConfTarget.value:6)+" | Fast: "+(this.inputFormGroup.controls.fast.value?"Enabled":"Disabled"):"Amount to "+this.loopDirectionCaption,this.quoteFormLabel=this.quote&&this.quote.swap_fee_sat&&(this.quote.htlc_sweep_fee_sat||this.quote.htlc_publish_fee_sat)&&this.quote.prepay_amt_sat?"Quote confirmed | Estimated Fees: "+this.decimalPipe.transform(+this.quote.swap_fee_sat+ +(this.quote.htlc_sweep_fee_sat?this.quote.htlc_sweep_fee_sat:this.quote.htlc_publish_fee_sat?this.quote.htlc_publish_fee_sat:0))+" Sats":"Quote confirmed",this.addressFormLabel=this.addressFormGroup.controls.addressType.value?"Withdrawal Address | Type: "+this.addressFormGroup.controls.addressType.value:"Withdrawal Address"}(this.direction===A.C7.LOOP_OUT&&1!==Pt.selectedIndex&&Pt.selectedIndex{Pt.next(null),Pt.complete()})}static#e=Ot=()=>(this.\u0275fac=function(Yt){return new(Yt||Ze)(d.rXU(D.CP),d.rXU(D.Vh),d.rXU(f.il),d.rXU(F.Q),d.rXU(i.ze),d.rXU(M.QX),d.rXU(K.gP),d.rXU(j.Ix),d.rXU(Z.h))},this.\u0275cmp=d.VBU({type:Ze,selectors:[["rtl-loop-modal"]],viewQuery:function(Yt,bn){if(1&Yt&&d.GBs(Xt,5),2&Yt){let Zn;d.mGM(Zn=d.lsd())&&(bn.stepper=Zn.first)}},standalone:!1,decls:4,vars:2,consts:[["loopStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"ngClass"],[1,"page-title"],["fxLayoutAlign","space-between end",3,"ngClass"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["class","padding-gap-large","fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngIf"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["termCaption","min",3,"quote","panelExpanded","showPanel"],["termCaption","max",3,"quote","panelExpanded","showPanel"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],[3,"ngClass"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["matInput","","type","number","tabindex","2","formControlName","sweepConfTarget","required","",3,"step"],["fxFlex","30",4,"ngIf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","5","type","button",3,"click"],[3,"quote","showPanel"],["fxFlex","100","class","color-warn mt-2","fxLayoutAlign","start center",4,"ngIf"],["mat-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","7","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",1,"padding-gap-large"],["fxFlex","40"],["fxFlex","30"],["matInput","","type","number","tabindex","3","formControlName","routingFeePercent","required","",3,"step"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-button","","color","primary","tabindex","7","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"loopStatus"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(Yt,bn){1&Yt&&d.DNE(0,we,75,53,"div",2)(1,We,1,1,"ng-template",null,0,d.C5r)(3,Li,20,11,"div",3),2&Yt&&(d.Y8G("ngIf",!bn.flgShowInfo),d.R7$(3),d.Y8G("ngIf",bn.flgShowInfo))},dependencies:[M.YU,M.Sq,M.bT,i.qT,i.me,i.Q0,i.BC,i.cb,i.YS,i.j4,i.JD,D.tx,ee.$z,V.m2,V.MM,Q.GK,Q.Z2,Q.WN,$.An,ie.fg,_e.rl,_e.nJ,_e.MV,_e.TL,_e.yw,ye.HM,se.VT,se._g,pe.DJ,pe.sA,pe.UI,Ee.PW,L.sG,t.oV,s.V5,s.Ti,s.M6,m.N,U,Oe,nt,S,M.QX,M.PV],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[e.C]}}))}return Ot(),Ze})()},90013(ke,q,l){"use strict";l.d(q,{X:()=>h});var i=l(45383),g=l(73664),p=l(43694),D=l(20060),o=l(88834),e=l(25596),A=l(52920);let h=(()=>{var d;class w{constructor(F){this.router=F,this.faTimes=i.GRI}goToHelp(){this.router.navigate(["/help"])}static#e=d=()=>(this.\u0275fac=function(M){return new(M||w)(g.rXU(p.Ix))},this.\u0275cmp=g.VBU({type:w,selectors:[["rtl-not-found"]],standalone:!1,decls:13,vars:1,consts:[["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(M,K){1&M&&(g.j41(0,"div",0),g.nrm(1,"fa-icon",1),g.j41(2,"span",2),g.EFF(3,"Page Not Found"),g.k0s()(),g.j41(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),g.EFF(9,"This page does not exist!"),g.k0s(),g.j41(10,"span",7)(11,"button",8),g.bIt("click",function(){return K.goToHelp()}),g.EFF(12,"Go To Help"),g.k0s()()()()()()),2&M&&(g.R7$(),g.Y8G("icon",K.faTimes))},dependencies:[D.aY,o.$z,e.RN,e.m2,A.DJ,A.sA,A.UI],encapsulation:2}))}return d(),w})()},89587(ke,q,l){"use strict";l.d(q,{N:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(e){this.el=e}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)(i.rXU(i.aKT))},this.\u0275dir=i.FsC({type:D,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"},standalone:!1}))}return p(),D})()},29157(ke,q,l){"use strict";l.d(q,{U:()=>g});var i=l(73664);let g=(()=>{var p;class D{constructor(){this.copied=new i.bkB}onClick(e){e.preventDefault(),this.payload&&(navigator.clipboard?this.copyUsingClipboardAPI():this.copyUsingFallbackMethod())}copyUsingFallbackMethod(){const e=document.createElement("textarea");e.value=this.payload,document.body.appendChild(e),e.select();try{document.execCommand("copy")?this.copied.emit(this.payload.toString()):this.copied.emit("Error could not copy text.")}finally{document.body.removeChild(e)}}copyUsingClipboardAPI(){navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())}).catch(e=>{this.copied.emit("Error could not copy text: "+JSON.stringify(e))})}static#e=p=()=>(this.\u0275fac=function(A){return new(A||D)},this.\u0275dir=i.FsC({type:D,selectors:[["","rtlClipboard",""]],hostBindings:function(A,h){1&A&&i.bIt("click",function(w){return h.onClick(w)})},inputs:{payload:"payload"},outputs:{copied:"copied"},standalone:!1}))}return p(),D})()},60092(ke,q,l){"use strict";l.d(q,{z:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.max?i.k0.max(+this.max)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","max",""]],inputs:{max:"max"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},56114(ke,q,l){"use strict";l.d(q,{V:()=>p});var i=l(89417),g=l(73664);let p=(()=>{var D;class o{validate(A){return this.min?i.k0.min(+this.min)(A):null}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275dir=g.FsC({type:o,selectors:[["input","min",""]],inputs:{min:"min"},standalone:!1,features:[g.Jv_([{provide:i.cz,useExisting:o,multi:!0}])]}))}return D(),o})()},52929(ke,q,l){"use strict";l.d(q,{Qu:()=>D,VD:()=>o,ZE:()=>p,gZ:()=>g});var i=l(73664);let g=(()=>{var e;class A{transform(d,w){return d?.replace(/^[0]+/g,"")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"removeleadingzeros",type:A,pure:!0,standalone:!1}))}return e(),A})(),p=(()=>{var e;class A{transform(d,w){return d?.replace(/(?:^\w|[A-Z]|\b\w)/g,(f,F)=>f.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcase",type:A,pure:!0,standalone:!1}))}return e(),A})(),D=(()=>{var e;class A{transform(d,w,f){return d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>" "+F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelCaseWithSpaces",type:A,pure:!0,standalone:!1}))}return e(),A})(),o=(()=>{var e;class A{transform(d,w,f){return d=d?d.toLowerCase().replace(/\s+/g,"")?.replace(/-/g," "):"",w&&(d=d.replace(new RegExp(w,"g")," ")),f&&(d=d.replace(new RegExp(f,"g")," ")),d.replace(/(?:^\w|[A-Z]|\b\w)/g,(F,M)=>F.toUpperCase())}static#e=e=()=>(this.\u0275fac=function(w){return new(w||A)},this.\u0275pipe=i.EJ8({name:"camelcaseWithReplace",type:A,pure:!0,standalone:!1}))}return e(),A})()},17186(ke,q,l){"use strict";l.d(q,{Wz:()=>A,fe:()=>h,jn:()=>e,q_:()=>o});var i=l(2615),g=l(43694),p=l(53202),D=l(96354);function o(){return()=>{const d=(0,i.WQX)(g.Ix),w=(0,i.WQX)(g.nX),f=(0,i.WQX)(p.Q);return!(!f.getItem("token")||w.snapshot.url&&w.snapshot.url.length&&"settings"!==w.snapshot.url[0].path&&"auth"!==w.snapshot.url[0].path&&"true"===f.getItem("defaultPassword")&&(d.navigate(["/settings/auth"]),1))}}function e(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.lndUnlocked))}function A(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.clnUnlocked))}function h(){return()=>!!(0,i.WQX)(p.Q).watchSession().pipe((0,D.T)(w=>w.eclUnlocked))}},82571(ke,q,l){"use strict";l.d(q,{h:()=>K});var i=l(21413),g=l(84412),p=l(7673),D=l(18810),o=l(99437),e=l(25558),A=l(56977),h=l(4416),d=l(2615),w=l(51534),f=l(98570),F=l(72200),M=l(345);let K=(()=>{var j;class Z{constructor(V,Q,$,ie){this.dataService=V,this.logger=Q,this.datePipe=$,this.sanitizer=ie,this.currencyUnits=[],this.CurrencyUnitEnum=h.BQ,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=h.wn.UN_INITIATED,this.screenSize=h.f7.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new g.t(this.containerSize),this.unSubs=[new i.B,new i.B,new i.B]}getScreenSize(){return this.screenSize}setScreenSize(V){this.screenSize=V}getContainerSize(){return this.containerSize}setContainerSize(V,Q){this.containerSize={width:V,height:Q},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(V,Q,$,ie="asc"){return V.sort("number"===$?"desc"===ie?(_e,ye)=>+_e[Q]>+ye[Q]?-1:1:(_e,ye)=>+_e[Q]>+ye[Q]?1:-1:"desc"===ie?(_e,ye)=>_e[Q]>ye[Q]?-1:1:(_e,ye)=>_e[Q]>ye[Q]?1:-1)}sortDescByKey(V,Q){return V.sort(($,ie)=>{const _e=+$[Q],ye=+ie[Q];return _e>ye?-1:_e{const _e=+$[Q],ye=+ie[Q];return _eye?1:0})}camelCase(V){return V?.replace(/(?:^\w|[A-Z]|\b\w)/g,(Q,$)=>Q.toUpperCase())?.replace(/\s+/g,"")?.replace(/-/g," ")}titleCase(V,Q,$){return Q&&$&&""!==Q&&""!==$&&(V=V?.replace(new RegExp(Q,"g"),$)),V.indexOf("!\n")>0||V.indexOf(".\n")>0?V.split("\n")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+"\n",""):V.indexOf(" ")>0?V.split(" ")?.reduce((ie,_e)=>ie+_e.charAt(0).toUpperCase()+_e.substring(1).toLowerCase()+" ",""):V.charAt(0).toUpperCase()+V.substring(1).toLowerCase()}convertCurrency(V,Q,$,ie,_e){const ye=(new Date).valueOf();try{return _e&&ie&&(Q===h.BQ.OTHER||$===h.BQ.OTHER)?this.ratesAPIStatus!==h.wn.INITIATED?this.conversionData.data&&this.conversionData.last_fetched&&ye(this.ratesAPIStatus=h.wn.COMPLETED,this.conversionData.data=se&&"object"==typeof se?se:se&&"string"==typeof se?JSON.parse(se):{},this.conversionData.last_fetched=ye,(0,p.of)(this.convertWithFiat(V,Q,ie)))),(0,o.W)(se=>(this.ratesAPIStatus=h.wn.ERROR,(0,D.$)(()=>"Currency Conversion Error."))))):(0,p.of)(this.conversionData.data&&this.conversionData.last_fetched&&ye"Currency Conversion Error.")}}convertWithoutFiat(V,Q){const $={};switch($[h.BQ.SATS]=0,$[h.BQ.BTC]=0,Q){case h.BQ.SATS:$[h.BQ.SATS]=V,$[h.BQ.BTC]=1e-8*V;break;case h.BQ.BTC:$[h.BQ.SATS]=1e8*V,$[h.BQ.BTC]=V}return $}convertWithFiat(V,Q,$){const ie={unit:$,iconType:"FA",symbol:null};if($){const _e=(0,h.Zo)(this.conversionData.data[$].symbol);ie.iconType=_e.iconType,ie.symbol=_e&&"SVG"===_e.iconType&&_e.symbol&&"string"==typeof _e.symbol?this.sanitizer.bypassSecurityTrustHtml(_e.symbol):_e.symbol}switch(ie[h.BQ.SATS]=0,ie[h.BQ.BTC]=0,ie[h.BQ.OTHER]=0,Q){case h.BQ.SATS:ie[h.BQ.SATS]=V,ie[h.BQ.BTC]=1e-8*V,ie[h.BQ.OTHER]=1e-8*V*this.conversionData.data[$].last;break;case h.BQ.BTC:ie[h.BQ.SATS]=1e8*V,ie[h.BQ.BTC]=V,ie[h.BQ.OTHER]=V*this.conversionData.data[$].last;break;case h.BQ.OTHER:ie[h.BQ.SATS]=V/this.conversionData.data[$].last*1e8,ie[h.BQ.BTC]=V/this.conversionData.data[$].last,ie[h.BQ.OTHER]=V}return ie}convertTime(V,Q,$){switch(Q){case h.F7.SECS:switch($){case h.F7.MINS:V/=60;break;case h.F7.HOURS:V/=h.bz;break;case h.F7.DAYS:V/=24*h.bz}break;case h.F7.MINS:switch($){case h.F7.SECS:V*=60;break;case h.F7.HOURS:V/=60;break;case h.F7.DAYS:V/=1440}break;case h.F7.HOURS:switch($){case h.F7.SECS:V*=h.bz;break;case h.F7.MINS:V*=60;break;case h.F7.DAYS:V/=24}break;case h.F7.DAYS:switch($){case h.F7.SECS:V=V*h.bz*24;break;case h.F7.MINS:V=60*V*24;break;case h.F7.HOURS:V*=24}}return V}downloadFile(V,Q,$=".json",ie=".csv"){let _e=new Blob;_e=".json"===$?new Blob(["\ufeff"+this.convertToCSV(V)],{type:"text/csv;charset=utf-8;"}):new Blob([V.toString()],{type:"text/plain;charset=utf-8"});const ye=document.createElement("a"),se=URL.createObjectURL(_e);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ye.setAttribute("target","_blank"),ye.setAttribute("href",se),ye.setAttribute("download",Q+ie),ye.style.visibility="hidden",document.body.appendChild(ye),ye.click(),document.body.removeChild(ye)}convertToCSV(V){const Q=[];let $="",ie="",_e="";return"object"!=typeof V&&(V=JSON.parse(V)),V.forEach((se,pe)=>{for(const Ee in se)Q.findIndex(L=>L===Ee)<0&&Q.push(Ee)}),_e=Q.join(",")+"\r\n",V.forEach(se=>{$="",Q.forEach(pe=>{if(se.hasOwnProperty(pe))if(Array.isArray(se[pe]))ie="",se[pe].forEach((Ee,L)=>{ie+="object"==typeof Ee?"("+JSON.stringify(Ee)?.replace(/\,/g,";")+")":"("+Ee+")"}),$+=ie+",";else if("object"==typeof se[pe])$+=JSON.stringify(se[pe])?.replace(/\,/g,";")+",";else if(pe.includes("timestamp")||pe.includes("date"))try{switch(se[pe].toString().length){case 10:$+=this.datePipe.transform(new Date(1e3*se[pe]),"dd/MMM/y HH:mm")+",";break;case 13:$+=this.datePipe.transform(new Date(se[pe]),"dd/MMM/y HH:mm")+",";break;default:$+=se[pe]+","}}catch{$+=se[pe]+","}else $+=se[pe]+",";else $+=","}),_e+=$.slice(0,-1)+"\r\n"}),_e}isVersionCompatible(V,Q){if(V){const $=V.match(/v?(?\d+(?:\.\d+)*)/);if($&&$.groups&&$.groups.version){this.logger.info("Current Version: "+$.groups.version),this.logger.info("Checking Compatiblility with Version: "+Q);const ie=$.groups.version.split(".")||[],_e=Q.split(".");return+ie[0]>+_e[0]||+ie[0]==+_e[0]&&+ie[1]>+_e[1]||+ie[0]==+_e[0]&&+ie[1]==+_e[1]&&+ie[2]>=+_e[2]}return this.logger.error("Invalid Version String: "+V),!1}return!1}extractErrorMessage(V,Q="Unknown Error."){const $=this.titleCase(V.error&&V.error.text&&"string"==typeof V.error.text&&V.error.text.includes('')?"API Route Does Not Exist.":V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.error&&"string"==typeof V.error.error.error.error.error?V.error.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&"string"==typeof V.error.error.error.error?V.error.error.error.error:V.error&&V.error.error&&V.error.error.error&&"string"==typeof V.error.error.error?V.error.error.error:V.error&&V.error.error&&"string"==typeof V.error.error?V.error.error:V.error&&"string"==typeof V.error?V.error:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.error&&V.error.error.error.error.message&&"string"==typeof V.error.error.error.error.message?V.error.error.error.error.message:V.error&&V.error.error&&V.error.error.error&&V.error.error.error.message&&"string"==typeof V.error.error.error.message?V.error.error.error.message:V.error&&V.error.error&&V.error.error.message&&"string"==typeof V.error.error.message?V.error.error.message:V.error&&V.error.message&&"string"==typeof V.error.message?V.error.message:V.message&&"string"==typeof V.message?V.message:Q);return this.logger.info("Error Message: "+$),$}extractErrorCode(V,Q=500){const $=V.error&&V.error.error&&V.error.error.message&&V.error.error.message.code?V.error.error.message.code:V.error&&V.error.error&&V.error.error.code?V.error.error.code:V.error&&V.error.code?V.error.code:V.code?V.code:V.status?V.status:Q;return this.logger.info("Error Code: "+$),$}extractErrorNumber(V,Q=500){const $=V.error&&V.error.error&&V.error.error.errno?V.error.error.errno:V.error&&V.error.errno?V.error.errno:V.errno?V.errno:V.status?V.status:Q;return this.logger.info("Error Number: "+$),$}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(d.KVO(w.u),d.KVO(f.gP),d.KVO(F.vh),d.KVO(M.up))},this.\u0275prov=d.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},4416(ke,q,l){"use strict";l.d(q,{A$:()=>Ee,A0:()=>f,Ah:()=>Oe,BQ:()=>m,Bd:()=>R,Bv:()=>ie,C6:()=>tt,C7:()=>Y,F7:()=>t,G:()=>$,H$:()=>d,HW:()=>pe,Hx:()=>x,It:()=>A,Jd:()=>me,Jr:()=>ye,KR:()=>fe,Ld:()=>ee,MZ:()=>ce,NG:()=>e,QP:()=>oe,SY:()=>M,TC:()=>Se,TH:()=>nt,U1:()=>L,UN:()=>u,Uq:()=>$e,Uu:()=>be,WW:()=>Vt,X8:()=>tn,XG:()=>V,Y0:()=>Re,ZC:()=>Le,Zb:()=>a,Zi:()=>En,Zo:()=>_n,_1:()=>et,_U:()=>dt,aG:()=>P,aR:()=>Me,aU:()=>ve,bz:()=>o,ck:()=>_e,f7:()=>_,iI:()=>C,jG:()=>de,k:()=>F,md:()=>j,mu:()=>ae,nv:()=>Q,o1:()=>se,oi:()=>Xt,on:()=>D,q9:()=>U,rl:()=>w,rs:()=>re,tj:()=>T,ul:()=>yt,wn:()=>ge,xk:()=>Et,xp:()=>Z,xv:()=>h});var i=l(17705),g=l(96695),p=l(45383);function D(Fe){const Pe=new g.xX;return Pe.itemsPerPageLabel=Fe+" per page:",Pe}const o=3600,e=31536e3,A=24*o*7,h="0.15.9-beta",d=(0,i.naY)()?"http://localhost:3000/rtl/api":"./api",w={AUTHENTICATE_API:d+"/authenticate",CONF_API:d+"/conf",PAGE_SETTINGS_API:d+"/pagesettings",BALANCE_API:"/balance",FEES_API:"/fees",PEERS_API:"/peers",CHANNELS_API:"/channels",CHANNELS_BACKUP_API:"/channels/backup",GETINFO_API:"/getinfo",WALLET_API:"/wallet",NETWORK_API:"/network",NEW_ADDRESS_API:"/newaddress",TRANSACTIONS_API:"/transactions",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f=["Sats","BTC"],F={Sats:"1.0-0",BTC:"1.6-6",OTHER:"1.2-2"},M=["SECS","MINS","HOURS","DAYS"],j=10,Z=[5,10,25,100],ee=[{addressId:"0",addressCode:"bech32",addressTp:"Bech32 (P2WKH)",addressDetails:"Pay to witness key hash"},{addressId:"1",addressCode:"p2sh-segwit",addressTp:"P2SH (NP2WKH)",addressDetails:"Pay to nested witness key hash (default)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],V=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],Q=[{id:"none",name:"No Fee Limit",placeholder:"No Limit"},{id:"fixed",name:"Fixed Limit (Sats)",placeholder:"Fixed Limit in Sats"},{id:"percent",name:"Percentage of Amount",placeholder:"Percentage Limit"}],$=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom"}],ie={themes:[{id:"PURPLE",name:"Diogo"},{id:"TEAL",name:"My2Sats"},{id:"INDIGO",name:"RTL"},{id:"PINK",name:"BK"},{id:"YELLOW",name:"Gold"}],modes:[{id:"DAY",name:"Day"},{id:"NIGHT",name:"Night"}]};var _e=function(Fe){return Fe.PAYMENT_RECEIVED="payment-received",Fe.PAYMENT_RELAYED="payment-relayed",Fe.PAYMENT_SENT="payment-sent",Fe.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Fe.PAYMENT_FAILED="payment-failed",Fe.CHANNEL_OPENED="channel-opened",Fe.CHANNEL_STATE_CHANGED="channel-state-changed",Fe.CHANNEL_CLOSED="channel-closed",Fe}(_e||{}),ye=function(Fe){return Fe.CONNECT="connect",Fe.DISCONNECT="disconnect",Fe.WARNING="warning",Fe.INVOICE_PAYMENT="invoice_payment",Fe.INVOICE_CREATION="invoice_creation",Fe.CHANNEL_OPENED="channel_opened",Fe.CHANNEL_STATE_CHANGED="channel_state_changed",Fe.SENDPAY_SUCCESS="sendpay_success",Fe.SENDPAY_FAILURE="sendpay_failure",Fe.COIN_MOVEMENT="coin_movement",Fe.BALANCE_SNAPSHOT="balance_snapshot",Fe.BLOCK_ADDED="block_added",Fe.OPENCHANNEL_PEER_SIGS="openchannel_peer_sigs",Fe.CHANNEL_OPEN_FAILED="channel_open_failed",Fe}(ye||{}),se=function(Fe){return Fe.INVOICE="invoice",Fe}(se||{}),pe=function(Fe){return Fe.OPERATOR="OPERATOR",Fe.MERCHANT="MERCHANT",Fe.ALL="ALL",Fe}(pe||{}),Ee=function(Fe){return Fe.INFORMATION="Information",Fe.WARNING="Warning",Fe.ERROR="Error",Fe.SUCCESS="Success",Fe.CONFIRM="Confirm",Fe}(Ee||{}),L=function(Fe){return Fe.NOAUTH="NOAUTH",Fe.JWT="JWT",Fe.PASSWORD="PASSWORD",Fe}(L||{}),t=function(Fe){return Fe.SECS="SECS",Fe.MINS="MINS",Fe.HOURS="HOURS",Fe.DAYS="DAYS",Fe}(t||{}),m=function(Fe){return Fe.SATS="Sats",Fe.BTC="BTC",Fe.OTHER="OTHER",Fe}(m||{}),u=function(Fe){return Fe.ARRAY="ARRAY",Fe.NUMBER="NUMBER",Fe.STRING="STRING",Fe.BOOLEAN="BOOLEAN",Fe.PASSWORD="PASSWORD",Fe.DATE="DATE",Fe.DATE_TIME="DATE_TIME",Fe}(u||{}),_=function(Fe){return Fe.XS="XS",Fe.SM="SM",Fe.MD="MD",Fe.LG="LG",Fe.XL="XL",Fe}(_||{});const T={COOPERATIVE_CLOSE:{name:"Co-operative Close",tooltip:"Channel closed cooperatively"},LOCAL_FORCE_CLOSE:{name:"Local Force Close",tooltip:"Channel force-closed by the local node"},REMOTE_FORCE_CLOSE:{name:"Remote Force Close",tooltip:"Channel force-closed by the remote node"},BREACH_CLOSE:{name:"Breach Close",tooltip:"Remote node attempted to broadcast a prior revoked channel state"},FUNDING_CANCELED:{name:"Funding Canceled",tooltip:"Channel never fully opened"},ABANDONED:{name:"Abandoned",tooltip:"Channel abandoned by the local node"}},P={WITNESS_PUBKEY_HASH:{name:"Witness Pubkey Hash",tooltip:""},NESTED_PUBKEY_HASH:{name:"Nested Pubkey Hash",tooltip:""},UNUSED_WITNESS_PUBKEY_HASH:{name:"Unused Witness Pubkey Hash",tooltip:""},UNUSED_NESTED_PUBKEY_HASH:{name:"Unused Nested Pubkey Hash",tooltip:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var C=function(Fe){return Fe.WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Fe.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Fe.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Fe.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Fe.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Fe.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Fe.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Fe.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Fe.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Fe.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Fe.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Fe.WIRE_CHANNEL_DISABLED="Channel Disabled",Fe.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Fe.WIRE_INVALID_REALM="Invalid Realm",Fe.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Fe.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Fe.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Fe.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Fe.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Fe.WIRE_MPP_TIMEOUT="MPP Timeout",Fe.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Fe.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",Fe}(C||{}),a=function(Fe){return Fe.CHANNELD_NORMAL="Active",Fe.OPENINGD="Opening",Fe.CHANNELD_AWAITING_LOCKIN="Pending Open",Fe.CHANNELD_SHUTTING_DOWN="Shutting Down",Fe.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Fe.CLOSINGD_COMPLETE="Closed",Fe.AWAITING_UNILATERAL="Awaiting Unilateral Close",Fe.FUNDING_SPEND_SEEN="Funding Spend Seen",Fe.ONCHAIN="Onchain",Fe.DUALOPEND_OPEN_INIT="Dual Open Initialized",Fe.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",Fe}(a||{}),x=function(Fe){return Fe.INITIATED="Initiated",Fe.PREIMAGE_REVEALED="Preimage Revealed",Fe.HTLC_PUBLISHED="HTLC Published",Fe.SUCCESS="Successful",Fe.FAILED="Failed",Fe.INVOICE_SETTLED="Invoice Settled",Fe}(x||{}),Y=function(Fe){return Fe.LOOP_OUT="LOOP_OUT",Fe.LOOP_IN="LOOP_IN",Fe}(Y||{}),R=function(Fe){return Fe.SWAP_OUT="SWAP_OUT",Fe.SWAP_IN="SWAP_IN",Fe}(R||{}),U=function(Fe){return Fe["swap.created"]="Swap Created",Fe["swap.expired"]="Swap Expired",Fe["invoice.set"]="Invoice Set",Fe["invoice.paid"]="Invoice Paid",Fe["invoice.pending"]="Invoice Pending",Fe["invoice.settled"]="Invoice Settled",Fe["invoice.failedToPay"]="Invoice Failed To Pay",Fe["channel.created"]="Channel Created",Fe["transaction.failed"]="Transaction Failed",Fe["transaction.mempool"]="Transaction Mempool",Fe["transaction.claimed"]="Transaction Claimed",Fe["transaction.refunded"]="Transaction Refunded",Fe["transaction.confirmed"]="Transaction Confirmed",Fe["transaction.lockupFailed"]="Lockup Transaction Failed",Fe["swap.refunded"]="Swap Refunded",Fe["swap.abandoned"]="Swap Abandoned",Fe}(U||{});const fe=[{name:"Jan",days:31},{name:"Feb",days:28},{name:"Mar",days:31},{name:"Apr",days:30},{name:"May",days:31},{name:"Jun",days:30},{name:"Jul",days:31},{name:"Aug",days:31},{name:"Sep",days:30},{name:"Oct",days:31},{name:"Nov",days:30},{name:"Dec",days:31}],re=["MONTHLY","YEARLY"],Oe=["password","changeme","moneyprintergobrrr"];var ge=function(Fe){return Fe.UN_INITIATED="UN_INITIATED",Fe.INITIATED="INITIATED",Fe.COMPLETED="COMPLETED",Fe.ERROR="ERROR",Fe}(ge||{});const ce={NO_SPINNER:"No Spinner...",GET_NODE_INFO:"Getting Node Information...",INITALIZE_NODE_DATA:"Initializing Node Data...",GENERATE_NEW_ADDRESS:"Getting New Address...",SEND_FUNDS:"Sending Funds...",UPDATE_CHAN_POLICY:"Updating Channel Policy...",GET_CHAN_POLICY:"Fetching Channel Policy...",GET_REMOTE_POLICY:"Fetching Remote Policy...",CLOSE_CHANNEL:"Closing Channel...",FORCE_CLOSE_CHANNEL:"Force Closing Channel...",OPEN_CHANNEL:"Opening Channel...",CONNECT_PEER:"Connecting Peer...",DISCONNECT_PEER:"Disconnecting Peer...",ADD_INVOICE:"Adding Invoice...",CREATE_INVOICE:"Creating Invoice...",DELETE_INVOICE:"Deleting Invoices...",DECODE_PAYMENT:"Decoding Payment...",DECODE_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",GET_SENT_PAYMENTS:"Getting Sent Payments...",SEND_PAYMENT:"Sending Payment...",SEND_KEYSEND:"Sending Keysend Payment...",SEARCHING_NODE:"Searching Node...",SEARCHING_CHANNEL:"Searching Channel...",SEARCHING_INVOICE:"Searching Invoice...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",DOWNLOAD_BACKUP_FILE:"Downloading Backup File...",RESTORE_CHANNEL:"Restoring Channels...",GET_TERMS_QUOTES:"Getting Terms and Quotes...",LABEL_UTXO:"Labelling UTXO...",GET_NODE_ADDRESS:"Getting Node Address...",GEN_SEED:"Generating Seed...",INITIALIZE_WALLET:"Initializing Wallet...",UNLOCK_WALLET:"Unlocking Wallet...",WAIT_SYNC_NODE:"Waiting for Node Sync...",UPDATE_BOLTZ_SETTINGS:"Updating Boltz Service Settings...",UPDATE_LOOP_SETTINGS:"Updating Loop Service Settings...",UPDATE_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",UPDATE_APPLICATION_SETTINGS:"Updating Application Settings...",UPDATE_NODE_SETTINGS:"Updating Node Settings...",UPDATE_SELECTED_NODE:"Updating Selected Node...",OPEN_CONFIG_FILE:"Opening Config File...",GET_BOLTZ_INFO:"Getting Boltz Info...",GET_SERVICE_INFO:"Getting Service Info...",GET_QUOTE:"Getting Quotes...",UPDATE_DEFAULT_NODE_SETTING:"Updating Defaule Node Settings...",GET_BOLTZ_SWAPS:"Getting Boltz Swaps...",SIGN_MESSAGE:"Signing Message...",VERIFY_MESSAGE:"Verifying Message...",BUMP_FEE:"Bumping Fee...",LEASE_UTXO:"Leasing UTXO...",GET_LOOP_INFO:"Getting Loop Info...",GET_LOOP_SWAPS:"Getting List Swaps...",GET_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",REBALANCE_CHANNEL:"Rebalancing Channel...",LOG_OUT:"Logging Out..."};var Re=function(Fe){return Fe.INVOICE="INVOICE",Fe.OFFER="OFFER",Fe.KEYSEND="KEYSEND",Fe}(Re||{}),Me=function(Fe){return Fe.FEES="FEES",Fe.EVENTS="EVENTS",Fe}(Me||{}),ve=function(Fe){return Fe.VOID="VOID",Fe.SET_API_URL_ECL="SET_API_URL_ECL",Fe.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Fe.RESET_ROOT_STORE="RESET_ROOT_STORE",Fe.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Fe.OPEN_SNACK_BAR="OPEN_SNACKBAR",Fe.OPEN_SPINNER="OPEN_SPINNER",Fe.CLOSE_SPINNER="CLOSE_SPINNER",Fe.OPEN_ALERT="OPEN_ALERT",Fe.CLOSE_ALERT="CLOSE_ALERT",Fe.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Fe.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Fe.SHOW_PUBKEY="SHOW_PUBKEY",Fe.FETCH_CONFIG="FETCH_CONFIG",Fe.SHOW_CONFIG="SHOW_CONFIG",Fe.FETCH_STORE="FETCH_STORE",Fe.SET_STORE="SET_STORE",Fe.FETCH_APPLICATION_SETTINGS="FETCH_APPLICATION_SETTINGS",Fe.SET_APPLICATION_SETTINGS="SET_APPLICATION_SETTINGS",Fe.SAVE_SETTINGS="SAVE_SETTINGS",Fe.SET_SELECTED_NODE="SET_SELECTED_NODE",Fe.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Fe.UPDATE_APPLICATION_SETTINGS="UPDATE_APPLICATION_SETTINGS",Fe.UPDATE_NODE_SETTINGS="UPDATE_NODE_SETTINGS",Fe.SET_SELECTED_NODE_SETTINGS="SET_SELECTED_NODE_SETTINGS",Fe.SET_NODE_DATA="SET_NODE_DATA",Fe.IS_AUTHORIZED="IS_AUTHORIZED",Fe.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Fe.LOGIN="LOGIN",Fe.VERIFY_TWO_FA="VERIFY_TWO_FA",Fe.LOGOUT="LOGOUT",Fe.RESET_PASSWORD="RESET_PASSWORD",Fe.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Fe.FETCH_FILE="FETCH_FILE",Fe.SHOW_FILE="SHOW_FILE",Fe}(ve||{}),oe=function(Fe){return Fe.RESET_LND_STORE="RESET_LND_STORE",Fe.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Fe.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Fe.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Fe.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Fe.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Fe.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Fe.FETCH_INFO_LND="FETCH_INFO_LND",Fe.SET_INFO_LND="SET_INFO_LND",Fe.FETCH_PEERS_LND="FETCH_PEERS_LND",Fe.SET_PEERS_LND="SET_PEERS_LND",Fe.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Fe.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Fe.DETACH_PEER_LND="DETACH_PEER_LND",Fe.REMOVE_PEER_LND="REMOVE_PEER_LND",Fe.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Fe.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Fe.ADD_INVOICE_LND="ADD_INVOICE_LND",Fe.FETCH_FEES_LND="FETCH_FEES_LND",Fe.SET_FEES_LND="SET_FEES_LND",Fe.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Fe.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Fe.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Fe.SET_NETWORK_LND="SET_NETWORK_LND",Fe.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Fe.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Fe.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Fe.SET_CHANNELS_LND="SET_CHANNELS_LND",Fe.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Fe.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Fe.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Fe.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Fe.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Fe.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Fe.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Fe.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Fe.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Fe.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Fe.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Fe.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Fe.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Fe.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Fe.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Fe.SET_INVOICES_LND="SET_INVOICES_LND",Fe.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Fe.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Fe.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Fe.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Fe.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Fe.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Fe.SET_UTXOS_LND="SET_UTXOS_LND",Fe.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Fe.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Fe.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Fe.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Fe.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Fe.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Fe.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Fe.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Fe.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Fe.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Fe.GEN_SEED_LND="GEN_SEED_LND",Fe.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Fe.INIT_WALLET_LND="INIT_WALLET_LND",Fe.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Fe.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Fe.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Fe.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Fe.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Fe.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Fe.SET_LOOKUP_LND="SET_LOOKUP_LND",Fe.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Fe.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Fe.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Fe.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Fe.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Fe.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",Fe}(oe||{}),Se=function(Fe){return Fe.RESET_CLN_STORE="RESET_CLN_STORE",Fe.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Fe.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Fe.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Fe.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Fe.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Fe.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Fe.SET_INFO_CLN="SET_INFO_CLN",Fe.FETCH_FEES_CLN="FETCH_FEES_CLN",Fe.SET_FEES_CLN="SET_FEES_CLN",Fe.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Fe.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Fe.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Fe.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Fe.FETCH_UTXO_BALANCES_CLN="FETCH_UTXO_BALANCES_CLN",Fe.SET_UTXO_BALANCES_CLN="SET_UTXO_BALANCES_CLN",Fe.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Fe.SET_PEERS_CLN="SET_PEERS_CLN",Fe.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Fe.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Fe.ADD_PEER_CLN="ADD_PEER_CLN",Fe.DETACH_PEER_CLN="DETACH_PEER_CLN",Fe.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Fe.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Fe.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Fe.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Fe.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Fe.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Fe.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Fe.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Fe.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Fe.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Fe.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Fe.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Fe.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Fe.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Fe.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Fe.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Fe.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Fe.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Fe.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Fe.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Fe.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Fe.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Fe.SET_INVOICES_CLN="SET_INVOICES_CLN",Fe.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Fe.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Fe.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Fe.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Fe.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Fe.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Fe.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Fe.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Fe.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Fe.SET_OFFERS_CLN="SET_OFFERS_CLN",Fe.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Fe.ADD_OFFER_CLN="ADD_OFFER_CLN",Fe.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Fe.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Fe.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Fe.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Fe.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Fe.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Fe.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",Fe}(Se||{}),be=function(Fe){return Fe.RESET_ECL_STORE="RESET_ECL_STORE",Fe.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Fe.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Fe.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Fe.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Fe.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Fe.FETCH_INFO_ECL="FETCH_INFO_ECL",Fe.SET_INFO_ECL="SET_INFO_ECL",Fe.FETCH_FEES_ECL="FETCH_FEES_ECL",Fe.SET_FEES_ECL="SET_FEES_ECL",Fe.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Fe.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Fe.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Fe.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Fe.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Fe.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Fe.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Fe.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Fe.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Fe.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Fe.SET_PEERS_ECL="SET_PEERS_ECL",Fe.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Fe.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Fe.ADD_PEER_ECL="ADD_PEER_ECL",Fe.DETACH_PEER_ECL="DETACH_PEER_ECL",Fe.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Fe.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Fe.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Fe.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Fe.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Fe.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Fe.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Fe.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Fe.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Fe.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Fe.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Fe.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Fe.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Fe.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Fe.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Fe.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Fe.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Fe.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Fe.SET_INVOICES_ECL="SET_INVOICES_ECL",Fe.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Fe.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Fe.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Fe.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Fe.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Fe.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Fe.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Fe.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Fe.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",Fe}(be||{});const nt=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"},{range:{min:30,max:31},description:"AMP support"},{range:{min:44,max:45},description:"Explicit commitment type"}];var $e=function(Fe){return Fe.gossip_queries_ex="Gossip queries including additional information",Fe.option_anchor_outputs="Anchor outputs",Fe.option_data_loss_protect="Extra channel re-establish fields",Fe.var_onion_optin="Variable-length routing onion payloads",Fe.option_static_remotekey="Static key for remote output",Fe.option_support_large_channel="Create large channels",Fe.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.payment_secret="Payment secret field",Fe.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Fe.basic_mpp="Basic multi-part payments",Fe.gossip_queries="More sophisticated gossip control",Fe.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Fe.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}($e||{}),dt=function(Fe){return Fe["data-loss-protect"]="Extra channel re-establish fields",Fe["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Fe["gossip-queries"]="More sophisticated gossip control",Fe["tlv-onion"]="Variable-length routing onion payloads",Fe["ext-gossip-queries"]="Gossip queries can include additional information",Fe["static-remote-key"]="Static key for remote output",Fe["payment-addr"]="Payment secret field",Fe["multi-path-payments"]="Basic multi-part payments",Fe["wumbo-channels"]="Wumbo Channels",Fe.anchors="Anchor outputs",Fe["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Fe.amp="AMP",Fe}(dt||{});const yt=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var Et=function(Fe){return Fe.OFFERED="offered",Fe.SETTLED="settled",Fe.FAILED="failed",Fe.LOCAL_FAILED="local_failed",Fe}(Et||{}),Xt=function(Fe){return Fe.ASCENDING="asc",Fe.DESCENDING="desc",Fe}(Xt||{});const de=["asc","desc"],ae=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"blockheight",sortOrder:Xt.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"msatoshi_to_us",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:j,sortBy:"state",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"expiry",sortOrder:Xt.DESCENDING,columnSelectionSM:["amount_msat","direction","expiry"],columnSelection:["amount_msat","direction","expiry","state"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:j,sortBy:"channel_opening_fee",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"created_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:j,sortBy:"expires_at",sortOrder:Xt.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:j,sortBy:"offer_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:j,sortBy:"lastUpdatedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"total_fee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:j,sortBy:"received_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:j,sortBy:"msatoshi",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]}],me={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount_msat",label:"Amount (Sats)"},{column:"direction"},{column:"id",label:"HTLC ID"},{column:"state"},{column:"expiry"},{column:"payment_hash"},{column:"local_trimmed"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"issuer"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}}},Le=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:j,sortBy:"time_stamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:j,sortBy:"tx_id",sortOrder:Xt.DESCENDING,columnSelectionSM:["output","amount_sat"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:j,sortBy:"balancedness",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","local_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","blocks_til_maturity","limbo_balance"],columnSelection:["remote_alias","blocks_til_maturity","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:j,sortBy:"close_type",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:j,sortBy:"incoming",sortOrder:Xt.ASCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:j,sortBy:"creation_date",sortOrder:Xt.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"total_amount",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:j,sortBy:"remote_alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:j,sortBy:"hop_sequence",sortOrder:Xt.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:j,sortBy:"initiation_time",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:j,sortBy:"status",sortOrder:Xt.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],et={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},tn=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:j,sortBy:"alias",sortOrder:Xt.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:j,sortBy:"firstPartTimestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:j,sortBy:"receivedAt",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:j,sortBy:"totalFee",sortOrder:Xt.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:j,sortBy:"timestamp",sortOrder:Xt.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:j,sortBy:"date",sortOrder:Xt.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],Vt={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isInitiator",label:"Initiator"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}},hn_DKK="\n \n \n \n ",En=[{id:"USD",name:"United States Dollar",iconType:"FA",symbol:p.Vpi},{id:"ARS",name:"Argentina Peso",iconType:"FA",symbol:p.Vpi},{id:"AUD",name:"Australia Dollar",iconType:"FA",symbol:p.Vpi},{id:"BRL",name:"Brazil Real",iconType:"FA",symbol:p.Tq9},{id:"CAD",name:"Canada Dollar",iconType:"FA",symbol:p.Vpi},{id:"CHF",name:"Switzerland Franc",iconType:"FA",symbol:p.zjW},{id:"CLP",name:"Chile Peso",iconType:"FA",symbol:p.Vpi},{id:"CNY",name:"China Yuan Renminbi",iconType:"FA",symbol:p.zPk},{id:"CZK",name:"Czech Republic Koruna",iconType:"SVG",symbol:"\n \n \n \n \n \n \n \n ",class:"currency-icon-x-large"},{id:"DKK",name:"Denmark Krone",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"EUR",name:"Euro Member Countries",iconType:"FA",symbol:p.s5m},{id:"GBP",name:"United Kingdom Pound",iconType:"FA",symbol:p.vfE},{id:"HKD",name:"Hong Kong Dollar",iconType:"FA",symbol:p.Vpi},{id:"HRK",name:"Croatia Kuna",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/15766/croatia-kuna-currency-symbol --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"HUF",name:"Hungary Forint",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/183602/forint-business-and-finance --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"},{id:"INR",name:"India Rupee",iconType:"FA",symbol:p.FYJ},{id:"ISK",name:"Iceland Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"JPY",name:"Japan Yen",iconType:"FA",symbol:p.zPk},{id:"KRW",name:"Korea (South) Won",iconType:"FA",symbol:p.JKM},{id:"NZD",name:"New Zealand Dollar",iconType:"FA",symbol:p.Vpi},{id:"PLN",name:"Poland Zloty",iconType:"SVG",symbol:"\n \n \n \n \n \n \n ",class:"currency-icon-large"},{id:"RON",name:"Romania Leu",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/64526/romania-lei-currency --\x3e\n \n \n \n \n \n ',class:"currency-icon-medium"},{id:"RUB",name:"Russia Ruble",iconType:"FA",symbol:p.f6_},{id:"SEK",name:"Sweden Krona",iconType:"SVG",symbol:hn_DKK,class:"currency-icon-medium"},{id:"SGD",name:"Singapore Dollar",iconType:"FA",symbol:p.Vpi},{id:"THB",name:"Thailand Baht",iconType:"FA",symbol:p.Kcb},{id:"TRY",name:"Turkey Lira",iconType:"FA",symbol:p.hb3},{id:"TWD",name:"Taiwan New Dollar",iconType:"SVG",symbol:'\n \n \x3c!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n \x3c!-- License: CC0. Made by SVG Repo: https://www.svgrepo.com/svg/142061/new-taiwan-dollar --\x3e\n \n \n \n \n \n \n ',class:"currency-icon-small"}];function _n(Fe){const Pe=En.find(Ue=>Ue.id===Fe);return"SVG"===Pe.iconType&&"string"==typeof Pe.symbol&&(Pe.symbol=Pe.symbol.replace('ye});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(61594),h=l(96354),d=l(31397),w=l(56977),f=l(53993),F=l(4416),M=l(12462),K=l(11771),j=l(190),Z=l(63536),ee=l(59584),V=l(2615),Q=l(59640),$=l(98570),ie=l(95416),_e=l(72200);let ye=(()=>{var se;class pe{constructor(L,t,s,m,u){this.httpClient=L,this.store=t,this.logger=s,this.snackBar=m,this.titleCasePipe=u,this.APIUrl=F.H$,this.lnImplementation="",this.lnImplementationUpdated=new p.t(null),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B],this.mapAliases=(_,T)=>(_&&_.length>0?_.forEach((P,C)=>{if(T&&T.length>0)for(let a=0;a{let m;return this.store.dispatch((0,K.mt)({payload:F.MZ.DECODE_PAYMENT})),m="cln"===s?this.httpClient.post(this.APIUrl+"/"+s+F.rl.UTILITY_API+"/decode",{string:L},{headers:{"Content-Type":"application/json"}}):this.httpClient.get(this.APIUrl+"/"+s+F.rl.PAYMENTS_API+"/decode/"+L),m.pipe((0,w.Q)(this.unSubs[0]),(0,h.T)(u=>(this.store.dispatch((0,K.y0)({payload:F.MZ.DECODE_PAYMENT})),u)),(0,e.W)(u=>(t?this.handleErrorWithoutAlert("Decode Payment",F.MZ.DECODE_PAYMENT,u):this.handleErrorWithAlert("decodePaymentData",F.MZ.DECODE_PAYMENT,"Decode Payment Failed",this.APIUrl+"/"+s+("cln"===s?F.rl.UTILITY_API+"/decode":F.rl.PAYMENTS_API+"/decode/"+L),u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}decodePayments(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s="",m="",u=null;return"ecl"===t?(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API+"/getsentinfos",u={payments:L},m=F.MZ.GET_SENT_PAYMENTS):"cln"===t?(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/decode",u={string:L},m=F.MZ.DECODE_PAYMENTS):(s=this.APIUrl+"/"+t+F.rl.PAYMENTS_API,u={payments:L},m=F.MZ.DECODE_PAYMENTS),this.store.dispatch((0,K.mt)({payload:m})),this.httpClient.post(s,u).pipe((0,w.Q)(this.unSubs[1]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:m})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("decodePaymentsData",m,m+" Failed",s,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}getAliasesFromPubkeys(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{if(t){const m=(new i.Nl).set("pubkeys",L);return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/nodes",{params:m})}return this.httpClient.get(this.APIUrl+"/"+s+F.rl.NETWORK_API+"/node/"+L)}))}signMessage(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>{let s=this.APIUrl+"/"+t+F.rl.MESSAGE_API+"/sign";return"cln"===t&&(s=this.APIUrl+"/"+t+F.rl.UTILITY_API+"/sign"),this.store.dispatch((0,K.mt)({payload:F.MZ.SIGN_MESSAGE})),this.httpClient.post(s,{message:L}).pipe((0,w.Q)(this.unSubs[2]),(0,h.T)(m=>(this.store.dispatch((0,K.y0)({payload:F.MZ.SIGN_MESSAGE})),m)),(0,e.W)(m=>(this.handleErrorWithAlert("signMessageData",F.MZ.SIGN_MESSAGE,"Sign Message Failed",s,m),(0,o.$)(()=>new Error(this.extractErrorMessage(m))))))}))}verifyMessage(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{let m="",u=null;return"cln"===s?(m=this.APIUrl+"/"+s+F.rl.UTILITY_API+"/verify",u={message:L,zbase:t}):(m=this.APIUrl+"/"+s+F.rl.MESSAGE_API+"/verify",u={message:L,signature:t}),this.store.dispatch((0,K.mt)({payload:F.MZ.VERIFY_MESSAGE})),this.httpClient.post(m,u).pipe((0,w.Q)(this.unSubs[3]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.VERIFY_MESSAGE})),_)),(0,e.W)(_=>(this.handleErrorWithAlert("verifyMessageData",F.MZ.VERIFY_MESSAGE,"Verify Message Failed",m,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}bumpFee(L,t,s,m){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(u=>{const _={txid:L,outputIndex:t};return s&&(_.targetConf=s),m&&(_.satPerVByte=m),this.store.dispatch((0,K.mt)({payload:F.MZ.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+u+F.rl.WALLET_API+"/bumpfee",_).pipe((0,w.Q)(this.unSubs[4]),(0,h.T)(T=>(this.store.dispatch((0,K.y0)({payload:F.MZ.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,e.W)(T=>(this.handleErrorWithoutAlert("Bump Fee",F.MZ.BUMP_FEE,T),(0,o.$)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(L,t,s=!0){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(m=>{const u={txid:L,label:t,overwrite:s};return this.store.dispatch((0,K.mt)({payload:F.MZ.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+m+F.rl.WALLET_API+"/label",u).pipe((0,w.Q)(this.unSubs[5]),(0,h.T)(_=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LABEL_UTXO})),_)),(0,e.W)(_=>(this.handleErrorWithoutAlert("Label UTXO",F.MZ.LABEL_UTXO,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}))}leaseUTXO(L,t){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(s=>{const m={txid:L,outputIndex:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+s+F.rl.WALLET_API+"/lease",m).pipe((0,w.Q)(this.unSubs[6]),(0,h.T)(u=>{this.store.dispatch((0,K.y0)({payload:F.MZ.LEASE_UTXO})),this.store.dispatch((0,j.mh)()),this.store.dispatch((0,j.SM)());const _=new Date(1e3*u.expiration);return Math.round(_.getTime())-60*_.getTimezoneOffset()}),(0,e.W)(u=>(this.handleErrorWithoutAlert("Lease UTXO",F.MZ.LEASE_UTXO,u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))}))}getForwardingHistory(L,t,s,m){if("LND"===L){const u={end_time:s,start_time:t};return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+F.rl.SWITCH_API,u).pipe((0,w.Q)(this.unSubs[7]),(0,f.E)(this.store.select(Z.eO)),(0,d.Z)(([_,T])=>{if(_.forwarding_events){const P=[...T.channels,...T.closedChannels];_.forwarding_events.forEach(C=>{if(P&&P.length>0)for(let a=0;a(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+F.rl.SWITCH_API,_),(0,o.$)(()=>new Error(this.extractErrorMessage(_))))))}return"CLN"===L?(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",{status:m||"settled"}).pipe((0,w.Q)(this.unSubs[8]),(0,f.E)(this.store.select(ee.BM)),(0,d.Z)(([u,_])=>{const T=this.mapAliases(u,[..._.activeChannels,..._.pendingChannels,..._.inactiveChannels]);return this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FORWARDING_HISTORY})),(0,D.of)(T)}),(0,e.W)(u=>(this.handleErrorWithAlert("getForwardingHistoryData",F.MZ.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+F.rl.CHANNELS_API+"/listForwards",u),(0,o.$)(()=>new Error(this.extractErrorMessage(u))))))):(0,D.of)({})}listNetworkNodes(L){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(t=>(this.store.dispatch((0,K.mt)({payload:F.MZ.LIST_NETWORK_NODES})),this.httpClient.post(this.APIUrl+"/"+t+F.rl.NETWORK_API+"/listNodes",L).pipe((0,w.Q)(this.unSubs[9]),(0,d.Z)(s=>(this.store.dispatch((0,K.y0)({payload:F.MZ.LIST_NETWORK_NODES})),(0,D.of)(s))),(0,e.W)(s=>(this.handleErrorWithoutAlert("List Network Nodes",F.MZ.LIST_NETWORK_NODES,s),(0,o.$)(()=>this.extractErrorMessage(s))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(L=>(this.store.dispatch((0,K.mt)({payload:F.MZ.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+L+F.rl.UTILITY_API+"/listConfigs").pipe((0,w.Q)(this.unSubs[10]),(0,d.Z)(t=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_LIST_CONFIGS})),(0,D.of)(t))),(0,e.W)(t=>(this.handleErrorWithoutAlert("List Configurations",F.MZ.GET_LIST_CONFIGS,t),(0,o.$)(()=>this.extractErrorMessage(t))))))))}getOrUpdateFunderPolicy(L,t,s,m,u,_){return this.lnImplementationUpdated.pipe((0,A.$)(),(0,d.Z)(T=>{const P=L?{policy:L,policy_mod:t,lease_fee_base_msat:s,lease_fee_basis:m,channel_fee_max_base_msat:u,channel_fee_max_proportional_thousandths:_}:null;return this.store.dispatch((0,K.mt)({payload:F.MZ.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+F.rl.CHANNELS_API+"/funderUpdate",P).pipe((0,w.Q)(this.unSubs[11]),(0,h.T)(C=>(this.store.dispatch((0,K.y0)({payload:F.MZ.GET_FUNDER_POLICY})),P&&this.store.dispatch((0,K.UI)({payload:"Funder Policy Updated Successfully with Compact Lease: "+C.compact_lease+"!"})),C)),(0,e.W)(C=>(this.handleErrorWithoutAlert("Funder Policy",F.MZ.GET_FUNDER_POLICY,C),(0,o.$)(()=>new Error(this.extractErrorMessage(C))))))}))}circularRebalance(L,t="",s="",m="",u="",_=[],T="shortChannelId"){return this.httpClient.post(this.APIUrl+"/"+this.lnImplementation+F.rl.CHANNELS_API+"/circularRebalance",{amountMsat:L,sourceShortChannelId:t,sourceNodeId:s,targetShortChannelId:m,targetNodeId:u,ignoreNodeIds:_,format:T}).pipe((0,w.Q)(this.unSubs[12]),(0,h.T)(a=>a),(0,e.W)(a=>(this.handleErrorWithoutAlert("Rebalance Channel",F.MZ.REBALANCE_CHANNEL,a),(0,o.$)(()=>a.error))))}extractErrorMessage(L,t="Unknown Error."){return this.titleCasePipe.transform(L.error.text&&"string"==typeof L.error.text&&L.error.text.includes('')?"API Route Does Not Exist.":L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.error&&"string"==typeof L.error.error.error.error.error?L.error.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&"string"==typeof L.error.error.error.error?L.error.error.error.error:L.error&&L.error.error&&L.error.error.error&&"string"==typeof L.error.error.error?L.error.error.error:L.error&&L.error.error&&"string"==typeof L.error.error?L.error.error:L.error&&"string"==typeof L.error?L.error:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.error&&L.error.error.error.error.message&&"string"==typeof L.error.error.error.error.message?L.error.error.error.error.message:L.error&&L.error.error&&L.error.error.error&&L.error.error.error.message&&"string"==typeof L.error.error.error.message?L.error.error.error.message:L.error&&L.error.error&&L.error.error.message&&"string"==typeof L.error.error.message?L.error.error.message:L.error&&L.error.message&&"string"==typeof L.error.message?L.error.message:L.message&&"string"==typeof L.message?L.message:t)}handleErrorWithoutAlert(L,t,s){s.error.text&&"string"==typeof s.error.text&&s.error.text.includes('')&&(s={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+L+"\n"+JSON.stringify(s)),401===s.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(s.error)}))):(this.store.dispatch((0,K.y0)({payload:t})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:s.status.toString(),message:this.extractErrorMessage(s)}})))}handleErrorWithAlert(L,t,s,m,u){if(this.logger.error(u),401===u.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,K.Jh)()),this.store.dispatch((0,K.ri)({payload:"Authentication Failed: "+JSON.stringify(u.error)}));else{this.store.dispatch((0,K.y0)({payload:t}));const _=this.extractErrorMessage(u);this.store.dispatch((0,K.xO)({payload:{data:{type:"ERROR",alertTitle:s,message:{code:u.status?u.status:"Unknown Error",message:_,URL:m},component:M.f}}})),this.store.dispatch((0,K.Gd)({payload:{action:L,status:F.wn.ERROR,statusCode:u.status.toString(),message:_,URL:m}}))}}ngOnDestroy(){this.unSubs.forEach(L=>{L.next(null),L.complete()})}static#e=se=()=>(this.\u0275fac=function(t){return new(t||pe)(V.KVO(i.Qq),V.KVO(Q.il),V.KVO($.gP),V.KVO(ie.UG),V.KVO(_e.PV))},this.\u0275prov=V.jDH({token:pe,factory:pe.\u0275fac}))}return se(),pe})()},98570(ke,q,l){"use strict";l.d(q,{gP:()=>e,tU:()=>A});var i=l(17705),g=l(2615);const p=(0,i.naY)(),D=()=>null;let e=(()=>{var h;class d{invokeConsoleMethod(f,F){}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})(),A=(()=>{var h;class d{get info(){return p?console.log.bind(console):D}get warn(){return p?console.warn.bind(console):D}get error(){return p?console.error.bind(console):D}invokeConsoleMethod(f,F){(console[f]||console.log||D).apply(console,[F])}static#e=h=()=>(this.\u0275fac=function(F){return new(F||d)},this.\u0275prov=g.jDH({token:d,factory:d.\u0275fac}))}return h(),d})()},4104(ke,q,l){"use strict";l.d(q,{Q:()=>Z});var i=l(29330),g=l(21413),p=l(84412),D=l(7673),o=l(18810),e=l(99437),A=l(96354),h=l(56977),d=l(4416),w=l(12462),f=l(11771),F=l(2615),M=l(98570),K=l(59640),j=l(82571);let Z=(()=>{var ee;class V{constructor($,ie,_e,ye){this.httpClient=$,this.logger=ie,this.store=_e,this.commonService=ye,this.loopUrl="",this.swaps=[],this.swapsChanged=new p.t([]),this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}getLoopInfo(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/info",this.httpClient.get(this.loopUrl)}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,f.mt)({payload:d.MZ.GET_LOOP_SWAPS})),this.loopUrl=d.H$+d.rl.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,h.Q)(this.unSubs[0])).subscribe({next:$=>{this.store.dispatch((0,f.y0)({payload:d.MZ.GET_LOOP_SWAPS})),this.swaps=$,this.swapsChanged.next(this.swaps)},error:$=>this.swapsChanged.error(this.handleErrorWithAlert(d.MZ.GET_LOOP_SWAPS,this.loopUrl,$))})}loopOut($,ie,_e,ye,se,pe,Ee,L,t,s){const m={amount:$,targetConf:_e,swapRoutingFee:ye,minerFee:se,prepayRoutingFee:pe,prepayAmt:Ee,swapFee:L,swapPublicationDeadline:t,destAddress:s};return""!==ie&&(m.chanId=ie),this.loopUrl=d.H$+d.rl.LOOP_API+"/out",this.httpClient.post(this.loopUrl,m).pipe((0,e.W)(u=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ie,d.MZ.NO_SPINNER,u)))}getLoopOutTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop Out Terms",d.MZ.NO_SPINNER,$)))}getLoopOutQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[1]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop Out Quote",d.MZ.GET_QUOTE,se)))}getLoopOutTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[2]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}loopIn($,ie,_e,ye,se){const pe={amount:$,swapFee:ie,minerFee:_e,lastHop:ye,externalHtlc:se};return this.loopUrl=d.H$+d.rl.LOOP_API+"/in",this.httpClient.post(this.loopUrl,pe).pipe((0,e.W)(Ee=>this.handleErrorWithoutAlert("Loop In",d.MZ.NO_SPINNER,Ee)))}getLoopInTerms(){return this.loopUrl=d.H$+d.rl.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,e.W)($=>this.handleErrorWithoutAlert("Loop In Terms",d.MZ.NO_SPINNER,$)))}getLoopInQuote($,ie,_e){let ye=new i.Nl;return ye=ye.append("targetConf",ie.toString()),ye=ye.append("swapPublicationDeadline",_e.toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/quote/"+$,this.store.dispatch((0,f.mt)({payload:d.MZ.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:ye}).pipe((0,h.Q)(this.unSubs[3]),(0,A.T)(se=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_QUOTE})),se)),(0,e.W)(se=>this.handleErrorWithoutAlert("Loop In Qoute",d.MZ.GET_QUOTE,se)))}getLoopInTermsAndQuotes($){let ie=new i.Nl;return ie=ie.append("targetConf",$.toString()),ie=ie.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=d.H$+d.rl.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,f.mt)({payload:d.MZ.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ie}).pipe((0,h.Q)(this.unSubs[4]),(0,A.T)(_e=>(this.store.dispatch((0,f.y0)({payload:d.MZ.GET_TERMS_QUOTES})),_e)),(0,e.W)(_e=>(0,D.of)(this.handleErrorWithAlert(d.MZ.GET_TERMS_QUOTES,this.loopUrl,_e))))}getSwap($){return this.loopUrl=d.H$+d.rl.LOOP_API+"/swap/"+$,this.httpClient.get(this.loopUrl).pipe((0,e.W)(ie=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+$,d.MZ.NO_SPINNER,ie)))}handleErrorWithoutAlert($,ie,_e){let ye="";return this.logger.error("ERROR IN: "+$+"\n"+JSON.stringify(_e)),this.store.dispatch((0,f.y0)({payload:ie})),401===_e.status?(ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}))):503===_e.status?(ye="Unable to Connect to Loop Server.",this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:$},component:w.f}}}))):ye=this.commonService.extractErrorMessage(_e),(0,o.$)(()=>new Error(ye))}handleErrorWithAlert($,ie,_e){let ye="";if(this.logger.error(_e),this.store.dispatch((0,f.y0)({payload:$})),401===_e.status)ye="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,f.ri)({payload:ye}));else if(503===_e.status)ye="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:_e.status,message:"Unable to Connect to Loop Server",URL:ie},component:w.f}}}))},100);else{ye=this.commonService.extractErrorMessage(_e);const se=_e.error&&_e.error.error&&_e.error.error.code?_e.error.error.code:_e.error&&_e.error.code?_e.error.code:_e.code?_e.code:_e.status;setTimeout(()=>{this.store.dispatch((0,f.xO)({payload:{data:{type:d.A$.ERROR,alertTitle:"ERROR",message:{code:se,message:ye,URL:ie},component:w.f}}}))},100)}return{message:ye}}ngOnDestroy(){this.unSubs.forEach($=>{$.next(null),$.complete()})}static#e=ee=()=>(this.\u0275fac=function(ie){return new(ie||V)(F.KVO(i.Qq),F.KVO(M.gP),F.KVO(K.il),F.KVO(j.h))},this.\u0275prov=F.jDH({token:V,factory:V.\u0275fac}))}return ee(),V})()},53202(ke,q,l){"use strict";l.d(q,{Q:()=>p});var i=l(21413),g=l(2615);let p=(()=>{var D;class o{constructor(){this.sessionSub=new i.B}watchSession(){return this.sessionSub.asObservable()}getItem(A){return sessionStorage.getItem(A)}getAllItems(){return sessionStorage}setItem(A,h){sessionStorage.setItem(A,h),this.sessionSub.next(sessionStorage)}removeItem(A){sessionStorage.removeItem(A),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}static#e=D=()=>(this.\u0275fac=function(h){return new(h||o)},this.\u0275prov=g.jDH({token:o,factory:o.\u0275fac}))}return D(),o})()},7879(ke,q,l){"use strict";l.d(q,{I:()=>K});var i=l(84412),g=l(21413),p=l(56977),D=l(47707),o=l(71985),e=l(18359),A=l(92771);const h={url:"",deserializer:j=>JSON.parse(j.data),serializer:j=>JSON.stringify(j)};class w extends g.k{constructor(Z,ee){if(super(),this._socket=null,Z instanceof o.c)this.destination=ee,this.source=Z;else{const V=this._config=Object.assign({},h);if(this._output=new g.B,"string"==typeof Z)V.url=Z;else for(const Q in Z)Z.hasOwnProperty(Q)&&(V[Q]=Z[Q]);if(!V.WebSocketCtor&&WebSocket)V.WebSocketCtor=WebSocket;else if(!V.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new A.m}}lift(Z){const ee=new w(this._config,this.destination);return ee.operator=Z,ee.source=this,ee}_resetState(){this._socket=null,this.source||(this.destination=new A.m),this._output=new g.B}multiplex(Z,ee,V){const Q=this;return new o.c($=>{try{Q.next(Z())}catch(_e){$.error(_e)}const ie=Q.subscribe({next:_e=>{try{V(_e)&&$.next(_e)}catch(ye){$.error(ye)}},error:_e=>$.error(_e),complete:()=>$.complete()});return()=>{try{Q.next(ee())}catch(_e){$.error(_e)}ie.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:Z,protocol:ee,url:V,binaryType:Q}=this._config,$=this._output;let ie=null;try{ie=ee?new Z(V,ee):new Z(V),this._socket=ie,Q&&(this._socket.binaryType=Q)}catch(ye){return void $.error(ye)}const _e=new e.yU(()=>{this._socket=null,ie&&1===ie.readyState&&ie.close()});ie.onopen=ye=>{const{_socket:se}=this;if(!se)return ie.close(),void this._resetState();const{openObserver:pe}=this._config;pe&&pe.next(ye);const Ee=this.destination;this.destination=D.vU.create(L=>{if(1===ie.readyState)try{const{serializer:t}=this._config;ie.send(t(L))}catch(t){this.destination.error(t)}},L=>{const{closingObserver:t}=this._config;t&&t.next(void 0),L&&L.code?ie.close(L.code,L.reason):$.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:L}=this._config;L&&L.next(void 0),ie.close(),this._resetState()}),Ee&&Ee instanceof A.m&&_e.add(Ee.subscribe(this.destination))},ie.onerror=ye=>{this._resetState(),$.error(ye)},ie.onclose=ye=>{ie===this._socket&&this._resetState();const{closeObserver:se}=this._config;se&&se.next(ye),ye.wasClean?$.complete():$.error(ye)},ie.onmessage=ye=>{try{const{deserializer:se}=this._config;$.next(se(ye))}catch(se){$.error(se)}}}_subscribe(Z){const{source:ee}=this;return ee?ee.subscribe(Z):(this._socket||this._connectSocket(),this._output.subscribe(Z),Z.add(()=>{const{_socket:V}=this;0===this._output.observers.length&&(V&&(1===V.readyState||0===V.readyState)&&V.close(),this._resetState())}),Z)}unsubscribe(){const{_socket:Z}=this;Z&&(1===Z.readyState||0===Z.readyState)&&Z.close(),this._resetState(),super.unsubscribe()}}var f=l(2615),F=l(98570),M=l(53202);let K=(()=>{var j;class Z{constructor(V,Q){this.logger=V,this.sessionService=Q,this.clWSMessages=new i.t(null),this.eclWSMessages=new i.t(null),this.lndWSMessages=new i.t(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B,new g.B]}connectWebSocket(V,Q){(!this.socket||this.socket.closed)&&(this.wsUrl=V,this.nodeIndex=Q,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new w({url:V,protocol:[this.sessionService.getItem("token")||"",Q]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){this.socket?.pipe((0,p.Q)(this.unSubs[1])).subscribe({next:V=>{if((V="string"==typeof V?JSON.parse(V):V).error)this.handleError(V.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(V)),V.source){case"LND":this.lndWSMessages.next(V);break;case"CLN":this.clWSMessages.next(V);break;case"ECL":this.eclWSMessages.next(V)}},error:V=>this.handleError(V),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(V){this.logger.error(V),this.clWSMessages.error(V),this.eclWSMessages.error(V),this.lndWSMessages.error(V),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)(f.KVO(F.gP),f.KVO(M.Q))},this.\u0275prov=f.jDH({token:Z,factory:Z.\u0275fac}))}return j(),Z})()},19029(ke,q,l){"use strict";l.d(q,{G:()=>Er});var i=l(72200),g=l(38132),p=l(89417),D=l(20060),o=l(99327),e=l(3),A=l(19945),h=l(51585),d=l(22628),w=l(1975),f=l(88834),F=l(89726),M=l(76838),V=(l(61577),l(83869),l(67336),l(10438),l(88968)),Q=l(73664),$=l(2615),ie=l(17705),_e=l(12496),ye=l(63386),se=l(31804),pe=l(32046),Ee=l(22466),L=l(26881);const t=["button"],s=["*"];function m(Kt,Vn){if(1&Kt&&(Q.j41(0,"div",2),Q.nrm(1,"mat-pseudo-checkbox",6),Q.k0s()),2&Kt){const _t=Q.XpG();Q.R7$(),Q.Y8G("disabled",_t.disabled)}}const u=new $.nKC("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:function _(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}}),T=new $.nKC("MatButtonToggleGroup");class C{source;value;constructor(Vn,_t){this.source=Vn,this.value=_t}}let x=(()=>{class Kt{_changeDetectorRef=(0,$.WQX)(ie.gRc);_elementRef=(0,$.WQX)(Q.aKT);_focusMonitor=(0,$.WQX)(M.FN);_idGenerator=(0,$.WQX)(F.g);_animationDisabled=(0,se.Rc)();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(_t){this._tabIndex.set(_t)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(_t){this._appearance=_t}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(_t){_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(_t){this._disabled=_t}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||null!==this.buttonToggleGroup&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(_t){this._disabledInteractive=_t}_disabledInteractive;change=new Q.bkB;constructor(){(0,$.WQX)(V.l).load(pe.A);const _t=(0,$.WQX)(T,{optional:!0}),xn=(0,$.WQX)(new ie.ES_("tabindex"),{optional:!0})||"",Bn=(0,$.WQX)(u,{optional:!0});this._tabIndex=(0,$.vPA)(parseInt(xn)||0),this.buttonToggleGroup=_t,this.appearance=Bn&&Bn.appearance?Bn.appearance:"standard",this.disabledInteractive=Bn?.disabledInteractive??!1}ngOnInit(){const _t=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),_t&&(_t._isPrechecked(this)?this.checked=!0:_t._isSelected(this)!==this._checked&&_t._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){const _t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),_t&&_t._isSelected(this)&&_t._syncButtonToggle(this,!1,!1,!0)}focus(_t){this._buttonElement.nativeElement.focus(_t)}_onButtonClick(){if(this.disabled)return;const _t=!!this.isSingleSelector()||!this._checked;if(_t!==this._checked&&(this._checked=_t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){const xn=this.buttonToggleGroup._buttonToggles.find(Bn=>0===Bn.tabIndex);xn&&(xn.tabIndex=-1),this.tabIndex=0}this.change.emit(new C(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(xn){return new(xn||Kt)};static \u0275cmp=Q.VBU({type:Kt,selectors:[["mat-button-toggle"]],viewQuery:function(xn,Bn){if(1&xn&&Q.GBs(t,5),2&xn){let wi;Q.mGM(wi=Q.lsd())&&(Bn._buttonElement=wi.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(xn,Bn){1&xn&&Q.bIt("focus",function(){return Bn.focus()}),2&xn&&(Q.BMQ("aria-label",null)("aria-labelledby",null)("id",Bn.id)("name",null),Q.AVh("mat-button-toggle-standalone",!Bn.buttonToggleGroup)("mat-button-toggle-checked",Bn.checked)("mat-button-toggle-disabled",Bn.disabled)("mat-button-toggle-disabled-interactive",Bn.disabledInteractive)("mat-button-toggle-appearance-standard","standard"===Bn.appearance))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",ie.L39],appearance:"appearance",checked:[2,"checked","checked",ie.L39],disabled:[2,"disabled","disabled",ie.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ie.L39]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:s,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(xn,Bn){if(1&xn){const wi=Q.RV6();Q.NAR(),Q.j41(0,"button",1,0),Q.bIt("click",function(){return $.eBV(wi),$.Njj(Bn._onButtonClick())}),Q.nVh(2,m,2,1,"div",2),Q.j41(3,"span",3),Q.SdG(4),Q.k0s()(),Q.nrm(5,"span",4)(6,"span",5)}if(2&xn){const wi=Q.sdS(1);Q.Y8G("id",Bn.buttonId)("disabled",Bn.disabled&&!Bn.disabledInteractive||null),Q.BMQ("role",Bn.isSingleSelector()?"radio":"button")("tabindex",Bn.disabled&&!Bn.disabledInteractive?-1:Bn.tabIndex)("aria-pressed",Bn.isSingleSelector()?null:Bn.checked)("aria-checked",Bn.isSingleSelector()?Bn.checked:null)("name",Bn._getButtonName())("aria-label",Bn.ariaLabel)("aria-labelledby",Bn.ariaLabelledby)("aria-disabled",Bn.disabled&&Bn.disabledInteractive?"true":null),Q.R7$(2),Q.vxM(Bn.buttonToggleGroup&&(!Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideSingleSelectionIndicator||Bn.buttonToggleGroup.multiple&&!Bn.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),Q.R7$(4),Q.Y8G("matRippleTrigger",wi)("matRippleDisabled",Bn.disableRipple||Bn.disabled)}},dependencies:[_e.r6,ye.w],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}\n"],encapsulation:2,changeDetection:0})}return Kt})(),Y=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p,x,Ee.y]})}return Kt})();var R=l(25596),U=l(82765),fe=l(25084),re=l(9454),he=l(82885),Oe=l(12629),ge=l(33746),ce=l(3902),Re=l(59115),Me=l(96695),ve=l(67575),oe=l(9183),Se=l(5951),be=l(96183),nt=l(90882),$e=l(30450),dt=l(39842);l(21413);let It=(()=>{class Kt{static \u0275fac=function(xn){return new(xn||Kt)};static \u0275mod=Q.$C({type:Kt});static \u0275inj=$.G2t({imports:[Ee.y,L.p]})}return Kt})();var wn=l(95416),In=l(2042),ei=l(36013),Li=l(19295),kt=l(96850),Ot=l(55911),Ze=l(86156),Ge=l(47358),Pt=l(36471),Yt=l(29340),bn=l(16038),Zn=l(52920);l(14085);let Aa=(()=>{class Kt{}return Kt.\u0275fac=function(_t){return new(_t||Kt)},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[Yt.Ui]}),Kt})();var Ha=l(60177);let ks=(()=>{class Kt{constructor(_t,xn){(0,Ha.Vy)(xn)&&!_t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(_t,xn=[]){return{ngModule:Kt,providers:_t.serverLoaded?[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0},{provide:Yt.Ce,useValue:!0}]:[{provide:Yt.EA,useValue:{...Yt.PV,..._t}},{provide:Yt.SL,useValue:xn,multi:!0}]}}}return Kt.\u0275fac=function(_t){return new(_t||Kt)($.KVO(Yt.Ce),$.KVO(Q.Agw))},Kt.\u0275mod=Q.$C({type:Kt}),Kt.\u0275inj=$.G2t({imports:[Zn.w2,bn.Cc,Aa,Zn.w2,bn.Cc,Aa]}),Kt})();var Rs=l(51993),Nr=l(38288),Ws=l(10497),Qr=l(49338);let Es=(()=>{var Kt;class Vn extends Qr.Sf{constructor(xn,Bn){super(xn,Bn)}_createContainer(){super._createContainer(),this._containerElement&&(document.querySelector("#rtl-container")||document.body).appendChild(this._containerElement)}ngOnDestroy(){super.ngOnDestroy()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)(Q.rXU($.qQL),Q.rXU(dt.O))},this.\u0275dir=Q.FsC({type:Vn,features:[Q.Vt3]}))}return Kt(),Vn})();var ct=l(98570),pt=l(4416),Ve=l(52929),Rt=l(29330);const vn={suppressScrollX:!1,suppressScrollY:!1};let Ni=(()=>{var Kt;class Vn extends e.xW{constructor(xn){super(xn)}format(xn,Bn){if("input"===Bn){let wi=xn.getDate().toString();return wi=+wi<10?"0"+wi:wi,wi+"/"+pt.KR[xn.getMonth()].name.toUpperCase()+"/"+xn.getFullYear()}return pt.KR[xn.getMonth()].name.toUpperCase()+" "+xn.getFullYear()}static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)($.KVO(A.Ju,8))},this.\u0275prov=$.jDH({token:Vn,factory:Vn.\u0275fac}))}return Kt(),Vn})();const da={parse:{dateInput:{day:"numeric",month:"short",year:"numeric"}},display:{dateInput:"input",monthYearLabel:{month:"short",year:"numeric"},dateA11yLabel:{day:"numeric",month:"short",year:"numeric"},monthYearA11yLabel:{month:"short",year:"numeric"}}};let Er=(()=>{var Kt;class Vn{static#e=Kt=()=>(this.\u0275fac=function(Bn){return new(Bn||Vn)},this.\u0275mod=Q.$C({type:Vn}),this.\u0275inj=$.G2t({providers:[{provide:ct.gP,useClass:ct.tU},{provide:Ws.kU,useValue:vn},{provide:wn.x6,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:h.di,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog"}},{provide:A.MJ,useClass:Ni},{provide:A.de,useValue:da},{provide:Qr.Sf,useClass:Es},i.QX,i.PV,i.vh,Ve.gZ,Ve.ZE,Ve.VD,Ve.Qu],imports:[i.MD,Rt.q1,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,g.iI,Ws.U$,p.YN,p.X1,D.dX,o.RH,h.hM,f.Hl,Y,R.Hu,U.g7,re.MY,he.Fe,fe.X6,e.WX,Oe.m_,ge.fS,ce.Fg,Re.Cn,ve.PO,oe.D6,Se.Wk,Ge.jH,ks,Pt.YN,be.Ve,nt.vg,$e.mV,In.NQ,Li.tP,Ot.s5,Ze.u,w.Y,Me.Ou,ei.aP,It,kt.RI,wn._T,d.jL,Rs.dV,Nr.XK,Ws.U$]}))}return Kt(),Vn})()},11771(ke,q,l){"use strict";l.d(q,{Dz:()=>j,Fl:()=>se,Gd:()=>o,I1:()=>F,IK:()=>Q,Jh:()=>e,My:()=>D,NU:()=>V,Np:()=>_e,OP:()=>K,Qi:()=>$,R$:()=>f,T$:()=>ie,Tn:()=>ee,UI:()=>A,iD:()=>m,mt:()=>h,oz:()=>t,rc:()=>ye,ri:()=>pe,t2:()=>_,uP:()=>M,xO:()=>w,xw:()=>Ee,y0:()=>d});var i=l(59640),g=l(4416);(0,i.VP)(g.aU.VOID);const D=(0,i.VP)(g.aU.SET_API_URL_ECL,(0,i.xk)()),o=(0,i.VP)(g.aU.UPDATE_API_CALL_STATUS_ROOT,(0,i.xk)()),e=(0,i.VP)(g.aU.CLOSE_ALL_DIALOGS),A=(0,i.VP)(g.aU.OPEN_SNACK_BAR,(0,i.xk)()),h=(0,i.VP)(g.aU.OPEN_SPINNER,(0,i.xk)()),d=(0,i.VP)(g.aU.CLOSE_SPINNER,(0,i.xk)()),w=(0,i.VP)(g.aU.OPEN_ALERT,(0,i.xk)()),f=(0,i.VP)(g.aU.CLOSE_ALERT,(0,i.xk)()),F=(0,i.VP)(g.aU.OPEN_CONFIRMATION,(0,i.xk)()),M=(0,i.VP)(g.aU.CLOSE_CONFIRMATION,(0,i.xk)()),K=(0,i.VP)(g.aU.SHOW_PUBKEY),j=(0,i.VP)(g.aU.FETCH_CONFIG,(0,i.xk)()),ee=((0,i.VP)(g.aU.SHOW_CONFIG,(0,i.xk)()),(0,i.VP)(g.aU.RESET_ROOT_STORE,(0,i.xk)())),V=(0,i.VP)(g.aU.FETCH_APPLICATION_SETTINGS),Q=(0,i.VP)(g.aU.SET_APPLICATION_SETTINGS,(0,i.xk)()),$=(0,i.VP)(g.aU.SET_SELECTED_NODE,(0,i.xk)()),ie=(0,i.VP)(g.aU.UPDATE_NODE_SETTINGS,(0,i.xk)()),_e=(0,i.VP)(g.aU.SET_SELECTED_NODE_SETTINGS,(0,i.xk)()),ye=(0,i.VP)(g.aU.UPDATE_APPLICATION_SETTINGS,(0,i.xk)()),se=(0,i.VP)(g.aU.SET_NODE_DATA,(0,i.xk)()),pe=(0,i.VP)(g.aU.LOGOUT,(0,i.xk)()),Ee=(0,i.VP)(g.aU.RESET_PASSWORD,(0,i.xk)()),t=((0,i.VP)(g.aU.RESET_PASSWORD_RES,(0,i.xk)()),(0,i.VP)(g.aU.IS_AUTHORIZED,(0,i.xk)())),m=((0,i.VP)(g.aU.IS_AUTHORIZED_RES,(0,i.xk)()),(0,i.VP)(g.aU.LOGIN,(0,i.xk)())),_=((0,i.VP)(g.aU.VERIFY_TWO_FA,(0,i.xk)()),(0,i.VP)(g.aU.FETCH_FILE,(0,i.xk)()));(0,i.VP)(g.aU.SHOW_FILE,(0,i.xk)())},37541(ke,q,l){"use strict";l.d(q,{H:()=>ui});var i=l(17705),g=l(11747),p=l(21413),D=l(7673),o=l(96354),e=l(96697),A=l(53993),h=l(31397),d=l(99437),w=l(56977),f=l(4416),F=l(51585),M=l(73664),K=l(9183),j=l(52920);let Z=(()=>{var gn;class zn{constructor(Kn,ci){this.dialogRef=Kn,this.data=ci}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-spinner-dialog"]],standalone:!1,decls:4,vars:1,consts:[["fxLayout","column","fxLayoutAlign","center center",1,"spinner-container"],["color","primary","mode","indeterminate",1,"modal-spinner-message"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0),M.nrm(1,"mat-progress-spinner",1),M.j41(2,"h2"),M.EFF(3),M.k0s()()),2&ci&&(M.R7$(3),M.JRh(Xn.data.titleMessage))},dependencies:[K.LG,j.DJ,j.sA],styles:["h2[_ngcontent-%COMP%]{text-align:center}"]}))}return gn(),zn})();var ee=l(45383),V=l(79647),Q=l(2615),$=l(98570),ie=l(95416),_e=l(82571),ye=l(43694),se=l(59640),pe=l(72200),Ee=l(20060),L=l(88834),t=l(25596),s=l(12629),m=l(71997),u=l(16038),_=l(40455),T=l(38288),P=l(10497),C=l(29157),a=l(89587);const x=["scrollContainer"],Y=gn=>({"display-none":gn}),R=gn=>({"h-40":gn}),U=gn=>({"failed-status":gn});function fe(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG();M.Y8G("value",kn.showQRField)("size",200)}}function re(gn,zn){1&gn&&M.eu8(0)}function he(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",20,1),M.DNE(3,re,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(),Kn=M.sdS(20);M.R7$(),M.Y8G("ngClass",M.eq3(2,R,kn.data.scrollable)),M.R7$(2),M.Y8G("ngTemplateOutlet",Kn)}}function Oe(gn,zn){1&gn&&M.eu8(0)}function ge(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"mat-card-content",22),M.DNE(2,Oe,1,0,"ng-container",21),M.k0s(),M.bVm()),2&gn){M.XpG();const kn=M.sdS(20);M.R7$(2),M.Y8G("ngTemplateOutlet",kn)}}function ce(gn,zn){1&gn&&(M.j41(0,"mat-icon",27),M.EFF(1,"arrow_downward"),M.k0s())}function Re(gn,zn){1&gn&&(M.j41(0,"mat-icon",28),M.EFF(1,"arrow_upward"),M.k0s())}function Me(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",23)(1,"button",24),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onScroll())}),M.DNE(2,ce,2,0,"mat-icon",25)(3,Re,2,0,"mat-icon",26),M.k0s()()}if(2&gn){const kn=M.XpG();M.R7$(2),M.Y8G("ngIf","DOWN"===kn.scrollDirection),M.R7$(),M.Y8G("ngIf","UP"===kn.scrollDirection)}}function ve(gn,zn){1&gn&&(M.j41(0,"button",29),M.EFF(1,"OK"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function oe(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function Se(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showCopyField),M.R7$(),M.SpI("Copy ",kn.showCopyName)}}function be(gn,zn){1&gn&&(M.j41(0,"button",30),M.EFF(1,"Close"),M.k0s()),2&gn&&M.Y8G("mat-dialog-close",!1)}function nt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",31),M.bIt("copied",function(ci){Q.eBV(kn);const Xn=M.XpG();return Q.Njj(Xn.onCopyField(ci))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.Y8G("payload",kn.showQRField),M.R7$(),M.SpI("Copy ",kn.showQRName)}}function $e(gn,zn){if(1&gn&&M.nrm(0,"qr-code",19),2&gn){const kn=M.XpG(2);M.Y8G("value",kn.showQRField)("size",200)}}function dt(gn,zn){if(1&gn&&(M.j41(0,"p",37),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function yt(gn,zn){1&gn&&M.nrm(0,"span",51),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function Et(gn,zn){if(1&gn&&(M.qex(0),M.j41(1,"span",34),M.DNE(2,yt,1,1,"span",50),M.k0s(),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(2),M.Y8G("ngForOf",kn.value)}}function rt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function Mn(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,kn.digitsInfo?kn.digitsInfo:"1.0-3"))}}function qt(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value?"True":"False")}}function S(gn,zn){1&gn&&(M.j41(0,"mat-icon",55),M.EFF(1,"info"),M.k0s())}function Xt(gn,zn){if(1&gn&&(M.j41(0,"p",53),M.EFF(1),M.DNE(2,S,2,0,"mat-icon",54),M.k0s()),2&gn){const kn=M.XpG(3).$implicit,Kn=M.XpG(4);M.Y8G("ngClass",M.eq3(3,U,kn.value===Kn.LoopStateEnum.FAILED)),M.R7$(),M.SpI(" ",kn.value," "),M.R7$(),M.Y8G("ngIf",kn.value===Kn.LoopStateEnum.FAILED)}}function de(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"p",57),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(8);return Q.Njj(ci.onGoToLink())}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG(4).$implicit,Kn=M.XpG(4);M.Y8G("matTooltip",M.mNQ("Go To "+Kn.goToName)),M.R7$(),M.SpI(" ",kn.value," ")}}function ae(gn,zn){if(1&gn&&M.EFF(0),2&gn){const kn=M.XpG(4).$implicit;M.SpI(" ",kn.value," ")}}function me(gn,zn){if(1&gn&&M.DNE(0,de,2,3,"p",56)(1,ae,1,1,"ng-template",null,4,M.C5r),2&gn){const kn=M.sdS(2),Kn=M.XpG(3).$implicit,ci=M.XpG(4);M.Y8G("ngIf",Kn.value===ci.goToFieldValue)("ngIfElse",kn)}}function Le(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,Xt,3,5,"p",52)(2,me,3,2,"ng-template",null,3,M.C5r),M.bVm()),2&gn){const kn=M.sdS(3),Kn=M.XpG(2).$implicit,ci=M.XpG(4);M.R7$(),M.Y8G("ngIf","SWAP"===ci.data.openedBy&&"state"===Kn.key)("ngIfElse",kn)}}function et(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"fa-icon",58),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG(2).$implicit,Xn=M.XpG(4);return Q.Njj(Xn.onExplorerClicked(ci))}),M.k0s()}if(2&gn){const kn=M.XpG(6);M.Y8G("matTooltip",M.mNQ("Link to "+kn.selNode.settings.blockExplorerUrl))("icon",kn.faUpRightFromSquare)}}function tn(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",46),M.DNE(2,Et,3,1,"ng-container",47)(3,rt,3,4,"ng-container",47)(4,Mn,3,4,"ng-container",47)(5,qt,2,1,"ng-container",47)(6,Le,4,2,"ng-container",48),M.j41(7,"span"),M.DNE(8,et,1,3,"fa-icon",49),M.k0s()()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(4);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN),M.R7$(3),M.Y8G("ngIf",kn.explorerLink&&""!==kn.explorerLink)}}function Vt(gn,zn){1&gn&&(M.j41(0,"span",59),M.EFF(1,"\xa0"),M.k0s())}function hn(gn,zn){if(1&gn&&(M.j41(0,"div",42)(1,"h4",43),M.EFF(2),M.k0s(),M.DNE(3,tn,9,6,"span",44)(4,Vt,2,0,"ng-template",null,2,M.C5r),M.nrm(6,"mat-divider",45),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function En(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",40),M.DNE(2,hn,7,5,"div",41),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function _n(gn,zn){if(1&gn&&(M.j41(0,"div",38),M.DNE(1,En,3,1,"div",39),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function tt(gn,zn){if(1&gn&&(M.j41(0,"div",32)(1,"div",33),M.DNE(2,$e,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",34),M.DNE(4,dt,2,1,"p",35)(5,_n,2,1,"div",36),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngClass",M.eq3(4,Y,""===kn.showQRField||kn.screenSize!==kn.screenSizeEnum.XS&&kn.screenSize!==kn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==kn.showQRField),M.R7$(2),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(),M.Y8G("ngIf",(null==kn.messageObjs?null:kn.messageObjs.length)>0)}}let Fe=(()=>{var gn;class zn{set container(Kn){Kn&&(this.scrollContainer=Kn,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",ci=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",ci=>{this.scrollDirection="DOWN"})))}constructor(Kn,ci,Xn,aa,sa,pa,ha,dn){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.renderer=pa,this.router=ha,this.store=dn,this.faUpRightFromSquare=ee.k02,this.LoopStateEnum=f.Hx,this.goToFieldValue="",this.goToName="",this.goToLink="",this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.screenSize="",this.screenSizeEnum=f.f7,this.scrollDirection="DOWN",this.shouldScroll=!0,this.unSubs=[new p.B,new p.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.messageObjs=this.data.message||[],this.goToFieldValue=this.data.goToFieldValue?this.data.goToFieldValue:"",this.goToName=this.data.goToName?this.data.goToName:"",this.goToLink=this.data.goToLink?this.data.goToLink:"",this.showQRField=this.data.showQRField?this.data.showQRField:"",this.showQRName=this.data.showQRName?this.data.showQRName:"",this.showCopyName=this.data.showCopyName?this.data.showCopyName:"",this.showCopyField=this.data.showCopyField?this.data.showCopyField:"",this.data.type===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection"),this.logger.info(this.messageObjs),this.store.select(V._c).pipe((0,w.Q)(this.unSubs[0])).subscribe(Kn=>{this.selNode=Kn,this.logger.info(this.selNode)})}ngAfterViewChecked(){setTimeout(()=>{this.shouldScroll=this.scrollContainer&&this.scrollContainer.nativeElement&&this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")},500)}onScroll(){this.scrollContainer.nativeElement.scrollTop="DOWN"===this.scrollDirection?this.scrollContainer.nativeElement.scrollTop+62.6:this.scrollContainer.nativeElement.scrollTop-62.6}onCopyField(Kn){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+Kn)}onClose(){this.dialogRef.close(!1)}onGoToLink(){this.router.navigateByUrl(this.goToLink,{state:{lookupType:"0",lookupValue:this.goToFieldValue}}),this.onClose()}onExplorerClicked(Kn){window.open(this.selNode.settings.blockExplorerUrl+"/"+Kn.explorerLink+"/"+Kn.value,"_blank")}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd(),this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h),M.rXU(M.sFG),M.rXU(ye.Ix),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-alert-message"]],viewQuery:function(ci,Xn){if(1&ci&&M.GBs(x,5),2&ci){let aa;M.mGM(aa=M.lsd())&&(Xn.container=aa.first)}},standalone:!1,decls:21,vars:14,consts:[["contentBlock",""],["scrollContainer",""],["emptyField",""],["noStyleBlock",""],["noStyleChild",""],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","ml-1",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],[3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","start end","class","btn-sticky-container padding-gap-x-large",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["errorCorrectionLevel","L",3,"value","size"],[1,"padding-gap-x-large",3,"perfectScrollbar","ngClass"],[4,"ngTemplateOutlet"],[1,"padding-gap-x-large"],["fxLayout","row","fxLayoutAlign","start end",1,"btn-sticky-container","padding-gap-x-large"],["mat-mini-fab","","aria-label","Scroll","fxLayoutAlign","center center",3,"click"],["class","arrow-downward","fxLayoutAlign","center center",4,"ngIf"],["class","arrow-upward","fxLayoutAlign","center center",4,"ngIf"],["fxLayoutAlign","center center",1,"arrow-downward"],["fxLayoutAlign","center center",1,"arrow-upward"],["tabindex","1","autoFocus","","mat-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large","mb-1",3,"ngClass"],["fxLayout","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["fxFlex","100"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],[1,"w-100","my-1"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start stretch",1,"foreground-secondary-text",3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","ml-1 fa-icon-primary",3,"matTooltip","icon","click",4,"ngIf"],["class","display-block w-100",3,"innerHTML",4,"ngFor","ngForOf"],[1,"display-block","w-100",3,"innerHTML"],["fxLayout","row",3,"ngClass",4,"ngIf","ngIfElse"],["fxLayout","row",3,"ngClass"],["fxLayoutAlign","end end","class","icon-failed-status",4,"ngIf"],["fxLayoutAlign","end end",1,"icon-failed-status"],["fxLayout","row","class","go-to-link","tabindex","4",3,"matTooltip","click",4,"ngIf","ngIfElse"],["fxLayout","row","tabindex","4",1,"go-to-link",3,"click","matTooltip"],[1,"ml-1","fa-icon-primary",3,"click","matTooltip","icon"],["fxFlex","100",1,"foreground-secondary-text"]],template:function(ci,Xn){if(1&ci){const aa=M.RV6();M.j41(0,"div",5)(1,"div",6),M.DNE(2,fe,1,2,"qr-code",7),M.k0s(),M.j41(3,"div",8)(4,"mat-card-header",9)(5,"div",10)(6,"span",11),M.EFF(7),M.k0s()(),M.j41(8,"button",12),M.bIt("click",function(){return Q.eBV(aa),Q.Njj(Xn.onClose())}),M.EFF(9,"X"),M.k0s()(),M.DNE(10,he,4,4,"ng-container",13)(11,ge,3,1,"ng-container",13)(12,Me,4,2,"div",14),M.j41(13,"div",15),M.DNE(14,ve,2,1,"button",16)(15,oe,2,1,"button",17)(16,Se,2,2,"button",18)(17,be,2,1,"button",17)(18,nt,2,2,"button",18),M.k0s()()(),M.DNE(19,tt,6,6,"ng-template",null,0,M.C5r)}2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(12,Y,""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngClass",""===Xn.showQRField||Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM?"flex-100":"flex-70"),M.R7$(4),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(3),M.Y8G("ngIf",Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",!Xn.data.scrollable),M.R7$(),M.Y8G("ngIf",Xn.data.scrollable&&Xn.shouldScroll),M.R7$(2),M.Y8G("ngIf",(!Xn.showQRField||""===Xn.showQRField)&&""===Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showCopyName),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField),M.R7$(),M.Y8G("ngIf",""!==Xn.showQRField))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.T3,pe.ux,pe.e1,pe.fG,Ee.aY,F.tx,L.$z,L.$0,t.m2,t.MM,s.An,m.q,j.DJ,j.sA,j.UI,u.PW,_.oV,T.Um,P.Ld,C.U,a.N,pe.QX,pe.vh],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}))}return gn(),zn})();var Pe=l(11771),Ue=l(89417),Qe=l(33746),Ie=l(69588),le=l(56114);function Ne(gn,zn){if(1&gn&&(M.j41(0,"div",20),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faExclamationTriangle),M.R7$(2),M.JRh(kn.warningMessage)}}function ze(gn,zn){if(1&gn&&(M.j41(0,"div",22),M.nrm(1,"fa-icon",21),M.j41(2,"span"),M.EFF(3),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("icon",kn.faInfoCircle),M.R7$(2),M.JRh(kn.informationMessage)}}function Je(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.data.titleMessage)}}function gt(gn,zn){1&gn&&M.nrm(0,"div",37),2&gn&&M.Y8G("innerHTML",zn.$implicit,M.npT)}function zt(gn,zn){if(1&gn&&(M.qex(0,35),M.DNE(1,gt,1,1,"div",36),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.Y8G("ngForOf",kn.value)}}function Ye(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"date"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,1e3*kn.value,"dd/MMM/y HH:mm"))}}function st(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.nI1(2,"number"),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(M.i5U(2,1,kn.value,"1.0-3"))}}function it(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(!0===kn.value?"True":"False")}}function He(gn,zn){if(1&gn&&(M.qex(0),M.EFF(1),M.bVm()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.JRh(kn.value)}}function Wt(gn,zn){if(1&gn&&(M.j41(0,"span")(1,"span",31),M.DNE(2,zt,2,1,"ng-container",32)(3,Ye,3,4,"ng-container",33)(4,st,3,4,"ng-container",33)(5,it,2,1,"ng-container",33)(6,He,2,1,"ng-container",34),M.k0s()()),2&gn){const kn=M.XpG().$implicit,Kn=M.XpG(3);M.R7$(),M.Y8G("ngSwitch",kn.type),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.ARRAY),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.DATE_TIME),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.NUMBER),M.R7$(),M.Y8G("ngSwitchCase",Kn.dataTypeEnum.BOOLEAN)}}function we(gn,zn){1&gn&&(M.j41(0,"span",38),M.EFF(1,"\xa0"),M.k0s())}function We(gn,zn){if(1&gn&&(M.j41(0,"div",27)(1,"h4",28),M.EFF(2),M.k0s(),M.DNE(3,Wt,7,5,"span",29)(4,we,2,0,"ng-template",null,0,M.C5r),M.nrm(6,"mat-divider",30),M.k0s()),2&gn){const kn=zn.$implicit,Kn=M.sdS(5);M.Y8G("fxFlex.gt-md",M.mNQ(kn.width)),M.R7$(2),M.JRh(kn.title),M.R7$(),M.Y8G("ngIf",kn&&(!!kn.value||0===kn.value))("ngIfElse",Kn)}}function Lt(gn,zn){if(1&gn&&(M.j41(0,"div")(1,"div",25),M.DNE(2,We,7,5,"div",26),M.k0s()()),2&gn){const kn=zn.$implicit;M.R7$(2),M.Y8G("ngForOf",kn)}}function St(gn,zn){if(1&gn&&(M.j41(0,"div"),M.DNE(1,Lt,3,1,"div",24),M.k0s()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngForOf",kn.messageObjs)}}function At(gn,zn){if(1&gn&&(M.j41(0,"p",23),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2);M.R7$(),M.JRh(kn.data.titleMessage)}}function fn(gn,zn){if(1&gn&&(M.j41(0,"mat-error"),M.EFF(1),M.k0s()),2&gn){const kn=M.XpG(2).$implicit;M.R7$(),M.SpI("",kn.placeholder," is required.")}}function mt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"mat-form-field",42)(1,"mat-label"),M.EFF(2),M.k0s(),M.j41(3,"input",43),M.nI1(4,"lowercase"),M.mxI("ngModelChange",function(ci){Q.eBV(kn);const Xn=M.XpG().$implicit;return M.DH7(Xn.inputValue,ci)||(Xn.inputValue=ci),Q.Njj(ci)}),M.k0s(),M.DNE(5,fn,2,1,"mat-error",13),M.j41(6,"mat-hint"),M.EFF(7),M.k0s()()}if(2&gn){const kn=M.XpG(),Kn=kn.$implicit,ci=kn.index;M.Y8G("ngClass",Kn.width),M.R7$(2),M.JRh(Kn.placeholder),M.R7$(),M.Y8G("name",M.VkB("input",ci))("autoFocus",0===ci)("min",Kn.min)("step",Kn.step)("type",M.bMT(4,12,Kn.inputType))("tabindex",ci+1),M.R50("ngModel",Kn.inputValue),M.R7$(2),M.Y8G("ngIf",!Kn.inputValue),M.R7$(2),M.JRh(Kn.hintFunction?Kn.hintFunction(Kn.inputValue):Kn.hintText)}}function It(gn,zn){if(1&gn&&(M.qex(0),M.DNE(1,mt,8,14,"mat-form-field",41),M.bVm()),2&gn){const kn=zn.$implicit,Kn=M.XpG(2);M.R7$(),M.Y8G("ngIf",!kn.advancedField||Kn.showAdvanced)}}function wn(gn,zn){if(1&gn&&(M.j41(0,"div",39),M.DNE(1,At,2,1,"p",12),M.j41(2,"div",40),M.DNE(3,It,2,1,"ng-container",24),M.k0s()()),2&gn){const kn=M.XpG();M.R7$(),M.Y8G("ngIf",kn.data.titleMessage),M.R7$(2),M.Y8G("ngForOf",kn.getInputs)}}function In(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Show Advanced"),M.k0s())}function ei(gn,zn){1&gn&&(M.j41(0,"p"),M.EFF(1,"Hide Advanced"),M.k0s())}function Li(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",44),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onShowAdvanced())}),M.DNE(1,In,2,0,"p",29)(2,ei,2,0,"ng-template",null,1,M.C5r),M.k0s()}if(2&gn){const kn=M.sdS(3),Kn=M.XpG();M.R7$(),M.Y8G("ngIf",!Kn.showAdvanced)("ngIfElse",kn)}}function kt(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",45),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(ci.getInputs))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}function Ot(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"button",46),M.bIt("click",function(){Q.eBV(kn);const ci=M.XpG();return Q.Njj(ci.onClose(!0))}),M.EFF(1),M.k0s()}if(2&gn){const kn=M.XpG();M.R7$(),M.JRh(kn.yesBtnText)}}let Ze=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.store=aa,this.faInfoCircle=ee.iW_,this.faExclamationTriangle=ee.zpE,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=f.A$,this.dataTypeEnum=f.UN,this.getInputs=[{placeholder:"",inputType:f.UN.STRING,inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}ngOnInit(){this.informationMessage=this.data.informationMessage||"",this.warningMessage=this.data.warningMessage||"",this.flgShowInput=!!this.data.flgShowInput,this.getInputs=this.data.getInputs||[],this.noBtnText=this.data.noBtnText?this.data.noBtnText:"No",this.yesBtnText=this.data.yesBtnText?this.data.yesBtnText:"Yes",this.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===f.A$.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(Kn){if(Kn&&this.getInputs&&this.getInputs.some(ci=>typeof ci.inputValue>"u"))return!0;!this.showAdvanced&&Kn.length&&(Kn=Kn?.reduce((ci,Xn)=>(Xn.advancedField||ci.push(Xn),ci),[])),this.store.dispatch((0,Pe.uP)({payload:Kn}))}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(se.il))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-confirmation-message"]],standalone:!1,decls:21,vars:10,consts:[["emptyField",""],["hideAdvancedText",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","8","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","100","class","alert alert-warn",4,"ngIf"],["fxFlex","100","class","alert alert-info",4,"ngIf"],["fxLayoutAlign","start center","class","pb-1",4,"ngIf"],[4,"ngIf"],["fxLayout","column","class","bordered-box my-2 p-2",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click",4,"ngIf"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["fxFlex","100",1,"alert","alert-info"],["fxLayoutAlign","start center",1,"pb-1"],[4,"ngFor","ngForOf"],["fxLayout","row wrap","fxLayoutAlign","start center","fxLayoutAlign.gt-md","space-between start"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","100",3,"fxFlex.gt-md"],["fxLayoutAlign","start",1,"font-bold-500"],[4,"ngIf","ngIfElse"],[1,"w-100","my-1"],[1,"foreground-secondary-text",3,"ngSwitch"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],["matInput","","required","",3,"ngModelChange","name","autoFocus","min","step","type","tabindex","ngModel"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",2)(1,"div",3)(2,"mat-card-header",4)(3,"div",5)(4,"span",6),M.EFF(5),M.k0s()(),M.j41(6,"button",7),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(7,"X"),M.k0s()(),M.j41(8,"mat-card-content",8)(9,"form",9),M.DNE(10,Ne,4,2,"div",10)(11,ze,4,2,"div",11)(12,Je,2,1,"p",12)(13,St,2,1,"div",13)(14,wn,4,2,"div",14),M.j41(15,"div",15)(16,"button",16),M.bIt("click",function(){return Xn.onClose(!1)}),M.EFF(17),M.k0s(),M.DNE(18,Li,4,2,"button",17)(19,kt,2,1,"button",18)(20,Ot,2,1,"button",19),M.k0s()()()()()),2&ci&&(M.R7$(5),M.JRh(Xn.data.alertTitle||Xn.alertTypeEnum[Xn.data.type]),M.R7$(5),M.Y8G("ngIf",Xn.warningMessage&&""!==Xn.warningMessage),M.R7$(),M.Y8G("ngIf",Xn.informationMessage&&""!==Xn.informationMessage),M.R7$(),M.Y8G("ngIf",Xn.data.titleMessage&&!Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",(null==Xn.messageObjs?null:Xn.messageObjs.length)>0),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(3),M.JRh(Xn.noBtnText),M.R7$(),M.Y8G("ngIf",Xn.hasAdvanced),M.R7$(),M.Y8G("ngIf",Xn.flgShowInput),M.R7$(),M.Y8G("ngIf",!Xn.flgShowInput))},dependencies:[pe.YU,pe.Sq,pe.bT,pe.ux,pe.e1,pe.fG,Ue.qT,Ue.me,Ue.BC,Ue.cb,Ue.YS,Ue.vS,Ue.cV,Ee.aY,L.$z,t.m2,t.MM,Qe.fg,Ie.rl,Ie.nJ,Ie.MV,Ie.TL,m.q,j.DJ,j.sA,j.UI,u.PW,a.N,le.V,pe.GH,pe.QX,pe.vh],encapsulation:2}))}return gn(),zn})();var Ge=l(12462),Pt=l(96183),Yt=l(23029);const bn=gn=>({"display-none":gn});function Zn(gn,zn){if(1&gn&&(M.j41(0,"mat-option",23),M.EFF(1),M.k0s()),2&gn){const kn=zn.$implicit;M.Y8G("value",kn),M.R7$(),M.SpI(" ",kn.infoName," ")}}function oi(gn,zn){if(1&gn){const kn=M.RV6();M.j41(0,"div",13)(1,"mat-form-field",20)(2,"mat-label"),M.EFF(3,"Info Type"),M.k0s(),M.j41(4,"mat-select",21),M.mxI("valueChange",function(ci){Q.eBV(kn);const Xn=M.XpG();return M.DH7(Xn.selInfoType,ci)||(Xn.selInfoType=ci),Q.Njj(ci)}),M.DNE(5,Zn,2,2,"mat-option",22),M.k0s()()()}if(2&gn){const kn=M.XpG();M.R7$(4),M.R50("value",kn.selInfoType),M.R7$(),M.Y8G("ngForOf",kn.infoTypes)}}let Ii=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa){this.dialogRef=Kn,this.data=ci,this.logger=Xn,this.snackBar=aa,this.commonService=sa,this.faReceipt=ee.Mf0,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=f.f7}ngOnInit(){this.information=this.data.information,this.information.uris&&(1===this.information.uris.length?this.infoTypes.push({infoID:1,infoKey:"node URI",infoName:"Node URI"}):this.information.uris.length>1&&this.information.uris.forEach((Kn,ci)=>{this.infoTypes.push({infoID:ci+1,infoKey:"node URI "+(ci+1),infoName:"Node URI "+(ci+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(Kn){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+Kn)}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(M.rXU(F.CP),M.rXU(F.Vh),M.rXU($.gP),M.rXU(ie.UG),M.rXU(_e.h))},this.\u0275cmp=M.VBU({type:zn,selectors:[["rtl-show-pubkey"]],standalone:!1,decls:26,vars:20,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","30","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["errorCorrectionLevel","L",3,"value","size"],["fxFlex","100","fxFlex.gt-sm","70"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],["fxFlex","50","fxLayoutAlign","center start",1,"modal-qr-code-container","padding-gap-large",3,"ngClass"],["fxLayout","row",4,"ngIf"],["fxLayout","row"],["fxFlex","100"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["autoFocus","","mat-button","","color","primary","type","submit","rtlClipboard","",3,"copied","payload"],["fxLayout","column","fxFlex","100","fxFlex.gt-sm","40","fxLayoutAlign","start end"],[3,"valueChange","value"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(ci,Xn){1&ci&&(M.j41(0,"div",0)(1,"div",1),M.nrm(2,"qr-code",2),M.k0s(),M.j41(3,"div",3)(4,"mat-card-header",4)(5,"div",5),M.nrm(6,"fa-icon",6),M.j41(7,"span",7),M.EFF(8),M.k0s()(),M.j41(9,"button",8),M.bIt("click",function(){return Xn.onClose()}),M.EFF(10,"X"),M.k0s()(),M.j41(11,"mat-card-content",9)(12,"div",10)(13,"div",11),M.nrm(14,"qr-code",2),M.k0s(),M.DNE(15,oi,6,2,"div",12),M.j41(16,"div",13)(17,"div",14)(18,"h4",15),M.EFF(19),M.k0s(),M.j41(20,"span",16),M.EFF(21),M.k0s()()(),M.nrm(22,"mat-divider",17),M.j41(23,"div",18)(24,"button",19),M.bIt("copied",function(sa){return Xn.onCopyPubkey(sa)}),M.EFF(25),M.k0s()()()()()()),2&ci&&(M.R7$(),M.Y8G("ngClass",M.eq3(16,bn,Xn.screenSize===Xn.screenSizeEnum.XS||Xn.screenSize===Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(4),M.Y8G("icon",Xn.faReceipt),M.R7$(2),M.JRh(Xn.selInfoType.infoName),M.R7$(5),M.Y8G("ngClass",M.eq3(18,bn,Xn.screenSize!==Xn.screenSizeEnum.XS&&Xn.screenSize!==Xn.screenSizeEnum.SM)),M.R7$(),M.Y8G("value",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]))("size",Xn.qrWidth),M.R7$(),M.Y8G("ngIf",Xn.information.uris&&Xn.information.uris.length>0),M.R7$(4),M.JRh(Xn.selInfoType.infoName),M.R7$(2),M.JRh(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1]),M.R7$(3),M.Y8G("payload",M.mNQ(0===Xn.selInfoType.infoID?Xn.information.identity_pubkey:Xn.information.uris[Xn.selInfoType.infoID-1])),M.R7$(),M.SpI("Copy ",Xn.selInfoType.infoKey))},dependencies:[pe.YU,pe.Sq,pe.bT,Ee.aY,L.$z,t.m2,t.MM,Ie.rl,Ie.nJ,m.q,j.DJ,j.sA,j.UI,u.PW,Pt.VO,Yt.wT,T.Um,C.U,a.N],encapsulation:2}))}return gn(),zn})();var Ei=l(190),Nt=l(28430),nn=l(95428),en=l(29330),Nn=l(7879),jn=l(53202),Un=l(51534);let ui=(()=>{var gn;class zn{constructor(Kn,ci,Xn,aa,sa,pa,ha,dn,Ln,Jn,hi){this.actions=Kn,this.httpClient=ci,this.store=Xn,this.logger=aa,this.wsService=sa,this.sessionService=pa,this.commonService=ha,this.dataService=dn,this.dialog=Ln,this.snackBar=Jn,this.router=hi,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new p.B,new p.B],this.closeAllDialogs=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALL_DIALOGS),(0,o.T)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SNACK_BAR),(0,o.T)(Gn=>{"string"==typeof Gn.payload?this.snackBar.open(Gn.payload):this.snackBar.open(Gn.payload.message,"","ERROR"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Gn.payload.type?{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Gn.payload.duration?Gn.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_SPINNER),(0,o.T)(Gn=>{Gn.payload!==f.MZ.NO_SPINNER&&(this.dialogRef=this.dialog.open(Z,{panelClass:"spinner-dialog-panel",data:{titleMessage:Gn.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_SPINNER),(0,o.T)(Gn=>{if(Gn.payload!==f.MZ.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Gn.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Qn=>{Qn.componentInstance&&Qn.componentInstance.data&&Qn.componentInstance.data.titleMessage&&Qn.componentInstance.data.titleMessage===Gn.payload&&Qn.close()})}catch(Qn){this.logger.error(Qn)}})),{dispatch:!1}),this.openAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_ALERT),(0,o.T)(Gn=>{const Qn=JSON.parse(JSON.stringify(Gn.payload));Qn.width||(Qn.width=this.alertWidth),this.dialogRef=this.dialog.open(Gn.payload.data.component?Gn.payload.data.component:Fe,Qn)})),{dispatch:!1}),this.closeAlert=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_ALERT),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.openConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.OPEN_CONFIRMATION),(0,o.T)(Gn=>{const Qn=JSON.parse(JSON.stringify(Gn.payload));Qn.width||(Qn.width=this.confirmWidth),this.dialogRef=this.dialog.open(Ze,Qn)})),{dispatch:!1}),this.closeConfirm=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.CLOSE_CONFIRMATION),(0,e.s)(1),(0,o.T)(Gn=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Gn.payload),Gn.payload))),{dispatch:!1}),this.showNodePubkey=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_PUBKEY),(0,A.E)(this.store.select(V.N)),(0,h.Z)(([Gn,Qn])=>(this.sessionService.getItem("token")&&Qn.identity_pubkey?this.store.dispatch((0,Pe.xO)({payload:{data:{information:Qn,component:Ii}}})):this.snackBar.open("Node Pubkey does not exist."),(0,D.of)({type:f.aU.VOID}))))),this.appConfigFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_APPLICATION_SETTINGS),(0,h.Z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===f.f7.XS||this.screenSize===f.f7.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===f.f7.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="50%",this.confirmWidth="53%"),this.store.dispatch((0,Pe.mt)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API))),(0,o.T)(Gn=>{this.logger.info(Gn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.GET_RTL_CONFIG})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchRTLConfig",status:f.wn.COMPLETED}}));let Qn=null;return Gn.nodes.forEach(Bi=>{Bi.settings.currencyUnits=[...f.A0,Bi.settings?.currencyUnit?Bi.settings?.currencyUnit:""],+(Bi.index||-1)===Gn.selectedNodeIndex&&(Qn=Bi)}),Qn?(this.store.dispatch((0,Pe.Qi)({payload:{uiMessage:f.MZ.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Qn,isInitialSetup:!0}})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Gn}):{type:f.aU.VOID}}),(0,d.W)(Gn=>(this.handleErrorWithAlert("FetchRTLConfig",f.MZ.GET_RTL_CONFIG,"Fetch RTL Config Failed!",f.rl.CONF_API,Gn),(0,D.of)({type:f.aU.VOID}))))),this.updateNodeSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_NODE_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_NODE_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.INITIATED}})),Gn.payload.settings.fiatConversion||delete Gn.payload.settings.currencyUnit,delete Gn.payload.settings.currencyUnits,this.httpClient.post(f.rl.CONF_API+"/node",Gn.payload).pipe((0,o.T)(Qn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateNodeSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_NODE_SETTINGS})),Qn.settings.currencyUnits=[...f.A0,Qn.settings?.currencyUnit?Qn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Np)({payload:Qn})),{type:f.aU.OPEN_SNACK_BAR,payload:"Node settings updated successfully!"})),(0,d.W)(Qn=>(this.handleErrorWithAlert("updateNodeSettings",f.MZ.UPDATE_NODE_SETTINGS,"Update Node Settings Failed!",f.rl.CONF_API+"/node",Qn),(0,D.of)({type:f.aU.VOID})))))))),this.updateApplicationSettings=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.UPDATE_APPLICATION_SETTINGS),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.INITIATED}})),Gn.payload.config.nodes.forEach(Qn=>{delete Qn.settings.currencyUnits}),this.httpClient.post(f.rl.CONF_API+"/application",Gn.payload.config).pipe((0,o.T)(Qn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"updateApplicationSettings",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.UPDATE_APPLICATION_SETTINGS})),Gn.payload.showSnackBar&&this.store.dispatch((0,Pe.UI)({payload:Gn.payload.message})),{type:f.aU.SET_APPLICATION_SETTINGS,payload:Qn})),(0,d.W)(Qn=>(this.handleErrorWithAlert("updateApplicationSettings",f.MZ.UPDATE_APPLICATION_SETTINGS,"Update Application Settings Failed!",f.rl.CONF_API+"/application",Qn),(0,D.of)({type:f.aU.VOID})))))))),this.configFetch=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_CONFIG),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.OPEN_CONFIG_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/config/"+Gn.payload).pipe((0,o.T)(Qn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"fetchConfig",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.OPEN_CONFIG_FILE})),{type:f.aU.SHOW_CONFIG,payload:Qn})),(0,d.W)(Qn=>(this.handleErrorWithAlert("fetchConfig",f.MZ.OPEN_CONFIG_FILE,"Fetch Config Failed!",f.rl.CONF_API+"/config/"+Gn.payload,Qn),(0,D.of)({type:f.aU.VOID})))))))),this.showLnConfig=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_CONFIG),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.isAuthorized=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:Gn.payload&&""!==Gn.payload.trim()?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload&&""!==Gn.payload.trim()?Gn.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,o.T)(Qn=>(this.logger.info(Qn),this.store.dispatch((0,Pe.Gd)({payload:{action:"IsAuthorized",status:f.wn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:f.aU.IS_AUTHORIZED_RES,payload:Qn})),(0,d.W)(Qn=>(this.handleErrorWithAlert("IsAuthorized",f.MZ.NO_SPINNER,"Authorization Failed",f.rl.AUTHENTICATE_API,Qn),(0,D.of)({type:f.aU.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.IS_AUTHORIZED_RES),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1}),this.authLogin=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGIN),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Qn])=>(this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API,{authenticateWith:"disabledAuth"===Gn.payload.password?f.U1.NOAUTH:Gn.payload.password?f.U1.PASSWORD:f.U1.JWT,authenticationValue:Gn.payload.password?Gn.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Gn.payload.twoFAToken?Gn.payload.twoFAToken:""}).pipe((0,o.T)(Bi=>{this.logger.info(Bi),this.store.dispatch((0,Pe.Gd)({payload:{action:"Login",status:f.wn.COMPLETED}})),this.setLoggedInDetails(Gn.payload.defaultPassword,Bi)}),(0,d.W)(Bi=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",f.MZ.NO_SPINNER,Bi),+Qn.SSO.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"],{state:{logoutReason:Bi.error&&Bi.error.error?Bi.error.error:"Single Sign On Failed!"}}),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.VERIFY_TWO_FA),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/token",{authentication2FA:Gn.payload.token}).pipe((0,o.T)(Qn=>{this.logger.info(Qn),this.store.dispatch((0,Pe.y0)({payload:f.MZ.VERIFY_TOKEN})),this.store.dispatch((0,Pe.Gd)({payload:{action:"VerifyToken",status:f.wn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Gn.payload.authResponse)}),(0,d.W)(Qn=>(this.handleErrorWithAlert("VerifyToken",f.MZ.VERIFY_TOKEN,"Authorization Failed!",f.rl.AUTHENTICATE_API+"/token",Qn),(0,D.of)({type:f.aU.VOID}))))))),{dispatch:!1}),this.logOut=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.LOGOUT),(0,A.E)(this.store.select(V.qv)),(0,h.Z)(([Gn,Qn])=>{this.store.dispatch((0,Pe.mt)({payload:f.MZ.LOG_OUT})),Qn.SSO&&+Qn.SSO.rtlSSO&&(window.location.href=Qn.SSO.logoutRedirectLink),this.sessionService.clearAll(),this.store.dispatch((0,Pe.Fl)({payload:{}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from browser");const Bi=()=>{Qn.SSO&&+Qn.SSO.rtlSSO||(Gn.payload&&this.sessionService.setItem("logoutReason",Gn.payload),window.location.href=document.baseURI+"login")};return this.httpClient.get(f.rl.AUTHENTICATE_API+"/logout").pipe((0,o.T)(ca=>{this.logger.info(ca),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),this.logger.info("Logged out from server"),Bi()}),(0,d.W)(ca=>(this.logger.error(ca),this.store.dispatch((0,Pe.y0)({payload:f.MZ.LOG_OUT})),Bi(),(0,D.of)({type:f.aU.VOID}))))})),{dispatch:!1}),this.resetPassword=(0,g.EH)(()=>this.actions.pipe((0,w.Q)(this.unSubs[1]),(0,g.gp)(f.aU.RESET_PASSWORD),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.INITIATED}})),this.httpClient.post(f.rl.AUTHENTICATE_API+"/reset",{currPassword:Gn.payload.currPassword,newPassword:Gn.payload.newPassword}).pipe((0,w.Q)(this.unSubs[0]),(0,o.T)(Qn=>(this.logger.info(Qn),this.store.dispatch((0,Pe.Gd)({payload:{action:"ResetPassword",status:f.wn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,Pe.UI)({payload:"Password Reset Successful!"})),this.SetToken(Qn.token),{type:f.aU.RESET_PASSWORD_RES,payload:Qn.token})),(0,d.W)(Qn=>(this.handleErrorWithAlert("ResetPassword",f.MZ.NO_SPINNER,"Password Reset Failed!",f.rl.AUTHENTICATE_API+"/reset",Qn),(0,D.of)({type:f.aU.VOID})))))))),this.setSelectedNode=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SET_SELECTED_NODE),(0,h.Z)(Gn=>(this.store.dispatch((0,Pe.mt)({payload:Gn.payload.uiMessage})),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.INITIATED}})),this.httpClient.get(f.rl.CONF_API+"/updateSelNode/"+Gn.payload.currentLnNode?.index+"/"+Gn.payload.prevLnNodeIndex).pipe((0,o.T)(Qn=>(this.logger.info(Qn),this.store.dispatch((0,Pe.Gd)({payload:{action:"UpdateSelNode",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:Gn.payload.uiMessage})),this.initializeNode(Qn,Gn.payload.isInitialSetup),{type:f.aU.VOID})),(0,d.W)(Qn=>(this.handleErrorWithAlert("UpdateSelNode",Gn.payload.uiMessage,"Update Selected Node Failed!",f.rl.CONF_API+"/updateSelNode",Qn),(0,D.of)({type:f.aU.VOID})))))))),this.fetchFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.FETCH_FILE),(0,h.Z)(Gn=>{this.store.dispatch((0,Pe.mt)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.INITIATED}}));const Qn="?channel="+Gn.payload.channelPoint+(Gn.payload.path?"&path="+Gn.payload.path:"");return this.httpClient.get(f.rl.CONF_API+"/file"+Qn).pipe((0,o.T)(Bi=>(this.store.dispatch((0,Pe.Gd)({payload:{action:"FetchFile",status:f.wn.COMPLETED}})),this.store.dispatch((0,Pe.y0)({payload:f.MZ.DOWNLOAD_BACKUP_FILE})),{type:f.aU.SHOW_FILE,payload:Bi})),(0,d.W)(Bi=>(this.handleErrorWithAlert("fetchFile",f.MZ.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",f.rl.CONF_API+"/file"+Qn,{status:this.commonService.extractErrorNumber(Bi),error:{error:this.commonService.extractErrorCode(Bi)}}),(0,D.of)({type:f.aU.VOID}))))}))),this.showFile=(0,g.EH)(()=>this.actions.pipe((0,g.gp)(f.aU.SHOW_FILE),(0,o.T)(Gn=>Gn.payload)),{dispatch:!1})}initializeNode(Kn,ci){this.logger.info("Initializing node from RTL Effects.");const Xn=ci?"":"HOME";if(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clnUnlocked"),this.sessionService.removeItem("eclUnlocked"),Kn.settings.currencyUnits=[...f.A0,Kn.settings?.currencyUnit?Kn.settings?.currencyUnit:""],this.store.dispatch((0,Pe.Tn)({payload:Kn})),this.store.dispatch((0,Ei.p1)()),this.store.dispatch((0,Nt.gf)()),this.store.dispatch((0,nn.Hh)()),this.sessionService.getItem("token")){const aa=Kn.lnImplementation?Kn.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(aa);const sa=!(0,i.naY)()&&window.location.origin?window.location.origin+"/rtl/api":f.H$;switch(this.wsService.connectWebSocket(sa?.replace(/^http/,"ws")+f.rl.Web_SOCKET_API,Kn.index?Kn.index.toString():"-1"),aa){case"CLN":this.store.dispatch((0,Nt.lg)()),this.store.dispatch((0,Nt.Aw)({payload:{loadPage:Xn}}));break;case"ECL":this.store.dispatch((0,nn.lg)()),this.store.dispatch((0,nn.zR)({payload:{loadPage:Xn}}));break;default:this.store.dispatch((0,Ei.lg)()),this.store.dispatch((0,Ei.Br)({payload:{loadPage:Xn}}))}}}SetToken(Kn){Kn?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",Kn)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(Kn,ci){this.logger.info("Successfully Authorized!"),this.SetToken(ci.token),this.sessionService.setItem("defaultPassword",Kn),Kn?(this.store.dispatch((0,Pe.UI)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,Pe.NU)())}handleErrorWithoutAlert(Kn,ci,Xn){this.logger.error("ERROR IN: "+Kn+"\n"+JSON.stringify(Xn)),401===Xn.status&&"Login"!==Kn?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(Xn.error)}))):(this.store.dispatch((0,Pe.y0)({payload:ci})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:Xn.status?Xn.status.toString():"",message:this.commonService.extractErrorMessage(Xn)}})))}handleErrorWithAlert(Kn,ci,Xn,aa,sa){if(this.logger.error(sa),0===sa.status&&sa.statusText&&"Unknown Error"===sa.statusText&&(sa={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===sa.status&&"Login"!==Kn)this.logger.info("Redirecting to Login"),this.store.dispatch((0,Pe.Jh)()),this.store.dispatch((0,Pe.ri)({payload:"Authentication Failed: "+JSON.stringify(sa.error)}));else{this.store.dispatch((0,Pe.y0)({payload:ci}));const pa=this.commonService.extractErrorMessage(sa);this.store.dispatch((0,Pe.xO)({payload:{data:{type:"ERROR",alertTitle:Xn,message:{code:sa.status?sa.status:"Unknown Error",message:pa,URL:aa},component:Ge.f}}})),this.store.dispatch((0,Pe.Gd)({payload:{action:Kn,status:f.wn.ERROR,statusCode:sa.status?sa.status.toString():"",message:pa,URL:aa}}))}}ngOnDestroy(){this.unSubs.forEach(Kn=>{Kn.next(null),Kn.complete()})}static#e=gn=()=>(this.\u0275fac=function(ci){return new(ci||zn)(Q.KVO(g.En),Q.KVO(en.Qq),Q.KVO(se.il),Q.KVO($.gP),Q.KVO(Nn.I),Q.KVO(jn.Q),Q.KVO(_e.h),Q.KVO(Un.u),Q.KVO(F.bZ),Q.KVO(ie.UG),Q.KVO(ye.Ix))},this.\u0275prov=Q.jDH({token:zn,factory:zn.\u0275fac}))}return gn(),zn})()},79647(ke,q,l){"use strict";l.d(q,{Az:()=>d,E2:()=>h,Kq:()=>A,N:()=>e,_c:()=>D,qv:()=>o});var i=l(59640);const g=(0,i.UX)("root"),D=((0,i.Mz)(g,w=>w.apiURL),(0,i.Mz)(g,w=>w.selNode)),o=(0,i.Mz)(g,w=>w.appConfig),e=(0,i.Mz)(g,w=>w.nodeData),A=(0,i.Mz)(g,w=>w.apisCallStatus.Login),h=(0,i.Mz)(g,w=>w.apisCallStatus.IsAuthorized),d=(0,i.Mz)(g,w=>({nodeDate:w.nodeData,selNode:w.selNode}))},67947(ke,q,l){"use strict";var i=l(57303),g=l(52512),p=l(2615),D=l(60177),o=l(72200),e=l(73664),A=l(17705),h=l(93393);class f extends i.qj{supportsDOMEvents=!0;static makeCurrent(){(0,i.ig)(new f)}onAndCancel(N,I,H,J){return N.addEventListener(I,H,J),()=>{N.removeEventListener(I,H,J)}}dispatchEvent(N,I){N.dispatchEvent(I)}remove(N){N.remove()}createElement(N,I){return(I=I||this.getDefaultDocument()).createElement(N)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(N){return N.nodeType===Node.ELEMENT_NODE}isShadowRoot(N){return N instanceof DocumentFragment}getGlobalEventTarget(N,I){return"window"===I?window:"document"===I?N:"body"===I?N.body:null}getBaseHref(N){const I=function M(){return F=F||document.head.querySelector("base"),F?F.getAttribute("href"):null}();return null==I?null:function K(z){return new URL(z,document.baseURI).pathname}(I)}resetBaseElement(){F=null}getUserAgent(){return window.navigator.userAgent}getCookie(N){return(0,g.b)(document.cookie,N)}}let F=null,Z=(()=>{class z{build(){return new XMLHttpRequest}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const ee=["alt","control","meta","shift"],V={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Q={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let $=(()=>{class z extends h.Hl{constructor(I){super(I)}supports(I){return null!=z.parseEventName(I)}addEventListener(I,H,J,ne){const ot=z.parseEventName(H),jt=z.eventCallback(ot.fullKey,J,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.rb)().onAndCancel(I,ot.domEventName,jt,ne))}static parseEventName(I){const H=I.toLowerCase().split("."),J=H.shift();if(0===H.length||"keydown"!==J&&"keyup"!==J)return null;const ne=z._normalizeKey(H.pop());let ot="",jt=H.indexOf("code");if(jt>-1&&(H.splice(jt,1),ot="code."),ee.forEach(Tn=>{const ii=H.indexOf(Tn);ii>-1&&(H.splice(ii,1),ot+=Tn+".")}),ot+=ne,0!=H.length||0===ne.length)return null;const $t={};return $t.domEventName=J,$t.fullKey=ot,$t}static matchEventFullKeyCode(I,H){let J=V[I.key]||I.key,ne="";return H.indexOf("code.")>-1&&(J=I.code,ne="code."),!(null==J||!J)&&(J=J.toLowerCase()," "===J?J="space":"."===J&&(J="dot"),ee.forEach(ot=>{ot!==J&&(0,Q[ot])(I)&&(ne+=ot+".")}),ne+=J,ne===H)}static eventCallback(I,H,J){return ne=>{z.matchEventFullKeyCode(ne,I)&&J.runGuarded(()=>H(ne))}}static _normalizeKey(I){return"esc"===I?"escape":I}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();const s=(0,A.oH4)(A.fpN,"browser",[{provide:e.Agw,useValue:D.AJ},{provide:e.PLl,useValue:function pe(){f.makeCurrent()},multi:!0},{provide:p.qQL,useFactory:function L(){return(0,e._9u)(document),document}}]),u=[{provide:e.$Ln,useClass:class j{addToWindow(N){p.laP.getAngularTestability=(H,J=!0)=>{const ne=N.findTestabilityInTree(H,J);if(null==ne)throw new p.buA(5103,!1);return ne},p.laP.getAllAngularTestabilities=()=>N.getAllTestabilities(),p.laP.getAllAngularRootElements=()=>N.getAllRootElements(),p.laP.frameworkStabilizers||(p.laP.frameworkStabilizers=[]),p.laP.frameworkStabilizers.push(H=>{const J=p.laP.getAllAngularTestabilities();let ne=J.length;const ot=function(){ne--,0==ne&&H()};J.forEach(jt=>{jt.whenStable(ot)})})}findTestabilityInTree(N,I,H){return null==I?null:N.getTestability(I)??(H?(0,i.rb)().isShadowRoot(I)?this.findTestabilityInTree(N,I.host,!0):this.findTestabilityInTree(N,I.parentElement,!0):null)}}},{provide:e.dOL,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.$Ln]}],_=[{provide:p.GBX,useValue:"root"},{provide:p.zcH,useFactory:function Ee(){return new p.zcH}},{provide:h.Q5,useClass:h.jd,multi:!0,deps:[p.qQL]},{provide:h.Q5,useClass:$,multi:!0,deps:[p.qQL]},h.mE,h.CI,h.EU,{provide:e._9s,useExisting:h.mE},{provide:g.N,useClass:Z},[]];let T=(()=>{class z{constructor(){}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:[..._,...u],imports:[o.MD,A.Hbi]})}return z})();var P=l(345),C=l(11514);function Y(z){return new p.buA(3e3,!1)}function Me(z){return new p.buA(3002,!1)}function tt(z){switch(z.length){case 0:return new C.sf;case 1:return z[0];default:return new C.PZ(z)}}function Fe(z,N,I=new Map,H=new Map){const J=[],ne=[];let ot=-1,jt=null;if(N.forEach($t=>{const Tn=$t.get("offset"),ii=Tn==ot,$n=ii&&jt||new Map;$t.forEach((Vi,Qi)=>{let Di=Qi,Fi=Vi;if("offset"!==Qi)switch(Di=z.normalizePropertyName(Di,J),Fi){case C.FX:Fi=I.get(Qi);break;case C.kp:Fi=H.get(Qi);break;default:Fi=z.normalizeStyleValue(Qi,Di,Fi,J)}$n.set(Di,Fi)}),ii||ne.push($n),jt=$n,ot=Tn}),J.length)throw function S(){return new p.buA(3502,!1)}();return ne}function Pe(z,N,I,H){switch(N){case"start":z.onStart(()=>H(I&&Ue(I,"start",z)));break;case"done":z.onDone(()=>H(I&&Ue(I,"done",z)));break;case"destroy":z.onDestroy(()=>H(I&&Ue(I,"destroy",z)))}}function Ue(z,N,I){const ne=Qe(z.element,z.triggerName,z.fromState,z.toState,N||z.phaseName,I.totalTime??z.totalTime,!!I.disabled),ot=z._data;return null!=ot&&(ne._data=ot),ne}function Qe(z,N,I,H,J="",ne=0,ot){return{element:z,triggerName:N,fromState:I,toState:H,phaseName:J,totalTime:ne,disabled:!!ot}}function Ie(z,N,I){let H=z.get(N);return H||z.set(N,H=I),H}function le(z){const N=z.indexOf(":");return[z.substring(1,N),z.slice(N+1)]}const Ne=typeof document>"u"?null:document.documentElement;function ze(z){const N=z.parentNode||z.host||null;return N===Ne?null:N}let gt=null,zt=!1;function He(z,N){for(;N;){if(N===z)return!0;N=ze(N)}return!1}function Wt(z,N,I){if(I)return Array.from(z.querySelectorAll(N));const H=z.querySelector(N);return H?[H]:[]}const St="ng-enter",At="ng-leave",fn="ng-trigger",mt=".ng-trigger",It="ng-animating",wn=".ng-animating";function In(z){if("number"==typeof z)return z;const N=z.match(/^(-?[\.\d]+)(m?s)/);return!N||N.length<2?0:ei(parseFloat(N[1]),N[2])}function ei(z,N){return"s"===N?1e3*z:z}function Li(z,N,I){return z.hasOwnProperty("duration")?z:function Ot(z,N,I){let H,J=0,ne="";if("string"==typeof z){const ot=z.match(kt);if(null===ot)return N.push(Y()),{duration:0,delay:0,easing:""};H=ei(parseFloat(ot[1]),ot[2]);const jt=ot[3];null!=jt&&(J=ei(parseFloat(jt),ot[4]));const $t=ot[5];$t&&(ne=$t)}else H=z;if(!I){let ot=!1,jt=N.length;H<0&&(N.push(function R(){return new p.buA(3100,!1)}()),ot=!0),J<0&&(N.push(function U(){return new p.buA(3101,!1)}()),ot=!0),ot&&N.splice(jt,0,Y())}return{duration:H,delay:J,easing:ne}}(z,N,I)}const kt=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function Pt(z,N,I){N.forEach((H,J)=>{const ne=nn(J);I&&!I.has(J)&&I.set(J,z.style[ne]),z.style[ne]=H})}function Yt(z,N){N.forEach((I,H)=>{const J=nn(H);z.style[J]=""})}function bn(z){return Array.isArray(z)?1==z.length?z[0]:(0,C.K2)(z):z}const oi=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ii(z){let N=[];if("string"==typeof z){let I;for(;I=oi.exec(z);)N.push(I[1]);oi.lastIndex=0}return N}function Ei(z,N,I){const H=`${z}`,J=H.replace(oi,(ne,ot)=>{let jt=N[ot];return null==jt&&(I.push(function re(){return new p.buA(3003,!1)}()),jt=""),jt.toString()});return J==H?z:J}const Nt=/-+([a-z0-9])/g;function nn(z){return z.replace(Nt,(...N)=>N[1].toUpperCase())}function Un(z,N,I){switch(N.type){case C.If.Trigger:return z.visitTrigger(N,I);case C.If.State:return z.visitState(N,I);case C.If.Transition:return z.visitTransition(N,I);case C.If.Sequence:return z.visitSequence(N,I);case C.If.Group:return z.visitGroup(N,I);case C.If.Animate:return z.visitAnimate(N,I);case C.If.Keyframes:return z.visitKeyframes(N,I);case C.If.Style:return z.visitStyle(N,I);case C.If.Reference:return z.visitReference(N,I);case C.If.AnimateChild:return z.visitAnimateChild(N,I);case C.If.AnimateRef:return z.visitAnimateRef(N,I);case C.If.Query:return z.visitQuery(N,I);case C.If.Stagger:return z.visitStagger(N,I);default:throw function he(){return new p.buA(3004,!1)}()}}function ui(z,N){return window.getComputedStyle(z)[N]}let Xn=(()=>{class z{validateStyleProperty(I){return function Ye(z){gt||(gt=function it(){return typeof document<"u"?document.body:null}()||{},zt=!!gt.style&&"WebkitAppearance"in gt.style);let N=!0;return gt.style&&!function Je(z){return"ebkit"==z.substring(1,6)}(z)&&(N=z in gt.style,!N&&zt&&(N="Webkit"+z.charAt(0).toUpperCase()+z.slice(1)in gt.style)),N}(I)}containsElement(I,H){return He(I,H)}getParentElement(I){return ze(I)}query(I,H,J){return Wt(I,H,J)}computeStyle(I,H,J){return J||""}animate(I,H,J,ne,ot,jt=[],$t){return new C.sf(J,ne)}static \u0275fac=function(H){return new(H||z)};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})();class aa{static NOOP=new Xn}class sa{}const ha=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class dn extends sa{normalizePropertyName(N,I){return nn(N)}normalizeStyleValue(N,I,H,J){let ne="";const ot=H.toString().trim();if(ha.has(I)&&0!==H&&"0"!==H)if("number"==typeof H)ne="px";else{const jt=H.match(/^[+-]?[\d\.]+([a-z]*)$/);jt&&0==jt[1].length&&J.push(function Oe(){return new p.buA(3005,!1)}())}return ot+ne}}const Sn=new Set(["true","1"]),fi=new Set(["false","0"]);function Dn(z,N){const I=Sn.has(z)||fi.has(z),H=Sn.has(N)||fi.has(N);return(J,ne)=>{let ot="*"==z||z==J,jt="*"==N||N==ne;return!ot&&I&&"boolean"==typeof J&&(ot=J?Sn.has(z):fi.has(z)),!jt&&H&&"boolean"==typeof ne&&(jt=ne?Sn.has(N):fi.has(N)),ot&&jt}}const Ci=new RegExp("s*:selfs*,?","g");function Xi(z,N,I,H){return new lt(z).build(N,I,H)}class lt{_driver;constructor(N){this._driver=N}build(N,I,H){const J=new Gt(I);return this._resetContextStyleTimingState(J),Un(this,bn(N),J)}_resetContextStyleTimingState(N){N.currentQuerySelector="",N.collectedStyles=new Map,N.collectedStyles.set("",new Map),N.currentTime=0}visitTrigger(N,I){let H=I.queryCount=0,J=I.depCount=0;const ne=[],ot=[];return"@"==N.name.charAt(0)&&I.errors.push(function ge(){return new p.buA(3006,!1)}()),N.definitions.forEach(jt=>{if(this._resetContextStyleTimingState(I),jt.type==C.If.State){const $t=jt,Tn=$t.name;Tn.toString().split(/\s*,\s*/).forEach(ii=>{$t.name=ii,ne.push(this.visitState($t,I))}),$t.name=Tn}else if(jt.type==C.If.Transition){const $t=this.visitTransition(jt,I);H+=$t.queryCount,J+=$t.depCount,ot.push($t)}else I.errors.push(function ce(){return new p.buA(3007,!1)}())}),{type:C.If.Trigger,name:N.name,states:ne,transitions:ot,queryCount:H,depCount:J,options:null}}visitState(N,I){const H=this.visitStyle(N.styles,I),J=N.options&&N.options.params||null;if(H.containsDynamicStyles){const ne=new Set,ot=J||{};H.styles.forEach(jt=>{jt instanceof Map&&jt.forEach($t=>{Ii($t).forEach(Tn=>{ot.hasOwnProperty(Tn)||ne.add(Tn)})})}),ne.size&&I.errors.push(function Re(){return new p.buA(3008,!1)}(0,ne.values()))}return{type:C.If.State,name:N.name,style:H,options:J?{params:J}:null}}visitTransition(N,I){I.queryCount=0,I.depCount=0;const H=Un(this,bn(N.animation),I),J=function ca(z,N){const I=[];return"string"==typeof z?z.split(/\s*,\s*/).forEach(H=>function Sa(z,N,I){if(":"==z[0]){const $t=function un(z,N){switch(z){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(I,H)=>parseFloat(H)>parseFloat(I);case":decrement":return(I,H)=>parseFloat(H) *"}}(z,I);if("function"==typeof $t)return void N.push($t);z=$t}const H=z.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==H||H.length<4)return I.push(function yt(){return new p.buA(3015,!1)}()),N;const J=H[1],ne=H[2],ot=H[3];N.push(Dn(J,ot)),"<"==ne[0]&&("*"!=J||"*"!=ot)&&N.push(Dn(ot,J))}(H,I,N)):I.push(z),I}(N.expr,I.errors);return{type:C.If.Transition,matchers:J,animation:H,queryCount:I.queryCount,depCount:I.depCount,options:pi(N.options)}}visitSequence(N,I){return{type:C.If.Sequence,steps:N.steps.map(H=>Un(this,H,I)),options:pi(N.options)}}visitGroup(N,I){const H=I.currentTime;let J=0;const ne=N.steps.map(ot=>{I.currentTime=H;const jt=Un(this,ot,I);return J=Math.max(J,I.currentTime),jt});return I.currentTime=J,{type:C.If.Group,steps:ne,options:pi(N.options)}}visitAnimate(N,I){const H=function si(z,N){if(z.hasOwnProperty("duration"))return z;if("number"==typeof z)return Oi(Li(z,N).duration,0,"");const I=z;if(I.split(/\s+/).some(ne=>"{"==ne.charAt(0)&&"{"==ne.charAt(1))){const ne=Oi(0,0,"");return ne.dynamic=!0,ne.strValue=I,ne}const J=Li(I,N);return Oi(J.duration,J.delay,J.easing)}(N.timings,I.errors);I.currentAnimateTimings=H;let J,ne=N.styles?N.styles:(0,C.iF)({});if(ne.type==C.If.Keyframes)J=this.visitKeyframes(ne,I);else{let ot=N.styles,jt=!1;if(!ot){jt=!0;const Tn={};H.easing&&(Tn.easing=H.easing),ot=(0,C.iF)(Tn)}I.currentTime+=H.duration+H.delay;const $t=this.visitStyle(ot,I);$t.isEmptyStep=jt,J=$t}return I.currentAnimateTimings=null,{type:C.If.Animate,timings:H,style:J,options:null}}visitStyle(N,I){const H=this._makeStyleAst(N,I);return this._validateStyleAst(H,I),H}_makeStyleAst(N,I){const H=[],J=Array.isArray(N.styles)?N.styles:[N.styles];for(let jt of J)"string"==typeof jt?jt===C.kp?H.push(jt):I.errors.push(Me()):H.push(new Map(Object.entries(jt)));let ne=!1,ot=null;return H.forEach(jt=>{if(jt instanceof Map&&(jt.has("easing")&&(ot=jt.get("easing"),jt.delete("easing")),!ne))for(let $t of jt.values())if($t.toString().indexOf("{{")>=0){ne=!0;break}}),{type:C.If.Style,styles:H,easing:ot,offset:N.offset,containsDynamicStyles:ne,options:null}}_validateStyleAst(N,I){const H=I.currentAnimateTimings;let J=I.currentTime,ne=I.currentTime;H&&ne>0&&(ne-=H.duration+H.delay),N.styles.forEach(ot=>{"string"!=typeof ot&&ot.forEach((jt,$t)=>{const Tn=I.collectedStyles.get(I.currentQuerySelector),ii=Tn.get($t);let $n=!0;ii&&(ne!=J&&ne>=ii.startTime&&J<=ii.endTime&&(I.errors.push(function ve(){return new p.buA(3010,!1)}()),$n=!1),ne=ii.startTime),$n&&Tn.set($t,{startTime:ne,endTime:J}),I.options&&function Zn(z,N,I){const H=N.params||{},J=Ii(z);J.length&&J.forEach(ne=>{H.hasOwnProperty(ne)||I.push(function fe(){return new p.buA(3001,!1)}())})}(jt,I.options,I.errors)})})}visitKeyframes(N,I){const H={type:C.If.Keyframes,styles:[],options:null};if(!I.currentAnimateTimings)return I.errors.push(function oe(){return new p.buA(3011,!1)}()),H;let ne=0;const ot=[];let jt=!1,$t=!1,Tn=0;const ii=N.steps.map(Oa=>{const sr=this._makeStyleAst(Oa,I);let vs=null!=sr.offset?sr.offset:function cn(z){if("string"==typeof z)return null;let N=null;if(Array.isArray(z))z.forEach(I=>{if(I instanceof Map&&I.has("offset")){const H=I;N=parseFloat(H.get("offset")),H.delete("offset")}});else if(z instanceof Map&&z.has("offset")){const I=z;N=parseFloat(I.get("offset")),I.delete("offset")}return N}(sr.styles),xa=0;return null!=vs&&(ne++,xa=sr.offset=vs),$t=$t||xa<0||xa>1,jt=jt||xa0&&ne<$n?I.errors.push(function nt(){return new p.buA(3202,!1)}()):0==ne&&(Vi=1/($n-1));const Qi=$n-1,Di=I.currentTime,Fi=I.currentAnimateTimings,ya=Fi.duration;return ii.forEach((Oa,sr)=>{const vs=Vi>0?sr==Qi?1:Vi*sr:ot[sr],xa=vs*ya;I.currentTime=Di+Fi.delay+xa,Fi.duration=xa,this._validateStyleAst(Oa,I),Oa.offset=vs,H.styles.push(Oa)}),H}visitReference(N,I){return{type:C.If.Reference,animation:Un(this,bn(N.animation),I),options:pi(N.options)}}visitAnimateChild(N,I){return I.depCount++,{type:C.If.AnimateChild,options:pi(N.options)}}visitAnimateRef(N,I){return{type:C.If.AnimateRef,animation:this.visitReference(N.animation,I),options:pi(N.options)}}visitQuery(N,I){const H=I.currentQuerySelector,J=N.options||{};I.queryCount++,I.currentQuery=N;const[ne,ot]=function an(z){const N=!!z.split(/\s*,\s*/).find(I=>":self"==I);return N&&(z=z.replace(Ci,"")),z=z.replace(/@\*/g,mt).replace(/@\w+/g,I=>mt+"-"+I.slice(1)).replace(/:animating/g,wn),[z,N]}(N.selector);I.currentQuerySelector=H.length?H+" "+ne:ne,Ie(I.collectedStyles,I.currentQuerySelector,new Map);const jt=Un(this,bn(N.animation),I);return I.currentQuery=null,I.currentQuerySelector=H,{type:C.If.Query,selector:ne,limit:J.limit||0,optional:!!J.optional,includeSelf:ot,animation:jt,originalSelector:N.selector,options:pi(N.options)}}visitStagger(N,I){I.currentQuery||I.errors.push(function $e(){return new p.buA(3013,!1)}());const H="full"===N.timings?{duration:0,delay:0,easing:"full"}:Li(N.timings,I.errors,!0);return{type:C.If.Stagger,animation:Un(this,bn(N.animation),I),timings:H,options:null}}}class Gt{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(N){this.errors=N}}function pi(z){return z?(z={...z}).params&&(z.params=function ht(z){return z?{...z}:null}(z.params)):z={},z}function Oi(z,N,I){return{duration:z,delay:N,easing:I}}function la(z,N,I,H,J,ne,ot=null,jt=!1){return{type:1,element:z,keyframes:N,preStyleProps:I,postStyleProps:H,duration:J,delay:ne,totalTime:J+ne,easing:ot,subTimeline:jt}}class mn{_map=new Map;get(N){return this._map.get(N)||[]}append(N,I){let H=this._map.get(N);H||this._map.set(N,H=[]),H.push(...I)}has(N){return this._map.has(N)}clear(){this._map.clear()}}const xt=new RegExp(":enter","g"),rn=new RegExp(":leave","g");function Wn(z,N,I,H,J,ne=new Map,ot=new Map,jt,$t,Tn=[]){return(new Yi).buildKeyframes(z,N,I,H,J,ne,ot,jt,$t,Tn)}class Yi{buildKeyframes(N,I,H,J,ne,ot,jt,$t,Tn,ii=[]){Tn=Tn||new mn;const $n=new Va(N,I,Tn,J,ne,ii,[]);$n.options=$t;const Vi=$t.delay?In($t.delay):0;$n.currentTimeline.delayNextStep(Vi),$n.currentTimeline.setStyles([ot],null,$n.errors,$t),Un(this,H,$n);const Qi=$n.timelines.filter(Di=>Di.containsAnimation());if(Qi.length&&jt.size){let Di;for(let Fi=Qi.length-1;Fi>=0;Fi--){const ya=Qi[Fi];if(ya.element===I){Di=ya;break}}Di&&!Di.allowOnlyTimelineStyles()&&Di.setStyles([jt],null,$n.errors,$t)}return Qi.length?Qi.map(Di=>Di.buildKeyframes()):[la(I,[],[],[],0,Vi,"",!1)]}visitTrigger(N,I){}visitState(N,I){}visitTransition(N,I){}visitAnimateChild(N,I){const H=I.subInstructions.get(I.element);if(H){const J=I.createSubContext(N.options),ne=I.currentTimeline.currentTime,ot=this._visitSubInstructions(H,J,J.options);ne!=ot&&I.transformIntoNewTimeline(ot)}I.previousNode=N}visitAnimateRef(N,I){const H=I.createSubContext(N.options);H.transformIntoNewTimeline(),this._applyAnimationRefDelays([N.options,N.animation.options],I,H),this.visitReference(N.animation,H),I.transformIntoNewTimeline(H.currentTimeline.currentTime),I.previousNode=N}_applyAnimationRefDelays(N,I,H){for(const J of N){const ne=J?.delay;if(ne){const ot="number"==typeof ne?ne:In(Ei(ne,J?.params??{},I.errors));H.delayNextStep(ot)}}}_visitSubInstructions(N,I,H){let ne=I.currentTimeline.currentTime;const ot=null!=H.duration?In(H.duration):null,jt=null!=H.delay?In(H.delay):null;return 0!==ot&&N.forEach($t=>{const Tn=I.appendInstructionToTimeline($t,ot,jt);ne=Math.max(ne,Tn.duration+Tn.delay)}),ne}visitReference(N,I){I.updateOptions(N.options,!0),Un(this,N.animation,I),I.previousNode=N}visitSequence(N,I){const H=I.subContextCount;let J=I;const ne=N.options;if(ne&&(ne.params||ne.delay)&&(J=I.createSubContext(ne),J.transformIntoNewTimeline(),null!=ne.delay)){J.previousNode.type==C.If.Style&&(J.currentTimeline.snapshotCurrentStyles(),J.previousNode=va);const ot=In(ne.delay);J.delayNextStep(ot)}N.steps.length&&(N.steps.forEach(ot=>Un(this,ot,J)),J.currentTimeline.applyStylesToKeyframe(),J.subContextCount>H&&J.transformIntoNewTimeline()),I.previousNode=N}visitGroup(N,I){const H=[];let J=I.currentTimeline.currentTime;const ne=N.options&&N.options.delay?In(N.options.delay):0;N.steps.forEach(ot=>{const jt=I.createSubContext(N.options);ne&&jt.delayNextStep(ne),Un(this,ot,jt),J=Math.max(J,jt.currentTimeline.currentTime),H.push(jt.currentTimeline)}),H.forEach(ot=>I.currentTimeline.mergeTimelineCollectedStyles(ot)),I.transformIntoNewTimeline(J),I.previousNode=N}_visitTiming(N,I){if(N.dynamic){const H=N.strValue;return Li(I.params?Ei(H,I.params,I.errors):H,I.errors)}return{duration:N.duration,delay:N.delay,easing:N.easing}}visitAnimate(N,I){const H=I.currentAnimateTimings=this._visitTiming(N.timings,I),J=I.currentTimeline;H.delay&&(I.incrementTime(H.delay),J.snapshotCurrentStyles());const ne=N.style;ne.type==C.If.Keyframes?this.visitKeyframes(ne,I):(I.incrementTime(H.duration),this.visitStyle(ne,I),J.applyStylesToKeyframe()),I.currentAnimateTimings=null,I.previousNode=N}visitStyle(N,I){const H=I.currentTimeline,J=I.currentAnimateTimings;!J&&H.hasCurrentStyleProperties()&&H.forwardFrame();const ne=J&&J.easing||N.easing;N.isEmptyStep?H.applyEmptyStep(ne):H.setStyles(N.styles,ne,I.errors,I.options),I.previousNode=N}visitKeyframes(N,I){const H=I.currentAnimateTimings,J=I.currentTimeline.duration,ne=H.duration,jt=I.createSubContext().currentTimeline;jt.easing=H.easing,N.styles.forEach($t=>{jt.forwardTime(($t.offset||0)*ne),jt.setStyles($t.styles,$t.easing,I.errors,I.options),jt.applyStylesToKeyframe()}),I.currentTimeline.mergeTimelineCollectedStyles(jt),I.transformIntoNewTimeline(J+ne),I.previousNode=N}visitQuery(N,I){const H=I.currentTimeline.currentTime,J=N.options||{},ne=J.delay?In(J.delay):0;ne&&(I.previousNode.type===C.If.Style||0==H&&I.currentTimeline.hasCurrentStyleProperties())&&(I.currentTimeline.snapshotCurrentStyles(),I.previousNode=va);let ot=H;const jt=I.invokeQuery(N.selector,N.originalSelector,N.limit,N.includeSelf,!!J.optional,I.errors);I.currentQueryTotal=jt.length;let $t=null;jt.forEach((Tn,ii)=>{I.currentQueryIndex=ii;const $n=I.createSubContext(N.options,Tn);ne&&$n.delayNextStep(ne),Tn===I.element&&($t=$n.currentTimeline),Un(this,N.animation,$n),$n.currentTimeline.applyStylesToKeyframe(),ot=Math.max(ot,$n.currentTimeline.currentTime)}),I.currentQueryIndex=0,I.currentQueryTotal=0,I.transformIntoNewTimeline(ot),$t&&(I.currentTimeline.mergeTimelineCollectedStyles($t),I.currentTimeline.snapshotCurrentStyles()),I.previousNode=N}visitStagger(N,I){const H=I.parentContext,J=I.currentTimeline,ne=N.timings,ot=Math.abs(ne.duration),jt=ot*(I.currentQueryTotal-1);let $t=ot*I.currentQueryIndex;switch(ne.duration<0?"reverse":ne.easing){case"reverse":$t=jt-$t;break;case"full":$t=H.currentStaggerTime}const ii=I.currentTimeline;$t&&ii.delayNextStep($t);const $n=ii.currentTime;Un(this,N.animation,I),I.previousNode=N,H.currentStaggerTime=J.currentTime-$n+(J.startTime-H.currentTimeline.startTime)}}const va={};class Va{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=va;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(N,I,H,J,ne,ot,jt,$t){this._driver=N,this.element=I,this.subInstructions=H,this._enterClassName=J,this._leaveClassName=ne,this.errors=ot,this.timelines=jt,this.currentTimeline=$t||new $a(this._driver,I,0),jt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(N,I){if(!N)return;const H=N;let J=this.options;null!=H.duration&&(J.duration=In(H.duration)),null!=H.delay&&(J.delay=In(H.delay));const ne=H.params;if(ne){let ot=J.params;ot||(ot=this.options.params={}),Object.keys(ne).forEach(jt=>{(!I||!ot.hasOwnProperty(jt))&&(ot[jt]=Ei(ne[jt],ot,this.errors))})}}_copyOptions(){const N={};if(this.options){const I=this.options.params;if(I){const H=N.params={};Object.keys(I).forEach(J=>{H[J]=I[J]})}}return N}createSubContext(N=null,I,H){const J=I||this.element,ne=new Va(this._driver,J,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(J,H||0));return ne.previousNode=this.previousNode,ne.currentAnimateTimings=this.currentAnimateTimings,ne.options=this._copyOptions(),ne.updateOptions(N),ne.currentQueryIndex=this.currentQueryIndex,ne.currentQueryTotal=this.currentQueryTotal,ne.parentContext=this,this.subContextCount++,ne}transformIntoNewTimeline(N){return this.previousNode=va,this.currentTimeline=this.currentTimeline.fork(this.element,N),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(N,I,H){const J={duration:I??N.duration,delay:this.currentTimeline.currentTime+(H??0)+N.delay,easing:""},ne=new ir(this._driver,N.element,N.keyframes,N.preStyleProps,N.postStyleProps,J,N.stretchStartingKeyframe);return this.timelines.push(ne),J}incrementTime(N){this.currentTimeline.forwardTime(this.currentTimeline.duration+N)}delayNextStep(N){N>0&&this.currentTimeline.delayNextStep(N)}invokeQuery(N,I,H,J,ne,ot){let jt=[];if(J&&jt.push(this.element),N.length>0){N=(N=N.replace(xt,"."+this._enterClassName)).replace(rn,"."+this._leaveClassName);let Tn=this._driver.query(this.element,N,1!=H);0!==H&&(Tn=H<0?Tn.slice(Tn.length+H,Tn.length):Tn.slice(0,H)),jt.push(...Tn)}return!ne&&0==jt.length&&ot.push(function dt(){return new p.buA(3014,!1)}()),jt}}class $a{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(N,I,H,J){this._driver=N,this.element=I,this.startTime=H,this._elementTimelineStylesLookup=J,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(I),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(I,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(N){const I=1===this._keyframes.size&&this._pendingStyles.size;this.duration||I?(this.forwardTime(this.currentTime+N),I&&this.snapshotCurrentStyles()):this.startTime+=N}fork(N,I){return this.applyStylesToKeyframe(),new $a(this._driver,N,I||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(N){this.applyStylesToKeyframe(),this.duration=N,this._loadKeyframe()}_updateStyle(N,I){this._localTimelineStyles.set(N,I),this._globalTimelineStyles.set(N,I),this._styleSummary.set(N,{time:this.currentTime,value:I})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(N){N&&this._previousKeyframe.set("easing",N);for(let[I,H]of this._globalTimelineStyles)this._backFill.set(I,H||C.kp),this._currentKeyframe.set(I,C.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(N,I,H,J){I&&this._previousKeyframe.set("easing",I);const ne=J&&J.params||{},ot=function Ar(z,N){const I=new Map;let H;return z.forEach(J=>{if("*"===J){H??=N.keys();for(let ne of H)I.set(ne,C.kp)}else for(let[ne,ot]of J)I.set(ne,ot)}),I}(N,this._globalTimelineStyles);for(let[jt,$t]of ot){const Tn=Ei($t,ne,H);this._pendingStyles.set(jt,Tn),this._localTimelineStyles.has(jt)||this._backFill.set(jt,this._globalTimelineStyles.get(jt)??C.kp),this._updateStyle(jt,Tn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((N,I)=>{this._currentKeyframe.set(I,N)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((N,I)=>{this._currentKeyframe.has(I)||this._currentKeyframe.set(I,N)}))}snapshotCurrentStyles(){for(let[N,I]of this._localTimelineStyles)this._pendingStyles.set(N,I),this._updateStyle(N,I)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const N=[];for(let I in this._currentKeyframe)N.push(I);return N}mergeTimelineCollectedStyles(N){N._styleSummary.forEach((I,H)=>{const J=this._styleSummary.get(H);(!J||I.time>J.time)&&this._updateStyle(H,I.value)})}buildKeyframes(){this.applyStylesToKeyframe();const N=new Set,I=new Set,H=1===this._keyframes.size&&0===this.duration;let J=[];this._keyframes.forEach((jt,$t)=>{const Tn=new Map([...this._backFill,...jt]);Tn.forEach((ii,$n)=>{ii===C.FX?N.add($n):ii===C.kp&&I.add($n)}),H||Tn.set("offset",$t/this.duration),J.push(Tn)});const ne=[...N.values()],ot=[...I.values()];if(H){const jt=J[0],$t=new Map(jt);jt.set("offset",0),$t.set("offset",1),J=[jt,$t]}return la(this.element,J,ne,ot,this.duration,this.startTime,this.easing,!1)}}class ir extends $a{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(N,I,H,J,ne,ot,jt=!1){super(N,I,ot.delay),this.keyframes=H,this.preStyleProps=J,this.postStyleProps=ne,this._stretchStartingKeyframe=jt,this.timings={duration:ot.duration,delay:ot.delay,easing:ot.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let N=this.keyframes,{delay:I,duration:H,easing:J}=this.timings;if(this._stretchStartingKeyframe&&I){const ne=[],ot=H+I,jt=I/ot,$t=new Map(N[0]);$t.set("offset",0),ne.push($t);const Tn=new Map(N[0]);Tn.set("offset",Ga(jt)),ne.push(Tn);const ii=N.length-1;for(let $n=1;$n<=ii;$n++){let Vi=new Map(N[$n]);const Qi=Vi.get("offset");Vi.set("offset",Ga((I+Qi*H)/ot)),ne.push(Vi)}H=ot,I=0,J="",N=ne}return la(this.element,N,this.preStyleProps,this.postStyleProps,H,I,J,!0)}}function Ga(z,N=3){const I=Math.pow(10,N-1);return Math.round(z*I)/I}function ds(z,N,I,H,J,ne,ot,jt,$t,Tn,ii,$n,Vi){return{type:0,element:z,triggerName:N,isRemovalTransition:J,fromState:I,fromStyles:ne,toState:H,toStyles:ot,timelines:jt,queriedElements:$t,preStyleProps:Tn,postStyleProps:ii,totalTime:$n,errors:Vi}}const us={};class hs{_triggerName;ast;_stateStyles;constructor(N,I,H){this._triggerName=N,this.ast=I,this._stateStyles=H}match(N,I,H,J){return function fs(z,N,I,H,J){return z.some(ne=>ne(N,I,H,J))}(this.ast.matchers,N,I,H,J)}buildStyles(N,I,H){let J=this._stateStyles.get("*");return void 0!==N&&(J=this._stateStyles.get(N?.toString())||J),J?J.buildStyles(I,H):new Map}build(N,I,H,J,ne,ot,jt,$t,Tn,ii){const $n=[],Vi=this.ast.options&&this.ast.options.params||us,Di=this.buildStyles(H,jt&&jt.params||us,$n),Fi=$t&&$t.params||us,ya=this.buildStyles(J,Fi,$n),Oa=new Set,sr=new Map,vs=new Map,xa="void"===J,br={params:ms(Fi,Vi),delay:this.ast.options?.delay},Ba=ii?[]:Wn(N,I,this.ast.animation,ne,ot,Di,ya,br,Tn,$n);let Vr=0;return Ba.forEach(Dr=>{Vr=Math.max(Dr.duration+Dr.delay,Vr)}),$n.length?ds(I,this._triggerName,H,J,xa,Di,ya,[],[],sr,vs,Vr,$n):(Ba.forEach(Dr=>{const ll=Dr.element,Xc=Ie(sr,ll,new Set);Dr.preStyleProps.forEach(hd=>Xc.add(hd));const $f=Ie(vs,ll,new Set);Dr.postStyleProps.forEach(hd=>$f.add(hd)),ll!==I&&Oa.add(ll)}),ds(I,this._triggerName,H,J,xa,Di,ya,Ba,[...Oa.values()],sr,vs,Vr))}}function ms(z,N){const I={...N};return Object.entries(z).forEach(([H,J])=>{null!=J&&(I[H]=J)}),I}class bo{styles;defaultParams;normalizer;constructor(N,I,H){this.styles=N,this.defaultParams=I,this.normalizer=H}buildStyles(N,I){const H=new Map,J=ms(N,this.defaultParams);return this.styles.styles.forEach(ne=>{"string"!=typeof ne&&ne.forEach((ot,jt)=>{ot&&(ot=Ei(ot,J,I));const $t=this.normalizer.normalizePropertyName(jt,I);ot=this.normalizer.normalizeStyleValue(jt,$t,ot,I),H.set(jt,ot)})}),H}}class js{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(N,I,H){this.name=N,this.ast=I,this._normalizer=H,I.states.forEach(J=>{this.states.set(J.name,new bo(J.style,J.options&&J.options.params||{},H))}),Ka(this.states,"true","1"),Ka(this.states,"false","0"),I.transitions.forEach(J=>{this.transitionFactories.push(new hs(N,J,this.states))}),this.fallbackTransition=function Cs(z,N){return new hs(z,{type:C.If.Transition,animation:{type:C.If.Sequence,steps:[],options:null},matchers:[(ot,jt)=>!0],options:null,queryCount:0,depCount:0},N)}(N,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(N,I,H,J){return this.transitionFactories.find(ot=>ot.match(N,I,H,J))||null}matchStyles(N,I,H){return this.fallbackTransition.buildStyles(N,I,H)}}function Ka(z,N,I){z.has(N)?z.has(I)||z.set(I,z.get(N)):z.has(I)&&z.set(N,z.get(I))}const Pr=new mn;class Is{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(N,I,H){this.bodyNode=N,this._driver=I,this._normalizer=H}register(N,I){const H=[],ne=Xi(this._driver,I,H,[]);if(H.length)throw function Xt(){return new p.buA(3503,!1)}();this._animations.set(N,ne)}_buildPlayer(N,I,H){const J=N.element,ne=Fe(this._normalizer,N.keyframes,I,H);return this._driver.animate(J,ne,N.duration,N.delay,N.easing,[],!0)}create(N,I,H={}){const J=[],ne=this._animations.get(N);let ot;const jt=new Map;if(ne?(ot=Wn(this._driver,I,ne,St,At,new Map,new Map,H,Pr,J),ot.forEach(ii=>{const $n=Ie(jt,ii.element,new Map);ii.postStyleProps.forEach(Vi=>$n.set(Vi,null))})):(J.push(function de(){return new p.buA(3300,!1)}()),ot=[]),J.length)throw function ae(){return new p.buA(3504,!1)}();jt.forEach((ii,$n)=>{ii.forEach((Vi,Qi)=>{ii.set(Qi,this._driver.computeStyle($n,Qi,C.kp))})});const Tn=tt(ot.map(ii=>{const $n=jt.get(ii.element);return this._buildPlayer(ii,new Map,$n)}));return this._playersById.set(N,Tn),Tn.onDestroy(()=>this.destroy(N)),this.players.push(Tn),Tn}destroy(N){const I=this._getPlayer(N);I.destroy(),this._playersById.delete(N);const H=this.players.indexOf(I);H>=0&&this.players.splice(H,1)}_getPlayer(N){const I=this._playersById.get(N);if(!I)throw function me(){return new p.buA(3301,!1)}();return I}listen(N,I,H,J){const ne=Qe(I,"","","");return Pe(this._getPlayer(N),H,ne,J),()=>{}}command(N,I,H,J){if("register"==H)return void this.register(N,J[0]);if("create"==H)return void this.create(N,I,J[0]||{});const ne=this._getPlayer(N);switch(H){case"play":ne.play();break;case"pause":ne.pause();break;case"reset":ne.reset();break;case"restart":ne.restart();break;case"finish":ne.finish();break;case"init":ne.init();break;case"setPosition":ne.setPosition(parseFloat(J[0]));break;case"destroy":this.destroy(N)}}}const Wr="ng-animate-queued",Js="ng-animate-disabled",Jr=[],ps={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},lr={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dr="__ng_removed";class ar{namespaceId;value;options;get params(){return this.options.params}constructor(N,I=""){this.namespaceId=I;const H=N&&N.hasOwnProperty("value");if(this.value=function qr(z){return z??null}(H?N.value:N),H){const{value:ne,...ot}=N;this.options=ot}else this.options={};this.options.params||(this.options.params={})}absorbOptions(N){const I=N.params;if(I){const H=this.options.params;Object.keys(I).forEach(J=>{null==H[J]&&(H[J]=I[J])})}}}const Xr="void",Kr=new ar(Xr);class Ms{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(N,I,H){this.id=N,this.hostElement=I,this._engine=H,this._hostClassName="ng-tns-"+N,Ha(I,this._hostClassName)}listen(N,I,H,J){if(!this._triggers.has(I))throw function Le(){return new p.buA(3302,!1)}();if(null==H||0==H.length)throw function et(){return new p.buA(3303,!1)}();if(!function _s(z){return"start"==z||"done"==z}(H))throw function tn(){return new p.buA(3400,!1)}();const ne=Ie(this._elementListeners,N,[]),ot={name:I,phase:H,callback:J};ne.push(ot);const jt=Ie(this._engine.statesByElement,N,new Map);return jt.has(I)||(Ha(N,fn),Ha(N,fn+"-"+I),jt.set(I,Kr)),()=>{this._engine.afterFlush(()=>{const $t=ne.indexOf(ot);$t>=0&&ne.splice($t,1),this._triggers.has(I)||jt.delete(I)})}}register(N,I){return!this._triggers.has(N)&&(this._triggers.set(N,I),!0)}_getTrigger(N){const I=this._triggers.get(N);if(!I)throw function Vt(){return new p.buA(3401,!1)}();return I}trigger(N,I,H,J=!0){const ne=this._getTrigger(I),ot=new Mr(this.id,I,N);let jt=this._engine.statesByElement.get(N);jt||(Ha(N,fn),Ha(N,fn+"-"+I),this._engine.statesByElement.set(N,jt=new Map));let $t=jt.get(I);const Tn=new ar(H,this.id);if(!(H&&H.hasOwnProperty("value"))&&$t&&Tn.absorbOptions($t.options),jt.set(I,Tn),$t||($t=Kr),Tn.value!==Xr&&$t.value===Tn.value){if(!function Ws(z,N){const I=Object.keys(z),H=Object.keys(N);if(I.length!=H.length)return!1;for(let J=0;J{Yt(N,ya),Pt(N,Oa)})}return}const Vi=Ie(this._engine.playersByElement,N,[]);Vi.forEach(Fi=>{Fi.namespaceId==this.id&&Fi.triggerName==I&&Fi.queued&&Fi.destroy()});let Qi=ne.matchTransition($t.value,Tn.value,N,Tn.params),Di=!1;if(!Qi){if(!J)return;Qi=ne.fallbackTransition,Di=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:I,transition:Qi,fromState:$t,toState:Tn,player:ot,isFallbackTransition:Di}),Di||(Ha(N,Wr),ot.onStart(()=>{Za(N,Wr)})),ot.onDone(()=>{let Fi=this.players.indexOf(ot);Fi>=0&&this.players.splice(Fi,1);const ya=this._engine.playersByElement.get(N);if(ya){let Oa=ya.indexOf(ot);Oa>=0&&ya.splice(Oa,1)}}),this.players.push(ot),Vi.push(ot),ot}deregister(N){this._triggers.delete(N),this._engine.statesByElement.forEach(I=>I.delete(N)),this._elementListeners.forEach((I,H)=>{this._elementListeners.set(H,I.filter(J=>J.name!=N))})}clearElementCache(N){this._engine.statesByElement.delete(N),this._elementListeners.delete(N);const I=this._engine.playersByElement.get(N);I&&(I.forEach(H=>H.destroy()),this._engine.playersByElement.delete(N))}_signalRemovalForInnerTriggers(N,I){const H=this._engine.driver.query(N,mt,!0);H.forEach(J=>{if(J[dr])return;const ne=this._engine.fetchNamespacesByElement(J);ne.size?ne.forEach(ot=>ot.triggerLeaveAnimation(J,I,!1,!0)):this.clearElementCache(J)}),this._engine.afterFlushAnimationsDone(()=>H.forEach(J=>this.clearElementCache(J)))}triggerLeaveAnimation(N,I,H,J){const ne=this._engine.statesByElement.get(N),ot=new Map;if(ne){const jt=[];if(ne.forEach(($t,Tn)=>{if(ot.set(Tn,$t.value),this._triggers.has(Tn)){const ii=this.trigger(N,Tn,Xr,J);ii&&jt.push(ii)}}),jt.length)return this._engine.markElementAsRemoved(this.id,N,!0,I,ot),H&&tt(jt).onDone(()=>this._engine.processLeaveNode(N)),!0}return!1}prepareLeaveAnimationListeners(N){const I=this._elementListeners.get(N),H=this._engine.statesByElement.get(N);if(I&&H){const J=new Set;I.forEach(ne=>{const ot=ne.name;if(J.has(ot))return;J.add(ot);const $t=this._triggers.get(ot).fallbackTransition,Tn=H.get(ot)||Kr,ii=new ar(Xr),$n=new Mr(this.id,ot,N);this._engine.totalQueuedPlayers++,this._queue.push({element:N,triggerName:ot,transition:$t,fromState:Tn,toState:ii,player:$n,isFallbackTransition:!0})})}}removeNode(N,I){const H=this._engine;if(N.childElementCount&&this._signalRemovalForInnerTriggers(N,I),this.triggerLeaveAnimation(N,I,!0))return;let J=!1;if(H.totalAnimations){const ne=H.players.length?H.playersByQueriedElement.get(N):[];if(ne&&ne.length)J=!0;else{let ot=N;for(;ot=ot.parentNode;)if(H.statesByElement.get(ot)){J=!0;break}}}if(this.prepareLeaveAnimationListeners(N),J)H.markElementAsRemoved(this.id,N,!1,I);else{const ne=N[dr];(!ne||ne===ps)&&(H.afterFlush(()=>this.clearElementCache(N)),H.destroyInnerAnimations(N),H._onRemovalComplete(N,I))}}insertNode(N,I){Ha(N,this._hostClassName)}drainQueuedTransitions(N){const I=[];return this._queue.forEach(H=>{const J=H.player;if(J.destroyed)return;const ne=H.element,ot=this._elementListeners.get(ne);ot&&ot.forEach(jt=>{if(jt.name==H.triggerName){const $t=Qe(ne,H.triggerName,H.fromState.value,H.toState.value);$t._data=N,Pe(H.player,jt.phase,$t,jt.callback)}}),J.markedForDestroy?this._engine.afterFlush(()=>{J.destroy()}):I.push(H)}),this._queue=[],I.sort((H,J)=>{const ne=H.transition.ast.depCount,ot=J.transition.ast.depCount;return 0==ne||0==ot?ne-ot:this._engine.driver.containsElement(H.element,J.element)?1:-1})}destroy(N){this.players.forEach(I=>I.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,N)}}class Hi{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(N,I)=>{};_onRemovalComplete(N,I){this.onRemovalComplete(N,I)}constructor(N,I,H){this.bodyNode=N,this.driver=I,this._normalizer=H}get queuedPlayers(){const N=[];return this._namespaceList.forEach(I=>{I.players.forEach(H=>{H.queued&&N.push(H)})}),N}createNamespace(N,I){const H=new Ms(N,I,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,I)?this._balanceNamespaceList(H,I):(this.newHostElements.set(I,H),this.collectEnterElement(I)),this._namespaceLookup[N]=H}_balanceNamespaceList(N,I){const H=this._namespaceList,J=this.namespacesByHostElement;if(H.length-1>=0){let ot=!1,jt=this.driver.getParentElement(I);for(;jt;){const $t=J.get(jt);if($t){const Tn=H.indexOf($t);H.splice(Tn+1,0,N),ot=!0;break}jt=this.driver.getParentElement(jt)}ot||H.unshift(N)}else H.push(N);return J.set(I,N),N}register(N,I){let H=this._namespaceLookup[N];return H||(H=this.createNamespace(N,I)),H}registerTrigger(N,I,H){let J=this._namespaceLookup[N];J&&J.register(I,H)&&this.totalAnimations++}destroy(N,I){N&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const H=this._fetchNamespace(N);this.namespacesByHostElement.delete(H.hostElement);const J=this._namespaceList.indexOf(H);J>=0&&this._namespaceList.splice(J,1),H.destroy(I),delete this._namespaceLookup[N]}))}_fetchNamespace(N){return this._namespaceLookup[N]}fetchNamespacesByElement(N){const I=new Set,H=this.statesByElement.get(N);if(H)for(let J of H.values())if(J.namespaceId){const ne=this._fetchNamespace(J.namespaceId);ne&&I.add(ne)}return I}trigger(N,I,H,J){if(Pa(I)){const ne=this._fetchNamespace(N);if(ne)return ne.trigger(I,H,J),!0}return!1}insertNode(N,I,H,J){if(!Pa(I))return;const ne=I[dr];if(ne&&ne.setForRemoval){ne.setForRemoval=!1,ne.setForMove=!0;const ot=this.collectedLeaveElements.indexOf(I);ot>=0&&this.collectedLeaveElements.splice(ot,1)}if(N){const ot=this._fetchNamespace(N);ot&&ot.insertNode(I,H)}J&&this.collectEnterElement(I)}collectEnterElement(N){this.collectedEnterElements.push(N)}markElementAsDisabled(N,I){I?this.disabledNodes.has(N)||(this.disabledNodes.add(N),Ha(N,Js)):this.disabledNodes.has(N)&&(this.disabledNodes.delete(N),Za(N,Js))}removeNode(N,I,H){if(Pa(I)){const J=N?this._fetchNamespace(N):null;J?J.removeNode(I,H):this.markElementAsRemoved(N,I,!1,H);const ne=this.namespacesByHostElement.get(I);ne&&ne.id!==N&&ne.removeNode(I,H)}else this._onRemovalComplete(I,H)}markElementAsRemoved(N,I,H,J,ne){this.collectedLeaveElements.push(I),I[dr]={namespaceId:N,setForRemoval:J,hasAnimation:H,removedBeforeQueried:!1,previousTriggersValues:ne}}listen(N,I,H,J,ne){return Pa(I)?this._fetchNamespace(N).listen(I,H,J,ne):()=>{}}_buildInstruction(N,I,H,J,ne){return N.transition.build(this.driver,N.element,N.fromState.value,N.toState.value,H,J,N.fromState.options,N.toState.options,I,ne)}destroyInnerAnimations(N){let I=this.driver.query(N,mt,!0);I.forEach(H=>this.destroyActiveAnimationsForElement(H)),0!=this.playersByQueriedElement.size&&(I=this.driver.query(N,wn,!0),I.forEach(H=>this.finishActiveQueriedAnimationOnElement(H)))}destroyActiveAnimationsForElement(N){const I=this.playersByElement.get(N);I&&I.forEach(H=>{H.queued?H.markedForDestroy=!0:H.destroy()})}finishActiveQueriedAnimationOnElement(N){const I=this.playersByQueriedElement.get(N);I&&I.forEach(H=>H.finish())}whenRenderingDone(){return new Promise(N=>{if(this.players.length)return tt(this.players).onDone(()=>N());N()})}processLeaveNode(N){const I=N[dr];if(I&&I.setForRemoval){if(N[dr]=ps,I.namespaceId){this.destroyInnerAnimations(N);const H=this._fetchNamespace(I.namespaceId);H&&H.clearElementCache(N)}this._onRemovalComplete(N,I.setForRemoval)}N.classList?.contains(Js)&&this.markElementAsDisabled(N,!1),this.driver.query(N,".ng-animate-disabled",!0).forEach(H=>{this.markElementAsDisabled(H,!1)})}flush(N=-1){let I=[];if(this.newHostElements.size&&(this.newHostElements.forEach((H,J)=>this._balanceNamespaceList(H,J)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let H=0;HH()),this._flushFns=[],this._whenQuietFns.length){const H=this._whenQuietFns;this._whenQuietFns=[],I.length?tt(I).onDone(()=>{H.forEach(J=>J())}):H.forEach(J=>J())}}reportError(N){throw function hn(){return new p.buA(3402,!1)}()}_flushAnimations(N,I){const H=new mn,J=[],ne=new Map,ot=[],jt=new Map,$t=new Map,Tn=new Map,ii=new Set;this.disabledNodes.forEach(ea=>{ii.add(ea);const fa=this.driver.query(ea,".ng-animate-queued",!0);for(let ua=0;ua{const ua=St+Fi++;Di.set(fa,ua),ea.forEach(er=>Ha(er,ua))});const ya=[],Oa=new Set,sr=new Set;for(let ea=0;eaOa.add(er)):sr.add(fa))}const vs=new Map,xa=Aa(Vi,Array.from(Oa));xa.forEach((ea,fa)=>{const ua=At+Fi++;vs.set(fa,ua),ea.forEach(er=>Ha(er,ua))}),N.push(()=>{Qi.forEach((ea,fa)=>{const ua=Di.get(fa);ea.forEach(er=>Za(er,ua))}),xa.forEach((ea,fa)=>{const ua=vs.get(fa);ea.forEach(er=>Za(er,ua))}),ya.forEach(ea=>{this.processLeaveNode(ea)})});const br=[],Ba=[];for(let ea=this._namespaceList.length-1;ea>=0;ea--)this._namespaceList[ea].drainQueuedTransitions(I).forEach(ua=>{const er=ua.player,Us=ua.element;if(br.push(er),this.collectedEnterElements.length){const ys=Us[dr];if(ys&&ys.setForMove){if(ys.previousTriggersValues&&ys.previousTriggersValues.has(ua.triggerName)){const Ac=ys.previousTriggersValues.get(ua.triggerName),_l=this.statesByElement.get(ua.element);if(_l&&_l.has(ua.triggerName)){const n2=_l.get(ua.triggerName);n2.value=Ac,_l.set(ua.triggerName,n2)}}return void er.destroy()}}const uc=!$n||!this.driver.containsElement($n,Us),Vs=vs.get(Us),Nl=Di.get(Us),Gr=this._buildInstruction(ua,H,Nl,Vs,uc);if(Gr.errors&&Gr.errors.length)return void Ba.push(Gr);if(uc)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);if(ua.isFallbackTransition)return er.onStart(()=>Yt(Us,Gr.fromStyles)),er.onDestroy(()=>Pt(Us,Gr.toStyles)),void J.push(er);const fd=[];Gr.timelines.forEach(ys=>{ys.stretchStartingKeyframe=!0,this.disabledNodes.has(ys.element)||fd.push(ys)}),Gr.timelines=fd,H.append(Us,Gr.timelines),ot.push({instruction:Gr,player:er,element:Us}),Gr.queriedElements.forEach(ys=>Ie(jt,ys,[]).push(er)),Gr.preStyleProps.forEach((ys,Ac)=>{if(ys.size){let _l=$t.get(Ac);_l||$t.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))}}),Gr.postStyleProps.forEach((ys,Ac)=>{let _l=Tn.get(Ac);_l||Tn.set(Ac,_l=new Set),ys.forEach((n2,i2)=>_l.add(i2))})});if(Ba.length){const ea=[];Ba.forEach(fa=>{ea.push(function En(){return new p.buA(3505,!1)}())}),br.forEach(fa=>fa.destroy()),this.reportError(ea)}const Vr=new Map,Dr=new Map;ot.forEach(ea=>{const fa=ea.element;H.has(fa)&&(Dr.set(fa,fa),this._beforeAnimationBuild(ea.player.namespaceId,ea.instruction,Vr))}),J.forEach(ea=>{const fa=ea.element;this._getPreviousPlayers(fa,!1,ea.namespaceId,ea.triggerName,null).forEach(er=>{Ie(Vr,fa,[]).push(er),er.destroy()})});const ll=ya.filter(ea=>Qr(ea,$t,Tn)),Xc=new Map;Yr(Xc,this.driver,sr,Tn,C.kp).forEach(ea=>{Qr(ea,$t,Tn)&&ll.push(ea)});const hd=new Map;Qi.forEach((ea,fa)=>{Yr(hd,this.driver,new Set(ea),$t,C.FX)}),ll.forEach(ea=>{const fa=Xc.get(ea),ua=hd.get(ea);Xc.set(ea,new Map([...fa?.entries()??[],...ua?.entries()??[]]))});const Zu=[],B1=[],Kc={};ot.forEach(ea=>{const{element:fa,player:ua,instruction:er}=ea;if(H.has(fa)){if(ii.has(fa))return ua.onDestroy(()=>Pt(fa,er.toStyles)),ua.disabled=!0,ua.overrideTotalTime(er.totalTime),void J.push(ua);let Us=Kc;if(Dr.size>1){let Vs=fa;const Nl=[];for(;Vs=Vs.parentNode;){const Gr=Dr.get(Vs);if(Gr){Us=Gr;break}Nl.push(Vs)}Nl.forEach(Gr=>Dr.set(Gr,Us))}const uc=this._buildAnimation(ua.namespaceId,er,Vr,ne,hd,Xc);if(ua.setRealPlayer(uc),Us===Kc)Zu.push(ua);else{const Vs=this.playersByElement.get(Us);Vs&&Vs.length&&(ua.parentPlayer=tt(Vs)),J.push(ua)}}else Yt(fa,er.fromStyles),ua.onDestroy(()=>Pt(fa,er.toStyles)),B1.push(ua),ii.has(fa)&&J.push(ua)}),B1.forEach(ea=>{const fa=ne.get(ea.element);if(fa&&fa.length){const ua=tt(fa);ea.setRealPlayer(ua)}}),J.forEach(ea=>{ea.parentPlayer?ea.syncPlayerEvents(ea.parentPlayer):ea.destroy()});for(let ea=0;ea!uc.destroyed);Us.length?ks(this,fa,Us):this.processLeaveNode(fa)}return ya.length=0,Zu.forEach(ea=>{this.players.push(ea),ea.onDone(()=>{ea.destroy();const fa=this.players.indexOf(ea);this.players.splice(fa,1)}),ea.play()}),Zu}afterFlush(N){this._flushFns.push(N)}afterFlushAnimationsDone(N){this._whenQuietFns.push(N)}_getPreviousPlayers(N,I,H,J,ne){let ot=[];if(I){const jt=this.playersByQueriedElement.get(N);jt&&(ot=jt)}else{const jt=this.playersByElement.get(N);if(jt){const $t=!ne||ne==Xr;jt.forEach(Tn=>{Tn.queued||!$t&&Tn.triggerName!=J||ot.push(Tn)})}}return(H||J)&&(ot=ot.filter(jt=>!(H&&H!=jt.namespaceId||J&&J!=jt.triggerName))),ot}_beforeAnimationBuild(N,I,H){const ne=I.element,ot=I.isRemovalTransition?void 0:N,jt=I.isRemovalTransition?void 0:I.triggerName;for(const $t of I.timelines){const Tn=$t.element,ii=Tn!==ne,$n=Ie(H,Tn,[]);this._getPreviousPlayers(Tn,ii,ot,jt,I.toState).forEach(Qi=>{const Di=Qi.getRealPlayer();Di.beforeDestroy&&Di.beforeDestroy(),Qi.destroy(),$n.push(Qi)})}Yt(ne,I.fromStyles)}_buildAnimation(N,I,H,J,ne,ot){const jt=I.triggerName,$t=I.element,Tn=[],ii=new Set,$n=new Set,Vi=I.timelines.map(Di=>{const Fi=Di.element;ii.add(Fi);const ya=Fi[dr];if(ya&&ya.removedBeforeQueried)return new C.sf(Di.duration,Di.delay);const Oa=Fi!==$t,sr=function Rs(z){const N=[];return Nr(z,N),N}((H.get(Fi)||Jr).map(Vr=>Vr.getRealPlayer())).filter(Vr=>!!Vr.element&&Vr.element===Fi),vs=ne.get(Fi),xa=ot.get(Fi),br=Fe(this._normalizer,Di.keyframes,vs,xa),Ba=this._buildPlayer(Di,br,sr);if(Di.subTimeline&&J&&$n.add(Fi),Oa){const Vr=new Mr(N,jt,Fi);Vr.setRealPlayer(Ba),Tn.push(Vr)}return Ba});Tn.forEach(Di=>{Ie(this.playersByQueriedElement,Di.element,[]).push(Di),Di.onDone(()=>function gs(z,N,I){let H=z.get(N);if(H){if(H.length){const J=H.indexOf(I);H.splice(J,1)}0==H.length&&z.delete(N)}return H}(this.playersByQueriedElement,Di.element,Di))}),ii.forEach(Di=>Ha(Di,It));const Qi=tt(Vi);return Qi.onDestroy(()=>{ii.forEach(Di=>Za(Di,It)),Pt($t,I.toStyles)}),$n.forEach(Di=>{Ie(J,Di,[]).push(Qi)}),Qi}_buildPlayer(N,I,H){return I.length>0?this.driver.animate(N.element,I,N.duration,N.delay,N.easing,H):new C.sf(N.duration,N.delay)}}class Mr{namespaceId;triggerName;element;_player=new C.sf;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(N,I,H){this.namespaceId=N,this.triggerName=I,this.element=H}setRealPlayer(N){this._containsRealPlayer||(this._player=N,this._queuedCallbacks.forEach((I,H)=>{I.forEach(J=>Pe(N,H,void 0,J))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(N.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(N){this.totalTime=N}syncPlayerEvents(N){const I=this._player;I.triggerCallback&&N.onStart(()=>I.triggerCallback("start")),N.onDone(()=>this.finish()),N.onDestroy(()=>this.destroy())}_queueEvent(N,I){Ie(this._queuedCallbacks,N,[]).push(I)}onDone(N){this.queued&&this._queueEvent("done",N),this._player.onDone(N)}onStart(N){this.queued&&this._queueEvent("start",N),this._player.onStart(N)}onDestroy(N){this.queued&&this._queueEvent("destroy",N),this._player.onDestroy(N)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(N){this.queued||this._player.setPosition(N)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(N){const I=this._player;I.triggerCallback&&I.triggerCallback(N)}}function Pa(z){return z&&1===z.nodeType}function es(z,N){const I=z.style.display;return z.style.display=N??"none",I}function Yr(z,N,I,H,J){const ne=[];I.forEach($t=>ne.push(es($t)));const ot=[];H.forEach(($t,Tn)=>{const ii=new Map;$t.forEach($n=>{const Vi=N.computeStyle(Tn,$n,J);ii.set($n,Vi),(!Vi||0==Vi.length)&&(Tn[dr]=lr,ot.push(Tn))}),z.set(Tn,ii)});let jt=0;return I.forEach($t=>es($t,ne[jt++])),ot}function Aa(z,N){const I=new Map;if(z.forEach(jt=>I.set(jt,[])),0==N.length)return I;const J=new Set(N),ne=new Map;function ot(jt){if(!jt)return 1;let $t=ne.get(jt);if($t)return $t;const Tn=jt.parentNode;return $t=I.has(Tn)?Tn:J.has(Tn)?1:ot(Tn),ne.set(jt,$t),$t}return N.forEach(jt=>{const $t=ot(jt);1!==$t&&I.get($t).push(jt)}),I}function Ha(z,N){z.classList?.add(N)}function Za(z,N){z.classList?.remove(N)}function ks(z,N,I){tt(I).onDone(()=>z.processLeaveNode(N))}function Nr(z,N){for(let I=0;IJ.add(ne)):N.set(z,H),I.delete(z),!0}class Es{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(N,I)=>{};constructor(N,I,H){this._driver=I,this._normalizer=H,this._transitionEngine=new Hi(N.body,I,H),this._timelineEngine=new Is(N.body,I,H),this._transitionEngine.onRemovalComplete=(J,ne)=>this.onRemovalComplete(J,ne)}registerTrigger(N,I,H,J,ne){const ot=N+"-"+J;let jt=this._triggerCache[ot];if(!jt){const $t=[],ii=Xi(this._driver,ne,$t,[]);if($t.length)throw function qt(){return new p.buA(3404,!1)}();jt=function Zr(z,N,I){return new js(z,N,I)}(J,ii,this._normalizer),this._triggerCache[ot]=jt}this._transitionEngine.registerTrigger(I,J,jt)}register(N,I){this._transitionEngine.register(N,I)}destroy(N,I){this._transitionEngine.destroy(N,I)}onInsert(N,I,H,J){this._transitionEngine.insertNode(N,I,H,J)}onRemove(N,I,H){this._transitionEngine.removeNode(N,I,H)}disableAnimations(N,I){this._transitionEngine.markElementAsDisabled(N,I)}process(N,I,H,J){if("@"==H.charAt(0)){const[ne,ot]=le(H);this._timelineEngine.command(ne,I,ot,J)}else this._transitionEngine.trigger(N,I,H,J)}listen(N,I,H,J,ne){if("@"==H.charAt(0)){const[ot,jt]=le(H);return this._timelineEngine.listen(ot,I,jt,ne)}return this._transitionEngine.listen(N,I,H,J,ne)}flush(N=-1){this._transitionEngine.flush(N)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(N){this._transitionEngine.afterFlushAnimationsDone(N)}}let pt=(()=>{class z{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(I,H,J){this._element=I,this._startStyles=H,this._endStyles=J;let ne=z.initialStylesByElement.get(I);ne||z.initialStylesByElement.set(I,ne=new Map),this._initialStyles=ne}start(){this._state<1&&(this._startStyles&&Pt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Pt(this._element,this._initialStyles),this._endStyles&&(Pt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(z.initialStylesByElement.delete(this._element),this._startStyles&&(Yt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Yt(this._element,this._endStyles),this._endStyles=null),Pt(this._element,this._initialStyles),this._state=3)}}return z})();function Ve(z){let N=null;return z.forEach((I,H)=>{(function Rt(z){return"display"===z||"position"===z})(H)&&(N=N||new Map,N.set(H,I))}),N}class vn{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(N,I,H,J){this.element=N,this.keyframes=I,this.options=H,this._specialStyles=J,this._duration=H.duration,this._delay=H.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(N=>N()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;const N=this.keyframes,I=this._triggerWebAnimation(this.element,N,this.options);if(!I)return this._onFinish(),null;this.domPlayer=I,this._finalKeyframe=N.length?N[N.length-1]:new Map;const H=()=>this._onFinish();return I.addEventListener("finish",H),this.onDestroy(()=>{I.removeEventListener("finish",H)}),I}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(N){const I=[];return N.forEach(H=>{I.push(Object.fromEntries(H))}),I}_triggerWebAnimation(N,I,H){const J=this._convertKeyframesToObject(I);try{return N.animate(J,H)}catch{return null}}onStart(N){this._originalOnStartFns.push(N),this._onStartFns.push(N)}onDone(N){this._originalOnDoneFns.push(N),this._onDoneFns.push(N)}onDestroy(N){this._onDestroyFns.push(N)}play(){const N=this._buildPlayer();N&&(this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),N.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(N=>N()),this._onDestroyFns=[])}setPosition(N){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=N*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){const N=new Map;this.hasStarted()&&this._finalKeyframe.forEach((H,J)=>{"offset"!==J&&N.set(J,this._finished?H:ui(this.element,J))}),this.currentSnapshot=N}triggerCallback(N){const I="start"===N?this._onStartFns:this._onDoneFns;I.forEach(H=>H()),I.length=0}}class Ni{validateStyleProperty(N){return!0}validateAnimatableStyleProperty(N){return!0}containsElement(N,I){return He(N,I)}getParentElement(N){return ze(N)}query(N,I,H){return Wt(N,I,H)}computeStyle(N,I,H){return ui(N,I)}animate(N,I,H,J,ne,ot=[]){const $t={duration:H,delay:J,fill:0==J?"both":"forwards"};ne&&($t.easing=ne);const Tn=new Map,ii=ot.filter(Qi=>Qi instanceof vn);(function Nn(z,N){return 0===z||0===N})(H,J)&&ii.forEach(Qi=>{Qi.currentSnapshot.forEach((Di,Fi)=>Tn.set(Fi,Di))});let $n=function Ze(z){return z.length?z[0]instanceof Map?z:z.map(N=>new Map(Object.entries(N))):[]}(I).map(Qi=>new Map(Qi));$n=function jn(z,N,I){if(I.size&&N.length){let H=N[0],J=[];if(I.forEach((ne,ot)=>{H.has(ot)||J.push(ot),H.set(ot,ne)}),J.length)for(let ne=1;neot.set(jt,ui(z,jt)))}}return N}(N,$n,Tn);const Vi=function ct(z,N){let I=null,H=null;return Array.isArray(N)&&N.length?(I=Ve(N[0]),N.length>1&&(H=Ve(N[N.length-1]))):N instanceof Map&&(I=Ve(N)),I||H?new pt(z,I,H):null}(N,$n);return new vn(N,$n,$t,Vi)}}const Vn="@.disabled";class _t{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(N,I,H,J){this.namespaceId=N,this.delegate=I,this.engine=H,this._onDestroy=J}get data(){return this.delegate.data}destroyNode(N){this.delegate.destroyNode?.(N)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(N,I){return this.delegate.createElement(N,I)}createComment(N){return this.delegate.createComment(N)}createText(N){return this.delegate.createText(N)}appendChild(N,I){this.delegate.appendChild(N,I),this.engine.onInsert(this.namespaceId,I,N,!1)}insertBefore(N,I,H,J=!0){this.delegate.insertBefore(N,I,H),this.engine.onInsert(this.namespaceId,I,N,J)}removeChild(N,I,H,J){J?this.delegate.removeChild(N,I,H,J):this.parentNode(I)&&this.engine.onRemove(this.namespaceId,I,this.delegate)}selectRootElement(N,I){return this.delegate.selectRootElement(N,I)}parentNode(N){return this.delegate.parentNode(N)}nextSibling(N){return this.delegate.nextSibling(N)}setAttribute(N,I,H,J){this.delegate.setAttribute(N,I,H,J)}removeAttribute(N,I,H){this.delegate.removeAttribute(N,I,H)}addClass(N,I){this.delegate.addClass(N,I)}removeClass(N,I){this.delegate.removeClass(N,I)}setStyle(N,I,H,J){this.delegate.setStyle(N,I,H,J)}removeStyle(N,I,H){this.delegate.removeStyle(N,I,H)}setProperty(N,I,H){"@"==I.charAt(0)&&I==Vn?this.disableAnimations(N,!!H):this.delegate.setProperty(N,I,H)}setValue(N,I){this.delegate.setValue(N,I)}listen(N,I,H,J){return this.delegate.listen(N,I,H,J)}disableAnimations(N,I){this.engine.disableAnimations(N,I)}}class xn extends _t{factory;constructor(N,I,H,J,ne){super(I,H,J,ne),this.factory=N,this.namespaceId=I}setProperty(N,I,H){"@"==I.charAt(0)?"."==I.charAt(1)&&I==Vn?this.disableAnimations(N,H=void 0===H||!!H):this.engine.process(this.namespaceId,N,I.slice(1),H):this.delegate.setProperty(N,I,H)}listen(N,I,H,J){if("@"==I.charAt(0)){const ne=function Bn(z){switch(z){case"body":return document.body;case"document":return document;case"window":return window;default:return z}}(N);let ot=I.slice(1),jt="";return"@"!=ot.charAt(0)&&([ot,jt]=function wi(z){const N=z.indexOf(".");return[z.substring(0,N),z.slice(N+1)]}(ot)),this.engine.listen(this.namespaceId,ne,ot,jt,$t=>{this.factory.scheduleListenerCallback($t._data||-1,H,$t)})}return this.delegate.listen(N,I,H,J)}}class Ea{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(N,I,H){this.delegate=N,this.engine=I,this._zone=H,I.onRemovalComplete=(J,ne)=>{ne?.removeChild(null,J)}}createRenderer(N,I){const J=this.delegate.createRenderer(N,I);if(!N||!I?.data?.animation){const Tn=this._rendererCache;let ii=Tn.get(J);return ii||(ii=new _t("",J,this.engine,()=>Tn.delete(J)),Tn.set(J,ii)),ii}const ne=I.id,ot=I.id+"-"+this._currentId;this._currentId++,this.engine.register(ot,N);const jt=Tn=>{Array.isArray(Tn)?Tn.forEach(jt):this.engine.registerTrigger(ne,ot,N,Tn.name,Tn)};return I.data.animation.forEach(jt),new xn(this,ot,J,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(N,I,H){if(N>=0&&NI(H));const J=this._animationCallbacksBuffer;0==J.length&&queueMicrotask(()=>{this._zone.run(()=>{J.forEach(ne=>{const[ot,jt]=ne;ot(jt)}),this._animationCallbacksBuffer=[]})}),J.push([I,H])}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(N){this.engine.flush(),this.delegate.componentReplaced?.(N)}}const Sr=[{provide:sa,useFactory:function qo(){return new dn}},{provide:Es,useClass:(()=>{class z extends Es{constructor(I,H,J){super(I,H,J)}ngOnDestroy(){this.flush()}static \u0275fac=function(H){return new(H||z)(p.KVO(p.qQL),p.KVO(aa),p.KVO(sa))};static \u0275prov=p.jDH({token:z,factory:z.\u0275fac})}return z})()},{provide:e._9s,useFactory:function yl(z,N,I){return new Ea(z,N,I)},deps:[h.mE,Es,e.SKi]}],ts=[{provide:aa,useClass:Xn},{provide:e.bc$,useValue:"NoopAnimations"},...Sr],Mo=[{provide:aa,useFactory:()=>new Ni},{provide:e.bc$,useFactory:()=>"BrowserAnimations"},...Sr];let Eo=(()=>{class z{static withConfig(I){return{ngModule:z,providers:I.disableAnimations?ts:Mo}}static \u0275fac=function(H){return new(H||z)};static \u0275mod=e.$C({type:z});static \u0275inj=p.G2t({providers:Mo,imports:[T]})}return z})();var hr=l(99327),ns=l(29330),vi=l(59640),Vo=l(11747),Go=l(983),fl=l(71985),ws=l(7673),Ho=l(57786),fo=l(47242),xl=l(92771),zl=l(97647),za=l(5964),fr=l(96354),Cl=l(70274),to=l(43236),wo=l(28211),mo=l(39974),So=l(58750),jo=l(81853),ml=l(54360),no=l(45225);const Ml=(0,jo.L)(z=>function(I=null){z(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=I});function El(z){throw new Ml(z)}var ao=l(70152),$r=l(99437),Ss=l(96697),mi=l(56977),Xs=l(25558),ro=l(65245),Os=l(40941),so=l(53993),el=l(31943),Ul=l(89079);const To="PERFORM_ACTION",is="ROLLBACK",tl="TOGGLE_ACTION",je="JUMP_TO_STATE",Be="JUMP_TO_ACTION",Ke="IMPORT_STATE",bt="LOCK_CHANGES",Ht="PAUSE_RECORDING";class sn{constructor(N,I){if(this.action=N,this.timestamp=I,this.type=To,typeof N.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}class Rn{constructor(){this.type="REFRESH"}}class di{constructor(N){this.timestamp=N,this.type="RESET"}}class ji{constructor(N){this.timestamp=N,this.type=is}}class Ia{constructor(N){this.timestamp=N,this.type="COMMIT"}}class rr{constructor(){this.type="SWEEP"}}class Fr{constructor(N){this.id=N,this.type=tl}}class as{constructor(N){this.index=N,this.type=je}}class oo{constructor(N){this.actionId=N,this.type=Be}}class lo{constructor(N){this.nextLiftedState=N,this.type=Ke}}class Sl{constructor(N){this.status=N,this.type=bt}}class mc{constructor(N){this.status=N,this.type=Ht}}const Tl=new p.nKC("@ngrx/store-devtools Options"),qc=new p.nKC("@ngrx/store-devtools Initial Config");function po(){return null}function gc(z){const N={maxAge:!1,monitor:po,actionSanitizer:void 0,stateSanitizer:void 0,name:"NgRx Store DevTools",serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},I="function"==typeof z?z():z,J=I.features||!!I.logOnly&&{pause:!0,export:!0,test:!0}||N.features;!0===J.import&&(J.import="custom");const ne=Object.assign({},N,{features:J},I);if(ne.maxAge&&ne.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${ne.maxAge}`);return ne}function Ps(z,N){return z.filter(I=>N.indexOf(I)<0)}function Do(z){const{computedStates:N,currentStateIndex:I}=z;if(I>=N.length){const{state:J}=N[N.length-1];return J}const{state:H}=N[I];return H}function Ao(z){return new sn(z,+Date.now())}function kc(z,N){return Object.keys(N).reduce((I,H)=>{const J=Number(H);return I[J]=pl(z,N[J],J),I},{})}function pl(z,N,I){return{...N,action:z(N.action,I)}}function il(z,N){return N.map((I,H)=>({state:Lo(z,I.state,H),error:I.error}))}function Lo(z,N,I){return z(N,I)}function Dl(z){return z.predicate||z.actionsSafelist||z.actionsBlocklist}function Gl(z,N,I,H,J){const ne=I&&!I(z,N.action),ot=H&&!N.action.type.match(H.map($t=>Hl($t)).join("|")),jt=J&&N.action.type.match(J.map($t=>Hl($t)).join("|"));return ne||ot||jt}function Hl(z){return z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Al(z){return{ngZone:z?(0,p.WQX)(e.SKi):null,connectInZone:z}}let Io=(()=>{var z;class N extends vi.SS{static#e=z=()=>(this.\u0275fac=(()=>{let H;return function(ne){return(H||(H=e.xGo(N)))(ne||N)}})(),this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const jl=new p.nKC("@ngrx/store-devtools Redux Devtools Extension");let rs=(()=>{var z;class N{constructor(H,J,ne){this.config=J,this.dispatcher=ne,this.zoneConfig=Al(this.config.connectInZone),this.devtoolsExtension=H,this.createActionStreams()}notify(H,J){if(this.devtoolsExtension)if(H.type===To){if(J.isLocked||J.isPaused)return;const ne=Do(J);if(Dl(this.config)&&Gl(ne,H,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const ot=this.config.stateSanitizer?Lo(this.config.stateSanitizer,ne,J.currentStateIndex):ne,jt=this.config.actionSanitizer?pl(this.config.actionSanitizer,H,J.nextActionId):H;this.sendToReduxDevtools(()=>this.extensionConnection.send(jt,ot))}else{const ne={...J,stagedActionIds:J.stagedActionIds,actionsById:this.config.actionSanitizer?kc(this.config.actionSanitizer,J.actionsById):J.actionsById,computedStates:this.config.stateSanitizer?il(this.config.stateSanitizer,J.computedStates):J.computedStates};this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,ne,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new fl.c(H=>{const J=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=J,J.init(),J.subscribe(ne=>H.next(ne)),J.unsubscribe}):Go.w}createActionStreams(){const H=this.createChangesObservable().pipe((0,zl.u)()),J=H.pipe((0,za.p)(ii=>"START"===ii.type)),ne=H.pipe((0,za.p)(ii=>"STOP"===ii.type)),ot=H.pipe((0,za.p)(ii=>"DISPATCH"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload)),(0,Cl.H)(ii=>ii.type===Ke?this.dispatcher.pipe((0,za.p)($n=>$n.type===vi.q6),function io(z,N){const{first:I,each:H,with:J=El,scheduler:ne=N??to.E,meta:ot=null}=(0,wo.v)(z)?{first:z}:"number"==typeof z?{each:z}:z;if(null==I&&null==H)throw new TypeError("No timeout provided.");return(0,mo.N)((jt,$t)=>{let Tn,ii,$n=null,Vi=0;const Qi=Di=>{ii=(0,no.N)($t,ne,()=>{try{Tn.unsubscribe(),(0,So.Tg)(J({meta:ot,lastValue:$n,seen:Vi})).subscribe($t)}catch(Fi){$t.error(Fi)}},Di)};Tn=jt.subscribe((0,ml._)($t,Di=>{ii?.unsubscribe(),Vi++,$t.next($n=Di),H>0&&Qi(H)},void 0,void 0,()=>{ii?.closed||ii?.unsubscribe(),$n=null})),!Vi&&Qi(null!=I?"number"==typeof I?I:+I-ne.now():H)})}(1e3),(0,ao.B)(1e3),(0,fr.T)(()=>ii),(0,$r.W)(()=>(0,ws.of)(ii)),(0,Ss.s)(1)):(0,ws.of)(ii))),$t=H.pipe((0,za.p)(ii=>"ACTION"===ii.type),(0,fr.T)(ii=>this.unwrapAction(ii.payload))).pipe((0,mi.Q)(ne)),Tn=ot.pipe((0,mi.Q)(ne));this.start$=J.pipe((0,mi.Q)(ne)),this.actions$=this.start$.pipe((0,Xs.n)(()=>$t)),this.liftedActions$=this.start$.pipe((0,Xs.n)(()=>Tn))}unwrapAction(H){return"string"==typeof H?(0,eval)(`(${H})`):H}getExtensionConfig(H){const J={name:H.name,features:H.features,serialize:H.serialize,autoPause:H.autoPause??!1,trace:H.trace??!1,traceLimit:H.traceLimit??75};return!1!==H.maxAge&&(J.maxAge=H.maxAge),J}sendToReduxDevtools(H){try{H()}catch(J){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",J)}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(jl),p.KVO(Tl),p.KVO(Io))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Tr={type:vi.Zz},ft={type:"@ngrx/store-devtools/recompute"};function Tt(z,N,I,H,J){if(H)return{state:I,error:"Interrupted by an error up the chain"};let ot,ne=I;try{ne=z(I,N)}catch(jt){ot=jt.toString(),J.handleError(jt)}return{state:ne,error:ot}}function on(z,N,I,H,J,ne,ot,jt,$t){if(N>=z.length&&z.length===ne.length)return z;const Tn=z.slice(0,N),ii=ne.length-($t?1:0);for(let $n=N;$n-1?Di:Tt(I,Qi,Fi,ya,jt);Tn.push(sr)}return $t&&Tn.push(z[z.length-1]),Tn}let Mi=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii){const $n=function Hn(z,N){return{monitorState:N(void 0,{}),nextActionId:1,actionsById:{0:Ao(Tr)},stagedActionIds:[0],skippedActionIds:[],committedState:z,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}(Tn,ii.monitor),Vi=function ni(z,N,I,H,J={}){return ne=>(ot,jt)=>{let{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:$n,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}=ot||N;function sr(br){let Ba=br,Vr=$n.slice(1,Ba+1);for(let Dr=0;Dr-1===Vr.indexOf(Dr)),$n=[0,...$n.slice(Ba+1)],Qi=Fi[Ba].state,Fi=Fi.slice(Ba),Di=Di>Ba?Di-Ba:0}function vs(){Tn={0:Ao(Tr)},ii=1,$n=[0],Vi=[],Qi=Fi[Di].state,Di=0,Fi=[]}ot||(Tn=Object.create(Tn));let xa=0;switch(jt.type){case bt:ya=jt.status,xa=1/0;break;case Ht:Oa=jt.status,Oa?($n=[...$n,ii],Tn[ii]=new sn({type:"@ngrx/devtools/pause"},+Date.now()),ii++,xa=$n.length-1,Fi=Fi.concat(Fi[Fi.length-1]),Di===$n.length-2&&Di++,xa=1/0):vs();break;case"RESET":Tn={0:Ao(Tr)},ii=1,$n=[0],Vi=[],Qi=z,Di=0,Fi=[];break;case"COMMIT":vs();break;case is:Tn={0:Ao(Tr)},ii=1,$n=[0],Vi=[],Di=0,Fi=[];break;case tl:{const{id:br}=jt;Vi=-1===Vi.indexOf(br)?[br,...Vi]:Vi.filter(Vr=>Vr!==br),xa=$n.indexOf(br);break}case"SET_ACTIONS_ACTIVE":{const{start:br,end:Ba,active:Vr}=jt,Dr=[];for(let ll=br;llJ.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,$n,Vi,I,Oa),sr($n.length-J.maxAge),xa=1/0);break;case vi.q6:if(Fi.filter(Ba=>Ba.error).length>0)xa=0,J.maxAge&&$n.length>J.maxAge&&(Fi=on(Fi,xa,ne,Qi,Tn,$n,Vi,I,Oa),sr($n.length-J.maxAge),xa=1/0);else{if(!Oa&&!ya){Di===$n.length-1&&Di++;const Ba=ii++;Tn[Ba]=new sn(jt,+Date.now()),$n=[...$n,Ba],xa=$n.length-1,Fi=on(Fi,xa,ne,Qi,Tn,$n,Vi,I,Oa)}Fi=Fi.map(Ba=>({...Ba,state:ne(Ba.state,ft)})),Di=$n.length-1,J.maxAge&&$n.length>J.maxAge&&sr($n.length-J.maxAge),xa=1/0}break;default:xa=1/0}return Fi=on(Fi,xa,ne,Qi,Tn,$n,Vi,I,Oa),$t=H($t,jt),{monitorState:$t,actionsById:Tn,nextActionId:ii,stagedActionIds:$n,skippedActionIds:Vi,committedState:Qi,currentStateIndex:Di,computedStates:Fi,isLocked:ya,isPaused:Oa}}}(Tn,$n,$t,ii.monitor,ii),Qi=(0,Ho.h)((0,Ho.h)(J.asObservable().pipe((0,ro.i)(1)),ot.actions$).pipe((0,fr.T)(Ao)),H,ot.liftedActions$).pipe((0,Os.Q)(fo.T)),Di=ne.pipe((0,fr.T)(Vi)),Fi=Al(ii.connectInZone),ya=new xl.m(1);this.liftedStateSubscription=Qi.pipe((0,so.E)(Di),ki(Fi),(0,el.S)(({state:vs},[xa,br])=>{let Ba=br(vs,xa);return xa.type!==To&&Dl(ii)&&(Ba=function Vl(z,N,I,H){const J=[],ne={},ot=[];return z.stagedActionIds.forEach((jt,$t)=>{const Tn=z.actionsById[jt];Tn&&($t&&Gl(z.computedStates[$t],Tn,N,I,H)||(ne[jt]=Tn,J.push(jt),ot.push(z.computedStates[$t])))}),{...z,stagedActionIds:J,actionsById:ne,computedStates:ot}}(Ba,ii.predicate,ii.actionsSafelist,ii.actionsBlocklist)),ot.notify(xa,Ba),{state:Ba,action:xa}},{state:$n,action:null})).subscribe(({state:vs,action:xa})=>{ya.next(vs),xa.type===To&&jt.next(xa.action)}),this.extensionStartSubscription=ot.start$.pipe(ki(Fi)).subscribe(()=>{this.refresh()});const Oa=ya.asObservable(),sr=Oa.pipe((0,fr.T)(Do));Object.defineProperty(sr,"state",{value:(0,Ul.ot)(sr,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=H,this.liftedState=Oa,this.state=sr}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(H){this.dispatcher.next(H)}next(H){this.dispatcher.next(H)}error(H){}complete(){}performAction(H){this.dispatch(new sn(H,+Date.now()))}refresh(){this.dispatch(new Rn)}reset(){this.dispatch(new di(+Date.now()))}rollback(){this.dispatch(new ji(+Date.now()))}commit(){this.dispatch(new Ia(+Date.now()))}sweep(){this.dispatch(new rr)}toggleAction(H){this.dispatch(new Fr(H))}jumpToAction(H){this.dispatch(new oo(H))}jumpToState(H){this.dispatch(new as(H))}importState(H){this.dispatch(new lo(H))}lockChanges(H){this.dispatch(new Sl(H))}pauseRecording(H){this.dispatch(new mc(H))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(Io),p.KVO(vi.SS),p.KVO(vi.QU),p.KVO(rs),p.KVO(vi.sA),p.KVO(p.zcH),p.KVO(vi.N_),p.KVO(Tl))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();function ki({ngZone:z,connectInZone:N}){return I=>N?new fl.c(H=>I.subscribe({next:J=>z.run(()=>H.next(J)),error:J=>z.run(()=>H.error(J)),complete:()=>z.run(()=>H.complete())})):I}const $i=new p.nKC("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function ra(z,N){return!!z||N.monitor!==po}function ba(){const z="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&typeof window[z]<"u"?window[z]:null}function oa(z){return z.state}function mr(z={}){return(0,p.EmA)([rs,Io,Mi,{provide:qc,useValue:z},{provide:$i,deps:[jl,Tl],useFactory:ra},{provide:jl,useFactory:ba},{provide:Tl,deps:[qc],useFactory:gc},{provide:vi.h1,deps:[Mi],useFactory:oa},{provide:vi.Bh,useExisting:Io}])}let Lr=(()=>{var z;class N{static instrument(H={}){return{ngModule:N,providers:[mr(H)]}}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N}),this.\u0275inj=p.G2t({}))}return z(),N})();var bi=l(21413),Ns=l(33726),Fs=l(22806),Xo=l(1807);function Ro(z=0,N=to.E){return z<0&&(z=0),(0,Xo.O)(z,z,N)}var Ll=l(18359),gl=l(57908),Ks=l(9326),Wl=l(88141),ed=l(70980),_d=l(23294);class td{}function tc(z){return(0,p.EmA)([{provide:td,useValue:z}])}let vd=(()=>{class z{constructor(I,H){this._ngZone=H,this.timerStart$=new bi.B,this.idleDetected$=new bi.B,this.timeout$=new bi.B,this.idleMillisec=6e5,this.idleSensitivityMillisec=1e3,this.timeout=300,this.pingMillisec=12e4,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,I&&this.setConfig(I)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,Ho.h)((0,Ns.R)(window,"mousemove"),(0,Ns.R)(window,"resize"),(0,Ns.R)(document,"keydown"))),this.idle$=(0,Fs.H)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function ec(z,...N){var I,H;const J=null!==(I=(0,Ks.lI)(N))&&void 0!==I?I:to.E,ne=null!==(H=N[0])&&void 0!==H?H:null,ot=N[1]||1/0;return(0,mo.N)((jt,$t)=>{let Tn=[],ii=!1;const $n=Di=>{const{buffer:Fi,subs:ya}=Di;ya.unsubscribe(),(0,gl.o)(Tn,Di),$t.next(Fi),ii&&Vi()},Vi=()=>{if(Tn){const Di=new Ll.yU;$t.add(Di);const ya={buffer:[],subs:Di};Tn.push(ya),(0,no.N)(Di,J,()=>$n(ya),z)}};null!==ne&&ne>=0?(0,no.N)($t,J,Vi,ne,!0):ii=!0,Vi();const Qi=(0,ml._)($t,Di=>{const Fi=Tn.slice();for(const ya of Fi){const{buffer:Oa}=ya;Oa.push(Di),ot<=Oa.length&&$n(ya)}},()=>{for(;Tn?.length;)$t.next(Tn.shift().buffer);Qi?.unsubscribe(),$t.complete(),$t.unsubscribe()},void 0,()=>Tn=null);jt.subscribe(Qi)})}(this.idleSensitivityMillisec),(0,za.p)(I=>!I.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,Wl.M)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,Xs.n)(()=>this._ngZone.runOutsideAngular(()=>Ro(1e3).pipe((0,mi.Q)((0,Ho.h)(this.activityEvents$,(0,Xo.O)(this.idleMillisec).pipe((0,Wl.M)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,ed.j)(()=>{this.isIdleDetected=!1,this.idleDetected$.next(!1)}))))).subscribe(),this.setupTimer(this.timeout),this.setupPing(this.pingMillisec)}stopWatching(){this.stopTimer(),this.idleSubscription&&this.idleSubscription.unsubscribe()}stopTimer(){this.isInactivityTimer=!1,this.timerStart$.next(!1)}resetTimer(){this.stopTimer(),this.isTimeout=!1}onTimerStart(){return this.timerStart$.pipe((0,_d.F)(),(0,Xs.n)(I=>I?this.timer$:(0,ws.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,za.p)(I=>!!I),(0,Wl.M)(()=>this.isTimeout=!0),(0,fr.T)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(I){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(I):console.error("Call stopWatching() before set config values")}setConfig(I){I.idle&&(this.idleMillisec=1e3*I.idle),I.ping&&(this.pingMillisec=1e3*I.ping),I.idleSensitivity&&(this.idleSensitivityMillisec=1e3*I.idleSensitivity),I.timeout&&(this.timeout=I.timeout)}setCustomActivityEvents(I){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=I:console.error("Call stopWatching() before set custom activity events")}setupTimer(I){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,ws.of)(()=>new Date).pipe((0,fr.T)(H=>H()),(0,Xs.n)(H=>Ro(1e3).pipe((0,fr.T)(()=>Math.round(((new Date).valueOf()-H.valueOf())/1e3)),(0,Wl.M)(J=>{J>=I&&this.timeout$.next(!0)}))))})}setupPing(I){this.ping$=Ro(I).pipe((0,za.p)(()=>!this.isTimeout))}}return z.\u0275fac=function(I){return new(I||z)(p.KVO(td,8),p.KVO(e.SKi))},z.\u0275prov=p.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),z})();var co=l(38132),ja=l(43694),Ti=l(45383),Ra=l(79647),cr=l(20060),De=l(25596),at=l(52920),Jt=l(96850);const Yn=()=>({initial:!1});function gi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[1].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link)("state",e.lJ4(5,Yn)),e.R7$(),e.JRh(I.links[1].name)}}function Pi(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Wa=(()=>{var z;class N{constructor(H,J){this.store=H,this.router=J,this.faUserCog=Ti.McB,this.showBitcoind=!1,this.links=[{link:"app",name:"Application"},{link:"auth",name:"Authentication"},{link:"bconfig",name:"BitcoinD Config"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showBitcoind=!1,this.selNode=J,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-settings"]],standalone:!1,decls:16,vars:8,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["role","tab","tabindex","3","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["role","tab","tabindex","3","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Settings"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.DNE(10,gi,2,6,"div",8)(11,Pi,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(13);e.R7$(),e.Y8G("icon",ne.faUserCog),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("ngIf",!+ne.appConfig.SSO.rtlSSO),e.R7$(),e.Y8G("ngIf",ne.showBitcoind)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();var Ui=l(11771),La=l(98570),_i=l(89417),tr=l(88834),wa=l(69588),al=l(96183),ic=l(23029),go=l(10497),Xl=l(89587);function Z1(z,N){if(1&z&&(e.j41(0,"mat-option",15),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Eh(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",3,0)(2,"div",4),e.nrm(3,"fa-icon",5),e.j41(4,"span",6),e.EFF(5,"Default Node"),e.k0s()(),e.j41(6,"div",7)(7,"div",8)(8,"mat-form-field",9)(9,"mat-label"),e.EFF(10,"Default Node"),e.k0s(),e.j41(11,"mat-select",10),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.appConfig.defaultNodeIndex,J)||(ne.appConfig.defaultNodeIndex=J),p.Njj(J)}),e.DNE(12,Z1,2,3,"mat-option",11),e.k0s()()(),e.j41(13,"div",12)(14,"div",8)(15,"button",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetSettings())}),e.EFF(16,"Reset"),e.k0s(),e.j41(17,"button",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onUpdateApplicationSettings())}),e.EFF(18,"Update"),e.k0s()()()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faWindowRestore),e.R7$(8),e.R50("ngModel",I.appConfig.defaultNodeIndex),e.R7$(),e.Y8G("ngForOf",I.appConfig.nodes)}}let nd=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faWindowRestore=Ti.aFw,this.faPlus=Ti.QLR,this.previousDefaultNode=0,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(H)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateApplicationSettings(){this.appConfig.defaultNodeIndex=this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!0,message:"Default Node Updated.",config:this.appConfig}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app-settings"]],standalone:!1,decls:2,vars:1,consts:[["form","ngForm"],["fxLayout","column","fxFlex","100",1,"padding-gap-x-large",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","settings-container page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"my-2"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start start"],["autoFocus","","name","defaultNode",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary",1,"mr-1",3,"click"],["mat-flat-button","","color","primary",3,"click"],[3,"value"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,Eh,19,3,"form",2),e.k0s()),2&J&&(e.R7$(),e.Y8G("ngIf",ne.appConfig.nodes&&ne.appConfig.nodes.length&&ne.appConfig.nodes.length>0))},dependencies:[o.Sq,o.bT,_i.qT,_i.BC,_i.cb,_i.vS,_i.cV,cr.aY,tr.$z,wa.rl,wa.nJ,at.DJ,at.sA,at.UI,al.VO,ic.wT,go.Ld,Xl.N],encapsulation:2}))}return z(),N})();var vc=l(82852),Oo=l(51585),yc=l(31264),Ko=l(37541),J1=l(95416),Br=l(33746),uo=l(36013),bc=l(38288),ac=l(29157);const q1=["stepper"];function Il(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG();e.JRh(I.passwordFormLabel)}}function yd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function t1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.secretFormLabel)}}function e0(z,N){if(1&z&&e.nrm(0,"qr-code",33),2&z){const I=e.XpG(2);e.Y8G("value",I.otpauth)("size",180)}}function T2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Secret Code is required."),e.k0s())}function Rc(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",10)(1,"form",22),e.DNE(2,t1,1,1,"ng-template",23),e.j41(3,"div",24),e.DNE(4,e0,1,2,"qr-code",25),e.k0s(),e.j41(5,"div",26),e.nrm(6,"fa-icon",27),e.j41(7,"span"),e.EFF(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.k0s()(),e.j41(9,"div",28)(10,"mat-form-field",13)(11,"mat-label"),e.EFF(12,"Secret Code"),e.k0s(),e.nrm(13,"input",29),e.j41(14,"fa-icon",30),e.bIt("copied",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onCopySecret(J))}),e.k0s(),e.DNE(15,T2,2,0,"mat-error",15),e.k0s()(),e.j41(16,"div",31)(17,"button",32),e.EFF(18,"Next"),e.k0s()()()()}if(2&z){const I=e.XpG();e.Y8G("stepControl",I.secretFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.secretFormGroup),e.R7$(3),e.Y8G("ngIf",I.otpauth),e.R7$(2),e.Y8G("icon",I.faInfoCircle),e.R7$(8),e.Y8G("icon",I.faCopy)("payload",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret?null:I.secretFormGroup.controls.secret.value),e.R7$(),e.Y8G("ngIf",null==I.secretFormGroup||null==I.secretFormGroup.controls||null==I.secretFormGroup.controls.secret||null==I.secretFormGroup.controls.secret.errors?null:I.secretFormGroup.controls.secret.errors.required)}}function wh(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.tokenFormLabel)}}function D2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}function A2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is invalid."),e.k0s())}function qe(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",28)(2,"mat-form-field",13)(3,"mat-label"),e.EFF(4,"Token"),e.k0s(),e.nrm(5,"input",37),e.DNE(6,D2,2,0,"mat-error",15)(7,A2,2,0,"mat-error",15),e.k0s()(),e.j41(8,"div",31)(9,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(10),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(6),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.required),e.R7$(),e.Y8G("ngIf",null==I.tokenFormGroup||null==I.tokenFormGroup.controls||null==I.tokenFormGroup.controls.token||null==I.tokenFormGroup.controls.token.errors?null:I.tokenFormGroup.controls.token.errors.notValid),e.R7$(3),e.JRh(null!=I.tokenFormGroup&&null!=I.tokenFormGroup.controls&&null!=I.tokenFormGroup.controls.token&&null!=I.tokenFormGroup.controls.token.errors&&I.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function Dt(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Success! You are all set."),e.k0s()())}function wt(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,wh,1,1,"ng-template",12)(3,qe,11,3,"div",36)(4,Dt,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.tokenFormGroup),e.R7$(),e.Y8G("formGroup",I.tokenFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}function Ft(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.disableFormLabel)}}function ln(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",8)(1,"div",39),e.nrm(2,"fa-icon",27),e.j41(3,"span"),e.EFF(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.k0s()(),e.j41(5,"div",31)(6,"button",38),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onVerifyToken())}),e.EFF(7,"Disable"),e.k0s()()()}if(2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function An(z,N){1&z&&(e.j41(0,"div")(1,"strong"),e.EFF(2,"Two factor authentication removed from RTL."),e.k0s()())}function On(z,N){if(1&z&&(e.j41(0,"mat-step",34)(1,"form",35),e.DNE(2,Ft,1,1,"ng-template",12)(3,ln,8,1,"div",36)(4,An,3,0,"div",15),e.k0s()()),2&z){const I=e.XpG();e.Y8G("stepControl",I.disableFormGroup),e.R7$(),e.Y8G("formGroup",I.disableFormGroup),e.R7$(2),e.Y8G("ngIf",!I.flgValidated||!I.isTokenValid),e.R7$(),e.Y8G("ngIf",I.flgValidated&&I.isTokenValid)}}let ai=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.dialogRef=H,this.data=J,this.store=ne,this.formBuilder=ot,this.rtlEffects=jt,this.snackBar=$t,this.faExclamationTriangle=Ti.zpE,this.faCopy=Ti.jPR,this.faInfoCircle=Ti.iW_,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,this.flgEditable=!0,this.showDisableStepper=!1,this.passwordFormLabel="Authenticate with your RTL password",this.secretFormLabel="Scan or copy the secret",this.tokenFormLabel="Verify your authentication is working",this.disableFormLabel="Disable two factor authentication",this.passwordFormGroup=this.formBuilder.group({hiddenPassword:["",[_i.k0.required]],password:["",[_i.k0.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},_i.k0.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",_i.k0.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!this.appConfig?.enable2FA,this.secretFormGroup=this.formBuilder.group({secret:[{value:this.appConfig?.enable2FA?"":this.generateSecret(),disabled:!0},_i.k0.required]})}generateSecret(){const H=yc.authenticator.generateSecret();return this.otpauth=yc.authenticator.keyuri("","Ride The Lightning (RTL)",H),H}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ui.oz)({payload:vc(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(this.passwordFormGroup.controls.hiddenPassword.setValue(this.passwordFormGroup.controls.password.value),this.stepper.next()):(this.dialogRef.close(),this.snackBar.open("Unauthorized User. Logging out from RTL."))})}onCopySecret(H){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){if(this.appConfig?.enable2FA)this.appConfig.enable2FA=!1,this.appConfig.secret2FA="",this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication disabled successfully.",config:this.appConfig}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=yc.authenticator.check(this.tokenFormGroup.controls.token.value,this.secretFormGroup.controls.secret.value),!this.isTokenValid)return this.tokenFormGroup.controls.token.setErrors({notValid:!0}),!0;this.appConfig.enable2FA=!0,this.appConfig.secret2FA=this.secretFormGroup.controls.secret.value,this.store.dispatch((0,Ui.rc)({payload:{showSnackBar:!1,message:"Two factor authentication enabled successfully.",config:this.appConfig}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}H.selectedIndex{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(vi.il),e.rXU(_i.ze),e.rXU(Ko.H),e.rXU(J1.UG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-two-factor-auth"]],viewQuery:function(J,ne){if(1&J&&e.GBs(q1,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:30,vars:11,consts:[["stepper",""],["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","15","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","space-between",1,"my-1","pr-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100"],["autoFocus","","matInput","","type","password","tabindex","1","formControlName","password","required",""],[4,"ngIf"],["fxLayout","row",1,"mt-2"],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"mat-dialog-close"],["fxLayout","column",1,"my-1","pr-1",3,"formGroup"],["matStepLabel","","disabled","true"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start"],["errorCorrectionLevel","L",3,"value","size",4,"ngIf"],["fxFlex","100",1,"w-100","alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["autoFocus","","matInput","","type","text","tabindex","4","formControlName","secret","required",""],["matSuffix","","rtlClipboard","",3,"copied","icon","payload"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","6","type","button","matStepperNext",""],["errorCorrectionLevel","L",3,"value","size"],[3,"stepControl"],["fxLayout","column","fxLayoutAlign","start",1,"my-1","pr-1",3,"formGroup"],["fxLayout","column",4,"ngIf"],["autoFocus","","matInput","","type","text","tabindex","7","formControlName","token","required",""],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Setup Two Factor Authentication"),e.k0s()(),e.j41(6,"button",6),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"div",8)(10,"mat-vertical-stepper",9,0),e.bIt("selectionChange",function($t){return p.eBV(ot),p.Njj(ne.stepSelectionChanged($t))}),e.j41(12,"mat-step",10)(13,"form",11),e.DNE(14,Il,1,1,"ng-template",12),e.j41(15,"div",1)(16,"mat-form-field",13)(17,"mat-label"),e.EFF(18,"Password"),e.k0s(),e.nrm(19,"input",14),e.DNE(20,yd,2,0,"mat-error",15),e.k0s()(),e.j41(21,"div",16)(22,"button",17),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onAuthenticate())}),e.EFF(23,"Confirm"),e.k0s()()()(),e.DNE(24,Rc,19,8,"mat-step",18)(25,wt,5,4,"mat-step",19)(26,On,5,4,"mat-step",19),e.k0s(),e.j41(27,"div",20)(28,"button",21),e.EFF(29),e.k0s()()()()()()}2&J&&(e.R7$(6),e.Y8G("mat-dialog-close",!1),e.R7$(4),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",ne.passwordFormGroup)("editable",ne.flgEditable),e.R7$(),e.Y8G("formGroup",ne.passwordFormGroup),e.R7$(7),e.Y8G("ngIf",null==ne.passwordFormGroup||null==ne.passwordFormGroup.controls||null==ne.passwordFormGroup.controls.password||null==ne.passwordFormGroup.controls.password.errors?null:ne.passwordFormGroup.controls.password.errors.required),e.R7$(4),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",!ne.showDisableStepper),e.R7$(),e.Y8G("ngIf",ne.showDisableStepper),e.R7$(2),e.Y8G("mat-dialog-close",!1),e.R7$(),e.JRh(ne.flgValidated&&ne.isTokenValid?"Close":"Cancel"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,cr.aY,Oo.tx,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,uo.V5,uo.Ti,uo.M6,uo.F7,bc.Um,ac.U,Xl.N],encapsulation:2}))}return z(),N})();var Mt=l(4416),zi=l(53202),Wi=l(71997);const Zi=["authForm"];function Ja(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Current password is required."),e.k0s())}function Fa(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorMsg)}}function Ts(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.errorConfirmMsg)}}function _r(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",12,0)(2,"div",13),e.nrm(3,"fa-icon",6),e.j41(4,"span",7),e.EFF(5,"Password"),e.k0s()(),e.j41(6,"mat-form-field")(7,"mat-label"),e.EFF(8,"Current Password"),e.k0s(),e.j41(9,"input",14),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.currPassword,J)||(ne.currPassword=J),p.Njj(J)}),e.k0s(),e.DNE(10,Ja,2,0,"mat-error",15),e.k0s(),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"New Password"),e.k0s(),e.j41(14,"input",16),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.newPassword,J)||(ne.newPassword=J),p.Njj(J)}),e.k0s(),e.DNE(15,Fa,2,1,"mat-error",15),e.k0s(),e.j41(16,"mat-form-field")(17,"mat-label"),e.EFF(18,"Confirm New Password"),e.k0s(),e.j41(19,"input",17),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG();return e.DH7(ne.confirmPassword,J)||(ne.confirmPassword=J),p.Njj(J)}),e.k0s(),e.DNE(20,Ts,2,1,"mat-error",15),e.k0s(),e.j41(21,"div",18)(22,"button",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onResetPassword())}),e.EFF(23,"Reset"),e.k0s(),e.j41(24,"button",20),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onChangePassword())}),e.EFF(25,"Change Password"),e.k0s()()()}if(2&z){const I=e.XpG();e.R7$(3),e.Y8G("icon",I.faLock),e.R7$(6),e.R50("ngModel",I.currPassword),e.R7$(),e.Y8G("ngIf",!I.currPassword),e.R7$(4),e.R50("ngModel",I.newPassword),e.R7$(),e.Y8G("ngIf",I.matchOldAndNewPasswords()),e.R7$(4),e.R50("ngModel",I.confirmPassword),e.R7$(),e.Y8G("ngIf",I.matchNewPasswords())}}let vr=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.store=J,this.actions=ne,this.router=ot,this.sessionService=jt,this.faInfoCircle=Ti.iW_,this.faUserLock=Ti.aAJ,this.faUserClock=Ti.ld_,this.faLock=Ti.DW4,this.currPassword="",this.newPassword="",this.confirmPassword="",this.errorMsg="",this.errorConfirmMsg="",this.initializeNodeData=!1,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.initializeNodeData="true"===this.sessionService.getItem("defaultPassword"),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.appConfig=H,this.logger.info(this.appConfig)}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.RESET_PASSWORD_RES)).subscribe(H=>{if(Mt.Ah.includes(this.currPassword.toLowerCase()))switch(this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||Mt.Ah.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ui.xw)({payload:{currPassword:vc(this.currPassword).toString(),newPassword:vc(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let H=!1;return this.form&&this.form.controls&&this.form.controls.newpassword&&(this.newPassword?""!==this.currPassword&&""!==this.newPassword&&this.currPassword===this.newPassword?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg="Old and New password cannot be same.",H=!0):Mt.Ah.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=Mt.Ah?.reduce((J,ne,ot)=>ot{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(ja.Ix),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-auth-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Zi,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:15,vars:4,consts:[["authForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],[1,"my-2"],["fxLayout","column","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["matInput","","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModelChange","ngModel"],["matInput","","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModelChange","ngModel"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"]],template:function(J,ne){1&J&&(e.j41(0,"div",1),e.DNE(1,_r,26,7,"form",2),e.nrm(2,"mat-divider",3),e.j41(3,"div",4)(4,"div",5),e.nrm(5,"fa-icon",6),e.j41(6,"span",7),e.EFF(7,"Two Factor Authentication"),e.k0s()(),e.j41(8,"div",8),e.nrm(9,"fa-icon",9),e.j41(10,"span"),e.EFF(11,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.k0s()(),e.j41(12,"div",10)(13,"button",11),e.bIt("click",function(){return ne.on2FAuth()}),e.EFF(14),e.k0s()()()()),2&J&&(e.R7$(),e.Y8G("ngIf",null==ne.appConfig?null:ne.appConfig.allowPasswordUpdate),e.R7$(4),e.Y8G("icon",ne.faUserClock),e.R7$(4),e.Y8G("icon",ne.faInfoCircle),e.R7$(5),e.JRh(ne.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.TL,Wi.q,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();var yr=l(3902);function Bs(z,N){1&z&&e.nrm(0,"mat-divider",7)}function rl(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,Bs,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function Ys(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function rc(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function sl(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function Sh(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,Ys,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,rc,2,1,"h4",12),e.k0s(),e.DNE(5,sl,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function xc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,Sh,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let t0=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-bitcoin-config"]],standalone:!1,decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,rl,5,4,"div",2)(3,xc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();function Nm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}let K4=(()=>{var z;class N{constructor(H,J,ne){this.dialogRef=H,this.store=J,this.rtlEffects=ne,this.password="",this.isAuthenticated=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,Ss.s)(1)).subscribe(H=>{"ERROR"!==H?(this.isAuthenticated=!0,this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ui.oz)({payload:vc(this.password)}))}onClose(){this.store.dispatch((0,Ui.R$)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-is-authorized"]],standalone:!1,decls:18,vars:2,consts:[["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","type","password","id","password","name","password","tabindex","1","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e.EFF(5,"Authenticate with your RTL Password"),e.k0s()(),e.j41(6,"button",5),e.bIt("click",function(){return ne.onClose()}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"mat-label"),e.EFF(12,"Password"),e.k0s(),e.j41(13,"input",8),e.mxI("ngModelChange",function(jt){return e.DH7(ne.password,jt)||(ne.password=jt),jt}),e.k0s(),e.DNE(14,Nm,2,0,"mat-error",9),e.k0s(),e.j41(15,"div",10)(16,"button",11),e.bIt("click",function(){return ne.onAuthenticate()}),e.EFF(17,"Confirm"),e.k0s()()()()()()),2&J&&(e.R7$(13),e.R50("ngModel",ne.password),e.R7$(),e.Y8G("ngIf",!ne.password))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const n0=()=>({initial:!1});function i0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[2].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link)("state",e.lJ4(5,n0)),e.R7$(),e.JRh(I.links[2].name)}}function n1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",14),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.activeLink=J.links[3].link)}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[3].link))("active",I.activeLink===I.links[3].link),e.R7$(),e.JRh(I.links[3].name)}}function bd(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showLnConfigClicked())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("active",I.activeLink===I.links[4].link),e.R7$(),e.JRh(I.links[4].name)}}let Th=(()=>{var z;class N{constructor(H,J,ne,ot){this.store=H,this.router=J,this.rtlEffects=ne,this.activatedRoute=ot,this.faTools=Ti.nsx,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodesettings",name:"Node Settings"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){const H=this.links.find(J=>this.router.url.includes(J.link));this.activeLink=H?H.link:this.links[0].link,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeLink=ne?ne.link:this.links[0].link}}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{switch(this.showLnConfig=!1,this.selNode=J,this.selNode.lnImplementation?.toUpperCase()){case"CLN":this.lnImplementationStr="Core Lightning Config";break;case"ECL":this.lnImplementationStr="Eclair Config";break;default:this.lnImplementationStr="LND Config"}this.selNode.authentication&&this.selNode.authentication.configPath&&""!==this.selNode.authentication.configPath.trim()&&(this.links[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.appConfig.SSO.rtlSSO?(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})):(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"50rem",data:{component:K4}}})),this.rtlEffects.closeAlert.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(Ko.H),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-config"]],standalone:!1,decls:19,vars:13,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","state","click",4,"ngIf"],["tabindex","4","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","5","role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active","state"],["tabindex","4","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","5","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","active"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3,"Node Config"),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6)(8,"div",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[0].link)}),e.EFF(9),e.k0s(),e.j41(10,"div",8),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.activeLink=ne.links[1].link)}),e.EFF(11),e.k0s(),e.DNE(12,i0,2,6,"div",9)(13,n1,2,4,"div",10)(14,bd,2,2,"div",11),e.k0s(),e.nrm(15,"mat-tab-nav-panel",null,0),e.j41(17,"div",12),e.nrm(18,"router-outlet"),e.k0s()()()()}if(2&J){const ot=e.sdS(16);e.R7$(),e.Y8G("icon",ne.faTools),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[0].link))("active",ne.activeLink===ne.links[0].link),e.R7$(),e.JRh(ne.links[0].name),e.R7$(),e.Y8G("routerLink",e.mNQ(ne.links[1].link))("active",ne.activeLink===ne.links[1].link),e.R7$(),e.JRh(ne.links[1].name),e.R7$(),e.Y8G("ngIf","ECL"!==(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf","CLN"===(null==ne.selNode||null==ne.selNode.lnImplementation?null:ne.selNode.lnImplementation.toUpperCase())),e.R7$(),e.Y8G("ngIf",ne.showLnConfig)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();function L2(z,N){1&z&&e.nrm(0,"mat-divider",7)}function zs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"pre",5),e.EFF(2),e.nI1(3,"json"),e.k0s(),e.DNE(4,L2,1,0,"mat-divider",6),e.k0s()),2&z){const I=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,I.configData)),e.R7$(2),e.Y8G("ngIf",""!==I.configData)}}function I2(z,N){if(1&z&&(e.j41(0,"h2"),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Dh(z,N){if(1&z&&(e.j41(0,"h4",14),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I)}}function Xa(z,N){1&z&&e.nrm(0,"mat-divider",15),2&z&&e.Y8G("inset",!0)}function k2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-card-subtitle",7),e.DNE(2,I2,2,1,"h2",10),e.k0s(),e.j41(3,"mat-card-subtitle",11),e.DNE(4,Dh,2,1,"h4",12),e.k0s(),e.DNE(5,Xa,1,1,"mat-divider",13),e.k0s()),2&z){const I=N.$implicit;e.R7$(2),e.Y8G("ngIf",I.indexOf("[")>=0),e.R7$(2),e.Y8G("ngIf",I.indexOf("[")<0),e.R7$(),e.Y8G("ngIf",I.indexOf("[")<0)}}function Cc(z,N){if(1&z&&(e.j41(0,"div",8)(1,"mat-list"),e.DNE(2,k2,6,3,"mat-list-item",9),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.Y8G("ngForOf",I.configData)}}let id=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.rtlEffects=J,this.router=ne,this.configData="",this.fileFormat="INI",this.faCog=Ti.dB,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.Dz)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{const J=H.data;this.fileFormat=H.format,this.configData=""===J||!J||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==J&&J&&"JSON"===this.fileFormat?J:"":J.split("\n")})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(Ko.H),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-lnp-config"]],standalone:!1,decls:4,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start"],["fxFlex","100","class","mb-6",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100",1,"mb-6"],[1,"pre-wrap"],["class","my-1",4,"ngIf"],[1,"my-1"],["fxFlex","100"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"m-0"],["class","ml-4",4,"ngIf"],[3,"inset",4,"ngIf"],[1,"ml-4"],[3,"inset"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.DNE(2,zs,5,4,"div",2)(3,Cc,3,1,"div",3),e.k0s()()),2&J&&(e.R7$(2),e.Y8G("ngIf",""!==ne.configData&&"JSON"===ne.fileFormat),e.R7$(),e.Y8G("ngIf",""!==ne.configData&&("INI"===ne.fileFormat||"HOCON"===ne.fileFormat)))},dependencies:[o.Sq,o.bT,De.Lc,yr.jt,yr.YE,Wi.q,at.DJ,at.sA,at.UI,o.TG],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();var _o=l(82571),ss=l(9454),i1=l(5951),ol=l(16038),xd=l(30450);const a1=z=>({skin:!0,"selected-color":z});function r1(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"fa-icon",42),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("icon",I.symbol)}}function R2(z,N){if(1&z&&(e.j41(0,"span",41),e.nrm(1,"span",43),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("innerHTML",I.symbol,e.npT)}}function a0(z,N){if(1&z&&(e.j41(0,"mat-option",39),e.DNE(1,r1,2,1,"span",40)(2,R2,2,1,"span",40),e.EFF(3),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.id),e.R7$(),e.Y8G("ngIf",I&&"FA"===I.iconType),e.R7$(),e.Y8G("ngIf",I&&"SVG"===I.iconType),e.R7$(),e.Lme(" ",I.name," (",I.id,") ")}}function s1(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Currency unit is required."),e.k0s())}function Mc(z,N){if(1&z&&(e.j41(0,"mat-radio-button",44),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I)("checked",H.selNode.settings.userPersona===I),e.R7$(),e.SpI(" ",e.bMT(2,3,I)," ")}}function O2(z,N){if(1&z&&(e.j41(0,"mat-radio-button",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI("",I.name," ")}}function r0(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",46)(1,"div",47),e.nI1(2,"lowercase"),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.changeThemeColor(J.id))}),e.k0s(),e.EFF(3),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.HbH(e.bMT(2,4,I.id)),e.Y8G("ngClass",e.eq3(6,a1,H.selectedThemeColor===I.id)),e.R7$(2),e.SpI(" ",I.name," ")}}let Cd=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.sanitizer=ot,this.faBarsStaggered=Ti.o97,this.faExclamationTriangle=Ti.zpE,this.faMoneyBillAlt=Ti.iy8,this.faPaintBrush=Ti._eQ,this.faInfoCircle=Ti.iW_,this.faEyeSlash=Ti.k6j,this.userPersonas=[Mt.HW.OPERATOR,Mt.HW.MERCHANT],this.currencyUnits=Mt.Zi,this.themeModes=Mt.Bv.modes,this.themeColors=Mt.Bv.themes,this.selectedThemeMode=Mt.Bv.modes[0],this.selectedThemeColor=Mt.Bv.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.currencyUnits.map(H=>("SVG"===H.iconType&&"string"==typeof H.symbol&&(H.symbol=H.symbol.replace('{this.selNode=JSON.parse(JSON.stringify(H)),this.selectedThemeMode=this.themeModes.find(J=>this.selNode.settings.themeMode===J.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(H)})}toggleSettings(H,J){this.selNode.settings[H]=!this.selNode.settings[H]}changeThemeColor(H){this.selectedThemeColor=H,this.selNode.settings.themeColor=H}chooseThemeMode(){this.selNode.settings.themeMode=this.selectedThemeMode.id}onFiatConversionChange(H){this.selNode.settings.fiatConversion||delete this.selNode.settings.currencyUnit}onUpdateNodeSettings(){if(this.selNode.settings.fiatConversion&&!this.selNode.settings.currencyUnit)return!0;this.selNode.settings.blockExplorerUrl=this.selNode.settings.blockExplorerUrl.replace(/\/$/,""),this.logger.info(this.selNode.settings),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onResetSettings(){const H=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(J=>J.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.NO_SPINNER,prevLnNodeIndex:+H,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(P.up))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-node-settings"]],standalone:!1,decls:100,vars:21,consts:[["form","ngForm"],["currencyUnit","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["href","https://mempool.space/","target","blank"],["fxLayout","row wrap","fxLayoutAlign","start center"],["fxLayout","column","fxFlex","100"],["matInput","","name","blockExplorerUrl",3,"ngModelChange","ngModel"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModelChange","change","ngModel"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["tabindex","2","color","primary","name","fiatConversion",1,"mr-2",3,"ngModelChange","change","ngModel"],["fxFlex","25"],["autoFocus","","tabindex","3","name","currencyUnit",3,"ngModelChange","disabled","required","ngModel"],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-0"],["fxLayout","column","fxLayoutAlign","start start","fxFlex","100"],["color","primary","tabindex","1","name","userPersona",1,"radio-group",3,"ngModelChange","ngModel"],["class","radio-text mr-4",3,"value","checked",4,"ngFor","ngForOf"],[1,"mt-1"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],["color","primary","name","themeMode",1,"radio-group",3,"ngModelChange","change","ngModel"],["tabindex","5","class","radio-text mr-4",3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxLayout.gt-xs","row","fxFlex","100","fxLayoutAlign","space-between stretch","fxLayoutAlign.gt-xs","start stretch"],["fxLayout","column","fxFlex.gt-xs","50","fxFlex.gt-md","40","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","row","class","theme-name",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start start",1,"mt-1"],["fxLayout","row"],["mat-stroked-button","","color","primary","tabindex","10",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","11",3,"click"],[3,"value"],["class","mr-1",4,"ngIf"],[1,"mr-1"],[3,"icon"],["fxLayoutAlign","center center",3,"innerHTML"],[1,"radio-text","mr-4",3,"value","checked"],["tabindex","5",1,"radio-text","mr-4",3,"value"],["fxLayout","row",1,"theme-name"],["tabindex","9",3,"click","ngClass"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"mat-accordion",4)(4,"mat-expansion-panel",5)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e.nrm(7,"fa-icon",6),e.j41(8,"span",7),e.EFF(9,"Block Explorer"),e.k0s()()(),e.j41(10,"div",8)(11,"div",9),e.nrm(12,"fa-icon",10),e.j41(13,"span"),e.EFF(14,"Configure your own blockchain explorer url or "),e.j41(15,"strong")(16,"a",11),e.EFF(17,"mempool.space"),e.k0s()(),e.EFF(18," will be used."),e.k0s()(),e.j41(19,"div",12)(20,"mat-form-field",13)(21,"mat-label"),e.EFF(22,"Block Explorer URL"),e.k0s(),e.j41(23,"input",14),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.blockExplorerUrl,$t)||(ne.selNode.settings.blockExplorerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(24,"mat-hint"),e.EFF(25,"Blockchain explorer URL, eg. https://mempool.space or https://blockstream.info"),e.k0s()()()()(),e.j41(26,"mat-expansion-panel",5)(27,"mat-expansion-panel-header")(28,"mat-panel-title"),e.nrm(29,"fa-icon",6),e.j41(30,"span",7),e.EFF(31,"Open Unannounced Channels"),e.k0s()()(),e.j41(32,"div",8)(33,"div",15),e.nrm(34,"fa-icon",10),e.j41(35,"span"),e.EFF(36,"Use this control to toggle setting which defaults to opening unannounced channels only."),e.k0s()(),e.j41(37,"div",12)(38,"mat-slide-toggle",16),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.unannouncedChannels,$t)||(ne.selNode.settings.unannouncedChannels=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(!ne.selNode.settings.unannouncedChannels)}),e.EFF(39,"Open Unannounced Channels"),e.k0s()()()(),e.j41(40,"mat-expansion-panel",5)(41,"mat-expansion-panel-header")(42,"mat-panel-title"),e.nrm(43,"fa-icon",6),e.j41(44,"span",7),e.EFF(45,"Balance Display"),e.k0s()()(),e.j41(46,"div",8)(47,"div",9),e.nrm(48,"fa-icon",10),e.j41(49,"span"),e.EFF(50,"Fiat conversion calls "),e.j41(51,"strong")(52,"a",17),e.EFF(53,"Blockchain.com"),e.k0s()(),e.EFF(54," API to get conversion rates."),e.k0s()(),e.j41(55,"div",12)(56,"mat-slide-toggle",18),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.fiatConversion,$t)||(ne.selNode.settings.fiatConversion=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onFiatConversionChange($t))}),e.EFF(57,"Enable Fiat Conversion"),e.k0s(),e.j41(58,"mat-form-field",19)(59,"mat-label"),e.EFF(60,"Fiat Currency"),e.k0s(),e.j41(61,"mat-select",20,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.currencyUnit,$t)||(ne.selNode.settings.currencyUnit=$t),p.Njj($t)}),e.DNE(63,a0,4,5,"mat-option",21),e.k0s(),e.DNE(64,s1,2,0,"mat-error",22),e.k0s()()()(),e.j41(65,"mat-expansion-panel",5)(66,"mat-expansion-panel-header")(67,"mat-panel-title"),e.nrm(68,"fa-icon",6),e.j41(69,"span",7),e.EFF(70,"Customization"),e.k0s()()(),e.j41(71,"div",8)(72,"div",23),e.nrm(73,"fa-icon",10),e.j41(74,"span"),e.EFF(75,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.k0s()(),e.j41(76,"div",24)(77,"h4"),e.EFF(78,"Dashboard Layout"),e.k0s(),e.j41(79,"mat-radio-group",25),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.userPersona,$t)||(ne.selNode.settings.userPersona=$t),p.Njj($t)}),e.DNE(80,Mc,3,5,"mat-radio-button",26),e.k0s()(),e.nrm(81,"mat-divider",27),e.j41(82,"div",28)(83,"h4"),e.EFF(84,"Mode"),e.k0s(),e.j41(85,"mat-radio-group",29),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selectedThemeMode,$t)||(ne.selectedThemeMode=$t),p.Njj($t)}),e.bIt("change",function(){return p.eBV(ot),p.Njj(ne.chooseThemeMode())}),e.DNE(86,O2,2,2,"mat-radio-button",30),e.k0s()(),e.nrm(87,"mat-divider",27),e.j41(88,"div",31)(89,"div",32)(90,"h4"),e.EFF(91,"Themes"),e.k0s(),e.j41(92,"div",33),e.DNE(93,r0,4,8,"span",34),e.k0s()()()()()()(),e.j41(94,"div",35)(95,"div",36)(96,"button",37),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetSettings())}),e.EFF(97,"Reset"),e.k0s(),e.j41(98,"button",38),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateNodeSettings())}),e.EFF(99,"Update"),e.k0s()()()()}2&J&&(e.R7$(7),e.Y8G("icon",ne.faBarsStaggered),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(11),e.R50("ngModel",ne.selNode.settings.blockExplorerUrl),e.R7$(6),e.Y8G("icon",ne.faEyeSlash),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(4),e.R50("ngModel",ne.selNode.settings.unannouncedChannels),e.R7$(5),e.Y8G("icon",ne.faMoneyBillAlt),e.R7$(5),e.Y8G("icon",ne.faExclamationTriangle),e.R7$(8),e.R50("ngModel",ne.selNode.settings.fiatConversion),e.R7$(5),e.Y8G("disabled",!ne.selNode.settings.fiatConversion)("required",ne.selNode.settings.fiatConversion),e.R50("ngModel",ne.selNode.settings.currencyUnit),e.R7$(2),e.Y8G("ngForOf",ne.currencyUnits),e.R7$(),e.Y8G("ngIf",ne.selNode.settings.fiatConversion&&!ne.selNode.settings.currencyUnit),e.R7$(4),e.Y8G("icon",ne.faPaintBrush),e.R7$(5),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.R50("ngModel",ne.selNode.settings.userPersona),e.R7$(),e.Y8G("ngForOf",ne.userPersonas),e.R7$(5),e.R50("ngModel",ne.selectedThemeMode),e.R7$(),e.Y8G("ngForOf",ne.themeModes),e.R7$(7),e.Y8G("ngForOf",ne.themeColors))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,o.GH,o.PV],styles:["h4[_ngcontent-%COMP%]{margin:.75rem 0 .5rem}.theme-name[_ngcontent-%COMP%]{min-width:10rem}@media only screen and (max-width:37.5em){.theme-name[_ngcontent-%COMP%]{min-width:unset}}.skin[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;border-radius:50%;cursor:pointer;margin-right:.5rem}.skin.selected-color[_ngcontent-%COMP%]{width:1rem;height:1rem;border:2px solid}.skin.purple[_ngcontent-%COMP%]{background-color:#5e4ea5}.skin.indigo[_ngcontent-%COMP%]{background-color:#3f51b5}.skin.teal[_ngcontent-%COMP%]{background-color:#00695c}.skin.pink[_ngcontent-%COMP%]{background-color:#d81b60}.skin.yellow[_ngcontent-%COMP%]{background-color:#a1842c}"]}))}return z(),N})();var s0=l(59584),o0=l(63536),zr=l(28430),Ur=l(190),Ah=l(72730),Ta=l(95428),sc=l(22598),Oc=l(12629),o1=l(40455),l1=l(52929);const kl=z=>({error:z}),l0=z=>({"error-border":z}),c0=z=>({"ml-minus-1":z}),P2=z=>({"error-border p-2":z});function d0(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function u0(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",I," ")}}function Lh(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(3);e.Y8G("value",I),e.R7$(),e.SpI(" ","ECL"===H.selNode.lnImplementation?e.bMT(2,2,I):e.i5U(3,4,I,"_")," ")}}function N2(z,N){if(1&z&&(e.j41(0,"mat-option",31),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ","desc"===I?"Descending":"Ascending"," ")}}function Ih(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG(2).$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelection.length<=2&&H.columnSelection.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function F2(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-form-field",32)(1,"mat-label"),e.EFF(2,"Column selection (Desktop Resolution)"),e.k0s(),e.j41(3,"mat-select",33),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG().$implicit;return e.DH7(ne.columnSelection,J)||(ne.columnSelection=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG().$implicit,ne=e.XpG(2);return p.Njj(ne.oncolumnSelectionChange(J))}),e.DNE(4,Ih,4,8,"mat-option",28),e.k0s()()}if(2&z){const I=e.XpG().$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection")),e.R50("ngModel",I.columnSelection),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns)}}function B2(z,N){if(1&z&&(e.j41(0,"mat-option",34),e.EFF(1),e.nI1(2,"camelCaseWithSpaces"),e.nI1(3,"camelcaseWithReplace"),e.k0s()),2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG(2);e.Y8G("value",I.column)("disabled",H.columnSelectionSM.length<=1&&H.columnSelectionSM.includes(I.column)||H.columnSelectionSM.length>=3&&!H.columnSelectionSM.includes(I.column)),e.R7$(),e.SpI(" ",I.label?I.label:"ECL"===J.selNode.lnImplementation?e.bMT(2,3,I.column):e.i5U(3,5,I.column,"_")," ")}}function Y4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s(),e.j41(5,"mat-form-field",20)(6,"mat-label"),e.EFF(7,"Records/Page"),e.k0s(),e.j41(8,"mat-select",21),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.recordsPerPage,J)||(ne.recordsPerPage=J),p.Njj(J)}),e.DNE(9,u0,2,2,"mat-option",22),e.k0s()(),e.j41(10,"mat-form-field",20)(11,"mat-label"),e.EFF(12,"Sort By"),e.k0s(),e.j41(13,"mat-select",23),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortBy,J)||(ne.sortBy=J),p.Njj(J)}),e.DNE(14,Lh,4,7,"mat-option",22),e.k0s()(),e.j41(15,"mat-form-field",20)(16,"mat-label"),e.EFF(17,"Sort Order"),e.k0s(),e.j41(18,"mat-select",24),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.sortOrder,J)||(ne.sortOrder=J),p.Njj(J)}),e.DNE(19,N2,2,2,"mat-option",22),e.k0s()(),e.DNE(20,F2,5,5,"mat-form-field",25),e.j41(21,"mat-form-field",26)(22,"mat-label"),e.EFF(23,"Column Selection (Mobile Resolution)"),e.k0s(),e.j41(24,"mat-select",27),e.mxI("ngModelChange",function(J){const ne=p.eBV(I).$implicit;return e.DH7(ne.columnSelectionSM,J)||(ne.columnSelectionSM=J),p.Njj(J)}),e.DNE(25,B2,4,8,"mat-option",28),e.k0s()(),e.j41(26,"button",29),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG().$implicit,ot=e.XpG();return p.Njj(ot.onTableReset(ne.pageId,J))}),e.j41(27,"mat-icon",30),e.EFF(28,"restore"),e.k0s()()()()}if(2&z){const I=N.$implicit,H=e.XpG().$implicit,J=e.XpG();e.R7$(3),e.SpI("",e.i5U(4,24,I.tableId,"_"),":"),e.R7$(5),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-page-size-options"))("disabled",J.nodePageDefs[H.pageId][I.tableId].disablePageSize),e.R50("ngModel",I.recordsPerPage),e.R7$(),e.Y8G("ngForOf",J.pageSizeOptions),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-by")),e.R50("ngModel",I.sortBy),e.R7$(),e.Y8G("ngForOf",I.columnSelection),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-sort-order")),e.R50("ngModel",I.sortOrder),e.R7$(),e.Y8G("ngForOf",J.sortOrders),e.R7$(),e.Y8G("ngIf",J.screenSize!==J.screenSizeEnum.XS),e.R7$(4),e.Y8G("name",e.ai1("",H.pageId,"",I.tableId,"-columns-selection-sm")),e.R50("ngModel",I.columnSelectionSM),e.R7$(),e.Y8G("ngForOf",J.nodePageDefs[H.pageId][I.tableId].allowedColumns),e.R7$(2),e.Y8G("ngClass",e.eq3(27,c0,J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM))}}function Md(z,N){if(1&z&&e.eu8(0,14),2&z){const I=e.XpG(2),H=e.sdS(18);e.Y8G("ngTemplateOutlet",H)("ngTemplateOutletContext",e.eq3(2,kl,I.errorMessage))}}function z2(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.nI1(4,"camelcaseWithReplace"),e.k0s()(),e.DNE(5,Y4,29,29,"div",16)(6,Md,1,4,"ng-container",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("ngClass",e.eq3(7,l0,(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)),e.R7$(3),e.JRh(e.i5U(4,4,I.pageId,"_")),e.R7$(2),e.Y8G("ngForOf",I.tables),e.R7$(),e.Y8G("ngIf",H.errorMessage&&(null==H.errorMessage?null:H.errorMessage.page)===I.pageId)}}function c1(z,N){if(1&z&&(e.j41(0,"mat-panel-title"),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=e.XpG().error;e.R7$(),e.SpI("Page ",e.bMT(2,1,I.page))}}function U2(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.k0s()()),2&z){const I=e.XpG().error;e.R7$(4),e.JRh(I.message)}}function h0(z,N){if(1&z&&(e.j41(0,"mat-list-item")(1,"mat-icon",39),e.EFF(2,"close"),e.k0s(),e.j41(3,"span"),e.EFF(4),e.nI1(5,"titlecase"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(4),e.Lme("Table ",e.bMT(5,2,I.table)," ",I.message)}}function kh(z,N){if(1&z&&(e.j41(0,"div",35),e.DNE(1,c1,3,3,"mat-panel-title",36),e.j41(2,"mat-list",37),e.DNE(3,U2,5,1,"mat-list-item",36)(4,h0,6,4,"mat-list-item",38),e.k0s()()),2&z){const I=N.error,H=e.XpG();e.Y8G("ngClass",e.eq3(4,P2,"unknown"===H.errorMessage.page)),e.R7$(),e.Y8G("ngIf","unknown"===H.errorMessage.page),e.R7$(2),e.Y8G("ngIf",I.message),e.R7$(),e.Y8G("ngForOf",I.tables)}}let V2=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.faPenRuler=Ti.$$g,this.faExclamationTriangle=Ti.zpE,this.screenSize="",this.screenSizeEnum=Mt.f7,this.pageSizeOptions=Mt.xp,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=Mt.jG,this.apiCallStatus=null,this.apiCallStatusEnum=Mt.wn,this.errorMessage=null,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{switch(this.selNode=H,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],Mt.mu),this.defaultSettings=Object.assign([],Mt.mu),this.nodePageDefs=Mt.Jd,this.store.select(s0.av).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.enableOffers){const jt=ot.find(ii=>"transactions"===ii.pageId),$t=jt?.tables.findIndex(ii=>"offers"===ii.tableId),Tn=jt?.tables.findIndex(ii=>"offer_bookmarks"===ii.tableId);$t>-1&&jt?.tables.splice($t,1),Tn>-1&&jt?.tables.splice(Tn,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN||J.type===Mt.TC.SAVE_PAGE_SETTINGS_CLN)).subscribe(J=>{J.type===Mt.TC.UPDATE_API_CALL_STATUS_CLN&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],Mt.X8),this.defaultSettings=Object.assign([],Mt.X8),this.nodePageDefs=Mt.WW,this.store.select(Ah.jZ).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{const ne=JSON.parse(JSON.stringify(J.pageSettings));this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ne,this.initialPageSettings=ne):(this.pageSettings=ne,this.initialPageSettings=ne),this.logger.info(ne)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL||J.type===Mt.Uu.SAVE_PAGE_SETTINGS_ECL)).subscribe(J=>{J.type===Mt.Uu.UPDATE_API_CALL_STATUS_ECL&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))});break;default:this.initialPageSettings=Object.assign([],Mt.ZC),this.defaultSettings=Object.assign([],Mt.ZC),this.nodePageDefs=Mt._1,this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[1]),(0,so.E)(this.store.select(Ra._c))).subscribe(([J,ne])=>{const ot=JSON.parse(JSON.stringify(J.pageSettings));if(this.errorMessage=null,this.apiCallStatus=J.apiCallStatus,this.apiCallStatus.status===Mt.wn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=ot,this.initialPageSettings=ot;else{if(!ne?.settings.swapServerUrl||""===ne.settings.swapServerUrl.trim()){const jt=ot.findIndex($t=>"loop"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.boltzServerUrl||""===ne.settings.boltzServerUrl.trim()){const jt=ot.findIndex($t=>"boltz"===$t.pageId);jt>-1&&ot.splice(jt,1)}if(!ne?.settings.enablePeerswap){const jt=ot.findIndex($t=>"peerswap"===$t.pageId);jt>-1&&ot.splice(jt,1)}this.pageSettings=ot,this.initialPageSettings=ot}this.logger.info(ot)}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(J=>J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND||J.type===Mt.QP.SAVE_PAGE_SETTINGS_LND)).subscribe(J=>{J.type===Mt.QP.UPDATE_API_CALL_STATUS_LND&&J.payload.status===Mt.wn.ERROR&&"SavePageSettings"===J.payload.action&&(this.errorMessage=JSON.parse(J.payload.message))})}})}oncolumnSelectionChange(H){H.columnSelection&&(!H.sortBy||!H.columnSelection.includes(H.sortBy))&&(H.sortBy=H.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((H,J)=>H||J.tables.reduce((ne,ot)=>!(ot.recordsPerPage&&ot.sortBy&&ot.sortOrder&&ot.columnSelection&&ot.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,zr.Sn)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,Ta.Sn)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Ur.Sn)({payload:this.pageSettings}))}}onTableReset(H,J){const ne=this.pageSettings.findIndex($t=>$t.pageId===H),ot=this.pageSettings[ne].tables.findIndex($t=>$t.tableId===J.tableId),jt=this.defaultSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId)||this.pageSettings.find($t=>$t.pageId===H)?.tables.find($t=>$t.tableId===J.tableId);this.pageSettings[ne].tables.splice(ot,1,jt)}onResetPageSettings(H){"current"===H?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-page-settings"]],standalone:!1,decls:19,vars:3,consts:[["form","ngForm"],["errorObjectBlock",""],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center"],["fxFlex","10",1,"mb-2"],["fxLayout","column","fxFlex","10"],["tabindex","2","required","",3,"ngModelChange","name","disabled","ngModel"],[3,"value",4,"ngFor","ngForOf"],["tabindex","3","required","",3,"ngModelChange","name","ngModel"],["tabindex","4","required","",3,"ngModelChange","name","ngModel"],["fxFlex","35","matTooltip","Select a minimum of 2 columns",4,"ngIf"],["fxLayout","column","fxFlex","15","matTooltip","Select between 1 and 3 columns"],["tabindex","5","multiple","","required","",3,"ngModelChange","name","ngModel"],[3,"value","disabled",4,"ngFor","ngForOf"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",1,"mb-2",3,"click"],["color","primary",3,"ngClass"],[3,"value"],["fxFlex","35","matTooltip","Select a minimum of 2 columns"],["tabindex","6","multiple","","required","",3,"ngModelChange","selectionChange","name","ngModel"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"form",3,0)(3,"div",4),e.nrm(4,"fa-icon",5),e.j41(5,"span",6),e.EFF(6,"Grid Settings"),e.k0s()(),e.DNE(7,d0,1,4,"ng-container",7),e.j41(8,"mat-accordion",8),e.DNE(9,z2,7,9,"mat-expansion-panel",9),e.k0s()(),e.j41(10,"div",10)(11,"button",11),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("current"))}),e.EFF(12,"Reset"),e.k0s(),e.j41(13,"button",12),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onResetPageSettings("default"))}),e.EFF(14,"Reset to Default"),e.k0s(),e.j41(15,"button",13),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdatePageSettings())}),e.EFF(16,"Save"),e.k0s()()(),e.DNE(17,kh,5,6,"ng-template",null,1,e.C5r)}2&J&&(e.R7$(4),e.Y8G("icon",ne.faPenRuler),e.R7$(3),e.Y8G("ngIf",ne.errorMessage&&"unknown"===ne.errorMessage.page),e.R7$(2),e.Y8G("ngForOf",ne.pageSettings))},dependencies:[o.YU,o.Sq,o.bT,o.T3,_i.qT,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,sc.iY,ss.BS,ss.GK,ss.Z2,ss.WN,Oc.An,wa.rl,wa.nJ,yr.jt,yr.YE,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,o1.oV,go.Ld,o.PV,l1.VD,l1.Qu],styles:[".table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:.5rem 0}"]}))}return z(),N})();function Q4(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[0].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[0].link))("active",I.activeLink===I.links[0].link),e.R7$(),e.JRh(I.links[0].name)}}function Rh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",12),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[1].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[1].link))("active",I.activeLink===I.links[1].link),e.R7$(),e.JRh(I.links[1].name)}}function Oh(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",13),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.setActiveLink(J.links[2].link))}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG();e.Y8G("routerLink",e.mNQ(I.links[2].link))("active",I.activeLink===I.links[2].link),e.R7$(),e.JRh(I.links[2].name)}}let Ph=(()=>{var z;class N{constructor(H,J,ne){this.store=H,this.router=J,this.activatedRoute=ne,this.faLayerGroup=Ti.qIE,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"noservice",name:"No Service"}],this.activeLink="",this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.setActiveLink(),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.setActiveLink(),this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute})})}setActiveLink(H){if(H&&""!==H)this.activeLink=H;else{const J=this.links.find(ne=>this.router.url.includes(ne.link));this.activeLink=J?this.selNode&&"CLN"===this.selNode.lnImplementation?this.links[1].link:J.link:this.links[this.links.length-1].link}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(ja.Ix),e.rXU(ja.nX))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-services-settings"]],standalone:!1,decls:16,vars:5,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-sub-title-container","my-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","2","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["tabindex","3","role","tab","mat-tab-link","","class","mat-tab-label",3,"routerLink","active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper"],["tabindex","1","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","2","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"],["tabindex","3","role","tab","mat-tab-link","",1,"mat-tab-label",3,"click","routerLink","active"]],template:function(J,ne){if(1&J&&(e.j41(0,"div",1)(1,"div",2),e.nrm(2,"fa-icon",3),e.j41(3,"span",4),e.EFF(4,"Services"),e.k0s()()(),e.j41(5,"div",5)(6,"mat-card")(7,"mat-card-content",5)(8,"nav",6),e.DNE(9,Q4,2,4,"div",7)(10,Rh,2,4,"div",8)(11,Oh,2,4,"div",9),e.k0s(),e.nrm(12,"mat-tab-nav-panel",null,0),e.j41(14,"div",10),e.nrm(15,"router-outlet"),e.k0s()()()()),2&J){const ot=e.sdS(13);e.R7$(2),e.Y8G("icon",ne.faLayerGroup),e.R7$(6),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngIf","LND"===ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"!==ne.selNode.lnImplementation),e.R7$(),e.Y8G("ngIf","ECL"===ne.selNode.lnImplementation)}},dependencies:[o.bT,cr.aY,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,ja.n3,co.Wk],encapsulation:2}))}return z(),N})();const G2=["form"];function Nh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop server URL is required."),e.k0s())}function H2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the loop server url with 'https://'."),e.k0s())}function Fh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Loop macaroon path is required."),e.k0s())}let d1=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableLoop=!1,this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableLoop=!(!H.settings.swapServerUrl||""===H.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableLoop=H.checked,this.enableLoop||(this.selNode.authentication.swapMacaroonPath="",this.selNode.settings.swapServerUrl="")}onUpdateService(){if(this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableLoop&&(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim()||!this.selNode.authentication.swapMacaroonPath||""===this.selNode.authentication.swapMacaroonPath.trim()))return!0;this.enableLoop||(delete this.selNode.settings.swapServerUrl,delete this.selNode.authentication.swapMacaroonPath),this.logger.info(this.selNode),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(G2,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://github.com/lightninglabs/loop","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","loop",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","swapServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","swapMacaroonPath","name","swapMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"loopd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableLoop,$t)||(ne.enableLoop=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Loop Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Loop Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.settings.swapServerUrl,$t)||(ne.selNode.settings.swapServerUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for loop server REST APIs, eg. https://127.0.0.1:8081"),e.k0s(),e.DNE(24,Nh,2,0,"mat-error",11)(25,H2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Loop Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selNode.authentication.swapMacaroonPath,$t)||(ne.selNode.authentication.swapMacaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.k0s(),e.DNE(32,Fh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableLoop),e.R7$(5),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.settings.swapServerUrl),e.R7$(4),e.Y8G("ngIf",!ne.selNode.settings.swapServerUrl&&ne.enableLoop),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableLoop),e.R7$(4),e.Y8G("required",ne.enableLoop)("disabled",!ne.enableLoop),e.R50("ngModel",ne.selNode.authentication.swapMacaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.selNode.authentication.swapMacaroonPath&&ne.enableLoop)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})();const ad=["form"];function Kl(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz server URL is required."),e.k0s())}function j2(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Specify the boltz server url with 'https://'."),e.k0s())}function Bh(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Boltz macaroon path is required."),e.k0s())}let W2=(()=>{var z;class N{constructor(H,J){this.logger=H,this.store=J,this.faInfoCircle=Ti.iW_,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.enableBoltz=!(!H.settings.boltzServerUrl||""===H.settings.boltzServerUrl.trim()),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(H)})}onEnableServiceChanged(H){this.enableBoltz=H.checked,this.enableBoltz||(this.macaroonPath="",this.serverUrl="")}onUpdateService(){if(this.serverUrl&&""!==this.serverUrl.trim()&&!this.form.controls.srvrUrl.value.includes("https://")&&this.form.controls.srvrUrl.setErrors({invalid:!0}),this.enableBoltz&&(!this.serverUrl||""===this.serverUrl.trim()||!this.serverUrl.includes("https://")||!this.macaroonPath||""===this.macaroonPath.trim()))return!0;this.logger.info(this.selNode),this.enableBoltz?(this.selNode.settings.boltzServerUrl=this.serverUrl,this.selNode.authentication.boltzMacaroonPath=this.macaroonPath):(delete this.selNode.settings.boltzServerUrl,delete this.selNode.authentication.boltzMacaroonPath),this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.serverUrl=this.selNode.settings.boltzServerUrl||"",this.macaroonPath=this.selNode.authentication.boltzMacaroonPath,this.enableBoltz=!(!this.serverUrl||""===this.serverUrl.trim())}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(J,ne){if(1&J&&e.GBs(ad,7),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.form=ot.first)}},standalone:!1,decls:38,vars:11,consts:[["form","ngForm"],["srvrUrl","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["href","https://docs.boltz.exchange/v/boltz-client/","target","_blank"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["fxLayout","column","fxFlex","50","fxLayoutAlign","start stretch"],["autoFocus","","tabindex","1","color","primary","name","boltz",1,"ml-2",3,"ngModelChange","change","ngModel"],[1,"mb-2"],["matInput","","type","text","id","boltzServerUrl","name","srvrUrl","tabindex","2",3,"ngModelChange","required","disabled","ngModel"],[4,"ngIf"],["matInput","","type","text","id","boltzMacaroonPath","name","boltzMacaroonPath","tabindex","3",3,"ngModelChange","required","disabled","ngModel"],["fxLayout","row",1,"mt-2"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","type","submit","tabindex","5",3,"click"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"boltzd"),e.k0s(),e.EFF(7," is running and accessible to RTL before enabling this service. Click "),e.j41(8,"strong")(9,"a",5),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about the installation."),e.k0s()(),e.j41(12,"form",6,0)(14,"div",7)(15,"mat-slide-toggle",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.enableBoltz,$t)||(ne.enableBoltz=$t),p.Njj($t)}),e.bIt("change",function($t){return p.eBV(ot),p.Njj(ne.onEnableServiceChanged($t))}),e.EFF(16,"Enable Boltz Service"),e.k0s(),e.j41(17,"mat-form-field",9)(18,"mat-label"),e.EFF(19,"Boltz Server URL"),e.k0s(),e.j41(20,"input",10,1),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.serverUrl,$t)||(ne.serverUrl=$t),p.Njj($t)}),e.k0s(),e.j41(22,"mat-hint"),e.EFF(23,"Service url for boltz server REST APIs, eg. https://127.0.0.1:9003"),e.k0s(),e.DNE(24,Kl,2,0,"mat-error",11)(25,j2,2,0,"mat-error",11),e.k0s(),e.j41(26,"mat-form-field")(27,"mat-label"),e.EFF(28,"Boltz Macaroon Path"),e.k0s(),e.j41(29,"input",12),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.macaroonPath,$t)||(ne.macaroonPath=$t),p.Njj($t)}),e.k0s(),e.j41(30,"mat-hint"),e.EFF(31,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.k0s(),e.DNE(32,Bh,2,0,"mat-error",11),e.k0s()()(),e.j41(33,"div",13)(34,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onReset())}),e.EFF(35,"Reset"),e.k0s(),e.j41(36,"button",15),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onUpdateService())}),e.EFF(37,"Update"),e.k0s()()()}if(2&J){const ot=e.sdS(21);e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(13),e.R50("ngModel",ne.enableBoltz),e.R7$(5),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.serverUrl),e.R7$(4),e.Y8G("ngIf",(!ne.serverUrl||""===ne.serverUrl.trim())&&ne.enableBoltz),e.R7$(),e.Y8G("ngIf",(null==ot||null==ot.errors?null:ot.errors.invalid)&&ne.enableBoltz),e.R7$(4),e.Y8G("required",ne.enableBoltz)("disabled",!ne.enableBoltz),e.R50("ngModel",ne.macaroonPath),e.R7$(3),e.Y8G("ngIf",!ne.macaroonPath&&ne.enableBoltz)}},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,at.DJ,at.sA,at.UI,xd.sG,go.Ld,Xl.N],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),$4=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-ln-services"]],standalone:!1,decls:1,vars:0,template:function(J,ne){1&J&&e.nrm(0,"router-outlet")},dependencies:[ja.n3],encapsulation:2}))}return z(),N})();var zh=l(1092),u1=l(4104),Ec=l(96695),Pc=l(2042),Ya=l(19295),oc=l(67575);const X2=()=>["all"],f0=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),Uh=()=>["no_swap"],h1=z=>({width:z}),Rl=z=>({"display-none":z});function K2(z,N){if(1&z&&(e.j41(0,"mat-option",37),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function Vh(z,N){1&z&&e.nrm(0,"mat-progress-bar",38)}function m0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"State"),e.k0s())}function Gh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.LoopStateEnum[null==I?null:I.state])}}function Z4(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Initiation Time"),e.k0s())}function Y2(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function p0(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"Last Update Time"),e.k0s())}function Hh(z,N){if(1&z&&(e.j41(0,"td",40),e.EFF(1),e.nI1(2,"date"),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(e.i5U(2,1,(null==I?null:I.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function jh(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Amount (Sats)"),e.k0s())}function Wh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.amt))}}function qa(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Server (Sats)"),e.k0s())}function wc(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_server))}}function g0(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Offchain (Sats)"),e.k0s())}function Q2(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.cost_offchain))}}function Ed(z,N){1&z&&(e.j41(0,"th",41),e.EFF(1,"Cost Onchain (Sats)"),e.k0s())}function Xh(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",42),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.SpI(" ",e.bMT(3,1,null==I?null:I.cost_onchain)," ")}}function wd(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"HTLC Address"),e.k0s())}function Sd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.htlc_address)}}function f1(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID"),e.k0s())}function rd(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id)}}function Kh(z,N){1&z&&(e.j41(0,"th",39),e.EFF(1,"ID (Bytes)"),e.k0s())}function Td(z,N){if(1&z&&(e.j41(0,"td",40)(1,"span",43)(2,"span",44),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,h1,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.id_bytes)}}function Dd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",45)(1,"div",46)(2,"mat-select",47),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",48),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function Ad(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",49)(1,"button",50),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function m1(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function _0(z,N){if(1&z&&(e.j41(0,"td",51),e.DNE(1,m1,2,1,"p",52),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Yh(z,N){if(1&z&&e.nrm(0,"tr",53),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,Rl,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function Nc(z,N){1&z&&e.nrm(0,"tr",54)}function Sc(z,N){1&z&&e.nrm(0,"tr",55)}let $2=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.store=ne,this.loopService=ot,this.datePipe=jt,this.camelCaseWithReplace=$t,this.selectedSwapType=Mt.C7.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:Mt.md,sortBy:"initiation_time",sortOrder:Mt.oi.DESCENDING},this.LoopStateEnum=Mt.Hx,this.faHistory=Ti.Int,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){this.swapCaption=this.selectedSwapType===Mt.C7.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSetting=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSetting.tableId),this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:Mt.md,this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(H){const J=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(ne=>ne.column===H);return J?J.label?J.label:this.camelCaseWithReplace.transform(J.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"state":ne=H?.state?this.LoopStateEnum[H?.state]:"";break;case"initiation_time":case"last_update_time":ne=this.datePipe.transform(new Date((H[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm")?.toLowerCase()||"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.loopService.getSwap(H.id_bytes?.replace(/\//g,"_")?.replace(/\+/g,"-")||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:Mt.Hx[ne.state||""],title:"Status",width:50,type:Mt.UN.STRING},{key:"amt",value:ne.amt,title:"Amount (Sats)",width:50,type:Mt.UN.NUMBER}],[{key:"initiation_time",value:(ne.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:Mt.UN.DATE_TIME},{key:"last_update_time",value:(ne.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:Mt.UN.DATE_TIME}],[{key:"cost_server",value:ne.cost_server,title:"Server Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_offchain",value:ne.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:Mt.UN.NUMBER},{key:"cost_onchain",value:ne.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:Mt.UN.NUMBER}],[{key:"id_bytes",value:ne.id_bytes,title:"ID",width:100,type:Mt.UN.STRING}],[{key:"htlc_address",value:ne.htlc_address,title:"HTLC Address",width:100,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6([...H]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Mt.C7.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(u1.Q),e.rXU(o.vh),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:61,vars:20,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,K2,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,Vh,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,m0,2,0,"th",16)(24,Gh,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,Z4,2,0,"th",16)(27,Y2,3,4,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,p0,2,0,"th",16)(30,Hh,3,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,jh,2,0,"th",21)(33,Wh,4,3,"td",17),e.bVm(),e.qex(34,22),e.DNE(35,qa,2,0,"th",21)(36,wc,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,g0,2,0,"th",21)(39,Q2,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,Ed,2,0,"th",21)(42,Xh,4,3,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,wd,2,0,"th",16)(45,Sd,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,f1,2,0,"th",16)(48,rd,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,Kh,2,0,"th",16)(51,Td,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,Dd,6,0,"th",29)(54,Ad,3,0,"td",30),e.bVm(),e.qex(55,31),e.DNE(56,_0,2,1,"td",32),e.bVm(),e.DNE(57,Yh,1,3,"tr",33)(58,Nc,1,0,"tr",34)(59,Sc,1,0,"tr",35),e.k0s(),e.nrm(60,"mat-paginator",36),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,X2).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.tableSetting.sortBy)("matSortDirection",ne.tableSetting.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,f0,"error"===ne.flgLoading[0])),e.R7$(37),e.Y8G("matFooterRowDef",e.lJ4(19,Uh)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX,o.vh],encapsulation:2}))}return z(),N})();const p1=z=>["../",z];function Tc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",11),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,p1,I.link)),e.R7$(),e.JRh(I.name)}}let Z2=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.loopService=J,this.store=ne,this.faInfinity=Ti.C8j,this.loopInfo=null,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=Mt.C7,this.selectedSwapType=Mt.C7.LOOP_OUT,this.storedSwaps=[],this.filteredSwaps=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"loopout",name:"Loop Out"},{link:"loopin",name:"Loop In"}],this.activeTab=this.links[0],this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopService.getLoopInfo().pipe((0,mi.Q)(this.unSubs[4])).subscribe({next:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo=J,this.loopInfo&&this.loopInfo.version&&(this.loopInfo.version=this.loopInfo.version.split(" ")[0])},error:J=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_LOOP_INFO})),this.loopInfo.version=" Unknown"}}),this.loopService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"loopin"===ne.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.flgLoading[0]=!1,this.storedSwaps=J,this.filteredSwaps=this.storedSwaps?.filter(ne=>ne.type===this.selectedSwapType)},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No loop "+(this.selectedSwapType===Mt.C7.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){this.selectedSwapType="loopin"===H.link?Mt.C7.LOOP_IN:Mt.C7.LOOP_OUT,this.filteredSwaps=this.storedSwaps?.filter(J=>J.type===this.selectedSwapType)}onLoop(H){H===Mt.C7.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{minQuote:J[0],maxQuote:J[1],direction:H,component:zh.D}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(u1.Q),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-loop"]],standalone:!1,decls:15,vars:9,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),e.nrm(1,"fa-icon",2),e.j41(2,"span",3),e.EFF(3),e.k0s()(),e.j41(4,"div",4)(5,"mat-card")(6,"mat-card-content",5)(7,"nav",6),e.DNE(8,Tc,2,5,"div",7),e.k0s(),e.nrm(9,"mat-tab-nav-panel",null,0),e.j41(11,"div",8)(12,"button",9),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLoop(ne.selectedSwapType))}),e.EFF(13),e.k0s()(),e.nrm(14,"rtl-swaps",10),e.k0s()()()}if(2&J){const ot=e.sdS(10);e.R7$(),e.Y8G("icon",ne.faInfinity),e.R7$(2),e.SpI("Loop (v",(null==ne.loopInfo?null:ne.loopInfo.version)||" Unknown",")"),e.R7$(4),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.filteredSwaps)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,cr.aY,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,$2],encapsulation:2}))}return z(),N})();var J2=l(1001),v0=l(84412),Qh=l(18810),Yo=l(12462);let sd=(()=>{var z;class N{constructor(H,J,ne,ot){this.httpClient=H,this.logger=J,this.store=ne,this.commonService=ot,this.swapUrl="",this.swaps={},this.boltzInfo=null,this.boltzInfoChanged=new v0.t(null),this.swapsChanged=new v0.t({}),this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_SWAPS})),this.swaps=H,this.swapsChanged.next(this.swaps)},error:H=>this.swapsChanged.error(this.handleErrorWithAlert(Mt.MZ.GET_BOLTZ_SWAPS,this.swapUrl,H))})}swapInfo(H){return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/swapInfo/"+H,this.httpClient.get(this.swapUrl).pipe((0,$r.W)(J=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.NO_SPINNER,this.swapUrl,J))))}getBoltzInfo(){this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/info",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:H=>{this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_BOLTZ_INFO})),this.boltzInfo=H,this.boltzInfoChanged.next(this.boltzInfo)},error:H=>(this.boltzInfo={version:"2.0.0"},this.boltzInfoChanged.next(this.boltzInfo),(0,ws.of)(this.handleErrorWithoutAlert(Mt.MZ.GET_BOLTZ_INFO,this.swapUrl,H)))})}serviceInfo(){return this.store.dispatch((0,Ui.mt)({payload:Mt.MZ.GET_SERVICE_INFO})),this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,mi.Q)(this.unSubs[2]),(0,fr.T)(H=>(this.store.dispatch((0,Ui.y0)({payload:Mt.MZ.GET_SERVICE_INFO})),H)),(0,$r.W)(H=>(0,ws.of)(this.handleErrorWithAlert(Mt.MZ.GET_SERVICE_INFO,this.swapUrl,H))))}swapOut(H,J,ne){const ot={amount:H,address:J,acceptZeroConf:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap Out for Address: "+J,Mt.MZ.NO_SPINNER,jt)))}swapIn(H,J,ne){const ot={amount:H,sendFromInternal:J,refundAddress:ne};return this.swapUrl=Mt.H$+Mt.rl.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,ot).pipe((0,$r.W)(jt=>this.handleErrorWithoutAlert("Swap In for Amount: "+H,Mt.MZ.NO_SPINNER,jt)))}handleErrorWithoutAlert(H,J,ne){let ot="";return this.logger.error("ERROR IN: "+H+"\n"+JSON.stringify(ne)),this.store.dispatch((0,Ui.y0)({payload:J})),401===ne.status?(ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}))):503===ne.status?(ot="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:H},component:Yo.f}}}))):ot=this.commonService.extractErrorMessage(ne),(0,Qh.$)(()=>new Error(ot))}handleErrorWithAlert(H,J,ne){let ot="";if(401===ne.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:"Authentication Failed: "+JSON.stringify(ne.error)}))),this.logger.error(ne),this.store.dispatch((0,Ui.y0)({payload:H})),401===ne.status)ot="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ui.ri)({payload:ot}));else if(503===ne.status)ot="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:ne.status,message:"Unable to Connect to Boltz Server",URL:J},component:Yo.f}}}))},100);else{ot=this.commonService.extractErrorMessage(ne);const jt=ne.error&&ne.error.error&&ne.error.error.code?ne.error.error.code:ne.error&&ne.error.code?ne.error.code:ne.code?ne.code:ne.status;setTimeout(()=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.ERROR,alertTitle:"ERROR",message:{code:jt,message:ot,URL:J},component:Yo.f}}}))},100)}return{message:ot}}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(ns.Qq),p.KVO(La.gP),p.KVO(vi.il),p.KVO(_o.h))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();const Fc=z=>({"display-none":z});function g1(z,N){1&z&&e.eu8(0)}function Qs(z,N){if(1&z&&(e.j41(0,"div",4)(1,"span",5),e.EFF(2),e.k0s()()),2&z){const I=e.XpG();e.R7$(2),e.JRh(null!=I.swapStatus&&I.swapStatus.error?null==I.swapStatus?null:I.swapStatus.error:"Unknown Error.")}}function od(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Routing Fee (mSats)"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.nI1(5,"number"),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(e.bMT(5,1,null==I.swapStatus?null:I.swapStatus.routingFeeMilliSat))}}function q2(z,N){if(1&z&&(e.j41(0,"div",7)(1,"h4",8),e.EFF(2,"Claim Transaction ID"),e.k0s(),e.j41(3,"span",5),e.EFF(4),e.k0s()()),2&z){const I=e.XpG(2);e.R7$(4),e.JRh(null==I.swapStatus?null:I.swapStatus.claimTransactionId)}}function lc(z,N){if(1&z&&(e.j41(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e.EFF(4,"ID"),e.k0s(),e.j41(5,"span",5),e.EFF(6),e.k0s()(),e.DNE(7,od,6,3,"div",9)(8,q2,5,1,"div",9),e.k0s(),e.nrm(9,"mat-divider",10),e.j41(10,"div",6)(11,"div",11)(12,"h4",8),e.EFF(13,"Lockup Address"),e.k0s(),e.j41(14,"span",5),e.EFF(15),e.k0s()()()()),2&z){const I=e.XpG();e.R7$(6),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(),e.Y8G("ngIf",I.acceptZeroConf),e.R7$(7),e.JRh(null==I.swapStatus?null:I.swapStatus.lockupAddress)}}function Ld(z,N){1&z&&(e.j41(0,"span",22),e.EFF(1,"N/A"),e.k0s())}function y0(z,N){1&z&&(e.j41(0,"span",23),e.EFF(1,"QR Code Not Applicable"),e.k0s())}function $h(z,N){1&z&&e.nrm(0,"mat-divider",24),2&z&&e.Y8G("inset",!0)}function b0(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Transaction ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.txId)}}function _1(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",25)(2,"h4",8),e.EFF(3,"ID"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",25)(7,"h4",8),e.EFF(8,"Expected Amount (Sats)"),e.k0s(),e.j41(9,"span",5),e.EFF(10),e.nI1(11,"number"),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.id),e.R7$(5),e.JRh(e.bMT(11,2,null==I.swapStatus?null:I.swapStatus.expectedAmount))}}function Zh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function pr(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"Address"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.address)}}function Jh(z,N){1&z&&e.nrm(0,"mat-divider",10)}function cc(z,N){if(1&z&&(e.j41(0,"div",6)(1,"div",11)(2,"h4",8),e.EFF(3,"BIP 21"),e.k0s(),e.j41(4,"span",5),e.EFF(5),e.k0s()()()),2&z){const I=e.XpG(2);e.R7$(5),e.JRh(null==I.swapStatus?null:I.swapStatus.bip21)}}function eu(z,N){if(1&z&&(e.j41(0,"div",12)(1,"div",13),e.nrm(2,"qr-code",14),e.DNE(3,Ld,2,0,"span",15),e.k0s(),e.j41(4,"div",16)(5,"div",4)(6,"div",17),e.nrm(7,"qr-code",14),e.DNE(8,y0,2,0,"span",18),e.k0s(),e.DNE(9,$h,1,1,"mat-divider",19)(10,b0,6,1,"div",20)(11,_1,12,4,"div",20)(12,Zh,1,0,"mat-divider",21)(13,pr,6,1,"div",20)(14,Jh,1,0,"mat-divider",21)(15,cc,6,1,"div",20),e.k0s()()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(17,Fc,I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(3),e.Y8G("fxLayoutAlign",""!==((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))?"center start":"center center")("ngClass",e.eq3(19,Fc,I.screenSize!==I.screenSizeEnum.XS&&I.screenSize!==I.screenSizeEnum.SM)),e.R7$(),e.Y8G("value",(null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))("size",I.qrWidth),e.R7$(),e.Y8G("ngIf",""===((null==I.swapStatus?null:I.swapStatus.txId)||(null==I.swapStatus?null:I.swapStatus.address))),e.R7$(),e.Y8G("ngIf",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM),e.R7$(),e.Y8G("ngIf",I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal),e.R7$(),e.Y8G("ngIf",!I.sendFromInternal)}}let tu=(()=>{var z;class N{constructor(H){this.commonService=H,this.swapStatus=null,this.direction=Mt.Bd.SWAP_OUT,this.acceptZeroConf=!1,this.sendFromInternal=!0,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=Mt.f7,this.swapTypeEnum=Mt.Bd}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.screenSize===Mt.f7.XS&&(this.qrWidth=180)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-status"]],inputs:{swapStatus:"swapStatus",direction:"direction",acceptZeroConf:"acceptZeroConf",sendFromInternal:"sendFromInternal"},standalone:!1,decls:7,vars:1,consts:[["swapFailedBlock",""],["swapOutBlock",""],["swapInBlock",""],[4,"ngTemplateOutlet"],["fxLayout","column"],[1,"foreground-secondary-text"],["fxLayout","row"],["fxFlex","33"],["fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","33",4,"ngIf"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","35",1,"modal-qr-code-container","padding-gap-large",3,"fxLayoutAlign","ngClass"],["errorCorrectionLevel","L",3,"value","size"],["class","font-size-300",4,"ngIf"],["fxFlex","65"],["fxFlex","30",1,"modal-qr-code-container","padding-gap",3,"fxLayoutAlign","ngClass"],["class","font-size-120",4,"ngIf"],["class","my-1",3,"inset",4,"ngIf"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","50"]],template:function(J,ne){if(1&J&&e.DNE(0,g1,1,0,"ng-container",3)(1,Qs,3,1,"ng-template",null,0,e.C5r)(3,lc,16,4,"ng-template",null,1,e.C5r)(5,eu,16,21,"ng-template",null,2,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6);e.Y8G("ngTemplateOutlet",null!=ne.swapStatus&&ne.swapStatus.error?ot:ne.direction===ne.swapTypeEnum.SWAP_OUT?jt:$t)}},dependencies:[o.YU,o.bT,o.T3,Wi.q,at.DJ,at.sA,at.UI,ol.PW,bc.Um,o.QX],encapsulation:2}))}return z(),N})(),nu=(()=>{var z;class N{constructor(){this.serviceInfo={},this.direction=Mt.Bd.SWAP_OUT,this.swapTypeEnum=Mt.Bd}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-service-info"]],inputs:{serviceInfo:"serviceInfo",direction:"direction"},standalone:!1,decls:33,vars:13,consts:[["fxFlex","100",1,"flat-expansion-panel","mb-1",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"w-100","my-1"]],template:function(J,ne){1&J&&(e.j41(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e.EFF(4,"Service Information"),e.k0s()()(),e.j41(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e.EFF(9,"Minimum Amount (Sats)"),e.k0s(),e.j41(10,"span",6),e.EFF(11),e.nI1(12,"number"),e.k0s()(),e.j41(13,"div",4)(14,"h4",5),e.EFF(15,"Maximum Amount (Sats)"),e.k0s(),e.j41(16,"span",6),e.EFF(17),e.nI1(18,"number"),e.k0s()()(),e.nrm(19,"mat-divider",7),e.j41(20,"div",3)(21,"div",4)(22,"h4",5),e.EFF(23,"Fee Percentage"),e.k0s(),e.j41(24,"span",6),e.EFF(25),e.nI1(26,"number"),e.k0s()(),e.j41(27,"div",4)(28,"h4",5),e.EFF(29,"Miner Fee (Sats)"),e.k0s(),e.j41(30,"span",6),e.EFF(31),e.nI1(32,"number"),e.k0s()()()()()),2&J&&(e.Y8G("expanded",!0),e.R7$(11),e.JRh(e.bMT(12,5,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.minimal)),e.R7$(6),e.JRh(e.bMT(18,7,null==ne.serviceInfo||null==ne.serviceInfo.limits?null:ne.serviceInfo.limits.maximal)),e.R7$(8),e.JRh(e.bMT(26,9,null==ne.serviceInfo||null==ne.serviceInfo.fees?null:ne.serviceInfo.fees.percentage)),e.R7$(6),e.JRh(e.bMT(32,11,ne.direction===ne.swapTypeEnum.SWAP_OUT?null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.reverse:null==ne.serviceInfo||null==ne.serviceInfo.fees||null==ne.serviceInfo.fees.miner?null:ne.serviceInfo.fees.miner.normal)))},dependencies:[ss.GK,ss.Z2,ss.WN,Wi.q,at.DJ,at.sA,at.UI,o.QX],encapsulation:2}))}return z(),N})();var ld=l(16949);const Bc=(z,N)=>({"small-svg":z,"large-svg":N});function v1(z,N){1&z&&e.eu8(0)}function iu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Submarine Swaps explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(17," Boltz is a privacy-first account free exchange and a Lightning service provider. By doing a Submarine Swap on Boltz, you can swap your on-chain Bitcoin for Lightning Bitcoin. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function x0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),p.joV(),e.j41(9,"div",18)(10,"mat-card-title"),e.EFF(11,"Step 1: Deciding to Submarine Swap"),e.k0s()(),e.j41(12,"div",19)(13,"mat-card-subtitle",20),e.EFF(14," You have one or more Lightning channels that are running low on outbound liquidity and you want to fund it using your on-chain Bitcoin. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function y1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.j41(9,"defs")(10,"pattern",37),e.nrm(11,"use",38),e.k0s(),e.nrm(12,"image",39),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Sending the on-chain funds"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," You send the on-chain funds to an address which can only be spent by Boltz when it pays a Lightning invoice to your node. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function zc(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",40)(2,"g",41),e.nrm(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.k0s(),e.j41(8,"defs")(9,"clipPath",47),e.nrm(10,"rect",48),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on Lightning"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function b1(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",49),e.nrm(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(12," You swapped your on-chain Bitcoin for Lightning Bitcoin, while also adding outbound capacity for your channels in the process - all in a non-custodial manner. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Bc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let C0=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapin-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","323","height","323","viewBox","0 0 323 323","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M53.8333 134.583H80.75L94.2083 161.5L117.792 134.961C121.616 130.658 125.869 126.602 131.194 124.413C136.45 122.252 142.103 121.125 147.842 121.125H242.25C286.847 121.125 323 157.278 323 201.875C323 246.472 286.847 282.625 242.25 282.625H147.842C142.103 282.625 136.45 281.497 131.194 279.337C125.869 277.149 121.616 273.092 117.792 268.79L94.2083 242.25L80.75 269.167H53.8333L67.2917 228.792L53.8333 201.875L67.2917 174.958L53.8333 134.583Z",1,"fill-color-0"],["d","M26.9167 107.667H53.8333L67.2917 134.583L90.8755 108.044C94.6993 103.741 98.9527 99.6849 104.277 97.4963C109.534 95.3357 115.187 94.2083 120.925 94.2083H215.333C259.93 94.2083 296.083 130.361 296.083 174.958C296.083 219.555 259.93 255.708 215.333 255.708H120.925C115.187 255.708 109.534 254.581 104.277 252.42C98.9527 250.232 94.6993 246.176 90.8755 241.873L67.2917 215.333L53.8333 242.25H26.9167L40.375 201.875L26.9167 174.958L40.375 148.042L26.9167 107.667Z",1,"stroke-color-thick"],["d","M134.583 215.333C142.016 215.333 148.042 209.308 148.042 201.875C148.042 194.442 142.016 188.417 134.583 188.417C127.151 188.417 121.125 194.442 121.125 201.875C121.125 209.308 127.151 215.333 134.583 215.333Z",1,"fill-color-15"],["d","M107.667 188.417C115.1 188.417 121.125 182.391 121.125 174.958C121.125 167.526 115.1 161.5 107.667 161.5C100.234 161.5 94.2083 167.526 94.2083 174.958C94.2083 182.391 100.234 188.417 107.667 188.417Z",1,"stroke-color-thick"],["d","M201.875 215.333C209.308 215.333 215.333 209.308 215.333 201.875C215.333 194.442 209.308 188.417 201.875 188.417C194.442 188.417 188.417 194.442 188.417 201.875C188.417 209.308 194.442 215.333 201.875 215.333Z",1,"fill-color-15"],["d","M174.958 188.417C182.391 188.417 188.417 182.391 188.417 174.958C188.417 167.526 182.391 161.5 174.958 161.5C167.526 161.5 161.5 167.526 161.5 174.958C161.5 182.391 167.526 188.417 174.958 188.417Z",1,"stroke-color-thick"],["d","M269.167 215.333C276.599 215.333 282.625 209.308 282.625 201.875C282.625 194.442 276.599 188.417 269.167 188.417C261.734 188.417 255.708 194.442 255.708 201.875C255.708 209.308 261.734 215.333 269.167 215.333Z",1,"fill-color-15"],["d","M242.25 188.417C249.683 188.417 255.708 182.391 255.708 174.958C255.708 167.526 249.683 161.5 242.25 161.5C234.817 161.5 228.792 167.526 228.792 174.958C228.792 182.391 234.817 188.417 242.25 188.417Z",1,"stroke-color-thick"],["d","M189.321 97C186.935 97 185 98.9345 185 101.321V112.679C185 115.065 186.935 117 189.321 117H237.679C240.065 117 242 115.065 242 112.679V101.321C242 98.9345 240.065 97 237.679 97H189.321Z",1,"fill-color-15"],["d","M161.5 67.2917V94.2083H215.333V67.2917H161.5Z",1,"stroke-color-thick"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","347","height","169","viewBox","0 0 347 169","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M89 157.417V41.5833C89 35.2125 92.75 30 97.3333 30H230.667C235.25 30 239 35.2125 239 41.5833V157.417C239 163.787 235.25 169 230.667 169H97.3333C92.75 169 89 163.787 89 157.417Z",1,"fill-color-0"],["d","M6.25 134.625V18.375C6.25 11.9812 11.4812 6.75 17.875 6.75H203.875C210.269 6.75 215.5 11.9812 215.5 18.375V134.625C215.5 141.019 210.269 146.25 203.875 146.25H17.875C11.4812 146.25 6.25 141.019 6.25 134.625Z",1,"stroke-color-thin"],["d","M256.188 123H238.75V76.5H256.188C259.442 76.5 262 79.0575 262 82.3125V117.188C262 120.443 259.442 123 256.188 123Z",1,"fill-color-15"],["d","M232.938 99.75H215.5V53.25H232.938C236.193 53.25 238.75 55.8075 238.75 59.0625V93.9375C238.75 97.1925 236.193 99.75 232.938 99.75Z",1,"stroke-color-thin"],["d","M146 53V87.875",1,"stroke-color-thin"],["d","M146 122.634V122.749",1,"stroke-color-thin"],["d","M344.698 95.3022C346.74 97.3445 346.74 100.656 344.698 102.698L311.418 135.978C309.376 138.02 306.065 138.02 304.022 135.978C301.98 133.935 301.98 130.624 304.022 128.582L333.604 99L304.022 69.418C301.98 67.3758 301.98 64.0647 304.022 62.0225C306.065 59.9803 309.376 59.9803 311.418 62.0225L344.698 95.3022ZM277 93.7706L341 93.7706V104.229L277 104.229V93.7706Z",1,"fill-color-15"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["fill-rule","evenodd","clip-rule","evenodd","d","M161.033 82.5635C162.307 74.0523 155.826 69.4769 146.965 66.4247L149.84 54.8952L142.822 53.1462L140.023 64.3718C138.178 63.9121 136.283 63.4783 134.4 63.0486L137.219 51.749L130.205 50L127.328 61.5255C125.801 61.1777 124.302 60.8338 122.847 60.4721L122.855 60.4361L113.177 58.0194L111.31 65.5152C111.31 65.5152 116.517 66.7085 116.407 66.7825C119.249 67.4921 119.763 69.373 119.677 70.8641L116.403 83.9987C116.599 84.0487 116.852 84.1206 117.132 84.2326C117.096 84.2236 117.06 84.2146 117.023 84.2054C116.981 84.1948 116.938 84.184 116.894 84.1731C116.732 84.1323 116.563 84.09 116.391 84.0487L111.801 102.448C111.453 103.312 110.572 104.607 108.585 104.115C108.655 104.217 103.484 102.842 103.484 102.842L100 110.875L109.133 113.152C110.152 113.408 111.16 113.67 112.156 113.93L112.158 113.931L112.159 113.931C112.823 114.104 113.481 114.276 114.136 114.443L111.232 126.105L118.242 127.854L121.118 116.316C123.033 116.836 124.892 117.316 126.711 117.768L123.844 129.251L130.862 131L133.767 119.361C145.734 121.625 154.733 120.712 158.521 109.888C161.573 101.173 158.369 96.1458 152.072 92.8677C156.658 91.8103 160.112 88.794 161.033 82.5635ZM144.998 105.049C143.008 113.044 130.493 109.739 124.766 108.226L124.766 108.226C124.251 108.09 123.791 107.969 123.398 107.871L127.252 92.4219C127.73 92.5412 128.314 92.6723 128.976 92.8208L128.976 92.8208C134.899 94.1498 147.037 96.8734 144.998 105.049ZM130.167 85.6513C134.942 86.9255 145.356 89.7047 147.17 82.4376C149.022 75.0044 138.901 72.7637 133.957 71.6694C133.401 71.5463 132.911 71.4377 132.51 71.3379L129.016 85.3499C129.346 85.4322 129.733 85.5356 130.167 85.6513Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","313.615","y","82.836","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["d","M154.81 93.8059C152.146 100.719 149.483 108.164 146.287 115.608C146.287 115.608 146.287 116.672 147.353 116.672H169.191C169.191 116.672 169.191 117.204 169.723 117.736L137.765 153.364C137.233 152.832 137.233 152.301 137.233 151.769L148.418 127.839V125.712H126.047V123.585L153.212 93.8059H154.81Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["id","clip0"],["width","225.692","height","225.692","transform","translate(0 85.9831) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","300","height","300","viewBox","0 0 300 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M50 237.5V112.5C50 105.625 55.625 100 62.5 100H262.5C269.375 100 275 105.625 275 112.5V237.5C275 244.375 269.375 250 262.5 250H62.5C55.625 250 50 244.375 50 237.5Z",1,"fill-color-0"],["d","M25 212.5V87.5C25 80.625 30.625 75 37.5 75H237.5C244.375 75 250 80.625 250 87.5V212.5C250 219.375 244.375 225 237.5 225H37.5C30.625 225 25 219.375 25 212.5Z",1,"stroke-color"],["d","M293.75 200H275V150H293.75C297.25 150 300 152.75 300 156.25V193.75C300 197.25 297.25 200 293.75 200Z",1,"fill-color-0"],["d","M268.75 175H250V125H268.75C272.25 125 275 127.75 275 131.25V168.75C275 172.25 272.25 175 268.75 175Z",1,"stroke-color"],["d","M137.5 187.5L156.25 150H118.75L137.5 112.5",1,"stroke-color"]],template:function(J,ne){if(1&J&&e.DNE(0,v1,1,0,"ng-container",5)(1,iu,18,5,"ng-template",null,0,e.C5r)(3,x0,15,5,"ng-template",null,1,e.C5r)(5,y1,19,5,"ng-template",null,2,e.C5r)(7,zc,17,5,"ng-template",null,3,e.C5r)(9,b1,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ld.k]}}))}return z(),N})();const Uc=(z,N)=>({"small-svg":z,"large-svg":N});function au(z,N){1&z&&e.eu8(0)}function ru(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",7),e.nrm(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.k0s(),p.joV(),e.j41(12,"div",18)(13,"mat-card-title"),e.EFF(14,"Boltz Reverse Submarine Swap explained."),e.k0s()(),e.j41(15,"div",19)(16,"mat-card-subtitle",20),e.EFF(17," Boltz is a privacy-first account free exchange and a Lightning Service Provider. By doing a Reverse Submarine Swap on Boltz, you can swap your Lightning Bitcoin for on-chain Bitcoin. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function M0(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",21)(2,"g",22),e.nrm(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.k0s(),e.nrm(9,"path",29),e.j41(10,"defs")(11,"clipPath",30),e.nrm(12,"rect",31),e.k0s()()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 1: Deciding to Reverse Submarine Swap"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," You have one or more channels that are running low on inbound capacity or you want to move some of your Lightning Bitcoin to your onchain wallet. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function su(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",32),e.nrm(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.j41(9,"defs")(10,"pattern",40),e.nrm(11,"use",41),e.k0s(),e.nrm(12,"image",42),e.k0s()(),p.joV(),e.j41(13,"div",18)(14,"mat-card-title"),e.EFF(15,"Step 2: Paying the Lightning Invoice"),e.k0s()(),e.j41(16,"div",19)(17,"mat-card-subtitle",20),e.EFF(18," Your Boltz client generates a secret which is sent to Boltz. In return Boltz sends a Lightning invoice based on that secret. Your Lightning node pays that invoice which moves some of your local balance to the other side of the channel. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function ou(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",43)(2,"g",22),e.nrm(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.k0s(),e.j41(8,"defs")(9,"clipPath",30),e.nrm(10,"rect",49),e.k0s()()(),p.joV(),e.j41(11,"div",18)(12,"mat-card-title"),e.EFF(13,"Step 3: Receiving the funds on-chain"),e.k0s()(),e.j41(14,"div",19)(15,"mat-card-subtitle",20),e.EFF(16," In return for paying the invoice, Boltz locks on-chain BTC. Your node claims that onchain BTC to your wallet and by doing that, reveals the secret. With that secret Boltz can settle the Lightning invoice paid by your node. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}function lu(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",6),e.bIt("swipe",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onSwipe(J))}),p.qSk(),e.j41(1,"svg",50),e.nrm(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.k0s(),p.joV(),e.j41(7,"div",18)(8,"mat-card-title"),e.EFF(9,"Done!"),e.k0s()(),e.j41(10,"div",19)(11,"mat-card-subtitle",20),e.EFF(12," You have now successfully received your funds in your on-chain wallet and also spent your local balance to increase the inbound capacity of your node - all in a non-custodial manner. "),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@sliderAnimation",I.animationDirection),e.R7$(),e.Y8G("ngClass",e.l_i(2,Uc,I.screenSize===I.screenSizeEnum.XS,I.screenSize!==I.screenSizeEnum.XS))}}let Id=(()=>{var z;class N{constructor(H){this.commonService=H,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.bkB,this.screenSize="",this.screenSizeEnum=Mt.f7}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(H){2===H.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===H.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swapout-info-graphics"]],inputs:{animationDirection:"animationDirection",stepNumber:"stepNumber"},outputs:{stepNumberChange:"stepNumberChange"},standalone:!1,decls:11,vars:1,consts:[["swapStepBlock1",""],["swapStepBlock2",""],["swapStepBlock3",""],["swapStepBlock4",""],["swapStepBlock5",""],[4,"ngTemplateOutlet"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between center",3,"swipe"],["fxFlex","30","width","368","height","368","viewBox","0 0 368 368","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M306.667 153.333H276L260.667 184L233.797 153.763C229.441 148.861 224.595 144.24 218.529 141.746C212.54 139.284 206.099 138 199.561 138H92C41.19 138 1.52588e-05 179.19 1.52588e-05 230C1.52588e-05 280.81 41.19 322 92 322H199.561C206.099 322 212.54 320.715 218.529 318.254C224.595 315.761 229.441 311.139 233.797 306.237L260.667 276L276 306.667H306.667L291.333 260.667L306.667 230L291.333 199.333L306.667 153.333Z",1,"fill-color-0"],["d","M337.333 122.667H306.667L291.333 153.333L264.464 123.097C260.107 118.194 255.261 113.573 249.195 111.079C243.206 108.618 236.766 107.333 230.228 107.333H122.667C71.8566 107.333 30.6667 148.523 30.6667 199.333C30.6667 250.143 71.8566 291.333 122.667 291.333H230.228C236.766 291.333 243.206 290.048 249.195 287.587C255.261 285.094 260.107 280.473 264.464 275.571L291.333 245.333L306.667 276H337.333L322 230L337.333 199.333L322 168.667L337.333 122.667Z",1,"stroke-color-thicker"],["d","M214.667 245.333C206.198 245.333 199.333 238.468 199.333 230C199.333 221.532 206.198 214.667 214.667 214.667C223.135 214.667 230 221.532 230 230C230 238.468 223.135 245.333 214.667 245.333Z",1,"fill-color-15"],["d","M245.333 214.667C236.865 214.667 230 207.802 230 199.333C230 190.865 236.865 184 245.333 184C253.802 184 260.667 190.865 260.667 199.333C260.667 207.802 253.802 214.667 245.333 214.667Z",1,"stroke-color-thicker"],["d","M138 245.333C129.532 245.333 122.667 238.468 122.667 230C122.667 221.532 129.532 214.667 138 214.667C146.468 214.667 153.333 221.532 153.333 230C153.333 238.468 146.468 245.333 138 245.333Z",1,"fill-color-15"],["d","M168.667 214.667C160.198 214.667 153.333 207.802 153.333 199.333C153.333 190.865 160.198 184 168.667 184C177.135 184 184 190.865 184 199.333C184 207.802 177.135 214.667 168.667 214.667Z",1,"stroke-color-thicker"],["d","M61.3334 245.333C52.865 245.333 46 238.468 46 230C46 221.532 52.865 214.667 61.3334 214.667C69.8017 214.667 76.6667 221.532 76.6667 230C76.6667 238.468 69.8017 245.333 61.3334 245.333Z",1,"fill-color-15"],["d","M92 214.667C83.5316 214.667 76.6666 207.802 76.6666 199.333C76.6666 190.865 83.5316 184 92 184C100.468 184 107.333 190.865 107.333 199.333C107.333 207.802 100.468 214.667 92 214.667Z",1,"stroke-color-thicker"],["d","M239.077 111C241.796 111 244 113.204 244 115.923V126.077C244 128.796 241.796 131 239.077 131H191.923C189.204 131 187 128.796 187 126.077V115.923C187 113.204 189.204 111 191.923 111H239.077Z",1,"fill-color-15"],["d","M184 76.6666V107.333H122.667V76.6666H184Z",1,"stroke-color-thicker"],["fxFlex","20","fxLayoutAlign","center end"],["fxFlex","40"],[1,"font-size-120"],["fxFlex","30","width","383","height","279","viewBox","0 0 383 279","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["clip-path","url(#clip0)"],["d","M267.882 220.417V104.583C267.882 98.2125 263.809 93 258.832 93H114.029C109.051 93 104.978 98.2125 104.978 104.583V220.417C104.978 226.787 109.051 232 114.029 232H258.832C263.809 232 267.882 226.787 267.882 220.417Z",1,"fill-color-0"],["d","M357.75 197.625V81.375C357.75 74.9812 352.069 69.75 345.125 69.75H143.125C136.181 69.75 130.5 74.9812 130.5 81.375V197.625C130.5 204.019 136.181 209.25 143.125 209.25H345.125C352.069 209.25 357.75 204.019 357.75 197.625Z",1,"stroke-color-thin"],["d","M86.3125 186H105.25V139.5H86.3125C82.7775 139.5 80 142.057 80 145.312V180.188C80 183.443 82.7775 186 86.3125 186Z",1,"fill-color-15"],["d","M111.562 162.75H130.5V116.25H111.562C108.027 116.25 105.25 118.807 105.25 122.062V156.938C105.25 160.193 108.027 162.75 111.562 162.75Z",1,"stroke-color-thin"],["d","M205.979 116V150.875",1,"stroke-color-thin"],["d","M205.979 185.634V185.749",1,"stroke-color-thin"],["d","M2.44963 159.45C0.488815 161.41 0.488815 164.59 2.44963 166.55L34.403 198.504C36.3638 200.465 39.5429 200.465 41.5037 198.504C43.4645 196.543 43.4645 193.364 41.5037 191.403L13.1007 163L41.5037 134.597C43.4645 132.636 43.4645 129.457 41.5037 127.496C39.5429 125.535 36.3638 125.535 34.403 127.496L2.44963 159.45ZM65 157.979H6V168.021H65V157.979Z",1,"fill-color-15"],["id","clip0"],["width","303","height","279","transform","matrix(-1 0 0 1 383 0)",1,"fill-color-30"],["fxFlex","30","width","454","height","243","viewBox","0 0 454 243","fill","none","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",3,"ngClass"],["d","M141.75 172.125C178.098 172.125 207.562 142.66 207.562 106.312C207.562 69.9653 178.098 40.5 141.75 40.5C105.403 40.5 75.9375 69.9653 75.9375 106.312C75.9375 142.66 105.403 172.125 141.75 172.125Z",1,"fill-color-0"],["d","M121.5 151.875C157.848 151.875 187.312 122.41 187.312 86.0625C187.312 49.7153 157.848 20.25 121.5 20.25C85.1528 20.25 55.6875 49.7153 55.6875 86.0625C55.6875 122.41 85.1528 151.875 121.5 151.875Z",1,"stroke-color-thiner"],["d","M20.25 192.375H222.75",1,"stroke-color-thiner"],["d","M192.375 222.75L222.75 192.375L192.375 162",1,"stroke-color-thiner"],["d","M138.762 67C136.099 73.913 133.436 81.3578 130.24 88.8025C130.24 88.8025 130.24 89.8661 131.305 89.8661H153.143C153.143 89.8661 153.143 90.3979 153.676 90.9296L121.718 126.558C121.185 126.026 121.185 125.495 121.185 124.963L132.371 101.033V98.9062H110V96.7791L137.164 67H138.762Z",1,"fill-color-15"],["cx","371.815","cy","95.815","r","81.815",1,"fill-color-boltz-bk"],["x","317","y","81","width","110.745","height","30.1472","fill","url(#pattern0)"],["id","pattern0","patternContentUnits","objectBoundingBox","width","1","height","1"],[0,"xlink","href","#image0","transform","scale(0.00185185 0.00680272)"],["id","image0","width","540","height","147",0,"xlink","href","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhwAAACTCAYAAADFh8BYAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAACHKADAAQAAAABAAAAkwAAAABS37hiAABAAElEQVR4Aex9CaAkVXV2VfebfWWG1QWQRYddNgmCO6CiIGrAKC6gUWOIUROz/CYm+OdP/P9f82viEmNUcCFRUVFQlMUIgpIoCgwO2ww7IjLMMMub5b3XXfWf75z7Vd2urn69vK5+/d7Ufa/qnDr33HPPdm/drqquDoNdvMTxhSPBE5vODuL6BUEcHiDumBcE8Y+DYORT4V4fu3YXd09pfumB0gOlB0oPlB7oiwfCvkiZoULiDe9eGtSCH8RxfCJMCOUvlj/AIAyjoBL/abjHJz4+Q80r1S49UHqg9EDpgdIDQ+OBXXbBEW/8i2XB+ParZYHxHDohlrAAB0QJw2AiCOccGu75sXVGKfelB0oPlB4oPVB6oPRALx6o9NJopreJ469Xg4ltX8NiA8sLLDD8xQYWHbrwiOM5QVC7YKbbW+pfeqD0QOmB0gOlB6bbAyPTrcC09P/bH39EbqO8NF1mRKoGbqbYAgRQCkAU47mOspQeKD1QeqD0QOmB0gNT8MAud4UjfvyCt8Rx9D5dbMg9kwT6OK95xHrtY/EU/Fs2LT1QeqD0QOmB0gOlB8QDu9SCI37sghPievyvSeR1QSFHgD7uGPRmSxj8POEvkdIDpQdKD5QeKD1QeqAnD+wyt1TiJ9731Hhi52WytJinFzDy3OUueOitFNTjAkcU3ZDHWtJKD5QeKD3QLw/Ej55/TL0e7tcveamcmqCY5gGDoFqdf0P4lM8+oQflrvTAgD2wSyw45F0b84PHHr9MntvYJ5RbJ/aYqHgat1FwZUNvp7gHRYWEdQdKWAk3BXvt+UM7KvelB0oPlB4oxgMT9VjeAxS9FXMTv56vPeFDDz8IAW2cspLpixdos/XWGIsNm9XiaOeL5eBHspWl9MDAPbBLLDii3zz2OfHs8fCuLDpSJxN3kDUpjP+9Gl64M21QYqUHSg+UHijAA3Gkc5N+IBIcEAVzkbfeUJq/c2z8zJSzAJEljAgJQ85qfusSLz0wWA/M+gVH/Ngf/GW9Hp8Lt+av/jmkwUHcBmclnnMRqGUpPVB6oPRAoR6QVYVe2ZDVgS06bA5Cn/xcZP1z+eEWJBl+tk0WLNl6d6WjUFtK4aUHWnhgVi844t+883T5sPD3/BQAH/i4fFvFDW77WqwNVqMJfke4zydvbuG3klx6oPRA6YH+eUDWF7z6Sgjh7RYQ4PH5iRNm24O/LKUHpssDs/ZbKvGj71glnxX+I4qj1EZ+VAD0ced9DlLAOIi+MF1BKfstPVB6YNfzgLtmwactxAG4HYIrHQZ9HDRsfhvDcaUkLfhQhQJIPK0tsdIDg/VAejIebL+F9hY/+d7lcRxeHkX1pRh8HGxYRigO6AYrIQcpoFwFqVeqI5cUqmQpvPRA6YHSA4kHbE7CIbC0ELcFhtFJw9xmuH5I8hYnkGKbzoCC68yWii2x0gPT4IFZd0sFry2v/+bar8lgOxj+bBi8GIMcf6jDg1T45wNVimuj74d7fvoxwcrSgwfih9940EQU/lleU/mcJS9/CQNAFOKARRR8vsOq2j7npThX2j3rE8by6H+4Qz447qxUgh0y4T8hv/b368pI8Os54fyHy68eFhHNXVAmhok3ZyV4h8MFCxF7ds3GmwnbBf1YmjwUHph1C47oNz/8R3l3xmnwbu5YFWIyVjkGCW1kBtVK9aKhiM4MVaIWB/vIQu8deerb3MlLwRKjzHM0CEXD/CoxsUkziVqDWNYBorAtubP3sPP5PX2kYSiyYiegiZ/6JD3JzTcwY2IP6kFcC4PxeFsw/uCbHpeF7K2ShLdVK+F/VaPFPwr3+5cnG5QvD0oP0AO6IraPR0i9dErKyX+Xm2iKFv7XaN1nKMlhE4z819wELEvpgWn2wKxacNQeeft5UVR7j/68vDhWx5gMPH+sNQw7DEoQ3ODEya8ShhuCffb57jTHZeZ37xYAGRc32WXzoUyaLjCMD6Gd8DFnWpAYLtarQFfXJFwI2t7BpN7jt/7THMntT/iT/og7GWqf4C6FbLGCjuJoTyGeJvTT5FtSQT3cUh974I03i6Dvz60El4RP/8q6RJ8SKT2AS26SLMwzwtx8FFbWq+NcLuY5MTf/8xhLWumBAXhg1iw44kfeeWI9qH/GX+0nZwF3NsAgBcrBqrjsXLW6Wz5oXCLv3hgfgO/LLsQDmBAREYNwSWOU9EhY0phlPtGhrfxxkWnS/JhaLSnMD/Ij+CobDbUIopc3SGjUh32lSwxKZvtGflLFzKpwniD9nTBWDy4ce+Dcm8KwctGcfatfDsOLy3e90FG7KIwj3NxDzjXmjx4JGRAlm3/ZfPYl+C2yWWp15b70wGA9wFvZg+21z73FG37/aVFY+5YMxnkNA4srf0DZ9KTmoL/yx2DmgB4JRi7us3q7pDhMjPiz5YBB4IgDIXAthDggDigb/ggVBwtorUqmvbKRJgdsC6h/rg/kAxc9hGgLHkIfV6LsmDfMIfAABzQ8hbRbfRLHJ8pDzZ8de3Di/rEHz/3zeP1bl1BmCXdhDzBXAV1uEiKTUAhzvZRpbw388YK3jpal9MD0eGDGLzji+H0Lajvib0dRvLcORR1wGGCy6XV6B5Nr9jxFpAPXTgloE94ePvUzt0xPKGZnrzx5Jyd0cb/S3BlaoyE7d6gIaQ1n8xbuwW0wFP32keISTQc1B6xW9z3tMhO46iY06qtZg/7dhj6As7S3P95beP7PxLaxdeMPveE8wbULti/hruEB5hMSSxMgIYj9Ssj3Q+H5n99tSS090JMHZvyCo/7o5s/LGeZYWN80ucuJR2k4AelJCEx2gsrjr5Tv3oBbBlqyMcOxv8mBi6Gcxj2cPFCWMlRxf2HpP6AhbdG+adOn7IQO6OPk9WUIrn05SB182KSPKtV6R93lfTF7RvX4op0PnnvD2P2vX9W6RVkzGz0gjx5rbvm5pLnh5Txy16cxdwjVL8hXFEBsyGNC4OUFDvNPuZ8WD8zoZzgmHnnrB+Iofr0MIy0YajIkGz4QuOGn9awDRPH55WnuWmVk7r9rRbnrgwfMx00+F7LSGDT0hInQFcaLEEHSJ+4dgXRChFLnWIqgLELI9XF21ClkW8K28hJFtIeu7Y/jk8Tmn8szHu+ct/8lZT52GqdZwse8Jpz2/J9mv8oPb86dePjeI+WL7cfJkuy4MIqPkxl+N3m4/6Nz97vkE9OsXtl9lx6YsQuO2iPnv1Im878zeznJY5gCt+GKlT+/Fgk+4vpVMRCkJAM7Dr4b7v2Zx41a7qfqAX7q0ofaEAfGROLDB93QB/FW9RpOMDLEwLPFq2snrzFDbC2iNCdD20+ib7brqcrL01ceWl0s32u5ZOcDb3juvP2e+cdheGF6WS6rQHk8qzxgC1R9ysfsYm4T5lnr1eXlE2nWNJnx8iRNKw3vUBp/5LLDwnrluCiMj5c55LixB+46UsybS8XMVHgpWEZaCWeOB2bkgiP+zfmH1iaiS+TUJbeEkIJuEOklcRxaWloYUtzud+KyOOfv9HQRVoOLjb/c98MDnNZs0YcTu8XBru5iIWi9NF0BEDJpnejB6HtRds1SiuVIvjTqSZjVF6mlujsGAPZJiWyLY+KEWXld2R9HF4w/ePfKOH7Hm8PwsxPsr4Sz0wPMe8JOrGQuptlOjBBSfLwTqcXzyJWLyvgDdz8zrITHy92k4+phdNzYg986WlRdEMn7bDCFcwwRFq9V2UPRHphxC45407t2m9i6/TvimKXpQLIB5c5p3hV0d889Sd2sO62dnATWV58y58psbXncuwe4wMDKwk7Y3rSRg5JkJ2jGLad/O2PLbORaSNBj0oSd32jlo5f8dAeIgogDs8gDEcxrn70KppO/1AOiaI6JAOZa0tbTJ6GhAdqyDxyjONV9lKSs/XL8e2MPbFkon/5eE4bn1LV9uZuVHtC8lFxhDuYayVz18q2b/J+uRzh2PvSWA8OgJrdEouPltTTHyWLjGBlTS+SWuJrJz4jZ/G/ygbPfv0rdxFMShtYDM2rBgUtuEw999+syIg+CR/VkILM3TwbZkws4rPBkYZ+s9QQgFRzYMtC/Un6CdK7qC5BpLT2DGu7O0I0RyelM2ml8kvYIlGyuIdGkWhClJYRG/uzr67M5ArHaXmBPhSsPQhUmUhN9HD4F+yW/zxy7/5v/LPpd0JOOZaPh94DkB/OeUJXOJChzNUkvQZSWEKSVEszkbP4PYsKXH85cOD6++WVRGB4X1oPj5LcFjotrO3eDKSy8xszjBIrundif8JfIjPLAIPKvbw6pP/Ldj8kq4ZTk7KODUXbM5MwtFczx/EBAJTSZeeDgSDjn4gypPJyqB5KYiCDgLSbEpm7YjhCNedkCopSOyZktudx0BAY8+QTo+nbV+DYAlDEIGbgCYTQcEfdvu7EN6pPJvJU91IsQfMBb8UOmX9iO0NkvVv7hzvted9f8A75WPijn+2u24Yw7YZ/zvxYWf41jorbtMHmP2TeR+Dp00+GVjoXEvkwASSdsYX8QcUBl2peHQ+2BGfO12PGH3vzWehS/GycCLBq4cCCEl4m3quc5CNDOSxGucvwyfPrnVg91lGagclgG4E+CkkDgWgjlQHkcNNzxoy02DZqDPs56E6h7Q70+0I+e8B3kHEWYtmqJNenXZI/IVnvQb6q7YVanMsCjfGADr5Um+Z4MyGu0P/jo2MPnHsG2JZw9HojwtVjEe9L4azKnOaH88EGaT0luMd/y8r9wt9WcFaKX6NG//Pftb3mNpHDryg5698CMWHBM/Pr858oPav0LzGw8V3Cg2UA1N5CGcWk4IDYsRAi5OJGnky7q3X1lyzwP4DMU4uSmhwRaNGxatUlS4qECDOby64QlTG4C1biB5jY0T2Kpshp3eGU0ir46Wl8f7XDQrCaBoJh2BrE3nVL90MR01saurcmCPN8GH0ddXn8mK5Xvy1B+z36xc259fOJieeBuRl2ZNE+V+8k8gIk4N1+8+GMMTDX/J9Ohn3WwJdceN8I4YrrJf9/+crnRz2gNTtbQLzjiX5//9Hhi4luRTLZ6QpBBx2RFAioOqDgOdZpWD/JEBJi3SbKPzwmD/1Dmctc3D/hnQ5tQbPLRCUhiQagxwQSE+Lg/rRMc0MeTernKARzP3yTP4IDmYgwjgLOAB4X8yBejudzR2pRfDyfZUTb7Ux2dTdaT6U0RPs3nZXu1qyv7g2N2PHjHeyi/hLPDAziBal57UPMF+epozHvC3vJ/sP7qf/7b+B/6E9dg3TxjehvquMUPv2/BRG3i23I62CvXo9lslsGpoxNQN7TyTybErV72V4RP+9KGXNklsWcP1OQSR3JCdQsBHkMo8NaFdRYjC5/gyaHheqJ2sQWeFuLWwPoSDqeHTt6CA/o46yFK21hzE0uROMrknPIKje3bQYjQNkByCztzCuih7JJDQerBX8aPn704t3lJnOEe0ICLDUnADU8OBdF/GwEwtpv8B3/hRb7A3WocoO8p57/YX17hKDyKhXQw1AuOiejxi+TKxjE6wjCs9ESVnjyyyctEbpXs/gnG4RcV4tVSqJ2Yxcl6gcFB4NkNk6fyCNSJFDHGv1sgZGOMuKEAGm6LhzRHUIscgQyTTYh+iLNeuYWPRXWRA+qJZ4asHZ4dElzqCPP6N6XQMYSYHELK9GFv9se7j28P/5g6l3CWeEBzFjvkGOc7w2mh5VySXkLuLv8pp3BYaP4H8sWXssxEDwxt3MYeOvev5Cvar8OAkvGnG3IYuMvlZOK3B0ndvXr9xoGFonlwWltX+9i8/Q66yvBy33cPuDO6LgLd5MlJ1IcaX/C6KPN2R6tbICpPeCkDehuNFkAWisls5udEnvZJXsBm/kb57AvQx61PdOv6BySPg2zjQ79P4J3aX69H7ymf5Ui8PgsQu6nSafyZQzCceWhOcPnXMv8H5KqC8x8P2ZZl5nlgKBcctYfeeKY8JCqvLc+u3u0k0fFg46ATmP2Th0W/LK+MLv47YjMvJ6ZVY06erWM8repJ540TumlD2tR168L+PcfuX3P61HssJQyTB7qI/zCp3TdddnX7++bIIRU0dAuOsQffclg9ir4it1L0AgUWCmkhDujjKUcDhlU2ilttN8Bg5ItWWe6L8ECrBUO7CaW5nlcSGPMshPbMBYTa8LT/ydsbv/H4uMnM9sV+CJs919x/qpNq2qRfu/rW+ssYOa9Zg5Iykz3QnD+t4285CmvTfGzffjDegR6+LuzVp/l463rKyY5FtijhTPLAUC044offtiKOJy6XRFyCMYRbJYSKi2cJ4WQ/YRVnkmNSx4YlC6F3f0W+3/Czeft9cQ1klKUID9S82152lQrxwWbPQxgELgFSGqCP8zkHcBgfsObSlAPCQlozd/cUpA8KoI8bVWsc6vTXI7PZ0s/wIuwXv7w8jt89L9WlxGa2B9KxMCz536s/kftF53+vupXtps8D/jcYp08L6Rn3o8cevPtSQQ7gkxZ6PpI6QijYiGOSt5dVo86ODOJYCR60AYAHjsKLQS5LgR5wgdJXoQjuXomiHfoxtEWIfa21F200+ljIMDM0yCKJnaAOs7dbLWRzBHXUAf0TB0RpV69M3i7LX6T9ouP8nQ/85kTp/jpPhRKdgR6I8JsiLue6Ub/b/A+C4u8i41cGMeRQisp/ueVuHZT7GeWBoVlwjD14z8fl5Uwv1kz1HvxMVw2WxHZCMB8Tb3VyyEYCfJUwHJtTCb6arSuP++0BmxCw5xpAe+A84aDWSVzc/NS0aGRb1ifChCAn97rE9F91cvMnoITZdQ6pjsYqQsyIirsVEfGkXtpCvkxwc+VHslbIBL+b4PuKxAPzPdZoII4gi9QEcQSt69F+7T+WMVMuONQVM3mHS81IiWy+MHcAtWQJyB1LIq3GMPAOHZ6OLydlAMASPGtP3/J/qK7ND8Cds6SLoVhw7Hjg9b8fx/ULbOZ3IwYObsrWyb0uF+2VgbCpvYxEuUnz7XC/f39yckll7VQ94J//fbw5qE0zqHRNmnFDF4ushxhhYuGB35qWHzSL7z977x1x/WR51Oj8MIjk1oZO+8mHVN9mH++z/dJf+Bz4pyyzxQONkx7znjAZCAlB7PZwveIhBF7xw1xIGjxEetHe8nPex/uV/2H5WypFh7AQ+dO+4Jh48PUny0Oin9Ixg8zEvJ1kKHGcgGSxoO9BkOndXQEBVR6c09OTMigGScZvNG8P3rBysUcp0cI84GZBhsMdWojkwIWIi0NCqOPjWfU4eQIOavLM6oDj8BmXPibgG9jG1r3u8CisfVqutjwvO8HryQC2FmC/SIUfn6mw3M1oD/hf8+w0/2FwNt/YlhB5x1+MHZSD5khHE0x45H0B+T8oW8p++uuBab0wFT/65n0narVvykQ9N1lkJIsNGMpZGpALC4NcUhAqt2uLWyfYdDg6qLLC8NF5+7/6GvCWpWAPmPvTyQaBYrAI81RoDLmETQgqCxDTaAqTSTVPzgBp8w762q/mH3AEbm18QtWznekNW6F/QfZLnu8Xx2fLa//LMis8gFxBAdRNdglszn+d64RBoRsrwJP2efmnHRS3m5DlxqT992H8F6d9KblID0zbgiN+9B0Lx8Z2fkeM25MG6kCRAw6eLAQfeXycfPqWfRlsgNhQCPUgir4UhufUFS93xXqAJ1hMfjrpYRK0iZGQcfMheDXGbA8tgQ95wTtdFh70rT+W50q+1qB/8fZXxu6L9hty95TqtfMAvpDncoUwyftJ8h8PKaMAYsOShBC4jjUHgQ+scPwWn/8DM6nsaOoemLZbKmM7N10st0OebXdQ0oGgg83ZZXUYTEawwSRjCAPIFR8njRBfodXB527ByAOjF7OuhAV7gJMbYsdJR9C8p9Z9TRB/a5LG2J8o8XQ6aob1KfUFixe9bcfW0ZPEjqepXQXbD1/Uw2CZ78OZiss31So7fr36KSPj8cpaVF1UqdQX1aPKokoYLZKoy53UyrZKpbItrkTbqlF129xKsN7d2pqpJjfozbwnTCo5loSQzX8dC0LnaGFbQJRs/QC+pOI6dhqZQqK4kfs1/stfUzF/zrT9tCw4xu4754PyyxRn5wyHBv9xnBGikgMrYfQI5CNUfncgC4+b5h9w6d1JuxIp1APJQpDxSeYf+RQmMeHzF+ADTn7irNeJCm3dhKVt8UlO40rhhZrSlfBw7y9v237vWR+V0+PHtSFVLMR+U60S1WfUD7lJ7MLxB1+zKqoFJ8s8cKRYcYDE/8Dt627ZXwI9b1xzIg7quBYZ1oMIb7FG/MMoqEd1OemGwURcDyaEvm3dq7ZLBt0nGXGfpMS91aB6SzCneuOC/S+9X1rMoIIRkI6FzvLfzGOK2ZGe4QW1AaMf1oSBH9oG5RCOZzHJioM6vvsw/pESZZl5Hhj4gmPs/nPOiuL6h/R8If6yEwcd1zhYSE0hspY8oBK3wdW8gPHrw4tSOSVWrAcmJDIWk8YFgkQIH3Hwn3wN1RYbCb836UJHx65QdUYKqAA9GsrdgiVzPr9jc+0jMunOKdp+nEiiOBz6BceO+16zX1yPXytxf/62ta8+WQK6EsHTE5CLOY79k67WW7pMFv+FMokcLoIOR8bV5S+cqAfb1r7qUfni0I3ybYYfLawE3woPuuxxyBveYiOgW/sRf8ylXFBYe/Oj2srFGs/QHd5E37b2LDyPdHpWftZ/GI7wuw5LxWU8R/V5yXjG4kKEcJ7v1/iX/v5k2z1nnZ/VL6uPKtaooCkLmuqbHoqm/2/RwZd9ymo63+9Yd9YH5TUq56FFUz5n7E+clfTfZv4TmbQJ8hlrQJR+2g957eSDxy/UzamTb381+OeFB377n9BuoAuOsYded3h9vP5l1crXOsGptsF845HA1sAmczjJ+M35ab15TwfEjvlx/PWkmxIp3AOY+FA0JoI3xsybgBwf+cGob5N1DRozAgJtAOrAdXmgHQ3RLtzz0tFt6866WfLyxELtF5t1DFT1GsAQecBUGZWvDlfqE2dLDF8vJ6HfERjKlR8JcZ/i7+y3nHGZQtlh+BRxzjlygjtnexB+cnTtWf8ZVsKvLqzE3wqf8e1NQ+csGQfMe0LoOGn+T26/mcgxQmjUTvZ7ie/kypMUjjngOZOyzr/JeG3UuLD8D4LdRL/d2LdC1dXlltNH5wmlY+dKxhfUuBIGu5GlG1iP4t2lnwPQhvMYIdSQq3iTzH/WE3Xoav5Dfy4e/bBf9Xe+sR8WcfnXQ/x9++WJhhVm5QAXHPEjb165c2z75TLlLOYoglJcEUIhTkSAVhAG4AwH8U7rnZggviw88BubeVTCAXjALQIZOUL0nAyOTtTITnCdtBkCHrH3Z2LoibSbEKr12/5KUNkyBCYnKoze9+qjglr0l2Ft/Gx5TquqNie1/bdfHOpJz6BSJ7VV4TlV7sKcKvdfPiW3YS6uzhn5yPz9vnlfhnv4DjvJ/zb269mOPGGnbxqVSyLiuOycDE9zFlZnUS5hxoOMDCGq+53/7eLfaD8UkM2dQlRtwQEjd9UVOnZdZoH9tNmPVT/in57P8ZbvARS8tnzHztFL5amvZ2D1jinAFhuIPRYdLonxkKfgyuMe9NTVvtORiQqIzXj99ilNebC2NL6LBmBm2UWeBxAkFAY5C1mnTBZ7oK1yQOWwDWW7tsME5OE+u4RPHbN285i2OOWZ753aj/FTCYdjwbHj3lefvG3tmVcGtfqtEsHfk7FXbYoX7Sbsg/3oA37AnyROAoFr/4TgiwK52Bn/QX28ds/oPWf++9h9r8UzJENTeol/N/Z3ZSj85XwH6OPqV8QQhdCOGvesA8zbwE0eQQu3H2dT9AeIDYXQjrrfT3YWpW15tvt1rtdpt9/XSXA/5j6exBJ6s02e5zJ1A7mlsuO+1bh/8yJE1r+iwTgTQl+dNBLFWUMI7YGbFeaA9PIsyBgfqQO0t4fnHXDkfwbBNxOpJTIID1jMONdrXHK61QhJJSCKroalKVfFiDFX2VovdRpiE69thnMXy9tsMUlbOhZpfxTWp/UKx7aHznxKPBZ8rFavndM4Qm08Kq1FvPoS/1bOlcTQ/JHc0rmCiSK6SGRw5eX1ovPrtq494zOLR6p/NQy3WnrK/y7sryVXj+mMfKiPfIhcxs5Gp/DqtXY40CiYr/EQL+dt5Rc28kM1pQ1Z/Gm15h9sSDRmTRdQLwaZgTPd/ux4YewYz57i7105mmxt1oXHW7PKvex3iBF/iISEMQlEJuLfQeBaCPNEuqse+Jiim3pDcEDFPQg5wiep9EV5R4KOnzyRJa1YDzBRGaIsRD5Y6Cw3JCGEoomB5LBpwEHjS0M9WaoUa1V76TKvLwQXdEbJ2s3jqdoPOfNrizZqJwPeyQvHqqNrz3hvtCO4S8bxOXndD8J+5AH9KUnjfK4TgFMpzZSsPvKJsiLz4R9uq0V37Vh75hvzbBgELdY7/aJnl/kPe7qxf6qfMHW+Rp/QUzYUQj3I7LL+ZpwI+5H/3dif1QfeM5rZklG/w8PWp5dsf7SbcLjspw8Im81nrLuNPyUVuuCQJ9OfL6vfT7IzLq4BsamzHQSeHWzgAE0hcC2E7tAHXEkBygbO6rzqF32WEh+MB1olZDZhJfw6YQH6ONtnIXLBZCC6k+TCYMxs2YvcPlzp20pGnwbct9nHUZe3Ze2XNr8OD75k4Fc4tq99zdO2rxu7UULwsTCMl0D3PP1hN232cdrmt/Fx1mdh1n7I9POAfbGdL1NxUZgQM4TyAUbRXrUo+rIsoC6P7z9ruckd3B46+bpS/yycqv2dPsFBy+EjFPWV7P15W+dxqUsg+LycBo5C6OO0y7fZx1mfhVO1H3ZoP7QI4wx/0HUKz15DZp7+vs0+Trv8Nj7O+iws0n71gShJqPqKbwjVd6IkYRJ3oUH3PP3R1ndrYQsOfA0uqsffkN8ImCMWwAozxEEY5SuouJhCCKPU2YSQIaXBGe6KB+576b0v7QZXP8AoD6iEwQ3zn37pOm1Y7qbFA4yXxjInhk1KIQFQAGVDUhMqjkPyCD6sJY7CQ6Fb0faLS28ftA+2rjvjxVEw8UuxTb554sYlxqmHU6fi7Xf9iyP8vti/TQY4sknBUsfmGaYRobaJ4zNGJ+o364OvqZDBYVQGULZ2+e/b7OOpwuYf2t/pFY6K+As3SvBPqC6EYIpU1A4s+inO/n2dfJz1TbBg+038JPFvUqgzwmyxX2MtJgMy7oRJ3HuIP71YyIIjfuxNi6J69B25TLgHAtwyGM4C1pMX0BIjhaYwLQX0cVebWYDI9/AvtppyP1APTMjnqFZB9AMruC4UHbRFo2QD4ojFiZ5ERHMHQSLO+oHa1WFnMrHKLeH4eblJ3G/7w3CgC47Re854v1w8vFq+3rqHnkA0NhYrjQnsQ6AAfVvpO58meF/ir4lhHXAxCohNVXEQOHROIRLKaNba4XF8YFCbuElsfQPpRUP4gXlPCEWhK6GPa4USrJ76tbO/0ysc+IFMja/6Lo2nT5uN8acfu4aIBTbxVwKBoxD6OGiyDWX+i2o2Tswextz0TWkdx99bZXgovDH1IkqE27du/aIMlaPgeFHPApAzODQwXr1vgI8rnycLMimXUHm8GUa+c7994dLdLoX4skynBzRCooCLmuaB4IB5OdFWVY5eN2Lb8g+eYdu6M0+VXt13z4u2P75lUBbKw5V/LxPkR+T2gzxw6eKpndPGPE1Y5/j7Hn/IRS6YfJ03BAf0cdabhtTJNQXRTyfBpe0CuRj8lW33vOId1mZY9lAUhQr3Yr9J6Gjvj1E/drMx/j2fDb18anIq6wBl833o+7apXStCP+JPnaSPrDh0SxpwX0df967jD2EFfC12+7pX/Y1MSq9tUNT6EuXdwzX6CdbDWU9DAX2c9WokDlzwlO45r8E5wTfCPb6wNWlaIoP1AGLhx8P17pagEkH7A5m0fAUZX4s5Hq6zFngg2OVQfsPpo8bx/1DbC7ZfrqLUFy2Yf9UgDB295xUfkZuxH2CsWsbPt9nHnZJt2zcZ0z7+k+WBLTqQitKz04dQu/J19HGplEM8DfaZrXe/8o+a1BoYof/2T0X1tvHzfejjrtO27ZuU67/9LePf43RCDVV132Yfnwn25+ibDUfb+PkyiHsPcfS8pssqguPt9575GgF/C6VMsRSmpxXWmAQ/WEwEQMNTqO3VAKMpD3oBb9Jf2os8en6x9VDup9MDFkdM3hYrrCOBp2tKwxE526CtnxU4Tgu/vgZIPK2dfmzb2jPeJva9kJoUbP8N4dMvLfwbKlvufsVHxY73Iy7mc4P0PyFt9mHB9ktXqU5p3rTOH1+3PDyrrxzLK1WiTxS/6Og1//trf+ITOfmaL2zcmm/TvhBzxp0waeshWX/2f/ynOvUj/p7qHaP8bJzXYKbZn9UXPmUeALdYG2TcCSezn3WdPkNE/pZw9L4zj4xr8ZfkzYLyVfI0BCkmTbFg4G0PHFr28SvdYoyapxAdYQgaDUcp3iDTqnSP+2H2Pfb4gfkHXn5depnEYyrRgXiAiWvhlgT1gubjWWXQjm2ydTi2OoN59dNJ27H2jBfUorr+FgNSHYW2+Db7uHGl++7sD7+dtiwG23L3K98eBtGf0h4blejLDMzGIzPEC7ZftMjNF+d80TLr/3z+1HfN/My1+OOjd52+bvGqK3+Qcvcf60w/6tS9/fi1mY6KfBTF5Z1sPBl3wtkU/17fNKoX7uEsKVl/ZfMJPKC1KkXHvzP56XydtYdxJ+wk/r6tfbnCET/6+t3ljbnfkcXGIpzwYZRubnUkR/qHjoGlhTigtSFEe0SPEDjqEpjHDw600XdvuAxIOyuxAXlgQvpBIloypgsIjY2LaSvcbwMcMSfU+KsNyIXhKqP3nP4eeYnUNaLVPNgGnX1bWtmbpfttaDehb7/QxoKRyleL9MKOe05/fiWIdAEFHagHIfSB/oS0mxB8xAE72fw27IfQt59288MNoOHwPRKHeoETfUMXxsQg5RLmy2dPcTWuBF/ded+ZzyKlnzCSy86+r6AT9SLM1w+2grcz+7vV2fpu7S/obP61+IKfdvh4J7FnO0Lre/Lxb7Hu3H7TqZU93XqH/BY76k048+xHLFEIzU+gwJa8eMDWdvFHe5YpX+GI43fMGV376Dcky/aHRrjK4DRD5hmuSqFLzUaDOFQ6aSBISW0VMbZ4YVI1idOJRNqzkfCjRXVu/EWVVe6mzQOWiAh/NoZ2QmB9VkHSCVGfh/u0rIxBHcuLr+Zuu3v7OfJR8M+jKD5C+3W5Tv0KtP+LSw64/LdF2brj3jP2rdXq3xQ75vh9tLOHdhO24/dlA2c7Qp/m43496H5prOOEYpBTESHa+fzECX25Ms0sm5ioXR6vPff4ot59wn4Ju9LPKeu3TeZGzpHJ9eMGy5oP5Ef28Jct7eLJvgnb8Wflsx0h6vNwn9ZKhtFpQ2fxz8rq5DisyJeII7tyRL0IZ5r91Jswa387e9iOEPzy8HUiZsoLDlls/LMsMl4AiXoJTpK04dqCP7KTBGbwbfXqKwfclEwTjfUG7QSm/enJzN1GAQF9heH1C/a/4n4clmU6PcAYQwf7hEltGE87Bp+3aExw0NIaO4KklCb34iryfMHzlLHFDmdLXHHhWZM4YDelEtTnxpVwtyCurJCHJ/eVtieN3rPtBLFsQZLWKrBBQ03JfttfCcNoZKTy0W7075ZXFhuflzjtnvF41/bY8C8o/h0YxczKzZ8O2ufY/8zRaCN8X8C3V/zc6SD/O9A/a38HTTIsvk7iDRx2MZ675U9HdzH2N1qTMbXHQ/nWlteysYeZb//U7IH9uuZwHprSgmPb2le8Sz7Z/QEHM2T6eM5g1c4tCKZB48nHadUjUFmVcK3odaaKkKWn5EJVf66yA5lYo4KXdzmJd9q+XRe+fFmkPb5k4cI1g3jor51exdS7TGDGMeggM4e14wwhwy9PBOkspxBNXT2g/M2Va1o/Bs5Faiocnchiw/WlEAQRRxoOmwp1s+Y2WkR+BD00MbBzOkOXpuLqOBLA42xQ1kx1IqsFf579ssT+4vwDv7u2qes+EbbcffrvyyR6iukrCtMGJWQdlO00YyDb0leZ6l7shz81D6Tr7CeubPy1W2eC2WPm0N1Z7ZPcZGgZO0AtWDyFb5dv7Xx98TO/d21T+ykRnKLsU2TlxX8q9tOK9mrKSVRD7emkjWZz/Dv3TqP//AUHZNBHQAX34smpI82/yfn7HX/0yzHRaIM7ouqAKNTdy/90zBpL476FPY6p5wWHfCf/BVG99k/UK+3UpxAn5EQBpZptsRMHHEJ+QBoAfrRPr2gQBzR5Ul+vv11ODm/HcSy/Rw0/1SguSQQjZCcrdFsXfnZPHNDk2Ykt1c/o6Z66ugaZ/mBLLaEFwej2bcHWu1/x9cqC6vsW7Xv5o6mc2YA5p6srBG/lEvUH7PX4EQDyg04ZwmV5b1fGtJXwgsaYEDc+NACXFEJ0A9x1l+CsB29DIaNBVU0u4TFHrD/qhYaN/Nav0Cgf1X7/efyT2F+phOsXL5r3Zw0q9vFg+92vfGotqHlXTxrtmW77La7TH/96VP+3+PGzjwj3vHS0b+5n3AlVMHPH4jBl+zt981di1K4e/8QRHSKN/ur3+J9y/KGeP/8Q5/zUZGWjPb2N/1RoTw+N7rj/rP2DqP4NUYVXqp1EXzlOCgYbHQU+TNop9HGbtH1ZqcKTYTzpAPYmz++zUYYvu7UOje19m32c9pme0Tn17RM/ie89e1lruTOtRpZVjIEHcZbGH6HiSoHfuMFW+hGshreSp7zK02F7GVgqEwPMwylfNXR6mn7oIdVHlrRQUJpKXqNGeAkTGWjvNkGsP4GKoz1o7s+kQyY3SAduBXJQKE/WOu8Ln3bZBqvt/34invhHeYvoslQ/05A9Tbf96jvnS+DqK8LEb63958fcx+lftVvk8Q92A2dJ7Jdn1rZt2PpXpE8d4kMT+yEUitpmUHHoBho3tFEetGE7QmsH3Whf0OFHTJNmcnLtl76Y94Tsw4fQzddXZYHm/qCz0mTfkf4ZedqmG/u9MZ+Nf8OPfsBpXRTfZh+fSfar3ohGQ3wsQnRFkv/Cx7gT+nYTh/14IJql6wUHXlteGxu/XAS6+7sQxWRphOhU1YUBHp7ysy2gFOVx0Me1EtWmOKCPu2o0JKfhrk+V2w95Kp194IC42WnHKe7b7OMpXyJj/9Hatn9Q8bNk587nelIHjsGNjbg7VA8CT7wmcVIcUDatc9BvS3kQbUIV0zbA0FbbSyNCLPqIJ/WOF7LzNuX35IEJtIRZ6vz+IQOFsoAozRGIu8Pu7A+DLyxe9f1LrIf+70fvfuVRMiHoT8wn+nkxoN2Eid1qlOlDlO37aj+6EMHaR9KB0ax3Fxs5gI7Y/Jj7eFLveCkuC1WGJw+dg6YwDP5YXgewF/ueKkzy3usP+lAH4FO1Xy6xdlToB/YNmNjt7LdAmE4Uqjo6Up6+Pg04bCYchP1qj3RIe7Rv5AkNmCKkHEDFZUcIhDggtmGynzr5UP0FPacQf3+R4eMidvIinYajm5/4sqxZ5Il8uAqF0I6627MtoI9Tik/zcav3Fx0+ztYWXTmiB9EHcO0rT57REueCE4MrKcQBfTxh6BLxZUQv7rLxULPTQ+pL0ZQ+lWnLcED5QzgINUyyS6AgWuegthDBCVT3yZGDqEFbQuDol9BiCf5EO+UGPwtko2gfHs76hJUiQNAmRlBUCHZk/SsufaoPUAfc/aluggPqJrsECgI+vToWxj9Z8qyl70r0KACJ4trf4T06EE39iCfdmYFms+KyI9RWaQuQzVYHaTchbAOPg4ndQoPNukBAneDUR5oaDuj6JUQNZBACR/+EwFFHCNwKodYqif3hAHhSiAoUOQvj8Z0fSOqmiEBPtZtQCOi7v/Z3tuLoxH5zCxwBw7GjpwwqRXyeQMXlmFBqNDYODsZ+65/6QnNngKE972eH/RYti6SPJ26BmShmriFKa21/en0j6PQCm3YRyLsGLpRkebUdSZ+SOHwOgjQfWjLZBAo6VCINx8QBtejIEi5AFJFvow0tc9oLH3UwBtNH2+XxS49wIr48i0KcjlV90KXWYqdfs1WYkDyEfQPmFZUnFZQHLtLAT9zBfUCbLaWVzVn76HtCTRIwOZeqb5BnrqHFzGKXykr9TzmEJiqtt4i2zoFm/jTvtC6b86KYxt8pqPoKY6pvGme0zxbqSUi7CVVOHKwJ5yx6TRheOp5t36/jzfecfkJcr50BeYkugjfZMwD7ZU65TZT4mSx9HpdPRL+Vr709XonDqiizRxQGe1biYC+ZxE4Sv68y+9P4UnfCZnsmnwOa+dvFP3zn9nWnfXThQVc/bLr0vledaYqD6v8+5n+XU/60xF89WJD9k41/nhe6jqC78o52TePFo+XJZZ4SctwT9jv+k9lP/RJdPN2hB0rTOU8q2s1/Fe97qx3e0QuCrXee/to4rn3QPgBZNqjy4mwGClQ6XLXjgdNWvy4rOL8228QvA0uLg9rcG2xW6e8dP6NjjT2Gxh7oSEJz/iT6Z/RJpx7rt5/2i6yB/QiX56DCUF5xwoJR8RaLyGRB2aLelhqIGJMICS5qu8MmA1AJWYwdcSefsScEH994q7La8UM08s3v38Npax/tvzWszj11yUGXPdFkax8JYX3C3iY6TfbLF8puFDdeUh2Jv7fwoKs6OnnvvOcVB0zEtdPlm3LniSuOVXcMOP4y2c6r1cI/kr7/Qvuf6i6jf7/zXx6h70jDyrzqH4/U6+7qjZfgSeL7tFTk+ER8thz9Qx/zX8RhxLn+BMBF8vD0x+eMBPpSurT3TjFfd+JhMG9Otbdno0aq/2teGH0i7Z0yQSFOmHINCpOYnCQuuxj9cd4jLHr+kx9R/fXI3MpFtLWjBcfo3S89qh7VvmhRF9VdodKEIKe1lhhKIzELJQZIniQmYPYK6xSCnuEnnVCbsg9ln/zTDPUmtAUIUtuSA3TSVHamA7YjRLXXvdkGGolZ6NsTB9eo+Nm2o/GEsM/Hs/aa61vmhHpYFw/OmQBoQ99C3mTyUd9NgSyehNGOuOoAQq4CqLBCXQhB9XHHloAG+8Nrls5feE74jG9vSuoLQLaue/We8fjoWbmii7Y/DO6vBJU/W7Lqqm/m9j8Jcf4zv3efVH9STvqf2nLPy94YRtGHJRpPndS/k8jLrerI/uA8eQncB/tyBaoh/nkauXxkwuemH4hTK4ufceVjvUjYctdpv23wP3OdEEJ9PNtJ5/ZvmH/Q1euyzafjeMnB318v/WIbuhLff9by8Yntf9KzYh3lf9MErN3JFLkhrMw5dcEB33uQ/bd9hmPr2pfvUY+C70iDRUmiQAkmDaEw+Lni4+zMJmccYUBwUBCmXAnmC/HxhCGDUBenn66yBQfkiptQWzbxm124RKSXiYSJMI+/gSYHvoo+rnzG7NCM/TLpLlm89GMp3yzGfMcIrv51kH73oTAYD2Ll4eSBp1QGXZaRjza2IGF7uRivcvJzgvmR5IzqJm0gF1uTPMptkTPUizCjn+qufVh7s0WvI3546arnvqzoxQbUqo+Pni9W6DfOBmm/vKDxn5ZWq4csOaT7xQbdCSi3YOJlz7rqy0uWzX+m4F/UOvgZW1O8+h9/+VbPnpvvfjJ/wabKtN/JVRpRtXmzXLUc83HyQrLljOsDNqO0sN8qi9036JPtKqOf8gqN9mShb7OPSxTL0sYD8aNnLNy6c/uVklVHwnfmv/7nP+PCuFtMw63VcM7Lljzze3f6ak664MBry6OJ+jflva37qcJIFg5glyRI7CRJZBGhOKCPu4FE3laDQRX1Bh36Ig249GT9Azr5hMrn6ZT0AZ25QQZwQMW1gdAEygadCRUXHkLjd22dPL9P4PpHiCPigLKhb0LqEcpbcQW/QF4AtkOkz7oCn6Cob3J8AlfCJ86lTRBtUcfCq0+APs569a8cAPo469tB9kV9oL7SYIaZksJ2wrRJ9/bLPZ4nlyyc+5EwvLDweVV8hMx/O00ZlP0SnP+1ZNU17w0P/v4Y+54qDJ9yxXa5UnJ+UAk/PfD4R+GU3jyKiZg550P4hDEx3I6Kyn/00c9S1Pif9MTVTwNmqCz87MKWzTsvk3FwIufBTkxhrjEHe5n/ZNE/Jm9DftWiVVfenO1z0rhtvuu+T8rs+rxOTxYyibjJWSZZD6fyMBx4q8kgayz6VX6BmrgQK3/4x4YlAqGPs14dDZZWJx+hawF0uhGyX0LVAHLwB+j4CVV3TwblEKocrw3aoch8/z+XPevq7+vBLNo5TyXxg/3qIw+auS4GLmjOKwyh+VsYKU99jyPxXwPuONTPgrM/8CjN8aNP0FggF4XyiSvR0UlTHsjBX4fysvpAFmhpoS6AkIwSrdiybXzd5jtOex8mDiUVtNt892nHSp8HOqu0F2qBA+Ksb/C58+Nk/syzX57+/Jtlh177wSJM0qsdq66+oFqpfJxxJ6SehHn2+TQfb2e/rNpehKvBvduEtaXvbRwZJYVSn8k/1Ys0aZH1N/iz9veuY+ct6a+sPpAAWlos41NrUWN+SO2mH1L7vVc7pKJKTD0QxxdWtt616RJJltPy4l9E/ieuD+XdmWHldbLw/1FC85CWC47Nd5x6QRDF79DQY2LBhkJoB7pHOlhK4LB1sqS1wFCcTLZX2S6pBOdAATQcD3hKK3eLRHsFnkiyvk2uL1sYwCO8hCoDump7tGv+g634A9TNGqsM2/l9KKeQDaLGtXbQeMmF9rJI+vbSVVd9CPhsK2nM0jgy0Qlhc6MHXZyFzvbgAc6Ci1EogD5u1GZ5jIfV+L1ZC8oGxNZugPp9qg5oB11c+yxsJ8/XCLjqIFA0WSELj/+3+a5Nd2258zT99oiS+7yrxvErIJJ6t9N3qvbLguCaJYde83d9NqNJ3OJnLXu/PAz8y0HFXxKnEtfqpzcp0iHBlhtp/BkPNAfOkvU/6KQBz+ZTvv3gLK5Qd8B2+ZTVV9tIO8qAlsBZaKvcjitLCw9svuunn5Gvt/+u+ZZnHBz53rbG9C393S5e9D+gbiKGsIJP/XHlrXJOwyMYuSU3bFvveumLpO3HIUkVUomC4cQL3J2AoRxwQMXRH2hqmJ1ogEOGypE6Qm0HPrR1fyoa/MJk3RieyBe6yocQFeRB9Kp9GwQOFsIcdtTKhmI6G4+1U1yUIEzsNsUg2Ppz0Pruwv4guH3J7ru9CZ/ITIfZtYc/zCcWA1rnxwF4dmO8kvaUI1B9jliB5v6IA+Zt4l+lA/o4eVVH14fiyi6yqBjkAnfys/yqB9rzjzgg2mhTg8AhCoXisxBtrDvXPoqeEUX1yzff8ZKPF3G1Qx4deCVsQ7+qr3ROmNhtCqkPtM7jl1bWthP7w2DHvOrcPzAPFLuXBzjrc6Lg9yuVSl0U1NgXHf8oiHTx1otlmIgZd0Lf17ABG/4IfZz1WejbrHgvynXTRh74Uy1djqCp2uFkwDYUwLwNvJ3YL75WOeWu0QOb7jjlf8tbwN/OPGiKP/w72TlMnK/xYnCE3wXE8g7HsoFHN0QbOP7C8H3LDr3qS40aNR41LTh23HWaTHC1S6M4GpFnN0SYBJabZoIcO2WgN3BAxaVjQmmoihCqEU45ESgNoTiUcRBA+zGouNQROmbjRzMU8BP6uFGtf8HpHMigHiqvXf8iswj7xUcb5lUqr+rr7zA4m4cC1OSrdy43VB/grlg8ERPzbRainfK0aE85CaTshF+CqjQEN413kgNSpzmQ8Aub8icSGxHWJfyN8kWY9qMQOPgI/bZOaq/2i8j3bL7zyZ9uuueUAxoV7P1o9P7T9xZljx2U/fJtlAvdN0t6V7qLlosOu/YWyTJ5GNvygHEnTOxmnPJksw5Q8Unj/1I895Ynph1N9JS0sbmVsB/6qa2+/e0UmWo9fumygPyfqlq7QvtNd57yl3JO/IskTwc4/4Vx+KFlq675p3Z+blhwyI8RLR6LIry2fGVuQyQSCqBsmswOWmKD7HiMUfdCRSMPd2gDLa8+M9pVttAA2Q8hRXpQNNQjQB/3WLpD2Zfrvxf75cpRTR6o+d0Fq66+v7vOZxi385FqTb91YgJ5k/aMNWLp4a6+OQbiYZXBMwTaAbf2VifZIDw+znrLK9cPdfAhVtQ4BtTVNcRDviuoQ2Eb4krsYNfU3umitkfHhrX4xi13vuSZHUhqy1LfOf5i8UFIP6gPtP8i7JcHYeeMtJ2Q2irdJUN1ZM7/lWtbE4wvbQX0cdZPKf5xvHTrXfce16WKjeyTxb8P+S8/zNfYX7+P9BeVRSjs8G3ptB+/jeKUI9C3333W7FTsbOfbdOdL3im/8PxhzHWW15iTsMFvhI0536/8l3fofGLZYddeKB21LcmCQzoPNz+x8ctxVD+crUwh5A0VNbxVvXAZL6AaCnNhcH5pJ1/uYbuGgPhEDFkG/bapdPYFaJfmCHlKIESb7KdNn2a4yeur/WH4niWHXHsd5M/mkvrMcgJxsA1WM06IweQ+bucjxhPQ8DTuaT9pf838bJffU5N+HAvQ2+meQFjWZE9/7Rf5+0gXP9q87qUH5WvcBTWO9ORIn+S1bLJHOlca7HS2JnAS+8Mw+mo/v5GSp2seTd+REAZXso62Avo467Owa/ujuLcFh7rT8pR9ZnXJO/ZtMHzy/O/oxUt5HXVIqwe24oANZkcK88YjbU350zHUYZe7PNumNaecIzfmP91J/JvzJR0HeY5sig/j6sa/3J75ytJV17wnr20eLVlwbFrzkv8pKyT9Lnnr4NuAsMQRXLV3UHA9dFBx76SPNqa8Qd+QVLGMfK0gLeVKMdYB5slPaYnOerIzfpNDGcLhJtCi7Jf+/mXZoT/8dKr/7MVwnxAbfEno+5eWow6lU35fho9TnkRcUUD9wwDBH2DOBmbK8XHyUnfqBx7q3Ak/5FAG+yH0ZVF+O37Uy/aUaOf4j7avffnTIKPXIs9v6Ns5fX2Iu34S3akf+urFfgnBxb3qOdV28nHlYtqThZBNm32cfIxdp/aLc3pbcGDe7GC8UFfq5+usuDiaMMl7L/8Lvr4RVOUPutFfxFvpCz6UTvkhxwo/jLrDXRRsvuslLwvi+lfEL3ouR8xRNPaMO6HNHRqfVvGgf1nv56QfK/QhM/wVSw953vlCZ1BAnrSokpvXvPjlouJfQ00rgEgaHBkEDiUIVTFngFSgUusJqbAPIUvbaT/t5fttrZ3pYDqmOPmoG6CPsz4L1TronhTiBdgfBNcvO/SgjleCiUozFunMh9mY+HHzcfL5NB9nPdwFnAU8KIA+blTsyWv6Gp205nqTbXkM3NfB5Kd5Ddk+zeelvlno8/g4+Tza08YndspEc2HyocF072xv7eJjBmG/uP7OZYf9588606z/XMsPOfB78q2GJ+A7FEI7Yqz7Fn97xboJ73wv3eflk0/zcdjg5YK2RT0KIXDaSn7Qii31JOeLzP9ibZgZ0rfc+eLnRrX4m3Lmn4OYM+6EsCIv/qSZlT3mfxBfv3Th08+RdwV1tYatxA+fvUB+/VXeSc8Bl0JTPJ1coaBvjCnc+56yAH28tcTJnePL8PHO5aW2wx8mow/2h+GDI3Pnnx2Gn5V7ybtGge9ss5zBXIjN/GoQuBVCd9gAWAcImag06OMmS07w2tYgcOhAaPE0mrK5euDUF3KMz/ozPupgR/7el0kZjZCyAdEytQG4FUJ32ABYB5i2hSx5xvAFm++4vqff8Nh69/UHi7jFWf2tD+urE/2y7RttN33lJui0vrYf4070utHXlS72aYZPOf6HYE6l/KnDSeKvVWlOIF6d5P/UdWotATdU4Md04zEg2jXqa5Joox017lkH6Ldt5NrVjkbvftFRUT3+njxisJB+hX86iT9zHj4jzniZj83XwK0QusMw+MXy6pIzwmdcvNNROgaVzVvX/4l0HVEB2gAAPCxJREFU9ow84c3KpAqih+Z6SzSTleKJMS4RNfPMSxCSKNtOnvEKP9qwHaEpZLJcvcoTPOlfExb9tdpUiMkAl5Odtk9pytlUn9qMPlz7bXG1cqZ7334ie1dBuJr2P2GRZj5ALFAsJuYzP2aNPmfbVvKaYiaMSksaSD8qhDnAvlWJpl2TPGjq4t7EnEPQroSedO/wlHWK9sfxhzbd+aKuP1XH9fAA8zk0oQ6pVsRoK6CPs74dNPun/4cJw0r1liTuBcZffFQZ3fHk/u380lyPWwT0cZH539xzkZSi8r9InYdd9uY1Lz2oXguvktXFcuhKHwP3x6jiUknYj/yXBc1dleril4WrLt+K/rotFXkG8xQ2yioLQ0AD9HHQSCdEPQqhj7O9TwOeTnSc/LPQ5xHc9aFQdZNB6qD/AChaoVCX1v0bH/ewBaWVfbS1VT3ask/gchlXflQ7fMuKVT9cjeNdsWR9ipgbjbGGV8zv+f5hnfGzLWPQVh6+aogCqLjIIUz6ZR/KqOyQa5tP83HWZ6HPIxIyOQWZtCFfPtr7hbpZP2xL+0XanKAef8Rv0QkuVzX3ze+/sT+TRRqOiJs+duzjPo/Uiv1zRuJbTM707WXavSWJe8Hxr9ejp/fP0kZ/Z+MP/5PWGBungdoqOCDx/inXQhJ1li4Lyv8WHc968va7X/zUOBi7Rl5bsRfjTthZ/CU2veZ/GD40d978U5c+64qef7m6Im8kOxoK+4nRKmp8NgQQG9oQUsak0A0OaWl/6Jc0lZU+ZOg/rNJKJtYfqoNAxUUWYSLXk99KDumwG3ir0rX9QXDh8kN+1PWvYLbqf2bS6U9AH6c1Po08PrSIWoR9nDw+zcdZj36As4AHBdDHldh2x/zoNGfSvlvpQ91Yn4W+TT5OPhkzQfyiLWtOObmt8g0MoSw4irdfFuBji5558B0NXU/DwchI5BY9vs0+3plSHcU/xmKu2yILAs1TxpXQj7mPd1oPPcA7XYV9U1/oQZqPsz4LfZt9HP7atYp8HX7lWK1+tZyi9k9zxfeJj9OP8JHvb/CgAPq4Elvu5AHRx+XnAk5dePD3H2nJ1EGFfEsq/o3wLTNeKEalpcadfAlVbzyQSv1lNpFfSpQmVLyxvSgprFgEWH1jLXpspFh30gJkKaqJHKTSTRZkWlEOx+lIDaBRfkOVHmTbN/LTbkJTV3iS7lvbLwumby0/9Dp5hTO1b+59NlPoM6QGcKaI4eI3F2R/YQl/gGxt6B0626BFzHJC8kqeUAsu8n0MLkYVErI5aFLTmDA/mVPt+MNKuESU3COoBHsI7x5ix960DbJpa2pfSkvr+2O/2uLGYxRO/I0cn6a0DnYybuWkCKsbx5TFQ35CgEZpQERgEi/DWY2ufDzH/juG4dmlhQdf98imX73gSdFvN0sQy6ci7Jdrm+Lb3ko3+a89cD4GlNLsf8u1JJ5dPeKnInvaFZ3/QZSO4Z4UnGGN4jUvXLypVv+BqH2o5awzoNv4Z8ZzR/lfCTcL30uXHvLDe6bqthF5//l/ylWOVakgS9z02MMYY8KM8saZtpdXCmFOk/sKjqa4cLnDZOC3kEc2QvBrIjt+4kxuqxf5lKcKJa1NvYY96whR6eMNzKlcym9hv0zAty3fff6bZZBPIiwje9YdmulwEQqh4a3dQtcSWo5Iq4TgoWEwsfyw65JfOoXsQZcda07ZdyysnSYGnio2vlIsXWgaDsB+MRa5j5OJ/Lz5qXiWQ66o/aITH8ivFON9Hpbu8G2LkDRNSBII0vL7gaBUoHweWZ/PNw3UMMCl4N20Z+ZTo7pNStFWQJT8BanfTOIRxfv4lG5wqkWYuDIhePkvghn/ZA50tJZ9Fv0iDn0PB5Q1f3HcE0IvX9esnjSTsKX9PX03K9vbzDiO17583uax7ZeLL5rem9N1/OlYwvb5v2MkGDlj6WE/vLUf3hqJFsz9QLBt7HQZUPtDB/avwvHRBZniPsJkjVN+VFOTDH/StiHbyJwDtZ+0v+b2WQ2pLaBT1UEcZ7lB80tj6xz+jD2d2C99PhGMVM8K9756m9/XroTjbYbMiXY+Vp+KcwCT4qFu3rLETBgM8dkyVQM7XHDYtQ9JZ5/DNrrmhXtPBPFfibLvEPv1V16LtJ9G0ndRPTpHaB0tOGSBIgsj8yDbQx5xQhsCWNRYb6CTZpTGPdiUJyGHWxJ0mhG5dY1Pak1a0FZUECekrd3YL9/KEd92V3BbPdHNV5E4YY5Y6ooqLD5xzCsaxMkT4mcHCi7ap+sDamtOuGPiLp2SXKF+yubbSpzQyYl2kSsc8vtJ1U2/evyrkhsvcqY3Ad937eLf1FgIfnvigBKjiWo1+N2lh/7whrx2vdAqKw68dvO8ufNPkjz9OhJeB5imvkRYOtVBIBC4DjoHyUdIPkK/rUkRGWKB1iPbgCOJHLQu8BZR0AFlk+oEwjqpBA3Q8BSihroAYkMhBK5tHQRu/AYNT2VoT9qf9YH+VJaDefzyjuiJoBq+drdDrntAxJdFPdDodYsg9vYHFqN15i4XVqSN3NUYrrL4sOse2+3wH79bHhY+XD4J323aFWe/7wv0Jcev7tQj8uZPXXCYDMlta6/NKRcHGGqEPm5UrXEoGH1bHTmMNzts+kEYy+LH19HsBq2f9ocxfFtMYWxa6ysrFymcQ4krcWA7+lh7d71afthY5+g3vl7G/7CN/SJcKyf9cNOa335e/KMv5EQfU48/Y2PxMHnN+S/nt0h+guMtyw79cfKW3n7YqBfYFq265lER9jr5us276sHOw6pxtGcqnCY6in+oZ2ChEypLA0NzI5+XrIQN7nRNE5oMokiu11XkC31yI12uIZ8pE+DbyAXor84SOv0rBHSDQ3aHCVRpjkcvlwoREAUDgZdQHUGBChHM2lqwUCH8715x6I9/bEy79t6fRHxcfaeOc/4hbi5HEMWxcgCIkqlXsqt2HMY3RHsZpGs3PfiKE4MtWy4TtV5QlP1qMl2lMD546x0vPHzJodf9qgN36LsiqBshHG44HI8CLwN33s4cukFgLMplfJQnNxWH5gqH5JTpojkmyubo2xf7w7D393CobgyqKEjXu3D4+a8GkNXV5zZoGE8JozYvasf4Q76PZ9Mpa1+n439X+LVYeeboY+K7tyQ+gy/d+FMI53YdfyfEpQFjQ5jkf1z5o2VHXP8f6KKfpeGO3rLDrtoowvt2+aSfimZlbVx90vvh/dRR4ioZWHopyC1qsnOjLkgcD+XZ9GhHMYIAmRyTxBldDlwnnzIAZWHyqd2OvPFffVqJw52yIPN8ThzQikRAURcJ4qwGUx4Omk83YUOzX77f956Ue69nPrljK97/cAAXw321n9Z6fqjZzxO0XXDIh6fklgrFAOKTselon5SJJ/FiX4Ro5OM49koUD88tFZksNqe5lq90P+wXyT1c4UD+e2PBVy8Pz6Op39040rMUCNljZRrYrrDxPzALpqejJ9c8/2/lwe73aO95sc6jKXM23tljNATNF6ANrbWO/+pfrTji+n9Jqf3DGhYc/RNbrKRNq08+QFa4J6vPPN/ZggKTpnOy+FTRBt8yAKJjk++lTnnT9hoctocwbWP1jkto4XXLjxh5b7FWzzDpLgbmzvQqEKygO3MtUh8Lh2sPH6vLHTPxSWXkCh48UX6sbMum21/4ujiu/VR6T362fFLdu7S/2T/xczqyNI70qnRTe7c4TBYYoo/iLh5NsrMByQisVMLiHxpoUqoFIZRvNcmEKga1zq8+2C8fWKotNGhPnnL8dcZKxxhtBRxE0XWqJAHyQIr2ihyyw5TmHTegndo/KHsalBvMwZNrXvDuuF6/EL1lhlMyF9Kf7eqTXKe/2vi3Elb+cbcjrv+HoiydkbfC6kF0PnKYCwtAw1OoodKklx2gAsNxVQR/Pk1xBAP/Tl4WagKAh0WiLlc27h+ZN0deW37d8Eys1G86IUaEbOotB4GrTwnVz3heB3Gz53agMnAWiEFx4hRRWkKw+mHdLz/iupuDSniJ2i5K9tt+nUfEF4DY5MpF8mvPk/lEvqWyQ50KJvgyKcxvaowK0lKMtRgOigMCUR0MGh4vhYShKHG0RG2ForCZdhOqkjACBdDHldhAUQ7ZJRAI7I/i7cbd+R63CJj3hGhN1QAVlx0hkKb4g0/oqhMEYGw5aAHCQYFFzijMA+infXv69C3/CzRhOkVvvP15b4yj2j9RB3GdFkDFZUfYU/zRuFX+h+FFyw+//s+sx2L2M27BIQmLL5u+yaUyvNfSMxy4gD6eNmBbQK7CDSIu2Q1DV+Ml0A3j0SCsvmrps67r+c1rqS6zDDOX2uAQnL70/Wy4eRTPyuDPfGzQvNy4FwbzvZM/E7w2Uqn+Y1H2YwJXn+DEIpsMjv3xnf12fpGT4g7lF0ZCjQRkOJrKdjjloQ6llT3QxRQyIMLdO35An94ShfEy2KR/9Jeo1G/75YS/o1tLMRH3kv8aI6RAK3vEWo2nWd2tWt3z+1c4RC/NFwctd0wfzRHVzbTrevx3r9nQt9j4qxecIYG8SO7pyyku/0/IWgOouMSdkHlMyLgTJnkPCZl8kaciv7Xi8L3fLlczIbmwMuMWHBtuP/El8lrX/eAwdb2DPk5nItuVDx6XDYAQOOoITZ7jB58Un+bzoo0ESJY+8ZtXHPnj25W53DV4AP7SjckNKH/qbwfpe0Lf3xSGiQil1YREvmGG+hBnGN9alP2QyyLv1JGHJuqH8rgVlDnNfQpnWxtPxk9a8xjQKCK27g/8fv9+DBUPg6G5whHGoerCnGq0tZ/293CFQ7r3fWe6Wd4Dnyz/G/zvcoHxQTvgbE+5xUG7OglbdEPvXr70a/zLj5YVZ8I0SH5y9fNeEEd1fFN0hHkANZirjB9jCYg/FEIfZ31e/ClTG6uM8Nrl85e8IQwvxW/vFVpm3IJDTvXntfYIJ0qbPOxUZSc5TXRJfEIGlRAy/asgPp72l8qXoP3N7kfchG8hlCXrAfmuPy7r6uVe+NycDgfbEHEQ3kQdIfkIjV9qld+GEHFA3bJ9D+mxaH+96S4K9tF+uBbyABUXKFNx2wWHfHVzB/UgRByIA2JjLAAVRz/syPEDtOQfoiscEoOlah9u2Tn7fJt9nPW92C+iu7/CQf96PlddMTqExj/iiX7O9wgJw0JoVVwA8CrvAO78Oht831Ff38fAwUOYz9/C/lm03pBnEo+Nw+gKWRrOh5/oBz/WfYs/cqkh/8P/XlEdebU8bzaGfCm6zKiHRuO7TlqyYWctfdeAZq+4iBDeEoeycDGRQK1P2TEwwe0P0LTWMQO4DjzR31h+xE/+PttSWctdEIyMBHF9wjwhoweDJTlLwYk6y1icbE8PSxNMQMrjHEmcztegQYbxOq6hB2E88vNYnlnU/OyX/WI1fcUch1/kpV4r2zlELoRs8Lzekl1jh37cGACwb3O5JrQFkHyCk18u0eovWjru6Qami+ZQZ6rQDsJO7A/Date3WOWqrYVDdGNMVcPJ8l8YyOvHX4eKhcPGCZTmcWdmT43Liz/GuvrO5Uff8r86SIOm5o7JWm9Z/cJVtXjiBxK/JcpXdPwx4cJ1mhLhmmp10enhYVeNTqZjP+tm1BWOjeP13xNPeV85g/dQAH1cic07nrQAfdxxctACGp5Cypfhc+uKPfZ8S9H3upqVn0EUvM2QIVFfi+7O5zr5wL/uD1YprVPz/DAT77TtNPJVwvrj8IHa2m/7s36IApu8JrM3DB5CtX8lz8cna+rX+W3sk5OTmcQ/8H42wW85WHzjvacsk7G7j/bq+atJf2EgrRMNyQuouMiW1wU93EnbnnioO/0LIaTlCWSdz5/H10ca/aB66biHjqJAP/N/Flzh2Ljm5H0ngvFr5IHh3Tt2f148ScsTwjpAD5cr9PfPmxec5l6FkdeyENqMWnDE9eg8eCFdEBhOz2QXDOQjZNtW/FiEgxfQ8BRivEjt+nDO3FeFT7mi66fQ2eeuDnn/ENBw3A5wS26cjtXRBg1vjLGywologm2GlDAc2QRVzVaDtJtQLO3afl3AiB8AFYf/Qvk2RtsSy0kRvkcxSHcSao0lfssxR15AH0dbFInhbpvuev4z7Gj69uG2sWeLKaKiN+sWZH81jnUx1721EsEu819jrlal8U/ywMVOhHavyhRaMA/yRPQt/2fUmavZE1vXnbZnXIuuldg8rd/jf/L4Y34IH6tU4lMXrfoJXvg50DJjbqlsvuOEgyfG4+diQOp7AcRNxG2Qmt/8sQU+8uR6FeMQo8ONR+UVQp48YZuQV72+dsVhN/Y4meRqMIuJ5tSMi5vsNffzxNd80sLgIQ8a4xlqlWnim+QNKyEOJ5boRJBRkLYBomRhW/vVD84pFBB38qBm/DDGir+wRvOm/jwa6sFhOloATIa0skORZzgfdldyrXaMNLxfm0/TTm5ZHA3bkuRJ9BWS4PADSj/sl9dw9HyFo0/xTxIpa09SYeYWsJdXnag/zcHYwyY7au7O6phTqXb0Q1Z/jn+5b9gsbIZQcLVtfHT0KrHt4F7thx+0KJQdj+ls58Am/wXhk5Kfpy0/4sf3Toe7Zsw6cWIM796wJEsuX4rHSMtzHhcOgLkbphfUuT/IAM7CpAeU7YIVR/3sBtaVsDcPZHyq/gaNMYD3DQdMJysXgyb+3rQYfKt6LViBXvttvy4YxCuAhmsfba9wjFSrD/EkS6hewdkCBdDHjarjxaolSqjXBYZBXQ2iMpkNrVFUj481bPr28lsIRyOjzNbUX9Co3/ZX5o082L2lHAHQEn+AGssEIndQQ6i4HBDCDm3jIHCrNWi1Six2l4m/3xl0RwHElrXH7AbV2eJBn7/wr1NIv0WU+OGzF8Sj278r1j3btwcW25/5pJ395LaYp/mMdswD4CbNoODbxOmvmM5vVs6IBUccX1gRL75J/TfpzlwMJ+umE6bgnDyzUOPANnrgpFt7nVAhK44/ufLon/+bqyxBBx7gAk+uF+mJCdDHWQ9R5mcnVGOmRI2b1gkt4ddwYAce12YGAPmxtAMKs9/3A3zVwZsul9YWyuvP5W0cnm/V1zILEuKMQJx8Pg04Jk1C4OAjNDzGt2aeO90hkicsToQOao+DtMmHUF55YISHk8enAQcbIXAx/9EpvZdHBGgBlE11cdBwpx/YGHdCNMy0T2QpUvwukpWA+SEd99C77+O/eFP63kMcv2POxo0Pf0Oe8jk5ySfpRePK3jLxs5i3mf86iL8sQsbDSuU1K4/86U3sajrgjFhwbLztylOjqP40OMi/okG85RUPnQ2kEaCPQ5AWRgrQx121AAnUj1Yevfh9KaXEuvEAB1OrAeaHxceTPnyijycMMwOJ4uAk3xfU2jfJx1nfkLc5DM1jQPI4jrYl7Vsg4VFX49PO3Zr3KrfVGPDHhS0m0AZNsGF+JPTnSnYLm+Vk8/wn73jufqQNGj6x5kS87v1g7VdtFYwGYNwrDXZiQyH0cau35pPYHwa/UBE97HzVkuY+0ccdQ178jdbKnkRyYQjzAB34Oe/j7Nw3ycdZb7GRI1R6DJJTyU8FJLxDjOBD88bVq78kvjmdfoC6nkkNeGJKG4ZO4i+3N2W9XTl35RE/vTqRO03IjFhwRFF0nvmHE0H+YGIgAfM2TCTGY+2J5/FqXRjcN3depXxteYHJaTGwiUnj4GIkkdI/nNHwB6gbcUDdClSuT6LxyUbmjZPzxPXHfvjCFVkhy1HbBQe4ZRqykyN8y0I88bdorjTMfCLb4RorwfWP0MVD40V5AqU6jCY4hr2KQaG14Hy1AbpnN+gAGgtx8uE0oLTO7BcP9bjgwLdccvzpaIne8LHqA52pN6GQcD0dBRAbeAm1nVUXuc/Gf7K+es7/OBqaF8pNZh/rNqz+wafEVvmWZWPp2X6NPeNOKLLz4h+E71x51E/lysr0l6FfcGy899hlksBnYXDZeDHo4zbw7FMHcJsaxPfwv7dhIOAY0MfJw7YqL4xHq5XgVUsP+dmG6Q/TTNQAg8D8TIgj4upjPYZt6YBBLFDSmBhu1Jm537D69tfLQ4srBmK/DAw56XW04JCHqjs4OTI2FjuLAGlpbNJ4pePQj7VMrOfJxvAOLJDx/S+cLx/wmib6zhWgrZ3ZL28z7cCnrXung1J/pj5u3cqr4aIC0Mc9lqJRs8H85ee8j095/Mfh0Lwyv50/N972O38vVyL+oK/2t+rUj7ng8mNsf77yqP/6XCv2QdOHfsFR3xq8XpJzPhwjE6n6B9DH6TQLKKc5ORKH6x+gCwQh2qCO0MdlkRhXgsobVxx1s9znLkv3HsBLv2zC4Ve+APEH/xMyFoTohzig4SnUiGkcjUbe7vUbXAtcSpUHFt9flP30EyEsk9s3v+3EwmqlcqPvY/qTEDKIA+ZtfkyAZzfYbbRg/w2/eq58cBhseWLz9reIVsupe1Zfsy+1DdoZzfQkzvZZ6MsTS+vVOQF+Gbjnku3Pl+/jWT14jI4pw8fTenlHTqEFD/anecD49z3/g2jfQs3ok/ANt534fvmw8YG+299yPHrxr1T+94qjbvpIn0zpi5ihX3DI15/OZwLLE25itDyEJlBxD8ooM4cQ6pGjuQFgA9GbXIRXaWjjbXL017sfffN3+uLhXVwIJz9OeHZ1VxYdMjv7eKt6uA98LMTZnvRhhRtXX/lBse2IVvaBTj/4uG8fbYaNxFvVY3yEQeW+Tvyx7PAbfxFWQl2cUJ6vg4+zPgt9nfL6hAwUhfXoExvWnjCwS+Gja164t0z0H4ZPWhXYg0K7fJt9nPVZyLYqJAj+a9lhN210eFcAX8DL6y8jv6P4W8ewmXYTdqVSX5g17tBE8iDPPp/m4/QzlADOQlxIxwq/V0OO4YEbbj3hrfLsoZ7wYVuefT7Nx9vaL5YnvmjwgsVaSP+6+5E3/Y/h8YZpMtQLjidWH7tK3Pcct17Qz0rA4V/6mBDmND1AI5VKcw2UV3buUD2gNMVkp3Xh1/c8+pf/QFIJe/MABxhaA29V/EED3B90lNEIjQciJxHbqruB0jeu/p2Xi45/U6z9mMhgFnY2qVWq0b2dGKpvy42D75svO5sQG2NhfRvN4pHiJk81c4GSuqfK0yUD+8S1c3z7J0Sr3aATJ3CoYnmWr6+fgz5udplNjTjkOD+Ewfc68XseTygzcdf9ubibe9P4i0ZOp3QxC9nY8BLgogv0oY/QF/BWBTqhUD/wAmf7Zmh1chVv+cbbTm77m0EmffD7Dbed8FrR/bPoGTa0Kr3abz5W6SLfoPRkfYXx11Yc9fI/bNXndNKHesERT9Tf6idc4lBOrh4UV6sfCe3ABdpFR+sE55/KczKAS7Ru2X2f8PzpDMhs6RvziM0l+MSNgliI53V0GPRjS1w5bQQBbSrZAdrEMCSEjbcd/664Xv+O2CW3VFCKsV/9LDuF0ov4J96tsqCjKxzQSvi/x9uTOO6+uDHm7KOt1Ad2k6bxD6K3r7/td87svp/uWjxx23PeLFn2u5Zv0jPGvWywlZB2E3bXA7lT+yuV3hcc8gVlNzZMV0rPwmz+q59ll/rbcLbL2l/0mx7lF7Tli7EWc8adUOPfx/EfhLXfp53DBDfcfsKp8kT2v4u9VfoCsN/2Ixc07oRwQhj+YPejjn5TGF4o18yGrwztgiOOz5ZghW+UUagrXjgXISPUYY5JBD5FEoPP4RoEJRuNkw14dAA6frBrW8AweLw6d468tvwX5WvL4Y8pFsRFY+PB3kT6UjgpG+Rk2pvcYlqtv+2kZ62/9fiv1qPg0zLi9at7tKC3HtkasNl+oWhOK4TH4/DO8LDrRjvua2FwtbRKft206SohenUv3OtEZqO21oI0HGGYhlH9Gxtuec7ZncjrhWfDrce9VTq6KK8t/ISS+MvhSgTubAX0cdZPAu9dccR/r56kvscqeg/QYk2o85qjtbIn22nRFzjkMcUn0adpa73TgqwunR2zdZ790Xmb15yoL9TrTFbxXHJl43eienSZrB/n+pr33rMvpU38w/gnu++512vD8LPulzN777WolkO74HjiF2tfJg/b7APDO1owOL4Gfo8Guq1IHMQCBgsPXcjE43I38DUrj/h5z68kVvnlLvFAEjNvkrRpCCwcREAdniwC5VhpoGPD8pHQx1kv1dNcnrzlhcs33vqcVz5x6/HfCKKxO0T/1w3WfvjCinzCvJF4J3Dlwf+9Rbz69Va8OkaksrU9jINB47eJ0ccthqan1M4R7D823Pact7Xqt1f6hluOe6/I/pz0LXOb9ZfC7qWaDe3tlw9CU/smAD6PMu8Jk7yHHcj9VvlPO2EfcUAfR13xpRoF8q2+yeOf6iX6qK0O0m7CNvZLbJZPjE98oXirOuth423HHS6vcLhSbFqEvLHcSWFqN+MyNfsb5YW3jcSLXznsv/NV9BW2ziKVwyUhOa+ZjEBx0KGWOCBKpl4vhwgNMKda+WWlEVbiP9zz6Nt+Ykzlvh8eSFwuA4+/aQO5FhLQXC8KESM7xlxjPHbc9NscKk8iBxjH1fWrn/OGoC5XcatyQQxF0AAooJYsgZWOP3OYyIJMFMj15FfqMpmEoXyqimSr7C56HFsPR4+QD8S2eIcdfsoVaD/Uo28B9TgIblCki10lqP5bPai9BU3UryLKJstm+eBJYqcNQJBNbEbRug7slzdzVMVnn5NF2tmVMH7/VL8Rtn71CccG9egf5WHyF6giTh+85xTfEND3nUI/hwNqwWu4wetex92L/eL72vw5wcUmsMc9sgeqyNZp/qOnbPzNFpOF+ib78bBIgSWqhhsCuYzCHDF/iv9hmBSzrT/j3wl81eO3HPfJPZ69+L1heF3RF3C0y7zdptXHHzBRi6+WPNoNMRiU/S7+6xbOqb508RHX6Q9E5uk3LLShXHDgMtnOndvOwH1NDig4zHCZQFw0ccmTtPx6aS8VTHYdzaAkyY+JKP7nvY5Z/Xm0L0v/PcBYEWYnoGyPFk+Lu9a5E7YfM+BO3py4Vr9E29RsgaAnlBrizhMK4i0fH5Ocqbuccfx1mwxDgdaf7OV+iE7cINTw0TOF8tNUMqdo3gjRZEUuT5UPOydKUddvQfaLK8wXBoNowdwFP0z06BBZcfR//eSJW46/Q8bCoVSdUCdPyLHzhQDzLSBKU7yUqFW6o92Evr5gkOOXisRT1t963MVBFH5596MX/aTTE0e85uy5G8YeeL4s9d4S12vnqivE+dqHC4L2qycAsyjbvy1AzCboQ7sJYabik9gvi5zLFx9282No33ORHyNT30q+UEeVxVwXiGL2WMxxTF5AFLUHbZwlWfsloZWvqN28BSMbdo6mV/QZd8Ksvlk9wEcerevM/gvW3zr67A23HP/n8hMUXX0tGeeasfHxl4Rh5Qj5APNb+Xbip7I6tTtef8ex+0yMB9eIy/WKvHO9NqPdhLSN8crK7sX+kcrI+YsOf/n6OH55savJrLIdH/+tfEazFf1QLjjGdm5/g2TdPLPHjfQ84zgrEGZmB5IJIYmnChUXBj/c65gVf5onuqT17gGd0twE2CxFplUNKeOK6FhkjJd0g1bD05vETxorzZfv402fWDFJY2I26dqbHCQ54fCGCYDM0iR7hcV1bipDc8dLaL1Mti/U/usXHXrDbybrfZI6vAnRJtsB2y+fwquy2HibePNtG24d3fL4L4+7RmL233Ll8fGoHj4ezqmsD+tRRZ4P2LMSxHvEUbSXROa5T4zf92IJ66LQWx/qlQpLEDUVphQdf5lM5dsw/SouUTXRLM38OWvK+c/E75e6GTmLD9p7485b78NwaNFTYfl/knwYkIXzcT+X24o/qFbCm+TK2T2VkeqmJavqWzbfvmDxRLxzz5Ew3GuiHu1ViStHSq6cNj4+fpxMGRV9ZicIbhdzul5wBGPBp6X9ARlXtDjsv/31qHbD+luu0P6Y64AoufkvdAZHhwr4wJxT2snLadJECoMr7hLiIagYygWHBO88m8BttUv3ICmAG8REYjggima50lq6T3kgQ9junT9/0TmdfprSDspdhx6owcMteEl3MZNU109lnGBd6NJzXmMONAttHDL21XwMapOPvQ4617CR24h+tii/kK21yyk5snzUzFGc9klPDfrTFta7bj1AyQaz7Wk3IXrkWPCEeGiDRf/hVXSFrpy7/+eeGLvvL6TRvpQIATqmEh2Kt1+uFuA9HfKVQtnsIlQQT9TUy7iihBnA9JM9EHfkDkRfi+Cg4i8K/OceR998HTSZWrEraYw7YZfxb2v/1HRs3zoML62v/+Wxj0gUnp7PXWj+46V3x4sTjueFyXCiHuy8BV6056InXCZFyCTNn3wtu6HKFc8ljbfsbE7Il1Gs/YPO/+z8lTf/0WL4Y+guwWy87cjDZZI71oLFjAD0cVfrRiUmRZuUhSsdqcbk753lstjYKpehzuz1JT2+yBLP9wASMfcPscJfi5jxRA1oOAev5QDaIhf4h0OlGVnrQLN8Ma5GfkdDnmiueBCSHK2VftqXp0G2f62HyFZ/sBt/gNoX1FCFobSz2WB39ofb51QX9vx7CeFhl45L539nurTWD7qjACrubFWyh7O+CRZmvyplO1URO6ejg6avo8Hn6ncPgs/RABkXQhGokgghSZ5/+Wsc96tYzHuJv2hAuwlVWxyYzdgPqNyQ9pjB4Ff8tfBv4fa7/jX2gqvTCHt0ji42KAo+1v+M3Wa12T209ltcNF9axAdWodA6HCoNZA9nvUFtoruhW3BMTNTPT9Uz49QSmOUSo1WyGh9aO+uzUNrjl/MqYXjuymNuuSPtp8QG5gEudwGxIVSEOQkLvTShgaA0pkTalvLAA5ylW/6mDiCIQoA6HNDH2V87SN2oL8QBB4RI2ymk3YQqGnwojp9tK9Xgc8uPvFG/kmgM3e93f/aSi0XeOmvJDnDEToE6fMjsVz/4vjUjUtVpDn1N/4OP7bQNbWUDEEkD6nCBcu3pypXH/OwmbdaPnYjuNf4d298PPdvJiOPrW7LQ1/Q/3AkccBD2sy/2D0WBD6qwL/Y/dPZDIRQXkARXRMiuvsfxP1QLjjh+4Ugchee2NNbZnILJnZP1jS5UovCv9zh2td3wSgWVWL890CIhbdGIvJWpFTwy8Ah9PKknXyJP2gBvMSBUFmrZTm7Qmnz05doSksdBv23iDu1LBVq/mChA44SRhawD9Ns6gX4fppfpSnk+TXGRQWjyKFeg+kBVmQirlY+6LnoGuL0orvkT7Y9SfBuAD6H99ANUpu6AihcV/0owFo5U/pRu6gsU35rOBhWnHfA9Nj0rM/aAKITWTilsl7Vf+YvdhXPCH6uuqi/Um0w/p7MbR4XbD13ajP+evMN5QOU7m2k3oZLNF7DTt3Uq47+r+Kt+ogMgdXBQ9fF0VD+AD8XxT3X8D9WC47c3rz9dkmEvBiML5ROFBgnQx8nnOxC4PtrhIHDZvrr3c371YfNguR+IBzIJi3GpsRGguMZSiahooGk94oZq7BTxoKD+IPFxqcovvgzB9dBBv4qN3XATzaCdFUI9ytjXQMNBpl77QE5KlfWX2tyz/WHwhX69Q2aPY395hbwaVd6SaIW2DrX9omoyBzjcqd8M/CALrocO+lVs2Mp++XHHD+1+5C/wMFwfS5oL0MXXzUsYJo726+e8j/dRqa5FqV9C9wOCg8h/0bCf8e/aYDSAnb6tFOLTBNeYOmj5lsZcBFi9g4XE3zq1HBLc78OvStR3yJTHv5MzVA+NysLzPHw5jIbDSOAc9E7nlkCWI9rCIBsKTcnhL/bee+lbWzYuKwrygMUkjSIjalHGRIH7tpwsVQk0YSFOCLqHN0qTOqwsMch1tQlekU+aa8o2cpj0zXvHyB3Vx3VCPKlvo2+W35Rt7DGlQb0p2h+G6+fOm/cB2NKvMm9R5T07tkXyeuZ4j6w97fTN8qe2Mmj0BWAf7IcM2UwaEMEKjr8sNn658tlL+vqbMPqlWOiNQlf5eB5N6hu9CcLk9kPkIIpo8UNR+Q1pdGhAo8bt8inxBZtDeQ9vlCZ1bexHU7aBKM1XNwZx3EtB7KjUrpD/9Fniq4Z46KUA9avV0+N2NDRXOLbcfOzuMtm/EoFDEmLDxEGoOAILmvsjDqgbUgm4phTTCu4Jfjt3bvWs8Ok3Ja9wTpxVIgV5AHFA/CDeoIaJuIuhRQknXYsauIGzEGd9FoKPPMA1Xxz0cdTlF1VQqkxf4yENR8St3vpqrW+Wv2j7ZQC/v98PPy991i+eEMPf1eiL4bQfOg42/uEOeRXc+f3+dhsmYtpB6NsGWt7m8wD3c97HUTfIUqniq8Izdfx356nGk2jjfFH0+Iemfr74Mffx1hY16mt8pOGIOKDNe4Tsl7CxrfHTfqsbom+pbI+2nyvpqb89kYwsGKvWmPKNBuEIdBTWZyCsDYNx+bnu16w8avUjxlvuB+EBiaX+IX7AkphaTIQoNMvGFEIxnya4tnVQj4gD5mxIF9ABfZy81gXyxIo/KNmOMK895RBCCnAW1Rc091ek/dLLFbsfc8uX2Hc/4V7H3PJNuTL0YfqC9mYh+pwu+7O64NiPmY+Tt0lfFzvW+218PKkPg7euOPb/t3etMXZVVfieM3f6VCxtZ4YpD1tUhLRAOzNtobwMglhNeBiRYtSUABHjDxOj+E78YQw+0R8S+SMxEiQSFDUgjxgaUAq10047FJGBQqEPoEUstPIovcfvW2uvc/Y9c2/n0XvPnal7z9zzrbPPfq1vrb3Pvvuex4YmvDPFWc98iYiP+JND2TOZWOPjt9mXLa2rpekw5/QNj8IYDzXT/00nH32dfdnSHNr+emvyWMnBKzjSLGIv7ImtsJ1c+o/cf4xHw2F8Uudh+mf8VE/OJGnLNquphJjKdSS2ROO0TSabspKaaSWXpE7VZTkSktJ1XcseH9PT5zRj2DaEAbEpSiLyo6NAOgERmyLObCod1NIxLYMhRS6ZOvRlicRmWIf34jSN8wvzGinOtQvysPYwv+nAAlz9gpAlu0NtWVVzmdlVCzS9DGvV58WlelvBUr3uxHE8VJ5V/qwW3pxtx5JLvg3V/jwR9afti7Y/6vt+R8/G25vBNk9avu+J7c3uhp79x69/c5806nMDE/2wWf4/fv0P3f/99o9axuPiaSIzk6Hkb1L/b5b+vg9avzcUfWDUFNkHuePQ9DaUdKa/7EyQFY6X1y1cjA63mA2lckSRcVIwtGmFIVKqsg79vCxDyomin3Uve+IWp2uAohjgmMZ+7fftenXTcAxENXaGUgY2KapdOYiZjekPIhOZUP4tT67MUZTPprD8usGOEV07DNkOqd8hZQmGtQodh/542uTrcVy5bPb7+vfWKrJRcXzFdTTzXbhrTJ7AqMVSNwbRUbkvWn+/PrE62mJ/TbN/FP0Bk42GPnNDiXTbovy/uPlGae7ijfegM29J+0GVwp7eFIvSn+5r4wDltK9ix3yb7RlLcJPFovp/S/zf+DCOhLex9/8JscLxTkmfvSEGg2JyAskpRJJlbHYoPgNDG9rTRw0x63qga+mirxhPAVvFgDtByahjndohbKmdVNG3/2hb6+bY8AP9g/eIRJQP/YgyUWTuMq5OECfDMaIvu+Q8sTEQVc6QsRoMNWUWh/hce8aqP75M7Eva4pVzFm/a4iprKnSc/PfXZ8Qx3jURbVJtWqt/Xtli7B/d1TntA6vAgW/YfFMOax9PyIRrOG4P5Z+5Wsalf66MZu2SL7z78FtaPnUTJTOEnmP1/3xbx6X/GPjN11d73+lWQP/P199w/f0xz5ddxTrm0ZLZuKdxxgETUrbgyxNghSNZ39sOr+O7U9BCfAwpy/KNQ8iimENVUhU31QxhhKdnTGu/go/ZtbiARTPg7CnVUq4dfJ+mTLsaUtZSDFmGykSRnb9w4Ko1YFvNmho5+G2EOeVbif62mE5SJV5zZOVZuVqCtlfb6LcdWV3Q/NY+jbQ4S5OhX4bpbUhNtVZFELMviaOPdi0ZKPTNxu/u2bh76rTp5+P80a/tbY3+yqLjwphpsv2h7x2dPbMulyexZmZruMRvfmZ3w7z9G6F/wxs+QoFzlwz8EX7z83rJ1J+y+T11bqb+I/X/eu0cfbz1de25ms/ihpcy0fT3x1CVYRHvnKztHX//b/kKx64K3gqbVHiHiljDUHecoaiwnVAc+sSkZsQxzEdeS8rli2edNnhYT11MywzCuBigfeQDu6ZYw8a+HSnLYOOQcv7DE7k5vZzU5Usn/INoX0ANXX4qkJYDQWQiBR5zKLJrI6e3MsWVtjgdqBP/DF1axlnI6zPW9GyK8UDZ+zwfJ+3nFT3ZML14J0w5af8wGvRwi/QXLoq0P17+9auO3pOubPQdKcapjxW+Ldb5vaFn+9QPDld/v86i5I6k/avoIY9ZPzFk/dTV0PQ2bIb+7OtSLpECgqHuHd42r08D+3/h/t+o8U+/4imvLZ9wJMnB1ZmJbeAm1vowpaXxZZcWjy3H8U/P6338nzwaQqsYwMvb0Iv5obkMKctg45CyJlEUmYMus/GkLoNRhpKbpmYpLAMfjhmGKnOiwDjNNxztmObDVvITfTktX9qigxLbxbJTdPX49VFX1tlQ/UulB6eX2ns7+vo3oMqWhdl9/Xs7e2afH8XxjcIDWiK6OjS9Dc3uhqQYbAvVRP6JrR2KLNxpuSxHcjhUmeojJ4vBR7l3dnHt8O3BMqo/zJflt7KIqRwlb2Px9wudvYNXF7VKGmMkLkJ/sld0iPr6D0wptX8KFL9Cm+s/pYlm//EzYz7WlP5PRydpZIzgkHJT/N8vHxVIPUD6J+tLkS3BQcYdSn+9pBaJEFo64XhpcFEX3rS3UpRAY8QBHYo7QpkUPcXS9F6cKh5/s3v50N1ULITWMpA5oHNKGI2OSu81pMx0hiIjjSE9mYcNfVk9P0tr9VFryU8BQepyqLKrH56FlEyCYKh7/lbqZAok0Q/bTFnbzjIpE3253nFmlnZoIZKXcZZedUUFKA8J38At3d/o6p39kaP65NkYftNaIvPbflfvpi+jeTiBJK/7Ovuy6ePHmd6Gprch81Trr5xrXLWs/Cj3lkfyi61QjgtSF2SiyiPYPyo939YWn9PVt+mXVkYRiAUO8QHTJdOPjVfdSY/J2fGMs9HpX4Q2w+vAZPX59nLblVDyzQlt/+FNHzkGF+CYf9EGlIm+bMcRqX5IY7o0hmI/lzezL6pvqP1H8P+ctmwmg2sucOzj34RZ4ajsf/szeNNe2YyjijkNRc38xo4RfZk2iW7rXv6vH+RzhP1WMaA2kk4EW43axr5ZRcbGkIL0AId+b6ijptbPbNoGJrM4X86OWzpWmnXOdMBALGULVla9/Hp87PpjIv7XqNR+amffphuKWNI3fUaLnX2Dd5SiqUtA0b3M02j9xeZmd8Mm2h8a8Ar0m6dNKS2eu3jTutHy0PB0oisJdR/RmbW4iAb4P0trRZizZOCBtlJ5JZzl9br1F6C/9Vm2wWTrp3XbNcKBye7/9dqvY52OgzbuGeb5Mw4N6bMqZ+S1dIUD126sRouy1phM9DuW62ymCFFkNxvEbdDru4859uqsoCBNXgb0Qs5SiejLtTUyh059InVyN0BLNs/HahdTN9YuKJWLzfiLHYLF1c10GAfwg8wjUdR2UdfSzRd09fU/cxhFNT0r29e1dHAlXhz3SVT2QmMq9G3uy7VLb4T98WVlY1spXtHVO3hd66/98nX25ebpX7vk5sR2LB1YE5XL5+KkNVS7Bl9nX66duhH2r11yq2J9nX25dnuarb+NdY0a/1o24dj52Af7MG1YpDTqyQH72OVW/3hM4zRVfptgHRKO++KUg/Gl0YI1b+aPh/1WMuBO+P7E0SaKDv3OkrXUlg+Iej2EoaaHR1iZ8A4NhlkpqSRpsUd09RrWqt+P8+W0vJzgp1E51z5r6yHqhxrv4KT3p6gturBr6eNnYTn//lw1E3q3q2fznaUp8Sm4aPc7MNlu44G9V3g3HAX/tLWG5tsfbRvCe1Gu6ew7eencvs2PTQySm6v/O6UCH8RRh9DOJQMD0fS5PfCO3zCJ9SFN3lz9pS7nh1avYZ3mjiqaZWg5GU50/ze9DamoyURfrkeCn0Zly8cx2ev/roCWvbwtOXhgNZvkB/+CG43HUo4MQJoSHLjfx/Qo0r+FC1Ium7viqR1+OUGeQAz44wealdsVp+YSnTmuympnasF9Oq6iiCo755F45xdMmaV1PoMYudpajml55kcaZWW7AiXSl11GB5zpq5/atw9OiiibZtXp02h32FLhjaxsNS8C/W1pWunWrlMHX8rlnFS7x5y+eT8a/L3khTN/8vKu164Cq3gGTrKgnv7GA+2uNlfOVVY7kQC1u9kIEWSNmZ2JTNZ0zGFpNQG3w+xfivqxonFDR98nfs+Hm5VKzXtSOVs0uqADNfXw/VP1Mp1Q0mHq37IBP0dC58I1+xD1uV3rF94SR9GNlUpyOpM0W/98+Xl/yTVzVLu48YEtr53Woh3mdv9/xj/HTkv8Lxl6/9Sdeyq8gAgOxgHbDQ4C7HjaOnUOr7PJKEOTaYI4jj5/zPKnH61t6RDbSgbMpmZfIoOeYDKbj3S8pg7OP3iME1J4jCD3h5XP4/Qz/KXHXZxE5DZS3iHS549LsQnK1uKH1+/8G77Ka6eextntMTyW/L4ZUfl+Pt8iV/2k33UvSLwpSS6/eff6Jy+CbVZhQnYJOvpRVG6YfRw/9fyjJiHjsD++mLwIL/gdVpFuP6ZncK2WOxEmGpmG2XiX9Y/sqCeNQ3/z/9avb3h6QOzu2/Jgkny356X+O1fhJ9QvJZVkmY0J1Sm9vcPQ38YCYqOCcDtC/6/n36ZrveM12+g1XcajSTD+mR4tmXDs2H3wYjRgNhtRbXhjUtF8wtBPj1nxT7uXP/NrxoUwcRkw+xqypb48Ust1ENZvPpKWrsHO7VyFZcmu5yTV5Vf7FMtDA/RbsorptyrsMkYhRT8OstVNlIDljTh+Az/v4Se96A0Utg9ZdwJ3YBDZjju1t0Xlts1JW7TZrQJYxiMa3e2keLR16Z7k2Q9Ne/nfe1biW+ylGCDPgX0WjFb58dof+WjILcCHYIs7O3suX6OrGaOtufB0qUf5NY9X/6yMan8u28w4S9ByydnlNjTkthf7TzsjqhzEzQTRJeiLxzVaf5ZX1f9L0au4ruBhfBG4v9xevmtcZKBMf8ypJdeKG01dTdcf7mF1aHuq/aU6DnvCn0MA9bJJk6atwYWQrkdrOrllbBZuXzv/bgwHHxvW+mEVUnnTkAdVxqB137wz+z5e1D3yw5oVIgIDgYFxM7B7fW837o48C9357EqSLER/PhED1wlYDSnLNKGqy2OHk8l00Ko5JrxZiuLnkHBrFMWb4iT6G27BfOToJQP/GXcjQ8aWMgB/iF75x6K+g3FyLqb0y9CYZbD8fNgYYpWDYN/isiNMwWBHkijCs1VKz+ILwBB85IlSnGzGz2ob5vQMPokTJpOFUAADZpcCqtIqdq8/pfvtt994ARZuy7xBj9nSOJEhv1xEP8Ptgk/NmPGe5WEwUc7CNjBwJDCAn2DaXhwYOj6qHDgRPz4dDZ1morPPEMQr5JK4UsEzSf6Lycd+DA/7S23xfuzviduirXNOH9gZThpHghccWgeulO3Z++oJlQMH34s5wjxMRGZiSgEfiWbgiVI8acA3nH/QV+LSPlwUvKcytbKjc9Hgy8FHDs1vEUcLn3DsWDv/eiytyvMyWDm9JG2Ere24bzP55Ro84XBvnCRnzFvx3JNFkBPqCAwEBgIDgYHAQGCgMQwUflssVkdX6zRDVzFUVmX0an/EYOrqyzyKOQie51a5Mkw2lKuwDQwEBgIDgYHAwGRioNAJxwtr5y/HTOIUWdbAfEN+OnGoP6doHFc8dNVDLwhkLPa/fvyZ2/4ymcgNbQ0MBAYCA4GBwEBgQBko9C6V6GDlKt5ByAmEBu5QdtMLd3EYf0qxIEej6NZjV2z7kcUFDAwEBgIDgYHAQGBgcjFQ2ApH8uz8aZg8XIEVjowhk4m+bCk4D4lK646dF19rUQEDA4GBwEBgIDAQGJh8DBQ24dixq3IBZhWz7A4UUmUrGUSVM+TKB6J3YZZyWbTgufDY8snnW6HFgYHAQGAgMBAYSBko7CcV3P/Me+7dQ0L4KGgGPlGPsv6kIlHpJnqrPU4u7VixfWcaFYTAQGAgMBAYCAwEBiYlA4WtcOAWk6VkyFY1KNuzfIj88FiGlWu7V2xv3Wui2cAQAgOBgcBAYCAwEBhoCAOFTTiSKOHLeqoWM/xbX30ZD2j58XFn7ZA3CTZEy1BIYCAwEBgIDAQGAgMtZaCwCQcuydjK6zfkeg0i/hgMReYKR6l073FnXfM1ORg2gYHAQGAgMBAYCAwcEQwUNuGIytFNmE0c0Ks1ONmwu1UMufiRrJs5fdqqCf6SpSPC8EGJwEBgIDAQGAgMFMlAYROO48/YPoRJxvX48DGiAF3tMMTu2plTZl44u2/r3iIJCHUFBgIDgYHAQGAgMNB8BnTBofn1pDVse3jeBaj0i5hynIe5x1t4y+Mz2P/F8WefdEcUrXknTRiEwEBgIDAQGAgMBAaOGAb+B5nwCpLPLNx7AAAAAElFTkSuQmCC"],["fxFlex","30","width","295","height","295","viewBox","0 0 295 295","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M182.629 183.635C213.842 170.774 228.719 135.046 215.857 103.833C202.996 72.6204 167.268 57.7435 136.055 70.6048C104.843 83.4659 89.966 119.195 102.827 150.407C115.688 181.62 151.417 196.496 182.629 183.635Z",1,"fill-color-0"],["fill-rule","evenodd","clip-rule","evenodd","d","M169.522 122.093C171.059 115.241 166.054 111.136 159.022 108.13L162.04 98.916L156.431 97.0797L153.493 106.051C152.019 105.569 150.502 105.104 148.995 104.643L151.953 95.613L146.348 93.7769L143.329 102.988C142.106 102.615 140.906 102.247 139.743 101.867L139.752 101.838L132.017 99.3019L130.057 105.293C130.057 105.293 134.224 106.57 134.131 106.624C136.402 107.369 136.71 108.93 136.552 110.138L133.115 120.635C133.271 120.687 133.473 120.761 133.695 120.869C133.66 120.857 133.626 120.846 133.591 120.834C133.562 120.825 133.534 120.816 133.505 120.806C133.375 120.763 133.24 120.719 133.102 120.675L128.284 135.38C127.95 136.062 127.157 137.065 125.569 136.548C125.62 136.635 121.492 135.211 121.492 135.211L118.184 141.544L125.483 143.935C126.298 144.203 127.103 144.476 127.899 144.746L127.901 144.747C128.431 144.927 128.956 145.105 129.479 145.28L126.429 154.6L132.031 156.436L135.051 147.215C136.579 147.75 138.064 148.25 139.517 148.725L136.509 157.902L142.118 159.739L145.166 150.437C154.773 152.984 162.15 152.77 165.87 144.183C168.867 137.27 166.555 132.99 161.623 129.952C165.417 129.361 168.406 127.109 169.522 122.093ZM155.149 139.449C153.059 145.84 143.068 142.413 138.496 140.845L138.496 140.845C138.085 140.704 137.718 140.578 137.404 140.476L141.449 128.129C141.831 128.254 142.299 128.395 142.829 128.555L142.829 128.555C147.571 129.985 157.289 132.916 155.149 139.449ZM144.22 122.79C148.031 124.108 156.343 126.982 158.247 121.175C160.192 115.234 152.086 112.815 148.127 111.634C147.682 111.501 147.289 111.383 146.969 111.279L143.301 122.477C143.565 122.563 143.874 122.67 144.22 122.79Z",1,"fill-color-15"],["d","M158.075 173.411C189.288 160.55 204.164 124.822 191.303 93.6088C178.442 62.3964 142.714 47.5195 111.501 60.3808C80.2885 73.2419 65.4118 108.971 78.2729 140.183C91.1342 171.396 126.863 186.272 158.075 173.411Z",1,"stroke-color-thinest"],["d","M259.352 172.363L85.4595 244.016",1,"stroke-color-thinest"],["d","M122.291 259.352L85.4593 244.016L100.795 207.184",1,"stroke-color-thinest"],["width","225.692","height","225.692","transform","translate(0 85.983) rotate(-22.3941)",1,"fill-color-30"],["fxFlex","30","width","298","height","300","viewBox","0 0 298 300","fill","none","xmlns","http://www.w3.org/2000/svg",3,"ngClass"],["d","M248.333 237.5V112.5C248.333 105.625 242.746 100 235.917 100H37.2501C30.421 100 24.8335 105.625 24.8335 112.5V237.5C24.8335 244.375 30.421 250 37.2501 250H235.917C242.746 250 248.333 244.375 248.333 237.5Z",1,"fill-color-0"],["d","M273.167 212.5V87.5C273.167 80.625 267.579 75 260.75 75H62.0832C55.254 75 49.6665 80.625 49.6665 87.5V212.5C49.6665 219.375 55.254 225 62.0832 225H260.75C267.579 225 273.167 219.375 273.167 212.5Z",1,"stroke-color"],["d","M6.20851 200H24.8335V150H6.20851C2.73185 150 0.000183105 152.75 0.000183105 156.25V193.75C0.000183105 197.25 2.73185 200 6.20851 200Z",1,"fill-color-0"],["d","M31.0415 175H49.6665V125H31.0415C27.5648 125 24.8331 127.75 24.8331 131.25V168.75C24.8331 172.25 27.5648 175 31.0415 175Z",1,"stroke-color"],["d","M161.417 187.5L142.792 150H180.042L161.417 112.5",1,"stroke-color"]],template:function(J,ne){if(1&J&&e.DNE(0,au,1,0,"ng-container",5)(1,ru,18,5,"ng-template",null,0,e.C5r)(3,M0,19,5,"ng-template",null,1,e.C5r)(5,su,19,5,"ng-template",null,2,e.C5r)(7,ou,17,5,"ng-template",null,3,e.C5r)(9,lu,13,5,"ng-template",null,4,e.C5r),2&J){const ot=e.sdS(2),jt=e.sdS(4),$t=e.sdS(6),Tn=e.sdS(8),ii=e.sdS(10);e.Y8G("ngTemplateOutlet",1===ne.stepNumber?ot:2===ne.stepNumber?jt:3===ne.stepNumber?$t:4===ne.stepNumber?Tn:ii)}},dependencies:[o.YU,o.T3,De.Lc,De.dh,at.DJ,at.sA,at.UI,ol.PW],styles:["svg.small-svg[_ngcontent-%COMP%]{height:50%;min-height:50%;max-width:100%}svg.large-svg[_ngcontent-%COMP%]{height:60%;min-height:60%;max-width:100%}"],data:{animation:[ld.k]}}))}return z(),N})();const cu=["stepper"],J4=()=>[1,2,3,4,5],qh=(z,N)=>({"dot-primary":z,"dot-primary-lighter":N});function E0(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.JRh(I.inputFormLabel)}}function kd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Amount is required."),e.k0s())}function X(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be greater than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),".")}}function Rd(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.nI1(2,"number"),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.SpI("Amount must be less than or equal to ",e.bMT(2,1,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal),".")}}function ef(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",46),e.EFF(3,"Accept Zero Conf"),e.k0s(),e.j41(4,"mat-icon",47),e.EFF(5,"info_outline"),e.k0s()()())}function q4(z,N){1&z&&(e.j41(0,"div",44)(1,"div",45)(2,"mat-slide-toggle",48),e.EFF(3,"Send from Internal Wallet"),e.k0s(),e.j41(4,"mat-icon",49),e.EFF(5,"info_outline"),e.k0s()()())}function tf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1," Refund address is required when not using internal wallet. "),e.k0s())}function e3(z,N){1&z&&(e.j41(0,"button",50),e.EFF(1,"Next"),e.k0s())}function w0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",51),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(1),e.k0s()}if(2&z){const I=e.XpG(2);e.R7$(),e.SpI("Initiate ",I.swapDirectionCaption)}}function x1(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(3);e.JRh(I.addressFormLabel)}}function S0(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Address is required."),e.k0s())}function du(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-step",15)(1,"form",16),e.DNE(2,x1,1,1,"ng-template",17),e.j41(3,"div",52)(4,"mat-radio-group",53),e.bIt("change",function(J){p.eBV(I);const ne=e.XpG(2);return p.Njj(ne.onAddressTypeChange(J))}),e.j41(5,"mat-radio-button",54),e.EFF(6,"Node Local Address"),e.k0s(),e.j41(7,"mat-radio-button",55),e.EFF(8,"External Address"),e.k0s()(),e.j41(9,"mat-form-field",56)(10,"mat-label"),e.EFF(11,"Address"),e.k0s(),e.nrm(12,"input",57),e.DNE(13,S0,2,0,"mat-error",24),e.k0s()(),e.j41(14,"div",29)(15,"button",58),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onSwap())}),e.EFF(16),e.k0s()()()()}if(2&z){const I=e.XpG(2);e.Y8G("stepControl",I.addressFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.addressFormGroup),e.R7$(11),e.Y8G("required","external"===I.addressFormGroup.controls.addressType.value),e.R7$(),e.Y8G("ngIf",null==I.addressFormGroup.controls.address.errors?null:I.addressFormGroup.controls.address.errors.required),e.R7$(3),e.SpI("Initiate ",I.swapDirectionCaption)}}function t3(z,N){if(1&z&&e.EFF(0),2&z){const I=e.XpG(2);e.SpI("",I.swapDirectionCaption," Status")}}function nf(z,N){if(1&z&&(e.j41(0,"mat-icon",59),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&null!=I.swapStatus&&I.swapStatus.id?"check":"close")}}function T0(z,N){1&z&&e.nrm(0,"div")}function D0(z,N){1&z&&e.nrm(0,"mat-progress-bar",60)}function uu(z,N){if(1&z&&(e.j41(0,"h4",61),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.swapStatus&&I.swapStatus.error?I.swapDirectionCaption+" failed.":I.swapStatus&&I.swapStatus.id?I.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":I.swapDirectionCaption+" request placed successfully.")}}function af(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",62),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onRestart())}),e.EFF(1,"Start Again"),e.k0s()}}function rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",4)(1,"div",5)(2,"mat-card-header",6)(3,"div",7)(4,"span",8),e.EFF(5),e.k0s()(),e.j41(6,"div",9)(7,"button",10),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.showInfo())}),e.EFF(8,"?"),e.k0s(),e.j41(9,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClose())}),e.EFF(10,"X"),e.k0s()()(),e.j41(11,"mat-card-content",12)(12,"div",13)(13,"mat-vertical-stepper",14,1),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.stepSelectionChanged(J))}),e.j41(15,"mat-step",15)(16,"form",16),e.DNE(17,E0,1,1,"ng-template",17),e.j41(18,"div",18),e.nrm(19,"rtl-boltz-service-info",19),e.k0s(),e.j41(20,"div",20)(21,"mat-form-field",21)(22,"mat-label"),e.EFF(23,"Amount"),e.k0s(),e.nrm(24,"input",22),e.j41(25,"mat-hint"),e.EFF(26),e.nI1(27,"number"),e.nI1(28,"number"),e.k0s(),e.j41(29,"span",23),e.EFF(30,"Sats"),e.k0s(),e.DNE(31,kd,2,0,"mat-error",24)(32,X,3,3,"mat-error",24)(33,Rd,3,3,"mat-error",24),e.k0s(),e.DNE(34,ef,6,0,"div",25)(35,q4,6,0,"div",25),e.j41(36,"div",26)(37,"mat-form-field",27)(38,"mat-label"),e.EFF(39,"Refund Address"),e.k0s(),e.nrm(40,"input",28),e.j41(41,"mat-hint"),e.EFF(42,"The address where funds will be returned in case of a failed swap"),e.k0s(),e.DNE(43,tf,2,0,"mat-error",24),e.k0s()()(),e.j41(44,"div",29),e.DNE(45,e3,2,0,"button",30)(46,w0,2,1,"button",31),e.k0s()()(),e.DNE(47,du,17,6,"mat-step",32),e.j41(48,"mat-step",33)(49,"form",16),e.DNE(50,t3,1,1,"ng-template",17),e.j41(51,"div",34)(52,"mat-expansion-panel",35)(53,"mat-expansion-panel-header")(54,"mat-panel-title")(55,"span",36),e.EFF(56),e.DNE(57,nf,2,1,"mat-icon",37),e.k0s()()(),e.DNE(58,T0,1,0,"div",38),e.k0s(),e.DNE(59,D0,1,0,"mat-progress-bar",39),e.k0s(),e.DNE(60,uu,2,1,"h4",40),e.j41(61,"div",29),e.DNE(62,af,2,0,"button",41),e.k0s()()()(),e.j41(63,"div",42)(64,"button",43),e.EFF(65,"Close"),e.k0s()()()()()()}if(2&z){const I=e.XpG(),H=e.sdS(2);e.Y8G("@opacityAnimation",void 0),e.R7$(3),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-83":"flex-91"),e.R7$(2),e.JRh(I.swapDirectionCaption),e.R7$(),e.Y8G("ngClass",I.screenSize===I.screenSizeEnum.XS||I.screenSize===I.screenSizeEnum.SM?"flex-17":"flex-9"),e.R7$(7),e.Y8G("linear",!0),e.R7$(2),e.Y8G("stepControl",I.inputFormGroup)("editable",I.flgEditable),e.R7$(),e.Y8G("formGroup",I.inputFormGroup),e.R7$(3),e.Y8G("serviceInfo",I.serviceInfo)("direction",I.direction),e.R7$(5),e.Y8G("step",1e3),e.R7$(2),e.Lme("Range: ",e.bMT(27,34,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.minimal),"-",e.bMT(28,36,null==I.serviceInfo||null==I.serviceInfo.limits?null:I.serviceInfo.limits.maximal)),e.R7$(5),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.required),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.min),e.R7$(),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.amount||null==I.inputFormGroup.controls.amount.errors?null:I.inputFormGroup.controls.amount.errors.max),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN&&I.isSendFromInternalCompatible),e.R7$(5),e.Y8G("required",!(null!=I.inputFormGroup&&null!=I.inputFormGroup.controls&&I.inputFormGroup.controls.sendFromInternal.value)),e.R7$(3),e.Y8G("ngIf",null==I.inputFormGroup||null==I.inputFormGroup.controls||null==I.inputFormGroup.controls.refundAddress||null==I.inputFormGroup.controls.refundAddress.errors?null:I.inputFormGroup.controls.refundAddress.errors.required),e.R7$(2),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("stepControl",I.statusFormGroup),e.R7$(),e.Y8G("formGroup",I.statusFormGroup),e.R7$(3),e.Y8G("expanded",!!I.swapStatus),e.R7$(4),e.JRh(I.swapStatus?I.swapStatus.id?I.swapDirectionCaption+" request details":I.swapDirectionCaption+" error details":"Waiting for "+I.swapDirectionCaption+" request..."),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(),e.Y8G("ngIf",!I.swapStatus)("ngIfElse",H),e.R7$(),e.Y8G("ngIf",!I.swapStatus),e.R7$(),e.Y8G("ngIf",I.swapStatus),e.R7$(2),e.Y8G("ngIf",I.swapStatus&&(I.swapStatus.error||!I.swapStatus.id)),e.R7$(2),e.Y8G("mat-dialog-close",!1)}}function hu(z,N){if(1&z&&e.nrm(0,"rtl-boltz-swap-status",63),2&z){const I=e.XpG();e.Y8G("swapStatus",I.swapStatus)("direction",I.direction)("acceptZeroConf",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.acceptZeroConf.value)("sendFromInternal",null==I.inputFormGroup||null==I.inputFormGroup.controls?null:I.inputFormGroup.controls.sendFromInternal.value)}}function fu(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapout-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function sf(z,N){if(1&z){const I=e.RV6();e.j41(0,"rtl-boltz-swapin-info-graphics",79),e.mxI("stepNumberChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.stepNumber,J)||(ne.stepNumber=J),p.Njj(J)}),e.k0s()}if(2&z){const I=e.XpG(2);e.Y8G("animationDirection",I.animationDirection),e.R50("stepNumber",I.stepNumber)}}function mu(z,N){if(1&z){const I=e.RV6();e.j41(0,"span",80),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onStepChanged(J))}),e.nrm(1,"p",81),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(),e.Y8G("ngClass",e.l_i(1,qh,H.stepNumber===I,H.stepNumber!==I))}}function Vc(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",82),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onReadMore())}),e.EFF(1,"Read More"),e.k0s()}}function of(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",83),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(4))}),e.EFF(1,"Back"),e.k0s()}}function C1(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",84),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function pu(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",85),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(1,"Close"),e.k0s()}}function A0(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",86),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber-1))}),e.EFF(1,"Back"),e.k0s()}}function n3(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",87),e.bIt("click",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onStepChanged(J.stepNumber+1))}),e.EFF(1,"Next"),e.k0s()}}function lf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",64)(1,"div",18)(2,"mat-card-header",65)(3,"div",66),e.nrm(4,"span",8),e.k0s(),e.j41(5,"div",67)(6,"button",11),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return J.flgShowInfo=!1,p.Njj(J.stepNumber=1)}),e.EFF(7,"X"),e.k0s()()(),e.j41(8,"mat-card-content",68),e.DNE(9,fu,1,2,"rtl-boltz-swapout-info-graphics",69)(10,sf,1,2,"rtl-boltz-swapin-info-graphics",69),e.k0s(),e.j41(11,"div",70),e.DNE(12,mu,2,4,"span",71),e.k0s(),e.j41(13,"div",72),e.DNE(14,Vc,2,0,"button",73)(15,of,2,0,"button",74)(16,C1,2,0,"button",75)(17,pu,2,0,"button",76)(18,A0,2,0,"button",77)(19,n3,2,0,"button",78),e.k0s()()()}if(2&z){const I=e.XpG();e.Y8G("@opacityAnimation",void 0),e.R7$(9),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_OUT),e.R7$(),e.Y8G("ngIf",I.direction===I.swapTypeEnum.SWAP_IN),e.R7$(2),e.Y8G("ngForOf",e.lJ4(10,J4)),e.R7$(2),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",5===I.stepNumber),e.R7$(),e.Y8G("ngIf",I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber>1&&I.stepNumber<5),e.R7$(),e.Y8G("ngIf",I.stepNumber<5)}}let L0=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn){this.dialogRef=H,this.data=J,this.boltzService=ne,this.formBuilder=ot,this.decimalPipe=jt,this.logger=$t,this.commonService=Tn,this.faInfoCircle=Ti.iW_,this.boltzInfo=null,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=Mt.Bd,this.direction=Mt.Bd.SWAP_OUT,this.swapDirectionCaption="Swap out",this.swapStatus=null,this.inputFormLabel="Amount to swap out",this.addressFormLabel="Withdrawal Address",this.flgShowInfo=!1,this.stepNumber=1,this.screenSize="",this.screenSizeEnum=Mt.f7,this.animationDirection="forward",this.flgEditable=!0,this.isSendFromInternalCompatible=!0,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||Mt.Bd.SWAP_OUT,this.swapDirectionCaption=this.direction===Mt.Bd.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.serviceInfo.limits?.minimal,[_i.k0.required,_i.k0.min(this.serviceInfo.limits?.minimal||0),_i.k0.max(this.serviceInfo.limits?.maximal||0)]],acceptZeroConf:[!1],sendFromInternal:[!0],refundAddress:[{value:"",disabled:!0}]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[_i.k0.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.boltzService.boltzInfoChanged.pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.boltzInfo=H,this.isSendFromInternalCompatible=this.commonService.isVersionCompatible(this.boltzInfo.version,"2.0.0")},error:H=>{this.boltzInfo={version:"2.0.0"},this.logger.error(H)}})}ngAfterViewInit(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===Mt.Bd.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.addressFormGroup.setErrors({Invalid:!0})}),this.direction===Mt.Bd.SWAP_IN&&this.inputFormGroup.controls.sendFromInternal.valueChanges.pipe((0,mi.Q)(this.unSubs[4])).subscribe(()=>{this.onSendFromInternalChange()})}onSendFromInternalChange(){this.inputFormGroup.controls.sendFromInternal.value?(this.inputFormGroup.controls.refundAddress.disable(),this.inputFormGroup.controls.refundAddress.clearValidators(),this.inputFormGroup.controls.refundAddress.updateValueAndValidity()):(this.inputFormGroup.controls.refundAddress.enable(),this.inputFormGroup.controls.refundAddress.setValidators([_i.k0.required]),this.inputFormGroup.controls.refundAddress.updateValueAndValidity())}onAddressTypeChange(H){"external"===H.value?(this.addressFormGroup.controls.address.setValidators([_i.k0.required]),this.addressFormGroup.controls.address.markAsTouched(),this.addressFormGroup.controls.address.enable()):(this.addressFormGroup.controls.address.setValidators(null),this.addressFormGroup.controls.address.markAsPristine(),this.addressFormGroup.controls.address.disable(),this.addressFormGroup.controls.address.setValue("")),this.addressFormGroup.setErrors({Invalid:!0})}onSwap(){if(!this.inputFormGroup.controls.amount.value||this.serviceInfo.limits?.minimal&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||this.serviceInfo.limits?.maximal&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===Mt.Bd.SWAP_OUT&&"external"===this.addressFormGroup.controls.addressType.value&&(!this.addressFormGroup.controls.address.value||""===this.addressFormGroup.controls.address.value.trim()))return!0;if(this.flgEditable=!1,this.stepper.selected?.stepControl.setErrors(null),this.stepper.next(),this.direction===Mt.Bd.SWAP_IN){const H=this.inputFormGroup.controls.sendFromInternal.value?null:this.inputFormGroup.controls.refundAddress.value,J=this.isSendFromInternalCompatible?this.inputFormGroup.controls.sendFromInternal.value:null;if(!J&&!H)return this.stepper.selected?.stepControl.setErrors({Invalid:!0}),void(this.flgEditable=!0);this.boltzService.swapIn(this.inputFormGroup.controls.amount.value,J,H).pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:ne=>{this.swapStatus=ne,this.boltzService.listSwaps(),this.flgEditable=!0},error:ne=>{this.swapStatus={error:ne},this.flgEditable=!0,this.logger.error(ne)}})}else this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",this.inputFormGroup.controls.acceptZeroConf.value).pipe((0,mi.Q)(this.unSubs[3])).subscribe({next:J=>{this.swapStatus=J,this.boltzService.listSwaps(),this.flgEditable=!0},error:J=>{this.swapStatus={error:J},this.flgEditable=!0,this.logger.error(J)}})}stepSelectionChanged(H){switch(H.selectedIndex){case 0:default:this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.addressFormLabel="Withdrawal Address";break;case 1:if(this.inputFormGroup.controls.amount.value)if(this.direction===Mt.Bd.SWAP_IN){let J=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Send from Internal Wallet: "+(this.inputFormGroup.controls.sendFromInternal.value?"Yes":"No");!this.inputFormGroup.controls.sendFromInternal.value&&this.inputFormGroup.controls.refundAddress.value&&(J+=" | Refund Address: "+this.inputFormGroup.controls.refundAddress.value),this.inputFormLabel=J}else this.inputFormLabel=this.swapDirectionCaption+" Amount: "+this.decimalPipe.transform(this.inputFormGroup.controls.amount.value?this.inputFormGroup.controls.amount.value:0)+" Sats | Zero Conf: "+(this.inputFormGroup.controls.acceptZeroConf.value?"Yes":"No");else this.inputFormLabel="Amount to "+this.swapDirectionCaption;this.addressFormLabel="Withdrawal Address"}H.selectedIndex{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(Oo.Vh),e.rXU(sd),e.rXU(_i.ze),e.rXU(o.QX),e.rXU(La.gP),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(J,ne){if(1&J&&e.GBs(cu,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.stepper=ot.first)}},standalone:!1,decls:4,vars:2,consts:[["swapStatusBlock",""],["stepper",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","info-graphics-container",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxLayoutAlign","start start",3,"ngClass"],[1,"page-title"],["fxLayoutAlign","end end",3,"ngClass"],["tabindex","21","mat-button","",1,"btn-close-x","p-0",3,"click"],["tabindex","22","mat-button","",1,"btn-close-x","p-0",3,"click"],[1,"padding-gap-x-large"],["fxLayout","column"],[3,"selectionChange","linear"],[3,"stepControl","editable"],["fxLayout","column","fxLayoutAlign","start","fxLayoutAlign.gt-sm","space-between",1,"my-1",3,"formGroup"],["matStepLabel",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],[3,"serviceInfo","direction"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between center",1,"mt-1"],["fxLayout","column","fxFlex","48"],["autoFocus","","matInput","","type","number","tabindex","1","formControlName","amount","required","",3,"step"],["matSuffix",""],[4,"ngIf"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch",4,"ngIf"],["disabled","direction === swapTypeEnum.SWAP_IN && isSendFromInternalCompatible && !inputFormGroup?.controls?.sendFromInternal.value","fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"mt-1"],["fxLayout","column","fxFlex","100"],["matInput","","type","text","tabindex","3","formControlName","refundAddress",3,"required"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-button","","color","primary","tabindex","3","type","button",3,"click",4,"ngIf"],[3,"stepControl","editable",4,"ngIf"],[3,"stepControl"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxFlex","100",1,"flat-expansion-panel",3,"expanded"],["fxLayoutAlign","start center","fxFlex","100"],["class","ml-1 icon-small",4,"ngIf"],[4,"ngIf","ngIfElse"],["fxFlex","100","color","primary","mode","indeterminate",4,"ngIf"],["fxLayoutAlign","start","class","font-bold-500 mt-2",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["fxLayout","column","fxFlex","48","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","acceptZeroConf","name","acceptZeroConf"],["matTooltip","Only recommended for smaller payments, involves trust in Boltz","matTooltipPosition","above",1,"info-icon","mt-2"],["fxLayoutAlign","start center","tabindex","2","color","primary","formControlName","sendFromInternal","name","sendFromInternal"],["matTooltip","Pay from the node's onchain wallet","matTooltipPosition","above",1,"info-icon","mt-2"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-button","","color","primary","tabindex","3","type","button",3,"click"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mt-1"],["color","primary","name","addressType","formControlName","addressType","fxFlex","100","fxLayoutAlign","space-between stretch",3,"change"],["fxFlex","48","tabindex","8","value","local"],["fxFlex","48","tabindex","9","value","external"],["fxLayout","column","fxFlex","100",1,"mt-1"],["matInput","","tabindex","10","formControlName","address",3,"required"],["mat-button","","color","primary","tabindex","11","type","button",3,"click"],[1,"ml-1","icon-small"],["fxFlex","100","color","primary","mode","indeterminate"],["fxLayoutAlign","start",1,"font-bold-500","mt-2"],["mat-button","","color","primary","tabindex","13","type","button",3,"click"],["fxLayout","column",3,"swapStatus","direction","acceptZeroConf","sendFromInternal"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"info-graphics-container"],["fxLayout","row","fxFlex","8","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],["fxFlex","5","fxLayoutAlign","end center"],["fxLayout","column","fxFlex","70","fxLayoutAlign","space-between center",1,"padding-gap-x-large"],["fxFlex","100",3,"animationDirection","stepNumber","stepNumberChange",4,"ngIf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","center end",1,"padding-gap-x-large","padding-gap-bottom-large"],["tabindex","21","fxLayoutAlign","center center","class","dots-stepper-block",3,"click",4,"ngFor","ngForOf"],["fxLayout","row","fxFlex","10","fxLayoutAlign","end end",1,"padding-gap-x-large","padding-gap-bottom-large"],["mat-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","20","type","button",3,"click",4,"ngIf"],["fxFlex","100",3,"stepNumberChange","animationDirection","stepNumber"],["tabindex","21","fxLayoutAlign","center center",1,"dots-stepper-block",3,"click"],[1,"dot","tiny-dot","mr-0",3,"ngClass"],["mat-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(J,ne){1&J&&e.DNE(0,rf,66,38,"div",2)(1,hu,1,4,"ng-template",null,0,e.C5r)(3,lf,20,11,"div",3),2&J&&(e.Y8G("ngIf",!ne.flgShowInfo),e.R7$(3),e.Y8G("ngIf",ne.flgShowInfo))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.j4,_i.JD,Oo.tx,tr.$z,De.m2,De.MM,ss.GK,ss.Z2,ss.WN,Oc.An,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,wa.yw,oc.HM,i1.VT,i1._g,at.DJ,at.sA,at.UI,ol.PW,xd.sG,o1.oV,uo.V5,uo.Ti,uo.M6,uo.F7,Xl.N,tu,nu,C0,Id,o.QX],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:30rem;min-height:30rem;overflow-x:hidden}"],data:{animation:[J2.C]}}))}return z(),N})();const cf=()=>["all"],df=z=>({"overflow-auto error-border":z,"overflow-auto":!0}),I0=()=>["no_swap"],Ol=z=>({width:z}),i3=z=>({"display-none":z});function gu(z,N){if(1&z&&(e.j41(0,"mat-option",42),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.Y8G("value",I),e.R7$(),e.JRh(H.getLabel(I))}}function _u(z,N){1&z&&e.nrm(0,"mat-progress-bar",43)}function vu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Status"),e.k0s())}function a3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.JRh(H.swapStateEnum[null==I?null:I.status])}}function yu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Swap ID"),e.k0s())}function k0(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.id)}}function R0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Address"),e.k0s())}function O0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.claimAddress)}}function P0(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Address"),e.k0s())}function uf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.lockupAddress)}}function hf(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Onchain Amount (Sats)"),e.k0s())}function ff(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.onchainAmount))}}function bu(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Expected Amount (Sats)"),e.k0s())}function N0(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.expectedAmount))}}function mf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Error"),e.k0s())}function M1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.error)}}function pf(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Private Key"),e.k0s())}function E1(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.privateKey)}}function w1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Preimage"),e.k0s())}function r3(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.preimage)}}function xu(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Redeem Script"),e.k0s())}function Od(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.redeemScript)}}function S1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Invoice"),e.k0s())}function gf(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",46)(2,"span",47),e.EFF(3),e.k0s()()()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngStyle",e.eq3(2,Ol,H.screenSize===H.screenSizeEnum.XS?"6rem":H.colWidth)),e.R7$(2),e.JRh(null==I?null:I.invoice)}}function F0(z,N){1&z&&(e.j41(0,"th",48),e.EFF(1,"Timeout Block Height"),e.k0s())}function _f(z,N){if(1&z&&(e.j41(0,"td",45)(1,"span",49),e.EFF(2),e.nI1(3,"number"),e.k0s()()),2&z){const I=N.$implicit;e.R7$(2),e.JRh(e.bMT(3,1,null==I?null:I.timeoutBlockHeight))}}function T1(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Lockup Tx ID"),e.k0s())}function vf(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.lockupTransactionId)}}function dc(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Claim Tx ID"),e.k0s())}function Gc(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.claimTransactionId)}}function s3(z,N){1&z&&(e.j41(0,"th",44),e.EFF(1,"Refund Tx ID"),e.k0s())}function o3(z,N){if(1&z&&(e.j41(0,"td",45),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.R7$(),e.JRh(null==I?null:I.refundTransactionId)}}function Pd(z,N){if(1&z){const I=e.RV6();e.j41(0,"th",50)(1,"div",51)(2,"mat-select",52),e.nrm(3,"mat-select-trigger"),e.j41(4,"mat-option",53),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onDownloadCSV())}),e.EFF(5,"Download CSV"),e.k0s()()()()}}function yf(z,N){if(1&z){const I=e.RV6();e.j41(0,"td",54)(1,"button",55),e.bIt("click",function(J){const ne=p.eBV(I).$implicit,ot=e.XpG();return p.Njj(ot.onSwapClick(ne,J))}),e.EFF(2,"View Info"),e.k0s()()}}function Cu(z,N){if(1&z&&(e.j41(0,"p"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(2);e.R7$(),e.JRh(I.emptyTableMessage)}}function Mu(z,N){if(1&z&&(e.j41(0,"td",56),e.DNE(1,Cu,2,1,"p",57),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.Y8G("ngIf",!(null!=I.listSwaps&&I.listSwaps.data)||(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)<1)}}function Eu(z,N){if(1&z&&e.nrm(0,"tr",58),2&z){const I=e.XpG();e.Y8G("ngClass",e.eq3(1,i3,(null==I.listSwaps?null:I.listSwaps.data)&&(null==I.listSwaps||null==I.listSwaps.data?null:I.listSwaps.data.length)>0))}}function bf(z,N){1&z&&e.nrm(0,"tr",59)}function wu(z,N){1&z&&e.nrm(0,"tr",60)}let xf=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.commonService=J,this.store=ne,this.boltzService=ot,this.camelCaseWithReplace=jt,this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=Mt._1,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:Mt.md,sortBy:"status",sortOrder:Mt.oi.DESCENDING},this.swapStateEnum=Mt.q9,this.swapTypeEnum=Mt.Bd,this.faHistory=Ti.Int,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Ya.I6([]),this.selFilter="",this.pageSize=Mt.md,this.pageSizeOptions=Mt.xp,this.screenSize="",this.screenSizeEnum=Mt.f7,this.unSubs=[new bi.B,new bi.B,new bi.B],this.screenSize=this.commonService.getScreenSize()}ngOnChanges(H){H.selectedSwapType&&!H.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===Mt.Bd.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}ngOnInit(){this.store.select(o0.$G).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.tableSettingSwapOut=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapOut.tableId),this.tableSettingSwapIn=H.pageSettings.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId)||Mt.ZC.find(J=>J.pageId===this.PAGE_ID)?.tables.find(J=>J.tableId===this.tableSettingSwapIn.tableId),this.setTableColumns(),this.swapsData&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/14+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===Mt.Bd.SWAP_IN?(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:Mt.md):(this.displayedColumns=this.screenSize===Mt.f7.XS||this.screenSize===Mt.f7.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:Mt.md)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(H){const ne=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===Mt.Bd.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(ot=>ot.column===H);return ne?ne.label?ne.label:this.camelCaseWithReplace.transform(ne.column,"_"):this.commonService.titleCase(H)}setFilterPredicate(){this.listSwaps.filterPredicate=(H,J)=>{let ne="";switch(this.selFilterBy){case"all":ne=JSON.stringify(H).toLowerCase();break;case"status":ne=H?.status?this.swapStateEnum[H?.status]:"";break;default:ne=typeof H[this.selFilterBy]>"u"?"":"string"==typeof H[this.selFilterBy]?H[this.selFilterBy].toLowerCase():"boolean"==typeof H[this.selFilterBy]?H[this.selFilterBy]?"yes":"no":H[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===ne.indexOf(J):ne.includes(J)}}onSwapClick(H,J){this.boltzService.swapInfo(H.id||"").pipe((0,mi.Q)(this.unSubs[1])).subscribe(ne=>{this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:Mt.q9[(ne=this.selectedSwapType===Mt.Bd.SWAP_IN?ne.swap:ne.reverseSwap).status],title:"Status",width:50,type:Mt.UN.STRING},{key:"id",value:ne.id,title:"ID",width:50,type:Mt.UN.STRING}],[{key:"amount",value:ne.onchainAmount?ne.onchainAmount:ne.expectedAmount?ne.expectedAmount:0,title:ne.onchainAmount?"Onchain Amount (Sats)":ne.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:Mt.UN.NUMBER},{key:"timeoutBlockHeight",value:ne.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:Mt.UN.NUMBER}],[{key:"address",value:ne.claimAddress?ne.claimAddress:ne.lockupAddress?ne.lockupAddress:"",title:ne.claimAddress?"Claim Address":ne.lockupAddress?"Lockup Address":"Address",width:100,type:Mt.UN.STRING}],[{key:"invoice",value:ne.invoice,title:"Invoice",width:100,type:Mt.UN.STRING}],[{key:"privateKey",value:ne.privateKey,title:"Private Key",width:100,type:Mt.UN.STRING}],[{key:"preimage",value:ne.preimage,title:"Preimage",width:100,type:Mt.UN.STRING}],[{key:"redeemScript",value:ne.redeemScript,title:"Redeem Script",width:100,type:Mt.UN.STRING}],[{key:"lockupTransactionId",value:ne.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:Mt.UN.STRING},{key:"transactionId",value:ne.claimTransactionId?ne.claimTransactionId:ne.refundTransactionId?ne.refundTransactionId:"",title:ne.claimTransactionId?"Claim Transaction ID":ne.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:Mt.UN.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(H){this.listSwaps=new Ya.I6(H?[...H]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(J,ne)=>J[ne]&&isNaN(J[ne])?J[ne].toLocaleLowerCase():J[ne]?+J[ne]:null,this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===Mt.Bd.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(sd),e.rXU(l1.VD))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-swaps"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(Pc.B4,5),e.GBs(Ec.iy,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sort=ot.first),e.mGM(ot=e.lsd())&&(ne.paginator=ot.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},standalone:!1,features:[e.Jv_([{provide:al.JO,useValue:{overlayPanelClass:"rtl-select-overlay"}},{provide:Ec.xX,useValue:(0,Mt.on)("Swaps")}]),e.OA$],decls:76,vars:20,consts:[["table",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start",1,"card-content-gap"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch","fxFlex","100",1,"page-sub-title-container","w-100"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex.gt-xs","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxFlex","49"],["tabindex","1","name","filterBy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter",3,"ngModelChange","input","keyup","ngModel"],["fxLayout","row","fxLayoutAlign","start center",1,"w-100"],["fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","matSort","",3,"matSortActive","matSortDirection","dataSource","ngClass"],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","claimAddress"],["matColumnDef","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_swap"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout.gt-xs","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.nrm(3,"fa-icon",4),e.j41(4,"span",5),e.EFF(5),e.k0s()(),e.j41(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),e.EFF(9,"Filter By"),e.k0s(),e.j41(10,"mat-select",8),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilterBy,$t)||(ne.selFilterBy=$t),p.Njj($t)}),e.bIt("selectionChange",function(){return p.eBV(ot),ne.selFilter="",p.Njj(ne.applyFilter())}),e.j41(11,"perfect-scrollbar"),e.DNE(12,gu,2,2,"mat-option",9),e.k0s()()(),e.j41(13,"mat-form-field",7)(14,"mat-label"),e.EFF(15,"Filter"),e.k0s(),e.j41(16,"input",10),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.selFilter,$t)||(ne.selFilter=$t),p.Njj($t)}),e.bIt("input",function(){return p.eBV(ot),p.Njj(ne.applyFilter())})("keyup",function(){return p.eBV(ot),p.Njj(ne.applyFilter())}),e.k0s()()()(),e.j41(17,"div",11)(18,"div",12),e.DNE(19,_u,1,0,"mat-progress-bar",13),e.j41(20,"table",14,0),e.qex(22,15),e.DNE(23,vu,2,0,"th",16)(24,a3,2,1,"td",17),e.bVm(),e.qex(25,18),e.DNE(26,yu,2,0,"th",16)(27,k0,2,1,"td",17),e.bVm(),e.qex(28,19),e.DNE(29,R0,2,0,"th",16)(30,O0,4,4,"td",17),e.bVm(),e.qex(31,20),e.DNE(32,P0,2,0,"th",16)(33,uf,4,4,"td",17),e.bVm(),e.qex(34,21),e.DNE(35,hf,2,0,"th",22)(36,ff,4,3,"td",17),e.bVm(),e.qex(37,23),e.DNE(38,bu,2,0,"th",22)(39,N0,4,3,"td",17),e.bVm(),e.qex(40,24),e.DNE(41,mf,2,0,"th",16)(42,M1,4,4,"td",17),e.bVm(),e.qex(43,25),e.DNE(44,pf,2,0,"th",16)(45,E1,4,4,"td",17),e.bVm(),e.qex(46,26),e.DNE(47,w1,2,0,"th",16)(48,r3,4,4,"td",17),e.bVm(),e.qex(49,27),e.DNE(50,xu,2,0,"th",16)(51,Od,4,4,"td",17),e.bVm(),e.qex(52,28),e.DNE(53,S1,2,0,"th",16)(54,gf,4,4,"td",17),e.bVm(),e.qex(55,29),e.DNE(56,F0,2,0,"th",22)(57,_f,4,3,"td",17),e.bVm(),e.qex(58,30),e.DNE(59,T1,2,0,"th",16)(60,vf,2,1,"td",17),e.bVm(),e.qex(61,31),e.DNE(62,dc,2,0,"th",16)(63,Gc,2,1,"td",17),e.bVm(),e.qex(64,32),e.DNE(65,s3,2,0,"th",16)(66,o3,2,1,"td",17),e.bVm(),e.qex(67,33),e.DNE(68,Pd,6,0,"th",34)(69,yf,3,0,"td",35),e.bVm(),e.qex(70,36),e.DNE(71,Mu,2,1,"td",37),e.bVm(),e.DNE(72,Eu,1,3,"tr",38)(73,bf,1,0,"tr",39)(74,wu,1,0,"tr",40),e.k0s(),e.nrm(75,"mat-paginator",41),e.k0s()()()}2&J&&(e.R7$(3),e.Y8G("icon",ne.faHistory),e.R7$(2),e.SpI("",ne.swapCaption," History"),e.R7$(5),e.R50("ngModel",ne.selFilterBy),e.R7$(2),e.Y8G("ngForOf",e.lJ4(16,cf).concat(ne.displayedColumns.slice(0,-1))),e.R7$(4),e.R50("ngModel",ne.selFilter),e.R7$(3),e.Y8G("ngIf",!0===ne.flgLoading[0]),e.R7$(),e.Y8G("matSortActive",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortBy:ne.tableSettingSwapOut.sortBy)("matSortDirection",ne.selectedSwapType===ne.swapTypeEnum.SWAP_IN?ne.tableSettingSwapIn.sortOrder:ne.tableSettingSwapOut.sortOrder)("dataSource",ne.listSwaps)("ngClass",e.eq3(17,df,"error"===ne.flgLoading[0])),e.R7$(52),e.Y8G("matFooterRowDef",e.lJ4(19,I0)),e.R7$(),e.Y8G("matHeaderRowDef",ne.displayedColumns),e.R7$(),e.Y8G("matRowDefColumns",ne.displayedColumns),e.R7$(),e.Y8G("pageSize",ne.pageSize)("pageSizeOptions",ne.pageSizeOptions)("showFirstLastButtons",ne.screenSize!==ne.screenSizeEnum.XS))},dependencies:[o.YU,o.Sq,o.bT,o.B3,_i.me,_i.BC,_i.vS,cr.aY,tr.$z,Br.fg,wa.rl,wa.nJ,oc.HM,at.DJ,at.sA,at.UI,ol.PW,ol.eI,al.VO,al.$2,ic.wT,Pc.B4,Pc.aE,Ya.Zl,Ya.tL,Ya.ji,Ya.cC,Ya.YV,Ya.iL,Ya.Zq,Ya.xW,Ya.KS,Ya.$R,Ya.Qo,Ya.YZ,Ya.NB,Ya.iF,Ec.iy,go.ZF,go.Ld,o.QX],encapsulation:2}))}return z(),N})();const Su=z=>["../",z];function Cf(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onSelectedIndexChange(J))}),e.EFF(1),e.k0s()}if(2&z){const I=N.$implicit,H=e.XpG();e.Y8G("active",H.activeTab.link===I.link)("routerLink",e.eq3(3,Su,I.link)),e.R7$(),e.JRh(I.name)}}let B0=(()=>{var z;class N{constructor(H,J,ne){this.router=H,this.store=J,this.boltzService=ne,this.swapTypeEnum=Mt.Bd,this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swaps={},this.swapsData=[],this.emptyTableMessage="No swap data available.",this.flgLoading=[!0],this.links=[{link:"swapout",name:"Swap Out"},{link:"swapin",name:"Swap In"}],this.activeTab=this.links[0],this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.boltzService.getBoltzInfo(),this.boltzService.listSwaps();const H=this.links.find(J=>this.router.url.includes(J.link));this.activeTab=H||this.links[0],this.selectedSwapType=H&&"swapin"===H.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT,this.router.events.pipe((0,mi.Q)(this.unSubs[0]),(0,za.p)(J=>J instanceof ja.gx)).subscribe({next:J=>{const ne=this.links.find(ot=>J.urlAfterRedirects.includes(ot.link));this.activeTab=ne||this.links[0],this.selectedSwapType=ne&&"swapin"===ne.link?Mt.Bd.SWAP_IN:Mt.Bd.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,mi.Q)(this.unSubs[1])).subscribe({next:J=>{this.swaps=J,this.swapsData=this.selectedSwapType===Mt.Bd.SWAP_IN&&J.swaps?J.swaps:this.selectedSwapType===Mt.Bd.SWAP_OUT&&J.reverseSwaps?J.reverseSwaps:[],this.flgLoading[0]=!1},error:J=>{this.flgLoading[0]="error",this.emptyTableMessage=J.message?J.message:"No swap "+(this.selectedSwapType===Mt.Bd.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(H){"swapin"===H.link?(this.selectedSwapType=Mt.Bd.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=Mt.Bd.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(H){this.boltzService.serviceInfo().pipe((0,mi.Q)(this.unSubs[2])).subscribe({next:J=>{this.store.dispatch((0,Ui.xO)({payload:{data:{serviceInfo:J,direction:H,component:L0}}}))}})}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.Ix),e.rXU(vi.il),e.rXU(sd))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-boltz-root"]],standalone:!1,decls:20,vars:7,consts:[["tabPanel",""],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"botlz-icon-sm","mr-1"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"],[1,"page-title"],["fxLayout","column",1,"padding-gap-x"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["mat-tab-nav-bar","","mat-stretch-tabs","false","mat-align-tabs","start",3,"tabPanel"],["tabindex","1","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","click",4,"ngFor","ngForOf"],["fxLayout","row","fxLayoutAlign","start start",1,"padding-gap-x-large","mt-1"],["mat-flat-button","","color","primary","type","button","tabindex","2",3,"click"],["fxLayout","row","fxFlex","100",3,"selectedSwapType","swapsData","flgLoading","emptyTableMessage"],["tabindex","1","mat-tab-link","",1,"mat-tab-label",3,"click","active","routerLink"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1),p.qSk(),e.j41(1,"svg",2)(2,"g",3)(3,"g",4),e.nrm(4,"circle",5)(5,"path",6)(6,"path",7),e.k0s()()(),p.joV(),e.j41(7,"span",8),e.EFF(8,"Boltz"),e.k0s()(),e.j41(9,"div",9)(10,"mat-card")(11,"mat-card-content",10)(12,"nav",11),e.DNE(13,Cf,2,5,"div",12),e.k0s(),e.nrm(14,"mat-tab-nav-panel",null,0),e.j41(16,"div",13)(17,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onSwap(ne.selectedSwapType))}),e.EFF(18),e.k0s()(),e.nrm(19,"rtl-boltz-swaps",15),e.k0s()()()}if(2&J){const ot=e.sdS(15);e.R7$(12),e.Y8G("tabPanel",ot),e.R7$(),e.Y8G("ngForOf",ne.links),e.R7$(5),e.SpI("Start ",ne.activeTab.name),e.R7$(),e.Y8G("selectedSwapType",ne.selectedSwapType)("swapsData",ne.swapsData)("flgLoading",ne.flgLoading)("emptyTableMessage",ne.emptyTableMessage)}},dependencies:[o.Sq,tr.$z,De.RN,De.m2,at.DJ,at.sA,at.UI,Jt.Bu,Jt.hQ,Jt.Ql,co.Wk,xf],encapsulation:2}))}return z(),N})();class ho{constructor(N){this.help=N}}function Du(z,N){if(1&z&&(e.j41(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e.EFF(3),e.k0s()(),e.j41(4,"mat-panel-description",9),e.nrm(5,"span",10),e.j41(6,"a",11),e.EFF(7),e.k0s()()()),2&z){const I=e.XpG().$implicit,H=e.XpG();e.R7$(3),e.JRh(I.help.question),e.R7$(2),e.Y8G("innerHTML",I.help.answer,e.npT),e.R7$(),e.Y8G("routerLink",H.flgLoggedIn?I.help.link:"/login"),e.R7$(),e.JRh(H.flgLoggedIn?I.help.linkCaption:"Login to go to the page")}}function Au(z,N){if(1&z&&(e.j41(0,"div",6),e.DNE(1,Du,8,4,"mat-expansion-panel",7),e.k0s()),2&z){const I=N.$implicit,H=e.XpG();e.R7$(),e.Y8G("ngIf","ALL"===I.help.lnImplementation||I.help.lnImplementation===H.selNode.lnImplementation)}}let Mf=(()=>{var z;class N{constructor(H,J){this.store=H,this.sessionService=J,this.helpTopics=[],this.faQuestion=Ti.EvL,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{this.selNode=H,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.flgLoggedIn=!!H.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new ho({question:"Getting started",answer:'Funding your node is the first step to get started.\nGo to the "On-chain" page of the app:\n1. Generate a new address on the "Recieve" tab.\n2. Send funds to the address.\n3. Wait for the balance to be confirmed on-chain before proceeding further.\n3. Connecting with network peers and opening channels is next.\n',link:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Connect with peers",answer:'Connect with network peers to open channels with them.\nGo to "Peer/Channels" page under the "Lightning" menu :\n1. Get the peer pubkey and host address in the pubkey@ip:port format.\n2. On the "Peers" enter the peer address and connect.\n3. Once the peer is connected, you can open channel with the peer.\n4. A variety of actions can be performed on the connected peers page for each peer:\n a. View Info - View the peer details.\n b. Open Channel - Open channel with the peer.\n c. Disconnect - Disconnect from the peer.\n',link:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, select the alias of the connected peer from the drop-down\n2. Specify the amount to commit to the channel and click on "Open Channel".\n3. There are a variety of options available while opening a channel. \n a. Private Channel - When this option is selected, a private channel is opened with the peer. \n b. Priority (advanced option) - Specify either Target confirmation Block or Fee in Sat/vByte. \n c. Spend Unconfirmd Output (advanced option) - Allow channels to be opened with unconfirmed UTXOs.\n4. Track the pending open channels under the "Pending" tab. \n5. Wait for the channel to be confirmed. Only a confimed channel can be used for payments or routing. \n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Channel Management",answer:'Channel maintenance and balance score.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. A variety of actions can be perfomed on the open channels under the "Open" tab, with the "Actions" button:\n a. View Info - View the channel details.\n b. View Remote Fee - View the fee policy on the channel of the remote peer.\n c. Update Fee Policy - Modify the fee policy on the channel.\n d. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. Close Channel - Close the channel.\n2. Balance Score is a "balancedness" metric score for the channel. \n a. It helps measure how balanced the remote and local balances are, on a channel.\n b. A perfectly balanced channel has a score of one, where as a completely lopsided one has a score of zero.\n c. The formula for calculating the score is "1 - abs((local bal - remote bal)/total bal)".\n',link:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new ho({question:"Payments",answer:'Sending Payments from your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayments tab is for making payments via your node\n 1. Input a non-expired lightning invoice (Bolt11 format) in the "Payment Request" field and click on "Send Payment" to send.\n 2. Advanced option # 1 (LND only) - Specify a limit on the routing fee which you are willing to pay, for the payment.\n 3. Advanced option # 2 (LND only) - Specify the outgoing channel which you want the payment to go through.\n',link:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Invoices",answer:'Receiving Payments on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nInvoices tab is for receiving payments on your node.\n 1. Memo - Description you want to provide on the invoice.\n 2. Expiry - The time period, after which the invoice will be invalid.\n 3. Private Routing Hints - Generate an invoice with routing hints for private channels.\n',link:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. issuer - issuer of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new ho({question:"Channel Backups",answer:'Channel Backups are important to ensure that you have means to recover funds in case of node failures.\nBackup folder location can be customized in the RTL config file with the channelBackupPath field.\nRTL automatically creates all channel backup on server startup, as well as everytime a channel is opened or closed\nYou can verify the all channel backup file by clicking on "Verify All" Button on the backup page.\nYou can also backup each channel individually and verify them.\n** Keep taking backups of your channels regularly and store them in redundant locations **.\n',link:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new ho({question:"Channel Restore",answer:'Channel Restore is used to recover funds from the channel backup files in case of node failures.\nFollow the below steps to perform fund restoration.\n\nPrerequisite:\n1. The node has been restored with the LND recovery seed.\n2. RTL generated channel backup file/s is available (all channel backup file is channel-all.bak).\n\nRecovery:\n1. Create a restore folder in your folder backup location, as specified in the RTL config file.\n2. Place the channel backup file in the restore folder.\n3. Go to the "Restore" tab under the "Backup" page of RTL.\n4. RTL will list the options to restore funds from the all channel file or individual channel backup file.\n5. Click on the Restore icon on the grid to restore the funds.\n6. Once the restore function is executed successfully, RTL will rename the backup file and it will not be accessible from the UI.\n7. Restore function will force close the channels and recover the funds from them.\n8. The pending close channels can be viewed under the "Pending" tab on the "Peer/Channels" page.\n9. Once the channel is closed, the corresponding pending on-chain transactions can be viewed on the "On-Chain" page.\n10. Once the transactions are confirmed, the channels funds will be restored to your LND Wallet.\n',link:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new ho({question:"Forwarding History",answer:'Transactions routed by the node.\nGo to "Routing" page under the "Lightning" menu :\nTransactions routed by the node are listed on this page along with channels and the fee earned by transaction.\n',link:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Graph Lookup",answer:'Querying your node graph for network node and channel information.\nGo to "Graph Lookup" page under the "Lightning" menu :\nEach node maintains a network graph for the information on all the nodes and channels on the network.\nYou can lookup information on nodes and channels from your graph:\n 1. Node Lookup - Enter the pubkey to perform the lookup.\n 2. Channel Lookup - Enter the short channel ID to perform the lookup.\n',link:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" page under the "Lightning" menu :\nQuery Routes tab is for querying a potential path to a node and a routing fee estimate for a payment amount.\n 1. Destination Pubkey - Pubkey of the node, you want to send the payment to.\n 2. Amount - Amount in Sats, which you want to send to the node.\n',link:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new ho({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new ho({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" page to access the customization options.\nNode Layout Options\n 1. User Persona - Two options are available to change the dashboard based on the persona.\n 2. Currency Unit - You can choose your preferred fiat currency, to view the onchain and channel balances in the choosen fiat currency.\n 3. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/nodesettings",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new ho({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(vi.il),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-help"]],standalone:!1,decls:8,vars:2,consts:[["fxLayout","column","fxFlex","100"],["fxLayout","row","fxLayoutAlign","start center",1,"page-title-container"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["fxFlex","100"],["class","flat-expansion-panel help-expansion mb-2px",4,"ngIf"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start start"],[1,"pre-wrap",3,"innerHTML"],[1,"mt-2",3,"routerLink"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"fa-icon",2),e.j41(3,"span",3),e.EFF(4,"Help"),e.k0s()(),e.j41(5,"div",4)(6,"div",0),e.DNE(7,Au,2,1,"div",5),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faQuestion),e.R7$(5),e.Y8G("ngForOf",ne.helpTopics))},dependencies:[o.Sq,o.bT,cr.aY,ss.GK,ss.Z2,ss.WN,ss.Q6,at.DJ,at.sA,at.UI,co.Wk],styles:[".mat-mdc-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}))}return z(),N})();var cd=l(84572);function Lu(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Token is required."),e.k0s())}let V0=(()=>{var z;class N{constructor(H,J){this.dialogRef=H,this.store=J,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ui.R$)({payload:{twoFAToken:this.token}}))}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Oo.CP),e.rXU(vi.il))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login-token"]],standalone:!1,decls:19,vars:2,consts:[["tokenForm","ngForm"],["fxLayout","column","fxLayout.gt-sm","row","fxLayoutAlign","space-between stretch"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","3","fxFlex","5","fxLayoutAlign","center center","mat-button","",1,"btn-close-x","p-0",3,"click"],["fxLayout","row",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100",3,"ngSubmit"],["autoFocus","","matInput","","type","text","id","token","name","token","tabindex","2","required","",3,"ngModelChange","ngModel"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","4","type","submit"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card-header",3)(3,"div",4)(4,"span",5),e.EFF(5,"Two Factor Token"),e.k0s()(),e.j41(6,"button",6),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onClose())}),e.EFF(7,"X"),e.k0s()(),e.j41(8,"mat-card-content",7)(9,"form",8,0),e.bIt("ngSubmit",function(){return p.eBV(ot),p.Njj(ne.onVerifyToken())}),e.j41(11,"mat-form-field")(12,"mat-label"),e.EFF(13,"Token"),e.k0s(),e.j41(14,"input",9),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.token,$t)||(ne.token=$t),p.Njj($t)}),e.k0s(),e.DNE(15,Lu,2,0,"mat-error",10),e.k0s(),e.j41(16,"div",11)(17,"button",12),e.EFF(18,"Verify Token"),e.k0s()()()()()()}2&J&&(e.R7$(14),e.R50("ngModel",ne.token),e.R7$(),e.Y8G("ngIf",!ne.token))},dependencies:[o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,De.m2,De.MM,Br.fg,wa.rl,wa.nJ,wa.TL,at.DJ,at.sA,at.UI,Xl.N],encapsulation:2}))}return z(),N})();const Iu=z=>({"padding-gap-large":z}),Ef=(z,N)=>({"font-size-200":z,"font-size-300":N});function dd(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Password is required."),e.k0s())}function ku(z,N){if(1&z&&(e.j41(0,"p",21)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.loginErrorMessage," ")}}function Ru(z,N){if(1&z&&(e.j41(0,"p",23)(1,"mat-icon",22),e.EFF(2,"close"),e.k0s(),e.EFF(3),e.k0s()),2&z){const I=e.XpG();e.R7$(3),e.SpI(" ",I.logoutReason," ")}}let Hc=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.actions=H,this.logger=J,this.store=ne,this.rtlEffects=ot,this.commonService=jt,this.sessionService=$t,this.faUnlockAlt=Ti.HEq,this.logoutReason="",this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=Mt.f7,this.loginErrorMessage="",this.apiCallStatusEnum=Mt.wn,this.unSubs=[new bi.B,new bi.B,new bi.B]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,cd.z)([this.store.select(Ra.Kq),this.store.select(Ra.E2)]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(([J,ne])=>{this.loginErrorMessage="",J.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof J.message?JSON.stringify(J.message):J.message),this.logger.error(J.message)),ne.status===Mt.wn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof ne.message?JSON.stringify(ne.message):ne.message),this.logger.error(ne.message))}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{this.appConfig=J,this.logger.info(J)}),this.actions.pipe((0,za.p)(J=>J.type===Mt.aU.LOGOUT),(0,Ss.s)(1)).subscribe(J=>{this.logoutReason=J.payload});const H=this.sessionService.getItem("logoutReason");H&&(this.logoutReason=H,this.sessionService.removeItem("logoutReason"))}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.logoutReason="",this.appConfig.enable2FA?(this.store.dispatch((0,Ui.xO)({payload:{maxWidth:"35rem",data:{component:V0}}})),this.rtlEffects.closeAlert.pipe((0,Ss.s)(1)).subscribe(H=>{H&&this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase()),twoFAToken:H.twoFAToken}}))})):this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.password),defaultPassword:Mt.Ah.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.logoutReason="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(Vo.En),e.rXU(La.gP),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(_o.h),e.rXU(zi.Q))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-login"]],standalone:!1,decls:29,vars:14,consts:[["loginForm","ngForm"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"login-container"],["fxLayout","row","fxFlex.gt-sm","35","fxLayoutAlign","center center"],["fxLayout","row","fxFlex","45","fxLayoutAlign","center stretch"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign","stretch stretch"],["fxFlex","35","fxLayoutAlign","center center",1,"bg-primary"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-logo-svg"],["fxFlex","65","fxLayout","column","fxLayoutAlign","center stretch",3,"ngClass"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","mt-2","p-0"],[1,"font-bold-500",3,"ngClass"],[1,"page-title"],[1,"pb-2"],["fxLayout","column","fxLayoutAlign","start space-between"],["autoFocus","","matInput","","id","password","name","password","tabindex","1","required","",3,"ngModelChange","type","ngModel"],["mat-icon-button","","matSuffix","","tabindex","2","type","button",3,"click"],[4,"ngIf"],["class","color-warn pre-wrap","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","color-warn pre-wrap","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-stroked-button","","color","primary","tabindex","2","type","reset",1,"mr-1","mb-2",3,"click"],["mat-flat-button","","color","primary","tabindex","3","type","submit",3,"click"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"],["fxLayoutAlign","center center",1,"mr-3px","icon-small"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"color-warn","pre-wrap"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"div",4)(4,"div",5),e.nrm(5,"img",6),e.k0s(),e.j41(6,"div",7)(7,"mat-card-header",8)(8,"mat-card-title",9)(9,"span",10),e.EFF(10,"Welcome"),e.k0s()()(),e.j41(11,"mat-card-content",11)(12,"form",12,0)(14,"mat-form-field")(15,"mat-label"),e.EFF(16,"Password"),e.k0s(),e.j41(17,"input",13),e.mxI("ngModelChange",function($t){return p.eBV(ot),e.DH7(ne.password,$t)||(ne.password=$t),p.Njj($t)}),e.k0s(),e.j41(18,"button",14),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.flgShow=!ne.flgShow)}),e.j41(19,"mat-icon"),e.EFF(20),e.k0s()(),e.DNE(21,dd,2,0,"mat-error",15),e.k0s(),e.DNE(22,ku,4,1,"p",16)(23,Ru,4,1,"p",17),e.j41(24,"div",18)(25,"button",19),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.resetData())}),e.EFF(26,"Clear"),e.k0s(),e.j41(27,"button",20),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onLogin())}),e.EFF(28,"Login"),e.k0s()()()()()()()()()}2&J&&(e.R7$(6),e.Y8G("ngClass",e.eq3(9,Iu,ne.screenSize===ne.screenSizeEnum.XS)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,Ef,ne.screenSize===ne.screenSizeEnum.XS,ne.screenSize!==ne.screenSizeEnum.XS)),e.R7$(9),e.Y8G("type",ne.flgShow?"text":"password"),e.R50("ngModel",ne.password),e.R7$(),e.BMQ("aria-label","Hide password"),e.R7$(2),e.JRh(ne.flgShow?"visibility_off":"visibility"),e.R7$(),e.Y8G("ngIf",!ne.password),e.R7$(),e.Y8G("ngIf",""!==ne.loginErrorMessage),e.R7$(),e.Y8G("ngIf",""!==ne.logoutReason))},dependencies:[o.YU,o.bT,_i.qT,_i.me,_i.BC,_i.cb,_i.YS,_i.vS,_i.cV,tr.$z,sc.iY,De.RN,De.m2,De.MM,De.dh,Oc.An,Br.fg,wa.rl,wa.nJ,wa.TL,wa.yw,at.DJ,at.sA,at.UI,ol.PW,Xl.N],styles:[".login-container[_ngcontent-%COMP%]{height:60vh;margin-top:15%}.login-container[_ngcontent-%COMP%] .mat-mdc-card[_ngcontent-%COMP%]{height:30rem}.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:100%}@media only screen and (max-width:56.25em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:37%}}@media only screen and (max-width:37.5em){.login-container[_ngcontent-%COMP%] .rtl-logo-svg[_ngcontent-%COMP%]{width:70%}}.login-container[_ngcontent-%COMP%] .material-icons.mat-icon[_ngcontent-%COMP%]{font-size:90%;cursor:pointer}"]}))}return z(),N})();var G0=l(90013);let Nd=(()=>{var z;class N{constructor(H,J){this.activatedRoute=H,this.router=J,this.error={errorCode:"",errorMessage:""},this.faTimes=Ti.GRI,this.unsubs=[new bi.B,new bi.B]}ngOnInit(){this.activatedRoute.paramMap.pipe((0,mi.Q)(this.unsubs[0])).subscribe(H=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(ja.nX),e.rXU(ja.Ix))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-error"]],standalone:!1,decls:13,vars:3,consts:[["fxLayout","row","fxFlex","100","fxLayoutAlign","center center"],["fxLayout","column","fxFlex","60","fxLayoutAlign","start center"],["fxLayout","row","fxLayoutAlign","center center",1,"page-title-container","padding-gap-large"],[1,"font-size-300","font-bold-500"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-large"],[1,"box-text","font-size-120"],["fxLayout","row","fxLayoutAlign","center","fxFlex","80"],["mat-flat-button","","color","primary","type","button",1,"mt-2",3,"click"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e.nrm(4,"fa-icon",4),e.j41(5,"span",5),e.EFF(6),e.k0s()()(),e.j41(7,"mat-card-content",6)(8,"div",7),e.EFF(9),e.k0s(),e.j41(10,"span",8)(11,"button",9),e.bIt("click",function(){return ne.goToHelp()}),e.EFF(12,"Go To Help"),e.k0s()()()()()),2&J&&(e.R7$(4),e.Y8G("icon",ne.faTimes),e.R7$(2),e.SpI("Error ",ne.error.errorCode),e.R7$(3),e.JRh(ne.error.errorMessage))},dependencies:[cr.aY,tr.$z,De.RN,De.m2,De.MM,De.dh,at.DJ,at.sA,at.UI],encapsulation:2}))}return z(),N})();var vo=l(17186),H0=l(51534),Fd=l(60092),c3=l(56114);const d3=(z,N)=>({"alert-danger":z,"alert-info":N});function Bd(z,N){1&z&&e.nrm(0,"span",17)}function wf(z,N){1&z&&e.nrm(0,"span",18)}function D1(z,N){if(1&z){const I=e.RV6();e.j41(0,"form",19,0)(2,"div",20),e.nrm(3,"fa-icon",4),e.j41(4,"span"),e.EFF(5,"Please ensure that "),e.j41(6,"strong"),e.EFF(7,"experimental-offers"),e.k0s(),e.EFF(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(9,"strong")(10,"a",21),e.EFF(11,"here"),e.k0s()(),e.EFF(12," to learn more about Core Lightning offers."),e.k0s()(),e.j41(13,"h4",22),e.EFF(14,"Description"),e.k0s(),e.j41(15,"span"),e.EFF(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.k0s(),e.j41(17,"h4",22),e.EFF(18,"Links"),e.k0s(),e.j41(19,"span")(20,"a",23),e.EFF(21,"Core lightning Bolt12"),e.k0s()(),e.nrm(22,"mat-divider",24),e.j41(23,"div",25),e.nrm(24,"fa-icon",4),e.j41(25,"span"),e.EFF(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.k0s()(),e.j41(27,"mat-slide-toggle",26),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(2);return e.DH7(ne.enableOffers,J)||(ne.enableOffers=J),p.Njj(J)}),e.bIt("change",function(){p.eBV(I);const J=e.XpG(2);return p.Njj(J.onUpdateFeature())}),e.EFF(28),e.k0s()()}if(2&z){const I=e.XpG(2);e.R7$(3),e.Y8G("icon",I.faInfoCircle),e.R7$(19),e.Y8G("inset",!0),e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(3),e.R50("ngModel",I.enableOffers),e.R7$(),e.SpI("Enable Offers ",I.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"")}}function j0(z,N){if(1&z&&(e.j41(0,"div")(1,"div",29),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Please ensure that "),e.j41(5,"strong"),e.EFF(6,"experimental-dual-fund"),e.k0s(),e.EFF(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.j41(8,"strong")(9,"a",30),e.EFF(10,"here"),e.k0s()(),e.EFF(11," to learn more about Core Lightning Liquidity Ads."),e.k0s()()()),2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle)}}function Sf(z,N){if(1&z&&(e.j41(0,"mat-option",47),e.EFF(1),e.nI1(2,"titlecase"),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I),e.R7$(),e.SpI(" ",e.bMT(2,2,I.id)," ")}}function Tf(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.SpI("",I.selPolicyType.placeholder," is required.")}}function u3(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be greater than or equal to ",I.selPolicyType.min,".")}}function Df(z,N){if(1&z&&(e.j41(0,"mat-error"),e.EFF(1),e.k0s()),2&z){const I=e.XpG(4);e.R7$(),e.Lme("",I.selPolicyType.placeholder," must be less than or equal to ",I.selPolicyType.max,".")}}function Af(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base fee is required."),e.k0s())}function h3(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Lease base basis is required."),e.k0s())}function Bm(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing base fee is required."),e.k0s())}function Lf(z,N){1&z&&(e.j41(0,"mat-error"),e.EFF(1,"Max channel routing fee rate is required."),e.k0s())}function If(z,N){if(1&z&&(e.j41(0,"h4",48)(1,"span",49),e.EFF(2),e.k0s()()),2&z){const I=e.XpG(4);e.R7$(),e.Y8G("ngClass",e.l_i(2,d3,!!I.updateMsg.error,!!I.updateMsg.data)),e.R7$(),e.SpI(" ",I.updateMsg.error&&""!==I.updateMsg.error?`Error: ${I.updateMsg.error||"Unknown Error"}`:I.updateMsg.data&&""!==I.updateMsg.data?I.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function ud(z,N){if(1&z){const I=e.RV6();e.j41(0,"div",31)(1,"div",32),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.k0s()(),e.j41(5,"div",33)(6,"mat-form-field",34)(7,"mat-label"),e.EFF(8,"Policy"),e.k0s(),e.j41(9,"mat-select",35),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.selPolicyType,J)||(ne.selPolicyType=J),p.Njj(J)}),e.bIt("selectionChange",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.policyMod=null)}),e.DNE(10,Sf,3,4,"mat-option",36),e.k0s()(),e.j41(11,"mat-form-field",37)(12,"mat-label"),e.EFF(13),e.k0s(),e.j41(14,"input",38,1),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.policyMod,J)||(ne.policyMod=J),p.Njj(J)}),e.k0s(),e.j41(16,"mat-hint"),e.EFF(17),e.k0s(),e.DNE(18,Tf,2,1,"mat-error",27)(19,u3,2,2,"mat-error",27)(20,Df,2,2,"mat-error",27),e.k0s()(),e.j41(21,"div",33)(22,"mat-form-field",37)(23,"mat-label"),e.EFF(24,"Lease Base Fee (Sats)"),e.k0s(),e.j41(25,"input",39),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_base_sat,J)||(ne.lease_fee_base_sat=J),p.Njj(J)}),e.k0s(),e.DNE(26,Af,2,0,"mat-error",27),e.k0s(),e.j41(27,"mat-form-field",37)(28,"mat-label"),e.EFF(29,"Lease Base Basis (bps)"),e.k0s(),e.j41(30,"input",40),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.lease_fee_basis,J)||(ne.lease_fee_basis=J),p.Njj(J)}),e.k0s(),e.DNE(31,h3,2,0,"mat-error",27),e.k0s()(),e.j41(32,"div",33)(33,"mat-form-field",37)(34,"mat-label"),e.EFF(35,"Max Channel Routing Base Fee (Sats)"),e.k0s(),e.j41(36,"input",41),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxBaseSat,J)||(ne.channelFeeMaxBaseSat=J),p.Njj(J)}),e.k0s(),e.DNE(37,Bm,2,0,"mat-error",27),e.k0s(),e.j41(38,"mat-form-field",37)(39,"mat-label"),e.EFF(40,"Max Channel Routing Fee Rate (ppm)"),e.k0s(),e.j41(41,"input",42),e.mxI("ngModelChange",function(J){p.eBV(I);const ne=e.XpG(3);return e.DH7(ne.channelFeeMaxProportional,J)||(ne.channelFeeMaxProportional=J),p.Njj(J)}),e.k0s(),e.DNE(42,Lf,2,0,"mat-error",27),e.k0s()(),e.DNE(43,If,3,5,"h4",43),e.j41(44,"div",44)(45,"button",45),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onResetPolicy())}),e.EFF(46,"Reset"),e.k0s(),e.j41(47,"button",46),e.bIt("click",function(){p.eBV(I);const J=e.XpG(3);return p.Njj(J.onUpdateFundingPolicy())}),e.EFF(48,"Update"),e.k0s()()()}if(2&z){const I=e.XpG(3);e.R7$(2),e.Y8G("icon",I.faExclamationTriangle),e.R7$(7),e.R50("ngModel",I.selPolicyType),e.R7$(),e.Y8G("ngForOf",I.policyTypes),e.R7$(3),e.JRh(I.selPolicyType.placeholder),e.R7$(),e.Y8G("step","fixed"===I.selPolicyType.id?1e3:10)("min",I.selPolicyType.min)("max",I.selPolicyType.max),e.R50("ngModel",I.policyMod),e.R7$(3),e.E5c("",I.selPolicyType.placeholder," should be between ",I.selPolicyType.min," and ",I.selPolicyType.max),e.R7$(),e.Y8G("ngIf",!I.policyMod),e.R7$(),e.Y8G("ngIf",I.policyModI.selPolicyType.max),e.R7$(5),e.R50("ngModel",I.lease_fee_base_sat),e.R7$(),e.Y8G("ngIf",!I.lease_fee_base_sat),e.R7$(4),e.R50("ngModel",I.lease_fee_basis),e.R7$(),e.Y8G("ngIf",!I.lease_fee_basis),e.R7$(5),e.R50("ngModel",I.channelFeeMaxBaseSat),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxBaseSat),e.R7$(4),e.R50("ngModel",I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",!I.channelFeeMaxProportional),e.R7$(),e.Y8G("ngIf",I.flgUpdateCalled)}}function f3(z,N){if(1&z&&(e.j41(0,"form",19,0),e.DNE(2,j0,12,1,"div",27)(3,ud,49,23,"div",28),e.k0s()),2&z){const I=e.XpG(2);e.R7$(2),e.Y8G("ngIf",!I.features[1].enabled),e.R7$(),e.Y8G("ngIf",I.features[1].enabled)}}function W0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-expansion-panel",10),e.bIt("opened",function(){const J=p.eBV(I).index,ne=e.XpG();return p.Njj(ne.onPanelExpanded(J))}),e.j41(1,"mat-expansion-panel-header")(2,"mat-panel-title",11)(3,"h4",12),e.EFF(4),e.k0s(),e.j41(5,"h4",12),e.DNE(6,Bd,1,0,"span",13)(7,wf,1,0,"span",14),e.EFF(8),e.k0s()()(),e.j41(9,"div",15),e.DNE(10,D1,29,5,"form",16)(11,f3,4,2,"form",16),e.k0s()()}if(2&z){const I=N.$implicit,H=N.index;e.Y8G("expanded",!1),e.R7$(4),e.JRh(I.name),e.R7$(2),e.Y8G("ngIf",I.enabled),e.R7$(),e.Y8G("ngIf",!I.enabled),e.R7$(),e.SpI(" ",I.enabled?"Enabled":"Disabled"," "),e.R7$(2),e.Y8G("ngIf",0===H),e.R7$(),e.Y8G("ngIf",1===H)}}let A1=(()=>{var z;class N{constructor(H,J,ne,ot){this.logger=H,this.store=J,this.dataService=ne,this.commonService=ot,this.faInfoCircle=Ti.iW_,this.faExclamationTriangle=Ti.zpE,this.faCode=Ti.jTw,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=Mt.ul,this.selPolicyType=Mt.ul[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.dataService.listConfigs().pipe((0,mi.Q)(this.unSubs[0])).subscribe({next:H=>{this.logger.info("Received List Configs: "+JSON.stringify(H)),this.features[1].enabled=!!H.configs["experimental-dual-fund"].set},error:H=>{this.logger.error("List Configs Error: "+JSON.stringify(H)),this.features[1].enabled=!1}}),this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.selNode=H,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(s0.Al).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.policyTypes[2].max=H.balance.totalBalance||1e3})}onPanelExpanded(H){1===H&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,mi.Q)(this.unSubs[3])).subscribe(J=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(J)),this.fundingPolicy=J,this.fundingPolicy.policy&&(this.selPolicyType=Mt.ul.find(ne=>ne.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Ui.T$)({payload:this.selNode}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,mi.Q)(this.unSubs[4])).subscribe({next:H=>{this.logger.info(H),this.fundingPolicy=H,this.updateMsg={data:"Compact Lease: "+H.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:H=>{this.logger.error(H),this.updateMsg={error:this.commonService.extractErrorMessage(H,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?Mt.ul.find(H=>H.id===this.fundingPolicy.policy)||this.policyTypes[0]:Mt.ul[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(vi.il),e.rXU(H0.u),e.rXU(_o.h))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-experimental-settings"]],standalone:!1,decls:13,vars:3,consts:[["form","ngForm"],["plcMod","ngModel"],["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],[1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"opened","expanded"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModelChange","change","ngModel"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","name","policy",3,"ngModelChange","selectionChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],["fxLayout","column","fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModelChange","step","min","max","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModelChange","ngModel"],["matInput","","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModelChange","ngModel"],["matInput","","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModelChange","ngModel"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.nrm(2,"fa-icon",4),e.j41(3,"span"),e.EFF(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.k0s()(),e.j41(5,"form",5,0)(7,"div",6),e.nrm(8,"fa-icon",7),e.j41(9,"span",8),e.EFF(10,"Features"),e.k0s()(),e.j41(11,"mat-accordion"),e.DNE(12,W0,12,7,"mat-expansion-panel",9),e.k0s()()()),2&J&&(e.R7$(2),e.Y8G("icon",ne.faInfoCircle),e.R7$(6),e.Y8G("icon",ne.faCode),e.R7$(4),e.Y8G("ngForOf",ne.features))},dependencies:[o.YU,o.Sq,o.bT,_i.qT,_i.me,_i.Q0,_i.BC,_i.cb,_i.YS,_i.VZ,_i.zX,_i.vS,_i.cV,cr.aY,tr.$z,ss.BS,ss.GK,ss.Z2,ss.WN,Br.fg,wa.rl,wa.nJ,wa.MV,wa.TL,Wi.q,at.DJ,at.sA,at.UI,ol.PW,al.VO,ic.wT,xd.sG,go.Ld,Xl.N,Fd.z,c3.V,o.PV],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}))}return z(),N})(),X0=(()=>{var z;class N{constructor(){}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-no-service-found"]],standalone:!1,decls:6,vars:0,consts:[["fxLayout","column",1,"padding-gap-x"],["fxLayout","column",1,"padding-gap-large"],["fxLayout","column","fxLayoutAlign","start start"],[1,"box-text"]],template:function(J,ne){1&J&&(e.j41(0,"div",0)(1,"mat-card")(2,"mat-card-content",1)(3,"div",2)(4,"div",3),e.EFF(5,"No Service Found!"),e.k0s()()()()())},dependencies:[De.RN,De.m2,at.DJ,at.sA],encapsulation:2}))}return z(),N})();const K0=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([l.e(193),l.e(190)]).then(l.bind(l,39190)).then(z=>z.LNDModule),canActivate:[(0,vo.q_)()]},{path:"cln",loadChildren:()=>Promise.all([l.e(193),l.e(853)]).then(l.bind(l,94853)).then(z=>z.CLNModule),canActivate:[(0,vo.q_)()]},{path:"ecl",loadChildren:()=>Promise.all([l.e(193),l.e(17)]).then(l.bind(l,89017)).then(z=>z.ECLModule),canActivate:[(0,vo.q_)()]},{path:"settings",component:Wa,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:nd,canActivate:[(0,vo.q_)()]},{path:"auth",component:vr,canActivate:[(0,vo.q_)()]},{path:"bconfig",component:t0,canActivate:[(0,vo.q_)()]}]},{path:"config",component:Th,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"nodesettings"},{path:"nodesettings",component:Cd,canActivate:[(0,vo.q_)()]},{path:"pglayout",component:V2,canActivate:[(0,vo.q_)()]},{path:"services",component:Ph,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:d1,canActivate:[(0,vo.q_)()]},{path:"boltz",component:W2,canActivate:[(0,vo.q_)()]},{path:"noservice",component:X0}]},{path:"experimental",component:A1,canActivate:[(0,vo.q_)()]},{path:"lnconfig",component:id,canActivate:[(0,vo.q_)()]}]},{path:"services",component:$4,canActivate:[(0,vo.q_)()],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:Z2},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:B0}]},{path:"help",component:Mf},{path:"login",component:Hc},{path:"error",component:Nd},{path:"**",component:G0.X}],Y0=co.iI.forRoot(K0,{onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"});var L1=l(19029),Ou=l(9881),m3=l(34330),I1=l(9183),k1=l(90882),Pu=l(55911),Yl=l(72279),Pl=l(47358);const Dc={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/lnd/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/lnd/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/lnd/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/lnd/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/lnd/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/lnd/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/lnd/graph",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/lnd/messages",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:Ti.cbP,link:"/lnd/channelbackup",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Network",iconType:"FA",icon:Ti.qFF,link:"/lnd/network",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:Ti.D6w,link:"/lnd/network",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:Ti.C8j,link:"/services/loop",userPersona:Mt.HW.ALL,children:[]},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/cln/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/cln/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/cln/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:Ti.e4L,link:"/cln/liquidityads",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/cln/transactions",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/cln/routing",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/cln/reports",userPersona:Mt.HW.ALL,children:[]},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/cln/graph",userPersona:Mt.HW.ALL,children:[]},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:Ti.pCJ,link:"/cln/messages",userPersona:Mt.HW.ALL,children:[]},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:Ti.WKo,link:"/cln/rates",userPersona:Mt.HW.OPERATOR,children:[]},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:Ti.D6w,link:"/cln/rates",userPersona:Mt.HW.MERCHANT,children:[]}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:Ti.qIE,link:"/services/loop",userPersona:Mt.HW.ALL,children:[{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:Mt.HW.ALL,children:[]}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:6,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:Ti.xiI,link:"/ecl/home",userPersona:Mt.HW.ALL,children:[]},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:Ti.CQO,link:"/ecl/onchain",userPersona:Mt.HW.ALL,children:[]},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:Ti.zm_,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:Ti.gdJ,link:"/ecl/connections",userPersona:Mt.HW.ALL,children:[]},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:Ti._qq,link:"/ecl/transactions",userPersona:Mt.HW.ALL,children:[]},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:Ti.knH,link:"/ecl/routing",userPersona:Mt.HW.ALL,children:[]},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:Ti.$Fj,link:"/ecl/reports",userPersona:Mt.HW.ALL,children:[]},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:Ti.MjD,link:"/ecl/graph",userPersona:Mt.HW.ALL,children:[]}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:Ti.nsx,link:"/config",userPersona:Mt.HW.ALL,children:[]},{id:5,parentId:0,name:"Help",iconType:"FA",icon:Ti.EvL,link:"/help",userPersona:Mt.HW.ALL,children:[]}]};function kf(z,N){if(1&z&&(e.j41(0,"mat-option",12),e.EFF(1),e.k0s()),2&z){const I=N.$implicit;e.Y8G("value",I.index),e.R7$(),e.Lme(" ",I.lnNode," (",I.lnImplementation,") ")}}function Rf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-select",10),e.bIt("selectionChange",function(J){p.eBV(I);const ne=e.XpG();return p.Njj(ne.onNodeSelectionChange(J.value))}),e.j41(1,"perfect-scrollbar"),e.DNE(2,kf,2,3,"mat-option",11),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("value",I.selConfigNodeIndex),e.R7$(2),e.Y8G("ngForOf",I.appConfig.nodes)}}function Of(z,N){if(1&z&&(e.j41(0,"span",21),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.XpG(2);const H=e.sdS(11);e.R7$(),e.Y8G("ngTemplateOutlet","boltzIconBlock"===I.icon?H:null)}}function Pf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function R1(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Nf(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",15)(1,"div",16),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onChildNavClicked(J))}),e.j41(2,"div",17),e.DNE(3,Of,2,1,"span",18)(4,Pf,1,1,"fa-icon",19)(5,R1,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()()()()}if(2&z){const I=N.$implicit;e.Y8G("routerLink",e.mNQ(I.link)),e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function Ff(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Bf(z,N){if(1&z&&e.nrm(0,"fa-icon",23),2&z){const I=e.XpG().$implicit;e.Y8G("icon",I.icon)}}function Q0(z,N){if(1&z&&(e.j41(0,"mat-icon",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.JRh(I.icon)}}function Fu(z,N){if(1&z&&(e.j41(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.DNE(3,Ff,2,1,"span",28)(4,Bf,1,1,"fa-icon",19)(5,Q0,2,1,"mat-icon",20),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.j41(8,"button",29)(9,"mat-icon"),e.EFF(10),e.k0s()()(),e.j41(11,"div",30),e.eu8(12,31),e.k0s()()),2&z){const I=N.$implicit,H=e.XpG(2);e.R7$(3),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name),e.R7$(),e.BMQ("aria-label","toggle "+I.name),e.R7$(2),e.JRh(H.treeControlNested.isExpanded(I)?"arrow_drop_up":"arrow_drop_down"),e.R7$(),e.AVh("tree-children-invisible",!H.treeControlNested.isExpanded(I))}}function Bu(z,N){if(1&z&&(e.j41(0,"mat-tree",7,1),e.DNE(2,Nf,8,6,"mat-tree-node",13)(3,Fu,13,8,"mat-nested-tree-node",14),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenus)("treeControl",I.treeControlNested),e.R7$(3),e.Y8G("matTreeNodeDefWhen",I.hasChild)}}function zf(z,N){if(1&z&&(e.j41(0,"span",37),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Uf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function Vf(z,N){if(1&z&&(e.j41(0,"mat-icon",39),e.EFF(1),e.k0s()),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name)),e.R7$(),e.JRh(I.icon)}}function $0(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG();return p.Njj(ne.onShowData(J))}),e.DNE(1,zf,2,1,"span",34)(2,Uf,1,3,"fa-icon",35)(3,Vf,2,3,"mat-icon",36),e.j41(4,"span"),e.EFF(5),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(),e.Y8G("ngIf",!I.iconType),e.R7$(2),e.JRh(I.name)}}function O1(z,N){if(1&z&&(e.j41(0,"span",32),e.eu8(1,22),e.k0s()),2&z){const I=e.XpG().$implicit;e.R7$(),e.Y8G("ngTemplateOutlet",I.icon)}}function Gf(z,N){if(1&z&&e.nrm(0,"fa-icon",38),2&z){const I=e.XpG().$implicit;e.Y8G("matTooltip",e.mNQ(I.name))("icon",I.icon)}}function p3(z,N){if(1&z){const I=e.RV6();e.j41(0,"mat-tree-node",33),e.bIt("click",function(){const J=p.eBV(I).$implicit,ne=e.XpG(2);return p.Njj(ne.onClick(J))}),e.DNE(1,O1,2,1,"span",28)(2,Gf,1,3,"fa-icon",35),e.j41(3,"span"),e.EFF(4),e.k0s()()}if(2&z){const I=N.$implicit;e.R7$(),e.Y8G("ngIf","SVG"===I.iconType),e.R7$(),e.Y8G("ngIf","FA"===I.iconType),e.R7$(2),e.JRh(I.name)}}function Hf(z,N){if(1&z&&(e.j41(0,"mat-tree",7),e.DNE(1,p3,5,3,"mat-tree-node",8),e.k0s()),2&z){const I=e.XpG();e.Y8G("dataSource",I.navMenusLogout)("treeControl",I.treeControlLogout)}}function Z0(z,N){1&z&&(p.qSk(),e.j41(0,"svg",40)(1,"g",41)(2,"g",42),e.nrm(3,"circle",43)(4,"path",44)(5,"path",45),e.k0s()()())}let g3=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t){this.logger=H,this.commonService=J,this.sessionService=ne,this.store=ot,this.actions=jt,this.rtlEffects=$t,this.ChildNavClicked=new e.bkB,this.faEject=Ti.njF,this.faEye=Ti.pS3,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:Ti.njF,children:[]}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:Ti.pS3,children:[]}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=Mt.HW,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B],this.treeControlNested=new Yl.XO(Tn=>Tn.children),this.treeControlLogout=new Yl.XO(Tn=>Tn.children),this.treeControlShowData=new Yl.XO(Tn=>Tn.children),this.navMenus=new Pl.Zh,this.navMenusLogout=new Pl.Zh,this.navMenusShowData=new Pl.Zh,this.hasChild=(Tn,ii)=>!!ii.children&&ii.children.length>0,this.version=Mt.xv,Dc.LNDChildren&&200===Dc.LNDChildren[Dc.LNDChildren.length-1].id&&Dc.LNDChildren.pop(),this.navMenus.data=Dc.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const H=this.sessionService.getItem("token");this.showLogout=!!H,this.flgLoading=!!H,this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[0])).subscribe(J=>{this.appConfig=J}),this.store.select(Ra.Az).pipe((0,mi.Q)(this.unSubs[1])).subscribe(J=>{if(this.information=J.nodeDate,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ne=this.information.chains[0];this.informationChain.chain=ne.chain,this.informationChain.network=ne.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=J.selNode,this.selConfigNodeIndex=+(J.selNode?.index||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(J)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[2])).subscribe(J=>{this.showLogout=!!J.token,this.flgLoading=!!J.token}),this.actions.pipe((0,mi.Q)(this.unSubs[3]),(0,za.p)(J=>J.type===Mt.aU.LOGOUT)).subscribe(J=>{this.showLogout=!1})}onClick(H){"Logout"===H.name&&(this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[4])).subscribe(J=>{J&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})),this.ChildNavClicked.emit(H)}onChildNavClicked(H){this.ChildNavClicked.emit(H)}filterSideMenuNodes(){switch(this.selNode?.lnImplementation?.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){const H=JSON.parse(JSON.stringify(Dc.LNDChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&"/services/loop"!==ne.link&&"/services/boltz"!==ne.link||"/services/loop"===ne.link&&this.selNode.settings.swapServerUrl&&""!==this.selNode.settings.swapServerUrl.trim()||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim()),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadCLNMenu(){const H=JSON.parse(JSON.stringify(Dc.CLNChildren));this.navMenus.data=H?.filter(J=>J.children&&J.children.length?(J.children=J.children?.filter(ne=>(ne.userPersona===Mt.HW.ALL||ne.userPersona===this.selNode.settings.userPersona)&&(!ne.link.includes("/services")||"/services/peerswap"===ne.link&&this.selNode.settings.enablePeerswap||"/services/boltz"===ne.link&&this.selNode.settings.boltzServerUrl&&""!==this.selNode.settings.boltzServerUrl.trim())),J.children.length>0):J.userPersona===Mt.HW.ALL||J.userPersona===this.selNode.settings.userPersona)}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Dc.ECLChildren))}onShowData(H){this.store.dispatch((0,Ui.OP)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(H){const J=this.selConfigNodeIndex;this.selConfigNodeIndex=H;const ne=this.appConfig.nodes.find(ot=>+ot.index===H);this.store.dispatch((0,Ui.Qi)({payload:{uiMessage:Mt.MZ.UPDATE_SELECTED_NODE,prevLnNodeIndex:+J,currentLnNode:ne||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(Ko.H))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-side-navigation"]],viewQuery:function(J,ne){if(1&J&&e.GBs(Pl.lQ,5),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.tree=ot.first)}},outputs:{ChildNavClicked:"ChildNavClicked"},standalone:!1,decls:12,vars:5,consts:[["boltzIconBlock",""],["tree",""],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","90","fxLayoutAlign","start stretch",1,"w-100"],["class","m-2 multi-node-select",3,"value","selectionChange",4,"ngIf"],[1,"w-100"],[3,"dataSource","treeControl",4,"ngIf"],[3,"dataSource","treeControl"],[3,"click",4,"matTreeNodeDef"],["fxLayout","column","fxLayoutAlign","end stretch",1,"w-100"],[1,"m-2","multi-node-select",3,"selectionChange","value"],["tabindex","1",3,"value",4,"ngFor","ngForOf"],["tabindex","1",3,"value"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink",4,"matTreeNodeDef"],["fxLayout","column","matTreeNodeToggle","",4,"matTreeNodeDef","matTreeNodeDefWhen"],["routerLinkActive","active-link","matTreeNodeToggle","",3,"routerLink"],["tabindex","2",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center"],["class","fa-icon-small mr-2","fxLayout","row","fxFlex","100","fxLayoutAlign","start center",4,"ngIf"],["class","fa-icon-small mr-2",3,"icon",4,"ngIf"],["class","mat-icon-36",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start center",1,"fa-icon-small","mr-2"],[3,"ngTemplateOutlet"],[1,"fa-icon-small","mr-2",3,"icon"],[1,"mat-icon-36"],["fxLayout","column","matTreeNodeToggle",""],["fxLayout","row","fxLayoutAlign","start center",1,"mat-nested-tree-node-parent"],["fxFlex","80","fxLayoutAlign","start center"],["class","mr-2",4,"ngIf"],["fxFlex","20","mat-icon-button","","fxLayoutAlign","end center",1,"btn-icon-small"],[1,"mat-nested-tree-node-child"],["matTreeNodeOutlet",""],[1,"mr-2"],[3,"click"],["class","fa-icon-small mr-2",4,"ngIf"],["class","fa-icon-small mr-2","matTooltipPosition","right",3,"matTooltip","icon",4,"ngIf"],["class","mat-icon-36","matTooltipPosition","right",3,"matTooltip",4,"ngIf"],[1,"fa-icon-small","mr-2"],["matTooltipPosition","right",1,"fa-icon-small","mr-2",3,"matTooltip","icon"],["matTooltipPosition","right",1,"mat-icon-36",3,"matTooltip"],["viewBox","0 0 78 78","version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink"],["id","Logo","stroke","none","stroke-width","1","fill","none","fill-rule","evenodd"],["id","Group"],["id","Oval","cx","39","cy","39","r","37.5",1,"boltz-icon"],["d","M36.4583326,43.7755404 L40.53965,35.2316544 L39.4324865,35.2316544 L46.0754873,17.6071752 C46.292579,17.0204094 46.3287609,16.5159331 46.1840331,16.0937464 C46.0393053,15.671561 45.7860319,15.3674444 45.4242131,15.1813966 C45.0623942,14.9953487 44.6535376,14.9524146 44.1976433,15.0525945 C43.7417511,15.1527743 43.3256596,15.4461573 42.9493689,15.9327433 L22.6078557,40.7701025 C22.2026186,41.2710003 22,41.7575877 22,42.2298646 C22,42.6735173 22.1592003,43.0420366 22.477601,43.3354226 C22.7960017,43.6288058 23.1940025,43.7755404 23.6716036,43.7755404 L36.4583326,43.7755404 Z","id","Path",1,"boltz-icon-fill"],["d","M44.4883879,63.7755404 L48.8604707,55.165009 L47.6744296,55.165009 L54.7906978,37.4030526 C55.0232558,36.8117097 55.0620155,36.3032983 54.9069768,35.8778185 C54.7519381,35.4523399 54.4806208,35.1458511 54.0930248,34.958352 C53.7054289,34.7708528 53.2674441,34.7275839 52.7790706,34.8285452 C52.2906992,34.9295065 51.8449641,35.2251779 51.4418653,35.7155595 L29.6511611,60.746659 C29.2170537,61.251464 29,61.7418469 29,62.2178078 C29,62.6649211 29.1705423,63.036315 29.5116268,63.3319895 C29.8527113,63.6276613 30.2790669,63.7755404 30.7906936,63.7755404 L44.4883879,63.7755404 Z","id","Path-Copy","transform","translate(42.000000, 49.275540) rotate(-180.000000) translate(-42.000000, -49.275540) ",1,"boltz-icon-fill"]],template:function(J,ne){1&J&&(e.j41(0,"div",2)(1,"div",3),e.DNE(2,Rf,3,2,"mat-select",4),e.nrm(3,"mat-divider",5),e.DNE(4,Bu,4,3,"mat-tree",6),e.nrm(5,"mat-divider",5),e.j41(6,"mat-tree",7),e.DNE(7,$0,6,4,"mat-tree-node",8),e.k0s()(),e.j41(8,"div",9),e.DNE(9,Hf,2,2,"mat-tree",6),e.k0s()(),e.DNE(10,Z0,6,0,"ng-template",null,0,e.C5r)),2&J&&(e.R7$(2),e.Y8G("ngIf",ne.appConfig.nodes.length>1),e.R7$(2),e.Y8G("ngIf",null==ne.selNode.settings?null:ne.selNode.settings.lnServerUrl),e.R7$(2),e.Y8G("dataSource",ne.navMenusShowData)("treeControl",ne.treeControlShowData),e.R7$(3),e.Y8G("ngIf",ne.showLogout))},dependencies:[o.Sq,o.bT,o.T3,cr.aY,sc.iY,Oc.An,Wi.q,Pl.q1,Pl.yI,Pl.pO,Pl.lQ,Pl.d6,Pl.wx,at.DJ,at.sA,at.UI,al.VO,ic.wT,o1.oV,co.Wk,co.wQ,go.ZF,go.Ld],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}))}return z(),N})();var zu=l(59115);function J0(z,N){if(1&z&&(e.j41(0,"p",14),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faCode),e.R7$(2),e.SpI("API Version: ",null==I.information?null:I.information.api_version)}}function _3(z,N){if(1&z&&(e.j41(0,"p",15),e.nrm(1,"fa-icon",3),e.j41(2,"span",16),e.EFF(3,"Settings"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faUserCog)}}function zd(z,N){if(1&z&&(e.j41(0,"p",17),e.nrm(1,"fa-icon",3),e.j41(2,"span",18),e.EFF(3,"Help"),e.k0s()()),2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faQuestion)}}function jf(z,N){if(1&z){const I=e.RV6();e.j41(0,"p",19),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.onClick())}),e.nrm(1,"fa-icon",3),e.j41(2,"span"),e.EFF(3,"Logout"),e.k0s()()}if(2&z){const I=e.XpG();e.R7$(),e.Y8G("icon",I.faEject)}}let v3=(()=>{var z;class N{constructor(H,J,ne,ot,jt){this.logger=H,this.sessionService=J,this.store=ne,this.rtlEffects=ot,this.actions=jt,this.faUserCog=Ti.McB,this.faCodeBranch=Ti.Xbc,this.faCode=Ti.jTw,this.faCog=Ti.dB,this.faQuestion=Ti.EvL,this.faEject=Ti.njF,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.showLogout=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B],this.version=Mt.xv}ngOnInit(){this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{if(this.information=H,this.flgLoading=!this.information.identity_pubkey,this.information.identity_pubkey){if(this.information.chains&&"string"==typeof this.information.chains[0])this.informationChain.chain=this.information.chains[0].toString(),this.informationChain.network=this.information.testnet?"Testnet":"Mainnet";else if(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const J=this.information.chains[0];this.informationChain.chain=J.chain,this.informationChain.network=J.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(H)}),this.sessionService.watchSession().pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.showLogout=!!H.token,this.flgLoading=!!H.token}),this.actions.pipe((0,mi.Q)(this.unSubs[2]),(0,za.p)(H=>H.type===Mt.aU.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ui.I1)({payload:{data:{type:Mt.A$.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{H&&(this.showLogout=!1,this.store.dispatch((0,Ui.ri)({payload:""})))})}onDonate(){window.open("https://www.ridethelightning.info/donate/","_blank")}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(null),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(zi.Q),e.rXU(vi.il),e.rXU(Ko.H),e.rXU(Vo.En))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-top-menu"]],standalone:!1,decls:20,vars:8,consts:[["topMenu","matMenu"],[1,"top-menu",3,"overlapTrigger"],["tabindex","1","mat-menu-item","",1,"cursor-default"],[1,"fa-icon-small","mr-1",3,"icon"],["tabindex","2","mat-menu-item","","class","cursor-default",4,"ngIf"],["tabindex","3","mat-menu-item","","routerLink","/settings",4,"ngIf"],["tabindex","4","mat-menu-item","","routerLink","/help",4,"ngIf"],["mat-menu-item","","tabindex","5","fxLayoutAlign","start center",3,"click"],["fill","currentColor","version","1.1","viewBox","0 0 64 64",0,"xml","space","preserve","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,"svg-donation"],["d","M62.519,17.698l-12-14c-0.659-0.768-1.786-0.923-2.628-0.362l-8.712,5.808l-16.688,4.172 c-2.485,0.622-4.537,2.412-5.487,4.791L12.21,30.09C10.206,32.512,9,35.618,9,39c0,2.974,0.939,5.73,2.527,8H5 c-2.206,0-4,1.794-4,4v6c0,2.206,1.794,4,4,4h36c2.206,0,4-1.794,4-4v-6c0-2.206-1.794-4-4-4h-6.522 c0.375-0.535,0.713-1.1,1.013-1.691l4.291-2.452l3.378-0.965c2.619-0.749,4.903-2.269,6.604-4.395 c1.39-1.736,2.317-3.813,2.682-6.006l0.412-2.472l9.48-8.532C63.145,19.76,63.225,18.523,62.519,17.698z M34.428,30.929 c-1.487-2.094-3.517-3.732-5.842-4.75L29.207,25h7.058l0.588,4.11L34.428,30.929z M31.225,33.331l-0.373,0.28 c-1.772,1.329-2.889,3.273-3.146,5.473c-0.257,2.2,0.382,4.348,1.8,6.048l0.667,0.8C28.315,47.845,25.742,49,23,49 c-5.514,0-10-4.486-10-10s4.486-10,10-10C26.299,29,29.376,30.663,31.225,33.331z M41,57H5v-6h10.826c2.101,1.261,4.55,2,7.174,2 c2.571,0,5.041-0.723,7.176-2H41V57z M49.662,26.513c-0.336,0.303-0.561,0.711-0.635,1.158L48.5,30.833 c-0.253,1.521-0.896,2.96-1.86,4.165c-1.18,1.475-2.763,2.529-4.579,3.048l-3.61,1.031c-0.155,0.044-0.303,0.106-0.443,0.187 l-5.541,3.166c-0.63-0.826-0.909-1.843-0.788-2.882c0.128-1.1,0.687-2.072,1.573-2.737l6.001-4.5 c1.169-0.877,1.767-2.32,1.56-3.766l-0.587-4.11C39.946,22.477,38.244,21,36.266,21h-7.059c-1.489,0-2.845,0.818-3.539,2.136 l-1.037,1.969C24.093,25.041,23.549,25,23,25c-1.685,0-3.294,0.314-4.791,0.862l2.509-6.271c0.476-1.189,1.501-2.084,2.743-2.395 l17.024-4.256c0.223-0.056,0.434-0.149,0.625-0.276l7.525-5.017l9.576,11.172L49.662,26.513z"],["tabindex","6","mat-menu-item","",3,"click",4,"ngIf"],["tabindex","7","mat-icon-button","",3,"matMenuTriggerFor"],["alt","RTL Logo","src","assets/images/RTL-Horse-BY.svg",1,"rtl-log-top"],[1,"rtl-logo-dropdown","color-white"],["tabindex","2","mat-menu-item","",1,"cursor-default"],["tabindex","3","mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["tabindex","4","mat-menu-item","","routerLink","/help"],["routerLink","/help"],["tabindex","6","mat-menu-item","",3,"click"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"mat-menu",1,0)(2,"p",2),e.nrm(3,"fa-icon",3),e.j41(4,"span"),e.EFF(5),e.k0s()(),e.DNE(6,J0,4,2,"p",4)(7,_3,4,1,"p",5)(8,zd,4,1,"p",6),e.j41(9,"p",7),e.bIt("click",function(){return p.eBV(ot),p.Njj(ne.onDonate())}),p.qSk(),e.j41(10,"svg",8)(11,"g"),e.nrm(12,"path",9),e.k0s()(),p.joV(),e.j41(13,"span"),e.EFF(14,"Donate"),e.k0s()(),e.DNE(15,jf,4,1,"p",10),e.k0s(),e.j41(16,"button",11),e.nrm(17,"img",12),e.j41(18,"mat-icon",13),e.EFF(19,"arrow_drop_down"),e.k0s()()}if(2&J){const ot=e.sdS(1);e.Y8G("overlapTrigger",!1),e.R7$(3),e.Y8G("icon",ne.faCodeBranch),e.R7$(2),e.SpI("Version: ",ne.version),e.R7$(),e.Y8G("ngIf",null==ne.information?null:ne.information.api_version),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("ngIf",ne.showLogout),e.R7$(7),e.Y8G("ngIf",ne.showLogout),e.R7$(),e.Y8G("matMenuTriggerFor",ot)}},dependencies:[o.bT,cr.aY,sc.iY,Oc.An,zu.kk,zu.fb,zu.Cp,at.sA,co.Wk],styles:[".mat-mdc-icon-button img.rtl-log-top{width:2rem;height:2rem}.mat-icon.material-icons.mat-icon-no-color.rtl-logo-dropdown{height:2rem}\n"],encapsulation:2}))}return z(),N})();const P1=["sideNavigation"],N1=["sideNavContent"],Um=(z,N)=>[z,N];function Wf(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.sideNavToggle())}),e.j41(1,"mat-icon",16),e.EFF(2,"menu"),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",I.smallScreen)}}function Uu(z,N){1&z&&(p.qSk(),e.nrm(0,"path",21))}function q0(z,N){1&z&&(p.qSk(),e.nrm(0,"path",22))}function e2(z,N){if(1&z){const I=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){p.eBV(I);const J=e.XpG();return p.Njj(J.flgSidenavPinned=!J.flgSidenavPinned)}),p.qSk(),e.j41(1,"svg",18),e.DNE(2,Uu,1,0,"path",19)(3,q0,1,0,"path",20),e.k0s()()}if(2&z){const I=e.XpG();e.Y8G("matTooltip",I.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.R7$(2),e.Y8G("ngIf",!I.flgSidenavPinned),e.R7$(),e.Y8G("ngIf",I.flgSidenavPinned)}}function Vu(z,N){if(1&z&&(e.j41(0,"span",23),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"RTL - "+I.information.alias:"RTL")}}function y3(z,N){if(1&z&&(e.j41(0,"span",24),e.EFF(1),e.k0s()),2&z){const I=e.XpG();e.R7$(),e.JRh(I.information.alias?"Ride The Lightning - "+I.information.alias:"Ride The Lightning")}}function b3(z,N){1&z&&(e.j41(0,"div",25),e.nrm(1,"mat-spinner",26),e.j41(2,"h4"),e.EFF(3,"Loading RTL..."),e.k0s()())}let Gu=(()=>{var z;class N{constructor(H,J,ne,ot,jt,$t,Tn,ii,$n){this.logger=H,this.commonService=J,this.store=ne,this.actions=ot,this.userIdle=jt,this.router=$t,this.sessionService=Tn,this.breakpointObserver=ii,this.renderer=$n,this.information={},this.flgLoading=[!0],this.flgSideNavOpened=!0,this.flgCopied=!1,this.accessKey="",this.xSmallScreen=!1,this.smallScreen=!1,this.flgSidenavPinned=!0,this.flgLoggedIn=!1,this.unSubs=[new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B,new bi.B]}ngOnInit(){this.router.events.subscribe(H=>{H instanceof ja.wF&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([hr.Rp.XSmall,hr.Rp.TabletPortrait,hr.Rp.Small,hr.Rp.Medium,hr.Rp.Large,hr.Rp.XLarge]).pipe((0,mi.Q)(this.unSubs[0])).subscribe(H=>{H.breakpoints[hr.Rp.XSmall]?(this.commonService.setScreenSize(Mt.f7.XS),this.smallScreen=!0):H.breakpoints[hr.Rp.TabletPortrait]?(this.commonService.setScreenSize(Mt.f7.SM),this.smallScreen=!0):H.breakpoints[hr.Rp.Small]||H.breakpoints[hr.Rp.Medium]?(this.commonService.setScreenSize(Mt.f7.MD),this.smallScreen=!1):H.breakpoints[hr.Rp.Large]?(this.commonService.setScreenSize(Mt.f7.LG),this.smallScreen=!1):(this.commonService.setScreenSize(Mt.f7.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ui.NU)()),this.accessKey=this.readAccessKey()||"",this.store.select(Ra._c).pipe((0,mi.Q)(this.unSubs[1])).subscribe(H=>{this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1),this.selNode=H}),this.store.select(Ra.qv).pipe((0,mi.Q)(this.unSubs[2])).subscribe(H=>{this.appConfig=H}),this.store.select(Ra.N).pipe((0,mi.Q)(this.unSubs[3])).subscribe(H=>{this.information=H,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,mi.Q)(this.unSubs[4]),(0,za.p)(H=>H.type===Mt.aU.SET_APPLICATION_SETTINGS||H.type===Mt.aU.LOGIN||H.type===Mt.aU.LOGOUT)).subscribe(H=>{H.type===Mt.aU.SET_APPLICATION_SETTINGS&&(this.sessionService.getItem("token")||(H.payload.disableAuth?this.store.dispatch((0,Ui.iD)({payload:{password:"disabledAuth",defaultPassword:!1}})):+H.payload.SSO.rtlSSO?!this.accessKey||this.accessKey.trim().length<32?this.router.navigate(["./error"],{state:{errorCode:"406",errorMessage:"Access key too short. It should be at least 32 characters long."}}):this.store.dispatch((0,Ui.iD)({payload:{password:vc(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"],{state:{logoutReason:"Access key too short. It should be at least 32 characters long."}}))),H.type===Mt.aU.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),H.type===Mt.aU.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,mi.Q)(this.unSubs[5])).subscribe(H=>{this.logger.info("Counting Down: "+(11-H))}),this.userIdle.onTimeout().pipe((0,mi.Q)(this.unSubs[6])).subscribe(()=>{this.logger.info("Time Out!"),this.sessionService.getItem("token")&&(this.flgLoggedIn=!1,this.logger.warn("Time limit exceeded for session inactivity."),this.store.dispatch((0,Ui.Jh)()),this.store.dispatch((0,Ui.xO)({payload:{data:{type:Mt.A$.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ui.ri)({payload:"Logging Out. Time limit exceeded for session inactivity."})))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const H=window.location.href;return H.includes("access-key=")?H.substring(H.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(H){this.smallScreen&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}backdropClicked(){(!this.flgSidenavPinned||this.smallScreen)&&(this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.close())}copiedText(H){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+H)}ngOnDestroy(){this.unSubs.forEach(H=>{H.next(),H.complete()})}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(e.rXU(La.gP),e.rXU(_o.h),e.rXU(vi.il),e.rXU(Vo.En),e.rXU(vd),e.rXU(ja.Ix),e.rXU(zi.Q),e.rXU(m3.Q),e.rXU(e.sFG))},this.\u0275cmp=e.VBU({type:N,selectors:[["rtl-app"]],viewQuery:function(J,ne){if(1&J&&(e.GBs(P1,5),e.GBs(N1,5)),2&J){let ot;e.mGM(ot=e.lsd())&&(ne.sideNavigation=ot.first),e.mGM(ot=e.lsd())&&(ne.sideNavContent=ot.first)}},standalone:!1,decls:22,vars:15,consts:[["sideNavigation",""],["sideNavContent",""],["outlet","outlet"],["fxLayout","column","id","rtl-container",1,"rtl-container","medium",3,"ngClass"],["fxLayout","row","fxLayoutAlign","space-between center",1,"bg-primary","rtl-top-toolbar"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","matTooltipDisabled","click",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"matTooltip","click",4,"ngIf"],["class","font-weight-500",4,"ngIf"],["class","font-size-120 font-weight-500",4,"ngIf"],[3,"backdropClick"],[1,"sidenav","mat-elevation-z6",3,"perfectScrollbar","opened","mode"],["fxFlex","100",3,"ChildNavClicked"],[3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"inner-sidenav-content"],["class","rtl-spinner",4,"ngIf"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip","matTooltipDisabled"],[1,"color-white"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["width","20","height","20","viewBox","0 0 24 24",1,"icon-pinned"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z",4,"ngIf"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z",4,"ngIf"],["fill","currentColor","d","M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z"],["fill","currentColor","d","M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z"],[1,"font-weight-500"],[1,"font-size-120","font-weight-500"],[1,"rtl-spinner"],["color","accent"]],template:function(J,ne){if(1&J){const ot=e.RV6();e.j41(0,"div",3),e.nI1(1,"lowercase"),e.nI1(2,"lowercase"),e.j41(3,"mat-toolbar",4)(4,"div"),e.DNE(5,Wf,3,2,"button",5)(6,e2,4,3,"button",6),e.k0s(),e.j41(7,"div"),e.DNE(8,Vu,2,1,"span",7)(9,y3,2,1,"span",8),e.k0s(),e.j41(10,"div"),e.nrm(11,"rtl-top-menu"),e.k0s()(),e.j41(12,"mat-sidenav-container",9),e.bIt("backdropClick",function(){return p.eBV(ot),p.Njj(ne.backdropClicked())}),e.j41(13,"mat-sidenav",10,0)(15,"rtl-side-navigation",11),e.bIt("ChildNavClicked",function($t){return p.eBV(ot),p.Njj(ne.onNavigationClicked($t))}),e.k0s()(),e.j41(16,"mat-sidenav-content",12,1)(18,"div",13),e.nrm(19,"router-outlet",null,2),e.k0s()()(),e.DNE(21,b3,4,0,"div",14),e.k0s()}2&J&&(e.Y8G("ngClass",e.l_i(12,Um,e.bMT(1,8,ne.selNode.settings.themeColor),e.bMT(2,10,ne.selNode.settings.themeMode))),e.R7$(5),e.Y8G("ngIf",ne.flgLoggedIn),e.R7$(),e.Y8G("ngIf",!ne.smallScreen&&ne.flgLoggedIn),e.R7$(2),e.Y8G("ngIf",ne.smallScreen),e.R7$(),e.Y8G("ngIf",!ne.smallScreen),e.R7$(4),e.Y8G("opened",ne.flgSideNavOpened&&ne.flgLoggedIn)("mode",ne.flgSidenavPinned&&!ne.smallScreen?"side":"over"),e.R7$(8),e.Y8G("ngIf",!ne.selNode.settings.themeColor))},dependencies:[o.YU,o.bT,sc.iY,Oc.An,I1.LG,at.DJ,at.sA,at.UI,ol.PW,k1.LG,k1.US,k1.El,Pu.KQ,o1.oV,go.Ld,g3,v3,ja.n3,o.GH],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[Ou.E]}}))}return z(),N})(),Hu=(()=>{var z;class N{constructor(H){this.sessionService=H}intercept(H,J){if(this.sessionService.getItem("token")){const ne=H.clone({headers:H.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return J.handle(ne)}return J.handle(H)}static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)(p.KVO(zi.Q))},this.\u0275prov=p.jDH({token:N,factory:N.\u0275fac}))}return z(),N})();var ju=l(7879),x3=l(69579),Wu=l(283),Xf=l(13017);const Kf={userPersona:Mt.HW.OPERATOR,themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1,logLevel:"ERROR",lnServerUrl:"",swapServerUrl:"",boltzServerUrl:"",currencyUnit:"USD",blockExplorerUrl:"https://mempool.space"},Yf={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},Xu={apiURL:"",apisCallStatus:{Login:{status:Mt.wn.UN_INITIATED},IsAuthorized:{status:Mt.wn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:Kf,authentication:Yf,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,SSO:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,secret2FA:"",disableAuth:!1,allowPasswordUpdate:!0,nodes:[{settings:Kf,authentication:Yf}]},nodeData:{}},Ku=(0,vi.vy)(Xu,(0,vi.on)(Ui.Gd,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ui.Tn,(z,{payload:N})=>({...Xu,apisCallStatus:z.apisCallStatus,appConfig:z.appConfig,selNode:N})),(0,vi.on)(Ui.Np,(z,{payload:N})=>({...z,selNode:N})),(0,vi.on)(Ui.Fl,(z,{payload:N})=>({...z,nodeData:N})),(0,vi.on)(Ui.IK,(z,{payload:N})=>({...z,appConfig:N}))),C3={apisCallStatus:{FetchPageSettings:{status:Mt.wn.UN_INITIATED},FetchInfo:{status:Mt.wn.UN_INITIATED},FetchFees:{status:Mt.wn.UN_INITIATED},FetchPeers:{status:Mt.wn.UN_INITIATED},FetchClosedChannels:{status:Mt.wn.UN_INITIATED},FetchPendingChannels:{status:Mt.wn.UN_INITIATED},FetchAllChannels:{status:Mt.wn.UN_INITIATED},FetchBalanceBlockchain:{status:Mt.wn.UN_INITIATED},FetchInvoices:{status:Mt.wn.UN_INITIATED},FetchPayments:{status:Mt.wn.UN_INITIATED},FetchForwardingHistory:{status:Mt.wn.UN_INITIATED},FetchUTXOs:{status:Mt.wn.UN_INITIATED},FetchTransactions:{status:Mt.wn.UN_INITIATED},FetchLightningTransactions:{status:Mt.wn.UN_INITIATED},FetchNetwork:{status:Mt.wn.UN_INITIATED}},pageSettings:Mt.ZC,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{open:{num_channels:0,limbo_balance:0},closing:{num_channels:0,limbo_balance:0},force_closing:{num_channels:0,limbo_balance:0},waiting_close:{num_channels:0,limbo_balance:0},total_channels:0,total_limbo_balance:0},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let t2=!1,Yu=!1;const M3=(0,vi.vy)(C3,(0,vi.on)(Ur.e8,(z,{payload:N})=>{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ur.p1,z=>({...C3})),(0,vi.on)(Ur.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ur.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ur.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.pub_key===N.pubkey);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ur.Jx,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices?.unshift(N),{...z,listInvoices:I}}),(0,vi.on)(Ur.Dq,(z,{payload:N})=>{const I=z.listInvoices;return I.invoices=I.invoices?.map(H=>H.payment_request===N.payment_request?N:H),{...z,listInvoices:I}}),(0,vi.on)(Ur._$,(z,{payload:N})=>{const I=z.listPayments;return I.payments=I.payments?.map(H=>H.payment_hash===N.payment_hash?N:H),{...z,listPayments:I}}),(0,vi.on)(Ur.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ur.z2,(z,{payload:N})=>({...z,closedChannels:N})),(0,vi.on)(Ur.cU,(z,{payload:N})=>({...z,pendingChannels:N.pendingChannels,pendingChannelsSummary:N.pendingChannelsSummary})),(0,vi.on)(Ur.dv,(z,{payload:N})=>{let I=0,H=0,J=0,ne=0,ot=0,jt=0;return N&&N.forEach($t=>{$t.local_balance||($t.local_balance=0),!0===$t.active?(ot+=+$t.local_balance,J+=1,$t.local_balance?I=+I+ +$t.local_balance:$t.local_balance=0,$t.remote_balance?H=+H+ +$t.remote_balance:$t.remote_balance=0):(jt+=+$t.local_balance,ne+=1)}),{...z,channels:N,channelsSummary:{active:{num_channels:J,capacity:ot},inactive:{num_channels:ne,capacity:jt}},lightningBalance:{local:I,remote:H}}}),(0,vi.on)(Ur.cR,(z,{payload:N})=>{const I=[...z.channels],H=z.channels.findIndex(J=>J.channel_point===N.channelPoint);return H>-1&&I.splice(H,1),{...z,channels:I}}),(0,vi.on)(Ur.DI,(z,{payload:N})=>({...z,blockchainBalance:N})),(0,vi.on)(Ur.J9,(z,{payload:N})=>({...z,networkInfo:N})),(0,vi.on)(Ur.$6,(z,{payload:N})=>(N.total_invoices||(N.total_invoices=z.listInvoices.total_invoices),{...z,listInvoices:N})),(0,vi.on)(Ur.As,(z,{payload:N})=>{if(t2=!0,N.length&&Yu){const I=[...z.utxos];return I.forEach(H=>{const J=N.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""}),{...z,utxos:I,transactions:N}}return{...z,transactions:N}}),(0,vi.on)(Ur.O8,(z,{payload:N})=>{if(Yu=!0,N.length&&t2){const I=[...z.transactions];N.forEach(H=>{const J=I.find(ne=>ne.tx_hash===H.outpoint?.txid_str);H.label=J&&J.label?J.label:""})}return{...z,utxos:N}}),(0,vi.on)(Ur.Uj,(z,{payload:N})=>{const I={listInvoicesAll:z.allLightningTransactions.listInvoicesAll,listPaymentsAll:N};return{...z,listPayments:N,allLightningTransactions:I}}),(0,vi.on)(Ur.b1,(z,{payload:N})=>{const I={listInvoicesAll:N.listInvoicesAll,listPaymentsAll:z.listPayments};return{...z,allLightningTransactions:I}}),(0,vi.on)(Ur.kv,(z,{payload:N})=>{const I=[...z.channels,...z.closedChannels];let H=N.forwarding_events?JSON.parse(JSON.stringify(N)):{};return H.forwarding_events&&(H=Qu(H,I)),{...z,forwardingHistory:H}}),(0,vi.on)(Ur.NS,(z,{payload:N})=>{const I=[];return Mt.ZC.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Qu=(z,N)=>(z.forwarding_events.forEach(I=>{if(N&&N.length>0)for(let H=0;H{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(zr.gf,z=>({...jc})),(0,vi.on)(zr.x1,(z,{payload:N})=>({...z,information:N,fees:{feeCollected:N.fees_collected_msat}})),(0,vi.on)(zr.C2,(z,{payload:N})=>N.perkb?{...z,feeRatesPerKB:N}:N.perkw?{...z,feeRatesPerKW:N}:{...z}),(0,vi.on)(zr.EM,(z,{payload:N})=>({...z,utxos:N.utxos||[],balance:N.balance,localRemoteBalance:N.localRemoteBalance})),(0,vi.on)(zr.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(zr.We,(z,{payload:N})=>({...z,peers:[...z.peers,N]})),(0,vi.on)(zr.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.id===N.id);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(zr.dv,(z,{payload:N})=>({...z,activeChannels:N.activeChannels,pendingChannels:N.pendingChannels,inactiveChannels:N.inactiveChannels})),(0,vi.on)(zr.cR,(z,{payload:N})=>{const I=[...z.peers];return I.forEach(H=>{H.id===N.id&&(H.connected=!1,delete H.netaddr)}),{...z,peers:I}}),(0,vi.on)(zr.Uj,(z,{payload:N})=>({...z,payments:N})),(0,vi.on)(zr.kv,(z,{payload:N})=>{const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels],H=$u(N.listForwards,I);switch(N.listForwards=H,N.status){case Mt.xk.SETTLED:const J=z.fees;return J.totalTxCount=N.totalForwards||0,{...z,fees:J,forwardingHistory:N};case Mt.xk.FAILED:return{...z,failedForwardingHistory:N};case Mt.xk.LOCAL_FAILED:return{...z,localFailedForwardingHistory:N};default:return{...z}}}),(0,vi.on)(zr.Jx,(z,{payload:N})=>{const I=z.invoices;return I.invoices?.unshift(N),{...z,invoices:I}}),(0,vi.on)(zr.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(zr.Dq,(z,{payload:N})=>{const I=z.invoices;return I.invoices=I.invoices?.map(H=>(H.label===N.label&&(H.amount_received_msat=N.msat,H.payment_preimage=N.preimage,H.status="paid"),H)),{...z,invoices:I}}),(0,vi.on)(zr.qw,(z,{payload:N})=>({...z,offers:N})),(0,vi.on)(zr.kQ,(z,{payload:N})=>{const I=z.offers;return I?.unshift(N),{...z,offers:I}}),(0,vi.on)(zr.Gz,(z,{payload:N})=>{const I=[...z.offers],H=z.offers.findIndex(J=>J.offer_id===N.offer.offer_id);return H>-1&&I.splice(H,1,N.offer),{...z,offers:I}}),(0,vi.on)(zr.Qv,(z,{payload:N})=>({...z,offersBookmarks:N})),(0,vi.on)(zr.Db,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=I.findIndex(J=>J.bolt12===N.bolt12);if(H<0)I?.unshift(N);else{const J={...I[H]};J.title=N.title,J.amountMSat=N.amountMSat,J.lastUpdatedAt=N.lastUpdatedAt,J.description=N.description,J.issuer=N.issuer,I.splice(H,1,J)}return{...z,offersBookmarks:I}}),(0,vi.on)(zr.NU,(z,{payload:N})=>{const I=[...z.offersBookmarks],H=z.offersBookmarks.findIndex(J=>J.bolt12===N.bolt12);return H>-1&&I.splice(H,1),{...z,offersBookmarks:I}}),(0,vi.on)(zr.NS,(z,{payload:N})=>{const I=[];return Mt.mu.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),$u=(z,N)=>(z&&z.length>0?z.forEach((I,H)=>{if(N&&N.length>0)for(let J=0;J{const I=JSON.parse(JSON.stringify(z.apisCallStatus));return N.action&&(I[N.action]={status:N.status,statusCode:N.statusCode,message:N.message,URL:N.URL,filePath:N.filePath}),{...z,apisCallStatus:I}}),(0,vi.on)(Ta.Hh,z=>({...F1})),(0,vi.on)(Ta.x1,(z,{payload:N})=>({...z,information:N})),(0,vi.on)(Ta.Uo,(z,{payload:N})=>({...z,fees:N})),(0,vi.on)(Ta.Tp,(z,{payload:N})=>({...z,activeChannels:N})),(0,vi.on)(Ta.cU,(z,{payload:N})=>({...z,pendingChannels:N})),(0,vi.on)(Ta.I6,(z,{payload:N})=>({...z,inactiveChannels:N})),(0,vi.on)(Ta.ZE,(z,{payload:N})=>({...z,channelsStatus:N})),(0,vi.on)(Ta.Xx,(z,{payload:N})=>({...z,onchainBalance:N})),(0,vi.on)(Ta.N8,(z,{payload:N})=>({...z,lightningBalance:N})),(0,vi.on)(Ta.Qj,(z,{payload:N})=>({...z,peers:N})),(0,vi.on)(Ta.Zi,(z,{payload:N})=>{const I=[...z.peers],H=z.peers.findIndex(J=>J.nodeId===N.nodeId);return H>-1&&I.splice(H,1),{...z,peers:I}}),(0,vi.on)(Ta.cR,(z,{payload:N})=>{const I=[...z.activeChannels],H=z.activeChannels.findIndex(J=>J.channelId===N.channelId);return H>-1&&I.splice(H,1),{...z,activeChannels:I}}),(0,vi.on)(Ta.Uj,(z,{payload:N})=>{if(N&&N.sent){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.sent?.map(H=>{const J=z.peers.find(ne=>ne.nodeId===H.recipientNodeId);return H.recipientNodeAlias=J?J.alias:H.recipientNodeId,H.parts&&H.parts?.map(ne=>{const ot=I.find(jt=>jt.channelId===ne.toChannelId);return ne.toChannelAlias=ot?ot.alias:ne.toChannelId,H.parts}),N.sent})}if(N&&N.relayed){const I=[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels];N.relayed.forEach(H=>{H=Wc(H,I)})}return{...z,payments:N}}),(0,vi.on)(Ta.As,(z,{payload:N})=>({...z,transactions:N})),(0,vi.on)(Ta.Jx,(z,{payload:N})=>{const I=z.invoices;return I?.unshift(N),{...z,invoices:I}}),(0,vi.on)(Ta.$6,(z,{payload:N})=>({...z,invoices:N})),(0,vi.on)(Ta.Dq,(z,{payload:N})=>{let I=z.invoices;return I=I?.map(H=>{if(H.paymentHash===N.paymentHash){if(N.hasOwnProperty("type")){const J=JSON.parse(JSON.stringify(H));return J.amountSettled=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].amount?(N.parts[0].amount||0)/1e3:0,J.receivedAt=N.parts&&N.parts.length&&N.parts.length>0&&N.parts[0].timestamp?Math.round((N.parts[0].timestamp||0)/1e3):0,J.status="received",J}return N}return H}),{...z,invoices:I}}),(0,vi.on)(Ta.gZ,(z,{payload:N})=>{let I=z.pendingChannels;return I=I?.map(H=>(H.channelId===N.channelId&&H.nodeId===N.remoteNodeId&&(N.currentState=N.currentState?.replace(/_/g," "),H.state=N.currentState),H)),{...z,pendingChannels:I}}),(0,vi.on)(Ta.yn,(z,{payload:N})=>{const I=z.payments,H=Wc(N,[...z.activeChannels,...z.pendingChannels,...z.inactiveChannels]);I.relayed?.unshift(H);const J=(N.amountIn||0)-(N.amountOut||0),ne={localBalance:z.lightningBalance.localBalance+J,remoteBalance:z.lightningBalance.remoteBalance-J},ot=z.channelsStatus;ot.active&&(ot.active.capacity=(z.channelsStatus?.active?.capacity||0)+J);const jt={daily_fee:(z.fees.daily_fee||0)+J,daily_txs:(z.fees.daily_txs||0)+1,weekly_fee:(z.fees.weekly_fee||0)+J,weekly_txs:(z.fees.weekly_txs||0)+1,monthly_fee:(z.fees.monthly_fee||0)+J,monthly_txs:(z.fees.monthly_txs||0)+1},$t=z.activeChannels;let Tn=!1,ii=!1;for(const $n of $t){if($n.channelId===N.fromChannelId){Tn=!0;const Vi=($n.toLocal||0)+($n.toRemote||0);$n.toLocal=($n.toLocal||0)+H.amountIn,$n.toRemote=($n.toRemote||0)-H.amountIn,$n.balancedness=0===Vi?1:+(1-Math.abs(($n.toLocal-$n.toRemote)/Vi)).toFixed(3)}if($n.channelId===N.toChannelId){ii=!0;const Vi=($n.toLocal||0)+($n.toRemote||0);$n.toLocal=($n.toLocal||0)-H.amountOut,$n.toRemote=($n.toRemote||0)+H.amountOut,$n.balancedness=0===Vi?1:+(1-Math.abs(($n.toLocal-$n.toRemote)/Vi)).toFixed(3)}if(ii&&Tn)break}return{...z,payments:I,lightningBalance:ne,channelStatus:ot,fees:jt,activeChannels:$t}}),(0,vi.on)(Ta.NS,(z,{payload:N})=>{const I=[];return Mt.X8.forEach(H=>{const J=N&&N.length&&N.length>0?N.find(ne=>ne.pageId===H.pageId):null;if(J){const ne=JSON.parse(JSON.stringify(J.tables));J.tables=[],H.tables.forEach(ot=>{const jt=ne.find($t=>$t.tableId===ot.tableId)||null;J.tables.push(jt||JSON.parse(JSON.stringify(ot)))}),I.push(J)}else I.push(JSON.parse(JSON.stringify(H)))}),{...z,pageSettings:I}})),Wc=(z,N)=>{if("payment-relayed"===z.type)if(N&&N.length>0)for(let I=0;I0)for(let J=0;J{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),z.outgoing?.forEach(ne=>{N[J].channelId?.toString()===ne.channelId&&(ne.channelAlias=N[J].alias?N[J].alias:ne.channelId,ne.shortChannelId=N[J].shortChannelId?N[J].shortChannelId:"")}),J===N.length-1&&(z.incoming&&z.incoming.length&&z.incoming.length>0&&!z.incoming[0].channelAlias&&z.incoming?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}),z.outgoing&&z.outgoing.length&&z.outgoing.length>0&&!z.outgoing[0].channelAlias&&z.outgoing?.forEach(ne=>{ne.channelAlias=ne.channelId?.substring(0,17)+"...",ne.shortChannelId=""}));else z.incoming?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""}),z.outgoing?.forEach(J=>{J.channelAlias=J.channelId?.substring(0,17)+"...",J.shortChannelId=""});const I=z.incoming?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountIn=Math.round(I/1e3),z.fromChannelId=z.incoming&&z.incoming.length?z.incoming[0].channelId:"",z.fromChannelAlias=z.incoming&&z.incoming.length?z.incoming[0].channelAlias:"",z.fromShortChannelId=z.incoming&&z.incoming.length?z.incoming[0].shortChannelId:"";const H=z.outgoing?.reduce((J,ne)=>J+ne.amount,0)||0;z.amountOut=Math.round(H/1e3),z.toChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].channelId:"",z.toChannelAlias=z.outgoing&&z.outgoing.length?z.outgoing[0].channelAlias:"",z.toShortChannelId=z.outgoing&&z.outgoing.length?z.outgoing[0].shortChannelId:""}return z};let Vd=!1;(0,A.naY)()&&(Vd=!0);let E3=(()=>{var z;class N{static#e=z=()=>(this.\u0275fac=function(J){return new(J||N)},this.\u0275mod=e.$C({type:N,bootstrap:[Gu]}),this.\u0275inj=p.G2t({providers:[(0,ns.$R)((0,ns.ZZ)(),(0,ns.Sx)()),tc({idle:Mt.bz-10,timeout:10,ping:12e3}),{provide:ns.a7,useClass:Hu,multi:!0},zi.Q,H0.u,ju.I,u1.Q,_o.h,sd],imports:[Eo,L1.G,Y0,hr.RH,P.fM,vi.md.forRoot({root:Ku,lnd:M3,cln:Ud,ecl:Qf},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),Vo.Vm.forRoot([Ko.H,x3.L,Wu.i,Xf.B]),Vd?Lr.instrument({connectInZone:!0}):[]]}))}return z(),N})();s().bootstrapModule(E3).catch(z=>console.error(z))},60426(ke,q){"use strict";function l(ce){return Object.keys(ce).map(Re=>ce[Re])}var ce;Object.defineProperty(q,"__esModule",{value:!0}),(ce=q.HashAlgorithms||(q.HashAlgorithms={})).SHA1="sha1",ce.SHA256="sha256",ce.SHA512="sha512";const i=l(q.HashAlgorithms);!function(ce){ce.ASCII="ascii",ce.BASE64="base64",ce.HEX="hex",ce.LATIN1="latin1",ce.UTF8="utf8"}(q.KeyEncodings||(q.KeyEncodings={}));const g=l(q.KeyEncodings);!function(ce){ce.HOTP="hotp",ce.TOTP="totp"}(q.Strategy||(q.Strategy={}));const p=l(q.Strategy),D=()=>{throw new Error("Please provide an options.createDigest implementation.")};function o(ce){return/^(\d+)$/.test(ce)}function e(ce,Re,Me){return ce.length>=Re?ce:`${Array(Re+1).join(Me)}${ce}`.slice(-1*Re)}function A(ce){const Re=`otpauth://${ce.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Me=[];if(p.indexOf(ce.type)<0)throw new Error(`Expecting options.type to be one of ${p.join(", ")}. Received ${ce.type}.`);if("hotp"===ce.type){if(null==ce.counter||"number"!=typeof ce.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Me.push(`&counter=${ce.counter}`)}return"totp"===ce.type&&ce.step&&Me.push(`&period=${ce.step}`),ce.digits&&Me.push(`&digits=${ce.digits}`),ce.algorithm&&Me.push(`&algorithm=${ce.algorithm.toUpperCase()}`),ce.issuer&&Me.push(`&issuer=${encodeURIComponent(ce.issuer)}`),Re.replace("{labelPrefix}",encodeURIComponent(ce.issuer||ce.accountName)).replace("{accountName}",encodeURIComponent(ce.accountName)).replace("{secret}",ce.secret).replace("{query}",Me.join(""))}class h{constructor(Re={}){this._defaultOptions=Object.freeze({...Re}),this._options=Object.freeze({})}create(Re={}){return new h(Re)}clone(Re={}){const Me=this.create({...this._defaultOptions,...Re});return Me.options=this._options,Me}get options(){return Object.freeze({...this._defaultOptions,...this._options})}set options(Re){this._options=Object.freeze({...this._options,...Re})}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function d(ce){if("function"!=typeof ce.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof ce.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof ce.digits)throw new Error("Expecting options.digits to be a number.");if(!ce.algorithm||i.indexOf(ce.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${i.join(", ")}. Received ${ce.algorithm}.`);if(!ce.encoding||g.indexOf(ce.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${g.join(", ")}. Received ${ce.encoding}.`)}const w=(ce,Re,Me)=>Buffer.from(Re,Me).toString("hex");function f(){return{algorithm:q.HashAlgorithms.SHA1,createHmacKey:w,createDigest:D,digits:6,encoding:q.KeyEncodings.ASCII}}function F(ce){const Re={...f(),...ce};return d(Re),Object.freeze(Re)}function M(ce){return e(ce.toString(16),16,"0")}function K(ce,Re){const Me=Buffer.from(ce,"hex"),ve=15&Me[Me.length-1],Se=((127&Me[ve])<<24|(255&Me[ve+1])<<16|(255&Me[ve+2])<<8|255&Me[ve+3])%Math.pow(10,Re);return e(String(Se),Re,"0")}function Z(ce,Re,Me){const ve=Me.digest||function j(ce,Re,Me){const ve=M(Re),oe=Me.createHmacKey(Me.algorithm,ce,Me.encoding);return Me.createDigest(Me.algorithm,oe,ve)}(ce,Re,Me);return K(ve,Me.digits)}function ee(ce,Re,Me,ve){return!!o(ce)&&ce===Z(Re,Me,ve)}function V(ce,Re,Me,ve,oe){return A({algorithm:oe.algorithm,digits:oe.digits,type:q.Strategy.HOTP,accountName:ce,counter:ve,issuer:Re,secret:Me})}class Q extends h{create(Re={}){return new Q(Re)}allOptions(){return F(this.options)}generate(Re,Me){return Z(Re,Me,this.allOptions())}check(Re,Me,ve){return ee(Re,Me,ve,this.allOptions())}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret,Re.counter)}keyuri(Re,Me,ve,oe){return V(Re,Me,ve,oe,this.allOptions())}}function $(ce){if("number"==typeof ce)return[Math.abs(ce),Math.abs(ce)];if(Array.isArray(ce)){const[Re,Me]=ce;if("number"==typeof Re&&"number"==typeof Me)return[Math.abs(Re),Math.abs(Me)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ie(ce){if(d(ce),$(ce.window),"number"!=typeof ce.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof ce.step)throw new Error("Expecting options.step to be a number.")}const _e=(ce,Re,Me)=>{const ve=ce.length,oe=Buffer.from(ce,Re).toString("hex");if(ve{switch(ce){case q.HashAlgorithms.SHA1:return _e(Re,Me,20);case q.HashAlgorithms.SHA256:return _e(Re,Me,32);case q.HashAlgorithms.SHA512:return _e(Re,Me,64);default:throw new Error(`Expecting algorithm to be one of ${i.join(", ")}. Received ${ce}.`)}};function se(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function pe(ce){const Re={...se(),...ce};return ie(Re),Object.freeze(Re)}function Ee(ce,Re){return Math.floor(ce/Re/1e3)}function L(ce,Re){return Z(ce,Ee(Re.epoch,Re.step),Re)}function t(ce,Re,Me,ve){const oe=[];if(0===ve)return oe;for(let Se=1;Se<=ve;Se++)oe.push(ce+Re*Se*Me);return oe}function s(ce,Re,Me){const ve=$(Me),oe=1e3*Re;return{current:ce,past:t(ce,-1,oe,ve[0]),future:t(ce,1,oe,ve[1])}}function m(ce,Re,Me){return!!o(ce)&&ce===L(Re,Me)}function u(ce,Re,Me,ve){let oe=null;return ce.some((Se,be)=>!!m(Re,Me,{...ve,epoch:Se})&&(oe=be+1,!0)),oe}function _(ce,Re,Me){if(m(ce,Re,Me))return 0;const ve=s(Me.epoch,Me.step,Me.window),oe=u(ve.past,ce,Re,Me);return null!==oe?-1*oe:u(ve.future,ce,Re,Me)}function T(ce,Re){return Math.floor(ce/1e3)%Re}function P(ce,Re){return Re-T(ce,Re)}function C(ce,Re,Me,ve){return A({algorithm:ve.algorithm,digits:ve.digits,step:ve.step,type:q.Strategy.TOTP,accountName:ce,issuer:Re,secret:Me})}class a extends Q{create(Re={}){return new a(Re)}allOptions(){return pe(this.options)}generate(Re){return L(Re,this.allOptions())}checkDelta(Re,Me){return _(Re,Me,this.allOptions())}check(Re,Me){return"number"==typeof this.checkDelta(Re,Me)}verify(Re){if("object"!=typeof Re)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Re.token,Re.secret)}timeRemaining(){const Re=this.allOptions();return P(Re.epoch,Re.step)}timeUsed(){const Re=this.allOptions();return T(Re.epoch,Re.step)}keyuri(Re,Me,ve){return C(Re,Me,ve,this.allOptions())}}function x(ce){if(ie(ce),"function"!=typeof ce.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(ce.keyEncoder&&"function"!=typeof ce.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function Y(){return{algorithm:q.HashAlgorithms.SHA1,createDigest:D,createHmacKey:ye,digits:6,encoding:q.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function R(ce){const Re={...Y(),...ce};return x(Re),Object.freeze(Re)}function U(ce,Re){return Re.keyEncoder(ce,Re.encoding)}function fe(ce,Re){return Re.keyDecoder(ce,Re.encoding)}function re(ce,Re){return U(Re.createRandomBytes(ce,Re.encoding),Re)}function he(ce,Re){return L(fe(ce,Re),Re)}function Oe(ce,Re,Me){return _(ce,fe(Re,Me),Me)}class ge extends a{create(Re={}){return new ge(Re)}allOptions(){return R(this.options)}generate(Re){return he(Re,this.allOptions())}checkDelta(Re,Me){return Oe(Re,Me,this.allOptions())}encode(Re){return U(Re,this.allOptions())}decode(Re){return fe(Re,this.allOptions())}generateSecret(Re=10){return re(Re,this.allOptions())}}q.Authenticator=ge,q.HASH_ALGORITHMS=i,q.HOTP=Q,q.KEY_ENCODINGS=g,q.OTP=h,q.STRATEGY=p,q.TOTP=a,q.authenticatorCheckWithWindow=Oe,q.authenticatorDecoder=fe,q.authenticatorDefaultOptions=Y,q.authenticatorEncoder=U,q.authenticatorGenerateSecret=re,q.authenticatorOptionValidator=x,q.authenticatorOptions=R,q.authenticatorToken=he,q.createDigestPlaceholder=D,q.hotpCheck=ee,q.hotpCounter=M,q.hotpCreateHmacKey=w,q.hotpDefaultOptions=f,q.hotpDigestToToken=K,q.hotpKeyuri=V,q.hotpOptions=F,q.hotpOptionsValidator=d,q.hotpToken=Z,q.isTokenValid=o,q.keyuri=A,q.objectValues=l,q.padStart=e,q.totpCheck=m,q.totpCheckByEpoch=u,q.totpCheckWithWindow=_,q.totpCounter=Ee,q.totpCreateHmacKey=ye,q.totpDefaultOptions=se,q.totpEpochAvailable=s,q.totpKeyuri=C,q.totpOptions=pe,q.totpOptionsValidator=ie,q.totpPadSecret=_e,q.totpTimeRemaining=P,q.totpTimeUsed=T,q.totpToken=L},97840(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(91426));q.createDigest=(o,e,A)=>g.createHmac(o,Buffer.from(e,"hex")).update(Buffer.from(A,"hex")).digest().toString("hex"),q.createRandomBytes=(o,e)=>g.randomBytes(o).toString(e)},15526(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var g=function i(o){return o&&"object"==typeof o&&"default"in o?o.default:o}(l(47851));q.keyDecoder=(o,e)=>g.decode(o).toString(e),q.keyEncoder=(o,e)=>g.encode(Buffer.from(o,e).toString("ascii")).toString().replace(/=/g,"")},94478(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(97840),g=l(15526),p=l(60426);const D=new p.HOTP({createDigest:i.createDigest}),o=new p.TOTP({createDigest:i.createDigest}),e=new p.Authenticator({createDigest:i.createDigest,createRandomBytes:i.createRandomBytes,keyDecoder:g.keyDecoder,keyEncoder:g.keyEncoder});q.authenticator=e,q.hotp=D,q.totp=o},49609(ke,q,l){var i=q;i.bignum=l(96867),i.define=l(16626).define,i.base=l(15066),i.constants=l(47740),i.decoders=l(91558),i.encoders=l(22714)},16626(ke,q,l){var i=l(49609),g=l(71993);function D(o,e){this.name=o,this.body=e,this.decoders={},this.encoders={}}q.define=function(e,A){return new D(e,A)},D.prototype._createNamed=function(e){var A;try{A=l(68326).runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch{A=function(d){this._initNamed(d)}}return g(A,e),A.prototype._initNamed=function(d){e.call(this,d)},new A(this)},D.prototype._getDecoder=function(e){return this.decoders.hasOwnProperty(e=e||"der")||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},D.prototype.decode=function(e,A,h){return this._getDecoder(A).decode(e,h)},D.prototype._getEncoder=function(e){return this.encoders.hasOwnProperty(e=e||"der")||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},D.prototype.encode=function(e,A,h){return this._getEncoder(A).encode(e,h)}},97290(ke,q,l){var i=l(71993),g=l(15066).Reporter,p=l(83838).Buffer;function D(e,A){g.call(this,A),p.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function o(e,A){if(Array.isArray(e))this.length=0,this.value=e.map(function(h){return h instanceof o||(h=new o(h,A)),this.length+=h.length,h},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return A.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=p.byteLength(e);else{if(!p.isBuffer(e))return A.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}i(D,g),q.t=D,D.prototype.save=function(){return{offset:this.offset,reporter:g.prototype.save.call(this)}},D.prototype.restore=function(A){var h=new D(this.base);return h.offset=A.offset,h.length=this.offset,this.offset=A.offset,g.prototype.restore.call(this,A.reporter),h},D.prototype.isEmpty=function(){return this.offset===this.length},D.prototype.readUInt8=function(A){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(A||"DecoderBuffer overrun")},D.prototype.skip=function(A,h){if(!(this.offset+A<=this.length))return this.error(h||"DecoderBuffer overrun");var d=new D(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+A,this.offset+=A,d},D.prototype.raw=function(A){return this.base.slice(A?A.offset:this.offset,this.length)},q.d=o,o.prototype.join=function(A,h){return A||(A=new p(this.length)),h||(h=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(d){d.join(A,h),h+=d.length}):("number"==typeof this.value?A[h]=this.value:"string"==typeof this.value?A.write(this.value,h):p.isBuffer(this.value)&&this.value.copy(A,h),h+=this.length)),A}},15066(ke,q,l){var i=q;i.Reporter=l(85697).a,i.DecoderBuffer=l(97290).t,i.EncoderBuffer=l(97290).d,i.Node=l(34320)},34320(ke,q,l){var i=l(15066).Reporter,g=l(15066).EncoderBuffer,p=l(15066).DecoderBuffer,D=l(39210),o=["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"],e=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function h(w,f){var F={};this._baseState=F,F.enc=w,F.parent=f||null,F.children=null,F.tag=null,F.args=null,F.reverseArgs=null,F.choice=null,F.optional=!1,F.any=!1,F.obj=!1,F.use=null,F.useDecoder=null,F.key=null,F.default=null,F.explicit=null,F.implicit=null,F.contains=null,F.parent||(F.children=[],this._wrap())}ke.exports=h;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){var f=this._baseState,F={};d.forEach(function(K){F[K]=f[K]});var M=new this.constructor(F.parent);return M._baseState=F,M},h.prototype._wrap=function(){var f=this._baseState;e.forEach(function(F){this[F]=function(){var K=new this.constructor(this);return f.children.push(K),K[F].apply(K,arguments)}},this)},h.prototype._init=function(f){var F=this._baseState;D(null===F.parent),f.call(this),F.children=F.children.filter(function(M){return M._baseState.parent===this},this),D.equal(F.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(f){var F=this._baseState,M=f.filter(function(K){return K instanceof this.constructor},this);f=f.filter(function(K){return!(K instanceof this.constructor)},this),0!==M.length&&(D(null===F.children),F.children=M,M.forEach(function(K){K._baseState.parent=this},this)),0!==f.length&&(D(null===F.args),F.args=f,F.reverseArgs=f.map(function(K){if("object"!=typeof K||K.constructor!==Object)return K;var j={};return Object.keys(K).forEach(function(Z){Z==(0|Z)&&(Z|=0),j[K[Z]]=Z}),j}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(w){h.prototype[w]=function(){throw new Error(w+" not implemented for encoding: "+this._baseState.enc)}}),o.forEach(function(w){h.prototype[w]=function(){var F=this._baseState,M=Array.prototype.slice.call(arguments);return D(null===F.tag),F.tag=w,this._useArgs(M),this}}),h.prototype.use=function(f){D(f);var F=this._baseState;return D(null===F.use),F.use=f,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(f){var F=this._baseState;return D(null===F.default),F.default=f,F.optional=!0,this},h.prototype.explicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.explicit=f,this},h.prototype.implicit=function(f){var F=this._baseState;return D(null===F.explicit&&null===F.implicit),F.implicit=f,this},h.prototype.obj=function(){var f=this._baseState,F=Array.prototype.slice.call(arguments);return f.obj=!0,0!==F.length&&this._useArgs(F),this},h.prototype.key=function(f){var F=this._baseState;return D(null===F.key),F.key=f,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(f){var F=this._baseState;return D(null===F.choice),F.choice=f,this._useArgs(Object.keys(f).map(function(M){return f[M]})),this},h.prototype.contains=function(f){var F=this._baseState;return D(null===F.use),F.contains=f,this},h.prototype._decode=function(f,F){var M=this._baseState;if(null===M.parent)return f.wrapResult(M.children[0]._decode(f,F));var Q,K=M.default,j=!0,Z=null;if(null!==M.key&&(Z=f.enterKey(M.key)),M.optional){var ee=null;if(null!==M.explicit?ee=M.explicit:null!==M.implicit?ee=M.implicit:null!==M.tag&&(ee=M.tag),null!==ee||M.any){if(j=this._peekTag(f,ee,M.any),f.isError(j))return j}else{var V=f.save();try{null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F),j=!0}catch{j=!1}f.restore(V)}}if(M.obj&&j&&(Q=f.enterObject()),j){if(null!==M.explicit){var $=this._decodeTag(f,M.explicit);if(f.isError($))return $;f=$}var ie=f.offset;if(null===M.use&&null===M.choice){M.any&&(V=f.save());var _e=this._decodeTag(f,null!==M.implicit?M.implicit:M.tag,M.any);if(f.isError(_e))return _e;M.any?K=f.raw(V):f=_e}if(F&&F.track&&null!==M.tag&&F.track(f.path(),ie,f.length,"tagged"),F&&F.track&&null!==M.tag&&F.track(f.path(),f.offset,f.length,"content"),M.any||(K=null===M.choice?this._decodeGeneric(M.tag,f,F):this._decodeChoice(f,F)),f.isError(K))return K;if(!M.any&&null===M.choice&&null!==M.children&&M.children.forEach(function(pe){pe._decode(f,F)}),M.contains&&("octstr"===M.tag||"bitstr"===M.tag)){var ye=new p(K);K=this._getUse(M.contains,f._reporterState.obj)._decode(ye,F)}}return M.obj&&j&&(K=f.leaveObject(Q)),null===M.key||null===K&&!0!==j?null!==Z&&f.exitKey(Z):f.leaveKey(Z,M.key,K),K},h.prototype._decodeGeneric=function(f,F,M){var K=this._baseState;return"seq"===f||"set"===f?null:"seqof"===f||"setof"===f?this._decodeList(F,f,K.args[0],M):/str$/.test(f)?this._decodeStr(F,f,M):"objid"===f&&K.args?this._decodeObjid(F,K.args[0],K.args[1],M):"objid"===f?this._decodeObjid(F,null,null,M):"gentime"===f||"utctime"===f?this._decodeTime(F,f,M):"null_"===f?this._decodeNull(F,M):"bool"===f?this._decodeBool(F,M):"objDesc"===f?this._decodeStr(F,f,M):"int"===f||"enum"===f?this._decodeInt(F,K.args&&K.args[0],M):null!==K.use?this._getUse(K.use,F._reporterState.obj)._decode(F,M):F.error("unknown tag: "+f)},h.prototype._getUse=function(f,F){var M=this._baseState;return M.useDecoder=this._use(f,F),D(null===M.useDecoder._baseState.parent),M.useDecoder=M.useDecoder._baseState.children[0],M.implicit!==M.useDecoder._baseState.implicit&&(M.useDecoder=M.useDecoder.clone(),M.useDecoder._baseState.implicit=M.implicit),M.useDecoder},h.prototype._decodeChoice=function(f,F){var M=this._baseState,K=null,j=!1;return Object.keys(M.choice).some(function(Z){var ee=f.save(),V=M.choice[Z];try{var Q=V._decode(f,F);if(f.isError(Q))return!1;K={type:Z,value:Q},j=!0}catch{return f.restore(ee),!1}return!0},this),j?K:f.error("Choice not matched")},h.prototype._createEncoderBuffer=function(f){return new g(f,this.reporter)},h.prototype._encode=function(f,F,M){var K=this._baseState;if(null===K.default||K.default!==f){var j=this._encodeValue(f,F,M);if(void 0!==j&&!this._skipDefault(j,F,M))return j}},h.prototype._encodeValue=function(f,F,M){var K=this._baseState;if(null===K.parent)return K.children[0]._encode(f,F||new i);var V=null;if(this.reporter=F,K.optional&&void 0===f){if(null===K.default)return;f=K.default}var j=null,Z=!1;if(K.any)V=this._createEncoderBuffer(f);else if(K.choice)V=this._encodeChoice(f,F);else if(K.contains)j=this._getUse(K.contains,M)._encode(f,F),Z=!0;else if(K.children)j=K.children.map(function(ie){if("null_"===ie._baseState.tag)return ie._encode(null,F,f);if(null===ie._baseState.key)return F.error("Child should have a key");var _e=F.enterKey(ie._baseState.key);if("object"!=typeof f)return F.error("Child expected, but input is not object");var ye=ie._encode(f[ie._baseState.key],F,f);return F.leaveKey(_e),ye},this).filter(function(ie){return ie}),j=this._createEncoderBuffer(j);else if("seqof"===K.tag||"setof"===K.tag){if(!K.args||1!==K.args.length)return F.error("Too many args for : "+K.tag);if(!Array.isArray(f))return F.error("seqof/setof, but data is not Array");var ee=this.clone();ee._baseState.implicit=null,j=this._createEncoderBuffer(f.map(function(ie){return this._getUse(this._baseState.args[0],f)._encode(ie,F)},ee))}else null!==K.use?V=this._getUse(K.use,M)._encode(f,F):(j=this._encodePrimitive(K.tag,f),Z=!0);if(!K.any&&null===K.choice){var Q=null!==K.implicit?K.implicit:K.tag,$=null===K.implicit?"universal":"context";null===Q?null===K.use&&F.error("Tag could be omitted only for .use()"):null===K.use&&(V=this._encodeComposite(Q,Z,$,j))}return null!==K.explicit&&(V=this._encodeComposite(K.explicit,!1,"context",V)),V},h.prototype._encodeChoice=function(f,F){var M=this._baseState,K=M.choice[f.type];return K||D(!1,f.type+" not found in "+JSON.stringify(Object.keys(M.choice))),K._encode(f.value,F)},h.prototype._encodePrimitive=function(f,F){var M=this._baseState;if(/str$/.test(f))return this._encodeStr(F,f);if("objid"===f&&M.args)return this._encodeObjid(F,M.reverseArgs[0],M.args[1]);if("objid"===f)return this._encodeObjid(F,null,null);if("gentime"===f||"utctime"===f)return this._encodeTime(F,f);if("null_"===f)return this._encodeNull();if("int"===f||"enum"===f)return this._encodeInt(F,M.args&&M.reverseArgs[0]);if("bool"===f)return this._encodeBool(F);if("objDesc"===f)return this._encodeStr(F,f);throw new Error("Unsupported tag: "+f)},h.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},h.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(f)}},85697(ke,q,l){var i=l(71993);function g(D){this._reporterState={obj:null,path:[],options:D||{},errors:[]}}function p(D,o){this.path=D,this.rethrow(o)}q.a=g,g.prototype.isError=function(o){return o instanceof p},g.prototype.save=function(){var o=this._reporterState;return{obj:o.obj,pathLen:o.path.length}},g.prototype.restore=function(o){var e=this._reporterState;e.obj=o.obj,e.path=e.path.slice(0,o.pathLen)},g.prototype.enterKey=function(o){return this._reporterState.path.push(o)},g.prototype.exitKey=function(o){var e=this._reporterState;e.path=e.path.slice(0,o-1)},g.prototype.leaveKey=function(o,e,A){var h=this._reporterState;this.exitKey(o),null!==h.obj&&(h.obj[e]=A)},g.prototype.path=function(){return this._reporterState.path.join("/")},g.prototype.enterObject=function(){var o=this._reporterState,e=o.obj;return o.obj={},e},g.prototype.leaveObject=function(o){var e=this._reporterState,A=e.obj;return e.obj=o,A},g.prototype.error=function(o){var e,A=this._reporterState,h=o instanceof p;if(e=h?o:new p(A.path.map(function(d){return"["+JSON.stringify(d)+"]"}).join(""),o.message||o,o.stack),!A.options.partial)throw e;return h||A.errors.push(e),e},g.prototype.wrapResult=function(o){var e=this._reporterState;return e.options.partial?{result:this.isError(o)?null:o,errors:e.errors}:o},i(p,Error),p.prototype.rethrow=function(o){if(this.message=o+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,p),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},36283(ke,q,l){var i=l(47740);q.tagClass={0:"universal",1:"application",2:"context",3:"private"},q.tagClassByName=i._reverse(q.tagClass),q.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"},q.tagByName=i._reverse(q.tag)},47740(ke,q,l){var i=q;i._reverse=function(p){var D={};return Object.keys(p).forEach(function(o){(0|o)==o&&(o|=0),D[p[o]]=o}),D},i.der=l(36283)},55941(ke,q,l){var i=l(71993),g=l(49609),p=g.base,D=g.bignum,o=g.constants.der;function e(w){this.enc="der",this.name=w.name,this.entity=w,this.tree=new A,this.tree._init(w.body)}function A(w){p.Node.call(this,"der",w)}function h(w,f){var F=w.readUInt8(f);if(w.isError(F))return F;var M=o.tagClass[F>>6],K=!(32&F);if(31&~F)F&=31;else{var j=F;for(F=0;!(128&~j);){if(j=w.readUInt8(f),w.isError(j))return j;F<<=7,F|=127&j}}return{cls:M,primitive:K,tag:F,tagStr:o.tag[F]}}function d(w,f,F){var M=w.readUInt8(F);if(w.isError(M))return M;if(!f&&128===M)return null;if(!(128&M))return M;var K=127&M;if(K>4)return w.error("length octect is too long");M=0;for(var j=0;j=31?M.error("Multi-octet tag encoding unsupported"):(f||(K|=32),K|=o.tagClassByName[F||"universal"]<<6)}(f,F,M,this.reporter);if(K.length<128)return(V=new g(2))[0]=j,V[1]=K.length,this._createEncoderBuffer([V,K]);for(var Z=1,ee=K.length;ee>=256;ee>>=8)Z++;(V=new g(2+Z))[0]=j,V[1]=128|Z,ee=1+Z;for(var Q=K.length;Q>0;ee--,Q>>=8)V[ee]=255&Q;return this._createEncoderBuffer([V,K])},A.prototype._encodeStr=function(f,F){if("bitstr"===F)return this._createEncoderBuffer([0|f.unused,f.data]);if("bmpstr"===F){for(var M=new g(2*f.length),K=0;K=40)return this.reporter.error("Second objid identifier OOB");f.splice(0,2,40*f[0]+f[1])}var j=0;for(K=0;K=128;Z>>=7)j++}var ee=new g(j),V=ee.length-1;for(K=f.length-1;K>=0;K--)for(ee[V--]=127&(Z=f[K]);(Z>>=7)>0;)ee[V--]=128|127&Z;return this._createEncoderBuffer(ee)},A.prototype._encodeTime=function(f,F){var M,K=new Date(f);return"gentime"===F?M=[h(K.getFullYear()),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):"utctime"===F?M=[h(K.getFullYear()%100),h(K.getUTCMonth()+1),h(K.getUTCDate()),h(K.getUTCHours()),h(K.getUTCMinutes()),h(K.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+F+" time is not supported yet"),this._encodeStr(M,"octstr")},A.prototype._encodeNull=function(){return this._createEncoderBuffer("")},A.prototype._encodeInt=function(f,F){if("string"==typeof f){if(!F)return this.reporter.error("String int or enum given, but no values map");if(!F.hasOwnProperty(f))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(f));f=F[f]}if("number"!=typeof f&&!g.isBuffer(f)){var M=f.toArray();!f.sign&&128&M[0]&&M.unshift(0),f=new g(M)}if(g.isBuffer(f)){var K=f.length;0===f.length&&K++;var Z=new g(K);return f.copy(Z),0===f.length&&(Z[0]=0),this._createEncoderBuffer(Z)}if(f<128)return this._createEncoderBuffer(f);if(f<256)return this._createEncoderBuffer([0,f]);K=1;for(var j=f;j>=256;j>>=8)K++;for(j=(Z=new Array(K)).length-1;j>=0;j--)Z[j]=255&f,f>>=8;return 128&Z[0]&&Z.unshift(0),this._createEncoderBuffer(new g(Z))},A.prototype._encodeBool=function(f){return this._createEncoderBuffer(f?255:0)},A.prototype._use=function(f,F){return"function"==typeof f&&(f=f(F)),f._getEncoder("der").tree},A.prototype._skipDefault=function(f,F,M){var j,K=this._baseState;if(null===K.default)return!1;var Z=f.join();if(void 0===K.defaultBuffer&&(K.defaultBuffer=this._encodeValue(K.default,F,M).join()),Z.length!==K.defaultBuffer.length)return!1;for(j=0;j=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},13981(ke,q){"use strict";q.byteLength=function A(M){var K=e(M),Z=K[1];return 3*(K[0]+Z)/4-Z},q.toByteArray=function d(M){var K,ie,j=e(M),Z=j[0],ee=j[1],V=new g(function h(M,K,j){return 3*(K+j)/4-j}(0,Z,ee)),Q=0,$=ee>0?Z-4:Z;for(ie=0;ie<$;ie+=4)K=i[M.charCodeAt(ie)]<<18|i[M.charCodeAt(ie+1)]<<12|i[M.charCodeAt(ie+2)]<<6|i[M.charCodeAt(ie+3)],V[Q++]=K>>16&255,V[Q++]=K>>8&255,V[Q++]=255&K;return 2===ee&&(K=i[M.charCodeAt(ie)]<<2|i[M.charCodeAt(ie+1)]>>4,V[Q++]=255&K),1===ee&&(K=i[M.charCodeAt(ie)]<<10|i[M.charCodeAt(ie+1)]<<4|i[M.charCodeAt(ie+2)]>>2,V[Q++]=K>>8&255,V[Q++]=255&K),V},q.fromByteArray=function F(M){for(var K,j=M.length,Z=j%3,ee=[],V=16383,Q=0,$=j-Z;Q<$;Q+=V)ee.push(f(M,Q,Q+V>$?$:Q+V));return 1===Z?ee.push(l[(K=M[j-1])>>2]+l[K<<4&63]+"=="):2===Z&&ee.push(l[(K=(M[j-2]<<8)+M[j-1])>>10]+l[K>>4&63]+l[K<<2&63]+"="),ee.join("")};for(var l=[],i=[],g=typeof Uint8Array<"u"?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D=0;D<64;++D)l[D]=p[D],i[p.charCodeAt(D)]=D;function e(M){var K=M.length;if(K%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var j=M.indexOf("=");return-1===j&&(j=K),[j,j===K?0:4-j%4]}function w(M){return l[M>>18&63]+l[M>>12&63]+l[M>>6&63]+l[63&M]}function f(M,K,j){for(var ee=[],V=K;V=48&&_<=57?_-48:_>=65&&_<=70?_-55:_>=97&&_<=102?_-87:void p(!1,"Invalid character in "+m)}function h(m,u,_){var T=A(m,_);return _-1>=u&&(T|=A(m,_-1)<<4),T}function d(m,u,_,T){for(var P=0,C=0,a=Math.min(m.length,_),x=u;x=49?Y-49+10:Y>=17?Y-17+10:Y,p(Y>=0&&C0?u:_},o.min=function(u,_){return u.cmp(_)<0?u:_},o.prototype._init=function(u,_,T){if("number"==typeof u)return this._initNumber(u,_,T);if("object"==typeof u)return this._initArray(u,_,T);"hex"===_&&(_=16),p(_===(0|_)&&_>=2&&_<=36);var P=0;"-"===(u=u.toString().replace(/\s+/g,""))[0]&&(P++,this.negative=1),P=0;P-=3)this.words[C]|=(a=u[P]|u[P-1]<<8|u[P-2]<<16)<>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);else if("le"===T)for(P=0,C=0;P>>26-x&67108863,(x+=24)>=26&&(x-=26,C++);return this._strip()},o.prototype._parseHex=function(u,_,T){this.length=Math.ceil((u.length-_)/6),this.words=new Array(this.length);for(var P=0;P=_;P-=2)x=h(u,_,P)<=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;else for(P=(u.length-_)%2==0?_+1:_;P=18?(C-=18,this.words[a+=1]|=x>>>26):C+=8;this._strip()},o.prototype._parseBase=function(u,_,T){this.words=[0],this.length=1;for(var P=0,C=1;C<=67108863;C*=_)P++;P--,C=C/_|0;for(var a=u.length-T,x=a%P,Y=Math.min(a,a-x)+T,R=0,U=T;U1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},typeof Symbol<"u"&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch{o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?""}var F=["","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"],M=[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],K=[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 ee(m,u,_){_.negative=u.negative^m.negative;var T=m.length+u.length|0;_.length=T,T=T-1|0;var P=0|m.words[0],C=0|u.words[0],a=P*C,Y=a/67108864|0;_.words[0]=67108863&a;for(var R=1;R>>26,fe=67108863&Y,re=Math.min(R,u.length-1),he=Math.max(0,R-m.length+1);he<=re;he++)U+=(a=(P=0|m.words[R-he|0])*(C=0|u.words[he])+fe)/67108864|0,fe=67108863&a;_.words[R]=0|fe,Y=0|U}return 0!==Y?_.words[R]=0|Y:_.length--,_._strip()}o.prototype.toString=function(u,_){var T;if(_=0|_||1,16===(u=u||10)||"hex"===u){T="";for(var P=0,C=0,a=0;a>>24-P&16777215,(P+=2)>=26&&(P-=26,a--),T=0!==C||a!==this.length-1?F[6-Y.length]+Y+T:Y+T}for(0!==C&&(T=C.toString(16)+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(u===(0|u)&&u>=2&&u<=36){var R=M[u],U=K[u];T="";var fe=this.clone();for(fe.negative=0;!fe.isZero();){var re=fe.modrn(U).toString(u);T=(fe=fe.idivn(U)).isZero()?re+T:F[R-re.length]+re+T}for(this.isZero()&&(T="0"+T);T.length%_!==0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var u=this.words[0];return 2===this.length?u+=67108864*this.words[1]:3===this.length&&1===this.words[2]?u+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-u:u},o.prototype.toJSON=function(){return this.toString(16,2)},e&&(o.prototype.toBuffer=function(u,_){return this.toArrayLike(e,u,_)}),o.prototype.toArray=function(u,_){return this.toArrayLike(Array,u,_)},o.prototype.toArrayLike=function(u,_,T){this._strip();var P=this.byteLength(),C=T||Math.max(1,P);p(P<=C,"byte array longer than desired length"),p(C>0,"Requested array length <= 0");var a=function(u,_){return u.allocUnsafe?u.allocUnsafe(_):new u(_)}(u,C);return this["_toArrayLike"+("le"===_?"LE":"BE")](a,P),a},o.prototype._toArrayLikeLE=function(u,_){for(var T=0,P=0,C=0,a=0;C>8&255),T>16&255),6===a?(T>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T=0&&(u[T--]=x>>8&255),T>=0&&(u[T--]=x>>16&255),6===a?(T>=0&&(u[T--]=x>>24&255),P=0,a=0):(P=x>>>24,a+=2)}if(T>=0)for(u[T--]=P;T>=0;)u[T--]=0},o.prototype._countBits=Math.clz32?function(u){return 32-Math.clz32(u)}:function(u){var _=u,T=0;return _>=4096&&(T+=13,_>>>=13),_>=64&&(T+=7,_>>>=7),_>=8&&(T+=4,_>>>=4),_>=2&&(T+=2,_>>>=2),T+_},o.prototype._zeroBits=function(u){if(0===u)return 26;var _=u,T=0;return!(8191&_)&&(T+=13,_>>>=13),!(127&_)&&(T+=7,_>>>=7),!(15&_)&&(T+=4,_>>>=4),!(3&_)&&(T+=2,_>>>=2),!(1&_)&&T++,T},o.prototype.bitLength=function(){var _=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+_},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var u=0,_=0;_u.length?this.clone().ior(u):u.clone().ior(this)},o.prototype.uor=function(u){return this.length>u.length?this.clone().iuor(u):u.clone().iuor(this)},o.prototype.iuand=function(u){var _;_=this.length>u.length?u:this;for(var T=0;T<_.length;T++)this.words[T]=this.words[T]&u.words[T];return this.length=_.length,this._strip()},o.prototype.iand=function(u){return p(0===(this.negative|u.negative)),this.iuand(u)},o.prototype.and=function(u){return this.length>u.length?this.clone().iand(u):u.clone().iand(this)},o.prototype.uand=function(u){return this.length>u.length?this.clone().iuand(u):u.clone().iuand(this)},o.prototype.iuxor=function(u){var _,T;this.length>u.length?(_=this,T=u):(_=u,T=this);for(var P=0;Pu.length?this.clone().ixor(u):u.clone().ixor(this)},o.prototype.uxor=function(u){return this.length>u.length?this.clone().iuxor(u):u.clone().iuxor(this)},o.prototype.inotn=function(u){p("number"==typeof u&&u>=0);var _=0|Math.ceil(u/26),T=u%26;this._expand(_),T>0&&_--;for(var P=0;P<_;P++)this.words[P]=67108863&~this.words[P];for(T>0&&(this.words[P]=~this.words[P]&67108863>>26-T,P++);P=0);var T=u/26|0,P=u%26;return this._expand(T+1),this.words[T]=_?this.words[T]|1<u.length?(T=this,P=u):(T=u,P=this);for(var C=0,a=0;a>>26;for(;0!==C&&a>>26;if(this.length=T.length,0!==C)this.words[this.length]=C,this.length++;else if(T!==this)for(;au.length?this.clone().iadd(u):u.clone().iadd(this)},o.prototype.isub=function(u){if(0!==u.negative){u.negative=0;var _=this.iadd(u);return u.negative=1,_._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(u),this.negative=1,this._normSign();var P,C,T=this.cmp(u);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(P=this,C=u):(P=u,C=this);for(var a=0,x=0;x>26,this.words[x]=67108863&_;for(;0!==a&&x>26,this.words[x]=67108863&_;if(0===a&&x>>13,Oe=0|P[1],ge=8191&Oe,ce=Oe>>>13,Re=0|P[2],Me=8191&Re,ve=Re>>>13,oe=0|P[3],Se=8191&oe,be=oe>>>13,nt=0|P[4],$e=8191&nt,dt=nt>>>13,yt=0|P[5],Et=8191&yt,rt=yt>>>13,Mn=0|P[6],qt=8191&Mn,S=Mn>>>13,Xt=0|P[7],de=8191&Xt,ae=Xt>>>13,me=0|P[8],Le=8191&me,et=me>>>13,tn=0|P[9],Vt=8191&tn,hn=tn>>>13,En=0|C[0],_n=8191&En,tt=En>>>13,Fe=0|C[1],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|C[2],Ie=8191&Qe,le=Qe>>>13,Ne=0|C[3],ze=8191&Ne,Je=Ne>>>13,gt=0|C[4],zt=8191>,Ye=gt>>>13,st=0|C[5],it=8191&st,He=st>>>13,Wt=0|C[6],we=8191&Wt,We=Wt>>>13,Lt=0|C[7],St=8191&Lt,At=Lt>>>13,fn=0|C[8],mt=8191&fn,It=fn>>>13,wn=0|C[9],In=8191&wn,ei=wn>>>13;T.negative=u.negative^_.negative,T.length=19;var Li=(x+(Y=Math.imul(re,_n))|0)+((8191&(R=(R=Math.imul(re,tt))+Math.imul(he,_n)|0))<<13)|0;x=((U=Math.imul(he,tt))+(R>>>13)|0)+(Li>>>26)|0,Li&=67108863,Y=Math.imul(ge,_n),R=(R=Math.imul(ge,tt))+Math.imul(ce,_n)|0,U=Math.imul(ce,tt);var kt=(x+(Y=Y+Math.imul(re,Pe)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0))<<13)|0;x=((U=U+Math.imul(he,Ue)|0)+(R>>>13)|0)+(kt>>>26)|0,kt&=67108863,Y=Math.imul(Me,_n),R=(R=Math.imul(Me,tt))+Math.imul(ve,_n)|0,U=Math.imul(ve,tt),Y=Y+Math.imul(ge,Pe)|0,R=(R=R+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,U=U+Math.imul(ce,Ue)|0;var Ot=(x+(Y=Y+Math.imul(re,Ie)|0)|0)+((8191&(R=(R=R+Math.imul(re,le)|0)+Math.imul(he,Ie)|0))<<13)|0;x=((U=U+Math.imul(he,le)|0)+(R>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,Y=Math.imul(Se,_n),R=(R=Math.imul(Se,tt))+Math.imul(be,_n)|0,U=Math.imul(be,tt),Y=Y+Math.imul(Me,Pe)|0,R=(R=R+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,U=U+Math.imul(ve,Ue)|0,Y=Y+Math.imul(ge,Ie)|0,R=(R=R+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,U=U+Math.imul(ce,le)|0;var Ze=(x+(Y=Y+Math.imul(re,ze)|0)|0)+((8191&(R=(R=R+Math.imul(re,Je)|0)+Math.imul(he,ze)|0))<<13)|0;x=((U=U+Math.imul(he,Je)|0)+(R>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,Y=Math.imul($e,_n),R=(R=Math.imul($e,tt))+Math.imul(dt,_n)|0,U=Math.imul(dt,tt),Y=Y+Math.imul(Se,Pe)|0,R=(R=R+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,U=U+Math.imul(be,Ue)|0,Y=Y+Math.imul(Me,Ie)|0,R=(R=R+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,U=U+Math.imul(ve,le)|0,Y=Y+Math.imul(ge,ze)|0,R=(R=R+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,U=U+Math.imul(ce,Je)|0;var Ge=(x+(Y=Y+Math.imul(re,zt)|0)|0)+((8191&(R=(R=R+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0))<<13)|0;x=((U=U+Math.imul(he,Ye)|0)+(R>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,Y=Math.imul(Et,_n),R=(R=Math.imul(Et,tt))+Math.imul(rt,_n)|0,U=Math.imul(rt,tt),Y=Y+Math.imul($e,Pe)|0,R=(R=R+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,U=U+Math.imul(dt,Ue)|0,Y=Y+Math.imul(Se,Ie)|0,R=(R=R+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,U=U+Math.imul(be,le)|0,Y=Y+Math.imul(Me,ze)|0,R=(R=R+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,U=U+Math.imul(ve,Je)|0,Y=Y+Math.imul(ge,zt)|0,R=(R=R+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,U=U+Math.imul(ce,Ye)|0;var Pt=(x+(Y=Y+Math.imul(re,it)|0)|0)+((8191&(R=(R=R+Math.imul(re,He)|0)+Math.imul(he,it)|0))<<13)|0;x=((U=U+Math.imul(he,He)|0)+(R>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,Y=Math.imul(qt,_n),R=(R=Math.imul(qt,tt))+Math.imul(S,_n)|0,U=Math.imul(S,tt),Y=Y+Math.imul(Et,Pe)|0,R=(R=R+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,U=U+Math.imul(rt,Ue)|0,Y=Y+Math.imul($e,Ie)|0,R=(R=R+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,U=U+Math.imul(dt,le)|0,Y=Y+Math.imul(Se,ze)|0,R=(R=R+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,U=U+Math.imul(be,Je)|0,Y=Y+Math.imul(Me,zt)|0,R=(R=R+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,U=U+Math.imul(ve,Ye)|0,Y=Y+Math.imul(ge,it)|0,R=(R=R+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,U=U+Math.imul(ce,He)|0;var Yt=(x+(Y=Y+Math.imul(re,we)|0)|0)+((8191&(R=(R=R+Math.imul(re,We)|0)+Math.imul(he,we)|0))<<13)|0;x=((U=U+Math.imul(he,We)|0)+(R>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,Y=Math.imul(de,_n),R=(R=Math.imul(de,tt))+Math.imul(ae,_n)|0,U=Math.imul(ae,tt),Y=Y+Math.imul(qt,Pe)|0,R=(R=R+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,U=U+Math.imul(S,Ue)|0,Y=Y+Math.imul(Et,Ie)|0,R=(R=R+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,U=U+Math.imul(rt,le)|0,Y=Y+Math.imul($e,ze)|0,R=(R=R+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,U=U+Math.imul(dt,Je)|0,Y=Y+Math.imul(Se,zt)|0,R=(R=R+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,U=U+Math.imul(be,Ye)|0,Y=Y+Math.imul(Me,it)|0,R=(R=R+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,U=U+Math.imul(ve,He)|0,Y=Y+Math.imul(ge,we)|0,R=(R=R+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,U=U+Math.imul(ce,We)|0;var bn=(x+(Y=Y+Math.imul(re,St)|0)|0)+((8191&(R=(R=R+Math.imul(re,At)|0)+Math.imul(he,St)|0))<<13)|0;x=((U=U+Math.imul(he,At)|0)+(R>>>13)|0)+(bn>>>26)|0,bn&=67108863,Y=Math.imul(Le,_n),R=(R=Math.imul(Le,tt))+Math.imul(et,_n)|0,U=Math.imul(et,tt),Y=Y+Math.imul(de,Pe)|0,R=(R=R+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,U=U+Math.imul(ae,Ue)|0,Y=Y+Math.imul(qt,Ie)|0,R=(R=R+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,U=U+Math.imul(S,le)|0,Y=Y+Math.imul(Et,ze)|0,R=(R=R+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,U=U+Math.imul(rt,Je)|0,Y=Y+Math.imul($e,zt)|0,R=(R=R+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,U=U+Math.imul(dt,Ye)|0,Y=Y+Math.imul(Se,it)|0,R=(R=R+Math.imul(Se,He)|0)+Math.imul(be,it)|0,U=U+Math.imul(be,He)|0,Y=Y+Math.imul(Me,we)|0,R=(R=R+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,U=U+Math.imul(ve,We)|0,Y=Y+Math.imul(ge,St)|0,R=(R=R+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,U=U+Math.imul(ce,At)|0;var Zn=(x+(Y=Y+Math.imul(re,mt)|0)|0)+((8191&(R=(R=R+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;x=((U=U+Math.imul(he,It)|0)+(R>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,Y=Math.imul(Vt,_n),R=(R=Math.imul(Vt,tt))+Math.imul(hn,_n)|0,U=Math.imul(hn,tt),Y=Y+Math.imul(Le,Pe)|0,R=(R=R+Math.imul(Le,Ue)|0)+Math.imul(et,Pe)|0,U=U+Math.imul(et,Ue)|0,Y=Y+Math.imul(de,Ie)|0,R=(R=R+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,U=U+Math.imul(ae,le)|0,Y=Y+Math.imul(qt,ze)|0,R=(R=R+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,U=U+Math.imul(S,Je)|0,Y=Y+Math.imul(Et,zt)|0,R=(R=R+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,U=U+Math.imul(rt,Ye)|0,Y=Y+Math.imul($e,it)|0,R=(R=R+Math.imul($e,He)|0)+Math.imul(dt,it)|0,U=U+Math.imul(dt,He)|0,Y=Y+Math.imul(Se,we)|0,R=(R=R+Math.imul(Se,We)|0)+Math.imul(be,we)|0,U=U+Math.imul(be,We)|0,Y=Y+Math.imul(Me,St)|0,R=(R=R+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,U=U+Math.imul(ve,At)|0,Y=Y+Math.imul(ge,mt)|0,R=(R=R+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0,U=U+Math.imul(ce,It)|0;var oi=(x+(Y=Y+Math.imul(re,In)|0)|0)+((8191&(R=(R=R+Math.imul(re,ei)|0)+Math.imul(he,In)|0))<<13)|0;x=((U=U+Math.imul(he,ei)|0)+(R>>>13)|0)+(oi>>>26)|0,oi&=67108863,Y=Math.imul(Vt,Pe),R=(R=Math.imul(Vt,Ue))+Math.imul(hn,Pe)|0,U=Math.imul(hn,Ue),Y=Y+Math.imul(Le,Ie)|0,R=(R=R+Math.imul(Le,le)|0)+Math.imul(et,Ie)|0,U=U+Math.imul(et,le)|0,Y=Y+Math.imul(de,ze)|0,R=(R=R+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,U=U+Math.imul(ae,Je)|0,Y=Y+Math.imul(qt,zt)|0,R=(R=R+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,U=U+Math.imul(S,Ye)|0,Y=Y+Math.imul(Et,it)|0,R=(R=R+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,U=U+Math.imul(rt,He)|0,Y=Y+Math.imul($e,we)|0,R=(R=R+Math.imul($e,We)|0)+Math.imul(dt,we)|0,U=U+Math.imul(dt,We)|0,Y=Y+Math.imul(Se,St)|0,R=(R=R+Math.imul(Se,At)|0)+Math.imul(be,St)|0,U=U+Math.imul(be,At)|0,Y=Y+Math.imul(Me,mt)|0,R=(R=R+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0,U=U+Math.imul(ve,It)|0;var Ii=(x+(Y=Y+Math.imul(ge,In)|0)|0)+((8191&(R=(R=R+Math.imul(ge,ei)|0)+Math.imul(ce,In)|0))<<13)|0;x=((U=U+Math.imul(ce,ei)|0)+(R>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,Y=Math.imul(Vt,Ie),R=(R=Math.imul(Vt,le))+Math.imul(hn,Ie)|0,U=Math.imul(hn,le),Y=Y+Math.imul(Le,ze)|0,R=(R=R+Math.imul(Le,Je)|0)+Math.imul(et,ze)|0,U=U+Math.imul(et,Je)|0,Y=Y+Math.imul(de,zt)|0,R=(R=R+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,U=U+Math.imul(ae,Ye)|0,Y=Y+Math.imul(qt,it)|0,R=(R=R+Math.imul(qt,He)|0)+Math.imul(S,it)|0,U=U+Math.imul(S,He)|0,Y=Y+Math.imul(Et,we)|0,R=(R=R+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,U=U+Math.imul(rt,We)|0,Y=Y+Math.imul($e,St)|0,R=(R=R+Math.imul($e,At)|0)+Math.imul(dt,St)|0,U=U+Math.imul(dt,At)|0,Y=Y+Math.imul(Se,mt)|0,R=(R=R+Math.imul(Se,It)|0)+Math.imul(be,mt)|0,U=U+Math.imul(be,It)|0;var Ei=(x+(Y=Y+Math.imul(Me,In)|0)|0)+((8191&(R=(R=R+Math.imul(Me,ei)|0)+Math.imul(ve,In)|0))<<13)|0;x=((U=U+Math.imul(ve,ei)|0)+(R>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,Y=Math.imul(Vt,ze),R=(R=Math.imul(Vt,Je))+Math.imul(hn,ze)|0,U=Math.imul(hn,Je),Y=Y+Math.imul(Le,zt)|0,R=(R=R+Math.imul(Le,Ye)|0)+Math.imul(et,zt)|0,U=U+Math.imul(et,Ye)|0,Y=Y+Math.imul(de,it)|0,R=(R=R+Math.imul(de,He)|0)+Math.imul(ae,it)|0,U=U+Math.imul(ae,He)|0,Y=Y+Math.imul(qt,we)|0,R=(R=R+Math.imul(qt,We)|0)+Math.imul(S,we)|0,U=U+Math.imul(S,We)|0,Y=Y+Math.imul(Et,St)|0,R=(R=R+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,U=U+Math.imul(rt,At)|0,Y=Y+Math.imul($e,mt)|0,R=(R=R+Math.imul($e,It)|0)+Math.imul(dt,mt)|0,U=U+Math.imul(dt,It)|0;var Nt=(x+(Y=Y+Math.imul(Se,In)|0)|0)+((8191&(R=(R=R+Math.imul(Se,ei)|0)+Math.imul(be,In)|0))<<13)|0;x=((U=U+Math.imul(be,ei)|0)+(R>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,Y=Math.imul(Vt,zt),R=(R=Math.imul(Vt,Ye))+Math.imul(hn,zt)|0,U=Math.imul(hn,Ye),Y=Y+Math.imul(Le,it)|0,R=(R=R+Math.imul(Le,He)|0)+Math.imul(et,it)|0,U=U+Math.imul(et,He)|0,Y=Y+Math.imul(de,we)|0,R=(R=R+Math.imul(de,We)|0)+Math.imul(ae,we)|0,U=U+Math.imul(ae,We)|0,Y=Y+Math.imul(qt,St)|0,R=(R=R+Math.imul(qt,At)|0)+Math.imul(S,St)|0,U=U+Math.imul(S,At)|0,Y=Y+Math.imul(Et,mt)|0,R=(R=R+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0,U=U+Math.imul(rt,It)|0;var nn=(x+(Y=Y+Math.imul($e,In)|0)|0)+((8191&(R=(R=R+Math.imul($e,ei)|0)+Math.imul(dt,In)|0))<<13)|0;x=((U=U+Math.imul(dt,ei)|0)+(R>>>13)|0)+(nn>>>26)|0,nn&=67108863,Y=Math.imul(Vt,it),R=(R=Math.imul(Vt,He))+Math.imul(hn,it)|0,U=Math.imul(hn,He),Y=Y+Math.imul(Le,we)|0,R=(R=R+Math.imul(Le,We)|0)+Math.imul(et,we)|0,U=U+Math.imul(et,We)|0,Y=Y+Math.imul(de,St)|0,R=(R=R+Math.imul(de,At)|0)+Math.imul(ae,St)|0,U=U+Math.imul(ae,At)|0,Y=Y+Math.imul(qt,mt)|0,R=(R=R+Math.imul(qt,It)|0)+Math.imul(S,mt)|0,U=U+Math.imul(S,It)|0;var en=(x+(Y=Y+Math.imul(Et,In)|0)|0)+((8191&(R=(R=R+Math.imul(Et,ei)|0)+Math.imul(rt,In)|0))<<13)|0;x=((U=U+Math.imul(rt,ei)|0)+(R>>>13)|0)+(en>>>26)|0,en&=67108863,Y=Math.imul(Vt,we),R=(R=Math.imul(Vt,We))+Math.imul(hn,we)|0,U=Math.imul(hn,We),Y=Y+Math.imul(Le,St)|0,R=(R=R+Math.imul(Le,At)|0)+Math.imul(et,St)|0,U=U+Math.imul(et,At)|0,Y=Y+Math.imul(de,mt)|0,R=(R=R+Math.imul(de,It)|0)+Math.imul(ae,mt)|0,U=U+Math.imul(ae,It)|0;var Nn=(x+(Y=Y+Math.imul(qt,In)|0)|0)+((8191&(R=(R=R+Math.imul(qt,ei)|0)+Math.imul(S,In)|0))<<13)|0;x=((U=U+Math.imul(S,ei)|0)+(R>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,Y=Math.imul(Vt,St),R=(R=Math.imul(Vt,At))+Math.imul(hn,St)|0,U=Math.imul(hn,At),Y=Y+Math.imul(Le,mt)|0,R=(R=R+Math.imul(Le,It)|0)+Math.imul(et,mt)|0,U=U+Math.imul(et,It)|0;var jn=(x+(Y=Y+Math.imul(de,In)|0)|0)+((8191&(R=(R=R+Math.imul(de,ei)|0)+Math.imul(ae,In)|0))<<13)|0;x=((U=U+Math.imul(ae,ei)|0)+(R>>>13)|0)+(jn>>>26)|0,jn&=67108863,Y=Math.imul(Vt,mt),R=(R=Math.imul(Vt,It))+Math.imul(hn,mt)|0,U=Math.imul(hn,It);var Un=(x+(Y=Y+Math.imul(Le,In)|0)|0)+((8191&(R=(R=R+Math.imul(Le,ei)|0)+Math.imul(et,In)|0))<<13)|0;x=((U=U+Math.imul(et,ei)|0)+(R>>>13)|0)+(Un>>>26)|0,Un&=67108863;var ui=(x+(Y=Math.imul(Vt,In))|0)+((8191&(R=(R=Math.imul(Vt,ei))+Math.imul(hn,In)|0))<<13)|0;return x=((U=Math.imul(hn,ei))+(R>>>13)|0)+(ui>>>26)|0,ui&=67108863,a[0]=Li,a[1]=kt,a[2]=Ot,a[3]=Ze,a[4]=Ge,a[5]=Pt,a[6]=Yt,a[7]=bn,a[8]=Zn,a[9]=oi,a[10]=Ii,a[11]=Ei,a[12]=Nt,a[13]=nn,a[14]=en,a[15]=Nn,a[16]=jn,a[17]=Un,a[18]=ui,0!==x&&(a[19]=x,T.length++),T};function Q(m,u,_){_.negative=u.negative^m.negative,_.length=m.length+u.length;for(var T=0,P=0,C=0;C<_.length-1;C++){var a=P;P=0;for(var x=67108863&T,Y=Math.min(C,u.length-1),R=Math.max(0,C-m.length+1);R<=Y;R++){var he=(0|m.words[C-R])*(0|u.words[R]),Oe=67108863&he;x=67108863&(Oe=Oe+x|0),P+=(a=(a=a+(he/67108864|0)|0)+(Oe>>>26)|0)>>>26,a&=67108863}_.words[C]=x,T=a,a=P}return 0!==T?_.words[C]=T:_.length--,_._strip()}function $(m,u,_){return Q(m,u,_)}function ie(m,u){this.x=m,this.y=u}Math.imul||(V=ee),o.prototype.mulTo=function(u,_){var P=this.length+u.length;return 10===this.length&&10===u.length?V(this,u,_):P<63?ee(this,u,_):P<1024?Q(this,u,_):$(this,u,_)},ie.prototype.makeRBT=function(u){for(var _=new Array(u),T=o.prototype._countBits(u)-1,P=0;P>=1;return P},ie.prototype.permute=function(u,_,T,P,C,a){for(var x=0;x>>=1)C++;return 1<>>=13),C>>>=13;for(a=2*_;a>=26,T+=C/67108864|0,T+=a>>>26,this.words[P]=67108863&a}return 0!==T&&(this.words[P]=T,this.length++),0===u&&(this.length=1,this._normSign()),_?this.ineg():this},o.prototype.muln=function(u){return this.clone().imuln(u)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(u){var _=function Z(m){for(var u=new Array(m.bitLength()),_=0;_>>_%26&1;return u}(u);if(0===_.length)return new o(1);for(var T=this,P=0;P<_.length&&0===_[P];P++,T=T.sqr());if(++P<_.length)for(var C=T.sqr();P<_.length;P++,C=C.sqr())0!==_[P]&&(T=T.mul(C));return T},o.prototype.iushln=function(u){p("number"==typeof u&&u>=0);var C,_=u%26,T=(u-_)/26,P=67108863>>>26-_<<26-_;if(0!==_){var a=0;for(C=0;C>>26-_}a&&(this.words[C]=a,this.length++)}if(0!==T){for(C=this.length-1;C>=0;C--)this.words[C+T]=this.words[C];for(C=0;C=0),P=_?(_-_%26)/26:0;var C=u%26,a=Math.min((u-C)/26,this.length),x=67108863^67108863>>>C<a)for(this.length-=a,R=0;R=0&&(0!==U||R>=P);R--){var fe=0|this.words[R];this.words[R]=U<<26-C|fe>>>C,U=fe&x}return Y&&0!==U&&(Y.words[Y.length++]=U),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(u,_,T){return p(0===this.negative),this.iushrn(u,_,T)},o.prototype.shln=function(u){return this.clone().ishln(u)},o.prototype.ushln=function(u){return this.clone().iushln(u)},o.prototype.shrn=function(u){return this.clone().ishrn(u)},o.prototype.ushrn=function(u){return this.clone().iushrn(u)},o.prototype.testn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return!(this.length<=T||!(this.words[T]&1<<_))},o.prototype.imaskn=function(u){p("number"==typeof u&&u>=0);var _=u%26,T=(u-_)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==_&&T++,this.length=Math.min(T,this.length),0!==_&&(this.words[this.length-1]&=67108863^67108863>>>_<<_),0===this.length&&(this.words[0]=0,this.length=1),this._strip())},o.prototype.maskn=function(u){return this.clone().imaskn(u)},o.prototype.iaddn=function(u){return p("number"==typeof u),p(u<67108864),u<0?this.isubn(-u):0!==this.negative?1===this.length&&(0|this.words[0])<=u?(this.words[0]=u-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(u),this.negative=1,this):this._iaddn(u)},o.prototype._iaddn=function(u){this.words[0]+=u;for(var _=0;_=67108864;_++)this.words[_]-=67108864,_===this.length-1?this.words[_+1]=1:this.words[_+1]++;return this.length=Math.max(this.length,_+1),this},o.prototype.isubn=function(u){if(p("number"==typeof u),p(u<67108864),u<0)return this.iaddn(-u);if(0!==this.negative)return this.negative=0,this.iaddn(u),this.negative=1,this;if(this.words[0]-=u,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var _=0;_>26)-(Y/67108864|0),this.words[C+T]=67108863&a}for(;C>26,this.words[C+T]=67108863&a;if(0===x)return this._strip();for(p(-1===x),x=0,C=0;C>26,this.words[C]=67108863&a;return this.negative=1,this._strip()},o.prototype._wordDiv=function(u,_){var T,P=this.clone(),C=u,a=0|C.words[C.length-1];0!=(T=26-this._countBits(a))&&(C=C.ushln(T),P.iushln(T),a=0|C.words[C.length-1]);var R,Y=P.length-C.length;if("mod"!==_){(R=new o(null)).length=Y+1,R.words=new Array(R.length);for(var U=0;U=0;re--){var he=67108864*(0|P.words[C.length+re])+(0|P.words[C.length+re-1]);for(he=Math.min(he/a|0,67108863),P._ishlnsubmul(C,he,re);0!==P.negative;)he--,P.negative=0,P._ishlnsubmul(C,1,re),P.isZero()||(P.negative^=1);R&&(R.words[re]=he)}return R&&R._strip(),P._strip(),"div"!==_&&0!==T&&P.iushrn(T),{div:R||null,mod:P}},o.prototype.divmod=function(u,_,T){return p(!u.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===u.negative?(a=this.neg().divmod(u,_),"mod"!==_&&(P=a.div.neg()),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.iadd(u)),{div:P,mod:C}):0===this.negative&&0!==u.negative?(a=this.divmod(u.neg(),_),"mod"!==_&&(P=a.div.neg()),{div:P,mod:a.mod}):0!==(this.negative&u.negative)?(a=this.neg().divmod(u.neg(),_),"div"!==_&&(C=a.mod.neg(),T&&0!==C.negative&&C.isub(u)),{div:a.div,mod:C}):u.length>this.length||this.cmp(u)<0?{div:new o(0),mod:this}:1===u.length?"div"===_?{div:this.divn(u.words[0]),mod:null}:"mod"===_?{div:null,mod:new o(this.modrn(u.words[0]))}:{div:this.divn(u.words[0]),mod:new o(this.modrn(u.words[0]))}:this._wordDiv(u,_);var P,C,a},o.prototype.div=function(u){return this.divmod(u,"div",!1).div},o.prototype.mod=function(u){return this.divmod(u,"mod",!1).mod},o.prototype.umod=function(u){return this.divmod(u,"mod",!0).mod},o.prototype.divRound=function(u){var _=this.divmod(u);if(_.mod.isZero())return _.div;var T=_.mod.abs(),P=u.abs().iushrn(1),C=1&u.words[0],a=T.cmp(P);if(a<0||1===C&&0===a)return _.div;var x=new o(1);return x.negative=this.negative^u.negative,_.div.iadd(x)},o.prototype.modrn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=(1<<26)%u,P=0,C=this.length-1;C>=0;C--)P=(T*P+(0|this.words[C]))%u;return _?-P:P},o.prototype.modn=function(u){return this.modrn(u)},o.prototype.idivn=function(u){var _=u<0;_&&(u=-u),p(u<=67108863);for(var T=0,P=this.length-1;P>=0;P--){var C=(0|this.words[P])+67108864*T;this.words[P]=C/u|0,T=C%u}return this._strip(),_?this.ineg():this},o.prototype.divn=function(u){return this.clone().idivn(u)},o.prototype.egcd=function(u){p(0===u.negative),p(!u.isZero());var _=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=new o(0),x=new o(1),Y=0;_.isEven()&&T.isEven();)_.iushrn(1),T.iushrn(1),++Y;for(var R=T.clone(),U=_.clone();!_.isZero();){for(var fe=0,re=1;0===(_.words[0]&re)&&fe<26;++fe,re<<=1);if(fe>0)for(_.iushrn(fe);fe-- >0;)(P.isOdd()||C.isOdd())&&(P.iadd(R),C.isub(U)),P.iushrn(1),C.iushrn(1);for(var he=0,Oe=1;0===(T.words[0]&Oe)&&he<26;++he,Oe<<=1);if(he>0)for(T.iushrn(he);he-- >0;)(a.isOdd()||x.isOdd())&&(a.iadd(R),x.isub(U)),a.iushrn(1),x.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(a),C.isub(x)):(T.isub(_),a.isub(P),x.isub(C))}return{a,b:x,gcd:T.iushln(Y)}},o.prototype._invmp=function(u){p(0===u.negative),p(!u.isZero());var fe,_=this,T=u.clone();_=0!==_.negative?_.umod(u):_.clone();for(var P=new o(1),C=new o(0),a=T.clone();_.cmpn(1)>0&&T.cmpn(1)>0;){for(var x=0,Y=1;0===(_.words[0]&Y)&&x<26;++x,Y<<=1);if(x>0)for(_.iushrn(x);x-- >0;)P.isOdd()&&P.iadd(a),P.iushrn(1);for(var R=0,U=1;0===(T.words[0]&U)&&R<26;++R,U<<=1);if(R>0)for(T.iushrn(R);R-- >0;)C.isOdd()&&C.iadd(a),C.iushrn(1);_.cmp(T)>=0?(_.isub(T),P.isub(C)):(T.isub(_),C.isub(P))}return(fe=0===_.cmpn(1)?P:C).cmpn(0)<0&&fe.iadd(u),fe},o.prototype.gcd=function(u){if(this.isZero())return u.abs();if(u.isZero())return this.abs();var _=this.clone(),T=u.clone();_.negative=0,T.negative=0;for(var P=0;_.isEven()&&T.isEven();P++)_.iushrn(1),T.iushrn(1);for(;;){for(;_.isEven();)_.iushrn(1);for(;T.isEven();)T.iushrn(1);var C=_.cmp(T);if(C<0){var a=_;_=T,T=a}else if(0===C||0===T.cmpn(1))break;_.isub(T)}return T.iushln(P)},o.prototype.invm=function(u){return this.egcd(u).a.umod(u)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(u){return this.words[0]&u},o.prototype.bincn=function(u){p("number"==typeof u);var _=u%26,T=(u-_)/26,P=1<<_;if(this.length<=T)return this._expand(T+1),this.words[T]|=P,this;for(var C=P,a=T;0!==C&&a>>26,this.words[a]=x&=67108863}return 0!==C&&(this.words[a]=C,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(u){var T,_=u<0;if(0!==this.negative&&!_)return-1;if(0===this.negative&&_)return 1;if(this._strip(),this.length>1)T=1;else{_&&(u=-u),p(u<=67108863,"Number is too big");var P=0|this.words[0];T=P===u?0:Pu.length)return 1;if(this.length=0;T--){var P=0|this.words[T],C=0|u.words[T];if(P!==C){PC&&(_=1);break}}return _},o.prototype.gtn=function(u){return 1===this.cmpn(u)},o.prototype.gt=function(u){return 1===this.cmp(u)},o.prototype.gten=function(u){return this.cmpn(u)>=0},o.prototype.gte=function(u){return this.cmp(u)>=0},o.prototype.ltn=function(u){return-1===this.cmpn(u)},o.prototype.lt=function(u){return-1===this.cmp(u)},o.prototype.lten=function(u){return this.cmpn(u)<=0},o.prototype.lte=function(u){return this.cmp(u)<=0},o.prototype.eqn=function(u){return 0===this.cmpn(u)},o.prototype.eq=function(u){return 0===this.cmp(u)},o.red=function(u){return new t(u)},o.prototype.toRed=function(u){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),u.convertTo(this)._forceRed(u)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(u){return this.red=u,this},o.prototype.forceRed=function(u){return p(!this.red,"Already a number in reduction context"),this._forceRed(u)},o.prototype.redAdd=function(u){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,u)},o.prototype.redIAdd=function(u){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,u)},o.prototype.redSub=function(u){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,u)},o.prototype.redISub=function(u){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,u)},o.prototype.redShl=function(u){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,u)},o.prototype.redMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.mul(this,u)},o.prototype.redIMul=function(u){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,u),this.red.imul(this,u)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(u){return p(this.red&&!u.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,u)};var _e={k256:null,p224:null,p192:null,p25519:null};function ye(m,u){this.name=m,this.p=new o(u,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function se(){ye.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function pe(){ye.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function Ee(){ye.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function L(){ye.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function t(m){if("string"==typeof m){var u=o._prime(m);this.m=u.p,this.prime=u}else p(m.gtn(1),"modulus must be greater than 1"),this.m=m,this.prime=null}function s(m){t.call(this,m),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}ye.prototype._tmp=function(){var u=new o(null);return u.words=new Array(Math.ceil(this.n/13)),u},ye.prototype.ireduce=function(u){var T,_=u;do{this.split(_,this.tmp),T=(_=(_=this.imulK(_)).iadd(this.tmp)).bitLength()}while(T>this.n);var P=T0?_.isub(this.p):void 0!==_.strip?_.strip():_._strip(),_},ye.prototype.split=function(u,_){u.iushrn(this.n,0,_)},ye.prototype.imulK=function(u){return u.imul(this.k)},D(se,ye),se.prototype.split=function(u,_){for(var T=4194303,P=Math.min(u.length,9),C=0;C>>22,a=x}u.words[C-10]=a>>>=22,u.length-=0===a&&u.length>10?10:9},se.prototype.imulK=function(u){u.words[u.length]=0,u.words[u.length+1]=0,u.length+=2;for(var _=0,T=0;T>>=26,u.words[T]=C,_=P}return 0!==_&&(u.words[u.length++]=_),u},o._prime=function(u){if(_e[u])return _e[u];var _;if("k256"===u)_=new se;else if("p224"===u)_=new pe;else if("p192"===u)_=new Ee;else{if("p25519"!==u)throw new Error("Unknown prime "+u);_=new L}return _e[u]=_,_},t.prototype._verify1=function(u){p(0===u.negative,"red works only with positives"),p(u.red,"red works only with red numbers")},t.prototype._verify2=function(u,_){p(0===(u.negative|_.negative),"red works only with positives"),p(u.red&&u.red===_.red,"red works only with red numbers")},t.prototype.imod=function(u){return this.prime?this.prime.ireduce(u)._forceRed(this):(w(u,u.umod(this.m)._forceRed(this)),u)},t.prototype.neg=function(u){return u.isZero()?u.clone():this.m.sub(u)._forceRed(this)},t.prototype.add=function(u,_){this._verify2(u,_);var T=u.add(_);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},t.prototype.iadd=function(u,_){this._verify2(u,_);var T=u.iadd(_);return T.cmp(this.m)>=0&&T.isub(this.m),T},t.prototype.sub=function(u,_){this._verify2(u,_);var T=u.sub(_);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},t.prototype.isub=function(u,_){this._verify2(u,_);var T=u.isub(_);return T.cmpn(0)<0&&T.iadd(this.m),T},t.prototype.shl=function(u,_){return this._verify1(u),this.imod(u.ushln(_))},t.prototype.imul=function(u,_){return this._verify2(u,_),this.imod(u.imul(_))},t.prototype.mul=function(u,_){return this._verify2(u,_),this.imod(u.mul(_))},t.prototype.isqr=function(u){return this.imul(u,u.clone())},t.prototype.sqr=function(u){return this.mul(u,u)},t.prototype.sqrt=function(u){if(u.isZero())return u.clone();var _=this.m.andln(3);if(p(_%2==1),3===_){var T=this.m.add(new o(1)).iushrn(2);return this.pow(u,T)}for(var P=this.m.subn(1),C=0;!P.isZero()&&0===P.andln(1);)C++,P.iushrn(1);p(!P.isZero());var a=new o(1).toRed(this),x=a.redNeg(),Y=this.m.subn(1).iushrn(1),R=this.m.bitLength();for(R=new o(2*R*R).toRed(this);0!==this.pow(R,Y).cmp(x);)R.redIAdd(x);for(var U=this.pow(R,P),fe=this.pow(u,P.addn(1).iushrn(1)),re=this.pow(u,P),he=C;0!==re.cmp(a);){for(var Oe=re,ge=0;0!==Oe.cmp(a);ge++)Oe=Oe.redSqr();p(ge=0;C--){for(var U=_.words[C],fe=R-1;fe>=0;fe--){var re=U>>fe&1;a!==P[0]&&(a=this.sqr(a)),0!==re||0!==x?(x<<=1,x|=re,(4===++Y||0===C&&0===fe)&&(a=this.mul(a,P[x]),Y=0,x=0)):Y=0}R=26}return a},t.prototype.convertTo=function(u){var _=u.umod(this.m);return _===u?_.clone():_},t.prototype.convertFrom=function(u){var _=u.clone();return _.red=null,_},o.mont=function(u){return new s(u)},D(s,t),s.prototype.convertTo=function(u){return this.imod(u.ushln(this.shift))},s.prototype.convertFrom=function(u){var _=this.imod(u.mul(this.rinv));return _.red=null,_},s.prototype.imul=function(u,_){if(u.isZero()||_.isZero())return u.words[0]=0,u.length=1,u;var T=u.imul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.mul=function(u,_){if(u.isZero()||_.isZero())return new o(0)._forceRed(this);var T=u.mul(_),P=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),C=T.isub(P).iushrn(this.shift),a=C;return C.cmp(this.m)>=0?a=C.isub(this.m):C.cmpn(0)<0&&(a=C.iadd(this.m)),a._forceRed(this)},s.prototype.invm=function(u){return this.imod(u._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},35294(ke,q,l){var i;function g(D){this.rand=D}if(ke.exports=function(o){return i||(i=new g(null)),i.generate(o)},ke.exports.Rand=g,g.prototype.generate=function(o){return this._rand(o)},g.prototype._rand=function(o){if(this.rand.getBytes)return this.rand.getBytes(o);for(var e=new Uint8Array(o),A=0;A>>24]^K[V>>>16&255]^j[Q>>>8&255]^Z[255&$]^d[pe++],_e=M[V>>>24]^K[Q>>>16&255]^j[$>>>8&255]^Z[255&ee]^d[pe++],ye=M[Q>>>24]^K[$>>>16&255]^j[ee>>>8&255]^Z[255&V]^d[pe++],se=M[$>>>24]^K[ee>>>16&255]^j[V>>>8&255]^Z[255&Q]^d[pe++],ee=ie,V=_e,Q=ye,$=se;return ie=(f[ee>>>24]<<24|f[V>>>16&255]<<16|f[Q>>>8&255]<<8|f[255&$])^d[pe++],_e=(f[V>>>24]<<24|f[Q>>>16&255]<<16|f[$>>>8&255]<<8|f[255&ee])^d[pe++],ye=(f[Q>>>24]<<24|f[$>>>16&255]<<16|f[ee>>>8&255]<<8|f[255&V])^d[pe++],se=(f[$>>>24]<<24|f[ee>>>16&255]<<16|f[V>>>8&255]<<8|f[255&Q])^d[pe++],[ie>>>=0,_e>>>=0,ye>>>=0,se>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],e=function(){for(var h=new Array(256),d=0;d<256;d++)h[d]=d<128?d<<1:d<<1^283;for(var w=[],f=[],F=[[],[],[],[]],M=[[],[],[],[]],K=0,j=0,Z=0;Z<256;++Z){var ee=j^j<<1^j<<2^j<<3^j<<4;w[K]=ee=ee>>>8^255&ee^99,f[ee]=K;var V=h[K],Q=h[V],$=h[Q],ie=257*h[ee]^16843008*ee;F[0][K]=ie<<24|ie>>>8,F[1][K]=ie<<16|ie>>>16,F[2][K]=ie<<8|ie>>>24,F[3][K]=ie,M[0][ee]=(ie=16843009*$^65537*Q^257*V^16843008*K)<<24|ie>>>8,M[1][ee]=ie<<16|ie>>>16,M[2][ee]=ie<<8|ie>>>24,M[3][ee]=ie,0===K?K=j=1:(K=V^h[h[h[$^V]]],j^=h[h[j]])}return{SBOX:w,INV_SBOX:f,SUB_MIX:F,INV_SUB_MIX:M}}();function A(h){this._key=g(h),this._reset()}A.blockSize=16,A.keySize=32,A.prototype.blockSize=A.blockSize,A.prototype.keySize=A.keySize,A.prototype._reset=function(){for(var h=this._key,d=h.length,w=d+6,f=4*(w+1),F=[],M=0;M>>24)>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K],K^=o[M/d|0]<<24):d>6&&M%d===4&&(K=e.SBOX[K>>>24]<<24|e.SBOX[K>>>16&255]<<16|e.SBOX[K>>>8&255]<<8|e.SBOX[255&K]),F[M]=F[M-d]^K}for(var j=[],Z=0;Z>>24]]^e.INV_SUB_MIX[1][e.SBOX[V>>>16&255]]^e.INV_SUB_MIX[2][e.SBOX[V>>>8&255]]^e.INV_SUB_MIX[3][e.SBOX[255&V]]}this._nRounds=w,this._keySchedule=F,this._invKeySchedule=j},A.prototype.encryptBlockRaw=function(h){return D(h=g(h),this._keySchedule,e.SUB_MIX,e.SBOX,this._nRounds)},A.prototype.encryptBlock=function(h){var d=this.encryptBlockRaw(h),w=i.allocUnsafe(16);return w.writeUInt32BE(d[0],0),w.writeUInt32BE(d[1],4),w.writeUInt32BE(d[2],8),w.writeUInt32BE(d[3],12),w},A.prototype.decryptBlock=function(h){var d=(h=g(h))[1];h[1]=h[3],h[3]=d;var w=D(h,this._invKeySchedule,e.INV_SUB_MIX,e.INV_SBOX,this._nRounds),f=i.allocUnsafe(16);return f.writeUInt32BE(w[0],0),f.writeUInt32BE(w[3],4),f.writeUInt32BE(w[2],8),f.writeUInt32BE(w[1],12),f},A.prototype.scrub=function(){p(this._keySchedule),p(this._invKeySchedule),p(this._key)},ke.exports.AES=A},19307(ke,q,l){var i=l(12375),g=l(27054).Buffer,p=l(3247),D=l(71993),o=l(85917),e=l(13546),A=l(95725);function w(f,F,M,K){p.call(this);var j=g.alloc(4,0);this._cipher=new i.AES(F);var Z=this._cipher.encryptBlock(j);this._ghash=new o(Z),M=function d(f,F,M){if(12===F.length)return f._finID=g.concat([F,g.from([0,0,0,1])]),g.concat([F,g.from([0,0,0,2])]);var K=new o(M),j=F.length,Z=j%16;K.update(F),Z&&K.update(g.alloc(Z=16-Z,0)),K.update(g.alloc(8,0));var ee=8*j,V=g.alloc(8);V.writeUIntBE(ee,0,8),K.update(V),f._finID=K.state;var Q=g.from(f._finID);return A(Q),Q}(this,M,Z),this._prev=g.from(M),this._cache=g.allocUnsafe(0),this._secCache=g.allocUnsafe(0),this._decrypt=K,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}D(w,p),w.prototype._update=function(f){if(!this._called&&this._alen){var F=16-this._alen%16;F<16&&(F=g.alloc(F,0),this._ghash.update(F))}this._called=!0;var M=this._mode.encrypt(this,f);return this._ghash.update(this._decrypt?f:M),this._len+=f.length,M},w.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=e(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function h(f,F){var M=0;f.length!==F.length&&M++;for(var K=Math.min(f.length,F.length),j=0;j16)throw new Error("unable to decrypt data");for(var Z=-1;++Z16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j}else if(this.cache.length>=16)return j=this.cache.slice(0,16),this.cache=this.cache.slice(16),j;return null},w.prototype.flush=function(){if(this.cache.length)return this.cache},q.createDecipher=function M(K,j){var Z=p[K.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");var ee=A(j,!1,Z.key,Z.iv);return F(K,ee.key,ee.iv)},q.createDecipheriv=F},350(ke,q,l){var i=l(60503),g=l(19307),p=l(27054).Buffer,D=l(91821),o=l(3247),e=l(12375),A=l(18211);function d(K,j,Z){o.call(this),this._cache=new f,this._cipher=new e.AES(j),this._prev=p.from(Z),this._mode=K,this._autopadding=!0}l(71993)(d,o),d.prototype._update=function(K){this._cache.add(K);for(var j,Z,ee=[];j=this._cache.get();)Z=this._mode.encrypt(this,j),ee.push(Z);return p.concat(ee)};var w=p.alloc(16,16);function f(){this.cache=p.allocUnsafe(0)}function F(K,j,Z){var ee=i[K.toLowerCase()];if(!ee)throw new TypeError("invalid suite type");if("string"==typeof j&&(j=p.from(j)),j.length!==ee.key/8)throw new TypeError("invalid key length "+j.length);if("string"==typeof Z&&(Z=p.from(Z)),"GCM"!==ee.mode&&Z.length!==ee.iv)throw new TypeError("invalid iv length "+Z.length);return"stream"===ee.type?new D(ee.module,j,Z):"auth"===ee.type?new g(ee.module,j,Z):new d(ee.module,j,Z)}d.prototype._final=function(){var K=this._cache.flush();if(this._autopadding)return K=this._mode.encrypt(this,K),this._cipher.scrub(),K;if(!K.equals(w))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(K){return this._autopadding=!!K,this},f.prototype.add=function(K){this.cache=p.concat([this.cache,K])},f.prototype.get=function(){if(this.cache.length>15){var K=this.cache.slice(0,16);return this.cache=this.cache.slice(16),K}return null},f.prototype.flush=function(){for(var K=16-this.cache.length,j=p.allocUnsafe(K),Z=-1;++Z>>0,0),A.writeUInt32BE(e[1]>>>0,4),A.writeUInt32BE(e[2]>>>0,8),A.writeUInt32BE(e[3]>>>0,12),A}function o(e){this.h=e,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}o.prototype.ghash=function(e){for(var A=-1;++A0;h--)e[h]=e[h]>>>1|(1&e[h-1])<<31;e[0]=e[0]>>>1,w&&(e[0]=e[0]^225<<24)}this.state=D(A)},o.prototype.update=function(e){this.cache=i.concat([this.cache,e]);for(var A;this.cache.length>=16;)A=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(A)},o.prototype.final=function(e,A){return this.cache.length&&this.ghash(i.concat([this.cache,g],16)),this.ghash(D([0,e,0,A])),this.state},ke.exports=o},95725(ke){ke.exports=function q(l){for(var g,i=l.length;i--;){if(255!==(g=l.readUInt8(i))){g++,l.writeUInt8(g,i);break}l.writeUInt8(0,i)}}},34133(ke,q,l){var i=l(13546);q.encrypt=function(g,p){var D=i(p,g._prev);return g._prev=g._cipher.encryptBlock(D),g._prev},q.decrypt=function(g,p){var D=g._prev;g._prev=p;var o=g._cipher.decryptBlock(p);return i(o,D)}},17090(ke,q,l){var i=l(27054).Buffer,g=l(13546);function p(D,o,e){var A=o.length,h=g(o,D._cache);return D._cache=D._cache.slice(A),D._prev=i.concat([D._prev,e?o:h]),h}q.encrypt=function(D,o,e){for(var h,A=i.allocUnsafe(0);o.length;){if(0===D._cache.length&&(D._cache=D._cipher.encryptBlock(D._prev),D._prev=i.allocUnsafe(0)),!(D._cache.length<=o.length)){A=i.concat([A,p(D,o,e)]);break}A=i.concat([A,p(D,o.slice(0,h=D._cache.length),e)]),o=o.slice(h)}return A}},71039(ke,q,l){var i=l(27054).Buffer;function g(D,o,e){for(var f,F,h=-1,w=0;++h<8;)w+=(128&(F=D._cipher.encryptBlock(D._prev)[0]^(f=o&1<<7-h?128:0)))>>h%8,D._prev=p(D._prev,e?f:F);return w}function p(D,o){var e=D.length,A=-1,h=i.allocUnsafe(D.length);for(D=i.concat([D,i.from([o])]);++A>7;return h}q.encrypt=function(D,o,e){for(var A=o.length,h=i.allocUnsafe(A),d=-1;++d=0||!d.umod(A.prime1)||!d.umod(A.prime2));return d}function e(A,h){var d=function o(A){var h=D(A);return{blinder:h.toRed(i.mont(A.modulus)).redPow(new i(A.publicExponent)).fromRed(),unblinder:h.invm(A.modulus)}}(h),w=h.modulus.byteLength(),f=new i(A).mul(d.blinder).umod(h.modulus),F=f.toRed(i.mont(h.prime1)),M=f.toRed(i.mont(h.prime2)),K=h.coefficient,j=h.prime1,Z=h.prime2,ee=F.redPow(h.exponent1).fromRed(),V=M.redPow(h.exponent2).fromRed(),Q=ee.isub(V).imul(K).umod(j).imul(Z);return V.iadd(Q).imul(d.unblinder).umod(h.modulus).toArrayLike(p,"be",w)}e.getr=D,ke.exports=e},99560(ke,q,l){"use strict";ke.exports=l(62951)},79143(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(67211),p=l(5942),D=l(71993),o=l(43150),e=l(74754),A=l(62951);function h(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hashType=M.hash,this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function d(F){p.Writable.call(this);var M=A[F];if(!M)throw new Error("Unknown message digest");this._hash=g(M.hash),this._tag=M.id,this._signType=M.sign}function w(F){return new h(F)}function f(F){return new d(F)}Object.keys(A).forEach(function(F){A[F].id=i.from(A[F].id,"hex"),A[F.toLowerCase()]=A[F]}),D(h,p.Writable),h.prototype._write=function(M,K,j){this._hash.update(M),j()},h.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},h.prototype.sign=function(M,K){this.end();var j=this._hash.digest(),Z=o(j,M,this._hashType,this._signType,this._tag);return K?Z.toString(K):Z},D(d,p.Writable),d.prototype._write=function(M,K,j){this._hash.update(M),j()},d.prototype.update=function(M,K){return this._hash.update("string"==typeof M?i.from(M,K):M),this},d.prototype.verify=function(M,K,j){var Z="string"==typeof K?i.from(K,j):K;this.end();var ee=this._hash.digest();return e(Z,ee,M,this._signType,this._tag)},ke.exports={Sign:w,Verify:f,createSign:w,createVerify:f}},43150(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56432),p=l(14105),D=l(90518).ec,o=l(917),e=l(65667),A=l(64589);function M(V,Q,$,ie){if((V=i.from(V.toArray())).length0&&$.ishrn(ie),$}function Z(V,Q,$){var ie,_e;do{for(ie=i.alloc(0);8*ie.length=0)throw new Error("invalid sig")}ke.exports=function e(w,f,F,M,K){var j=D(F);if("ec"===j.type){if("ecdsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");return function A(w,f,F){var M=o[F.data.algorithm.curve.join(".")];if(!M)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));return new p(M).verify(f,w,F.data.subjectPrivateKey.data)}(w,f,j)}if("dsa"===j.type){if("dsa"!==M)throw new Error("wrong public key type");return function h(w,f,F){var M=F.data.p,K=F.data.q,j=F.data.g,Z=F.data.pub_key,ee=D.signature.decode(w,"der"),V=ee.s,Q=ee.r;d(V,K),d(Q,K);var $=g.mont(M),ie=V.invm(K);return 0===j.toRed($).redPow(new g(f).mul(ie).mod(K)).fromRed().mul(Z.toRed($).redPow(Q.mul(ie).mod(K)).fromRed()).mod(M).mod(K).cmp(Q)}(w,f,j)}if("rsa"!==M&&"ecdsa/rsa"!==M)throw new Error("wrong public key type");f=i.concat([K,f]);for(var Z=j.modulus.byteLength(),ee=[1],V=0;f.length+ee.length+2D)throw new RangeError('The value "'+de+'" is invalid for option "size"');const ae=new Uint8Array(de);return Object.setPrototypeOf(ae,A.prototype),ae}function A(de,ae,me){if("number"==typeof de){if("string"==typeof ae)throw new TypeError('The "string" argument must be of type string. Received type number');return f(de)}return h(de,ae,me)}function h(de,ae,me){if("string"==typeof de)return function F(de,ae){if(("string"!=typeof ae||""===ae)&&(ae="utf8"),!A.isEncoding(ae))throw new TypeError("Unknown encoding: "+ae);const me=0|Q(de,ae);let Le=e(me);const et=Le.write(de,ae);return et!==me&&(Le=Le.slice(0,et)),Le}(de,ae);if(ArrayBuffer.isView(de))return function K(de){if(rt(de,Uint8Array)){const ae=new Uint8Array(de);return j(ae.buffer,ae.byteOffset,ae.byteLength)}return M(de)}(de);if(null==de)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de);if(rt(de,ArrayBuffer)||de&&rt(de.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(rt(de,SharedArrayBuffer)||de&&rt(de.buffer,SharedArrayBuffer)))return j(de,ae,me);if("number"==typeof de)throw new TypeError('The "value" argument must not be of type number. Received type number');const Le=de.valueOf&&de.valueOf();if(null!=Le&&Le!==de)return A.from(Le,ae,me);const et=function Z(de){if(A.isBuffer(de)){const ae=0|ee(de.length),me=e(ae);return 0===me.length||de.copy(me,0,0,ae),me}return void 0!==de.length?"number"!=typeof de.length||Mn(de.length)?e(0):M(de):"Buffer"===de.type&&Array.isArray(de.data)?M(de.data):void 0}(de);if(et)return et;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof de[Symbol.toPrimitive])return A.from(de[Symbol.toPrimitive]("string"),ae,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof de)}function d(de){if("number"!=typeof de)throw new TypeError('"size" argument must be of type number');if(de<0)throw new RangeError('The value "'+de+'" is invalid for option "size"')}function f(de){return d(de),e(de<0?0:0|ee(de))}function M(de){const ae=de.length<0?0:0|ee(de.length),me=e(ae);for(let Le=0;Le=D)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+D.toString(16)+" bytes");return 0|de}function Q(de,ae){if(A.isBuffer(de))return de.length;if(ArrayBuffer.isView(de)||rt(de,ArrayBuffer))return de.byteLength;if("string"!=typeof de)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof de);const me=de.length,Le=arguments.length>2&&!0===arguments[2];if(!Le&&0===me)return 0;let et=!1;for(;;)switch(ae){case"ascii":case"latin1":case"binary":return me;case"utf8":case"utf-8":return nt(de).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*me;case"hex":return me>>>1;case"base64":return yt(de).length;default:if(et)return Le?-1:nt(de).length;ae=(""+ae).toLowerCase(),et=!0}}function $(de,ae,me){let Le=!1;if((void 0===ae||ae<0)&&(ae=0),ae>this.length||((void 0===me||me>this.length)&&(me=this.length),me<=0)||(me>>>=0)<=(ae>>>=0))return"";for(de||(de="utf8");;)switch(de){case"hex":return C(this,ae,me);case"utf8":case"utf-8":return m(this,ae,me);case"ascii":return T(this,ae,me);case"latin1":case"binary":return P(this,ae,me);case"base64":return s(this,ae,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a(this,ae,me);default:if(Le)throw new TypeError("Unknown encoding: "+de);de=(de+"").toLowerCase(),Le=!0}}function ie(de,ae,me){const Le=de[ae];de[ae]=de[me],de[me]=Le}function _e(de,ae,me,Le,et){if(0===de.length)return-1;if("string"==typeof me?(Le=me,me=0):me>2147483647?me=2147483647:me<-2147483648&&(me=-2147483648),Mn(me=+me)&&(me=et?0:de.length-1),me<0&&(me=de.length+me),me>=de.length){if(et)return-1;me=de.length-1}else if(me<0){if(!et)return-1;me=0}if("string"==typeof ae&&(ae=A.from(ae,Le)),A.isBuffer(ae))return 0===ae.length?-1:ye(de,ae,me,Le,et);if("number"==typeof ae)return ae&=255,"function"==typeof Uint8Array.prototype.indexOf?et?Uint8Array.prototype.indexOf.call(de,ae,me):Uint8Array.prototype.lastIndexOf.call(de,ae,me):ye(de,[ae],me,Le,et);throw new TypeError("val must be string, number or Buffer")}function ye(de,ae,me,Le,et){let _n,tn=1,Vt=de.length,hn=ae.length;if(void 0!==Le&&("ucs2"===(Le=String(Le).toLowerCase())||"ucs-2"===Le||"utf16le"===Le||"utf-16le"===Le)){if(de.length<2||ae.length<2)return-1;tn=2,Vt/=2,hn/=2,me/=2}function En(tt,Fe){return 1===tn?tt[Fe]:tt.readUInt16BE(Fe*tn)}if(et){let tt=-1;for(_n=me;_nVt&&(me=Vt-hn),_n=me;_n>=0;_n--){let tt=!0;for(let Fe=0;Feet&&(Le=et):Le=et;const tn=ae.length;let Vt;for(Le>tn/2&&(Le=tn/2),Vt=0;Vt>8,et=me%256,tn.push(et),tn.push(Le);return tn}(ae,de.length-me),de,me,Le)}function s(de,ae,me){return i.fromByteArray(0===ae&&me===de.length?de:de.slice(ae,me))}function m(de,ae,me){me=Math.min(de.length,me);const Le=[];let et=ae;for(;et239?4:tn>223?3:tn>191?2:1;if(et+hn<=me){let En,_n,tt,Fe;switch(hn){case 1:tn<128&&(Vt=tn);break;case 2:En=de[et+1],128==(192&En)&&(Fe=(31&tn)<<6|63&En,Fe>127&&(Vt=Fe));break;case 3:En=de[et+1],_n=de[et+2],128==(192&En)&&128==(192&_n)&&(Fe=(15&tn)<<12|(63&En)<<6|63&_n,Fe>2047&&(Fe<55296||Fe>57343)&&(Vt=Fe));break;case 4:En=de[et+1],_n=de[et+2],tt=de[et+3],128==(192&En)&&128==(192&_n)&&128==(192&tt)&&(Fe=(15&tn)<<18|(63&En)<<12|(63&_n)<<6|63&tt,Fe>65535&&Fe<1114112&&(Vt=Fe))}}null===Vt?(Vt=65533,hn=1):Vt>65535&&(Vt-=65536,Le.push(Vt>>>10&1023|55296),Vt=56320|1023&Vt),Le.push(Vt),et+=hn}return function _(de){const ae=de.length;if(ae<=u)return String.fromCharCode.apply(String,de);let me="",Le=0;for(;Leet.length?(A.isBuffer(Vt)||(Vt=A.from(Vt)),Vt.copy(et,tn)):Uint8Array.prototype.set.call(et,Vt,tn);else{if(!A.isBuffer(Vt))throw new TypeError('"list" argument must be an Array of Buffers');Vt.copy(et,tn)}tn+=Vt.length}return et},A.byteLength=Q,A.prototype._isBuffer=!0,A.prototype.swap16=function(){const ae=this.length;if(ae%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let me=0;meme&&(ae+=" ... "),""},p&&(A.prototype[p]=A.prototype.inspect),A.prototype.compare=function(ae,me,Le,et,tn){if(rt(ae,Uint8Array)&&(ae=A.from(ae,ae.offset,ae.byteLength)),!A.isBuffer(ae))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof ae);if(void 0===me&&(me=0),void 0===Le&&(Le=ae?ae.length:0),void 0===et&&(et=0),void 0===tn&&(tn=this.length),me<0||Le>ae.length||et<0||tn>this.length)throw new RangeError("out of range index");if(et>=tn&&me>=Le)return 0;if(et>=tn)return-1;if(me>=Le)return 1;if(this===ae)return 0;let Vt=(tn>>>=0)-(et>>>=0),hn=(Le>>>=0)-(me>>>=0);const En=Math.min(Vt,hn),_n=this.slice(et,tn),tt=ae.slice(me,Le);for(let Fe=0;Fe>>=0,isFinite(Le)?(Le>>>=0,void 0===et&&(et="utf8")):(et=Le,Le=void 0)}const tn=this.length-me;if((void 0===Le||Le>tn)&&(Le=tn),ae.length>0&&(Le<0||me<0)||me>this.length)throw new RangeError("Attempt to write outside buffer bounds");et||(et="utf8");let Vt=!1;for(;;)switch(et){case"hex":return se(this,ae,me,Le);case"utf8":case"utf-8":return pe(this,ae,me,Le);case"ascii":case"latin1":case"binary":return Ee(this,ae,me,Le);case"base64":return L(this,ae,me,Le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t(this,ae,me,Le);default:if(Vt)throw new TypeError("Unknown encoding: "+et);et=(""+et).toLowerCase(),Vt=!0}},A.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const u=4096;function T(de,ae,me){let Le="";me=Math.min(de.length,me);for(let et=ae;etLe)&&(me=Le);let et="";for(let tn=ae;tnme)throw new RangeError("Trying to access beyond buffer length")}function Y(de,ae,me,Le,et,tn){if(!A.isBuffer(de))throw new TypeError('"buffer" argument must be a Buffer instance');if(ae>et||aede.length)throw new RangeError("Index out of range")}function R(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn,tn>>=8,de[me++]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,Vt>>=8,de[me++]=Vt,me}function U(de,ae,me,Le,et){Me(ae,Le,et,de,me,7);let tn=Number(ae&BigInt(4294967295));de[me+7]=tn,tn>>=8,de[me+6]=tn,tn>>=8,de[me+5]=tn,tn>>=8,de[me+4]=tn;let Vt=Number(ae>>BigInt(32)&BigInt(4294967295));return de[me+3]=Vt,Vt>>=8,de[me+2]=Vt,Vt>>=8,de[me+1]=Vt,Vt>>=8,de[me]=Vt,me+8}function fe(de,ae,me,Le,et,tn){if(me+Le>de.length)throw new RangeError("Index out of range");if(me<0)throw new RangeError("Index out of range")}function re(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,4),g.write(de,ae,me,Le,23,4),me+4}function he(de,ae,me,Le,et){return ae=+ae,me>>>=0,et||fe(de,0,me,8),g.write(de,ae,me,Le,52,8),me+8}A.prototype.slice=function(ae,me){const Le=this.length;(ae=~~ae)<0?(ae+=Le)<0&&(ae=0):ae>Le&&(ae=Le),(me=void 0===me?Le:~~me)<0?(me+=Le)<0&&(me=0):me>Le&&(me=Le),me>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae+--me],tn=1;for(;me>0&&(tn*=256);)et+=this[ae+--me]*tn;return et},A.prototype.readUint8=A.prototype.readUInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),this[ae]},A.prototype.readUint16LE=A.prototype.readUInt16LE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]|this[ae+1]<<8},A.prototype.readUint16BE=A.prototype.readUInt16BE=function(ae,me){return ae>>>=0,me||x(ae,2,this.length),this[ae]<<8|this[ae+1]},A.prototype.readUint32LE=A.prototype.readUInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),(this[ae]|this[ae+1]<<8|this[ae+2]<<16)+16777216*this[ae+3]},A.prototype.readUint32BE=A.prototype.readUInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),16777216*this[ae]+(this[ae+1]<<16|this[ae+2]<<8|this[ae+3])},A.prototype.readBigUInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me+256*this[++ae]+65536*this[++ae]+this[++ae]*2**24,tn=this[++ae]+256*this[++ae]+65536*this[++ae]+Le*2**24;return BigInt(et)+(BigInt(tn)<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=me*2**24+65536*this[++ae]+256*this[++ae]+this[++ae],tn=this[++ae]*2**24+65536*this[++ae]+256*this[++ae]+Le;return(BigInt(et)<>>=0,me>>>=0,Le||x(ae,me,this.length);let et=this[ae],tn=1,Vt=0;for(;++Vt=tn&&(et-=Math.pow(2,8*me)),et},A.prototype.readIntBE=function(ae,me,Le){ae>>>=0,me>>>=0,Le||x(ae,me,this.length);let et=me,tn=1,Vt=this[ae+--et];for(;et>0&&(tn*=256);)Vt+=this[ae+--et]*tn;return tn*=128,Vt>=tn&&(Vt-=Math.pow(2,8*me)),Vt},A.prototype.readInt8=function(ae,me){return ae>>>=0,me||x(ae,1,this.length),128&this[ae]?-1*(255-this[ae]+1):this[ae]},A.prototype.readInt16LE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae]|this[ae+1]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt16BE=function(ae,me){ae>>>=0,me||x(ae,2,this.length);const Le=this[ae+1]|this[ae]<<8;return 32768&Le?4294901760|Le:Le},A.prototype.readInt32LE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]|this[ae+1]<<8|this[ae+2]<<16|this[ae+3]<<24},A.prototype.readInt32BE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),this[ae]<<24|this[ae+1]<<16|this[ae+2]<<8|this[ae+3]},A.prototype.readBigInt64LE=S(function(ae){ve(ae>>>=0,"offset");const me=this[ae],Le=this[ae+7];return(void 0===me||void 0===Le)&&oe(ae,this.length-8),(BigInt(this[ae+4]+256*this[ae+5]+65536*this[ae+6]+(Le<<24))<>>=0,"offset");const me=this[ae],Le=this[ae+7];(void 0===me||void 0===Le)&&oe(ae,this.length-8);const et=(me<<24)+65536*this[++ae]+256*this[++ae]+this[++ae];return(BigInt(et)<>>=0,me||x(ae,4,this.length),g.read(this,ae,!0,23,4)},A.prototype.readFloatBE=function(ae,me){return ae>>>=0,me||x(ae,4,this.length),g.read(this,ae,!1,23,4)},A.prototype.readDoubleLE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!0,52,8)},A.prototype.readDoubleBE=function(ae,me){return ae>>>=0,me||x(ae,8,this.length),g.read(this,ae,!1,52,8)},A.prototype.writeUintLE=A.prototype.writeUIntLE=function(ae,me,Le,et){ae=+ae,me>>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=1,Vt=0;for(this[me]=255&ae;++Vt>>=0,Le>>>=0,et||Y(this,ae,me,Le,Math.pow(2,8*Le)-1,0);let tn=Le-1,Vt=1;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)this[me+tn]=ae/Vt&255;return me+Le},A.prototype.writeUint8=A.prototype.writeUInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,255,0),this[me]=255&ae,me+1},A.prototype.writeUint16LE=A.prototype.writeUInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeUint16BE=A.prototype.writeUInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,65535,0),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeUint32LE=A.prototype.writeUInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me+3]=ae>>>24,this[me+2]=ae>>>16,this[me+1]=ae>>>8,this[me]=255&ae,me+4},A.prototype.writeUint32BE=A.prototype.writeUInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,4294967295,0),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigUInt64LE=S(function(ae,me=0){return R(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeBigUInt64BE=S(function(ae,me=0){return U(this,ae,me,BigInt(0),BigInt("0xffffffffffffffff"))}),A.prototype.writeIntLE=function(ae,me,Le,et){if(ae=+ae,me>>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=0,Vt=1,hn=0;for(this[me]=255&ae;++tn>>=0,!et){const En=Math.pow(2,8*Le-1);Y(this,ae,me,Le,En-1,-En)}let tn=Le-1,Vt=1,hn=0;for(this[me+tn]=255&ae;--tn>=0&&(Vt*=256);)ae<0&&0===hn&&0!==this[me+tn+1]&&(hn=1),this[me+tn]=(ae/Vt|0)-hn&255;return me+Le},A.prototype.writeInt8=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,1,127,-128),ae<0&&(ae=255+ae+1),this[me]=255&ae,me+1},A.prototype.writeInt16LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=255&ae,this[me+1]=ae>>>8,me+2},A.prototype.writeInt16BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,2,32767,-32768),this[me]=ae>>>8,this[me+1]=255&ae,me+2},A.prototype.writeInt32LE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),this[me]=255&ae,this[me+1]=ae>>>8,this[me+2]=ae>>>16,this[me+3]=ae>>>24,me+4},A.prototype.writeInt32BE=function(ae,me,Le){return ae=+ae,me>>>=0,Le||Y(this,ae,me,4,2147483647,-2147483648),ae<0&&(ae=4294967295+ae+1),this[me]=ae>>>24,this[me+1]=ae>>>16,this[me+2]=ae>>>8,this[me+3]=255&ae,me+4},A.prototype.writeBigInt64LE=S(function(ae,me=0){return R(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeBigInt64BE=S(function(ae,me=0){return U(this,ae,me,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),A.prototype.writeFloatLE=function(ae,me,Le){return re(this,ae,me,!0,Le)},A.prototype.writeFloatBE=function(ae,me,Le){return re(this,ae,me,!1,Le)},A.prototype.writeDoubleLE=function(ae,me,Le){return he(this,ae,me,!0,Le)},A.prototype.writeDoubleBE=function(ae,me,Le){return he(this,ae,me,!1,Le)},A.prototype.copy=function(ae,me,Le,et){if(!A.isBuffer(ae))throw new TypeError("argument should be a Buffer");if(Le||(Le=0),!et&&0!==et&&(et=this.length),me>=ae.length&&(me=ae.length),me||(me=0),et>0&&et=this.length)throw new RangeError("Index out of range");if(et<0)throw new RangeError("sourceEnd out of bounds");et>this.length&&(et=this.length),ae.length-me>>=0,Le=void 0===Le?this.length:Le>>>0,ae||(ae=0),"number"==typeof ae)for(tn=me;tn=Le+4;me-=3)ae=`_${de.slice(me-3,me)}${ae}`;return`${de.slice(0,me)}${ae}`}function Me(de,ae,me,Le,et,tn){if(de>me||de3?0===ae||ae===BigInt(0)?`>= 0${Vt} and < 2${Vt} ** ${8*(tn+1)}${Vt}`:`>= -(2${Vt} ** ${8*(tn+1)-1}${Vt}) and < 2 ** ${8*(tn+1)-1}${Vt}`:`>= ${ae}${Vt} and <= ${me}${Vt}`,new Oe.ERR_OUT_OF_RANGE("value",hn,de)}!function Re(de,ae,me){ve(ae,"offset"),(void 0===de[ae]||void 0===de[ae+me])&&oe(ae,de.length-(me+1))}(Le,et,tn)}function ve(de,ae){if("number"!=typeof de)throw new Oe.ERR_INVALID_ARG_TYPE(ae,"number",de)}function oe(de,ae,me){throw Math.floor(de)!==de?(ve(de,me),new Oe.ERR_OUT_OF_RANGE(me||"offset","an integer",de)):ae<0?new Oe.ERR_BUFFER_OUT_OF_BOUNDS:new Oe.ERR_OUT_OF_RANGE(me||"offset",`>= ${me?1:0} and <= ${ae}`,de)}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(de){return de?`${de} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(de,ae){return`The "${de}" argument must be of type number. Received type ${typeof ae}`},TypeError),ge("ERR_OUT_OF_RANGE",function(de,ae,me){let Le=`The value of "${de}" is out of range.`,et=me;return Number.isInteger(me)&&Math.abs(me)>2**32?et=ce(String(me)):"bigint"==typeof me&&(et=String(me),(me>BigInt(2)**BigInt(32)||me<-(BigInt(2)**BigInt(32)))&&(et=ce(et)),et+="n"),Le+=` It must be ${ae}. Received ${et}`,Le},RangeError);const Se=/[^+/0-9A-Za-z-_]/g;function nt(de,ae){let me;ae=ae||1/0;const Le=de.length;let et=null;const tn=[];for(let Vt=0;Vt55295&&me<57344){if(!et){if(me>56319){(ae-=3)>-1&&tn.push(239,191,189);continue}if(Vt+1===Le){(ae-=3)>-1&&tn.push(239,191,189);continue}et=me;continue}if(me<56320){(ae-=3)>-1&&tn.push(239,191,189),et=me;continue}me=65536+(et-55296<<10|me-56320)}else et&&(ae-=3)>-1&&tn.push(239,191,189);if(et=null,me<128){if((ae-=1)<0)break;tn.push(me)}else if(me<2048){if((ae-=2)<0)break;tn.push(me>>6|192,63&me|128)}else if(me<65536){if((ae-=3)<0)break;tn.push(me>>12|224,me>>6&63|128,63&me|128)}else{if(!(me<1114112))throw new Error("Invalid code point");if((ae-=4)<0)break;tn.push(me>>18|240,me>>12&63|128,me>>6&63|128,63&me|128)}}return tn}function yt(de){return i.toByteArray(function be(de){if((de=(de=de.split("=")[0]).trim().replace(Se,"")).length<2)return"";for(;de.length%4!=0;)de+="=";return de}(de))}function Et(de,ae,me,Le){let et;for(et=0;et=ae.length||et>=de.length);++et)ae[et+me]=de[et];return et}function rt(de,ae){return de instanceof ae||null!=de&&null!=de.constructor&&null!=de.constructor.name&&de.constructor.name===ae.name}function Mn(de){return de!=de}const qt=function(){const de="0123456789abcdef",ae=new Array(256);for(let me=0;me<16;++me){const Le=16*me;for(let et=0;et<16;++et)ae[Le+et]=de[me]+de[et]}return ae}();function S(de){return typeof BigInt>"u"?Xt:de}function Xt(){throw new Error("BigInt not supported")}},95731(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(59705),D=l(52910);ke.exports=D||i.call(p,g)},98910(ke,q,l){"use strict";var i=l(65992),g=l(79477),p=l(95731);ke.exports=function(){return p(i,g,arguments)}},79477(ke){"use strict";ke.exports=Function.prototype.apply},59705(ke){"use strict";ke.exports=Function.prototype.call},61885(ke,q,l){"use strict";var i=l(65992),g=l(46758),p=l(59705),D=l(95731);ke.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new g("a function is required");return D(i,p,e)}},52910(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply},48128(ke,q,l){"use strict";var i=l(31358),g=l(4570),p=l(61885),D=l(98910);ke.exports=function(e){var A=p(arguments),h=1+e.length-(arguments.length-1);return i(A,h>0?h:0,!0)},g?g(ke.exports,"apply",{value:D}):ke.exports.apply=D},12773(ke,q,l){"use strict";var i=l(90258),g=l(61885),p=g([i("%String.prototype.indexOf%")]);ke.exports=function(o,e){var A=i(o,!!e);return"function"==typeof A&&p(o,".prototype.")>-1?g([A]):A}},3247(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform,p=l(78454).I,D=l(71993),o=l(41090);function e(A){g.call(this),this.hashMode="string"==typeof A,this.hashMode?this[A]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}D(e,g),e.prototype.update=function(A,h,d){var w=o(A,h),f=this._update(w);return this.hashMode?this:(d&&(f=this._toString(f,d)),f)},e.prototype.setAutoPadding=function(){},e.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},e.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},e.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},e.prototype._transform=function(A,h,d){var w;try{this.hashMode?this._update(A):this.push(this._update(A))}catch(f){w=f}finally{d(w)}},e.prototype._flush=function(A){var h;try{this.push(this.__final())}catch(d){h=d}A(h)},e.prototype._finalOrDigest=function(A){var h=this.__final()||i.alloc(0);return A&&(h=this._toString(h,A,!0)),h},e.prototype._toString=function(A,h,d){if(this._decoder||(this._decoder=new p(h),this._encoding=h),this._encoding!==h)throw new Error("can\u2019t switch encodings");var w=this._decoder.write(A);return d&&(w+=this._decoder.end()),w},ke.exports=e},24740(ke){!function(q){"use strict";var l={bytesToHex:function(p){return function i(p){return p.map(function(D){return function g(p,D){return p.length>D?p:Array(D-p.length+1).join("0")+p}(D.toString(16),2)}).join("")}(p)},hexToBytes:function(p){if(p.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===p.indexOf("0x")&&(p=p.slice(2)),p.match(/../g).map(function(D){return parseInt(D,16)})}};ke.exports?ke.exports=l:q.convertHex=l}(this)},10820(ke){!function(q){"use strict";var l={bytesToString:function(i){return i.map(function(g){return String.fromCharCode(g)}).join("")},stringToBytes:function(i){return i.split("").map(function(g){return g.charCodeAt(0)})}};l.UTF8={bytesToString:function(i){return decodeURIComponent(escape(l.bytesToString(i)))},stringToBytes:function(i){return l.stringToBytes(unescape(encodeURIComponent(i)))}},ke.exports?ke.exports=l:q.convertString=l}(this)},27637(ke,q,l){function j(Z){return Object.prototype.toString.call(Z)}q.isArray=function i(Z){return Array.isArray?Array.isArray(Z):"[object Array]"===j(Z)},q.isBoolean=function g(Z){return"boolean"==typeof Z},q.isNull=function p(Z){return null===Z},q.isNullOrUndefined=function D(Z){return null==Z},q.isNumber=function o(Z){return"number"==typeof Z},q.isString=function e(Z){return"string"==typeof Z},q.isSymbol=function A(Z){return"symbol"==typeof Z},q.isUndefined=function h(Z){return void 0===Z},q.isRegExp=function d(Z){return"[object RegExp]"===j(Z)},q.isObject=function w(Z){return"object"==typeof Z&&null!==Z},q.isDate=function f(Z){return"[object Date]"===j(Z)},q.isError=function F(Z){return"[object Error]"===j(Z)||Z instanceof Error},q.isFunction=function M(Z){return"function"==typeof Z},q.isPrimitive=function K(Z){return null===Z||"boolean"==typeof Z||"number"==typeof Z||"string"==typeof Z||"symbol"==typeof Z||typeof Z>"u"},q.isBuffer=l(83838).Buffer.isBuffer},87303(ke,q,l){var i=l(90518),g=l(89606);ke.exports=function(A){return new D(A)};var p={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function D(e){this.curveType=p[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function o(e,A,h){Array.isArray(e)||(e=e.toArray());var d=new Buffer(e);if(h&&d.length=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},67211(ke,q,l){"use strict";var i=l(71993),g=l(34725),p=l(36636),D=l(25443),o=l(3247);function e(A){o.call(this,"digest"),this._hash=A}i(e,o),e.prototype._update=function(A){this._hash.update(A)},e.prototype._final=function(){return this._hash.digest()},ke.exports=function(h){return"md5"===(h=h.toLowerCase())?new g:"rmd160"===h||"ripemd160"===h?new p:new e(D(h))}},83407(ke,q,l){var i=l(34725);ke.exports=function(g){return(new i).update(g).digest()}},56432(ke,q,l){"use strict";var i=l(71993),g=l(90509),p=l(3247),D=l(27054).Buffer,o=l(83407),e=l(36636),A=l(25443),h=D.alloc(128);function d(w,f){p.call(this,"digest"),"string"==typeof f&&(f=D.from(f));var F="sha512"===w||"sha384"===w?128:64;this._alg=w,this._key=f,f.length>F?f=("rmd160"===w?new e:A(w)).update(f).digest():f.lengtho?h=A(h):h.length3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new p("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new p("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new p("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new p("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,w=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,F=arguments.length>6&&arguments[6],M=!!D&&D(e,A);if(i)i(e,A,{configurable:null===f&&M?M.configurable:!f,enumerable:null===d&&M?M.enumerable:!d,value:h,writable:null===w&&M?M.writable:!w});else{if(!F&&(d||w||f))throw new g("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[A]=h}}},71549(ke,q,l){"use strict";q.utils=l(85671),q.Cipher=l(10219),q.DES=l(64166),q.CBC=l(88800),q.EDE=l(62122)},88800(ke,q,l){"use strict";var i=l(39210),g=l(71993),p={};function D(e){i.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var A=0;A0;A--)o+=this._buffer(D,o),e+=this._flushBuffer(h,e);return o+=this._buffer(D,o),h},g.prototype.final=function(D){var o,e;return D&&(o=this.update(D)),e="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),o?o.concat(e):e},g.prototype._pad=function(D,o){if(0===o)return!1;for(;o>>1];f=p.r28shl(f,K),F=p.r28shl(F,K),p.pc2(f,F,d.keys,M)}},e.prototype._update=function(d,w,f,F){var M=this._desState,K=p.readUInt32BE(d,w),j=p.readUInt32BE(d,w+4);p.ip(K,j,M.tmp,0),K=M.tmp[0],j=M.tmp[1],"encrypt"===this.type?this._encrypt(M,K,j,M.tmp,0):this._decrypt(M,K,j,M.tmp,0),j=M.tmp[1],p.writeUInt32BE(f,K=M.tmp[0],F),p.writeUInt32BE(f,j,F+4)},e.prototype._pad=function(d,w){if(!1===this.padding)return!1;for(var f=d.length-w,F=w;F>>0,K=ie}p.rip(j,K,F,M)},e.prototype._decrypt=function(d,w,f,F,M){for(var K=f,j=w,Z=d.keys.length-2;Z>=0;Z-=2){var ee=d.keys[Z],V=d.keys[Z+1];p.expand(K,d.tmp,0);var Q=p.substitute(ee^=d.tmp[0],V^=d.tmp[1]),ie=K;K=(j^p.permute(Q))>>>0,j=ie}p.rip(K,j,F,M)}},62122(ke,q,l){"use strict";var i=l(39210),g=l(71993),p=l(10219),D=l(64166);function o(A,h){i.equal(h.length,24,"Invalid key length");var d=h.slice(0,8),w=h.slice(8,16),f=h.slice(16,24);this.ciphers="encrypt"===A?[D.create({type:"encrypt",key:d}),D.create({type:"decrypt",key:w}),D.create({type:"encrypt",key:f})]:[D.create({type:"decrypt",key:f}),D.create({type:"encrypt",key:w}),D.create({type:"decrypt",key:d})]}function e(A){p.call(this,A);var h=new o(this.type,this.options.key);this._edeState=h}g(e,p),ke.exports=e,e.create=function(h){return new e(h)},e.prototype._update=function(h,d,w,f){var F=this._edeState;F.ciphers[0]._update(h,d,w,f),F.ciphers[1]._update(w,f,w,f),F.ciphers[2]._update(w,f,w,f)},e.prototype._pad=D.prototype._pad,e.prototype._unpad=D.prototype._unpad},85671(ke,q){"use strict";q.readUInt32BE=function(D,o){return(D[0+o]<<24|D[1+o]<<16|D[2+o]<<8|D[3+o])>>>0},q.writeUInt32BE=function(D,o,e){D[0+e]=o>>>24,D[1+e]=o>>>16&255,D[2+e]=o>>>8&255,D[3+e]=255&o},q.ip=function(D,o,e,A){for(var h=0,d=0,w=6;w>=0;w-=2){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>>f+w&1}for(w=6;w>=0;w-=2){for(f=1;f<=25;f+=8)d<<=1,d|=o>>>f+w&1;for(f=1;f<=25;f+=8)d<<=1,d|=D>>>f+w&1}e[A+0]=h>>>0,e[A+1]=d>>>0},q.rip=function(D,o,e,A){for(var h=0,d=0,w=0;w<4;w++)for(var f=24;f>=0;f-=8)h<<=1,h|=o>>>f+w&1,h<<=1,h|=D>>>f+w&1;for(w=4;w<8;w++)for(f=24;f>=0;f-=8)d<<=1,d|=o>>>f+w&1,d<<=1,d|=D>>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.pc1=function(D,o,e,A){for(var h=0,d=0,w=7;w>=5;w--){for(var f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(f=0;f<=24;f+=8)h<<=1,h|=D>>f+w&1}for(f=0;f<=24;f+=8)h<<=1,h|=o>>f+w&1;for(w=1;w<=3;w++){for(f=0;f<=24;f+=8)d<<=1,d|=o>>f+w&1;for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1}for(f=0;f<=24;f+=8)d<<=1,d|=D>>f+w&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.r28shl=function(D,o){return D<>>28-o};var l=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];q.pc2=function(D,o,e,A){for(var h=0,d=0,w=l.length>>>1,f=0;f>>l[f]&1;for(f=w;f>>l[f]&1;e[A+0]=h>>>0,e[A+1]=d>>>0},q.expand=function(D,o,e){var A=0,h=0;A=(1&D)<<5|D>>>27;for(var d=23;d>=15;d-=4)A<<=6,A|=D>>>d&63;for(d=11;d>=3;d-=4)h|=D>>>d&63,h<<=6;h|=(31&D)<<1|D>>>31,o[e+0]=A>>>0,o[e+1]=h>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];q.substitute=function(D,o){for(var e=0,A=0;A<4;A++)e<<=4,e|=i[64*A+(D>>>18-6*A&63)];for(A=0;A<4;A++)e<<=4,e|=i[256+64*A+(o>>>18-6*A&63)];return e>>>0};var g=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];q.permute=function(D){for(var o=0,e=0;e>>g[e]&1;return o>>>0},q.padSplit=function(D,o,e){for(var A=D.toString(2);A.length_e;)se.ishrn(1);if(se.isEven()&&se.iadd(e),se.testn(1)||se.iadd(A),ye.cmp(A)){if(!ye.cmp(h))for(;se.mod(f).cmp(F);)se.iadd(j)}else for(;se.mod(p).cmp(K);)se.iadd(j);if(Q(pe=se.shrn(1))&&Q(se)&&$(pe)&&$(se)&&o.test(pe)&&o.test(se))return se}}},38280(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(66089).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},80243(ke){"use strict";var q={single_source_shortest_paths:function(l,i,g){var p={},D={};D[i]=0;var e,A,h,d,w,F,o=q.PriorityQueue.make();for(o.push(i,0);!o.empty();)for(h in d=(e=o.pop()).cost,w=l[A=e.value]||{})w.hasOwnProperty(h)&&(F=d+w[h],(typeof D[h]>"u"||D[h]>F)&&(D[h]=F,o.push(h,F),p[h]=A));if(typeof g<"u"&&typeof D[g]>"u"){var j=["Could not find a path from ",i," to ",g,"."].join("");throw new Error(j)}return p},extract_shortest_path_from_predecessor_list:function(l,i){for(var g=[],p=i;p;)g.push(p),p=l[p];return g.reverse(),g},find_path:function(l,i,g){var p=q.single_source_shortest_paths(l,i,g);return q.extract_shortest_path_from_predecessor_list(p,g)},PriorityQueue:{make:function(l){var p,i=q.PriorityQueue,g={};for(p in l=l||{},i)i.hasOwnProperty(p)&&(g[p]=i[p]);return g.queue=[],g.sorter=l.sorter||i.default_sorter,g},default_sorter:function(l,i){return l.cost-i.cost},push:function(l,i){this.queue.push({value:l,cost:i}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};ke.exports=q},63361(ke,q,l){"use strict";var p,i=l(61885),g=l(83798);try{p=[].__proto__===Array.prototype}catch(A){if(!A||"object"!=typeof A||!("code"in A)||"ERR_PROTO_ACCESS"!==A.code)throw A}var D=!!p&&g&&g(Object.prototype,"__proto__"),o=Object,e=o.getPrototypeOf;ke.exports=D&&"function"==typeof D.get?i([D.get]):"function"==typeof e&&function(h){return e(null==h?h:o(h))}},90518(ke,q,l){"use strict";var i=q;i.version=l(1636).rE,i.utils=l(3136),i.rand=l(35294),i.curve=l(8729),i.curves=l(23401),i.ec=l(29042),i.eddsa=l(83045)},98828(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.getNAF,D=g.getJSF,o=g.assert;function e(h,d){this.type=h,this.p=new i(d.p,16),this.red=d.prime?i.red(d.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=d.n&&new i(d.n,16),this.g=d.g&&this.pointFromJSON(d.g,d.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var w=this.n&&this.p.div(this.n);!w||w.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function A(h,d){this.curve=h,this.type=d,this.precomputed=null}ke.exports=e,e.prototype.point=function(){throw new Error("Not implemented")},e.prototype.validate=function(){throw new Error("Not implemented")},e.prototype._fixedNafMul=function(d,w){o(d.precomputed);var f=d._getDoubles(),F=p(w,1,this._bitLength),M=(1<=j;ee--)Z=(Z<<1)+F[ee];K.push(Z)}for(var V=this.jpoint(null,null,null),Q=this.jpoint(null,null,null),$=M;$>0;$--){for(j=0;j=0;Z--){for(var ee=0;Z>=0&&0===K[Z];Z--)ee++;if(Z>=0&&ee++,j=j.dblp(ee),Z<0)break;var V=K[Z];o(0!==V),j="affine"===d.type?j.mixedAdd(V>0?M[V-1>>1]:M[-V-1>>1].neg()):j.add(V>0?M[V-1>>1]:M[-V-1>>1].neg())}return"affine"===d.type?j.toP():j},e.prototype._wnafMulAdd=function(d,w,f,F,M){var V,Q,$,K=this._wnafT1,j=this._wnafT2,Z=this._wnafT3,ee=0;for(V=0;V=1;V-=2){var _e=V-1,ye=V;if(1===K[_e]&&1===K[ye]){var se=[w[_e],null,null,w[ye]];0===w[_e].y.cmp(w[ye].y)?(se[1]=w[_e].add(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg())):0===w[_e].y.cmp(w[ye].y.redNeg())?(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].add(w[ye].neg())):(se[1]=w[_e].toJ().mixedAdd(w[ye]),se[2]=w[_e].toJ().mixedAdd(w[ye].neg()));var pe=[-3,-1,-5,-7,0,7,5,1,3],Ee=D(f[_e],f[ye]);for(ee=Math.max(Ee[0].length,ee),Z[_e]=new Array(ee),Z[ye]=new Array(ee),Q=0;Q=0;V--){for(var u=0;V>=0;){var _=!0;for(Q=0;Q=0&&u++,s=s.dblp(u),V<0)break;for(Q=0;Q0?$=j[Q][T-1>>1]:T<0&&($=j[Q][-T-1>>1].neg()),s="affine"===$.type?s.mixedAdd($):s.add($))}}for(V=0;V=Math.ceil((d.bitLength()+1)/w.step)},A.prototype._getDoubles=function(d,w){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var f=[this],F=this,M=0;M":""},A.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},A.prototype._extDbl=function(){var d=this.x.redSqr(),w=this.y.redSqr(),f=this.z.redSqr();f=f.redIAdd(f);var F=this.curve._mulA(d),M=this.x.redAdd(this.y).redSqr().redISub(d).redISub(w),K=F.redAdd(w),j=K.redSub(f),Z=F.redSub(w),ee=M.redMul(j),V=K.redMul(Z),Q=M.redMul(Z),$=j.redMul(K);return this.curve.point(ee,V,$,Q)},A.prototype._projDbl=function(){var F,M,K,j,Z,ee,d=this.x.redAdd(this.y).redSqr(),w=this.x.redSqr(),f=this.y.redSqr();if(this.curve.twisted){var V=(j=this.curve._mulA(w)).redAdd(f);this.zOne?(F=d.redSub(w).redSub(f).redMul(V.redSub(this.curve.two)),M=V.redMul(j.redSub(f)),K=V.redSqr().redSub(V).redSub(V)):(Z=this.z.redSqr(),ee=V.redSub(Z).redISub(Z),F=d.redSub(w).redISub(f).redMul(ee),M=V.redMul(j.redSub(f)),K=V.redMul(ee))}else j=w.redAdd(f),Z=this.curve._mulC(this.z).redSqr(),ee=j.redSub(Z).redSub(Z),F=this.curve._mulC(d.redISub(j)).redMul(ee),M=this.curve._mulC(j).redMul(w.redISub(f)),K=j.redMul(ee);return this.curve.point(F,M,K)},A.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},A.prototype._extAdd=function(d){var w=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),f=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),F=this.t.redMul(this.curve.dd).redMul(d.t),M=this.z.redMul(d.z.redAdd(d.z)),K=f.redSub(w),j=M.redSub(F),Z=M.redAdd(F),ee=f.redAdd(w),V=K.redMul(j),Q=Z.redMul(ee),$=K.redMul(ee),ie=j.redMul(Z);return this.curve.point(V,Q,ie,$)},A.prototype._projAdd=function(d){var Q,$,w=this.z.redMul(d.z),f=w.redSqr(),F=this.x.redMul(d.x),M=this.y.redMul(d.y),K=this.curve.d.redMul(F).redMul(M),j=f.redSub(K),Z=f.redAdd(K),ee=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(F).redISub(M),V=w.redMul(j).redMul(ee);return this.curve.twisted?(Q=w.redMul(Z).redMul(M.redSub(this.curve._mulA(F))),$=j.redMul(Z)):(Q=w.redMul(Z).redMul(M.redSub(F)),$=this.curve._mulC(j).redMul(Z)),this.curve.point(V,Q,$)},A.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},A.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},A.prototype.mulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!1)},A.prototype.jmulAdd=function(d,w,f){return this.curve._wnafMulAdd(1,[this,w],[d,f],2,!0)},A.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},A.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},A.prototype.getX=function(){return this.normalize(),this.x.fromRed()},A.prototype.getY=function(){return this.normalize(),this.y.fromRed()},A.prototype.eq=function(d){return this===d||0===this.getX().cmp(d.getX())&&0===this.getY().cmp(d.getY())},A.prototype.eqXToP=function(d){var w=d.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(w))return!0;for(var f=d.clone(),F=this.curve.redN.redMul(this.z);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(w.redIAdd(F),0===this.x.cmp(w))return!0}},A.prototype.toP=A.prototype.normalize,A.prototype.mixedAdd=A.prototype.add},8729(ke,q,l){"use strict";var i=q;i.base=l(98828),i.short=l(68075),i.mont=l(64947),i.edwards=l(55537)},64947(ke,q,l){"use strict";var i=l(88723),g=l(71993),p=l(98828),D=l(3136);function o(A){p.call(this,"mont",A),this.a=new i(A.a,16).toRed(this.red),this.b=new i(A.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function e(A,h,d){p.BasePoint.call(this,A,"projective"),null===h&&null===d?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(h,16),this.z=new i(d,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}g(o,p),ke.exports=o,o.prototype.validate=function(h){var d=h.normalize().x,w=d.redSqr(),f=w.redMul(d).redAdd(w.redMul(this.a)).redAdd(d);return 0===f.redSqrt().redSqr().cmp(f)},g(e,p.BasePoint),o.prototype.decodePoint=function(h,d){return this.point(D.toArray(h,d),1)},o.prototype.point=function(h,d){return new e(this,h,d)},o.prototype.pointFromJSON=function(h){return e.fromJSON(this,h)},e.prototype.precompute=function(){},e.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},e.fromJSON=function(h,d){return new e(h,d[0],d[1]||h.one)},e.prototype.inspect=function(){return this.isInfinity()?"":""},e.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},e.prototype.dbl=function(){var d=this.x.redAdd(this.z).redSqr(),f=this.x.redSub(this.z).redSqr(),F=d.redSub(f),M=d.redMul(f),K=F.redMul(f.redAdd(this.curve.a24.redMul(F)));return this.curve.point(M,K)},e.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.diffAdd=function(h,d){var w=this.x.redAdd(this.z),f=this.x.redSub(this.z),F=h.x.redAdd(h.z),K=h.x.redSub(h.z).redMul(w),j=F.redMul(f),Z=d.z.redMul(K.redAdd(j).redSqr()),ee=d.x.redMul(K.redISub(j).redSqr());return this.curve.point(Z,ee)},e.prototype.mul=function(h){for(var d=h.clone(),w=this,f=this.curve.point(null,null),M=[];0!==d.cmpn(0);d.iushrn(1))M.push(d.andln(1));for(var K=M.length-1;K>=0;K--)0===M[K]?(w=w.diffAdd(f,this),f=f.dbl()):(f=w.diffAdd(f,this),w=w.dbl());return f},e.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},e.prototype.eq=function(h){return 0===this.getX().cmp(h.getX())},e.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},68075(ke,q,l){"use strict";var i=l(3136),g=l(88723),p=l(71993),D=l(98828),o=i.assert;function e(d){D.call(this,"short",d),this.a=new g(d.a,16).toRed(this.red),this.b=new g(d.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(d),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function A(d,w,f,F){D.BasePoint.call(this,d,"affine"),null===w&&null===f?(this.x=null,this.y=null,this.inf=!0):(this.x=new g(w,16),this.y=new g(f,16),F&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function h(d,w,f,F){D.BasePoint.call(this,d,"jacobian"),null===w&&null===f&&null===F?(this.x=this.curve.one,this.y=this.curve.one,this.z=new g(0)):(this.x=new g(w,16),this.y=new g(f,16),this.z=new g(F,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}p(e,D),ke.exports=e,e.prototype._getEndomorphism=function(w){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var f,F;if(w.beta)f=new g(w.beta,16).toRed(this.red);else{var M=this._getEndoRoots(this.p);f=(f=M[0].cmp(M[1])<0?M[0]:M[1]).toRed(this.red)}if(w.lambda)F=new g(w.lambda,16);else{var K=this._getEndoRoots(this.n);0===this.g.mul(K[0]).x.cmp(this.g.x.redMul(f))?F=K[0]:o(0===this.g.mul(F=K[1]).x.cmp(this.g.x.redMul(f)))}return{beta:f,lambda:F,basis:w.basis?w.basis.map(function(Z){return{a:new g(Z.a,16),b:new g(Z.b,16)}}):this._getEndoBasis(F)}}},e.prototype._getEndoRoots=function(w){var f=w===this.p?this.red:g.mont(w),F=new g(2).toRed(f).redInvm(),M=F.redNeg(),K=new g(3).toRed(f).redNeg().redSqrt().redMul(F);return[M.redAdd(K).fromRed(),M.redSub(K).fromRed()]},e.prototype._getEndoBasis=function(w){for(var V,Q,$,ie,_e,ye,se,Ee,L,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=w,M=this.n.clone(),K=new g(1),j=new g(0),Z=new g(0),ee=new g(1),pe=0;0!==F.cmpn(0);){var t=M.div(F);Ee=M.sub(t.mul(F)),L=Z.sub(t.mul(K));var s=ee.sub(t.mul(j));if(!$&&Ee.cmp(f)<0)V=se.neg(),Q=K,$=Ee.neg(),ie=L;else if($&&2===++pe)break;se=Ee,M=F,F=Ee,Z=K,K=L,ee=j,j=s}_e=Ee.neg(),ye=L;var m=$.sqr().add(ie.sqr());return _e.sqr().add(ye.sqr()).cmp(m)>=0&&(_e=V,ye=Q),$.negative&&($=$.neg(),ie=ie.neg()),_e.negative&&(_e=_e.neg(),ye=ye.neg()),[{a:$,b:ie},{a:_e,b:ye}]},e.prototype._endoSplit=function(w){var f=this.endo.basis,F=f[0],M=f[1],K=M.b.mul(w).divRound(this.n),j=F.b.neg().mul(w).divRound(this.n),Z=K.mul(F.a),ee=j.mul(M.a),V=K.mul(F.b),Q=j.mul(M.b);return{k1:w.sub(Z).sub(ee),k2:V.add(Q).neg()}},e.prototype.pointFromX=function(w,f){(w=new g(w,16)).red||(w=w.toRed(this.red));var F=w.redSqr().redMul(w).redIAdd(w.redMul(this.a)).redIAdd(this.b),M=F.redSqrt();if(0!==M.redSqr().redSub(F).cmp(this.zero))throw new Error("invalid point");var K=M.fromRed().isOdd();return(f&&!K||!f&&K)&&(M=M.redNeg()),this.point(w,M)},e.prototype.validate=function(w){if(w.inf)return!0;var f=w.x,F=w.y,M=this.a.redMul(f),K=f.redSqr().redMul(f).redIAdd(M).redIAdd(this.b);return 0===F.redSqr().redISub(K).cmpn(0)},e.prototype._endoWnafMulAdd=function(w,f,F){for(var M=this._endoWnafT1,K=this._endoWnafT2,j=0;j":""},A.prototype.isInfinity=function(){return this.inf},A.prototype.add=function(w){if(this.inf)return w;if(w.inf)return this;if(this.eq(w))return this.dbl();if(this.neg().eq(w))return this.curve.point(null,null);if(0===this.x.cmp(w.x))return this.curve.point(null,null);var f=this.y.redSub(w.y);0!==f.cmpn(0)&&(f=f.redMul(this.x.redSub(w.x).redInvm()));var F=f.redSqr().redISub(this.x).redISub(w.x),M=f.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,M)},A.prototype.dbl=function(){if(this.inf)return this;var w=this.y.redAdd(this.y);if(0===w.cmpn(0))return this.curve.point(null,null);var f=this.curve.a,F=this.x.redSqr(),M=w.redInvm(),K=F.redAdd(F).redIAdd(F).redIAdd(f).redMul(M),j=K.redSqr().redISub(this.x.redAdd(this.x)),Z=K.redMul(this.x.redSub(j)).redISub(this.y);return this.curve.point(j,Z)},A.prototype.getX=function(){return this.x.fromRed()},A.prototype.getY=function(){return this.y.fromRed()},A.prototype.mul=function(w){return w=new g(w,16),this.isInfinity()?this:this._hasDoubles(w)?this.curve._fixedNafMul(this,w):this.curve.endo?this.curve._endoWnafMulAdd([this],[w]):this.curve._wnafMul(this,w)},A.prototype.mulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K):this.curve._wnafMulAdd(1,M,K,2)},A.prototype.jmulAdd=function(w,f,F){var M=[this,f],K=[w,F];return this.curve.endo?this.curve._endoWnafMulAdd(M,K,!0):this.curve._wnafMulAdd(1,M,K,2,!0)},A.prototype.eq=function(w){return this===w||this.inf===w.inf&&(this.inf||0===this.x.cmp(w.x)&&0===this.y.cmp(w.y))},A.prototype.neg=function(w){if(this.inf)return this;var f=this.curve.point(this.x,this.y.redNeg());if(w&&this.precomputed){var F=this.precomputed,M=function(K){return K.neg()};f.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(M)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(M)}}}return f},A.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},p(h,D.BasePoint),e.prototype.jpoint=function(w,f,F){return new h(this,w,f,F)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var w=this.z.redInvm(),f=w.redSqr(),F=this.x.redMul(f),M=this.y.redMul(f).redMul(w);return this.curve.point(F,M)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(w){if(this.isInfinity())return w;if(w.isInfinity())return this;var f=w.z.redSqr(),F=this.z.redSqr(),M=this.x.redMul(f),K=w.x.redMul(F),j=this.y.redMul(f.redMul(w.z)),Z=w.y.redMul(F.redMul(this.z)),ee=M.redSub(K),V=j.redSub(Z);if(0===ee.cmpn(0))return 0!==V.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Q=ee.redSqr(),$=Q.redMul(ee),ie=M.redMul(Q),_e=V.redSqr().redIAdd($).redISub(ie).redISub(ie),ye=V.redMul(ie.redISub(_e)).redISub(j.redMul($)),se=this.z.redMul(w.z).redMul(ee);return this.curve.jpoint(_e,ye,se)},h.prototype.mixedAdd=function(w){if(this.isInfinity())return w.toJ();if(w.isInfinity())return this;var f=this.z.redSqr(),F=this.x,M=w.x.redMul(f),K=this.y,j=w.y.redMul(f).redMul(this.z),Z=F.redSub(M),ee=K.redSub(j);if(0===Z.cmpn(0))return 0!==ee.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var V=Z.redSqr(),Q=V.redMul(Z),$=F.redMul(V),ie=ee.redSqr().redIAdd(Q).redISub($).redISub($),_e=ee.redMul($.redISub(ie)).redISub(K.redMul(Q)),ye=this.z.redMul(Z);return this.curve.jpoint(ie,_e,ye)},h.prototype.dblp=function(w){if(0===w)return this;if(this.isInfinity())return this;if(!w)return this.dbl();var f;if(this.curve.zeroA||this.curve.threeA){var F=this;for(f=0;f=0)return!1;if(F.redIAdd(K),0===this.x.cmp(F))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},23401(ke,q,l){"use strict";var h,i=q,g=l(52529),p=l(8729),o=l(3136).assert;function e(d){this.curve="short"===d.type?new p.short(d):"edwards"===d.type?new p.edwards(d):new p.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function A(d,w){Object.defineProperty(i,d,{configurable:!0,enumerable:!0,get:function(){var f=new e(w);return Object.defineProperty(i,d,{configurable:!0,enumerable:!0,value:f}),f}})}i.PresetCurve=e,A("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:g.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),A("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:g.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),A("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:g.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),A("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:g.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),A("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:g.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),A("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:g.sha256,gRed:!1,g:["9"]}),A("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:g.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{h=l(51416)}catch{h=void 0}A("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:g.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",h]})},29042(ke,q,l){"use strict";var i=l(88723),g=l(33556),p=l(3136),D=l(23401),o=l(35294),e=p.assert,A=l(60541),h=l(40484);function d(w){if(!(this instanceof d))return new d(w);"string"==typeof w&&(e(Object.prototype.hasOwnProperty.call(D,w),"Unknown curve "+w),w=D[w]),w instanceof D.PresetCurve&&(w={curve:w}),this.curve=w.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=w.curve.g,this.g.precompute(w.curve.n.bitLength()+1),this.hash=w.hash||w.curve.hash}ke.exports=d,d.prototype.keyPair=function(f){return new A(this,f)},d.prototype.keyFromPrivate=function(f,F){return A.fromPrivate(this,f,F)},d.prototype.keyFromPublic=function(f,F){return A.fromPublic(this,f,F)},d.prototype.genKeyPair=function(f){f||(f={});for(var F=new g({hash:this.hash,pers:f.pers,persEnc:f.persEnc||"utf8",entropy:f.entropy||o(this.hash.hmacStrength),entropyEnc:f.entropy&&f.entropyEnc||"utf8",nonce:this.n.toArray()}),M=this.n.byteLength(),K=this.n.sub(new i(2));;){var j=new i(F.generate(M));if(!(j.cmp(K)>0))return j.iaddn(1),this.keyFromPrivate(j)}},d.prototype._truncateToN=function(f,F,M){var K;if(i.isBN(f)||"number"==typeof f)K=(f=new i(f,16)).byteLength();else if("object"==typeof f)K=f.length,f=new i(f,16);else{var j=f.toString();K=j.length+1>>>1,f=new i(j,16)}"number"!=typeof M&&(M=8*K);var Z=M-this.n.bitLength();return Z>0&&(f=f.ushrn(Z)),!F&&f.cmp(this.n)>=0?f.sub(this.n):f},d.prototype.sign=function(f,F,M,K){if("object"==typeof M&&(K=M,M=null),K||(K={}),"string"!=typeof f&&"number"!=typeof f&&!i.isBN(f)){e("object"==typeof f&&f&&"number"==typeof f.length,"Expected message to be an array-like, a hex string, or a BN instance"),e(f.length>>>0===f.length);for(var j=0;j=0)){var ye=this.g.mul(_e);if(!ye.isInfinity()){var se=ye.getX(),pe=se.umod(this.n);if(0!==pe.cmpn(0)){var Ee=_e.invm(this.n).mul(pe.mul(F.getPrivate()).iadd(f));if(0!==(Ee=Ee.umod(this.n)).cmpn(0)){var L=(ye.getY().isOdd()?1:0)|(0!==se.cmp(pe)?2:0);return K.canonical&&Ee.cmp(this.nh)>0&&(Ee=this.n.sub(Ee),L^=1),new h({r:pe,s:Ee,recoveryParam:L})}}}}}},d.prototype.verify=function(f,F,M,K,j){j||(j={}),f=this._truncateToN(f,!1,j.msgBitLength),M=this.keyFromPublic(M,K);var Z=(F=new h(F,"hex")).r,ee=F.s;if(Z.cmpn(1)<0||Z.cmp(this.n)>=0||ee.cmpn(1)<0||ee.cmp(this.n)>=0)return!1;var ie,V=ee.invm(this.n),Q=V.mul(f).umod(this.n),$=V.mul(Z).umod(this.n);return this.curve._maxwellTrick?!(ie=this.g.jmulAdd(Q,M.getPublic(),$)).isInfinity()&&ie.eqXToP(Z):!(ie=this.g.mulAdd(Q,M.getPublic(),$)).isInfinity()&&0===ie.getX().umod(this.n).cmp(Z)},d.prototype.recoverPubKey=function(w,f,F,M){e((3&F)===F,"The recovery param is more than two bits"),f=new h(f,M);var K=this.n,j=new i(w),Z=f.r,ee=f.s,V=1&F,Q=F>>1;if(Z.cmp(this.curve.p.umod(this.curve.n))>=0&&Q)throw new Error("Unable to find sencond key candinate");Z=this.curve.pointFromX(Q?Z.add(this.curve.n):Z,V);var $=f.r.invm(K),ie=K.sub(j).mul($).umod(K),_e=ee.mul($).umod(K);return this.g.mulAdd(ie,Z,_e)},d.prototype.getKeyRecoveryParam=function(w,f,F,M){if(null!==(f=new h(f,M)).recoveryParam)return f.recoveryParam;for(var K=0;K<4;K++){var j;try{j=this.recoverPubKey(w,f,K)}catch{continue}if(j.eq(F))return K}throw new Error("Unable to find valid recovery factor")}},60541(ke,q,l){"use strict";var i=l(88723),p=l(3136).assert;function D(o,e){this.ec=o,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}ke.exports=D,D.fromPublic=function(e,A,h){return A instanceof D?A:new D(e,{pub:A,pubEnc:h})},D.fromPrivate=function(e,A,h){return A instanceof D?A:new D(e,{priv:A,privEnc:h})},D.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},D.prototype.getPublic=function(e,A){return"string"==typeof e&&(A=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),A?this.pub.encode(A,e):this.pub},D.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},D.prototype._importPrivate=function(e,A){this.priv=new i(e,A||16),this.priv=this.priv.umod(this.ec.curve.n)},D.prototype._importPublic=function(e,A){if(e.x||e.y)return"mont"===this.ec.curve.type?p(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&p(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,A)},D.prototype.derive=function(e){return e.validate()||p(e.validate(),"public point not validated"),e.mul(this.priv).getX()},D.prototype.sign=function(e,A,h){return this.ec.sign(e,this,A,h)},D.prototype.verify=function(e,A,h){return this.ec.verify(e,A,this,void 0,h)},D.prototype.inspect=function(){return""}},40484(ke,q,l){"use strict";var i=l(88723),g=l(3136),p=g.assert;function D(d,w){if(d instanceof D)return d;this._importDER(d,w)||(p(d.r&&d.s,"Signature without r or s"),this.r=new i(d.r,16),this.s=new i(d.s,16),this.recoveryParam=void 0===d.recoveryParam?null:d.recoveryParam)}function o(){this.place=0}function e(d,w){var f=d[w.place++];if(!(128&f))return f;var F=15&f;if(0===F||F>4||0===d[w.place])return!1;for(var M=0,K=0,j=w.place;K>>=0;return!(M<=127)&&(w.place=j,M)}function A(d){for(var w=0,f=d.length-1;!d[w]&&!(128&d[w+1])&&w>>3);for(d.push(128|f);--f;)d.push(w>>>(f<<3)&255);d.push(w)}}ke.exports=D,D.prototype._importDER=function(w,f){w=g.toArray(w,f);var F=new o;if(48!==w[F.place++])return!1;var M=e(w,F);if(!1===M||M+F.place!==w.length||2!==w[F.place++])return!1;var K=e(w,F);if(!1===K||128&w[F.place])return!1;var j=w.slice(F.place,K+F.place);if(F.place+=K,2!==w[F.place++])return!1;var Z=e(w,F);if(!1===Z||w.length!==Z+F.place||128&w[F.place])return!1;var ee=w.slice(F.place,Z+F.place);if(0===j[0]){if(!(128&j[1]))return!1;j=j.slice(1)}if(0===ee[0]){if(!(128&ee[1]))return!1;ee=ee.slice(1)}return this.r=new i(j),this.s=new i(ee),this.recoveryParam=null,!0},D.prototype.toDER=function(w){var f=this.r.toArray(),F=this.s.toArray();for(128&f[0]&&(f=[0].concat(f)),128&F[0]&&(F=[0].concat(F)),f=A(f),F=A(F);!(F[0]||128&F[1]);)F=F.slice(1);var M=[2];h(M,f.length),(M=M.concat(f)).push(2),h(M,F.length);var K=M.concat(F),j=[48];return h(j,K.length),j=j.concat(K),g.encode(j,w)}},83045(ke,q,l){"use strict";var i=l(52529),g=l(23401),p=l(3136),D=p.assert,o=p.parseBytes,e=l(87222),A=l(5451);function h(d){if(D("ed25519"===d,"only tested with ed25519 so far"),!(this instanceof h))return new h(d);this.curve=d=g[d].curve,this.g=d.g,this.g.precompute(d.n.bitLength()+1),this.pointClass=d.point().constructor,this.encodingLength=Math.ceil(d.n.bitLength()/8),this.hash=i.sha512}ke.exports=h,h.prototype.sign=function(w,f){w=o(w);var F=this.keyFromSecret(f),M=this.hashInt(F.messagePrefix(),w),K=this.g.mul(M),j=this.encodePoint(K),Z=this.hashInt(j,F.pubBytes(),w).mul(F.priv()),ee=M.add(Z).umod(this.curve.n);return this.makeSignature({R:K,S:ee,Rencoded:j})},h.prototype.verify=function(w,f,F){if(w=o(w),(f=this.makeSignature(f)).S().gte(f.eddsa.curve.n)||f.S().isNeg())return!1;var M=this.keyFromPublic(F),K=this.hashInt(f.Rencoded(),M.pubBytes(),w),j=this.g.mul(f.S());return f.R().add(M.pub().mul(K)).eq(j)},h.prototype.hashInt=function(){for(var w=this.hash(),f=0;f(j>>1)-1?(j>>1)-V:V):ee=0,M[K]=ee,Z.iushrn(1)}return M},i.getJSF=function e(w,f){var F=[[],[]];w=w.clone(),f=f.clone();for(var j,M=0,K=0;w.cmpn(-M)>0||f.cmpn(-K)>0;){var V,Q,Z=w.andln(3)+M&3,ee=f.andln(3)+K&3;3===Z&&(Z=-1),3===ee&&(ee=-1),V=1&Z?3!=(j=w.andln(7)+M&7)&&5!==j||2!==ee?Z:-Z:0,F[0].push(V),Q=1&ee?3!=(j=f.andln(7)+K&7)&&5!==j||2!==Z?ee:-ee:0,F[1].push(Q),2*M===V+1&&(M=1-M),2*K===Q+1&&(K=1-K),w.iushrn(1),f.iushrn(1)}return F},i.cachedProperty=function A(w,f,F){var M="_"+f;w.prototype[f]=function(){return void 0!==this[M]?this[M]:this[M]=F.call(this)}},i.parseBytes=function h(w){return"string"==typeof w?i.toArray(w,"hex"):w},i.intFromLE=function d(w){return new g(w,"hex","le")}},88723(ke,q,l){!function(i,g){"use strict";function p(L,t){if(!L)throw new Error(t||"Assertion failed")}function D(L,t){L.super_=t;var s=function(){};s.prototype=t.prototype,L.prototype=new s,L.prototype.constructor=L}function o(L,t,s){if(o.isBN(L))return L;this.negative=0,this.words=null,this.length=0,this.red=null,null!==L&&(("le"===t||"be"===t)&&(s=t,t=10),this._init(L||0,t||10,s||"be"))}var e;"object"==typeof i?i.exports=o:g.BN=o,o.BN=o,o.wordSize=26;try{e=typeof window<"u"&&typeof window.Buffer<"u"?window.Buffer:l(79368).Buffer}catch{}function A(L,t){var s=L.charCodeAt(t);return s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},4570(ke){"use strict";var q=Object.defineProperty||!1;if(q)try{q({},"a",{value:1})}catch{q=!1}ke.exports=q},1756(ke){"use strict";ke.exports=EvalError},37640(ke){"use strict";ke.exports=Error},77933(ke){"use strict";ke.exports=RangeError},6613(ke){"use strict";ke.exports=ReferenceError},58413(ke){"use strict";ke.exports=SyntaxError},46758(ke){"use strict";ke.exports=TypeError},5286(ke){"use strict";ke.exports=URIError},65891(ke){"use strict";ke.exports=Object},44356(ke){"use strict";var i,q="object"==typeof Reflect?Reflect:null,l=q&&"function"==typeof q.apply?q.apply:function($,ie,_e){return Function.prototype.apply.call($,ie,_e)};i=q&&"function"==typeof q.ownKeys?q.ownKeys:Object.getOwnPropertySymbols?function($){return Object.getOwnPropertyNames($).concat(Object.getOwnPropertySymbols($))}:function($){return Object.getOwnPropertyNames($)};var p=Number.isNaN||function($){return $!=$};function D(){D.init.call(this)}ke.exports=D,ke.exports.once=function Z(Q,$){return new Promise(function(ie,_e){function ye(pe){Q.removeListener($,se),_e(pe)}function se(){"function"==typeof Q.removeListener&&Q.removeListener("error",ye),ie([].slice.call(arguments))}V(Q,$,se,{once:!0}),"error"!==$&&function ee(Q,$,ie){"function"==typeof Q.on&&V(Q,"error",$,ie)}(Q,ye,{once:!0})})},D.EventEmitter=D,D.prototype._events=void 0,D.prototype._eventsCount=0,D.prototype._maxListeners=void 0;var o=10;function e(Q){if("function"!=typeof Q)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Q)}function A(Q){return void 0===Q._maxListeners?D.defaultMaxListeners:Q._maxListeners}function h(Q,$,ie,_e){var ye,se,pe;if(e(ie),void 0===(se=Q._events)?(se=Q._events=Object.create(null),Q._eventsCount=0):(void 0!==se.newListener&&(Q.emit("newListener",$,ie.listener?ie.listener:ie),se=Q._events),pe=se[$]),void 0===pe)pe=se[$]=ie,++Q._eventsCount;else if("function"==typeof pe?pe=se[$]=_e?[ie,pe]:[pe,ie]:_e?pe.unshift(ie):pe.push(ie),(ye=A(Q))>0&&pe.length>ye&&!pe.warned){pe.warned=!0;var Ee=new Error("Possible EventEmitter memory leak detected. "+pe.length+" "+String($)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ee.name="MaxListenersExceededWarning",Ee.emitter=Q,Ee.type=$,Ee.count=pe.length,function g(Q){console&&console.warn&&console.warn(Q)}(Ee)}return Q}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function w(Q,$,ie){var _e={fired:!1,wrapFn:void 0,target:Q,type:$,listener:ie},ye=d.bind(_e);return ye.listener=ie,_e.wrapFn=ye,ye}function f(Q,$,ie){var _e=Q._events;if(void 0===_e)return[];var ye=_e[$];return void 0===ye?[]:"function"==typeof ye?ie?[ye.listener||ye]:[ye]:ie?function j(Q){for(var $=new Array(Q.length),ie=0;ie<$.length;++ie)$[ie]=Q[ie].listener||Q[ie];return $}(ye):M(ye,ye.length)}function F(Q){var $=this._events;if(void 0!==$){var ie=$[Q];if("function"==typeof ie)return 1;if(void 0!==ie)return ie.length}return 0}function M(Q,$){for(var ie=new Array($),_e=0;_e<$;++_e)ie[_e]=Q[_e];return ie}function V(Q,$,ie,_e){if("function"==typeof Q.on)_e.once?Q.once($,ie):Q.on($,ie);else{if("function"!=typeof Q.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Q);Q.addEventListener($,function ye(se){_e.once&&Q.removeEventListener($,ye),ie(se)})}}Object.defineProperty(D,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(Q){if("number"!=typeof Q||Q<0||p(Q))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Q+".");o=Q}}),D.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},D.prototype.setMaxListeners=function($){if("number"!=typeof $||$<0||p($))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+$+".");return this._maxListeners=$,this},D.prototype.getMaxListeners=function(){return A(this)},D.prototype.emit=function($){for(var ie=[],_e=1;_e0&&(pe=ie[0]),pe instanceof Error)throw pe;var Ee=new Error("Unhandled error."+(pe?" ("+pe.message+")":""));throw Ee.context=pe,Ee}var L=se[$];if(void 0===L)return!1;if("function"==typeof L)l(L,this,ie);else{var t=L.length,s=M(L,t);for(_e=0;_e=0;pe--)if(_e[pe]===ie||_e[pe].listener===ie){Ee=_e[pe].listener,se=pe;break}if(se<0)return this;0===se?_e.shift():function K(Q,$){for(;$+1=0;ye--)this.removeListener($,ie[ye]);return this},D.prototype.listeners=function($){return f(this,$,!0)},D.prototype.rawListeners=function($){return f(this,$,!1)},D.listenerCount=function(Q,$){return"function"==typeof Q.listenerCount?Q.listenerCount($):F.call(Q,$)},D.prototype.listenerCount=F,D.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},18211(ke,q,l){var i=l(27054).Buffer,g=l(34725);ke.exports=function p(D,o,e,A){if(i.isBuffer(D)||(D=i.from(D,"binary")),o&&(i.isBuffer(o)||(o=i.from(o,"binary")),8!==o.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=e/8,d=i.alloc(h),w=i.alloc(A||0),f=i.alloc(0);h>0||A>0;){var F=new g;F.update(f),F.update(D),o&&F.update(o),f=F.digest();var M=0;if(h>0){var K=d.length-h;M=Math.min(h,f.length),f.copy(d,K,0,M),h-=M}if(M0){var j=w.length-A,Z=Math.min(A,f.length-M);f.copy(w,j,M,M+Z),A-=Z}}return f.fill(0),{key:d,iv:w}}},89999(ke,q,l){"use strict";var i=l(58239),g=Object.prototype.toString,p=Object.prototype.hasOwnProperty;ke.exports=function(d,w,f){if(!i(w))throw new TypeError("iterator must be a function");var F;arguments.length>=3&&(F=f),function A(h){return"[object Array]"===g.call(h)}(d)?function(d,w,f){for(var F=0,M=d.length;F"u"||!se?i:se(Uint8Array),u={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?i:ArrayBuffer,"%ArrayIteratorPrototype%":ye&&se?se([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":s,"%AsyncGenerator%":s,"%AsyncGeneratorFunction%":s,"%AsyncIteratorPrototype%":s,"%Atomics%":typeof Atomics>"u"?i:Atomics,"%BigInt%":typeof BigInt>"u"?i:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?i:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":p,"%eval%":eval,"%EvalError%":D,"%Float16Array%":typeof Float16Array>"u"?i:Float16Array,"%Float32Array%":typeof Float32Array>"u"?i:Float32Array,"%Float64Array%":typeof Float64Array>"u"?i:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?i:FinalizationRegistry,"%Function%":ee,"%GeneratorFunction%":s,"%Int8Array%":typeof Int8Array>"u"?i:Int8Array,"%Int16Array%":typeof Int16Array>"u"?i:Int16Array,"%Int32Array%":typeof Int32Array>"u"?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ye&&se?se(se([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":typeof Map>"u"?i:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ye||!se?i:se((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":g,"%Object.getOwnPropertyDescriptor%":Q,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?i:Promise,"%Proxy%":typeof Proxy>"u"?i:Proxy,"%RangeError%":o,"%ReferenceError%":e,"%Reflect%":typeof Reflect>"u"?i:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?i:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ye||!se?i:se((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ye&&se?se(""[Symbol.iterator]()):i,"%Symbol%":ye?Symbol:i,"%SyntaxError%":A,"%ThrowTypeError%":_e,"%TypedArray%":m,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?i:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?i:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?i:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?i:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?i:WeakMap,"%WeakRef%":typeof WeakRef>"u"?i:WeakRef,"%WeakSet%":typeof WeakSet>"u"?i:WeakSet,"%Function.prototype.call%":t,"%Function.prototype.apply%":L,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":pe,"%Math.abs%":w,"%Math.floor%":f,"%Math.max%":F,"%Math.min%":M,"%Math.pow%":K,"%Math.round%":j,"%Math.sign%":Z,"%Reflect.getPrototypeOf%":Ee};if(se)try{null.error}catch(ce){var _=se(se(ce));u["%Error.prototype%"]=_}var T=function ce(Re){var Me;if("%AsyncFunction%"===Re)Me=V("async function () {}");else if("%GeneratorFunction%"===Re)Me=V("function* () {}");else if("%AsyncGeneratorFunction%"===Re)Me=V("async function* () {}");else if("%AsyncGenerator%"===Re){var ve=ce("%AsyncGeneratorFunction%");ve&&(Me=ve.prototype)}else if("%AsyncIteratorPrototype%"===Re){var oe=ce("%AsyncGenerator%");oe&&se&&(Me=se(oe.prototype))}return u[Re]=Me,Me},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},C=l(65992),a=l(78368),x=C.call(t,Array.prototype.concat),Y=C.call(L,Array.prototype.splice),R=C.call(t,String.prototype.replace),U=C.call(t,String.prototype.slice),fe=C.call(t,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,he=/\\(\\)?/g,ge=function(Re,Me){var oe,ve=Re;if(a(P,ve)&&(ve="%"+(oe=P[ve])[0]+"%"),a(u,ve)){var Se=u[ve];if(Se===s&&(Se=T(ve)),typeof Se>"u"&&!Me)throw new h("intrinsic "+Re+" exists, but is not available. Please file an issue!");return{alias:oe,name:ve,value:Se}}throw new A("intrinsic "+Re+" does not exist!")};ke.exports=function(Re,Me){if("string"!=typeof Re||0===Re.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof Me)throw new h('"allowMissing" argument must be a boolean');if(null===fe(/^%?[^%]*%?$/,Re))throw new A("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ve=function(Re){var Me=U(Re,0,1),ve=U(Re,-1);if("%"===Me&&"%"!==ve)throw new A("invalid intrinsic syntax, expected closing `%`");if("%"===ve&&"%"!==Me)throw new A("invalid intrinsic syntax, expected opening `%`");var oe=[];return R(Re,re,function(Se,be,nt,$e){oe[oe.length]=nt?R($e,he,"$1"):be||Se}),oe}(Re),oe=ve.length>0?ve[0]:"",Se=ge("%"+oe+"%",Me),be=Se.name,nt=Se.value,$e=!1,dt=Se.alias;dt&&(oe=dt[0],Y(ve,x([0,1],dt)));for(var yt=1,Et=!0;yt=ve.length){var S=Q(nt,rt);nt=(Et=!!S)&&"get"in S&&!("originalValue"in S.get)?S.get:nt[rt]}else Et=a(nt,rt),nt=nt[rt];Et&&!$e&&(u[be]=nt)}}return nt}},27203(ke,q,l){"use strict";var i=l(65891);ke.exports=i.getPrototypeOf||null},97669(ke){"use strict";ke.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null},91627(ke,q,l){"use strict";var i=l(97669),g=l(27203),p=l(63361);ke.exports=i?function(o){return i(o)}:g?function(o){if(!o||"object"!=typeof o&&"function"!=typeof o)throw new TypeError("getProto: not an object");return g(o)}:p?function(o){return p(o)}:null},52786(ke){"use strict";ke.exports=Object.getOwnPropertyDescriptor},83798(ke,q,l){"use strict";var i=l(52786);if(i)try{i([],"length")}catch{i=null}ke.exports=i},35861(ke,q,l){"use strict";var i=l(4570),g=function(){return!!i};g.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch{return!0}},ke.exports=g},19900(ke,q,l){"use strict";var i=typeof Symbol<"u"&&Symbol,g=l(45310);ke.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&g()}},45310(ke){"use strict";ke.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var l={},i=Symbol("test"),g=Object(i);if("string"==typeof i||"[object Symbol]"!==Object.prototype.toString.call(i)||"[object Symbol]"!==Object.prototype.toString.call(g))return!1;for(var D in l[i]=42,l)return!1;if("function"==typeof Object.keys&&0!==Object.keys(l).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(l).length)return!1;var o=Object.getOwnPropertySymbols(l);if(1!==o.length||o[0]!==i||!Object.prototype.propertyIsEnumerable.call(l,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var e=Object.getOwnPropertyDescriptor(l,i);if(42!==e.value||!0!==e.enumerable)return!1}return!0}},88779(ke,q,l){"use strict";var i=l(45310);ke.exports=function(){return i()&&!!Symbol.toStringTag}},13686(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(7045).Transform;function D(h){g.call(this),this._block=i.allocUnsafe(h),this._blockSize=h,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(D,g),D.prototype._transform=function(h,d,w){var f=null;try{this.update(h,d)}catch(F){f=F}w(f)},D.prototype._flush=function(h){var d=null;try{this.push(this.digest())}catch(w){d=w}h(d)};var o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);D.prototype.update=function(h,d){if(this._finalized)throw new Error("Digest already called");h=function A(h,d){if(h instanceof i)return h;if("string"==typeof h)return i.from(h,d);if(e&&ArrayBuffer.isView(h)){if(0===h.byteLength)return i.alloc(0);var w=i.from(h.buffer,h.byteOffset,h.byteLength);if(w.byteLength===h.byteLength)return w}if(o&&h instanceof Uint8Array||i.isBuffer(h)&&h.constructor&&"function"==typeof h.constructor.isBuffer&&h.constructor.isBuffer(h))return i.from(h);throw new TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}(h,d);for(var w=this._block,f=0;this._blockOffset+h.length-f>=this._blockSize;){for(var F=this._blockOffset;F0;++M)this._length[M]+=K,(K=this._length[M]/4294967296|0)>0&&(this._length[M]-=4294967296*K);return this},D.prototype._update=function(){throw new Error("_update is not implemented")},D.prototype.digest=function(h){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==h&&(d=d.toString(h)),this._block.fill(0),this._blockOffset=0;for(var w=0;w<4;++w)this._length[w]=0;return d},D.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=D},52529(ke,q,l){var i=q;i.utils=l(68283),i.common=l(12901),i.sha=l(78528),i.ripemd=l(15283),i.hmac=l(37163),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},12901(ke,q,l){"use strict";var i=l(68283),g=l(39210);function p(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}q.BlockHash=p,p.prototype.update=function(o,e){if(o=i.toArray(o,e),this.pending=this.pending?this.pending.concat(o):o,this.pendingTotal+=o.length,this.pending.length>=this._delta8){var A=(o=this.pending).length%this._delta8;this.pending=o.slice(o.length-A,o.length),0===this.pending.length&&(this.pending=null),o=i.join32(o,0,o.length-A,this.endian);for(var h=0;h>>24&255,h[d++]=o>>>16&255,h[d++]=o>>>8&255,h[d++]=255&o}else for(h[d++]=255&o,h[d++]=o>>>8&255,h[d++]=o>>>16&255,h[d++]=o>>>24&255,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,w=8;wthis.blockSize&&(o=(new this.Hash).update(o).digest()),g(o.length<=this.blockSize);for(var e=o.length;e>>3},q.g1_256=function w(f){return g(f,17)^g(f,19)^f>>>10}},68283(ke,q,l){"use strict";var i=l(39210),g=l(71993);function p(s,m){return!(55296!=(64512&s.charCodeAt(m))||m<0||m+1>=s.length)&&56320==(64512&s.charCodeAt(m+1))}function e(s){return(s>>>24|s>>>8&65280|s<<8&16711680|(255&s)<<24)>>>0}function h(s){return 1===s.length?"0"+s:s}function d(s){return 7===s.length?"0"+s:6===s.length?"00"+s:5===s.length?"000"+s:4===s.length?"0000"+s:3===s.length?"00000"+s:2===s.length?"000000"+s:1===s.length?"0000000"+s:s}q.inherits=g,q.toArray=function D(s,m){if(Array.isArray(s))return s.slice();if(!s)return[];var u=[];if("string"==typeof s)if(m){if("hex"===m)for((s=s.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(s="0"+s),T=0;T>6|192,u[_++]=63&P|128):p(s,T)?(P=65536+((1023&P)<<10)+(1023&s.charCodeAt(++T)),u[_++]=P>>18|240,u[_++]=P>>12&63|128,u[_++]=P>>6&63|128,u[_++]=63&P|128):(u[_++]=P>>12|224,u[_++]=P>>6&63|128,u[_++]=63&P|128)}else for(T=0;T>>0;return P},q.split32=function f(s,m){for(var u=new Array(4*s.length),_=0,T=0;_>>24,u[T+1]=P>>>16&255,u[T+2]=P>>>8&255,u[T+3]=255&P):(u[T+3]=P>>>24,u[T+2]=P>>>16&255,u[T+1]=P>>>8&255,u[T]=255&P)}return u},q.rotr32=function F(s,m){return s>>>m|s<<32-m},q.rotl32=function M(s,m){return s<>>32-m},q.sum32=function K(s,m){return s+m>>>0},q.sum32_3=function j(s,m,u){return s+m+u>>>0},q.sum32_4=function Z(s,m,u,_){return s+m+u+_>>>0},q.sum32_5=function ee(s,m,u,_,T){return s+m+u+_+T>>>0},q.sum64=function V(s,m,u,_){var C=_+s[m+1]>>>0;s[m]=(C<_?1:0)+u+s[m]>>>0,s[m+1]=C},q.sum64_hi=function Q(s,m,u,_){return(m+_>>>0>>0},q.sum64_lo=function $(s,m,u,_){return m+_>>>0},q.sum64_4_hi=function ie(s,m,u,_,T,P,C,a){var x=0,Y=m;return x+=(Y=Y+_>>>0)>>0)>>0)>>0},q.sum64_4_lo=function _e(s,m,u,_,T,P,C,a){return m+_+P+a>>>0},q.sum64_5_hi=function ye(s,m,u,_,T,P,C,a,x,Y){var R=0,U=m;return R+=(U=U+_>>>0)>>0)>>0)>>0)>>0},q.sum64_5_lo=function se(s,m,u,_,T,P,C,a,x,Y){return m+_+P+a+Y>>>0},q.rotr64_hi=function pe(s,m,u){return(m<<32-u|s>>>u)>>>0},q.rotr64_lo=function Ee(s,m,u){return(s<<32-u|m>>>u)>>>0},q.shr64_hi=function L(s,m,u){return s>>>u},q.shr64_lo=function t(s,m,u){return(s<<32-u|m>>>u)>>>0}},78368(ke,q,l){"use strict";var i=Function.prototype.call,g=Object.prototype.hasOwnProperty,p=l(65992);ke.exports=p.call(i,g)},33556(ke,q,l){"use strict";var i=l(52529),g=l(21832),p=l(39210);function D(o){if(!(this instanceof D))return new D(o);this.hash=o.hash,this.predResist=!!o.predResist,this.outLen=this.hash.outSize,this.minEntropy=o.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=g.toArray(o.entropy,o.entropyEnc||"hex"),A=g.toArray(o.nonce,o.nonceEnc||"hex"),h=g.toArray(o.pers,o.persEnc||"hex");p(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,A,h)}ke.exports=D,D.prototype._init=function(e,A,h){var d=e.concat(A).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var w=0;w=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(h||[])),this._reseed=1},D.prototype.generate=function(e,A,h,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof A&&(d=h,h=A,A=null),h&&(h=g.toArray(h,d||"hex"),this._update(h));for(var w=[];w.length>1,w=-7,f=g?D-1:0,F=g?-1:1,M=l[i+f];for(f+=F,o=M&(1<<-w)-1,M>>=-w,w+=A;w>0;o=256*o+l[i+f],f+=F,w-=8);for(e=o&(1<<-w)-1,o>>=-w,w+=p;w>0;e=256*e+l[i+f],f+=F,w-=8);if(0===o)o=1-d;else{if(o===h)return e?NaN:1/0*(M?-1:1);e+=Math.pow(2,p),o-=d}return(M?-1:1)*e*Math.pow(2,o-p)},q.write=function(l,i,g,p,D,o){var e,A,h,d=8*o-D-1,w=(1<>1,F=23===D?Math.pow(2,-24)-Math.pow(2,-77):0,M=p?0:o-1,K=p?1:-1,j=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(A=isNaN(i)?1:0,e=w):(e=Math.floor(Math.log(i)/Math.LN2),i*(h=Math.pow(2,-e))<1&&(e--,h*=2),(i+=e+f>=1?F/h:F*Math.pow(2,1-f))*h>=2&&(e++,h/=2),e+f>=w?(A=0,e=w):e+f>=1?(A=(i*h-1)*Math.pow(2,D),e+=f):(A=i*Math.pow(2,f-1)*Math.pow(2,D),e=0));D>=8;l[g+M]=255&A,M+=K,A/=256,D-=8);for(e=e<0;l[g+M]=255&e,M+=K,e/=256,d-=8);l[g+M-K]|=128*j}},71993(ke){ke.exports="function"==typeof Object.create?function(l,i){i&&(l.super_=i,l.prototype=Object.create(i.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}))}:function(l,i){if(i){l.super_=i;var g=function(){};g.prototype=i.prototype,l.prototype=new g,l.prototype.constructor=l}}},58239(ke){"use strict";var i,g,q=Function.prototype.toString,l="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof l&&"function"==typeof Object.defineProperty)try{i=Object.defineProperty({},"length",{get:function(){throw g}}),g={},l(function(){throw 42},null,i)}catch(ee){ee!==g&&(l=null)}else l=null;var p=/^\s*class\b/,D=function(V){try{var Q=q.call(V);return p.test(Q)}catch{return!1}},o=function(V){try{return!D(V)&&(q.call(V),!0)}catch{return!1}},e=Object.prototype.toString,M="function"==typeof Symbol&&!!Symbol.toStringTag,K=!(0 in[,]),j=function(){return!1};if("object"==typeof document){var Z=document.all;e.call(Z)===e.call(document.all)&&(j=function(V){if((K||!V)&&(typeof V>"u"||"object"==typeof V))try{var Q=e.call(V);return("[object HTMLAllCollection]"===Q||"[object HTML document.all class]"===Q||"[object HTMLCollection]"===Q||"[object Object]"===Q)&&null==V("")}catch{}return!1})}ke.exports=l?function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;try{l(V,null,i)}catch(Q){if(Q!==g)return!1}return!D(V)&&o(V)}:function(V){if(j(V))return!0;if(!V||"function"!=typeof V&&"object"!=typeof V)return!1;if(M)return o(V);if(D(V))return!1;var Q=e.call(V);return!("[object Function]"!==Q&&"[object GeneratorFunction]"!==Q&&!/^\[object HTML/.test(Q))&&o(V)}},4729(ke,q,l){"use strict";var i=l(44068);ke.exports=function(p){return!!i(p)}},20053(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},70837(ke){"use strict";ke.exports=Math.abs},3383(ke){"use strict";ke.exports=Math.floor},85488(ke){"use strict";ke.exports=Number.isNaN||function(l){return l!=l}},79039(ke){"use strict";ke.exports=Math.max},14981(ke){"use strict";ke.exports=Math.min},80975(ke){"use strict";ke.exports=Math.pow},5337(ke){"use strict";ke.exports=Math.round},4912(ke,q,l){"use strict";var i=l(85488);ke.exports=function(p){return i(p)||0===p?p:p<0?-1:1}},34725(ke,q,l){"use strict";var i=l(71993),g=l(13686),p=l(27054).Buffer,D=new Array(16);function o(){g.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function e(f,F){return f<>>32-F}function A(f,F,M,K,j,Z,ee){return e(f+(F&M|~F&K)+j+Z|0,ee)+F|0}function h(f,F,M,K,j,Z,ee){return e(f+(F&K|M&~K)+j+Z|0,ee)+F|0}function d(f,F,M,K,j,Z,ee){return e(f+(F^M^K)+j+Z|0,ee)+F|0}function w(f,F,M,K,j,Z,ee){return e(f+(M^(F|~K))+j+Z|0,ee)+F|0}i(o,g),o.prototype._update=function(){for(var f=D,F=0;F<16;++F)f[F]=this._block.readInt32LE(4*F);var M=this._a,K=this._b,j=this._c,Z=this._d;M=A(M,K,j,Z,f[0],3614090360,7),Z=A(Z,M,K,j,f[1],3905402710,12),j=A(j,Z,M,K,f[2],606105819,17),K=A(K,j,Z,M,f[3],3250441966,22),M=A(M,K,j,Z,f[4],4118548399,7),Z=A(Z,M,K,j,f[5],1200080426,12),j=A(j,Z,M,K,f[6],2821735955,17),K=A(K,j,Z,M,f[7],4249261313,22),M=A(M,K,j,Z,f[8],1770035416,7),Z=A(Z,M,K,j,f[9],2336552879,12),j=A(j,Z,M,K,f[10],4294925233,17),K=A(K,j,Z,M,f[11],2304563134,22),M=A(M,K,j,Z,f[12],1804603682,7),Z=A(Z,M,K,j,f[13],4254626195,12),j=A(j,Z,M,K,f[14],2792965006,17),M=h(M,K=A(K,j,Z,M,f[15],1236535329,22),j,Z,f[1],4129170786,5),Z=h(Z,M,K,j,f[6],3225465664,9),j=h(j,Z,M,K,f[11],643717713,14),K=h(K,j,Z,M,f[0],3921069994,20),M=h(M,K,j,Z,f[5],3593408605,5),Z=h(Z,M,K,j,f[10],38016083,9),j=h(j,Z,M,K,f[15],3634488961,14),K=h(K,j,Z,M,f[4],3889429448,20),M=h(M,K,j,Z,f[9],568446438,5),Z=h(Z,M,K,j,f[14],3275163606,9),j=h(j,Z,M,K,f[3],4107603335,14),K=h(K,j,Z,M,f[8],1163531501,20),M=h(M,K,j,Z,f[13],2850285829,5),Z=h(Z,M,K,j,f[2],4243563512,9),j=h(j,Z,M,K,f[7],1735328473,14),M=d(M,K=h(K,j,Z,M,f[12],2368359562,20),j,Z,f[5],4294588738,4),Z=d(Z,M,K,j,f[8],2272392833,11),j=d(j,Z,M,K,f[11],1839030562,16),K=d(K,j,Z,M,f[14],4259657740,23),M=d(M,K,j,Z,f[1],2763975236,4),Z=d(Z,M,K,j,f[4],1272893353,11),j=d(j,Z,M,K,f[7],4139469664,16),K=d(K,j,Z,M,f[10],3200236656,23),M=d(M,K,j,Z,f[13],681279174,4),Z=d(Z,M,K,j,f[0],3936430074,11),j=d(j,Z,M,K,f[3],3572445317,16),K=d(K,j,Z,M,f[6],76029189,23),M=d(M,K,j,Z,f[9],3654602809,4),Z=d(Z,M,K,j,f[12],3873151461,11),j=d(j,Z,M,K,f[15],530742520,16),M=w(M,K=d(K,j,Z,M,f[2],3299628645,23),j,Z,f[0],4096336452,6),Z=w(Z,M,K,j,f[7],1126891415,10),j=w(j,Z,M,K,f[14],2878612391,15),K=w(K,j,Z,M,f[5],4237533241,21),M=w(M,K,j,Z,f[12],1700485571,6),Z=w(Z,M,K,j,f[3],2399980690,10),j=w(j,Z,M,K,f[10],4293915773,15),K=w(K,j,Z,M,f[1],2240044497,21),M=w(M,K,j,Z,f[8],1873313359,6),Z=w(Z,M,K,j,f[15],4264355552,10),j=w(j,Z,M,K,f[6],2734768916,15),K=w(K,j,Z,M,f[13],1309151649,21),M=w(M,K,j,Z,f[4],4149444226,6),Z=w(Z,M,K,j,f[11],3174756917,10),j=w(j,Z,M,K,f[2],718787259,15),K=w(K,j,Z,M,f[9],3951481745,21),this._a=this._a+M|0,this._b=this._b+K|0,this._c=this._c+j|0,this._d=this._d+Z|0},o.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var f=p.allocUnsafe(16);return f.writeInt32LE(this._a,0),f.writeInt32LE(this._b,4),f.writeInt32LE(this._c,8),f.writeInt32LE(this._d,12),f},ke.exports=o},53459(ke,q,l){var i=l(57223),g=l(35294);function p(D){this.rand=D||new g.Rand}ke.exports=p,p.create=function(o){return new p(o)},p.prototype._randbelow=function(o){var e=o.bitLength(),A=Math.ceil(e/8);do{var h=new i(this.rand.generate(A))}while(h.cmp(o)>=0);return h},p.prototype._randrange=function(o,e){var A=e.sub(o);return o.add(this._randbelow(A))},p.prototype.test=function(o,e,A){var h=o.bitLength(),d=i.mont(o),w=new i(1).toRed(d);e||(e=Math.max(1,h/48|0));for(var f=o.subn(1),F=0;!f.testn(F);F++);for(var M=o.shrn(F),K=f.toRed(d);e>0;e--){var Z=this._randrange(new i(2),f);A&&A(Z);var ee=Z.toRed(d).redPow(M);if(0!==ee.cmp(w)&&0!==ee.cmp(K)){for(var V=1;V0;e--){var K=this._randrange(new i(2),w),j=o.gcd(K);if(0!==j.cmpn(1))return j;var Z=K.toRed(h).redPow(F);if(0!==Z.cmp(d)&&0!==Z.cmp(M)){for(var ee=1;ee=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},39210(ke){function q(l,i){if(!l)throw new Error(i||"Assertion failed")}ke.exports=q,q.equal=function(i,g,p){if(i!=g)throw new Error(p||"Assertion failed: "+i+" != "+g)}},21832(ke,q){"use strict";var l=q;function g(D){return 1===D.length?"0"+D:D}function p(D){for(var o="",e=0;e>8,w=255&h;d?e.push(d,w):e.push(w)}return e},l.zero2=g,l.toHex=p,l.encode=function(o,e){return"hex"===e?p(o):o}},31264(ke,q,l){"use strict";Object.defineProperty(q,"__esModule",{value:!0});var i=l(94478);Object.keys(i).forEach(function(g){"default"!==g&&Object.defineProperty(q,g,{enumerable:!0,get:function(){return i[g]}})})},83138(ke,q,l){"use strict";var i=l(49609);q.certificate=l(94772);var g=i.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});q.RSAPrivateKey=g;var p=i.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});q.RSAPublicKey=p;var D=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())});q.PublicKey=o;var e=i.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(D),this.key("subjectPrivateKey").octstr())});q.PrivateKey=e;var A=i.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});q.EncryptedPrivateKey=A;var h=i.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});q.DSAPrivateKey=h,q.DSAparam=i.define("DSAparam",function(){this.int()});var d=i.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),w=i.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())});q.ECPrivateKey=w,q.signature=i.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},94772(ke,q,l){"use strict";var i=l(49609),g=i.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),p=i.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),D=i.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),o=i.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(D),this.key("subjectPublicKey").bitstr())}),e=i.define("RelativeDistinguishedName",function(){this.setof(p)}),A=i.define("RDNSequence",function(){this.seqof(e)}),h=i.define("Name",function(){this.choice({rdnSequence:this.use(A)})}),d=i.define("Validity",function(){this.seq().obj(this.key("notBefore").use(g),this.key("notAfter").use(g))}),w=i.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=i.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(D),this.key("issuer").use(h),this.key("validity").use(d),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(o),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(w).optional())}),F=i.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(D),this.key("signatureValue").bitstr())});ke.exports=F},89472(ke,q,l){"use strict";var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,g=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,p=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,D=l(18211),o=l(43388),e=l(27054).Buffer;ke.exports=function(A,h){var f,d=A.toString(),w=d.match(i);if(w){var M="aes"+w[1],K=e.from(w[2],"hex"),j=e.from(w[3].replace(/[\r\n]/g,""),"base64"),Z=D(h,K.slice(0,8),parseInt(w[1],10)).key,ee=[],V=o.createDecipheriv(M,Z,K);ee.push(V.update(j)),ee.push(V.final()),f=e.concat(ee)}else{var F=d.match(p);f=e.from(F[2].replace(/[\r\n]/g,""),"base64")}return{tag:d.match(g)[1],data:f}}},65667(ke,q,l){"use strict";var i=l(83138),g=l(15579),p=l(89472),D=l(43388),o=l(93397).pbkdf2Sync,e=l(27054).Buffer;function h(d){var w;"object"==typeof d&&!e.isBuffer(d)&&(w=d.passphrase,d=d.key),"string"==typeof d&&(d=e.from(d));var K,j,f=p(d,w),F=f.tag,M=f.data;switch(F){case"CERTIFICATE":j=i.certificate.decode(M,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(j||(j=i.PublicKey.decode(M,"der")),K=j.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(j.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return j.subjectPrivateKey=j.subjectPublicKey,{type:"ec",data:j};case"1.2.840.10040.4.1":return j.algorithm.params.pub_key=i.DSAparam.decode(j.subjectPublicKey.data,"der"),{type:"dsa",data:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"ENCRYPTED PRIVATE KEY":M=function A(d,w){var f=d.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(d.algorithm.decrypt.kde.kdeparams.iters.toString(),10),M=g[d.algorithm.decrypt.cipher.algo.join(".")],K=d.algorithm.decrypt.cipher.iv,j=d.subjectPrivateKey,Z=parseInt(M.split("-")[1],10)/8,ee=o(w,f,F,Z,"sha1"),V=D.createDecipheriv(M,ee,K),Q=[];return Q.push(V.update(j)),Q.push(V.final()),e.concat(Q)}(M=i.EncryptedPrivateKey.decode(M,"der"),w);case"PRIVATE KEY":switch(K=(j=i.PrivateKey.decode(M,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(j.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:j.algorithm.curve,privateKey:i.ECPrivateKey.decode(j.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return j.algorithm.params.priv_key=i.DSAparam.decode(j.subjectPrivateKey,"der"),{type:"dsa",params:j.algorithm.params};default:throw new Error("unknown key id "+K)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(M,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(M,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(M,"der")};case"EC PRIVATE KEY":return{curve:(M=i.ECPrivateKey.decode(M,"der")).parameters.value,privateKey:M.privateKey};default:throw new Error("unknown key type "+F)}}h.signature=i.signature,ke.exports=h},93397(ke,q,l){"use strict";q.pbkdf2=l(82685),q.pbkdf2Sync=l(59111)},82685(ke,q,l){"use strict";var e,w,i=l(27054).Buffer,g=l(86111),p=l(45392),D=l(59111),o=l(76643),A=global.crypto&&global.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function f(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function F(j,Z,ee,V,Q){return A.importKey("raw",j,{name:"PBKDF2"},!1,["deriveBits"]).then(function($){return A.deriveBits({name:"PBKDF2",salt:Z,iterations:ee,hash:{name:Q}},$,V<<3)}).then(function($){return i.from($)})}ke.exports=function(j,Z,ee,V,Q,$){if("function"==typeof Q&&($=Q,Q=void 0),V=g(ee,V),j=o(j,p,"Password"),Z=o(Z,p,"Salt"),"function"!=typeof $)throw new Error("No callback provided to pbkdf2");var ie=h[(Q=Q||"sha1").toLowerCase()];ie&&"function"==typeof global.Promise?function K(j,Z){j.then(function(ee){f()(function(){Z(null,ee)})},function(ee){f()(function(){Z(ee)})})}(function M(j){if(global.process&&!global.process.browser||!A||!A.importKey||!A.deriveBits)return Promise.resolve(!1);if(void 0!==d[j])return d[j];var Z=F(e=e||i.alloc(8),e,10,128,j).then(function(){return!0},function(){return!1});return d[j]=Z,Z}(ie).then(function(_e){return _e?F(j,Z,ee,V,ie):D(j,Z,ee,V,Q)}),$):f()(function(){var _e;try{_e=D(j,Z,ee,V,Q)}catch(ye){return void $(ye)}$(null,_e)})}},45392(ke){"use strict";var q;q=global.process&&global.process.browser?"utf-8":global.process&&global.process.version?parseInt(process.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",ke.exports=q},86111(ke){"use strict";var q=isFinite,l=Math.pow(2,30)-1;ke.exports=function(i,g){if("number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0||!q(i))throw new TypeError("Bad iterations");if("number"!=typeof g)throw new TypeError("Key length not a number");if(g<0||g>l||g!=g)throw new TypeError("Bad key length");return g+0}},59111(ke,q,l){"use strict";var i=l(83407),g=l(36636),p=l(25443),D=l(27054).Buffer,o=l(86111),e=l(45392),A=l(76643),h=D.alloc(128),d={__proto__:null,md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,"sha512-256":32,ripemd160:20,rmd160:20},w={__proto__:null,"sha-1":"sha1","sha-224":"sha224","sha-256":"sha256","sha-384":"sha384","sha-512":"sha512","ripemd-160":"ripemd160"};function f(j){return(new g).update(j).digest()}function M(j,Z,ee){var V=function F(j){return"rmd160"===j||"ripemd160"===j?f:"md5"===j?i:function Z(ee){return p(j).update(ee).digest()}}(j),Q="sha512"===j||"sha384"===j?128:64;Z.length>Q?Z=V(Z):Z.length"u"||!process.version||0===process.version.indexOf("v0.")||0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?{nextTick:function q(l,i,g,p){if("function"!=typeof l)throw new TypeError('"callback" argument must be a function');var o,e,D=arguments.length;switch(D){case 0:case 1:return process.nextTick(l);case 2:return process.nextTick(function(){l.call(null,i)});case 3:return process.nextTick(function(){l.call(null,i,g)});case 4:return process.nextTick(function(){l.call(null,i,g,p)});default:for(o=new Array(D-1),e=0;e=65&&s<=70?s-55:s>=97&&s<=102?s-87:s-48&15}function h(L,t,s){var m=A(L,s);return s-1>=t&&(m|=A(L,s-1)<<4),m}function d(L,t,s,m){for(var u=0,_=Math.min(L.length,s),T=t;T<_;T++){var P=L.charCodeAt(T)-48;u*=m,u+=P>=49?P-49+10:P>=17?P-17+10:P}return u}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,s){return t.cmp(s)>0?t:s},o.min=function(t,s){return t.cmp(s)<0?t:s},o.prototype._init=function(t,s,m){if("number"==typeof t)return this._initNumber(t,s,m);if("object"==typeof t)return this._initArray(t,s,m);"hex"===s&&(s=16),p(s===(0|s)&&s>=2&&s<=36);var u=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(u++,this.negative=1),u=0;u-=3)this.words[_]|=(T=t[u]|t[u-1]<<8|t[u-2]<<16)<>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);else if("le"===m)for(u=0,_=0;u>>26-P&67108863,(P+=24)>=26&&(P-=26,_++);return this.strip()},o.prototype._parseHex=function(t,s,m){this.length=Math.ceil((t.length-s)/6),this.words=new Array(this.length);for(var u=0;u=s;u-=2)P=h(t,s,u)<<_,this.words[T]|=67108863&P,_>=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;else for(u=(t.length-s)%2==0?s+1:s;u=18?(_-=18,this.words[T+=1]|=P>>>26):_+=8;this.strip()},o.prototype._parseBase=function(t,s,m){this.words=[0],this.length=1;for(var u=0,_=1;_<=67108863;_*=s)u++;u--,_=_/s|0;for(var T=t.length-m,P=T%u,C=Math.min(T,T-P)+m,a=0,x=m;x1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){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"],f=[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],F=[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 K(L,t,s){s.negative=t.negative^L.negative;var m=L.length+t.length|0;s.length=m,m=m-1|0;var u=0|L.words[0],_=0|t.words[0],T=u*_,C=T/67108864|0;s.words[0]=67108863&T;for(var a=1;a>>26,Y=67108863&C,R=Math.min(a,t.length-1),U=Math.max(0,a-L.length+1);U<=R;U++)x+=(T=(u=0|L.words[a-U|0])*(_=0|t.words[U])+Y)/67108864|0,Y=67108863&T;s.words[a]=0|Y,C=0|x}return 0!==C?s.words[a]=0|C:s.length--,s.strip()}o.prototype.toString=function(t,s){var m;if(s=0|s||1,16===(t=t||10)||"hex"===t){m="";for(var u=0,_=0,T=0;T>>24-u&16777215,(u+=2)>=26&&(u-=26,T--),m=0!==_||T!==this.length-1?w[6-C.length]+C+m:C+m}for(0!==_&&(m=_.toString(16)+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],x=F[t];m="";var Y=this.clone();for(Y.negative=0;!Y.isZero();){var R=Y.modn(x).toString(t);m=(Y=Y.idivn(x)).isZero()?R+m:w[a-R.length]+R+m}for(this.isZero()&&(m="0"+m);m.length%s!==0;)m="0"+m;return 0!==this.negative&&(m="-"+m),m}p(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&p(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,s){return p(typeof e<"u"),this.toArrayLike(e,t,s)},o.prototype.toArray=function(t,s){return this.toArrayLike(Array,t,s)},o.prototype.toArrayLike=function(t,s,m){var u=this.byteLength(),_=m||Math.max(1,u);p(u<=_,"byte array longer than desired length"),p(_>0,"Requested array length <= 0"),this.strip();var C,a,T="le"===s,P=new t(_),x=this.clone();if(T){for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[a]=C;for(;a<_;a++)P[a]=0}else{for(a=0;a<_-u;a++)P[a]=0;for(a=0;!x.isZero();a++)C=x.andln(255),x.iushrn(8),P[_-a-1]=C}return P},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var s=t,m=0;return s>=4096&&(m+=13,s>>>=13),s>=64&&(m+=7,s>>>=7),s>=8&&(m+=4,s>>>=4),s>=2&&(m+=2,s>>>=2),m+s},o.prototype._zeroBits=function(t){if(0===t)return 26;var s=t,m=0;return!(8191&s)&&(m+=13,s>>>=13),!(127&s)&&(m+=7,s>>>=7),!(15&s)&&(m+=4,s>>>=4),!(3&s)&&(m+=2,s>>>=2),!(1&s)&&m++,m},o.prototype.bitLength=function(){var s=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+s},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,s=0;st.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var s;s=this.length>t.length?t:this;for(var m=0;mt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var s,m;this.length>t.length?(s=this,m=t):(s=t,m=this);for(var u=0;ut.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){p("number"==typeof t&&t>=0);var s=0|Math.ceil(t/26),m=t%26;this._expand(s),m>0&&s--;for(var u=0;u0&&(this.words[u]=~this.words[u]&67108863>>26-m,u++);u=0);var m=t/26|0,u=t%26;return this._expand(m+1),this.words[m]=s?this.words[m]|1<t.length?(m=this,u=t):(m=t,u=this);for(var _=0,T=0;T>>26;for(;0!==_&&T>>26;if(this.length=m.length,0!==_)this.words[this.length]=_,this.length++;else if(m!==this)for(;Tt.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var s=this.iadd(t);return t.negative=1,s._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var u,_,m=this.cmp(t);if(0===m)return this.negative=0,this.length=1,this.words[0]=0,this;m>0?(u=this,_=t):(u=t,_=this);for(var T=0,P=0;P<_.length;P++)T=(s=(0|u.words[P])-(0|_.words[P])+T)>>26,this.words[P]=67108863&s;for(;0!==T&&P>26,this.words[P]=67108863&s;if(0===T&&P>>13,fe=0|u[1],re=8191&fe,he=fe>>>13,Oe=0|u[2],ge=8191&Oe,ce=Oe>>>13,Re=0|u[3],Me=8191&Re,ve=Re>>>13,oe=0|u[4],Se=8191&oe,be=oe>>>13,nt=0|u[5],$e=8191&nt,dt=nt>>>13,yt=0|u[6],Et=8191&yt,rt=yt>>>13,Mn=0|u[7],qt=8191&Mn,S=Mn>>>13,Xt=0|u[8],de=8191&Xt,ae=Xt>>>13,me=0|u[9],Le=8191&me,et=me>>>13,tn=0|_[0],Vt=8191&tn,hn=tn>>>13,En=0|_[1],_n=8191&En,tt=En>>>13,Fe=0|_[2],Pe=8191&Fe,Ue=Fe>>>13,Qe=0|_[3],Ie=8191&Qe,le=Qe>>>13,Ne=0|_[4],ze=8191&Ne,Je=Ne>>>13,gt=0|_[5],zt=8191>,Ye=gt>>>13,st=0|_[6],it=8191&st,He=st>>>13,Wt=0|_[7],we=8191&Wt,We=Wt>>>13,Lt=0|_[8],St=8191&Lt,At=Lt>>>13,fn=0|_[9],mt=8191&fn,It=fn>>>13;m.negative=t.negative^s.negative,m.length=19;var wn=(P+(C=Math.imul(R,Vt))|0)+((8191&(a=(a=Math.imul(R,hn))+Math.imul(U,Vt)|0))<<13)|0;P=((x=Math.imul(U,hn))+(a>>>13)|0)+(wn>>>26)|0,wn&=67108863,C=Math.imul(re,Vt),a=(a=Math.imul(re,hn))+Math.imul(he,Vt)|0,x=Math.imul(he,hn);var In=(P+(C=C+Math.imul(R,_n)|0)|0)+((8191&(a=(a=a+Math.imul(R,tt)|0)+Math.imul(U,_n)|0))<<13)|0;P=((x=x+Math.imul(U,tt)|0)+(a>>>13)|0)+(In>>>26)|0,In&=67108863,C=Math.imul(ge,Vt),a=(a=Math.imul(ge,hn))+Math.imul(ce,Vt)|0,x=Math.imul(ce,hn),C=C+Math.imul(re,_n)|0,a=(a=a+Math.imul(re,tt)|0)+Math.imul(he,_n)|0,x=x+Math.imul(he,tt)|0;var ei=(P+(C=C+Math.imul(R,Pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ue)|0)+Math.imul(U,Pe)|0))<<13)|0;P=((x=x+Math.imul(U,Ue)|0)+(a>>>13)|0)+(ei>>>26)|0,ei&=67108863,C=Math.imul(Me,Vt),a=(a=Math.imul(Me,hn))+Math.imul(ve,Vt)|0,x=Math.imul(ve,hn),C=C+Math.imul(ge,_n)|0,a=(a=a+Math.imul(ge,tt)|0)+Math.imul(ce,_n)|0,x=x+Math.imul(ce,tt)|0,C=C+Math.imul(re,Pe)|0,a=(a=a+Math.imul(re,Ue)|0)+Math.imul(he,Pe)|0,x=x+Math.imul(he,Ue)|0;var Li=(P+(C=C+Math.imul(R,Ie)|0)|0)+((8191&(a=(a=a+Math.imul(R,le)|0)+Math.imul(U,Ie)|0))<<13)|0;P=((x=x+Math.imul(U,le)|0)+(a>>>13)|0)+(Li>>>26)|0,Li&=67108863,C=Math.imul(Se,Vt),a=(a=Math.imul(Se,hn))+Math.imul(be,Vt)|0,x=Math.imul(be,hn),C=C+Math.imul(Me,_n)|0,a=(a=a+Math.imul(Me,tt)|0)+Math.imul(ve,_n)|0,x=x+Math.imul(ve,tt)|0,C=C+Math.imul(ge,Pe)|0,a=(a=a+Math.imul(ge,Ue)|0)+Math.imul(ce,Pe)|0,x=x+Math.imul(ce,Ue)|0,C=C+Math.imul(re,Ie)|0,a=(a=a+Math.imul(re,le)|0)+Math.imul(he,Ie)|0,x=x+Math.imul(he,le)|0;var kt=(P+(C=C+Math.imul(R,ze)|0)|0)+((8191&(a=(a=a+Math.imul(R,Je)|0)+Math.imul(U,ze)|0))<<13)|0;P=((x=x+Math.imul(U,Je)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,C=Math.imul($e,Vt),a=(a=Math.imul($e,hn))+Math.imul(dt,Vt)|0,x=Math.imul(dt,hn),C=C+Math.imul(Se,_n)|0,a=(a=a+Math.imul(Se,tt)|0)+Math.imul(be,_n)|0,x=x+Math.imul(be,tt)|0,C=C+Math.imul(Me,Pe)|0,a=(a=a+Math.imul(Me,Ue)|0)+Math.imul(ve,Pe)|0,x=x+Math.imul(ve,Ue)|0,C=C+Math.imul(ge,Ie)|0,a=(a=a+Math.imul(ge,le)|0)+Math.imul(ce,Ie)|0,x=x+Math.imul(ce,le)|0,C=C+Math.imul(re,ze)|0,a=(a=a+Math.imul(re,Je)|0)+Math.imul(he,ze)|0,x=x+Math.imul(he,Je)|0;var Ot=(P+(C=C+Math.imul(R,zt)|0)|0)+((8191&(a=(a=a+Math.imul(R,Ye)|0)+Math.imul(U,zt)|0))<<13)|0;P=((x=x+Math.imul(U,Ye)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,C=Math.imul(Et,Vt),a=(a=Math.imul(Et,hn))+Math.imul(rt,Vt)|0,x=Math.imul(rt,hn),C=C+Math.imul($e,_n)|0,a=(a=a+Math.imul($e,tt)|0)+Math.imul(dt,_n)|0,x=x+Math.imul(dt,tt)|0,C=C+Math.imul(Se,Pe)|0,a=(a=a+Math.imul(Se,Ue)|0)+Math.imul(be,Pe)|0,x=x+Math.imul(be,Ue)|0,C=C+Math.imul(Me,Ie)|0,a=(a=a+Math.imul(Me,le)|0)+Math.imul(ve,Ie)|0,x=x+Math.imul(ve,le)|0,C=C+Math.imul(ge,ze)|0,a=(a=a+Math.imul(ge,Je)|0)+Math.imul(ce,ze)|0,x=x+Math.imul(ce,Je)|0,C=C+Math.imul(re,zt)|0,a=(a=a+Math.imul(re,Ye)|0)+Math.imul(he,zt)|0,x=x+Math.imul(he,Ye)|0;var Ze=(P+(C=C+Math.imul(R,it)|0)|0)+((8191&(a=(a=a+Math.imul(R,He)|0)+Math.imul(U,it)|0))<<13)|0;P=((x=x+Math.imul(U,He)|0)+(a>>>13)|0)+(Ze>>>26)|0,Ze&=67108863,C=Math.imul(qt,Vt),a=(a=Math.imul(qt,hn))+Math.imul(S,Vt)|0,x=Math.imul(S,hn),C=C+Math.imul(Et,_n)|0,a=(a=a+Math.imul(Et,tt)|0)+Math.imul(rt,_n)|0,x=x+Math.imul(rt,tt)|0,C=C+Math.imul($e,Pe)|0,a=(a=a+Math.imul($e,Ue)|0)+Math.imul(dt,Pe)|0,x=x+Math.imul(dt,Ue)|0,C=C+Math.imul(Se,Ie)|0,a=(a=a+Math.imul(Se,le)|0)+Math.imul(be,Ie)|0,x=x+Math.imul(be,le)|0,C=C+Math.imul(Me,ze)|0,a=(a=a+Math.imul(Me,Je)|0)+Math.imul(ve,ze)|0,x=x+Math.imul(ve,Je)|0,C=C+Math.imul(ge,zt)|0,a=(a=a+Math.imul(ge,Ye)|0)+Math.imul(ce,zt)|0,x=x+Math.imul(ce,Ye)|0,C=C+Math.imul(re,it)|0,a=(a=a+Math.imul(re,He)|0)+Math.imul(he,it)|0,x=x+Math.imul(he,He)|0;var Ge=(P+(C=C+Math.imul(R,we)|0)|0)+((8191&(a=(a=a+Math.imul(R,We)|0)+Math.imul(U,we)|0))<<13)|0;P=((x=x+Math.imul(U,We)|0)+(a>>>13)|0)+(Ge>>>26)|0,Ge&=67108863,C=Math.imul(de,Vt),a=(a=Math.imul(de,hn))+Math.imul(ae,Vt)|0,x=Math.imul(ae,hn),C=C+Math.imul(qt,_n)|0,a=(a=a+Math.imul(qt,tt)|0)+Math.imul(S,_n)|0,x=x+Math.imul(S,tt)|0,C=C+Math.imul(Et,Pe)|0,a=(a=a+Math.imul(Et,Ue)|0)+Math.imul(rt,Pe)|0,x=x+Math.imul(rt,Ue)|0,C=C+Math.imul($e,Ie)|0,a=(a=a+Math.imul($e,le)|0)+Math.imul(dt,Ie)|0,x=x+Math.imul(dt,le)|0,C=C+Math.imul(Se,ze)|0,a=(a=a+Math.imul(Se,Je)|0)+Math.imul(be,ze)|0,x=x+Math.imul(be,Je)|0,C=C+Math.imul(Me,zt)|0,a=(a=a+Math.imul(Me,Ye)|0)+Math.imul(ve,zt)|0,x=x+Math.imul(ve,Ye)|0,C=C+Math.imul(ge,it)|0,a=(a=a+Math.imul(ge,He)|0)+Math.imul(ce,it)|0,x=x+Math.imul(ce,He)|0,C=C+Math.imul(re,we)|0,a=(a=a+Math.imul(re,We)|0)+Math.imul(he,we)|0,x=x+Math.imul(he,We)|0;var Pt=(P+(C=C+Math.imul(R,St)|0)|0)+((8191&(a=(a=a+Math.imul(R,At)|0)+Math.imul(U,St)|0))<<13)|0;P=((x=x+Math.imul(U,At)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,C=Math.imul(Le,Vt),a=(a=Math.imul(Le,hn))+Math.imul(et,Vt)|0,x=Math.imul(et,hn),C=C+Math.imul(de,_n)|0,a=(a=a+Math.imul(de,tt)|0)+Math.imul(ae,_n)|0,x=x+Math.imul(ae,tt)|0,C=C+Math.imul(qt,Pe)|0,a=(a=a+Math.imul(qt,Ue)|0)+Math.imul(S,Pe)|0,x=x+Math.imul(S,Ue)|0,C=C+Math.imul(Et,Ie)|0,a=(a=a+Math.imul(Et,le)|0)+Math.imul(rt,Ie)|0,x=x+Math.imul(rt,le)|0,C=C+Math.imul($e,ze)|0,a=(a=a+Math.imul($e,Je)|0)+Math.imul(dt,ze)|0,x=x+Math.imul(dt,Je)|0,C=C+Math.imul(Se,zt)|0,a=(a=a+Math.imul(Se,Ye)|0)+Math.imul(be,zt)|0,x=x+Math.imul(be,Ye)|0,C=C+Math.imul(Me,it)|0,a=(a=a+Math.imul(Me,He)|0)+Math.imul(ve,it)|0,x=x+Math.imul(ve,He)|0,C=C+Math.imul(ge,we)|0,a=(a=a+Math.imul(ge,We)|0)+Math.imul(ce,we)|0,x=x+Math.imul(ce,We)|0,C=C+Math.imul(re,St)|0,a=(a=a+Math.imul(re,At)|0)+Math.imul(he,St)|0,x=x+Math.imul(he,At)|0;var Yt=(P+(C=C+Math.imul(R,mt)|0)|0)+((8191&(a=(a=a+Math.imul(R,It)|0)+Math.imul(U,mt)|0))<<13)|0;P=((x=x+Math.imul(U,It)|0)+(a>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(Le,_n),a=(a=Math.imul(Le,tt))+Math.imul(et,_n)|0,x=Math.imul(et,tt),C=C+Math.imul(de,Pe)|0,a=(a=a+Math.imul(de,Ue)|0)+Math.imul(ae,Pe)|0,x=x+Math.imul(ae,Ue)|0,C=C+Math.imul(qt,Ie)|0,a=(a=a+Math.imul(qt,le)|0)+Math.imul(S,Ie)|0,x=x+Math.imul(S,le)|0,C=C+Math.imul(Et,ze)|0,a=(a=a+Math.imul(Et,Je)|0)+Math.imul(rt,ze)|0,x=x+Math.imul(rt,Je)|0,C=C+Math.imul($e,zt)|0,a=(a=a+Math.imul($e,Ye)|0)+Math.imul(dt,zt)|0,x=x+Math.imul(dt,Ye)|0,C=C+Math.imul(Se,it)|0,a=(a=a+Math.imul(Se,He)|0)+Math.imul(be,it)|0,x=x+Math.imul(be,He)|0,C=C+Math.imul(Me,we)|0,a=(a=a+Math.imul(Me,We)|0)+Math.imul(ve,we)|0,x=x+Math.imul(ve,We)|0,C=C+Math.imul(ge,St)|0,a=(a=a+Math.imul(ge,At)|0)+Math.imul(ce,St)|0,x=x+Math.imul(ce,At)|0;var bn=(P+(C=C+Math.imul(re,mt)|0)|0)+((8191&(a=(a=a+Math.imul(re,It)|0)+Math.imul(he,mt)|0))<<13)|0;P=((x=x+Math.imul(he,It)|0)+(a>>>13)|0)+(bn>>>26)|0,bn&=67108863,C=Math.imul(Le,Pe),a=(a=Math.imul(Le,Ue))+Math.imul(et,Pe)|0,x=Math.imul(et,Ue),C=C+Math.imul(de,Ie)|0,a=(a=a+Math.imul(de,le)|0)+Math.imul(ae,Ie)|0,x=x+Math.imul(ae,le)|0,C=C+Math.imul(qt,ze)|0,a=(a=a+Math.imul(qt,Je)|0)+Math.imul(S,ze)|0,x=x+Math.imul(S,Je)|0,C=C+Math.imul(Et,zt)|0,a=(a=a+Math.imul(Et,Ye)|0)+Math.imul(rt,zt)|0,x=x+Math.imul(rt,Ye)|0,C=C+Math.imul($e,it)|0,a=(a=a+Math.imul($e,He)|0)+Math.imul(dt,it)|0,x=x+Math.imul(dt,He)|0,C=C+Math.imul(Se,we)|0,a=(a=a+Math.imul(Se,We)|0)+Math.imul(be,we)|0,x=x+Math.imul(be,We)|0,C=C+Math.imul(Me,St)|0,a=(a=a+Math.imul(Me,At)|0)+Math.imul(ve,St)|0,x=x+Math.imul(ve,At)|0;var Zn=(P+(C=C+Math.imul(ge,mt)|0)|0)+((8191&(a=(a=a+Math.imul(ge,It)|0)+Math.imul(ce,mt)|0))<<13)|0;P=((x=x+Math.imul(ce,It)|0)+(a>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,C=Math.imul(Le,Ie),a=(a=Math.imul(Le,le))+Math.imul(et,Ie)|0,x=Math.imul(et,le),C=C+Math.imul(de,ze)|0,a=(a=a+Math.imul(de,Je)|0)+Math.imul(ae,ze)|0,x=x+Math.imul(ae,Je)|0,C=C+Math.imul(qt,zt)|0,a=(a=a+Math.imul(qt,Ye)|0)+Math.imul(S,zt)|0,x=x+Math.imul(S,Ye)|0,C=C+Math.imul(Et,it)|0,a=(a=a+Math.imul(Et,He)|0)+Math.imul(rt,it)|0,x=x+Math.imul(rt,He)|0,C=C+Math.imul($e,we)|0,a=(a=a+Math.imul($e,We)|0)+Math.imul(dt,we)|0,x=x+Math.imul(dt,We)|0,C=C+Math.imul(Se,St)|0,a=(a=a+Math.imul(Se,At)|0)+Math.imul(be,St)|0,x=x+Math.imul(be,At)|0;var oi=(P+(C=C+Math.imul(Me,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Me,It)|0)+Math.imul(ve,mt)|0))<<13)|0;P=((x=x+Math.imul(ve,It)|0)+(a>>>13)|0)+(oi>>>26)|0,oi&=67108863,C=Math.imul(Le,ze),a=(a=Math.imul(Le,Je))+Math.imul(et,ze)|0,x=Math.imul(et,Je),C=C+Math.imul(de,zt)|0,a=(a=a+Math.imul(de,Ye)|0)+Math.imul(ae,zt)|0,x=x+Math.imul(ae,Ye)|0,C=C+Math.imul(qt,it)|0,a=(a=a+Math.imul(qt,He)|0)+Math.imul(S,it)|0,x=x+Math.imul(S,He)|0,C=C+Math.imul(Et,we)|0,a=(a=a+Math.imul(Et,We)|0)+Math.imul(rt,we)|0,x=x+Math.imul(rt,We)|0,C=C+Math.imul($e,St)|0,a=(a=a+Math.imul($e,At)|0)+Math.imul(dt,St)|0,x=x+Math.imul(dt,At)|0;var Ii=(P+(C=C+Math.imul(Se,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Se,It)|0)+Math.imul(be,mt)|0))<<13)|0;P=((x=x+Math.imul(be,It)|0)+(a>>>13)|0)+(Ii>>>26)|0,Ii&=67108863,C=Math.imul(Le,zt),a=(a=Math.imul(Le,Ye))+Math.imul(et,zt)|0,x=Math.imul(et,Ye),C=C+Math.imul(de,it)|0,a=(a=a+Math.imul(de,He)|0)+Math.imul(ae,it)|0,x=x+Math.imul(ae,He)|0,C=C+Math.imul(qt,we)|0,a=(a=a+Math.imul(qt,We)|0)+Math.imul(S,we)|0,x=x+Math.imul(S,We)|0,C=C+Math.imul(Et,St)|0,a=(a=a+Math.imul(Et,At)|0)+Math.imul(rt,St)|0,x=x+Math.imul(rt,At)|0;var Ei=(P+(C=C+Math.imul($e,mt)|0)|0)+((8191&(a=(a=a+Math.imul($e,It)|0)+Math.imul(dt,mt)|0))<<13)|0;P=((x=x+Math.imul(dt,It)|0)+(a>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,C=Math.imul(Le,it),a=(a=Math.imul(Le,He))+Math.imul(et,it)|0,x=Math.imul(et,He),C=C+Math.imul(de,we)|0,a=(a=a+Math.imul(de,We)|0)+Math.imul(ae,we)|0,x=x+Math.imul(ae,We)|0,C=C+Math.imul(qt,St)|0,a=(a=a+Math.imul(qt,At)|0)+Math.imul(S,St)|0,x=x+Math.imul(S,At)|0;var Nt=(P+(C=C+Math.imul(Et,mt)|0)|0)+((8191&(a=(a=a+Math.imul(Et,It)|0)+Math.imul(rt,mt)|0))<<13)|0;P=((x=x+Math.imul(rt,It)|0)+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,C=Math.imul(Le,we),a=(a=Math.imul(Le,We))+Math.imul(et,we)|0,x=Math.imul(et,We),C=C+Math.imul(de,St)|0,a=(a=a+Math.imul(de,At)|0)+Math.imul(ae,St)|0,x=x+Math.imul(ae,At)|0;var nn=(P+(C=C+Math.imul(qt,mt)|0)|0)+((8191&(a=(a=a+Math.imul(qt,It)|0)+Math.imul(S,mt)|0))<<13)|0;P=((x=x+Math.imul(S,It)|0)+(a>>>13)|0)+(nn>>>26)|0,nn&=67108863,C=Math.imul(Le,St),a=(a=Math.imul(Le,At))+Math.imul(et,St)|0,x=Math.imul(et,At);var en=(P+(C=C+Math.imul(de,mt)|0)|0)+((8191&(a=(a=a+Math.imul(de,It)|0)+Math.imul(ae,mt)|0))<<13)|0;P=((x=x+Math.imul(ae,It)|0)+(a>>>13)|0)+(en>>>26)|0,en&=67108863;var Nn=(P+(C=Math.imul(Le,mt))|0)+((8191&(a=(a=Math.imul(Le,It))+Math.imul(et,mt)|0))<<13)|0;return P=((x=Math.imul(et,It))+(a>>>13)|0)+(Nn>>>26)|0,Nn&=67108863,T[0]=wn,T[1]=In,T[2]=ei,T[3]=Li,T[4]=kt,T[5]=Ot,T[6]=Ze,T[7]=Ge,T[8]=Pt,T[9]=Yt,T[10]=bn,T[11]=Zn,T[12]=oi,T[13]=Ii,T[14]=Ei,T[15]=Nt,T[16]=nn,T[17]=en,T[18]=Nn,0!==P&&(T[19]=P,m.length++),m};function ee(L,t,s){return(new V).mulp(L,t,s)}function V(L,t){this.x=L,this.y=t}Math.imul||(j=K),o.prototype.mulTo=function(t,s){var m,u=this.length+t.length;return m=10===this.length&&10===t.length?j(this,t,s):u<63?K(this,t,s):u<1024?function Z(L,t,s){s.negative=t.negative^L.negative,s.length=L.length+t.length;for(var m=0,u=0,_=0;_>>26)|0)>>>26,T&=67108863}s.words[_]=P,m=T,T=u}return 0!==m?s.words[_]=m:s.length--,s.strip()}(this,t,s):ee(this,t,s),m},V.prototype.makeRBT=function(t){for(var s=new Array(t),m=o.prototype._countBits(t)-1,u=0;u>=1;return u},V.prototype.permute=function(t,s,m,u,_,T){for(var P=0;P>>=1)_++;return 1<<_+1+u},V.prototype.conjugate=function(t,s,m){if(!(m<=1))for(var u=0;u>>=13),_>>>=13;for(T=2*s;T>=26,s+=u/67108864|0,s+=_>>>26,this.words[m]=67108863&_}return 0!==s&&(this.words[m]=s,this.length++),0===t&&(this.length=1,this._normSign()),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var s=function M(L){for(var t=new Array(L.bitLength()),s=0;s>>u}return t}(t);if(0===s.length)return new o(1);for(var m=this,u=0;u=0);var _,s=t%26,m=(t-s)/26,u=67108863>>>26-s<<26-s;if(0!==s){var T=0;for(_=0;_>>26-s}T&&(this.words[_]=T,this.length++)}if(0!==m){for(_=this.length-1;_>=0;_--)this.words[_+m]=this.words[_];for(_=0;_=0),u=s?(s-s%26)/26:0;var _=t%26,T=Math.min((t-_)/26,this.length),P=67108863^67108863>>>_<<_,C=m;if(u-=T,u=Math.max(0,u),C){for(var a=0;aT)for(this.length-=T,a=0;a=0&&(0!==x||a>=u);a--){var Y=0|this.words[a];this.words[a]=x<<26-_|Y>>>_,x=Y&P}return C&&0!==x&&(C.words[C.length++]=x),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,s,m){return p(0===this.negative),this.iushrn(t,s,m)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){p("number"==typeof t&&t>=0);var s=t%26,m=(t-s)/26;return!(this.length<=m||!(this.words[m]&1<=0);var s=t%26,m=(t-s)/26;return p(0===this.negative,"imaskn works only with positive numbers"),this.length<=m?this:(0!==s&&m++,this.length=Math.min(m,this.length),0!==s&&(this.words[this.length-1]&=67108863^67108863>>>s<=67108864;s++)this.words[s]-=67108864,s===this.length-1?this.words[s+1]=1:this.words[s+1]++;return this.length=Math.max(this.length,s+1),this},o.prototype.isubn=function(t){if(p("number"==typeof t),p(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var s=0;s>26)-(C/67108864|0),this.words[_+m]=67108863&T}for(;_>26,this.words[_+m]=67108863&T;if(0===P)return this.strip();for(p(-1===P),P=0,_=0;_>26,this.words[_]=67108863&T;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,s){var m,u=this.clone(),_=t,T=0|_.words[_.length-1];0!=(m=26-this._countBits(T))&&(_=_.ushln(m),u.iushln(m),T=0|_.words[_.length-1]);var a,C=u.length-_.length;if("mod"!==s){(a=new o(null)).length=C+1,a.words=new Array(a.length);for(var x=0;x=0;R--){var U=67108864*(0|u.words[_.length+R])+(0|u.words[_.length+R-1]);for(U=Math.min(U/T|0,67108863),u._ishlnsubmul(_,U,R);0!==u.negative;)U--,u.negative=0,u._ishlnsubmul(_,1,R),u.isZero()||(u.negative^=1);a&&(a.words[R]=U)}return a&&a.strip(),u.strip(),"div"!==s&&0!==m&&u.iushrn(m),{div:a||null,mod:u}},o.prototype.divmod=function(t,s,m){return p(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(T=this.neg().divmod(t,s),"mod"!==s&&(u=T.div.neg()),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.iadd(t)),{div:u,mod:_}):0===this.negative&&0!==t.negative?(T=this.divmod(t.neg(),s),"mod"!==s&&(u=T.div.neg()),{div:u,mod:T.mod}):0!==(this.negative&t.negative)?(T=this.neg().divmod(t.neg(),s),"div"!==s&&(_=T.mod.neg(),m&&0!==_.negative&&_.isub(t)),{div:T.div,mod:_}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===s?{div:this.divn(t.words[0]),mod:null}:"mod"===s?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,s);var u,_,T},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var s=this.divmod(t);if(s.mod.isZero())return s.div;var m=s.mod.abs(),u=t.abs().iushrn(1),_=1&t.words[0],T=m.cmp(u);if(T<0||1===_&&0===T)return s.div;var P=new o(1);return P.negative=this.negative^t.negative,s.div.iadd(P)},o.prototype.modn=function(t){p(t<=67108863);for(var s=(1<<26)%t,m=0,u=this.length-1;u>=0;u--)m=(s*m+(0|this.words[u]))%t;return m},o.prototype.idivn=function(t){p(t<=67108863);for(var s=0,m=this.length-1;m>=0;m--){var u=(0|this.words[m])+67108864*s;this.words[m]=u/t|0,s=u%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){p(0===t.negative),p(!t.isZero());var s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=new o(0),P=new o(1),C=0;s.isEven()&&m.isEven();)s.iushrn(1),m.iushrn(1),++C;for(var a=m.clone(),x=s.clone();!s.isZero();){for(var Y=0,R=1;0===(s.words[0]&R)&&Y<26;++Y,R<<=1);if(Y>0)for(s.iushrn(Y);Y-- >0;)(u.isOdd()||_.isOdd())&&(u.iadd(a),_.isub(x)),u.iushrn(1),_.iushrn(1);for(var U=0,fe=1;0===(m.words[0]&fe)&&U<26;++U,fe<<=1);if(U>0)for(m.iushrn(U);U-- >0;)(T.isOdd()||P.isOdd())&&(T.iadd(a),P.isub(x)),T.iushrn(1),P.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(T),_.isub(P)):(m.isub(s),T.isub(u),P.isub(_))}return{a:T,b:P,gcd:m.iushln(C)}},o.prototype._invmp=function(t){p(0===t.negative),p(!t.isZero());var Y,s=this,m=t.clone();s=0!==s.negative?s.umod(t):s.clone();for(var u=new o(1),_=new o(0),T=m.clone();s.cmpn(1)>0&&m.cmpn(1)>0;){for(var P=0,C=1;0===(s.words[0]&C)&&P<26;++P,C<<=1);if(P>0)for(s.iushrn(P);P-- >0;)u.isOdd()&&u.iadd(T),u.iushrn(1);for(var a=0,x=1;0===(m.words[0]&x)&&a<26;++a,x<<=1);if(a>0)for(m.iushrn(a);a-- >0;)_.isOdd()&&_.iadd(T),_.iushrn(1);s.cmp(m)>=0?(s.isub(m),u.isub(_)):(m.isub(s),_.isub(u))}return(Y=0===s.cmpn(1)?u:_).cmpn(0)<0&&Y.iadd(t),Y},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var s=this.clone(),m=t.clone();s.negative=0,m.negative=0;for(var u=0;s.isEven()&&m.isEven();u++)s.iushrn(1),m.iushrn(1);for(;;){for(;s.isEven();)s.iushrn(1);for(;m.isEven();)m.iushrn(1);var _=s.cmp(m);if(_<0){var T=s;s=m,m=T}else if(0===_||0===m.cmpn(1))break;s.isub(m)}return m.iushln(u)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return!(1&this.words[0])},o.prototype.isOdd=function(){return!(1&~this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){p("number"==typeof t);var s=t%26,m=(t-s)/26,u=1<>>26,this.words[T]=P&=67108863}return 0!==_&&(this.words[T]=_,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var m,s=t<0;if(0!==this.negative&&!s)return-1;if(0===this.negative&&s)return 1;if(this.strip(),this.length>1)m=1;else{s&&(t=-t),p(t<=67108863,"Number is too big");var u=0|this.words[0];m=u===t?0:ut.length)return 1;if(this.length=0;m--){var u=0|this.words[m],_=0|t.words[m];if(u!==_){u<_?s=-1:u>_&&(s=1);break}}return s},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new pe(t)},o.prototype.toRed=function(t){return p(!this.red,"Already a number in reduction context"),p(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return p(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return p(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return p(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return p(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return p(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return p(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return p(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return p(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return p(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return p(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return p(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return p(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return p(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return p(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var Q={k256:null,p224:null,p192:null,p25519:null};function $(L,t){this.name=L,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ie(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _e(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function ye(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function se(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function pe(L){if("string"==typeof L){var t=o._prime(L);this.m=t.p,this.prime=t}else p(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}function Ee(L){pe.call(this,L),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}$.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var m,s=t;do{this.split(s,this.tmp),m=(s=(s=this.imulK(s)).iadd(this.tmp)).bitLength()}while(m>this.n);var u=m0?s.isub(this.p):void 0!==s.strip?s.strip():s._strip(),s},$.prototype.split=function(t,s){t.iushrn(this.n,0,s)},$.prototype.imulK=function(t){return t.imul(this.k)},D(ie,$),ie.prototype.split=function(t,s){for(var m=4194303,u=Math.min(t.length,9),_=0;_>>22,T=P}t.words[_-10]=T>>>=22,t.length-=0===T&&t.length>10?10:9},ie.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var s=0,m=0;m>>=26,t.words[m]=_,s=u}return 0!==s&&(t.words[t.length++]=s),t},o._prime=function(t){if(Q[t])return Q[t];var s;if("k256"===t)s=new ie;else if("p224"===t)s=new _e;else if("p192"===t)s=new ye;else{if("p25519"!==t)throw new Error("Unknown prime "+t);s=new se}return Q[t]=s,s},pe.prototype._verify1=function(t){p(0===t.negative,"red works only with positives"),p(t.red,"red works only with red numbers")},pe.prototype._verify2=function(t,s){p(0===(t.negative|s.negative),"red works only with positives"),p(t.red&&t.red===s.red,"red works only with red numbers")},pe.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},pe.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},pe.prototype.add=function(t,s){this._verify2(t,s);var m=t.add(s);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pe.prototype.iadd=function(t,s){this._verify2(t,s);var m=t.iadd(s);return m.cmp(this.m)>=0&&m.isub(this.m),m},pe.prototype.sub=function(t,s){this._verify2(t,s);var m=t.sub(s);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pe.prototype.isub=function(t,s){this._verify2(t,s);var m=t.isub(s);return m.cmpn(0)<0&&m.iadd(this.m),m},pe.prototype.shl=function(t,s){return this._verify1(t),this.imod(t.ushln(s))},pe.prototype.imul=function(t,s){return this._verify2(t,s),this.imod(t.imul(s))},pe.prototype.mul=function(t,s){return this._verify2(t,s),this.imod(t.mul(s))},pe.prototype.isqr=function(t){return this.imul(t,t.clone())},pe.prototype.sqr=function(t){return this.mul(t,t)},pe.prototype.sqrt=function(t){if(t.isZero())return t.clone();var s=this.m.andln(3);if(p(s%2==1),3===s){var m=this.m.add(new o(1)).iushrn(2);return this.pow(t,m)}for(var u=this.m.subn(1),_=0;!u.isZero()&&0===u.andln(1);)_++,u.iushrn(1);p(!u.isZero());var T=new o(1).toRed(this),P=T.redNeg(),C=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,C).cmp(P);)a.redIAdd(P);for(var x=this.pow(a,u),Y=this.pow(t,u.addn(1).iushrn(1)),R=this.pow(t,u),U=_;0!==R.cmp(T);){for(var fe=R,re=0;0!==fe.cmp(T);re++)fe=fe.redSqr();p(re=0;_--){for(var x=s.words[_],Y=a-1;Y>=0;Y--){var R=x>>Y&1;T!==u[0]&&(T=this.sqr(T)),0!==R||0!==P?(P<<=1,P|=R,(4===++C||0===_&&0===Y)&&(T=this.mul(T,u[P]),C=0,P=0)):C=0}a=26}return T},pe.prototype.convertTo=function(t){var s=t.umod(this.m);return s===t?s.clone():s},pe.prototype.convertFrom=function(t){var s=t.clone();return s.red=null,s},o.mont=function(t){return new Ee(t)},D(Ee,pe),Ee.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},Ee.prototype.convertFrom=function(t){var s=this.imod(t.mul(this.rinv));return s.red=null,s},Ee.prototype.imul=function(t,s){if(t.isZero()||s.isZero())return t.words[0]=0,t.length=1,t;var m=t.imul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.mul=function(t,s){if(t.isZero()||s.isZero())return new o(0)._forceRed(this);var m=t.mul(s),u=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),_=m.isub(u).iushrn(this.shift),T=_;return _.cmp(this.m)>=0?T=_.isub(this.m):_.cmpn(0)<0&&(T=_.iadd(this.m)),T._forceRed(this)},Ee.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(ke=l.nmd(ke),this)},98613(ke,q,l){var i=l(65667),g=l(30715),p=l(37196),D=l(16508),o=l(14105),e=l(67211),A=l(10568),h=l(27054).Buffer;ke.exports=function(M,K,j){var Z;Z=M.padding?M.padding:j?1:4;var Q,ee=i(M),V=ee.modulus.byteLength();if(K.length>V||new D(K).cmp(ee.modulus)>=0)throw new Error("decryption error");Q=j?A(new D(K),ee):o(K,ee);var $=h.alloc(V-Q.length);if(Q=h.concat([$,Q],V),4===Z)return function d(F,M){var K=F.modulus.byteLength(),j=e("sha1").update(h.alloc(0)).digest(),Z=j.length;if(0!==M[0])throw new Error("decryption error");var ee=M.slice(1,Z+1),V=M.slice(Z+1),Q=p(ee,g(V,Z)),$=p(V,g(Q,K-Z-1));if(function f(F,M){F=h.from(F),M=h.from(M);var K=0,j=F.length;F.length!==M.length&&(K++,j=Math.min(F.length,M.length));for(var Z=-1;++Z=M.length){ee++;break}var V=M.slice(2,Z-1);if(("0002"!==j.toString("hex")&&!K||"0001"!==j.toString("hex")&&K)&&ee++,V.length<8&&ee++,ee)throw new Error("decryption error");return M.slice(Z)}(0,Q,j);if(3===Z)return Q;throw new Error("unknown padding")}},87267(ke,q,l){var i=l(65667),g=l(3342),p=l(67211),D=l(30715),o=l(37196),e=l(16508),A=l(10568),h=l(14105),d=l(27054).Buffer;ke.exports=function(K,j,Z){var ee;ee=K.padding?K.padding:Z?1:4;var Q,V=i(K);if(4===ee)Q=function w(M,K){var j=M.modulus.byteLength(),Z=K.length,ee=p("sha1").update(d.alloc(0)).digest(),V=ee.length,Q=2*V;if(Z>j-Q-2)throw new Error("message too long");var $=d.alloc(j-Z-Q-2),ie=j-V-1,_e=g(V),ye=o(d.concat([ee,$,d.alloc(1,1),K],ie),D(_e,ie)),se=o(_e,D(ye,V));return new e(d.concat([d.alloc(1),se,ye],j))}(V,j);else if(1===ee)Q=function f(M,K,j){var V,Z=K.length,ee=M.modulus.byteLength();if(Z>ee-11)throw new Error("message too long");return V=j?d.alloc(ee-Z-3,255):function F(M){for(var V,K=d.allocUnsafe(M),j=0,Z=g(2*M),ee=0;j=0)throw new Error("data too long for modulus")}return Z?h(Q,V):A(Q,V)}},10568(ke,q,l){var i=l(16508),g=l(27054).Buffer;ke.exports=function p(D,o){return g.from(D.toRed(i.mont(o.modulus)).redPow(new i(o.publicExponent)).fromRed().toArray())}},37196(ke){ke.exports=function(l,i){for(var g=l.length,p=-1;++p"u"?(w=d,d=void 0):(w=d,d=h,h=A,A=void 0));try{const K=g.create(h,d);w(null,e(K,A,d))}catch(K){w(K)}}q.create=g.create,q.toCanvas=o.bind(null,p.render),q.toDataURL=o.bind(null,p.renderToDataURL),q.toString=o.bind(null,function(e,A,h){return D.render(e,h)})},72836(ke){ke.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},96214(ke,q,l){const i=l(19089).getSymbolSize;q.getRowColCoords=function(p){if(1===p)return[];const D=Math.floor(p/7)+2,o=i(p),e=145===o?26:2*Math.ceil((o-13)/(2*D-2)),A=[o-7];for(let h=1;h>>7-l%8&1)},put:function(l,i){for(let g=0;g>>i-g-1&1))},getLengthInBits:function(){return this.length},putBit:function(l){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),l&&(this.buffer[i]|=128>>>this.length%8),this.length++}},ke.exports=q},35941(ke){function q(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}q.prototype.set=function(l,i,g,p){const D=l*this.size+i;this.data[D]=g,p&&(this.reservedBit[D]=!0)},q.prototype.get=function(l,i){return this.data[l*this.size+i]},q.prototype.xor=function(l,i,g){this.data[l*this.size+i]^=g},q.prototype.isReserved=function(l,i){return this.reservedBit[l*this.size+i]},ke.exports=q},54969(ke,q,l){const i=l(91677);function g(p){this.mode=i.BYTE,this.data="string"==typeof p?(new TextEncoder).encode(p):new Uint8Array(p)}g.getBitsLength=function(D){return 8*D},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(p){for(let D=0,o=this.data.length;D=0&&g.bit<4},q.from=function(g,p){if(q.isValid(g))return g;try{return function l(i){if("string"!=typeof i)throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return q.L;case"m":case"medium":return q.M;case"q":case"quartile":return q.Q;case"h":case"high":return q.H;default:throw new Error("Unknown EC Level: "+i)}}(g)}catch{return p}}},76269(ke,q,l){const i=l(19089).getSymbolSize;q.getPositions=function(D){const o=i(D);return[[0,0],[o-7,0],[0,o-7]]}},26254(ke,q,l){const i=l(19089),D=i.getBCHDigit(1335);q.getEncodedBits=function(e,A){const h=e.bit<<3|A;let d=h<<10;for(;i.getBCHDigit(d)-D>=0;)d^=1335<=33088&&e<=40956)e-=33088;else{if(!(e>=57408&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[o]+"\nMake sure your charset is UTF-8");e-=49472}e=192*(e>>>8&255)+(255&e),D.put(e,13)}},ke.exports=p},3361(ke,q){q.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function i(g,p,D){switch(g){case q.Patterns.PATTERN000:return(p+D)%2==0;case q.Patterns.PATTERN001:return p%2==0;case q.Patterns.PATTERN010:return D%3==0;case q.Patterns.PATTERN011:return(p+D)%3==0;case q.Patterns.PATTERN100:return(Math.floor(p/2)+Math.floor(D/3))%2==0;case q.Patterns.PATTERN101:return p*D%2+p*D%3==0;case q.Patterns.PATTERN110:return(p*D%2+p*D%3)%2==0;case q.Patterns.PATTERN111:return(p*D%3+(p+D)%2)%2==0;default:throw new Error("bad maskPattern:"+g)}}q.isValid=function(p){return null!=p&&""!==p&&!isNaN(p)&&p>=0&&p<=7},q.from=function(p){return q.isValid(p)?parseInt(p,10):void 0},q.getPenaltyN1=function(p){const D=p.size;let o=0,e=0,A=0,h=null,d=null;for(let w=0;w=5&&(o+=e-5+3),h=F,e=1),F=p.get(f,w),F===d?A++:(A>=5&&(o+=A-5+3),d=F,A=1)}e>=5&&(o+=e-5+3),A>=5&&(o+=A-5+3)}return o},q.getPenaltyN2=function(p){const D=p.size;let o=0;for(let e=0;e=10&&(1488===e||93===e)&&o++,A=A<<1&2047|p.get(d,h),d>=10&&(1488===A||93===A)&&o++}return 40*o},q.getPenaltyN4=function(p){let D=0;const o=p.data.length;for(let A=0;A=1&&e<10?o.ccBits[0]:e<27?o.ccBits[1]:o.ccBits[2]},q.getBestModeForData=function(o){return g.testNumeric(o)?q.NUMERIC:g.testAlphanumeric(o)?q.ALPHANUMERIC:g.testKanji(o)?q.KANJI:q.BYTE},q.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},q.isValid=function(o){return o&&o.bit&&o.ccBits},q.from=function(o,e){if(q.isValid(o))return o;try{return function p(D){if("string"!=typeof D)throw new Error("Param is not a string");switch(D.toLowerCase()){case"numeric":return q.NUMERIC;case"alphanumeric":return q.ALPHANUMERIC;case"kanji":return q.KANJI;case"byte":return q.BYTE;default:throw new Error("Unknown mode: "+D)}}(o)}catch{return e}}},96628(ke,q,l){const i=l(91677);function g(p){this.mode=i.NUMERIC,this.data=p.toString()}g.getBitsLength=function(D){return 10*Math.floor(D/3)+(D%3?D%3*3+1:0)},g.prototype.getLength=function(){return this.data.length},g.prototype.getBitsLength=function(){return g.getBitsLength(this.data.length)},g.prototype.write=function(D){let o,e,A;for(o=0;o+3<=this.data.length;o+=3)e=this.data.substr(o,3),A=parseInt(e,10),D.put(A,10);const h=this.data.length-o;h>0&&(e=this.data.substr(o),A=parseInt(e,10),D.put(A,3*h+1))},ke.exports=g},81744(ke,q,l){const i=l(66686);q.mul=function(p,D){const o=new Uint8Array(p.length+D.length-1);for(let e=0;e=0;){const e=o[0];for(let h=0;h>t&1),ye.set(t<6?t:t<8?t+1:Ee-15+t,8,s,!0),ye.set(8,t<8?Ee-t-1:t<9?15-t-1+1:15-t-1,s,!0);ye.set(Ee-8,8,1,!0)}function _e(ye,se,pe,Ee){let L;if(Array.isArray(ye))L=M.fromArray(ye);else{if("string"!=typeof ye)throw new Error("Invalid data");{let _=se;if(!_){const T=M.rawSplit(ye);_=w.getBestVersionForData(T,pe)}L=M.fromString(ye,_||40)}}const t=w.getBestVersionForData(L,pe);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(se){if(se=0&&m<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===m||6===m)||m>=2&&m<=4&&u>=2&&u<=4,!0)}}(u,se),function j(ye){const se=ye.size;for(let pe=8;pe=7&&function ee(ye,se){const pe=ye.size,Ee=w.getEncodedBits(se);let L,t,s;for(let m=0;m<18;m++)L=Math.floor(m/3),t=m%3+pe-8-3,s=1==(Ee>>m&1),ye.set(L,t,s,!0),ye.set(t,L,s,!0)}(u,se),function Q(ye,se){const pe=ye.size;let Ee=-1,L=pe-1,t=7,s=0;for(let m=pe-1;m>0;m-=2)for(6===m&&m--;;){for(let u=0;u<2;u++)if(!ye.isReserved(L,m-u)){let _=!1;s>>t&1)),ye.set(L,m-u,_),t--,-1===t&&(s++,t=7)}if(L+=Ee,L<0||pe<=L){L-=Ee,Ee=-Ee;break}}}(u,s),isNaN(Ee)&&(Ee=A.getBestMask(u,V.bind(null,u,pe))),A.applyMask(Ee,u),V(u,pe,Ee),{modules:u,version:se,errorCorrectionLevel:pe,maskPattern:Ee,segments:L}}q.create=function(se,pe){if(typeof se>"u"||""===se)throw new Error("No input text");let L,t,Ee=g.M;return typeof pe<"u"&&(Ee=g.from(pe.errorCorrectionLevel,g.M),L=w.from(pe.version),t=A.from(pe.maskPattern),pe.toSJISFunc&&i.setToSJISFunction(pe.toSJISFunc)),_e(se,L,Ee,t)}},86289(ke,q,l){const i=l(81744);function g(p){this.genPoly=void 0,this.degree=p,this.degree&&this.initialize(this.degree)}g.prototype.initialize=function(D){this.degree=D,this.genPoly=i.generateECPolynomial(this.degree)},g.prototype.encode=function(D){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(D.length+this.degree);o.set(D);const e=i.mod(o,this.genPoly),A=this.degree-e.length;if(A>0){const h=new Uint8Array(this.degree);return h.set(e,A),h}return e},ke.exports=g},99359(ke,q){const l="[0-9]+";let g="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";g=g.replace(/u/g,"\\u");const p="(?:(?![A-Z0-9 $%*+\\-./:]|"+g+")(?:.|[\r\n]))+";q.KANJI=new RegExp(g,"g"),q.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),q.BYTE=new RegExp(p,"g"),q.NUMERIC=new RegExp(l,"g"),q.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const D=new RegExp("^"+g+"$"),o=new RegExp("^"+l+"$"),e=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");q.testKanji=function(h){return D.test(h)},q.testNumeric=function(h){return o.test(h)},q.testAlphanumeric=function(h){return e.test(h)}},22868(ke,q,l){const i=l(91677),g=l(96628),p=l(1018),D=l(54969),o=l(83264),e=l(99359),A=l(19089),h=l(80243);function d(ee){return unescape(encodeURIComponent(ee)).length}function w(ee,V,Q){const $=[];let ie;for(;null!==(ie=ee.exec(Q));)$.push({data:ie[0],index:ie.index,mode:V,length:ie[0].length});return $}function f(ee){const V=w(e.NUMERIC,i.NUMERIC,ee),Q=w(e.ALPHANUMERIC,i.ALPHANUMERIC,ee);let $,ie;return A.isKanjiModeEnabled()?($=w(e.BYTE,i.BYTE,ee),ie=w(e.KANJI,i.KANJI,ee)):($=w(e.BYTE_KANJI,i.BYTE,ee),ie=[]),V.concat(Q,$,ie).sort(function(ye,se){return ye.index-se.index}).map(function(ye){return{data:ye.data,mode:ye.mode,length:ye.length}})}function F(ee,V){switch(V){case i.NUMERIC:return g.getBitsLength(ee);case i.ALPHANUMERIC:return p.getBitsLength(ee);case i.KANJI:return o.getBitsLength(ee);case i.BYTE:return D.getBitsLength(ee)}}function Z(ee,V){let Q;const $=i.getBestModeForData(ee);if(Q=i.from(V,$),Q!==i.BYTE&&Q.bit<$.bit)throw new Error('"'+ee+'" cannot be encoded with mode '+i.toString(Q)+".\n Suggested mode is: "+i.toString($));switch(Q===i.KANJI&&!A.isKanjiModeEnabled()&&(Q=i.BYTE),Q){case i.NUMERIC:return new g(ee);case i.ALPHANUMERIC:return new p(ee);case i.KANJI:return new o(ee);case i.BYTE:return new D(ee)}}q.fromArray=function(V){return V.reduce(function(Q,$){return"string"==typeof $?Q.push(Z($,null)):$.data&&Q.push(Z($.data,$.mode)),Q},[])},q.fromString=function(V,Q){const ie=function K(ee){const V=[];for(let Q=0;Q=0?V[V.length-1]:null;return $&&$.mode===Q.mode?(V[V.length-1].data+=Q.data,V):(V.push(Q),V)},[])}(se))},q.rawSplit=function(V){return q.fromArray(f(V,A.isKanjiModeEnabled()))}},19089(ke,q){let l;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];q.getSymbolSize=function(p){if(!p)throw new Error('"version" cannot be null or undefined');if(p<1||p>40)throw new Error('"version" should be in range from 1 to 40');return 4*p+17},q.getSymbolTotalCodewords=function(p){return i[p]},q.getBCHDigit=function(g){let p=0;for(;0!==g;)p++,g>>>=1;return p},q.setToSJISFunction=function(p){if("function"!=typeof p)throw new Error('"toSJISFunc" is not a valid function.');l=p},q.isKanjiModeEnabled=function(){return typeof l<"u"},q.toSJIS=function(p){return l(p)}},80377(ke,q){q.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}},91252(ke,q,l){const i=l(19089),g=l(23677),p=l(47424),D=l(91677),o=l(80377),A=i.getBCHDigit(7973);function d(F,M){return D.getCharCountIndicator(F,M)+4}function w(F,M){let K=0;return F.forEach(function(j){const Z=d(j.mode,M);K+=Z+j.getBitsLength()}),K}q.from=function(M,K){return o.isValid(M)?parseInt(M,10):K},q.getCapacity=function(M,K,j){if(!o.isValid(M))throw new Error("Invalid QR Code version");typeof j>"u"&&(j=D.BYTE);const V=8*(i.getSymbolTotalCodewords(M)-g.getTotalCodewordsCount(M,K));if(j===D.MIXED)return V;const Q=V-d(j,M);switch(j){case D.NUMERIC:return Math.floor(Q/10*3);case D.ALPHANUMERIC:return Math.floor(Q/11*2);case D.KANJI:return Math.floor(Q/13);default:return Math.floor(Q/8)}},q.getBestVersionForData=function(M,K){let j;const Z=p.from(K,p.M);if(Array.isArray(M)){if(M.length>1)return function f(F,M){for(let K=1;K<=40;K++)if(w(F,K)<=q.getCapacity(K,M,D.MIXED))return K}(M,Z);if(0===M.length)return 1;j=M[0]}else j=M;return function h(F,M,K){for(let j=1;j<=40;j++)if(M<=q.getCapacity(j,K,F))return j}(j.mode,j.getLength(),Z)},q.getEncodedBits=function(M){if(!o.isValid(M)||M<7)throw new Error("Invalid QR Code version");let K=M<<12;for(;i.getBCHDigit(K)-A>=0;)K^=7973<"u"&&(!e||!e.getContext)&&(h=e,e=void 0),e||(d=function p(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}()),h=i.getOptions(h);const w=i.getImageWidth(o.modules.size,h),f=d.getContext("2d"),F=f.createImageData(w,w);return i.qrToImageData(F.data,o,h),function g(D,o,e){D.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=e,o.width=e,o.style.height=e+"px",o.style.width=e+"px"}(f,d,w),f.putImageData(F,0,0),d},q.renderToDataURL=function(o,e,A){let h=A;return typeof h>"u"&&(!e||!e.getContext)&&(h=e,e=void 0),h||(h={}),q.render(o,e,h).toDataURL(h.type||"image/png",(h.rendererOpts||{}).quality)}},56511(ke,q,l){const i=l(47077);function g(o,e){const A=o.a/255,h=e+'="'+o.hex+'"';return A<1?h+" "+e+'-opacity="'+A.toFixed(2).slice(1)+'"':h}function p(o,e,A){let h=o+e;return typeof A<"u"&&(h+=" "+A),h}q.render=function(e,A,h){const d=i.getOptions(A),w=e.modules.size,f=e.modules.data,F=w+2*d.margin,M=d.color.light.a?"':"",K="0&&M>0&&o[F-1]||(h+=w?p("M",M+A,.5+K+A):p("m",d,0),d=0,w=!1),M+1',ee=''+M+K+"\n";return"function"==typeof h&&h(null,ee),ee}},47077(ke,q){function l(i){if("number"==typeof i&&(i=i.toString()),"string"!=typeof i)throw new Error("Color should be defined as hex string");let g=i.slice().replace("#","").split("");if(g.length<3||5===g.length||g.length>8)throw new Error("Invalid hex color: "+i);(3===g.length||4===g.length)&&(g=Array.prototype.concat.apply([],g.map(function(D){return[D,D]}))),6===g.length&&g.push("F","F");const p=parseInt(g.join(""),16);return{r:p>>24&255,g:p>>16&255,b:p>>8&255,a:255&p,hex:"#"+g.slice(0,6).join("")}}q.getOptions=function(g){g||(g={}),g.color||(g.color={});const D=g.width&&g.width>=21?g.width:void 0;return{width:D,scale:D?4:g.scale||4,margin:typeof g.margin>"u"||null===g.margin||g.margin<0?4:g.margin,color:{dark:l(g.color.dark||"#000000ff"),light:l(g.color.light||"#ffffffff")},type:g.type,rendererOpts:g.rendererOpts||{}}},q.getScale=function(g,p){return p.width&&p.width>=g+2*p.margin?p.width/(g+2*p.margin):p.scale},q.getImageWidth=function(g,p){const D=q.getScale(g,p);return Math.floor((g+2*p.margin)*D)},q.qrToImageData=function(g,p,D){const o=p.modules.size,e=p.modules.data,A=q.getScale(o,D),h=Math.floor((o+2*D.margin)*A),d=D.margin*A,w=[D.color.light,D.color.dark];for(let f=0;f=d&&F>=d&&f4294967295)throw new RangeError("requested too many random bytes");var d=D.allocUnsafe(A);if(A>0)if(A>i)for(var w=0;wA||M<0)throw new TypeError("offset must be a uint32");if(M>o||M>K)throw new RangeError("offset out of range")}function d(M,K,j){if("number"!=typeof M||M!=M)throw new TypeError("size must be a number");if(M>A||M<0)throw new TypeError("size must be a uint32");if(M+K>j||M>o)throw new RangeError("buffer too small")}function f(M,K,j,Z){if(process.browser){var V=new Uint8Array(M.buffer,K,j);return e.getRandomValues(V),Z?void process.nextTick(function(){Z(null,M)}):M}if(!Z)return p(j).copy(M,K),M;p(j,function($,ie){if($)return Z($);ie.copy(M,K),Z(null,M)})}e&&e.getRandomValues||!process.browser?(q.randomFill=function w(M,K,j,Z){if(!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof K)Z=K,K=0,j=M.length;else if("function"==typeof j)Z=j,j=M.length-K;else if("function"!=typeof Z)throw new TypeError('"cb" argument must be a function');return h(K,M.length),d(j,K,M.length),f(M,K,j,Z)},q.randomFillSync=function F(M,K,j){if(typeof K>"u"&&(K=0),!(D.isBuffer(M)||M instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return h(K,M.length),void 0===j&&(j=M.length-K),d(j,K,M.length),f(M,K,j)}):(q.randomFill=i,q.randomFillSync=i)},74075(ke,q,l){"use strict";var i=l(9656),g=Object.keys||function(F){var M=[];for(var K in F)M.push(K);return M};ke.exports=d;var p=Object.create(l(27637));p.inherits=l(71993);var D=l(19609),o=l(47849);p.inherits(d,D);for(var e=g(o.prototype),A=0;A0?("string"!=typeof ce&&!oe.objectMode&&Object.getPrototypeOf(ce)!==A.prototype&&(ce=function d(ge){return A.from(ge)}(ce)),Me?oe.endEmitted?ge.emit("error",new Error("stream.unshift() after end event")):_e(ge,oe,ce,!0):oe.ended?ge.emit("error",new Error("stream.push() after EOF")):(oe.reading=!1,oe.decoder&&!Re?(ce=oe.decoder.write(ce),oe.objectMode||0!==ce.length?_e(ge,oe,ce,!1):u(ge,oe)):_e(ge,oe,ce,!1))):Me||(oe.reading=!1)),function se(ge){return!ge.ended&&(ge.needReadable||ge.lengthce.highWaterMark&&(ce.highWaterMark=function Ee(ge){return ge>=8388608?ge=8388608:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}(ge)),ge<=ce.length?ge:ce.ended?ce.length:(ce.needReadable=!0,0))}function s(ge){var ce=ge._readableState;ce.needReadable=!1,ce.emittedReadable||(M("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?i.nextTick(m,ge):m(ge))}function m(ge){M("emit readable"),ge.emit("readable"),x(ge)}function u(ge,ce){ce.readingMore||(ce.readingMore=!0,i.nextTick(_,ge,ce))}function _(ge,ce){for(var Re=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length=ce.length?(Re=ce.decoder?ce.buffer.join(""):1===ce.buffer.length?ce.buffer.head.data:ce.buffer.concat(ce.length),ce.buffer.clear()):Re=function R(ge,ce,Re){var Me;return geoe.length?oe.length:ge;if(ve+=Se===oe.length?oe:oe.slice(0,ge),0===(ge-=Se)){Se===oe.length?(++Me,ce.head=Re.next?Re.next:ce.tail=null):(ce.head=Re,Re.data=oe.slice(Se));break}++Me}return ce.length-=Me,ve}(ge,ce):function fe(ge,ce){var Re=A.allocUnsafe(ge),Me=ce.head,ve=1;for(Me.data.copy(Re),ge-=Me.data.length;Me=Me.next;){var oe=Me.data,Se=ge>oe.length?oe.length:ge;if(oe.copy(Re,Re.length-ge,0,Se),0===(ge-=Se)){Se===oe.length?(++ve,ce.head=Me.next?Me.next:ce.tail=null):(ce.head=Me,Me.data=oe.slice(Se));break}++ve}return ce.length-=ve,Re}(ge,ce),Me}(ge,ce.buffer,ce.decoder),Re);var Re}function re(ge){var ce=ge._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,i.nextTick(he,ce,ge))}function he(ge,ce){!ge.endEmitted&&0===ge.length&&(ge.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function Oe(ge,ce){for(var Re=0,Me=ge.length;Re=ce.highWaterMark||ce.ended))return M("read: emitReadable",ce.length,ce.ended),0===ce.length&&ce.ended?re(this):s(this),null;if(0===(ge=L(ge,ce))&&ce.ended)return 0===ce.length&&re(this),null;var ve,Me=ce.needReadable;return M("need readable",Me),(0===ce.length||ce.length-ge0?Y(ge,ce):null)?(ce.needReadable=!0,ge=0):ce.length-=ge,0===ce.length&&(ce.ended||(ce.needReadable=!0),Re!==ge&&ce.ended&&re(this)),null!==ve&&this.emit("data",ve),ve},$.prototype._read=function(ge){this.emit("error",new Error("_read() is not implemented"))},$.prototype.pipe=function(ge,ce){var Re=this,Me=this._readableState;switch(Me.pipesCount){case 0:Me.pipes=ge;break;case 1:Me.pipes=[Me.pipes,ge];break;default:Me.pipes.push(ge)}Me.pipesCount+=1,M("pipe count=%d opts=%j",Me.pipesCount,ce);var oe=ce&&!1===ce.end||ge===process.stdout||ge===process.stderr?S:be;function be(){M("onend"),ge.end()}Me.endEmitted?i.nextTick(oe):Re.once("end",oe),ge.on("unpipe",function Se(Xt,de){M("onunpipe"),Xt===Re&&de&&!1===de.hasUnpiped&&(de.hasUnpiped=!0,function dt(){M("cleanup"),ge.removeListener("close",Mn),ge.removeListener("finish",qt),ge.removeListener("drain",nt),ge.removeListener("error",rt),ge.removeListener("unpipe",Se),Re.removeListener("end",be),Re.removeListener("end",S),Re.removeListener("data",Et),$e=!0,Me.awaitDrain&&(!ge._writableState||ge._writableState.needDrain)&&nt()}())});var nt=function T(ge){return function(){var ce=ge._readableState;M("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,0===ce.awaitDrain&&o(ge,"data")&&(ce.flowing=!0,x(ge))}}(Re);ge.on("drain",nt);var $e=!1,yt=!1;function Et(Xt){M("ondata"),yt=!1,!1===ge.write(Xt)&&!yt&&((1===Me.pipesCount&&Me.pipes===ge||Me.pipesCount>1&&-1!==Oe(Me.pipes,ge))&&!$e&&(M("false write response, pause",Me.awaitDrain),Me.awaitDrain++,yt=!0),Re.pause())}function rt(Xt){M("onerror",Xt),S(),ge.removeListener("error",rt),0===o(ge,"error")&&ge.emit("error",Xt)}function Mn(){ge.removeListener("finish",qt),S()}function qt(){M("onfinish"),ge.removeListener("close",Mn),S()}function S(){M("unpipe"),Re.unpipe(ge)}return Re.on("data",Et),function V(ge,ce,Re){if("function"==typeof ge.prependListener)return ge.prependListener(ce,Re);ge._events&&ge._events[ce]?g(ge._events[ce])?ge._events[ce].unshift(Re):ge._events[ce]=[Re,ge._events[ce]]:ge.on(ce,Re)}(ge,"error",rt),ge.once("close",Mn),ge.once("finish",qt),ge.emit("pipe",Re),Me.flowing||(M("pipe resume"),Re.resume()),ge},$.prototype.unpipe=function(ge){var ce=this._readableState,Re={hasUnpiped:!1};if(0===ce.pipesCount)return this;if(1===ce.pipesCount)return ge&&ge!==ce.pipes||(ge||(ge=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ge&&ge.emit("unpipe",this,Re)),this;if(!ge){var Me=ce.pipes,ve=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var oe=0;oe-1?setImmediate:i.nextTick;ee.WritableState=j;var e=Object.create(l(27637));e.inherits=l(71993);var Z,A={deprecate:l(3398)},h=l(18342),d=l(2655).Buffer,w=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},M=l(21509);function K(){}function j(C,a){o=o||l(74075);var x=a instanceof o;this.objectMode=!!(C=C||{}).objectMode,x&&(this.objectMode=this.objectMode||!!C.writableObjectMode);var Y=C.highWaterMark,R=C.writableHighWaterMark;this.highWaterMark=Y||0===Y?Y:x&&(R||0===R)?R:this.objectMode?16:16384,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===C.decodeStrings),this.defaultEncoding=C.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(re){!function pe(C,a){var x=C._writableState,Y=x.sync,R=x.writecb;if(function se(C){C.writing=!1,C.writecb=null,C.length-=C.writelen,C.writelen=0}(x),a)!function ye(C,a,x,Y,R){--a.pendingcb,x?(i.nextTick(R,Y),i.nextTick(_,C,a),C._writableState.errorEmitted=!0,C.emit("error",Y)):(R(Y),C._writableState.errorEmitted=!0,C.emit("error",Y),_(C,a))}(C,x,Y,a,R);else{var U=s(x);!U&&!x.corked&&!x.bufferProcessing&&x.bufferedRequest&&t(C,x),Y?D(Ee,C,x,U,R):Ee(C,x,U,R)}}(a,re)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}function ee(C){if(o=o||l(74075),!(Z.call(ee,this)||this instanceof o))return new ee(C);this._writableState=new j(C,this),this.writable=!0,C&&("function"==typeof C.write&&(this._write=C.write),"function"==typeof C.writev&&(this._writev=C.writev),"function"==typeof C.destroy&&(this._destroy=C.destroy),"function"==typeof C.final&&(this._final=C.final)),h.call(this)}function _e(C,a,x,Y,R,U,fe){a.writelen=Y,a.writecb=fe,a.writing=!0,a.sync=!0,x?C._writev(R,a.onwrite):C._write(R,U,a.onwrite),a.sync=!1}function Ee(C,a,x,Y){x||function L(C,a){0===a.length&&a.needDrain&&(a.needDrain=!1,C.emit("drain"))}(C,a),a.pendingcb--,Y(),_(C,a)}function t(C,a){a.bufferProcessing=!0;var x=a.bufferedRequest;if(C._writev&&x&&x.next){var R=new Array(a.bufferedRequestCount),U=a.corkedRequestsFree;U.entry=x;for(var fe=0,re=!0;x;)R[fe]=x,x.isBuf||(re=!1),x=x.next,fe+=1;R.allBuffers=re,_e(C,a,!0,a.length,R,"",U.finish),a.pendingcb++,a.lastBufferedRequest=null,U.next?(a.corkedRequestsFree=U.next,U.next=null):a.corkedRequestsFree=new p(a),a.bufferedRequestCount=0}else{for(;x;){var he=x.chunk;if(_e(C,a,!1,a.objectMode?1:he.length,he,x.encoding,x.callback),x=x.next,a.bufferedRequestCount--,a.writing)break}null===x&&(a.lastBufferedRequest=null)}a.bufferedRequest=x,a.bufferProcessing=!1}function s(C){return C.ending&&0===C.length&&null===C.bufferedRequest&&!C.finished&&!C.writing}function m(C,a){C._final(function(x){a.pendingcb--,x&&C.emit("error",x),a.prefinished=!0,C.emit("prefinish"),_(C,a)})}function _(C,a){var x=s(a);return x&&(function u(C,a){!a.prefinished&&!a.finalCalled&&("function"==typeof C._final?(a.pendingcb++,a.finalCalled=!0,i.nextTick(m,C,a)):(a.prefinished=!0,C.emit("prefinish")))}(C,a),0===a.pendingcb&&(a.finished=!0,C.emit("finish"))),x}e.inherits(ee,h),j.prototype.getBuffer=function(){for(var a=this.bufferedRequest,x=[];a;)x.push(a),a=a.next;return x},function(){try{Object.defineProperty(j.prototype,"buffer",{get:A.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(Z=Function.prototype[Symbol.hasInstance],Object.defineProperty(ee,Symbol.hasInstance,{value:function(C){return!!Z.call(this,C)||this===ee&&C&&C._writableState instanceof j}})):Z=function(C){return C instanceof this},ee.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},ee.prototype.write=function(C,a,x){var Y=this._writableState,R=!1,U=!Y.objectMode&&function F(C){return d.isBuffer(C)||C instanceof w}(C);return U&&!d.isBuffer(C)&&(C=function f(C){return d.from(C)}(C)),"function"==typeof a&&(x=a,a=null),U?a="buffer":a||(a=Y.defaultEncoding),"function"!=typeof x&&(x=K),Y.ended?function V(C,a){var x=new Error("write after end");C.emit("error",x),i.nextTick(a,x)}(this,x):(U||function Q(C,a,x,Y){var R=!0,U=!1;return null===x?U=new TypeError("May not write null values to stream"):"string"!=typeof x&&void 0!==x&&!a.objectMode&&(U=new TypeError("Invalid non-string/buffer chunk")),U&&(C.emit("error",U),i.nextTick(Y,U),R=!1),R}(this,Y,C,x))&&(Y.pendingcb++,R=function ie(C,a,x,Y,R,U){if(!x){var fe=function $(C,a,x){return!C.objectMode&&!1!==C.decodeStrings&&"string"==typeof a&&(a=d.from(a,x)),a}(a,Y,R);Y!==fe&&(x=!0,R="buffer",Y=fe)}var re=a.objectMode?1:Y.length;a.length+=re;var he=a.length-1))throw new TypeError("Unknown encoding: "+a);return this._writableState.defaultEncoding=a,this},Object.defineProperty(ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),ee.prototype._write=function(C,a,x){x(new Error("_write() is not implemented"))},ee.prototype._writev=null,ee.prototype.end=function(C,a,x){var Y=this._writableState;"function"==typeof C?(x=C,C=null,a=null):"function"==typeof a&&(x=a,a=null),null!=C&&this.write(C,a),Y.corked&&(Y.corked=1,this.uncork()),Y.ending||function T(C,a,x){a.ending=!0,_(C,a),x&&(a.finished?i.nextTick(x):C.once("finish",x)),a.ended=!0,C.writable=!1}(this,Y,x)},Object.defineProperty(ee.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(C){this._writableState&&(this._writableState.destroyed=C)}}),ee.prototype.destroy=M.destroy,ee.prototype._undestroy=M.undestroy,ee.prototype._destroy=function(C,a){this.end(),a(C)}},27809(ke,q,l){"use strict";var g=l(2655).Buffer,p=l(15340);function D(o,e,A){o.copy(e,A)}ke.exports=function(){function o(){(function i(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(A){var h={data:A,next:null};this.length>0?this.tail.next=h:this.head=h,this.tail=h,++this.length},o.prototype.unshift=function(A){var h={data:A,next:this.head};0===this.length&&(this.tail=h),this.head=h,++this.length},o.prototype.shift=function(){if(0!==this.length){var A=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,A}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(A){if(0===this.length)return"";for(var h=this.head,d=""+h.data;h=h.next;)d+=A+h.data;return d},o.prototype.concat=function(A){if(0===this.length)return g.alloc(0);for(var h=g.allocUnsafe(A>>>0),d=this.head,w=0;d;)D(d.data,h,w),w+=d.data.length,d=d.next;return h},o}(),p&&p.inspect&&p.inspect.custom&&(ke.exports.prototype[p.inspect.custom]=function(){var o=p.inspect({length:this.length});return this.constructor.name+" "+o})},21509(ke,q,l){"use strict";var i=l(9656);function D(o,e){o.emit("error",e)}ke.exports={destroy:function g(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(D,this,o)):i.nextTick(D,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted||(A._writableState.errorEmitted=!0,i.nextTick(D,A,w)):i.nextTick(D,A,w):e&&e(w)}),this)},undestroy:function p(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},18342(ke,q,l){ke.exports=l(44356).EventEmitter},2655(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},5942(ke,q,l){(q=ke.exports=l(19609)).Stream=q,q.Readable=q,q.Writable=l(47849),q.Duplex=l(74075),q.Transform=l(2909),q.PassThrough=l(18823)},36636(ke,q,l){"use strict";var i=l(83838).Buffer,g=l(71993),p=l(19846),D=new Array(16),o=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],e=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],w=[1352829926,1548603684,1836072691,2053994217,0];function f(V,Q){return V<>>32-Q}function F(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^$^ie)+ye+se|0,pe)+_e|0}function M(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&$|~Q&ie)+ye+se|0,pe)+_e|0}function K(V,Q,$,ie,_e,ye,se,pe){return f(V+((Q|~$)^ie)+ye+se|0,pe)+_e|0}function j(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q&ie|$&~ie)+ye+se|0,pe)+_e|0}function Z(V,Q,$,ie,_e,ye,se,pe){return f(V+(Q^($|~ie))+ye+se|0,pe)+_e|0}function ee(){p.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}g(ee,p),ee.prototype._update=function(){for(var V=D,Q=0;Q<16;++Q)V[Q]=this._block.readInt32LE(4*Q);for(var $=0|this._a,ie=0|this._b,_e=0|this._c,ye=0|this._d,se=0|this._e,pe=0|this._a,Ee=0|this._b,L=0|this._c,t=0|this._d,s=0|this._e,m=0;m<80;m+=1){var u,_;m<16?(u=F($,ie,_e,ye,se,V[o[m]],d[0],A[m]),_=Z(pe,Ee,L,t,s,V[e[m]],w[0],h[m])):m<32?(u=M($,ie,_e,ye,se,V[o[m]],d[1],A[m]),_=j(pe,Ee,L,t,s,V[e[m]],w[1],h[m])):m<48?(u=K($,ie,_e,ye,se,V[o[m]],d[2],A[m]),_=K(pe,Ee,L,t,s,V[e[m]],w[2],h[m])):m<64?(u=j($,ie,_e,ye,se,V[o[m]],d[3],A[m]),_=M(pe,Ee,L,t,s,V[e[m]],w[3],h[m])):(u=Z($,ie,_e,ye,se,V[o[m]],d[4],A[m]),_=F(pe,Ee,L,t,s,V[e[m]],w[4],h[m])),$=se,se=ye,ye=f(_e,10),_e=ie,ie=u,pe=s,s=t,t=f(L,10),L=Ee,Ee=_}var T=this._b+_e+t|0;this._b=this._c+ye+s|0,this._c=this._d+se+pe|0,this._d=this._e+$+Ee|0,this._e=this._a+ie+L|0,this._a=T},ee.prototype._digest=function(){this._block[this._blockOffset]=128,this._blockOffset+=1,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var V=i.alloc?i.alloc(20):new i(20);return V.writeInt32LE(this._a,0),V.writeInt32LE(this._b,4),V.writeInt32LE(this._c,8),V.writeInt32LE(this._d,12),V.writeInt32LE(this._e,16),V},ke.exports=ee},19846(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(35696),p=l(5942).Transform;function o(e){p.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}l(71993)(o,p),o.prototype._transform=function(e,A,h){var d=null;try{this.update(e,A)}catch(w){d=w}h(d)},o.prototype._flush=function(e){var A=null;try{this.push(this.digest())}catch(h){A=h}e(A)},o.prototype.update=function(e,A){if(this._finalized)throw new Error("Digest already called");for(var h=g(e,A),d=this._block,w=0;this._blockOffset+h.length-w>=this._blockSize;){for(var f=this._blockOffset;f0;++F)this._length[F]+=M,(M=this._length[F]/4294967296|0)>0&&(this._length[F]-=4294967296*M);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var A=this._digest();void 0!==e&&(A=A.toString(e)),this._block.fill(0),this._blockOffset=0;for(var h=0;h<4;++h)this._length[h]=0;return A},o.prototype._digest=function(){throw new Error("_digest is not implemented")},ke.exports=o},35696(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090),p=typeof Uint8Array<"u",o=p&&typeof ArrayBuffer<"u"&&ArrayBuffer.isView;ke.exports=function(e,A){if("string"==typeof e||i.isBuffer(e)||p&&e instanceof Uint8Array||o&&o(e))return g(e,A);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},84412(ke,q,l){"use strict";l.d(q,{t:()=>g});var i=l(21413);class g extends i.B{constructor(D){super(),this._value=D}get value(){return this.getValue()}_subscribe(D){const o=super._subscribe(D);return!o.closed&&D.next(this._value),o}getValue(){const{hasError:D,thrownError:o,_value:e}=this;if(D)throw o;return this._throwIfClosed(),e}next(D){super.next(this._value=D)}}},71985(ke,q,l){"use strict";l.d(q,{c:()=>h});var i=l(47707),g=l(18359),p=l(3494),D=l(71203),o=l(41026),e=l(98071),A=l(49786);let h=(()=>{class F{constructor(K){K&&(this._subscribe=K)}lift(K){const j=new F;return j.source=this,j.operator=K,j}subscribe(K,j,Z){const ee=function f(F){return F&&F instanceof i.vU||function w(F){return F&&(0,e.T)(F.next)&&(0,e.T)(F.error)&&(0,e.T)(F.complete)}(F)&&(0,g.Uv)(F)}(K)?K:new i.Ms(K,j,Z);return(0,A.Y)(()=>{const{operator:V,source:Q}=this;ee.add(V?V.call(ee,Q):Q?this._subscribe(ee):this._trySubscribe(ee))}),ee}_trySubscribe(K){try{return this._subscribe(K)}catch(j){K.error(j)}}forEach(K,j){return new(j=d(j))((Z,ee)=>{const V=new i.Ms({next:Q=>{try{K(Q)}catch($){ee($),V.unsubscribe()}},error:ee,complete:Z});this.subscribe(V)})}_subscribe(K){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(K)}[p.s](){return this}pipe(...K){return(0,D.m)(K)(this)}toPromise(K){return new(K=d(K))((j,Z)=>{let ee;this.subscribe(V=>ee=V,V=>Z(V),()=>j(ee))})}}return F.create=M=>new F(M),F})();function d(F){var M;return null!==(M=F??o.$.Promise)&&void 0!==M?M:Promise}},92771(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(21413),g=l(86129);class p extends i.B{constructor(o=1/0,e=1/0,A=g.U){super(),this._bufferSize=o,this._windowTime=e,this._timestampProvider=A,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,o),this._windowTime=Math.max(1,e)}next(o){const{isStopped:e,_buffer:A,_infiniteTimeWindow:h,_timestampProvider:d,_windowTime:w}=this;e||(A.push(o),!h&&A.push(d.now()+w)),this._trimBuffer(),super.next(o)}_subscribe(o){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(o),{_infiniteTimeWindow:A,_buffer:h}=this,d=h.slice();for(let w=0;wh,B:()=>A});var i=l(71985),g=l(18359);const D=(0,l(81853).L)(d=>function(){d(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var o=l(57908),e=l(49786);let A=(()=>{class d extends i.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(f){const F=new h(this,this);return F.operator=f,F}_throwIfClosed(){if(this.closed)throw new D}next(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const F of this.currentObservers)F.next(f)}})}error(f){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=f;const{observers:F}=this;for(;F.length;)F.shift().error(f)}})}complete(){(0,e.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:f}=this;for(;f.length;)f.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var f;return(null===(f=this.observers)||void 0===f?void 0:f.length)>0}_trySubscribe(f){return this._throwIfClosed(),super._trySubscribe(f)}_subscribe(f){return this._throwIfClosed(),this._checkFinalizedStatuses(f),this._innerSubscribe(f)}_innerSubscribe(f){const{hasError:F,isStopped:M,observers:K}=this;return F||M?g.Kn:(this.currentObservers=null,K.push(f),new g.yU(()=>{this.currentObservers=null,(0,o.o)(K,f)}))}_checkFinalizedStatuses(f){const{hasError:F,thrownError:M,isStopped:K}=this;F?f.error(M):K&&f.complete()}asObservable(){const f=new i.c;return f.source=this,f}}return d.create=(w,f)=>new h(w,f),d})();class h extends A{constructor(w,f){super(),this.destination=w,this.source=f}next(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.next)||void 0===F||F.call(f,w)}error(w){var f,F;null===(F=null===(f=this.destination)||void 0===f?void 0:f.error)||void 0===F||F.call(f,w)}complete(){var w,f;null===(f=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===f||f.call(w)}_subscribe(w){var f,F;return null!==(F=null===(f=this.source)||void 0===f?void 0:f.subscribe(w))&&void 0!==F?F:g.Kn}}},47707(ke,q,l){"use strict";l.d(q,{Ms:()=>Z,vU:()=>F});var i=l(98071),g=l(18359),p=l(41026),D=l(45334),o=l(85343);const e=d("C",void 0,void 0);function d(ie,_e,ye){return{kind:ie,value:_e,error:ye}}var w=l(19270),f=l(49786);class F extends g.yU{constructor(_e){super(),this.isStopped=!1,_e?(this.destination=_e,(0,g.Uv)(_e)&&_e.add(this)):this.destination=$}static create(_e,ye,se){return new Z(_e,ye,se)}next(_e){this.isStopped?Q(function h(ie){return d("N",ie,void 0)}(_e),this):this._next(_e)}error(_e){this.isStopped?Q(function A(ie){return d("E",void 0,ie)}(_e),this):(this.isStopped=!0,this._error(_e))}complete(){this.isStopped?Q(e,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(_e){this.destination.next(_e)}_error(_e){try{this.destination.error(_e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const M=Function.prototype.bind;function K(ie,_e){return M.call(ie,_e)}class j{constructor(_e){this.partialObserver=_e}next(_e){const{partialObserver:ye}=this;if(ye.next)try{ye.next(_e)}catch(se){ee(se)}}error(_e){const{partialObserver:ye}=this;if(ye.error)try{ye.error(_e)}catch(se){ee(se)}else ee(_e)}complete(){const{partialObserver:_e}=this;if(_e.complete)try{_e.complete()}catch(ye){ee(ye)}}}class Z extends F{constructor(_e,ye,se){let pe;if(super(),(0,i.T)(_e)||!_e)pe={next:_e??void 0,error:ye??void 0,complete:se??void 0};else{let Ee;this&&p.$.useDeprecatedNextContext?(Ee=Object.create(_e),Ee.unsubscribe=()=>this.unsubscribe(),pe={next:_e.next&&K(_e.next,Ee),error:_e.error&&K(_e.error,Ee),complete:_e.complete&&K(_e.complete,Ee)}):pe=_e}this.destination=new j(pe)}}function ee(ie){p.$.useDeprecatedSynchronousErrorHandling?(0,f.l)(ie):(0,D.m)(ie)}function Q(ie,_e){const{onStoppedNotification:ye}=p.$;ye&&w.f.setTimeout(()=>ye(ie,_e))}const $={closed:!0,next:o.l,error:function V(ie){throw ie},complete:o.l}},18359(ke,q,l){"use strict";l.d(q,{Kn:()=>e,yU:()=>o,Uv:()=>A});var i=l(98071);const p=(0,l(81853).L)(d=>function(f){d(this),this.message=f?`${f.length} errors occurred during unsubscription:\n${f.map((F,M)=>`${M+1}) ${F.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=f});var D=l(57908);class o{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:f}=this;if(f)if(this._parentage=null,Array.isArray(f))for(const K of f)K.remove(this);else f.remove(this);const{initialTeardown:F}=this;if((0,i.T)(F))try{F()}catch(K){w=K instanceof p?K.errors:[K]}const{_finalizers:M}=this;if(M){this._finalizers=null;for(const K of M)try{h(K)}catch(j){w=w??[],j instanceof p?w=[...w,...j.errors]:w.push(j)}}if(w)throw new p(w)}}add(w){var f;if(w&&w!==this)if(this.closed)h(w);else{if(w instanceof o){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._finalizers=null!==(f=this._finalizers)&&void 0!==f?f:[]).push(w)}}_hasParent(w){const{_parentage:f}=this;return f===w||Array.isArray(f)&&f.includes(w)}_addParent(w){const{_parentage:f}=this;this._parentage=Array.isArray(f)?(f.push(w),f):f?[f,w]:w}_removeParent(w){const{_parentage:f}=this;f===w?this._parentage=null:Array.isArray(f)&&(0,D.o)(f,w)}remove(w){const{_finalizers:f}=this;f&&(0,D.o)(f,w),w instanceof o&&w._removeParent(this)}}o.EMPTY=(()=>{const d=new o;return d.closed=!0,d})();const e=o.EMPTY;function A(d){return d instanceof o||d&&"closed"in d&&(0,i.T)(d.remove)&&(0,i.T)(d.add)&&(0,i.T)(d.unsubscribe)}function h(d){(0,i.T)(d)?d():d.unsubscribe()}},41026(ke,q,l){"use strict";l.d(q,{$:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},30017(ke,q,l){"use strict";l.d(q,{G:()=>e});var i=l(71985),g=l(18359),p=l(99898),D=l(54360),o=l(39974);class e extends i.c{constructor(h,d){super(),this.source=h,this.subjectFactory=d,this._subject=null,this._refCount=0,this._connection=null,(0,o.S)(h)&&(this.lift=h.lift)}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:h}=this;this._subject=this._connection=null,h?.unsubscribe()}connect(){let h=this._connection;if(!h){h=this._connection=new g.yU;const d=this.getSubject();h.add(this.source.subscribe((0,D._)(d,void 0,()=>{this._teardown(),d.complete()},w=>{this._teardown(),d.error(w)},()=>this._teardown()))),h.closed&&(this._connection=null,h=g.yU.EMPTY)}return h}refCount(){return(0,p.B)()(this)}}},84572(ke,q,l){"use strict";l.d(q,{z:()=>w});var i=l(71985),g=l(93073),p=l(22806),D=l(33669),o=l(6450),e=l(9326),A=l(58496),h=l(54360),d=l(45225);function w(...M){const K=(0,e.lI)(M),j=(0,e.ms)(M),{args:Z,keys:ee}=(0,g.D)(M);if(0===Z.length)return(0,p.H)([],K);const V=new i.c(function f(M,K,j=D.D){return Z=>{F(K,()=>{const{length:ee}=M,V=new Array(ee);let Q=ee,$=ee;for(let ie=0;ie{const _e=(0,p.H)(M[ie],K);let ye=!1;_e.subscribe((0,h._)(Z,se=>{V[ie]=se,ye||(ye=!0,$--),$||Z.next(j(V.slice()))},()=>{--Q||Z.complete()}))},Z)},Z)}}(Z,K,ee?Q=>(0,A.e)(ee,Q):D.D));return j?V.pipe((0,o.I)(j)):V}function F(M,K,j){M?(0,d.N)(j,M,K):K()}},28793(ke,q,l){"use strict";l.d(q,{x:()=>o});var i=l(26365),p=l(9326),D=l(22806);function o(...e){return function g(){return(0,i.U)(1)}()((0,D.H)(e,(0,p.lI)(e)))}},59030(ke,q,l){"use strict";l.d(q,{v:()=>p});var i=l(71985),g=l(58750);function p(D){return new i.c(o=>{(0,g.Tg)(D()).subscribe(o)})}},983(ke,q,l){"use strict";l.d(q,{w:()=>p});const p=new(l(71985).c)(e=>e.complete())},27468(ke,q,l){"use strict";l.d(q,{p:()=>h});var i=l(71985),g=l(93073),p=l(58750),D=l(9326),o=l(54360),e=l(6450),A=l(58496);function h(...d){const w=(0,D.ms)(d),{args:f,keys:F}=(0,g.D)(d),M=new i.c(K=>{const{length:j}=f;if(!j)return void K.complete();const Z=new Array(j);let ee=j,V=j;for(let Q=0;Q{$||($=!0,V--),Z[Q]=ie},()=>ee--,void 0,()=>{(!ee||!$)&&(V||K.next(F?(0,A.e)(F,Z):Z),K.complete())}))}});return w?M.pipe((0,e.I)(w)):M}},22806(ke,q,l){"use strict";l.d(q,{H:()=>ye});var i=l(58750),g=l(40941),p=l(39974);function D(se,pe=0){return(0,p.N)((Ee,L)=>{L.add(se.schedule(()=>Ee.subscribe(L),pe))})}var A=l(71985),d=l(4761),w=l(98071),f=l(45225);function M(se,pe){if(!se)throw new Error("Iterable cannot be null");return new A.c(Ee=>{(0,f.N)(Ee,pe,()=>{const L=se[Symbol.asyncIterator]();(0,f.N)(Ee,pe,()=>{L.next().then(t=>{t.done?Ee.complete():Ee.next(t.value)})},0,!0)})})}var K=l(55055),j=l(59858),Z=l(47441),ee=l(85397),V=l(37953),Q=l(50591),$=l(15196);function ye(se,pe){return pe?function _e(se,pe){if(null!=se){if((0,K.l)(se))return function o(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,Z.X)(se))return function h(se,pe){return new A.c(Ee=>{let L=0;return pe.schedule(function(){L===se.length?Ee.complete():(Ee.next(se[L++]),Ee.closed||this.schedule())})})}(se,pe);if((0,j.y)(se))return function e(se,pe){return(0,i.Tg)(se).pipe(D(pe),(0,g.Q)(pe))}(se,pe);if((0,V.T)(se))return M(se,pe);if((0,ee.x)(se))return function F(se,pe){return new A.c(Ee=>{let L;return(0,f.N)(Ee,pe,()=>{L=se[d.l](),(0,f.N)(Ee,pe,()=>{let t,s;try{({value:t,done:s}=L.next())}catch(m){return void Ee.error(m)}s?Ee.complete():Ee.next(t)},0,!0)}),()=>(0,w.T)(L?.return)&&L.return()})}(se,pe);if((0,$.U)(se))return function ie(se,pe){return M((0,$.C)(se),pe)}(se,pe)}throw(0,Q.L)(se)}(se,pe):(0,i.Tg)(se)}},33726(ke,q,l){"use strict";l.d(q,{R:()=>w});var i=l(58750),g=l(71985),p=l(31397),D=l(47441),o=l(98071),e=l(6450);const A=["addListener","removeListener"],h=["addEventListener","removeEventListener"],d=["on","off"];function w(j,Z,ee,V){if((0,o.T)(ee)&&(V=ee,ee=void 0),V)return w(j,Z,ee).pipe((0,e.I)(V));const[Q,$]=function K(j){return(0,o.T)(j.addEventListener)&&(0,o.T)(j.removeEventListener)}(j)?h.map(ie=>_e=>j[ie](Z,_e,ee)):function F(j){return(0,o.T)(j.addListener)&&(0,o.T)(j.removeListener)}(j)?A.map(f(j,Z)):function M(j){return(0,o.T)(j.on)&&(0,o.T)(j.off)}(j)?d.map(f(j,Z)):[];if(!Q&&(0,D.X)(j))return(0,p.Z)(ie=>w(ie,Z,ee))((0,i.Tg)(j));if(!Q)throw new TypeError("Invalid event target");return new g.c(ie=>{const _e=(...ye)=>ie.next(1$(_e)})}function f(j,Z){return ee=>V=>j[ee](Z,V)}},58750(ke,q,l){"use strict";l.d(q,{Tg:()=>M});var i=l(31635),g=l(47441),p=l(59858),D=l(71985),o=l(55055),e=l(37953),A=l(50591),h=l(85397),d=l(15196),w=l(98071),f=l(45334),F=l(3494);function M(ie){if(ie instanceof D.c)return ie;if(null!=ie){if((0,o.l)(ie))return function K(ie){return new D.c(_e=>{const ye=ie[F.s]();if((0,w.T)(ye.subscribe))return ye.subscribe(_e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ie);if((0,g.X)(ie))return function j(ie){return new D.c(_e=>{for(let ye=0;ye{ie.then(ye=>{_e.closed||(_e.next(ye),_e.complete())},ye=>_e.error(ye)).then(null,f.m)})}(ie);if((0,e.T)(ie))return V(ie);if((0,h.x)(ie))return function ee(ie){return new D.c(_e=>{for(const ye of ie)if(_e.next(ye),_e.closed)return;_e.complete()})}(ie);if((0,d.U)(ie))return function Q(ie){return V((0,d.C)(ie))}(ie)}throw(0,A.L)(ie)}function V(ie){return new D.c(_e=>{(function $(ie,_e){var ye,se,pe,Ee;return(0,i.sH)(this,void 0,void 0,function*(){try{for(ye=(0,i.xN)(ie);!(se=yield ye.next()).done;)if(_e.next(se.value),_e.closed)return}catch(L){pe={error:L}}finally{try{se&&!se.done&&(Ee=ye.return)&&(yield Ee.call(ye))}finally{if(pe)throw pe.error}}_e.complete()})})(ie,_e).catch(ye=>_e.error(ye))})}},57786(ke,q,l){"use strict";l.d(q,{h:()=>e});var i=l(26365),g=l(58750),p=l(983),D=l(9326),o=l(22806);function e(...A){const h=(0,D.lI)(A),d=(0,D.R0)(A,1/0),w=A;return w.length?1===w.length?(0,g.Tg)(w[0]):(0,i.U)(d)((0,o.H)(w,h)):p.w}},7673(ke,q,l){"use strict";l.d(q,{of:()=>p});var i=l(9326),g=l(22806);function p(...D){const o=(0,i.lI)(D);return(0,g.H)(D,o)}},18810(ke,q,l){"use strict";l.d(q,{$:()=>p});var i=l(71985),g=l(98071);function p(D,o){const e=(0,g.T)(D)?D:()=>D,A=h=>h.error(e());return new i.c(o?h=>o.schedule(A,0,h):A)}},1807(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(71985),g=l(43236),p=l(79470),D=l(28211);function o(e=0,A,h=g.b){let d=-1;return null!=A&&((0,p.m)(A)?h=A:d=A),new i.c(w=>{let f=(0,D.v)(e)?+e-h.now():e;f<0&&(f=0);let F=0;return h.schedule(function(){w.closed||(w.next(F++),0<=d?this.schedule(void 0,d):w.complete())},f)})}},54360(ke,q,l){"use strict";l.d(q,{H:()=>p,_:()=>g});var i=l(47707);function g(D,o,e,A,h){return new p(D,o,e,A,h)}class p extends i.vU{constructor(o,e,A,h,d,w){super(o),this.onFinalize=d,this.shouldUnsubscribe=w,this._next=e?function(f){try{e(f)}catch(F){o.error(F)}}:super._next,this._error=h?function(f){try{h(f)}catch(F){o.error(F)}finally{this.unsubscribe()}}:super._error,this._complete=A?function(){try{A()}catch(f){o.error(f)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var o;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(o=this.onFinalize)||void 0===o||o.call(this))}}}},13798(ke,q,l){"use strict";l.d(q,{Z:()=>A});var i=l(43236),g=l(39974),p=l(58750),D=l(54360),e=l(1807);function A(h,d=i.E){return function o(h){return(0,g.N)((d,w)=>{let f=!1,F=null,M=null,K=!1;const j=()=>{if(M?.unsubscribe(),M=null,f){f=!1;const ee=F;F=null,w.next(ee)}K&&w.complete()},Z=()=>{M=null,K&&w.complete()};d.subscribe((0,D._)(w,ee=>{f=!0,F=ee,M||(0,p.Tg)(h(ee)).subscribe(M=(0,D._)(w,j,Z))},()=>{K=!0,(!f||!M||M.closed)&&w.complete()}))})}(()=>(0,e.O)(h,d))}},99437(ke,q,l){"use strict";l.d(q,{W:()=>D});var i=l(58750),g=l(54360),p=l(39974);function D(o){return(0,p.N)((e,A)=>{let w,h=null,d=!1;h=e.subscribe((0,g._)(A,void 0,void 0,f=>{w=(0,i.Tg)(o(f,D(o)(e))),h?(h.unsubscribe(),h=null,w.subscribe(A)):d=!0})),d&&(h.unsubscribe(),h=null,w.subscribe(A))})}},70274(ke,q,l){"use strict";l.d(q,{H:()=>p});var i=l(31397),g=l(98071);function p(D,o){return(0,g.T)(o)?(0,i.Z)(D,o,1):(0,i.Z)(D,1)}},70152(ke,q,l){"use strict";l.d(q,{B:()=>D});var i=l(43236),g=l(39974),p=l(54360);function D(o,e=i.E){return(0,g.N)((A,h)=>{let d=null,w=null,f=null;const F=()=>{if(d){d.unsubscribe(),d=null;const K=w;w=null,h.next(K)}};function M(){const K=f+o,j=e.now();if(j{w=K,f=e.now(),d||(d=e.schedule(M,o),h.add(d))},()=>{F(),h.complete()},void 0,()=>{w=d=null}))})}},39901(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(39974),g=l(54360);function p(D){return(0,i.N)((o,e)=>{let A=!1;o.subscribe((0,g._)(e,h=>{A=!0,e.next(h)},()=>{A||e.next(D),e.complete()}))})}},23294(ke,q,l){"use strict";l.d(q,{F:()=>D});var i=l(33669),g=l(39974),p=l(54360);function D(e,A=i.D){return e=e??o,(0,g.N)((h,d)=>{let w,f=!0;h.subscribe((0,p._)(d,F=>{const M=A(F);(f||!e(w,M))&&(f=!1,w=M,d.next(F))}))})}function o(e,A){return e===A}},5964(ke,q,l){"use strict";l.d(q,{p:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>D.call(o,d,h++)&&A.next(d)))})}},70980(ke,q,l){"use strict";l.d(q,{j:()=>g});var i=l(39974);function g(p){return(0,i.N)((D,o)=>{try{D.subscribe(o)}finally{o.add(p)}})}},61594(ke,q,l){"use strict";l.d(q,{$:()=>A});var i=l(9350),g=l(5964),p=l(96697),D=l(39901),o=l(93774),e=l(33669);function A(h,d){const w=arguments.length>=2;return f=>f.pipe(h?(0,g.p)((F,M)=>h(F,M,f)):e.D,(0,p.s)(1),w?(0,D.U)(d):(0,o.v)(()=>new i.G))}},73557(ke,q,l){"use strict";l.d(q,{w:()=>D});var i=l(39974),g=l(54360),p=l(85343);function D(){return(0,i.N)((o,e)=>{o.subscribe((0,g._)(e,p.l))})}},96354(ke,q,l){"use strict";l.d(q,{T:()=>p});var i=l(39974),g=l(54360);function p(D,o){return(0,i.N)((e,A)=>{let h=0;e.subscribe((0,g._)(A,d=>{A.next(D.call(o,d,h++))}))})}},73703(ke,q,l){"use strict";l.d(q,{u:()=>g});var i=l(96354);function g(p){return(0,i.T)(()=>p)}},26365(ke,q,l){"use strict";l.d(q,{U:()=>p});var i=l(31397),g=l(33669);function p(D=1/0){return(0,i.Z)(g.D,D)}},31397(ke,q,l){"use strict";l.d(q,{Z:()=>h});var i=l(96354),g=l(58750),p=l(39974),D=l(45225),o=l(54360),A=l(98071);function h(d,w,f=1/0){return(0,A.T)(w)?h((F,M)=>(0,i.T)((K,j)=>w(F,K,M,j))((0,g.Tg)(d(F,M))),f):("number"==typeof w&&(f=w),(0,p.N)((F,M)=>function e(d,w,f,F,M,K,j,Z){const ee=[];let V=0,Q=0,$=!1;const ie=()=>{$&&!ee.length&&!V&&w.complete()},_e=se=>V{K&&w.next(se),V++;let pe=!1;(0,g.Tg)(f(se,Q++)).subscribe((0,o._)(w,Ee=>{M?.(Ee),K?_e(Ee):w.next(Ee)},()=>{pe=!0},void 0,()=>{if(pe)try{for(V--;ee.length&&Vye(Ee)):ye(Ee)}ie()}catch(Ee){w.error(Ee)}}))};return d.subscribe((0,o._)(w,_e,()=>{$=!0,ie()})),()=>{Z?.()}}(F,M,d,f)))}},40941(ke,q,l){"use strict";l.d(q,{Q:()=>D});var i=l(45225),g=l(39974),p=l(54360);function D(o,e=0){return(0,g.N)((A,h)=>{A.subscribe((0,p._)(h,d=>(0,i.N)(h,o,()=>h.next(d),e),()=>(0,i.N)(h,o,()=>h.complete(),e),d=>(0,i.N)(h,o,()=>h.error(d),e)))})}},99898(ke,q,l){"use strict";l.d(q,{B:()=>p});var i=l(39974),g=l(54360);function p(){return(0,i.N)((D,o)=>{let e=null;D._refCount++;const A=(0,g._)(o,void 0,void 0,void 0,()=>{if(!D||D._refCount<=0||0<--D._refCount)return void(e=null);const h=D._connection,d=e;e=null,h&&(!d||h===d)&&h.unsubscribe(),o.unsubscribe()});D.subscribe(A),A.closed||(e=D.connect())})}},31943(ke,q,l){"use strict";l.d(q,{S:()=>p});var i=l(39974),g=l(46649);function p(D,o){return(0,i.N)((0,g.S)(D,o,arguments.length>=2,!0))}},46649(ke,q,l){"use strict";l.d(q,{S:()=>g});var i=l(54360);function g(p,D,o,e,A){return(h,d)=>{let w=o,f=D,F=0;h.subscribe((0,i._)(d,M=>{const K=F++;f=w?p(f,M,K):(w=!0,M),e&&d.next(f)},A&&(()=>{w&&d.next(f),d.complete()})))}}},97647(ke,q,l){"use strict";l.d(q,{u:()=>o});var i=l(58750),g=l(21413),p=l(47707),D=l(39974);function o(A={}){const{connector:h=()=>new g.B,resetOnError:d=!0,resetOnComplete:w=!0,resetOnRefCountZero:f=!0}=A;return F=>{let M,K,j,Z=0,ee=!1,V=!1;const Q=()=>{K?.unsubscribe(),K=void 0},$=()=>{Q(),M=j=void 0,ee=V=!1},ie=()=>{const _e=M;$(),_e?.unsubscribe()};return(0,D.N)((_e,ye)=>{Z++,!V&&!ee&&Q();const se=j=j??h();ye.add(()=>{Z--,0===Z&&!V&&!ee&&(K=e(ie,f))}),se.subscribe(ye),!M&&Z>0&&(M=new p.Ms({next:pe=>se.next(pe),error:pe=>{V=!0,Q(),K=e($,d,pe),se.error(pe)},complete:()=>{ee=!0,Q(),K=e($,w),se.complete()}}),(0,i.Tg)(_e).subscribe(M))})(F)}}function e(A,h,...d){if(!0===h)return void A();if(!1===h)return;const w=new p.Ms({next:()=>{w.unsubscribe(),A()}});return(0,i.Tg)(h(...d)).subscribe(w)}},65245(ke,q,l){"use strict";l.d(q,{i:()=>g});var i=l(5964);function g(p){return(0,i.p)((D,o)=>p<=o)}},99172(ke,q,l){"use strict";l.d(q,{Z:()=>D});var i=l(28793),g=l(9326),p=l(39974);function D(...o){const e=(0,g.lI)(o);return(0,p.N)((A,h)=>{(e?(0,i.x)(o,A,e):(0,i.x)(o,A)).subscribe(h)})}},25558(ke,q,l){"use strict";l.d(q,{n:()=>D});var i=l(58750),g=l(39974),p=l(54360);function D(o,e){return(0,g.N)((A,h)=>{let d=null,w=0,f=!1;const F=()=>f&&!d&&h.complete();A.subscribe((0,p._)(h,M=>{d?.unsubscribe();let K=0;const j=w++;(0,i.Tg)(o(M,j)).subscribe(d=(0,p._)(h,Z=>h.next(e?e(M,Z,j,K++):Z),()=>{d=null,F()}))},()=>{f=!0,F()}))})}},96697(ke,q,l){"use strict";l.d(q,{s:()=>D});var i=l(983),g=l(39974),p=l(54360);function D(o){return o<=0?()=>i.w:(0,g.N)((e,A)=>{let h=0;e.subscribe((0,p._)(A,d=>{++h<=o&&(A.next(d),o<=h&&A.complete())}))})}},56977(ke,q,l){"use strict";l.d(q,{Q:()=>o});var i=l(39974),g=l(54360),p=l(58750),D=l(85343);function o(e){return(0,i.N)((A,h)=>{(0,p.Tg)(e).subscribe((0,g._)(h,()=>h.complete(),D.l)),!h.closed&&A.subscribe(h)})}},88141(ke,q,l){"use strict";l.d(q,{M:()=>o});var i=l(98071),g=l(39974),p=l(54360),D=l(33669);function o(e,A,h){const d=(0,i.T)(e)||A||h?{next:e,error:A,complete:h}:e;return d?(0,g.N)((w,f)=>{var F;null===(F=d.subscribe)||void 0===F||F.call(d);let M=!0;w.subscribe((0,p._)(f,K=>{var j;null===(j=d.next)||void 0===j||j.call(d,K),f.next(K)},()=>{var K;M=!1,null===(K=d.complete)||void 0===K||K.call(d),f.complete()},K=>{var j;M=!1,null===(j=d.error)||void 0===j||j.call(d,K),f.error(K)},()=>{var K,j;M&&(null===(K=d.unsubscribe)||void 0===K||K.call(d)),null===(j=d.finalize)||void 0===j||j.call(d)}))}):D.D}},93774(ke,q,l){"use strict";l.d(q,{v:()=>D});var i=l(9350),g=l(39974),p=l(54360);function D(e=o){return(0,g.N)((A,h)=>{let d=!1;A.subscribe((0,p._)(h,w=>{d=!0,h.next(w)},()=>d?h.complete():h.error(e())))})}function o(){return new i.G}},53993(ke,q,l){"use strict";l.d(q,{E:()=>A});var i=l(39974),g=l(54360),p=l(58750),D=l(33669),o=l(85343),e=l(9326);function A(...h){const d=(0,e.ms)(h);return(0,i.N)((w,f)=>{const F=h.length,M=new Array(F);let K=h.map(()=>!1),j=!1;for(let Z=0;Z{M[Z]=ee,!j&&!K[Z]&&(K[Z]=!0,(j=K.every(D.D))&&(K=null))},o.l));w.subscribe((0,g._)(f,Z=>{if(j){const ee=[Z,...M];f.next(d?d(...ee):ee)}}))})}},96780(ke,q,l){"use strict";l.d(q,{R:()=>o});var i=l(18359);class g extends i.yU{constructor(A,h){super()}schedule(A,h=0){return this}}const p={setInterval(e,A,...h){const{delegate:d}=p;return d?.setInterval?d.setInterval(e,A,...h):setInterval(e,A,...h)},clearInterval(e){const{delegate:A}=p;return(A?.clearInterval||clearInterval)(e)},delegate:void 0};var D=l(57908);class o extends g{constructor(A,h){super(A,h),this.scheduler=A,this.work=h,this.pending=!1}schedule(A,h=0){var d;if(this.closed)return this;this.state=A;const w=this.id,f=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(f,w,h)),this.pending=!0,this.delay=h,this.id=null!==(d=this.id)&&void 0!==d?d:this.requestAsyncId(f,this.id,h),this}requestAsyncId(A,h,d=0){return p.setInterval(A.flush.bind(A,this),d)}recycleAsyncId(A,h,d=0){if(null!=d&&this.delay===d&&!1===this.pending)return h;null!=h&&p.clearInterval(h)}execute(A,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const d=this._execute(A,h);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(A,h){let w,d=!1;try{this.work(A)}catch(f){d=!0,w=f||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),w}unsubscribe(){if(!this.closed){const{id:A,scheduler:h}=this,{actions:d}=h;this.work=this.state=this.scheduler=null,this.pending=!1,(0,D.o)(d,this),null!=A&&(this.id=this.recycleAsyncId(h,A,null)),this.delay=null,super.unsubscribe()}}}},39687(ke,q,l){"use strict";l.d(q,{q:()=>p});var i=l(86129);class g{constructor(o,e=g.now){this.schedulerActionCtor=o,this.now=e}schedule(o,e=0,A){return new this.schedulerActionCtor(this,o).schedule(A,e)}}g.now=i.U.now;class p extends g{constructor(o,e=g.now){super(o,e),this.actions=[],this._active=!1}flush(o){const{actions:e}=this;if(this._active)return void e.push(o);let A;this._active=!0;do{if(A=o.execute(o.state,o.delay))break}while(o=e.shift());if(this._active=!1,A){for(;o=e.shift();)o.unsubscribe();throw A}}}},43236(ke,q,l){"use strict";l.d(q,{E:()=>p,b:()=>D});var i=l(96780);const p=new(l(39687).q)(i.R),D=p},86129(ke,q,l){"use strict";l.d(q,{U:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},47242(ke,q,l){"use strict";l.d(q,{T:()=>o});var i=l(96780),p=l(39687);const o=new class D extends p.q{}(class g extends i.R{constructor(h,d){super(h,d),this.scheduler=h,this.work=d}schedule(h,d=0){return d>0?super.schedule(h,d):(this.delay=d,this.state=h,this.scheduler.flush(this),this)}execute(h,d){return d>0||this.closed?super.execute(h,d):this._execute(h,d)}requestAsyncId(h,d,w=0){return null!=w&&w>0||null==w&&this.delay>0?super.requestAsyncId(h,d,w):(h.flush(this),0)}})},19270(ke,q,l){"use strict";l.d(q,{f:()=>i});const i={setTimeout(g,p,...D){const{delegate:o}=i;return o?.setTimeout?o.setTimeout(g,p,...D):setTimeout(g,p,...D)},clearTimeout(g){const{delegate:p}=i;return(p?.clearTimeout||clearTimeout)(g)},delegate:void 0}},4761(ke,q,l){"use strict";l.d(q,{l:()=>g});const g=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494(ke,q,l){"use strict";l.d(q,{s:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350(ke,q,l){"use strict";l.d(q,{G:()=>g});const g=(0,l(81853).L)(p=>function(){p(this),this.name="EmptyError",this.message="no elements in sequence"})},9326(ke,q,l){"use strict";l.d(q,{R0:()=>e,lI:()=>o,ms:()=>D});var i=l(98071),g=l(79470);function p(A){return A[A.length-1]}function D(A){return(0,i.T)(p(A))?A.pop():void 0}function o(A){return(0,g.m)(p(A))?A.pop():void 0}function e(A,h){return"number"==typeof p(A)?A.pop():h}},93073(ke,q,l){"use strict";l.d(q,{D:()=>o});const{isArray:i}=Array,{getPrototypeOf:g,prototype:p,keys:D}=Object;function o(A){if(1===A.length){const h=A[0];if(i(h))return{args:h,keys:null};if(function e(A){return A&&"object"==typeof A&&g(A)===p}(h)){const d=D(h);return{args:d.map(w=>h[w]),keys:d}}}return{args:A,keys:null}}},57908(ke,q,l){"use strict";function i(g,p){if(g){const D=g.indexOf(p);0<=D&&g.splice(D,1)}}l.d(q,{o:()=>i})},81853(ke,q,l){"use strict";function i(g){const D=g(o=>{Error.call(o),o.stack=(new Error).stack});return D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D}l.d(q,{L:()=>i})},58496(ke,q,l){"use strict";function i(g,p){return g.reduce((D,o,e)=>(D[o]=p[e],D),{})}l.d(q,{e:()=>i})},49786(ke,q,l){"use strict";l.d(q,{Y:()=>p,l:()=>D});var i=l(41026);let g=null;function p(o){if(i.$.useDeprecatedSynchronousErrorHandling){const e=!g;if(e&&(g={errorThrown:!1,error:null}),o(),e){const{errorThrown:A,error:h}=g;if(g=null,A)throw h}}else o()}function D(o){i.$.useDeprecatedSynchronousErrorHandling&&g&&(g.errorThrown=!0,g.error=o)}},45225(ke,q,l){"use strict";function i(g,p,D,o=0,e=!1){const A=p.schedule(function(){D(),e?g.add(this.schedule(null,o)):this.unsubscribe()},o);if(g.add(A),!e)return A}l.d(q,{N:()=>i})},33669(ke,q,l){"use strict";function i(g){return g}l.d(q,{D:()=>i})},47441(ke,q,l){"use strict";l.d(q,{X:()=>i});const i=g=>g&&"number"==typeof g.length&&"function"!=typeof g},37953(ke,q,l){"use strict";l.d(q,{T:()=>g});var i=l(98071);function g(p){return Symbol.asyncIterator&&(0,i.T)(p?.[Symbol.asyncIterator])}},28211(ke,q,l){"use strict";function i(g){return g instanceof Date&&!isNaN(g)}l.d(q,{v:()=>i})},98071(ke,q,l){"use strict";function i(g){return"function"==typeof g}l.d(q,{T:()=>i})},55055(ke,q,l){"use strict";l.d(q,{l:()=>p});var i=l(3494),g=l(98071);function p(D){return(0,g.T)(D[i.s])}},85397(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(4761),g=l(98071);function p(D){return(0,g.T)(D?.[i.l])}},74402(ke,q,l){"use strict";l.d(q,{A:()=>p});var i=l(71985),g=l(98071);function p(D){return!!D&&(D instanceof i.c||(0,g.T)(D.lift)&&(0,g.T)(D.subscribe))}},59858(ke,q,l){"use strict";l.d(q,{y:()=>g});var i=l(98071);function g(p){return(0,i.T)(p?.then)}},15196(ke,q,l){"use strict";l.d(q,{C:()=>p,U:()=>D});var i=l(31635),g=l(98071);function p(o){return(0,i.AQ)(this,arguments,function*(){const A=o.getReader();try{for(;;){const{value:h,done:d}=yield(0,i.N3)(A.read());if(d)return yield(0,i.N3)(void 0);yield yield(0,i.N3)(h)}}finally{A.releaseLock()}})}function D(o){return(0,g.T)(o?.getReader)}},79470(ke,q,l){"use strict";l.d(q,{m:()=>g});var i=l(98071);function g(p){return p&&(0,i.T)(p.schedule)}},39974(ke,q,l){"use strict";l.d(q,{N:()=>p,S:()=>g});var i=l(98071);function g(D){return(0,i.T)(D?.lift)}function p(D){return o=>{if(g(o))return o.lift(function(e){try{return D(e,this)}catch(A){this.error(A)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450(ke,q,l){"use strict";l.d(q,{I:()=>D});var i=l(96354);const{isArray:g}=Array;function D(o){return(0,i.T)(e=>function p(o,e){return g(e)?o(...e):o(e)}(o,e))}},85343(ke,q,l){"use strict";function i(){}l.d(q,{l:()=>i})},71203(ke,q,l){"use strict";l.d(q,{F:()=>g,m:()=>p});var i=l(33669);function g(...D){return p(D)}function p(D){return 0===D.length?i.D:1===D.length?D[0]:function(e){return D.reduce((A,h)=>h(A),e)}}},45334(ke,q,l){"use strict";l.d(q,{m:()=>p});var i=l(41026),g=l(19270);function p(D){g.f.setTimeout(()=>{const{onUnhandledError:o}=i.$;if(!o)throw D;o(D)})}},50591(ke,q,l){"use strict";function i(g){return new TypeError(`You provided ${null!==g&&"object"==typeof g?"an invalid object":`'${g}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(q,{L:()=>i})},27054(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),D.prototype=Object.create(g.prototype),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},31358(ke,q,l){"use strict";var i=l(90258),g=l(92736),p=l(35861)(),D=l(83798),o=l(46758),e=i("%Math.floor%");ke.exports=function(h,d){if("function"!=typeof h)throw new o("`fn` is not a function");if("number"!=typeof d||d<0||d>4294967295||e(d)!==d)throw new o("`length` must be a positive 32-bit integer");var w=arguments.length>2&&!!arguments[2],f=!0,F=!0;if("length"in h&&D){var M=D(h,"length");M&&!M.configurable&&(f=!1),M&&!M.writable&&(F=!1)}return(f||F||!w)&&(p?g(h,"length",d,!0,!0):g(h,"length",d)),h}},70463(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(41090);function p(D,o){this._block=i.alloc(D),this._finalSize=o,this._blockSize=D,this._len=0}p.prototype.update=function(D,o){D=g(D,o||"utf8");for(var e=this._block,A=this._blockSize,h=D.length,d=this._len,w=0;w=this._finalSize&&(this._update(this._block),this._block.fill(0));var e=8*this._len;if(e<=4294967295)this._block.writeUInt32BE(e,this._blockSize-4);else{var A=(4294967295&e)>>>0;this._block.writeUInt32BE((e-A)/4294967296,this._blockSize-8),this._block.writeUInt32BE(A,this._blockSize-4)}this._update(this._block);var d=this._hash();return D?d.toString(D):d},p.prototype._update=function(){throw new Error("_update must be implemented by subclass")},ke.exports=p},25443(ke,q,l){"use strict";ke.exports=function(g){var p=g.toLowerCase(),D=ke.exports[p];if(!D)throw new Error(p+" is not supported (we accept pull requests)");return new D},ke.exports.sha=l(48585),ke.exports.sha1=l(21270),ke.exports.sha224=l(42709),ke.exports.sha256=l(32148),ke.exports.sha384=l(51856),ke.exports.sha512=l(3121)},48585(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function d(w,f,F,M){return 0===w?f&F|~f&M:2===w?f&F|f&M|F&M:f^F^M}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(w){for(var f=this._w,F=0|this._a,M=0|this._b,K=0|this._c,j=0|this._d,Z=0|this._e,ee=0;ee<16;++ee)f[ee]=w.readInt32BE(4*ee);for(;ee<80;++ee)f[ee]=f[ee-3]^f[ee-8]^f[ee-14]^f[ee-16];for(var V=0;V<80;++V){var Q=~~(V/20),$=A(F)+d(Q,M,K,j)+Z+f[V]+D[Q]|0;Z=j,j=K,K=h(M),M=F,F=$}this._a=F+this._a|0,this._b=M+this._b|0,this._c=K+this._c|0,this._d=j+this._d|0,this._e=Z+this._e|0},e.prototype._hash=function(){var w=p.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},ke.exports=e},21270(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(f){return f<<1|f>>>31}function h(f){return f<<5|f>>>27}function d(f){return f<<30|f>>>2}function w(f,F,M,K){return 0===f?F&M|~F&K:2===f?F&M|F&K|M&K:F^M^K}i(e,g),e.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},e.prototype._update=function(f){for(var F=this._w,M=0|this._a,K=0|this._b,j=0|this._c,Z=0|this._d,ee=0|this._e,V=0;V<16;++V)F[V]=f.readInt32BE(4*V);for(;V<80;++V)F[V]=A(F[V-3]^F[V-8]^F[V-14]^F[V-16]);for(var Q=0;Q<80;++Q){var $=~~(Q/20),ie=h(M)+w($,K,j,Z)+ee+F[Q]+D[$]|0;ee=Z,Z=j,j=d(K),K=M,M=ie}this._a=M+this._a|0,this._b=K+this._b|0,this._c=j+this._c|0,this._d=Z+this._d|0,this._e=ee+this._e|0},e.prototype._hash=function(){var f=p.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},ke.exports=e},42709(ke,q,l){"use strict";var i=l(71993),g=l(32148),p=l(70463),D=l(27054).Buffer,o=new Array(64);function e(){this.init(),this._w=o,p.call(this,64,56)}i(e,g),e.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},e.prototype._hash=function(){var A=D.allocUnsafe(28);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A},ke.exports=e},32148(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],o=new Array(64);function e(){this.init(),this._w=o,g.call(this,64,56)}function A(M,K,j){return j^M&(K^j)}function h(M,K,j){return M&K|j&(M|K)}function d(M){return(M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10)}function w(M){return(M>>>6|M<<26)^(M>>>11|M<<21)^(M>>>25|M<<7)}function f(M){return(M>>>7|M<<25)^(M>>>18|M<<14)^M>>>3}function F(M){return(M>>>17|M<<15)^(M>>>19|M<<13)^M>>>10}i(e,g),e.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},e.prototype._update=function(M){for(var K=this._w,j=0|this._a,Z=0|this._b,ee=0|this._c,V=0|this._d,Q=0|this._e,$=0|this._f,ie=0|this._g,_e=0|this._h,ye=0;ye<16;++ye)K[ye]=M.readInt32BE(4*ye);for(;ye<64;++ye)K[ye]=F(K[ye-2])+K[ye-7]+f(K[ye-15])+K[ye-16]|0;for(var se=0;se<64;++se){var pe=_e+w(Q)+A(Q,$,ie)+D[se]+K[se]|0,Ee=d(j)+h(j,Z,ee)|0;_e=ie,ie=$,$=Q,Q=V+pe|0,V=ee,ee=Z,Z=j,j=pe+Ee|0}this._a=j+this._a|0,this._b=Z+this._b|0,this._c=ee+this._c|0,this._d=V+this._d|0,this._e=Q+this._e|0,this._f=$+this._f|0,this._g=ie+this._g|0,this._h=_e+this._h|0},e.prototype._hash=function(){var M=p.allocUnsafe(32);return M.writeInt32BE(this._a,0),M.writeInt32BE(this._b,4),M.writeInt32BE(this._c,8),M.writeInt32BE(this._d,12),M.writeInt32BE(this._e,16),M.writeInt32BE(this._f,20),M.writeInt32BE(this._g,24),M.writeInt32BE(this._h,28),M},ke.exports=e},51856(ke,q,l){"use strict";var i=l(71993),g=l(3121),p=l(70463),D=l(27054).Buffer,o=new Array(160);function e(){this.init(),this._w=o,p.call(this,128,112)}i(e,g),e.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},e.prototype._hash=function(){var A=D.allocUnsafe(48);function h(d,w,f){A.writeInt32BE(d,f),A.writeInt32BE(w,f+4)}return h(this._ah,this._al,0),h(this._bh,this._bl,8),h(this._ch,this._cl,16),h(this._dh,this._dl,24),h(this._eh,this._el,32),h(this._fh,this._fl,40),A},ke.exports=e},3121(ke,q,l){"use strict";var i=l(71993),g=l(70463),p=l(27054).Buffer,D=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],o=new Array(160);function e(){this.init(),this._w=o,g.call(this,128,112)}function A(Z,ee,V){return V^Z&(ee^V)}function h(Z,ee,V){return Z&ee|V&(Z|ee)}function d(Z,ee){return(Z>>>28|ee<<4)^(ee>>>2|Z<<30)^(ee>>>7|Z<<25)}function w(Z,ee){return(Z>>>14|ee<<18)^(Z>>>18|ee<<14)^(ee>>>9|Z<<23)}function f(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^Z>>>7}function F(Z,ee){return(Z>>>1|ee<<31)^(Z>>>8|ee<<24)^(Z>>>7|ee<<25)}function M(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^Z>>>6}function K(Z,ee){return(Z>>>19|ee<<13)^(ee>>>29|Z<<3)^(Z>>>6|ee<<26)}function j(Z,ee){return Z>>>0>>0?1:0}i(e,g),e.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},e.prototype._update=function(Z){for(var ee=this._w,V=0|this._ah,Q=0|this._bh,$=0|this._ch,ie=0|this._dh,_e=0|this._eh,ye=0|this._fh,se=0|this._gh,pe=0|this._hh,Ee=0|this._al,L=0|this._bl,t=0|this._cl,s=0|this._dl,m=0|this._el,u=0|this._fl,_=0|this._gl,T=0|this._hl,P=0;P<32;P+=2)ee[P]=Z.readInt32BE(4*P),ee[P+1]=Z.readInt32BE(4*P+4);for(;P<160;P+=2){var C=ee[P-30],a=ee[P-30+1],x=f(C,a),Y=F(a,C),R=M(C=ee[P-4],a=ee[P-4+1]),U=K(a,C),he=ee[P-32],Oe=ee[P-32+1],ge=Y+ee[P-14+1]|0,ce=x+ee[P-14]+j(ge,Y)|0;ce=(ce=ce+R+j(ge=ge+U|0,U)|0)+he+j(ge=ge+Oe|0,Oe)|0,ee[P]=ce,ee[P+1]=ge}for(var Re=0;Re<160;Re+=2){ce=ee[Re],ge=ee[Re+1];var Me=h(V,Q,$),ve=h(Ee,L,t),oe=d(V,Ee),Se=d(Ee,V),be=w(_e,m),nt=w(m,_e),$e=D[Re],dt=D[Re+1],yt=A(_e,ye,se),Et=A(m,u,_),rt=T+nt|0,Mn=pe+be+j(rt,T)|0;Mn=(Mn=(Mn=Mn+yt+j(rt=rt+Et|0,Et)|0)+$e+j(rt=rt+dt|0,dt)|0)+ce+j(rt=rt+ge|0,ge)|0;var qt=Se+ve|0,S=oe+Me+j(qt,Se)|0;pe=se,T=_,se=ye,_=u,ye=_e,u=m,_e=ie+Mn+j(m=s+rt|0,s)|0,ie=$,s=t,$=Q,t=L,Q=V,L=Ee,V=Mn+S+j(Ee=rt+qt|0,rt)|0}this._al=this._al+Ee|0,this._bl=this._bl+L|0,this._cl=this._cl+t|0,this._dl=this._dl+s|0,this._el=this._el+m|0,this._fl=this._fl+u|0,this._gl=this._gl+_|0,this._hl=this._hl+T|0,this._ah=this._ah+V+j(this._al,Ee)|0,this._bh=this._bh+Q+j(this._bl,L)|0,this._ch=this._ch+$+j(this._cl,t)|0,this._dh=this._dh+ie+j(this._dl,s)|0,this._eh=this._eh+_e+j(this._el,m)|0,this._fh=this._fh+ye+j(this._fl,u)|0,this._gh=this._gh+se+j(this._gl,_)|0,this._hh=this._hh+pe+j(this._hl,T)|0},e.prototype._hash=function(){var Z=p.allocUnsafe(64);function ee(V,Q,$){Z.writeInt32BE(V,$),Z.writeInt32BE(Q,$+4)}return ee(this._ah,this._al,0),ee(this._bh,this._bl,8),ee(this._ch,this._cl,16),ee(this._dh,this._dl,24),ee(this._eh,this._el,32),ee(this._fh,this._fl,40),ee(this._gh,this._gl,48),ee(this._hh,this._hl,56),Z},ke.exports=e},82852(ke,q,l){!function(i){"use strict";var g={};ke.exports?(g.bytesToHex=l(24740).bytesToHex,g.convertString=l(10820),ke.exports=h):(g.bytesToHex=i.convertHex.bytesToHex,g.convertString=i.convertString,i.sha256=h);var p=[];!function(){function d(M){for(var K=Math.sqrt(M),j=2;j<=K;j++)if(!(M%j))return!1;return!0}function w(M){return 4294967296*(M-(0|M))|0}for(var f=2,F=0;F<64;)d(f)&&(p[F]=w(Math.pow(f,1/3)),F++),f++}();var D=function(d){for(var w=[],f=0,F=0;f>>5]|=d[f]<<24-F%32;return w},o=function(d){for(var w=[],f=0;f<32*d.length;f+=8)w.push(d[f>>>5]>>>24-f%32&255);return w},e=[],A=function(d,w,f){for(var F=d[0],M=d[1],K=d[2],j=d[3],Z=d[4],ee=d[5],V=d[6],Q=d[7],$=0;$<64;$++){if($<16)e[$]=0|w[f+$];else{var ie=e[$-15],ye=e[$-2];e[$]=((ie<<25|ie>>>7)^(ie<<14|ie>>>18)^ie>>>3)+e[$-7]+((ye<<15|ye>>>17)^(ye<<13|ye>>>19)^ye>>>10)+e[$-16]}var Ee=F&M^F&K^M&K,s=Q+((Z<<26|Z>>>6)^(Z<<21|Z>>>11)^(Z<<7|Z>>>25))+(Z&ee^~Z&V)+p[$]+e[$];Q=V,V=ee,ee=Z,Z=j+s|0,j=K,K=M,M=F,F=s+(((F<<30|F>>>2)^(F<<19|F>>>13)^(F<<10|F>>>22))+Ee)|0}d[0]=d[0]+F|0,d[1]=d[1]+M|0,d[2]=d[2]+K|0,d[3]=d[3]+j|0,d[4]=d[4]+Z|0,d[5]=d[5]+ee|0,d[6]=d[6]+V|0,d[7]=d[7]+Q|0};function h(d,w){d.constructor===String&&(d=g.convertString.UTF8.stringToBytes(d));var f=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],F=D(d),M=8*d.length;F[M>>5]|=128<<24-M%32,F[15+(M+64>>9<<4)]=M;for(var K=0;K2?"one of ".concat(A," ").concat(e.slice(0,h-1).join(", "),", or ")+e[h-1]:2===h?"one of ".concat(A," ").concat(e[0]," or ").concat(e[1]):"of ".concat(A," ").concat(e[0])}return"of ".concat(A," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,A){return'The value "'+A+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,A,h){var d,w;if("string"==typeof A&&function p(e,A,h){return e.substr(!h||h<0?0:+h,A.length)===A}(A,"not ")?(d="must not be",A=A.replace(/^not /,"")):d="must be",function D(e,A,h){return(void 0===h||h>e.length)&&(h=e.length),e.substring(h-A.length,h)===A}(e," argument"))w="The ".concat(e," ").concat(d," ").concat(g(A,"type"));else{var f=function o(e,A,h){return"number"!=typeof h&&(h=0),!(h+A.length>e.length)&&-1!==e.indexOf(A,h)}(e,".")?"property":"argument";w='The "'.concat(e,'" ').concat(f," ").concat(d," ").concat(g(A,"type"))}return w+". Received type ".concat(typeof h)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),ke.exports.F=l},1030(ke,q,l){"use strict";var i=Object.keys||function(w){var f=[];for(var F in w)f.push(F);return f};ke.exports=A;var g=l(61092),p=l(15492);l(71993)(A,g);for(var D=i(p.prototype),o=0;o0)if("string"!=typeof oe&&!$e.objectMode&&Object.getPrototypeOf(oe)!==o.prototype&&(oe=function A(ve){return o.from(ve)}(oe)),be)$e.endEmitted?ye(ve,new Q):s(ve,$e,oe,!0);else if($e.ended)ye(ve,new ee);else{if($e.destroyed)return!1;$e.reading=!1,$e.decoder&&!Se?(oe=$e.decoder.write(oe),$e.objectMode||0!==oe.length?s(ve,$e,oe,!1):x(ve,$e)):s(ve,$e,oe,!1)}else be||($e.reading=!1,x(ve,$e));return!$e.ended&&($e.length<$e.highWaterMark||0===$e.length)}function s(ve,oe,Se,be){oe.flowing&&0===oe.length&&!oe.sync?(oe.awaitDrain=0,ve.emit("data",Se)):(oe.length+=oe.objectMode?1:Se.length,be?oe.buffer.unshift(Se):oe.buffer.push(Se),oe.needReadable&&C(ve)),x(ve,oe)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(oe){this._readableState&&(this._readableState.destroyed=oe)}}),L.prototype.destroy=F.destroy,L.prototype._undestroy=F.undestroy,L.prototype._destroy=function(ve,oe){oe(ve)},L.prototype.push=function(ve,oe){var be,Se=this._readableState;return Se.objectMode?be=!0:"string"==typeof ve&&((oe=oe||Se.defaultEncoding)!==Se.encoding&&(ve=o.from(ve,oe),oe=""),be=!0),t(this,ve,oe,!1,be)},L.prototype.unshift=function(ve){return t(this,ve,null,!0,!1)},L.prototype.isPaused=function(){return!1===this._readableState.flowing},L.prototype.setEncoding=function(ve){$||($=l(78454).I);var oe=new $(ve);this._readableState.decoder=oe,this._readableState.encoding=this._readableState.decoder.encoding;for(var Se=this._readableState.buffer.head,be="";null!==Se;)be+=oe.write(Se.data),Se=Se.next;return this._readableState.buffer.clear(),""!==be&&this._readableState.buffer.push(be),this._readableState.length=be.length,this};var u=1073741824;function T(ve,oe){return ve<=0||0===oe.length&&oe.ended?0:oe.objectMode?1:ve!=ve?oe.flowing&&oe.length?oe.buffer.head.data.length:oe.length:(ve>oe.highWaterMark&&(oe.highWaterMark=function _(ve){return ve>=u?ve=u:(ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,ve++),ve}(ve)),ve<=oe.length?ve:oe.ended?oe.length:(oe.needReadable=!0,0))}function C(ve){var oe=ve._readableState;w("emitReadable",oe.needReadable,oe.emittedReadable),oe.needReadable=!1,oe.emittedReadable||(w("emitReadable",oe.flowing),oe.emittedReadable=!0,process.nextTick(a,ve))}function a(ve){var oe=ve._readableState;w("emitReadable_",oe.destroyed,oe.length,oe.ended),!oe.destroyed&&(oe.length||oe.ended)&&(ve.emit("readable"),oe.emittedReadable=!1),oe.needReadable=!oe.flowing&&!oe.ended&&oe.length<=oe.highWaterMark,Oe(ve)}function x(ve,oe){oe.readingMore||(oe.readingMore=!0,process.nextTick(Y,ve,oe))}function Y(ve,oe){for(;!oe.reading&&!oe.ended&&(oe.length0,oe.resumeScheduled&&!oe.paused?oe.flowing=!0:ve.listenerCount("data")>0&&ve.resume()}function fe(ve){w("readable nexttick read 0"),ve.read(0)}function he(ve,oe){w("resume",oe.reading),oe.reading||ve.read(0),oe.resumeScheduled=!1,ve.emit("resume"),Oe(ve),oe.flowing&&!oe.reading&&ve.read(0)}function Oe(ve){var oe=ve._readableState;for(w("flow",oe.flowing);oe.flowing&&null!==ve.read(););}function ge(ve,oe){return 0===oe.length?null:(oe.objectMode?Se=oe.buffer.shift():!ve||ve>=oe.length?(Se=oe.decoder?oe.buffer.join(""):1===oe.buffer.length?oe.buffer.first():oe.buffer.concat(oe.length),oe.buffer.clear()):Se=oe.buffer.consume(ve,oe.decoder),Se);var Se}function ce(ve){var oe=ve._readableState;w("endReadable",oe.endEmitted),oe.endEmitted||(oe.ended=!0,process.nextTick(Re,oe,ve))}function Re(ve,oe){if(w("endReadableNT",ve.endEmitted,ve.length),!ve.endEmitted&&0===ve.length&&(ve.endEmitted=!0,oe.readable=!1,oe.emit("end"),ve.autoDestroy)){var Se=oe._writableState;(!Se||Se.autoDestroy&&Se.finished)&&oe.destroy()}}function Me(ve,oe){for(var Se=0,be=ve.length;Se=oe.highWaterMark:oe.length>0)||oe.ended))return w("read: emitReadable",oe.length,oe.ended),0===oe.length&&oe.ended?ce(this):C(this),null;if(0===(ve=T(ve,oe))&&oe.ended)return 0===oe.length&&ce(this),null;var nt,be=oe.needReadable;return w("need readable",be),(0===oe.length||oe.length-ve0?ge(ve,oe):null)?(oe.needReadable=oe.length<=oe.highWaterMark,ve=0):(oe.length-=ve,oe.awaitDrain=0),0===oe.length&&(oe.ended||(oe.needReadable=!0),Se!==ve&&oe.ended&&ce(this)),null!==nt&&this.emit("data",nt),nt},L.prototype._read=function(ve){ye(this,new V("_read()"))},L.prototype.pipe=function(ve,oe){var Se=this,be=this._readableState;switch(be.pipesCount){case 0:be.pipes=ve;break;case 1:be.pipes=[be.pipes,ve];break;default:be.pipes.push(ve)}be.pipesCount+=1,w("pipe count=%d opts=%j",be.pipesCount,oe);var $e=oe&&!1===oe.end||ve===process.stdout||ve===process.stderr?ae:yt;function yt(){w("onend"),ve.end()}be.endEmitted?process.nextTick($e):Se.once("end",$e),ve.on("unpipe",function dt(me,Le){w("onunpipe"),me===Se&&Le&&!1===Le.hasUnpiped&&(Le.hasUnpiped=!0,function Mn(){w("cleanup"),ve.removeListener("close",Xt),ve.removeListener("finish",de),ve.removeListener("drain",Et),ve.removeListener("error",S),ve.removeListener("unpipe",dt),Se.removeListener("end",yt),Se.removeListener("end",ae),Se.removeListener("data",qt),rt=!0,be.awaitDrain&&(!ve._writableState||ve._writableState.needDrain)&&Et()}())});var Et=function R(ve){return function(){var Se=ve._readableState;w("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,0===Se.awaitDrain&&p(ve,"data")&&(Se.flowing=!0,Oe(ve))}}(Se);ve.on("drain",Et);var rt=!1;function qt(me){w("ondata");var Le=ve.write(me);w("dest.write",Le),!1===Le&&((1===be.pipesCount&&be.pipes===ve||be.pipesCount>1&&-1!==Me(be.pipes,ve))&&!rt&&(w("false write response, pause",be.awaitDrain),be.awaitDrain++),Se.pause())}function S(me){w("onerror",me),ae(),ve.removeListener("error",S),0===p(ve,"error")&&ye(ve,me)}function Xt(){ve.removeListener("finish",de),ae()}function de(){w("onfinish"),ve.removeListener("close",Xt),ae()}function ae(){w("unpipe"),Se.unpipe(ve)}return Se.on("data",qt),function pe(ve,oe,Se){if("function"==typeof ve.prependListener)return ve.prependListener(oe,Se);ve._events&&ve._events[oe]?Array.isArray(ve._events[oe])?ve._events[oe].unshift(Se):ve._events[oe]=[Se,ve._events[oe]]:ve.on(oe,Se)}(ve,"error",S),ve.once("close",Xt),ve.once("finish",de),ve.emit("pipe",Se),be.flowing||(w("pipe resume"),Se.resume()),ve},L.prototype.unpipe=function(ve){var oe=this._readableState,Se={hasUnpiped:!1};if(0===oe.pipesCount)return this;if(1===oe.pipesCount)return ve&&ve!==oe.pipes||(ve||(ve=oe.pipes),oe.pipes=null,oe.pipesCount=0,oe.flowing=!1,ve&&ve.emit("unpipe",this,Se)),this;if(!ve){var be=oe.pipes,nt=oe.pipesCount;oe.pipes=null,oe.pipesCount=0,oe.flowing=!1;for(var $e=0;$e0,!1!==be.flowing&&this.resume()):"readable"===ve&&!be.endEmitted&&!be.readableListening&&(be.readableListening=be.needReadable=!0,be.flowing=!1,be.emittedReadable=!1,w("on readable",be.length,be.reading),be.length?C(this):be.reading||process.nextTick(fe,this)),Se},L.prototype.removeListener=function(ve,oe){var Se=D.prototype.removeListener.call(this,ve,oe);return"readable"===ve&&process.nextTick(U,this),Se},L.prototype.removeAllListeners=function(ve){var oe=D.prototype.removeAllListeners.apply(this,arguments);return("readable"===ve||void 0===ve)&&process.nextTick(U,this),oe},L.prototype.resume=function(){var ve=this._readableState;return ve.flowing||(w("resume"),ve.flowing=!ve.readableListening,function re(ve,oe){oe.resumeScheduled||(oe.resumeScheduled=!0,process.nextTick(he,ve,oe))}(this,ve)),ve.paused=!1,this},L.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},L.prototype.wrap=function(ve){var oe=this,Se=this._readableState,be=!1;for(var nt in ve.on("end",function(){if(w("wrapped end"),Se.decoder&&!Se.ended){var dt=Se.decoder.end();dt&&dt.length&&oe.push(dt)}oe.push(null)}),ve.on("data",function(dt){w("wrapped data"),Se.decoder&&(dt=Se.decoder.write(dt)),Se.objectMode&&null==dt||!(Se.objectMode||dt&&dt.length)||oe.push(dt)||(be=!0,ve.pause())}),ve)void 0===this[nt]&&"function"==typeof ve[nt]&&(this[nt]=function(yt){return function(){return ve[yt].apply(ve,arguments)}}(nt));for(var $e=0;$e-1))throw new ie(ge);return this._writableState.defaultEncoding=ge,this},Object.defineProperty(Ee.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Ee.prototype._write=function(Oe,ge,ce){ce(new j("_write()"))},Ee.prototype._writev=null,Ee.prototype.end=function(Oe,ge,ce){var Re=this._writableState;return"function"==typeof Oe?(ce=Oe,Oe=null,ge=null):"function"==typeof ge&&(ce=ge,ge=null),null!=Oe&&this.write(Oe,ge),Re.corked&&(Re.corked=1,this.uncork()),Re.ending||function re(Oe,ge,ce){ge.ending=!0,fe(Oe,ge),ce&&(ge.finished?process.nextTick(ce):Oe.once("finish",ce)),ge.ended=!0,Oe.writable=!1}(this,Re,ce),this},Object.defineProperty(Ee.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(Ee.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(ge){this._writableState&&(this._writableState.destroyed=ge)}}),Ee.prototype.destroy=w.destroy,Ee.prototype._undestroy=w.undestroy,Ee.prototype._destroy=function(Oe,ge){ge(Oe)}},12683(ke,q,l){"use strict";var i;function g($,ie,_e){return ie=function p($){var ie=function D($,ie){if("object"!=typeof $||null===$)return $;var _e=$[Symbol.toPrimitive];if(void 0!==_e){var ye=_e.call($,ie||"default");if("object"!=typeof ye)return ye;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===ie?String:Number)($)}($,"string");return"symbol"==typeof ie?ie:String(ie)}(ie),ie in $?Object.defineProperty($,ie,{value:_e,enumerable:!0,configurable:!0,writable:!0}):$[ie]=_e,$}var o=l(57854),e=Symbol("lastResolve"),A=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),w=Symbol("lastPromise"),f=Symbol("handlePromise"),F=Symbol("stream");function M($,ie){return{value:$,done:ie}}function K($){var ie=$[e];if(null!==ie){var _e=$[F].read();null!==_e&&($[w]=null,$[e]=null,$[A]=null,ie(M(_e,!1)))}}function j($){process.nextTick(K,$)}var ee=Object.getPrototypeOf(function(){}),V=Object.setPrototypeOf((g(i={get stream(){return this[F]},next:function(){var ie=this,_e=this[h];if(null!==_e)return Promise.reject(_e);if(this[d])return Promise.resolve(M(void 0,!0));if(this[F].destroyed)return new Promise(function(Ee,L){process.nextTick(function(){ie[h]?L(ie[h]):Ee(M(void 0,!0))})});var se,ye=this[w];if(ye)se=new Promise(function Z($,ie){return function(_e,ye){$.then(function(){ie[d]?_e(M(void 0,!0)):ie[f](_e,ye)},ye)}}(ye,this));else{var pe=this[F].read();if(null!==pe)return Promise.resolve(M(pe,!1));se=new Promise(this[f])}return this[w]=se,se}},Symbol.asyncIterator,function(){return this}),g(i,"return",function(){var ie=this;return new Promise(function(_e,ye){ie[F].destroy(null,function(se){se?ye(se):_e(M(void 0,!0))})})}),i),ee);ke.exports=function(ie){var _e,ye=Object.create(V,(g(_e={},F,{value:ie,writable:!0}),g(_e,e,{value:null,writable:!0}),g(_e,A,{value:null,writable:!0}),g(_e,h,{value:null,writable:!0}),g(_e,d,{value:ie._readableState.endEmitted,writable:!0}),g(_e,f,{value:function(pe,Ee){var L=ye[F].read();L?(ye[w]=null,ye[e]=null,ye[A]=null,pe(M(L,!1))):(ye[e]=pe,ye[A]=Ee)},writable:!0}),_e));return ye[w]=null,o(ie,function(se){if(se&&"ERR_STREAM_PREMATURE_CLOSE"!==se.code){var pe=ye[A];return null!==pe&&(ye[w]=null,ye[e]=null,ye[A]=null,pe(se)),void(ye[h]=se)}var Ee=ye[e];null!==Ee&&(ye[w]=null,ye[e]=null,ye[A]=null,Ee(M(void 0,!0))),ye[d]=!0}),ie.on("readable",j.bind(null,ye)),ye}},75225(ke,q,l){"use strict";function i(j,Z){var ee=Object.keys(j);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(j);Z&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(j,Q).enumerable})),ee.push.apply(ee,V)}return ee}function g(j){for(var Z=1;Z0?this.tail.next=V:this.head=V,this.tail=V,++this.length}},{key:"unshift",value:function(ee){var V={data:ee,next:this.head};0===this.length&&(this.tail=V),this.head=V,++this.length}},{key:"shift",value:function(){if(0!==this.length){var ee=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,ee}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ee){if(0===this.length)return"";for(var V=this.head,Q=""+V.data;V=V.next;)Q+=ee+V.data;return Q}},{key:"concat",value:function(ee){if(0===this.length)return w.alloc(0);for(var V=w.allocUnsafe(ee>>>0),Q=this.head,$=0;Q;)K(Q.data,V,$),$+=Q.data.length,Q=Q.next;return V}},{key:"consume",value:function(ee,V){var Q;return eeie.length?ie.length:ee;if($+=_e===ie.length?ie:ie.slice(0,ee),0===(ee-=_e)){_e===ie.length?(++Q,this.head=V.next?V.next:this.tail=null):(this.head=V,V.data=ie.slice(_e));break}++Q}return this.length-=Q,$}},{key:"_getBuffer",value:function(ee){var V=w.allocUnsafe(ee),Q=this.head,$=1;for(Q.data.copy(V),ee-=Q.data.length;Q=Q.next;){var ie=Q.data,_e=ee>ie.length?ie.length:ee;if(ie.copy(V,V.length-ee,0,_e),0===(ee-=_e)){_e===ie.length?(++$,this.head=Q.next?Q.next:this.tail=null):(this.head=Q,Q.data=ie.slice(_e));break}++$}return this.length-=$,V}},{key:M,value:function(ee,V){return F(this,g(g({},V),{},{depth:0,customInspect:!1}))}}]),j}()},88152(ke){"use strict";function l(o,e){p(o,e),i(o)}function i(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function p(o,e){o.emit("error",e)}ke.exports={destroy:function q(o,e){var A=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(e?e(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(p,this,o)):process.nextTick(p,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(w){!e&&w?A._writableState?A._writableState.errorEmitted?process.nextTick(i,A):(A._writableState.errorEmitted=!0,process.nextTick(l,A,w)):process.nextTick(l,A,w):e?(process.nextTick(i,A),e(w)):process.nextTick(i,A)}),this)},undestroy:function g(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function D(o,e){var A=o._readableState,h=o._writableState;A&&A.autoDestroy||h&&h.autoDestroy?o.destroy(e):o.emit("error",e)}}},57854(ke,q,l){"use strict";var i=l(30464).F.ERR_STREAM_PREMATURE_CLOSE;function p(){}ke.exports=function o(e,A,h){if("function"==typeof A)return o(e,null,A);A||(A={}),h=function g(e){var A=!1;return function(){if(!A){A=!0;for(var h=arguments.length,d=new Array(h),w=0;w0,function(ye){ee||(ee=ye),ye&&V.forEach(d),!ie&&(V.forEach(d),Z(ee))})});return K.reduce(w)}},22827(ke,q,l){"use strict";var i=l(30464).F.ERR_INVALID_OPT_VALUE;ke.exports={getHighWaterMark:function p(D,o,e,A){var h=function g(D,o,e){return null!=D.highWaterMark?D.highWaterMark:o?D[e]:null}(o,A,e);if(null!=h){if(!isFinite(h)||Math.floor(h)!==h||h<0)throw new i(A?e:"highWaterMark",h);return Math.floor(h)}return D.objectMode?16:16384}}},12601(ke,q,l){ke.exports=l(44356).EventEmitter},78454(ke,q,l){"use strict";var i=l(54272).Buffer,g=i.isEncoding||function(V){switch((V=""+V)&&V.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(V){var Q;switch(this.encoding=function D(V){var Q=function p(V){if(!V)return"utf8";for(var Q;;)switch(V){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return V;default:if(Q)return;V=(""+V).toLowerCase(),Q=!0}}(V);if("string"!=typeof Q&&(i.isEncoding===g||!g(V)))throw new Error("Unknown encoding: "+V);return Q||V}(V),this.encoding){case"utf16le":this.text=F,this.end=M,Q=4;break;case"utf8":this.fillLast=d,Q=4;break;case"base64":this.text=K,this.end=j,Q=3;break;default:return this.write=Z,void(this.end=ee)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(Q)}function e(V){return V<=127?0:V>>5==6?2:V>>4==14?3:V>>3==30?4:V>>6==2?-1:-2}function d(V){var Q=this.lastTotal-this.lastNeed,$=function h(V,Q){if(128!=(192&Q[0]))return V.lastNeed=0,"\ufffd";if(V.lastNeed>1&&Q.length>1){if(128!=(192&Q[1]))return V.lastNeed=1,"\ufffd";if(V.lastNeed>2&&Q.length>2&&128!=(192&Q[2]))return V.lastNeed=2,"\ufffd"}}(this,V);return void 0!==$?$:this.lastNeed<=V.length?(V.copy(this.lastChar,Q,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(V.copy(this.lastChar,Q,0,V.length),void(this.lastNeed-=V.length))}function F(V,Q){if((V.length-Q)%2==0){var $=V.toString("utf16le",Q);if($){var ie=$.charCodeAt($.length-1);if(ie>=55296&&ie<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1],$.slice(0,-1)}return $}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=V[V.length-1],V.toString("utf16le",Q,V.length-1)}function M(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):Q}function K(V,Q){var $=(V.length-Q)%3;return 0===$?V.toString("base64",Q):(this.lastNeed=3-$,this.lastTotal=3,1===$?this.lastChar[0]=V[V.length-1]:(this.lastChar[0]=V[V.length-2],this.lastChar[1]=V[V.length-1]),V.toString("base64",Q,V.length-$))}function j(V){var Q=V&&V.length?this.write(V):"";return this.lastNeed?Q+this.lastChar.toString("base64",0,3-this.lastNeed):Q}function Z(V){return V.toString(this.encoding)}function ee(V){return V&&V.length?this.write(V):""}q.I=o,o.prototype.write=function(V){if(0===V.length)return"";var Q,$;if(this.lastNeed){if(void 0===(Q=this.fillLast(V)))return"";$=this.lastNeed,this.lastNeed=0}else $=0;return $=0?(_e>0&&(V.lastNeed=_e-1),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(V.lastNeed=_e-2),_e):--ie<$||-2===_e?0:(_e=e(Q[ie]))>=0?(_e>0&&(2===_e?_e=0:V.lastNeed=_e-3),_e):0}(this,V,Q);if(!this.lastNeed)return V.toString("utf8",Q);this.lastTotal=$;var ie=V.length-($-this.lastNeed);return V.copy(this.lastChar,0,ie),V.toString("utf8",Q,ie)},o.prototype.fillLast=function(V){if(this.lastNeed<=V.length)return V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);V.copy(this.lastChar,this.lastTotal-this.lastNeed,0,V.length),this.lastNeed-=V.length}},54272(ke,q,l){var i=l(83838),g=i.Buffer;function p(o,e){for(var A in o)e[A]=o[A]}function D(o,e,A){return g(o,e,A)}g.from&&g.alloc&&g.allocUnsafe&&g.allocUnsafeSlow?ke.exports=i:(p(i,q),q.Buffer=D),p(g,D),D.from=function(o,e,A){if("number"==typeof o)throw new TypeError("Argument must not be a number");return g(o,e,A)},D.alloc=function(o,e,A){if("number"!=typeof o)throw new TypeError("Argument must be a number");var h=g(o);return void 0!==e?"string"==typeof A?h.fill(e,A):h.fill(e):h.fill(0),h},D.allocUnsafe=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return g(o)},D.allocUnsafeSlow=function(o){if("number"!=typeof o)throw new TypeError("Argument must be a number");return i.SlowBuffer(o)}},47851(ke,q,l){var i=l(41876);q.encode=i.encode,q.decode=i.decode},41876(ke,q){"use strict";var i=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];q.encode=function(p){Buffer.isBuffer(p)||(p=new Buffer(p));for(var D=0,o=0,e=0,A=0,h=new Buffer(8*function g(p){var D=Math.floor(p.length/5);return p.length%5==0?D:D+1}(p));D3?(A=(A=d&255>>e)<<(e=(e+5)%8)|(D+1>8-e,D++):(A=d>>8-(e+5)&31,0==(e=(e+5)%8)&&D++),h[o]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(A),o++}for(D=o;D>>(D=(D+5)%8),A++,e=255&o<<8-D)}return h.slice(0,A)}},41090(ke,q,l){"use strict";var i=l(27054).Buffer,g=l(56471),p=l(573),D=ArrayBuffer.isView||function(d){try{return p(d),!0}catch{return!1}},o=typeof Uint8Array<"u",e=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",A=e&&(i.prototype instanceof Uint8Array||i.TYPED_ARRAY_SUPPORT);ke.exports=function(d,w){if(i.isBuffer(d))return d.constructor&&!("isBuffer"in d)?i.from(d):d;if("string"==typeof d)return i.from(d,w);if(e&&D(d)){if(0===d.byteLength)return i.alloc(0);if(A){var f=i.from(d.buffer,d.byteOffset,d.byteLength);if(f.byteLength===d.byteLength)return f}var F=d instanceof Uint8Array?d:new Uint8Array(d.buffer,d.byteOffset,d.byteLength),M=i.from(F);if(M.length===d.byteLength)return M}if(o&&d instanceof Uint8Array)return i.from(d);var K=g(d);if(K)for(var j=0;j255||~~Z!==Z)throw new RangeError("Array items must be numbers in the range 0-255.")}if(K||i.isBuffer(d)&&d.constructor&&"function"==typeof d.constructor.isBuffer&&d.constructor.isBuffer(d))return i.from(d);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},56471(ke){var q={}.toString;ke.exports=Array.isArray||function(l){return"[object Array]"==q.call(l)}},573(ke,q,l){"use strict";var i=l(46758),p=l(12773)("TypedArray.prototype.buffer",!0),D=l(4729);ke.exports=p||function(e){if(!D(e))throw new i("Not a Typed Array");return e.buffer}},3398(ke){function l(i){try{if(!global.localStorage)return!1}catch{return!1}var g=global.localStorage[i];return null!=g&&"true"===String(g).toLowerCase()}ke.exports=function q(i,g){if(l("noDeprecation"))return i;var p=!1;return function D(){if(!p){if(l("throwDeprecation"))throw new Error(g);l("traceDeprecation")?console.trace(g):console.warn(g),p=!0}return i.apply(this,arguments)}}},68326(__unused_webpack_module,exports){var indexOf=function(ke,q){if(ke.indexOf)return ke.indexOf(q);for(var l=0;l"u"?global:globalThis,w=g(),f=D("String.prototype.slice"),F=D("Array.prototype.indexOf",!0)||function(V,Q){for(var $=0;$-1}(Q)?Q:"Object"===Q&&function j(ee){var V=!1;return i(M,function(Q,$){if(!V)try{Q(ee),V=f($,1)}catch{}}),V}(V)}return o?function K(ee){var V=!1;return i(M,function(Q,$){if(!V)try{"$"+Q(ee)===$&&(V=f($,1))}catch{}}),V}(V):null}},78982(){},47790(){},77965(){},66089(){},79368(){},64688(){},51069(){},15340(){},79838(){},63779(){},77199(){},97594(ke,q,l){"use strict";var i=l(5019),g=typeof globalThis>"u"?global:globalThis;ke.exports=function(){for(var D=[],o=0;oV,If:()=>i,K2:()=>e,Os:()=>o,P:()=>K,PZ:()=>ee,hZ:()=>p,i0:()=>D,i7:()=>d,iF:()=>A,kY:()=>w,kp:()=>g,sf:()=>Z,wk:()=>h});var i=function(Q){return Q[Q.State=0]="State",Q[Q.Transition=1]="Transition",Q[Q.Sequence=2]="Sequence",Q[Q.Group=3]="Group",Q[Q.Animate=4]="Animate",Q[Q.Keyframes=5]="Keyframes",Q[Q.Style=6]="Style",Q[Q.Trigger=7]="Trigger",Q[Q.Reference=8]="Reference",Q[Q.AnimateChild=9]="AnimateChild",Q[Q.AnimateRef=10]="AnimateRef",Q[Q.Query=11]="Query",Q[Q.Stagger=12]="Stagger",Q}(i||{});const g="*";function p(Q,$){return{type:i.Trigger,name:Q,definitions:$,options:{}}}function D(Q,$=null){return{type:i.Animate,styles:$,timings:Q}}function o(Q,$=null){return{type:i.Group,steps:Q,options:$}}function e(Q,$=null){return{type:i.Sequence,steps:Q,options:$}}function A(Q){return{type:i.Style,styles:Q,offset:null}}function h(Q,$,ie){return{type:i.State,name:Q,styles:$,options:ie}}function d(Q){return{type:i.Keyframes,steps:Q}}function w(Q,$,ie=null){return{type:i.Transition,expr:Q,animation:$,options:ie}}function K(Q,$,ie=null){return{type:i.Query,selector:Q,animation:$,options:ie}}class Z{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor($=0,ie=0){this.totalTime=$+ie}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}onStart($){this._originalOnStartFns.push($),this._onStartFns.push($)}onDone($){this._originalOnDoneFns.push($),this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach($=>$()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition($){this._position=this.totalTime?$*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}class ee{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor($){this.players=$;let ie=0,_e=0,ye=0;const se=this.players.length;0==se?queueMicrotask(()=>this._onFinish()):this.players.forEach(pe=>{pe.onDone(()=>{++ie==se&&this._onFinish()}),pe.onDestroy(()=>{++_e==se&&this._onDestroy()}),pe.onStart(()=>{++ye==se&&this._onStart()})}),this.totalTime=this.players.reduce((pe,Ee)=>Math.max(pe,Ee.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach($=>$()),this._onDoneFns=[])}init(){this.players.forEach($=>$.init())}onStart($){this._onStartFns.push($)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach($=>$()),this._onStartFns=[])}onDone($){this._onDoneFns.push($)}onDestroy($){this._onDestroyFns.push($)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach($=>$.play())}pause(){this.players.forEach($=>$.pause())}restart(){this.players.forEach($=>$.restart())}finish(){this._onFinish(),this.players.forEach($=>$.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach($=>$.destroy()),this._onDestroyFns.forEach($=>$()),this._onDestroyFns=[])}reset(){this.players.forEach($=>$.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition($){const ie=$*this.totalTime;this.players.forEach(_e=>{const ye=_e.totalTime?Math.min(1,ie/_e.totalTime):1;_e.setPosition(ye)})}getPosition(){const $=this.players.reduce((ie,_e)=>null===ie||_e.totalTime>ie.totalTime?_e:ie,null);return null!=$?$.getPosition():0}beforeDestroy(){this.players.forEach($=>{$.beforeDestroy&&$.beforeDestroy()})}triggerCallback($){const ie="start"==$?this._onStartFns:this._onDoneFns;ie.forEach(_e=>_e()),ie.length=0}}const V="!"},17094(ke,q,l){"use strict";l.d(q,{Ai:()=>Y,GX:()=>_,Pd:()=>ge,Q_:()=>Oe,Z7:()=>V,kB:()=>T,sp:()=>u});var h=l(2615),d=l(73664),w=l(17705),f=l(39842),F=l(44522),M=l(88968),K=l(49046),j=l(34330),Z=l(72318);let V=(()=>{class ce{_platform=(0,h.WQX)(f.O);constructor(){}isDisabled(Me){return Me.hasAttribute("disabled")}isVisible(Me){return function $(ce){return!!(ce.offsetWidth||ce.offsetHeight||"function"==typeof ce.getClientRects&&ce.getClientRects().length)}(Me)&&"visible"===getComputedStyle(Me).visibility}isTabbable(Me){if(!this._platform.isBrowser)return!1;const ve=function Q(ce){try{return ce.frameElement}catch{return null}}(function m(ce){return ce.ownerDocument&&ce.ownerDocument.defaultView||window}(Me));if(ve&&(-1===L(ve)||!this.isVisible(ve)))return!1;let oe=Me.nodeName.toLowerCase(),Se=L(Me);return Me.hasAttribute("contenteditable")?-1!==Se:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function t(ce){let Re=ce.nodeName.toLowerCase(),Me="input"===Re&&ce.type;return"text"===Me||"password"===Me||"select"===Re||"textarea"===Re}(Me))&&("audio"===oe?!!Me.hasAttribute("controls")&&-1!==Se:"video"===oe?-1!==Se&&(null!==Se||this._platform.FIREFOX||Me.hasAttribute("controls")):Me.tabIndex>=0)}isFocusable(Me,ve){return function s(ce){return!function _e(ce){return function se(ce){return"input"==ce.nodeName.toLowerCase()}(ce)&&"hidden"==ce.type}(ce)&&(function ie(ce){let Re=ce.nodeName.toLowerCase();return"input"===Re||"select"===Re||"button"===Re||"textarea"===Re}(ce)||function ye(ce){return function pe(ce){return"a"==ce.nodeName.toLowerCase()}(ce)&&ce.hasAttribute("href")}(ce)||ce.hasAttribute("contenteditable")||Ee(ce))}(Me)&&!this.isDisabled(Me)&&(ve?.ignoreVisibility||this.isVisible(Me))}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();function Ee(ce){if(!ce.hasAttribute("tabindex")||void 0===ce.tabIndex)return!1;let Re=ce.getAttribute("tabindex");return!(!Re||isNaN(parseInt(Re,10)))}function L(ce){if(!Ee(ce))return null;const Re=parseInt(ce.getAttribute("tabindex")||"",10);return isNaN(Re)?-1:Re}class u{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(Re){this._enabled=Re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_enabled=!0;constructor(Re,Me,ve,oe,Se=!1,be){this._element=Re,this._checker=Me,this._ngZone=ve,this._document=oe,this._injector=be,Se||this.attachAnchors()}destroy(){const Re=this._startAnchor,Me=this._endAnchor;Re&&(Re.removeEventListener("focus",this.startAnchorListener),Re.remove()),Me&&(Me.removeEventListener("focus",this.endAnchorListener),Me.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(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(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusInitialElement(Re)))})}focusFirstTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusFirstTabbableElement(Re)))})}focusLastTabbableElementWhenReady(Re){return new Promise(Me=>{this._executeOnStable(()=>Me(this.focusLastTabbableElement(Re)))})}_getRegionBoundary(Re){const Me=this._element.querySelectorAll(`[cdk-focus-region-${Re}], [cdkFocusRegion${Re}], [cdk-focus-${Re}]`);return"start"==Re?Me.length?Me[0]:this._getFirstTabbableElement(this._element):Me.length?Me[Me.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Re){const Me=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Me){if(!this._checker.isFocusable(Me)){const ve=this._getFirstTabbableElement(Me);return ve?.focus(Re),!!ve}return Me.focus(Re),!0}return this.focusFirstTabbableElement(Re)}focusFirstTabbableElement(Re){const Me=this._getRegionBoundary("start");return Me&&Me.focus(Re),!!Me}focusLastTabbableElement(Re){const Me=this._getRegionBoundary("end");return Me&&Me.focus(Re),!!Me}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Re){if(this._checker.isFocusable(Re)&&this._checker.isTabbable(Re))return Re;const Me=Re.children;for(let ve=0;ve=0;ve--){const oe=Me[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Me[ve]):null;if(oe)return oe}return null}_createAnchor(){const Re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Re),Re.classList.add("cdk-visually-hidden"),Re.classList.add("cdk-focus-trap-anchor"),Re.setAttribute("aria-hidden","true"),Re}_toggleAnchorTabIndex(Re,Me){Re?Me.setAttribute("tabindex","0"):Me.removeAttribute("tabindex")}toggleAnchors(Re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Re,this._startAnchor),this._toggleAnchorTabIndex(Re,this._endAnchor))}_executeOnStable(Re){this._injector?(0,d.mal)(Re,{injector:this._injector}):setTimeout(Re)}}let _=(()=>{class ce{_checker=(0,h.WQX)(V);_ngZone=(0,h.WQX)(d.SKi);_document=(0,h.WQX)(h.qQL);_injector=(0,h.WQX)(h.zZn);constructor(){(0,h.WQX)(M.l).load(K.Y)}create(Me,ve=!1){return new u(Me,this._checker,this._ngZone,this._document,ve,this._injector)}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),T=(()=>{class ce{_elementRef=(0,h.WQX)(d.aKT);_focusTrapFactory=(0,h.WQX)(_);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(Me){this.focusTrap&&(this.focusTrap.enabled=Me)}autoCapture;constructor(){(0,h.WQX)(f.O).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(Me){const ve=Me.autoCapture;ve&&!ve.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,F.vc)(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275dir=d.FsC({type:ce,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",w.L39],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",w.L39]},exportAs:["cdkTrapFocus"],features:[d.OA$]})}return ce})();const P=new h.nKC("liveAnnouncerElement",{providedIn:"root",factory:function C(){return null}}),a=new h.nKC("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let x=0,Y=(()=>{class ce{_ngZone=(0,h.WQX)(d.SKi);_defaultOptions=(0,h.WQX)(a,{optional:!0});_liveElement;_document=(0,h.WQX)(h.qQL);_previousTimeout;_currentPromise;_currentResolve;constructor(){const Me=(0,h.WQX)(P,{optional:!0});this._liveElement=Me||this._createLiveElement()}announce(Me,...ve){const oe=this._defaultOptions;let Se,be;return 1===ve.length&&"number"==typeof ve[0]?be=ve[0]:[Se,be]=ve,this.clear(),clearTimeout(this._previousTimeout),Se||(Se=oe&&oe.politeness?oe.politeness:"polite"),null==be&&oe&&(be=oe.duration),this._liveElement.setAttribute("aria-live",Se),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=Me,"number"==typeof be&&(this._previousTimeout=setTimeout(()=>this.clear(),be)),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(){const Me="cdk-live-announcer-element",ve=this._document.getElementsByClassName(Me),oe=this._document.createElement("div");for(let Se=0;Se .cdk-overlay-container [aria-modal="true"]');for(let oe=0;oe{class ce{_platform=(0,h.WQX)(f.O);_hasCheckedHighContrastMode;_document=(0,h.WQX)(h.qQL);_breakpointSubscription;constructor(){this._breakpointSubscription=(0,h.WQX)(j.Q).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return U.NONE;const Me=this._document.createElement("div");Me.style.backgroundColor="rgb(1,2,3)",Me.style.position="absolute",this._document.body.appendChild(Me);const ve=this._document.defaultView||window,oe=ve&&ve.getComputedStyle?ve.getComputedStyle(Me):null,Se=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(Me.remove(),Se){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return U.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return U.BLACK_ON_WHITE}return U.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Me=this._document.body.classList;Me.remove(he,fe,re),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();ve===U.BLACK_ON_WHITE?Me.add(he,fe):ve===U.WHITE_ON_BLACK&&Me.add(he,re)}}static \u0275fac=function(ve){return new(ve||ce)};static \u0275prov=h.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})(),ge=(()=>{class ce{constructor(){(0,h.WQX)(Oe)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(ve){return new(ve||ce)};static \u0275mod=d.$C({type:ce});static \u0275inj=h.G2t({imports:[Z.w5]})}return ce})()},18617(ke,q,l){"use strict";l.d(q,{Ae:()=>ee,px:()=>Z,vr:()=>ye}),l(17094);var h=l(2615),d=l(73664),w=l(39842),f=l(88968),F=l(49046);function Z(P,C,a){const x=V(P,C);a=a.trim(),!x.some(Y=>Y.trim()===a)&&(x.push(a),P.setAttribute(C,x.join(" ")))}function ee(P,C,a){const x=V(P,C);a=a.trim();const Y=x.filter(R=>R!==a);Y.length?P.setAttribute(C,Y.join(" ")):P.removeAttribute(C)}function V(P,C){return P.getAttribute(C)?.match(/\S+/g)??[]}l(21413),l(4125);const $="cdk-describedby-message",ie="cdk-describedby-host";let _e=0,ye=(()=>{class P{_platform=(0,h.WQX)(w.O);_document=(0,h.WQX)(h.qQL);_messageRegistry=new Map;_messagesContainer=null;_id=""+_e++;constructor(){(0,h.WQX)(f.l).load(F.Y),this._id=(0,h.WQX)(d.sZ2)+"-"+_e++}describe(a,x,Y){if(!this._canBeDescribed(a,x))return;const R=se(x,Y);"string"!=typeof x?(pe(x,this._id),this._messageRegistry.set(R,{messageElement:x,referenceCount:0})):this._messageRegistry.has(R)||this._createMessageElement(x,Y),this._isElementDescribedByMessage(a,R)||this._addMessageReference(a,R)}removeDescription(a,x,Y){if(!x||!this._isElementNode(a))return;const R=se(x,Y);if(this._isElementDescribedByMessage(a,R)&&this._removeMessageReference(a,R),"string"==typeof x){const U=this._messageRegistry.get(R);U&&0===U.referenceCount&&this._deleteMessageElement(R)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const a=this._document.querySelectorAll(`[${ie}="${this._id}"]`);for(let x=0;x0!=Y.indexOf($));a.setAttribute("aria-describedby",x.join(" "))}_addMessageReference(a,x){const Y=this._messageRegistry.get(x);Z(a,"aria-describedby",Y.messageElement.id),a.setAttribute(ie,this._id),Y.referenceCount++}_removeMessageReference(a,x){const Y=this._messageRegistry.get(x);Y.referenceCount--,ee(a,"aria-describedby",Y.messageElement.id),a.removeAttribute(ie)}_isElementDescribedByMessage(a,x){const Y=V(a,"aria-describedby"),R=this._messageRegistry.get(x),U=R&&R.messageElement.id;return!!U&&-1!=Y.indexOf(U)}_canBeDescribed(a,x){if(!this._isElementNode(a))return!1;if(x&&"object"==typeof x)return!0;const Y=null==x?"":`${x}`.trim(),R=a.getAttribute("aria-label");return!(!Y||R&&R.trim()===Y)}_isElementNode(a){return a.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(x){return new(x||P)};static \u0275prov=h.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function se(P,C){return"string"==typeof P?`${C||""}/${P}`:P}function pe(P,C){P.id||(P.id=`${$}-${C}-${_e++}`)}},99090(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(12593);class g extends i.l{setActiveItem(D){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(D),this.activeItem&&this.activeItem.setActiveStyles()}}},80408(ke,q,l){"use strict";function i(g){return Array.isArray(g)?g:[g]}l.d(q,{F:()=>i})},28203(ke,q,l){"use strict";l.d(q,{jI:()=>d});var e=l(2615),A=l(73664);let d=(()=>{class w{static \u0275fac=function(M){return new(M||w)};static \u0275mod=A.$C({type:w});static \u0275inj=e.G2t({})}return w})()},34330(ke,q,l){"use strict";l.d(q,{D:()=>ee,Q:()=>$});var i=l(2615),g=l(73664),p=l(71985),D=l(21413),o=l(84572),e=l(28793),A=l(70152),h=l(96354),d=l(65245),w=l(99172),f=l(96697),F=l(56977),M=l(39842),K=l(80408);const j=new Set;let Z,ee=(()=>{class _e{_platform=(0,i.WQX)(M.O);_nonce=(0,i.WQX)(g.BIS,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q}matchMedia(se){return(this._platform.WEBKIT||this._platform.BLINK)&&function V(_e,ye){if(!j.has(_e))try{Z||(Z=document.createElement("style"),ye&&Z.setAttribute("nonce",ye),Z.setAttribute("type","text/css"),document.head.appendChild(Z)),Z.sheet&&(Z.sheet.insertRule(`@media ${_e} {body{ }}`,0),j.add(_e))}catch(se){console.error(se)}}(se,this._nonce),this._matchMedia(se)}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function Q(_e){return{matches:"all"===_e||""===_e,media:_e,addListener:()=>{},removeListener:()=>{}}}let $=(()=>{class _e{_mediaMatcher=(0,i.WQX)(ee);_zone=(0,i.WQX)(g.SKi);_queries=new Map;_destroySubject=new D.B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(se){return ie((0,K.F)(se)).some(Ee=>this._registerQuery(Ee).mql.matches)}observe(se){const Ee=ie((0,K.F)(se)).map(t=>this._registerQuery(t).observable);let L=(0,o.z)(Ee);return L=(0,e.x)(L.pipe((0,f.s)(1)),L.pipe((0,d.i)(1),(0,A.B)(0))),L.pipe((0,h.T)(t=>{const s={matches:!1,breakpoints:{}};return t.forEach(({matches:m,query:u})=>{s.matches=s.matches||m,s.breakpoints[u]=m}),s}))}_registerQuery(se){if(this._queries.has(se))return this._queries.get(se);const pe=this._mediaMatcher.matchMedia(se),L={observable:new p.c(t=>{const s=m=>this._zone.run(()=>t.next(m));return pe.addListener(s),()=>{pe.removeListener(s)}}).pipe((0,w.Z)(pe),(0,h.T)(({matches:t})=>({query:se,matches:t})),(0,F.Q)(this._destroySubject)),mql:pe};return this._queries.set(se,L),L}static \u0275fac=function(pe){return new(pe||_e)};static \u0275prov=i.jDH({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})();function ie(_e){return _e.map(ye=>ye.split(",")).reduce((ye,se)=>ye.concat(se)).map(ye=>ye.trim())}},14085(ke,q,l){"use strict";function i(p){return null!=p&&"false"!=`${p}`}function g(p,D=/\s+/){const o=[];if(null!=p){const e=Array.isArray(p)?p:`${p}`.split(D);for(const A of e){const h=`${A}`.trim();h&&o.push(h)}}return o}l.d(q,{cc:()=>g,he:()=>i})},8045(ke,q,l){"use strict";l.d(q,{x:()=>p});var i=l(74402),g=l(7673);function p(D){return(0,i.A)(D)?D:(0,g.of)(D)}},14117(ke,q,l){"use strict";l.d(q,{q:()=>g,y:()=>p});var i=l(30017);class g{}function p(D){return D&&"function"==typeof D.connect&&!(D instanceof i.G)}},61577(ke,q,l){"use strict";l.d(q,{dS:()=>A});var i=l(2615),g=l(73664);const p=new i.nKC("cdk-dir-doc",{providedIn:"root",factory:function D(){return(0,i.WQX)(i.qQL)}}),o=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let A=(()=>{class h{get value(){return this.valueSignal()}valueSignal=(0,i.vPA)("ltr");change=new g.bkB;constructor(){const w=(0,i.WQX)(p,{optional:!0});w&&this.valueSignal.set(function e(h){const d=h?.toLowerCase()||"";return"auto"===d&&typeof navigator<"u"&&navigator?.language?o.test(navigator.language)?"rtl":"ltr":"rtl"===d?"rtl":"ltr"}((w.body?w.body.dir:null)||(w.documentElement?w.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(f){return new(f||h)};static \u0275prov=i.jDH({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})()},67847(ke,q,l){"use strict";l.d(q,{OE:()=>g,i8:()=>D,o1:()=>p});var i=l(73664);function g(o,e=0){return p(o)?Number(o):2===arguments.length?e:0}function p(o){return!isNaN(parseFloat(o))&&!isNaN(Number(o))}function D(o){return o instanceof i.aKT?o.nativeElement:o}},95735(ke,q,l){"use strict";function i(p){return 0===p.buttons||0===p.detail}function g(p){const D=p.touches&&p.touches[0]||p.changedTouches&&p.changedTouches[0];return!(!D||-1!==D.identifier||null!=D.radiusX&&1!==D.radiusX||null!=D.radiusY&&1!==D.radiusY)}l.d(q,{_:()=>i,w:()=>g})},64123(ke,q,l){"use strict";l.d(q,{B:()=>g});var i=l(12593);class g extends i.l{_origin="program";setFocusOrigin(D){return this._origin=D,this}setActiveItem(D){super.setActiveItem(D),this.activeItem&&this.activeItem.focus(this._origin)}}},76838(ke,q,l){"use strict";l.d(q,{FN:()=>ye,vR:()=>se});var i=l(2615),g=l(73664),p=l(21413),D=l(84412),o=l(7673),e=l(23294),A=l(65245),h=l(56977),d=l(95735),w=l(10438),f=l(44522),F=l(39842),M=l(83300),K=l(67847);const j=new i.nKC("cdk-input-modality-detector-options"),Z={ignoreKeys:[w.A$,w.W3,w.eg,w.Ge,w.FX]},V={passive:!0,capture:!0};let Q=(()=>{class pe{_platform=(0,i.WQX)(F.O);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new D.t(null);_options;_lastTouchMs=0;_onKeydown=L=>{this._options?.ignoreKeys?.some(t=>t===L.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.Fb)(L))};_onMousedown=L=>{Date.now()-this._lastTouchMs<650||(this._modality.next((0,d._)(L)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.Fb)(L))};_onTouchstart=L=>{(0,d.w)(L)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.Fb)(L))};constructor(){const L=(0,i.WQX)(g.SKi),t=(0,i.WQX)(i.qQL),s=(0,i.WQX)(j,{optional:!0});if(this._options={...Z,...s},this.modalityDetected=this._modality.pipe((0,A.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,e.F)()),this._platform.isBrowser){const m=(0,i.WQX)(g._9s).createRenderer(null,null);this._listenerCleanups=L.runOutsideAngular(()=>[m.listen(t,"keydown",this._onKeydown,V),m.listen(t,"mousedown",this._onMousedown,V),m.listen(t,"touchstart",this._onTouchstart,V)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(L=>L())}static \u0275fac=function(t){return new(t||pe)};static \u0275prov=i.jDH({token:pe,factory:pe.\u0275fac,providedIn:"root"})}return pe})();var $=function(pe){return pe[pe.IMMEDIATE=0]="IMMEDIATE",pe[pe.EVENTUAL=1]="EVENTUAL",pe}($||{});const ie=new i.nKC("cdk-focus-monitor-default-options"),_e=(0,M.B)({passive:!0,capture:!0});let ye=(()=>{class pe{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(F.O);_inputModalityDetector=(0,i.WQX)(Q);_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=(0,i.WQX)(i.qQL);_stopInputModalityDetector=new p.B;constructor(){const L=(0,i.WQX)(ie,{optional:!0});this._detectionMode=L?.detectionMode||$.IMMEDIATE}_rootNodeFocusAndBlurListener=L=>{for(let s=(0,f.Fb)(L);s;s=s.parentElement)"focus"===L.type?this._onFocus(L,s):this._onBlur(L,s)};monitor(L,t=!1){const s=(0,K.i8)(L);if(!this._platform.isBrowser||1!==s.nodeType)return(0,o.of)();const m=(0,f.KT)(s)||this._document,u=this._elementInfo.get(s);if(u)return t&&(u.checkChildren=!0),u.subject;const _={checkChildren:t,subject:new p.B,rootNode:m};return this._elementInfo.set(s,_),this._registerGlobalListeners(_),_.subject}stopMonitoring(L){const t=(0,K.i8)(L),s=this._elementInfo.get(t);s&&(s.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(s))}focusVia(L,t,s){const m=(0,K.i8)(L);m===this._document.activeElement?this._getClosestElementsInfo(m).forEach(([_,T])=>this._originChanged(_,t,T)):(this._setOrigin(t),"function"==typeof m.focus&&m.focus(s))}ngOnDestroy(){this._elementInfo.forEach((L,t)=>this.stopMonitoring(t))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(L){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(L)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:L&&this._isLastInteractionFromInputLabel(L)?"mouse":"program"}_shouldBeAttributedToTouch(L){return this._detectionMode===$.EVENTUAL||!!L?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(L,t){L.classList.toggle("cdk-focused",!!t),L.classList.toggle("cdk-touch-focused","touch"===t),L.classList.toggle("cdk-keyboard-focused","keyboard"===t),L.classList.toggle("cdk-mouse-focused","mouse"===t),L.classList.toggle("cdk-program-focused","program"===t)}_setOrigin(L,t=!1){this._ngZone.runOutsideAngular(()=>{this._origin=L,this._originFromTouchInteraction="touch"===L&&t,this._detectionMode===$.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(L,t){const s=this._elementInfo.get(t),m=(0,f.Fb)(L);!s||!s.checkChildren&&t!==m||this._originChanged(t,this._getFocusOrigin(m),s)}_onBlur(L,t){const s=this._elementInfo.get(t);!s||s.checkChildren&&L.relatedTarget instanceof Node&&t.contains(L.relatedTarget)||(this._setClasses(t),this._emitOrigin(s,null))}_emitOrigin(L,t){L.subject.observers.length&&this._ngZone.run(()=>L.subject.next(t))}_registerGlobalListeners(L){if(!this._platform.isBrowser)return;const t=L.rootNode,s=this._rootNodeFocusListenerCount.get(t)||0;s||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,_e)}),this._rootNodeFocusListenerCount.set(t,s+1),1===++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,h.Q)(this._stopInputModalityDetector)).subscribe(m=>{this._setOrigin(m,!0)}))}_removeGlobalListeners(L){const t=L.rootNode;if(this._rootNodeFocusListenerCount.has(t)){const s=this._rootNodeFocusListenerCount.get(t);s>1?this._rootNodeFocusListenerCount.set(t,s-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,_e),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,_e),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(L,t,s){this._setClasses(L,t),this._emitOrigin(s,t),this._lastFocusOrigin=t}_getClosestElementsInfo(L){const t=[];return this._elementInfo.forEach((s,m)=>{(m===L||s.checkChildren&&m.contains(L))&&t.push([m,s])}),t}_isLastInteractionFromInputLabel(L){const{_mostRecentTarget:t,mostRecentModality:s}=this._inputModalityDetector;if("mouse"!==s||!t||t===L||"INPUT"!==L.nodeName&&"TEXTAREA"!==L.nodeName||L.disabled)return!1;const m=L.labels;if(m)for(let u=0;u{class pe{_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(ye);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new g.bkB;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const L=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(L,1===L.nodeType&&L.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||pe)};static \u0275dir=g.FsC({type:pe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return pe})()},89726(ke,q,l){"use strict";l.d(q,{g:()=>D});var i=l(2615),g=l(73664);const p={};let D=(()=>{class o{_appId=(0,i.WQX)(g.sZ2);getId(A){return"ng"!==this._appId&&(A+=this._appId),p.hasOwnProperty(A)||(p[A]=0),`${A}${p[A]++}`}static \u0275fac=function(h){return new(h||o)};static \u0275prov=i.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},67336(ke,q,l){"use strict";function i(g,...p){return p.length?p.some(D=>g[D]):g.altKey||g.shiftKey||g.ctrlKey||g.metaKey}l.d(q,{rp:()=>i})},10438(ke,q,l){"use strict";l.d(q,{A:()=>R,A$:()=>h,FX:()=>e,Fm:()=>o,G_:()=>g,Ge:()=>me,Kp:()=>j,LE:()=>Q,SJ:()=>se,UQ:()=>ee,W3:()=>A,Z:()=>ae,_f:()=>f,bn:()=>P,dB:()=>K,eg:()=>ui,f2:()=>pe,i7:()=>V,n6:()=>$,t6:()=>F,w_:()=>M,wn:()=>p,yZ:()=>Z});const g=8,p=9,o=13,e=16,A=17,h=18,f=27,F=32,M=33,K=34,j=35,Z=36,ee=37,V=38,Q=39,$=40,se=46,pe=48,P=57,R=65,ae=90,me=91,ui=224},99327(ke,q,l){"use strict";l.d(q,{RH:()=>p,Rp:()=>D});var i=l(2615),g=l(73664);let p=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({})}return o})();const D={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},12593(ke,q,l){"use strict";l.d(q,{l:()=>d});var i=l(2615),g=l(73664),p=l(59295),D=l(21413),o=l(18359),e=l(59096),A=l(67336),h=l(10438);class d{_items;_activeItemIndex=(0,i.vPA)(-1);_activeItem=(0,i.vPA)(null);_wrap=!1;_typeaheadSubscription=o.yU.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=f=>f.disabled;constructor(f,F){this._items=f,f instanceof g.rOR?this._itemChangesSubscription=f.changes.subscribe(M=>this._itemsChanged(M.toArray())):(0,i.Hps)(f)&&(this._effectRef=(0,p.QZ)(()=>this._itemsChanged(f()),{injector:F}))}tabOut=new D.B;change=new D.B;skipPredicate(f){return this._skipPredicateFn=f,this}withWrap(f=!0){return this._wrap=f,this}withVerticalOrientation(f=!0){return this._vertical=f,this}withHorizontalOrientation(f){return this._horizontal=f,this}withAllowedModifierKeys(f){return this._allowedModifierKeys=f,this}withTypeAhead(f=200){this._typeaheadSubscription.unsubscribe();const F=this._getItemsArray();return this._typeahead=new e.i(F,{debounceInterval:"number"==typeof f?f:void 0,skipPredicate:M=>this._skipPredicateFn(M)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(M=>{this.setActiveItem(M)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(f=!0){return this._homeAndEnd=f,this}withPageUpDown(f=!0,F=10){return this._pageUpAndDown={enabled:f,delta:F},this}setActiveItem(f){const F=this._activeItem();this.updateActiveItem(f),this._activeItem()!==F&&this.change.next(this._activeItemIndex())}onKeydown(f){const F=f.keyCode,K=["altKey","ctrlKey","metaKey","shiftKey"].every(j=>!f[j]||this._allowedModifierKeys.indexOf(j)>-1);switch(F){case h.wn:return void this.tabOut.next();case h.n6:if(this._vertical&&K){this.setNextItemActive();break}return;case h.i7:if(this._vertical&&K){this.setPreviousItemActive();break}return;case h.LE:if(this._horizontal&&K){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case h.UQ:if(this._horizontal&&K){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case h.yZ:if(this._homeAndEnd&&K){this.setFirstItemActive();break}return;case h.Kp:if(this._homeAndEnd&&K){this.setLastItemActive();break}return;case h.w_:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(j>0?j:0,1);break}return;case h.dB:if(this._pageUpAndDown.enabled&&K){const j=this._activeItemIndex()+this._pageUpAndDown.delta,Z=this._getItemsArray().length;this._setActiveItemByIndex(j-1&&M!==this._activeItemIndex()&&(this._activeItemIndex.set(M),this._typeahead?.setCurrentSelectedItemIndex(M))}}}},72318(ke,q,l){"use strict";l.d(q,{Wv:()=>M,w5:()=>K});var i=l(2615),g=l(73664),p=l(17705),D=l(71985),o=l(21413),e=l(70152),A=l(5964),h=l(96354),d=l(67847);let f=(()=>{class j{create(ee){return typeof MutationObserver>"u"?null:new MutationObserver(ee)}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),F=(()=>{class j{_mutationObserverFactory=(0,i.WQX)(f);_observedElements=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){this._observedElements.forEach((ee,V)=>this._cleanupObserver(V))}observe(ee){const V=(0,d.i8)(ee);return new D.c(Q=>{const ie=this._observeElement(V).pipe((0,h.T)(_e=>_e.filter(ye=>!function w(j){if("characterData"===j.type&&j.target instanceof Comment)return!0;if("childList"===j.type){for(let Z=0;Z!!_e.length)).subscribe(_e=>{this._ngZone.run(()=>{Q.next(_e)})});return()=>{ie.unsubscribe(),this._unobserveElement(V)}})}_observeElement(ee){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(ee))this._observedElements.get(ee).count++;else{const V=new o.B,Q=this._mutationObserverFactory.create($=>V.next($));Q&&Q.observe(ee,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(ee,{observer:Q,stream:V,count:1})}return this._observedElements.get(ee).stream})}_unobserveElement(ee){this._observedElements.has(ee)&&(this._observedElements.get(ee).count--,this._observedElements.get(ee).count||this._cleanupObserver(ee))}_cleanupObserver(ee){if(this._observedElements.has(ee)){const{observer:V,stream:Q}=this._observedElements.get(ee);V&&V.disconnect(),Q.complete(),this._observedElements.delete(ee)}}static \u0275fac=function(V){return new(V||j)};static \u0275prov=i.jDH({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})(),M=(()=>{class j{_contentObserver=(0,i.WQX)(F);_elementRef=(0,i.WQX)(g.aKT);event=new g.bkB;get disabled(){return this._disabled}set disabled(ee){this._disabled=ee,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(ee){this._debounce=(0,d.OE)(ee),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const ee=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?ee.pipe((0,e.B)(this.debounce)):ee).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=g.FsC({type:j,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",p.L39],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=g.$C({type:j});static \u0275inj=i.G2t({providers:[f]})}return j})()},63610(ke,q,l){"use strict";l.d(q,{a:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(71985),o=l(5964),e=l(92771),A=l(97647),d=l(56977);class f{_box;_destroyed=new p.B;_resizeSubject=new p.B;_resizeObserver;_elementObservables=new Map;constructor(K){this._box=K,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(j=>this._resizeSubject.next(j)))}observe(K){return this._elementObservables.has(K)||this._elementObservables.set(K,new D.c(j=>{const Z=this._resizeSubject.subscribe(j);return this._resizeObserver?.observe(K,{box:this._box}),()=>{this._resizeObserver?.unobserve(K),Z.unsubscribe(),this._elementObservables.delete(K)}}).pipe((0,o.p)(j=>j.some(Z=>Z.target===K)),function h(M,K,j){let Z,ee=!1;return M&&"object"==typeof M?({bufferSize:Z=1/0,windowTime:K=1/0,refCount:ee=!1,scheduler:j}=M):Z=M??1/0,(0,A.u)({connector:()=>new e.m(Z,K,j),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ee})}({bufferSize:1,refCount:!0}),(0,d.Q)(this._destroyed))),this._elementObservables.get(K)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let F=(()=>{class M{_cleanupErrorListener;_observers=new Map;_ngZone=(0,i.WQX)(g.SKi);constructor(){}ngOnDestroy(){for(const[,j]of this._observers)j.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(j,Z){const ee=Z?.box||"content-box";return this._observers.has(ee)||this._observers.set(ee,new f(ee)),this._observers.get(ee).observe(j)}static \u0275fac=function(Z){return new(Z||M)};static \u0275prov=i.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})}return M})()},49338(ke,q,l){"use strict";l.d(q,{WB:()=>En,$Q:()=>hn,rW:()=>dt,rR:()=>Y,Sf:()=>ve,z_:()=>Fe,yY:()=>Se,gA:()=>Ee,$M:()=>$e,uA:()=>de,Y$:()=>Le,RH:()=>C});var i=l(2615),g=l(73664),p=l(17705),D=l(57303),o=l(39842),e=l(44522);function A(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var h=l(88968),d=l(21413),w=l(18359);function f(Pe){return null==Pe?"":"string"==typeof Pe?Pe:`${Pe}px`}var F=l(80408),M=l(5718),K=l(76939),j=l(47860),Z=l(5964),ee=l(39974),V=l(54360),$=l(89726),ie=l(61577),_e=l(10438),ye=l(67336),se=l(28203);const pe=(0,j.CZ)();function Ee(Pe){return new L(Pe.get(M.Xj),Pe.get(i.qQL))}class L{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(Ue,Qe){this._viewportRuler=Ue,this._document=Qe}attach(){}enable(){if(this._canBeEnabled()){const Ue=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=Ue.style.left||"",this._previousHTMLStyles.top=Ue.style.top||"",Ue.style.left=f(-this._previousScrollPosition.left),Ue.style.top=f(-this._previousScrollPosition.top),Ue.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const Ue=this._document.documentElement,Ie=Ue.style,le=this._document.body.style,Ne=Ie.scrollBehavior||"",ze=le.scrollBehavior||"";this._isEnabled=!1,Ie.left=this._previousHTMLStyles.left,Ie.top=this._previousHTMLStyles.top,Ue.classList.remove("cdk-global-scrollblock"),pe&&(Ie.scrollBehavior=le.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),pe&&(Ie.scrollBehavior=Ne,le.scrollBehavior=ze)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Qe=this._document.documentElement,Ie=this._viewportRuler.getViewportSize();return Qe.scrollHeight>Ie.height||Qe.scrollWidth>Ie.width}}class m{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._ngZone=Qe,this._viewportRuler=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}enable(){if(this._scrollSubscription)return;const Ue=this._scrollDispatcher.scrolled(0).pipe((0,Z.p)(Qe=>!Qe||!this._overlayRef.overlayElement.contains(Qe.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=Ue.subscribe(()=>{const Qe=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Qe-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=Ue.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}class _{enable(){}disable(){}attach(){}}function T(Pe,Ue){return Ue.some(Qe=>Pe.bottomQe.bottom||Pe.rightQe.right)}function P(Pe,Ue){return Ue.some(Qe=>Pe.topQe.bottom||Pe.leftQe.right)}function C(Pe,Ue){return new a(Pe.get(M.R),Pe.get(M.Xj),Pe.get(g.SKi),Ue)}class a{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(Ue,Qe,Ie,le){this._scrollDispatcher=Ue,this._viewportRuler=Qe,this._ngZone=Ie,this._config=le}attach(Ue){this._overlayRef=Ue}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Qe=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ie,height:le}=this._viewportRuler.getViewportSize();T(Qe,[{width:Ie,height:le,bottom:le,right:Ie,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let x=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}noop=()=>new _;close=Qe=>function s(Pe,Ue){return new m(Pe.get(M.R),Pe.get(g.SKi),Pe.get(M.Xj),Ue)}(this._injector,Qe);block=()=>Ee(this._injector);reposition=Qe=>C(this._injector,Qe);static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();class Y{positionStrategy;scrollStrategy=new _;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(Ue){if(Ue){const Qe=Object.keys(Ue);for(const Ie of Qe)void 0!==Ue[Ie]&&(this[Ie]=Ue[Ie])}}}class fe{connectionPair;scrollableViewProperties;constructor(Ue,Qe){this.connectionPair=Ue,this.scrollableViewProperties=Qe}}let Oe=(()=>{class Pe{_attachedOverlays=[];_document=(0,i.WQX)(i.qQL);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(Qe){this.remove(Qe),this._attachedOverlays.push(Qe)}remove(Qe){const Ie=this._attachedOverlays.indexOf(Qe);Ie>-1&&this._attachedOverlays.splice(Ie,1),0===this._attachedOverlays.length&&this.detach()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ge=(()=>{class Pe extends Oe{_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupKeydown;add(Qe){super.add(Qe),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=Qe=>{const Ie=this._attachedOverlays;for(let le=Ie.length-1;le>-1;le--)if(Ie[le]._keydownEvents.observers.length>0){this._ngZone.run(()=>Ie[le]._keydownEvents.next(Qe));break}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})(),ce=(()=>{class Pe extends Oe{_platform=(0,i.WQX)(o.O);_ngZone=(0,i.WQX)(g.SKi);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(Qe){if(super.add(Qe),!this._isAttached){const Ie=this._document.body,le={capture:!0},Ne=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[Ne.listen(Ie,"pointerdown",this._pointerDownListener,le),Ne.listen(Ie,"click",this._clickListener,le),Ne.listen(Ie,"auxclick",this._clickListener,le),Ne.listen(Ie,"contextmenu",this._clickListener,le)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ie.style.cursor,Ie.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(Qe=>Qe()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=Qe=>{this._pointerDownEventTarget=(0,e.Fb)(Qe)};_clickListener=Qe=>{const Ie=(0,e.Fb)(Qe),le="click"===Qe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ie;this._pointerDownEventTarget=null;const Ne=this._attachedOverlays.slice();for(let ze=Ne.length-1;ze>-1;ze--){const Je=Ne[ze];if(Je._outsidePointerEvents.observers.length<1||!Je.hasAttached())continue;if(Re(Je.overlayElement,Ie)||Re(Je.overlayElement,le))break;const gt=Je._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gt.next(Qe)):gt.next(Qe)}};static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=g.xGo(Pe)))(le||Pe)}})();static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Re(Pe,Ue){const Qe=typeof ShadowRoot<"u"&&ShadowRoot;let Ie=Ue;for(;Ie;){if(Ie===Pe)return!0;Ie=Qe&&Ie instanceof ShadowRoot?Ie.host:Ie.parentNode}return!1}let Me=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275cmp=g.VBU({type:Pe,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(Ie,le){},styles:[".cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}\n"],encapsulation:2,changeDetection:0})}return Pe})(),ve=(()=>{class Pe{_platform=(0,i.WQX)(o.O);_containerElement;_document=(0,i.WQX)(i.qQL);_styleLoader=(0,i.WQX)(h.l);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Qe="cdk-overlay-container";if(this._platform.isBrowser||A()){const le=this._document.querySelectorAll(`.${Qe}[platform="server"], .${Qe}[platform="test"]`);for(let Ne=0;Ne{const Ue=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(Ue,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),Ue.style.pointerEvents="none",Ue.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}}class Se{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new d.B;_attachments=new d.B;_detachments=new d.B;_positionStrategy;_scrollStrategy;_locationChanges=w.yU.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new d.B;_outsidePointerEvents=new d.B;_afterNextRenderRef;constructor(Ue,Qe,Ie,le,Ne,ze,Je,gt,zt,Ye=!1,st,it){this._portalOutlet=Ue,this._host=Qe,this._pane=Ie,this._config=le,this._ngZone=Ne,this._keyboardDispatcher=ze,this._document=Je,this._location=gt,this._outsideClickDispatcher=zt,this._animationsDisabled=Ye,this._injector=st,this._renderer=it,le.scrollStrategy&&(this._scrollStrategy=le.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=le.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(Ue){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Qe=this._portalOutlet.attach(Ue);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=(0,g.mal)(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Qe?.onDestroy&&Qe.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Qe}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const Ue=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),Ue}dispose(){const Ue=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,Ue&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(Ue){Ue!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=Ue,this.hasAttached()&&(Ue.attach(this),this.updatePosition()))}updateSize(Ue){this._config={...this._config,...Ue},this._updateElementSize()}setDirection(Ue){this._config={...this._config,direction:Ue},this._updateElementDirection()}addPanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!0)}removePanelClass(Ue){this._pane&&this._toggleClasses(this._pane,Ue,!1)}getDirection(){const Ue=this._config.direction;return Ue?"string"==typeof Ue?Ue:Ue.value:"ltr"}updateScrollStrategy(Ue){Ue!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=Ue,this.hasAttached()&&(Ue.attach(this),Ue.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const Ue=this._pane.style;Ue.width=f(this._config.width),Ue.height=f(this._config.height),Ue.minWidth=f(this._config.minWidth),Ue.minHeight=f(this._config.minHeight),Ue.maxWidth=f(this._config.maxWidth),Ue.maxHeight=f(this._config.maxHeight)}_togglePointerEvents(Ue){this._pane.style.pointerEvents=Ue?"":"none"}_attachBackdrop(){const Ue="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new oe(this._document,this._renderer,this._ngZone,Qe=>{this._backdropClick.next(Qe)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(Ue))}):this._backdropRef.element.classList.add(Ue)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(Ue,Qe,Ie){const le=(0,F.F)(Qe||[]).filter(Ne=>!!Ne);le.length&&(Ie?Ue.classList.add(...le):Ue.classList.remove(...le))}_detachContentWhenEmpty(){let Ue=!1;try{this._detachContentAfterRenderRef=(0,g.mal)(()=>{Ue=!0,this._detachContent()},{injector:this._injector})}catch(Qe){if(Ue)throw Qe;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){const Ue=this._scrollStrategy;Ue?.disable(),Ue?.detach?.()}}const be="cdk-overlay-connected-position-bounding-box",nt=/([A-Za-z%]+)$/;function $e(Pe,Ue){return new dt(Ue,Pe.get(M.Xj),Pe.get(i.qQL),Pe.get(o.O),Pe.get(ve))}class dt{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new d.B;_resizeSubscription=w.yU.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(Ue,Qe,Ie,le,Ne){this._viewportRuler=Qe,this._document=Ie,this._platform=le,this._overlayContainer=Ne,this.setOrigin(Ue)}attach(Ue){this._validatePositions(),Ue.hostElement.classList.add(be),this._overlayRef=Ue,this._boundingBox=Ue.hostElement,this._pane=Ue.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Ue=this._originRect,Qe=this._overlayRect,Ie=this._viewportRect,le=this._containerRect,Ne=[];let ze;for(let Je of this._preferredPositions){let gt=this._getOriginPoint(Ue,le,Je),zt=this._getOverlayPoint(gt,Qe,Je),Ye=this._getOverlayFit(zt,Qe,Ie,Je);if(Ye.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Je,gt);this._canFitWithFlexibleDimensions(Ye,zt,Ie)?Ne.push({position:Je,origin:gt,overlayRect:Qe,boundingBoxRect:this._calculateBoundingBoxRect(gt,Je)}):(!ze||ze.overlayFit.visibleAreagt&&(gt=Ye,Je=zt)}return this._isPushed=!1,void this._applyPosition(Je.position,Je.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ze.position,ze.originPoint);this._applyPosition(ze.position,ze.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&yt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const Ue=this._lastPosition;if(Ue){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Qe=this._getOriginPoint(this._originRect,this._containerRect,Ue);this._applyPosition(Ue,Qe)}else this.apply()}withScrollableContainers(Ue){return this._scrollables=Ue,this}withPositions(Ue){return this._preferredPositions=Ue,-1===Ue.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(Ue){return this._viewportMargin=Ue,this}withFlexibleDimensions(Ue=!0){return this._hasFlexibleDimensions=Ue,this}withGrowAfterOpen(Ue=!0){return this._growAfterOpen=Ue,this}withPush(Ue=!0){return this._canPush=Ue,this}withLockedPosition(Ue=!0){return this._positionLocked=Ue,this}setOrigin(Ue){return this._origin=Ue,this}withDefaultOffsetX(Ue){return this._offsetX=Ue,this}withDefaultOffsetY(Ue){return this._offsetY=Ue,this}withTransformOriginOn(Ue){return this._transformOriginSelector=Ue,this}_getOriginPoint(Ue,Qe,Ie){let le,Ne;if("center"==Ie.originX)le=Ue.left+Ue.width/2;else{const ze=this._isRtl()?Ue.right:Ue.left,Je=this._isRtl()?Ue.left:Ue.right;le="start"==Ie.originX?ze:Je}return Qe.left<0&&(le-=Qe.left),Ne="center"==Ie.originY?Ue.top+Ue.height/2:"top"==Ie.originY?Ue.top:Ue.bottom,Qe.top<0&&(Ne-=Qe.top),{x:le,y:Ne}}_getOverlayPoint(Ue,Qe,Ie){let le,Ne;return le="center"==Ie.overlayX?-Qe.width/2:"start"===Ie.overlayX?this._isRtl()?-Qe.width:0:this._isRtl()?0:-Qe.width,Ne="center"==Ie.overlayY?-Qe.height/2:"top"==Ie.overlayY?0:-Qe.height,{x:Ue.x+le,y:Ue.y+Ne}}_getOverlayFit(Ue,Qe,Ie,le){const Ne=rt(Qe);let{x:ze,y:Je}=Ue,gt=this._getOffset(le,"x"),zt=this._getOffset(le,"y");gt&&(ze+=gt),zt&&(Je+=zt);let it=0-Je,He=Je+Ne.height-Ie.height,Wt=this._subtractOverflows(Ne.width,0-ze,ze+Ne.width-Ie.width),we=this._subtractOverflows(Ne.height,it,He),We=Wt*we;return{visibleArea:We,isCompletelyWithinViewport:Ne.width*Ne.height===We,fitsInViewportVertically:we===Ne.height,fitsInViewportHorizontally:Wt==Ne.width}}_canFitWithFlexibleDimensions(Ue,Qe,Ie){if(this._hasFlexibleDimensions){const le=Ie.bottom-Qe.y,Ne=Ie.right-Qe.x,ze=Et(this._overlayRef.getConfig().minHeight),Je=Et(this._overlayRef.getConfig().minWidth);return(Ue.fitsInViewportVertically||null!=ze&&ze<=le)&&(Ue.fitsInViewportHorizontally||null!=Je&&Je<=Ne)}return!1}_pushOverlayOnScreen(Ue,Qe,Ie){if(this._previousPushAmount&&this._positionLocked)return{x:Ue.x+this._previousPushAmount.x,y:Ue.y+this._previousPushAmount.y};const le=rt(Qe),Ne=this._viewportRect,ze=Math.max(Ue.x+le.width-Ne.width,0),Je=Math.max(Ue.y+le.height-Ne.height,0),gt=Math.max(Ne.top-Ie.top-Ue.y,0),zt=Math.max(Ne.left-Ie.left-Ue.x,0);let Ye=0,st=0;return Ye=le.width<=Ne.width?zt||-ze:Ue.xWt&&!this._isInitialRender&&!this._growAfterOpen&&(ze=Ue.y-Wt/2)}if("end"===Qe.overlayX&&!le||"start"===Qe.overlayX&&le)it=Ie.width-Ue.x+2*this._viewportMargin,Ye=Ue.x-this._viewportMargin;else if("start"===Qe.overlayX&&!le||"end"===Qe.overlayX&&le)st=Ue.x,Ye=Ie.right-Ue.x;else{const He=Math.min(Ie.right-Ue.x+Ie.left,Ue.x),Wt=this._lastBoundingBoxSize.width;Ye=2*He,st=Ue.x-He,Ye>Wt&&!this._isInitialRender&&!this._growAfterOpen&&(st=Ue.x-Wt/2)}return{top:ze,left:st,bottom:Je,right:it,width:Ye,height:Ne}}_setBoundingBoxStyles(Ue,Qe){const Ie=this._calculateBoundingBoxRect(Ue,Qe);!this._isInitialRender&&!this._growAfterOpen&&(Ie.height=Math.min(Ie.height,this._lastBoundingBoxSize.height),Ie.width=Math.min(Ie.width,this._lastBoundingBoxSize.width));const le={};if(this._hasExactPosition())le.top=le.left="0",le.bottom=le.right=le.maxHeight=le.maxWidth="",le.width=le.height="100%";else{const Ne=this._overlayRef.getConfig().maxHeight,ze=this._overlayRef.getConfig().maxWidth;le.height=f(Ie.height),le.top=f(Ie.top),le.bottom=f(Ie.bottom),le.width=f(Ie.width),le.left=f(Ie.left),le.right=f(Ie.right),le.alignItems="center"===Qe.overlayX?"center":"end"===Qe.overlayX?"flex-end":"flex-start",le.justifyContent="center"===Qe.overlayY?"center":"bottom"===Qe.overlayY?"flex-end":"flex-start",Ne&&(le.maxHeight=f(Ne)),ze&&(le.maxWidth=f(ze))}this._lastBoundingBoxSize=Ie,yt(this._boundingBox.style,le)}_resetBoundingBoxStyles(){yt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){yt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(Ue,Qe){const Ie={},le=this._hasExactPosition(),Ne=this._hasFlexibleDimensions,ze=this._overlayRef.getConfig();if(le){const Ye=this._viewportRuler.getViewportScrollPosition();yt(Ie,this._getExactOverlayY(Qe,Ue,Ye)),yt(Ie,this._getExactOverlayX(Qe,Ue,Ye))}else Ie.position="static";let Je="",gt=this._getOffset(Qe,"x"),zt=this._getOffset(Qe,"y");gt&&(Je+=`translateX(${gt}px) `),zt&&(Je+=`translateY(${zt}px)`),Ie.transform=Je.trim(),ze.maxHeight&&(le?Ie.maxHeight=f(ze.maxHeight):Ne&&(Ie.maxHeight="")),ze.maxWidth&&(le?Ie.maxWidth=f(ze.maxWidth):Ne&&(Ie.maxWidth="")),yt(this._pane.style,Ie)}_getExactOverlayY(Ue,Qe,Ie){let le={top:"",bottom:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),"bottom"===Ue.overlayY?le.bottom=this._document.documentElement.clientHeight-(Ne.y+this._overlayRect.height)+"px":le.top=f(Ne.y),le}_getExactOverlayX(Ue,Qe,Ie){let ze,le={left:"",right:""},Ne=this._getOverlayPoint(Qe,this._overlayRect,Ue);return this._isPushed&&(Ne=this._pushOverlayOnScreen(Ne,this._overlayRect,Ie)),ze=this._isRtl()?"end"===Ue.overlayX?"left":"right":"end"===Ue.overlayX?"right":"left","right"===ze?le.right=this._document.documentElement.clientWidth-(Ne.x+this._overlayRect.width)+"px":le.left=f(Ne.x),le}_getScrollVisibility(){const Ue=this._getOriginRect(),Qe=this._pane.getBoundingClientRect(),Ie=this._scrollables.map(le=>le.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:P(Ue,Ie),isOriginOutsideView:T(Ue,Ie),isOverlayClipped:P(Qe,Ie),isOverlayOutsideView:T(Qe,Ie)}}_subtractOverflows(Ue,...Qe){return Qe.reduce((Ie,le)=>Ie-Math.max(le,0),Ue)}_getNarrowedViewportRect(){const Ue=this._document.documentElement.clientWidth,Qe=this._document.documentElement.clientHeight,Ie=this._viewportRuler.getViewportScrollPosition();return{top:Ie.top+this._viewportMargin,left:Ie.left+this._viewportMargin,right:Ie.left+Ue-this._viewportMargin,bottom:Ie.top+Qe-this._viewportMargin,width:Ue-2*this._viewportMargin,height:Qe-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(Ue,Qe){return"x"===Qe?null==Ue.offsetX?this._offsetX:Ue.offsetX:null==Ue.offsetY?this._offsetY:Ue.offsetY}_validatePositions(){}_addPanelClasses(Ue){this._pane&&(0,F.F)(Ue).forEach(Qe=>{""!==Qe&&-1===this._appliedPanelClasses.indexOf(Qe)&&(this._appliedPanelClasses.push(Qe),this._pane.classList.add(Qe))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(Ue=>{this._pane.classList.remove(Ue)}),this._appliedPanelClasses=[])}_getOriginRect(){const Ue=this._origin;if(Ue instanceof g.aKT)return Ue.nativeElement.getBoundingClientRect();if(Ue instanceof Element)return Ue.getBoundingClientRect();const Qe=Ue.width||0,Ie=Ue.height||0;return{top:Ue.y,bottom:Ue.y+Ie,left:Ue.x,right:Ue.x+Qe,height:Ie,width:Qe}}}function yt(Pe,Ue){for(let Qe in Ue)Ue.hasOwnProperty(Qe)&&(Pe[Qe]=Ue[Qe]);return Pe}function Et(Pe){if("number"!=typeof Pe&&null!=Pe){const[Ue,Qe]=Pe.split(nt);return Qe&&"px"!==Qe?null:parseFloat(Ue)}return Pe||null}function rt(Pe){return{top:Math.floor(Pe.top),right:Math.floor(Pe.right),bottom:Math.floor(Pe.bottom),left:Math.floor(Pe.left),width:Math.floor(Pe.width),height:Math.floor(Pe.height)}}const Xt="cdk-global-overlay-wrapper";function de(Pe){return new ae}class ae{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(Ue){const Qe=Ue.getConfig();this._overlayRef=Ue,this._width&&!Qe.width&&Ue.updateSize({width:this._width}),this._height&&!Qe.height&&Ue.updateSize({height:this._height}),Ue.hostElement.classList.add(Xt),this._isDisposed=!1}top(Ue=""){return this._bottomOffset="",this._topOffset=Ue,this._alignItems="flex-start",this}left(Ue=""){return this._xOffset=Ue,this._xPosition="left",this}bottom(Ue=""){return this._topOffset="",this._bottomOffset=Ue,this._alignItems="flex-end",this}right(Ue=""){return this._xOffset=Ue,this._xPosition="right",this}start(Ue=""){return this._xOffset=Ue,this._xPosition="start",this}end(Ue=""){return this._xOffset=Ue,this._xPosition="end",this}width(Ue=""){return this._overlayRef?this._overlayRef.updateSize({width:Ue}):this._width=Ue,this}height(Ue=""){return this._overlayRef?this._overlayRef.updateSize({height:Ue}):this._height=Ue,this}centerHorizontally(Ue=""){return this.left(Ue),this._xPosition="center",this}centerVertically(Ue=""){return this.top(Ue),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement.style,Ie=this._overlayRef.getConfig(),{width:le,height:Ne,maxWidth:ze,maxHeight:Je}=Ie,gt=!("100%"!==le&&"100vw"!==le||ze&&"100%"!==ze&&"100vw"!==ze),zt=!("100%"!==Ne&&"100vh"!==Ne||Je&&"100%"!==Je&&"100vh"!==Je),Ye=this._xPosition,st=this._xOffset,it="rtl"===this._overlayRef.getConfig().direction;let He="",Wt="",we="";gt?we="flex-start":"center"===Ye?(we="center",it?Wt=st:He=st):it?"left"===Ye||"end"===Ye?(we="flex-end",He=st):("right"===Ye||"start"===Ye)&&(we="flex-start",Wt=st):"left"===Ye||"start"===Ye?(we="flex-start",He=st):("right"===Ye||"end"===Ye)&&(we="flex-end",Wt=st),Ue.position=this._cssPosition,Ue.marginLeft=gt?"0":He,Ue.marginTop=zt?"0":this._topOffset,Ue.marginBottom=this._bottomOffset,Ue.marginRight=gt?"0":Wt,Qe.justifyContent=we,Qe.alignItems=zt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const Ue=this._overlayRef.overlayElement.style,Qe=this._overlayRef.hostElement,Ie=Qe.style;Qe.classList.remove(Xt),Ie.justifyContent=Ie.alignItems=Ue.marginTop=Ue.marginBottom=Ue.marginLeft=Ue.marginRight=Ue.position="",this._overlayRef=null,this._isDisposed=!0}}let me=(()=>{class Pe{_injector=(0,i.WQX)(i.zZn);constructor(){}global(){return de()}flexibleConnectedTo(Qe){return $e(this._injector,Qe)}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();function Le(Pe,Ue){Pe.get(h.l).load(Me);const Qe=Pe.get(ve),Ie=Pe.get(i.qQL),le=Pe.get($.g),Ne=Pe.get(g.o8S),ze=Pe.get(ie.dS),Je=Ie.createElement("div"),gt=Ie.createElement("div");gt.id=le.getId("cdk-overlay-"),gt.classList.add("cdk-overlay-pane"),Je.appendChild(gt),Qe.getContainerElement().appendChild(Je);const zt=new K.aI(gt,Ne,Pe),Ye=new Y(Ue),st=Pe.get(g.sFG,null,{optional:!0})||Pe.get(g._9s).createRenderer(null,null);return Ye.direction=Ye.direction||ze.value,new Se(zt,Je,gt,Ye,Pe.get(g.SKi),Pe.get(ge),Ie,Pe.get(D.aZ),Pe.get(ce),Ue?.disableAnimations??"NoopAnimations"===Pe.get(g.bc$,null,{optional:!0}),Pe.get(i.uvJ),st)}let et=(()=>{class Pe{scrollStrategies=(0,i.WQX)(x);_positionBuilder=(0,i.WQX)(me);_injector=(0,i.WQX)(i.zZn);constructor(){}create(Qe){return Le(this._injector,Qe)}position(){return this._positionBuilder}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275prov=i.jDH({token:Pe,factory:Pe.\u0275fac,providedIn:"root"})}return Pe})();const tn=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Vt=new i.nKC("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const Pe=(0,i.WQX)(i.zZn);return()=>C(Pe)}});let hn=(()=>{class Pe{elementRef=(0,i.WQX)(g.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return Pe})(),En=(()=>{class Pe{_dir=(0,i.WQX)(ie.dS,{optional:!0});_injector=(0,i.WQX)(i.zZn);_overlayRef;_templatePortal;_backdropSubscription=w.yU.EMPTY;_attachSubscription=w.yU.EMPTY;_detachSubscription=w.yU.EMPTY;_positionSubscription=w.yU.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=(0,i.WQX)(Vt);_disposeOnNavigation=!1;_ngZone=(0,i.WQX)(g.SKi);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(Qe){this._offsetX=Qe,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(Qe){this._offsetY=Qe,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(Qe){this._disposeOnNavigation=Qe}backdropClick=new g.bkB;positionChange=new g.bkB;attach=new g.bkB;detach=new g.bkB;overlayKeydown=new g.bkB;overlayOutsideClick=new g.bkB;constructor(){const Qe=(0,i.WQX)(g.C4Q),Ie=(0,i.WQX)(g.c1b);this._templatePortal=new K.VA(Qe,Ie),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(Qe){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),Qe.origin&&this.open&&this._position.apply()),Qe.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=tn);const Qe=this._overlayRef=Le(this._injector,this._buildConfig());this._attachSubscription=Qe.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=Qe.detachments().subscribe(()=>this.detach.emit()),Qe.keydownEvents().subscribe(Ie=>{this.overlayKeydown.next(Ie),Ie.keyCode===_e._f&&!this.disableClose&&!(0,ye.rp)(Ie)&&(Ie.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ie=>{const le=this._getOriginElement(),Ne=(0,e.Fb)(Ie);(!le||le!==Ne&&!le.contains(Ne))&&this.overlayOutsideClick.next(Ie)})}_buildConfig(){const Qe=this._position=this.positionStrategy||this._createPositionStrategy(),Ie=new Y({direction:this._dir||"ltr",positionStrategy:Qe,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||0===this.width)&&(Ie.width=this.width),(this.height||0===this.height)&&(Ie.height=this.height),(this.minWidth||0===this.minWidth)&&(Ie.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ie.minHeight=this.minHeight),this.backdropClass&&(Ie.backdropClass=this.backdropClass),this.panelClass&&(Ie.panelClass=this.panelClass),Ie}_updatePositionStrategy(Qe){const Ie=this.positions.map(le=>({originX:le.originX,originY:le.originY,overlayX:le.overlayX,overlayY:le.overlayY,offsetX:le.offsetX||this.offsetX,offsetY:le.offsetY||this.offsetY,panelClass:le.panelClass||void 0}));return Qe.setOrigin(this._getOrigin()).withPositions(Ie).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const Qe=$e(this._injector,this._getOrigin());return this._updatePositionStrategy(Qe),Qe}_getOrigin(){return this.origin instanceof hn?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof hn?this.origin.elementRef.nativeElement:this.origin instanceof g.aKT?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(Qe=>{this.backdropClick.emit(Qe)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function Q(Pe,Ue=!1){return(0,ee.N)((Qe,Ie)=>{let le=0;Qe.subscribe((0,V._)(Ie,Ne=>{const ze=Pe(Ne,le++);(ze||Ue)&&Ie.next(Ne),!ze&&Ie.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(Qe=>{this._ngZone.run(()=>this.positionChange.emit(Qe)),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=g.FsC({type:Pe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",p.L39],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",p.L39],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",p.L39],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",p.L39],push:[2,"cdkConnectedOverlayPush","push",p.L39],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",p.L39]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[g.OA$]})}return Pe})();const tt={provide:Vt,useFactory:function _n(Pe){const Ue=(0,i.WQX)(i.zZn);return()=>C(Ue)}};let Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=g.$C({type:Pe});static \u0275inj=i.G2t({providers:[et,tt],imports:[se.jI,K.jc,M.E9,M.E9]})}return Pe})()},83300(ke,q,l){"use strict";let i;function p(D){return function g(){if(null==i&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>i=!0}))}finally{i=i||!1}return i}()?D:!!D.capture}l.d(q,{B:()=>p})},39842(ke,q,l){"use strict";l.d(q,{O:()=>o});var i=l(2615),g=l(73664),p=l(60177);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let o=(()=>{class e{_platformId=(0,i.WQX)(g.Agw);isBrowser=this._platformId?(0,p.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!D)&&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(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},76939(ke,q,l){"use strict";l.d(q,{A8:()=>F,I3:()=>Q,VA:()=>M,aI:()=>Z,bV:()=>ee,jc:()=>ie,lb:()=>j});var g=l(2615),p=l(73664),D=l(17705);class f{_attachedHost;attach(ye){return this._attachedHost=ye,ye.attach(this)}detach(){let ye=this._attachedHost;null!=ye&&(this._attachedHost=null,ye.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ye){this._attachedHost=ye}}class F extends f{component;viewContainerRef;injector;projectableNodes;constructor(ye,se,pe,Ee){super(),this.component=ye,this.viewContainerRef=se,this.injector=pe,this.projectableNodes=Ee}}class M extends f{templateRef;viewContainerRef;context;injector;constructor(ye,se,pe,Ee){super(),this.templateRef=ye,this.viewContainerRef=se,this.context=pe,this.injector=Ee}get origin(){return this.templateRef.elementRef}attach(ye,se=this.context){return this.context=se,super.attach(ye)}detach(){return this.context=void 0,super.detach()}}class K extends f{element;constructor(ye){super(),this.element=ye instanceof p.aKT?ye.nativeElement:ye}}class j{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(ye){return ye instanceof F?(this._attachedPortal=ye,this.attachComponentPortal(ye)):ye instanceof M?(this._attachedPortal=ye,this.attachTemplatePortal(ye)):this.attachDomPortal&&ye instanceof K?(this._attachedPortal=ye,this.attachDomPortal(ye)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ye){this._disposeFn=ye}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Z extends j{outletElement;_appRef;_defaultInjector;constructor(ye,se,pe){super(),this.outletElement=ye,this._appRef=se,this._defaultInjector=pe}attachComponentPortal(ye){let se;if(ye.viewContainerRef){const pe=ye.injector||ye.viewContainerRef.injector,Ee=pe.get(p.Ab1,null,{optional:!0})||void 0;se=ye.viewContainerRef.createComponent(ye.component,{index:ye.viewContainerRef.length,injector:pe,ngModuleRef:Ee,projectableNodes:ye.projectableNodes||void 0}),this.setDisposeFn(()=>se.destroy())}else{const pe=this._appRef,Ee=ye.injector||this._defaultInjector||g.zZn.NULL,L=Ee.get(g.uvJ,pe.injector);se=(0,D.a0P)(ye.component,{elementInjector:Ee,environmentInjector:L,projectableNodes:ye.projectableNodes||void 0}),pe.attachView(se.hostView),this.setDisposeFn(()=>{pe.viewCount>0&&pe.detachView(se.hostView),se.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(se)),this._attachedPortal=ye,se}attachTemplatePortal(ye){let se=ye.viewContainerRef,pe=se.createEmbeddedView(ye.templateRef,ye.context,{injector:ye.injector});return pe.rootNodes.forEach(Ee=>this.outletElement.appendChild(Ee)),pe.detectChanges(),this.setDisposeFn(()=>{let Ee=se.indexOf(pe);-1!==Ee&&se.remove(Ee)}),this._attachedPortal=ye,pe}attachDomPortal=ye=>{const se=ye.element,pe=this.outletElement.ownerDocument.createComment("dom-portal");se.parentNode.insertBefore(pe,se),this.outletElement.appendChild(se),this._attachedPortal=ye,super.setDisposeFn(()=>{pe.parentNode&&pe.parentNode.replaceChild(se,pe)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ye){return ye.hostView.rootNodes[0]}}let ee=(()=>{class _e extends M{constructor(){super((0,g.WQX)(p.C4Q),(0,g.WQX)(p.c1b))}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[p.Vt3]})}return _e})(),Q=(()=>{class _e extends j{_moduleRef=(0,g.WQX)(p.Ab1,{optional:!0});_document=(0,g.WQX)(g.qQL);_viewContainerRef=(0,g.WQX)(p.c1b);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(se){this.hasAttached()&&!se&&!this._isInitialized||(this.hasAttached()&&super.detach(),se&&super.attach(se),this._attachedPortal=se||null)}attached=new p.bkB;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(se){se.setAttachedHost(this);const pe=null!=se.viewContainerRef?se.viewContainerRef:this._viewContainerRef,Ee=pe.createComponent(se.component,{index:pe.length,injector:se.injector||pe.injector,projectableNodes:se.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return pe!==this._viewContainerRef&&this._getRootNode().appendChild(Ee.hostView.rootNodes[0]),super.setDisposeFn(()=>Ee.destroy()),this._attachedPortal=se,this._attachedRef=Ee,this.attached.emit(Ee),Ee}attachTemplatePortal(se){se.setAttachedHost(this);const pe=this._viewContainerRef.createEmbeddedView(se.templateRef,se.context,{injector:se.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=se,this._attachedRef=pe,this.attached.emit(pe),pe}attachDomPortal=se=>{const pe=se.element,Ee=this._document.createComment("dom-portal");se.setAttachedHost(this),pe.parentNode.insertBefore(Ee,pe),this._getRootNode().appendChild(pe),this._attachedPortal=se,super.setDisposeFn(()=>{Ee.parentNode&&Ee.parentNode.replaceChild(pe,Ee)})};_getRootNode(){const se=this._viewContainerRef.element.nativeElement;return se.nodeType===se.ELEMENT_NODE?se:se.parentNode}static \u0275fac=function(pe){return new(pe||_e)};static \u0275dir=p.FsC({type:_e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[p.Vt3]})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({})}return _e})()},49046(ke,q,l){"use strict";l.d(q,{Y:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(e,A){},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}\n"],encapsulation:2,changeDetection:0})}return p})()},5718(ke,q,l){"use strict";l.d(q,{uv:()=>Ne,Gj:()=>Lt,R:()=>le,E9:()=>St,Xj:()=>Je});var i=l(2615),g=l(73664),p=l(21413),D=l(7673),o=l(71985),e=l(96780),A=l(18359);const h={schedule(At){let fn=requestAnimationFrame,mt=cancelAnimationFrame;const{delegate:It}=h;It&&(fn=It.requestAnimationFrame,mt=It.cancelAnimationFrame);const wn=fn(In=>{mt=void 0,At(In)});return new A.yU(()=>mt?.(wn))},requestAnimationFrame(...At){const{delegate:fn}=h;return(fn?.requestAnimationFrame||requestAnimationFrame)(...At)},cancelAnimationFrame(...At){const{delegate:fn}=h;return(fn?.cancelAnimationFrame||cancelAnimationFrame)(...At)},delegate:void 0};var w=l(39687);new class f extends w.q{flush(fn){let mt;this._active=!0,fn?mt=fn.id:(mt=this._scheduled,this._scheduled=void 0);const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class d extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=h.requestAnimationFrame(()=>fn.flush(void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&mt===fn._scheduled&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(h.cancelAnimationFrame(mt),fn._scheduled=void 0)}});let j,K=1;const Z={};function ee(At){return At in Z&&(delete Z[At],!0)}const V={setImmediate(At){const fn=K++;return Z[fn]=!0,j||(j=Promise.resolve()),j.then(()=>ee(fn)&&At()),fn},clearImmediate(At){ee(At)}},{setImmediate:$,clearImmediate:ie}=V,_e={setImmediate(...At){const{delegate:fn}=_e;return(fn?.setImmediate||$)(...At)},clearImmediate(At){const{delegate:fn}=_e;return(fn?.clearImmediate||ie)(At)},delegate:void 0};new class se extends w.q{flush(fn){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:It}=this;let wn;fn=fn||It.shift();do{if(wn=fn.execute(fn.state,fn.delay))break}while((fn=It[0])&&fn.id===mt&&It.shift());if(this._active=!1,wn){for(;(fn=It[0])&&fn.id===mt&&It.shift();)fn.unsubscribe();throw wn}}}(class ye extends e.R{constructor(fn,mt){super(fn,mt),this.scheduler=fn,this.work=mt}requestAsyncId(fn,mt,It=0){return null!==It&&It>0?super.requestAsyncId(fn,mt,It):(fn.actions.push(this),fn._scheduled||(fn._scheduled=_e.setImmediate(fn.flush.bind(fn,void 0))))}recycleAsyncId(fn,mt,It=0){var wn;if(null!=It?It>0:this.delay>0)return super.recycleAsyncId(fn,mt,It);const{actions:In}=fn;null!=mt&&(null===(wn=In[In.length-1])||void 0===wn?void 0:wn.id)!==mt&&(_e.clearImmediate(mt),fn._scheduled===mt&&(fn._scheduled=void 0))}});var L=l(13798),t=l(5964),s=l(67847),m=l(39842),u=l(61577),_=l(47860),T=l(28203);let le=(()=>{class At{_ngZone=(0,i.WQX)(g.SKi);_platform=(0,i.WQX)(m.O);_renderer=(0,i.WQX)(g._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new p.B;_scrolledCount=0;scrollContainers=new Map;register(mt){this.scrollContainers.has(mt)||this.scrollContainers.set(mt,mt.elementScrolled().subscribe(()=>this._scrolled.next(mt)))}deregister(mt){const It=this.scrollContainers.get(mt);It&&(It.unsubscribe(),this.scrollContainers.delete(mt))}scrolled(mt=20){return this._platform.isBrowser?new o.c(It=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const wn=mt>0?this._scrolled.pipe((0,L.Z)(mt)).subscribe(It):this._scrolled.subscribe(It);return this._scrolledCount++,()=>{wn.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,D.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((mt,It)=>this.deregister(It)),this._scrolled.complete()}ancestorScrolled(mt,It){const wn=this.getAncestorScrollContainers(mt);return this.scrolled(It).pipe((0,t.p)(In=>!In||wn.indexOf(In)>-1))}getAncestorScrollContainers(mt){const It=[];return this.scrollContainers.forEach((wn,In)=>{this._scrollableContainsElement(In,mt)&&It.push(In)}),It}_scrollableContainsElement(mt,It){let wn=(0,s.i8)(It),In=mt.getElementRef().nativeElement;do{if(wn==In)return!0}while(wn=wn.parentElement);return!1}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Ne=(()=>{class At{elementRef=(0,i.WQX)(g.aKT);scrollDispatcher=(0,i.WQX)(le);ngZone=(0,i.WQX)(g.SKi);dir=(0,i.WQX)(u.dS,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new p.B;_renderer=(0,i.WQX)(g.sFG);_cleanupScroll;_elementScrolled=new p.B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",mt=>this._elementScrolled.next(mt))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(mt){const It=this.elementRef.nativeElement,wn=this.dir&&"rtl"==this.dir.value;null==mt.left&&(mt.left=wn?mt.end:mt.start),null==mt.right&&(mt.right=wn?mt.start:mt.end),null!=mt.bottom&&(mt.top=It.scrollHeight-It.clientHeight-mt.bottom),wn&&(0,_.BD)()!=_.r5.NORMAL?(null!=mt.left&&(mt.right=It.scrollWidth-It.clientWidth-mt.left),(0,_.BD)()==_.r5.INVERTED?mt.left=mt.right:(0,_.BD)()==_.r5.NEGATED&&(mt.left=mt.right?-mt.right:mt.right)):null!=mt.right&&(mt.left=It.scrollWidth-It.clientWidth-mt.right),this._applyScrollToOptions(mt)}_applyScrollToOptions(mt){const It=this.elementRef.nativeElement;(0,_.CZ)()?It.scrollTo(mt):(null!=mt.top&&(It.scrollTop=mt.top),null!=mt.left&&(It.scrollLeft=mt.left))}measureScrollOffset(mt){const It="left",In=this.elementRef.nativeElement;if("top"==mt)return In.scrollTop;if("bottom"==mt)return In.scrollHeight-In.clientHeight-In.scrollTop;const ei=this.dir&&"rtl"==this.dir.value;return"start"==mt?mt=ei?"right":It:"end"==mt&&(mt=ei?It:"right"),ei&&(0,_.BD)()==_.r5.INVERTED?mt==It?In.scrollWidth-In.clientWidth-In.scrollLeft:In.scrollLeft:ei&&(0,_.BD)()==_.r5.NEGATED?mt==It?In.scrollLeft+In.scrollWidth-In.clientWidth:-In.scrollLeft:mt==It?In.scrollLeft:In.scrollWidth-In.clientWidth-In.scrollLeft}static \u0275fac=function(It){return new(It||At)};static \u0275dir=g.FsC({type:At,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return At})(),Je=(()=>{class At{_platform=(0,i.WQX)(m.O);_listeners;_viewportSize;_change=new p.B;_document=(0,i.WQX)(i.qQL);constructor(){const mt=(0,i.WQX)(g.SKi),It=(0,i.WQX)(g._9s).createRenderer(null,null);mt.runOutsideAngular(()=>{if(this._platform.isBrowser){const wn=In=>this._change.next(In);this._listeners=[It.listen("window","resize",wn),It.listen("window","orientationchange",wn)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(mt=>mt()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const mt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),mt}getViewportRect(){const mt=this.getViewportScrollPosition(),{width:It,height:wn}=this.getViewportSize();return{top:mt.top,left:mt.left,bottom:mt.top+wn,right:mt.left+It,height:wn,width:It}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const mt=this._document,It=this._getWindow(),wn=mt.documentElement,In=wn.getBoundingClientRect();return{top:-In.top||mt.body.scrollTop||It.scrollY||wn.scrollTop||0,left:-In.left||mt.body.scrollLeft||It.scrollX||wn.scrollLeft||0}}change(mt=20){return mt>0?this._change.pipe((0,L.Z)(mt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const mt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:mt.innerWidth,height:mt.innerHeight}:{width:0,height:0}}static \u0275fac=function(It){return new(It||At)};static \u0275prov=i.jDH({token:At,factory:At.\u0275fac,providedIn:"root"})}return At})(),Lt=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({})}return At})(),St=(()=>{class At{static \u0275fac=function(It){return new(It||At)};static \u0275mod=g.$C({type:At});static \u0275inj=i.G2t({imports:[T.jI,Lt,T.jI,Lt]})}return At})()},47860(ke,q,l){"use strict";l.d(q,{BD:()=>o,CZ:()=>D,r5:()=>i});var i=function(e){return e[e.NORMAL=0]="NORMAL",e[e.NEGATED=1]="NEGATED",e[e.INVERTED=2]="INVERTED",e}(i||{});let g,p;function D(){if(null==p){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return p=!1,p;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)p=!0;else{const e=Element.prototype.scrollTo;p=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return p}function o(){if("object"!=typeof document||!document)return i.NORMAL;if(null==g){const e=document.createElement("div"),A=e.style;e.dir="rtl",A.width="1px",A.overflow="auto",A.visibility="hidden",A.pointerEvents="none",A.position="absolute";const h=document.createElement("div"),d=h.style;d.width="2px",d.height="1px",e.appendChild(h),document.body.appendChild(e),g=i.NORMAL,0===e.scrollLeft&&(e.scrollLeft=1,g=0===e.scrollLeft?i.NEGATED:i.INVERTED),e.remove()}return g}},83869(ke,q,l){"use strict";l.d(q,{C:()=>g});var i=l(21413);class g{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new i.B;constructor(o=!1,e,A=!0,h){this._multiple=o,this._emitChanges=A,this.compareWith=h,e&&e.length&&(o?e.forEach(d=>this._markSelected(d)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(A=>this._markSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(A=>this._unmarkSelected(A));const e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);const e=this.selected,A=new Set(o.map(d=>this._getConcreteValue(d)));o.forEach(d=>this._markSelected(d)),e.filter(d=>!A.has(this._getConcreteValue(d,A))).forEach(d=>this._unmarkSelected(d));const h=this._hasQueuedChanges();return this._emitChangeEvent(),h}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();const e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let A of e)if(this.compareWith(o,A))return A;return o}return o}}},44522(ke,q,l){"use strict";let i;function p(e){if(function g(){if(null==i){const e=typeof document<"u"?document.head:null;i=!(!e||!e.createShadowRoot&&!e.attachShadow)}return i}()){const A=e.getRootNode?e.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&A instanceof ShadowRoot)return A}return null}function D(){let e=typeof document<"u"&&document?document.activeElement:null;for(;e&&e.shadowRoot;){const A=e.shadowRoot.activeElement;if(A===e)break;e=A}return e}function o(e){return e.composedPath?e.composedPath()[0]:e.target}l.d(q,{Fb:()=>o,KT:()=>p,vc:()=>D})},97768(ke,q,l){"use strict";l.d(q,{FK:()=>L,Up:()=>pe,VI:()=>se,nb:()=>$,oX:()=>Q,uY:()=>t,v5:()=>Ee,x8:()=>ye});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(89417),e=l(21413),A=l(7673),h=l(99172),d=l(56977),w=l(61577),f=l(89726),F=l(64123),M=l(67336),K=l(10438),j=l(44522),Z=l(28203);const ee=["*"];function V(s,m){1&s&&g.SdG(0)}let Q=(()=>{class s{_elementRef=(0,i.WQX)(g.aKT);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return s})(),$=(()=>{class s{template=(0,i.WQX)(g.C4Q);constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["","cdkStepLabel",""]]})}return s})();const ye=new i.nKC("STEPPER_GLOBAL_OPTIONS");let se=(()=>{class s{_stepperOptions;_stepper=(0,i.WQX)(pe);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(u){this._interacted.set(u)}_interacted=(0,i.vPA)(!1);interactedStream=new g.bkB;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(u){this._state.set(u)}_state=(0,i.vPA)(void 0);get editable(){return this._editable()}set editable(u){this._editable.set(u)}_editable=(0,i.vPA)(!0);optional=!1;get completed(){const u=this._completedOverride(),_=this._interacted();return u??(_&&(!this.stepControl||this.stepControl.valid))}set completed(u){this._completedOverride.set(u)}_completedOverride=(0,i.vPA)(null);index=(0,i.vPA)(-1);isSelected=(0,D.EW)(()=>this._stepper.selectedIndex===this.index());indicatorType=(0,D.EW)(()=>{const u=this.isSelected(),_=this.completed,T=this._state()??"number",P=this._editable();return this._showError()&&this.hasError&&!u?"error":this._displayDefaultIndicatorType?!_||u?"number":P?"edit":"done":_&&!u?"done":_&&u?T:P&&u?"edit":T});isNavigable=(0,D.EW)(()=>{const u=this.isSelected();return this.completed||u||!this._stepper.linear});get hasError(){return this._customError()??this._getDefaultError()}set hasError(u){this._customError.set(u)}_customError=(0,i.vPA)(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){const u=(0,i.WQX)(ye,{optional:!0});this._stepperOptions=u||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),null!=this._completedOverride()&&this._completedOverride.set(!1),null!=this._customError()&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(u=>u.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError()}static \u0275fac=function(_){return new(_||s)};static \u0275cmp=g.VBU({type:s,selectors:[["cdk-step"]],contentQueries:function(_,T,P){if(1&_&&(g.wni(P,$,5),g.wni(P,o.ZU,5)),2&_){let C;g.mGM(C=g.lsd())&&(T.stepLabel=C.first),g.mGM(C=g.lsd())&&(T._childForms=C)}},viewQuery:function(_,T){if(1&_&&g.GBs(g.C4Q,7),2&_){let P;g.mGM(P=g.lsd())&&(T.content=P.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",p.L39],optional:[2,"optional","optional",p.L39],completed:[2,"completed","completed",p.L39],hasError:[2,"hasError","hasError",p.L39]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[g.OA$],ngContentSelectors:ee,decls:1,vars:0,template:function(_,T){1&_&&(g.NAR(),g.PeT(0,V,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return s})(),pe=(()=>{class s{_dir=(0,i.WQX)(w.dS,{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_elementRef=(0,i.WQX)(g.aKT);_destroyed=new e.B;_keyManager;_steps;steps=new g.rOR;_stepHeader;_sortedHeaders=new g.rOR;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(u){this._steps?(this._isValidIndex(u),this.selectedIndex!==u&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(u)&&(u>=this.selectedIndex||this.steps.toArray()[u].editable)&&this._updateSelectedItemIndex(u))):this._selectedIndex.set(u)}_selectedIndex=(0,i.vPA)(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(u){this.selectedIndex=u&&this.steps?this.steps.toArray().indexOf(u):-1}selectionChange=new g.bkB;selectedIndexChange=new g.bkB;_groupId=(0,i.WQX)(f.g).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(u){this._orientation=u,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===u)}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe((0,h.Z)(this._steps),(0,d.Q)(this._destroyed)).subscribe(u=>{this.steps.reset(u.filter(_=>_._stepper===this)),this.steps.forEach((_,T)=>_.index.set(T)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe((0,h.Z)(this._stepHeader),(0,d.Q)(this._destroyed)).subscribe(u=>{this._sortedHeaders.reset(u.toArray().sort((_,T)=>_._elementRef.nativeElement.compareDocumentPosition(T._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new F.B(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:(0,A.of)()).pipe((0,h.Z)(this._layoutDirection()),(0,d.Q)(this._destroyed)).subscribe(u=>this._keyManager?.withHorizontalOrientation(u)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){const u=this.steps.toArray().slice(0,this._selectedIndex());for(const _ of u)_._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(u=>u.reset()),this._stateChanged()}_getStepLabelId(u){return`${this._groupId}-label-${u}`}_getStepContentId(u){return`${this._groupId}-content-${u}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(u){const _=u-this._selectedIndex();return _<0?"rtl"===this._layoutDirection()?"next":"previous":_>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(u){const _=this.steps.toArray(),T=this._selectedIndex();this.selectionChange.emit({selectedIndex:u,previouslySelectedIndex:T,selectedStep:_[u],previouslySelectedStep:_[T]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(u):this._keyManager.updateActiveItem(u)),this._selectedIndex.set(u),this.selectedIndexChange.emit(u),this._stateChanged()}_onKeydown(u){const _=(0,M.rp)(u),T=u.keyCode,P=this._keyManager;null==P?.activeItemIndex||_||T!==K.t6&&T!==K.Fm?P?.setFocusOrigin("keyboard").onKeydown(u):(this.selectedIndex=P.activeItemIndex,u.preventDefault())}_anyControlsInvalidOrPending(u){return!!(this.linear&&u>=0)&&this.steps.toArray().slice(0,u).some(_=>{const T=_.stepControl;return(T?T.invalid||T.pending||!_.interacted:!_.completed)&&!_.optional&&!_._completedOverride()})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const u=this._elementRef.nativeElement,_=(0,j.vc)();return u===_||u.contains(_)}_isValidIndex(u){return u>-1&&(!this.steps||u{class s{_stepper=(0,i.WQX)(pe);type="submit";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.next()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),L=(()=>{class s{_stepper=(0,i.WQX)(pe);type="button";constructor(){}static \u0275fac=function(_){return new(_||s)};static \u0275dir=g.FsC({type:s,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(_,T){1&_&&g.bIt("click",function(){return T._stepper.previous()}),2&_&&g.Avn("type",T.type)},inputs:{type:"type"}})}return s})(),t=(()=>{class s{static \u0275fac=function(_){return new(_||s)};static \u0275mod=g.$C({type:s});static \u0275inj=i.G2t({imports:[Z.jI]})}return s})()},88968(ke,q,l){"use strict";l.d(q,{l:()=>o});var i=l(2615),g=l(17705),p=l(73664);const D=new WeakMap;let o=(()=>{class e{_appRef;_injector=(0,i.WQX)(i.zZn);_environmentInjector=(0,i.WQX)(i.uvJ);load(h){const d=this._appRef=this._appRef||this._injector.get(p.o8S);let w=D.get(d);w||(w={loaders:new Set,refs:[]},D.set(d,w),d.onDestroy(()=>{D.get(d)?.refs.forEach(f=>f.destroy()),D.delete(d)})),w.loaders.has(h)||(w.loaders.add(h),w.refs.push((0,g.a0P)(h,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(d){return new(d||e)};static \u0275prov=i.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})()},4125(ke,q,l){"use strict";l.d(q,{Z2:()=>F});var i=l(2615),g=l(73664),p=l(21413),D=l(18359),o=l(74402),e=l(7673),A=l(96697),h=l(59096),d=l(8045);class w{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=j=>!1;_trackByFn=j=>j;_items=[];_typeahead;_typeaheadSubscription=D.yU.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||0===this._items.length)return;let j=0;for(let ee=0;ee{this._items=ee.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):(0,o.A)(j)?j.subscribe(ee=>{this._items=ee,this._typeahead?.setItems(ee),this._updateActiveItemIndex(ee),this._initializeFocus()}):(this._items=j,this._initializeFocus()),"boolean"==typeof Z.shouldActivationFollowFocus&&(this._shouldActivationFollowFocus=Z.shouldActivationFollowFocus),Z.horizontalOrientation&&(this._horizontalOrientation=Z.horizontalOrientation),Z.skipPredicate&&(this._skipPredicateFn=Z.skipPredicate),Z.trackBy&&(this._trackByFn=Z.trackBy),typeof Z.typeAheadDebounceInterval<"u"&&this._setTypeAhead(Z.typeAheadDebounceInterval)}change=new p.B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(j){switch(j.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":"rtl"===this._horizontalOrientation?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":"rtl"===this._horizontalOrientation?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if("*"===j.key){this._expandAllItemsAtCurrentItemLevel();break}return void this._typeahead?.handleKey(j)}this._typeahead?.reset(),j.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(j,Z={}){Z.emitChangeEvent??=!0;let ee="number"==typeof j?j:this._items.findIndex($=>this._trackByFn($)===this._trackByFn(j));if(ee<0||ee>=this._items.length)return;const V=this._items[ee];if(null!==this._activeItem&&this._trackByFn(V)===this._trackByFn(this._activeItem))return;const Q=this._activeItem;this._activeItem=V??null,this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee),this._activeItem?.focus(),Q?.unfocus(),Z.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(j){const Z=this._activeItem;if(!Z)return;const ee=j.findIndex(V=>this._trackByFn(V)===this._trackByFn(Z));ee>-1&&ee!==this._activeItemIndex&&(this._activeItemIndex=ee,this._typeahead?.setCurrentSelectedItemIndex(ee))}_setTypeAhead(j){this._typeahead=new h.i(this._items,{debounceInterval:"number"==typeof j?j:void 0,skipPredicate:Z=>this._skipPredicateFn(Z)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(Z=>{this.focusItem(Z)})}_findNextAvailableItemIndex(j){for(let Z=j+1;Z=0;Z--)if(!this._skipPredicateFn(this._items[Z]))return Z;return j}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{const j=this._activeItem.getParent();if(!j||this._skipPredicateFn(j))return;this.focusItem(j)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?(0,d.x)(this._activeItem.getChildren()).pipe((0,A.s)(1)).subscribe(j=>{const Z=j.find(ee=>!this._skipPredicateFn(ee));Z&&this.focusItem(Z)}):this._activeItem.expand())}_isCurrentItemExpanded(){return!!this._activeItem&&("boolean"==typeof this._activeItem.isExpanded?this._activeItem.isExpanded:this._activeItem.isExpanded())}_isItemDisabled(j){return"boolean"==typeof j.isDisabled?j.isDisabled:j.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;const j=this._activeItem.getParent();let Z;Z=j?(0,d.x)(j.getChildren()):(0,e.of)(this._items.filter(ee=>null===ee.getParent())),Z.pipe((0,A.s)(1)).subscribe(ee=>{for(const V of ee)V.expand()})}_activateCurrentItem(){this._activeItem?.activate()}}const F=new i.nKC("tree-key-manager",{providedIn:"root",factory:function f(){return(K,j)=>new w(K,j)}})},72279(ke,q,l){"use strict";l.d(q,{kZ:()=>u,s3:()=>Oe,NL:()=>U,Dc:()=>ve,xn:()=>fe,Sz:()=>P,a$:()=>_,aI:()=>ce,Hy:()=>Re,XO:()=>m});var i=l(83869),g=l(74402),p=l(21413),D=l(84412),o=l(7673),e=l(84572),A=l(983),h=l(28793),d=l(96697),w=l(5964),f=l(56977),F=l(99172),M=l(88141),K=l(25558),j=l(96354),Z=l(46649),ee=l(39974);function V(oe,Se){return(0,ee.N)((0,Z.S)(oe,Se,arguments.length>=2,!1,!0))}var Q=l(70274),$=l(23294),ie=l(73664),_e=l(2615),ye=l(17705),se=l(4125),pe=l(61577),Ee=l(14117),L=l(8045);class t{dataNodes;expansionModel=new i.C(!0);trackBy;getLevel;isExpandable;getChildren;toggle(Se){this.expansionModel.toggle(this._trackByValue(Se))}expand(Se){this.expansionModel.select(this._trackByValue(Se))}collapse(Se){this.expansionModel.deselect(this._trackByValue(Se))}isExpanded(Se){return this.expansionModel.isSelected(this._trackByValue(Se))}toggleDescendants(Se){this.expansionModel.isSelected(this._trackByValue(Se))?this.collapseDescendants(Se):this.expandDescendants(Se)}collapseAll(){this.expansionModel.clear()}expandDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.select(...be.map(nt=>this._trackByValue(nt)))}collapseDescendants(Se){let be=[Se];be.push(...this.getDescendants(Se)),this.expansionModel.deselect(...be.map(nt=>this._trackByValue(nt)))}_trackByValue(Se){return this.trackBy?this.trackBy(Se):Se}}class m extends t{getChildren;options;constructor(Se,be){super(),this.getChildren=Se,this.options=be,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();const Se=this.dataNodes.reduce((be,nt)=>[...be,...this.getDescendants(nt),nt],[]);this.expansionModel.select(...Se.map(be=>this._trackByValue(be)))}getDescendants(Se){const be=[];return this._getDescendants(be,Se),be.splice(1)}_getDescendants(Se,be){Se.push(be);const nt=this.getChildren(be);Array.isArray(nt)?nt.forEach($e=>this._getDescendants(Se,$e)):(0,g.A)(nt)&&nt.pipe((0,d.s)(1),(0,w.p)(Boolean)).subscribe($e=>{for(const dt of $e)this._getDescendants(Se,dt)})}}const u=new _e.nKC("CDK_TREE_NODE_OUTLET_NODE");let _=(()=>{class oe{viewContainer=(0,_e.WQX)(ie.c1b);_node=(0,_e.WQX)(u,{optional:!0});constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeOutlet",""]]})}return oe})();class T{$implicit;level;index;count;constructor(Se){this.$implicit=Se}}let P=(()=>{class oe{template=(0,_e.WQX)(ie.C4Q);when;constructor(){}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return oe})();function Y(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}let U=(()=>{class oe{_differs=(0,_e.WQX)(ye._q3);_changeDetectorRef=(0,_e.WQX)(ye.gRc);_elementRef=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS);_onDestroy=new p.B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(be){this._dataSource!==be&&this._switchDataSource(be)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new D.t({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new D.t([]);_nodeType=new D.t(null);_nodes=new D.t(new Map);_keyManagerNodes=new D.t([]);_keyManagerFactory=(0,_e.WQX)(se.Z2);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){const be=this._nodeDefs.filter(nt=>!nt.when);this._defaultNodeDef=be[0]}_setNodeTypeIfUnset(be){null===this._nodeType.value&&this._nodeType.next(be)}_switchDataSource(be){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),be||this._nodeOutlet.viewContainer.clear(),this._dataSource=be,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new i.C(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let be;(0,Ee.y)(this._dataSource)?be=this._dataSource.connect(this):(0,g.A)(this._dataSource)?be=this._dataSource:Array.isArray(this._dataSource)&&(be=(0,o.of)(this._dataSource)),be&&(this._dataSubscription=this._getRenderData(be).pipe((0,f.Q)(this._onDestroy)).subscribe(nt=>{this._renderDataChanges(nt)}))}_getRenderData(be){const nt=this._getExpansionModel();return(0,e.z)([be,this._nodeType,nt.changed.pipe((0,F.Z)(null),(0,M.M)($e=>{this._emitExpansionChanges($e)}))]).pipe((0,K.n)(([$e,dt])=>null===dt?(0,o.of)({renderNodes:$e,flattenedNodes:null,nodeType:dt}):this._computeRenderingData($e,dt).pipe((0,j.T)(yt=>({...yt,nodeType:dt})))))}_renderDataChanges(be){null!==be.nodeType?(this._updateCachedData(be.flattenedNodes),this.renderNodeChanges(be.renderNodes),this._updateKeyManagerItems(be.flattenedNodes)):this.renderNodeChanges(be.renderNodes)}_emitExpansionChanges(be){if(!be)return;const nt=this._nodes.value;for(const $e of be.added)nt.get($e)?._emitExpansionState(!0);for(const $e of be.removed)nt.get($e)?._emitExpansionState(!1)}_initializeKeyManager(){const be=(0,e.z)([this._keyManagerNodes,this._nodes]).pipe((0,j.T)(([$e,dt])=>$e.reduce((yt,Et)=>{const rt=dt.get(this._getExpansionKey(Et));return rt&&yt.push(rt),yt},[])));this._keyManager=this._keyManagerFactory(be,{trackBy:$e=>this._getExpansionKey($e.data),skipPredicate:$e=>!!$e.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value})}_initializeDataDiffer(){const be=this.trackBy??((nt,$e)=>this._getExpansionKey($e));this._dataDiffer=this._differs.find([]).create(be)}_checkTreeControlUsage(){}renderNodeChanges(be,nt=this._dataDiffer,$e=this._nodeOutlet.viewContainer,dt){const yt=nt.diff(be);!yt&&!this._viewInit||(yt?.forEachOperation((Et,rt,Mn)=>{if(null==Et.previousIndex)this.insertNode(be[Mn],Mn,$e,dt);else if(null==Mn)$e.remove(rt);else{const qt=$e.get(rt);$e.move(qt,Mn)}}),yt?.forEachIdentityChange(Et=>{const rt=Et.item;null!=Et.currentIndex&&($e.get(Et.currentIndex).context.$implicit=rt)}),dt?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(be,nt){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(dt=>dt.when&&dt.when(nt,be))||this._defaultNodeDef}insertNode(be,nt,$e,dt){const yt=this._getLevelAccessor(),Et=this._getNodeDef(be,nt),rt=this._getExpansionKey(be),Mn=new T(be);Mn.index=nt,dt??=this._parents.get(rt)??void 0,Mn.level=yt?yt(be):void 0!==dt&&this._levels.has(this._getExpansionKey(dt))?this._levels.get(this._getExpansionKey(dt))+1:0,this._levels.set(rt,Mn.level),($e||this._nodeOutlet.viewContainer).createEmbeddedView(Et.template,Mn,nt),fe.mostRecentTreeNode&&(fe.mostRecentTreeNode.data=be)}isExpanded(be){return!(!this.treeControl?.isExpanded(be)&&!this._expansionModel?.isSelected(this._getExpansionKey(be)))}toggle(be){this.treeControl?this.treeControl.toggle(be):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(be))}expand(be){this.treeControl?this.treeControl.expand(be):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(be))}collapse(be){this.treeControl?this.treeControl.collapse(be):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(be))}toggleDescendants(be){this.treeControl?this.treeControl.toggleDescendants(be):this._expansionModel&&(this.isExpanded(be)?this.collapseDescendants(be):this.expandDescendants(be))}expandDescendants(be){if(this.treeControl)this.treeControl.expandDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.select(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.select(...$e.map(dt=>this._getExpansionKey(dt)))})}}collapseDescendants(be){if(this.treeControl)this.treeControl.collapseDescendants(be);else if(this._expansionModel){const nt=this._expansionModel;nt.deselect(this._getExpansionKey(be)),this._getDescendants(be).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe($e=>{nt.deselect(...$e.map(dt=>this._getExpansionKey(dt)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.select(...be))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(be=>this._expansionModel?.deselect(...be))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(be){const nt=this._getLevelAccessor(),$e=this._expansionModel??this.treeControl?.expansionModel;if(!$e)return(0,o.of)([]);const dt=this._getExpansionKey(be),yt=$e.changed.pipe((0,K.n)(rt=>rt.added.includes(dt)?(0,o.of)(!0):rt.removed.includes(dt)?(0,o.of)(!1):A.w),(0,F.Z)(this.isExpanded(be)));if(nt)return(0,e.z)([yt,this._flattenedNodes]).pipe((0,j.T)(([rt,Mn])=>rt?this._findChildrenByLevel(nt,Mn,be,1):[]));const Et=this._getChildrenAccessor();if(Et)return(0,L.x)(Et(be)??[]);throw Y()}_findChildrenByLevel(be,nt,$e,dt){const yt=this._getExpansionKey($e),Et=nt.findIndex(S=>this._getExpansionKey(S)===yt),rt=be($e),Mn=rt+dt,qt=[];for(let S=Et+1;Sthis._getExpansionKey(dt)===$e)+1}_getNodeParent(be){const nt=this._parents.get(this._getExpansionKey(be.data));return nt&&this._nodes.value.get(this._getExpansionKey(nt))}_getNodeChildren(be){return this._getDirectChildren(be.data).pipe((0,j.T)(nt=>nt.reduce(($e,dt)=>{const yt=this._nodes.value.get(this._getExpansionKey(dt));return yt&&$e.push(yt),$e},[])))}_sendKeydownToKeyManager(be){if(be.target===this._elementRef.nativeElement)this._keyManager.onKeydown(be);else{const nt=this._nodes.getValue();for(const[,$e]of nt)if(be.target===$e._elementRef.nativeElement){this._keyManager.onKeydown(be);break}}}_getDescendants(be){if(this.treeControl)return(0,o.of)(this.treeControl.getDescendants(be));if(this.levelAccessor){const nt=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,be,1/0);return(0,o.of)(nt)}if(this.childrenAccessor)return this._getAllChildrenRecursively(be).pipe(V((nt,$e)=>(nt.push(...$e),nt),[]));throw Y()}_getAllChildrenRecursively(be){return this.childrenAccessor?(0,L.x)(this.childrenAccessor(be)).pipe((0,d.s)(1),(0,K.n)(nt=>{for(const $e of nt)this._parents.set(this._getExpansionKey($e),be);return(0,o.of)(...nt).pipe((0,Q.H)($e=>(0,h.x)((0,o.of)([$e]),this._getAllChildrenRecursively($e))))})):(0,o.of)([])}_getExpansionKey(be){return this.expansionKey?.(be)??be}_getAriaSet(be){const nt=this._getExpansionKey(be),$e=this._parents.get(nt),dt=$e?this._getExpansionKey($e):null;return this._ariaSets.get(dt)??[be]}_findParentForNode(be,nt,$e){if(!$e.length)return null;const dt=this._levels.get(this._getExpansionKey(be))??0;for(let yt=nt-1;yt>=0;yt--){const Et=$e[yt];if((this._levels.get(this._getExpansionKey(Et))??0){const yt=this._getExpansionKey(dt);this._parents.has(yt)||this._parents.set(yt,null),this._levels.set(yt,nt);const Et=(0,L.x)($e(dt));return(0,h.x)((0,o.of)([dt]),Et.pipe((0,d.s)(1),(0,M.M)(rt=>{this._ariaSets.set(yt,[...rt??[]]);for(const Mn of rt??[]){const qt=this._getExpansionKey(Mn);this._parents.set(qt,dt),this._levels.set(qt,nt+1)}}),(0,K.n)(rt=>rt?this._flattenNestedNodesWithExpansion(rt,nt+1).pipe((0,j.T)(Mn=>this.isExpanded(dt)?Mn:[])):(0,o.of)([]))))}),V((dt,yt)=>(dt.push(...yt),dt),[])):(0,o.of)([...be])}_computeRenderingData(be,nt){if(this.childrenAccessor&&"flat"===nt)return this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:$e,flattenedNodes:$e})));if(this.levelAccessor&&"nested"===nt){const $e=this.levelAccessor;return(0,o.of)(be.filter(dt=>0===$e(dt))).pipe((0,j.T)(dt=>({renderNodes:dt,flattenedNodes:be})),(0,M.M)(({flattenedNodes:dt})=>{this._calculateParents(dt)}))}return"flat"===nt?(0,o.of)({renderNodes:be,flattenedNodes:be}).pipe((0,M.M)(({flattenedNodes:$e})=>{this._calculateParents($e)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...be]),this._flattenNestedNodesWithExpansion(be).pipe((0,j.T)($e=>({renderNodes:be,flattenedNodes:$e}))))}_updateCachedData(be){this._flattenedNodes.next(be)}_updateKeyManagerItems(be){this._keyManagerNodes.next(be)}_calculateParents(be){const nt=this._getLevelAccessor();if(nt){this._clearPreviousCache();for(let $e=0;$e{nt.push(this._getExpansionKey(dt.data)),$e.push(this._getDescendants(dt.data))}),$e.length>0?(0,e.z)($e).pipe((0,d.s)(1),(0,f.Q)(this._onDestroy)).subscribe(dt=>{dt.forEach(yt=>yt.forEach(Et=>nt.push(this._getExpansionKey(Et)))),be(nt)}):be(nt)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275cmp=ie.VBU({type:oe,selectors:[["cdk-tree"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,P,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e._nodeDefs=yt)}},viewQuery:function(nt,$e){if(1&nt&&ie.GBs(_,7),2&nt){let dt;ie.mGM(dt=ie.lsd())&&($e._nodeOutlet=dt.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(nt,$e){1&nt&&ie.bIt("keydown",function(yt){return $e._sendKeydownToKeyManager(yt)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(nt,$e){1&nt&&ie.eu8(0,0)},dependencies:[_],encapsulation:2})}return oe})(),fe=(()=>{class oe{_elementRef=(0,_e.WQX)(ie.aKT);_tree=(0,_e.WQX)(U);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(be){}get isExpandable(){return this._isExpandable()}set isExpandable(be){this._inputIsExpandable=be,(!this.data||this._isExpandable)&&this._inputIsExpandable&&(this._inputIsExpanded?this.expand():!1===this._inputIsExpanded&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(be){this._inputIsExpanded=be,be?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new ie.bkB;expandedChange=new ie.bkB;static mostRecentTreeNode=null;_destroyed=new p.B;_dataChanges=new p.B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(be){be!==this._data&&(this._data=be,this._dataChanges.next())}_data;get isLeafNode(){return void 0!==this._tree.treeControl?.isExpandable&&!this._tree.treeControl.isExpandable(this._data)||void 0===this._tree.treeControl?.isExpandable&&0===this._tree.treeControl?.getDescendants(this._data).length}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=(0,_e.WQX)(ye.gRc);constructor(){oe.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=function re(oe){let Se=oe.parentElement;for(;Se&&!he(Se);)Se=Se.parentElement;return Se?Se.classList.contains("cdk-nested-tree-node")?(0,ye.Udg)(Se.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe((0,j.T)(()=>this.isExpanded),(0,$.F)(),(0,f.Q)(this._destroyed)).pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){oe.mostRecentTreeNode===this&&(oe.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(be){this.expandedChange.emit(be)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(){return $e._setActiveItem()})("focus",function(){return $e._focusItem()}),2&nt&&(ie.Avn("tabIndex",$e._tabindex),ie.BMQ("aria-expanded",$e._getAriaExpanded())("aria-level",$e.level+1)("aria-posinset",$e._getPositionInSet())("aria-setsize",$e._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",ye.L39],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",ye.L39],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return oe})();function he(oe){const Se=oe.classList;return!(!Se?.contains("cdk-nested-tree-node")&&!Se?.contains("cdk-tree"))}let Oe=(()=>{class oe extends fe{_type="nested";_differs=(0,_e.WQX)(ye._q3);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe((0,f.Q)(this._destroyed)).subscribe(be=>this.updateChildrenNodes(be)),this.nodeOutlet.changes.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(be){const nt=this._getNodeOutlet();be&&(this._children=be),nt&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,nt.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const be=this._getNodeOutlet();be&&(be.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const be=this.nodeOutlet;return be&&be.find(nt=>!nt._node||nt._node===this)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["cdk-nested-tree-node"]],contentQueries:function(nt,$e,dt){if(1&nt&&ie.wni(dt,_,5),2&nt){let yt;ie.mGM(yt=ie.lsd())&&($e.nodeOutlet=yt)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[ie.Jv_([{provide:fe,useExisting:oe},{provide:u,useExisting:oe}]),ie.Vt3]})}return oe})();const ge=/([A-Za-z%]+)$/;let ce=(()=>{class oe{_treeNode=(0,_e.WQX)(fe);_tree=(0,_e.WQX)(U);_element=(0,_e.WQX)(ie.aKT);_dir=(0,_e.WQX)(pe.dS,{optional:!0});_currentPadding;_destroyed=new p.B;indentUnits="px";get level(){return this._level}set level(be){this._setLevelInput(be)}_level;get indent(){return this._indent}set indent(be){this._setIndentInput(be)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe((0,f.Q)(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const be=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,nt=null==this._level?be:this._level;return"number"==typeof nt?`${nt*this._indent}${this.indentUnits}`:null}_setPadding(be=!1){const nt=this._paddingIndent();if(nt!==this._currentPadding||be){const $e=this._element.nativeElement,dt=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",yt="paddingLeft"===dt?"paddingRight":"paddingLeft";$e.style[dt]=nt||"",$e.style[yt]="",this._currentPadding=nt}}_setLevelInput(be){this._level=isNaN(be)?null:be,this._setPadding()}_setIndentInput(be){let nt=be,$e="px";if("string"==typeof be){const dt=be.split(ge);nt=dt[0],$e=dt[1]||$e}this.indentUnits=$e,this._indent=(0,ye.Udg)(nt),this._setPadding()}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ye.Udg],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return oe})(),Re=(()=>{class oe{_tree=(0,_e.WQX)(U);_treeNode=(0,_e.WQX)(fe);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(nt){return new(nt||oe)};static \u0275dir=ie.FsC({type:oe,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(nt,$e){1&nt&&ie.bIt("click",function(yt){return $e._toggle(),yt.stopPropagation()})("keydown.Enter",function(yt){return $e._toggle(),yt.preventDefault()})("keydown.Space",function(yt){return $e._toggle(),yt.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",ye.L39]}})}return oe})(),ve=(()=>{class oe{static \u0275fac=function(nt){return new(nt||oe)};static \u0275mod=ie.$C({type:oe});static \u0275inj=_e.G2t({})}return oe})()},59096(ke,q,l){"use strict";l.d(q,{i:()=>h});var i=l(21413),g=l(70152),p=l(5964),D=l(96354),o=l(88141),e=l(10438);class h{_letterKeyStream=new i.B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new i.B;selectedItem=this._selectedItem;constructor(w,f){const F="number"==typeof f?.debounceInterval?f.debounceInterval:200;f?.skipPredicate&&(this._skipPredicateFn=f.skipPredicate),this.setItems(w),this._setupKeyHandler(F)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(w){this._selectedItemIndex=w}setItems(w){this._items=w}handleKey(w){const f=w.keyCode;w.key&&1===w.key.length?this._letterKeyStream.next(w.key.toLocaleUpperCase()):(f>=e.A&&f<=e.Z||f>=e.f2&&f<=e.bn)&&this._letterKeyStream.next(String.fromCharCode(f))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(w){this._letterKeyStream.pipe((0,o.M)(f=>this._pressedLetters.push(f)),(0,g.B)(w),(0,p.p)(()=>this._pressedLetters.length>0),(0,D.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(f=>{for(let F=1;Fg});var i=l(2615);let g=(()=>{class p{_listeners=[];notify(o,e){for(let A of this._listeners)A(o,e)}listen(o){return this._listeners.push(o),()=>{this._listeners=this._listeners.filter(e=>o!==e)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(e){return new(e||p)};static \u0275prov=i.jDH({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})()},60177(ke,q,l){"use strict";l.d(q,{AJ:()=>ye,UE:()=>pe,Vy:()=>Ee,Xr:()=>t});var ie=l(2615);const ye="browser";function pe(dn){return dn===ye}function Ee(dn){return"server"===dn}let t=(()=>{class dn{static \u0275prov=(0,ie.jDH)({token:dn,providedIn:"root",factory:()=>new s((0,ie.WQX)(ie.qQL),window)})}return dn})();class s{document;window;offset=()=>[0,0];constructor(Ln,Jn){this.document=Ln,this.window=Jn}setOffset(Ln){this.offset=Array.isArray(Ln)?()=>Ln:Ln}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(Ln,Jn){this.window.scrollTo({...Jn,left:Ln[0],top:Ln[1]})}scrollToAnchor(Ln,Jn){const hi=function m(dn,Ln){const Jn=dn.getElementById(Ln)||dn.getElementsByName(Ln)[0];if(Jn)return Jn;if("function"==typeof dn.createTreeWalker&&dn.body&&"function"==typeof dn.body.attachShadow){const hi=dn.createTreeWalker(dn.body,NodeFilter.SHOW_ELEMENT);let Gn=hi.currentNode;for(;Gn;){const Qn=Gn.shadowRoot;if(Qn){const Bi=Qn.getElementById(Ln)||Qn.querySelector(`[name="${Ln}"]`);if(Bi)return Bi}Gn=hi.nextNode()}}return null}(this.document,Ln);hi&&(this.scrollToElement(hi,Jn),hi.focus())}setHistoryScrollRestoration(Ln){try{this.window.history.scrollRestoration=Ln}catch{console.warn((0,ie.OsK)(2400,!1))}}scrollToElement(Ln,Jn){const hi=Ln.getBoundingClientRect(),Gn=hi.left+this.window.pageXOffset,Qn=hi.top+this.window.pageYOffset,Bi=this.offset();this.window.scrollTo({...Jn,left:Gn-Bi[0],top:Qn-Bi[1]})}}},72200(ke,q,l){"use strict";l.d(q,{B3:()=>en,GH:()=>ci,Jj:()=>Kn,MD:()=>Ma,P9:()=>Ci,PV:()=>aa,Pc:()=>sa,QX:()=>un,Sq:()=>kt,T3:()=>Nn,TG:()=>Qn,YU:()=>wn,bT:()=>Ge,e1:()=>oi,fG:()=>Ii,fw:()=>d,lG:()=>ca,ux:()=>Zn,vh:()=>Ln});var D=l(17705),o=l(2615),e=l(73664),A=l(59295),h=l(57303);let d=(()=>{class lt extends h.hb{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(ht,Gt){super(),this._platformLocation=ht,null!=Gt&&(this._baseHref=Gt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ht){this._removeListenerFns.push(this._platformLocation.onPopState(ht),this._platformLocation.onHashChange(ht))}getBaseHref(){return this._baseHref}path(ht=!1){const Gt=this._platformLocation.hash??"#";return Gt.length>0?Gt.substring(1):Gt}prepareExternalUrl(ht){const Gt=(0,h.om)(this._baseHref,ht);return Gt.length>0?"#"+Gt:Gt}pushState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.pushState(ht,Gt,pi)}replaceState(ht,Gt,cn,si){const pi=this.prepareExternalUrl(cn+(0,h.Q)(si))||this._platformLocation.pathname;this._platformLocation.replaceState(ht,Gt,pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ht=0){this._platformLocation.historyGo?.(ht)}static \u0275fac=function(Gt){return new(Gt||lt)(o.KVO(h.Vw),o.KVO(h.kB,8))};static \u0275prov=o.jDH({token:lt,factory:lt.\u0275fac})}return lt})();var f=function(lt){return lt[lt.Decimal=0]="Decimal",lt[lt.Percent=1]="Percent",lt[lt.Currency=2]="Currency",lt[lt.Scientific=3]="Scientific",lt}(f||{}),M=function(lt){return lt[lt.Format=0]="Format",lt[lt.Standalone=1]="Standalone",lt}(M||{}),K=function(lt){return lt[lt.Narrow=0]="Narrow",lt[lt.Abbreviated=1]="Abbreviated",lt[lt.Wide=2]="Wide",lt[lt.Short=3]="Short",lt}(K||{}),j=function(lt){return lt[lt.Short=0]="Short",lt[lt.Medium=1]="Medium",lt[lt.Long=2]="Long",lt[lt.Full=3]="Full",lt}(j||{});function pe(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateFormat],an)}function Ee(lt,an){return R((0,e.kBR)(lt)[e.NSC.TimeFormat],an)}function L(lt,an){return R((0,e.kBR)(lt)[e.NSC.DateTimeFormat],an)}function t(lt,an){const ht=(0,e.kBR)(lt),Gt=ht[e.NSC.NumberSymbols][an];if(typeof Gt>"u"){if(12===an)return ht[e.NSC.NumberSymbols][0];if(13===an)return ht[e.NSC.NumberSymbols][1]}return Gt}function C(lt){if(!lt[e.NSC.ExtraData])throw new o.buA(2303,!1)}function R(lt,an){for(let ht=an;ht>-1;ht--)if(typeof lt[ht]<"u")return lt[ht];throw new o.buA(2304,!1)}function U(lt){const[an,ht]=lt.split(":");return{hours:+an,minutes:+ht}}const Oe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ge={},ce=/((?:[^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 Me(lt,an,ht,Gt){let cn=function _n(lt){if(Fe(lt))return lt;if("number"==typeof lt&&!isNaN(lt))return new Date(lt);if("string"==typeof lt){if(lt=lt.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(lt)){const[cn,si=1,pi=1]=lt.split("-").map(Oi=>+Oi);return Se(cn,si-1,pi)}const ht=parseFloat(lt);if(!isNaN(lt-ht))return new Date(ht);let Gt;if(Gt=lt.match(Oe))return function tt(lt){const an=new Date(0);let ht=0,Gt=0;const cn=lt[8]?an.setUTCFullYear:an.setFullYear,si=lt[8]?an.setUTCHours:an.setHours;lt[9]&&(ht=Number(lt[9]+lt[10]),Gt=Number(lt[9]+lt[11])),cn.call(an,Number(lt[1]),Number(lt[2])-1,Number(lt[3]));const pi=Number(lt[4]||0)-ht,Oi=Number(lt[5]||0)-Gt,la=Number(lt[6]||0),mn=Math.floor(1e3*parseFloat("0."+(lt[7]||0)));return si.call(an,pi,Oi,la,mn),an}(Gt)}const an=new Date(lt);if(!Fe(an))throw new o.buA(2311,!1);return an}(lt);(function ve(lt){if(lt.length>256)throw new o.buA(2300,!1)})(an),an=be(ht,an)||an;let Oi,pi=[];for(;an;){if(Oi=ce.exec(an),!Oi){pi.push(an);break}{pi=pi.concat(Oi.slice(1));const li=pi.pop();if(!li)break;an=li}}let la=cn.getTimezoneOffset();Gt&&(la=Vt(Gt,la),cn=function En(lt,an){const cn=lt.getTimezoneOffset();return function hn(lt,an){return(lt=new Date(lt.getTime())).setMinutes(lt.getMinutes()+an),lt}(lt,-1*(Vt(an,cn)-cn))}(cn,Gt));let mn="";return pi.forEach(li=>{const Ce=function tn(lt){if(et[lt])return et[lt];let an;switch(lt){case"G":case"GG":case"GGG":an=rt(3,K.Abbreviated);break;case"GGGG":an=rt(3,K.Wide);break;case"GGGGG":an=rt(3,K.Narrow);break;case"y":an=yt(0,1,0,!1,!0);break;case"yy":an=yt(0,2,0,!0,!0);break;case"yyy":an=yt(0,3,0,!1,!0);break;case"yyyy":an=yt(0,4,0,!1,!0);break;case"Y":an=Le(1);break;case"YY":an=Le(2,!0);break;case"YYY":an=Le(3);break;case"YYYY":an=Le(4);break;case"M":case"L":an=yt(1,1,1);break;case"MM":case"LL":an=yt(1,2,1);break;case"MMM":an=rt(2,K.Abbreviated);break;case"MMMM":an=rt(2,K.Wide);break;case"MMMMM":an=rt(2,K.Narrow);break;case"LLL":an=rt(2,K.Abbreviated,M.Standalone);break;case"LLLL":an=rt(2,K.Wide,M.Standalone);break;case"LLLLL":an=rt(2,K.Narrow,M.Standalone);break;case"w":an=me(1);break;case"ww":an=me(2);break;case"W":an=me(1,!0);break;case"d":an=yt(2,1);break;case"dd":an=yt(2,2);break;case"c":case"cc":an=yt(7,1);break;case"ccc":an=rt(1,K.Abbreviated,M.Standalone);break;case"cccc":an=rt(1,K.Wide,M.Standalone);break;case"ccccc":an=rt(1,K.Narrow,M.Standalone);break;case"cccccc":an=rt(1,K.Short,M.Standalone);break;case"E":case"EE":case"EEE":an=rt(1,K.Abbreviated);break;case"EEEE":an=rt(1,K.Wide);break;case"EEEEE":an=rt(1,K.Narrow);break;case"EEEEEE":an=rt(1,K.Short);break;case"a":case"aa":case"aaa":an=rt(0,K.Abbreviated);break;case"aaaa":an=rt(0,K.Wide);break;case"aaaaa":an=rt(0,K.Narrow);break;case"b":case"bb":case"bbb":an=rt(0,K.Abbreviated,M.Standalone,!0);break;case"bbbb":an=rt(0,K.Wide,M.Standalone,!0);break;case"bbbbb":an=rt(0,K.Narrow,M.Standalone,!0);break;case"B":case"BB":case"BBB":an=rt(0,K.Abbreviated,M.Format,!0);break;case"BBBB":an=rt(0,K.Wide,M.Format,!0);break;case"BBBBB":an=rt(0,K.Narrow,M.Format,!0);break;case"h":an=yt(3,1,-12);break;case"hh":an=yt(3,2,-12);break;case"H":an=yt(3,1);break;case"HH":an=yt(3,2);break;case"m":an=yt(4,1);break;case"mm":an=yt(4,2);break;case"s":an=yt(5,1);break;case"ss":an=yt(5,2);break;case"S":an=yt(6,1);break;case"SS":an=yt(6,2);break;case"SSS":an=yt(6,3);break;case"Z":case"ZZ":case"ZZZ":an=qt(0);break;case"ZZZZZ":an=qt(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":an=qt(1);break;case"OOOO":case"ZZZZ":case"zzzz":an=qt(2);break;default:return null}return et[lt]=an,an}(li);mn+=Ce?Ce(cn,ht,la):"''"===li?"'":li.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),mn}function Se(lt,an,ht){const Gt=new Date(0);return Gt.setFullYear(lt,an,ht),Gt.setHours(0,0,0),Gt}function be(lt,an){const ht=function V(lt){return(0,e.kBR)(lt)[e.NSC.LocaleId]}(lt);if(ge[ht]??={},ge[ht][an])return ge[ht][an];let Gt="";switch(an){case"shortDate":Gt=pe(lt,j.Short);break;case"mediumDate":Gt=pe(lt,j.Medium);break;case"longDate":Gt=pe(lt,j.Long);break;case"fullDate":Gt=pe(lt,j.Full);break;case"shortTime":Gt=Ee(lt,j.Short);break;case"mediumTime":Gt=Ee(lt,j.Medium);break;case"longTime":Gt=Ee(lt,j.Long);break;case"fullTime":Gt=Ee(lt,j.Full);break;case"short":const cn=be(lt,"shortTime"),si=be(lt,"shortDate");Gt=nt(L(lt,j.Short),[cn,si]);break;case"medium":const pi=be(lt,"mediumTime"),Oi=be(lt,"mediumDate");Gt=nt(L(lt,j.Medium),[pi,Oi]);break;case"long":const la=be(lt,"longTime"),mn=be(lt,"longDate");Gt=nt(L(lt,j.Long),[la,mn]);break;case"full":const li=be(lt,"fullTime"),Ce=be(lt,"fullDate");Gt=nt(L(lt,j.Full),[li,Ce])}return Gt&&(ge[ht][an]=Gt),Gt}function nt(lt,an){return an&&(lt=lt.replace(/\{([^}]+)}/g,function(ht,Gt){return null!=an&&Gt in an?an[Gt]:ht})),lt}function $e(lt,an,ht="-",Gt,cn){let si="";(lt<0||cn&<<=0)&&(cn?lt=1-lt:(lt=-lt,si=ht));let pi=String(lt);for(;pi.length0||Oi>-ht)&&(Oi+=ht),3===lt)0===Oi&&-12===ht&&(Oi=12);else if(6===lt)return function dt(lt,an){return $e(lt,3).substring(0,an)}(Oi,an);const la=t(pi,5);return $e(Oi,an,la,Gt,cn)}}function rt(lt,an,ht=M.Format,Gt=!1){return function(cn,si){return function Mn(lt,an,ht,Gt,cn,si){switch(ht){case 2:return function ie(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.MonthsFormat],Gt[e.NSC.MonthsStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getMonth()];case 1:return function $(lt,an,ht){const Gt=(0,e.kBR)(lt),si=R([Gt[e.NSC.DaysFormat],Gt[e.NSC.DaysStandalone]],an);return R(si,ht)}(an,cn,Gt)[lt.getDay()];case 0:const pi=lt.getHours(),Oi=lt.getMinutes();if(si){const mn=function a(lt){const an=(0,e.kBR)(lt);return C(an),(an[e.NSC.ExtraData][2]||[]).map(Gt=>"string"==typeof Gt?U(Gt):[U(Gt[0]),U(Gt[1])])}(an),li=function x(lt,an,ht){const Gt=(0,e.kBR)(lt);C(Gt);const si=R([Gt[e.NSC.ExtraData][0],Gt[e.NSC.ExtraData][1]],an)||[];return R(si,ht)||[]}(an,cn,Gt),Ce=mn.findIndex(xt=>{if(Array.isArray(xt)){const[vt,rn]=xt,Wn=pi>=vt.hours&&Oi>=vt.minutes,Yi=pi0?Math.floor(cn/60):Math.ceil(cn/60);switch(lt){case 0:return(cn>=0?"+":"")+$e(pi,2,si)+$e(Math.abs(cn%60),2,si);case 1:return"GMT"+(cn>=0?"+":"")+$e(pi,1,si);case 2:return"GMT"+(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);case 3:return 0===Gt?"Z":(cn>=0?"+":"")+$e(pi,2,si)+":"+$e(Math.abs(cn%60),2,si);default:throw new o.buA(2310,!1)}}}function ae(lt){const an=lt.getDay(),ht=0===an?-3:4-an;return Se(lt.getFullYear(),lt.getMonth(),lt.getDate()+ht)}function me(lt,an=!1){return function(ht,Gt){let cn;if(an){const si=new Date(ht.getFullYear(),ht.getMonth(),1).getDay()-1,pi=ht.getDate();cn=1+Math.floor((pi+si)/7)}else{const si=ae(ht),pi=function de(lt){const an=Se(lt,0,1).getDay();return Se(lt,0,1+(an<=4?4:11)-an)}(si.getFullYear()),Oi=si.getTime()-pi.getTime();cn=1+Math.round(Oi/6048e5)}return $e(cn,lt,t(Gt,5))}}function Le(lt,an=!1){return function(ht,Gt){return $e(ae(ht).getFullYear(),lt,t(Gt,5),an)}}const et={};function Vt(lt,an){lt=lt.replace(/:/g,"");const ht=Date.parse("Jan 01, 1970 00:00:00 "+lt)/6e4;return isNaN(ht)?an:ht}function Fe(lt){return lt instanceof Date&&!isNaN(lt.valueOf())}const Pe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Lt(lt){const an=parseInt(lt);if(isNaN(an))throw new o.buA(2305,!1);return an}const mt=/\s+/,It=[];let wn=(()=>{class lt{_ngEl;_renderer;initialClasses=It;rawClass;stateMap=new Map;constructor(ht,Gt){this._ngEl=ht,this._renderer=Gt}set klass(ht){this.initialClasses=null!=ht?ht.trim().split(mt):It}set ngClass(ht){this.rawClass="string"==typeof ht?ht.trim().split(mt):ht}ngDoCheck(){for(const Gt of this.initialClasses)this._updateState(Gt,!0);const ht=this.rawClass;if(Array.isArray(ht)||ht instanceof Set)for(const Gt of ht)this._updateState(Gt,!0);else if(null!=ht)for(const Gt of Object.keys(ht))this._updateState(Gt,!!ht[Gt]);this._applyStateDiff()}_updateState(ht,Gt){const cn=this.stateMap.get(ht);void 0!==cn?(cn.enabled!==Gt&&(cn.changed=!0,cn.enabled=Gt),cn.touched=!0):this.stateMap.set(ht,{enabled:Gt,changed:!0,touched:!0})}_applyStateDiff(){for(const ht of this.stateMap){const Gt=ht[0],cn=ht[1];cn.changed?(this._toggleClass(Gt,cn.enabled),cn.changed=!1):cn.touched||(cn.enabled&&this._toggleClass(Gt,!1),this.stateMap.delete(Gt)),cn.touched=!1}}_toggleClass(ht,Gt){(ht=ht.trim()).length>0&&ht.split(mt).forEach(cn=>{Gt?this._renderer.addClass(this._ngEl.nativeElement,cn):this._renderer.removeClass(this._ngEl.nativeElement,cn)})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return lt})();class Li{$implicit;ngForOf;index;count;constructor(an,ht,Gt,cn){this.$implicit=an,this.ngForOf=ht,this.index=Gt,this.count=cn}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let kt=(()=>{class lt{_viewContainer;_template;_differs;set ngForOf(ht){this._ngForOf=ht,this._ngForOfDirty=!0}set ngForTrackBy(ht){this._trackByFn=ht}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(ht,Gt,cn){this._viewContainer=ht,this._template=Gt,this._differs=cn}set ngForTemplate(ht){ht&&(this._template=ht)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ht=this._ngForOf;!this._differ&&ht&&(this._differ=this._differs.find(ht).create(this.ngForTrackBy))}if(this._differ){const ht=this._differ.diff(this._ngForOf);ht&&this._applyChanges(ht)}}_applyChanges(ht){const Gt=this._viewContainer;ht.forEachOperation((cn,si,pi)=>{if(null==cn.previousIndex)Gt.createEmbeddedView(this._template,new Li(cn.item,this._ngForOf,-1,-1),null===pi?void 0:pi);else if(null==pi)Gt.remove(null===si?void 0:si);else if(null!==si){const Oi=Gt.get(si);Gt.move(Oi,pi),Ot(Oi,cn)}});for(let cn=0,si=Gt.length;cn{Ot(Gt.get(cn.currentIndex),cn)})}static ngTemplateContextGuard(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(D._q3))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return lt})();function Ot(lt,an){lt.context.$implicit=an.item}let Ge=(()=>{class lt{_viewContainer;_context=new Pt;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(ht,Gt){this._viewContainer=ht,this._thenTemplateRef=Gt}set ngIf(ht){this._context.$implicit=this._context.ngIf=ht,this._updateView()}set ngIfThen(ht){Yt(ht),this._thenTemplateRef=ht,this._thenViewRef=null,this._updateView()}set ngIfElse(ht){Yt(ht),this._elseTemplateRef=ht,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(ht,Gt){return!0}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return lt})();class Pt{$implicit=null;ngIf=null}function Yt(lt,an){if(lt&&!lt.createEmbeddedView)throw new o.buA(2020,!1)}class bn{_viewContainerRef;_templateRef;_created=!1;constructor(an,ht){this._viewContainerRef=an,this._templateRef=ht}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(an){an&&!this._created?this.create():!an&&this._created&&this.destroy()}}let Zn=(()=>{class lt{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(ht){this._ngSwitch=ht,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ht){this._defaultViews.push(ht)}_matchCase(ht){const Gt=ht===this._ngSwitch;return this._lastCasesMatched||=Gt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Gt}_updateDefaultCases(ht){if(this._defaultViews.length>0&&ht!==this._defaultUsed){this._defaultUsed=ht;for(const Gt of this._defaultViews)Gt.enforceState(ht)}}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return lt})(),oi=(()=>{class lt{ngSwitch;_view;ngSwitchCase;constructor(ht,Gt,cn){this.ngSwitch=cn,cn._addCase(),this._view=new bn(ht,Gt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(Zn,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return lt})(),Ii=(()=>{class lt{constructor(ht,Gt,cn){cn._addDefault(new bn(ht,Gt))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(Zn,9))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngSwitchDefault",""]]})}return lt})(),en=(()=>{class lt{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(ht,Gt,cn){this._ngEl=ht,this._differs=Gt,this._renderer=cn}set ngStyle(ht){this._ngStyle=ht,!this._differ&&ht&&(this._differ=this._differs.find(ht).create())}ngDoCheck(){if(this._differ){const ht=this._differ.diff(this._ngStyle);ht&&this._applyChanges(ht)}}_setStyle(ht,Gt){const[cn,si]=ht.split("."),pi=-1===cn.indexOf("-")?void 0:e.czy.DashCase;null!=Gt?this._renderer.setStyle(this._ngEl.nativeElement,cn,si?`${Gt}${si}`:Gt,pi):this._renderer.removeStyle(this._ngEl.nativeElement,cn,pi)}_applyChanges(ht){ht.forEachRemovedItem(Gt=>this._setStyle(Gt.key,null)),ht.forEachAddedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue)),ht.forEachChangedItem(Gt=>this._setStyle(Gt.key,Gt.currentValue))}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.aKT),e.rXU(D.MKu),e.rXU(e.sFG))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return lt})(),Nn=(()=>{class lt{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(ht){this._viewContainerRef=ht}ngOnChanges(ht){if(this._shouldRecreateView(ht)){const Gt=this._viewContainerRef;if(this._viewRef&&Gt.remove(Gt.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const cn=this._createContextForwardProxy();this._viewRef=Gt.createEmbeddedView(this.ngTemplateOutlet,cn,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(ht){return!!ht.ngTemplateOutlet||!!ht.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(ht,Gt,cn)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Gt,cn),get:(ht,Gt,cn)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Gt,cn)}})}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.c1b))};static \u0275dir=e.FsC({type:lt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[e.OA$]})}return lt})();function Un(lt,an){return new o.buA(2100,!1)}class ui{createSubscription(an,ht,Gt){return(0,A.O8)(()=>an.subscribe({next:ht,error:Gt}))}dispose(an){(0,A.O8)(()=>an.unsubscribe())}}class gn{createSubscription(an,ht,Gt){return an.then(cn=>ht?.(cn),cn=>Gt?.(cn)),{unsubscribe:()=>{ht=null,Gt=null}}}dispose(an){an.unsubscribe()}}const zn=new gn,kn=new ui;let Kn=(()=>{class lt{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=(0,o.WQX)(o.ZTf);constructor(ht){this._ref=ht}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ht){if(!this._obj){if(ht)try{this.markForCheckOnValueUpdate=!1,this._subscribe(ht)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return ht!==this._obj?(this._dispose(),this.transform(ht)):this._latestValue}_subscribe(ht){this._obj=ht,this._strategy=this._selectStrategy(ht),this._subscription=this._strategy.createSubscription(ht,Gt=>this._updateLatestValue(ht,Gt),Gt=>this.applicationErrorHandler(Gt))}_selectStrategy(ht){if((0,e.yLl)(ht))return zn;if((0,e.cdK)(ht))return kn;throw Un()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ht,Gt){ht===this._obj&&(this._latestValue=Gt,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.gRc,16))};static \u0275pipe=e.EJ8({name:"async",type:lt,pure:!1})}return lt})(),ci=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toLowerCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"lowercase",type:lt,pure:!0})}return lt})();const Xn=/(?:[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;let aa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.replace(Xn,Gt=>Gt[0].toUpperCase()+Gt.slice(1).toLowerCase())}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"titlecase",type:lt,pure:!0})}return lt})(),sa=(()=>{class lt{transform(ht){if(null==ht)return null;if("string"!=typeof ht)throw Un();return ht.toUpperCase()}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"uppercase",type:lt,pure:!0})}return lt})();const ha=new o.nKC(""),dn=new o.nKC("");let Ln=(()=>{class lt{locale;defaultTimezone;defaultOptions;constructor(ht,Gt,cn){this.locale=ht,this.defaultTimezone=Gt,this.defaultOptions=cn}transform(ht,Gt,cn,si){if(null==ht||""===ht||ht!=ht)return null;try{return Me(ht,Gt??this.defaultOptions?.dateFormat??"mediumDate",si||this.locale,cn??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(pi){throw Un()}}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(e.xe9,16),e.rXU(ha,24),e.rXU(dn,24))};static \u0275pipe=e.EJ8({name:"date",type:lt,pure:!0})}return lt})(),Qn=(()=>{class lt{transform(ht){return JSON.stringify(ht,null,2)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"json",type:lt,pure:!1})}return lt})(),ca=(()=>{class lt{differs;constructor(ht){this.differs=ht}differ;keyValues=[];compareFn=Sa;transform(ht,Gt=Sa){if(!ht||!(ht instanceof Map)&&"object"!=typeof ht)return null;this.differ??=this.differs.find(ht).create();const cn=this.differ.diff(ht),si=Gt!==this.compareFn;return cn&&(this.keyValues=[],cn.forEachItem(pi=>{this.keyValues.push(function Bi(lt,an){return{key:lt,value:an}}(pi.key,pi.currentValue))})),(cn||si)&&(Gt&&this.keyValues.sort(Gt),this.compareFn=Gt),this.keyValues}static \u0275fac=function(Gt){return new(Gt||lt)(e.rXU(D.MKu,16))};static \u0275pipe=e.EJ8({name:"keyvalue",type:lt,pure:!1})}return lt})();function Sa(lt,an){const ht=lt.key,Gt=an.key;if(ht===Gt)return 0;if(null==ht)return 1;if(null==Gt)return-1;if("string"==typeof ht&&"string"==typeof Gt)return ht{class lt{_locale;constructor(ht){this._locale=ht}transform(ht,Gt,cn){if(!function Dn(lt){return!(null==lt||""===lt||lt!=lt)}(ht))return null;cn||=this._locale;try{return function it(lt,an,ht){return function zt(lt,an,ht,Gt,cn,si,pi=!1){let Oi="",la=!1;if(isFinite(lt)){let mn=function we(lt){let Gt,cn,si,pi,Oi,an=Math.abs(lt)+"",ht=0;for((cn=an.indexOf("."))>-1&&(an=an.replace(".","")),(si=an.search(/e/i))>0?(cn<0&&(cn=si),cn+=+an.slice(si+1),an=an.substring(0,si)):cn<0&&(cn=an.length),si=0;"0"===an.charAt(si);si++);if(si===(Oi=an.length))Gt=[0],cn=1;else{for(Oi--;"0"===an.charAt(Oi);)Oi--;for(cn-=si,Gt=[],pi=0;si<=Oi;si++,pi++)Gt[pi]=Number(an.charAt(si))}return cn>22&&(Gt=Gt.splice(0,21),ht=cn-1,cn=1),{digits:Gt,exponent:ht,integerLen:cn}}(lt);pi&&(mn=function Wt(lt){if(0===lt.digits[0])return lt;const an=lt.digits.length-lt.integerLen;return lt.exponent?lt.exponent+=2:(0===an?lt.digits.push(0,0):1===an&<.digits.push(0),lt.integerLen+=2),lt}(mn));let li=an.minInt,Ce=an.minFrac,xt=an.maxFrac;if(si){const Va=si.match(Pe);if(null===Va)throw new o.buA(2306,!1);const $a=Va[1],ir=Va[3],Ga=Va[5];null!=$a&&(li=Lt($a)),null!=ir&&(Ce=Lt(ir)),null!=Ga?xt=Lt(Ga):null!=ir&&Ce>xt&&(xt=Ce);const Ar=100;if(li>Ar||Ce>Ar||xt>Ar)throw new o.buA(2306,!1)}!function We(lt,an,ht){if(an>ht)throw new o.buA(2307,!1);let Gt=lt.digits,cn=Gt.length-lt.integerLen;const si=Math.min(Math.max(an,cn),ht);let pi=si+lt.integerLen,Oi=Gt[pi];if(pi>0){Gt.splice(Math.max(lt.integerLen,pi));for(let Ce=pi;Ce=5)if(pi-1<0){for(let Ce=0;Ce>pi;Ce--)Gt.unshift(0),lt.integerLen++;Gt.unshift(1),lt.integerLen++}else Gt[pi-1]++;for(;cn=mn?rn.pop():la=!1),xt>=10?1:0},0);li&&(Gt.unshift(li),lt.integerLen++)}(mn,Ce,xt);let vt=mn.digits,rn=mn.integerLen;const Wn=mn.exponent;let Yi=[];for(la=vt.every(Va=>!Va);rn0?Yi=vt.splice(rn,vt.length):(Yi=vt,vt=[0]);const va=[];for(vt.length>=an.lgSize&&va.unshift(vt.splice(-an.lgSize,vt.length).join(""));vt.length>an.gSize;)va.unshift(vt.splice(-an.gSize,vt.length).join(""));vt.length&&va.unshift(vt.join("")),Oi=va.join(t(ht,Gt)),Yi.length&&(Oi+=t(ht,cn)+Yi.join("")),Wn&&(Oi+=t(ht,6)+"+"+Wn)}else Oi=t(ht,9);return Oi=lt<0&&!la?an.negPre+Oi+an.negSuf:an.posPre+Oi+an.posSuf,Oi}(lt,function He(lt,an="-"){const ht={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Gt=lt.split(";"),cn=Gt[0],si=Gt[1],pi=-1!==cn.indexOf(".")?cn.split("."):[cn.substring(0,cn.lastIndexOf("0")+1),cn.substring(cn.lastIndexOf("0")+1)],Oi=pi[0],la=pi[1]||"";ht.posPre=Oi.substring(0,Oi.indexOf("#"));for(let li=0;li{class lt{transform(ht,Gt,cn){if(null==ht)return null;if("string"!=typeof ht&&!Array.isArray(ht))throw Un();return ht.slice(Gt,cn)}static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275pipe=e.EJ8({name:"slice",type:lt,pure:!1})}return lt})(),Ma=(()=>{class lt{static \u0275fac=function(Gt){return new(Gt||lt)};static \u0275mod=e.$C({type:lt});static \u0275inj=o.G2t({})}return lt})()},57303(ke,q,l){"use strict";l.d(q,{Q:()=>F,Sm:()=>j,Vw:()=>A,aZ:()=>Z,hb:()=>M,hj:()=>h,ig:()=>o,kB:()=>K,om:()=>w,qj:()=>e,rb:()=>D});var i=l(2615),g=l(21413);let p=null;function D(){return p}function o(ie){p??=ie}class e{}let A=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(d),providedIn:"platform"})}return ie})();const h=new i.nKC("");let d=(()=>{class ie extends A{_location;_history;_doc=(0,i.WQX)(i.qQL);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("popstate",ye,!1),()=>se.removeEventListener("popstate",ye)}onHashChange(ye){const se=D().getGlobalEventTarget(this._doc,"window");return se.addEventListener("hashchange",ye,!1),()=>se.removeEventListener("hashchange",ye)}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(ye){this._location.pathname=ye}pushState(ye,se,pe){this._history.pushState(ye,se,pe)}replaceState(ye,se,pe){this._history.replaceState(ye,se,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ye=0){this._history.go(ye)}getState(){return this._history.state}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>new ie,providedIn:"platform"})}return ie})();function w(ie,_e){return ie?_e?ie.endsWith("/")?_e.startsWith("/")?ie+_e.slice(1):ie+_e:_e.startsWith("/")?ie+_e:`${ie}/${_e}`:ie:_e}function f(ie){const _e=ie.search(/#|\?|$/);return"/"===ie[_e-1]?ie.slice(0,_e-1)+ie.slice(_e):ie}function F(ie){return ie&&"?"!==ie[0]?`?${ie}`:ie}let M=(()=>{class ie{historyGo(ye){throw new Error("")}static \u0275fac=function(se){return new(se||ie)};static \u0275prov=i.jDH({token:ie,factory:()=>(0,i.WQX)(j),providedIn:"root"})}return ie})();const K=new i.nKC("");let j=(()=>{class ie extends M{_platformLocation;_baseHref;_removeListenerFns=[];constructor(ye,se){super(),this._platformLocation=ye,this._baseHref=se??this._platformLocation.getBaseHrefFromDOM()??(0,i.WQX)(i.qQL).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ye){this._removeListenerFns.push(this._platformLocation.onPopState(ye),this._platformLocation.onHashChange(ye))}getBaseHref(){return this._baseHref}prepareExternalUrl(ye){return w(this._baseHref,ye)}path(ye=!1){const se=this._platformLocation.pathname+F(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&ye?`${se}${pe}`:se}pushState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.pushState(ye,se,L)}replaceState(ye,se,pe,Ee){const L=this.prepareExternalUrl(pe+F(Ee));this._platformLocation.replaceState(ye,se,L)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ye=0){this._platformLocation.historyGo?.(ye)}static \u0275fac=function(se){return new(se||ie)(i.KVO(A),i.KVO(K,8))};static \u0275prov=i.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})(),Z=(()=>{class ie{_subject=new g.B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(ye){this._locationStrategy=ye;const se=this._locationStrategy.getBaseHref();this._basePath=function $(ie){if(new RegExp("^(https?:)?//").test(ie)){const[,ye]=ie.split(/\/\/[^\/]+/);return ye}return ie}(f(Q(se))),this._locationStrategy.onPopState(pe=>{this._subject.next({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ye=!1){return this.normalize(this._locationStrategy.path(ye))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ye,se=""){return this.path()==this.normalize(ye+F(se))}normalize(ye){return ie.stripTrailingSlash(function V(ie,_e){if(!ie||!_e.startsWith(ie))return _e;const ye=_e.substring(ie.length);return""===ye||["/",";","?","#"].includes(ye[0])?ye:_e}(this._basePath,Q(ye)))}prepareExternalUrl(ye){return ye&&"/"!==ye[0]&&(ye="/"+ye),this._locationStrategy.prepareExternalUrl(ye)}go(ye,se="",pe=null){this._locationStrategy.pushState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}replaceState(ye,se="",pe=null){this._locationStrategy.replaceState(pe,"",ye,se),this._notifyUrlChangeListeners(this.prepareExternalUrl(ye+F(se)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ye=0){this._locationStrategy.historyGo?.(ye)}onUrlChange(ye){return this._urlChangeListeners.push(ye),this._urlChangeSubscription??=this.subscribe(se=>{this._notifyUrlChangeListeners(se.url,se.state)}),()=>{const se=this._urlChangeListeners.indexOf(ye);this._urlChangeListeners.splice(se,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ye="",se){this._urlChangeListeners.forEach(pe=>pe(ye,se))}subscribe(ye,se,pe){return this._subject.subscribe({next:ye,error:se??void 0,complete:pe??void 0})}static normalizeQueryParams=F;static joinWithSlash=w;static stripTrailingSlash=f;static \u0275fac=function(se){return new(se||ie)(i.KVO(M))};static \u0275prov=i.jDH({token:ie,factory:()=>function ee(){return new Z((0,i.KVO)(M))}(),providedIn:"root"})}return ie})();function Q(ie){return ie.replace(/\/index.html$/,"")}},29330(ke,q,l){"use strict";l.d(q,{$R:()=>Li,Nl:()=>s,Qq:()=>nt,Sx:()=>Ze,ZZ:()=>Zn,a7:()=>me,q1:()=>Ii});var A=l(10467),h=l(2615),d=l(73664),w=l(70274),f=l(5964),F=l(70980),M=l(96354),K=l(25558),j=l(71985),ee=(l(22806),l(7673)),V=l(52512);class Q{}class ${}class ie{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(nn){nn?"string"==typeof nn?this.lazyInit=()=>{this.headers=new Map,nn.split("\n").forEach(en=>{const Nn=en.indexOf(":");if(Nn>0){const jn=en.slice(0,Nn),Un=en.slice(Nn+1).trim();this.addHeaderEntry(jn,Un)}})}:typeof Headers<"u"&&nn instanceof Headers?(this.headers=new Map,nn.forEach((en,Nn)=>{this.addHeaderEntry(Nn,en)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(nn).forEach(([en,Nn])=>{this.setHeaderEntries(en,Nn)})}:this.headers=new Map}has(nn){return this.init(),this.headers.has(nn.toLowerCase())}get(nn){this.init();const en=this.headers.get(nn.toLowerCase());return en&&en.length>0?en[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(nn){return this.init(),this.headers.get(nn.toLowerCase())||null}append(nn,en){return this.clone({name:nn,value:en,op:"a"})}set(nn,en){return this.clone({name:nn,value:en,op:"s"})}delete(nn,en){return this.clone({name:nn,value:en,op:"d"})}maybeSetNormalizedName(nn,en){this.normalizedNames.has(en)||this.normalizedNames.set(en,nn)}init(){this.lazyInit&&(this.lazyInit instanceof ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(nn=>this.applyUpdate(nn)),this.lazyUpdate=null))}copyFrom(nn){nn.init(),Array.from(nn.headers.keys()).forEach(en=>{this.headers.set(en,nn.headers.get(en)),this.normalizedNames.set(en,nn.normalizedNames.get(en))})}clone(nn){const en=new ie;return en.lazyInit=this.lazyInit&&this.lazyInit instanceof ie?this.lazyInit:this,en.lazyUpdate=(this.lazyUpdate||[]).concat([nn]),en}applyUpdate(nn){const en=nn.name.toLowerCase();switch(nn.op){case"a":case"s":let Nn=nn.value;if("string"==typeof Nn&&(Nn=[Nn]),0===Nn.length)return;this.maybeSetNormalizedName(nn.name,en);const jn=("a"===nn.op?this.headers.get(en):void 0)||[];jn.push(...Nn),this.headers.set(en,jn);break;case"d":const Un=nn.value;if(Un){let ui=this.headers.get(en);if(!ui)return;ui=ui.filter(gn=>-1===Un.indexOf(gn)),0===ui.length?(this.headers.delete(en),this.normalizedNames.delete(en)):this.headers.set(en,ui)}else this.headers.delete(en),this.normalizedNames.delete(en)}}addHeaderEntry(nn,en){const Nn=nn.toLowerCase();this.maybeSetNormalizedName(nn,Nn),this.headers.has(Nn)?this.headers.get(Nn).push(en):this.headers.set(Nn,[en])}setHeaderEntries(nn,en){const Nn=(Array.isArray(en)?en:[en]).map(Un=>Un.toString()),jn=nn.toLowerCase();this.headers.set(jn,Nn),this.maybeSetNormalizedName(nn,jn)}forEach(nn){this.init(),Array.from(this.normalizedNames.keys()).forEach(en=>nn(this.normalizedNames.get(en),this.headers.get(en)))}}class ye{encodeKey(nn){return L(nn)}encodeValue(nn){return L(nn)}decodeKey(nn){return decodeURIComponent(nn)}decodeValue(nn){return decodeURIComponent(nn)}}const pe=/%(\d[a-f0-9])/gi,Ee={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function L(Nt){return encodeURIComponent(Nt).replace(pe,(nn,en)=>Ee[en]??nn)}function t(Nt){return`${Nt}`}class s{map;encoder;updates=null;cloneFrom=null;constructor(nn={}){if(this.encoder=nn.encoder||new ye,nn.fromString){if(nn.fromObject)throw new h.buA(2805,!1);this.map=function se(Nt,nn){const en=new Map;return Nt.length>0&&Nt.replace(/^\?/,"").split("&").forEach(jn=>{const Un=jn.indexOf("="),[ui,gn]=-1==Un?[nn.decodeKey(jn),""]:[nn.decodeKey(jn.slice(0,Un)),nn.decodeValue(jn.slice(Un+1))],zn=en.get(ui)||[];zn.push(gn),en.set(ui,zn)}),en}(nn.fromString,this.encoder)}else nn.fromObject?(this.map=new Map,Object.keys(nn.fromObject).forEach(en=>{const Nn=nn.fromObject[en],jn=Array.isArray(Nn)?Nn.map(t):[t(Nn)];this.map.set(en,jn)})):this.map=null}has(nn){return this.init(),this.map.has(nn)}get(nn){this.init();const en=this.map.get(nn);return en?en[0]:null}getAll(nn){return this.init(),this.map.get(nn)||null}keys(){return this.init(),Array.from(this.map.keys())}append(nn,en){return this.clone({param:nn,value:en,op:"a"})}appendAll(nn){const en=[];return Object.keys(nn).forEach(Nn=>{const jn=nn[Nn];Array.isArray(jn)?jn.forEach(Un=>{en.push({param:Nn,value:Un,op:"a"})}):en.push({param:Nn,value:jn,op:"a"})}),this.clone(en)}set(nn,en){return this.clone({param:nn,value:en,op:"s"})}delete(nn,en){return this.clone({param:nn,value:en,op:"d"})}toString(){return this.init(),this.keys().map(nn=>{const en=this.encoder.encodeKey(nn);return this.map.get(nn).map(Nn=>en+"="+this.encoder.encodeValue(Nn)).join("&")}).filter(nn=>""!==nn).join("&")}clone(nn){const en=new s({encoder:this.encoder});return en.cloneFrom=this.cloneFrom||this,en.updates=(this.updates||[]).concat(nn),en}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(nn=>this.map.set(nn,this.cloneFrom.map.get(nn))),this.updates.forEach(nn=>{switch(nn.op){case"a":case"s":const en=("a"===nn.op?this.map.get(nn.param):void 0)||[];en.push(t(nn.value)),this.map.set(nn.param,en);break;case"d":if(void 0===nn.value){this.map.delete(nn.param);break}{let Nn=this.map.get(nn.param)||[];const jn=Nn.indexOf(t(nn.value));-1!==jn&&Nn.splice(jn,1),Nn.length>0?this.map.set(nn.param,Nn):this.map.delete(nn.param)}}}),this.cloneFrom=this.updates=null)}}class u{map=new Map;set(nn,en){return this.map.set(nn,en),this}get(nn){return this.map.has(nn)||this.map.set(nn,nn.defaultValue()),this.map.get(nn)}delete(nn){return this.map.delete(nn),this}has(nn){return this.map.has(nn)}keys(){return this.map.keys()}}function T(Nt){return typeof ArrayBuffer<"u"&&Nt instanceof ArrayBuffer}function P(Nt){return typeof Blob<"u"&&Nt instanceof Blob}function C(Nt){return typeof FormData<"u"&&Nt instanceof FormData}const x="Content-Type",Y="Accept",R="X-Request-URL",U="text/plain",fe="application/json",re=`${fe}, ${U}, */*`;class he{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(nn,en,Nn,jn){let Un;if(this.url=en,this.method=nn.toUpperCase(),function _(Nt){switch(Nt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||jn?(this.body=void 0!==Nn?Nn:null,Un=jn):Un=Nn,Un){if(this.reportProgress=!!Un.reportProgress,this.withCredentials=!!Un.withCredentials,this.keepalive=!!Un.keepalive,Un.responseType&&(this.responseType=Un.responseType),Un.headers&&(this.headers=Un.headers),Un.context&&(this.context=Un.context),Un.params&&(this.params=Un.params),Un.priority&&(this.priority=Un.priority),Un.cache&&(this.cache=Un.cache),Un.credentials&&(this.credentials=Un.credentials),"number"==typeof Un.timeout){if(Un.timeout<1||!Number.isInteger(Un.timeout))throw new h.buA(2822,"");this.timeout=Un.timeout}Un.mode&&(this.mode=Un.mode),Un.redirect&&(this.redirect=Un.redirect),Un.integrity&&(this.integrity=Un.integrity),void 0!==Un.referrer&&(this.referrer=Un.referrer),this.transferCache=Un.transferCache}if(this.headers??=new ie,this.context??=new u,this.params){const ui=this.params.toString();if(0===ui.length)this.urlWithParams=en;else{const gn=en.indexOf("?");this.urlWithParams=en+(-1===gn?"?":gnGn.set(Qn,nn.setHeaders[Qn]),Ln)),nn.setParams&&(Jn=Object.keys(nn.setParams).reduce((Gn,Qn)=>Gn.set(Qn,nn.setParams[Qn]),Jn)),new he(en,Nn,pa,{params:Jn,headers:Ln,context:hi,reportProgress:dn,responseType:jn,withCredentials:ha,transferCache:aa,keepalive:Un,cache:gn,priority:ui,timeout:sa,mode:zn,redirect:kn,credentials:Kn,referrer:ci,integrity:Xn})}}var Oe=function(Nt){return Nt[Nt.Sent=0]="Sent",Nt[Nt.UploadProgress=1]="UploadProgress",Nt[Nt.ResponseHeader=2]="ResponseHeader",Nt[Nt.DownloadProgress=3]="DownloadProgress",Nt[Nt.Response=4]="Response",Nt[Nt.User=5]="User",Nt}(Oe||{});class ge{headers;status;statusText;url;ok;type;redirected;constructor(nn,en=200,Nn="OK"){this.headers=nn.headers||new ie,this.status=void 0!==nn.status?nn.status:en,this.statusText=nn.statusText||Nn,this.url=nn.url||null,this.redirected=nn.redirected,this.ok=this.status>=200&&this.status<300}}class ce extends ge{constructor(nn={}){super(nn)}type=Oe.ResponseHeader;clone(nn={}){return new ce({headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0})}}class Re extends ge{body;constructor(nn={}){super(nn),this.body=void 0!==nn.body?nn.body:null}type=Oe.Response;clone(nn={}){return new Re({body:void 0!==nn.body?nn.body:this.body,headers:nn.headers||this.headers,status:void 0!==nn.status?nn.status:this.status,statusText:nn.statusText||this.statusText,url:nn.url||this.url||void 0,redirected:nn.redirected??this.redirected})}}class Me extends ge{name="HttpErrorResponse";message;error;ok=!1;constructor(nn){super(nn,0,"Unknown Error"),this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${nn.url||"(unknown url)"}`:`Http failure response for ${nn.url||"(unknown url)"}: ${nn.status} ${nn.statusText}`,this.error=nn.error||null}}function be(Nt,nn){return{body:nn,headers:Nt.headers,context:Nt.context,observe:Nt.observe,params:Nt.params,reportProgress:Nt.reportProgress,responseType:Nt.responseType,withCredentials:Nt.withCredentials,credentials:Nt.credentials,transferCache:Nt.transferCache,timeout:Nt.timeout,keepalive:Nt.keepalive,priority:Nt.priority,cache:Nt.cache,mode:Nt.mode,redirect:Nt.redirect,integrity:Nt.integrity,referrer:Nt.referrer}}let nt=(()=>{class Nt{handler;constructor(en){this.handler=en}request(en,Nn,jn={}){let Un;if(en instanceof he)Un=en;else{let zn,kn;zn=jn.headers instanceof ie?jn.headers:new ie(jn.headers),jn.params&&(kn=jn.params instanceof s?jn.params:new s({fromObject:jn.params})),Un=new he(en,Nn,void 0!==jn.body?jn.body:null,{headers:zn,context:jn.context,params:kn,reportProgress:jn.reportProgress,responseType:jn.responseType||"json",withCredentials:jn.withCredentials,transferCache:jn.transferCache,keepalive:jn.keepalive,priority:jn.priority,cache:jn.cache,mode:jn.mode,redirect:jn.redirect,credentials:jn.credentials,referrer:jn.referrer,integrity:jn.integrity,timeout:jn.timeout})}const ui=(0,ee.of)(Un).pipe((0,w.H)(zn=>this.handler.handle(zn)));if(en instanceof he||"events"===jn.observe)return ui;const gn=ui.pipe((0,f.p)(zn=>zn instanceof Re));switch(jn.observe||"body"){case"body":switch(Un.responseType){case"arraybuffer":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof ArrayBuffer))throw new h.buA(2806,!1);return zn.body}));case"blob":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&!(zn.body instanceof Blob))throw new h.buA(2807,!1);return zn.body}));case"text":return gn.pipe((0,M.T)(zn=>{if(null!==zn.body&&"string"!=typeof zn.body)throw new h.buA(2808,!1);return zn.body}));default:return gn.pipe((0,M.T)(zn=>zn.body))}case"response":return gn;default:throw new h.buA(2809,!1)}}delete(en,Nn={}){return this.request("DELETE",en,Nn)}get(en,Nn={}){return this.request("GET",en,Nn)}head(en,Nn={}){return this.request("HEAD",en,Nn)}jsonp(en,Nn){return this.request("JSONP",en,{params:(new s).append(Nn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(en,Nn={}){return this.request("OPTIONS",en,Nn)}patch(en,Nn,jn={}){return this.request("PATCH",en,be(jn,Nn))}post(en,Nn,jn={}){return this.request("POST",en,be(jn,Nn))}put(en,Nn,jn={}){return this.request("PUT",en,be(jn,Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(Q))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const $e=/^\)\]\}',?\n/;function dt(Nt){if(Nt.url)return Nt.url;const nn=R.toLocaleLowerCase();return Nt.headers.get(nn)}const yt=new h.nKC("");let Et=(()=>{class Nt{fetchImpl=(0,h.WQX)(rt,{optional:!0})?.fetch??((...en)=>globalThis.fetch(...en));ngZone=(0,h.WQX)(d.SKi);destroyRef=(0,h.WQX)(h.abz);handle(en){return new j.c(Nn=>{const jn=new AbortController;let Un;return this.doRequest(en,jn.signal,Nn).then(Mn,ui=>Nn.error(new Me({error:ui}))),en.timeout&&(Un=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{jn.signal.aborted||jn.abort(new DOMException("signal timed out","TimeoutError"))},en.timeout))),()=>{void 0!==Un&&clearTimeout(Un),jn.abort()}})}doRequest(en,Nn,jn){var Un=this;return(0,A.A)(function*(){const ui=Un.createRequestInit(en);let gn;try{const pa=Un.ngZone.runOutsideAngular(()=>Un.fetchImpl(en.urlWithParams,{signal:Nn,...ui}));(function S(Nt){Nt.then(Mn,Mn)})(pa),jn.next({type:Oe.Sent}),gn=yield pa}catch(pa){return void jn.error(new Me({error:pa,status:pa.status??0,statusText:pa.statusText,url:en.urlWithParams,headers:pa.headers}))}const zn=new ie(gn.headers),kn=gn.statusText,Kn=dt(gn)??en.urlWithParams;let ci=gn.status,Xn=null;if(en.reportProgress&&jn.next(new ce({headers:zn,status:ci,statusText:kn,url:Kn})),gn.body){const pa=gn.headers.get("content-length"),ha=[],dn=gn.body.getReader();let Jn,hi,Ln=0;const Gn=typeof Zone<"u"&&Zone.current;let Qn=!1;if(yield Un.ngZone.runOutsideAngular((0,A.A)(function*(){for(;;){if(Un.destroyRef.destroyed){yield dn.cancel(),Qn=!0;break}const{done:ca,value:Sa}=yield dn.read();if(ca)break;if(ha.push(Sa),Ln+=Sa.length,en.reportProgress){hi="text"===en.responseType?(hi??"")+(Jn??=new TextDecoder).decode(Sa,{stream:!0}):void 0;const un=()=>jn.next({type:Oe.DownloadProgress,total:pa?+pa:void 0,loaded:Ln,partialText:hi});Gn?Gn.run(un):un()}}})),Qn)return void jn.complete();const Bi=Un.concatChunks(ha,Ln);try{const ca=gn.headers.get(x)??"";Xn=Un.parseBody(en,Bi,ca,ci)}catch(ca){return void jn.error(new Me({error:ca,headers:new ie(gn.headers),status:gn.status,statusText:gn.statusText,url:dt(gn)??en.urlWithParams}))}}0===ci&&(ci=Xn?200:0);const sa=gn.redirected;ci>=200&&ci<300?(jn.next(new Re({body:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa})),jn.complete()):jn.error(new Me({error:Xn,headers:zn,status:ci,statusText:kn,url:Kn,redirected:sa}))})()}parseBody(en,Nn,jn,Un){switch(en.responseType){case"json":const ui=(new TextDecoder).decode(Nn).replace($e,"");if(""===ui)return null;try{return JSON.parse(ui)}catch(gn){if(Un<200||Un>=300)return ui;throw gn}case"text":return(new TextDecoder).decode(Nn);case"blob":return new Blob([Nn],{type:jn});case"arraybuffer":return Nn.buffer}}createRequestInit(en){const Nn={};let jn;if(jn=en.credentials,en.withCredentials&&(jn="include"),en.headers.forEach((Un,ui)=>Nn[Un]=ui.join(",")),en.headers.has(Y)||(Nn[Y]=re),!en.headers.has(x)){const Un=en.detectContentTypeHeader();null!==Un&&(Nn[x]=Un)}return{body:en.serializeBody(),method:en.method,headers:Nn,credentials:jn,keepalive:en.keepalive,cache:en.cache,priority:en.priority,mode:en.mode,redirect:en.redirect,referrer:en.referrer,integrity:en.integrity}}concatChunks(en,Nn){const jn=new Uint8Array(Nn);let Un=0;for(const ui of en)jn.set(ui,Un),Un+=ui.length;return jn}static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();class rt{}function Mn(){}function Xt(Nt,nn){return nn(Nt)}function de(Nt,nn){return(en,Nn)=>nn.intercept(en,{handle:jn=>Nt(jn,Nn)})}const me=new h.nKC(""),Le=new h.nKC(""),et=new h.nKC(""),tn=new h.nKC("",{providedIn:"root",factory:()=>!0});function Vt(){let Nt=null;return(nn,en)=>{null===Nt&&(Nt=((0,h.WQX)(me,{optional:!0})??[]).reduceRight(de,Xt));const Nn=(0,h.WQX)(h.u5s);if((0,h.WQX)(tn)){const Un=Nn.add();return Nt(nn,en).pipe((0,F.j)(Un))}return Nt(nn,en)}}let En=(()=>{class Nt extends Q{backend;injector;chain=null;pendingTasks=(0,h.WQX)(h.u5s);contributeToStability=(0,h.WQX)(tn);constructor(en,Nn){super(),this.backend=en,this.injector=Nn}handle(en){if(null===this.chain){const Nn=Array.from(new Set([...this.injector.get(Le),...this.injector.get(et,[])]));this.chain=Nn.reduceRight((jn,Un)=>function ae(Nt,nn,en){return(Nn,jn)=>(0,h.N4e)(en,()=>nn(Nn,Un=>Nt(Un,jn)))}(jn,Un,this.injector),Xt)}if(this.contributeToStability){const Nn=this.pendingTasks.add();return this.chain(en,jn=>this.backend.handle(jn)).pipe((0,F.j)(Nn))}return this.chain(en,Nn=>this.backend.handle(Nn))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO($),h.KVO(h.uvJ))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const zt=/^\)\]\}',?\n/,Ye=RegExp(`^${R}:`,"m");let He=(()=>{class Nt{xhrFactory;constructor(en){this.xhrFactory=en}handle(en){if("JSONP"===en.method)throw new h.buA(-2800,!1);const Nn=this.xhrFactory;return(0,ee.of)(null).pipe((0,K.n)(()=>new j.c(Un=>{const ui=Nn.build();if(ui.open(en.method,en.urlWithParams),en.withCredentials&&(ui.withCredentials=!0),en.headers.forEach((ha,dn)=>ui.setRequestHeader(ha,dn.join(","))),en.headers.has(Y)||ui.setRequestHeader(Y,re),!en.headers.has(x)){const ha=en.detectContentTypeHeader();null!==ha&&ui.setRequestHeader(x,ha)}if(en.timeout&&(ui.timeout=en.timeout),en.responseType){const ha=en.responseType.toLowerCase();ui.responseType="json"!==ha?ha:"text"}const gn=en.serializeBody();let zn=null;const kn=()=>{if(null!==zn)return zn;const ha=ui.statusText||"OK",dn=new ie(ui.getAllResponseHeaders()),Ln=function st(Nt){return"responseURL"in Nt&&Nt.responseURL?Nt.responseURL:Ye.test(Nt.getAllResponseHeaders())?Nt.getResponseHeader(R):null}(ui)||en.url;return zn=new ce({headers:dn,status:ui.status,statusText:ha,url:Ln}),zn},Kn=()=>{let{headers:ha,status:dn,statusText:Ln,url:Jn}=kn(),hi=null;204!==dn&&(hi=typeof ui.response>"u"?ui.responseText:ui.response),0===dn&&(dn=hi?200:0);let Gn=dn>=200&&dn<300;if("json"===en.responseType&&"string"==typeof hi){const Qn=hi;hi=hi.replace(zt,"");try{hi=""!==hi?JSON.parse(hi):null}catch(Bi){hi=Qn,Gn&&(Gn=!1,hi={error:Bi,text:hi})}}Gn?(Un.next(new Re({body:hi,headers:ha,status:dn,statusText:Ln,url:Jn||void 0})),Un.complete()):Un.error(new Me({error:hi,headers:ha,status:dn,statusText:Ln,url:Jn||void 0}))},ci=ha=>{const{url:dn}=kn(),Ln=new Me({error:ha,status:ui.status||0,statusText:ui.statusText||"Unknown Error",url:dn||void 0});Un.error(Ln)};let Xn=ci;en.timeout&&(Xn=ha=>{const{url:dn}=kn(),Ln=new Me({error:new DOMException("Request timed out","TimeoutError"),status:ui.status||0,statusText:ui.statusText||"Request timeout",url:dn||void 0});Un.error(Ln)});let aa=!1;const sa=ha=>{aa||(Un.next(kn()),aa=!0);let dn={type:Oe.DownloadProgress,loaded:ha.loaded};ha.lengthComputable&&(dn.total=ha.total),"text"===en.responseType&&ui.responseText&&(dn.partialText=ui.responseText),Un.next(dn)},pa=ha=>{let dn={type:Oe.UploadProgress,loaded:ha.loaded};ha.lengthComputable&&(dn.total=ha.total),Un.next(dn)};return ui.addEventListener("load",Kn),ui.addEventListener("error",ci),ui.addEventListener("timeout",Xn),ui.addEventListener("abort",ci),en.reportProgress&&(ui.addEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.addEventListener("progress",pa)),ui.send(gn),Un.next({type:Oe.Sent}),()=>{ui.removeEventListener("error",ci),ui.removeEventListener("abort",ci),ui.removeEventListener("load",Kn),ui.removeEventListener("timeout",Xn),en.reportProgress&&(ui.removeEventListener("progress",sa),null!==gn&&ui.upload&&ui.upload.removeEventListener("progress",pa)),ui.readyState!==ui.DONE&&ui.abort()}})))}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(V.N))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const Wt=new h.nKC(""),We=new h.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),St=new h.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class At{}let fn=(()=>{class Nt{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(en,Nn){this.doc=en,this.cookieName=Nn}getToken(){const en=this.doc.cookie||"";return en!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,V.b)(en,this.cookieName),this.lastCookieString=en),this.lastToken}static \u0275fac=function(Nn){return new(Nn||Nt)(h.KVO(h.qQL),h.KVO(We))};static \u0275prov=h.jDH({token:Nt,factory:Nt.\u0275fac})}return Nt})();const mt=/^(?:https?:)?\/\//i;function It(Nt,nn){if(!(0,h.WQX)(Wt)||"GET"===Nt.method||"HEAD"===Nt.method||mt.test(Nt.url))return nn(Nt);const en=(0,h.WQX)(At).getToken(),Nn=(0,h.WQX)(St);return null!=en&&!Nt.headers.has(Nn)&&(Nt=Nt.clone({headers:Nt.headers.set(Nn,en)})),nn(Nt)}var In=function(Nt){return Nt[Nt.Interceptors=0]="Interceptors",Nt[Nt.LegacyInterceptors=1]="LegacyInterceptors",Nt[Nt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Nt[Nt.NoXsrfProtection=3]="NoXsrfProtection",Nt[Nt.JsonpSupport=4]="JsonpSupport",Nt[Nt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Nt[Nt.Fetch=6]="Fetch",Nt}(In||{});function ei(Nt,nn){return{\u0275kind:Nt,\u0275providers:nn}}function Li(...Nt){const nn=[nt,He,En,{provide:Q,useExisting:En},{provide:$,useFactory:()=>(0,h.WQX)(yt,{optional:!0})??(0,h.WQX)(He)},{provide:Le,useValue:It,multi:!0},{provide:Wt,useValue:!0},{provide:At,useClass:fn}];for(const en of Nt)nn.push(...en.\u0275providers);return(0,h.EmA)(nn)}const Ot=new h.nKC("");function Ze(){return ei(In.LegacyInterceptors,[{provide:Ot,useFactory:Vt},{provide:Le,useExisting:Ot,multi:!0}])}function Zn(){return ei(In.Fetch,[Et,{provide:yt,useExisting:Et},{provide:$,useExisting:Et}])}let Ii=(()=>{class Nt{static \u0275fac=function(Nn){return new(Nn||Nt)};static \u0275mod=d.$C({type:Nt});static \u0275inj=h.G2t({providers:[Li(Ze())]})}return Nt})()},52512(ke,q,l){"use strict";function i(p,D){D=encodeURIComponent(D);for(const o of p.split(";")){const e=o.indexOf("="),[A,h]=-1==e?[o,""]:[o.slice(0,e),o.slice(e+1)];if(A.trim()===D)return decodeURIComponent(h)}return null}l.d(q,{N:()=>g,b:()=>i});class g{}},17705(ke,q,l){"use strict";l.d(q,{ES_:()=>vt,HJs:()=>Io,Hbi:()=>vi,L39:()=>di,MKu:()=>Eo,Udg:()=>ji,_q3:()=>Sr,a0P:()=>Al,cCO:()=>rn,ebz:()=>Ar,fpN:()=>ns,gRc:()=>Ni,geq:()=>Cs,hFB:()=>$a,naY:()=>ct,oH4:()=>Yr,sbv:()=>zo,uEv:()=>Vl});var ht=l(2615),Gt=l(48440),cn=l(73664),si=l(59295);const pi=Symbol("InputSignalNode#UNSET"),Oi={...Gt.s0,transformFn:void 0,applyValueToInputSignal(Bt,ft){(0,Gt.j2)(Bt,ft)}};function mn(Bt,ft){const Tt=Object.create(Oi);function on(){if((0,Gt.mK)(Tt),Tt.value===pi)throw new ht.buA(-950,null);return Tt.value}return Tt.value=Bt,Tt.transformFn=ft?.transform,on[Gt.bh]=Tt,on}class vt{attributeName;constructor(ft){this.attributeName=ft}__NG_ELEMENT_ID__=()=>(0,cn.kS0)(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}}const rn=new ht.nKC("");function va(Bt,ft){return mn(Bt,ft)}rn.__NG_ELEMENT_ID__=Bt=>{const ft=(0,ht.Mx4)();if(null===ft)throw new ht.buA(204,!1);if(2&ft.type)return ft.value;if(8&Bt)return null;throw new ht.buA(204,!1)};const $a=(va.required=function Va(Bt){return mn(pi,Bt)},va);function ir(Bt,ft){return(0,cn.mU9)(ft)}const Ar=(ir.required=function Ga(Bt,ft){return(0,cn.hnC)(ft)},ir);function us(Bt,ft){return(0,cn.mU9)(ft)}const zo=(us.required=function hs(Bt,ft){return(0,cn.hnC)(ft)},us);function ms(Bt,ft){const Tt=Object.create(Oi),on=new si.Zf;function Hn(){return(0,Gt.mK)(Tt),bo(Tt.value),Tt.value}return Tt.value=Bt,Hn[Gt.bh]=Tt,Hn.asReadonly=ht.HO5.bind(Hn),Hn.set=ni=>{Tt.equal(Tt.value,ni)||((0,Gt.j2)(Tt,ni),on.emit(ni))},Hn.update=ni=>{bo(Tt.value),Hn.set(ni(Tt.value))},Hn.subscribe=on.subscribe.bind(on),Hn.destroyRef=on.destroyRef,Hn}function bo(Bt){if(Bt===pi)throw new ht.buA(952,!1)}function Zr(Bt,ft){return ms(Bt)}const Cs=(Zr.required=function js(Bt){return ms(pi)},Zr),ar=new ht.nKC(""),Xr=new ht.nKC("");function Kr(Bt){return!Bt.moduleRef}let Hi;function Mr(){Hi=gs}function gs(Bt,ft){const Tt=Bt.injector.get(cn.o8S);if(Bt._bootstrapComponents.length>0)Bt._bootstrapComponents.forEach(on=>Tt.bootstrap(on));else{if(!Bt.instance.ngDoBootstrap)throw new ht.buA(-403,!1);Bt.instance.ngDoBootstrap(Tt)}ft.push(Bt)}let Pa=(()=>{class Bt{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(Tt){this._injector=Tt}bootstrapModuleFactory(Tt,on){const Hn=on?.scheduleInRootZone,Mi=on?.ignoreChangesOutsideZone,ki=[(0,cn.SdI)({ngZoneFactory:()=>(0,cn.G5x)(on?.ngZone,{...(0,cn.cZr)({eventCoalescing:on?.ngZoneEventCoalescing,runCoalescing:on?.ngZoneRunCoalescing}),scheduleInRootZone:Hn}),ignoreChangesOutsideZone:Mi}),{provide:ht.hk6,useExisting:cn.Ts$},ht.gv8],$i=(0,cn.VzW)(Tt.moduleType,this.injector,ki);return Mr(),function Ms(Bt){const ft=Kr(Bt)?Bt.r3Injector:Bt.moduleRef.injector,Tt=ft.get(cn.SKi);return Tt.run(()=>{Kr(Bt)?Bt.r3Injector.resolveInjectorInitializers():Bt.moduleRef.resolveInjectorInitializers();const on=ft.get(ht.ZTf);let Hn;if(Tt.runOutsideAngular(()=>{Hn=Tt.onError.subscribe({next:on})}),Kr(Bt)){const ni=()=>ft.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),ft.onDestroy(()=>{Hn.unsubscribe(),Mi.delete(ni)})}else{const ni=()=>Bt.moduleRef.destroy(),Mi=Bt.platformInjector.get(ar);Mi.add(ni),Bt.moduleRef.onDestroy(()=>{(0,cn.TFI)(Bt.allPlatformModules,Bt.moduleRef),Hn.unsubscribe(),Mi.delete(ni)})}return function qr(Bt,ft,Tt){try{const on=Tt();return(0,cn.yLl)(on)?on.catch(Hn=>{throw ft.runOutsideAngular(()=>Bt(Hn)),Hn}):on}catch(on){throw ft.runOutsideAngular(()=>Bt(on)),on}}(on,Tt,()=>{const ni=ft.get(ht.rev),Mi=ni.add(),ki=ft.get(cn.H1s);return ki.runInitializers(),ki.donePromise.then(()=>{const $i=ft.get(cn.xe9,cn.DkB);if((0,cn.e6s)($i||cn.DkB),!ft.get(Xr,!0))return Kr(Bt)?ft.get(cn.o8S):(Bt.allPlatformModules.push(Bt.moduleRef),Bt.moduleRef);if(Kr(Bt)){const ba=ft.get(cn.o8S);return void 0!==Bt.rootComponent&&ba.bootstrap(Bt.rootComponent),ba}return Hi?.(Bt.moduleRef,Bt.allPlatformModules),Bt.moduleRef}).finally(()=>{ni.remove(Mi)})})})}({moduleRef:$i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(Tt,on=[]){const Hn=(0,cn.lJT)({},on);return Mr(),function Jo(Bt,ft,Tt){const on=new cn.Co$(Tt);return Promise.resolve(on)}(0,0,Tt).then(ni=>this.bootstrapModuleFactory(ni,Hn))}onDestroy(Tt){this._destroyListeners.push(Tt)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new ht.buA(404,!1);this._modules.slice().forEach(on=>on.destroy()),this._destroyListeners.forEach(on=>on());const Tt=this._injector.get(ar,null);Tt&&(Tt.forEach(on=>on()),Tt.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(ht.zZn))};static \u0275prov=(0,ht.jDH)({token:Bt,factory:Bt.\u0275fac,providedIn:"platform"})}return Bt})(),_s=null;function Yr(Bt,ft,Tt=[]){const on=`Platform: ${ft}`,Hn=new ht.nKC(on);return(ni=[])=>{let Mi=Za();if(!Mi){const ki=[...Tt,...ni,{provide:Hn,useValue:!0}];Mi=Bt?.(ki)??function es(Bt){if(Za())throw new ht.buA(400,!1);(0,cn.pl0)(),(0,cn.ypd)(),_s=Bt;const ft=Bt.get(Pa);return function Ws(Bt){const ft=Bt.get(cn.PLl,null);(0,ht.N4e)(Bt,()=>{ft?.forEach(Tt=>Tt())})}(Bt),ft}(function Aa(Bt=[],ft){return ht.zZn.create({name:ft,providers:[{provide:ht.GBX,useValue:"platform"},{provide:ar,useValue:new Set([()=>_s=null])},...Bt]})}(ki,on))}return function Ha(){const ft=Za();if(!ft)throw new ht.buA(-401,!1);return ft}()}}function Za(){return _s?.get(Pa)??null}function ct(){return!1}let Ni=(()=>class Bt{static __NG_ELEMENT_ID__=da})();function da(Bt){return function Er(Bt,ft,Tt){if((0,ht.Qs1)(Bt)&&!Tt){const on=(0,ht.KdJ)(Bt.index,ft);return new cn.NCX(on,on)}return 175&Bt.type?new cn.NCX(ft[ht.b5C],ft):null}((0,ht.Mx4)(),(0,ht.OAn)(),!(16&~Bt))}class _t{constructor(){}supports(ft){return(0,cn.ozJ)(ft)}create(ft){return new Bn(ft)}}const xn=(Bt,ft)=>ft;class Bn{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(ft){this._trackByFn=ft||xn}forEachItem(ft){let Tt;for(Tt=this._itHead;null!==Tt;Tt=Tt._next)ft(Tt)}forEachOperation(ft){let Tt=this._itHead,on=this._removalsHead,Hn=0,ni=null;for(;Tt||on;){const Mi=!on||Tt&&Tt.currentIndex{Mi=this._trackByFn(Hn,ki),null!==Tt&&Object.is(Tt.trackById,Mi)?(on&&(Tt=this._verifyReinsertion(Tt,ki,Mi,Hn)),Object.is(Tt.item,ki)||this._addIdentityChange(Tt,ki)):(Tt=this._mismatch(Tt,ki,Mi,Hn),on=!0),Tt=Tt._next,Hn++}),this.length=Hn;return this._truncate(Tt),this.collection=ft,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let ft;for(ft=this._previousItHead=this._itHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._additionsHead;null!==ft;ft=ft._nextAdded)ft.previousIndex=ft.currentIndex;for(this._additionsHead=this._additionsTail=null,ft=this._movesHead;null!==ft;ft=ft._nextMoved)ft.previousIndex=ft.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(ft,Tt,on,Hn){let ni;return null===ft?ni=this._itTail:(ni=ft._prev,this._remove(ft)),null!==(ft=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._reinsertAfter(ft,ni,Hn)):null!==(ft=null===this._linkedRecords?null:this._linkedRecords.get(on,Hn))?(Object.is(ft.item,Tt)||this._addIdentityChange(ft,Tt),this._moveAfter(ft,ni,Hn)):ft=this._addAfter(new wi(Tt,on),ni,Hn),ft}_verifyReinsertion(ft,Tt,on,Hn){let ni=null===this._unlinkedRecords?null:this._unlinkedRecords.get(on,null);return null!==ni?ft=this._reinsertAfter(ni,ft._prev,Hn):ft.currentIndex!=Hn&&(ft.currentIndex=Hn,this._addToMoves(ft,Hn)),ft}_truncate(ft){for(;null!==ft;){const Tt=ft._next;this._addToRemovals(this._unlink(ft)),ft=Tt}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(ft,Tt,on){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(ft);const Hn=ft._prevRemoved,ni=ft._nextRemoved;return null===Hn?this._removalsHead=ni:Hn._nextRemoved=ni,null===ni?this._removalsTail=Hn:ni._prevRemoved=Hn,this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_moveAfter(ft,Tt,on){return this._unlink(ft),this._insertAfter(ft,Tt,on),this._addToMoves(ft,on),ft}_addAfter(ft,Tt,on){return this._insertAfter(ft,Tt,on),this._additionsTail=null===this._additionsTail?this._additionsHead=ft:this._additionsTail._nextAdded=ft,ft}_insertAfter(ft,Tt,on){const Hn=null===Tt?this._itHead:Tt._next;return ft._next=Hn,ft._prev=Tt,null===Hn?this._itTail=ft:Hn._prev=ft,null===Tt?this._itHead=ft:Tt._next=ft,null===this._linkedRecords&&(this._linkedRecords=new ur),this._linkedRecords.put(ft),ft.currentIndex=on,ft}_remove(ft){return this._addToRemovals(this._unlink(ft))}_unlink(ft){null!==this._linkedRecords&&this._linkedRecords.remove(ft);const Tt=ft._prev,on=ft._next;return null===Tt?this._itHead=on:Tt._next=on,null===on?this._itTail=Tt:on._prev=Tt,ft}_addToMoves(ft,Tt){return ft.previousIndex===Tt||(this._movesTail=null===this._movesTail?this._movesHead=ft:this._movesTail._nextMoved=ft),ft}_addToRemovals(ft){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ur),this._unlinkedRecords.put(ft),ft.currentIndex=null,ft._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=ft,ft._prevRemoved=null):(ft._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=ft),ft}_addIdentityChange(ft,Tt){return ft.item=Tt,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=ft:this._identityChangesTail._nextIdentityChange=ft,ft}}class wi{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(ft,Tt){this.item=ft,this.trackById=Tt}}class Ea{_head=null;_tail=null;add(ft){null===this._head?(this._head=this._tail=ft,ft._nextDup=null,ft._prevDup=null):(this._tail._nextDup=ft,ft._prevDup=this._tail,ft._nextDup=null,this._tail=ft)}get(ft,Tt){let on;for(on=this._head;null!==on;on=on._nextDup)if((null===Tt||Tt<=on.currentIndex)&&Object.is(on.trackById,ft))return on;return null}remove(ft){const Tt=ft._prevDup,on=ft._nextDup;return null===Tt?this._head=on:Tt._nextDup=on,null===on?this._tail=Tt:on._prevDup=Tt,null===this._head}}class ur{map=new Map;put(ft){const Tt=ft.trackById;let on=this.map.get(Tt);on||(on=new Ea,this.map.set(Tt,on)),on.add(ft)}get(ft,Tt){const Hn=this.map.get(ft);return Hn?Hn.get(ft,Tt):null}remove(ft){const Tt=ft.trackById;return this.map.get(Tt).remove(ft)&&this.map.delete(Tt),ft}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function eo(Bt,ft,Tt){const on=Bt.previousIndex;if(null===on)return on;let Hn=0;return Tt&&on{if(Tt&&Tt.key===Hn)this._maybeAddToChanges(Tt,on),this._appendAfter=Tt,Tt=Tt._next;else{const ni=this._getOrCreateRecordForKey(Hn,on);Tt=this._insertBeforeOrAppend(Tt,ni)}}),Tt){Tt._prev&&(Tt._prev._next=null),this._removalsHead=Tt;for(let on=Tt;null!==on;on=on._nextRemoved)on===this._mapHead&&(this._mapHead=null),this._records.delete(on.key),on._nextRemoved=on._next,on.previousValue=on.currentValue,on.currentValue=null,on._prev=null,on._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(ft,Tt){if(ft){const on=ft._prev;return Tt._next=ft,Tt._prev=on,ft._prev=Tt,on&&(on._next=Tt),ft===this._mapHead&&(this._mapHead=Tt),this._appendAfter=ft,ft}return this._appendAfter?(this._appendAfter._next=Tt,Tt._prev=this._appendAfter):this._mapHead=Tt,this._appendAfter=Tt,null}_getOrCreateRecordForKey(ft,Tt){if(this._records.has(ft)){const Hn=this._records.get(ft);this._maybeAddToChanges(Hn,Tt);const ni=Hn._prev,Mi=Hn._next;return ni&&(ni._next=Mi),Mi&&(Mi._prev=ni),Hn._next=null,Hn._prev=null,Hn}const on=new qo(ft);return this._records.set(ft,on),on.currentValue=Tt,this._addToAdditions(on),on}_reset(){if(this.isDirty){let ft;for(this._previousMapHead=this._mapHead,ft=this._previousMapHead;null!==ft;ft=ft._next)ft._nextPrevious=ft._next;for(ft=this._changesHead;null!==ft;ft=ft._nextChanged)ft.previousValue=ft.currentValue;for(ft=this._additionsHead;null!=ft;ft=ft._nextAdded)ft.previousValue=ft.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(ft,Tt){Object.is(Tt,ft.currentValue)||(ft.previousValue=ft.currentValue,ft.currentValue=Tt,this._addToChanges(ft))}_addToAdditions(ft){null===this._additionsHead?this._additionsHead=this._additionsTail=ft:(this._additionsTail._nextAdded=ft,this._additionsTail=ft)}_addToChanges(ft){null===this._changesHead?this._changesHead=this._changesTail=ft:(this._changesTail._nextChanged=ft,this._changesTail=ft)}_forEach(ft,Tt){ft instanceof Map?ft.forEach(Tt):Object.keys(ft).forEach(on=>Tt(ft[on],on))}}class qo{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(ft){this.key=ft}}function yl(){return new Sr([new _t])}let Sr=(()=>{class Bt{factories;static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:yl});constructor(Tt){this.factories=Tt}static create(Tt,on){if(null!=on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||yl())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(null!=on)return on;throw new ht.buA(901,!1)}}return Bt})();function Mo(){return new Eo([new Co])}let Eo=(()=>{class Bt{static \u0275prov=(0,ht.jDH)({token:Bt,providedIn:"root",factory:Mo});factories;constructor(Tt){this.factories=Tt}static create(Tt,on){if(on){const Hn=on.factories.slice();Tt=Tt.concat(Hn)}return new Bt(Tt)}static extend(Tt){return{provide:Bt,useFactory:()=>{const on=(0,ht.WQX)(Bt,{optional:!0,skipSelf:!0});return Bt.create(Tt,on||Mo())}}}find(Tt){const on=this.factories.find(Hn=>Hn.supports(Tt));if(on)return on;throw new ht.buA(901,!1)}}return Bt})();const ns=Yr(null,"core",[]);let vi=(()=>{class Bt{constructor(Tt){}static \u0275fac=function(on){return new(on||Bt)((0,ht.KVO)(cn.o8S))};static \u0275mod=(0,cn.$C)({type:Bt});static \u0275inj=(0,ht.G2t)({})}return Bt})();function di(Bt){return"boolean"==typeof Bt?Bt:null!=Bt&&"false"!==Bt}function ji(Bt,ft=NaN){return isNaN(parseFloat(Bt))||isNaN(Number(Bt))?ft:Number(Bt)}const pl=Symbol("NOT_SET"),il=new Set,Lo={...Gt.s0,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:pl,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase((0,Gt.mK)(ra),ra.value),ra.signal[Gt.bh]=ra,ra.registerCleanupFn=ba=>(ra.cleanup??=new Set).add(ba),this.nodes[ki]=ra,this.hooks[ki]=ba=>ra.phaseFn(ba)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(const ft of this.nodes)if(ft)try{for(const Tt of ft.cleanup??il)Tt()}finally{(0,Gt.XR)(ft)}}}function Vl(Bt,ft){const Tt=ft?.injector??(0,ht.WQX)(ht.zZn),on=Tt.get(ht.hk6),Hn=Tt.get(cn.cf$),ni=Tt.get(cn.a8H,null,{optional:!0});Hn.impl??=Tt.get(cn.ziy);let Mi=Bt;"function"==typeof Mi&&(Mi={mixedReadWrite:Bt});const ki=Tt.get(ht.r4V,null,{optional:!0}),$i=new Dl(Hn.impl,[Mi.earlyRead,Mi.write,Mi.mixedReadWrite,Mi.read],ki?.view,on,Tt,ni?.snapshot(null));return Hn.impl.register($i),$i}function Al(Bt,ft){const Tt=(0,ht.xUg)(Bt),on=ft.elementInjector||(0,ht.WB9)();return new cn.eHC(Tt).create(on,ft.projectableNodes,ft.hostElement,ft.environmentInjector,ft.directives,ft.bindings)}function Io(Bt){const ft=(0,ht.xUg)(Bt);if(!ft)return null;const Tt=new cn.eHC(ft);return{get selector(){return Tt.selector},get type(){return Tt.componentType},get inputs(){return Tt.inputs},get outputs(){return Tt.outputs},get ngContentSelectors(){return Tt.ngContentSelectors},get isStandalone(){return ft.standalone},get isSignal(){return ft.signals}}}},73664(ke,q,l){"use strict";l.d(q,{$C:()=>_p,$Ln:()=>c8,AVh:()=>B4,Ab1:()=>G1,Agw:()=>Go,Avn:()=>mm,B1s:()=>Mt,BIS:()=>Ho,BMQ:()=>Yp,C4Q:()=>Bd,C5r:()=>Y6,C6U:()=>T_,C7A:()=>Rr,Co$:()=>fp,DH7:()=>s5,DNE:()=>v4,DUP:()=>Yo,DkB:()=>u6,Dyx:()=>W8,E5c:()=>B6,EFF:()=>U4,EJ8:()=>V3,FsC:()=>U3,FuF:()=>O3,G5x:()=>zc,GBs:()=>E_,H1s:()=>Bp,HbH:()=>B_,Hgh:()=>a6,JRh:()=>N6,Jt5:()=>d6,Jv_:()=>g5,KED:()=>z9,LHq:()=>Em,Lme:()=>F6,NAR:()=>M_,NCX:()=>Fd,NOj:()=>W2,NSC:()=>M2,NYb:()=>x7,NyB:()=>D_,OA$:()=>St,OR8:()=>Kc,Ocv:()=>dy,Ol2:()=>z3,PLl:()=>Vo,PYC:()=>An,PYt:()=>cl,PeT:()=>y4,QTQ:()=>Ac,Ql9:()=>ay,R50:()=>U6,R7$:()=>rd,RPW:()=>zi,RV6:()=>Q8,SKi:()=>pr,SdG:()=>M6,SdI:()=>Z5,SpI:()=>V4,TFI:()=>S4,Ts$:()=>ag,UQu:()=>iy,V5L:()=>Rm,VBU:()=>pp,VeQ:()=>xl,VkB:()=>u5,Vt3:()=>m4,VwU:()=>xm,VzW:()=>mp,WPN:()=>Ta,XpG:()=>x_,Xx1:()=>Pe,Y8G:()=>cm,YEm:()=>hr,Z7z:()=>H8,Zhj:()=>lp,_9s:()=>Xc,_9u:()=>Bl,_jY:()=>Qs,_qm:()=>js,_ys:()=>au,a8H:()=>Fc,aCM:()=>wt,aKT:()=>Pr,ai1:()=>h5,bIt:()=>bm,bMT:()=>I5,bVm:()=>yh,bc$:()=>ws,bkB:()=>lc,brH:()=>k5,c1b:()=>Qo,cDI:()=>kr,cZr:()=>tg,cdK:()=>u8,cf$:()=>b1,czy:()=>Ad,d80:()=>ry,dOL:()=>l8,e6s:()=>bv,eHC:()=>o2,eq3:()=>Tm,eu8:()=>s6,eux:()=>vh,fX1:()=>G8,gXe:()=>Ui,giA:()=>J3,gil:()=>_r,hnC:()=>$s,i5U:()=>K6,iLQ:()=>f8,iWE:()=>Ft,j41:()=>O4,jOp:()=>Kp,k0s:()=>dm,kBR:()=>c6,kS0:()=>va,kdw:()=>Qe,lJ4:()=>b5,lJT:()=>p8,l_i:()=>x5,lsd:()=>S_,mGM:()=>w_,mNQ:()=>d5,mU9:()=>f2,mal:()=>M0,mxI:()=>wm,n$t:()=>B2,nI1:()=>A5,nI4:()=>lu,nM4:()=>xp,nVh:()=>z8,npT:()=>l0,nrm:()=>i6,o8S:()=>q3,ozJ:()=>e4,p2i:()=>ai,phd:()=>M7,pl0:()=>m8,qex:()=>hm,rAh:()=>On,rOR:()=>Uo,rXU:()=>ys,rj2:()=>um,sFG:()=>$f,sMw:()=>C5,sZ2:()=>ns,sdS:()=>A_,sgu:()=>dp,tSv:()=>H2,tvf:()=>Wo,uiO:()=>le,utN:()=>Ym,vDg:()=>Qm,vxM:()=>U8,w6W:()=>B3,wEZ:()=>Cm,wni:()=>E6,wr$:()=>id,xGo:()=>vt,xc7:()=>I6,xe9:()=>q5,yLl:()=>d8,y_5:()=>Fe,ypd:()=>E7,ziy:()=>Uc,zoo:()=>C0});var qt=l(10467),S=l(2615),Xt=l(48440),de=l(21413),ae=l(18359),me=l(96354);function Le(n){return{toString:n}.toString()}const et="__annotations__",tn="__parameters__",Vt="__prop__metadata__";function hn(n,r,c,b,k){return Le(()=>{const W=En(r);function te(...xe){if(this instanceof te)return W.call(this,...xe),this;const Ae=new te(...xe);return function(Ct){return k&&k(Ct,...xe),(Ct.hasOwnProperty(et)?Ct[et]:Object.defineProperty(Ct,et,{value:[]})[et]).push(Ae),Ct}}return c&&(te.prototype=Object.create(c.prototype)),te.prototype.ngMetadataName=n,te.annotationCls=te,te})}function En(n){return function(...c){if(n){const b=n(...c);for(const k in b)this[k]=b[k]}}}function _n(n,r,c){return Le(()=>{const b=En(r);function k(...W){if(this instanceof k)return b.apply(this,W),this;const te=new k(...W);return xe.annotation=te,xe;function xe(Ae,ut,Ct){const Zt=Ae.hasOwnProperty(tn)?Ae[tn]:Object.defineProperty(Ae,tn,{value:[]})[tn];for(;Zt.length<=Ct;)Zt.push(null);return(Zt[Ct]=Zt[Ct]||[]).push(te),Ae}}return k.prototype.ngMetadataName=n,k.annotationCls=k,k})}const Fe=(0,S.z6V)(_n("Inject",n=>({token:n})),-1),Pe=(0,S.z6V)(_n("Optional"),8),Ue=(0,S.z6V)(_n("Self"),2),Qe=(0,S.z6V)(_n("SkipSelf"),4),Ie=(0,S.z6V)(_n("Host"),1);function le(n){const r=S.laP.ng;if(r&&r.\u0275compilerFacade)return r.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ne={\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275inject:S.KVO,\u0275\u0275invalidFactoryDep:S.dmw,resolveForwardRef:S.nl4},ze=Function;function Je(n){return"function"==typeof n}const gt=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,zt=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ye=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,st=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class He{_reflect;constructor(r){this._reflect=r||S.laP.Reflect}factory(r){return(...c)=>new r(...c)}_zipTypesAndAnnotations(r,c){let b;b=(0,S.WfI)(typeof r>"u"?c.length:r.length);for(let k=0;k"u"?[]:r[k]&&r[k]!=Object?[r[k]]:[],c&&null!=c[k]&&(b[k]=b[k].concat(c[k]));return b}_ownParameters(r,c){if(function it(n){return gt.test(n)||st.test(n)||zt.test(n)&&!Ye.test(n)}(r.toString()))return null;if(r.parameters&&r.parameters!==c.parameters)return r.parameters;const k=r.ctorParameters;if(k&&k!==c.ctorParameters){const xe="function"==typeof k?k():k,Ae=xe.map(Ct=>Ct&&Ct.type),ut=xe.map(Ct=>Ct&&Wt(Ct.decorators));return this._zipTypesAndAnnotations(Ae,ut)}const W=r.hasOwnProperty(tn)&&r[tn],te=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",r);return te||W?this._zipTypesAndAnnotations(te,W):(0,S.WfI)(r.length)}parameters(r){if(!Je(r))return[];const c=we(r);let b=this._ownParameters(r,c);return!b&&c!==Object&&(b=this.parameters(c)),b||[]}_ownAnnotations(r,c){if(r.annotations&&r.annotations!==c.annotations){let b=r.annotations;return"function"==typeof b&&b.annotations&&(b=b.annotations),b}return r.decorators&&r.decorators!==c.decorators?Wt(r.decorators):r.hasOwnProperty(et)?r[et]:null}annotations(r){if(!Je(r))return[];const c=we(r),b=this._ownAnnotations(r,c)||[];return(c!==Object?this.annotations(c):[]).concat(b)}_ownPropMetadata(r,c){if(r.propMetadata&&r.propMetadata!==c.propMetadata){let b=r.propMetadata;return"function"==typeof b&&b.propMetadata&&(b=b.propMetadata),b}if(r.propDecorators&&r.propDecorators!==c.propDecorators){const b=r.propDecorators,k={};return Object.keys(b).forEach(W=>{k[W]=Wt(b[W])}),k}return r.hasOwnProperty(Vt)?r[Vt]:null}propMetadata(r){if(!Je(r))return{};const c=we(r),b={};if(c!==Object){const W=this.propMetadata(c);Object.keys(W).forEach(te=>{b[te]=W[te]})}const k=this._ownPropMetadata(r,c);return k&&Object.keys(k).forEach(W=>{const te=[];b.hasOwnProperty(W)&&te.push(...b[W]),te.push(...k[W]),b[W]=te}),b}ownPropMetadata(r){return Je(r)&&this._ownPropMetadata(r,we(r))||{}}hasLifecycleHook(r,c){return r instanceof ze&&c in r.prototype}}function Wt(n){return n?n.map(r=>new(0,r.type.annotationCls)(...r.args?r.args:[])):[]}function we(n){const r=n.prototype?Object.getPrototypeOf(n.prototype):null;return(r?r.constructor:null)||Object}class We{previousValue;currentValue;firstChange;constructor(r,c,b){this.previousValue=r,this.currentValue=c,this.firstChange=b}isFirstChange(){return this.firstChange}}function Lt(n,r,c,b){null!==r?r.applyValueToInputSignal(r,b):n[c]=b}const St=(()=>{const n=()=>At;return n.ngInherit=!0,n})();function At(n){return n.type.prototype.ngOnChanges&&(n.setInput=mt),fn}function fn(){const n=wn(this),r=n?.current;if(r){const c=n.previous;if(c===S.MZA)n.previous=r;else for(let b in r)c[b]=r[b];n.current=null,this.ngOnChanges(r)}}function mt(n,r,c,b,k){const W=this.declaredInputs[b],te=wn(n)||function In(n,r){return n[It]=r}(n,{previous:S.MZA,current:null}),xe=te.current||(te.current={}),Ae=te.previous,ut=Ae[W];xe[W]=new We(ut&&ut.currentValue,c,Ae===S.MZA),Lt(n,r,k,c)}const It="__ngSimpleChanges__";function wn(n){return n[It]||null}const ei=[],Ze=function(n,r=null,c){for(let b=0;b=b)break}else r[Ae]<0&&(n[S.wVl]+=65536),(xe>14>16&&(3&n[S.Wg1])===r&&(n[S.Wg1]+=16384,Ii(xe,W)):Ii(xe,W)}class nn{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(r,c,b,k){this.factory=r,this.name=k,this.canSeeViewProviders=c,this.injectImpl=b}}function Nn(n){return null!=n&&"object"==typeof n&&(null===n.insertBeforeIndex||"number"==typeof n.insertBeforeIndex||Array.isArray(n.insertBeforeIndex))}function Kn(n){return 3===n||4===n||6===n}function ci(n){return 64===n.charCodeAt(0)}function Xn(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let c=-1;for(let b=0;br){te=W-1;break}}}for(;W>16}(n),b=r;for(;c>0;)b=b[S.X5O],c--;return b}let Ln=!0;function Jn(n){const r=Ln;return Ln=n,r}let Bi=0;const ca={};function un(n,r){const c=fi(n,r);if(-1!==c)return c;const b=r[S.eDl];b.firstCreatePass&&(n.injectorIndex=r.length,Sn(b.data,n),Sn(r,null),Sn(b.blueprint,null));const k=Dn(n,r),W=n.injectorIndex;if(sa(k)){const te=pa(k),xe=dn(k,r),Ae=xe[S.eDl].data;for(let ut=0;ut<8;ut++)r[W+ut]=xe[te+ut]|Ae[te+ut]}return r[W+8]=k,W}function Sn(n,r){n.push(0,0,0,0,0,0,0,0,r)}function fi(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function Dn(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let c=0,b=null,k=r;for(;null!==k;){if(b=Yi(k),null===b)return-1;if(c++,k=k[S.X5O],-1!==b.injectorIndex)return b.injectorIndex|c<<16}return-1}function ti(n,r,c){!function Sa(n,r,c){let b;"string"==typeof c?b=c.charCodeAt(0)||0:c.hasOwnProperty(S.p9y)&&(b=c[S.p9y]),null==b&&(b=c[S.p9y]=Bi++);const k=255&b;r.data[n+(k>>5)]|=1<=0?255&r:xt:r}(c);if("function"==typeof W){if(!(0,S.ihb)(r,n,b))return 1&b?Xi(k,c,b):Ma(r,c,b,k);try{let te;if(te=W(b),null!=te||8&b)return te;(0,S.$Hz)(c)}finally{(0,S.niQ)()}}else if("number"==typeof W){let te=null,xe=fi(n,r),Ae=-1,ut=1&b?r[S.b5C][S.qlT]:null;for((-1===xe||4&b)&&(Ae=-1===xe?Dn(n,r):r[xe+8],-1!==Ae&&la(b,!1)?(te=r[S.eDl],xe=pa(Ae),r=dn(Ae,r)):xe=-1);-1!==xe;){const Ct=r[S.eDl];if(Oi(W,xe,Ct.data)){const Zt=ht(xe,r,c,te,b,ut);if(Zt!==ca)return Zt}Ae=r[xe+8],-1!==Ae&&la(b,r[S.eDl].data[xe+8]===ut)&&Oi(W,xe,r)?(te=Ct,xe=pa(Ae),r=dn(Ae,r)):xe=-1}}return k}function ht(n,r,c,b,k,W){const te=r[S.eDl],xe=te.data[n+8],Ct=Gt(xe,te,c,null==b?(0,S.Qs1)(xe)&&Ln:b!=te&&!!(3&xe.type),1&k&&W===xe);return null!==Ct?si(r,te,Ct,xe,k):ca}function Gt(n,r,c,b,k){const W=n.providerIndexes,te=r.data,xe=1048575&W,Ae=n.directiveStart,Ct=W>>20,yn=k?xe+Ct:n.directiveEnd;for(let Cn=b?xe:xe+Ct;Cn=Ae&&ri.type===c)return Cn}if(k){const Cn=te[Ae];if(Cn&&(0,S.JlV)(Cn)&&Cn.type===c)return Ae}return null}function si(n,r,c,b,k){let W=n[c];const te=r.data;if(W instanceof nn){const xe=W;if(xe.resolving){const Cn=(0,S.PP7)(te[c]);throw(0,S.PQT)(Cn)}const Ae=Jn(xe.canSeeViewProviders);xe.resolving=!0;const Zt=xe.injectImpl?(0,S.a2B)(xe.injectImpl):null;(0,S.ihb)(n,b,0);try{W=n[c]=xe.factory(void 0,k,te,n,b),r.firstCreatePass&&c>=b.directiveStart&&function Ge(n,r,c){const{ngOnChanges:b,ngOnInit:k,ngDoCheck:W}=r.type.prototype;if(b){const te=At(r);(c.preOrderHooks??=[]).push(n,te),(c.preOrderCheckHooks??=[]).push(n,te)}k&&(c.preOrderHooks??=[]).push(0-n,k),W&&((c.preOrderHooks??=[]).push(n,W),(c.preOrderCheckHooks??=[]).push(n,W))}(c,te[c],r)}finally{null!==Zt&&(0,S.a2B)(Zt),Jn(Ae),xe.resolving=!1,(0,S.niQ)()}}return W}function Oi(n,r,c){return!!(c[r+(n>>5)]&1<{const r=n.prototype.constructor,c=r[S.zSs]||rn(r),b=Object.prototype;let k=Object.getPrototypeOf(n.prototype).constructor;for(;k&&k!==b;){const W=k[S.zSs]||rn(k);if(W&&W!==c)return W;k=Object.getPrototypeOf(k)}return W=>new W})}function rn(n){return(0,S.Jzi)(n)?()=>{const r=rn((0,S.nl4)(n));return r&&r()}:(0,S.wGu)(n)}function Yi(n){const r=n[S.eDl],c=r.type;return 2===c?r.declTNode:1===c?n[S.qlT]:null}function va(n){return function Ci(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const c=n.attrs;if(c){const b=c.length;let k=0;for(;k({attributeName:n,__NG_ELEMENT_ID__:()=>va(n)}));let $a=null;function Ga(n){return Ar(function ir(){return $a=$a||new He}().parameters(n))}function Ar(n){return n.map(r=>function ds(n){const r={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(n)&&n.length>0)for(let c=0;cfunction us(n,r){let c=null,b=null;n.hasOwnProperty(S.yAH)||Object.defineProperty(n,S.yAH,{get:()=>(null===c&&(c=le().compileInjectable(Ne,`ng:///${n.name}/\u0275prov.js`,function Zr(n,r){const c=r||{providedIn:null},b={name:n.name,type:n,typeArgumentCount:0,providedIn:c.providedIn};return(zo(c)||ms(c))&&void 0!==c.deps&&(b.deps=Ar(c.deps)),zo(c)?b.useClass=c.useClass:function fs(n){return hs in n}(c)?b.useValue=c.useValue:ms(c)?b.useFactory=c.useFactory:function bo(n){return void 0!==n.useExisting}(c)&&(b.useExisting=c.useExisting),b}(n,r))),c)}),n.hasOwnProperty(S.zSs)||Object.defineProperty(n,S.zSs,{get:()=>{if(null===b){const k=le();b=k.compileFactory(Ne,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,typeArgumentCount:0,deps:Ga(n),target:k.FactoryTarget.Injectable})}return b},configurable:!0})}(n,r));function Cs(){return Ka((0,S.Mx4)(),(0,S.OAn)())}function Ka(n,r){return new Pr((0,S.d31)(n,r))}let Pr=(()=>class n{nativeElement;constructor(c){this.nativeElement=c}static __NG_ELEMENT_ID__=Cs})();function Is(n){return n instanceof Pr?n.nativeElement:n}function Wr(){return this._results[Symbol.iterator]()}class Uo{_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 de.B}constructor(r=!1){this._emitDistinctChangesOnly=r}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,c){return this._results.reduce(r,c)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,c){this.dirty=!1;const b=(0,S.Bqz)(r);(this._changesDetected=!(0,S.ng7)(this._results,b,c))&&(this._results=b,this.length=b.length,this.last=b[this.length-1],this.first=b[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(r){this._onDirty=r}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=Wr}function Jr(n){return!(128&~n.flags)}var dr=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(dr||{});const ar=new Map;let Xr=0;function Mr(n){ar.delete(n[S.ID])}const Yr="__ngContext__";function Aa(n,r){(0,S.q$2)(r)?(n[Yr]=r[S.ID],function Ms(n){ar.set(n[S.ID],n)}(r)):n[Yr]=r}function Ni(n){return Er(n[S.EJG])}function da(n){return Er(n[S.K29])}function Er(n){for(;null!==n&&!(0,S.A0l)(n);)n=n[S.K29];return n}let hl;function Bl(n){hl=n}function hr(){if(void 0!==hl)return hl;if(typeof document<"u")return document;throw new S.buA(210,!1)}const ns=new S.nKC("",{providedIn:"root",factory:()=>vi}),vi="ng",Vo=new S.nKC(""),Go=new S.nKC("",{providedIn:"platform",factory:()=>"unknown"}),ws=new S.nKC(""),Ho=new S.nKC("",{providedIn:"root",factory:()=>hr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),fo={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},xl=new S.nKC("",{providedIn:"root",factory:()=>fo});function za(){const n=new fr;return n.store=function Cl(n,r){const c=n.getElementById(r+"-state");if("SCRIPT"===c?.tagName&&c.textContent)try{return JSON.parse(c.textContent)}catch(b){console.warn("Exception while restoring TransferState for app "+r,b)}return{}}(hr(),(0,S.WQX)(ns)),n}let fr=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:za});store={};onSerializeCallbacks={};get(c,b){return void 0!==this.store[c]?this.store[c]:b}set(c,b){this.store[c]=b}remove(c){delete this.store[c]}hasKey(c){return this.store.hasOwnProperty(c)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(c,b){this.onSerializeCallbacks[c]=b}toJson(){for(const c in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(c))try{this.store[c]=this.onSerializeCallbacks[c]()}catch(b){console.warn("Exception in onSerialize callback: ",b)}return JSON.stringify(this.store).replace(/!1}),is=new S.nKC(""),Wo=new S.nKC(""),tl={passive:!0,capture:!0},Te=new WeakMap,je=new WeakMap,Be=new WeakMap,Ke=["click","keydown"],bt=["mouseenter","mouseover","focusin"];let Ht=null,sn=0;class Rn{callbacks=new Set;listener=()=>{for(const r of this.callbacks)r()}}function di(n,r){let c=je.get(n);if(!c){c=new Rn,je.set(n,c);for(const b of Ke)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){je.delete(n);for(const W of Ke)n.removeEventListener(W,k,tl)}}}function ji(n,r){let c=Te.get(n);if(!c){c=new Rn,Te.set(n,c);for(const b of bt)n.addEventListener(b,c.listener,tl)}return c.callbacks.add(r),()=>{const{callbacks:b,listener:k}=c;if(b.delete(r),0===b.size){for(const W of bt)n.removeEventListener(W,k,tl);Te.delete(n)}}}const Do=new S.nKC("");function Ao(n){return!(32&~n.flags)}function jl(n){let r=n._lView;return 2===r[S.eDl].type?null:((0,S.EFk)(r)&&(r=r[S.Yw1]),r)}function oa(n){return n.get(is,!1,{optional:!0})}function gi(n,r){const c=n.contentQueries;if(null!==c){const b=(0,Xt.Ht)(null);try{for(let k=0;kn,createScript:n=>n,createScriptURL:n=>n})}catch{}return uo}function ac(n){return bc()?.createHTML(n)||n}function yd(){if(void 0===Il&&(Il=null,S.laP.trustedTypes))try{Il=S.laP.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Il}function t1(n){return yd()?.createHTML(n)||n}function e0(n){return yd()?.createScript(n)||n}function T2(n){return yd()?.createScriptURL(n)||n}class Rc{changingThisBreaksApplicationSecurity;constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${S.ok8})`}}class wh extends Rc{getTypeName(){return"HTML"}}class D2 extends Rc{getTypeName(){return"Style"}}class A2 extends Rc{getTypeName(){return"Script"}}class qe extends Rc{getTypeName(){return"URL"}}class Dt extends Rc{getTypeName(){return"ResourceURL"}}function wt(n){return n instanceof Rc?n.changingThisBreaksApplicationSecurity:n}function Ft(n,r){const c=function ln(n){return n instanceof Rc&&n.getTypeName()||null}(n);if(null!=c&&c!==r){if("ResourceURL"===c&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${c} (see ${S.ok8})`)}return c===r}function An(n){return new wh(n)}function On(n){return new D2(n)}function ai(n){return new A2(n)}function Mt(n){return new qe(n)}function zi(n){return new Dt(n)}function Wi(n){const r=new Ja(n);return function Fa(){try{return!!(new window.DOMParser).parseFromString(ac(""),"text/html")}catch{return!1}}()?new Zi(r):r}class Zi{inertDocumentHelper;constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r=""+r;try{const c=(new window.DOMParser).parseFromString(ac(r),"text/html").body;return null===c?this.inertDocumentHelper.getInertBodyElement(r):(c.firstChild?.remove(),c)}catch{return null}}}class Ja{defaultDoc;inertDocument;constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const c=this.inertDocument.createElement("template");return c.innerHTML=ac(r),c}}const Ts=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function _r(n){return(n=String(n)).match(Ts)?n:"unsafe:"+n}function vr(n){const r={};for(const c of n.split(","))r[c]=!0;return r}function yr(...n){const r={};for(const c of n)for(const b in c)c.hasOwnProperty(b)&&(r[b]=!0);return r}const Bs=vr("area,br,col,hr,img,wbr"),rl=vr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ys=vr("rp,rt"),xc=yr(Bs,yr(rl,vr("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")),yr(Ys,vr("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")),yr(Ys,rl)),t0=vr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),n0=yr(t0,vr("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"),vr("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")),i0=vr("script,style,template");class n1{sanitizedSomething=!1;buf=[];sanitizeChildren(r){let c=r.firstChild,b=!0,k=[];for(;c;)if(c.nodeType===Node.ELEMENT_NODE?b=this.startElement(c):c.nodeType===Node.TEXT_NODE?this.chars(c.nodeValue):this.sanitizedSomething=!0,b&&c.firstChild)k.push(c),c=L2(c);else for(;c;){c.nodeType===Node.ELEMENT_NODE&&this.endElement(c);let W=Th(c);if(W){c=W;break}c=k.pop()}return this.buf.join("")}startElement(r){const c=zs(r).toLowerCase();if(!xc.hasOwnProperty(c))return this.sanitizedSomething=!0,!i0.hasOwnProperty(c);this.buf.push("<"),this.buf.push(c);const b=r.attributes;for(let k=0;k"),!0}endElement(r){const c=zs(r).toLowerCase();xc.hasOwnProperty(c)&&!Bs.hasOwnProperty(c)&&(this.buf.push(""))}chars(r){this.buf.push(k2(r))}}function Th(n){const r=n.nextSibling;if(r&&n!==r.previousSibling)throw I2(r);return r}function L2(n){const r=n.firstChild;if(r&&function bd(n,r){return(n.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(n,r))throw I2(r);return r}function zs(n){const r=n.nodeName;return"string"==typeof r?r:"FORM"}function I2(n){return new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`)}const Dh=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Xa=/([^\#-~ |!])/g;function k2(n){return n.replace(/&/g,"&").replace(Dh,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Xa,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(//g,">")}let Cc;function id(n,r){let c=null;try{Cc=Cc||Wi(n);let b=r?String(r):"";c=Cc.getInertBodyElement(b);let k=5,W=b;do{if(0===k)throw new Error("Failed to sanitize html because the input is unstable");k--,b=W,W=c.innerHTML,c=Cc.getInertBodyElement(b)}while(b!==W);return ac((new n1).sanitizeChildren(_o(c)||c))}finally{if(c){const b=_o(c)||c;for(;b.firstChild;)b.firstChild.remove()}}}function _o(n){return"content"in n&&function ss(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}const i1=/^>|^->||--!>|)/g;function r1(n,r){return n.createText(r)}function R2(n,r,c){n.setValue(r,c)}function a0(n,r){return n.createComment(function a1(n){return n.replace(i1,r=>r.replace(ol,"\u200b$1\u200b"))}(r))}function s1(n,r,c){return n.createElement(r,c)}function Mc(n,r,c,b,k){n.insertBefore(r,c,b,k)}function O2(n,r,c){n.appendChild(r,c)}function r0(n,r,c,b,k){null!==b?Mc(n,r,c,b,k):O2(n,r,c)}function Cd(n,r,c,b){n.removeChild(null,r,c,b)}function Ur(n,r,c){const{mergedAttrs:b,classes:k,styles:W}=c;null!==b&&function kn(n,r,c){let b=0;for(;b-1){let W;for(;++kW?"":k[Ct+1].toLowerCase(),2&b&&ut!==Zt){if(Rl(b))return!1;te=!0}}}}else{if(!te&&!Rl(b)&&!Rl(Ae))return!1;if(te&&Rl(Ae))continue;te=!1,b=Ae|1&b}}return Rl(b)||te}function Rl(n){return!(1&n)}function K2(n,r,c,b){if(null===r)return-1;let k=0;if(b||!c){let W=!1;for(;k-1)for(c++;c0?'="'+xe+'"':"")+"]"}else 8&b?k+="."+te:4&b&&(k+=" "+te);else""!==k&&!Rl(te)&&(r+=p0(W,k),k=""),b=te,W=W||!Rl(b);c++}return""!==k&&(r+=p0(W,k)),r}const qa={};function wc(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=S.Yw1+b,yn=Zt+k,Cn=function g0(n,r){const c=[];for(let b=0;b-1?1:1e3;return parseFloat(n)*r}function Sc(n,r){return n.getPropertyValue(r).split(",").map(b=>b.trim())}function Tc(n,r){return void 0!==n&&n.duration>r.duration}function Z2(n){return(null!=n.animationName||null!=n.propertyName)&&n.duration>0}function v0(n,r,c){if(!c)return;const b=n.getAnimations();return 0===b.length?function J2(n,r){const c=getComputedStyle(n),b=function p1(n){const r=Sc(n,"animation-name"),c=Sc(n,"animation-delay"),b=Sc(n,"animation-duration"),k={animationName:"",propertyName:void 0,duration:0};for(let W=0;Wk.duration&&(k.animationName=r[W],k.duration=te)}return k}(c),k=function $2(n){const r=Sc(n,"transition-property"),c=Sc(n,"transition-duration"),b=Sc(n,"transition-delay"),k={propertyName:"",duration:0,animationName:void 0};for(let W=0;Wk.duration&&(k.propertyName=r[W],k.duration=te)}return k}(c),W=b.duration>k.duration?b:k;Tc(r.get(n),W)||Z2(W)&&r.set(n,W)}(n,r):function Qh(n,r,c){let b={animationName:void 0,propertyName:void 0,duration:0};for(const k of c){const W=k.effect?.getTiming(),te="number"==typeof W?.duration?W.duration:0;let Ae,ut,xe=(W?.delay??0)+te;k.animationName?ut=k.animationName:Ae=k.transitionProperty,xe>=b.duration&&(b={animationName:ut,propertyName:Ae,duration:xe})}Tc(r.get(n),b)||Z2(b)&&r.set(n,b)}(n,r,b)}const Yo=new Set;var sd=function(n){return n[n.CHANGE_DETECTION=0]="CHANGE_DETECTION",n[n.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",n}(sd||{});const Fc=new S.nKC(""),g1=new Set;function Qs(n){g1.has(n)||(g1.add(n),performance?.mark?.("mark_feature_usage",{detail:{feature:n}}))}const od=!1,lc=class q2 extends de.B{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(r=!1){super(),this.__isAsync=r,(0,S.M6u)()&&(this.destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0,this.pendingTasks=(0,S.WQX)(S.rev,{optional:!0})??void 0)}emit(r){const c=(0,Xt.Ht)(null);try{super.next(r)}finally{(0,Xt.Ht)(c)}}subscribe(r,c,b){let k=r,W=c||(()=>null),te=b;if(r&&"object"==typeof r){const Ae=r;k=Ae.next?.bind(Ae),W=Ae.error?.bind(Ae),te=Ae.complete?.bind(Ae)}this.__isAsync&&(W=this.wrapInTimeout(W),k&&(k=this.wrapInTimeout(k)),te&&(te=this.wrapInTimeout(te)));const xe=super.subscribe({next:k,error:W,complete:te});return r instanceof ae.yU&&r.add(xe),xe}wrapInTimeout(r){return c=>{const b=this.pendingTasks?.add();setTimeout(()=>{try{r(c)}finally{void 0!==b&&this.pendingTasks?.remove(b)}})}}};function Ld(n){let r,c;function b(){n=S.lQ1;try{void 0!==c&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(c),void 0!==r&&clearTimeout(r)}catch{}}return r=setTimeout(()=>{n(),b()}),"function"==typeof requestAnimationFrame&&(c=requestAnimationFrame(()=>{n(),b()})),()=>b()}function y0(n){return queueMicrotask(()=>n()),()=>{n=S.lQ1}}const b0="isAngularZone",_1=b0+"_ID";let Zh=0;class pr{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new lc(!1);onMicrotaskEmpty=new lc(!1);onStable=new lc(!1);onError=new lc(!1);constructor(r){const{enableLongStackTrace:c=!1,shouldCoalesceEventChangeDetection:b=!1,shouldCoalesceRunChangeDetection:k=!1,scheduleInRootZone:W=od}=r;if(typeof Zone>"u")throw new S.buA(908,!1);Zone.assertZonePatched();const te=this;te._nesting=0,te._outer=te._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(te._inner=te._inner.fork(new Zone.TaskTrackingZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(te._inner=te._inner.fork(Zone.longStackTraceZoneSpec)),te.shouldCoalesceEventChangeDetection=!k&&b,te.shouldCoalesceRunChangeDetection=k,te.callbackScheduled=!1,te.scheduleInRootZone=W,function tu(n){const r=()=>{!function eu(n){function r(){Ld(()=>{n.callbackScheduled=!1,nu(n),n.isCheckStableRunning=!0,cc(n),n.isCheckStableRunning=!1})}n.isCheckStableRunning||n.callbackScheduled||(n.callbackScheduled=!0,n.scheduleInRootZone?Zone.root.run(()=>{r()}):n._outer.run(()=>{r()}),nu(n))}(n)},c=Zh++;n._inner=n._inner.fork({name:"angular",properties:{[b0]:!0,[_1]:c,[_1+c]:!0},onInvokeTask:(b,k,W,te,xe,Ae)=>{if(function iu(n){return y1(n,"__ignore_ng_zone__")}(Ae))return b.invokeTask(W,te,xe,Ae);try{return ld(n),b.invokeTask(W,te,xe,Ae)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===te.type||n.shouldCoalesceRunChangeDetection)&&r(),Bc(n)}},onInvoke:(b,k,W,te,xe,Ae,ut)=>{try{return ld(n),b.invoke(W,te,xe,Ae,ut)}finally{n.shouldCoalesceRunChangeDetection&&!n.callbackScheduled&&!function x0(n){return y1(n,"__scheduler_tick__")}(Ae)&&r(),Bc(n)}},onHasTask:(b,k,W,te)=>{b.hasTask(W,te),k===W&&("microTask"==te.change?(n._hasPendingMicrotasks=te.microTask,nu(n),cc(n)):"macroTask"==te.change&&(n.hasPendingMacrotasks=te.macroTask))},onHandleError:(b,k,W,te)=>(b.handleError(W,te),n.runOutsideAngular(()=>n.onError.emit(te)),!1)})}(te)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(b0)}static assertInAngularZone(){if(!pr.isInAngularZone())throw new S.buA(909,!1)}static assertNotInAngularZone(){if(pr.isInAngularZone())throw new S.buA(909,!1)}run(r,c,b){return this._inner.run(r,c,b)}runTask(r,c,b,k){const W=this._inner,te=W.scheduleEventTask("NgZoneEvent: "+k,r,Jh,S.lQ1,S.lQ1);try{return W.runTask(te,c,b)}finally{W.cancelTask(te)}}runGuarded(r,c,b){return this._inner.runGuarded(r,c,b)}runOutsideAngular(r){return this._outer.run(r)}}const Jh={};function cc(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function nu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&!0===n.callbackScheduled)}function ld(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function Bc(n){n._nesting--,cc(n)}class v1{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new lc;onMicrotaskEmpty=new lc;onStable=new lc;onError=new lc;run(r,c,b){return r.apply(c,b)}runGuarded(r,c,b){return r.apply(c,b)}runOutsideAngular(r){return r()}runTask(r,c,b,k){return r.apply(c,b)}}function y1(n,r){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0]?.data?.[r]}function zc(n="zone.js",r){return"noop"===n?new v1:"zone.js"===n?new pr(r):n}let b1=(()=>{class n{impl=null;execute(){this.impl?.execute()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();const C0=[0,1,2,3];let Uc=(()=>{class n{ngZone=(0,S.WQX)(pr);scheduler=(0,S.WQX)(S.hk6);errorHandler=(0,S.WQX)(S.zcH,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){(0,S.WQX)(Fc,{optional:!0})}execute(){const c=this.sequences.size>0;c&&Ze(16),this.executing=!0;for(const b of C0)for(const k of this.sequences)if(!k.erroredOrDestroyed&&k.hooks[b])try{k.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>(0,k.hooks[b])(k.pipelinedValue),k.snapshot))}catch(W){k.erroredOrDestroyed=!0,this.errorHandler?.handleError(W)}this.executing=!1;for(const b of this.sequences)b.afterRun(),b.once&&(this.sequences.delete(b),b.destroy());for(const b of this.deferredRegistrations)this.sequences.add(b);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),c&&Ze(17)}register(c){const{view:b}=c;void 0!==b?((b[S.JEi]??=[]).push(c),(0,S.blu)(b),b[S.Wg1]|=8192):this.executing?this.deferredRegistrations.add(c):this.addSequence(c)}addSequence(c){this.sequences.add(c),this.scheduler.notify(7)}unregister(c){this.executing&&this.sequences.has(c)?(c.erroredOrDestroyed=!0,c.pipelinedValue=void 0,c.once=!0):(this.sequences.delete(c),this.deferredRegistrations.delete(c))}maybeTrace(c,b){return b?b.run(sd.AFTER_NEXT_RENDER,c):c()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();class au{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(r,c,b,k,W,te=null){this.impl=r,this.hooks=c,this.view=b,this.once=k,this.snapshot=te,this.unregisterOnDestroy=W?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();const r=this.view?.[S.JEi];r&&(this.view[S.JEi]=r.filter(c=>c!==this))}}function M0(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterNextRender"),ou(n,c,r,!0)}function ou(n,r,c,b){const k=r.get(b1);k.impl??=r.get(Uc);const W=r.get(Fc,null,{optional:!0}),te=!0!==c?.manualCleanup?r.get(S.abz):null,xe=r.get(S.r4V,null,{optional:!0}),Ae=new au(k.impl,function su(n){return n instanceof Function?[void 0,void 0,n,void 0]:[n.earlyRead,n.write,n.mixedReadWrite,n.read]}(n),xe?.view,b,te,W?.snapshot(null));return k.impl.register(Ae),Ae}const lu={destroy(){}},Id=new S.nKC("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function cu(n,r,c){const b=n.get(Id);if(Array.isArray(r))for(const k of r)b.queue.add(k),c?.detachedLeaveAnimationFns?.push(k);else b.queue.add(r),c?.detachedLeaveAnimationFns?.push(r);b.scheduler&&b.scheduler(n)}function qh(n){const r=n.get(Id);r.isScheduled||(M0(()=>{r.isScheduled=!1;for(let c of r.queue)c();r.queue.clear()},{injector:n}),r.isScheduled=!0)}function E0(n){const r=n.get(Id);r.scheduler=qh,r.scheduler(n)}function kd(n,r){for(const[c,b]of r)cu(n,b.animateFns)}function X(n,r,c,b){const k=n?.[S.Isx]?.enter;null!==r&&k&&k.has(c.index)&&kd(b,k)}function Rd(n,r,c,b,k,W,te,xe){if(null!=k){let Ae,ut=!1;(0,S.A0l)(k)?Ae=k:(0,S.q$2)(k)&&(ut=!0,k=k[S.jgP]);const Ct=(0,S.IvY)(k);0===n&&null!==b?(X(xe,b,W,c),null==te?O2(r,b,Ct):Mc(r,b,Ct,te||null,!0)):1===n&&null!==b?(X(xe,b,W,c),Mc(r,b,Ct,te||null,!0)):2===n?du(xe,W,c,Zt=>{Cd(r,Ct,ut,Zt)}):3===n&&du(xe,W,c,()=>{r.destroyNode(Ct)}),null!=Ae&&function L0(n,r,c,b,k,W,te){const xe=b[S.s6P];xe!==(0,S.IvY)(b)&&Rd(r,n,c,W,xe,k,te);for(let ut=S.Y20;ut=0?b[xe]():b[-xe].unsubscribe(),te+=2}else c[te].call(b[c[te+1]]);null!==b&&(r[S.VVG]=null);const k=r[S.Czx];if(null!==k){r[S.Czx]=null;for(let te=0;te{if(k.leave&&k.leave.has(r.index)){const te=k.leave.get(r.index),xe=[];if(te){for(let Ae=0;Ae{n[S.Isx].running=void 0,Yo.delete(n),r(!0)}):r(!1)}(n,b)}else n&&Yo.delete(n),b(!1)},k)}function D0(n,r,c){return uu(n,r.parent,c)}function uu(n,r,c){let b=r;for(;null!==b&&168&b.type;)b=(r=b).parent;if(null===b)return c[S.jgP];if((0,S.Qs1)(b)){const{encapsulation:k}=n.data[b.directiveStart+b.componentOffset];if(k===Ui.None||k===Ui.Emulated)return null}return(0,S.d31)(b,c)}function af(n,r,c){return hu(n,r,c)}function rf(n,r,c){return 40&n.type?(0,S.d31)(n,c):null}let fu,hu=rf;function sf(n,r){hu=n,fu=r}function mu(n,r,c,b){const k=D0(n,b,r),W=r[S.GpT],xe=af(b.parent||r[S.qlT],b,r);if(null!=k)if(Array.isArray(c))for(let Ae=0;AeS.Yw1&&Kh(n,r,S.Yw1,!1),Ze(te?2:0,k,c),c(b,k)}finally{(0,S.ypq)(W),Ze(te?3:1,k,c)}}function I0(n,r,c){(function hf(n,r,c){const b=c.directiveStart,k=c.directiveEnd;(0,S.Qs1)(c)&&function Xh(n,r,c){const b=(0,S.d31)(r,n),k=Q2(c),W=n[S.M0L].rendererFactory,te=f1(n,Ed(n,k,null,wd(c),b,r,null,W.createRenderer(b,c),null,null,null));n[r.index]=te}(r,c,n.data[b+c.componentOffset]),n.firstCreatePass||un(c,r);const W=c.initialInputs;for(let te=b;tenull;function k0(n,r,c,b,k,W){S1(n,r[S.eDl],r,c,b)?(0,S.Qs1)(n)&&O0(r,n.index):(3&n.type&&(c=function yu(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(c)),R0(n,r,c,b,k,W))}function R0(n,r,c,b,k,W){if(3&n.type){const te=(0,S.d31)(n,r);b=null!=W?W(b,n.value||"",c):b,k.setProperty(te,c,b)}}function O0(n,r){const c=(0,S.KdJ)(r,n);16&c[S.Wg1]||(c[S.Wg1]|=64)}function bu(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function N0(n,r){const c=n.directiveRegistry;let b=null;if(c)for(let k=0;k{(0,S.blu)(n.lView)},consumerOnSignalRead(){this.lView[S.Iaj]=this}},Cf={...Xt.pL,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:n=>{let r=(0,S._0$)(n.lView);for(;r&&!B0(r[S.eDl]);)r=(0,S._0$)(r);r&&(0,S.HAh)(r)},consumerOnSignalRead(){this.lView[S.Iaj]=this}};function B0(n){return 2!==n.type}function Tu(n){if(null===n[S.tQN])return;let r=!0;for(;r;){let c=!1;for(const b of n[S.tQN])b.dirty&&(c=!0,null===b.zone||Zone.current===b.zone?b.run():b.zone.run(()=>b.run()));r=c&&!!(8192&n[S.Wg1])}}function z0(n,r=0){const b=n[S.M0L].rendererFactory;b.begin?.();try{!function U0(n,r){const c=(0,S.yP_)();try{(0,S.cBl)(!0),V0(n,r);let b=0;for(;(0,S.dMS)(n);){if(100===b)throw new S.buA(103,!1);b++,V0(n,1)}}finally{(0,S.cBl)(c)}}(n,r)}finally{b.end?.()}}function Du(n,r,c,b){if((0,S.EPY)(r))return;const k=r[S.Wg1];(0,S.ID8)(r);let xe=!0,Ae=null,ut=null;B0(n)?(ut=function Eu(n){return n[S.Iaj]??function bf(n){const r=Mu.pop()??Object.create(xf);return r.lView=n,r}(n)}(r),Ae=(0,Xt.Bg)(ut)):null===(0,Xt.nR)()?(xe=!1,ut=function Su(n){const r=n[S.Iaj]??Object.create(Cf);return r.lView=n,r}(r),Ae=(0,Xt.Bg)(ut)):r[S.Iaj]&&((0,Xt.XR)(r[S.Iaj]),r[S.Iaj]=null);try{(0,S.HUe)(r),(0,S.Kw3)(n.bindingStartIndex),null!==c&&df(n,r,c,2,b);const Ct=!(3&~k);if(Ct){const Cn=n.preOrderCheckHooks;null!==Cn&&Yt(r,Cn,null)}else{const Cn=n.preOrderHooks;null!==Cn&&bn(r,Cn,0,null),Zn(r,0)}if(function Mf(n){for(let r=Ni(n);null!==r;r=da(r)){if(!(2&r[S.Wg1]))continue;const c=r[S.nfM];for(let b=0;b0&&(c[k-1][S.K29]=r),b0&&(n[c-1][S.K29]=b[S.K29]);const W=(0,S.E6O)(n,S.Y20+r);ef(b[S.eDl],b);const te=W[S.Ds7];null!==te&&te.detachView(W[S.eDl]),b[S.f7T]=null,b[S.K29]=null,b[S.Wg1]&=-129}return b}function H0(n,r){const c=n[S.nfM],b=r[S.f7T];((0,S.q$2)(b)||r[S.b5C]!==b[S.f7T][S.b5C])&&(n[S.Wg1]|=2),null===c?n[S.nfM]=[r]:c.push(r)}class Fd{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const r=this._lView,c=r[S.eDl];return Pd(c,r,c.firstChild,[])}constructor(r,c){this._lView=r,this._cdRefInjectingView=c}get context(){return this._lView[S.SKP]}set context(r){this._lView[S.SKP]=r}get destroyed(){return(0,S.EPY)(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[S.f7T];if((0,S.A0l)(r)){const c=r[S.bm_],b=c?c.indexOf(this):-1;b>-1&&(Nd(r,b),(0,S.E6O)(c,b))}this._attachedToViewContainer=!1}x1(this._lView[S.eDl],this._lView)}onDestroy(r){(0,S.ik5)(this._lView,r)}markForCheck(){dd(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[S.Wg1]&=-129}reattach(){(0,S._gW)(this._lView),this._lView[S.Wg1]|=128}detectChanges(){this._lView[S.Wg1]|=1024,z0(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S.buA(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const r=(0,S.EFk)(this._lView),c=this._lView[S.rQE];null!==c&&!r&&w0(c,this._lView),tf(this._lView[S.eDl],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new S.buA(902,!1);this._appRef=r;const c=(0,S.EFk)(this._lView),b=this._lView[S.rQE];null!==b&&!c&&H0(b,this._lView),(0,S._gW)(this._lView)}}let Bd=(()=>class n{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=wf;constructor(c,b,k){this._declarationLView=c,this._declarationTContainer=b,this.elementRef=k}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(c,b){return this.createEmbeddedViewImpl(c,b)}createEmbeddedViewImpl(c,b,k){const W=dc(this._declarationLView,this._declarationTContainer,c,{embeddedViewInjector:b,dehydratedView:k});return new Fd(W)}})();function wf(){return D1((0,S.Mx4)(),(0,S.OAn)())}function D1(n,r){return 4&n.type?new Bd(r,n,Ka(n,r)):null}function k1(n,r,c){const b=r.insertBeforeIndex,k=Array.isArray(b)?b[0]:b;return null===k?rf(n,0,c):(0,S.IvY)(c[k])}function Pu(n,r,c,b,k){const W=r.insertBeforeIndex;if(Array.isArray(W)){let te=b,xe=null;if(3&r.type||(xe=te,te=k),null!==te&&-1===r.componentOffset)for(let Ae=1;Ae1)for(let c=n.length-2;c>=0;c--){const b=n[c];kf(b)||Rf(b,r)&&null===Of(b)&&Pf(b,r.index)}}function kf(n){return!(64&n.type)}function Rf(n,r){return kf(r)||n.index>r.index}function Of(n){const r=n.insertBeforeIndex;return Array.isArray(r)?r[0]:r}function Pf(n,r){const c=n.insertBeforeIndex;Array.isArray(c)?c[0]=r:(sf(k1,Pu),n.insertBeforeIndex=r)}function R1(n,r){const c=n.data[r];return null===c||"string"==typeof c?null:c.hasOwnProperty("currentCaseLViewIndex")?c:c.value}function Bf(n,r,c){const b=Pl(n,c,64,null,null);return Dc(r,b),b}function Q0(n,r){const c=r[n.currentCaseLViewIndex];return null===c?c:c<0?~c:c}function Fu(n){return n>>>17}function Bu(n){return(131070&n)>>>1}function $0(n,r,c){n.index=0;const b=Q0(r,c);n.removes=null!==b?r.remove[b]:S.Mlv}function O1(n){if(n.index0?n.lView[r]:(n.stack.push(n.index,n.removes),$0(n,n.lView[S.eDl].data[~r],n.lView),O1(n))}return 0===n.stack.length?(n.lView=void 0,null):(n.removes=n.stack.pop(),n.index=n.stack.pop(),O1(n))}function Gf(){const n={stack:[],index:-1};return function r(c,b){for(n.lView=b;n.stack.length;)n.stack.pop();return $0(n,c.value,b),O1.bind(null,n)}}function H(n,r,c){for(const b of c.node.cases[c.case]){const k=r.get(b.index-S.Yw1);k&&Cd(n,k,!1)}}function J(n){const r=n[S.qFA]??[],b=n[S.f7T][S.GpT],k=[];for(const W of r)void 0!==W.data.di?k.push(W):ot(W,b);n[S.qFA]=k}function ne(n){const{lContainer:r}=n,c=r[S.qFA];if(null===c)return;const k=r[S.f7T][S.GpT];for(const W of c)ot(W,k)}function ot(n,r){let c=0,b=n.firstChild;if(b){const k=n.data.r;for(;cclass n{destroyNode=null;static __NG_ELEMENT_ID__=()=>function hd(){const n=(0,S.OAn)(),r=(0,S.Mx4)(),c=(0,S.KdJ)(r.index,n);return((0,S.q$2)(c)?c:n)[S.GpT]}()})(),Zu=(()=>{class n{static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>null})}return n})();function B1(n){return void 0!==n.ngModule}function Kc(n){return!!(0,S.phH)(n)}function ea(n){return!!(0,S.oyA)(n)}function fa(n){return!!(0,S.HaV)(n)}function ua(n){return!!(0,S.xUg)(n)}function Us(n,r){if((0,S.Jzi)(n)&&!(n=(0,S.nl4)(n)))throw new Error(`Expected forwardRef function, imported from "${(0,S.PP7)(r)}", to return a standalone entity or NgModule but got "${(0,S.PP7)(n)||n}".`);if(null==(0,S.phH)(n)){const c=(0,S.xUg)(n)||(0,S.HaV)(n)||(0,S.oyA)(n);if(null==c)throw B1(n)?new Error(`A module with providers was imported from "${(0,S.PP7)(r)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${(0,S.PP7)(n)}" type, imported from "${(0,S.PP7)(r)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`);if(!c.standalone)throw new Error(`The "${(0,S.PP7)(n)}" ${function er(n){return(0,S.xUg)(n)?"component":(0,S.HaV)(n)?"directive":(0,S.oyA)(n)?"pipe":"type"}(n)}, imported from "${(0,S.PP7)(r)}", is not standalone. Did you forget to add the standalone: true flag?`)}}class uc{ownerNgModule=new Map;ngModulesWithSomeUnresolvedDecls=new Set;ngModulesScopeCache=new Map;standaloneComponentsScopeCache=new Map;resolveNgModulesDecls(){if(0!==this.ngModulesWithSomeUnresolvedDecls.size){for(const r of this.ngModulesWithSomeUnresolvedDecls){const c=(0,S.phH)(r);if(c?.declarations)for(const b of Kl(c.declarations))ua(b)&&this.ownerNgModule.set(b,r)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(r,c){this.resolveNgModulesDecls();const b=(0,S.xUg)(r);if(null===b)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${r}`);if(b.standalone){const k=this.getStandaloneComponentScope(r,c);return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes,...k.compilation.ngModules]}}{if(!this.ownerNgModule.has(r))return{dependencies:[]};const k=this.getNgModuleScope(this.ownerNgModule.get(r));return k.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...k.compilation.directives,...k.compilation.pipes]}}}registerNgModule(r,c){if(!Kc(r))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${r}`);this.ngModulesWithSomeUnresolvedDecls.add(r)}clearScopeCacheFor(r){this.ngModulesScopeCache.delete(r),this.standaloneComponentsScopeCache.delete(r)}getNgModuleScope(r){if(this.ngModulesScopeCache.has(r))return this.ngModulesScopeCache.get(r);const c=this.computeNgModuleScope(r);return this.ngModulesScopeCache.set(r,c),c}computeNgModuleScope(r){const c=(0,S.WbQ)(r),b={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(const k of Kl(c.imports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else{if(!(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}if(fa(k)||ua(k))b.compilation.directives.add(k);else{if(!ea(k))throw new S.buA(980,"The standalone imported type is neither a component nor a directive nor a pipe");b.compilation.pipes.add(k)}}if(!b.compilation.isPoisoned)for(const k of Kl(c.declarations)){if(Kc(k)||(0,S.QuC)(k)){b.compilation.isPoisoned=!0;break}ea(k)?b.compilation.pipes.add(k):b.compilation.directives.add(k)}for(const k of Kl(c.exports))if(Kc(k)){const W=this.getNgModuleScope(k);Vs(W.exported.directives,b.exported.directives),Vs(W.exported.pipes,b.exported.pipes),Vs(W.exported.directives,b.compilation.directives),Vs(W.exported.pipes,b.compilation.pipes)}else ea(k)?b.exported.pipes.add(k):b.exported.directives.add(k);return b}getStandaloneComponentScope(r,c){if(this.standaloneComponentsScopeCache.has(r))return this.standaloneComponentsScopeCache.get(r);const b=this.computeStandaloneComponentScope(r,c);return this.standaloneComponentsScopeCache.set(r,b),b}computeStandaloneComponentScope(r,c){const b={compilation:{directives:new Set([r]),pipes:new Set,ngModules:new Set}};for(const k of(0,S.Bqz)(c??[])){const W=(0,S.nl4)(k);try{Us(W,r)}catch{return b.compilation.isPoisoned=!0,b}if(Kc(W)){b.compilation.ngModules.add(W);const te=this.getNgModuleScope(W);if(te.exported.isPoisoned)return b.compilation.isPoisoned=!0,b;Vs(te.exported.directives,b.compilation.directives),Vs(te.exported.pipes,b.compilation.pipes)}else if(ea(W))b.compilation.pipes.add(W);else{if(!fa(W)&&!ua(W))return b.compilation.isPoisoned=!0,b;b.compilation.directives.add(W)}}return b}isOrphanComponent(r){const c=(0,S.xUg)(r);return!(!c||c.standalone||(this.resolveNgModulesDecls(),this.ownerNgModule.has(r)))}}function Vs(n,r){for(const c of n)r.add(c)}const Nl=new uc,Gr={};class fd{injector;parentInjector;constructor(r,c){this.injector=r,this.parentInjector=c}get(r,c,b){const k=this.injector.get(r,Gr,b);return k!==Gr||c===Gr?k:this.parentInjector.get(r,c,b)}}function z1(n,r,c){let b=c?n.styles:null,k=c?n.classes:null,W=0;if(null!==r)for(let te=0;te0&&(c.directiveToIndex=new Map);for(let yn=0;yn0;){const c=n[--r];if("number"==typeof c&&c<0)return c}return 0})(te)!=xe&&te.push(xe),te.push(c,b,W)}}(n,r,b,Sd(n,c,k.hostVars,qa),k)}function gg(n,r,c){if(c){if(r.exportAs)for(let b=0;bAe?xe[Ae]:null}"string"==typeof te&&(W+=2)}return null}(r,c,W,n.index)),null!==Ct)(Ct.__ngLastListenerFn__||Ct).__ngNextListenerFn__=te,Ct.__ngLastListenerFn__=te,ut=!0;else{const Zt=(0,S.d31)(n,c),yn=b?b(Zt):Zt,Cn=k.listen(yn,W,xe);(function _g(n){return n.startsWith("animation")||n.startsWith("transition")})(W)||Jm(b?Si=>b((0,S.IvY)(Si[n.index])):n.index,r,c,W,xe,Cn,!1)}return ut}function Jm(n,r,c,b,k,W,te){const xe=r.firstCreatePass?(0,S.vNG)(r):null,Ae=(0,S.d_l)(c),ut=Ae.length;Ae.push(k,W),xe&&xe.push(b,n,ut,(ut+1)*(te?-1:1))}function n4(n,r,c,b,k,W){const xe=r[S.eDl],Zt=r[c][xe.data[c].outputs[b]].subscribe(W);Jm(n.index,xe,r,k,W,Zt,!0)}const Hd=Symbol("BINDING");class tp extends ll{ngModule;constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const c=(0,S.xUg)(r);return new o2(c,this.ngModule)}}class o2 extends Vr{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function Sg(n){return Object.keys(n).map(r=>{const[c,b,k]=n[r],W={propName:c,templateName:r,isSignal:0!==(b&Td.SignalBased)};return k&&(W.transform=k),W})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function Tg(n){return Object.keys(n).map(r=>({propName:n[r],templateName:r}))}(this.componentDef.outputs),this.cachedOutputs}constructor(r,c){super(),this.componentDef=r,this.ngModule=c,this.componentType=r.type,this.selector=function jh(n){return n.map(Hh).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors??[],this.isBoundToModule=!!c}create(r,c,b,k,W,te){Ze(22);const xe=(0,Xt.Ht)(null);try{const Ae=this.componentDef,ut=function rp(n,r,c,b){const k=n?["ng-version","20.3.26"]:function Wh(n){const r=[],c=[];let b=1,k=2;for(;b{if(1&c&&n)for(const b of n)b.create();if(2&c&&r)for(const b of r)b.update()}:null}(W,te),1,xe,Ae,null,null,null,[k],null)}(b,Ae,te,W),Ct=function Ag(n,r,c){let b=r instanceof S.uvJ?r:r?.injector;return b&&null!==n.getStandaloneInjector&&(b=n.getStandaloneInjector(b)||b),b?new fd(c,b):c}(Ae,k||this.ngModule,r),Zt=function Lg(n){const r=n.get(Xc,null);if(null===r)throw new S.buA(407,!1);return{rendererFactory:r,sanitizer:n.get(Zu,null),changeDetectionScheduler:n.get(S.hk6,null),ngReflect:!1}}(Ct),yn=Zt.rendererFactory.createRenderer(null,Ae),Cn=b?function i3(n,r,c,b){const W=b.get(Ul,!1)||c===Ui.ShadowDom,te=n.selectRootElement(r,W);return function gu(n){_u(n)}(te),te}(yn,b,Ae.encapsulation,Ct):function np(n,r){const c=function ap(n){return(n.selectors[0][0]||"div").toLowerCase()}(n);return s1(r,c,"svg"===c?S.jNX:"math"===c?S.rJ1:null)}(Ae,yn);!function ip(n){if("script"===n?.toLowerCase())throw new S.buA(905,!1)}(Cn?.tagName);const ri=te?.some(Lc)||W?.some(ia=>"function"!=typeof ia&&ia.bindings.some(Lc)),Si=Ed(null,ut,null,512|wd(Ae),null,null,Zt,yn,Ct,null,null);Si[S.Yw1]=Cn,(0,S.ID8)(Si);let Ki=null;try{const ia=a2(S.Yw1,Si,2,"#host",()=>ut.directiveRegistry,!0,0);Ur(yn,Cn,ia),Aa(Cn,Si),I0(ut,Si,ia),Wa(ut,ia,Si),Jf(ut,ia),void 0!==c&&function i4(n,r,c){const b=n.projection=[];for(let k=0;kclass n{static __NG_ELEMENT_ID__=sp})();function sp(){return Ic((0,S.Mx4)(),(0,S.OAn)())}const D3=Qo,A3=class extends D3{_lContainer;_hostTNode;_hostLView;constructor(r,c,b){super(),this._lContainer=r,this._hostTNode=c,this._hostLView=b}get element(){return Ka(this._hostTNode,this._hostLView)}get injector(){return new Ce(this._hostTNode,this._hostLView)}get parentInjector(){const r=Dn(this._hostTNode,this._hostLView);if(sa(r)){const c=dn(r,this._hostLView),b=pa(r);return new Ce(c[S.eDl].data[b+8],c)}return new Ce(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const c=Ju(this._lContainer);return null!==c&&c[r]||null}get length(){return this._lContainer.length-S.Y20}createEmbeddedView(r,c,b){let k,W;"number"==typeof b?k=b:null!=b&&(k=b.index,W=b.injector);const xe=r.createEmbeddedViewImpl(c||{},W,null);return this.insertImpl(xe,k,Gc(this._hostTNode,null)),xe}createComponent(r,c,b,k,W,te,xe){const Ae=r&&!Je(r);let ut;if(Ae)ut=c;else{const Ki=c||{};ut=Ki.index,b=Ki.injector,k=Ki.projectableNodes,W=Ki.environmentInjector||Ki.ngModuleRef,te=Ki.directives,xe=Ki.bindings}const Ct=Ae?r:new o2((0,S.xUg)(r)),Zt=b||this.parentInjector;if(!W&&null==Ct.ngModule){const ia=(Ae?Zt:this.parentInjector).get(S.uvJ,null);ia&&(W=ia)}(0,S.xUg)(Ct.componentType??{});const Si=Ct.create(Zt,k,null,W,te,xe);return this.insertImpl(Si.hostView,ut,Gc(this._hostTNode,null)),Si}insert(r,c){return this.insertImpl(r,c,!0)}insertImpl(r,c,b){const k=r._lView;if((0,S.ITl)(k)){const xe=this.indexOf(r);if(-1!==xe)this.detach(xe);else{const Ae=k[S.f7T],ut=new A3(Ae,Ae[S.qlT],Ae[S.f7T]);ut.detach(ut.indexOf(r))}}const W=this._adjustIndex(c),te=this._lContainer;return Hc(te,k,W,b),r.attachToViewContainerRef(),(0,S.EYC)(l2(te),W,r),r}move(r,c){return this.insert(r,c)}indexOf(r){const c=Ju(this._lContainer);return null!==c?c.indexOf(r):-1}remove(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);b&&((0,S.E6O)(l2(this._lContainer),c),x1(b[S.eDl],b))}detach(r){const c=this._adjustIndex(r,-1),b=Nd(this._lContainer,c);return b&&null!=(0,S.E6O)(l2(this._lContainer),c)?new Fd(b):null}_adjustIndex(r,c=0){return r??this.length+c}};function Ju(n){return n[S.bm_]}function l2(n){return n[S.bm_]||(n[S.bm_]=[])}function Ic(n,r){let c;const b=r[n.index];return(0,S.A0l)(b)?c=b:(c=ku(b,r,null,n),r[n.index]=c,f1(r,c)),ma(c,r,n,b),new A3(c,n,r)}let ma=function a4(n,r,c,b){if(n[S.s6P])return;let k;k=8&c.type?(0,S.IvY)(b):function c2(n,r){const c=n[S.GpT],b=c.createComment(""),k=(0,S.d31)(r,n),W=c.parentNode(k);return Mc(c,W,b,c.nextSibling(k),!1),b}(r,c),n[S.s6P]=k};class o4{queryList;matches=null;constructor(r){this.queryList=r}clone(){return new o4(this.queryList)}setDirty(){this.queryList.setDirty()}}class eh{queries;constructor(r=[]){this.queries=r}createEmbeddedView(r){const c=r.queries;if(null!==c){const b=null!==r.contentQueries?r.contentQueries[0]:c.length,k=[];for(let W=0;Wr.trim())}(r):r}}class d2{queries;constructor(r=[]){this.queries=r}elementStart(r,c){for(let b=0;b0)b.push(te[xe/2]);else{const ut=W[xe+1],Ct=r[-Ae];for(let Zt=S.Y20;Zt{b._dirtyCounter();const W=function ih(n,r){const c=n._lView,b=n._queryIndex;if(void 0===c||void 0===b||4&c[S.Wg1])return r?void 0:S.Mlv;const k=th(c,b),W=h4(c,b);return k.reset(W,Is),r?k.first:k._changesDetected||void 0===n._flatValue?n._flatValue=k.toArray():n._flatValue}(b,n);if(r&&void 0===W)throw new S.buA(-951,!1);return W});return b=k[Xt.bh],b._dirtyCounter=(0,S.vPA)(0),b._flatValue=void 0,k}function f2(n){return h2(!0,!1)}function $s(n){return h2(!0,!0)}function O3(n){return h2(!1,!1)}function V1(n,r){const c=n[Xt.bh];c._lView=(0,S.OAn)(),c._queryIndex=r,c._queryList=th(c._lView,r),c._queryList.onDirty(()=>c._dirtyCounter.update(b=>b+1))}function lp(n){const r=[],c=new Map;function b(k){let W=c.get(k);if(!W){const te=n(k);c.set(k,W=te.then(xe=>function F3(n,r){return"string"==typeof r?r:void 0!==r.status&&200!==r.status?Promise.reject(new S.buA(918,!1)):r.text()}(0,xe)))}return W}return Xd.forEach((k,W)=>{const te=[];k.templateUrl&&te.push(b(k.templateUrl).then(ut=>{k.template=ut}));const xe="string"==typeof k.styles?[k.styles]:k.styles||[];if(k.styles=xe,k.styleUrl&&k.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(k.styleUrls?.length){const ut=k.styles.length,Ct=k.styleUrls;k.styleUrls.forEach((Zt,yn)=>{xe.push(""),te.push(b(Zt).then(Cn=>{xe[ut+yn]=Cn,Ct.splice(Ct.indexOf(Zt),1),0==Ct.length&&(k.styleUrls=void 0)}))})}else k.styleUrl&&te.push(b(k.styleUrl).then(ut=>{xe.push(ut),k.styleUrl=void 0}));const Ae=Promise.all(te).then(()=>function rh(n){Qc.delete(n)}(W));r.push(Ae)}),function ah(){const n=Xd;Xd=new Map}(),Promise.all(r).then(()=>{})}let Xd=new Map;const Qc=new Set;function dp(){return 0===Xd.size}const sh=new Map;function f4(n,r){(function up(n,r,c){if(r&&r!==c)throw new Error(`Duplicate module registered for ${n} - ${(0,S.AsM)(r)} vs ${(0,S.AsM)(r.name)}`)})(r,sh.get(r)||null,n),sh.set(r,n)}let G1=class{},cl=class{};function B3(n,r){return new lh(n,r??null,[])}class lh extends G1{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new tp(this);constructor(r,c,b,k=!0){super(),this.ngModuleType=r,this._parent=c;const W=(0,S.phH)(r);this._bootstrapComponents=Kl(W.bootstrap),this._r3Injector=(0,S.Pz9)(r,c,[{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver},...b],(0,S.AsM)(r),new Set(["environment"])),k&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(c=>c()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class fp extends cl{moduleType;constructor(r){super(),this.moduleType=r}create(r){return new lh(this.moduleType,r,[])}}function mp(n,r,c){return new lh(n,r,c,!1)}class Rg extends G1{injector;componentFactoryResolver=new tp(this);instance=null;constructor(r){super();const c=new S.e5P([...r.providers,{provide:G1,useValue:this},{provide:ll,useValue:this.componentFactoryResolver}],r.parent||(0,S.WB9)(),r.debugName,new Set(["environment"]));this.injector=c,r.runEnvironmentInitializers&&c.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function z3(n,r,c=null){return new Rg({providers:n,parent:r,debugName:c,runEnvironmentInitializers:!0}).injector}let Og=(()=>{class n{_injector;cachedInjectors=new Map;constructor(c){this._injector=c}getOrCreateStandaloneInjector(c){if(!c.standalone)return null;if(!this.cachedInjectors.has(c)){const b=(0,S.jXY)(!1,c.type),k=b.length>0?z3([b],this._injector,`Standalone[${c.type.name}]`):null;this.cachedInjectors.set(c,k)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n((0,S.KVO)(S.uvJ))})}return n})();function pp(n){return Le(()=>{const r=$c(n),c={...r,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===dr.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&n.dependencies||null,getStandaloneInjector:r.standalone?k=>k.get(Og).getOrCreateStandaloneInjector(c):null,getExternalStyles:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||Ui.Emulated,styles:n.styles||S.Mlv,_:null,schemas:n.schemas||null,tView:null,id:""};r.standalone&&Qs("NgStandalone"),md(c);const b=n.dependencies;return c.directiveDefs=ch(b,gp),c.pipeDefs=ch(b,S.oyA),c.id=function Fg(n){let r=0;const b=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,"function"==typeof n.consts?"":n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery];for(const W of b.join("|"))r=Math.imul(31,r)+W.charCodeAt(0)|0;return r+=2147483648,"c"+r}(c),c})}function gp(n){return(0,S.xUg)(n)||(0,S.HaV)(n)}function _p(n){return Le(()=>({type:n.type,bootstrap:n.bootstrap||S.Mlv,declarations:n.declarations||S.Mlv,imports:n.imports||S.Mlv,exports:n.exports||S.Mlv,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Pg(n,r){if(null==n)return S.MZA;const c={};for(const b in n)if(n.hasOwnProperty(b)){const k=n[b];let W,te,xe,Ae;Array.isArray(k)?(xe=k[0],W=k[1],te=k[2]??W,Ae=k[3]||null):(W=k,te=k,xe=Td.None,Ae=null),c[W]=[b,xe,Ae],r[W]=te}return c}function vp(n){if(null==n)return S.MZA;const r={};for(const c in n)n.hasOwnProperty(c)&&(r[n[c]]=c);return r}function U3(n){return Le(()=>{const r=$c(n);return md(r),r})}function V3(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:n.standalone??!0,onDestroy:n.type.prototype.ngOnDestroy||null}}function $c(n){const r={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputConfig:n.inputs||S.MZA,exportAs:n.exportAs||null,standalone:n.standalone??!0,signals:!0===n.signals,selectors:n.selectors||S.Mlv,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:Pg(n.inputs,r),outputs:vp(n.outputs),debugInfo:null}}function md(n){n.features?.forEach(r=>r(n))}function ch(n,r){return n?()=>{const c="function"==typeof n?n():n,b=[];for(const k of c){const W=r(k);null!==W&&b.push(W)}return b}:null}function yp(n){return Object.getPrototypeOf(n.prototype).constructor}function m4(n){let r=yp(n.type),c=!0;const b=[n];for(;r;){let k;if((0,S.JlV)(n))k=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new S.buA(903,!1);k=r.\u0275dir}if(k){if(c){b.push(k);const te=n;te.inputs=p4(n.inputs),te.declaredInputs=p4(n.declaredInputs),te.outputs=p4(n.outputs);const xe=k.hostBindings;xe&&Ug(n,xe);const Ae=k.viewQuery,ut=k.contentQueries;if(Ae&&bp(n,Ae),ut&&zg(n,ut),Bg(n,k),(0,S.dwj)(n.outputs,k.outputs),(0,S.JlV)(k)&&k.data.animation){const Ct=n.data;Ct.animation=(Ct.animation||[]).concat(k.data.animation)}}const W=k.features;if(W)for(let te=0;te=0;b--){const k=n[b];k.hostVars=r+=k.hostVars,k.hostAttrs=Xn(k.hostAttrs,c=Xn(c,k.hostAttrs))}}(b)}function Bg(n,r){for(const c in r.inputs){if(!r.inputs.hasOwnProperty(c)||n.inputs.hasOwnProperty(c))continue;const b=r.inputs[c];void 0!==b&&(n.inputs[c]=b,n.declaredInputs[c]=r.declaredInputs[c])}}function p4(n){return n===S.MZA?{}:n===S.Mlv?[]:n}function bp(n,r){const c=n.viewQuery;n.viewQuery=c?(b,k)=>{r(b,k),c(b,k)}:r}function zg(n,r){const c=n.contentQueries;n.contentQueries=c?(b,k,W)=>{r(b,k,W),c(b,k,W)}:r}function Ug(n,r){const c=n.hostBindings;n.hostBindings=c?(b,k)=>{r(b,k),c(b,k)}:r}const H3=["providersResolver"],m2=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function xp(n){const r=c=>{const b=Array.isArray(n);null===c.hostDirectives?(c.resolveHostDirectives=Vg,c.hostDirectives=b?n.map(g4):[n]):b?c.hostDirectives.unshift(...n.map(g4)):c.hostDirectives.unshift(n)};return r.ngInherit=!0,r}function Vg(n){const r=[];let c=!1,b=null,k=null;for(let W=0;W{Be.has(n)&&(b.callbacks.delete(r),0===b.callbacks.size&&(Ht?.unobserve(n),Be.delete(n),sn--),0===sn&&(Ht?.disconnect(),Ht=null))}}(n,()=>b.run(r),()=>b.runOutsideAngular(()=>function Ia(){return new IntersectionObserver(n=>{for(const r of n)r.isIntersecting&&Be.has(r.target)&&Be.get(r.target).listener()})}()))}function Yd(n,r,c,b,k,W,te){const xe=n[S.YEL],Ae=xe.get(pr);let ut;ut=function ru(n,r){const c=r?.injector??(0,S.WQX)(S.zZn);return Qs("NgAfterRender"),ou(n,c,r,!1)}({read:function Ct(){if((0,S.EPY)(n))return void ut.destroy();const Zt=Fl(n,r),yn=Zt[1];if(yn!==p2.Initial&&yn!==Ir.Placeholder)return void ut.destroy();const Cn=function E4(n,r,c){return null==c?n:c>=0?(0,S.jRZ)(c,n):n[r.index][S.Y20]??null}(n,r,b);if(!Cn||(ut.destroy(),(0,S.EPY)(Cn)))return;const ri=function $g(n,r){return(0,S.vaC)(S.Yw1+r,n)}(Cn,c),Si=k(ri,()=>{Ae.run(()=>{n!==Cn&&(0,S.DyX)(Cn,Si),W()})},xe);n!==Cn&&(0,S.ik5)(Cn,Si),fh(te,Zt,Si)}},{injector:xe})}function mh(n,r){const c=r.get(O);return c.add(n),()=>c.remove(n)}let O=(()=>{class n{executingCallbacks=!1;idleId=null;current=new Set;deferred=new Set;ngZone=(0,S.WQX)(pr);requestIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout)().bind(globalThis);cancelIdleCallbackFn=(()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout)().bind(globalThis);add(c){(this.executingCallbacks?this.deferred:this.current).add(c),null===this.idleId&&this.scheduleIdleCallback()}remove(c){const{current:b,deferred:k}=this;b.delete(c),k.delete(c),0===b.size&&0===k.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const c=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const b of this.current)b();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const b of this.deferred)this.current.add(b);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(c))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})();function E(n){return(r,c)=>y(n,r,c)}function y(n,r,c){const b=c.get(B),k=c.get(pr);return b.add(n,r,k),()=>b.remove(r)}let B=(()=>{class n{executingCallbacks=!1;timeoutId=null;invokeTimerAt=null;current=[];deferred=[];add(c,b,k){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+c,b),this.scheduleTimer(k)}remove(c){const{current:b,deferred:k}=this;-1===this.removeFromQueue(b,c)&&this.removeFromQueue(k,c),0===b.length&&0===k.length&&this.clearTimeout()}addToQueue(c,b,k){let W=c.length;for(let te=0;teb){W=te;break}(0,S.llW)(c,W,b,k)}removeFromQueue(c,b){let k=-1;for(let W=0;W-1&&(0,S.gsJ)(c,k,2),k}scheduleTimer(c){const b=()=>{this.clearTimeout(),this.executingCallbacks=!0;const W=[...this.current],te=Date.now();for(let Ae=0;Ae=0&&(0,S.gsJ)(this.current,0,xe+1),this.executingCallbacks=!1,this.deferred.length>0){for(let Ae=0;Ae0){const W=Date.now(),te=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-te>16){this.clearTimeout();const xe=Math.max(te-W,16);this.invokeTimerAt=te,this.timeoutId=c.runOutsideAngular(()=>setTimeout(()=>c.run(b),xe))}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static \u0275prov=(0,S.jDH)({token:n,providedIn:"root",factory:()=>new n})}return n})(),G=(()=>{class n{cachedInjectors=new Map;getOrCreateInjector(c,b,k,W){if(!this.cachedInjectors.has(c)){const te=k.length>0?z3(k,b,W):null;this.cachedInjectors.set(c,te)}return this.cachedInjectors.get(c)}ngOnDestroy(){try{for(const c of this.cachedInjectors.values())null!==c&&c.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=(0,S.jDH)({token:n,providedIn:"environment",factory:()=>new n})}return n})();const Xe=new S.nKC("");function Ut(n,r,c){return n.get(G).getOrCreateInjector(r,n,c,"")}function pn(n,r,c,b=!1){const k=c[S.f7T],W=k[S.eDl];if((0,S.EPY)(k))return;const te=Fl(k,r),Ae=te[7];if(!(null!==Ae&&n0&&(Ct=function Qt(n,r,c){if(n instanceof fd){const k=n.injector,te=Ut(n.parentInjector,r,c);return new fd(k,te)}const b=n.get(S.uvJ);if(b!==n){const k=Ut(b,r,c);return new fd(n,k)}return Ut(n,r,c)}(k[S.YEL],ri,Si))}const{dehydratedView:Zt,dehydratedViewIx:yn}=function Pn(n,r){const c=n[S.qFA]?.findIndex(k=>k.data.s===r[1])??-1;return{dehydratedView:c>-1?n[S.qFA][c]:null,dehydratedViewIx:c}}(c,r),Cn=dc(k,Ae,null,{injector:Ct,dehydratedView:Zt});if(Hc(c,Cn,ut,Gc(Ae,Zt)),dd(Cn,2),yn>-1&&c[S.qFA]?.splice(yn,1),(n===Ir.Complete||n===Ir.Error)&&Array.isArray(r[8])){for(const ri of r[8])ri();r[8]=null}}Ze(21)}function xi(n,r,c,b,k){const W=Date.now(),xe=yo(k[S.eDl],b);if(null===r[2]||r[2]<=W){r[2]=null;const Ae=C4(xe),ut=null!==r[3];if(n!==Ir.Loading||null===Ae||ut){n>Ir.Loading&&ut&&(r[3](),r[3]=null,r[0]=null),Fn(n,r,c,b,k);const Ct=Q3(xe,n);null!==Ct&&(r[2]=W+Ct,yi(Ct,r,b,c,k))}else{r[0]=n;const Ct=yi(Ae,r,b,c,k);r[3]=Ct}}else r[0]=n}function yi(n,r,c,b,k){return y(n,()=>{const te=r[0];r[2]=null,r[0]=null,null!==te&&pn(te,c,b)},k[S.YEL])}function Ji(n,r){return n{n.loadingState===Gs.COMPLETE?pn(Ir.Complete,r,c):n.loadingState===Gs.FAILED&&pn(Ir.Error,r,c)})}let ga=null;function kr(n,r,c,b){return Le(()=>{const k=n;null!==r&&(k.hasOwnProperty("decorators")&&void 0!==k.decorators?k.decorators.push(...r):k.decorators=r),null!==c&&(k.ctorParameters=c),null!==b&&(k.propDecorators=k.hasOwnProperty("propDecorators")&&void 0!==k.propDecorators?{...k.propDecorators,...b}:b)})}let Rr=(()=>{class n{log(c){console.log(c)}warn(c){console.warn(c)}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const l8=new S.nKC(""),c8=new S.nKC("");let Fp,x7=(()=>{class n{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(c,b,k){this._ngZone=c,this.registry=b,(0,S.M6u)()&&(this._destroyRef=(0,S.WQX)(S.abz,{optional:!0})??void 0),Fp||(function C7(n){Fp=n}(k),k.addToWindow(b)),this._watchAngularEvents(),c.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const c=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),b=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{c.unsubscribe(),b.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let c=this._callbacks.pop();clearTimeout(c.timeoutId),c.doneCb()}});else{let c=this.getPendingTasks();this._callbacks=this._callbacks.filter(b=>!b.updateCb||!b.updateCb(c)||(clearTimeout(b.timeoutId),!1))}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(c=>({source:c.source,creationLocation:c.creationLocation,data:c.data})):[]}addCallback(c,b,k){let W=-1;b&&b>0&&(W=setTimeout(()=>{this._callbacks=this._callbacks.filter(te=>te.timeoutId!==W),c()},b)),this._callbacks.push({doneCb:c,timeoutId:W,updateCb:k})}whenStable(c,b,k){if(k&&!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(c,b,k),this._runCallbacksIfReady()}registerApplication(c){this.registry.registerApplication(c,this)}unregisterApplication(c){this.registry.unregisterApplication(c)}findProviders(c,b,k){return[]}static \u0275fac=function(b){return new(b||n)((0,S.KVO)(pr),(0,S.KVO)(J3),(0,S.KVO)(c8))};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac})}return n})(),J3=(()=>{class n{_applications=new Map;registerApplication(c,b){this._applications.set(c,b)}unregisterApplication(c){this._applications.delete(c)}unregisterAllApplications(){this._applications.clear()}getTestability(c){return this._applications.get(c)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(c,b=!0){return Fp?.findTestabilityInTree(this,c,b)??null}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function d8(n){return!!n&&"function"==typeof n.then}function u8(n){return!!n&&"function"==typeof n.subscribe}const h8=new S.nKC("");function M7(n){return(0,S.EmA)([{provide:h8,multi:!0,useValue:n}])}let Bp=(()=>{class n{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((c,b)=>{this.resolve=c,this.reject=b});appInits=(0,S.WQX)(h8,{optional:!0})??[];injector=(0,S.WQX)(S.zZn);constructor(){}runInitializers(){if(this.initialized)return;const c=[];for(const k of this.appInits){const W=(0,S.N4e)(this.injector,k);if(d8(W))c.push(W);else if(u8(W)){const te=new Promise((xe,Ae)=>{W.subscribe({complete:xe,error:Ae})});c.push(te)}}const b=()=>{this.done=!0,this.resolve()};Promise.all(c).then(()=>{b()}).catch(k=>{this.reject(k)}),0===c.length&&b(),this.initialized=!0}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const f8=new S.nKC("");function m8(){}function E7(){(0,Xt.KO)(()=>{throw new S.buA(600,"")})}function p8(n,r){return Array.isArray(r)?r.reduce(p8,n):{...n,...r}}let q3=(()=>{class n{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=(0,S.WQX)(S.ZTf);afterRenderManager=(0,S.WQX)(b1);zonelessEnabled=(0,S.WQX)(S.Evm);rootEffectScheduler=(0,S.WQX)(S.VML);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new de.B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=(0,S.WQX)(S.rev);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe((0,me.T)(c=>!c))}constructor(){(0,S.WQX)(Fc,{optional:!0})}whenStable(){let c;return new Promise(b=>{c=this.isStable.subscribe({next:k=>{k&&b()}})}).finally(()=>{c.unsubscribe()})}_injector=(0,S.WQX)(S.uvJ);_rendererFactory=null;get injector(){return this._injector}bootstrap(c,b){return this.bootstrapImpl(c,b)}bootstrapImpl(c,b,k=S.zZn.NULL){return this._injector.get(pr).run(()=>{Ze(10);const te=c instanceof Vr;if(!this._injector.get(Bp).done)throw new S.buA(405,"");let Ae;Ae=te?c:this._injector.get(ll).resolveComponentFactory(c),this.componentTypes.push(Ae.componentType);const ut=function w7(n){return n.isBoundToModule}(Ae)?void 0:this._injector.get(G1),Zt=Ae.create(k,[],b||Ae.selector,ut),yn=Zt.location.nativeElement,Cn=Zt.injector.get(l8,null);return Cn?.registerApplication(yn),Zt.onDestroy(()=>{this.detachView(Zt.hostView),S4(this.components,Zt),Cn?.unregisterApplication(yn)}),this._loadComponent(Zt),Ze(11,Zt),Zt})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ze(12),null!==this.tracingSnapshot?this.tracingSnapshot.run(sd.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S.buA(101,!1);const c=(0,Xt.Ht)(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,(0,Xt.Ht)(c),this.afterTick.next(),Ze(13)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Xc,null,{optional:!0}));let c=0;for(;0!==this.dirtyFlags&&c++<10;)Ze(14),this.synchronizeOnce(),Ze(15)}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let c=!1;if(7&this.dirtyFlags){const b=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:k}of this.allViews)(b||(0,S.dMS)(k))&&(z0(k,b&&!this.zonelessEnabled?0:1),c=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}c||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:c})=>(0,S.dMS)(c))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(c){const b=c;this._views.push(b),b.attachToAppRef(this)}detachView(c){const b=c;S4(this._views,b),b.detachFromAppRef()}_loadComponent(c){this.attachView(c.hostView);try{this.tick()}catch(k){this.internalErrorHandler(k)}this.components.push(c),this._injector.get(f8,[]).forEach(k=>k(c))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(c=>c()),this._views.slice().forEach(c=>c.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(c){return this._destroyListeners.push(c),()=>S4(this._destroyListeners,c)}destroy(){if(this._destroyed)throw new S.buA(406,!1);const c=this._injector;c.destroy&&!c.destroyed&&c.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function S4(n,r){const c=n.indexOf(r);c>-1&&n.splice(c,1)}function Up(){let n,r;return{promise:new Promise((b,k)=>{n=b,r=k}),resolve:n,reject:r}}function em(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();if(qn(r,c),!_8(0,r))return;const b=r[S.YEL];fh(0,Fl(r,c),n(()=>Jd(0,r,c),b))}function Vp(n){const r=(0,S.OAn)(),c=r[S.YEL],b=(0,S.Mx4)(),W=yo(r[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&fh(1,Fl(r,b),n(()=>T4(W,r,b),c))}function g8(n,r,c){const b=r[S.YEL],k=Fl(r,c),W=k[6];fh(2,k,n(()=>b2(b,W),b))}function T4(n,r,c){Gp(n,r,c)}function Gp(n,r,c){const b=r[S.YEL],k=r[S.eDl];if(n.loadingState!==Gs.NOT_STARTED)return n.loadingPromise??Promise.resolve();const W=Fl(r,c),te=function Ip(n,r){return(0,S.XRZ)(n,r.primaryTmplIndex+S.Yw1)}(k,n);n.loadingState=Gs.IN_PROGRESS,x4(1,W);let xe=n.dependencyResolverFn;const Ae=b.get(S.u5s).add();return xe?(n.loadingPromise=Promise.allSettled(xe()).then(ut=>{let Ct=!1;const Zt=[],yn=[];for(const Cn of ut){if("fulfilled"!==Cn.status){Ct=!0;break}{const ri=Cn.value,Si=(0,S.xUg)(ri)||(0,S.HaV)(ri);if(Si)Zt.push(Si);else{const Ki=(0,S.oyA)(ri);Ki&&yn.push(Ki)}}}if(Ct){if(n.loadingState=Gs.FAILED,null===n.errorTmplIndex){const ri=new S.buA(-750,!1);Od(r,ri)}}else{n.loadingState=Gs.COMPLETE;const Cn=te.tView;if(Zt.length>0){Cn.directiveRegistry=$3(Cn.directiveRegistry,Zt);const ri=Zt.map(Ki=>Ki.type),Si=(0,S.jXY)(!1,...ri);n.providers=Si}yn.length>0&&(Cn.pipeRegistry=$3(Cn.pipeRegistry,yn))}}),n.loadingPromise.finally(()=>{n.loadingPromise=null,Ae()})):(n.loadingPromise=Promise.resolve().then(()=>{n.loadingPromise=null,n.loadingState=Gs.COMPLETE,Ae()}),n.loadingPromise)}function _8(n,r){return r[S.YEL].get(Xe,null,{optional:!0})?.behavior!==Dp.Manual}function Jd(n,r,c){const b=r[S.eDl],k=r[c.index];if(!_8(0,r))return;const W=Fl(r,c),te=yo(b,c);switch(Y3(W),te.loadingState){case Gs.NOT_STARTED:pn(Ir.Loading,c,k),Gp(te,r,c),te.loadingState===Gs.IN_PROGRESS&&Gi(te,c,k);break;case Gs.IN_PROGRESS:pn(Ir.Loading,c,k),Gi(te,c,k);break;case Gs.COMPLETE:pn(Ir.Complete,c,k);break;case Gs.FAILED:pn(Ir.Error,c,k)}}function b2(n,r,c){return Hp.apply(this,arguments)}function Hp(){return(Hp=(0,qt.A)(function*(n,r,c){const b=n.get(Do);if(b.hydrating.has(r))return;const{parentBlockPromise:W,hydrationQueue:te}=function _d(n,r){const c=r.get(Do),k=r.get(fr).get("__nghDeferData__",{});let W=!1,te=n,xe=null;const Ae=[];for(;!W&&te;){W=c.has(te);const ut=c.hydrating.get(te);if(null===xe&&null!=ut){xe=ut.promise;break}Ae.unshift(te),te=k[te].p}return{parentBlockPromise:xe,hydrationQueue:Ae}}(r,n);if(0===te.length)return;null!==W&&te.shift(),function y8(n,r){for(let c of r)n.hydrating.set(c,Up())}(b,te),null!==W&&(yield W);const xe=te[0];b.has(xe)?yield jp(n,te,c):b.awaitParentBlock(xe,(0,qt.A)(function*(){return yield jp(n,te,c)}))})).apply(this,arguments)}function jp(n,r,c){return Wp.apply(this,arguments)}function Wp(){return(Wp=(0,qt.A)(function*(n,r,c){const b=n.get(Do),k=b.hydrating,W=n.get(S.rev),te=W.add();for(let Ae=0;Ae-1?c.get(r[b]):null;k&&jt(k.lContainer)}function v8(n,r){const c=r.hydrating;for(const b in n)c.get(b)?.reject();r.cleanup(n)}function D7(n){return new Promise(r=>M0(r,{injector:n}))}function A7(n){return tm.apply(this,arguments)}function tm(){return(tm=(0,qt.A)(function*(n){const{tNode:r,lView:c}=n,b=Fl(c,r);return new Promise(k=>{(function L7(n,r){Array.isArray(n[8])||(n[8]=[]),n[8].push(r)})(b,k),Jd(0,c,r)})})).apply(this,arguments)}function Zs(n,r,c){return 0===n?x8(r,c):2!==n||!x8(r,c)}function x8(n,r){const c=n[S.YEL],b=yo(n[S.eDl],r),k=oa(c),W=function b8(n){return null!=n&&!(1&~n)}(b.flags),xe=null!==Fl(n,r)[6];return!(W&&xe&&k)}function W1(n,r){const c=yo(n,r);return c.hydrateTriggers??=new Map}function Kp(n,r){const c=(0,S.OAn)();if(os(c,(0,S.xbp)(),r)){const k=(0,S.klJ)(),W=(0,S.CpD)();if(S1(W,k,c,n,r))(0,S.Qs1)(W)&&O0(c,W.index);else{const xe=(0,S.d31)(W,c);M1(c[S.GpT],xe,null,W.value,n,r,null)}}return Kp}function Yp(n,r,c,b){const k=(0,S.OAn)();return os(k,(0,S.xbp)(),r)&&((0,S.klJ)(),function mf(n,r,c,b,k,W){const te=(0,S.d31)(n,r);M1(r[S.GpT],te,W,n.value,c,b,k)}((0,S.CpD)(),k,n,r,c,b)),Yp}const Y7=new S.nKC("",{providedIn:"root",factory:()=>!1}),Q7=new S.nKC("",{providedIn:"root",factory:()=>I8}),I8=4e3,X1=typeof document<"u"&&"function"==typeof document?.documentElement?.getAnimations;function nm(n){return n[S.YEL].get(Y7,!1)}function Qp(n){const r=ph.get(n);if(r){for(const c of r.cleanupFns)c();ph.delete(n)}x2.delete(n)}const R8=()=>{},ph=new WeakMap,x2=new WeakMap,gh=new WeakMap;function $p(n,r){const c=gh.get(n);if(c&&c.length>0){const b=c.findIndex(k=>k===r);b>-1&&c.splice(b,1)}0===c?.length&&gh.delete(n)}function A4(n,r){const c=gh.get(n)?.shift(),b=r[S.rQE];if(b){const W=C1(n.index,b)?.previousSibling;c&&W&&c===W&&c.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))}}function O8(n,r){gh.has(n)?gh.get(n)?.push(r):gh.set(n,[r])}function _h(n){const r=n[S.Isx]??={};return r.enter??=new Map}function C2(n){const r=n[S.Isx]??={};return r.leave??=new Map}function P8(n){const r="function"==typeof n?n():n;let c=Array.isArray(r)?r:null;return"string"==typeof r&&(c=r.trim().split(/\s+/).filter(b=>b)),c}function N8(n,r){const c=x2.get(r);return void 0===c||r===n.target&&(void 0!==c.animationName&&n.animationName===c.animationName||void 0!==c.propertyName&&n.propertyName===c.propertyName)}function im(n,r,c){const b=n.get(r.index)??{animateFns:[]};b.animateFns.push(c),n.set(r.index,b)}function am(n,r){if(n)for(const c of n)c();for(const c of r)c()}function Zp(n,r){const c=C2(n).get(r.index);c&&(c.resolvers=void 0)}function L4(n,r,c,b,k){$p(r,c),am(b,k),Zp(n,r)}class sv{destroy(r){}updateValue(r,c){}swap(r,c){const b=Math.min(r,c),k=Math.max(r,c),W=this.detach(k);if(k-b>1){const te=this.detach(b);this.attach(b,W),this.attach(k,te)}else this.attach(b,W)}move(r,c){this.attach(c,this.detach(r))}}function qp(n,r,c,b,k){return n===c&&Object.is(r,b)?1:Object.is(k(n,r),k(c,b))?-1:0}function sm(n,r,c,b){return!(void 0===r||!r.has(b)||(n.attach(c,r.get(b)),r.delete(b),0))}function F8(n,r,c,b,k){if(sm(n,r,b,c(b,k)))n.updateValue(b,k);else{const W=n.create(b,k);n.attach(b,W)}}function B8(n,r,c,b){const k=new Set;for(let W=r;W<=c;W++)k.add(b(W,n.at(W)));return k}class e6{kvMap=new Map;_vMap=void 0;has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;const c=this.kvMap.get(r);return void 0!==this._vMap&&this._vMap.has(c)?(this.kvMap.set(r,this._vMap.get(c)),this._vMap.delete(c)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,c){if(this.kvMap.has(r)){let b=this.kvMap.get(r);void 0===this._vMap&&(this._vMap=new Map);const k=this._vMap;for(;k.has(b);)b=k.get(b);k.set(b,c)}else this.kvMap.set(r,c)}forEach(r){for(let[c,b]of this.kvMap)if(r(b,c),void 0!==this._vMap){const k=this._vMap;for(;k.has(b);)b=k.get(b),r(b,c)}}}function z8(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),256,te,xe),om}function om(n,r,c,b,k,W,te,xe){Qs("NgControlFlow");const Ae=(0,S.OAn)(),ut=(0,S.klJ)();return H1(Ae,ut,n,r,c,b,k,(0,S.db4)(ut.consts,W),512,te,xe),om}function U8(n,r){Qs("NgControlFlow");const c=(0,S.OAn)(),b=(0,S.xbp)(),k=c[b]!==qa?c[b]:-1,W=-1!==k?lm(c,S.Yw1+k):void 0;if(os(c,b,n)){const xe=(0,Xt.Ht)(null);try{if(void 0!==W&&G0(W,0),-1!==n){const Ae=S.Yw1+n,ut=lm(c,Ae),Ct=t6(c[S.eDl],Ae),Zt=null;Hc(ut,dc(c,Ct,r,{dehydratedView:Zt}),0,Gc(Ct,Zt))}}finally{(0,Xt.Ht)(xe)}}else if(void 0!==W){const xe=Ru(W,0);void 0!==xe&&(xe[S.SKP]=r)}}class V8{lContainer;$implicit;$index;constructor(r,c,b){this.lContainer=r,this.$implicit=c,this.$index=b}get $count(){return this.lContainer.length-S.Y20}}function G8(n,r){return r}class cv{hasEmptyBlock;trackByFn;liveCollection;constructor(r,c,b){this.hasEmptyBlock=r,this.trackByFn=c,this.liveCollection=b}}function H8(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){Qs("NgControlFlow");const Cn=(0,S.OAn)(),ri=(0,S.klJ)(),Si=void 0!==Ae,Ki=(0,S.OAn)(),ia=xe?te.bind(Ki[S.b5C][S.SKP]):te,Ai=new cv(Si,ia);Ki[S.Yw1+n]=Ai,H1(Cn,ri,n+1,r,c,b,k,(0,S.db4)(ri.consts,W),256),Si&&H1(Cn,ri,n+2,Ae,ut,Ct,Zt,(0,S.db4)(ri.consts,yn),512)}class j8 extends sv{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(r,c,b){super(),this.lContainer=r,this.hostLView=c,this.templateTNode=b}get length(){return this.lContainer.length-S.Y20}at(r){return this.getLView(r)[S.SKP].$implicit}attach(r,c){const b=c[S.tcA];this.needsIndexUpdate||=r!==this.length,Hc(this.lContainer,c,r,Gc(this.templateTNode,b)),function dv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;b&&k&&k.detachedLeaveAnimationFns&&k.detachedLeaveAnimationFns.length>0&&(function J4(n,r){const c=n.get(Id);if(r.detachedLeaveAnimationFns){for(const b of r.detachedLeaveAnimationFns)c.queue.delete(b);r.detachedLeaveAnimationFns=void 0}}(b[S.YEL],k),Yo.delete(b),k.detachedLeaveAnimationFns=void 0)}(this.lContainer,r)}detach(r){return this.needsIndexUpdate||=r!==this.length-1,function uv(n,r){if(n.length<=S.Y20)return;const b=n[S.Y20+r],k=b?b[S.Isx]:void 0;k&&k.leave&&k.leave.size>0&&(k.detachedLeaveAnimationFns=[])}(this.lContainer,r),function hv(n,r){return Nd(n,r)}(this.lContainer,r)}create(r,c){const k=dc(this.hostLView,this.templateTNode,new V8(this.lContainer,c,r),{dehydratedView:null});return this.operationsCounter?.recordCreate(),k}destroy(r){x1(r[S.eDl],r),this.operationsCounter?.recordDestroy()}updateValue(r,c){this.getLView(r)[S.SKP].$implicit=c}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r{n.destroy(Ae)})}(Ae,n,W.trackByFn),Ae.updateIndexes(),W.hasEmptyBlock){const ut=(0,S.xbp)(),Ct=0===Ae.length;if(os(b,ut,Ct)){const Zt=c+2,yn=lm(b,Zt);if(Ct){const Cn=t6(k,Zt),ri=null;Hc(yn,dc(b,Cn,void 0,{dehydratedView:ri}),0,Gc(Cn,ri))}else k.firstUpdatePass&&J(yn),G0(yn,0)}}}finally{(0,Xt.Ht)(r)}}function lm(n,r){return n[r]}function t6(n,r){return(0,S.XRZ)(n,r)}function cm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),k0((0,S.CpD)(),b,n,r,b[S.GpT],c)),cm}function n6(n,r,c,b,k){S1(r,n,c,k?"class":"style",b)}function O4(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?a2(te,k,2,r,N0,(0,S.ckz)(),c,b):W.data[te];if(E1(xe,k,n,r,r6),(0,S.yoD)(xe)){const Ae=k[S.eDl];I0(Ae,k,xe),Wa(Ae,xe,k)}return null!=b&&Ol(k,xe),O4}function dm(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),(0,S.UhH)(c)&&(0,S.krE)(),(0,S.N79)(),null!=c.classesWithoutHost&&function Un(n){return!!(8&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.classesWithoutHost,!0),null!=c.stylesWithoutHost&&function ui(n){return!!(16&n.flags)}(c)&&n6(n,c,(0,S.OAn)(),c.stylesWithoutHost,!1),dm}function i6(n,r,c,b){return O4(n,r,c,b),dm(),i6}function um(n,r,c,b){const k=(0,S.OAn)(),W=k[S.eDl],te=n+S.Yw1,xe=W.firstCreatePass?qf(te,W,2,r,c,b):W.data[te];return E1(xe,k,n,r,r6),null!=b&&Ol(k,xe),um}function vh(){const r=w1((0,S.Mx4)());return(0,S.UhH)(r)&&(0,S.krE)(),(0,S.N79)(),vh}function a6(n,r,c,b){return um(n,r,c,b),vh(),a6}let r6=(n,r,c,b,k)=>((0,S.m7n)(!0),s1(r[S.GpT],b,(0,S.UaU)()));function hm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?a2(W,b,8,"ng-container",N0,(0,S.ckz)(),r,c):k.data[W];if(E1(te,b,n,"ng-container",o6),(0,S.yoD)(te)){const xe=b[S.eDl];I0(xe,b,te),Wa(xe,te,b)}return null!=c&&Ol(b,te),hm}function yh(){const n=(0,S.klJ)(),c=w1((0,S.Mx4)());return n.firstCreatePass&&Jf(n,c),yh}function s6(n,r,c){return hm(n,r,c),yh(),s6}function fm(n,r,c){const b=(0,S.OAn)(),k=b[S.eDl],W=n+S.Yw1,te=k.firstCreatePass?qf(W,k,8,"ng-container",r,c):k.data[W];return E1(te,b,n,"ng-container",o6),null!=c&&Ol(b,te),fm}function K8(){return w1((0,S.Mx4)()),yh}let o6=(n,r,c,b,k)=>((0,S.m7n)(!0),a0(r[S.GpT],""));function Q8(){return(0,S.OAn)()}function mm(n,r,c){const b=(0,S.OAn)();return os(b,(0,S.xbp)(),r)&&((0,S.klJ)(),R0((0,S.CpD)(),b,n,r,b[S.GpT],c)),mm}const pm=void 0;var gv=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],pm,[["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"]],pm,[["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}",pm,"{1} 'at' {0}",pm],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function l6(n){const r=Math.floor(Math.abs(n)),c=n.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===c?1:5}];let bh={};function c6(n){const r=function _v(n){return n.toLowerCase().replace(/_/g,"-")}(n);let c=Z8(r);if(c)return c;const b=r.split("-")[0];if(c=Z8(b),c)return c;if("en"===b)return gv;throw new S.buA(701,!1)}function d6(n){return c6(n)[M2.PluralCase]}function Z8(n){if(!(n in bh)){const r=S.laP.ng&&S.laP.ng.common&&S.laP.ng.common.locales&&S.laP.ng.common.locales[n];return void 0!==r&&(bh[n]=r),r}return bh[n]}var M2=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(M2||{});const J8=["zero","one","two","few","many"],u6="en-US",gm={marker:"element"},_m={marker:"ICU"};var $l=function(n){return n[n.SHIFT=2]="SHIFT",n[n.APPEND_EAGERLY=1]="APPEND_EAGERLY",n[n.COMMENT=2]="COMMENT",n}($l||{});let q8=u6;function bv(n){"string"==typeof n&&(q8=n.toLowerCase().replace(/_/g,"-"))}let P4=0,xh=0;let E2=(n,r,c,b)=>((0,S.m7n)(!0),function e_(n,r,c){const b=n[S.GpT];switch(c){case Node.COMMENT_NODE:return a0(b,r);case Node.TEXT_NODE:return r1(b,r);case Node.ELEMENT_NODE:return s1(b,r,null)}}(n,c,b));function t_(n,r,c,b){const k=c[S.GpT];let te,W=null;for(let xe=0;xe>>1,c),null,null,Cn,ri,null)}else switch(Ae){case _m:const ut=r[++xe],Ct=r[++xe];null===c[Ct]&&Aa(c[Ct]=E2(c,0,ut,Node.COMMENT_NODE),c);break;case gm:const Zt=r[++xe],yn=r[++xe];null===c[yn]&&Aa(c[yn]=E2(c,0,Zt,Node.ELEMENT_NODE),c)}}}function h6(n,r,c,b,k){for(let W=0;W>>2;switch(3&Ct){case 1:const yn=c[++ut],Cn=c[++ut],ri=n.data[Zt];if("string"==typeof ri)M1(r[S.GpT],r[Zt],null,ri,yn,Ae,Cn);else{const Ki=(0,S._px)();(0,S.ypq)(Zt);try{k0(ri,r,yn,Ae,r[S.GpT],Cn)}finally{(0,S.ypq)(Ki)}}break;case 0:const Si=r[Zt];null!==Si&&R2(r[S.GpT],Si,Ae);break;case 2:Sv(n,R1(n,Zt),r,Ae);break;case 3:n_(n,R1(n,Zt),b,r)}}}}else{const Ae=c[W+1];if(Ae>0&&!(3&~Ae)){const Ct=R1(n,Ae>>>2);r[Ct.currentCaseLViewIndex]<0&&n_(n,Ct,b,r)}}W+=xe}}function n_(n,r,c,b){let k=b[r.currentCaseLViewIndex];if(null!==k){let W=P4;k<0&&(k=b[r.currentCaseLViewIndex]=~k,W=-1),h6(n,b,r.update[k],c,W)}}function Sv(n,r,c,b){const k=function Tv(n,r){let c=n.cases.indexOf(r);if(-1===c)switch(n.type){case 1:{const b=function vv(n,r){const c=d6(r)(parseInt(n,10)),b=J8[c];return void 0!==b?b:"other"}(r,function xv(){return q8}());c=n.cases.indexOf(b),-1===c&&"other"!==b&&(c=n.cases.indexOf("other"));break}case 0:c=n.cases.indexOf("other")}return-1===c?null:c}(r,b);if(Q0(r,c)!==k&&(f6(n,r,c),c[r.currentCaseLViewIndex]=null===k?null:~k,null!==k)){const te=c[r.anchorIdx];te&&t_(n,r.create[k],c,te)}}function f6(n,r,c){let b=Q0(r,c);if(null!==b){const k=r.remove[b];for(let W=0;W0){const xe=(0,S.vaC)(te,c);null!==xe&&Cd(c[S.GpT],xe)}else f6(n,R1(n,~te),c)}}}const vm=/\ufffd(\d+):?\d*\ufffd/gi,Av=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,a_=/\ufffd(\d+)\ufffd/,m6=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,p6=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Lv=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iv=/\uE500/g;function s_(n,r,c,b,k,W,te){const xe=Sd(n,b,1,null);let Ae=xe<<$l.SHIFT,ut=(0,S.Ab)();r===ut&&(ut=null),null===ut&&(Ae|=$l.APPEND_EAGERLY),te&&(Ae|=$l.COMMENT,function Yh(n){void 0===m1&&(m1=n())}(Gf)),k.push(Ae,null===W?"":W);const Ct=Pl(n,xe,te?32:1,null===W?"":W,null);Dc(c,Ct);const Zt=Ct.index;return(0,S.iMd)(Ct,!1),null!==ut&&r!==ut&&function Ff(n,r){let c=n.insertBeforeIndex;null===c?(sf(k1,Pu),c=n.insertBeforeIndex=[null,r]):((0,S.Xln)(Array.isArray(c),!0,"Expecting array here"),c.push(r))}(ut,Zt),Ct}function Rv(n,r,c,b,k,W,te,xe){const Ae=xe.match(vm),Ct=s_(r,c,b,te,k,Ae?null:xe,!1).index;Ae&&F4(W,xe,Ct,null,0,null),n.push({kind:0,index:Ct})}function F4(n,r,c,b,k,W){const te=n.length,xe=te+1;n.push(null,null);const Ae=te+2,ut=r.split(vm);let Ct=0;for(let Zt=0;Ztc.length&&c.push(Ae)}return{type:b,mainBinding:k,cases:r,values:c}}function v6(n){if(!n)return[];let r=0;const c=[],b=[],k=/[{}]/g;let W;for(k.lastIndex=0;W=k.exec(n);){const xe=W.index;if("}"==W[0]){if(c.pop(),0==c.length){const Ae=n.substring(r,xe);m6.test(Ae)?b.push(Fv(Ae)):b.push(Ae),r=xe+1}}else{if(0==c.length){const Ae=n.substring(r,xe);b.push(Ae),r=xe+1}c.push("{")}}const te=n.substring(r);return b.push(te),b}function Bv(n,r,c,b,k,W,te,xe,Ae){const ut=[],Ct=[],Zt=[];c.cases.push(te),c.create.push(ut),c.remove.push(Ct),c.update.push(Zt);const Cn=Wi(hr()).getInertBodyElement(xe),ri=_o(Cn)||Cn;return ri?l_(n,r,c,b,k,ut,Ct,Zt,ri,W,Ae,0):0}function l_(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt){let yn=0,Cn=Ae.firstChild;for(;Cn;){const ri=Sd(r,b,1,null);switch(Cn.nodeType){case Node.ELEMENT_NODE:const Si=Cn,Ki=Si.tagName.toLowerCase();if(xc.hasOwnProperty(Ki)){y6(W,gm,Ki,ut,ri),r.data[ri]=Ki;const Zo=Si.attributes;for(let qd=0;qd>>$l.SHIFT;let Zt=n[Ct],yn=!1;null===Zt&&(Zt=n[Ct]=E2(n,0,r[W],(te&$l.COMMENT)===$l.COMMENT?Node.COMMENT_NODE:Node.TEXT_NODE),yn=(0,S.SX7)()),ut&&null!==c&&yn&&Mc(k,c,Zt,b,!1)}})(k,Ae.create,Ct,xe&&8&xe.type?k[xe.index]:null),(0,S.xyx)(!0)}function __(){(0,S.xyx)(!1)}function bm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return C6(k,b,b[S.GpT],W,n,r,c),bm}function xm(n,r,c){const b=(0,S.OAn)(),k=(0,S.klJ)(),W=(0,S.Mx4)();return(3&W.type||c)&&Zm(W,k,b,c,b[S.GpT],n,r,s2(W,b,r)),xm}function C6(n,r,c,b,k,W,te){let xe=!0,Ae=null;if((3&b.type||te)&&(Ae??=s2(b,r,W),Zm(b,n,r,te,c,k,W,Ae)&&(xe=!1)),xe){const ut=b.outputs?.[k],Ct=b.hostDirectiveOutputs?.[k];if(Ct&&Ct.length)for(let Zt=0;Zt>17&32767}function w6(n){return 2|n}function Y1(n){return(131068&n)>>2}function S6(n,r){return-131069&n|r<<2}function T6(n){return 1|n}function L_(n,r,c,b){const k=n[c+1],W=null===r;let te=b?K1(k):Y1(k),xe=!1;for(;0!==te&&(!1===xe||W);){const ut=n[te+1];e9(n[te],r)&&(xe=!0,n[te+1]=b?T6(ut):w6(ut)),te=b?K1(ut):Y1(ut)}xe&&(n[c+1]=b?w6(k):T6(k))}function e9(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&(0,S.FRF)(n,r)>=0}const Bo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function I_(n){return n.substring(Bo.key,Bo.keyEnd)}function k_(n){return n.substring(Bo.value,Bo.valueEnd)}function A6(n,r){const c=Bo.textEnd;return c===r?-1:(r=Bo.keyEnd=function L6(n,r,c){for(;r32;)r++;return r}(n,Bo.key=r,c),Ch(n,r,c))}function R_(n,r){const c=Bo.textEnd;let b=Bo.key=Ch(n,r,c);return c===b?-1:(b=Bo.keyEnd=function i9(n,r,c){let b;for(;r=65&&(-33&b)<=90||b>=48&&b<=57);)r++;return r}(n,b,c),b=P_(n,b,c),b=Bo.value=Ch(n,b,c),b=Bo.valueEnd=function a9(n,r,c){let b=-1,k=-1,W=-1,te=r,xe=te;for(;te32&&(xe=te),W=k,k=b,b=-33&Ae}return xe}(n,b,c),P_(n,b,c))}function O_(n){Bo.key=0,Bo.keyEnd=0,Bo.value=0,Bo.valueEnd=0,Bo.textEnd=n.length}function Ch(n,r,c){for(;r=0;c=R_(r,c))R6(n,I_(r),k_(r))}function B_(n){V_(d9,z_,n,!0)}function z_(n,r){for(let c=function t9(n){return O_(n),A6(n,Ch(n,0,Bo.textEnd))}(r);c>=0;c=A6(r,c))(0,S.ezK)(n,I_(r),!0)}function U_(n,r,c,b){const k=(0,S.OAn)(),W=(0,S.klJ)(),te=(0,S.b$O)(2);W.firstUpdatePass&&H_(W,n,te,b),r!==qa&&os(k,te,r)&&W_(W,W.data[(0,S._px)()],k,k[S.GpT],n,k[te+1]=function h9(n,r){return null==n||""===n||("string"==typeof r?n+=r:"object"==typeof n&&(n=(0,S.AsM)(wt(n)))),n}(r,c),b,te)}function V_(n,r,c,b){const k=(0,S.klJ)(),W=(0,S.b$O)(2);k.firstUpdatePass&&H_(k,null,W,b);const te=(0,S.OAn)();if(c!==qa&&os(te,W,c)){const xe=k.data[(0,S._px)()];if(K_(xe,b)&&!G_(k,W)){let Ae=b?xe.classesWithoutHost:xe.stylesWithoutHost;null!==Ae&&(c=(0,S.n$e)(Ae,c||"")),n6(k,xe,te,c,b)}else!function u9(n,r,c,b,k,W,te,xe){k===qa&&(k=S.Mlv);let Ae=0,ut=0,Ct=0=n.expandoStartIndex}function H_(n,r,c,b){const k=n.data;if(null===k[c+1]){const W=k[(0,S._px)()],te=G_(n,c);K_(W,b)&&null===r&&!te&&(r=!1),r=function j_(n,r,c,b){const k=(0,S.MT)(n);let W=b?r.residualClasses:r.residualStyles;if(null===k)0===(b?r.classBindings:r.styleBindings)&&(c=Mh(c=k6(null,n,r,c,b),r.attrs,b),W=null);else{const te=r.directiveStylingLast;if(-1===te||n[te]!==k)if(c=k6(k,n,r,c,b),null===W){let Ae=function s9(n,r,c){const b=c?r.classBindings:r.styleBindings;if(0!==Y1(b))return n[K1(b)]}(n,r,b);void 0!==Ae&&Array.isArray(Ae)&&(Ae=k6(null,n,r,Ae[1],b),Ae=Mh(Ae,r.attrs,b),function o9(n,r,c,b){n[K1(c?r.classBindings:r.styleBindings)]=b}(n,r,b,Ae))}else W=function l9(n,r,c){let b;const k=r.directiveEnd;for(let W=1+r.directiveStylingLast;W0)&&(ut=!0)):Ct=c,k)if(0!==Ae){const yn=K1(n[xe+1]);n[b+1]=Mm(yn,xe),0!==yn&&(n[yn+1]=S6(n[yn+1],b)),n[xe+1]=function Zv(n,r){return 131071&n|r<<17}(n[xe+1],b)}else n[b+1]=Mm(xe,0),0!==xe&&(n[xe+1]=S6(n[xe+1],b)),xe=b;else n[b+1]=Mm(Ae,0),0===xe?xe=b:n[Ae+1]=S6(n[Ae+1],b),Ae=b;ut&&(n[b+1]=w6(n[b+1])),L_(n,Ct,b,!0),L_(n,Ct,b,!1),function D6(n,r,c,b,k){const W=k?n.residualClasses:n.residualStyles;null!=W&&"string"==typeof r&&(0,S.FRF)(W,r)>=0&&(c[b+1]=T6(c[b+1]))}(r,Ct,n,b,W),te=Mm(xe,Ae),W?r.classBindings=te:r.styleBindings=te}(k,W,r,c,te,b)}}function k6(n,r,c,b,k){let W=null;const te=c.directiveEnd;let xe=c.directiveStylingLast;for(-1===xe?xe=c.directiveStart:xe++;xe0;){const Ae=n[k],ut=Array.isArray(Ae),Ct=ut?Ae[1]:Ae,Zt=null===Ct;let yn=c[k+1];yn===qa&&(yn=Zt?S.Mlv:void 0);let Cn=Zt?(0,S.K7h)(yn,b):Ct===b?yn:void 0;if(ut&&!z4(Cn)&&(Cn=(0,S.K7h)(Ae,b)),z4(Cn)&&(xe=Cn,te))return xe;const ri=n[k+1];k=te?K1(ri):Y1(ri)}if(null!==r){let Ae=W?r.residualClasses:r.residualStyles;null!=Ae&&(xe=(0,S.K7h)(Ae,b))}return xe}function z4(n){return void 0!==n}function K_(n,r){return!!(n.flags&(r?8:16))}function U4(n,r=""){const c=(0,S.OAn)(),b=(0,S.klJ)(),k=n+S.Yw1,W=b.firstCreatePass?Yl(b,k,1,r,null):b.data[k],te=Y_(b,c,W,r,n);c[k]=te,(0,S.SX7)()&&mu(b,c,te,W),(0,S.iMd)(W,!1)}let Y_=(n,r,c,b,k)=>((0,S.m7n)(!0),r1(r[S.GpT],b));function O6(n,r){let c=!1,b=(0,S.c$7)();for(let W=1;W>20;if((0,S.Y3W)(n)||!n.multi){const Cn=new nn(ut,k,ys,null),ri=H6(Ae,r,k?Ct:Ct+yn,Zt);-1===ri?(ti(un(xe,te),W,Ae),G6(W,n,r.length),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(Cn),te.push(Cn)):(c[ri]=Cn,te[ri]=Cn)}else{const Cn=H6(Ae,r,Ct+yn,Zt),ri=H6(Ae,r,Ct,Ct+yn),Ki=ri>=0&&c[ri];if(k&&!Ki||!k&&!(Cn>=0&&c[Cn])){ti(un(xe,te),W,Ae);const ia=function M9(n,r,c,b,k){const te=new nn(n,c,ys,null);return te.multi=[],te.index=r,te.componentProviders=0,p5(te,k,b&&!c),te}(k?C9:j6,c.length,k,b,ut);!k&&Ki&&(c[ri].providerFactory=ia),G6(W,n,r.length,0),r.push(Ae),xe.directiveStart++,xe.directiveEnd++,k&&(xe.providerIndexes+=1048576),c.push(ia),te.push(ia)}else G6(W,n,Cn>-1?Cn:ri,p5(c[k?ri:Cn],ut,!k&&b));!k&&b&&Ki&&c[ri].componentProviders++}}}function G6(n,r,c,b){const k=(0,S.Y3W)(r),W=(0,S.MME)(r);if(k||W){const Ae=(W?(0,S.nl4)(r.useClass):r).prototype.ngOnDestroy;if(Ae){const ut=n.destroyHooks||(n.destroyHooks=[]);if(!k&&r.multi){const Ct=ut.indexOf(c);-1===Ct?ut.push(c,[b,Ae]):ut[Ct+1].push(b,Ae)}else ut.push(c,Ae)}}}function p5(n,r,c){return c&&n.componentProviders++,n.multi.push(r)-1}function H6(n,r,c,b){for(let k=c;k{c.providersResolver=(b,k)=>function x9(n,r,c){const b=(0,S.klJ)();if(b.firstCreatePass){const k=(0,S.JlV)(n);V6(c,b.data,b.blueprint,k,!0),V6(r,b.data,b.blueprint,k,!1)}}(b,k?k(n):n,r)}}function Sm(n){if("function"==typeof n)return n;const r=(0,S.Bqz)(n);return r.some(S.Jzi)?()=>r.map(S.nl4).map(y5):r.map(y5)}function y5(n){return B1(n)?n.ngModule:n}function b5(n,r,c){const b=(0,S.gxQ)()+n,k=(0,S.OAn)();return k[b]===qa?Yc(k,b,c?r.call(c):r()):r2(k,b)}function Tm(n,r,c,b){return w5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)}function x5(n,r,c,b,k){return S5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k)}function C5(n,r,c,b,k,W){return T5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W)}function G4(n,r){const c=n[r];return c===qa?void 0:c}function w5(n,r,c,b,k,W){const te=r+c;return os(n,te,k)?Yc(n,te+1,W?b.call(W,k):b(k)):G4(n,te+1)}function S5(n,r,c,b,k,W,te){const xe=r+c;return Gd(n,xe,k,W)?Yc(n,xe+2,te?b.call(te,k,W):b(k,W)):G4(n,xe+2)}function T5(n,r,c,b,k,W,te,xe){const Ae=r+c;return t4(n,Ae,k,W,te)?Yc(n,Ae+3,xe?b.call(xe,k,W,te):b(k,W,te)):G4(n,Ae+3)}function X6(n,r,c,b,k,W,te,xe,Ae){const ut=r+c;return hc(n,ut,k,W,te,xe)?Yc(n,ut+4,Ae?b.call(Ae,k,W,te,xe):b(k,W,te,xe)):G4(n,ut+4)}function D5(n,r,c,b,k,W){let te=r+c,xe=!1;for(let Ae=0;Ae=0;c--){const b=r[c];if(n===b.name)return b}}(r,c.pipeRegistry),c.data[k]=b,b.onDestroy&&(c.destroyHooks??=[]).push(k,b.onDestroy)):b=c.data[k];const W=b.factory||(b.factory=(0,S.wGu)(b.type,!0)),xe=(0,S.a2B)(ys);try{const Ae=Jn(!1),ut=W();return Jn(Ae),(0,S.M_e)(c,(0,S.OAn)(),k,ut),ut}finally{(0,S.a2B)(xe)}}function I5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?w5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform(c)}function K6(n,r,c,b){const k=n+S.Yw1,W=(0,S.OAn)(),te=(0,S.Hh6)(W,k);return H4(W,k)?S5(W,(0,S.gxQ)(),r,te.transform,c,b,te):te.transform(c,b)}function k5(n,r,c,b,k){const W=n+S.Yw1,te=(0,S.OAn)(),xe=(0,S.Hh6)(te,W);return H4(te,W)?T5(te,(0,S.gxQ)(),r,xe.transform,c,b,k,xe):xe.transform(c,b,k)}function H4(n,r){return n[S.eDl].data[r].pure}function Y6(n,r){return D1(n,r)}function Dm(n,r,c,b,k){const W=k[S.eDl];if(W!==b.tView)for(let te=S.Yw1;te{if(b.encapsulation===Ui.ShadowDom){const ri=te.cloneNode(!1);te.replaceWith(ri),te=ri}const Zt=Q2(c),yn=Ed(xe,Zt,W,wd(c),te,Ae,null,null,null,null,null);(function P5(n,r,c,b){for(let k=S.Yw1;kO5(n,r,Ct))}(n,r,c,b,k)}function O5(n,r,c){try{c()}catch(b){if(null!==r&&b.message){const W=b.message+(b.stack?"\n"+b.stack:"");n?.hot?.send?.("angular:invalidate",{id:r,message:W,error:!0})}throw b}}const Q1={\u0275\u0275animateEnter:function rm(n){if(Qs("NgAnimateEnter"),!X1)return rm;const r=(0,S.OAn)();if(nm(r))return rm;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function ev(n,r,c){const b=(0,S.d31)(r,n),k=n[S.GpT],W=n[S.YEL].get(pr),te=P8(c),xe=[],Ae=Ct=>{if(Ct.target!==b)return;const Zt=Ct instanceof AnimationEvent?"animationend":"transitionend";W.runOutsideAngular(()=>{k.listen(b,Zt,ut)})},ut=Ct=>{Ct.target===b&&function tv(n,r,c){const b=ph.get(r);if(n.target===r&&b&&N8(n,r)){n.stopImmediatePropagation();for(const k of b.classList)c.removeClass(r,k);Qp(r)}}(Ct,b,k)};if(te&&te.length>0){W.runOutsideAngular(()=>{xe.push(k.listen(b,"animationstart",Ae)),xe.push(k.listen(b,"transitionstart",Ae))}),function Z7(n,r,c){const b=ph.get(n);if(b){for(const k of r)b.classList.push(k);for(const k of c)b.cleanupFns.push(k)}else ph.set(n,{classList:r,cleanupFns:c})}(b,te,xe);for(const Ct of te)k.addClass(b,Ct);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{if(v0(b,x2,X1),!x2.has(b)){for(const Ct of te)k.removeClass(b,Ct);Qp(b)}})})}}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),rm},\u0275\u0275animateEnterListener:function I4(n){if(Qs("NgAnimateEnter"),!X1)return I4;const r=(0,S.OAn)();if(nm(r))return I4;const c=(0,S.Mx4)();return A4(c,r),im(_h(r),c,()=>function nv(n,r,c){const b=(0,S.d31)(r,n);c.call(n[S.SKP],{target:b,animationComplete:R8})}(r,c,n)),E0(r[S.YEL]),kd(r[S.YEL],_h(r)),I4},\u0275\u0275animateLeave:function k4(n){if(Qs("NgAnimateLeave"),!X1)return k4;const r=(0,S.OAn)();if(nm(r))return k4;const b=(0,S.Mx4)();return A4(b,r),im(C2(r),b,()=>function iv(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=n[S.GpT],xe=n[S.YEL].get(pr);Yo.add(n),(C2(n).get(r.index).resolvers??=[]).push(k);const Ae=P8(c);return Ae&&Ae.length>0?function R4(n,r,c,b,k,W){!function J7(n,r){if(!X1)return;const c=ph.get(n);if(c&&c.classList.length>0&&function q7(n,r){for(const c of r)if(n.classList.contains(c))return!0;return!1}(n,c.classList))for(const b of c.classList)r.removeClass(n,b);Qp(n)}(n,k);const te=[],xe=C2(c).get(r.index)?.resolvers,Ae=ut=>{if(ut.target===n&&(ut instanceof CustomEvent||N8(ut,n))){if(ut.stopImmediatePropagation(),x2.delete(n),$p(r,n),Array.isArray(r.projection))for(const Ct of b)k.removeClass(n,Ct);am(xe,te),Zp(c,r)}};W.runOutsideAngular(()=>{te.push(k.listen(n,"animationend",Ae)),te.push(k.listen(n,"transitionend",Ae))}),O8(r,n);for(const ut of b)k.addClass(n,ut);W.runOutsideAngular(()=>{requestAnimationFrame(()=>{v0(n,x2,X1),x2.has(n)||($p(r,n),am(xe,te),Zp(c,r))})})}(W,r,n,Ae,te,xe):k(),{promise:b,resolve:k}}(r,b,n)),E0(r[S.YEL]),k4},\u0275\u0275animateLeaveListener:function Jp(n){if(Qs("NgAnimateLeave"),!X1)return Jp;const r=(0,S.OAn)(),c=(0,S.Mx4)();return A4(c,r),Yo.add(r),im(C2(r),c,()=>function av(n,r,c){const{promise:b,resolve:k}=Up(),W=(0,S.d31)(r,n),te=[],xe=n[S.GpT],Ae=nm(n),ut=n[S.YEL].get(pr),Ct=n[S.YEL].get(Q7);(C2(n).get(r.index).resolvers??=[]).push(k);const Zt=C2(n).get(r.index)?.resolvers;if(Ae)L4(n,r,W,Zt,te);else{const yn=setTimeout(()=>L4(n,r,W,Zt,te),Ct),Cn={target:W,animationComplete:()=>{L4(n,r,W,Zt,te),clearTimeout(yn)}};O8(r,W),ut.runOutsideAngular(()=>{te.push(xe.listen(W,"animationend",()=>{L4(n,r,W,Zt,te),clearTimeout(yn)},{once:!0}))}),c.call(n[S.SKP],Cn)}return{promise:b,resolve:k}}(r,c,n)),E0(r[S.YEL]),Jp},\u0275\u0275attribute:Yp,\u0275\u0275defineComponent:pp,\u0275\u0275defineDirective:U3,\u0275\u0275defineInjectable:S.jDH,\u0275\u0275defineInjector:S.G2t,\u0275\u0275defineNgModule:_p,\u0275\u0275definePipe:V3,\u0275\u0275directiveInject:ys,\u0275\u0275getInheritedFactory:vt,\u0275\u0275inject:S.KVO,\u0275\u0275injectAttribute:va,\u0275\u0275invalidFactory:Ac,\u0275\u0275invalidFactoryDep:S.dmw,\u0275\u0275templateRefExtractor:Y6,\u0275\u0275resetView:S.Njj,\u0275\u0275HostDirectivesFeature:xp,\u0275\u0275NgOnChangesFeature:St,\u0275\u0275ProvidersFeature:g5,\u0275\u0275CopyDefinitionFeature:function dh(n){let c,r=yp(n.type);c=(0,S.JlV)(n)?r.\u0275cmp:r.\u0275dir;const b=n;for(const k of H3)b[k]=c[k];if((0,S.JlV)(c))for(const k of m2)b[k]=c[k]},\u0275\u0275InheritDefinitionFeature:m4,\u0275\u0275ExternalStylesFeature:function _5(n){return r=>{n.length<1||(r.getExternalStyles=c=>n.map(k=>k+"?ngcomp"+(c?"="+encodeURIComponent(c):"")+"&e="+r.encapsulation))}},\u0275\u0275nextContext:x_,\u0275\u0275namespaceHTML:S.joV,\u0275\u0275namespaceMathML:S.By9,\u0275\u0275namespaceSVG:S.qSk,\u0275\u0275enableBindings:S.cSN,\u0275\u0275disableBindings:S.fuf,\u0275\u0275elementStart:O4,\u0275\u0275elementEnd:dm,\u0275\u0275element:i6,\u0275\u0275elementContainerStart:hm,\u0275\u0275elementContainerEnd:yh,\u0275\u0275domElement:a6,\u0275\u0275domElementStart:um,\u0275\u0275domElementEnd:vh,\u0275\u0275domElementContainer:function Y8(n,r,c){return fm(n,r,c),K8(),Y8},\u0275\u0275domElementContainerStart:fm,\u0275\u0275domElementContainerEnd:K8,\u0275\u0275domTemplate:y4,\u0275\u0275domListener:xm,\u0275\u0275elementContainer:s6,\u0275\u0275pureFunction0:b5,\u0275\u0275pureFunction1:Tm,\u0275\u0275pureFunction2:x5,\u0275\u0275pureFunction3:C5,\u0275\u0275pureFunction4:function w9(n,r,c,b,k,W,te){return X6((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b,k,W,te)},\u0275\u0275pureFunction5:function M5(n,r,c,b,k,W,te,xe){const Ae=(0,S.gxQ)()+n,ut=(0,S.OAn)(),Ct=hc(ut,Ae,c,b,k,W);return os(ut,Ae+4,te)||Ct?Yc(ut,Ae+5,xe?r.call(xe,c,b,k,W,te):r(c,b,k,W,te)):r2(ut,Ae+5)},\u0275\u0275pureFunction6:function S9(n,r,c,b,k,W,te,xe,Ae){const ut=(0,S.gxQ)()+n,Ct=(0,S.OAn)(),Zt=hc(Ct,ut,c,b,k,W);return Gd(Ct,ut+4,te,xe)||Zt?Yc(Ct,ut+6,Ae?r.call(Ae,c,b,k,W,te,xe):r(c,b,k,W,te,xe)):r2(Ct,ut+6)},\u0275\u0275pureFunction7:function E5(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.gxQ)()+n,Zt=(0,S.OAn)();let yn=hc(Zt,Ct,c,b,k,W);return t4(Zt,Ct+4,te,xe,Ae)||yn?Yc(Zt,Ct+7,ut?r.call(ut,c,b,k,W,te,xe,Ae):r(c,b,k,W,te,xe,Ae)):r2(Zt,Ct+7)},\u0275\u0275pureFunction8:function T9(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.gxQ)()+n,yn=(0,S.OAn)(),Cn=hc(yn,Zt,c,b,k,W);return hc(yn,Zt+4,te,xe,Ae,ut)||Cn?Yc(yn,Zt+8,Ct?r.call(Ct,c,b,k,W,te,xe,Ae,ut):r(c,b,k,W,te,xe,Ae,ut)):r2(yn,Zt+8)},\u0275\u0275pureFunctionV:function D9(n,r,c,b){return D5((0,S.OAn)(),(0,S.gxQ)(),n,r,c,b)},\u0275\u0275getCurrentView:Q8,\u0275\u0275restoreView:S.eBV,\u0275\u0275listener:bm,\u0275\u0275projection:M6,\u0275\u0275syntheticHostProperty:function $8(n,r,c){const b=(0,S.OAn)();if(os(b,(0,S.xbp)(),r)){const W=(0,S.klJ)(),te=(0,S.CpD)();R0(te,b,n,r,xu((0,S.MT)(W.data),te,b),c)}return $8},\u0275\u0275syntheticHostListener:function b_(n,r){const c=(0,S.Mx4)(),b=(0,S.OAn)(),k=(0,S.klJ)();return C6(k,b,xu((0,S.MT)(k.data),c,b),c,n,r),b_},\u0275\u0275pipeBind1:I5,\u0275\u0275pipeBind2:K6,\u0275\u0275pipeBind3:k5,\u0275\u0275pipeBind4:function L9(n,r,c,b,k,W){const te=n+S.Yw1,xe=(0,S.OAn)(),Ae=(0,S.Hh6)(xe,te);return H4(xe,te)?X6(xe,(0,S.gxQ)(),r,Ae.transform,c,b,k,W,Ae):Ae.transform(c,b,k,W)},\u0275\u0275pipeBindV:function R5(n,r,c){const b=n+S.Yw1,k=(0,S.OAn)(),W=(0,S.Hh6)(k,b);return H4(k,b)?D5(k,(0,S.gxQ)(),r,W.transform,c,W):W.transform.apply(W,c)},\u0275\u0275projectionDef:M_,\u0275\u0275domProperty:mm,\u0275\u0275ariaProperty:Kp,\u0275\u0275property:cm,\u0275\u0275pipe:A5,\u0275\u0275queryRefresh:w_,\u0275\u0275queryAdvance:D_,\u0275\u0275viewQuery:E_,\u0275\u0275viewQuerySignal:Cm,\u0275\u0275loadQuery:S_,\u0275\u0275contentQuery:E6,\u0275\u0275contentQuerySignal:T_,\u0275\u0275reference:A_,\u0275\u0275classMap:B_,\u0275\u0275styleMap:function F_(n){V_(R6,r9,n,!1)},\u0275\u0275styleProp:I6,\u0275\u0275classProp:B4,\u0275\u0275advance:rd,\u0275\u0275template:v4,\u0275\u0275conditional:U8,\u0275\u0275conditionalCreate:z8,\u0275\u0275conditionalBranchCreate:om,\u0275\u0275defer:function M8(n,r,c,b,k,W,te,xe,Ae,ut){const Ct=(0,S.OAn)(),Zt=(0,S.klJ)(),yn=n+S.Yw1,Cn=H1(Ct,Zt,n,null,0,0),ri=Ct[S.YEL],Si=oa(ri);if(Zt.firstCreatePass){Qs("NgDefer");const qd={primaryTmplIndex:r,loadingTmplIndex:b??null,placeholderTmplIndex:k??null,errorTmplIndex:W??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:c??null,loadingState:Gs.NOT_STARTED,loadingPromise:null,providers:null,hydrateTriggers:null,debug:null,flags:ut??0};Ae?.(Zt,qd,xe,te),function Lp(n,r,c){const b=_2(r);n.data[b]=c}(Zt,yn,qd)}const Ki=Ct[yn];let ia=null,Ai=null;if(Ki[S.qFA]?.length>0){const qd=Ki[S.qFA][0].data;Ai=qd.di??null,ia=qd.s}const gr=[null,p2.Initial,null,null,null,null,Ai,ia,null,null];!function Kg(n,r,c){n[_2(r)]=c}(Ct,yn,gr);let Zo=null;null!==Ai&&Si&&(Zo=ri.get(Do),Zo.add(Ai,{lView:Ct,tNode:Cn,lContainer:Ki}));const xs=()=>{Y3(gr),null!==Ai&&Zo?.cleanup([Ai])};fh(0,gr,()=>(0,S.DyX)(Ct,xs)),(0,S.ik5)(Ct,xs)},\u0275\u0275deferWhen:function E8(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(0,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=Fl(r,c)[1];!1===W&&xe===p2.Initial?qn(r,c):!0===W&&(xe===p2.Initial||xe===Ir.Placeholder)&&Jd(0,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferOnIdle:function F7(){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(mh)},\u0275\u0275deferOnImmediate:function w8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(0,n,r)&&(null===yo(n[S.eDl],r).loadingTmplIndex&&qn(n,r),Jd(0,n,r))},\u0275\u0275deferOnTimer:function V7(n){Zs(0,(0,S.OAn)(),(0,S.Mx4)())&&em(E(n))},\u0275\u0275deferOnHover:function D8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,ji,()=>Jd(0,c,b),0))},\u0275\u0275deferOnInteraction:function D4(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,di,()=>Jd(0,c,b),0))},\u0275\u0275deferOnViewport:function K7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();Zs(0,c,b)&&(qn(c,b),Yd(c,b,n,r,M4,()=>Jd(0,c,b),0))},\u0275\u0275deferPrefetchWhen:function O7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(Zs(1,r,c)&&os(r,(0,S.xbp)(),n)){const k=(0,Xt.Ht)(null);try{const W=!!n,xe=yo(r[S.eDl],c);!0===W&&xe.loadingState===Gs.NOT_STARTED&&T4(xe,r,c)}finally{(0,Xt.Ht)(k)}}},\u0275\u0275deferPrefetchOnIdle:function B7(){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(mh)},\u0275\u0275deferPrefetchOnImmediate:function S8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();if(!Zs(1,n,r))return;const b=yo(n[S.eDl],r);b.loadingState===Gs.NOT_STARTED&&Gp(b,n,r)},\u0275\u0275deferPrefetchOnTimer:function T8(n){Zs(1,(0,S.OAn)(),(0,S.Mx4)())&&Vp(E(n))},\u0275\u0275deferPrefetchOnHover:function H7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,ji,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnInteraction:function W7(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,di,()=>T4(W,c,b),1)},\u0275\u0275deferPrefetchOnViewport:function A8(n,r){const c=(0,S.OAn)(),b=(0,S.Mx4)();if(!Zs(1,c,b))return;const W=yo(c[S.eDl],b);W.loadingState===Gs.NOT_STARTED&&Yd(c,b,n,r,M4,()=>T4(W,c,b),1)},\u0275\u0275deferHydrateWhen:function P7(n){const r=(0,S.OAn)(),c=(0,S.CpD)();if(!Zs(2,r,c))return;const b=(0,S.xbp)();if(W1((0,S.klJ)(),c).set(6,null),os(r,b,n)){const te=r[S.YEL],xe=(0,Xt.Ht)(null);try{1==!!n&&b2(te,Fl(r,c)[6])}finally{(0,Xt.Ht)(xe)}}},\u0275\u0275deferHydrateNever:function N7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(7,null)},\u0275\u0275deferHydrateOnIdle:function z7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(0,null),g8(mh,n,r))},\u0275\u0275deferHydrateOnImmediate:function U7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&(W1((0,S.klJ)(),r).set(1,null),b2(n[S.YEL],Fl(n,r)[6]))},\u0275\u0275deferHydrateOnTimer:function G7(n){const r=(0,S.OAn)(),c=(0,S.Mx4)();Zs(2,r,c)&&(W1((0,S.klJ)(),c).set(5,{delay:n}),g8(E(n),r,c))},\u0275\u0275deferHydrateOnHover:function j7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(4,null)},\u0275\u0275deferHydrateOnInteraction:function X7(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(3,null)},\u0275\u0275deferHydrateOnViewport:function L8(){const n=(0,S.OAn)(),r=(0,S.Mx4)();Zs(2,n,r)&&W1((0,S.klJ)(),r).set(2,null)},\u0275\u0275deferEnableTimerScheduling:function ta(n,r,c,b){const k=n.consts;null!=c&&(r.placeholderBlockConfig=(0,S.db4)(k,c)),null!=b&&(r.loadingBlockConfig=(0,S.db4)(k,b)),null===ga&&(ga=xi)},\u0275\u0275repeater:W8,\u0275\u0275repeaterCreate:H8,\u0275\u0275repeaterTrackByIndex:function lv(n){return n},\u0275\u0275repeaterTrackByIdentity:G8,\u0275\u0275componentInstance:function rv(){return(0,S.OAn)()[S.b5C][S.SKP]},\u0275\u0275text:U4,\u0275\u0275textInterpolate:N6,\u0275\u0275textInterpolate1:V4,\u0275\u0275textInterpolate2:F6,\u0275\u0275textInterpolate3:B6,\u0275\u0275textInterpolate4:Em,\u0275\u0275textInterpolate5:function n5(n,r,c,b,k,W,te,xe,Ae,ut,Ct){const Zt=(0,S.OAn)(),yn=J_(Zt,n,r,c,b,k,W,te,xe,Ae,ut,Ct);return yn!==qa&&gd(Zt,(0,S._px)(),yn),n5},\u0275\u0275textInterpolate6:function i5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn){const Cn=(0,S.OAn)(),ri=q_(Cn,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn);return ri!==qa&&gd(Cn,(0,S._px)(),ri),i5},\u0275\u0275textInterpolate7:function a5(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri){const Si=(0,S.OAn)(),Ki=e5(Si,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri);return Ki!==qa&&gd(Si,(0,S._px)(),Ki),a5},\u0275\u0275textInterpolate8:function z6(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki){const ia=(0,S.OAn)(),Ai=t5(ia,n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki);return Ai!==qa&&gd(ia,(0,S._px)(),Ai),z6},\u0275\u0275textInterpolateV:function r5(n){const r=(0,S.OAn)(),c=O6(r,n);return c!==qa&&gd(r,(0,S._px)(),c),r5},\u0275\u0275i18n:function x6(n,r,c){g_(n,r,c),__()},\u0275\u0275i18nAttributes:function Kv(n,r){const c=(0,S.klJ)(),b=(0,S.db4)(c.consts,r);!function Ov(n,r,c){const b=(0,S.Mx4)(),k=b.index,W=[];if(n.firstCreatePass&&null===n.data[r]){for(let te=0;te0){const b=n.data[c];h6(n,r,Array.isArray(b)?b:b.update,(0,S.c$7)()-xh-1,P4)}P4=0,xh=0}((0,S.klJ)(),(0,S.OAn)(),n+S.Yw1)},\u0275\u0275i18nPostprocess:function Yv(n,r={}){return function p_(n,r={}){let c=n;if(f_.test(n)){const b={},k=[0];c=c.replace(Gv,(W,te,xe)=>{const Ae=te||xe,ut=b[Ae]||[];if(ut.length||(Ae.split("|").forEach(Si=>{const Ki=Si.match(Xv),ia=Ki?parseInt(Ki[1],10):0,Ai=Wv.test(Si);ut.push([ia,Ai,Si])}),b[Ae]=ut),!ut.length)throw new Error(`i18n postprocess: unmatched placeholder - ${Ae}`);const Ct=k[k.length-1];let Zt=0;for(let Si=0;Sir.hasOwnProperty(W)?`${k}${r[W]}${Ae}`:b),c=c.replace(m_,(b,k)=>r.hasOwnProperty(k)?r[k]:b),c=c.replace(jv,(b,k)=>{if(r.hasOwnProperty(k)){const W=r[k];if(!W.length)throw new Error(`i18n postprocess: unmatched ICU - ${b} with key: ${k}`);return W.shift()}return b})),c}(n,r)},\u0275\u0275resolveWindow:H2,\u0275\u0275resolveDocument:function Fh(n){return n.ownerDocument},\u0275\u0275resolveBody:function d1(n){return n.ownerDocument.body},\u0275\u0275setComponentScope:function E9(n,r,c){const b=n.\u0275cmp;b.directiveDefs=ch(r,gp),b.pipeDefs=ch(c,S.oyA)},\u0275\u0275setNgModuleScope:function v5(n,r){return Le(()=>{const c=(0,S.WbQ)(n);c.declarations=Sm(r.declarations||S.Mlv),c.imports=Sm(r.imports||S.Mlv),c.exports=Sm(r.exports||S.Mlv),r.bootstrap&&(c.bootstrap=Sm(r.bootstrap)),Nl.registerNgModule(n,r)})},\u0275\u0275registerNgModuleType:f4,\u0275\u0275getComponentDepsFactory:function I9(n,r){return()=>{try{return Nl.getComponentDependencies(n,r).dependencies}catch(c){throw console.error(`Computing dependencies in local compilation mode for the component "${n.name}" failed with the exception:`,c),c}}},\u0275setClassDebugInfo:function k9(n,r){const c=(0,S.xUg)(n);null!==c&&(c.debugInfo=r)},\u0275\u0275declareLet:function l5(n){const r=(0,S.klJ)(),c=(0,S.OAn)(),b=n+S.Yw1,k=Yl(r,b,128,null,null);return(0,S.iMd)(k,!1),(0,S.M_e)(r,c,b,o5),l5},\u0275\u0275storeLet:function c5(n){Qs("NgLet");const r=(0,S.klJ)(),c=(0,S.OAn)(),b=(0,S._px)();return(0,S.M_e)(r,c,b,n),n},\u0275\u0275readContextLet:function m9(n){const r=(0,S.VPL)(),c=(0,S.Hh6)(r,S.Yw1+n);if(c===o5)throw new S.buA(314,!1);return c},\u0275\u0275attachSourceLocations:function p9(n,r){const c=(0,S.klJ)(),b=(0,S.OAn)(),k=b[S.GpT],W="data-ng-source-location";for(const[te,xe,Ae,ut]of r){(0,S.XRZ)(c,te+S.Yw1);const Zt=(0,S.vaC)(te+S.Yw1,b);Zt.hasAttribute(W)||k.setAttribute(Zt,W,`${n}@o:${xe},l:${Ae},c:${ut}`)}},\u0275\u0275interpolate:d5,\u0275\u0275interpolate1:u5,\u0275\u0275interpolate2:h5,\u0275\u0275interpolate3:function f5(n,r,c,b,k,W,te=""){return Z_((0,S.OAn)(),n,r,c,b,k,W,te)},\u0275\u0275interpolate4:function g9(n,r,c,b,k,W,te,xe,Ae=""){return P6((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae)},\u0275\u0275interpolate5:function _9(n,r,c,b,k,W,te,xe,Ae,ut,Ct=""){return J_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct)},\u0275\u0275interpolate6:function v9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn=""){return q_((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn)},\u0275\u0275interpolate7:function y9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri=""){return e5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri)},\u0275\u0275interpolate8:function b9(n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki=""){return t5((0,S.OAn)(),n,r,c,b,k,W,te,xe,Ae,ut,Ct,Zt,yn,Cn,ri,Si,Ki)},\u0275\u0275interpolateV:function m5(n){return O6((0,S.OAn)(),n)},\u0275\u0275sanitizeHtml:l0,\u0275\u0275sanitizeStyle:c0,\u0275\u0275sanitizeResourceUrl:d0,\u0275\u0275sanitizeScript:u0,\u0275\u0275validateAttribute:h0,\u0275\u0275sanitizeUrl:P2,\u0275\u0275sanitizeUrlOrResourceUrl:B2,\u0275\u0275trustConstantHtml:function Lh(n){return ac(n[0])},\u0275\u0275trustConstantResourceUrl:function N2(n){return function q1(n){return bc()?.createScriptURL(n)||n}(n[0])},forwardRef:S.Rfq,resolveForwardRef:S.nl4,\u0275\u0275twoWayProperty:U6,\u0275\u0275twoWayBindingSet:s5,\u0275\u0275twoWayListener:wm,\u0275\u0275replaceMetadata:function O9(n,r,c,b,k=null,W=null){const te=(0,S.xUg)(n);r.apply(null,[n,c,...b]);const{newDef:xe,oldDef:Ae}=function P9(n,r){const c={...n};return{newDef:Object.assign(n,r,{directiveDefs:c.directiveDefs,pipeDefs:c.pipeDefs,setInput:c.setInput,type:c.type}),oldDef:c}}(te,(0,S.xUg)(n));if(n[S.CQl]=xe,Ae.tView){const ut=function gs(){return ar}().values();for(const Ct of ut)(0,S.EFk)(Ct)&&null===Ct[S.f7T]&&Dm(k,W,xe,Ae,Ct)}},\u0275\u0275getReplaceMetadataURL:function R9(n,r,c){const b=`./@ng/component?c=${n}&t=${encodeURIComponent(r)}`;return new URL(b,c).href}};let $1=null;function z9(n){null!==$1&&(n.defaultEncapsulation!==$1.defaultEncapsulation||n.preserveWhitespaces!==$1.preserveWhitespaces)||($1=n)}const j4=[];function Im(n){return B1(n)?n.ngModule:n}const iy=hn("NgModule",n=>n,void 0,0,(n,r)=>function H9(n,r={}){(function j9(n,r){const b=(0,S.Bqz)(r.declarations||S.Mlv);let k=null;Object.defineProperty(n,S.hmW,{configurable:!0,get:()=>(null===k&&(k=le().compileNgModule(Q1,`ng:///${n.name}/\u0275mod.js`,{type:n,bootstrap:(0,S.Bqz)(r.bootstrap||S.Mlv).map(S.nl4),declarations:b.map(S.nl4),imports:(0,S.Bqz)(r.imports||S.Mlv).map(S.nl4).map(Im),exports:(0,S.Bqz)(r.exports||S.Mlv).map(S.nl4).map(Im),schemas:r.schemas?(0,S.Bqz)(r.schemas):null,id:r.id||null}),k.schemas||(k.schemas=[])),k)});let W=null;Object.defineProperty(n,S.zSs,{get:()=>{if(null===W){const xe=le();W=xe.compileFactory(Q1,`ng:///${n.name}/\u0275fac.js`,{name:n.name,type:n,deps:Ga(n),target:xe.FactoryTarget.NgModule,typeArgumentCount:0})}return W},configurable:!1});let te=null;Object.defineProperty(n,S.ONQ,{get:()=>{if(null===te){const xe={name:n.name,type:n,providers:r.providers||S.Mlv,imports:[(r.imports||S.Mlv).map(S.nl4),(r.exports||S.Mlv).map(S.nl4)]};te=le().compileInjector(Q1,`ng:///${n.name}/\u0275inj.js`,xe)}return te},configurable:!1})})(n,r),void 0!==r.id&&f4(n,r.id),function G9(n,r){j4.push({moduleType:n,ngModule:r})}(n,r)}(n,r));class $5{ngModuleFactory;componentFactories;constructor(r,c){this.ngModuleFactory=r,this.componentFactories=c}}let ay=(()=>{class n{compileModuleSync(c){return new fp(c)}compileModuleAsync(c){return Promise.resolve(this.compileModuleSync(c))}compileModuleAndAllComponentsSync(c){const b=this.compileModuleSync(c),W=Kl((0,S.phH)(c).declarations).reduce((te,xe)=>{const Ae=(0,S.xUg)(xe);return Ae&&te.push(new o2(Ae)),te},[]);return new $5(b,W)}compileModuleAndAllComponentsAsync(c){return Promise.resolve(this.compileModuleAndAllComponentsSync(c))}clearCache(){}clearCacheFor(c){}getModuleId(c){}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const ry=new S.nKC("");let sy=(()=>{class n{zone=(0,S.WQX)(pr);changeDetectionScheduler=(0,S.WQX)(S.hk6);applicationRef=(0,S.WQX)(q3);applicationErrorHandler=(0,S.WQX)(S.ZTf);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(c){this.applicationErrorHandler(c)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const Rm=new S.nKC("",{factory:()=>!1});function Z5({ngZoneFactory:n,ignoreChangesOutsideZone:r,scheduleInRootZone:c}){return n??=()=>new pr({...tg(),scheduleInRootZone:c}),[{provide:pr,useFactory:n},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(sy,{optional:!0});return()=>b.initialize()}},{provide:S.Z63,multi:!0,useFactory:()=>{const b=(0,S.WQX)(ly);return()=>{b.initialize()}}},!0===r?{provide:S.Jy$,useValue:!0}:[],{provide:S.AQb,useValue:c??od},{provide:S.ZTf,useFactory:()=>{const b=(0,S.WQX)(pr),k=(0,S.WQX)(S.uvJ);let W;return te=>{b.runOutsideAngular(()=>{k.destroyed&&!W?setTimeout(()=>{throw te}):(W??=k.get(S.zcH),W.handleError(te))})}}}]}function tg(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}let ly=(()=>{class n{subscription=new ae.yU;initialized=!1;zone=(0,S.WQX)(pr);pendingTasks=(0,S.WQX)(S.rev);initialize(){if(this.initialized)return;this.initialized=!0;let c=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(c=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{pr.assertNotInAngularZone(),queueMicrotask(()=>{null!==c&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(c),c=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{pr.assertInAngularZone(),c??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),ag=(()=>{class n{applicationErrorHandler=(0,S.WQX)(S.ZTf);appRef=(0,S.WQX)(q3);taskService=(0,S.WQX)(S.rev);ngZone=(0,S.WQX)(pr);zonelessEnabled=(0,S.WQX)(S.Evm);tracing=(0,S.WQX)(Fc,{optional:!0});disableScheduling=(0,S.WQX)(S.Jy$,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ae.yU;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(_1):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&((0,S.WQX)(S.AQb,{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 v1||!this.zoneIsDefined)}notify(c){if(!this.zonelessEnabled&&5===c)return;let b=!1;switch(c){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:case 13:this.appRef.dirtyFlags|=2,b=!0;break;case 12:this.appRef.dirtyFlags|=16,b=!0;break;case 11:b=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(b))return;const k=this.useMicrotaskScheduler?y0:Ld;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>k(()=>this.tick())):this.ngZone.runOutsideAngular(()=>k(()=>this.tick()))}shouldScheduleTick(c){return!(this.disableScheduling&&!c||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(_1+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const c=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(b){this.taskService.remove(c),this.applicationErrorHandler(b)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,y0(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(c)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const c=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(c)}}static \u0275fac=function(b){return new(b||n)};static \u0275prov=(0,S.jDH)({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const q5=new S.nKC("",{providedIn:"root",factory:()=>(0,S.WQX)(q5,{optional:!0,skipSelf:!0})||function cy(){return typeof $localize<"u"&&$localize.locale||u6}()}),dy=new S.nKC("",{providedIn:"root",factory:()=>"USD"})},59295(ke,q,l){"use strict";l.d(q,{Zf:()=>Z,EW:()=>Q,QZ:()=>ie,O8:()=>V}),l(10467);var g=l(2615),p=l(48440);const d={...p.pL,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};class Z{destroyed=!1;listeners=null;errorHandler=(0,g.WQX)(g.zcH,{optional:!0});destroyRef=(0,g.WQX)(g.abz);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(he){if(this.destroyed)throw new g.buA(953,!1);return(this.listeners??=[]).push(he),{unsubscribe:()=>{const Oe=this.listeners?.indexOf(he);void 0!==Oe&&-1!==Oe&&this.listeners?.splice(Oe,1)}}}emit(he){if(this.destroyed)return void console.warn((0,g.OsK)(953,!1));if(null===this.listeners)return;const Oe=(0,p.Ht)(null);try{for(const ge of this.listeners)try{ge(he)}catch(ce){this.errorHandler?.handleError(ce)}}finally{(0,p.Ht)(Oe)}}}function V(re){return function h(re){const he=(0,p.Ht)(null);try{return re()}finally{(0,p.Ht)(he)}}(re)}function Q(re,he){return(0,p.KZ)(re,he?.equal)}class ${[p.bh];constructor(he){this[p.bh]=he}destroy(){this[p.bh].destroy()}}function ie(re,he){const Oe=he?.injector??(0,g.WQX)(g.zZn);let ce,ge=!0!==he?.manualCleanup?Oe.get(g.abz):null;const Re=Oe.get(g.r4V,null,{optional:!0}),Me=Oe.get(g.hk6);return null!==Re?(ce=function pe(re,he,Oe){const ge=Object.create(se);return ge.view=re,ge.zone=typeof Zone<"u"?Zone.current:null,ge.notifier=he,ge.fn=L(ge,Oe),re[g.tQN]??=new Set,re[g.tQN].add(ge),ge.consumerMarkedDirty(ge),ge}(Re.view,Me,re),ge instanceof g.KXn&&ge._lView===Re.view&&(ge=null)):ce=function Ee(re,he,Oe){const ge=Object.create(ye);return ge.fn=L(ge,re),ge.scheduler=he,ge.notifier=Oe,ge.zone=typeof Zone<"u"?Zone.current:null,ge.scheduler.add(ge),ge.notifier.notify(12),ge}(re,Oe.get(g.VML),Me),ce.injector=Oe,null!==ge&&(ce.onDestroyFn=ge.onDestroy(()=>ce.destroy())),new $(ce)}const _e={...d,cleanupFns:void 0,zone:null,onDestroyFn:g.lQ1,run(){const re=(0,g.cBl)(!1);try{!function w(re){if(re.dirty=!1,re.version>0&&!(0,p.si)(re))return;re.version++;const he=(0,p.Bg)(re);try{re.cleanup(),re.fn()}finally{(0,p.Wu)(re,he)}}(this)}finally{(0,g.cBl)(re)}},cleanup(){if(!this.cleanupFns?.length)return;const re=(0,p.Ht)(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],(0,p.Ht)(re)}}},ye={..._e,consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}},se={..._e,consumerMarkedDirty(){this.view[g.Wg1]|=8192,(0,g.blu)(this.view),this.notifier.notify(13)},destroy(){(0,p.XR)(this),this.onDestroyFn(),this.cleanup(),this.view[g.tQN]?.delete(this)}};function L(re,he){return()=>{he(Oe=>(re.cleanupFns??=[]).push(Oe))}}Error,Error},2615(ke,q,l){"use strict";let i;function g(){return i}function p(De){const at=i;return i=De,at}l.d(q,{JEi:()=>es,Isx:()=>Yr,EJG:()=>ps,Yrj:()=>lr,VVG:()=>Js,Y20:()=>Ws,SKP:()=>Jo,hk6:()=>_c,eVN:()=>Xs,b5C:()=>ar,rQE:()=>Xr,X5O:()=>dr,qFA:()=>Za,qQL:()=>ra,abz:()=>ba,tQN:()=>Pa,pcR:()=>qr,oMQ:()=>Mr,Mlv:()=>Jn,MZA:()=>Ln,M0L:()=>xo,Z63:()=>hi,VML:()=>Ra,uvJ:()=>Yi,zcH:()=>Lr,Wg1:()=>Ka,Yw1:()=>Aa,jgP:()=>js,tcA:()=>Uo,ID:()=>Hi,YEL:()=>qs,B9r:()=>Qn,GBX:()=>Ce,ZTf:()=>bi,nKC:()=>qt,zZn:()=>$i,rJ1:()=>ns,nfM:()=>Nr,s6P:()=>ks,K29:()=>Is,CQl:()=>Ue,p9y:()=>ze,zSs:()=>Ne,ONQ:()=>Mn,hmW:()=>le,yAH:()=>rt,KXn:()=>oa,oTH:()=>Bi,Czx:()=>gs,f7T:()=>Pr,wVl:()=>Kr,GYQ:()=>tc,u5s:()=>ja,rev:()=>co,Ds7:()=>Ms,e5P:()=>va,Iaj:()=>_s,GpT:()=>Jr,buA:()=>j,AQb:()=>nc,jNX:()=>hr,eDl:()=>Cs,qlT:()=>Wr,bm_:()=>Rs,RxE:()=>f,r4V:()=>ed,ok8:()=>K,Evm:()=>td,Jy$:()=>vd,laP:()=>V,EYC:()=>kn,ng7:()=>ui,llW:()=>aa,gsJ:()=>Xn,GZS:()=>wi,iYM:()=>he,PEr:()=>Sr,z7f:()=>ge,LZP:()=>ce,Xln:()=>P,yzR:()=>qo,TWe:()=>yl,LIA:()=>T,GWr:()=>U,pbo:()=>fe,bBq:()=>ur,Af3:()=>Zr,zQk:()=>ts,oZy:()=>Mo,tF7:()=>Re,ZFY:()=>Ze,cP4:()=>eo,MdC:()=>wr,XvL:()=>Y,KET:()=>Ea,Tkx:()=>Bl,iw4:()=>C,tdH:()=>Wl,pr_:()=>ve,IAh:()=>x,U45:()=>m,WrV:()=>u,kNT:()=>Me,MI:()=>hl,biv:()=>bl,ZQF:()=>a,Cv0:()=>_,W0r:()=>Bn,R2n:()=>xn,O8q:()=>Vn,VKj:()=>Kt,Rom:()=>_t,z6V:()=>Nn,n$e:()=>se,hjC:()=>Nt,Pz9:()=>ki,PQT:()=>we,VX4:()=>We,_Z$:()=>Ye,N79:()=>Ul,xLP:()=>zn,zuh:()=>tt,BI7:()=>_n,U7d:()=>hn,uXy:()=>En,nZS:()=>Vt,ihb:()=>pl,ID8:()=>il,gv8:()=>Ns,dwj:()=>_e,Bqz:()=>gn,OsK:()=>ee,Rfq:()=>L,c$7:()=>Sl,gxQ:()=>lo,ckz:()=>To,kLh:()=>ie,xUg:()=>un,KdJ:()=>zl,db4:()=>to,VPL:()=>Ia,MT:()=>Do,Z9v:()=>gc,Ab:()=>sn,w7Z:()=>e1,Mx4:()=>bt,veI:()=>Ht,HaV:()=>fi,Agf:()=>Sn,znI:()=>so,wGu:()=>Un,ebl:()=>Et,OAn:()=>Te,_0$:()=>El,UaU:()=>Tt,vaC:()=>Go,d31:()=>fl,ZRn:()=>ws,phH:()=>ca,WbQ:()=>Sa,WB9:()=>Wn,d_l:()=>ao,vNG:()=>$r,oyA:()=>Dn,_px:()=>Io,CpD:()=>jl,XRZ:()=>Ho,klJ:()=>je,Fje:()=>el,b$O:()=>Tl,SMZ:()=>$,WQX:()=>Ei,MzJ:()=>Ot,jXY:()=>lt,MME:()=>li,JlV:()=>Rt,Qs1:()=>pt,srX:()=>ct,vOT:()=>za,YWB:()=>di,EPY:()=>Er,yoD:()=>Ve,P3H:()=>Fr,Jzi:()=>s,rFz:()=>rr,JjR:()=>qc,M6u:()=>bo,KtD:()=>Zl,muV:()=>$e,A0l:()=>Es,q$2:()=>Qr,yP_:()=>as,EFk:()=>vn,Hps:()=>Ro,UhH:()=>wl,QuC:()=>ti,Y3W:()=>mn,n$r:()=>ec,K7h:()=>pa,FRF:()=>ha,ezK:()=>sa,m7n:()=>ni,niQ:()=>Gl,krE:()=>tl,bll:()=>Hl,Hh6:()=>fo,EmA:()=>Ci,blu:()=>no,HAh:()=>mo,WfI:()=>ci,xbp:()=>ql,jvu:()=>Al,lQ1:()=>Ti,BCV:()=>Xi,Rc9:()=>Ga,E6O:()=>Kn,DyX:()=>io,eFE:()=>gt,dMS:()=>jo,HUe:()=>wo,nl4:()=>t,N4e:()=>ms,XaM:()=>Fe,Kw3:()=>mc,vQI:()=>pc,RZ9:()=>Ps,GA0:()=>Ao,iMd:()=>Rn,Pfq:()=>ji,xyx:()=>po,a2B:()=>kt,kcM:()=>et,DFp:()=>de,P2g:()=>nl,cBl:()=>oo,ypq:()=>ko,vPA:()=>gl,HO5:()=>Ks,M_e:()=>xl,B22:()=>Ss,ik5:()=>Ml,AsM:()=>ye,PP7:()=>zt,$8:()=>Oe,$Hz:()=>At,zAe:()=>Vo,IvY:()=>vi,_gW:()=>ml,F1c:()=>fr,ITl:()=>Cl,brz:()=>ht,jRZ:()=>So,SX7:()=>Hn,jDH:()=>oe,G2t:()=>be,fuf:()=>Wo,cSN:()=>is,KVO:()=>oi,dmw:()=>Ii,joV:()=>Bt,By9:()=>Tr,qSk:()=>rs,Njj:()=>Ke,eBV:()=>Be});const o=Symbol("NotFound");function A(De){return De===o||"\u0275NotFound"===De?.name}Error;var h=l(48440),d=l(84412),w=l(71985);class f{full;major;minor;patch;constructor(at){this.full=at;const Jt=at.split(".");this.major=Jt[0],this.minor=Jt[1],this.patch=Jt.slice(2).join(".")}}const K="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss";class j extends Error{code;constructor(at,Jt){super(ee(at,Jt)),this.code=at}}function ee(De,at){return`${function Z(De){return`NG0${Math.abs(De)}`}(De)}${at?": "+at:""}`}const V=globalThis;function $(){return!1}function ie(De){for(let at in De)if(De[at]===ie)return at;throw Error("")}function _e(De,at){for(const Jt in at)at.hasOwnProperty(Jt)&&!De.hasOwnProperty(Jt)&&(De[Jt]=at[Jt])}function ye(De){if("string"==typeof De)return De;if(Array.isArray(De))return`[${De.map(ye).join(", ")}]`;if(null==De)return""+De;const at=De.overriddenName||De.name;if(at)return`${at}`;const Jt=De.toString();if(null==Jt)return""+Jt;const Yn=Jt.indexOf("\n");return Yn>=0?Jt.slice(0,Yn):Jt}function se(De,at){return De?at?`${De} ${at}`:De:at||""}const Ee=ie({__forward_ref__:ie});function L(De){return De.__forward_ref__=L,De.toString=function(){return ye(this())},De}function t(De){return s(De)?De():De}function s(De){return"function"==typeof De&&De.hasOwnProperty(Ee)&&De.__forward_ref__===L}function m(De,at){"number"!=typeof De&&Oe(at,typeof De,"number","===")}function u(De,at,Jt){m(De,"Expected a number"),function R(De,at,Jt){De<=at||Oe(Jt,De,at,"<=")}(De,Jt,"Expected number to be less than or equal to"),fe(De,at,"Expected number to be greater than or equal to")}function _(De,at){"string"!=typeof De&&Oe(at,null===De?"null":typeof De,"string","===")}function T(De,at){"function"!=typeof De&&Oe(at,null===De?"null":typeof De,"function","===")}function P(De,at,Jt){De!=at&&Oe(Jt,De,at,"==")}function C(De,at,Jt){De==at&&Oe(Jt,De,at,"!=")}function a(De,at,Jt){De!==at&&Oe(Jt,De,at,"===")}function x(De,at,Jt){De===at&&Oe(Jt,De,at,"!==")}function Y(De,at,Jt){Deat||Oe(Jt,De,at,">")}function fe(De,at,Jt){De>=at||Oe(Jt,De,at,">=")}function he(De,at){null==De&&Oe(at,De,null,"!=")}function Oe(De,at,Jt,Yn){throw new Error(`ASSERTION ERROR: ${De}`+(null==Yn?"":` [Expected=> ${Jt} ${Yn} ${at} <=Actual]`))}function ge(De){De instanceof Node||Oe(`The provided value must be an instance of a DOM Node but got ${ye(De)}`)}function ce(De){De instanceof Element||Oe(`The provided value must be an element but got ${ye(De)}`)}function Re(De,at){he(De,"Array must be defined.");const Jt=De.length;(at<0||at>=Jt)&&Oe(`Index expected to be less than ${Jt} but got ${at}`)}function Me(De,...at){if(-1!==at.indexOf(De))return!0;Oe(`Expected value to be one of ${JSON.stringify(at)} but was ${JSON.stringify(De)}.`)}function ve(De){null!==(0,h.nR)()&&Oe(`${De}() should never be called in a reactive context.`)}function oe(De){return{token:De.token,providedIn:De.providedIn||null,factory:De.factory,value:void 0}}function be(De){return{providers:De.providers||[],imports:De.imports||[]}}function nt(De){return function dt(De,at){return De.hasOwnProperty(at)&&De[at]||null}(De,rt)}function $e(De){return null!==nt(De)}function Et(De){return De&&De.hasOwnProperty(Mn)?De[Mn]:null}const rt=ie({\u0275prov:ie}),Mn=ie({\u0275inj:ie});class qt{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(at,Jt){this._desc=at,this.\u0275prov=void 0,"number"==typeof Jt?this.__NG_ELEMENT_ID__=Jt:void 0!==Jt&&(this.\u0275prov=oe({token:this,providedIn:Jt.providedIn||"root",factory:Jt.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}let S;function Xt(){return Oe("getInjectorProfilerContext should never be called in production mode"),S}function de(De){Oe("setInjectorProfilerContext should never be called in production mode");const at=S;return S=De,at}const ae=[],me=()=>{};function et(De){return Oe("setInjectorProfiler should never be called in production mode"),null!==De?(ae.includes(De)||ae.push(De),()=>function Le(De){const at=ae.indexOf(De);-1!==at&&ae.splice(at,1)}(De)):(ae.length=0,me)}function tn(De){Oe("Injector profiler should never be called in production mode");for(let at=0;at1&&(gi=` Path: ${Jt.join(" -> ")}.`);return ee(at,`${De}${Yn?` Source: ${Yn}.`:""}${gi}`)}(De[He]||De.message,De[it],De[Wt],at),De}(we(0,at),null)}function At(De,at){throw new j(-201,!1)}function It(De,at,Jt){const Yn=new j(at,De);return Yn[it]=at,Yn[He]=De,Jt&&(Yn[Wt]=Jt),Yn}let ei;function Li(){return ei}function kt(De){const at=ei;return ei=De,at}function Ot(De,at,Jt){const Yn=nt(De);return Yn&&"root"==Yn.providedIn?void 0===Yn.value?Yn.value=Yn.factory():Yn.value:8&Jt?null:void 0!==at?at:void At()}function Ze(De){}const Pt={},Yt="__NG_DI_FLAG__";class bn{injector;constructor(at){this.injector=at}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.injector.get(at,8&Yn?null:Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}}function Zn(De,at=0){const Jt=g();if(void 0===Jt)throw new j(-203,!1);if(null===Jt)return Ot(De,void 0,at);{const Yn=function nn(De){return{optional:!!(8&De),host:!!(1&De),self:!!(2&De),skipSelf:!!(4&De)}}(at),gi=Jt.retrieve(De,Yn);if(A(gi)){if(Yn.optional)return null;throw gi}return gi}}function oi(De,at=0){return(Li()||Zn)(t(De),at)}function Ii(De){throw new j(202,!1)}function Ei(De,at){return oi(De,Nt(at))}function Nt(De){return typeof De>"u"||"number"==typeof De?De:0|(De.optional&&8)|(De.host&&1)|(De.self&&2)|(De.skipSelf&&4)}function en(De){const at=[];for(let Jt=0;JtArray.isArray(Jt)?zn(Jt,at):at(Jt))}function kn(De,at,Jt){at>=De.length?De.push(Jt):De.splice(at,0,Jt)}function Kn(De,at){return at>=De.length-1?De.pop():De.splice(at,1)[0]}function ci(De,at){const Jt=[];for(let Yn=0;Ynat;)De[gi]=De[gi-2],gi--;De[at]=Jt,De[at+1]=Yn}}function sa(De,at,Jt){let Yn=ha(De,at);return Yn>=0?De[1|Yn]=Jt:(Yn=~Yn,aa(De,Yn,at,Jt)),Yn}function pa(De,at){const Jt=ha(De,at);if(Jt>=0)return De[1|Jt]}function ha(De,at){return function dn(De,at,Jt){let Yn=0,gi=De.length>>Jt;for(;gi!==Yn;){const Pi=Yn+(gi-Yn>>1),Wa=De[Pi<at?gi=Pi:Yn=Pi+1}return~(gi<{Jt.push(Wa)};return zn(at,Wa=>{const Ui=Wa;ht(Ui,Pi,[],Yn)&&(gi||=[],gi.push(Ui))}),void 0!==gi&&an(gi,Pi),Jt}function an(De,at){for(let Jt=0;Jt{at(Pi,Yn)})}}function ht(De,at,Jt,Yn){if(!(De=t(De)))return!1;let gi=null,Pi=Et(De);const Wa=!Pi&&un(De);if(Pi||Wa){if(Wa&&!Wa.standalone)return!1;gi=De}else{const La=De.ngModule;if(Pi=Et(La),!Pi)return!1;gi=La}const Ui=Yn.has(gi);if(Wa){if(Ui)return!1;if(Yn.add(gi),Wa.dependencies){const La="function"==typeof Wa.dependencies?Wa.dependencies():Wa.dependencies;for(const _i of La)ht(_i,at,Jt,Yn)}}else{if(!Pi)return!1;{if(null!=Pi.imports&&!Ui){let _i;Yn.add(gi),zn(Pi.imports,tr=>{ht(tr,at,Jt,Yn)&&(_i||=[],_i.push(tr))}),void 0!==_i&&an(_i,at)}if(!Ui){const _i=Un(gi)||(()=>new gi);at({provide:gi,useFactory:_i,deps:Jn},gi),at({provide:Qn,useValue:gi,multi:!0},gi),at({provide:hi,useValue:()=>oi(gi),multi:!0},gi)}const La=Pi.providers;if(null!=La&&!Ui){const _i=De;cn(La,tr=>{at(tr,_i)})}}}return gi!==De&&void 0!==De.providers}function cn(De,at){for(let Jt of De)Pe(Jt)&&(Jt=Jt.\u0275providers),Array.isArray(Jt)?cn(Jt,at):at(Jt)}const si=ie({provide:String,useValue:ie});function pi(De){return null!==De&&"object"==typeof De&&si in De}function mn(De){return"function"==typeof De}function li(De){return!!De.useClass}const Ce=new qt(""),xt={},vt={};let rn;function Wn(){return void 0===rn&&(rn=new Bi),rn}class Yi{}class va extends Yi{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(at,Jt,Yn,gi){super(),this.parent=Jt,this.source=Yn,this.scopes=gi,fs(at,Wa=>this.processProvider(Wa)),this.records.set(Gn,ds(void 0,this)),gi.has("environment")&&this.records.set(Yi,ds(void 0,this));const Pi=this.records.get(Ce);null!=Pi&&"string"==typeof Pi.value&&this.scopes.add(Pi.value),this.injectorDefTypes=new Set(this.get(Qn,Jn,{self:!0}))}retrieve(at,Jt){const Yn=Nt(Jt)||0;try{return this.get(at,Pt,Yn)}catch(gi){if(A(gi))return gi;throw gi}}destroy(){Ar(this),this._destroyed=!0;const at=(0,h.Ht)(null);try{for(const Yn of this._ngOnDestroyHooks)Yn.ngOnDestroy();const Jt=this._onDestroyHooks;this._onDestroyHooks=[];for(const Yn of Jt)Yn()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),(0,h.Ht)(at)}}onDestroy(at){return Ar(this),this._onDestroyHooks.push(at),()=>this.removeOnDestroy(at)}runInContext(at){Ar(this);const Jt=p(this),Yn=kt(void 0);try{return at()}finally{p(Jt),kt(Yn)}}get(at,Jt=Pt,Yn){if(Ar(this),at.hasOwnProperty(Je))return at[Je](this);const gi=Nt(Yn),Wa=p(this),Ui=kt(void 0);try{if(!(4&gi)){let _i=this.records.get(at);if(void 0===_i){const tr=function zo(De){return"function"==typeof De||"object"==typeof De&&"InjectionToken"===De.ngMetadataName}(at)&&nt(at);_i=tr&&this.injectableDefInScope(tr)?ds(Va(at),xt):null,this.records.set(at,_i)}if(null!=_i)return this.hydrate(at,_i,gi)}return(2&gi?Wn():this.parent).get(at,Jt=8&gi&&Jt===Pt?null:Jt)}catch(La){const _i=function wn(De){return De[it]}(La);throw-200===_i||-201===_i?new j(_i,null):La}finally{kt(Ui),p(Wa)}}resolveInjectorInitializers(){const at=(0,h.Ht)(null),Jt=p(this),Yn=kt(void 0);try{const Pi=this.get(hi,Jn,{self:!0});for(const Wa of Pi)Wa()}finally{p(Jt),kt(Yn),(0,h.Ht)(at)}}toString(){const at=[],Jt=this.records;for(const Yn of Jt.keys())at.push(ye(Yn));return`R3Injector[${at.join(", ")}]`}processProvider(at){let Jt=mn(at=t(at))?at:t(at&&at.provide);const Yn=function ir(De){return pi(De)?ds(void 0,De.useValue):ds(Ga(De),xt)}(at);if(!mn(at)&&!0===at.multi){let gi=this.records.get(Jt);gi||(gi=ds(void 0,xt,!0),gi.factory=()=>en(gi.multi),this.records.set(Jt,gi)),Jt=at,gi.multi.push(at)}this.records.set(Jt,Yn)}hydrate(at,Jt,Yn){const gi=(0,h.Ht)(null);try{if(Jt.value===vt)throw we(ye(at));return Jt.value===xt&&(Jt.value=vt,Jt.value=Jt.factory(void 0,Yn)),"object"==typeof Jt.value&&Jt.value&&function hs(De){return null!==De&&"object"==typeof De&&"function"==typeof De.ngOnDestroy}(Jt.value)&&this._ngOnDestroyHooks.add(Jt.value),Jt.value}finally{(0,h.Ht)(gi)}}injectableDefInScope(at){if(!at.providedIn)return!1;const Jt=t(at.providedIn);return"string"==typeof Jt?"any"===Jt||this.scopes.has(Jt):this.injectorDefTypes.has(Jt)}removeOnDestroy(at){const Jt=this._onDestroyHooks.indexOf(at);-1!==Jt&&this._onDestroyHooks.splice(Jt,1)}}function Va(De){const at=nt(De),Jt=null!==at?at.factory:Un(De);if(null!==Jt)return Jt;if(De instanceof qt)throw new j(204,!1);if(De instanceof Function)return function $a(De){if(De.length>0)throw new j(204,!1);const Jt=function yt(De){return(De?.[rt]??null)||null}(De);return null!==Jt?()=>Jt.factory(De):()=>new De}(De);throw new j(204,!1)}function Ga(De,at,Jt){let Yn;if(mn(De)){const gi=t(De);return Un(gi)||Va(gi)}if(pi(De))Yn=()=>t(De.useValue);else if(function la(De){return!(!De||!De.useFactory)}(De))Yn=()=>De.useFactory(...en(De.deps||[]));else if(function Oi(De){return!(!De||!De.useExisting)}(De))Yn=(gi,Pi)=>oi(t(De.useExisting),void 0!==Pi&&8&Pi?8:void 0);else{const gi=t(De&&(De.useClass||De.provide));if(!function us(De){return!!De.deps}(De))return Un(gi)||Va(gi);Yn=()=>new gi(...en(De.deps))}return Yn}function Ar(De){if(De.destroyed)throw new j(205,!1)}function ds(De,at,Jt=!1){return{factory:De,value:at,multi:Jt?[]:void 0}}function fs(De,at){for(const Jt of De)Array.isArray(Jt)?fs(Jt,at):Jt&&Pe(Jt)?fs(Jt.\u0275providers,at):at(Jt)}function ms(De,at){let Jt;De instanceof va?(Ar(De),Jt=De):Jt=new bn(De);const gi=p(Jt),Pi=kt(void 0);try{return at()}finally{p(gi),kt(Pi)}}function bo(){return void 0!==Li()||null!=g()}function Zr(De){if(!bo())throw new j(-203,!1)}const js=0,Cs=1,Ka=2,Pr=3,Is=4,Wr=5,Uo=6,Js=7,Jo=8,qs=9,xo=10,Jr=11,ps=12,lr=13,dr=14,ar=15,Xr=16,Kr=17,Ms=18,Hi=19,Mr=20,gs=21,qr=22,Pa=23,_s=24,es=25,Yr=26,Aa=27,Za=6,ks=7,Rs=8,Nr=9,Ws=10;function Qr(De){return Array.isArray(De)&&"object"==typeof De[1]}function Es(De){return Array.isArray(De)&&!0===De[1]}function ct(De){return!!(4&De.flags)}function pt(De){return De.componentOffset>-1}function Ve(De){return!(1&~De.flags)}function Rt(De){return!!De.template}function vn(De){return!!(512&De[Ka])}function Er(De){return!(256&~De[Ka])}function Kt(De,at){_t(De,at[Cs])}function Vn(De,at){const Jt=at+Aa;Re(De,Jt),Y(Jt,De[Cs].bindingStartIndex,"TNodes should be created before any bindings")}function _t(De,at){xn(De);const Jt=at.data;for(let Yn=Aa;Yn) must have projection slots defined.")}function hl(De,at){he(De,"Component views should always have a parent view (component's host view)")}function Bl(De,at){Mo(De,at),Mo(De,at+8),m(De[at+0],"injectorIndex should point to a bloom filter"),m(De[at+1],"injectorIndex should point to a bloom filter"),m(De[at+2],"injectorIndex should point to a bloom filter"),m(De[at+3],"injectorIndex should point to a bloom filter"),m(De[at+4],"injectorIndex should point to a bloom filter"),m(De[at+5],"injectorIndex should point to a bloom filter"),m(De[at+6],"injectorIndex should point to a bloom filter"),m(De[at+7],"injectorIndex should point to a bloom filter"),m(De[at+8],"injectorIndex should point to parent injector")}const hr="svg",ns="math";function vi(De){for(;Array.isArray(De);)De=De[js];return De}function Vo(De){for(;Array.isArray(De);){if("object"==typeof De[1])return De;De=De[js]}return null}function Go(De,at){return vi(at[De])}function fl(De,at){return vi(at[De.index])}function ws(De,at){const Jt=null===De?-1:De.index;return-1!==Jt?vi(at[Jt]):null}function Ho(De,at){return De.data[at]}function fo(De,at){return De[at]}function xl(De,at,Jt,Yn){Jt>=De.data.length&&(De.data[Jt]=null,De.blueprint[Jt]=null),at[Jt]=Yn}function zl(De,at){const Jt=at[De];return Qr(Jt)?Jt:Jt[js]}function za(De){return!(4&~De[Ka])}function fr(De){return!(128&~De[Ka])}function Cl(De){return Es(De[Pr])}function to(De,at){return null==at?null:De[at]}function wo(De){De[Kr]=0}function mo(De){1024&De[Ka]||(De[Ka]|=1024,fr(De)&&no(De))}function So(De,at){for(;De>0;)at=at[dr],De--;return at}function jo(De){return!!(9216&De[Ka]||De[_s]?.dirty)}function ml(De){De[xo].changeDetectionScheduler?.notify(8),64&De[Ka]&&(De[Ka]|=1024),jo(De)&&no(De)}function no(De){De[xo].changeDetectionScheduler?.notify(0);let at=El(De);for(;null!==at&&!(8192&at[Ka])&&(at[Ka]|=8192,fr(at));)at=El(at)}function Ml(De,at){if(Er(De))throw new j(911,!1);null===De[gs]&&(De[gs]=[]),De[gs].push(at)}function io(De,at){if(null===De[gs])return;const Jt=De[gs].indexOf(at);-1!==Jt&&De[gs].splice(Jt,1)}function El(De){const at=De[Pr];return Es(at)?at[Pr]:at}function ao(De){return De[Js]??=[]}function $r(De){return De.cleanup??=[]}function Ss(De,at,Jt,Yn){const gi=ao(at);gi.push(Jt),De.firstCreatePass&&$r(De).push(Yn,gi.length-1)}const mi={lFrame:Dl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Xs=function(De){return De[De.Off=0]="Off",De[De.Exhaustive=1]="Exhaustive",De[De.OnlyDirtyViews=2]="OnlyDirtyViews",De}(Xs||{});let ro=0,Os=!1;function so(){return mi.lFrame.elementDepthCount}function el(){mi.lFrame.elementDepthCount++}function Ul(){mi.lFrame.elementDepthCount--}function To(){return mi.bindingsEnabled}function Zl(){return null!==mi.skipHydrationRootTNode}function wl(De){return mi.skipHydrationRootTNode===De}function is(){mi.bindingsEnabled=!0}function Wo(){mi.bindingsEnabled=!1}function tl(){mi.skipHydrationRootTNode=null}function Te(){return mi.lFrame.lView}function je(){return mi.lFrame.tView}function Be(De){return mi.lFrame.contextLView=De,De[Jo]}function Ke(De){return mi.lFrame.contextLView=null,De}function bt(){let De=Ht();for(;null!==De&&64===De.type;)De=De.parent;return De}function Ht(){return mi.lFrame.currentTNode}function sn(){const De=mi.lFrame,at=De.currentTNode;return De.isParent?at:at.parent}function Rn(De,at){const Jt=mi.lFrame;Jt.currentTNode=De,Jt.isParent=at}function di(){return mi.lFrame.isParent}function ji(){mi.lFrame.isParent=!1}function Ia(){return mi.lFrame.contextLView}function rr(){return Oe("Must never be called in production mode"),ro!==Xs.Off}function Fr(){return Oe("Must never be called in production mode"),ro===Xs.Exhaustive}function nl(De){Oe("Must never be called in production mode"),ro=De}function as(){return Os}function oo(De){const at=Os;return Os=De,at}function lo(){const De=mi.lFrame;let at=De.bindingRootIndex;return-1===at&&(at=De.bindingRootIndex=De.tView.bindingStartIndex),at}function Sl(){return mi.lFrame.bindingIndex}function mc(De){return mi.lFrame.bindingIndex=De}function ql(){return mi.lFrame.bindingIndex++}function Tl(De){const at=mi.lFrame,Jt=at.bindingIndex;return at.bindingIndex=at.bindingIndex+De,Jt}function qc(){return mi.lFrame.inI18n}function po(De){mi.lFrame.inI18n=De}function pc(De,at){const Jt=mi.lFrame;Jt.bindingIndex=Jt.bindingRootIndex=De,Ps(at)}function gc(){return mi.lFrame.currentDirectiveIndex}function Ps(De){mi.lFrame.currentDirectiveIndex=De}function Do(De){const at=mi.lFrame.currentDirectiveIndex;return-1===at?null:De[at]}function e1(){return mi.lFrame.currentQueryIndex}function Ao(De){mi.lFrame.currentQueryIndex=De}function kc(De){const at=De[Cs];return 2===at.type?at.declTNode:1===at.type?De[Wr]:null}function pl(De,at,Jt){if(4&Jt){let gi=at,Pi=De;for(;!(gi=gi.parent,null!==gi||1&Jt||(gi=kc(Pi),null===gi||(Pi=Pi[dr],10&gi.type))););if(null===gi)return!1;at=gi,De=Pi}const Yn=mi.lFrame=Lo();return Yn.currentTNode=at,Yn.lView=De,!0}function il(De){const at=Lo(),Jt=De[Cs];mi.lFrame=at,at.currentTNode=Jt.firstChild,at.lView=De,at.tView=Jt,at.contextLView=De,at.bindingIndex=Jt.bindingStartIndex,at.inI18n=!1}function Lo(){const De=mi.lFrame,at=null===De?null:De.child;return null===at?Dl(De):at}function Dl(De){const at={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:De,child:null,inI18n:!1};return null!==De&&(De.child=at),at}function Vl(){const De=mi.lFrame;return mi.lFrame=De.parent,De.currentTNode=null,De.lView=null,De}const Gl=Vl;function Hl(){const De=Vl();De.isParent=!0,De.tView=null,De.selectedIndex=-1,De.contextLView=null,De.elementDepthCount=0,De.currentDirectiveIndex=-1,De.currentNamespace=null,De.bindingRootIndex=-1,De.bindingIndex=-1,De.currentQueryIndex=0}function Al(De){return(mi.lFrame.contextLView=So(De,mi.lFrame.contextLView))[Jo]}function Io(){return mi.lFrame.selectedIndex}function ko(De){mi.lFrame.selectedIndex=De}function jl(){const De=mi.lFrame;return Ho(De.tView,De.selectedIndex)}function rs(){mi.lFrame.currentNamespace=hr}function Tr(){mi.lFrame.currentNamespace=ns}function Bt(){!function ft(){mi.lFrame.currentNamespace=null}()}function Tt(){return mi.lFrame.currentNamespace}let on=!0;function Hn(){return on}function ni(De){on=De}function Mi(De,at=null,Jt=null,Yn){const gi=ki(De,at,Jt,Yn);return gi.resolveInjectorInitializers(),gi}function ki(De,at=null,Jt=null,Yn,gi=new Set){const Pi=[Jt||Jn,Ma(De)];return Yn=Yn||("object"==typeof De?void 0:ye(De)),new va(Pi,at||Wn(),Yn||null,gi)}class $i{static THROW_IF_NOT_FOUND=Pt;static NULL=new Bi;static create(at,Jt){if(Array.isArray(at))return Mi({name:""},Jt,at,"");{const Yn=at.name??"";return Mi({name:Yn},at.parent,at.providers,Yn)}}static \u0275prov=oe({token:$i,providedIn:"any",factory:()=>oi(Gn)});static __NG_ELEMENT_ID__=-1}const ra=new qt("");let ba=(()=>class De{static __NG_ELEMENT_ID__=mr;static __NG_ENV_ID__=Jt=>Jt})();class oa extends ba{_lView;constructor(at){super(),this._lView=at}get destroyed(){return Er(this._lView)}onDestroy(at){const Jt=this._lView;return Ml(Jt,at),()=>io(Jt,at)}}function mr(){return new oa(Te())}class Lr{_console=console;handleError(at){this._console.error("ERROR",at)}}const bi=new qt("",{providedIn:"root",factory:()=>{const De=Ei(Yi);let at;return Jt=>{De.destroyed&&!at?setTimeout(()=>{throw Jt}):(at??=De.get(Lr),at.handleError(Jt))}}}),Ns={provide:hi,useValue:()=>{Ei(Lr)},multi:!0};function Ro(De){return"function"==typeof De&&void 0!==De[h.bh]}function gl(De,at){const[Jt,Yn,gi]=(0,h.n5)(De,at?.equal),Pi=Jt;return Pi.set=Yn,Pi.update=gi,Pi.asReadonly=Ks.bind(Pi),Pi}function Ks(){const De=this[h.bh];if(void 0===De.readonlyFn){const at=()=>this();at[h.bh]=De,De.readonlyFn=at}return De.readonlyFn}function ec(De){return Ro(De)&&"function"==typeof De.set}function Wl(De,at){if(null!==(0,h.nR)())throw new j(-602,!1)}let ed=(()=>class De{view;node;constructor(Jt,Yn){this.view=Jt,this.node=Yn}static __NG_ELEMENT_ID__=_d})();function _d(){return new ed(Te(),bt())}class _c{}const td=new qt("",{providedIn:"root",factory:()=>!1}),tc=new qt("",{providedIn:"root",factory:()=>!1}),vd=new qt(""),nc=new qt("");let co=(()=>{class De{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new d.t(!1);get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new w.c(Jt=>{Jt.next(!1),Jt.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const Jt=this.taskId++;return this.pendingTasks.add(Jt),Jt}has(Jt){return this.pendingTasks.has(Jt)}remove(Jt){this.pendingTasks.delete(Jt),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})(),ja=(()=>{class De{internalPendingTasks=Ei(co);scheduler=Ei(_c);errorHandler=Ei(bi);add(){const Jt=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(Jt)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(Jt))}}run(Jt){const Yn=this.add();Jt().catch(this.errorHandler).finally(Yn)}static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new De})}return De})();function Ti(...De){}let Ra=(()=>{class De{static \u0275prov=oe({token:De,providedIn:"root",factory:()=>new cr})}return De})();class cr{dirtyEffectCount=0;queues=new Map;add(at){this.enqueue(at),this.schedule(at)}schedule(at){at.dirty&&this.dirtyEffectCount++}remove(at){const Yn=this.queues.get(at.zone);Yn.has(at)&&(Yn.delete(at),at.dirty&&this.dirtyEffectCount--)}enqueue(at){const Jt=at.zone;this.queues.has(Jt)||this.queues.set(Jt,new Set);const Yn=this.queues.get(Jt);Yn.has(at)||Yn.add(at)}flush(){for(;this.dirtyEffectCount>0;){let at=!1;for(const[Jt,Yn]of this.queues)at||=null===Jt?this.flushQueue(Yn):Jt.run(()=>this.flushQueue(Yn));at||(this.dirtyEffectCount=0)}}flushQueue(at){let Jt=!1;for(const Yn of at)Yn.dirty&&(this.dirtyEffectCount--,Jt=!0,Yn.run());return Jt}}},89079(ke,q,l){"use strict";l.d(q,{ot:()=>ye});var Z=l(2615),ee=l(59295);function ye(L,t){const m=t?.manualCleanup?null:t?.injector?.get(Z.abz)??(0,Z.WQX)(Z.abz),u=function se(L=Object.is){return(t,s)=>1===t.kind&&1===s.kind&&L(t.value,s.value)}(t?.equal);let _,T;_=(0,Z.vPA)(t?.requireSync?{kind:0}:{kind:1,value:t?.initialValue},{equal:u});const P=L.subscribe({next:C=>_.set({kind:1,value:C}),error:C=>{_.set({kind:2,error:C}),T?.()},complete:()=>{T?.()}});if(t?.requireSync&&0===_().kind)throw new Z.buA(601,!1);return T=m?.onDestroy(P.unsubscribe.bind(P)),(0,ee.EW)(()=>{const C=_();switch(C.kind){case 1:return C.value;case 2:throw C.error;case 0:throw new Z.buA(601,!1)}},{equal:t?.equal})}},48440(ke,q,l){"use strict";l.d(q,{Ag:()=>_,Bg:()=>V,EF:()=>P,H8:()=>m,Ht:()=>e,JC:()=>M,KE:()=>h,KO:()=>R,KZ:()=>u,Ny:()=>T,TO:()=>ee,Wu:()=>$,XR:()=>ye,a7:()=>L,bh:()=>o,j2:()=>Oe,mC:()=>ge,mK:()=>f,n5:()=>fe,nR:()=>A,pL:()=>w,s0:()=>Re,si:()=>_e});let i=null,g=!1,p=1;const o=Symbol("SIGNAL");function e(ve){const oe=i;return i=ve,oe}function A(){return i}function h(){return g}const w={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function f(ve){if(g)throw new Error("");if(null===i)return;i.consumerOnSignalRead(ve);const oe=i.producersTail;if(void 0!==oe&&oe.producer===ve)return;let Se;const be=i.recomputing;if(be&&(Se=void 0!==oe?oe.nextProducer:i.producers,void 0!==Se&&Se.producer===ve))return i.producersTail=Se,void(Se.lastReadVersion=ve.version);const nt=ve.consumersTail;if(void 0!==nt&&nt.consumer===i&&(!be||function s(ve,oe){const Se=oe.producersTail;if(void 0!==Se){let be=oe.producers;do{if(be===ve)return!0;if(be===Se)break;be=be.nextProducer}while(void 0!==be)}return!1}(nt,i)))return;const $e=Ee(i),dt={producer:ve,consumer:i,nextProducer:Se,prevConsumer:nt,lastReadVersion:ve.version,nextConsumer:void 0};i.producersTail=dt,void 0!==oe?oe.nextProducer=dt:i.producers=dt,$e&&se(ve,dt)}function M(ve){if((!Ee(ve)||ve.dirty)&&(ve.dirty||ve.lastCleanEpoch!==p)){if(!ve.producerMustRecompute(ve)&&!_e(ve))return void ee(ve);ve.producerRecomputeValue(ve),ee(ve)}}function K(ve){if(void 0===ve.consumers)return;const oe=g;g=!0;try{for(let Se=ve.consumers;void 0!==Se;Se=Se.nextConsumer){const be=Se.consumer;be.dirty||Z(be)}}finally{g=oe}}function j(){return!1!==i?.consumerAllowSignalWrites}function Z(ve){ve.dirty=!0,K(ve),ve.consumerMarkedDirty?.(ve)}function ee(ve){ve.dirty=!1,ve.lastCleanEpoch=p}function V(ve){return ve&&function Q(ve){ve.producersTail=void 0,ve.recomputing=!0}(ve),e(ve)}function $(ve,oe){e(oe),ve&&function ie(ve){ve.recomputing=!1;const oe=ve.producersTail;let Se=void 0!==oe?oe.nextProducer:ve.producers;if(void 0!==Se){if(Ee(ve))do{Se=pe(Se)}while(void 0!==Se);void 0!==oe?oe.nextProducer=void 0:ve.producers=void 0}}(ve)}function _e(ve){for(let oe=ve.producers;void 0!==oe;oe=oe.nextProducer){const Se=oe.producer,be=oe.lastReadVersion;if(be!==Se.version||(M(Se),be!==Se.version))return!0}return!1}function ye(ve){if(Ee(ve)){let oe=ve.producers;for(;void 0!==oe;)oe=pe(oe)}ve.producers=void 0,ve.producersTail=void 0,ve.consumers=void 0,ve.consumersTail=void 0}function se(ve,oe){const Se=ve.consumersTail,be=Ee(ve);if(void 0!==Se?(oe.nextConsumer=Se.nextConsumer,Se.nextConsumer=oe):(oe.nextConsumer=void 0,ve.consumers=oe),oe.prevConsumer=Se,ve.consumersTail=oe,!be)for(let nt=ve.producers;void 0!==nt;nt=nt.nextProducer)se(nt.producer,nt)}function pe(ve){const oe=ve.producer,Se=ve.nextProducer,be=ve.nextConsumer,nt=ve.prevConsumer;if(ve.nextConsumer=void 0,ve.prevConsumer=void 0,void 0!==be?be.prevConsumer=nt:oe.consumersTail=nt,void 0!==nt)nt.nextConsumer=be;else if(oe.consumers=be,!Ee(oe)){let $e=oe.producers;for(;void 0!==$e;)$e=pe($e)}return Se}function Ee(ve){return ve.consumerIsAlwaysLive||void 0!==ve.consumers}function L(ve){}function m(ve,oe){return Object.is(ve,oe)}function u(ve,oe){const Se=Object.create(C);Se.computation=ve,void 0!==oe&&(Se.equal=oe);const be=()=>{if(M(Se),f(Se),Se.value===P)throw Se.error;return Se.value};return be[o]=Se,be}const _=Symbol("UNSET"),T=Symbol("COMPUTING"),P=Symbol("ERRORED"),C={...w,value:_,dirty:!0,error:null,equal:m,kind:"computed",producerMustRecompute:ve=>ve.value===_||ve.value===T,producerRecomputeValue(ve){if(ve.value===T)throw new Error("");const oe=ve.value;ve.value=T;const Se=V(ve);let be,nt=!1;try{be=ve.computation(),e(null),nt=oe!==_&&oe!==P&&be!==P&&ve.equal(oe,be)}catch($e){be=P,ve.error=$e}finally{$(ve,Se)}nt?ve.value=oe:(ve.value=be,ve.version++)}};let x=function a(){throw new Error};function Y(ve){x(ve)}function R(ve){x=ve}function fe(ve,oe){const Se=Object.create(Re);Se.value=ve,void 0!==oe&&(Se.equal=oe);const be=()=>function he(ve){return f(ve),ve.value}(Se);return be[o]=Se,[be,dt=>Oe(Se,dt),dt=>ge(Se,dt)]}function Oe(ve,oe){j()||Y(ve),ve.equal(ve.value,oe)||(ve.value=oe,function Me(ve){ve.version++,function F(){p++}(),K(ve)}(ve))}function ge(ve,oe){j()||Y(ve),Oe(ve,oe(ve.value))}const Re={...w,equal:m,value:void 0,kind:"signal"}},24545(ke,q,l){"use strict";function i(w){for(let f in w){let F=w[f]??"";switch(f){case"display":w.display="flex"===F?["-webkit-flex","flex"]:"inline-flex"===F?["-webkit-inline-flex","inline-flex"]:F;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":w["-webkit-"+f]=F;break;case"flex-direction":w["-webkit-flex-direction"]=F,w["flex-direction"]=F;break;case"order":w.order=w["-webkit-"+f]=isNaN(+F)?"0":F}}return w}l.d(q,{C5:()=>d,O5:()=>i,Uo:()=>p,Vc:()=>e,uG:()=>D});const g="inline",p=["row","column","row-reverse","column-reverse"];function D(w){let[f,F,M]=o(w);return function h(w,f=null,F=!1){return{display:F?"inline-flex":"flex","box-sizing":"border-box","flex-direction":w,"flex-wrap":f||null}}(f,F,M)}function o(w){w=w?.toLowerCase()??"";let[f,F,M]=w.split(" ");return p.find(K=>K===f)||(f=p[0]),F===g&&(F=M!==g?M:"",M=g),[f,A(F),!!M]}function e(w){let[f]=o(w);return f.indexOf("row")>-1}function A(w){if(w)switch(w.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":w="wrap-reverse";break;case"no":case"none":case"nowrap":w="nowrap";break;default:w="wrap"}return w}function d(w,...f){if(null==w)throw TypeError("Cannot convert undefined or null to object");for(let F of f)if(null!=F)for(let M in F)F.hasOwnProperty(M)&&(w[M]=F[M]);return w}},29340(ke,q,l){"use strict";l.d(q,{Ce:()=>P,DJ:()=>tt,EA:()=>T,PV:()=>_,SL:()=>C,Ui:()=>s,ZH:()=>Y,cL:()=>Ye,hN:()=>Je,qH:()=>En,r3:()=>x});var Z=l(2615),ee=l(73664),V=l(60177),Q=l(71985),$=l(21413),ie=l(84412),_e=l(57786),ye=l(24545),se=l(5964),pe=l(88141);const L={provide:ee.iLQ,useFactory:function Ee(st,it){return()=>{if((0,V.UE)(it)){const He=Array.from(st.querySelectorAll(`[class*=${t}]`)),Wt=/\bflex-layout-.+?\b/g;He.forEach(we=>{we.classList.contains(`${t}ssr`)&&we.parentNode?we.parentNode.removeChild(we):we.className.replace(Wt,"")})}}},deps:[Z.qQL,ee.Agw],multi:!0},t="flex-layout-";let s=(()=>{class st{}return st.\u0275fac=function(He){return new(He||st)},st.\u0275mod=ee.$C({type:st}),st.\u0275inj=Z.G2t({providers:[L]}),st})();class m{constructor(it=!1,He="all",Wt="",we="",We=0){this.matches=it,this.mediaQuery=He,this.mqAlias=Wt,this.suffix=we,this.priority=We,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let u=(()=>{class st{constructor(){this.stylesheet=new Map}addStyleToElement(He,Wt,we){const We=this.stylesheet.get(He);We?We.set(Wt,we):this.stylesheet.set(He,new Map([[Wt,we]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(He,Wt){const we=this.stylesheet.get(He);let We="";if(we){const Lt=we.get(Wt);("number"==typeof Lt||"string"==typeof Lt)&&(We=Lt+"")}return We}}return st.\u0275fac=function(He){return new(He||st)},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const _={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},T=new Z.nKC("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>_}),P=new Z.nKC("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),C=new Z.nKC("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function a(st,it){return st=st?.clone()??new m,it&&(st.mqAlias=it.alias,st.mediaQuery=it.mediaQuery,st.suffix=it.suffix,st.priority=it.priority),st}class x{constructor(){this.shouldCache=!0}sideEffect(it,He,Wt){}}let Y=(()=>{class st{constructor(He,Wt,we,We){this._serverStylesheet=He,this._serverModuleLoaded=Wt,this._platformId=we,this.layoutConfig=We}applyStyleToElement(He,Wt,we=null){let We={};"string"==typeof Wt&&(We[Wt]=we,Wt=We),We=this.layoutConfig.disableVendorPrefixes?Wt:(0,ye.O5)(Wt),this._applyMultiValueStyleToElement(We,He)}applyStyleToElements(He,Wt=[]){const we=this.layoutConfig.disableVendorPrefixes?He:(0,ye.O5)(He);Wt.forEach(We=>{this._applyMultiValueStyleToElement(we,We)})}getFlowDirection(He){const Wt="flex-direction";let we=this.lookupStyle(He,Wt);return[we||"row",this.lookupInlineStyle(He,Wt)||(0,V.Vy)(this._platformId)&&this._serverModuleLoaded?we:""]}hasWrap(He){return"wrap"===this.lookupStyle(He,"flex-wrap")}lookupAttributeValue(He,Wt){return He.getAttribute(Wt)??""}lookupInlineStyle(He,Wt){return(0,V.UE)(this._platformId)?He.style.getPropertyValue(Wt):function R(st,it){return re(st)[it]??""}(He,Wt)}lookupStyle(He,Wt,we=!1){let We="";return He&&((We=this.lookupInlineStyle(He,Wt))||((0,V.UE)(this._platformId)?we||(We=getComputedStyle(He).getPropertyValue(Wt)):this._serverModuleLoaded&&(We=this._serverStylesheet.getStyleForElement(He,Wt)))),We?We.trim():""}_applyMultiValueStyleToElement(He,Wt){Object.keys(He).sort().forEach(we=>{const We=He[we],Lt=Array.isArray(We)?We:[We];Lt.sort();for(let St of Lt)St=St?St+"":"",(0,V.UE)(this._platformId)||!this._serverModuleLoaded?(0,V.UE)(this._platformId)?Wt.style.setProperty(we,St):U(Wt,we,St):this._serverStylesheet.addStyleToElement(Wt,we,St)})}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(u),Z.KVO(P),Z.KVO(ee.Agw),Z.KVO(T))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function U(st,it,He){it=it.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const Wt=re(st);Wt[it]=He??"",function fe(st,it){let He="";for(const Wt in it)it[Wt]&&(He+=`${Wt}:${it[Wt]};`);st.setAttribute("style",He)}(st,Wt)}function re(st){const it={},He=st.getAttribute("style");if(He){const Wt=He.split(/;+/g);for(let we=0;we0){const Lt=We.indexOf(":");if(-1===Lt)throw new Error(`Invalid CSS style: ${We}`);it[We.substr(0,Lt).trim()]=We.substr(Lt+1).trim()}}}return it}function he(st,it){return(it&&it.priority||0)-(st&&st.priority||0)}function Oe(st,it){return(st.priority||0)-(it.priority||0)}let ge=(()=>{class st{constructor(He,Wt,we){this._zone=He,this._platformId=Wt,this._document=we,this.source=new ie.t(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const He=[];return this.registry.forEach((Wt,we)=>{Wt.matches&&He.push(we)}),He}isActive(He){return this.registry.get(He)?.matches??this.registerQuery(He).some(we=>we.matches)}observe(He,Wt=!1){if(He&&He.length){const we=this._observable$.pipe((0,se.p)(Lt=>!Wt||He.indexOf(Lt.mediaQuery)>-1)),We=new Q.c(Lt=>{const St=this.registerQuery(He);if(St.length){const At=St.pop();St.forEach(fn=>{Lt.next(fn)}),this.source.next(At)}Lt.complete()});return(0,_e.h)(We,we)}return this._observable$}registerQuery(He){const Wt=Array.isArray(He)?He:[He],we=[];return function Re(st,it){const He=st.filter(Wt=>!ce[Wt]);if(He.length>0){const Wt=He.join(", ");try{const we=it.createElement("style");we.setAttribute("type","text/css"),we.styleSheet||we.appendChild(it.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${Wt} {.fx-query-test{ }}\n`)),it.head.appendChild(we),He.forEach(We=>ce[We]=we)}catch(we){console.error(we)}}}(Wt,this._document),Wt.forEach(We=>{const Lt=At=>{this._zone.run(()=>this.source.next(new m(At.matches,We)))};let St=this.registry.get(We);St||(St=this.buildMQL(We),St.addListener(Lt),this.pendingRemoveListenerFns.push(()=>St.removeListener(Lt)),this.registry.set(We,St)),St.matches&&we.push(new m(!0,We))}),we}ngOnDestroy(){let He;for(;He=this.pendingRemoveListenerFns.pop();)He()}buildMQL(He){return function ve(st,it){return it&&window.matchMedia("all").addListener?window.matchMedia(st):function Me(st){const it=new EventTarget;return it.matches="all"===st||""===st,it.media=st,it.addListener=()=>{},it.removeListener=()=>{},it.addEventListener=()=>{},it.dispatchEvent=()=>!1,it.onchange=null,it}(st)}(He,(0,V.UE)(this._platformId))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ee.SKi),Z.KVO(ee.Agw),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const ce={},oe=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],Se="(orientation: portrait) and (max-width: 599.98px)",be="(orientation: landscape) and (max-width: 959.98px)",nt="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",$e="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",dt="(orientation: portrait) and (min-width: 840px)",yt="(orientation: landscape) and (min-width: 1280px)",Et={HANDSET:`${Se}, ${be}`,TABLET:`${nt} , ${$e}`,WEB:`${dt}, ${yt} `,HANDSET_PORTRAIT:`${Se}`,TABLET_PORTRAIT:`${nt} `,WEB_PORTRAIT:`${dt}`,HANDSET_LANDSCAPE:`${be}`,TABLET_LANDSCAPE:`${$e}`,WEB_LANDSCAPE:`${yt}`},rt=[{alias:"handset",priority:2e3,mediaQuery:Et.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:Et.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:Et.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:Et.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:Et.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:Et.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:Et.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:Et.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:Et.WEB_PORTRAIT,overlapping:!0}],Mn=/(\.|-|_)/g;function qt(st){let it=st.length>0?st.charAt(0):"",He=st.length>1?st.slice(1):"";return it.toUpperCase()+He}const ae=new Z.nKC("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const st=(0,Z.WQX)(C),it=(0,Z.WQX)(T),He=[].concat.apply([],(st||[]).map(we=>Array.isArray(we)?we:[we]));return function de(st,it=[]){const He={};return st.forEach(Wt=>{He[Wt.alias]=Wt}),it.forEach(Wt=>{He[Wt.alias]?(0,ye.C5)(He[Wt.alias],Wt):He[Wt.alias]=Wt}),function Xt(st){return st.forEach(it=>{it.suffix||(it.suffix=function S(st){return st.replace(Mn,"|").split("|").map(qt).join("")}(it.alias),it.overlapping=!!it.overlapping)}),st}(Object.keys(He).map(Wt=>He[Wt]))}((it.disableDefaultBps?[]:oe).concat(it.addOrientationBps?rt:[]),He)}});let me=(()=>{class st{constructor(He){this.findByMap=new Map,this.items=[...He].sort(Oe)}findByAlias(He){return He?this.findWithPredicate(He,Wt=>Wt.alias===He):null}findByQuery(He){return this.findWithPredicate(He,Wt=>Wt.mediaQuery===He)}get overlappings(){return this.items.filter(He=>He.overlapping)}get aliases(){return this.items.map(He=>He.alias)}get suffixes(){return this.items.map(He=>He?.suffix??"")}findWithPredicate(He,Wt){let we=this.findByMap.get(He);return we||(we=this.items.find(Wt)??null,this.findByMap.set(He,we)),we??null}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ae))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();const Le="print",et={alias:Le,mediaQuery:Le,priority:1e3};let tn=(()=>{class st{constructor(He,Wt,we){this.breakpoints=He,this.layoutConfig=Wt,this._document=we,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Vt,this.deactivations=[]}withPrintQuery(He){return[...He,Le]}isPrintEvent(He){return He.mediaQuery.startsWith(Le)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(He=>this.breakpoints.findByAlias(He)).filter(He=>null!==He)}getEventBreakpoints({mediaQuery:He}){const Wt=this.breakpoints.findByQuery(He);return(Wt?[...this.printBreakPoints,Wt]:this.printBreakPoints).sort(he)}updateEvent(He){let Wt=this.breakpoints.findByQuery(He.mediaQuery);return this.isPrintEvent(He)&&(Wt=this.getEventBreakpoints(He)[0],He.mediaQuery=Wt?.mediaQuery??""),a(He,Wt)}registerBeforeAfterPrintHooks(He){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const Wt=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(He,this.getEventBreakpoints(new m(!0,Le))),He.updateStyles())},we=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(He),He.updateStyles())};this._document.defaultView.addEventListener("beforeprint",Wt),this._document.defaultView.addEventListener("afterprint",we),this.beforePrintEventListeners.push(Wt),this.afterPrintEventListeners.push(we)}interceptEvents(He){return Wt=>{this.isPrintEvent(Wt)?Wt.matches&&!this.isPrinting?(this.startPrinting(He,this.getEventBreakpoints(Wt)),He.updateStyles()):!Wt.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(He),He.updateStyles()):this.collectActivations(He,Wt)}}blockPropagation(){return He=>!(this.isPrinting||this.isPrintEvent(He))}startPrinting(He,Wt){this.isPrinting=!0,this.formerActivations=He.activatedBreakpoints,He.activatedBreakpoints=this.queue.addPrintBreakpoints(Wt)}stopPrinting(He){He.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(He,Wt){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!Wt.matches){const we=this.breakpoints.findByQuery(Wt.mediaQuery);if(we){const We=this.formerActivations&&this.formerActivations.includes(we),Lt=!this.formerActivations&&He.activatedBreakpoints.includes(we);(We||Lt)&&(this.deactivations.push(we),this.deactivations.sort(he))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("beforeprint",He)),this.afterPrintEventListeners.forEach(He=>this._document.defaultView.removeEventListener("afterprint",He)))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(me),Z.KVO(T),Z.KVO(Z.qQL))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();class Vt{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(it){return it.push(et),it.sort(he),it.forEach(He=>this.addBreakpoint(He)),this.printBreakpoints}addBreakpoint(it){it&&void 0===this.printBreakpoints.find(Wt=>Wt.mediaQuery===it.mediaQuery)&&(this.printBreakpoints=function hn(st){return st?.mediaQuery.startsWith(Le)??!1}(it)?[it,...this.printBreakpoints]:[...this.printBreakpoints,it])}clear(){this.printBreakpoints=[]}}let En=(()=>{class st{constructor(He,Wt,we){this.matchMedia=He,this.breakpoints=Wt,this.hook=we,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new $.B,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(He){this._activatedBreakpoints=[...He]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(He){this._useFallbacks=He}onMediaChange(He){const Wt=this.findByQuery(He.mediaQuery);if(Wt){He=a(He,Wt);const we=this.activatedBreakpoints.indexOf(Wt);He.matches&&-1===we?(this._activatedBreakpoints.push(Wt),this._activatedBreakpoints.sort(he),this.updateStyles()):!He.matches&&-1!==we&&(this._activatedBreakpoints.splice(we,1),this._activatedBreakpoints.sort(he),this.updateStyles())}}init(He,Wt,we,We,Lt=[]){_n(this.updateMap,He,Wt,we),_n(this.clearMap,He,Wt,We),this.buildElementKeyMap(He,Wt),this.watchExtraTriggers(He,Wt,Lt)}getValue(He,Wt,we){const We=this.elementMap.get(He);if(We){const Lt=void 0!==we?We.get(we):this.getActivatedValues(We,Wt);if(Lt)return Lt.get(Wt)}}hasValue(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);if(We)return void 0!==We.get(Wt)||!1}return!1}setValue(He,Wt,we,We){let Lt=this.elementMap.get(He);if(Lt){const At=(Lt.get(We)??new Map).set(Wt,we);Lt.set(We,At),this.elementMap.set(He,Lt)}else Lt=(new Map).set(We,(new Map).set(Wt,we)),this.elementMap.set(He,Lt);const St=this.getValue(He,Wt);void 0!==St&&this.updateElement(He,Wt,St)}trackValue(He,Wt){return this.subject.asObservable().pipe((0,se.p)(we=>we.element===He&&we.key===Wt))}updateStyles(){this.elementMap.forEach((He,Wt)=>{const we=new Set(this.elementKeyMap.get(Wt));let We=this.getActivatedValues(He);We&&We.forEach((Lt,St)=>{this.updateElement(Wt,St,Lt),we.delete(St)}),we.forEach(Lt=>{if(We=this.getActivatedValues(He,Lt),We){const St=We.get(Lt);this.updateElement(Wt,Lt,St)}else this.clearElement(Wt,Lt)})})}clearElement(He,Wt){const we=this.clearMap.get(He);if(we){const We=we.get(Wt);We&&(We(),this.subject.next({element:He,key:Wt,value:""}))}}updateElement(He,Wt,we){const We=this.updateMap.get(He);if(We){const Lt=We.get(Wt);Lt&&(Lt(we),this.subject.next({element:He,key:Wt,value:we}))}}releaseElement(He){const Wt=this.watcherMap.get(He);Wt&&(Wt.forEach(We=>We.unsubscribe()),this.watcherMap.delete(He));const we=this.elementMap.get(He);we&&(we.forEach((We,Lt)=>we.delete(Lt)),this.elementMap.delete(He))}triggerUpdate(He,Wt){const we=this.elementMap.get(He);if(we){const We=this.getActivatedValues(we,Wt);We&&(Wt?this.updateElement(He,Wt,We.get(Wt)):We.forEach((Lt,St)=>this.updateElement(He,St,Lt)))}}buildElementKeyMap(He,Wt){let we=this.elementKeyMap.get(He);we||(we=new Set,this.elementKeyMap.set(He,we)),we.add(Wt)}watchExtraTriggers(He,Wt,we){if(we&&we.length){let We=this.watcherMap.get(He);if(We||(We=new Map,this.watcherMap.set(He,We)),!We.get(Wt)){const St=(0,_e.h)(...we).subscribe(()=>{const At=this.getValue(He,Wt);this.updateElement(He,Wt,At)});We.set(Wt,St)}}}findByQuery(He){return this.breakpoints.findByQuery(He)}getActivatedValues(He,Wt){for(let We=0;WeWt.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(He)).pipe((0,pe.M)(this.hook.interceptEvents(this)),(0,se.p)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return st.\u0275fac=function(He){return new(He||st)(Z.KVO(ge),Z.KVO(me),Z.KVO(tn))},st.\u0275prov=Z.jDH({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function _n(st,it,He,Wt){if(void 0!==Wt){const we=st.get(it)??new Map;we.set(He,Wt),st.set(it,we)}}let tt=(()=>{class st{constructor(He,Wt,we,We){this.elementRef=He,this.styleBuilder=Wt,this.styler=we,this.marshal=We,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new $.B,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(He){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,this.marshal.activatedAlias)}ngOnChanges(He){Object.keys(He).forEach(Wt=>{if(-1!==this.inputs.indexOf(Wt)){const we=Wt.split(".").slice(1).join(".");this.setValue(He[Wt].currentValue,we)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(He=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),He)}addStyles(He,Wt){const we=this.styleBuilder,We=we.shouldCache;let Lt=this.styleCache.get(He);(!Lt||!We)&&(Lt=we.buildStyles(He,Wt),We&&this.styleCache.set(He,Lt)),this.mru={...Lt},this.applyStyleToElement(Lt),we.sideEffect(He,Lt,Wt)}clearStyles(){Object.keys(this.mru).forEach(He=>{this.mru[He]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(He,Wt=!1){if(He){const[we,We]=this.styler.getFlowDirection(He);if(!We&&Wt){const Lt=(0,ye.uG)(we);this.styler.applyStyleToElements(Lt,[He])}return we.trim()}return"row"}hasWrap(He){return this.styler.hasWrap(He)}applyStyleToElement(He,Wt,we=this.nativeElement){this.styler.applyStyleToElement(we,He,Wt)}setValue(He,Wt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,He,Wt)}updateWithValue(He){this.currentValue!==He&&(this.addStyles(He),this.currentValue=He)}}return st.\u0275fac=function(He){return new(He||st)(ee.rXU(ee.aKT),ee.rXU(x),ee.rXU(Y),ee.rXU(En))},st.\u0275dir=ee.FsC({type:st,standalone:!1,features:[ee.OA$]}),st})();function Je(st,it="1",He="1"){let Wt=[it,He,st],we=st.indexOf("calc");if(we>0){Wt[2]=gt(st.substring(we).trim());let We=st.substr(0,we).trim().split(" ");2==We.length&&(Wt[0]=We[0],Wt[1]=We[1])}else if(0==we)Wt[2]=gt(st.trim());else{let We=st.split(" ");Wt=3===We.length?We:[it,He,st]}return Wt}function gt(st){return st.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function Ye(st,it){if(void 0===it)return st;const He=Wt=>{const we=+Wt.slice(0,-1);return st.endsWith("x")&&!isNaN(we)?`${we*it.value}${it.unit}`:st};return st.includes(" ")?st.split(" ").map(He).join(" "):He(st)}EventTarget},16038(ke,q,l){"use strict";l.d(q,{Cc:()=>R,PW:()=>Q,eI:()=>a});var i=l(17705),g=l(2615),p=l(73664),D=l(29340),o=l(72200),e=l(60177),d=(l(14085),l(56977),l(345));let Z=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me){super(re,null,he,Oe),this.ngClassInstance=Me,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new o.YU(ge,ce,re,Re)),this.init(),this.setValue("","")}set klass(re){this.ngClassInstance.klass=re,this.setValue(re,"")}updateWithValue(re){this.ngClassInstance.ngClass=re,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(i._q3),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.YU,10))},U.\u0275dir=p.FsC({type:U,inputs:{klass:[0,"class","klass"]},standalone:!1,features:[p.Vt3]}),U})();const ee=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];let Q=(()=>{class U extends Z{constructor(){super(...arguments),this.inputs=ee}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},standalone:!1,features:[p.Vt3]}),U})();class Ee{constructor(fe,re,he=!0){this.key=fe,this.value=re,this.key=he?fe.replace(/['"]/g,"").trim():fe.trim(),this.value=he?re.replace(/['"]/g,"").trim():re.trim(),this.value=this.value.replace(/;/,"")}}function L(U){let fe=typeof U;return"object"===fe?U.constructor===Array?"array":U.constructor===Set?"set":"object":fe}function u(U){const[fe,...re]=U.split(":");return new Ee(fe,re.join(":"))}function _(U,fe){return fe.key&&(U[fe.key]=fe.value),U}let T=(()=>{class U extends D.DJ{constructor(re,he,Oe,ge,ce,Re,Me,ve,oe){super(re,null,he,Oe),this.sanitizer=ge,this.ngStyleInstance=Me,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new o.B3(re,ce,Re)),this.init();const Se=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(Se),this.isServer=ve&&(0,e.Vy)(oe)}updateWithValue(re){const he=this.buildStyleMap(re);this.ngStyleInstance.ngStyle={...this.fallbackStyles,...he},this.isServer&&this.applyStyleToElement(he),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(re){const he=Oe=>this.sanitizer.sanitize(p.WPN.STYLE,Oe)??"";if(re)switch(L(re)){case"string":return x(function t(U,fe=";"){return String(U).trim().split(fe).map(re=>re.trim()).filter(re=>""!==re)}(re),he);case"array":return x(re,he);default:return function m(U,fe){let re=[];return"set"===L(U)?U.forEach(he=>re.push(he)):Object.keys(U).forEach(he=>{re.push(`${he}:${U[he]}`)}),function s(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}(re,fe)}(re,he)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return U.\u0275fac=function(re){return new(re||U)(p.rXU(p.aKT),p.rXU(D.ZH),p.rXU(D.qH),p.rXU(d.up),p.rXU(i.MKu),p.rXU(p.sFG),p.rXU(o.B3,10),p.rXU(D.Ce),p.rXU(p.Agw))},U.\u0275dir=p.FsC({type:U,standalone:!1,features:[p.Vt3]}),U})();const P=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];let a=(()=>{class U extends T{constructor(){super(...arguments),this.inputs=P}}return U.\u0275fac=(()=>{let fe;return function(he){return(fe||(fe=p.xGo(U)))(he||U)}})(),U.\u0275dir=p.FsC({type:U,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},standalone:!1,features:[p.Vt3]}),U})();function x(U,fe){return U.map(u).filter(he=>!!he).map(he=>(fe&&(he.value=fe(he.value)),he)).reduce(_,{})}let R=(()=>{class U{}return U.\u0275fac=function(re){return new(re||U)},U.\u0275mod=p.$C({type:U}),U.\u0275inj=g.G2t({imports:[D.Ui]}),U})()},52920(ke,q,l){"use strict";l.d(q,{DJ:()=>M,UI:()=>P,sA:()=>tn,w2:()=>Ie});var i=l(2615),g=l(73664),D=(l(61577),l(28203)),o=l(29340),e=l(24545),h=(l(21413),l(56977));let d=(()=>{class le extends o.r3{buildStyles(ze,{display:Je}){const gt=(0,e.uG)(ze);return{...gt,display:"none"===Je?Je:gt.display}}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const w=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let F=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,gt,Je,zt),this._config=Ye,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ze){const gt=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=K.get(gt)??new Map,K.set(gt,this.styleCache),this.currentValue!==ze&&(this.addStyles(ze,{display:gt}),this.currentValue=ze)}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(d),g.rXU(o.qH),g.rXU(o.EA))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),M=(()=>{class le extends F{constructor(){super(...arguments),this.inputs=w}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},standalone:!1,features:[g.Vt3]}),le})();const K=new Map;let m=(()=>{class le extends o.r3{constructor(ze){super(),this.layoutConfig=ze}buildStyles(ze,Je){let[gt,zt,...Ye]=ze.split(" "),st=Ye.join(" ");const it=Je.direction.indexOf("column")>-1?"column":"row",He=(0,e.Vc)(it)?"max-width":"max-height",Wt=(0,e.Vc)(it)?"min-width":"min-height",we=String(st).indexOf("calc")>-1,We=we||"auto"===st,Lt=String(st).indexOf("%")>-1&&!we,St=String(st).indexOf("px")>-1||String(st).indexOf("rem")>-1||String(st).indexOf("em")>-1||String(st).indexOf("vw")>-1||String(st).indexOf("vh")>-1;let At=we||St;gt="0"==gt?0:gt,zt="0"==zt?0:zt;const fn=!gt&&!zt;let mt={};const It={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(st||""){case"":st="row"===it?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":gt=0,st="auto";break;case"grow":st="100%";break;case"noshrink":zt=0,st="auto";break;case"auto":break;case"none":gt=0,zt=0,st="auto";break;default:!At&&!Lt&&!isNaN(st)&&(st+="%"),"0%"===st&&(At=!0),"0px"===st&&(st="0%"),mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":At?st:"100%"}:{flex:`${gt} ${zt} ${At?st:"100%"}`})}return mt.flex||mt["flex-grow"]||(mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`})),"0%"!==st&&"0px"!==st&&"0.000000001px"!==st&&"auto"!==st&&(mt[Wt]=fn||At&>?st:null,mt[He]=fn||!We&&zt?st:null),mt[Wt]||mt[He]?Je.hasWrap&&(mt[we?"flex-basis":"flex"]=mt[He]?we?mt[He]:`${gt} ${zt} ${mt[He]}`:we?mt[Wt]:`${gt} ${zt} ${mt[Wt]}`):mt=(0,e.C5)(It,we?{"flex-grow":gt,"flex-shrink":zt,"flex-basis":st}:{flex:`${gt} ${zt} ${st}`}),(0,e.C5)(mt,{"box-sizing":"border-box"})}}return le.\u0275fac=function(ze){return new(ze||le)(i.KVO(o.EA))},le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const u=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let T=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt,Ye){super(ze,zt,Je,Ye),this.layoutConfig=gt,this.marshal=Ye,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(ze){this.flexShrink=ze||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ze){this.flexGrow=ze||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,h.Q)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ze){const gt=ze.value.split(" ");this.direction=gt[0],this.wrap=void 0!==gt[1]&&"wrap"===gt[1],this.triggerUpdate()}updateWithValue(ze){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const gt=this.direction,zt=gt.startsWith("row"),Ye=this.wrap;zt&&Ye?this.styleCache=x:zt&&!Ye?this.styleCache=C:!zt&&Ye?this.styleCache=Y:!zt&&!Ye&&(this.styleCache=a);const st=String(ze).replace(";",""),it=(0,o.hN)(st,this.flexGrow,this.flexShrink);this.addStyles(it.join(" "),{direction:gt,hasWrap:Ye})}triggerReflow(){const ze=this.activatedValue;if(void 0!==ze){const Je=(0,o.hN)(ze+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,Je.join(" "))}}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(o.EA),g.rXU(m),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,inputs:{shrink:[0,"fxShrink","shrink"],grow:[0,"fxGrow","grow"]},standalone:!1,features:[g.Vt3]}),le})(),P=(()=>{class le extends T{constructor(){super(...arguments),this.inputs=u}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},standalone:!1,features:[g.Vt3]}),le})();const C=new Map,a=new Map,x=new Map,Y=new Map;let ae=(()=>{class le extends o.r3{buildStyles(ze,Je){const gt={},[zt,Ye]=ze.split(" ");switch(zt){case"center":gt["justify-content"]="center";break;case"space-around":gt["justify-content"]="space-around";break;case"space-between":gt["justify-content"]="space-between";break;case"space-evenly":gt["justify-content"]="space-evenly";break;case"end":case"flex-end":gt["justify-content"]="flex-end";break;default:gt["justify-content"]="flex-start"}switch(Ye){case"start":case"flex-start":gt["align-items"]=gt["align-content"]="flex-start";break;case"center":gt["align-items"]=gt["align-content"]="center";break;case"end":case"flex-end":gt["align-items"]=gt["align-content"]="flex-end";break;case"space-between":gt["align-content"]="space-between",gt["align-items"]="stretch";break;case"space-around":gt["align-content"]="space-around",gt["align-items"]="stretch";break;case"baseline":gt["align-content"]="stretch",gt["align-items"]="baseline";break;default:gt["align-items"]=gt["align-content"]="stretch"}return(0,e.C5)(gt,{display:Je.inline?"inline-flex":"flex","flex-direction":Je.layout,"box-sizing":"border-box","max-width":"stretch"===Ye?(0,e.Vc)(Je.layout)?null:"100%":null,"max-height":"stretch"===Ye&&(0,e.Vc)(Je.layout)?"100%":null})}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275prov=i.jDH({token:le,factory:le.\u0275fac,providedIn:"root"}),le})();const me=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let et=(()=>{class le extends o.DJ{constructor(ze,Je,gt,zt){super(ze,gt,Je,zt),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,h.Q)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ze){const Je=this.layout||"row",gt=this.inline;"row"===Je&>?this.styleCache=tt:"row"!==Je||gt?"row-reverse"===Je&>?this.styleCache=Pe:"row-reverse"!==Je||gt?"column"===Je&>?this.styleCache=Fe:"column"!==Je||gt?"column-reverse"===Je&>?this.styleCache=Ue:"column-reverse"===Je&&!gt&&(this.styleCache=_n):this.styleCache=hn:this.styleCache=En:this.styleCache=Vt,this.addStyles(ze,{layout:Je,inline:gt})}onLayoutChange(ze){const Je=ze.value.split(" ");this.layout=Je[0],this.inline=ze.value.includes("inline"),e.Uo.find(gt=>gt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return le.\u0275fac=function(ze){return new(ze||le)(g.rXU(g.aKT),g.rXU(o.ZH),g.rXU(ae),g.rXU(o.qH))},le.\u0275dir=g.FsC({type:le,standalone:!1,features:[g.Vt3]}),le})(),tn=(()=>{class le extends et{constructor(){super(...arguments),this.inputs=me}}return le.\u0275fac=(()=>{let Ne;return function(Je){return(Ne||(Ne=g.xGo(le)))(Je||le)}})(),le.\u0275dir=g.FsC({type:le,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},standalone:!1,features:[g.Vt3]}),le})();const Vt=new Map,hn=new Map,En=new Map,_n=new Map,tt=new Map,Fe=new Map,Pe=new Map,Ue=new Map;let Ie=(()=>{class le{}return le.\u0275fac=function(ze){return new(ze||le)},le.\u0275mod=g.$C({type:le}),le.\u0275inj=i.G2t({imports:[o.Ui,D.jI]}),le})()},89417(ke,q,l){"use strict";l.d(q,{BC:()=>Mn,JD:()=>Ar,Q0:()=>cn,VZ:()=>qs,X1:()=>Es,YN:()=>Qr,YS:()=>ps,ZU:()=>$e,cV:()=>Jn,cb:()=>qt,cz:()=>ye,hs:()=>Bi,j4:()=>Wn,k0:()=>Ee,kq:()=>K,l_:()=>vt,me:()=>$,ok:()=>ks,qT:()=>ht,vO:()=>dt,vS:()=>lt,zX:()=>Js,ze:()=>Nr});var p=l(2615),D=l(73664),o=l(17705),e=l(59295),A=l(57303),h=l(21413),d=l(27468),w=l(22806),f=l(96354);let F=(()=>{class ct{_renderer;_elementRef;onChange=Ve=>{};onTouched=()=>{};constructor(Ve,Rt){this._renderer=Ve,this._elementRef=Rt}setProperty(Ve,Rt){this._renderer.setProperty(this._elementRef.nativeElement,Ve,Rt)}registerOnTouched(Ve){this.onTouched=Ve}registerOnChange(Ve){this.onChange=Ve}setDisabledState(Ve){this.setProperty("disabled",Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT))};static \u0275dir=D.FsC({type:ct})}return ct})(),M=(()=>{class ct extends F{static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,features:[D.Vt3]})}return ct})();const K=new p.nKC(""),ee={provide:K,useExisting:(0,p.Rfq)(()=>$),multi:!0},Q=new p.nKC("");let $=(()=>{class ct extends F{_compositionMode;_composing=!1;constructor(Ve,Rt,vn){super(Ve,Rt),this._compositionMode=vn,null==this._compositionMode&&(this._compositionMode=!function V(){const ct=(0,A.rb)()?(0,A.rb)().getUserAgent():"";return/android (\d+)/.test(ct.toLowerCase())}())}writeValue(Ve){this.setProperty("value",Ve??"")}_handleInput(Ve){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Ve)}_compositionStart(){this._composing=!0}_compositionEnd(Ve){this._composing=!1,this._compositionMode&&this.onChange(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(D.sFG),D.rXU(D.aKT),D.rXU(Q,8))};static \u0275dir=D.FsC({type:ct,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(Rt,vn){1&Rt&&D.bIt("input",function(da){return vn._handleInput(da.target.value)})("blur",function(){return vn.onTouched()})("compositionstart",function(){return vn._compositionStart()})("compositionend",function(da){return vn._compositionEnd(da.target.value)})},standalone:!1,features:[D.Jv_([ee]),D.Vt3]})}return ct})();function ie(ct){return null==ct||0===_e(ct)}function _e(ct){return null==ct?null:Array.isArray(ct)||"string"==typeof ct?ct.length:ct instanceof Set?ct.size:null}const ye=new p.nKC(""),se=new p.nKC(""),pe=/^(?=.{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])?)*$/;class Ee{static min(pt){return L(pt)}static max(pt){return t(pt)}static required(pt){return s(pt)}static requiredTrue(pt){return function m(ct){return!0===ct.value?null:{required:!0}}(pt)}static email(pt){return function u(ct){return ie(ct.value)||pe.test(ct.value)?null:{email:!0}}(pt)}static minLength(pt){return function _(ct){return pt=>{const Ve=pt.value?.length??_e(pt.value);return null===Ve||0===Ve?null:Ve{const Ve=pt.value?.length??_e(pt.value);return null!==Ve&&Ve>ct?{maxlength:{requiredLength:ct,actualLength:Ve}}:null}}(pt)}static pattern(pt){return function P(ct){if(!ct)return C;let pt,Ve;return"string"==typeof ct?(Ve="","^"!==ct.charAt(0)&&(Ve+="^"),Ve+=ct,"$"!==ct.charAt(ct.length-1)&&(Ve+="$"),pt=new RegExp(Ve)):(Ve=ct.toString(),pt=ct),Rt=>{if(ie(Rt.value))return null;const vn=Rt.value;return pt.test(vn)?null:{pattern:{requiredPattern:Ve,actualValue:vn}}}}(pt)}static nullValidator(pt){return null}static compose(pt){return re(pt)}static composeAsync(pt){return Oe(pt)}}function L(ct){return pt=>{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve{if(null==pt.value||null==ct)return null;const Ve=parseFloat(pt.value);return!isNaN(Ve)&&Ve>ct?{max:{max:ct,actual:pt.value}}:null}}function s(ct){return ie(ct.value)?{required:!0}:null}function C(ct){return null}function a(ct){return null!=ct}function x(ct){return(0,D.yLl)(ct)?(0,w.H)(ct):ct}function Y(ct){let pt={};return ct.forEach(Ve=>{pt=null!=Ve?{...pt,...Ve}:pt}),0===Object.keys(pt).length?null:pt}function R(ct,pt){return pt.map(Ve=>Ve(ct))}function fe(ct){return ct.map(pt=>function U(ct){return!ct.validate}(pt)?pt:Ve=>pt.validate(Ve))}function re(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){return Y(R(Ve,pt))}}function he(ct){return null!=ct?re(fe(ct)):null}function Oe(ct){if(!ct)return null;const pt=ct.filter(a);return 0==pt.length?null:function(Ve){const Rt=R(Ve,pt).map(x);return(0,d.p)(Rt).pipe((0,f.T)(Y))}}function ge(ct){return null!=ct?Oe(fe(ct)):null}function ce(ct,pt){return null===ct?[pt]:Array.isArray(ct)?[...ct,pt]:[ct,pt]}function Re(ct){return ct._rawValidators}function Me(ct){return ct._rawAsyncValidators}function ve(ct){return ct?Array.isArray(ct)?ct:[ct]:[]}function oe(ct,pt){return Array.isArray(ct)?ct.includes(pt):ct===pt}function Se(ct,pt){const Ve=ve(pt);return ve(ct).forEach(vn=>{oe(Ve,vn)||Ve.push(vn)}),Ve}function be(ct,pt){return ve(pt).filter(Ve=>!oe(ct,Ve))}class nt{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(pt){this._rawValidators=pt||[],this._composedValidatorFn=he(this._rawValidators)}_setAsyncValidators(pt){this._rawAsyncValidators=pt||[],this._composedAsyncValidatorFn=ge(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(pt){this._onDestroyCallbacks.push(pt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(pt=>pt()),this._onDestroyCallbacks=[]}reset(pt=void 0){this.control&&this.control.reset(pt)}hasError(pt,Ve){return!!this.control&&this.control.hasError(pt,Ve)}getError(pt,Ve){return this.control?this.control.getError(pt,Ve):null}}class $e extends nt{name;get formDirective(){return null}get path(){return null}}class dt extends nt{_parent=null;name=null;valueAccessor=null}class yt{_cd;constructor(pt){this._cd=pt}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}}let Mn=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(dt,2))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)},standalone:!1,features:[D.Vt3]})}return ct})(),qt=(()=>{class ct extends yt{constructor(Ve){super(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,10))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Rt,vn){2&Rt&&D.AVh("ng-untouched",vn.isUntouched)("ng-touched",vn.isTouched)("ng-pristine",vn.isPristine)("ng-dirty",vn.isDirty)("ng-valid",vn.isValid)("ng-invalid",vn.isInvalid)("ng-pending",vn.isPending)("ng-submitted",vn.isSubmitted)},standalone:!1,features:[D.Vt3]})}return ct})();const le="VALID",Ne="INVALID",ze="PENDING",Je="DISABLED";class gt{}class zt extends gt{value;source;constructor(pt,Ve){super(),this.value=pt,this.source=Ve}}class Ye extends gt{pristine;source;constructor(pt,Ve){super(),this.pristine=pt,this.source=Ve}}class st extends gt{touched;source;constructor(pt,Ve){super(),this.touched=pt,this.source=Ve}}class it extends gt{status;source;constructor(pt,Ve){super(),this.status=pt,this.source=Ve}}class He extends gt{source;constructor(pt){super(),this.source=pt}}class Wt extends gt{source;constructor(pt){super(),this.source=pt}}function we(ct){return(At(ct)?ct.validators:ct)||null}function Lt(ct,pt){return(At(pt)?pt.asyncValidators:ct)||null}function At(ct){return null!=ct&&!Array.isArray(ct)&&"object"==typeof ct}function fn(ct,pt,Ve){const Rt=ct.controls;if(!(pt?Object.keys(Rt):Rt).length)throw new p.buA(1e3,"");if(!Rt[Ve])throw new p.buA(1001,"")}function mt(ct,pt,Ve){ct._forEachChild((Rt,vn)=>{if(void 0===Ve[vn])throw new p.buA(1002,"")})}class It{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(pt,Ve){this._assignValidators(pt),this._assignAsyncValidators(Ve)}get validator(){return this._composedValidatorFn}set validator(pt){this._rawValidators=this._composedValidatorFn=pt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(pt){this._rawAsyncValidators=this._composedAsyncValidatorFn=pt}get parent(){return this._parent}get status(){return(0,e.O8)(this.statusReactive)}set status(pt){(0,e.O8)(()=>this.statusReactive.set(pt))}_status=(0,e.EW)(()=>this.statusReactive());statusReactive=(0,p.vPA)(void 0);get valid(){return this.status===le}get invalid(){return this.status===Ne}get pending(){return this.status==ze}get disabled(){return this.status===Je}get enabled(){return this.status!==Je}errors;get pristine(){return(0,e.O8)(this.pristineReactive)}set pristine(pt){(0,e.O8)(()=>this.pristineReactive.set(pt))}_pristine=(0,e.EW)(()=>this.pristineReactive());pristineReactive=(0,p.vPA)(!0);get dirty(){return!this.pristine}get touched(){return(0,e.O8)(this.touchedReactive)}set touched(pt){(0,e.O8)(()=>this.touchedReactive.set(pt))}_touched=(0,e.EW)(()=>this.touchedReactive());touchedReactive=(0,p.vPA)(!1);get untouched(){return!this.touched}_events=new h.B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(pt){this._assignValidators(pt)}setAsyncValidators(pt){this._assignAsyncValidators(pt)}addValidators(pt){this.setValidators(Se(pt,this._rawValidators))}addAsyncValidators(pt){this.setAsyncValidators(Se(pt,this._rawAsyncValidators))}removeValidators(pt){this.setValidators(be(pt,this._rawValidators))}removeAsyncValidators(pt){this.setAsyncValidators(be(pt,this._rawAsyncValidators))}hasValidator(pt){return oe(this._rawValidators,pt)}hasAsyncValidator(pt){return oe(this._rawAsyncValidators,pt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(pt={}){const Ve=!1===this.touched;this.touched=!0;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsTouched({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!0,Rt))}markAllAsDirty(pt={}){this.markAsDirty({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsDirty(pt))}markAllAsTouched(pt={}){this.markAsTouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:this}),this._forEachChild(Ve=>Ve.markAllAsTouched(pt))}markAsUntouched(pt={}){const Ve=!0===this.touched;this.touched=!1,this._pendingTouched=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsUntouched({onlySelf:!0,emitEvent:pt.emitEvent,sourceControl:Rt})}),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new st(!1,Rt))}markAsDirty(pt={}){const Ve=!0===this.pristine;this.pristine=!1;const Rt=pt.sourceControl??this;this._parent&&!pt.onlySelf&&this._parent.markAsDirty({...pt,sourceControl:Rt}),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!1,Rt))}markAsPristine(pt={}){const Ve=!1===this.pristine;this.pristine=!0,this._pendingDirty=!1;const Rt=pt.sourceControl??this;this._forEachChild(vn=>{vn.markAsPristine({onlySelf:!0,emitEvent:pt.emitEvent})}),this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Rt),Ve&&!1!==pt.emitEvent&&this._events.next(new Ye(!0,Rt))}markAsPending(pt={}){this.status=ze;const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new it(this.status,Ve)),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.markAsPending({...pt,sourceControl:Ve})}disable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=Je,this.errors=null,this._forEachChild(vn=>{vn.disable({...pt,onlySelf:!0})}),this._updateValue();const Rt=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Rt)),this._events.next(new it(this.status,Rt)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(vn=>vn(!0))}enable(pt={}){const Ve=this._parentMarkedDirty(pt.onlySelf);this.status=le,this._forEachChild(Rt=>{Rt.enable({...pt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent}),this._updateAncestors({...pt,skipPristineCheck:Ve},this),this._onDisabledChange.forEach(Rt=>Rt(!1))}_updateAncestors(pt,Ve){this._parent&&!pt.onlySelf&&(this._parent.updateValueAndValidity(pt),pt.skipPristineCheck||this._parent._updatePristine({},Ve),this._parent._updateTouched({},Ve))}setParent(pt){this._parent=pt}getRawValue(){return this.value}updateValueAndValidity(pt={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){const Rt=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===le||this.status===ze)&&this._runAsyncValidator(Rt,pt.emitEvent)}const Ve=pt.sourceControl??this;!1!==pt.emitEvent&&(this._events.next(new zt(this.value,Ve)),this._events.next(new it(this.status,Ve)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!pt.onlySelf&&this._parent.updateValueAndValidity({...pt,sourceControl:Ve})}_updateTreeValidity(pt={emitEvent:!0}){this._forEachChild(Ve=>Ve._updateTreeValidity(pt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:pt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Je:le}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(pt,Ve){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator={emitEvent:!1!==Ve,shouldHaveEmitted:!1!==pt};const Rt=x(this.asyncValidator(this));this._asyncValidationSubscription=Rt.subscribe(vn=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(vn,{emitEvent:Ve,shouldHaveEmitted:pt})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();const pt=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,pt}return!1}setErrors(pt,Ve={}){this.errors=pt,this._updateControlsErrors(!1!==Ve.emitEvent,this,Ve.shouldHaveEmitted)}get(pt){let Ve=pt;return null==Ve||(Array.isArray(Ve)||(Ve=Ve.split(".")),0===Ve.length)?null:Ve.reduce((Rt,vn)=>Rt&&Rt._find(vn),this)}getError(pt,Ve){const Rt=Ve?this.get(Ve):this;return Rt&&Rt.errors?Rt.errors[pt]:null}hasError(pt,Ve){return!!this.getError(pt,Ve)}get root(){let pt=this;for(;pt._parent;)pt=pt._parent;return pt}_updateControlsErrors(pt,Ve,Rt){this.status=this._calculateStatus(),pt&&this.statusChanges.emit(this.status),(pt||Rt)&&this._events.next(new it(this.status,Ve)),this._parent&&this._parent._updateControlsErrors(pt,Ve,Rt)}_initObservables(){this.valueChanges=new D.bkB,this.statusChanges=new D.bkB}_calculateStatus(){return this._allControlsDisabled()?Je:this.errors?Ne:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(Ne)?Ne:le}_anyControlsHaveStatus(pt){return this._anyControls(Ve=>Ve.status===pt)}_anyControlsDirty(){return this._anyControls(pt=>pt.dirty)}_anyControlsTouched(){return this._anyControls(pt=>pt.touched)}_updatePristine(pt,Ve){const Rt=!this._anyControlsDirty(),vn=this.pristine!==Rt;this.pristine=Rt,this._parent&&!pt.onlySelf&&this._parent._updatePristine(pt,Ve),vn&&this._events.next(new Ye(this.pristine,Ve))}_updateTouched(pt={},Ve){this.touched=this._anyControlsTouched(),this._events.next(new st(this.touched,Ve)),this._parent&&!pt.onlySelf&&this._parent._updateTouched(pt,Ve)}_onDisabledChange=[];_registerOnCollectionChange(pt){this._onCollectionChange=pt}_setUpdateStrategy(pt){At(pt)&&null!=pt.updateOn&&(this._updateOn=pt.updateOn)}_parentMarkedDirty(pt){return!pt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(pt){return null}_assignValidators(pt){this._rawValidators=Array.isArray(pt)?pt.slice():pt,this._composedValidatorFn=function We(ct){return Array.isArray(ct)?he(ct):ct||null}(this._rawValidators)}_assignAsyncValidators(pt){this._rawAsyncValidators=Array.isArray(pt)?pt.slice():pt,this._composedAsyncValidatorFn=function St(ct){return Array.isArray(ct)?ge(ct):ct||null}(this._rawAsyncValidators)}}class wn extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(pt,Ve){return this.controls[pt]?this.controls[pt]:(this.controls[pt]=Ve,Ve.setParent(this),Ve._registerOnCollectionChange(this._onCollectionChange),Ve)}addControl(pt,Ve,Rt={}){this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}removeControl(pt,Ve={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}setControl(pt,Ve,Rt={}){this.controls[pt]&&this.controls[pt]._registerOnCollectionChange(()=>{}),delete this.controls[pt],Ve&&this.registerControl(pt,Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}contains(pt){return this.controls.hasOwnProperty(pt)&&this.controls[pt].enabled}setValue(pt,Ve={}){mt(this,0,pt),Object.keys(pt).forEach(Rt=>{fn(this,!0,Rt),this.controls[Rt].setValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(Object.keys(pt).forEach(Rt=>{const vn=this.controls[Rt];vn&&vn.patchValue(pt[Rt],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt={},Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt?pt[vn]:null,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this._reduceChildren({},(pt,Ve,Rt)=>(pt[Rt]=Ve.getRawValue(),pt))}_syncPendingControls(){let pt=this._reduceChildren(!1,(Ve,Rt)=>!!Rt._syncPendingControls()||Ve);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){Object.keys(this.controls).forEach(Ve=>{const Rt=this.controls[Ve];Rt&&pt(Rt,Ve)})}_setUpControls(){this._forEachChild(pt=>{pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(pt){for(const[Ve,Rt]of Object.entries(this.controls))if(this.contains(Ve)&&pt(Rt))return!0;return!1}_reduceValue(){return this._reduceChildren({},(Ve,Rt,vn)=>((Rt.enabled||this.disabled)&&(Ve[vn]=Rt.value),Ve))}_reduceChildren(pt,Ve){let Rt=pt;return this._forEachChild((vn,Ni)=>{Rt=Ve(Rt,vn,Ni)}),Rt}_allControlsDisabled(){for(const pt of Object.keys(this.controls))if(this.controls[pt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(pt){return this.controls.hasOwnProperty(pt)?this.controls[pt]:null}}class kt extends wn{}const Ze=new p.nKC("",{providedIn:"root",factory:()=>Ge}),Ge="always";function Pt(ct,pt){return[...pt.path,ct]}function Yt(ct,pt,Ve=Ge){Ii(ct,pt),pt.valueAccessor.writeValue(ct.value),(ct.disabled||"always"===Ve)&&pt.valueAccessor.setDisabledState?.(ct.disabled),function Nt(ct,pt){pt.valueAccessor.registerOnChange(Ve=>{ct._pendingValue=Ve,ct._pendingChange=!0,ct._pendingDirty=!0,"change"===ct.updateOn&&en(ct,pt)})}(ct,pt),function Nn(ct,pt){const Ve=(Rt,vn)=>{pt.valueAccessor.writeValue(Rt),vn&&pt.viewToModelUpdate(Rt)};ct.registerOnChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnChange(Ve)})}(ct,pt),function nn(ct,pt){pt.valueAccessor.registerOnTouched(()=>{ct._pendingTouched=!0,"blur"===ct.updateOn&&ct._pendingChange&&en(ct,pt),"submit"!==ct.updateOn&&ct.markAsTouched()})}(ct,pt),function oi(ct,pt){if(pt.valueAccessor.setDisabledState){const Ve=Rt=>{pt.valueAccessor.setDisabledState(Rt)};ct.registerOnDisabledChange(Ve),pt._registerOnDestroy(()=>{ct._unregisterOnDisabledChange(Ve)})}}(ct,pt)}function bn(ct,pt,Ve=!0){const Rt=()=>{};pt.valueAccessor&&(pt.valueAccessor.registerOnChange(Rt),pt.valueAccessor.registerOnTouched(Rt)),Ei(ct,pt),ct&&(pt._invokeOnDestroyCallbacks(),ct._registerOnCollectionChange(()=>{}))}function Zn(ct,pt){ct.forEach(Ve=>{Ve.registerOnValidatorChange&&Ve.registerOnValidatorChange(pt)})}function Ii(ct,pt){const Ve=Re(ct);null!==pt.validator?ct.setValidators(ce(Ve,pt.validator)):"function"==typeof Ve&&ct.setValidators([Ve]);const Rt=Me(ct);null!==pt.asyncValidator?ct.setAsyncValidators(ce(Rt,pt.asyncValidator)):"function"==typeof Rt&&ct.setAsyncValidators([Rt]);const vn=()=>ct.updateValueAndValidity();Zn(pt._rawValidators,vn),Zn(pt._rawAsyncValidators,vn)}function Ei(ct,pt){let Ve=!1;if(null!==ct){if(null!==pt.validator){const vn=Re(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(da=>da!==pt.validator);Ni.length!==vn.length&&(Ve=!0,ct.setValidators(Ni))}}if(null!==pt.asyncValidator){const vn=Me(ct);if(Array.isArray(vn)&&vn.length>0){const Ni=vn.filter(da=>da!==pt.asyncValidator);Ni.length!==vn.length&&(Ve=!0,ct.setAsyncValidators(Ni))}}}const Rt=()=>{};return Zn(pt._rawValidators,Rt),Zn(pt._rawAsyncValidators,Rt),Ve}function en(ct,pt){ct._pendingDirty&&ct.markAsDirty(),ct.setValue(ct._pendingValue,{emitModelToViewChange:!1}),pt.viewToModelUpdate(ct._pendingValue),ct._pendingChange=!1}function jn(ct,pt){Ii(ct,pt)}function ci(ct,pt){if(!ct.hasOwnProperty("model"))return!1;const Ve=ct.model;return!!Ve.isFirstChange()||!Object.is(pt,Ve.currentValue)}function aa(ct,pt){ct._syncPendingControls(),pt.forEach(Ve=>{const Rt=Ve.control;"submit"===Rt.updateOn&&Rt._pendingChange&&(Ve.viewToModelUpdate(Rt._pendingValue),Rt._pendingChange=!1)})}function sa(ct,pt){if(!pt)return null;let Ve,Rt,vn;return Array.isArray(pt),pt.forEach(Ni=>{Ni.constructor===$?Ve=Ni:function Xn(ct){return Object.getPrototypeOf(ct.constructor)===M}(Ni)?Rt=Ni:vn=Ni}),vn||Rt||Ve||null}const dn={provide:$e,useExisting:(0,p.Rfq)(()=>Jn)},Ln=Promise.resolve();let Jn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this.submittedReactive)}_submitted=(0,e.EW)(()=>this.submittedReactive());submittedReactive=(0,p.vPA)(!1);_directives=new Set;form;ngSubmit=new D.bkB;options;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this.form=new wn({},he(Ve),ge(Rt))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Ve.control=Rt.registerControl(Ve.name,Ve.control),Yt(Ve.control,Ve,this.callSetDisabledState),Ve.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Ve)})}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name),this._directives.delete(Ve)})}addFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path),vn=new wn({});jn(vn,Ve),Rt.registerControl(Ve.name,vn),vn.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Ve){Ln.then(()=>{const Rt=this._findContainer(Ve.path);Rt&&Rt.removeControl(Ve.name)})}getFormGroup(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){Ln.then(()=>{this.form.get(Ve.path).setValue(Rt)})}setValue(Ve){this.control.setValue(Ve)}onSubmit(Ve){return this.submittedReactive.set(!0),aa(this.form,this._directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0){this.form.reset(Ve),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Ve){return Ve.pop(),Ve.length?this.form.get(Ve):this.form}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(da){return vn.onSubmit(da)})("reset",function(){return vn.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([dn]),D.Vt3]})}return ct})();function hi(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}function Gn(ct){return"object"==typeof ct&&null!==ct&&2===Object.keys(ct).length&&"value"in ct&&"disabled"in ct}const Qn=class extends It{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(pt=null,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this._applyFormState(pt),this._setUpdateStrategy(Ve),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),At(Ve)&&(Ve.nonNullable||Ve.initialValueIsDefault)&&(this.defaultValue=Gn(pt)?pt.value:pt)}setValue(pt,Ve={}){this.value=this._pendingValue=pt,this._onChange.length&&!1!==Ve.emitModelToViewChange&&this._onChange.forEach(Rt=>Rt(this.value,!1!==Ve.emitViewToModelChange)),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){this.setValue(pt,Ve)}reset(pt=this.defaultValue,Ve={}){this._applyFormState(pt),this.markAsPristine(Ve),this.markAsUntouched(Ve),this.setValue(this.value,Ve),this._pendingChange=!1,!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}_updateValue(){}_anyControls(pt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(pt){this._onChange.push(pt)}_unregisterOnChange(pt){hi(this._onChange,pt)}registerOnDisabledChange(pt){this._onDisabledChange.push(pt)}_unregisterOnDisabledChange(pt){hi(this._onDisabledChange,pt)}_forEachChild(pt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(pt){Gn(pt)?(this.value=this._pendingValue=pt.value,pt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=pt}},Bi=Qn,Xi={provide:dt,useExisting:(0,p.Rfq)(()=>lt)},Ma=Promise.resolve();let lt=(()=>{class ct extends dt{_changeDetectorRef;callSetDisabledState;control=new Qn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new D.bkB;constructor(Ve,Rt,vn,Ni,da,Er){super(),this._changeDetectorRef=da,this.callSetDisabledState=Er,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){if(this._checkForErrors(),!this._registered||"name"in Ve){if(this._registered&&(this._checkName(),this.formDirective)){const Rt=Ve.name.previousValue;this.formDirective.removeControl({name:Rt,path:this._getPath(Rt)})}this._setUpControl()}"isDisabled"in Ve&&this._updateDisabled(Ve),ci(Ve,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(Ve){this.viewModel=Ve,this.update.emit(Ve)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Yt(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()}_updateValue(Ve){Ma.then(()=>{this.control.setValue(Ve,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(Ve){const Rt=Ve.isDisabled.currentValue,vn=0!==Rt&&(0,o.L39)(Rt);Ma.then(()=>{vn&&!this.control.disabled?this.control.disable():!vn&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(Ve){return this._parent?Pt(Ve,this._parent):[Ve]}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU($e,9),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(o.gRc,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,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:[D.Jv_([Xi]),D.Vt3,D.OA$]})}return ct})(),ht=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return ct})();const Gt={provide:K,useExisting:(0,p.Rfq)(()=>cn),multi:!0};let cn=(()=>{class ct extends M{writeValue(Ve){this.setProperty("value",Ve??"")}registerOnChange(Ve){this.onChange=Rt=>{Ve(""==Rt?null:parseFloat(Rt))}}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("input",function(da){return vn.onChange(da.target.value)})("blur",function(){return vn.onTouched()})},standalone:!1,features:[D.Jv_([Gt]),D.Vt3]})}return ct})();const Ce=new p.nKC(""),xt={provide:dt,useExisting:(0,p.Rfq)(()=>vt)};let vt=(()=>{class ct extends dt{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,da){super(),this._ngModelWarningConfig=Ni,this.callSetDisabledState=da,this._setValidators(Ve),this._setAsyncValidators(Rt),this.valueAccessor=sa(0,vn)}ngOnChanges(Ve){if(this._isControlChanged(Ve)){const Rt=Ve.form.previousValue;Rt&&bn(Rt,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ci(Ve,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bn(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}_isControlChanged(Ve){return Ve.hasOwnProperty("form")}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([xt]),D.Vt3,D.OA$]})}return ct})();const rn={provide:$e,useExisting:(0,p.Rfq)(()=>Wn)};let Wn=(()=>{class ct extends $e{callSetDisabledState;get submitted(){return(0,e.O8)(this._submittedReactive)}set submitted(Ve){this._submittedReactive.set(Ve)}_submitted=(0,e.EW)(()=>this._submittedReactive());_submittedReactive=(0,p.vPA)(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new D.bkB;constructor(Ve,Rt,vn){super(),this.callSetDisabledState=vn,this._setValidators(Ve),this._setAsyncValidators(Rt)}ngOnChanges(Ve){Ve.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ei(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Ve){const Rt=this.form.get(Ve.path);return Yt(Rt,Ve,this.callSetDisabledState),Rt.updateValueAndValidity({emitEvent:!1}),this.directives.push(Ve),Rt}getControl(Ve){return this.form.get(Ve.path)}removeControl(Ve){bn(Ve.control||null,Ve,!1),function pa(ct,pt){const Ve=ct.indexOf(pt);Ve>-1&&ct.splice(Ve,1)}(this.directives,Ve)}addFormGroup(Ve){this._setUpFormContainer(Ve)}removeFormGroup(Ve){this._cleanUpFormContainer(Ve)}getFormGroup(Ve){return this.form.get(Ve.path)}addFormArray(Ve){this._setUpFormContainer(Ve)}removeFormArray(Ve){this._cleanUpFormContainer(Ve)}getFormArray(Ve){return this.form.get(Ve.path)}updateModel(Ve,Rt){this.form.get(Ve.path).setValue(Rt)}onSubmit(Ve){return this._submittedReactive.set(!0),aa(this.form,this.directives),this.ngSubmit.emit(Ve),this.form._events.next(new He(this.control)),"dialog"===Ve?.target?.method}onReset(){this.resetForm()}resetForm(Ve=void 0,Rt={}){this.form.reset(Ve,Rt),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(Ve=>{const Rt=Ve.control,vn=this.form.get(Ve.path);Rt!==vn&&(bn(Rt||null,Ve),(ct=>ct instanceof Qn)(vn)&&(Yt(vn,Ve,this.callSetDisabledState),Ve.control=vn))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Ve){const Rt=this.form.get(Ve.path);jn(Rt,Ve),Rt.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Ve){if(this.form){const Rt=this.form.get(Ve.path);Rt&&function Un(ct,pt){return Ei(ct,pt)}(Rt,Ve)&&Rt.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ii(this.form,this),this._oldForm&&Ei(this._oldForm,this)}static \u0275fac=function(Rt){return new(Rt||ct)(D.rXU(ye,10),D.rXU(se,10),D.rXU(Ze,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formGroup",""]],hostBindings:function(Rt,vn){1&Rt&&D.bIt("submit",function(da){return vn.onSubmit(da)})("reset",function(){return vn.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[D.Jv_([rn]),D.Vt3,D.OA$]})}return ct})();const Ga={provide:dt,useExisting:(0,p.Rfq)(()=>Ar)};let Ar=(()=>{class ct extends dt{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(Ve){}model;update=new D.bkB;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(Ve,Rt,vn,Ni,da){super(),this._ngModelWarningConfig=da,this._parent=Ve,this._setValidators(Rt),this._setAsyncValidators(vn),this.valueAccessor=sa(0,Ni)}ngOnChanges(Ve){this._added||this._setUpControl(),ci(Ve,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Ve){this.viewModel=Ve,this.update.emit(Ve)}get path(){return Pt(null==this.name?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(Rt){return new(Rt||ct)(D.rXU($e,13),D.rXU(ye,10),D.rXU(se,10),D.rXU(K,10),D.rXU(Ce,8))};static \u0275dir=D.FsC({type:ct,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[D.Jv_([Ga]),D.Vt3,D.OA$]})}return ct})();function Is(ct){return"number"==typeof ct?ct:parseFloat(ct)}let Wr=(()=>{class ct{_validator=C;_onChange;_enabled;ngOnChanges(Ve){if(this.inputName in Ve){const Rt=this.normalizeInput(Ve[this.inputName].currentValue);this._enabled=this.enabled(Rt),this._validator=this._enabled?this.createValidator(Rt):C,this._onChange&&this._onChange()}}validate(Ve){return this._validator(Ve)}registerOnValidatorChange(Ve){this._onChange=Ve}enabled(Ve){return null!=Ve}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275dir=D.FsC({type:ct,features:[D.OA$]})}return ct})();const Uo={provide:ye,useExisting:(0,p.Rfq)(()=>Js),multi:!0};let Js=(()=>{class ct extends Wr{max;inputName="max";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>t(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("max",vn._enabled?vn.max:null)},inputs:{max:"max"},standalone:!1,features:[D.Jv_([Uo]),D.Vt3]})}return ct})();const Jo={provide:ye,useExisting:(0,p.Rfq)(()=>qs),multi:!0};let qs=(()=>{class ct extends Wr{min;inputName="min";normalizeInput=Ve=>Is(Ve);createValidator=Ve=>L(Ve);static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("min",vn._enabled?vn.min:null)},inputs:{min:"min"},standalone:!1,features:[D.Jv_([Jo]),D.Vt3]})}return ct})();const xo={provide:ye,useExisting:(0,p.Rfq)(()=>ps),multi:!0};let ps=(()=>{class ct extends Wr{required;inputName="required";normalizeInput=o.L39;createValidator=Ve=>s;enabled(Ve){return Ve}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275dir=D.FsC({type:ct,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Rt,vn){2&Rt&&D.BMQ("required",vn._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[D.Jv_([xo]),D.Vt3]})}return ct})(),es=(()=>{class ct{static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({})}return ct})();class Yr extends It{constructor(pt,Ve,Rt){super(we(Ve),Lt(Rt,Ve)),this.controls=pt,this._initObservables(),this._setUpdateStrategy(Ve),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(pt){return this.controls[this._adjustIndex(pt)]}push(pt,Ve={}){Array.isArray(pt)?pt.forEach(Rt=>{this.controls.push(Rt),this._registerControl(Rt)}):(this.controls.push(pt),this._registerControl(pt)),this.updateValueAndValidity({emitEvent:Ve.emitEvent}),this._onCollectionChange()}insert(pt,Ve,Rt={}){this.controls.splice(pt,0,Ve),this._registerControl(Ve),this.updateValueAndValidity({emitEvent:Rt.emitEvent})}removeAt(pt,Ve={}){let Rt=this._adjustIndex(pt);Rt<0&&(Rt=0),this.controls[Rt]&&this.controls[Rt]._registerOnCollectionChange(()=>{}),this.controls.splice(Rt,1),this.updateValueAndValidity({emitEvent:Ve.emitEvent})}setControl(pt,Ve,Rt={}){let vn=this._adjustIndex(pt);vn<0&&(vn=0),this.controls[vn]&&this.controls[vn]._registerOnCollectionChange(()=>{}),this.controls.splice(vn,1),Ve&&(this.controls.splice(vn,0,Ve),this._registerControl(Ve)),this.updateValueAndValidity({emitEvent:Rt.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(pt,Ve={}){mt(this,0,pt),pt.forEach((Rt,vn)=>{fn(this,!1,vn),this.at(vn).setValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve)}patchValue(pt,Ve={}){null!=pt&&(pt.forEach((Rt,vn)=>{this.at(vn)&&this.at(vn).patchValue(Rt,{onlySelf:!0,emitEvent:Ve.emitEvent})}),this.updateValueAndValidity(Ve))}reset(pt=[],Ve={}){this._forEachChild((Rt,vn)=>{Rt.reset(pt[vn],{onlySelf:!0,emitEvent:Ve.emitEvent})}),this._updatePristine(Ve,this),this._updateTouched(Ve,this),this.updateValueAndValidity(Ve),!1!==Ve?.emitEvent&&this._events.next(new Wt(this))}getRawValue(){return this.controls.map(pt=>pt.getRawValue())}clear(pt={}){this.controls.length<1||(this._forEachChild(Ve=>Ve._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:pt.emitEvent}))}_adjustIndex(pt){return pt<0?pt+this.length:pt}_syncPendingControls(){let pt=this.controls.reduce((Ve,Rt)=>!!Rt._syncPendingControls()||Ve,!1);return pt&&this.updateValueAndValidity({onlySelf:!0}),pt}_forEachChild(pt){this.controls.forEach((Ve,Rt)=>{pt(Ve,Rt)})}_updateValue(){this.value=this.controls.filter(pt=>pt.enabled||this.disabled).map(pt=>pt.value)}_anyControls(pt){return this.controls.some(Ve=>Ve.enabled&&pt(Ve))}_setUpControls(){this._forEachChild(pt=>this._registerControl(pt))}_allControlsDisabled(){for(const pt of this.controls)if(pt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(pt){pt.setParent(this),pt._registerOnCollectionChange(this._onCollectionChange)}_find(pt){return this.at(pt)??null}}function Za(ct){return!!ct&&(void 0!==ct.asyncValidators||void 0!==ct.validators||void 0!==ct.updateOn)}let ks=(()=>{class ct{useNonNullable=!1;get nonNullable(){const Ve=new ct;return Ve.useNonNullable=!0,Ve}group(Ve,Rt=null){const vn=this._reduceControls(Ve);let Ni={};return Za(Rt)?Ni=Rt:null!==Rt&&(Ni.validators=Rt.validator,Ni.asyncValidators=Rt.asyncValidator),new wn(vn,Ni)}record(Ve,Rt=null){const vn=this._reduceControls(Ve);return new kt(vn,Rt)}control(Ve,Rt,vn){let Ni={};return this.useNonNullable?(Za(Rt)?Ni=Rt:(Ni.validators=Rt,Ni.asyncValidators=vn),new Qn(Ve,{...Ni,nonNullable:!0})):new Qn(Ve,Rt,vn)}array(Ve,Rt,vn){const Ni=Ve.map(da=>this._createControl(da));return new Yr(Ni,Rt,vn)}_reduceControls(Ve){const Rt={};return Object.keys(Ve).forEach(vn=>{Rt[vn]=this._createControl(Ve[vn])}),Rt}_createControl(Ve){return Ve instanceof Qn||Ve instanceof It?Ve:Array.isArray(Ve)?this.control(Ve[0],Ve.length>1?Ve[1]:null,Ve.length>2?Ve[2]:null):this.control(Ve)}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Nr=(()=>{class ct extends ks{group(Ve,Rt=null){return super.group(Ve,Rt)}control(Ve,Rt,vn){return super.control(Ve,Rt,vn)}array(Ve,Rt,vn){return super.array(Ve,Rt,vn)}static \u0275fac=(()=>{let Ve;return function(vn){return(Ve||(Ve=D.xGo(ct)))(vn||ct)}})();static \u0275prov=p.jDH({token:ct,factory:ct.\u0275fac,providedIn:"root"})}return ct})(),Qr=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})(),Es=(()=>{class ct{static withConfig(Ve){return{ngModule:ct,providers:[{provide:Ce,useValue:Ve.warnOnNgModelWithFormControl??"always"},{provide:Ze,useValue:Ve.callSetDisabledState??Ge}]}}static \u0275fac=function(Rt){return new(Rt||ct)};static \u0275mod=D.$C({type:ct});static \u0275inj=p.G2t({imports:[es]})}return ct})()},31804(ke,q,l){"use strict";l.d(q,{Rc:()=>d,_J:()=>h});var i=l(34330),g=l(2615),p=l(73664);const D=new g.nKC("MATERIAL_ANIMATIONS");let A=null;function h(){return(0,g.WQX)(D,{optional:!0})?.animationsDisabled||"NoopAnimations"===(0,g.WQX)(p.bc$,{optional:!0})?"di-disabled":(A??=(0,g.WQX)(i.D).matchMedia("(prefers-reduced-motion)").matches,A?"reduced-motion":"enabled")}function d(){return"enabled"!==h()}},22628(ke,q,l){"use strict";l.d(q,{$3:()=>$e,jL:()=>Xt,pN:()=>S});var i=l(23029),g=l(73664),p=l(2615),D=l(17705),o=l(5718),e=l(49338),A=l(89726),h=l(99090),d=l(18617),w=l(39842),f=l(44522),F=l(18359),M=l(21413),K=l(57786),j=l(7673),Z=l(59030),ee=l(71985),V=l(31804),Q=l(61577),$=l(67336),ie=l(10438),_e=l(34330),ye=l(99327),se=l(76939),pe=l(80408),Ee=l(89417),L=l(5964),t=l(96354),s=l(99172),m=l(25558),u=l(88141),_=l(43236),T=l(28793),P=l(96697),C=l(73557),a=l(73703),x=l(31397),Y=l(58750);function R(de,ae){return ae?me=>(0,T.x)(ae.pipe((0,P.s)(1),(0,C.w)()),me.pipe(R(de))):(0,x.Z)((me,Le)=>(0,Y.Tg)(de(me,Le)).pipe((0,P.s)(1),(0,a.u)(me)))}var U=l(1807);function fe(de,ae=_.E){const me=(0,U.O)(de,ae);return R(()=>me)}var re=l(69588),he=l(40146),Oe=l(22466);const Me=["panel"],ve=["*"];function oe(de,ae){if(1&de&&(g.rj2(0,"div",1,0),g.SdG(2),g.eux()),2&de){const me=ae.id,Le=g.XpG();g.HbH(Le._classList),g.AVh("mat-mdc-autocomplete-visible",Le.showPanel)("mat-mdc-autocomplete-hidden",!Le.showPanel)("mat-autocomplete-panel-animations-enabled",!Le._animationsDisabled)("mat-primary","primary"===Le._color)("mat-accent","accent"===Le._color)("mat-warn","warn"===Le._color),g.Avn("id",Le.id),g.BMQ("aria-label",Le.ariaLabel||null)("aria-labelledby",Le._getPanelAriaLabelledby(me))}}class Se{source;option;constructor(ae,me){this.source=ae,this.option=me}}const be=new p.nKC("mat-autocomplete-default-options",{providedIn:"root",factory:function nt(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}});let $e=(()=>{class de{_changeDetectorRef=(0,p.WQX)(D.gRc);_elementRef=(0,p.WQX)(g.aKT);_defaults=(0,p.WQX)(be);_animationsDisabled=(0,V.Rc)();_activeOptionChanges=F.yU.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(me){this._color=me,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new g.bkB;opened=new g.bkB;closed=new g.bkB;optionActivated=new g.bkB;set classList(me){this._classList=me,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(me){this._hideSingleSelectionIndicator=me,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(const me of this.options)me._changeDetectorRef.markForCheck()}id=(0,p.WQX)(A.g).getId("mat-autocomplete-");inertGroups;constructor(){const me=(0,p.WQX)(w.O);this.inertGroups=me?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new h.A(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(me=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[me]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(me){this.panel&&(this.panel.nativeElement.scrollTop=me)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(me){const Le=new Se(this,me);this.optionSelected.emit(Le)}_getPanelAriaLabelledby(me){return this.ariaLabel?null:this.ariaLabelledby?(me?me+" ":"")+this.ariaLabelledby:me}_skipPredicate(){return!1}static \u0275fac=function(Le){return new(Le||de)};static \u0275cmp=g.VBU({type:de,selectors:[["mat-autocomplete"]],contentQueries:function(Le,et,tn){if(1&Le&&(g.wni(tn,i.wT,5),g.wni(tn,i.QC,5)),2&Le){let Vt;g.mGM(Vt=g.lsd())&&(et.options=Vt),g.mGM(Vt=g.lsd())&&(et.optionGroups=Vt)}},viewQuery:function(Le,et){if(1&Le&&(g.GBs(g.C4Q,7),g.GBs(Me,5)),2&Le){let tn;g.mGM(tn=g.lsd())&&(et.template=tn.first),g.mGM(tn=g.lsd())&&(et.panel=tn.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",D.L39],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",D.L39],requireSelection:[2,"requireSelection","requireSelection",D.L39],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",D.L39],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[g.Jv_([{provide:i.is,useExisting:de}])],ngContentSelectors:ve,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(Le,et){1&Le&&(g.NAR(),g.PeT(0,oe,3,17,"ng-template"))},styles:["div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0})}return de})();const yt={provide:Ee.kq,useExisting:(0,p.Rfq)(()=>S),multi:!0},rt=new p.nKC("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{const de=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(de)}}),qt={provide:rt,deps:[],useFactory:function Mn(de){const ae=(0,p.WQX)(p.zZn);return()=>(0,e.RH)(ae)}};let S=(()=>{class de{_environmentInjector=(0,p.WQX)(p.uvJ);_element=(0,p.WQX)(g.aKT);_injector=(0,p.WQX)(p.zZn);_viewContainerRef=(0,p.WQX)(g.c1b);_zone=(0,p.WQX)(g.SKi);_changeDetectorRef=(0,p.WQX)(D.gRc);_dir=(0,p.WQX)(Q.dS,{optional:!0});_formField=(0,p.WQX)(re.xb,{optional:!0,host:!0});_viewportRuler=(0,p.WQX)(o.Xj);_scrollStrategy=(0,p.WQX)(rt);_renderer=(0,p.WQX)(g.sFG);_animationsDisabled=(0,V.Rc)();_defaults=(0,p.WQX)(be,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new M.B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=F.yU.EMPTY;_breakpointObserver=(0,p.WQX)(_e.Q);_handsetLandscapeSubscription=F.yU.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new M.B;_overlayPanelClass=(0,pe.F)(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(me){me.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,K.h)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,L.p)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,L.p)(()=>this._overlayAttached)):(0,j.of)()).pipe((0,t.T)(me=>me instanceof i.MI?me:null))}optionSelections=(0,Z.v)(()=>{const me=this.autocomplete?this.autocomplete.options:null;return me?me.changes.pipe((0,s.Z)(me),(0,m.n)(()=>(0,K.h)(...me.map(Le=>Le.onSelectionChange)))):this._initialized.pipe((0,m.n)(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new ee.c(me=>{const Le=tn=>{const Vt=(0,f.Fb)(tn),hn=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,En=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&Vt!==this._element.nativeElement&&!this._hasFocus()&&(!hn||!hn.contains(Vt))&&(!En||!En.contains(Vt))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(Vt)&&me.next(tn)},et=[this._renderer.listen("document","click",Le),this._renderer.listen("document","auxclick",Le),this._renderer.listen("document","touchend",Le)];return()=>{et.forEach(tn=>tn())}})}writeValue(me){Promise.resolve(null).then(()=>this._assignOptionValue(me))}registerOnChange(me){this._onChange=me}registerOnTouched(me){this._onTouched=me}setDisabledState(me){this._element.nativeElement.disabled=me}_handleKeydown(me){const Le=me,et=Le.keyCode,tn=(0,$.rp)(Le);if(et===ie._f&&!tn&&Le.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&et===ie.Fm&&this.panelOpen&&!tn)this.activeOption._selectViaInteraction(),this._resetActiveItem(),Le.preventDefault();else if(this.autocomplete){const Vt=this.autocomplete._keyManager.activeItem,hn=et===ie.i7||et===ie.n6;et===ie.wn||hn&&!tn&&this.panelOpen?this.autocomplete._keyManager.onKeydown(Le):hn&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(hn||this.autocomplete._keyManager.activeItem!==Vt)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(me){let Le=me.target,et=Le.value;if("number"===Le.type&&(et=""==et?null:parseFloat(et)),this._previousValue!==et){if(this._previousValue=et,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(et),et){if(this.panelOpen&&!this.autocomplete.requireSelection){const tn=this.autocomplete.options?.find(Vt=>Vt.selected);tn&&et!==this._getDisplayValue(tn.value)&&tn.deselect(!1)}}else this._clearPreviousSelectedOption(null,!1);if(this._canOpen()&&this._hasFocus()){const tn=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(tn)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return(0,f.vc)()===this._element.nativeElement}_floatLabel(me=!1){this._formField&&"auto"===this._formField.floatLabel&&(me?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const me=new ee.c(et=>{(0,g.mal)(()=>{et.next()},{injector:this._environmentInjector})}),Le=this.autocomplete.options?.changes.pipe((0,u.M)(()=>this._positionStrategy.reapplyLastPosition()),fe(0))??(0,j.of)();return(0,K.h)(me,Le).pipe((0,m.n)(()=>this._zone.run(()=>{const et=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),et!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),(0,P.s)(1)).subscribe(et=>this._setValueAndClose(et))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(me){const Le=this.autocomplete;return Le&&Le.displayWith?Le.displayWith(me):me}_assignOptionValue(me){const Le=this._getDisplayValue(me);null==me&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(Le??"")}_updateNativeInputValue(me){this._formField?this._formField._control.value=me:this._element.nativeElement.value=me,this._previousValue=me}_setValueAndClose(me){const Le=this.autocomplete,et=me?me.source:this._pendingAutoselectedOption;et?(this._clearPreviousSelectedOption(et),this._assignOptionValue(et.value),this._onChange(et.value),Le._emitSelectEvent(et),this._element.nativeElement.focus()):Le.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(me,Le){this.autocomplete?.options?.forEach(et=>{et!==me&&et.selected&&et.deselect(Le)})}_openPanelInternal(me=this._element.nativeElement.value){this._attachOverlay(me),this._floatLabel(),this._trackedModal&&(0,d.px)(this._trackedModal,"aria-owns",this.autocomplete.id)}_attachOverlay(me){let Le=this._overlayRef;Le?(this._positionStrategy.setOrigin(this._getConnectedElement()),Le.updateSize({width:this._getPanelWidth()})):(this._portal=new se.VA(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),Le=(0,e.Y$)(this._injector,this._getOverlayConfig()),this._overlayRef=Le,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Le&&Le.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(ye.Rp.HandsetLandscape).subscribe(tn=>{tn.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),Le&&!Le.hasAttached()&&(Le.attach(this._portal),this._valueOnAttach=me,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());const et=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&et!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=me=>{(me.keyCode===ie._f&&!(0,$.rp)(me)||me.keyCode===ie.i7&&(0,$.rp)(me,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),me.stopPropagation(),me.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const me=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=me.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=me.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new e.rR({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){const me=(0,e.$M)(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(me),this._positionStrategy=me,me}_setStrategyPositions(me){const Le=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],et=this._aboveClass,tn=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:et},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:et}];let Vt;Vt="above"===this.position?tn:"below"===this.position?Le:[...Le,...tn],me.withPositions(Vt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const me=this.autocomplete;if(me.autoActiveFirstOption){let Le=-1;for(let et=0;et .cdk-overlay-container [aria-modal="true"]');if(!me)return;const Le=this.autocomplete.id;this._trackedModal&&(0,d.Ae)(this._trackedModal,"aria-owns",Le),(0,d.px)(me,"aria-owns",Le),this._trackedModal=me}_clearFromModal(){this._trackedModal&&((0,d.Ae)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static \u0275fac=function(Le){return new(Le||de)};static \u0275dir=g.FsC({type:de,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(Le,et){1&Le&&g.bIt("focusin",function(){return et._handleFocus()})("blur",function(){return et._onTouched()})("input",function(Vt){return et._handleInput(Vt)})("keydown",function(Vt){return et._handleKeydown(Vt)})("click",function(){return et._handleClick()}),2&Le&&g.BMQ("autocomplete",et.autocompleteAttribute)("role",et.autocompleteDisabled?null:"combobox")("aria-autocomplete",et.autocompleteDisabled?null:"list")("aria-activedescendant",et.panelOpen&&et.activeOption?et.activeOption.id:null)("aria-expanded",et.autocompleteDisabled?null:et.panelOpen.toString())("aria-controls",et.autocompleteDisabled||!et.panelOpen||null==et.autocomplete?null:et.autocomplete.id)("aria-haspopup",et.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",D.L39]},exportAs:["matAutocompleteTrigger"],features:[g.Jv_([yt]),g.OA$]})}return de})(),Xt=(()=>{class de{static \u0275fac=function(Le){return new(Le||de)};static \u0275mod=g.$C({type:de});static \u0275inj=p.G2t({providers:[qt],imports:[e.z_,he.S,Oe.y,o.Gj,he.S,Oe.y]})}return de})()},1975(ke,q,l){"use strict";l.d(q,{Y:()=>K,k:()=>M});var i=l(18617),g=l(17094),p=l(89726),D=l(2615),o=l(73664),e=l(17705),A=l(49046),h=l(88968),d=l(31804),w=l(22466);const f="mat-badge-content";let F=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275cmp=o.VBU({type:j,selectors:[["ng-component"]],decls:0,vars:0,template:function(V,Q){},styles:[".mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}\n"],encapsulation:2,changeDetection:0})}return j})(),M=(()=>{class j{_ngZone=(0,D.WQX)(o.SKi);_elementRef=(0,D.WQX)(o.aKT);_ariaDescriber=(0,D.WQX)(i.vr);_renderer=(0,D.WQX)(o.sFG);_animationsDisabled=(0,d.Rc)();_idGenerator=(0,D.WQX)(p.g);get color(){return this._color}set color(ee){this._setColor(ee),this._color=ee}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(ee){this._updateRenderedContent(ee)}_content;get description(){return this._description}set description(ee){this._updateDescription(ee)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=(0,D.WQX)(g.Z7);_document=(0,D.WQX)(D.qQL);constructor(){const ee=(0,D.WQX)(h.l);ee.load(F),ee.load(A.Y)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const ee=this._renderer.createElement("span"),V="mat-badge-active";return ee.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),ee.setAttribute("aria-hidden","true"),ee.classList.add(f),this._animationsDisabled&&ee.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(ee),"function"!=typeof requestAnimationFrame||this._animationsDisabled?ee.classList.add(V):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{ee.classList.add(V)})}),ee}_updateRenderedContent(ee){const V=`${ee??""}`.trim();this._isInitialized&&V&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=V),this._content=V}_updateDescription(ee){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!ee||this._isHostInteractive())&&this._removeInlineDescription(),this._description=ee,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,ee):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(ee){const V=this._elementRef.nativeElement.classList;V.remove(`mat-badge-${this._color}`),ee&&V.add(`mat-badge-${ee}`)}_clearExistingBadges(){const ee=this._elementRef.nativeElement.querySelectorAll(`:scope > .${f}`);for(const V of Array.from(ee))V!==this._badgeElement&&V.remove()}static \u0275fac=function(V){return new(V||j)};static \u0275dir=o.FsC({type:j,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(V,Q){2&V&&o.AVh("mat-badge-overlap",Q.overlap)("mat-badge-above",Q.isAbove())("mat-badge-below",!Q.isAbove())("mat-badge-before",!Q.isAfter())("mat-badge-after",Q.isAfter())("mat-badge-small","small"===Q.size)("mat-badge-medium","medium"===Q.size)("mat-badge-large","large"===Q.size)("mat-badge-hidden",Q.hidden||!Q.content)("mat-badge-disabled",Q.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",e.L39],disabled:[2,"matBadgeDisabled","disabled",e.L39],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",e.L39]}})}return j})(),K=(()=>{class j{static \u0275fac=function(V){return new(V||j)};static \u0275mod=o.$C({type:j});static \u0275inj=D.G2t({imports:[g.Pd,w.y,w.y]})}return j})()},88834(ke,q,l){"use strict";l.d(q,{$0:()=>se,$z:()=>ee,Hl:()=>L});var o=l(22598),e=l(2615),A=l(73664),h=l(26881),d=l(22466);const w=["matButton",""],f=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],F=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],K=["mat-mini-fab",""],Z=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]);let ee=(()=>{class t extends o.iM{get appearance(){return this._appearance}set appearance(m){this.setAppearance(m||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();const m=function V(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}(this._elementRef.nativeElement);m&&this.setAppearance(m)}setAppearance(m){if(m===this._appearance)return;const u=this._elementRef.nativeElement.classList,_=this._appearance?Z.get(this._appearance):null,T=Z.get(m);_&&u.remove(..._),u.add(...T),this._appearance=m}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:w,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return t})();const $=new e.nKC("mat-mdc-fab-default-options",{providedIn:"root",factory:ie});function ie(){return{color:"accent"}}const _e=ie();let se=(()=>{class t extends o.iM{_options=(0,e.WQX)($,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||_e,this.color=this._options.color||_e.color}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=A.VBU({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[A.Vt3],attrs:K,ngContentSelectors:F,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(u,_){1&u&&(A.NAR(f),A.Hgh(0,"span",0),A.SdG(1),A.rj2(2,"span",1),A.SdG(3,1),A.eux(),A.SdG(4,2),A.Hgh(5,"span",2)(6,"span",3)),2&u&&A.AVh("mdc-button__ripple",!_._isFab)("mdc-fab__ripple",_._isFab)},styles:['.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}\n'],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=A.$C({type:t});static \u0275inj=e.G2t({imports:[d.y,h.p,d.y]})}return t})()},25596(ke,q,l){"use strict";l.d(q,{Hu:()=>pe,Lc:()=>K,MM:()=>Z,RN:()=>w,dh:()=>f,m2:()=>M});var i=l(2615),g=l(73664),p=l(22466);const D=["*"],A=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],h=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"],d=new i.nKC("MAT_CARD_CONFIG");let w=(()=>{class Ee{appearance;constructor(){const t=(0,i.WQX)(d,{optional:!0});this.appearance=t?.appearance||"raised"}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(s,m){2&s&&g.AVh("mat-mdc-card-outlined","outlined"===m.appearance)("mdc-card--outlined","outlined"===m.appearance)("mat-mdc-card-filled","filled"===m.appearance)("mdc-card--filled","filled"===m.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:D,decls:1,vars:0,template:function(s,m){1&s&&(g.NAR(),g.SdG(0))},styles:['.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}\n'],encapsulation:2,changeDetection:0})}return Ee})(),f=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return Ee})(),M=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return Ee})(),K=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=g.FsC({type:Ee,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return Ee})(),Z=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=g.VBU({type:Ee,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:h,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(s,m){1&s&&(g.NAR(A),g.SdG(0),g.rj2(1,"div",0),g.SdG(2,1),g.eux(),g.SdG(3,2))},encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=g.$C({type:Ee});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return Ee})()},82765(ke,q,l){"use strict";l.d(q,{So:()=>$,g7:()=>ie});var i=l(89726),g=l(2615),p=l(73664),D=l(17705),o=l(89417),e=l(88968),A=l(53155),h=l(31804),d=l(32046),w=l(12496),f=l(22466);const F=["input"],M=["label"],K=["*"],j=new g.nKC("mat-checkbox-default-options",{providedIn:"root",factory:Z});function Z(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var ee=function(_e){return _e[_e.Init=0]="Init",_e[_e.Checked=1]="Checked",_e[_e.Unchecked=2]="Unchecked",_e[_e.Indeterminate=3]="Indeterminate",_e}(ee||{});class V{source;checked}const Q=Z();let $=(()=>{class _e{_elementRef=(0,g.WQX)(p.aKT);_changeDetectorRef=(0,g.WQX)(D.gRc);_ngZone=(0,g.WQX)(p.SKi);_animationsDisabled=(0,h.Rc)();_options=(0,g.WQX)(j,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(se){const pe=new V;return pe.source=this,pe.checked=se,pe}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new p.bkB;indeterminateChange=new p.bkB;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){(0,g.WQX)(e.l).load(d.A);const se=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this._options=this._options||Q,this.color=this._options.color||Q.color,this.tabIndex=null==se?0:parseInt(se)||0,this.id=this._uniqueId=(0,g.WQX)(i.g).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(se){se.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(se){se!=this.checked&&(this._checked=se,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(se){se!==this.disabled&&(this._disabled=se,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(se){const pe=se!=this._indeterminate();this._indeterminate.set(se),pe&&(this._transitionCheckState(se?ee.Indeterminate:this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(se)),this._syncIndeterminate(se)}_indeterminate=(0,g.vPA)(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(se){this.checked=!!se}registerOnChange(se){this._controlValueAccessorChangeFn=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}validate(se){return this.required&&!0!==se.value?{required:!0}:null}registerOnValidatorChange(se){this._validatorChangeFn=se}_transitionCheckState(se){let pe=this._currentCheckState,Ee=this._getAnimationTargetElement();if(pe!==se&&Ee&&(this._currentAnimationClass&&Ee.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(pe,se),this._currentCheckState=se,this._currentAnimationClass.length>0)){Ee.classList.add(this._currentAnimationClass);const L=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{Ee.classList.remove(L)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const se=this._options?.clickAction;this.disabled||"noop"===se?(this.disabled&&this.disabledInteractive||!this.disabled&&"noop"===se)&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==se&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent())}_onInteractionEvent(se){se.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(se,pe){if(this._animationsDisabled)return"";switch(se){case ee.Init:if(pe===ee.Checked)return this._animationClasses.uncheckedToChecked;if(pe==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return pe===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return pe===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return pe===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(se){const pe=this._inputElement;pe&&(pe.nativeElement.indeterminate=se)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(se){se.target&&this._labelElement.nativeElement.contains(se.target)&&se.stopPropagation()}static \u0275fac=function(pe){return new(pe||_e)};static \u0275cmp=p.VBU({type:_e,selectors:[["mat-checkbox"]],viewQuery:function(pe,Ee){if(1&pe&&(p.GBs(F,5),p.GBs(M,5)),2&pe){let L;p.mGM(L=p.lsd())&&(Ee._inputElement=L.first),p.mGM(L=p.lsd())&&(Ee._labelElement=L.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(pe,Ee){2&pe&&(p.Avn("id",Ee.id),p.BMQ("tabindex",null)("aria-label",null)("aria-labelledby",null),p.HbH(Ee.color?"mat-"+Ee.color:"mat-accent"),p.AVh("_mat-animation-noopable",Ee._animationsDisabled)("mdc-checkbox--disabled",Ee.disabled)("mat-mdc-checkbox-disabled",Ee.disabled)("mat-mdc-checkbox-checked",Ee.checked)("mat-mdc-checkbox-disabled-interactive",Ee.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",D.L39],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",D.L39],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",se=>null==se?void 0:(0,D.Udg)(se)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",D.L39],checked:[2,"checked","checked",D.L39],disabled:[2,"disabled","disabled",D.L39],indeterminate:[2,"indeterminate","indeterminate",D.L39]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[p.Jv_([{provide:o.kq,useExisting:(0,g.Rfq)(()=>_e),multi:!0},{provide:o.cz,useExisting:_e,multi:!0}]),p.OA$],ngContentSelectors:K,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(pe,Ee){if(1&pe){const L=p.RV6();p.NAR(),p.j41(0,"div",3),p.bIt("click",function(s){return g.eBV(L),g.Njj(Ee._preventBubblingFromLabel(s))}),p.j41(1,"div",4,0)(3,"div",5),p.bIt("click",function(){return g.eBV(L),g.Njj(Ee._onTouchTargetClick())}),p.k0s(),p.j41(4,"input",6,1),p.bIt("blur",function(){return g.eBV(L),g.Njj(Ee._onBlur())})("click",function(){return g.eBV(L),g.Njj(Ee._onInputClick())})("change",function(s){return g.eBV(L),g.Njj(Ee._onInteractionEvent(s))}),p.k0s(),p.nrm(6,"div",7),p.j41(7,"div",8),g.qSk(),p.j41(8,"svg",9),p.nrm(9,"path",10),p.k0s(),g.joV(),p.nrm(10,"div",11),p.k0s(),p.nrm(11,"div",12),p.k0s(),p.j41(12,"label",13,2),p.SdG(14),p.k0s()()}if(2&pe){const L=p.sdS(2);p.Y8G("labelPosition",Ee.labelPosition),p.R7$(4),p.AVh("mdc-checkbox--selected",Ee.checked),p.Y8G("checked",Ee.checked)("indeterminate",Ee.indeterminate)("disabled",Ee.disabled&&!Ee.disabledInteractive)("id",Ee.inputId)("required",Ee.required)("tabIndex",Ee.disabled&&!Ee.disabledInteractive?-1:Ee.tabIndex),p.BMQ("aria-label",Ee.ariaLabel||null)("aria-labelledby",Ee.ariaLabelledby)("aria-describedby",Ee.ariaDescribedby)("aria-checked",Ee.indeterminate?"mixed":null)("aria-controls",Ee.ariaControls)("aria-disabled",!(!Ee.disabled||!Ee.disabledInteractive)||null)("aria-expanded",Ee.ariaExpanded)("aria-owns",Ee.ariaOwns)("name",Ee.name)("value",Ee.value),p.R7$(7),p.Y8G("matRippleTrigger",L)("matRippleDisabled",Ee.disableRipple||Ee.disabled)("matRippleCentered",!0),p.R7$(),p.Y8G("for",Ee.inputId)}},dependencies:[w.r6,A.t],styles:['.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _e})(),ie=(()=>{class _e{static \u0275fac=function(pe){return new(pe||_e)};static \u0275mod=p.$C({type:_e});static \u0275inj=g.G2t({imports:[$,f.y,f.y]})}return _e})()},36471(ke,q,l){"use strict";l.d(q,{Jl:()=>Et,YN:()=>hn});var i=l(76838),g=l(89726),o=(l(64123),l(67336),l(10438)),e=l(49046),A=l(88968),h=l(2615),d=l(73664),w=l(17705),f=l(21413),F=l(57786),M=l(32046),K=l(12496),j=l(31804),Z=l(11048),_e=(l(99172),l(25558),l(56977),l(61577),l(89417),l(2709)),pe=(l(39336),l(69588),l(22466)),Ee=l(26881);const L=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],t=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function s(En,_n){1&En&&(d.j41(0,"span",3),d.SdG(1,1),d.k0s())}function m(En,_n){1&En&&(d.j41(0,"span",6),d.SdG(1,2),d.k0s())}const ce=new h.nKC("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[o.Fm]})}),Re=new h.nKC("MatChipAvatar"),Me=new h.nKC("MatChipTrailingIcon"),ve=new h.nKC("MatChipEdit"),oe=new h.nKC("MatChipRemove"),Se=new h.nKC("MatChip");let be=(()=>{class En{_elementRef=(0,h.WQX)(d.aKT);_parentChip=(0,h.WQX)(Se);isInteractive=!0;_isPrimary=!0;_isLeading=!1;get disabled(){return this._disabled||this._parentChip?.disabled||!1}set disabled(tt){this._disabled=tt}_disabled=!1;tabIndex=-1;_allowFocusWhenDisabled=!1;_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(){(0,h.WQX)(A.l).load(M.A),"BUTTON"===this._elementRef.nativeElement.nodeName&&this._elementRef.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(tt){!this.disabled&&this.isInteractive&&this._isPrimary&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(tt){(tt.keyCode===o.Fm||tt.keyCode===o.t6)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(tt.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275dir=d.FsC({type:En,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:11,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("click",function(Qe){return Pe._handleClick(Qe)})("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.BMQ("tabindex",Pe._getTabindex())("disabled",Pe._getDisabledAttribute())("aria-disabled",Pe.disabled),d.AVh("mdc-evolution-chip__action--primary",Pe._isPrimary)("mdc-evolution-chip__action--presentational",!Pe.isInteractive)("mdc-evolution-chip__action--secondary",!Pe._isPrimary)("mdc-evolution-chip__action--trailing",!Pe._isPrimary&&!Pe._isLeading))},inputs:{isInteractive:"isInteractive",disabled:[2,"disabled","disabled",w.L39],tabIndex:[2,"tabIndex","tabIndex",tt=>null==tt?-1:(0,w.Udg)(tt)],_allowFocusWhenDisabled:"_allowFocusWhenDisabled"}})}return En})(),Et=(()=>{class En{_changeDetectorRef=(0,h.WQX)(w.gRc);_elementRef=(0,h.WQX)(d.aKT);_tagName=(0,h.WQX)(w.cCO);_ngZone=(0,h.WQX)(d.SKi);_focusMonitor=(0,h.WQX)(i.FN);_globalRippleOptions=(0,h.WQX)(K.$E,{optional:!0});_document=(0,h.WQX)(h.qQL);_onFocus=new f.B;_onBlur=new f.B;_isBasicChip;role=null;_hasFocusInternal=!1;_pendingFocus;_actionChanges;_animationsDisabled=(0,j.Rc)();_allLeadingIcons;_allTrailingIcons;_allEditIcons;_allRemoveIcons;_hasFocus(){return this._hasFocusInternal}id=(0,h.WQX)(g.g).getId("mat-mdc-chip-");ariaLabel=null;ariaDescription=null;_chipListDisabled=!1;_hadFocusOnRemove=!1;_textElement;get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(tt){this._value=tt}_value;color;removable=!0;highlighted=!1;disableRipple=!1;get disabled(){return this._disabled||this._chipListDisabled}set disabled(tt){this._disabled=tt}_disabled=!1;removed=new d.bkB;destroyed=new d.bkB;basicChipAttrName="mat-basic-chip";leadingIcon;editIcon;trailingIcon;removeIcon;primaryAction;_rippleLoader=(0,h.WQX)(Z.E);_injector=(0,h.WQX)(h.zZn);constructor(){const tt=(0,h.WQX)(A.l);tt.load(M.A),tt.load(e.Y),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){this._isBasicChip=this._elementRef.nativeElement.hasAttribute(this.basicChipAttrName)||this._tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,F.h)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allEditIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&(this._hadFocusOnRemove=this._hasFocus(),this.removed.emit({chip:this}))}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!this._hasInteractiveActions()||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(tt){(tt.keyCode===o.G_&&!tt.repeat||tt.keyCode===o.SJ)&&(tt.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(tt){return this._getActions().find(Fe=>{const Pe=Fe._elementRef.nativeElement;return Pe===tt||Pe.contains(tt)})}_getActions(){const tt=[];return this.editIcon&&tt.push(this.editIcon),this.primaryAction&&tt.push(this.primaryAction),this.removeIcon&&tt.push(this.removeIcon),this.trailingIcon&&tt.push(this.trailingIcon),tt}_handlePrimaryActionInteraction(){}_hasInteractiveActions(){return this._getActions().some(tt=>tt.isInteractive)}_edit(tt){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(tt=>{const Fe=null!==tt;Fe!==this._hasFocusInternal&&(this._hasFocusInternal=Fe,Fe?this._onFocus.next({chip:this}):(this._changeDetectorRef.markForCheck(),setTimeout(()=>this._ngZone.run(()=>this._onBlur.next({chip:this})))))})}static \u0275fac=function(Fe){return new(Fe||En)};static \u0275cmp=d.VBU({type:En,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(Fe,Pe,Ue){if(1&Fe&&(d.wni(Ue,Re,5),d.wni(Ue,ve,5),d.wni(Ue,Me,5),d.wni(Ue,oe,5),d.wni(Ue,Re,5),d.wni(Ue,Me,5),d.wni(Ue,ve,5),d.wni(Ue,oe,5)),2&Fe){let Qe;d.mGM(Qe=d.lsd())&&(Pe.leadingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.editIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.trailingIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe.removeIcon=Qe.first),d.mGM(Qe=d.lsd())&&(Pe._allLeadingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allTrailingIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allEditIcons=Qe),d.mGM(Qe=d.lsd())&&(Pe._allRemoveIcons=Qe)}},viewQuery:function(Fe,Pe){if(1&Fe&&d.GBs(be,5),2&Fe){let Ue;d.mGM(Ue=d.lsd())&&(Pe.primaryAction=Ue.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:31,hostBindings:function(Fe,Pe){1&Fe&&d.bIt("keydown",function(Qe){return Pe._handleKeydown(Qe)}),2&Fe&&(d.Avn("id",Pe.id),d.BMQ("role",Pe.role)("aria-label",Pe.ariaLabel),d.HbH("mat-"+(Pe.color||"primary")),d.AVh("mdc-evolution-chip",!Pe._isBasicChip)("mdc-evolution-chip--disabled",Pe.disabled)("mdc-evolution-chip--with-trailing-action",Pe._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",Pe.leadingIcon)("mdc-evolution-chip--with-primary-icon",Pe.leadingIcon)("mdc-evolution-chip--with-avatar",Pe.leadingIcon)("mat-mdc-chip-with-avatar",Pe.leadingIcon)("mat-mdc-chip-highlighted",Pe.highlighted)("mat-mdc-chip-disabled",Pe.disabled)("mat-mdc-basic-chip",Pe._isBasicChip)("mat-mdc-standard-chip",!Pe._isBasicChip)("mat-mdc-chip-with-trailing-icon",Pe._hasTrailingIcon())("_mat-animation-noopable",Pe._animationsDisabled))},inputs:{role:"role",id:"id",ariaLabel:[0,"aria-label","ariaLabel"],ariaDescription:[0,"aria-description","ariaDescription"],value:"value",color:"color",removable:[2,"removable","removable",w.L39],highlighted:[2,"highlighted","highlighted",w.L39],disableRipple:[2,"disableRipple","disableRipple",w.L39],disabled:[2,"disabled","disabled",w.L39]},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[d.Jv_([{provide:Se,useExisting:En}])],ngContentSelectors:t,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-focus-indicator"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(Fe,Pe){1&Fe&&(d.NAR(L),d.nrm(0,"span",0),d.j41(1,"span",1)(2,"span",2),d.nVh(3,s,2,0,"span",3),d.j41(4,"span",4),d.SdG(5),d.nrm(6,"span",5),d.k0s()()(),d.nVh(7,m,2,0,"span",6)),2&Fe&&(d.R7$(2),d.Y8G("isInteractive",!1),d.R7$(),d.vxM(Pe.leadingIcon?3:-1),d.R7$(4),d.vxM(Pe._hasTrailingIcon()?7:-1))},dependencies:[be],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{flex-basis:100%;overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}@media(forced-colors: active){.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{forced-color-adjust:none}}.mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit;overflow-x:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-outline-width, 1px);border-radius:var(--mat-chip-container-shape-radius, 8px);box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1;border-style:solid}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-outline-color, var(--mat-sys-outline))}.mdc-evolution-chip__action--primary:not(.mdc-evolution-chip__action--presentational):not(.mdc-ripple-upgraded):focus::before{border-color:var(--mat-chip-focus-outline-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--primary::before{border-color:var(--mat-chip-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__action--primary::before{border-width:var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-leading-action.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}.mdc-evolution-chip__action--secondary{position:relative;overflow:visible}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__action--secondary{color:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--secondary{padding-left:8px;padding-right:8px}.mdc-evolution-chip__text-label{-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mat-chip-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-chip-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-chip-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-chip-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-chip-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-label-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label,.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mat-chip-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{width:var(--mat-chip-with-avatar-avatar-size, 24px);height:var(--mat-chip-with-avatar-avatar-size, 24px);font-size:var(--mat-chip-with-avatar-avatar-size, 24px)}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-leading-action .mdc-evolution-chip__graphic{padding-left:0}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%;height:20px;width:20px}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@media(forced-colors: active){.mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove{opacity:calc(var(--mat-chip-trailing-action-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing.mat-mdc-chip-remove:focus{opacity:calc(var(--mat-chip-trailing-action-focus-opacity, 1)*var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38))}.mat-mdc-standard-chip{border-radius:var(--mat-chip-container-shape-radius, 8px);height:var(--mat-chip-container-height, 32px)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-container-color, transparent)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mat-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected:not(.mdc-evolution-chip--disabled){background-color:var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mat-chip-flat-disabled-selected-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}@media(forced-colors: active){.mat-mdc-standard-chip{outline:solid 1px}}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mat-chip-with-avatar-avatar-shape-radius, 24px);width:var(--mat-chip-with-icon-icon-size, 18px);height:var(--mat-chip-with-icon-icon-size, 18px);font-size:var(--mat-chip-with-icon-icon-size, 18px)}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mat-chip-with-icon-disabled-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-highlighted{--mat-chip-with-icon-icon-color: var(--mat-chip-with-icon-selected-icon-color, var(--mat-sys-on-secondary-container));--mat-chip-elevated-container-color: var(--mat-chip-elevated-selected-container-color, var(--mat-sys-secondary-container));--mat-chip-label-text-color: var(--mat-chip-selected-label-text-color, var(--mat-sys-on-secondary-container));--mat-chip-outline-width: var(--mat-chip-flat-selected-outline-width, 0)}.mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-selected .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-hover-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-focus-overlay .mat-mdc-chip-selected:hover,.mat-mdc-chip-highlighted:hover .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-hover-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-focus-state-layer-color, var(--mat-sys-on-surface-variant));opacity:var(--mat-chip-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected.cdk-focused .mat-mdc-chip-focus-overlay,.mat-mdc-chip-highlighted.cdk-focused .mat-mdc-chip-focus-overlay{background:var(--mat-chip-selected-focus-state-layer-color, var(--mat-sys-on-secondary-container));opacity:var(--mat-chip-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-evolution-chip--disabled:not(.mdc-evolution-chip--selected) .mat-mdc-chip-avatar{opacity:var(--mat-chip-with-avatar-disabled-avatar-opacity, 0.38)}.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{opacity:var(--mat-chip-with-trailing-icon-disabled-trailing-icon-opacity, 0.38)}.mdc-evolution-chip--disabled.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{opacity:var(--mat-chip-with-icon-disabled-icon-opacity, 0.38)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:var(--mat-chip-disabled-container-opacity, 1)}.mat-mdc-standard-chip.mdc-evolution-chip--selected .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-trailing-icon-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing,.mat-mdc-standard-chip.mat-mdc-chip-highlighted.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mat-chip-selected-disabled-trailing-icon-color, var(--mat-sys-on-surface))}.mat-mdc-chip-edit,.mat-mdc-chip-remove{opacity:var(--mat-chip-trailing-action-opacity, 1)}.mat-mdc-chip-edit:focus,.mat-mdc-chip-remove:focus{opacity:var(--mat-chip-trailing-action-focus-opacity, 1)}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{background-color:var(--mat-chip-trailing-action-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-chip-edit:hover::after,.mat-mdc-chip-remove:hover::after{opacity:var(--mat-chip-trailing-action-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-chip-edit:focus::after,.mat-mdc-chip-remove:focus::after{opacity:var(--mat-chip-trailing-action-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-chip-selected .mat-mdc-chip-remove::after,.mat-mdc-chip-highlighted .mat-mdc-chip-remove::after{background-color:var(--mat-chip-selected-trailing-action-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mat-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-edit::before,.mat-mdc-chip-remove::before{margin:calc(var(--mat-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-edit::after,.mat-mdc-chip-remove::after{content:"";display:block;opacity:0;position:absolute;top:-3px;bottom:-3px;left:5px;right:5px;border-radius:50%;box-sizing:border-box;padding:12px;margin:-12px;background-clip:content-box}.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{width:18px;height:18px;font-size:18px;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}@media(forced-colors: active){.mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}}.mat-mdc-chip-action:focus .mat-focus-indicator::before{content:""}.mdc-evolution-chip__icon,.mat-mdc-chip-edit .mat-icon,.mat-mdc-chip-remove .mat-icon{min-height:fit-content}img.mdc-evolution-chip__icon{min-height:0}\n'],encapsulation:2,changeDetection:0})}return En})(),hn=(()=>{class En{static \u0275fac=function(Fe){return new(Fe||En)};static \u0275mod=d.$C({type:En});static \u0275inj=h.G2t({providers:[_e.e,{provide:ce,useValue:{separatorKeyCodes:[o.Fm]}}],imports:[pe.y,Ee.p,pe.y]})}return En})()},22466(ke,q,l){"use strict";l.d(q,{y:()=>e});var i=l(17094),g=l(28203),p=l(2615),D=l(73664);let e=(()=>{class A{constructor(){(0,p.WQX)(i.Q_)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(w){return new(w||A)};static \u0275mod=D.$C({type:A});static \u0275inj=p.G2t({imports:[g.jI,g.jI]})}return A})()},3(ke,q,l){"use strict";l.d(q,{WX:()=>K,xW:()=>w});var p=l(2615),D=l(73664),o=l(19945);const A=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,h=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function d(Z,ee){const V=Array(Z);for(let Q=0;Q{class Z extends o.MJ{useUtcForDisplay=!1;_matDateLocale=(0,p.WQX)(o.Ju,{optional:!0});constructor(){super();const V=(0,p.WQX)(o.Ju,{optional:!0});void 0!==V&&(this._matDateLocale=V),super.setLocale(this._matDateLocale)}getYear(V){return V.getFullYear()}getMonth(V){return V.getMonth()}getDate(V){return V.getDate()}getDayOfWeek(V){return V.getDay()}getMonthNames(V){const Q=new Intl.DateTimeFormat(this.locale,{month:V,timeZone:"utc"});return d(12,$=>this._format(Q,new Date(2017,$,1)))}getDateNames(){const V=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return d(31,Q=>this._format(V,new Date(2017,0,Q+1)))}getDayOfWeekNames(V){const Q=new Intl.DateTimeFormat(this.locale,{weekday:V,timeZone:"utc"});return d(7,$=>this._format(Q,new Date(2017,0,$+1)))}getYearName(V){const Q=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(Q,V)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const V=new Intl.Locale(this.locale),Q=(V.getWeekInfo?.()||V.weekInfo)?.firstDay??0;return 7===Q?0:Q}return 0}getNumDaysInMonth(V){return this.getDate(this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+1,0))}clone(V){return new Date(V.getTime())}createDate(V,Q,$){let ie=this._createDateWithOverflow(V,Q,$);return ie.getMonth(),ie}today(){return new Date}parse(V,Q){return"number"==typeof V?new Date(V):V?new Date(Date.parse(V)):null}format(V,Q){if(!this.isValid(V))throw Error("NativeDateAdapter: Cannot format invalid date.");const $=new Intl.DateTimeFormat(this.locale,{...Q,timeZone:"utc"});return this._format($,V)}addCalendarYears(V,Q){return this.addCalendarMonths(V,12*Q)}addCalendarMonths(V,Q){let $=this._createDateWithOverflow(this.getYear(V),this.getMonth(V)+Q,this.getDate(V));return this.getMonth($)!=((this.getMonth(V)+Q)%12+12)%12&&($=this._createDateWithOverflow(this.getYear($),this.getMonth($),0)),$}addCalendarDays(V,Q){return this._createDateWithOverflow(this.getYear(V),this.getMonth(V),this.getDate(V)+Q)}toIso8601(V){return[V.getUTCFullYear(),this._2digit(V.getUTCMonth()+1),this._2digit(V.getUTCDate())].join("-")}deserialize(V){if("string"==typeof V){if(!V)return null;if(A.test(V)){let Q=new Date(V);if(this.isValid(Q))return Q}}return super.deserialize(V)}isDateInstance(V){return V instanceof Date}isValid(V){return!isNaN(V.getTime())}invalid(){return new Date(NaN)}setTime(V,Q,$,ie){const _e=this.clone(V);return _e.setHours(Q,$,ie,0),_e}getHours(V){return V.getHours()}getMinutes(V){return V.getMinutes()}getSeconds(V){return V.getSeconds()}parseTime(V,Q){if("string"!=typeof V)return V instanceof Date?new Date(V.getTime()):null;const $=V.trim();if(0===$.length)return null;let ie=this._parseTimeString($);if(null===ie){const _e=$.replace(/[^0-9:(AM|PM)]/gi,"").trim();_e.length>0&&(ie=this._parseTimeString(_e))}return ie||this.invalid()}addSeconds(V,Q){return new Date(V.getTime()+1e3*Q)}_createDateWithOverflow(V,Q,$){const ie=new Date;return ie.setFullYear(V,Q,$),ie.setHours(0,0,0,0),ie}_2digit(V){return("00"+V).slice(-2)}_format(V,Q){const $=new Date;return $.setUTCFullYear(Q.getFullYear(),Q.getMonth(),Q.getDate()),$.setUTCHours(Q.getHours(),Q.getMinutes(),Q.getSeconds(),Q.getMilliseconds()),V.format($)}_parseTimeString(V){const Q=V.toUpperCase().match(h);if(Q){let $=parseInt(Q[1]);const ie=parseInt(Q[2]);let _e=null==Q[3]?void 0:parseInt(Q[3]);const ye=Q[4];if(12===$?$="AM"===ye?0:$:"PM"===ye&&($+=12),f($,0,23)&&f(ie,0,59)&&(null==_e||f(_e,0,59)))return this.setTime(this.today(),$,ie,_e||0)}return null}static \u0275fac=function(Q){return new(Q||Z)};static \u0275prov=p.jDH({token:Z,factory:Z.\u0275fac})}return Z})();function f(Z,ee,V){return!isNaN(Z)&&Z>=ee&&Z<=V}const F={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};let K=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=D.$C({type:Z});static \u0275inj=p.G2t({providers:[j()]})}return Z})();function j(Z=F){return[{provide:o.MJ,useClass:w},{provide:o.de,useValue:Z}]}},19945(ke,q,l){"use strict";l.d(q,{Ju:()=>D,MJ:()=>A,de:()=>h});var i=l(2615),g=l(73664),p=l(21413);const D=new i.nKC("MAT_DATE_LOCALE",{providedIn:"root",factory:function o(){return(0,i.WQX)(g.xe9)}}),e="Method not implemented";class A{locale;_localeChanges=new p.B;localeChanges=this._localeChanges;setTime(w,f,F,M){throw new Error(e)}getHours(w){throw new Error(e)}getMinutes(w){throw new Error(e)}getSeconds(w){throw new Error(e)}parseTime(w,f){throw new Error(e)}addSeconds(w,f){throw new Error(e)}getValidDateOrNull(w){return this.isDateInstance(w)&&this.isValid(w)?w:null}deserialize(w){return null==w||this.isDateInstance(w)&&this.isValid(w)?w:this.invalid()}setLocale(w){this.locale=w,this._localeChanges.next()}compareDate(w,f){return this.getYear(w)-this.getYear(f)||this.getMonth(w)-this.getMonth(f)||this.getDate(w)-this.getDate(f)}compareTime(w,f){return this.getHours(w)-this.getHours(f)||this.getMinutes(w)-this.getMinutes(f)||this.getSeconds(w)-this.getSeconds(f)}sameDate(w,f){if(w&&f){let F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareDate(w,f):F==M}return w==f}sameTime(w,f){if(w&&f){const F=this.isValid(w),M=this.isValid(f);return F&&M?!this.compareTime(w,f):F==M}return w==f}clampDate(w,f,F){return f&&this.compareDate(w,f)<0?f:F&&this.compareDate(w,F)>0?F:w}}const h=new i.nKC("mat-date-formats")},25084(ke,q,l){"use strict";l.d(q,{Vh:()=>Jn,X6:()=>Oi,bU:()=>Sn,bZ:()=>Sa});var _=l(2615),T=l(73664),P=l(17705),C=l(21413),a=l(18359),x=l(57786),Y=l(7673),R=l(19945),U=l(76838),fe=l(17094),re=l(89726),he=l(61577),Oe=l(14085),ge=l(67336),ce=l(10438),Re=l(49338),Me=l(39842),ve=l(44522),oe=l(76939),Se=l(5964),be=l(99172),nt=l(96697),$e=l(72200),dt=l(49046),yt=l(88968),Et=l(32046),rt=l(88834),Mn=l(22598),qt=l(40455),S=l(31804),Xt=l(89417),de=l(68010),ae=l(69588),me=l(5718),Le=l(22466);const et=["mat-calendar-body",""];function tn(mn,li){return this._trackRow(li)}const Vt=(mn,li)=>li.id;function hn(mn,li){if(1&mn&&(T.j41(0,"tr",0)(1,"td",3),T.EFF(2),T.k0s()()),2&mn){const Ce=T.XpG();T.R7$(),T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce.numCols),T.R7$(),T.SpI(" ",Ce.label," ")}}function En(mn,li){if(1&mn&&(T.j41(0,"td",3),T.EFF(1),T.k0s()),2&mn){const Ce=T.XpG(2);T.xc7("padding-top",Ce._cellPadding)("padding-bottom",Ce._cellPadding),T.BMQ("colspan",Ce._firstRowOffset),T.R7$(),T.SpI(" ",Ce._firstRowOffset>=Ce.labelMinRequiredCells?Ce.label:""," ")}}function _n(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"td",6)(1,"button",7),T.bIt("click",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._cellClicked(rn,vt))})("focus",function(vt){const rn=_.eBV(Ce).$implicit,Wn=T.XpG(2);return _.Njj(Wn._emitActiveDateChange(rn,vt))}),T.j41(2,"span",8),T.EFF(3),T.k0s(),T.nrm(4,"span",9),T.k0s()()}if(2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG().$index,rn=T.XpG();T.xc7("width",rn._cellWidth)("padding-top",rn._cellPadding)("padding-bottom",rn._cellPadding),T.BMQ("data-mat-row",vt)("data-mat-col",xt),T.R7$(),T.AVh("mat-calendar-body-disabled",!Ce.enabled)("mat-calendar-body-active",rn._isActiveCell(vt,xt))("mat-calendar-body-range-start",rn._isRangeStart(Ce.compareValue))("mat-calendar-body-range-end",rn._isRangeEnd(Ce.compareValue))("mat-calendar-body-in-range",rn._isInRange(Ce.compareValue))("mat-calendar-body-comparison-bridge-start",rn._isComparisonBridgeStart(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-bridge-end",rn._isComparisonBridgeEnd(Ce.compareValue,vt,xt))("mat-calendar-body-comparison-start",rn._isComparisonStart(Ce.compareValue))("mat-calendar-body-comparison-end",rn._isComparisonEnd(Ce.compareValue))("mat-calendar-body-in-comparison-range",rn._isInComparisonRange(Ce.compareValue))("mat-calendar-body-preview-start",rn._isPreviewStart(Ce.compareValue))("mat-calendar-body-preview-end",rn._isPreviewEnd(Ce.compareValue))("mat-calendar-body-in-preview",rn._isInPreview(Ce.compareValue)),T.Y8G("ngClass",Ce.cssClasses)("tabindex",rn._isActiveCell(vt,xt)?0:-1),T.BMQ("aria-label",Ce.ariaLabel)("aria-disabled",!Ce.enabled||null)("aria-pressed",rn._isSelected(Ce.compareValue))("aria-current",rn.todayValue===Ce.compareValue?"date":null)("aria-describedby",rn._getDescribedby(Ce.compareValue)),T.R7$(),T.AVh("mat-calendar-body-selected",rn._isSelected(Ce.compareValue))("mat-calendar-body-comparison-identical",rn._isComparisonIdentical(Ce.compareValue))("mat-calendar-body-today",rn.todayValue===Ce.compareValue),T.R7$(),T.SpI(" ",Ce.displayValue," ")}}function tt(mn,li){if(1&mn&&(T.j41(0,"tr",1),T.nVh(1,En,2,6,"td",4),T.Z7z(2,_n,5,48,"td",5,Vt),T.k0s()),2&mn){const Ce=li.$implicit,xt=li.$index,vt=T.XpG();T.R7$(),T.vxM(0===xt&&vt._firstRowOffset?1:-1),T.R7$(),T.Dyx(Ce)}}function Fe(mn,li){if(1&mn&&(T.j41(0,"th",2)(1,"span",6),T.EFF(2),T.k0s(),T.j41(3,"span",3),T.EFF(4),T.k0s()()),2&mn){const Ce=li.$implicit;T.R7$(2),T.JRh(Ce.long),T.R7$(2),T.JRh(Ce.narrow)}}const Pe=["*"];function Ue(mn,li){}function Qe(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-month-view",4),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("_userSelection",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dateSelected(vt))})("dragStarted",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragStarted(vt))})("dragEnded",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._dragEnded(vt))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)("comparisonStart",Ce.comparisonStart)("comparisonEnd",Ce.comparisonEnd)("startDateAccessibleName",Ce.startDateAccessibleName)("endDateAccessibleName",Ce.endDateAccessibleName)("activeDrag",Ce._activeDrag)}}function Ie(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-year-view",5),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("monthSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._monthSelectedInYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"month"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function le(mn,li){if(1&mn){const Ce=T.RV6();T.j41(0,"mat-multi-year-view",6),T.mxI("activeDateChange",function(vt){_.eBV(Ce);const rn=T.XpG();return T.DH7(rn.activeDate,vt)||(rn.activeDate=vt),_.Njj(vt)}),T.bIt("yearSelected",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._yearSelectedInMultiYearView(vt))})("selectedChange",function(vt){_.eBV(Ce);const rn=T.XpG();return _.Njj(rn._goToDateInView(vt,"year"))}),T.k0s()}if(2&mn){const Ce=T.XpG();T.R50("activeDate",Ce.activeDate),T.Y8G("selected",Ce.selected)("dateFilter",Ce.dateFilter)("maxDate",Ce.maxDate)("minDate",Ce.minDate)("dateClass",Ce.dateClass)}}function Ne(mn,li){}const ze=["button"],Je=[[["","matDatepickerToggleIcon",""]]],gt=["[matDatepickerToggleIcon]"];function zt(mn,li){1&mn&&(_.qSk(),T.j41(0,"svg",2),T.nrm(1,"path",3),T.k0s())}let Wt=(()=>{class mn{changes=new C.B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(Ce,xt){return`${Ce} \u2013 ${xt}`}formatYearRangeLabel(Ce,xt){return`${Ce} to ${xt}`}static \u0275fac=function(xt){return new(xt||mn)};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac,providedIn:"root"})}return mn})(),we=0;class We{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=we++;constructor(li,Ce,xt,vt,rn={},Wn=li,Yi){this.value=li,this.displayValue=Ce,this.ariaLabel=xt,this.enabled=vt,this.cssClasses=rn,this.compareValue=Wn,this.rawValue=Yi}}const Lt={passive:!1,capture:!0},St={passive:!0,capture:!0},At={passive:!0};let fn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_ngZone=(0,_.WQX)(T.SKi);_platform=(0,_.WQX)(Me.O);_intl=(0,_.WQX)(Wt);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new T.bkB;previewChange=new T.bkB;activeDateChange=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=(0,_.WQX)(_.zZn);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=Ce=>Ce;constructor(){const Ce=(0,_.WQX)(T.sFG),xt=(0,_.WQX)(re.g);this._startDateLabelId=xt.getId("mat-calendar-body-start-"),this._endDateLabelId=xt.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=xt.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=xt.getId("mat-calendar-body-comparison-end-"),(0,_.WQX)(yt.l).load(Et.A),this._ngZone.runOutsideAngular(()=>{const vt=this._elementRef.nativeElement,rn=[Ce.listen(vt,"touchmove",this._touchmoveHandler,Lt),Ce.listen(vt,"mouseenter",this._enterHandler,St),Ce.listen(vt,"focus",this._enterHandler,St),Ce.listen(vt,"mouseleave",this._leaveHandler,St),Ce.listen(vt,"blur",this._leaveHandler,St),Ce.listen(vt,"mousedown",this._mousedownHandler,At),Ce.listen(vt,"touchstart",this._mousedownHandler,At)];this._platform.isBrowser&&rn.push(Ce.listen("window","mouseup",this._mouseupHandler),Ce.listen("window","touchend",this._touchendHandler)),this._eventCleanups=rn})}_cellClicked(Ce,xt){this._didDragSinceMouseDown||Ce.enabled&&this.selectedValueChange.emit({value:Ce.value,event:xt})}_emitActiveDateChange(Ce,xt){Ce.enabled&&this.activeDateChange.emit({value:Ce.value,event:xt})}_isSelected(Ce){return this.startValue===Ce||this.endValue===Ce}ngOnChanges(Ce){const xt=Ce.numCols,{rows:vt,numCols:rn}=this;(Ce.rows||xt)&&(this._firstRowOffset=vt&&vt.length&&vt[0].length?rn-vt[0].length:0),(Ce.cellAspectRatio||xt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/rn+"%"),(xt||!this._cellWidth)&&(this._cellWidth=100/rn+"%")}ngOnDestroy(){this._eventCleanups.forEach(Ce=>Ce())}_isActiveCell(Ce,xt){let vt=Ce*this.numCols+xt;return Ce&&(vt-=this._firstRowOffset),vt==this.activeCell}_focusActiveCell(Ce=!0){(0,T.mal)(()=>{setTimeout(()=>{const xt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");xt&&(Ce||(this._skipNextFocus=!0),xt.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(Ce){return wn(Ce,this.startValue,this.endValue)}_isRangeEnd(Ce){return In(Ce,this.startValue,this.endValue)}_isInRange(Ce){return ei(Ce,this.startValue,this.endValue,this.isRange)}_isComparisonStart(Ce){return wn(Ce,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(Ce,xt,vt){if(!this._isComparisonStart(Ce)||this._isRangeStart(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt-1];if(!rn){const Wn=this.rows[xt-1];rn=Wn&&Wn[Wn.length-1]}return rn&&!this._isRangeEnd(rn.compareValue)}_isComparisonBridgeEnd(Ce,xt,vt){if(!this._isComparisonEnd(Ce)||this._isRangeEnd(Ce)||!this._isInRange(Ce))return!1;let rn=this.rows[xt][vt+1];if(!rn){const Wn=this.rows[xt+1];rn=Wn&&Wn[0]}return rn&&!this._isRangeStart(rn.compareValue)}_isComparisonEnd(Ce){return In(Ce,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(Ce){return ei(Ce,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(Ce){return this.comparisonStart===this.comparisonEnd&&Ce===this.comparisonStart}_isPreviewStart(Ce){return wn(Ce,this.previewStart,this.previewEnd)}_isPreviewEnd(Ce){return In(Ce,this.previewStart,this.previewEnd)}_isInPreview(Ce){return ei(Ce,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(Ce){if(!this.isRange)return null;if(this.startValue===Ce&&this.endValue===Ce)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===Ce)return this._startDateLabelId;if(this.endValue===Ce)return this._endDateLabelId;if(null!==this.comparisonStart&&null!==this.comparisonEnd){if(Ce===this.comparisonStart&&Ce===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(Ce===this.comparisonStart)return this._comparisonStartDateLabelId;if(Ce===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=Ce=>{if(this._skipNextFocus&&"focus"===Ce.type)this._skipNextFocus=!1;else if(Ce.target&&this.isRange){const xt=this._getCellFromElement(Ce.target);xt&&this._ngZone.run(()=>this.previewChange.emit({value:xt.enabled?xt:null,event:Ce}))}};_touchmoveHandler=Ce=>{if(!this.isRange)return;const xt=Li(Ce),vt=xt?this._getCellFromElement(xt):null;xt!==Ce.target&&(this._didDragSinceMouseDown=!0),It(Ce.target)&&Ce.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:vt?.enabled?vt:null,event:Ce}))};_leaveHandler=Ce=>{null!==this.previewEnd&&this.isRange&&("blur"!==Ce.type&&(this._didDragSinceMouseDown=!0),Ce.target&&this._getCellFromElement(Ce.target)&&(!Ce.relatedTarget||!this._getCellFromElement(Ce.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:Ce})))};_mousedownHandler=Ce=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const xt=Ce.target&&this._getCellFromElement(Ce.target);!xt||!this._isInRange(xt.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:xt.rawValue,event:Ce})})};_mouseupHandler=Ce=>{if(!this.isRange)return;const xt=It(Ce.target);xt?xt.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const vt=this._getCellFromElement(xt);this.dragEnded.emit({value:vt?.rawValue??null,event:Ce})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:Ce})})};_touchendHandler=Ce=>{const xt=Li(Ce);xt&&this._mouseupHandler({target:xt})};_getCellFromElement(Ce){const xt=It(Ce);if(xt){const vt=xt.getAttribute("data-mat-row"),rn=xt.getAttribute("data-mat-col");if(vt&&rn)return this.rows[parseInt(vt)]?.[parseInt(rn)]||null}return null}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[T.OA$],attrs:et,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(xt,vt){1&xt&&(T.nVh(0,hn,3,6,"tr",0),T.Z7z(1,tt,4,1,"tr",1,tn,!0),T.j41(3,"span",2),T.EFF(4),T.k0s(),T.j41(5,"span",2),T.EFF(6),T.k0s(),T.j41(7,"span",2),T.EFF(8),T.k0s(),T.j41(9,"span",2),T.EFF(10),T.k0s()),2&xt&&(T.vxM(vt._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}\n'],encapsulation:2,changeDetection:0})}return mn})();function mt(mn){return"TD"===mn?.nodeName}function It(mn){let li;return mt(mn)?li=mn:mt(mn.parentNode)?li=mn.parentNode:mt(mn.parentNode?.parentNode)&&(li=mn.parentNode.parentNode),null!=li?.getAttribute("data-mat-row")?li:null}function wn(mn,li,Ce){return null!==Ce&&li!==Ce&&mn=li&&mn===Ce}function ei(mn,li,Ce,xt){return xt&&null!==li&&null!==Ce&&li!==Ce&&mn>=li&&mn<=Ce}function Li(mn){const li=mn.changedTouches[0];return document.elementFromPoint(li.clientX,li.clientY)}class kt{start;end;_disableStructuralEquivalency;constructor(li,Ce){this.start=li,this.end=Ce}}let Ot=(()=>{class mn{selection;_adapter;_selectionChanged=new C.B;selectionChanged=this._selectionChanged;constructor(Ce,xt){this.selection=Ce,this._adapter=xt,this.selection=Ce}updateSelection(Ce,xt){const vt=this.selection;this.selection=Ce,this._selectionChanged.next({selection:Ce,source:xt,oldValue:vt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(Ce){return this._adapter.isDateInstance(Ce)&&this._adapter.isValid(Ce)}static \u0275fac=function(xt){T.QTQ()};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})(),Ze=(()=>{class mn extends Ot{constructor(Ce){super(null,Ce)}add(Ce){super.updateSelection(Ce,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const Ce=new mn(this._adapter);return Ce.updateSelection(this.selection,this),Ce}static \u0275fac=function(xt){return new(xt||mn)(_.KVO(R.MJ))};static \u0275prov=_.jDH({token:mn,factory:mn.\u0275fac})}return mn})();const Yt={provide:Ot,deps:[[new T.Xx1,new T.kdw,Ot],R.MJ],useFactory:function Pt(mn,li){return mn||new Ze(li)}},oi=new _.nKC("MAT_DATE_RANGE_SELECTION_STRATEGY");let en=0,Nn=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rangeStrategy=(0,_.WQX)(oi,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){const xt=this._activeDate,vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._hasSameMonthAndYear(xt,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new T.bkB;_userSelection=new T.bkB;dragStarted=new T.bkB;dragEnded=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_monthLabel=(0,_.vPA)("");_weeks=(0,_.vPA)([]);_firstWeekOffset=(0,_.vPA)(0);_rangeStart=(0,_.vPA)(null);_rangeEnd=(0,_.vPA)(null);_comparisonRangeStart=(0,_.vPA)(null);_comparisonRangeEnd=(0,_.vPA)(null);_previewStart=(0,_.vPA)(null);_previewEnd=(0,_.vPA)(null);_isRange=(0,_.vPA)(!1);_todayDate=(0,_.vPA)(null);_weekdays=(0,_.vPA)([]);constructor(){(0,_.WQX)(yt.l).load(dt.Y),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnChanges(Ce){const xt=Ce.comparisonStart||Ce.comparisonEnd;xt&&!xt.firstChange&&this._setRanges(this.selected),Ce.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(Ce){const xt=Ce.value,vt=this._getDateFromDayOfMonth(xt);let rn,Wn;this._selected instanceof kt?(rn=this._getDateInCurrentMonth(this._selected.start),Wn=this._getDateInCurrentMonth(this._selected.end)):rn=Wn=this._getDateInCurrentMonth(this._selected),(rn!==xt||Wn!==xt)&&this.selectedChange.emit(vt),this._userSelection.emit({value:vt,event:Ce.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case ce.w_:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case ce.dB:this.activeDate=Ce.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case ce.Fm:case ce.t6:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&Ce.preventDefault());case ce._f:return void(null!=this._previewEnd()&&!(0,ge.rp)(Ce)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:Ce}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:Ce})),Ce.preventDefault(),Ce.stopPropagation()));default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let Ce=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((7+this._dateAdapter.getDayOfWeek(Ce)-this._dateAdapter.getFirstDayOfWeek())%7),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(Ce){this._matCalendarBody._focusActiveCell(Ce)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:Ce,value:xt}){if(this._rangeStrategy){const vt=xt?xt.rawValue:null,rn=this._rangeStrategy.createPreview(vt,this.selected,Ce);if(this._previewStart.set(this._getCellCompareValue(rn.start)),this._previewEnd.set(this._getCellCompareValue(rn.end)),this.activeDrag&&vt){const Wn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,vt,Ce);Wn&&(this._previewStart.set(this._getCellCompareValue(Wn.start)),this._previewEnd.set(this._getCellCompareValue(Wn.end)))}}}_dragEnded(Ce){if(this.activeDrag)if(Ce.value){const xt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,Ce.value,Ce.event);this.dragEnded.emit({value:xt??null,event:Ce.event})}else this.dragEnded.emit({value:null,event:Ce.event})}_getDateFromDayOfMonth(Ce){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),Ce)}_initWeekdays(){const Ce=this._dateAdapter.getFirstDayOfWeek(),xt=this._dateAdapter.getDayOfWeekNames("narrow"),rn=this._dateAdapter.getDayOfWeekNames("long").map((Wn,Yi)=>({long:Wn,narrow:xt[Yi],id:en++}));this._weekdays.set(rn.slice(Ce).concat(rn.slice(0,Ce)))}_createWeekCells(){const Ce=this._dateAdapter.getNumDaysInMonth(this.activeDate),xt=this._dateAdapter.getDateNames(),vt=[[]];for(let rn=0,Wn=this._firstWeekOffset();rn=0)&&(!this.maxDate||this._dateAdapter.compareDate(Ce,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(Ce))}_getDateInCurrentMonth(Ce){return Ce&&this._hasSameMonthAndYear(Ce,this.activeDate)?this._dateAdapter.getDate(Ce):null}_hasSameMonthAndYear(Ce,xt){return!(!Ce||!xt||this._dateAdapter.getMonth(Ce)!=this._dateAdapter.getMonth(xt)||this._dateAdapter.getYear(Ce)!=this._dateAdapter.getYear(xt))}_getCellCompareValue(Ce){if(Ce){const xt=this._dateAdapter.getYear(Ce),vt=this._dateAdapter.getMonth(Ce),rn=this._dateAdapter.getDate(Ce);return new Date(xt,vt,rn).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(Ce){Ce instanceof kt?(this._rangeStart.set(this._getCellCompareValue(Ce.start)),this._rangeEnd.set(this._getCellCompareValue(Ce.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(Ce)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(Ce){return!this.dateFilter||this.dateFilter(Ce)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-month-view"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(fn,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._matCalendarBody=rn.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[T.OA$],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(xt,vt){1&xt&&(T.j41(0,"table",0)(1,"thead",1)(2,"tr"),T.Z7z(3,Fe,5,2,"th",2,Vt),T.k0s(),T.j41(5,"tr",3),T.nrm(6,"th",4),T.k0s()(),T.j41(7,"tbody",5),T.bIt("selectedValueChange",function(Wn){return vt._dateSelected(Wn)})("activeDateChange",function(Wn){return vt._updateActiveDate(Wn)})("previewChange",function(Wn){return vt._previewChanged(Wn)})("dragStarted",function(Wn){return vt.dragStarted.emit(Wn)})("dragEnded",function(Wn){return vt._dragEnded(Wn)})("keyup",function(Wn){return vt._handleCalendarBodyKeyup(Wn)})("keydown",function(Wn){return vt._handleCalendarBodyKeydown(Wn)}),T.k0s()()),2&xt&&(T.R7$(3),T.Dyx(vt._weekdays()),T.R7$(4),T.Y8G("label",vt._monthLabel())("rows",vt._weeks())("todayValue",vt._todayDate())("startValue",vt._rangeStart())("endValue",vt._rangeEnd())("comparisonStart",vt._comparisonRangeStart())("comparisonEnd",vt._comparisonRangeEnd())("previewStart",vt._previewStart())("previewEnd",vt._previewEnd())("isRange",vt._isRange())("labelMinRequiredCells",3)("activeCell",vt._dateAdapter.getDate(vt.activeDate)-1)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName))},dependencies:[fn],encapsulation:2,changeDetection:0})}return mn})(),ui=(()=>{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),gn(this._dateAdapter,xt,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedYear(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;yearSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_years=(0,_.vPA)([]);_todayYear=(0,_.vPA)(0);_selectedYear=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));const xt=this._dateAdapter.getYear(this._activeDate)-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),vt=[];for(let rn=0,Wn=[];rn<24;rn++)Wn.push(xt+rn),4==Wn.length&&(vt.push(Wn.map(Yi=>this._createCellForYear(Yi))),Wn=[]);this._years.set(vt),this._changeDetectorRef.markForCheck()}_yearSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(xt,0,1),rn=this._getDateFromYear(xt);this.yearSelected.emit(vt),this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromYear(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-240:-24);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?240:24);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_getActiveCell(){return zn(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(Ce){const xt=this._dateAdapter.getMonth(this.activeDate),vt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Ce,xt,1));return this._dateAdapter.createDate(Ce,xt,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForYear(Ce){const xt=this._dateAdapter.createDate(Ce,0,1),vt=this._dateAdapter.getYearName(xt),rn=this.dateClass?this.dateClass(xt,"multi-year"):void 0;return new We(Ce,vt,vt,this._shouldEnableYear(Ce),rn)}_shouldEnableYear(Ce){if(null==Ce||this.maxDate&&Ce>this._dateAdapter.getYear(this.maxDate)||this.minDate&&Ce{class mn{_changeDetectorRef=(0,_.WQX)(P.gRc);_dateFormats=(0,_.WQX)(R.de,{optional:!0});_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_rerenderSubscription=a.yU.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(Ce){let xt=this._activeDate;const vt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(vt,this.minDate,this.maxDate),this._dateAdapter.getYear(xt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce)),this._setSelectedMonth(Ce)}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;selectedChange=new T.bkB;monthSelected=new T.bkB;activeDateChange=new T.bkB;_matCalendarBody;_months=(0,_.vPA)([]);_yearLabel=(0,_.vPA)("");_todayMonth=(0,_.vPA)(null);_selectedMonth=(0,_.vPA)(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,be.Z)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(Ce){const xt=Ce.value,vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),xt,1);this.monthSelected.emit(vt);const rn=this._getDateFromMonth(xt);this.selectedChange.emit(rn)}_updateActiveDate(Ce){const vt=this._activeDate;this.activeDate=this._getDateFromMonth(Ce.value),this._dateAdapter.compareDate(vt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(Ce){const xt=this._activeDate,vt=this._isRtl();switch(Ce.keyCode){case ce.UQ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?1:-1);break;case ce.LE:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,vt?-1:1);break;case ce.i7:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case ce.n6:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case ce.yZ:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case ce.Kp:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case ce.w_:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?-10:-1);break;case ce.dB:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ce.altKey?10:1);break;case ce.Fm:case ce.t6:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(xt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),Ce.preventDefault()}_handleCalendarBodyKeyup(Ce){(Ce.keyCode===ce.t6||Ce.keyCode===ce.Fm)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:Ce}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let Ce=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(xt=>xt.map(vt=>this._createCellForMonth(vt,Ce[vt])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(Ce){return Ce&&this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(Ce):null}_getDateFromMonth(Ce){const xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),vt=this._dateAdapter.getNumDaysInMonth(xt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,Math.min(this._dateAdapter.getDate(this.activeDate),vt))}_createCellForMonth(Ce,xt){const vt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Ce,1),rn=this._dateAdapter.format(vt,this._dateFormats.display.monthYearA11yLabel),Wn=this.dateClass?this.dateClass(vt,"year"):void 0;return new We(Ce,xt.toLocaleUpperCase(),rn,this._shouldEnableMonth(Ce),Wn)}_shouldEnableMonth(Ce){const xt=this._dateAdapter.getYear(this.activeDate);if(null==Ce||this._isYearAndMonthAfterMaxDate(xt,Ce)||this._isYearAndMonthBeforeMinDate(xt,Ce))return!1;if(!this.dateFilter)return!0;for(let rn=this._dateAdapter.createDate(xt,Ce,1);this._dateAdapter.getMonth(rn)==Ce;rn=this._dateAdapter.addCalendarDays(rn,1))if(this.dateFilter(rn))return!0;return!1}_isYearAndMonthAfterMaxDate(Ce,xt){if(this.maxDate){const vt=this._dateAdapter.getYear(this.maxDate),rn=this._dateAdapter.getMonth(this.maxDate);return Ce>vt||Ce===vt&&xt>rn}return!1}_isYearAndMonthBeforeMinDate(Ce,xt){if(this.minDate){const vt=this._dateAdapter.getYear(this.minDate),rn=this._dateAdapter.getMonth(this.minDate);return Ce{class mn{_intl=(0,_.WQX)(Wt);calendar=(0,_.WQX)(aa);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){(0,_.WQX)(yt.l).load(dt.Y);const Ce=(0,_.WQX)(P.gRc);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),Ce.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24))}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){const Ce=this.calendar,xt=this._intl,vt=this._dateAdapter;"month"===Ce.currentView?(this._periodButtonText=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=vt.format(Ce.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=xt.switchToMultiYearViewLabel,this._prevButtonLabel=xt.prevMonthLabel,this._nextButtonLabel=xt.nextMonthLabel):"year"===Ce.currentView?(this._periodButtonText=vt.getYearName(Ce.activeDate),this._periodButtonDescription=vt.getYearName(Ce.activeDate),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevYearLabel,this._nextButtonLabel=xt.nextYearLabel):(this._periodButtonText=xt.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=xt.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=xt.switchToMonthViewLabel,this._prevButtonLabel=xt.prevMultiYearLabel,this._nextButtonLabel=xt.nextMultiYearLabel)}_isSameView(Ce,xt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt)&&this._dateAdapter.getMonth(Ce)==this._dateAdapter.getMonth(xt):"year"==this.calendar.currentView?this._dateAdapter.getYear(Ce)==this._dateAdapter.getYear(xt):gn(this._dateAdapter,Ce,xt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const xt=this._dateAdapter.getYear(this.calendar.activeDate)-zn(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),vt=xt+24-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(xt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(vt,0,1))]}_periodButtonLabelId=(0,_.WQX)(re.g).getId("mat-calendar-period-label-");static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:Pe,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(xt,vt){1&xt&&(T.NAR(),T.j41(0,"div",0)(1,"div",1)(2,"span",2),T.EFF(3),T.k0s(),T.j41(4,"button",3),T.bIt("click",function(){return vt.currentPeriodClicked()}),T.j41(5,"span",4),T.EFF(6),T.k0s(),_.qSk(),T.j41(7,"svg",5),T.nrm(8,"polygon",6),T.k0s()(),_.joV(),T.nrm(9,"div",7),T.SdG(10),T.j41(11,"button",8),T.bIt("click",function(){return vt.previousClicked()}),_.qSk(),T.j41(12,"svg",9),T.nrm(13,"path",10),T.k0s()(),_.joV(),T.j41(14,"button",11),T.bIt("click",function(){return vt.nextClicked()}),_.qSk(),T.j41(15,"svg",9),T.nrm(16,"path",12),T.k0s()()()()),2&xt&&(T.R7$(2),T.Y8G("id",vt._periodButtonLabelId),T.R7$(),T.JRh(vt.periodButtonDescription),T.R7$(),T.BMQ("aria-label",vt.periodButtonLabel)("aria-describedby",vt._periodButtonLabelId),T.R7$(2),T.JRh(vt.periodButtonText),T.R7$(),T.AVh("mat-calendar-invert","month"!==vt.calendar.currentView),T.R7$(4),T.Y8G("disabled",!vt.previousEnabled())("matTooltip",vt.prevButtonLabel),T.BMQ("aria-label",vt.prevButtonLabel),T.R7$(3),T.Y8G("disabled",!vt.nextEnabled())("matTooltip",vt.nextButtonLabel),T.BMQ("aria-label",vt.nextButtonLabel))},dependencies:[rt.$z,Mn.iY,qt.oV],encapsulation:2,changeDetection:0})}return mn})(),aa=(()=>{class mn{_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_changeDetectorRef=(0,_.WQX)(P.gRc);_elementRef=(0,_.WQX)(T.aKT);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get selected(){return this._selected}set selected(Ce){this._selected=Ce instanceof kt?Ce:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_selected;get minDate(){return this._minDate}set minDate(Ce){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_minDate;get maxDate(){return this._maxDate}set maxDate(Ce){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new T.bkB;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);_userSelection=new T.bkB;_userDragDrop=new T.bkB;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(Ce){this._clampedActiveDate=this._dateAdapter.clampDate(Ce,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(Ce){const xt=this._currentView!==Ce?Ce:null;this._currentView=Ce,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),xt&&(this.stateChanges.next(),this.viewChanged.emit(xt))}_currentView;_activeDrag=null;stateChanges=new C.B;constructor(){this._intlChanges=(0,_.WQX)(Wt).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new oe.A8(this.headerComponent||Xn),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(Ce){const xt=Ce.minDate&&!this._dateAdapter.sameDate(Ce.minDate.previousValue,Ce.minDate.currentValue)?Ce.minDate:void 0,vt=Ce.maxDate&&!this._dateAdapter.sameDate(Ce.maxDate.previousValue,Ce.maxDate.currentValue)?Ce.maxDate:void 0,rn=xt||vt||Ce.dateFilter;if(rn&&!rn.firstChange){const Wn=this._getCurrentViewComponent();Wn&&(this._elementRef.nativeElement.contains((0,ve.vc)())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),Wn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(Ce){const xt=Ce.value;(this.selected instanceof kt||xt&&!this._dateAdapter.sameDate(xt,this.selected))&&this.selectedChange.emit(xt),this._userSelection.emit(Ce)}_yearSelectedInMultiYearView(Ce){this.yearSelected.emit(Ce)}_monthSelectedInYearView(Ce){this.monthSelected.emit(Ce)}_goToDateInView(Ce,xt){this.activeDate=Ce,this.currentView=xt}_dragStarted(Ce){this._activeDrag=Ce}_dragEnded(Ce){this._activeDrag&&(Ce.value&&this._userDragDrop.emit(Ce),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-calendar"]],viewQuery:function(xt,vt){if(1&xt&&(T.GBs(Nn,5),T.GBs(ci,5),T.GBs(ui,5)),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt.monthView=rn.first),T.mGM(rn=T.lsd())&&(vt.yearView=rn.first),T.mGM(rn=T.lsd())&&(vt.multiYearView=rn.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[T.Jv_([Yt]),T.OA$],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(xt,vt){if(1&xt&&(T.DNE(0,Ue,0,0,"ng-template",0),T.j41(1,"div",1),T.nVh(2,Qe,1,11,"mat-month-view",2)(3,Ie,1,6,"mat-year-view",3)(4,le,1,6,"mat-multi-year-view",3),T.k0s()),2&xt){let rn;T.Y8G("cdkPortalOutlet",vt._calendarHeaderPortal),T.R7$(2),T.vxM("month"===(rn=vt.currentView)?2:"year"===rn?3:"multi-year"===rn?4:-1)}},dependencies:[oe.I3,U.vR,Nn,ci,ui],styles:['.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return mn})();const sa=new _.nKC("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{const mn=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(mn)}}),ha={provide:sa,deps:[],useFactory:function pa(mn){const li=(0,_.WQX)(_.zZn);return()=>(0,Re.RH)(li)}};let dn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_animationsDisabled=(0,S.Rc)();_changeDetectorRef=(0,_.WQX)(P.gRc);_globalModel=(0,_.WQX)(Ot);_dateAdapter=(0,_.WQX)(R.MJ);_ngZone=(0,_.WQX)(T.SKi);_rangeSelectionStrategy=(0,_.WQX)(oi,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new C.B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if((0,_.WQX)(yt.l).load(dt.Y),this._closeButtonText=(0,_.WQX)(Wt).closeCalendarLabel,!this._animationsDisabled){const Ce=this._elementRef.nativeElement,xt=(0,_.WQX)(T.sFG);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[xt.listen(Ce,"animationstart",this._handleAnimationEvent),xt.listen(Ce,"animationend",this._handleAnimationEvent),xt.listen(Ce,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(Ce=>Ce()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(Ce){const xt=this._model.selection,vt=Ce.value,rn=xt instanceof kt;if(rn&&this._rangeSelectionStrategy){const Wn=this._rangeSelectionStrategy.selectionFinished(vt,xt,Ce.event);this._model.updateSelection(Wn,this)}else vt&&(rn||!this._dateAdapter.sameDate(vt,xt))&&this._model.add(vt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(Ce){this._model.updateSelection(Ce.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=Ce=>{const xt=this._elementRef.nativeElement;Ce.target!==xt||!Ce.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating="animationstart"===Ce.type,xt.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(Ce,xt){this._model=Ce?this._globalModel.clone():this._globalModel,this._actionsPortal=Ce,xt&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-content"]],viewQuery:function(xt,vt){if(1&xt&&T.GBs(aa,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._calendar=rn.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(xt,vt){2&xt&&(T.HbH(vt.color?"mat-"+vt.color:""),T.AVh("mat-datepicker-content-touch",vt.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!vt._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(xt,vt){1&xt&&(T.j41(0,"div",0)(1,"mat-calendar",1),T.bIt("yearSelected",function(Wn){return vt.datepicker._selectYear(Wn)})("monthSelected",function(Wn){return vt.datepicker._selectMonth(Wn)})("viewChanged",function(Wn){return vt.datepicker._viewChanged(Wn)})("_userSelection",function(Wn){return vt._handleUserSelection(Wn)})("_userDragDrop",function(Wn){return vt._handleUserDragDrop(Wn)}),T.k0s(),T.DNE(2,Ne,0,0,"ng-template",2),T.j41(3,"button",3),T.bIt("focus",function(){return vt._closeButtonFocused=!0})("blur",function(){return vt._closeButtonFocused=!1})("click",function(){return vt.datepicker.close()}),T.EFF(4),T.k0s()()),2&xt&&(T.AVh("mat-datepicker-content-container-with-custom-header",vt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",vt._actionsPortal),T.BMQ("aria-modal",!0)("aria-labelledby",vt._dialogLabelId??void 0),T.R7$(),T.HbH(vt.datepicker.panelClass),T.Y8G("id",vt.datepicker.id)("startAt",vt.datepicker.startAt)("startView",vt.datepicker.startView)("minDate",vt.datepicker._getMinDate())("maxDate",vt.datepicker._getMaxDate())("dateFilter",vt.datepicker._getDateFilter())("headerComponent",vt.datepicker.calendarHeaderComponent)("selected",vt._getSelected())("dateClass",vt.datepicker.dateClass)("comparisonStart",vt.comparisonStart)("comparisonEnd",vt.comparisonEnd)("startDateAccessibleName",vt.startDateAccessibleName)("endDateAccessibleName",vt.endDateAccessibleName),T.R7$(),T.Y8G("cdkPortalOutlet",vt._actionsPortal),T.R7$(),T.AVh("cdk-visually-hidden",!vt._closeButtonFocused),T.Y8G("color",vt.color||"primary"),T.R7$(),T.JRh(vt._closeButtonText))},dependencies:[fe.kB,aa,oe.I3,rt.$z],styles:["@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,changeDetection:0})}return mn})(),Ln=(()=>{class mn{_injector=(0,_.WQX)(_.zZn);_viewContainerRef=(0,_.WQX)(T.c1b);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dir=(0,_.WQX)(he.dS,{optional:!0});_model=(0,_.WQX)(Ot);_animationsDisabled=(0,S.Rc)();_scrollStrategy=(0,_.WQX)(sa);_inputStateChanges=a.yU.EMPTY;_document=(0,_.WQX)(_.qQL);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(Ce){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(Ce){this._color=Ce}_color;touchUi=!1;get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(Ce){Ce!==this._disabled&&(this._disabled=Ce,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new T.bkB;monthSelected=new T.bkB;viewChanged=new T.bkB(!0);dateClass;openedStream=new T.bkB;closedStream=new T.bkB;get panelClass(){return this._panelClass}set panelClass(Ce){this._panelClass=(0,Oe.cc)(Ce)}_panelClass;get opened(){return this._opened}set opened(Ce){Ce?this.open():this.close()}_opened=!1;id=(0,_.WQX)(re.g).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new C.B;_changeDetectorRef=(0,_.WQX)(P.gRc);constructor(){this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(Ce){const xt=Ce.xPosition||Ce.yPosition;if(xt&&!xt.firstChange&&this._overlayRef){const vt=this._overlayRef.getConfig().positionStrategy;vt instanceof Re.rW&&(this._setConnectedPositions(vt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(Ce){this._model.add(Ce)}_selectYear(Ce){this.yearSelected.emit(Ce)}_selectMonth(Ce){this.monthSelected.emit(Ce)}_viewChanged(Ce){this.viewChanged.emit(Ce)}registerInput(Ce){return this._inputStateChanges.unsubscribe(),this.datepickerInput=Ce,this._inputStateChanges=Ce.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(Ce){this._actionsPortal=Ce,this._componentRef?.instance._assignActions(Ce,!0)}removeActions(Ce){Ce===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ve.vc)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const Ce=this.restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,xt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:vt,location:rn}=this._componentRef;vt._animationDone.pipe((0,nt.s)(1)).subscribe(()=>{const Wn=this._document.activeElement;Ce&&(!Wn||Wn===this._document.activeElement||rn.nativeElement.contains(Wn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),vt._startExitAnimation()}Ce?setTimeout(xt):xt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(Ce){Ce.datepicker=this,Ce.color=this.color,Ce._dialogLabelId=this.datepickerInput.getOverlayLabelId(),Ce._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const Ce=this.touchUi,xt=new oe.A8(dn,this._viewContainerRef),vt=this._overlayRef=(0,Re.Y$)(this._injector,new Re.rR({positionStrategy:Ce?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[Ce?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:Ce?(0,Re.gA)(this._injector):this._scrollStrategy(),panelClass:"mat-datepicker-"+(Ce?"dialog":"popup"),disableAnimations:this._animationsDisabled}));this._getCloseStream(vt).subscribe(rn=>{rn&&rn.preventDefault(),this.close()}),vt.keydownEvents().subscribe(rn=>{const Wn=rn.keyCode;(Wn===ce.i7||Wn===ce.n6||Wn===ce.UQ||Wn===ce.LE||Wn===ce.w_||Wn===ce.dB)&&rn.preventDefault()}),this._componentRef=vt.attach(xt),this._forwardContentValues(this._componentRef.instance),Ce||(0,T.mal)(()=>{vt.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return(0,Re.uA)(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){const Ce=(0,Re.$M)(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(Ce)}_setConnectedPositions(Ce){const xt="end"===this.xPosition?"end":"start",vt="start"===xt?"end":"start",rn="above"===this.yPosition?"bottom":"top",Wn="top"===rn?"bottom":"top";return Ce.withPositions([{originX:xt,originY:Wn,overlayX:xt,overlayY:rn},{originX:xt,originY:rn,overlayX:xt,overlayY:Wn},{originX:vt,originY:Wn,overlayX:vt,overlayY:rn},{originX:vt,originY:rn,overlayX:vt,overlayY:Wn}])}_getCloseStream(Ce){const xt=["ctrlKey","shiftKey","metaKey"];return(0,x.h)(Ce.backdropClick(),Ce.detachments(),Ce.keydownEvents().pipe((0,Se.p)(vt=>vt.keyCode===ce._f&&!(0,ge.rp)(vt)||this.datepickerInput&&(0,ge.rp)(vt,"altKey")&&vt.keyCode===ce.i7&&xt.every(rn=>!(0,ge.rp)(vt,rn)))))}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",P.L39],disabled:[2,"disabled","disabled",P.L39],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",P.L39],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",P.L39]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[T.OA$]})}return mn})(),Jn=(()=>{class mn extends Ln{static \u0275fac=(()=>{let Ce;return function(vt){return(Ce||(Ce=T.xGo(mn)))(vt||mn)}})();static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[T.Jv_([Yt,{provide:Ln,useExisting:mn}]),T.Vt3],decls:0,vars:0,template:function(xt,vt){},encapsulation:2,changeDetection:0})}return mn})();class hi{target;targetElement;value;constructor(li,Ce){this.target=li,this.targetElement=Ce,this.value=this.target.value}}let Gn=(()=>{class mn{_elementRef=(0,_.WQX)(T.aKT);_dateAdapter=(0,_.WQX)(R.MJ,{optional:!0});_dateFormats=(0,_.WQX)(R.de,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(Ce){this._assignValueProgrammatically(Ce)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(Ce){const xt=Ce,vt=this._elementRef.nativeElement;this._disabled!==xt&&(this._disabled=xt,this.stateChanges.next(void 0)),xt&&this._isInitialized&&vt.blur&&vt.blur()}_disabled;dateChange=new T.bkB;dateInput=new T.bkB;stateChanges=new C.B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=a.yU.EMPTY;_localeSubscription=a.yU.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value));return!xt||this._matchesFilter(xt)?null:{matDatepickerFilter:!0}};_minValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMinDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)<=0?null:{matDatepickerMin:{min:vt,actual:xt}}};_maxValidator=Ce=>{const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce.value)),vt=this._getMaxDate();return!vt||!xt||this._dateAdapter.compareDate(vt,xt)>=0?null:{matDatepickerMax:{max:vt,actual:xt}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(Ce){this._model=Ce,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(xt=>{if(this._shouldHandleChangeEvent(xt)){const vt=this._getValueFromModel(xt.selection);this._lastValueValid=this._isValidValue(vt),this._cvaOnChange(vt),this._onTouched(),this._formatValue(vt),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)),this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(Ce){(function Qn(mn,li){const Ce=Object.keys(mn);for(let xt of Ce){const{previousValue:vt,currentValue:rn}=mn[xt];if(!li.isDateInstance(vt)||!li.isDateInstance(rn))return!0;if(!li.sameDate(vt,rn))return!0}return!1})(Ce,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(Ce){this._validatorOnChange=Ce}validate(Ce){return this._validator?this._validator(Ce):null}writeValue(Ce){this._assignValueProgrammatically(Ce)}registerOnChange(Ce){this._cvaOnChange=Ce}registerOnTouched(Ce){this._onTouched=Ce}setDisabledState(Ce){this.disabled=Ce}_onKeydown(Ce){(0,ge.rp)(Ce,"altKey")&&Ce.keyCode===ce.n6&&["ctrlKey","shiftKey","metaKey"].every(rn=>!(0,ge.rp)(Ce,rn))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),Ce.preventDefault())}_onInput(Ce){const xt=Ce.target.value,vt=this._lastValueValid;let rn=this._dateAdapter.parse(xt,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(rn),rn=this._dateAdapter.getValidDateOrNull(rn);const Wn=!this._dateAdapter.sameDate(rn,this.value);!rn||Wn?this._cvaOnChange(rn):(xt&&!this.value&&this._cvaOnChange(rn),vt!==this._lastValueValid&&this._validatorOnChange()),Wn&&(this._assignValue(rn),this.dateInput.emit(new hi(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new hi(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(Ce){this._elementRef.nativeElement.value=null!=Ce?this._dateAdapter.format(Ce,this._dateFormats.display.dateInput):""}_assignValue(Ce){this._model?(this._assignValueToModel(Ce),this._pendingValue=null):this._pendingValue=Ce}_isValidValue(Ce){return!Ce||this._dateAdapter.isValid(Ce)}_parentDisabled(){return!1}_assignValueProgrammatically(Ce){Ce=this._dateAdapter.deserialize(Ce),this._lastValueValid=this._isValidValue(Ce),Ce=this._dateAdapter.getValidDateOrNull(Ce),this._assignValue(Ce),this._formatValue(Ce)}_matchesFilter(Ce){const xt=this._getDateFilter();return!xt||xt(Ce)}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,inputs:{value:"value",disabled:[2,"disabled","disabled",P.L39]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[T.OA$]})}return mn})();const Bi={provide:Xt.kq,useExisting:(0,_.Rfq)(()=>Sa),multi:!0},ca={provide:Xt.cz,useExisting:(0,_.Rfq)(()=>Sa),multi:!0};let Sa=(()=>{class mn extends Gn{_formField=(0,_.WQX)(ae.xb,{optional:!0});_closedSubscription=a.yU.EMPTY;_openedSubscription=a.yU.EMPTY;set matDatepicker(Ce){Ce&&(this._datepicker=Ce,this._ariaOwns.set(Ce.opened?Ce.id:null),this._closedSubscription=Ce.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=Ce.openedStream.subscribe(()=>{this._ariaOwns.set(Ce.id)}),this._registerModel(Ce.registerInput(this)))}_datepicker;_ariaOwns=(0,_.vPA)(null);get min(){return this._min}set min(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._min)||(this._min=xt,this._validatorOnChange())}_min;get max(){return this._max}set max(Ce){const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Ce));this._dateAdapter.sameDate(xt,this._max)||(this._max=xt,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(Ce){const xt=this._matchesFilter(this.value);this._dateFilter=Ce,this._matchesFilter(this.value)!==xt&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=Xt.k0.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(Ce){return Ce}_assignValueToModel(Ce){this._model&&this._model.updateSelection(Ce,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(Ce){return Ce.source!==this}static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(xt,vt){1&xt&&T.bIt("input",function(Wn){return vt._onInput(Wn)})("change",function(){return vt._onChange()})("blur",function(){return vt._onBlur()})("keydown",function(Wn){return vt._onKeydown(Wn)}),2&xt&&(T.Avn("disabled",vt.disabled),T.BMQ("aria-haspopup",vt._datepicker?"dialog":null)("aria-owns",vt._ariaOwns())("min",vt.min?vt._dateAdapter.toIso8601(vt.min):null)("max",vt.max?vt._dateAdapter.toIso8601(vt.max):null)("data-mat-calendar",vt._datepicker?vt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[T.Jv_([Bi,ca,{provide:de.O,useExisting:mn}]),T.Vt3]})}return mn})(),un=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275dir=T.FsC({type:mn,selectors:[["","matDatepickerToggleIcon",""]]})}return mn})(),Sn=(()=>{class mn{_intl=(0,_.WQX)(Wt);_changeDetectorRef=(0,_.WQX)(P.gRc);_stateChanges=a.yU.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(Ce){this._disabled=Ce}_disabled;disableRipple;_customIcon;_button;constructor(){const Ce=(0,_.WQX)(new P.ES_("tabindex"),{optional:!0}),xt=Number(Ce);this.tabIndex=xt||0===xt?xt:null}ngOnChanges(Ce){Ce.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(Ce){this.datepicker&&!this.disabled&&(this.datepicker.open(),Ce.stopPropagation())}_watchStateChanges(){const Ce=this.datepicker?this.datepicker.stateChanges:(0,Y.of)(),xt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,Y.of)(),vt=this.datepicker?(0,x.h)(this.datepicker.openedStream,this.datepicker.closedStream):(0,Y.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,x.h)(this._intl.changes,Ce,xt,vt).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(xt){return new(xt||mn)};static \u0275cmp=T.VBU({type:mn,selectors:[["mat-datepicker-toggle"]],contentQueries:function(xt,vt,rn){if(1&xt&&T.wni(rn,un,5),2&xt){let Wn;T.mGM(Wn=T.lsd())&&(vt._customIcon=Wn.first)}},viewQuery:function(xt,vt){if(1&xt&&T.GBs(ze,5),2&xt){let rn;T.mGM(rn=T.lsd())&&(vt._button=rn.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(xt,vt){1&xt&&T.bIt("click",function(Wn){return vt._open(Wn)}),2&xt&&(T.BMQ("tabindex",null)("data-mat-calendar",vt.datepicker?vt.datepicker.id:null),T.AVh("mat-datepicker-toggle-active",vt.datepicker&&vt.datepicker.opened)("mat-accent",vt.datepicker&&"accent"===vt.datepicker.color)("mat-warn",vt.datepicker&&"warn"===vt.datepicker.color))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",P.L39],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[T.OA$],ngContentSelectors:gt,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(xt,vt){1&xt&&(T.NAR(Je),T.j41(0,"button",1,0),T.nVh(2,zt,2,0,":svg:svg",2),T.SdG(3),T.k0s()),2&xt&&(T.Y8G("tabIndex",vt.disabled?-1:vt.tabIndex)("disabled",vt.disabled)("disableRipple",vt.disableRipple),T.BMQ("aria-haspopup",vt.datepicker?"dialog":null)("aria-label",vt.ariaLabel||vt._intl.openCalendarLabel)("aria-expanded",vt.datepicker?vt.datepicker.opened:null),T.R7$(2),T.vxM(vt._customIcon?-1:2))},dependencies:[Mn.iY],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}\n"],encapsulation:2,changeDetection:0})}return mn})(),Oi=(()=>{class mn{static \u0275fac=function(xt){return new(xt||mn)};static \u0275mod=T.$C({type:mn});static \u0275inj=_.G2t({providers:[Wt,ha],imports:[rt.Hl,Re.z_,fe.Pd,oe.jc,Le.y,dn,Sn,Xn,me.Gj]})}return mn})()},51585(ke,q,l){"use strict";l.d(q,{Vh:()=>ve,di:()=>oe,bZ:()=>be,tx:()=>nt,hM:()=>qt,CP:()=>Re});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(59030),e=l(76939),A=l(17094),h=l(76838),d=l(39842),w=l(44522),f=l(10438),F=l(67336),M=l(99172),K=l(96697),j=l(49338),Z=l(89726),ee=l(61577);function V(S,Xt){}class Q{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext}let ie=(()=>{class S extends e.lb{_elementRef=(0,g.WQX)(i.aKT);_focusTrapFactory=(0,g.WQX)(A.GX);_config;_interactivityChecker=(0,g.WQX)(A.Z7);_ngZone=(0,g.WQX)(i.SKi);_focusMonitor=(0,g.WQX)(h.FN);_renderer=(0,g.WQX)(i.sFG);_changeDetectorRef=(0,g.WQX)(p.gRc);_injector=(0,g.WQX)(g.zZn);_platform=(0,g.WQX)(d.O);_document=(0,g.WQX)(g.qQL);_portalOutlet;_focusTrapped=new D.B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=(0,g.WQX)(Q,{optional:!0})||new Q,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(de){this._ariaLabelledByQueue.push(de),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(de){const ae=this._ariaLabelledByQueue.indexOf(de);ae>-1&&(this._ariaLabelledByQueue.splice(ae,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachComponentPortal(de);return this._contentAttached(),ae}attachTemplatePortal(de){this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachTemplatePortal(de);return this._contentAttached(),ae}attachDomPortal=de=>{this._portalOutlet.hasAttached();const ae=this._portalOutlet.attachDomPortal(de);return this._contentAttached(),ae};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(de,ae){this._interactivityChecker.isFocusable(de)||(de.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const me=()=>{Le(),et(),de.removeAttribute("tabindex")},Le=this._renderer.listen(de,"blur",me),et=this._renderer.listen(de,"mousedown",me)})),de.focus(ae)}_focusByCssSelector(de,ae){let me=this._elementRef.nativeElement.querySelector(de);me&&this._forceFocus(me,ae)}_trapFocus(de){this._isDestroyed||(0,i.mal)(()=>{const ae=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ae.focus(de);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(de)||this._focusDialogContainer(de);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',de);break;default:this._focusByCssSelector(this._config.autoFocus,de)}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){const de=this._config.restoreFocus;let ae=null;if("string"==typeof de?ae=this._document.querySelector(de):"boolean"==typeof de?ae=de?this._elementFocusedBeforeDialogWasOpened:null:de&&(ae=de),this._config.restoreFocus&&ae&&"function"==typeof ae.focus){const me=(0,w.vc)(),Le=this._elementRef.nativeElement;(!me||me===this._document.body||me===Le||Le.contains(me))&&(this._focusMonitor?(this._focusMonitor.focusVia(ae,this._closeInteractionType),this._closeInteractionType=null):ae.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(de){this._elementRef.nativeElement.focus?.(de)}_containsFocus(){const de=this._elementRef.nativeElement,ae=(0,w.vc)();return de===ae||de.contains(ae)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,w.vc)()))}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=i.VBU({type:S,selectors:[["cdk-dialog-container"]],viewQuery:function(ae,me){if(1&ae&&i.GBs(e.I3,7),2&ae){let Le;i.mGM(Le=i.lsd())&&(me._portalOutlet=Le.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ae,me){2&ae&&i.BMQ("id",me._config.id||null)("role",me._config.role)("aria-modal",me._config.ariaModal)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null)},features:[i.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&i.DNE(0,V,0,0,"ng-template",0)},dependencies:[e.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}\n"],encapsulation:2})}return S})();class _e{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new D.B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(Xt,de){this.overlayRef=Xt,this.config=de,this.disableClose=de.disableClose,this.backdropClick=Xt.backdropClick(),this.keydownEvents=Xt.keydownEvents(),this.outsidePointerEvents=Xt.outsidePointerEvents(),this.id=de.id,this.keydownEvents.subscribe(ae=>{ae.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(ae)&&(ae.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=Xt.detachments().subscribe(()=>{!1!==de.closeOnOverlayDetachments&&this.close()})}close(Xt,de){if(this._canClose(Xt)){const ae=this.closed;this.containerInstance._closeInteractionType=de?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),ae.next(Xt),ae.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Xt="",de=""){return this.overlayRef.updateSize({width:Xt,height:de}),this}addPanelClass(Xt){return this.overlayRef.addPanelClass(Xt),this}removePanelClass(Xt){return this.overlayRef.removePanelClass(Xt),this}_canClose(Xt){const de=this.config;return!!this.containerInstance&&(!de.closePredicate||de.closePredicate(Xt,de,this.componentInstance))}}const ye=new g.nKC("DialogScrollStrategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}}),se=new g.nKC("DialogData"),pe=new g.nKC("DefaultDialogConfig");function Ee(S){const Xt=(0,g.vPA)(S),de=new i.bkB;return{valueSignal:Xt,get value(){return Xt()},change:de,ngOnDestroy(){de.complete()}}}let L=(()=>{class S{_injector=(0,g.WQX)(g.zZn);_defaultOptions=(0,g.WQX)(pe,{optional:!0});_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_overlayContainer=(0,g.WQX)(j.Sf);_idGenerator=(0,g.WQX)(Z.g);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;_ariaHiddenElements=new Map;_scrollStrategy=(0,g.WQX)(ye);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){}open(de,ae){(ae={...this._defaultOptions||new Q,...ae}).id=ae.id||this._idGenerator.getId("cdk-dialog-"),ae.id&&this.getDialogById(ae.id);const Le=this._getOverlayConfig(ae),et=(0,j.Y$)(this._injector,Le),tn=new _e(et,ae),Vt=this._attachContainer(et,tn,ae);if(tn.containerInstance=Vt,!this.openDialogs.length){const hn=this._overlayContainer.getContainerElement();Vt._focusTrapped?Vt._focusTrapped.pipe((0,K.s)(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(hn)}):this._hideNonDialogContentFromAssistiveTechnology(hn)}return this._attachDialogContent(de,tn,Vt,ae),this.openDialogs.push(tn),tn.closed.subscribe(()=>this._removeOpenDialog(tn,!0)),this.afterOpened.next(tn),tn}closeAll(){t(this.openDialogs,de=>de.close())}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){t(this._openDialogsAtThisLevel,de=>{!1===de.config.closeOnDestroy&&this._removeOpenDialog(de,!1)}),t(this._openDialogsAtThisLevel,de=>de.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(de){const ae=new j.rR({positionStrategy:de.positionStrategy||(0,j.uA)().centerHorizontally().centerVertically(),scrollStrategy:de.scrollStrategy||this._scrollStrategy(),panelClass:de.panelClass,hasBackdrop:de.hasBackdrop,direction:de.direction,minWidth:de.minWidth,minHeight:de.minHeight,maxWidth:de.maxWidth,maxHeight:de.maxHeight,width:de.width,height:de.height,disposeOnNavigation:de.closeOnNavigation,disableAnimations:de.disableAnimations});return de.backdropClass&&(ae.backdropClass=de.backdropClass),ae}_attachContainer(de,ae,me){const Le=me.injector||me.viewContainerRef?.injector,et=[{provide:Q,useValue:me},{provide:_e,useValue:ae},{provide:j.yY,useValue:de}];let tn;me.container?"function"==typeof me.container?tn=me.container:(tn=me.container.type,et.push(...me.container.providers(me))):tn=ie;const Vt=new e.A8(tn,me.viewContainerRef,g.zZn.create({parent:Le||this._injector,providers:et}));return de.attach(Vt).instance}_attachDialogContent(de,ae,me,Le){if(de instanceof i.C4Q){const et=this._createInjector(Le,ae,me,void 0);let tn={$implicit:Le.data,dialogRef:ae};Le.templateContext&&(tn={...tn,..."function"==typeof Le.templateContext?Le.templateContext():Le.templateContext}),me.attachTemplatePortal(new e.VA(de,null,tn,et))}else{const et=this._createInjector(Le,ae,me,this._injector),tn=me.attachComponentPortal(new e.A8(de,Le.viewContainerRef,et));ae.componentRef=tn,ae.componentInstance=tn.instance}}_createInjector(de,ae,me,Le){const et=de.injector||de.viewContainerRef?.injector,tn=[{provide:se,useValue:de.data},{provide:_e,useValue:ae}];return de.providers&&("function"==typeof de.providers?tn.push(...de.providers(ae,de,me)):tn.push(...de.providers)),de.direction&&(!et||!et.get(ee.dS,null,{optional:!0}))&&tn.push({provide:ee.dS,useValue:Ee(de.direction)}),g.zZn.create({parent:et||Le,providers:tn})}_removeOpenDialog(de,ae){const me=this.openDialogs.indexOf(de);me>-1&&(this.openDialogs.splice(me,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Le,et)=>{Le?et.setAttribute("aria-hidden",Le):et.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),ae&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(de){if(de.parentElement){const ae=de.parentElement.children;for(let me=ae.length-1;me>-1;me--){const Le=ae[me];Le!==de&&"SCRIPT"!==Le.nodeName&&"STYLE"!==Le.nodeName&&!Le.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Le,Le.getAttribute("aria-hidden")),Le.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function t(S,Xt){let de=S.length;for(;de--;)Xt(S[de])}let s=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[L],imports:[j.z_,e.jc,A.Pd,e.jc]})}return S})();var m=l(67847),u=l(31804),_=l(57786),T=l(5964),C=(l(5718),l(22466));function a(S,Xt){}class x{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration}const Y="mdc-dialog--open",R="mdc-dialog--opening",U="mdc-dialog--closing";let he=(()=>{class S extends ie{_animationStateChanged=new i.bkB;_animationsEnabled=!(0,u.Rc)();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?ge(this._config.enterAnimationDuration)??150:0;_exitAnimationDuration=this._animationsEnabled?ge(this._config.exitAnimationDuration)??75:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(R,Y)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Y),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Y),this._animationsEnabled?(this._hostElement.style.setProperty(Oe,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(U)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(de){this._actionSectionCount+=de,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(R,U)}_waitForAnimationToComplete(de,ae){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(ae,de)}_requestAnimationFrame(de){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(de):de()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(de){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:de})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(de){const ae=super.attachComponentPortal(de);return ae.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),ae}static \u0275fac=(()=>{let de;return function(me){return(de||(de=i.xGo(S)))(me||S)}})();static \u0275cmp=i.VBU({type:S,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(ae,me){2&ae&&(i.Avn("id",me._config.id),i.BMQ("aria-modal",me._config.ariaModal)("role",me._config.role)("aria-labelledby",me._config.ariaLabel?null:me._ariaLabelledByQueue[0])("aria-label",me._config.ariaLabel)("aria-describedby",me._config.ariaDescribedBy||null),i.AVh("_mat-animation-noopable",!me._animationsEnabled)("mat-mdc-dialog-container-with-actions",me._actionSectionCount>0))},features:[i.Vt3],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(ae,me){1&ae&&(i.j41(0,"div",0)(1,"div",1),i.DNE(2,a,0,0,"ng-template",2),i.k0s()())},dependencies:[e.I3],styles:['.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}\n'],encapsulation:2})}return S})();const Oe="--mat-dialog-transition-duration";function ge(S){return null==S?null:"number"==typeof S?S:S.endsWith("ms")?(0,m.OE)(S.substring(0,S.length-2)):S.endsWith("s")?1e3*(0,m.OE)(S.substring(0,S.length-1)):"0"===S?0:null}var ce=function(S){return S[S.OPEN=0]="OPEN",S[S.CLOSING=1]="CLOSING",S[S.CLOSED=2]="CLOSED",S}(ce||{});class Re{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new D.B;_beforeClosed=new D.B;_result;_closeFallbackTimeout;_state=ce.OPEN;_closeInteractionType;constructor(Xt,de,ae){this._ref=Xt,this._config=de,this._containerInstance=ae,this.disableClose=de.disableClose,this.id=Xt.id,Xt.addPanelClass("mat-mdc-dialog-panel"),ae._animationStateChanged.pipe((0,T.p)(me=>"opened"===me.state),(0,K.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ae._animationStateChanged.pipe((0,T.p)(me=>"closed"===me.state),(0,K.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Xt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,_.h)(this.backdropClick(),this.keydownEvents().pipe((0,T.p)(me=>me.keyCode===f._f&&!this.disableClose&&!(0,F.rp)(me)))).subscribe(me=>{this.disableClose||(me.preventDefault(),Me(this,"keydown"===me.type?"keyboard":"mouse"))})}close(Xt){const de=this._config.closePredicate;de&&!de(Xt,this._config,this.componentInstance)||(this._result=Xt,this._containerInstance._animationStateChanged.pipe((0,T.p)(ae=>"closing"===ae.state),(0,K.s)(1)).subscribe(ae=>{this._beforeClosed.next(Xt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ae.totalTime+100)}),this._state=ce.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Xt){let de=this._ref.config.positionStrategy;return Xt&&(Xt.left||Xt.right)?Xt.left?de.left(Xt.left):de.right(Xt.right):de.centerHorizontally(),Xt&&(Xt.top||Xt.bottom)?Xt.top?de.top(Xt.top):de.bottom(Xt.bottom):de.centerVertically(),this._ref.updatePosition(),this}updateSize(Xt="",de=""){return this._ref.updateSize(Xt,de),this}addPanelClass(Xt){return this._ref.addPanelClass(Xt),this}removePanelClass(Xt){return this._ref.removePanelClass(Xt),this}getState(){return this._state}_finishDialogClose(){this._state=ce.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function Me(S,Xt,de){return S._closeInteractionType=Xt,S.close(de)}const ve=new g.nKC("MatMdcDialogData"),oe=new g.nKC("mat-mdc-dialog-default-options"),Se=new g.nKC("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const S=(0,g.WQX)(g.zZn);return()=>(0,j.gA)(S)}});let be=(()=>{class S{_defaultOptions=(0,g.WQX)(oe,{optional:!0});_scrollStrategy=(0,g.WQX)(Se);_parentDialog=(0,g.WQX)(S,{optional:!0,skipSelf:!0});_idGenerator=(0,g.WQX)(Z.g);_injector=(0,g.WQX)(g.zZn);_dialog=(0,g.WQX)(L);_animationsDisabled=(0,u.Rc)();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new D.B;_afterOpenedAtThisLevel=new D.B;dialogConfigClass=x;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const de=this._parentDialog;return de?de._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=(0,o.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,M.Z)(void 0)));constructor(){this._dialogRefConstructor=Re,this._dialogContainerType=he,this._dialogDataToken=ve}open(de,ae){let me;(ae={...this._defaultOptions||new x,...ae}).id=ae.id||this._idGenerator.getId("mat-mdc-dialog-"),ae.scrollStrategy=ae.scrollStrategy||this._scrollStrategy();const Le=this._dialog.open(de,{...ae,positionStrategy:(0,j.uA)(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||"0"===ae.enterAnimationDuration?.toLocaleString()||"0"===ae.exitAnimationDuration?.toString(),container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:ae},{provide:Q,useValue:ae}]},templateContext:()=>({dialogRef:me}),providers:(et,tn,Vt)=>(me=new this._dialogRefConstructor(et,ae,Vt),me.updatePosition(ae?.position),[{provide:this._dialogContainerType,useValue:Vt},{provide:this._dialogDataToken,useValue:tn.data},{provide:this._dialogRefConstructor,useValue:me}])});return me.componentRef=Le.componentRef,me.componentInstance=Le.componentInstance,this.openDialogs.push(me),this.afterOpened.next(me),me.afterClosed().subscribe(()=>{const et=this.openDialogs.indexOf(me);et>-1&&(this.openDialogs.splice(et,1),this.openDialogs.length||this._getAfterAllClosed().next())}),me}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(de){return this.openDialogs.find(ae=>ae.id===de)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(de){let ae=de.length;for(;ae--;)de[ae].close()}static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=g.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),nt=(()=>{class S{dialogRef=(0,g.WQX)(Re,{optional:!0});_elementRef=(0,g.WQX)(i.aKT);_dialog=(0,g.WQX)(be);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=function rt(S,Xt){let de=S.nativeElement.parentElement;for(;de&&!de.classList.contains("mat-mdc-dialog-container");)de=de.parentElement;return de?Xt.find(ae=>ae.id===de.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(de){const ae=de._matDialogClose||de._matDialogCloseResult;ae&&(this.dialogResult=ae.currentValue)}_onButtonClick(de){Me(this.dialogRef,0===de.screenX&&0===de.screenY?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=i.FsC({type:S,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ae,me){1&ae&&i.bIt("click",function(et){return me._onButtonClick(et)}),2&ae&&i.BMQ("aria-label",me.ariaLabel||null)("type",me.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[i.OA$]})}return S})();let qt=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=i.$C({type:S});static \u0275inj=g.G2t({providers:[be],imports:[s,j.z_,e.jc,C.y,C.y]})}return S})()},71997(ke,q,l){"use strict";l.d(q,{q:()=>o,w:()=>e});var i=l(2615),g=l(73664),p=l(14085),D=l(22466);let o=(()=>{class A{get vertical(){return this._vertical}set vertical(d){this._vertical=(0,p.he)(d)}_vertical=!1;get inset(){return this._inset}set inset(d){this._inset=(0,p.he)(d)}_inset=!1;static \u0275fac=function(w){return new(w||A)};static \u0275cmp=g.VBU({type:A,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(w,f){2&w&&(g.BMQ("aria-orientation",f.vertical?"vertical":"horizontal"),g.AVh("mat-divider-vertical",f.vertical)("mat-divider-horizontal",!f.vertical)("mat-divider-inset",f.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(w,f){},styles:[".mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0})}return A})(),e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=g.$C({type:A});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return A})()},2709(ke,q,l){"use strict";l.d(q,{e:()=>D});var g=l(2615);let D=(()=>{class o{isErrorState(A,h){return!!(A&&A.invalid&&(A.touched||h&&h.submitted))}static \u0275fac=function(h){return new(h||o)};static \u0275prov=g.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})()},39336(ke,q,l){"use strict";l.d(q,{X:()=>i});class i{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(p,D,o,e,A){this._defaultMatcher=p,this.ngControl=D,this._parentFormGroup=o,this._parentForm=e,this._stateChanges=A}updateErrorState(){const p=this.errorState,D=this._parentFormGroup||this._parentForm,o=this.matcher||this._defaultMatcher,e=this.ngControl?this.ngControl.control:null,A=o?.isErrorState(e,D)??!1;A!==p&&(this.errorState=A,this._stateChanges.next())}}},9454(ke,q,l){"use strict";l.d(q,{BS:()=>Oe,MY:()=>ge,GK:()=>R,Q6:()=>re,Z2:()=>fe,WN:()=>he});var i=l(73664),g=l(2615),p=l(17705),D=l(21413),o=l(18359),e=l(89726),A=l(18689);const h=new g.nKC("CdkAccordion");let d=(()=>{class Me{_stateChanges=new D.B;_openCloseAllActions=new D.B;id=(0,g.WQX)(e.g).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(oe){this._stateChanges.next(oe)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",p.L39]},exportAs:["cdkAccordion"],features:[i.Jv_([{provide:h,useExisting:Me}]),i.OA$]})}return Me})(),w=(()=>{class Me{accordion=(0,g.WQX)(h,{optional:!0,skipSelf:!0});_changeDetectorRef=(0,g.WQX)(p.gRc);_expansionDispatcher=(0,g.WQX)(A.z);_openCloseAllSubscription=o.yU.EMPTY;closed=new i.bkB;opened=new i.bkB;destroyed=new i.bkB;expandedChange=new i.bkB;id=(0,g.WQX)(e.g).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(oe){this._expanded!==oe&&(this._expanded=oe,this.expandedChange.emit(oe),oe?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}_expanded=!1;get disabled(){return this._disabled()}set disabled(oe){this._disabled.set(oe)}_disabled=(0,g.vPA)(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((oe,Se)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===Se&&this.id!==oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(oe=>{this.disabled||(this.expanded=oe)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",p.L39],disabled:[2,"disabled","disabled",p.L39]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Jv_([{provide:h,useValue:void 0}])]})}return Me})(),f=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({})}return Me})();var F=l(76939),M=l(76838),K=l(64123),j=l(99172),Z=l(5964),ee=l(96697),V=l(10438),Q=l(67336),$=l(983),ie=l(57786),_e=l(31804),ye=l(88968),se=l(32046),pe=l(22466);const L=["body"],t=["bodyWrapper"],s=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],m=["mat-expansion-panel-header","*","mat-action-row"];function u(Me,ve){}const _=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"];function P(Me,ve){1&Me&&(i.rj2(0,"span",1),g.qSk(),i.rj2(1,"svg",2),i.Hgh(2,"path",3),i.eux()())}const C=new g.nKC("MAT_ACCORDION"),a=new g.nKC("MAT_EXPANSION_PANEL");let x=(()=>{class Me{_template=(0,g.WQX)(i.C4Q);_expansionPanel=(0,g.WQX)(a,{optional:!0});constructor(){}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["ng-template","matExpansionPanelContent",""]]})}return Me})();const Y=new g.nKC("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let R=(()=>{class Me extends w{_viewContainerRef=(0,g.WQX)(i.c1b);_animationsDisabled=(0,_e.Rc)();_document=(0,g.WQX)(g.qQL);_ngZone=(0,g.WQX)(i.SKi);_elementRef=(0,g.WQX)(i.aKT);_renderer=(0,g.WQX)(i.sFG);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(oe){this._hideToggle=oe}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(oe){this._togglePosition=oe}_togglePosition;afterExpand=new i.bkB;afterCollapse=new i.bkB;_inputChanges=new D.B;accordion=(0,g.WQX)(C,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=(0,g.WQX)(e.g).getId("mat-expansion-panel-header-");constructor(){super();const oe=(0,g.WQX)(Y,{optional:!0});this._expansionDispatcher=(0,g.WQX)(A.z),oe&&(this.hideToggle=oe.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,j.Z)(null),(0,Z.p)(()=>this.expanded&&!this._portal),(0,ee.s)(1)).subscribe(()=>{this._portal=new F.VA(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(oe){this._inputChanges.next(oe)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){const oe=this._document.activeElement,Se=this._body.nativeElement;return oe===Se||Se.contains(oe)}return!1}_transitionEndListener=({target:oe,propertyName:Se})=>{oe===this._bodyWrapper?.nativeElement&&"grid-template-rows"===Se&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{const oe=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(oe,"transitionend",this._transitionEndListener),oe.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,x,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._lazyContent=$e.first)}},viewQuery:function(Se,be){if(1&Se&&(i.GBs(L,5),i.GBs(t,5)),2&Se){let nt;i.mGM(nt=i.lsd())&&(be._body=nt.first),i.mGM(nt=i.lsd())&&(be._bodyWrapper=nt.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(Se,be){2&Se&&i.AVh("mat-expanded",be.expanded)("mat-expansion-panel-spacing",be._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Jv_([{provide:C,useValue:void 0},{provide:a,useExisting:Me}]),i.Vt3,i.OA$],ngContentSelectors:m,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(Se,be){1&Se&&(i.NAR(s),i.SdG(0),i.j41(1,"div",2,0)(3,"div",3,1)(5,"div",4),i.SdG(6,1),i.DNE(7,u,0,0,"ng-template",5),i.k0s(),i.SdG(8,2),i.k0s()()),2&Se&&(i.R7$(),i.BMQ("inert",be.expanded?null:""),i.R7$(2),i.Y8G("id",be.id),i.BMQ("aria-labelledby",be._headerId),i.R7$(4),i.Y8G("cdkPortalOutlet",be._portal))},dependencies:[F.I3],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,changeDetection:0})}return Me})(),fe=(()=>{class Me{panel=(0,g.WQX)(R,{host:!0});_element=(0,g.WQX)(i.aKT);_focusMonitor=(0,g.WQX)(M.FN);_changeDetectorRef=(0,g.WQX)(p.gRc);_parentChangeSubscription=o.yU.EMPTY;constructor(){(0,g.WQX)(ye.l).load(se.A);const oe=this.panel,Se=(0,g.WQX)(Y,{optional:!0}),be=(0,g.WQX)(new p.ES_("tabindex"),{optional:!0}),nt=oe.accordion?oe.accordion._stateChanges.pipe((0,Z.p)($e=>!(!$e.hideToggle&&!$e.togglePosition))):$.w;this.tabIndex=parseInt(be||"")||0,this._parentChangeSubscription=(0,ie.h)(oe.opened,oe.closed,nt,oe._inputChanges.pipe((0,Z.p)($e=>!!($e.hideToggle||$e.disabled||$e.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),oe.closed.pipe((0,Z.p)(()=>oe._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),Se&&(this.expandedHeight=Se.expandedHeight,this.collapsedHeight=Se.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const oe=this._isExpanded();return oe&&this.expandedHeight?this.expandedHeight:!oe&&this.collapsedHeight?this.collapsedHeight:null}_keydown(oe){switch(oe.keyCode){case V.t6:case V.Fm:(0,Q.rp)(oe)||(oe.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(oe))}}focus(oe,Se){oe?this._focusMonitor.focusVia(this._element,oe,Se):this._element.nativeElement.focus(Se)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(oe=>{oe&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=i.VBU({type:Me,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(Se,be){1&Se&&i.bIt("click",function(){return be._toggle()})("keydown",function($e){return be._keydown($e)}),2&Se&&(i.BMQ("id",be.panel._headerId)("tabindex",be.disabled?-1:be.tabIndex)("aria-controls",be._getPanelId())("aria-expanded",be._isExpanded())("aria-disabled",be.panel.disabled),i.xc7("height",be._getHeaderHeight()),i.AVh("mat-expanded",be._isExpanded())("mat-expansion-toggle-indicator-after","after"===be._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===be._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",oe=>null==oe?0:(0,p.Udg)(oe)]},ngContentSelectors:T,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(Se,be){1&Se&&(i.NAR(_),i.rj2(0,"span",0),i.SdG(1),i.SdG(2,1),i.SdG(3,2),i.eux(),i.nVh(4,P,3,0,"span",1)),2&Se&&(i.AVh("mat-content-hide-toggle",!be._showToggle()),i.R7$(4),i.vxM(be._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}\n'],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return Me})(),he=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=i.FsC({type:Me,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return Me})(),Oe=(()=>{class Me extends d{_keyManager;_ownHeaders=new i.rOR;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe((0,j.Z)(this._headers)).subscribe(oe=>{this._ownHeaders.reset(oe.filter(Se=>Se.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new K.B(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(oe){this._keyManager.onKeydown(oe)}_handleHeaderFocus(oe){this._keyManager.updateActiveItem(oe)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=i.xGo(Me)))(be||Me)}})();static \u0275dir=i.FsC({type:Me,selectors:[["mat-accordion"]],contentQueries:function(Se,be,nt){if(1&Se&&i.wni(nt,fe,5),2&Se){let $e;i.mGM($e=i.lsd())&&(be._headers=$e)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(Se,be){2&Se&&i.AVh("mat-accordion-multi",be.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",p.L39],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[i.Jv_([{provide:C,useExisting:Me}]),i.Vt3]})}return Me})(),ge=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=i.$C({type:Me});static \u0275inj=g.G2t({imports:[pe.y,f,F.jc]})}return Me})()},71228(ke,q,l){"use strict";l.d(q,{R:()=>e});var i=l(72318),g=l(2615),p=l(73664),D=l(69588),o=l(22466);let e=(()=>{class A{static \u0275fac=function(w){return new(w||A)};static \u0275mod=p.$C({type:A});static \u0275inj=g.G2t({imports:[o.y,i.w5,D.rl,o.y]})}return A})()},69588(ke,q,l){"use strict";l.d(q,{xb:()=>Vt,TL:()=>be,rl:()=>Pe,qT:()=>me,MV:()=>nt,nJ:()=>oe,yw:()=>Et});var i=l(89726),g=l(61577),p=l(14085),D=l(39842),o=l(72200),e=l(73664),A=l(2615),h=l(17705),d=l(59295),w=l(18359),f=l(21413),F=l(57786),M=l(99172),K=l(96354),j=l(39974),Z=l(54360),V=l(5964),Q=l(56977),$=l(63610),ie=l(31804);const ye=["notch"],se=["matFormFieldNotchedOutline",""],pe=["*"],Ee=["iconPrefixContainer"],L=["textPrefixContainer"],t=["iconSuffixContainer"],s=["textSuffixContainer"],m=["textField"],u=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],_=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function T(Ue,Qe){1&Ue&&e.nrm(0,"span",21)}function P(Ue,Qe){if(1&Ue&&(e.j41(0,"label",20),e.SdG(1,1),e.nVh(2,T,1,0,"span",21),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("floating",Ie._shouldLabelFloat())("monitorResize",Ie._hasOutline())("id",Ie._labelId),e.BMQ("for",Ie._control.disableAutomaticLabeling?null:Ie._control.id),e.R7$(2),e.vxM(!Ie.hideRequiredMarker&&Ie._control.required?2:-1)}}function C(Ue,Qe){if(1&Ue&&e.nVh(0,P,3,5,"label",20),2&Ue){const Ie=e.XpG();e.vxM(Ie._hasFloatingLabel()?0:-1)}}function a(Ue,Qe){1&Ue&&e.nrm(0,"div",7)}function x(Ue,Qe){}function Y(Ue,Qe){if(1&Ue&&e.DNE(0,x,0,0,"ng-template",13),2&Ue){e.XpG(2);const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function R(Ue,Qe){if(1&Ue&&(e.j41(0,"div",9),e.nVh(1,Y,1,1,null,13),e.k0s()),2&Ue){const Ie=e.XpG();e.Y8G("matFormFieldNotchedOutlineOpen",Ie._shouldLabelFloat()),e.R7$(),e.vxM(Ie._forceDisplayInfixLabel()?-1:1)}}function U(Ue,Qe){1&Ue&&(e.j41(0,"div",10,2),e.SdG(2,2),e.k0s())}function fe(Ue,Qe){1&Ue&&(e.j41(0,"div",11,3),e.SdG(2,3),e.k0s())}function re(Ue,Qe){}function he(Ue,Qe){if(1&Ue&&e.DNE(0,re,0,0,"ng-template",13),2&Ue){e.XpG();const Ie=e.sdS(1);e.Y8G("ngTemplateOutlet",Ie)}}function Oe(Ue,Qe){1&Ue&&(e.j41(0,"div",14,4),e.SdG(2,4),e.k0s())}function ge(Ue,Qe){1&Ue&&(e.j41(0,"div",15,5),e.SdG(2,5),e.k0s())}function ce(Ue,Qe){1&Ue&&e.nrm(0,"div",16)}function Re(Ue,Qe){1&Ue&&(e.j41(0,"div",18),e.SdG(1,6),e.k0s())}function Me(Ue,Qe){if(1&Ue&&(e.j41(0,"mat-hint",22),e.EFF(1),e.k0s()),2&Ue){const Ie=e.XpG(2);e.Y8G("id",Ie._hintLabelId),e.R7$(),e.JRh(Ie.hintLabel)}}function ve(Ue,Qe){if(1&Ue&&(e.j41(0,"div",19),e.nVh(1,Me,2,2,"mat-hint",22),e.SdG(2,7),e.nrm(3,"div",23),e.SdG(4,8),e.k0s()),2&Ue){const Ie=e.XpG();e.R7$(),e.vxM(Ie.hintLabel?1:-1)}}let oe=(()=>{class Ue{static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-label"]]})}return Ue})();const Se=new A.nKC("MatError");let be=(()=>{class Ue{id=(0,A.WQX)(i.g).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(le,Ne){2&le&&e.Avn("id",Ne.id)},inputs:{id:"id"},features:[e.Jv_([{provide:Se,useExisting:Ue}])]})}return Ue})(),nt=(()=>{class Ue{align="start";id=(0,A.WQX)(i.g).getId("mat-mdc-hint-");static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(le,Ne){2&le&&(e.Avn("id",Ne.id),e.BMQ("align",null),e.AVh("mat-mdc-form-field-hint-end","end"===Ne.align))},inputs:{align:"align",id:"id"}})}return Ue})();const $e=new A.nKC("MatPrefix"),yt=new A.nKC("MatSuffix");let Et=(()=>{class Ue{set _isTextSelector(Ie){this._isText=!0}_isText=!1;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[e.Jv_([{provide:yt,useExisting:Ue}])]})}return Ue})();const rt=new A.nKC("FloatingLabelParent");let Mn=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);get floating(){return this._floating}set floating(Ie){this._floating=Ie,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(Ie){this._monitorResize=Ie,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=(0,A.WQX)($.a);_ngZone=(0,A.WQX)(e.SKi);_parent=(0,A.WQX)(rt);_resizeSubscription=new w.yU;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function qt(Ue){if(null!==Ue.offsetParent)return Ue.scrollWidth;const Ie=Ue.cloneNode(!0);Ie.style.setProperty("position","absolute"),Ie.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(Ie);const le=Ie.scrollWidth;return Ie.remove(),le}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-floating-label--float-above",Ne.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return Ue})();const S="mdc-line-ripple--active",Xt="mdc-line-ripple--deactivating";let de=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_cleanupTransitionEnd;constructor(){const Ie=(0,A.WQX)(e.SKi),le=(0,A.WQX)(e.sFG);Ie.runOutsideAngular(()=>{this._cleanupTransitionEnd=le.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){const Ie=this._elementRef.nativeElement.classList;Ie.remove(Xt),Ie.add(S)}deactivate(){this._elementRef.nativeElement.classList.add(Xt)}_handleTransitionEnd=Ie=>{const le=this._elementRef.nativeElement.classList,Ne=le.contains(Xt);"opacity"===Ie.propertyName&&Ne&&le.remove(S,Xt)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return Ue})(),ae=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_ngZone=(0,A.WQX)(e.SKi);open=!1;_notch;ngAfterViewInit(){const Ie=this._elementRef.nativeElement,le=Ie.querySelector(".mdc-floating-label");le?(Ie.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(le.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>le.style.transitionDuration="")}))):Ie.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(Ie){this._notch.nativeElement.style.width=this.open&&Ie?`calc(${Ie}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}_setMaxWidth(Ie){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${Ie}px)`)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(le,Ne){if(1&le&&e.GBs(ye,5),2&le){let ze;e.mGM(ze=e.lsd())&&(Ne._notch=ze.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(le,Ne){2&le&&e.AVh("mdc-notched-outline--notched",Ne.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:se,ngContentSelectors:pe,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(le,Ne){1&le&&(e.NAR(),e.Hgh(0,"div",1),e.rj2(1,"div",2,0),e.SdG(3),e.eux(),e.Hgh(4,"div",3))},encapsulation:2,changeDetection:0})}return Ue})(),me=(()=>{class Ue{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(le){return new(le||Ue)};static \u0275dir=e.FsC({type:Ue})}return Ue})();const Vt=new A.nKC("MatFormField"),hn=new A.nKC("MAT_FORM_FIELD_DEFAULT_OPTIONS");let Pe=(()=>{class Ue{_elementRef=(0,A.WQX)(e.aKT);_changeDetectorRef=(0,A.WQX)(h.gRc);_platform=(0,A.WQX)(D.O);_idGenerator=(0,A.WQX)(i.g);_ngZone=(0,A.WQX)(e.SKi);_defaults=(0,A.WQX)(hn,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=(0,h.ebz)("iconPrefixContainer");_textPrefixContainerSignal=(0,h.ebz)("textPrefixContainer");_iconSuffixContainerSignal=(0,h.ebz)("iconSuffixContainer");_textSuffixContainerSignal=(0,h.ebz)("textSuffixContainer");_prefixSuffixContainers=(0,d.EW)(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(Ie=>Ie?.nativeElement).filter(Ie=>void 0!==Ie));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=(0,h.sbv)(oe);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ie){this._hideRequiredMarker=(0,p.he)(Ie)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(Ie){Ie!==this._floatLabel&&(this._floatLabel=Ie,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(Ie){this._appearanceSignal.set(Ie||this._defaults?.appearance||"fill")}_appearanceSignal=(0,A.vPA)("fill");get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(Ie){this._subscriptSizing=Ie||this._defaults?.subscriptSizing||"fixed"}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(Ie){this._hintLabel=Ie,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(Ie){this._explicitFormFieldControl=Ie}_destroyed=new f.B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=(0,ie.Rc)();constructor(){const Ie=this._defaults,le=(0,A.WQX)(g.dS);Ie&&(Ie.appearance&&(this.appearance=Ie.appearance),this._hideRequiredMarker=!!Ie?.hideRequiredMarker,Ie.color&&(this.color=Ie.color)),(0,d.QZ)(()=>this._currentDirection=le.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=(0,d.EW)(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(Ie){const le=this._control,Ne="mat-mdc-form-field-type-";Ie&&this._elementRef.nativeElement.classList.remove(Ne+Ie.controlType),le.controlType&&this._elementRef.nativeElement.classList.add(Ne+le.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=le.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=le.stateChanges.pipe((0,M.Z)([void 0,void 0]),(0,K.T)(()=>[le.errorState,le.userAriaDescribedBy]),function ee(){return(0,j.N)((Ue,Qe)=>{let Ie,le=!1;Ue.subscribe((0,Z._)(Qe,Ne=>{const ze=Ie;Ie=Ne,le&&Qe.next([ze,Ne]),le=!0}))})}(),(0,V.p)(([[ze,Je],[gt,zt]])=>ze!==gt||Je!==zt)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),le.ngControl&&le.ngControl.valueChanges&&(this._valueChanges=le.ngControl.valueChanges.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(Ie=>!Ie._isText),this._hasTextPrefix=!!this._prefixChildren.find(Ie=>Ie._isText),this._hasIconSuffix=!!this._suffixChildren.find(Ie=>!Ie._isText),this._hasTextSuffix=!!this._suffixChildren.find(Ie=>Ie._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,F.h)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){const Ie=this._control.focused;Ie&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!Ie&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",Ie),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",Ie)}_syncOutlineLabelOffset(){(0,h.uEv)({earlyRead:()=>{if("outline"!==this._appearanceSignal())return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(const Ie of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(Ie,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:Ie=>this._writeOutlinedLabelStyles(Ie())})}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=(0,d.EW)(()=>!!this._labelChild());_shouldLabelFloat(){return!!this._hasFloatingLabel()&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_shouldForward(Ie){const le=this._control?this._control.ngControl:null;return le&&le[Ie]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let Ie=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ie.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getSubscriptMessageType()){const ze=this._hintChildren?this._hintChildren.find(gt=>"start"===gt.align):null,Je=this._hintChildren?this._hintChildren.find(gt=>"end"===gt.align):null;ze?Ie.push(ze.id):this._hintLabel&&Ie.push(this._hintLabelId),Je&&Ie.push(Je.id)}else this._errorChildren&&Ie.push(...this._errorChildren.map(ze=>ze.id));const le=this._control.describedByIds;let Ne;if(le){const ze=this._describedByIds||Ie;Ne=Ie.concat(le.filter(Je=>Je&&!ze.includes(Je)))}else Ne=Ie;this._control.setDescribedByIds(Ne),this._describedByIds=Ie}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;const Ie=this._iconPrefixContainer?.nativeElement,le=this._textPrefixContainer?.nativeElement,Ne=this._iconSuffixContainer?.nativeElement,ze=this._textSuffixContainer?.nativeElement,Je=Ie?.getBoundingClientRect().width??0,gt=le?.getBoundingClientRect().width??0,zt=Ne?.getBoundingClientRect().width??0,Ye=ze?.getBoundingClientRect().width??0;return[`var(--mat-mdc-form-field-label-transform, translateY(-50%) translateX(calc(${"rtl"===this._currentDirection?"-1":"1"} * (${Je+gt}px + var(--mat-mdc-form-field-label-offset-x, 0px)))))`,Je+gt+zt+Ye]}_writeOutlinedLabelStyles(Ie){if(null!==Ie){const[le,Ne]=Ie;this._floatingLabel&&(this._floatingLabel.element.style.transform=le),null!==Ne&&this._notchedOutline?._setMaxWidth(Ne)}}_isAttachedToDom(){const Ie=this._elementRef.nativeElement;if(Ie.getRootNode){const le=Ie.getRootNode();return le&&le!==Ie}return document.documentElement.contains(Ie)}static \u0275fac=function(le){return new(le||Ue)};static \u0275cmp=e.VBU({type:Ue,selectors:[["mat-form-field"]],contentQueries:function(le,Ne,ze){if(1&le&&(e.C6U(ze,Ne._labelChild,oe,5),e.wni(ze,me,5),e.wni(ze,$e,5),e.wni(ze,yt,5),e.wni(ze,Se,5),e.wni(ze,nt,5)),2&le){let Je;e.NyB(),e.mGM(Je=e.lsd())&&(Ne._formFieldControl=Je.first),e.mGM(Je=e.lsd())&&(Ne._prefixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._suffixChildren=Je),e.mGM(Je=e.lsd())&&(Ne._errorChildren=Je),e.mGM(Je=e.lsd())&&(Ne._hintChildren=Je)}},viewQuery:function(le,Ne){if(1&le&&(e.wEZ(Ne._iconPrefixContainerSignal,Ee,5),e.wEZ(Ne._textPrefixContainerSignal,L,5),e.wEZ(Ne._iconSuffixContainerSignal,t,5),e.wEZ(Ne._textSuffixContainerSignal,s,5),e.GBs(m,5),e.GBs(Ee,5),e.GBs(L,5),e.GBs(t,5),e.GBs(s,5),e.GBs(Mn,5),e.GBs(ae,5),e.GBs(de,5)),2&le){let ze;e.NyB(4),e.mGM(ze=e.lsd())&&(Ne._textField=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textPrefixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._iconSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._textSuffixContainer=ze.first),e.mGM(ze=e.lsd())&&(Ne._floatingLabel=ze.first),e.mGM(ze=e.lsd())&&(Ne._notchedOutline=ze.first),e.mGM(ze=e.lsd())&&(Ne._lineRipple=ze.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(le,Ne){2&le&&e.AVh("mat-mdc-form-field-label-always-float",Ne._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Ne._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Ne._hasIconSuffix)("mat-form-field-invalid",Ne._control.errorState)("mat-form-field-disabled",Ne._control.disabled)("mat-form-field-autofilled",Ne._control.autofilled)("mat-form-field-appearance-fill","fill"==Ne.appearance)("mat-form-field-appearance-outline","outline"==Ne.appearance)("mat-form-field-hide-placeholder",Ne._hasFloatingLabel()&&!Ne._shouldLabelFloat())("mat-primary","accent"!==Ne.color&&"warn"!==Ne.color)("mat-accent","accent"===Ne.color)("mat-warn","warn"===Ne.color)("ng-untouched",Ne._shouldForward("untouched"))("ng-touched",Ne._shouldForward("touched"))("ng-pristine",Ne._shouldForward("pristine"))("ng-dirty",Ne._shouldForward("dirty"))("ng-valid",Ne._shouldForward("valid"))("ng-invalid",Ne._shouldForward("invalid"))("ng-pending",Ne._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e.Jv_([{provide:Vt,useExisting:Ue},{provide:rt,useExisting:Ue}])],ngContentSelectors:_,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(le,Ne){if(1&le){const ze=e.RV6();e.NAR(u),e.DNE(0,C,1,1,"ng-template",null,0,e.C5r),e.j41(2,"div",6,1),e.bIt("click",function(gt){return A.eBV(ze),A.Njj(Ne._control.onContainerClick(gt))}),e.nVh(4,a,1,0,"div",7),e.j41(5,"div",8),e.nVh(6,R,2,2,"div",9),e.nVh(7,U,3,0,"div",10),e.nVh(8,fe,3,0,"div",11),e.j41(9,"div",12),e.nVh(10,he,1,1,null,13),e.SdG(11),e.k0s(),e.nVh(12,Oe,3,0,"div",14),e.nVh(13,ge,3,0,"div",15),e.k0s(),e.nVh(14,ce,1,0,"div",16),e.k0s(),e.j41(15,"div",17),e.nVh(16,Re,2,0,"div",18)(17,ve,5,1,"div",19),e.k0s()}if(2&le){let ze;e.R7$(2),e.AVh("mdc-text-field--filled",!Ne._hasOutline())("mdc-text-field--outlined",Ne._hasOutline())("mdc-text-field--no-label",!Ne._hasFloatingLabel())("mdc-text-field--disabled",Ne._control.disabled)("mdc-text-field--invalid",Ne._control.errorState),e.R7$(2),e.vxM(Ne._hasOutline()||Ne._control.disabled?-1:4),e.R7$(2),e.vxM(Ne._hasOutline()?6:-1),e.R7$(),e.vxM(Ne._hasIconPrefix?7:-1),e.R7$(),e.vxM(Ne._hasTextPrefix?8:-1),e.R7$(2),e.vxM(!Ne._hasOutline()||Ne._forceDisplayInfixLabel()?10:-1),e.R7$(2),e.vxM(Ne._hasTextSuffix?12:-1),e.R7$(),e.vxM(Ne._hasIconSuffix?13:-1),e.R7$(),e.vxM(Ne._hasOutline()?-1:14),e.R7$(),e.AVh("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Ne.subscriptSizing);const Je=Ne._getSubscriptMessageType();e.R7$(),e.vxM("error"===(ze=Je)?16:"hint"===ze?17:-1)}},dependencies:[Mn,ae,o.T3,de,nt],styles:['.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}\n'],encapsulation:2,changeDetection:0})}return Ue})()},82885(ke,q,l){"use strict";l.d(q,{B_:()=>Y,Fe:()=>R,NS:()=>pe});class i{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){const fe=Math.max(...this.tracker);return fe>1?this.rowCount+fe-1:this.rowCount}positions;update(fe,re){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(fe),this.tracker.fill(0,0,this.tracker.length),this.positions=re.map(he=>this._trackTile(he))}_trackTile(fe){const re=this._findMatchingGap(fe.colspan);return this._markTilePosition(re,fe),this.columnIndex=re+fe.colspan,new g(this.rowIndex,re)}_findMatchingGap(fe){let re=-1,he=-1;do{this.columnIndex+fe>this.tracker.length?(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)):(re=this.tracker.indexOf(0,this.columnIndex),-1!=re?(he=this._findGapEndIndex(re),this.columnIndex=re+1):(this._nextRow(),re=this.tracker.indexOf(0,this.columnIndex),he=this._findGapEndIndex(re)))}while(he-re{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[e.y,e.y]})}return U})();var M=l(67847),K=l(61577);const $=["*"],se=new o.nKC("MAT_GRID_LIST");let pe=(()=>{class U{_element=(0,o.WQX)(D.aKT);_gridList=(0,o.WQX)(se,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(re){this._rowspan=Math.round((0,M.OE)(re))}get colspan(){return this._colspan}set colspan(re){this._colspan=Math.round((0,M.OE)(re))}_setStyle(re,he){this._element.nativeElement.style[re]=he}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(he,Oe){2&he&&D.BMQ("rowspan",Oe.rowspan)("colspan",Oe.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:$,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div",0),D.SdG(1),D.eux())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0})}return U})();const m=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class u{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(fe,re,he,Oe){this._gutterSize=a(fe),this._rows=re.rowCount,this._rowspan=re.rowspan,this._cols=he,this._direction=Oe}getBaseTileSize(fe,re){return`(${fe}% - (${this._gutterSize} * ${re}))`}getTilePosition(fe,re){return 0===re?"0":C(`(${fe} + ${this._gutterSize}) * ${re}`)}getTileSize(fe,re){return`(${fe} * ${re}) + (${re-1} * ${this._gutterSize})`}setStyle(fe,re,he){let Oe=100/this._cols,ge=(this._cols-1)/this._cols;this.setColStyles(fe,he,Oe,ge),this.setRowStyles(fe,re,Oe,ge)}setColStyles(fe,re,he,Oe){let ge=this.getBaseTileSize(he,Oe);fe._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(ge,re)),fe._setStyle("width",C(this.getTileSize(ge,fe.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(fe){return`${this._rowspan} * ${this.getTileSize(fe,1)}`}getComputedHeight(){return null}}class _ extends u{fixedRowHeight;constructor(fe){super(),this.fixedRowHeight=fe}init(fe,re,he,Oe){super.init(fe,re,he,Oe),this.fixedRowHeight=a(this.fixedRowHeight),m.test(this.fixedRowHeight)}setRowStyles(fe,re){fe._setStyle("top",this.getTilePosition(this.fixedRowHeight,re)),fe._setStyle("height",C(this.getTileSize(this.fixedRowHeight,fe.rowspan)))}getComputedHeight(){return["height",C(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["height",null]),fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}class T extends u{rowHeightRatio;baseTileHeight;constructor(fe){super(),this._parseRatio(fe)}setRowStyles(fe,re,he,Oe){this.baseTileHeight=this.getBaseTileSize(he/this.rowHeightRatio,Oe),fe._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,re)),fe._setStyle("paddingTop",C(this.getTileSize(this.baseTileHeight,fe.rowspan)))}getComputedHeight(){return["paddingBottom",C(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(fe){fe._setListStyle(["paddingBottom",null]),fe._tiles.forEach(re=>{re._setStyle("marginTop",null),re._setStyle("paddingTop",null)})}_parseRatio(fe){const re=fe.split(":");this.rowHeightRatio=parseFloat(re[0])/parseFloat(re[1])}}class P extends u{setRowStyles(fe,re){let ge=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);fe._setStyle("top",this.getTilePosition(ge,re)),fe._setStyle("height",C(this.getTileSize(ge,fe.rowspan)))}reset(fe){fe._tiles&&fe._tiles.forEach(re=>{re._setStyle("top",null),re._setStyle("height",null)})}}function C(U){return`calc(${U})`}function a(U){return U.match(/([A-Za-z%]+)$/)?U:`${U}px`}let Y=(()=>{class U{_element=(0,o.WQX)(D.aKT);_dir=(0,o.WQX)(K.dS,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(re){this._cols=Math.max(1,Math.round((0,M.OE)(re)))}get gutterSize(){return this._gutter}set gutterSize(re){this._gutter=`${re??""}`}get rowHeight(){return this._rowHeight}set rowHeight(re){const he=`${re??""}`;he!==this._rowHeight&&(this._rowHeight=he,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(re){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===re?new P:re&&re.indexOf(":")>-1?new T(re):new _(re)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new i);const re=this._tileCoordinator,he=this._tiles.filter(ge=>!ge._gridList||ge._gridList===this),Oe=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,he),this._tileStyler.init(this.gutterSize,re,this.cols,Oe),he.forEach((ge,ce)=>{const Re=re.positions[ce];this._tileStyler.setStyle(ge,Re.row,Re.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(re){re&&(this._element.nativeElement.style[re[0]]=re[1])}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=D.VBU({type:U,selectors:[["mat-grid-list"]],contentQueries:function(he,Oe,ge){if(1&he&&D.wni(ge,pe,5),2&he){let ce;D.mGM(ce=D.lsd())&&(Oe._tiles=ce)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(he,Oe){2&he&&D.BMQ("cols",Oe.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[D.Jv_([{provide:se,useExisting:U}])],ngContentSelectors:$,decls:2,vars:0,template:function(he,Oe){1&he&&(D.NAR(),D.rj2(0,"div"),D.SdG(1),D.eux())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}\n"],encapsulation:2,changeDetection:0})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=D.$C({type:U});static \u0275inj=o.G2t({imports:[F,e.y,F,e.y]})}return U})()},22598(ke,q,l){"use strict";l.d(q,{iM:()=>M,iY:()=>K});var i=l(73664),g=l(17705),p=l(2615),D=l(76838),o=l(88968),e=l(11048),A=l(32046),h=l(31804);const d=["mat-icon-button",""],w=["*"],f=new p.nKC("MAT_BUTTON_CONFIG");function F(Z){return null==Z?void 0:(0,g.Udg)(Z)}let M=(()=>{class Z{_elementRef=(0,p.WQX)(i.aKT);_ngZone=(0,p.WQX)(i.SKi);_animationsDisabled=(0,h.Rc)();_config=(0,p.WQX)(f,{optional:!0});_focusMonitor=(0,p.WQX)(D.FN);_cleanupClick;_renderer=(0,p.WQX)(i.sFG);_rippleLoader=(0,p.WQX)(e.E);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=V,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(V){this._disabled=V,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(V){this.tabIndex=V}constructor(){(0,p.WQX)(o.l).load(A.A);const V=this._elementRef.nativeElement;this._isAnchor="A"===V.tagName,this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(V,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(V="program",Q){V?this._focusMonitor.focusVia(this._elementRef.nativeElement,V,Q):this._elementRef.nativeElement.focus(Q)}_getAriaDisabled(){return null!=this.ariaDisabled?this.ariaDisabled:this._isAnchor?this.disabled||null:!(!this.disabled||!this.disabledInteractive)||null}_getDisabledAttribute(){return!(this.disabledInteractive||!this.disabled)||null}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor&&this.disabled&&!this.disabledInteractive?-1:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",V=>{this.disabled&&(V.preventDefault(),V.stopImmediatePropagation())}))}static \u0275fac=function(Q){return new(Q||Z)};static \u0275dir=i.FsC({type:Z,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(Q,$){2&Q&&(i.BMQ("disabled",$._getDisabledAttribute())("aria-disabled",$._getAriaDisabled())("tabindex",$._getTabIndex()),i.HbH($.color?"mat-"+$.color:""),i.AVh("mat-mdc-button-disabled",$.disabled)("mat-mdc-button-disabled-interactive",$.disabledInteractive)("mat-unthemed",!$.color)("_mat-animation-noopable",$._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",g.L39],disabled:[2,"disabled","disabled",g.L39],ariaDisabled:[2,"aria-disabled","ariaDisabled",g.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",g.L39],tabIndex:[2,"tabIndex","tabIndex",F],_tabindex:[2,"tabindex","_tabindex",F]}})}return Z})(),K=(()=>{class Z extends M{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=i.VBU({type:Z,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[i.Vt3],attrs:d,ngContentSelectors:w,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(Q,$){1&Q&&(i.NAR(),i.Hgh(0,"span",0),i.SdG(1),i.Hgh(2,"span",1)(3,"span",2))},styles:['.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}\n',"@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}\n"],encapsulation:2,changeDetection:0})}return Z})()},12629(ke,q,l){"use strict";l.d(q,{An:()=>Y,m_:()=>R});var i=l(73664),g=l(2615),p=l(17705),D=l(18359),o=l(96697),e=l(29330),A=l(345),h=l(7673),d=l(18810),w=l(27468),f=l(88141),F=l(96354),M=l(99437),K=l(70980),j=l(97647);let Z;function V(U){return function ee(){if(void 0===Z&&(Z=null,typeof window<"u")){const U=window;void 0!==U.trustedTypes&&(Z=U.trustedTypes.createPolicy("angular#components",{createHTML:fe=>fe}))}return Z}()?.createHTML(U)||U}function Q(U){return Error(`Unable to find icon with the name "${U}"`)}function ie(U){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${U}".`)}function _e(U){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${U}".`)}class ye{url;svgText;options;svgElement;constructor(fe,re,he){this.url=fe,this.svgText=re,this.options=he}}let se=(()=>{class U{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(re,he,Oe,ge){this._httpClient=re,this._sanitizer=he,this._errorHandler=ge,this._document=Oe}addSvgIcon(re,he,Oe){return this.addSvgIconInNamespace("",re,he,Oe)}addSvgIconLiteral(re,he,Oe){return this.addSvgIconLiteralInNamespace("",re,he,Oe)}addSvgIconInNamespace(re,he,Oe,ge){return this._addSvgIconConfig(re,he,new ye(Oe,null,ge))}addSvgIconResolver(re){return this._resolvers.push(re),this}addSvgIconLiteralInNamespace(re,he,Oe,ge){const ce=this._sanitizer.sanitize(i.WPN.HTML,Oe);if(!ce)throw _e(Oe);const Re=V(ce);return this._addSvgIconConfig(re,he,new ye("",Re,ge))}addSvgIconSet(re,he){return this.addSvgIconSetInNamespace("",re,he)}addSvgIconSetLiteral(re,he){return this.addSvgIconSetLiteralInNamespace("",re,he)}addSvgIconSetInNamespace(re,he,Oe){return this._addSvgIconSetConfig(re,new ye(he,null,Oe))}addSvgIconSetLiteralInNamespace(re,he,Oe){const ge=this._sanitizer.sanitize(i.WPN.HTML,he);if(!ge)throw _e(he);const ce=V(ge);return this._addSvgIconSetConfig(re,new ye("",ce,Oe))}registerFontClassAlias(re,he=re){return this._fontCssClassesByAlias.set(re,he),this}classNameForFontAlias(re){return this._fontCssClassesByAlias.get(re)||re}setDefaultFontSetClass(...re){return this._defaultFontSetClass=re,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(re){const he=this._sanitizer.sanitize(i.WPN.RESOURCE_URL,re);if(!he)throw ie(re);const Oe=this._cachedIconsByUrl.get(he);return Oe?(0,h.of)(L(Oe)):this._loadSvgIconFromConfig(new ye(re,null)).pipe((0,f.M)(ge=>this._cachedIconsByUrl.set(he,ge)),(0,F.T)(ge=>L(ge)))}getNamedSvgIcon(re,he=""){const Oe=t(he,re);let ge=this._svgIconConfigs.get(Oe);if(ge)return this._getSvgFromConfig(ge);if(ge=this._getIconConfigFromResolvers(he,re),ge)return this._svgIconConfigs.set(Oe,ge),this._getSvgFromConfig(ge);const ce=this._iconSetConfigs.get(he);return ce?this._getSvgFromIconSetConfigs(re,ce):(0,d.$)(Q(Oe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(re){return re.svgText?(0,h.of)(L(this._svgElementFromConfig(re))):this._loadSvgIconFromConfig(re).pipe((0,F.T)(he=>L(he)))}_getSvgFromIconSetConfigs(re,he){const Oe=this._extractIconWithNameFromAnySet(re,he);if(Oe)return(0,h.of)(Oe);const ge=he.filter(ce=>!ce.svgText).map(ce=>this._loadSvgIconSetFromConfig(ce).pipe((0,M.W)(Re=>{const ve=`Loading icon set URL: ${this._sanitizer.sanitize(i.WPN.RESOURCE_URL,ce.url)} failed: ${Re.message}`;return this._errorHandler.handleError(new Error(ve)),(0,h.of)(null)})));return(0,w.p)(ge).pipe((0,F.T)(()=>{const ce=this._extractIconWithNameFromAnySet(re,he);if(!ce)throw Q(re);return ce}))}_extractIconWithNameFromAnySet(re,he){for(let Oe=he.length-1;Oe>=0;Oe--){const ge=he[Oe];if(ge.svgText&&ge.svgText.toString().indexOf(re)>-1){const ce=this._svgElementFromConfig(ge),Re=this._extractSvgIconFromSet(ce,re,ge.options);if(Re)return Re}}return null}_loadSvgIconFromConfig(re){return this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he),(0,F.T)(()=>this._svgElementFromConfig(re)))}_loadSvgIconSetFromConfig(re){return re.svgText?(0,h.of)(null):this._fetchIcon(re).pipe((0,f.M)(he=>re.svgText=he))}_extractSvgIconFromSet(re,he,Oe){const ge=re.querySelector(`[id="${he}"]`);if(!ge)return null;const ce=ge.cloneNode(!0);if(ce.removeAttribute("id"),"svg"===ce.nodeName.toLowerCase())return this._setSvgAttributes(ce,Oe);if("symbol"===ce.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ce),Oe);const Re=this._svgElementFromString(V(""));return Re.appendChild(ce),this._setSvgAttributes(Re,Oe)}_svgElementFromString(re){const he=this._document.createElement("DIV");he.innerHTML=re;const Oe=he.querySelector("svg");if(!Oe)throw Error(" tag not found");return Oe}_toSvgElement(re){const he=this._svgElementFromString(V("")),Oe=re.attributes;for(let ge=0;geV(ve)),(0,K.j)(()=>this._inProgressUrlFetches.delete(ce)),(0,j.u)());return this._inProgressUrlFetches.set(ce,Me),Me}_addSvgIconConfig(re,he,Oe){return this._svgIconConfigs.set(t(re,he),Oe),this}_addSvgIconSetConfig(re,he){const Oe=this._iconSetConfigs.get(re);return Oe?Oe.push(he):this._iconSetConfigs.set(re,[he]),this}_svgElementFromConfig(re){if(!re.svgElement){const he=this._svgElementFromString(re.svgText);this._setSvgAttributes(he,re.options),re.svgElement=he}return re.svgElement}_getIconConfigFromResolvers(re,he){for(let Oe=0;Oefe?fe.pathname+fe.search:""}}}),C=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],a=C.map(U=>`[${U}]`).join(", "),x=/^url\(['"]?#(.*?)['"]?\)$/;let Y=(()=>{class U{_elementRef=(0,g.WQX)(i.aKT);_iconRegistry=(0,g.WQX)(se);_location=(0,g.WQX)(T);_errorHandler=(0,g.WQX)(g.zcH);_defaultColor;get color(){return this._color||this._defaultColor}set color(re){this._color=re}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(re){re!==this._svgIcon&&(re?this._updateSvgIcon(re):this._svgIcon&&this._clearSvgElement(),this._svgIcon=re)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(re){const he=this._cleanupFontValue(re);he!==this._fontSet&&(this._fontSet=he,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(re){const he=this._cleanupFontValue(re);he!==this._fontIcon&&(this._fontIcon=he,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=D.yU.EMPTY;constructor(){const re=(0,g.WQX)(new p.ES_("aria-hidden"),{optional:!0}),he=(0,g.WQX)(_,{optional:!0});he&&(he.color&&(this.color=this._defaultColor=he.color),he.fontSet&&(this.fontSet=he.fontSet)),re||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(re){if(!re)return["",""];const he=re.split(":");switch(he.length){case 1:return["",he[0]];case 2:return he;default:throw Error(`Invalid icon name: "${re}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const re=this._elementsWithExternalReferences;if(re&&re.size){const he=this._location.getPathname();he!==this._previousPath&&(this._previousPath=he,this._prependPathToReferences(he))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(re){this._clearSvgElement();const he=this._location.getPathname();this._previousPath=he,this._cacheChildrenWithExternalReferences(re),this._prependPathToReferences(he),this._elementRef.nativeElement.appendChild(re)}_clearSvgElement(){const re=this._elementRef.nativeElement;let he=re.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();he--;){const Oe=re.childNodes[he];(1!==Oe.nodeType||"svg"===Oe.nodeName.toLowerCase())&&Oe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const re=this._elementRef.nativeElement,he=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Oe=>Oe.length>0);this._previousFontSetClass.forEach(Oe=>re.classList.remove(Oe)),he.forEach(Oe=>re.classList.add(Oe)),this._previousFontSetClass=he,this.fontIcon!==this._previousFontIconClass&&!he.includes("mat-ligature-font")&&(this._previousFontIconClass&&re.classList.remove(this._previousFontIconClass),this.fontIcon&&re.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(re){return"string"==typeof re?re.trim().split(" ")[0]:re}_prependPathToReferences(re){const he=this._elementsWithExternalReferences;he&&he.forEach((Oe,ge)=>{Oe.forEach(ce=>{ge.setAttribute(ce.name,`url('${re}#${ce.value}')`)})})}_cacheChildrenWithExternalReferences(re){const he=re.querySelectorAll(a),Oe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ge=0;ge{const Re=he[ge],Me=Re.getAttribute(ce),ve=Me?Me.match(x):null;if(ve){let oe=Oe.get(Re);oe||(oe=[],Oe.set(Re,oe)),oe.push({name:ce,value:ve[1]})}})}_updateSvgIcon(re){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),re){const[he,Oe]=this._splitIconName(re);he&&(this._svgNamespace=he),Oe&&(this._svgName=Oe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Oe,he).pipe((0,o.s)(1)).subscribe(ge=>this._setSvgElement(ge),ge=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${he}:${Oe}! ${ge.message}`))})}}static \u0275fac=function(he){return new(he||U)};static \u0275cmp=i.VBU({type:U,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(he,Oe){2&he&&(i.BMQ("data-mat-icon-type",Oe._usingFontIcon()?"font":"svg")("data-mat-icon-name",Oe._svgName||Oe.fontIcon)("data-mat-icon-namespace",Oe._svgNamespace||Oe.fontSet)("fontIcon",Oe._usingFontIcon()?Oe.fontIcon:null),i.HbH(Oe.color?"mat-"+Oe.color:""),i.AVh("mat-icon-inline",Oe.inline)("mat-icon-no-color","primary"!==Oe.color&&"accent"!==Oe.color&&"warn"!==Oe.color))},inputs:{color:"color",inline:[2,"inline","inline",p.L39],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:u,decls:1,vars:0,template:function(he,Oe){1&he&&(i.NAR(),i.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0})}return U})(),R=(()=>{class U{static \u0275fac=function(he){return new(he||U)};static \u0275mod=i.$C({type:U});static \u0275inj=g.G2t({imports:[m.y,m.y]})}return U})()},68010(ke,q,l){"use strict";l.d(q,{O:()=>g});const g=new(l(2615).nKC)("MAT_INPUT_VALUE_ACCESSOR")},33746(ke,q,l){"use strict";l.d(q,{fg:()=>ce,fS:()=>Re});var i=l(14085),g=l(39842);let o;const e=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function A(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(e),o;let Me=document.createElement("input");return o=new Set(e.filter(ve=>(Me.setAttribute("type",ve),Me.type===ve))),o}var h=l(73664),d=l(2615),w=l(983),f=l(21413),F=l(88968),M=l(67847);let L=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=h.VBU({type:Me,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(Se,be){},styles:["textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}\n"],encapsulation:2,changeDetection:0})}return Me})();const t={passive:!0};let s=(()=>{class Me{_platform=(0,d.WQX)(g.O);_ngZone=(0,d.WQX)(h.SKi);_renderer=(0,d.WQX)(h._9s).createRenderer(null,null);_styleLoader=(0,d.WQX)(F.l);_monitoredElements=new Map;constructor(){}monitor(oe){if(!this._platform.isBrowser)return w.w;this._styleLoader.load(L);const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);if(be)return be.subject;const nt=new f.B,$e="cdk-text-field-autofilled",dt=Et=>{"cdk-text-field-autofill-start"!==Et.animationName||Se.classList.contains($e)?"cdk-text-field-autofill-end"===Et.animationName&&Se.classList.contains($e)&&(Se.classList.remove($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!1}))):(Se.classList.add($e),this._ngZone.run(()=>nt.next({target:Et.target,isAutofilled:!0})))},yt=this._ngZone.runOutsideAngular(()=>(Se.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(Se,"animationstart",dt,t)));return this._monitoredElements.set(Se,{subject:nt,unlisten:yt}),nt}stopMonitoring(oe){const Se=(0,M.i8)(oe),be=this._monitoredElements.get(Se);be&&(be.unlisten(),be.subject.complete(),Se.classList.remove("cdk-text-field-autofill-monitored"),Se.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(Se))}ngOnDestroy(){this._monitoredElements.forEach((oe,Se)=>this.stopMonitoring(Se))}static \u0275fac=function(Se){return new(Se||Me)};static \u0275prov=d.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})(),_=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({})}return Me})();var T=l(59295),P=l(17705),C=l(89726),a=l(89417),x=l(68010),Y=l(69588),R=l(2709),U=l(39336),fe=l(71228),re=l(22466);const Oe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],ge=new d.nKC("MAT_INPUT_CONFIG");let ce=(()=>{class Me{_elementRef=(0,d.WQX)(h.aKT);_platform=(0,d.WQX)(g.O);ngControl=(0,d.WQX)(a.vO,{optional:!0,self:!0});_autofillMonitor=(0,d.WQX)(s);_ngZone=(0,d.WQX)(h.SKi);_formField=(0,d.WQX)(Y.xb,{optional:!0});_renderer=(0,d.WQX)(h.sFG);_uid=(0,d.WQX)(C.g).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=(0,d.WQX)(ge,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new f.B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(oe){this._disabled=(0,i.he)(oe),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(oe){this._id=oe||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(a.k0.required)??!1}set required(oe){this._required=(0,i.he)(oe)}_required;get type(){return this._type}set type(oe){this._type=oe||"text",this._validateType(),!this._isTextarea&&A().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(oe){this._errorStateTracker.matcher=oe}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(oe){oe!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(oe):this._inputValueAccessor.value=oe,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(oe){this._readonly=(0,i.he)(oe)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(oe){this._errorStateTracker.errorState=oe}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(oe=>A().has(oe));constructor(){const oe=(0,d.WQX)(a.cV,{optional:!0}),Se=(0,d.WQX)(a.j4,{optional:!0}),be=(0,d.WQX)(R.e),nt=(0,d.WQX)(x.O,{optional:!0,self:!0}),$e=this._elementRef.nativeElement,dt=$e.nodeName.toLowerCase();nt?(0,d.Hps)(nt.value)?this._signalBasedValueAccessor=nt:this._inputValueAccessor=nt:this._inputValueAccessor=$e,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen($e,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new U.X(be,this.ngControl,Se,oe,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===dt,this._isTextarea="textarea"===dt,this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=$e.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&(0,T.QZ)(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(oe=>{this.autofilled=oe.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(oe){this._elementRef.nativeElement.focus(oe)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(oe){if(oe!==this.focused){if(!this._isNativeSelect&&oe&&this.disabled&&this.disabledInteractive){const Se=this._elementRef.nativeElement;"number"===Se.type?(Se.type="text",Se.setSelectionRange(0,0),Se.type="number"):Se.setSelectionRange(0,0)}this.focused=oe,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){const oe=this._elementRef.nativeElement.value;this._previousNativeValue!==oe&&(this._previousNativeValue=oe,this.stateChanges.next())}_dirtyCheckPlaceholder(){const oe=this._getPlaceholder();if(oe!==this._previousPlaceholder){const Se=this._elementRef.nativeElement;this._previousPlaceholder=oe,oe?Se.setAttribute("placeholder",oe):Se.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){Oe.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let oe=this._elementRef.nativeElement.validity;return oe&&oe.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const oe=this._elementRef.nativeElement,Se=oe.options[0];return this.focused||oe.multiple||!this.empty||!!(oe.selectedIndex>-1&&Se&&Se.label)}return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(oe){const Se=this._elementRef.nativeElement;oe.length?Se.setAttribute("aria-describedby",oe.join(" ")):Se.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const oe=this._elementRef.nativeElement;return this._isNativeSelect&&(oe.multiple||oe.size>1)}_iOSKeyupListener=oe=>{const Se=oe.target;!Se.value&&0===Se.selectionStart&&0===Se.selectionEnd&&(Se.setSelectionRange(1,1),Se.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(Se){return new(Se||Me)};static \u0275dir=h.FsC({type:Me,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(Se,be){1&Se&&h.bIt("focus",function(){return be._focusChanged(!0)})("blur",function(){return be._focusChanged(!1)})("input",function(){return be._onInput()}),2&Se&&(h.Avn("id",be.id)("disabled",be.disabled&&!be.disabledInteractive)("required",be.required),h.BMQ("name",be.name||null)("readonly",be._getReadonlyAttribute())("aria-disabled",be.disabled&&be.disabledInteractive?"true":null)("aria-invalid",be.empty&&be.required?null:be.errorState)("aria-required",be.required)("id",be.id),h.AVh("mat-input-server",be._isServer)("mat-mdc-form-field-textarea-control",be._isInFormField&&be._isTextarea)("mat-mdc-form-field-input-control",be._isInFormField)("mat-mdc-input-disabled-interactive",be.disabledInteractive)("mdc-text-field__input",be._isInFormField)("mat-mdc-native-select-inline",be._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",P.L39]},exportAs:["matInput"],features:[h.Jv_([{provide:Y.qT,useExisting:Me}]),h.OA$]})}return Me})(),Re=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=h.$C({type:Me});static \u0275inj=d.G2t({imports:[re.y,fe.R,fe.R,_,re.y]})}return Me})()},53155(ke,q,l){"use strict";l.d(q,{t:()=>D});var i=l(73664);const g=["mat-internal-form-field",""],p=["*"];let D=(()=>{class o{labelPosition;static \u0275fac=function(h){return new(h||o)};static \u0275cmp=i.VBU({type:o,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(h,d){2&h&&i.AVh("mdc-form-field--align-end","before"===d.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:g,ngContentSelectors:p,decls:1,vars:0,template:function(h,d){1&h&&(i.NAR(),i.SdG(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}\n"],encapsulation:2,changeDetection:0})}return o})()},3902(ke,q,l){"use strict";l.d(q,{Fg:()=>Fe,YE:()=>me,jt:()=>ae});var g=l(14085),p=l(67847),D=l(2615),o=l(73664),A=(l(17705),l(39842)),d=(l(44522),l(88968)),f=(l(21413),l(18359)),F=l(57786),M=l(12496),K=l(31804),j=l(32046),ee=(l(72200),l(72318)),V=l(71997),pe=(l(64123),l(83869),l(67336),l(10438),l(89417),l(56977),l(70483)),Ee=l(22466),L=l(26881);const t=["*"],m=["unscopedContent"],u=["text"],_=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],T=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"],Se=new D.nKC("ListOption");let be=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return Pe})(),nt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);constructor(){}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return Pe})(),$e=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return Pe})(),dt=(()=>{class Pe{_listOption=(0,D.WQX)(Se,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||"after"===this._listOption?._getTogglePosition()}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:4,hostBindings:function(Ie,le){2&Ie&&o.AVh("mdc-list-item__start",le._isAlignedAtStart())("mdc-list-item__end",!le._isAlignedAtStart())}})}return Pe})(),yt=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[o.Vt3]})}return Pe})(),Et=(()=>{class Pe extends dt{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275dir=o.FsC({type:Pe,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[o.Vt3]})}return Pe})();const rt=new D.nKC("MAT_LIST_CONFIG");let Mn=(()=>{class Pe{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_defaultOptions=(0,D.WQX)(rt,{optional:!0});static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,hostVars:1,hostBindings:function(Ie,le){2&Ie&&o.BMQ("aria-disabled",le.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),qt=(()=>{class Pe{_elementRef=(0,D.WQX)(o.aKT);_ngZone=(0,D.WQX)(o.SKi);_listBase=(0,D.WQX)(Mn,{optional:!0});_platform=(0,D.WQX)(A.O);_hostElement;_isButtonElement;_noopAnimations=(0,K.Rc)();_avatars;_icons;set lines(Qe){this._explicitLines=(0,p.OE)(Qe,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(Qe){this._disableRipple=(0,g.he)(Qe)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(Qe){this._disabled.set((0,g.he)(Qe))}_disabled=(0,D.vPA)(!1);_subscriptions=new f.yU;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){(0,D.WQX)(d.l).load(j.A);const Qe=(0,D.WQX)(M.$E,{optional:!0});this.rippleConfig=Qe||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement="button"===this._hostElement.nodeName.toLowerCase(),this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),null!==this._rippleRenderer&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!(!this._avatars.length&&!this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new M.ug(this,this._ngZone,this._hostElement,this._platform,(0,D.WQX)(D.zZn)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add((0,F.h)(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(Qe){if(!this._lines||!this._titles||!this._unscopedContent)return;Qe&&this._checkDomForUnscopedTextContent();const Ie=this._explicitLines??this._inferLinesFromContent(),le=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",Ie<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",2===Ie),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",3===Ie),this._hasUnscopedTextContent){const Ne=0===this._titles.length&&1===Ie;le.classList.toggle("mdc-list-item__primary-text",Ne),le.classList.toggle("mdc-list-item__secondary-text",!Ne)}else le.classList.remove("mdc-list-item__primary-text"),le.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let Qe=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(Qe+=1),Qe}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(Qe=>Qe.nodeType!==Qe.COMMENT_NODE).some(Qe=>!(!Qe.textContent||!Qe.textContent.trim()))}static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275dir=o.FsC({type:Pe,contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,yt,4),o.wni(Ne,Et,4)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._avatars=ze),o.mGM(ze=o.lsd())&&(le._icons=ze)}},hostVars:4,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-disabled",le.disabled)("disabled",le._isButtonElement&&le.disabled||null),o.AVh("mdc-list-item--disabled",le.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return Pe})(),ae=(()=>{class Pe extends Mn{static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[o.Jv_([{provide:Mn,useExisting:Pe}]),o.Vt3],ngContentSelectors:t,decls:1,vars:0,template:function(Ie,le){1&Ie&&(o.NAR(),o.SdG(0))},styles:['.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}\n'],encapsulation:2,changeDetection:0})}return Pe})(),me=(()=>{class Pe extends qt{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(Qe){this._activated=(0,g.he)(Qe)}_activated=!1;_getAriaCurrent(){return"A"===this._hostElement.nodeName&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return 0!==this._meta.length&&(0!==this._avatars.length||0!==this._icons.length)}static \u0275fac=(()=>{let Qe;return function(le){return(Qe||(Qe=o.xGo(Pe)))(le||Pe)}})();static \u0275cmp=o.VBU({type:Pe,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(Ie,le,Ne){if(1&Ie&&(o.wni(Ne,nt,5),o.wni(Ne,be,5),o.wni(Ne,$e,5)),2&Ie){let ze;o.mGM(ze=o.lsd())&&(le._lines=ze),o.mGM(ze=o.lsd())&&(le._titles=ze),o.mGM(ze=o.lsd())&&(le._meta=ze)}},viewQuery:function(Ie,le){if(1&Ie&&(o.GBs(m,5),o.GBs(u,5)),2&Ie){let Ne;o.mGM(Ne=o.lsd())&&(le._unscopedContent=Ne.first),o.mGM(Ne=o.lsd())&&(le._itemText=Ne.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(Ie,le){2&Ie&&(o.BMQ("aria-current",le._getAriaCurrent()),o.AVh("mdc-list-item--activated",le.activated)("mdc-list-item--with-leading-avatar",0!==le._avatars.length)("mdc-list-item--with-leading-icon",0!==le._icons.length)("mdc-list-item--with-trailing-meta",0!==le._meta.length)("mat-mdc-list-item-both-leading-and-trailing",le._hasBothLeadingAndTrailing())("_mat-animation-noopable",le._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[o.Vt3],ngContentSelectors:T,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(Ie,le){if(1&Ie){const Ne=o.RV6();o.NAR(_),o.SdG(0),o.j41(1,"span",1),o.SdG(2,1),o.SdG(3,2),o.j41(4,"span",2,0),o.bIt("cdkObserveContent",function(){return D.eBV(Ne),D.Njj(le._updateItemLines(!0))}),o.SdG(6,3),o.k0s()(),o.SdG(7,4),o.SdG(8,5),o.nrm(9,"div",3)}},dependencies:[ee.Wv],encapsulation:2,changeDetection:0})}return Pe})(),Fe=(()=>{class Pe{static \u0275fac=function(Ie){return new(Ie||Pe)};static \u0275mod=o.$C({type:Pe});static \u0275inj=D.G2t({imports:[ee.w5,Ee.y,L.p,pe.O,V.w]})}return Pe})()},59115(ke,q,l){"use strict";l.d(q,{Cn:()=>tt,Cp:()=>En,fb:()=>$e,kk:()=>ae});var Q=l(2615),$=l(73664),ie=l(17705),_e=l(76838),ye=l(89726),se=l(64123),pe=l(95735),Ee=l(67336),L=l(10438),t=l(21413),s=l(18359),m=l(57786),u=l(7673),_=l(5964),T=l(99172),P=l(25558),C=l(96697),a=l(56977),x=l(88968),Y=l(32046),R=l(12496),U=l(76939),fe=l(31804),re=l(61577),he=l(49338),Oe=l(5718),ge=l(26881),ce=l(22466);const Re=["mat-menu-item",""],Me=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ve=["mat-icon, [matMenuItemIcon]","*"];function oe(Qe,Ie){1&Qe&&(Q.qSk(),$.j41(0,"svg",2),$.nrm(1,"polygon",3),$.k0s())}const Se=["*"];function be(Qe,Ie){if(1&Qe){const le=$.RV6();$.rj2(0,"div",0),$.VwU("click",function(){Q.eBV(le);const ze=$.XpG();return Q.Njj(ze.closed.emit("click"))})("animationstart",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationStart(ze.animationName))})("animationend",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))})("animationcancel",function(ze){Q.eBV(le);const Je=$.XpG();return Q.Njj(Je._onAnimationDone(ze.animationName))}),$.rj2(1,"div",1),$.SdG(2),$.eux()()}if(2&Qe){const le=$.XpG();$.HbH(le._classList),$.AVh("mat-menu-panel-animations-disabled",le._animationsDisabled)("mat-menu-panel-exit-animation","void"===le._panelAnimationState)("mat-menu-panel-animating",le._isAnimating()),$.Avn("id",le.panelId),$.BMQ("aria-label",le.ariaLabel||null)("aria-labelledby",le.ariaLabelledby||null)("aria-describedby",le.ariaDescribedby||null)}}const nt=new Q.nKC("MAT_MENU_PANEL");let $e=(()=>{class Qe{_elementRef=(0,Q.WQX)($.aKT);_document=(0,Q.WQX)(Q.qQL);_focusMonitor=(0,Q.WQX)(_e.FN);_parentMenu=(0,Q.WQX)(nt,{optional:!0});_changeDetectorRef=(0,Q.WQX)(ie.gRc);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new t.B;_focused=new t.B;_highlighted=!1;_triggersSubmenu=!1;constructor(){(0,Q.WQX)(x.l).load(Y.A),this._parentMenu?.addItem?.(this)}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._getHostElement(),le,Ne):this._getHostElement().focus(Ne),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(le){this.disabled&&(le.preventDefault(),le.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const le=this._elementRef.nativeElement.cloneNode(!0),Ne=le.querySelectorAll("mat-icon, .material-icons");for(let ze=0;ze{class Qe{_elementRef=(0,Q.WQX)($.aKT);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_injector=(0,Q.WQX)(Q.zZn);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=(0,fe.Rc)();_allItems;_directDescendantItems=new $.rOR;_classList={};_panelAnimationState="void";_animationDone=new t.B;_isAnimating=(0,Q.vPA)(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(le){this._xPosition=le,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(le){this._yPosition=le,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(le){const Ne=this._previousPanelClass,ze={...this._classList};Ne&&Ne.length&&Ne.split(" ").forEach(Je=>{ze[Je]=!1}),this._previousPanelClass=le,le&&le.length&&(le.split(" ").forEach(Je=>{ze[Je]=!0}),this._elementRef.nativeElement.className=""),this._classList=ze}_previousPanelClass;get classList(){return this.panelClass}set classList(le){this.panelClass=le}closed=new $.bkB;close=this.closed;panelId=(0,Q.WQX)(ye.g).getId("mat-menu-panel-");constructor(){const le=(0,Q.WQX)(qt);this.overlayPanelClass=le.overlayPanelClass||"",this._xPosition=le.xPosition,this._yPosition=le.yPosition,this.backdropClass=le.backdropClass,this.overlapTrigger=le.overlapTrigger,this.hasBackdrop=le.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new se.B(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(le=>(0,m.h)(...le.map(Ne=>Ne._focused)))).subscribe(le=>this._keyManager.updateActiveItem(le)),this._directDescendantItems.changes.subscribe(le=>{const Ne=this._keyManager;if("enter"===this._panelAnimationState&&Ne.activeItem?._hasFocus()){const ze=le.toArray(),Je=Math.max(0,Math.min(ze.length-1,Ne.activeItemIndex||0));ze[Je]&&!ze[Je].disabled?Ne.setActiveItem(Je):Ne.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe((0,T.Z)(this._directDescendantItems),(0,P.n)(Ne=>(0,m.h)(...Ne.map(ze=>ze._hovered))))}addItem(le){}removeItem(le){}_handleKeydown(le){const Ne=le.keyCode,ze=this._keyManager;switch(Ne){case L._f:(0,Ee.rp)(le)||(le.preventDefault(),this.closed.emit("keydown"));break;case L.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case L.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Ne===L.i7||Ne===L.n6)&&ze.setFocusOrigin("keyboard"),void ze.onKeydown(le)}}focusFirstItem(le="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=(0,$.mal)(()=>{const Ne=this._resolvePanel();if(!Ne||!Ne.contains(document.activeElement)){const ze=this._keyManager;ze.setFocusOrigin(le).setFirstItemActive(),!ze.activeItem&&Ne&&Ne.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(le){}setPositionClasses(le=this.xPosition,Ne=this.yPosition){this._classList={...this._classList,"mat-menu-before":"before"===le,"mat-menu-after":"after"===le,"mat-menu-above":"above"===Ne,"mat-menu-below":"below"===Ne},this._changeDetectorRef.markForCheck()}_onAnimationDone(le){const Ne=le===de;(Ne||le===Xt)&&(Ne&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(Ne?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(le){(le===Xt||le===de)&&this._isAnimating.set(!0)}_setIsOpen(le){if(this._panelAnimationState=le?"enter":"void",le){if(0===this._keyManager.activeItemIndex){const Ne=this._resolvePanel();Ne&&(Ne.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(de),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(le?Xt:de)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe((0,T.Z)(this._allItems)).subscribe(le=>{this._directDescendantItems.reset(le.filter(Ne=>Ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let le=null;return this._directDescendantItems.length&&(le=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),le}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275cmp=$.VBU({type:Qe,selectors:[["mat-menu"]],contentQueries:function(Ne,ze,Je){if(1&Ne&&($.wni(Je,rt,5),$.wni(Je,$e,5),$.wni(Je,$e,4)),2&Ne){let gt;$.mGM(gt=$.lsd())&&(ze.lazyContent=gt.first),$.mGM(gt=$.lsd())&&(ze._allItems=gt),$.mGM(gt=$.lsd())&&(ze.items=gt)}},viewQuery:function(Ne,ze){if(1&Ne&&$.GBs($.C4Q,5),2&Ne){let Je;$.mGM(Je=$.lsd())&&(ze.templateRef=Je.first)}},hostVars:3,hostBindings:function(Ne,ze){2&Ne&&$.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",ie.L39],hasBackdrop:[2,"hasBackdrop","hasBackdrop",le=>null==le?null:(0,ie.L39)(le)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[$.Jv_([{provide:nt,useExisting:Qe}])],ngContentSelectors:Se,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(Ne,ze){1&Ne&&($.NAR(),$.PeT(0,be,3,12,"ng-template"))},styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,changeDetection:0})}return Qe})();const me=new Q.nKC("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const Qe=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Qe)}}),et={provide:me,deps:[],useFactory:function Le(Qe){const Ie=(0,Q.WQX)(Q.zZn);return()=>(0,he.RH)(Ie)}},Vt=new WeakMap;let hn=(()=>{class Qe{_canHaveBackdrop;_element=(0,Q.WQX)($.aKT);_viewContainerRef=(0,Q.WQX)($.c1b);_menuItemInstance=(0,Q.WQX)($e,{optional:!0,self:!0});_dir=(0,Q.WQX)(re.dS,{optional:!0});_focusMonitor=(0,Q.WQX)(_e.FN);_ngZone=(0,Q.WQX)($.SKi);_injector=(0,Q.WQX)(Q.zZn);_scrollStrategy=(0,Q.WQX)(me);_changeDetectorRef=(0,Q.WQX)(ie.gRc);_animationsDisabled=(0,fe.Rc)();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=s.yU.EMPTY;_menuCloseSubscription=s.yU.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(le){le!==this._menuInternal&&(this._menuInternal=le,this._menuCloseSubscription.unsubscribe(),le&&(this._menuCloseSubscription=le.close.subscribe(Ne=>{this._destroyMenu(Ne),("click"===Ne||"tab"===Ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Ne)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(le){this._canHaveBackdrop=le;const Ne=(0,Q.WQX)(nt,{optional:!0});this._parentMaterialMenu=Ne instanceof ae?Ne:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&Vt.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(le){const Ne=this._menu;if(this._menuOpen||!Ne)return;this._pendingRemoval?.unsubscribe();const ze=Vt.get(Ne);Vt.set(Ne,this),ze&&ze!==this&&ze._closeMenu();const Je=this._createOverlay(Ne),gt=Je.getConfig(),zt=gt.positionStrategy;this._setPosition(Ne,zt),gt.hasBackdrop=!!this._canHaveBackdrop&&(null==Ne.hasBackdrop?!this._triggersSubmenu():Ne.hasBackdrop),Je.hasAttached()||(Je.attach(this._getPortal(Ne)),Ne.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),Ne.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,Ne.direction=this.dir,le&&Ne.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),Ne instanceof ae&&(Ne._setIsOpen(!0),Ne._directDescendantItems.changes.pipe((0,a.Q)(Ne.close)).subscribe(()=>{zt.withLockedPosition(!1).reapplyLastPosition(),zt.withLockedPosition(!0)}))}focus(le,Ne){this._focusMonitor&&le?this._focusMonitor.focusVia(this._element,le,Ne):this._element.nativeElement.focus(Ne)}_destroyMenu(le){const Ne=this._overlayRef,ze=this._menu;!Ne||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),ze instanceof ae&&this._ownsMenu(ze)?(this._pendingRemoval=ze._animationDone.pipe((0,C.s)(1)).subscribe(()=>{Ne.detach(),Vt.has(ze)||ze.lazyContent?.detach()}),ze._setIsOpen(!1)):(Ne.detach(),ze?.lazyContent?.detach()),ze&&this._ownsMenu(ze)&&Vt.delete(ze),this.restoreFocus&&("keydown"===le||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(le){le!==this._menuOpen&&(this._menuOpen=le,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(le),this._changeDetectorRef.markForCheck())}_createOverlay(le){if(!this._overlayRef){const Ne=this._getOverlayConfig(le);this._subscribeToPositions(le,Ne.positionStrategy),this._overlayRef=(0,he.Y$)(this._injector,Ne),this._overlayRef.keydownEvents().subscribe(ze=>{this._menu instanceof ae&&this._menu._handleKeydown(ze)})}return this._overlayRef}_getOverlayConfig(le){return new he.rR({positionStrategy:(0,he.$M)(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:le.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:le.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(le,Ne){le.setPositionClasses&&Ne.positionChanges.subscribe(ze=>{this._ngZone.run(()=>{le.setPositionClasses("start"===ze.connectionPair.overlayX?"after":"before","top"===ze.connectionPair.overlayY?"below":"above")})})}_setPosition(le,Ne){let[ze,Je]="before"===le.xPosition?["end","start"]:["start","end"],[gt,zt]="above"===le.yPosition?["bottom","top"]:["top","bottom"],[Ye,st]=[gt,zt],[it,He]=[ze,Je],Wt=0;if(this._triggersSubmenu()){if(He=ze="before"===le.xPosition?"start":"end",Je=it="end"===ze?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const we=this._parentMaterialMenu.items.first;this._parentInnerPadding=we?we._getHostElement().offsetTop:0}Wt="bottom"===gt?this._parentInnerPadding:-this._parentInnerPadding}}else le.overlapTrigger||(Ye="top"===gt?"bottom":"top",st="top"===zt?"bottom":"top");Ne.withPositions([{originX:ze,originY:Ye,overlayX:it,overlayY:gt,offsetY:Wt},{originX:Je,originY:Ye,overlayX:He,overlayY:gt,offsetY:Wt},{originX:ze,originY:st,overlayX:it,overlayY:zt,offsetY:-Wt},{originX:Je,originY:st,overlayX:He,overlayY:zt,offsetY:-Wt}])}_menuClosingActions(){const le=this._getOutsideClickStream(this._overlayRef),Ne=this._overlayRef.detachments(),ze=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,u.of)(),Je=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_.p)(gt=>this._menuOpen&>!==this._menuItemInstance)):(0,u.of)();return(0,m.h)(le,ze,Je,Ne)}_getPortal(le){return(!this._portal||this._portal.templateRef!==le.templateRef)&&(this._portal=new U.VA(le.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(le){return Vt.get(le)===this}static \u0275fac=function(Ne){$.QTQ()};static \u0275dir=$.FsC({type:Qe})}return Qe})(),En=(()=>{class Qe extends hn{_cleanupTouchstart;_hoverSubscription=s.yU.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(le){this.menu=le}get menu(){return this._menu}set menu(le){this._menu=le}menuData;restoreFocus=!0;menuOpened=new $.bkB;onMenuOpen=this.menuOpened;menuClosed=new $.bkB;onMenuClose=this.menuClosed;constructor(){super(!0);const le=(0,Q.WQX)($.sFG);this._cleanupTouchstart=le.listen(this._element.nativeElement,"touchstart",Ne=>{(0,pe.w)(Ne)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(le){return le.backdropClick()}_handleMousedown(le){(0,pe._)(le)||(this._openedBy=0===le.button?"mouse":void 0,this.triggersSubmenu()&&le.preventDefault())}_handleKeydown(le){const Ne=le.keyCode;(Ne===L.Fm||Ne===L.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Ne===L.LE&&"ltr"===this.dir||Ne===L.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(le){this.triggersSubmenu()?(le.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(le=>{le===this._menuItemInstance&&!le.disabled&&"void"!==this._parentMaterialMenu?._panelAnimationState&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275dir=$.FsC({type:Qe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(Ne,ze){1&Ne&&$.bIt("click",function(gt){return ze._handleClick(gt)})("mousedown",function(gt){return ze._handleMousedown(gt)})("keydown",function(gt){return ze._handleKeydown(gt)}),2&Ne&&$.BMQ("aria-haspopup",ze.menu?"menu":null)("aria-expanded",ze.menuOpen)("aria-controls",ze.menuOpen?null==ze.menu?null:ze.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[$.Vt3]})}return Qe})(),tt=(()=>{class Qe{static \u0275fac=function(Ne){return new(Ne||Qe)};static \u0275mod=$.$C({type:Qe});static \u0275inj=Q.G2t({providers:[et],imports:[ge.p,ce.y,he.z_,Oe.Gj,ce.y]})}return Qe})()},40146(ke,q,l){"use strict";l.d(q,{S:()=>A});var i=l(2615),g=l(73664),p=l(26881),D=l(70483),o=l(22466),e=l(23029);let A=(()=>{class h{static \u0275fac=function(f){return new(f||h)};static \u0275mod=g.$C({type:h});static \u0275inj=i.G2t({imports:[p.p,o.y,D.O,e.wT]})}return h})()},23029(ke,q,l){"use strict";l.d(q,{MI:()=>t,QC:()=>Ee,TL:()=>u,is:()=>pe,jb:()=>m,wT:()=>s});var o=l(89726),e=l(67336),A=l(10438),h=l(73664),d=l(17705),w=l(2615),f=l(21413),F=l(12496),M=l(63386),K=l(32046),j=l(49046),Z=l(88968);const Q=["text"],$=[[["mat-icon"]],"*"],ie=["mat-icon","*"];function _e(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",1),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)("state",P.selected?"checked":"unchecked")}}function ye(_,T){if(1&_&&h.nrm(0,"mat-pseudo-checkbox",3),2&_){const P=h.XpG();h.Y8G("disabled",P.disabled)}}function se(_,T){if(1&_&&(h.j41(0,"span",4),h.EFF(1),h.k0s()),2&_){const P=h.XpG();h.R7$(),h.SpI("(",P.group.label,")")}}const pe=new w.nKC("MAT_OPTION_PARENT_COMPONENT"),Ee=new w.nKC("MatOptgroup");class t{source;isUserInput;constructor(T,P=!1){this.source=T,this.isUserInput=P}}let s=(()=>{class _{_element=(0,w.WQX)(h.aKT);_changeDetectorRef=(0,w.WQX)(d.gRc);_parent=(0,w.WQX)(pe,{optional:!0});group=(0,w.WQX)(Ee,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=(0,w.WQX)(o.g).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(P){this._disabled.set(P)}_disabled=(0,w.vPA)(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}onSelectionChange=new h.bkB;_text;_stateChanges=new f.B;constructor(){const P=(0,w.WQX)(Z.l);P.load(K.A),P.load(j.Y),this._signalDisableRipple=!!this._parent&&(0,w.Hps)(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(P=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}deselect(P=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),P&&this._emitSelectionChangeEvent())}focus(P,C){const a=this._getHostElement();"function"==typeof a.focus&&a.focus(C)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(P){(P.keyCode===A.Fm||P.keyCode===A.t6)&&!(0,e.rp)(P)&&(this._selectViaInteraction(),P.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const P=this.viewValue;P!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=P)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(P=!1){this.onSelectionChange.emit(new t(this,P))}static \u0275fac=function(C){return new(C||_)};static \u0275cmp=h.VBU({type:_,selectors:[["mat-option"]],viewQuery:function(C,a){if(1&C&&h.GBs(Q,7),2&C){let x;h.mGM(x=h.lsd())&&(a._text=x.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(C,a){1&C&&h.bIt("click",function(){return a._selectViaInteraction()})("keydown",function(Y){return a._handleKeydown(Y)}),2&C&&(h.Avn("id",a.id),h.BMQ("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),h.AVh("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",d.L39]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:ie,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(C,a){1&C&&(h.NAR($),h.nVh(0,_e,1,2,"mat-pseudo-checkbox",1),h.SdG(1),h.j41(2,"span",2,0),h.SdG(4,1),h.k0s(),h.nVh(5,ye,1,1,"mat-pseudo-checkbox",3),h.nVh(6,se,2,1,"span",4),h.nrm(7,"div",5)),2&C&&(h.vxM(a.multiple?0:-1),h.R7$(5),h.vxM(a.multiple||!a.selected||a.hideSingleSelectionIndicator?-1:5),h.R7$(),h.vxM(a.group&&a.group._inert?6:-1),h.R7$(),h.Y8G("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[M.w,F.r6],styles:['.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""}\n'],encapsulation:2,changeDetection:0})}return _})();function m(_,T,P){if(P.length){let C=T.toArray(),a=P.toArray(),x=0;for(let Y=0;Y<_+1;Y++)C[Y].group&&C[Y].group===a[x]&&x++;return x}return 0}function u(_,T,P,C){return _P+C?Math.max(0,_-C+T):P}},96695(ke,q,l){"use strict";l.d(q,{Ou:()=>L,iy:()=>Ee,xX:()=>$});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(92771),e=l(89726),A=l(69588),h=l(96183),d=l(23029),w=l(22598),f=l(40455),F=l(86156),M=l(88834);function K(t,s){if(1&t&&(g.j41(0,"mat-option",17),g.EFF(1),g.k0s()),2&t){const m=s.$implicit;g.Y8G("value",m),g.R7$(),g.SpI(" ",m," ")}}function j(t,s){if(1&t){const m=g.RV6();g.j41(0,"mat-form-field",14)(1,"mat-select",16,0),g.bIt("selectionChange",function(_){i.eBV(m);const T=g.XpG(2);return i.Njj(T._changePageSize(_.value))}),g.Z7z(3,K,2,2,"mat-option",17,g.fX1),g.k0s(),g.j41(5,"div",18),g.bIt("click",function(){i.eBV(m);const _=g.sdS(2);return i.Njj(_.open())}),g.k0s()()}if(2&t){const m=g.XpG(2);g.Y8G("appearance",m._formFieldAppearance)("color",m.color),g.R7$(),g.Y8G("value",m.pageSize)("disabled",m.disabled),g.jOp("aria-labelledby",m._pageSizeLabelId),g.Y8G("panelClass",m.selectConfig.panelClass||"")("disableOptionCentering",m.selectConfig.disableOptionCentering),g.R7$(2),g.Dyx(m._displayedPageSizeOptions)}}function Z(t,s){if(1&t&&(g.j41(0,"div",15),g.EFF(1),g.k0s()),2&t){const m=g.XpG(2);g.R7$(),g.JRh(m.pageSize)}}function ee(t,s){if(1&t&&(g.j41(0,"div",3)(1,"div",13),g.EFF(2),g.k0s(),g.nVh(3,j,6,7,"mat-form-field",14),g.nVh(4,Z,2,1,"div",15),g.k0s()),2&t){const m=g.XpG();g.R7$(),g.BMQ("id",m._pageSizeLabelId),g.R7$(),g.SpI(" ",m._intl.itemsPerPageLabel," "),g.R7$(),g.vxM(m._displayedPageSizeOptions.length>1?3:-1),g.R7$(),g.vxM(m._displayedPageSizeOptions.length<=1?4:-1)}}function V(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",19),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(0,_._previousButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",20),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.firstPageLabel)("matTooltipDisabled",m._previousButtonsDisabled())("disabled",m._previousButtonsDisabled())("tabindex",m._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.firstPageLabel)}}function Q(t,s){if(1&t){const m=g.RV6();g.j41(0,"button",21),g.bIt("click",function(){i.eBV(m);const _=g.XpG();return i.Njj(_._buttonClicked(_.getNumberOfPages()-1,_._nextButtonsDisabled()))}),i.qSk(),g.j41(1,"svg",8),g.nrm(2,"path",22),g.k0s()()}if(2&t){const m=g.XpG();g.Y8G("matTooltip",m._intl.lastPageLabel)("matTooltipDisabled",m._nextButtonsDisabled())("disabled",m._nextButtonsDisabled())("tabindex",m._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",m._intl.lastPageLabel)}}let $=(()=>{class t{changes=new D.B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(m,u,_)=>{if(0==_||0==u)return`0 of ${_}`;const T=m*u;return`${T+1} \u2013 ${T<(_=Math.max(_,0))?Math.min(T+u,_):T+u} of ${_}`};static \u0275fac=function(u){return new(u||t)};static \u0275prov=i.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const _e={provide:$,deps:[[new g.Xx1,new g.kdw,$]],useFactory:function ie(t){return t||new $}},pe=new i.nKC("MAT_PAGINATOR_DEFAULT_OPTIONS");let Ee=(()=>{class t{_intl=(0,i.WQX)($);_changeDetectorRef=(0,i.WQX)(p.gRc);_formFieldAppearance;_pageSizeLabelId=(0,i.WQX)(e.g).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new o.m(1);color;get pageIndex(){return this._pageIndex}set pageIndex(m){this._pageIndex=Math.max(m||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(m){this._length=m||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(m){this._pageSize=Math.max(m||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(m){this._pageSizeOptions=(m||[]).map(u=>(0,p.Udg)(u,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new g.bkB;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){const m=this._intl,u=(0,i.WQX)(pe,{optional:!0});if(this._intlChanges=m.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:_,pageSizeOptions:T,hidePageSize:P,showFirstLastButtons:C}=u;null!=_&&(this._pageSize=_),null!=T&&(this._pageSizeOptions=T),null!=P&&(this.hidePageSize=P),null!=C&&(this.showFirstLastButtons=C)}this._formFieldAppearance=u?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const m=this.getNumberOfPages()-1;return this.pageIndexm-u),this._changeDetectorRef.markForCheck())}_emitPageEvent(m){this.page.emit({previousPageIndex:m,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(m){const u=this.pageIndex;m!==u&&(this.pageIndex=m,this._emitPageEvent(u))}_buttonClicked(m,u){u||this._navigate(m)}static \u0275fac=function(u){return new(u||t)};static \u0275cmp=g.VBU({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",p.Udg],length:[2,"length","length",p.Udg],pageSize:[2,"pageSize","pageSize",p.Udg],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",p.L39],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",p.L39],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",p.L39]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(u,_){1&u&&(g.j41(0,"div",1)(1,"div",2),g.nVh(2,ee,5,4,"div",3),g.j41(3,"div",4)(4,"div",5),g.EFF(5),g.k0s(),g.nVh(6,V,3,5,"button",6),g.j41(7,"button",7),g.bIt("click",function(){return _._buttonClicked(_.pageIndex-1,_._previousButtonsDisabled())}),i.qSk(),g.j41(8,"svg",8),g.nrm(9,"path",9),g.k0s()(),i.joV(),g.j41(10,"button",10),g.bIt("click",function(){return _._buttonClicked(_.pageIndex+1,_._nextButtonsDisabled())}),i.qSk(),g.j41(11,"svg",8),g.nrm(12,"path",11),g.k0s()(),g.nVh(13,Q,3,5,"button",12),g.k0s()()()),2&u&&(g.R7$(2),g.vxM(_.hidePageSize?-1:2),g.R7$(3),g.SpI(" ",_._intl.getRangeLabel(_.pageIndex,_.pageSize,_.length)," "),g.R7$(),g.vxM(_.showFirstLastButtons?6:-1),g.R7$(),g.Y8G("matTooltip",_._intl.previousPageLabel)("matTooltipDisabled",_._previousButtonsDisabled())("disabled",_._previousButtonsDisabled())("tabindex",_._previousButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.previousPageLabel),g.R7$(3),g.Y8G("matTooltip",_._intl.nextPageLabel)("matTooltipDisabled",_._nextButtonsDisabled())("disabled",_._nextButtonsDisabled())("tabindex",_._nextButtonsDisabled()?-1:null),g.BMQ("aria-label",_._intl.nextPageLabel),g.R7$(3),g.vxM(_.showFirstLastButtons?13:-1))},dependencies:[A.rl,h.VO,d.wT,w.iY,f.oV],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}\n"],encapsulation:2,changeDetection:0})}return t})(),L=(()=>{class t{static \u0275fac=function(u){return new(u||t)};static \u0275mod=g.$C({type:t});static \u0275inj=i.G2t({providers:[_e],imports:[M.Hl,h.Ve,F.u,Ee]})}return t})()},67575(ke,q,l){"use strict";l.d(q,{HM:()=>w,PO:()=>F});var i=l(2615),g=l(73664),p=l(17705),D=l(31804),o=l(22466);function e(M,K){1&M&&g.Hgh(0,"div",2)}const A=new i.nKC("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let w=(()=>{class M{_elementRef=(0,i.WQX)(g.aKT);_ngZone=(0,i.WQX)(g.SKi);_changeDetectorRef=(0,i.WQX)(p.gRc);_renderer=(0,i.WQX)(g.sFG);_cleanupTransitionEnd;constructor(){const j=(0,D._J)(),Z=(0,i.WQX)(A,{optional:!0});this._isNoopAnimation="di-disabled"===j,"reduced-motion"===j&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),Z&&(Z.color&&(this.color=this._defaultColor=Z.color),this.mode=Z.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(j){this._color=j}_color;_defaultColor="primary";get value(){return this._value}set value(j){this._value=f(j||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(j){this._bufferValue=f(j||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new g.bkB;get mode(){return this._mode}set mode(j){this._mode=j,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}_transitionendHandler=j=>{0===this.animationEnd.observers.length||!j.target||!j.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(Z){return new(Z||M)};static \u0275cmp=g.VBU({type:M,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(Z,ee){2&Z&&(g.BMQ("aria-valuenow",ee._isIndeterminate()?null:ee.value)("mode",ee.mode),g.HbH("mat-"+ee.color),g.AVh("_mat-animation-noopable",ee._isNoopAnimation)("mdc-linear-progress--animation-ready",!ee._isNoopAnimation)("mdc-linear-progress--indeterminate",ee._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",p.Udg],bufferValue:[2,"bufferValue","bufferValue",p.Udg],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(Z,ee){1&Z&&(g.rj2(0,"div",0),g.Hgh(1,"div",1),g.nVh(2,e,1,0,"div",2),g.eux(),g.rj2(3,"div",3),g.Hgh(4,"span",4),g.eux(),g.rj2(5,"div",5),g.Hgh(6,"span",4),g.eux()),2&Z&&(g.R7$(),g.xc7("flex-basis",ee._getBufferBarFlexBasis()),g.R7$(),g.vxM("buffer"===ee.mode?2:-1),g.R7$(),g.xc7("transform",ee._getPrimaryBarTransform()))},styles:[".mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}\n"],encapsulation:2,changeDetection:0})}return M})();function f(M,K=0,j=100){return Math.max(K,Math.min(j,M))}let F=(()=>{class M{static \u0275fac=function(Z){return new(Z||M)};static \u0275mod=g.$C({type:M});static \u0275inj=i.G2t({imports:[o.y]})}return M})()},9183(ke,q,l){"use strict";l.d(q,{D6:()=>j,LG:()=>M});var i=l(2615),g=l(73664),p=l(17705),D=l(72200),o=l(31804),e=l(22466);const A=["determinateSpinner"];function h(Z,ee){if(1&Z&&(i.qSk(),g.j41(0,"svg",11),g.nrm(1,"circle",12),g.k0s()),2&Z){const V=g.XpG();g.BMQ("viewBox",V._viewBox()),g.R7$(),g.xc7("stroke-dasharray",V._strokeCircumference(),"px")("stroke-dashoffset",V._strokeCircumference()/2,"px")("stroke-width",V._circleStrokeWidth(),"%"),g.BMQ("r",V._circleRadius())}}const d=new i.nKC("mat-progress-spinner-default-options",{providedIn:"root",factory:function w(){return{diameter:f}}}),f=100;let M=(()=>{class Z{_elementRef=(0,i.WQX)(g.aKT);_noopAnimations;get color(){return this._color||this._defaultColor}set color(V){this._color=V}_color;_defaultColor="primary";_determinateCircle;constructor(){const V=(0,i.WQX)(d),Q=(0,o._J)(),$=this._elementRef.nativeElement;this._noopAnimations="di-disabled"===Q&&!!V&&!V._forceAnimations,this.mode="mat-spinner"===$.nodeName.toLowerCase()?"indeterminate":"determinate",!this._noopAnimations&&"reduced-motion"===Q&&$.classList.add("mat-progress-spinner-reduced-motion"),V&&(V.color&&(this.color=this._defaultColor=V.color),V.diameter&&(this.diameter=V.diameter),V.strokeWidth&&(this.strokeWidth=V.strokeWidth))}mode;get value(){return"determinate"===this.mode?this._value:0}set value(V){this._value=Math.max(0,Math.min(100,V||0))}_value=0;get diameter(){return this._diameter}set diameter(V){this._diameter=V||0}_diameter=f;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(V){this._strokeWidth=V||0}_strokeWidth;_circleRadius(){return(this.diameter-10)/2}_viewBox(){const V=2*this._circleRadius()+this.strokeWidth;return`0 0 ${V} ${V}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(Q){return new(Q||Z)};static \u0275cmp=g.VBU({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(Q,$){if(1&Q&&g.GBs(A,5),2&Q){let ie;g.mGM(ie=g.lsd())&&($._determinateCircle=ie.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(Q,$){2&Q&&(g.BMQ("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===$.mode?$.value:null)("mode",$.mode),g.HbH("mat-"+$.color),g.xc7("width",$.diameter,"px")("height",$.diameter,"px")("--mat-progress-spinner-size",$.diameter+"px")("--mat-progress-spinner-active-indicator-width",$.diameter+"px"),g.AVh("_mat-animation-noopable",$._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===$.mode))},inputs:{color:"color",mode:"mode",value:[2,"value","value",p.Udg],diameter:[2,"diameter","diameter",p.Udg],strokeWidth:[2,"strokeWidth","strokeWidth",p.Udg]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(Q,$){if(1&Q&&(g.DNE(0,h,2,8,"ng-template",null,0,g.C5r),g.j41(2,"div",2,1),i.qSk(),g.j41(4,"svg",3),g.nrm(5,"circle",4),g.k0s()(),i.joV(),g.j41(6,"div",5)(7,"div",6)(8,"div",7),g.eu8(9,8),g.k0s(),g.j41(10,"div",9),g.eu8(11,8),g.k0s(),g.j41(12,"div",10),g.eu8(13,8),g.k0s()()()),2&Q){const ie=g.sdS(1);g.R7$(4),g.BMQ("viewBox",$._viewBox()),g.R7$(),g.xc7("stroke-dasharray",$._strokeCircumference(),"px")("stroke-dashoffset",$._strokeDashOffset(),"px")("stroke-width",$._circleStrokeWidth(),"%"),g.BMQ("r",$._circleRadius()),g.R7$(4),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie),g.R7$(2),g.Y8G("ngTemplateOutlet",ie)}},dependencies:[D.T3],styles:[".mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}\n"],encapsulation:2,changeDetection:0})}return Z})(),j=(()=>{class Z{static \u0275fac=function(Q){return new(Q||Z)};static \u0275mod=g.$C({type:Z});static \u0275inj=i.G2t({imports:[e.y]})}return Z})()},70483(ke,q,l){"use strict";l.d(q,{O:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y]})}return o})()},63386(ke,q,l){"use strict";l.d(q,{w:()=>p});var i=l(73664),g=l(31804);let p=(()=>{class D{_animationsDisabled=(0,g.Rc)();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(A){return new(A||D)};static \u0275cmp=i.VBU({type:D,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(A,h){2&A&&i.AVh("mat-pseudo-checkbox-indeterminate","indeterminate"===h.state)("mat-pseudo-checkbox-checked","checked"===h.state)("mat-pseudo-checkbox-disabled",h.disabled)("mat-pseudo-checkbox-minimal","minimal"===h.appearance)("mat-pseudo-checkbox-full","full"===h.appearance)("_mat-animation-noopable",h._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(A,h){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}\n'],encapsulation:2,changeDetection:0})}return D})()},5951(ke,q,l){"use strict";l.d(q,{VT:()=>ye,Wk:()=>pe,_g:()=>se});var i=l(76838),g=l(89726),p=l(18689),D=l(2615),o=l(73664),e=l(17705),A=l(89417),h=l(88968),d=l(31804),w=l(32046),f=l(12496),F=l(53155),M=l(22466),K=l(26881);const j=["input"],Z=["formField"],ee=["*"];class V{source;value;constructor(L,t){this.source=L,this.value=t}}const Q={provide:A.kq,useExisting:(0,D.Rfq)(()=>ye),multi:!0},$=new D.nKC("MatRadioGroup"),ie=new D.nKC("mat-radio-default-options",{providedIn:"root",factory:function _e(){return{color:"accent",disabledInteractive:!1}}});let ye=(()=>{class Ee{_changeDetector=(0,D.WQX)(e.gRc);_value=null;_name=(0,D.WQX)(g.g).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new o.bkB;_radios;color;get name(){return this._name}set name(t){this._name=t,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._markRadiosForCheck()}get required(){return this._required}set required(t){this._required=t,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(t=>t===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(t=>{t.name=this.name,t._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(s=>{s.checked=this.value===s.value,s.checked&&(this._selected=s)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new V(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(t=>t._markForCheck())}writeValue(t){this.value=t,this._changeDetector.markForCheck()}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetector.markForCheck()}static \u0275fac=function(s){return new(s||Ee)};static \u0275dir=o.FsC({type:Ee,selectors:[["mat-radio-group"]],contentQueries:function(s,m,u){if(1&s&&o.wni(u,se,5),2&s){let _;o.mGM(_=o.lsd())&&(m._radios=_)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[o.Jv_([Q,{provide:$,useExisting:Ee}])]})}return Ee})(),se=(()=>{class Ee{_elementRef=(0,D.WQX)(o.aKT);_changeDetector=(0,D.WQX)(e.gRc);_focusMonitor=(0,D.WQX)(i.FN);_radioDispatcher=(0,D.WQX)(p.z);_defaultOptions=(0,D.WQX)(ie,{optional:!0});_ngZone=(0,D.WQX)(o.SKi);_renderer=(0,D.WQX)(o.sFG);_uniqueId=(0,D.WQX)(g.g).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(t){this._checked!==t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(t){this._labelPosition=t}_labelPosition;get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(t){this._setDisabled(t)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(t){t!==this._required&&this._changeDetector.markForCheck(),this._required=t}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(t){this._color=t}_color;get disabledInteractive(){return this._disabledInteractive||null!==this.radioGroup&&this.radioGroup.disabledInteractive}set disabledInteractive(t){this._disabledInteractive=t}_disabledInteractive;change=new o.bkB;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=(0,d.Rc)();_injector=(0,D.WQX)(D.zZn);constructor(){(0,D.WQX)(h.l).load(w.A);const t=(0,D.WQX)($,{optional:!0}),s=(0,D.WQX)(new e.ES_("tabindex"),{optional:!0});this.radioGroup=t,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,s&&(this.tabIndex=(0,e.Udg)(s,0))}focus(t,s){s?this._focusMonitor.focusVia(this._inputElement,s,t):this._inputElement.nativeElement.focus(t)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((t,s)=>{t!==this.id&&s===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{!t&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new V(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(t){if(t.stopPropagation(),!this.checked&&!this.disabled){const s=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),s&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(t){this._onInputInteraction(t),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(t){this._disabled!==t&&(this._disabled=t,this._changeDetector.markForCheck())}_onInputClick=t=>{this.disabled&&this.disabledInteractive&&t.preventDefault()};_updateTabIndex(){const t=this.radioGroup;let s;if(s=t&&t.selected&&!this.disabled?t.selected===this?this.tabIndex:-1:this.tabIndex,s!==this._previousTabIndex){const m=this._inputElement?.nativeElement;m&&(m.setAttribute("tabindex",s+""),this._previousTabIndex=s,(0,o.mal)(()=>{queueMicrotask(()=>{t&&t.selected&&t.selected!==this&&document.activeElement===m&&(t.selected?._inputElement.nativeElement.focus(),document.activeElement===m&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(s){return new(s||Ee)};static \u0275cmp=o.VBU({type:Ee,selectors:[["mat-radio-button"]],viewQuery:function(s,m){if(1&s&&(o.GBs(j,5),o.GBs(Z,7,o.aKT)),2&s){let u;o.mGM(u=o.lsd())&&(m._inputElement=u.first),o.mGM(u=o.lsd())&&(m._rippleTrigger=u.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(s,m){1&s&&o.bIt("focus",function(){return m._inputElement.nativeElement.focus()}),2&s&&(o.BMQ("id",m.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.AVh("mat-primary","primary"===m.color)("mat-accent","accent"===m.color)("mat-warn","warn"===m.color)("mat-mdc-radio-checked",m.checked)("mat-mdc-radio-disabled",m.disabled)("mat-mdc-radio-disabled-interactive",m.disabledInteractive)("_mat-animation-noopable",m._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",e.L39],tabIndex:[2,"tabIndex","tabIndex",t=>null==t?0:(0,e.Udg)(t)],checked:[2,"checked","checked",e.L39],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",e.L39],required:[2,"required","required",e.L39],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",e.L39]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:ee,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(s,m){if(1&s){const u=o.RV6();o.NAR(),o.j41(0,"div",2,0)(2,"div",3)(3,"div",4),o.bIt("click",function(T){return D.eBV(u),D.Njj(m._onTouchTargetClick(T))}),o.k0s(),o.j41(4,"input",5,1),o.bIt("change",function(T){return D.eBV(u),D.Njj(m._onInputInteraction(T))}),o.k0s(),o.j41(6,"div",6),o.nrm(7,"div",7)(8,"div",8),o.k0s(),o.j41(9,"div",9),o.nrm(10,"div",10),o.k0s()(),o.j41(11,"label",11),o.SdG(12),o.k0s()()}2&s&&(o.Y8G("labelPosition",m.labelPosition),o.R7$(2),o.AVh("mdc-radio--disabled",m.disabled),o.R7$(2),o.Y8G("id",m.inputId)("checked",m.checked)("disabled",m.disabled&&!m.disabledInteractive)("required",m.required),o.BMQ("name",m.name)("value",m.value)("aria-label",m.ariaLabel)("aria-labelledby",m.ariaLabelledby)("aria-describedby",m.ariaDescribedby)("aria-disabled",m.disabled&&m.disabledInteractive?"true":null),o.R7$(5),o.Y8G("matRippleTrigger",m._rippleTrigger.nativeElement)("matRippleDisabled",m._isRippleDisabled())("matRippleCentered",!0),o.R7$(2),o.Y8G("for",m.inputId))},dependencies:[f.r6,F.t],styles:['.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return Ee})(),pe=(()=>{class Ee{static \u0275fac=function(s){return new(s||Ee)};static \u0275mod=o.$C({type:Ee});static \u0275inj=D.G2t({imports:[M.y,K.p,se,M.y]})}return Ee})()},11048(ke,q,l){"use strict";l.d(q,{E:()=>M});var i=l(2615),g=l(73664),p=l(39842),D=l(44522),o=l(31804),e=l(12496);const A={capture:!0},h=["focus","mousedown","mouseenter","touchstart"],d="mat-ripple-loader-uninitialized",w="mat-ripple-loader-class-name",f="mat-ripple-loader-centered",F="mat-ripple-loader-disabled";let M=(()=>{class K{_document=(0,i.WQX)(i.qQL);_animationsDisabled=(0,o.Rc)();_globalRippleOptions=(0,i.WQX)(e.$E,{optional:!0});_platform=(0,i.WQX)(p.O);_ngZone=(0,i.WQX)(g.SKi);_injector=(0,i.WQX)(i.zZn);_eventCleanups;_hosts=new Map;constructor(){const Z=(0,i.WQX)(g._9s).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>h.map(ee=>Z.listen(this._document,ee,this._onInteraction,A)))}ngOnDestroy(){const Z=this._hosts.keys();for(const ee of Z)this.destroyRipple(ee);this._eventCleanups.forEach(ee=>ee())}configureRipple(Z,ee){Z.setAttribute(d,this._globalRippleOptions?.namespace??""),(ee.className||!Z.hasAttribute(w))&&Z.setAttribute(w,ee.className||""),ee.centered&&Z.setAttribute(f,""),ee.disabled&&Z.setAttribute(F,"")}setDisabled(Z,ee){const V=this._hosts.get(Z);V?(V.target.rippleDisabled=ee,!ee&&!V.hasSetUpEvents&&(V.hasSetUpEvents=!0,V.renderer.setupTriggerEvents(Z))):ee?Z.setAttribute(F,""):Z.removeAttribute(F)}_onInteraction=Z=>{const ee=(0,D.Fb)(Z);if(ee instanceof HTMLElement){const V=ee.closest(`[${d}="${this._globalRippleOptions?.namespace??""}"]`);V&&this._createRipple(V)}};_createRipple(Z){if(!this._document||this._hosts.has(Z))return;Z.querySelector(".mat-ripple")?.remove();const ee=this._document.createElement("span");ee.classList.add("mat-ripple",Z.getAttribute(w)),Z.append(ee);const V=this._globalRippleOptions,Q=this._animationsDisabled?0:V?.animation?.enterDuration??e.EX.enterDuration,$=this._animationsDisabled?0:V?.animation?.exitDuration??e.EX.exitDuration,ie={rippleDisabled:this._animationsDisabled||V?.disabled||Z.hasAttribute(F),rippleConfig:{centered:Z.hasAttribute(f),terminateOnPointerUp:V?.terminateOnPointerUp,animation:{enterDuration:Q,exitDuration:$}}},_e=new e.ug(ie,this._ngZone,ee,this._platform,this._injector),ye=!ie.rippleDisabled;ye&&_e.setupTriggerEvents(Z),this._hosts.set(Z,{target:ie,renderer:_e,hasSetUpEvents:ye}),Z.removeAttribute(d)}destroyRipple(Z){const ee=this._hosts.get(Z);ee&&(ee.renderer._removeTriggerEvents(),this._hosts.delete(Z))}static \u0275fac=function(ee){return new(ee||K)};static \u0275prov=i.jDH({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})()},26881(ke,q,l){"use strict";l.d(q,{p:()=>D});var i=l(2615),g=l(73664),p=l(22466);let D=(()=>{class o{static \u0275fac=function(h){return new(h||o)};static \u0275mod=g.$C({type:o});static \u0275inj=i.G2t({imports:[p.y,p.y]})}return o})()},12496(ke,q,l){"use strict";l.d(q,{$E:()=>_e,EX:()=>K,r6:()=>ye,ug:()=>$});var i=l(39842),g=l(83300),p=l(44522),D=l(73664),o=l(2615),e=l(95735),A=l(67847),h=l(88968),d=l(31804),w=function(se){return se[se.FADING_IN=0]="FADING_IN",se[se.VISIBLE=1]="VISIBLE",se[se.FADING_OUT=2]="FADING_OUT",se[se.HIDDEN=3]="HIDDEN",se}(w||{});class f{_renderer;element;config;_animationForciblyDisabledThroughCss;state=w.HIDDEN;constructor(pe,Ee,L,t=!1){this._renderer=pe,this.element=Ee,this.config=L,this._animationForciblyDisabledThroughCss=t}fadeOut(){this._renderer.fadeOutRipple(this)}}const F=(0,g.B)({passive:!0,capture:!0});class M{_events=new Map;addHandler(pe,Ee,L,t){const s=this._events.get(Ee);if(s){const m=s.get(L);m?m.add(t):s.set(L,new Set([t]))}else this._events.set(Ee,new Map([[L,new Set([t])]])),pe.runOutsideAngular(()=>{document.addEventListener(Ee,this._delegateEventHandler,F)})}removeHandler(pe,Ee,L){const t=this._events.get(pe);if(!t)return;const s=t.get(Ee);s&&(s.delete(L),0===s.size&&t.delete(Ee),0===t.size&&(this._events.delete(pe),document.removeEventListener(pe,this._delegateEventHandler,F)))}_delegateEventHandler=pe=>{const Ee=(0,p.Fb)(pe);Ee&&this._events.get(pe.type)?.forEach((L,t)=>{(t===Ee||t.contains(Ee))&&L.forEach(s=>s.handleEvent(pe))})}}const K={enterDuration:225,exitDuration:150},Z=(0,g.B)({passive:!0,capture:!0}),ee=["mousedown","touchstart"],V=["mouseup","mouseleave","touchend","touchcancel"];let Q=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275cmp=D.VBU({type:se,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(L,t){},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}\n"],encapsulation:2,changeDetection:0})}return se})();class ${_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new M;constructor(pe,Ee,L,t,s){this._target=pe,this._ngZone=Ee,this._platform=t,t.isBrowser&&(this._containerElement=(0,A.i8)(L)),s&&s.get(h.l).load(Q)}fadeInRipple(pe,Ee,L={}){const t=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s={...K,...L.animation};L.centered&&(pe=t.left+t.width/2,Ee=t.top+t.height/2);const m=L.radius||function ie(se,pe,Ee){const L=Math.max(Math.abs(se-Ee.left),Math.abs(se-Ee.right)),t=Math.max(Math.abs(pe-Ee.top),Math.abs(pe-Ee.bottom));return Math.sqrt(L*L+t*t)}(pe,Ee,t),u=pe-t.left,_=Ee-t.top,T=s.enterDuration,P=document.createElement("div");P.classList.add("mat-ripple-element"),P.style.left=u-m+"px",P.style.top=_-m+"px",P.style.height=2*m+"px",P.style.width=2*m+"px",null!=L.color&&(P.style.backgroundColor=L.color),P.style.transitionDuration=`${T}ms`,this._containerElement.appendChild(P);const C=window.getComputedStyle(P),x=C.transitionDuration,Y="none"===C.transitionProperty||"0s"===x||"0s, 0s"===x||0===t.width&&0===t.height,R=new f(this,P,L,Y);P.style.transform="scale3d(1, 1, 1)",R.state=w.FADING_IN,L.persistent||(this._mostRecentTransientRipple=R);let U=null;return!Y&&(T||s.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const fe=()=>{U&&(U.fallbackTimer=null),clearTimeout(he),this._finishRippleTransition(R)},re=()=>this._destroyRipple(R),he=setTimeout(re,T+100);P.addEventListener("transitionend",fe),P.addEventListener("transitioncancel",re),U={onTransitionEnd:fe,onTransitionCancel:re,fallbackTimer:he}}),this._activeRipples.set(R,U),(Y||!T)&&this._finishRippleTransition(R),R}fadeOutRipple(pe){if(pe.state===w.FADING_OUT||pe.state===w.HIDDEN)return;const Ee=pe.element,L={...K,...pe.config.animation};Ee.style.transitionDuration=`${L.exitDuration}ms`,Ee.style.opacity="0",pe.state=w.FADING_OUT,(pe._animationForciblyDisabledThroughCss||!L.exitDuration)&&this._finishRippleTransition(pe)}fadeOutAll(){this._getActiveRipples().forEach(pe=>pe.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(pe=>{pe.config.persistent||pe.fadeOut()})}setupTriggerEvents(pe){const Ee=(0,A.i8)(pe);!this._platform.isBrowser||!Ee||Ee===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ee,ee.forEach(L=>{$._eventManager.addHandler(this._ngZone,L,Ee,this)}))}handleEvent(pe){"mousedown"===pe.type?this._onMousedown(pe):"touchstart"===pe.type?this._onTouchStart(pe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{V.forEach(Ee=>{this._triggerElement.addEventListener(Ee,this,Z)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(pe){pe.state===w.FADING_IN?this._startFadeOutTransition(pe):pe.state===w.FADING_OUT&&this._destroyRipple(pe)}_startFadeOutTransition(pe){const Ee=pe===this._mostRecentTransientRipple,{persistent:L}=pe.config;pe.state=w.VISIBLE,!L&&(!Ee||!this._isPointerDown)&&pe.fadeOut()}_destroyRipple(pe){const Ee=this._activeRipples.get(pe)??null;this._activeRipples.delete(pe),this._activeRipples.size||(this._containerRect=null),pe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),pe.state=w.HIDDEN,null!==Ee&&(pe.element.removeEventListener("transitionend",Ee.onTransitionEnd),pe.element.removeEventListener("transitioncancel",Ee.onTransitionCancel),null!==Ee.fallbackTimer&&clearTimeout(Ee.fallbackTimer)),pe.element.remove()}_onMousedown(pe){const Ee=(0,e._)(pe),L=this._lastTouchStartEvent&&Date.now(){!pe.config.persistent&&(pe.state===w.VISIBLE||pe.config.terminateOnPointerUp&&pe.state===w.FADING_IN)&&pe.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const pe=this._triggerElement;pe&&(ee.forEach(Ee=>$._eventManager.removeHandler(Ee,pe,this)),this._pointerUpEventsRegistered&&(V.forEach(Ee=>pe.removeEventListener(Ee,this,Z)),this._pointerUpEventsRegistered=!1))}}const _e=new o.nKC("mat-ripple-global-options");let ye=(()=>{class se{_elementRef=(0,o.WQX)(D.aKT);_animationsDisabled=(0,d.Rc)();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(Ee){Ee&&this.fadeOutAllNonPersistent(),this._disabled=Ee,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Ee){this._trigger=Ee,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){const Ee=(0,o.WQX)(D.SKi),L=(0,o.WQX)(i.O),t=(0,o.WQX)(_e,{optional:!0}),s=(0,o.WQX)(o.zZn);this._globalOptions=t||{},this._rippleRenderer=new $(this,Ee,this._elementRef,L,s)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,...this._animationsDisabled?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Ee,L=0,t){return"number"==typeof Ee?this._rippleRenderer.fadeInRipple(Ee,L,{...this.rippleConfig,...t}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Ee})}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(L,t){2&L&&D.AVh("mat-ripple-unbounded",t.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return se})()},96183(ke,q,l){"use strict";l.d(q,{$2:()=>be,JO:()=>Re,VO:()=>Se,Ve:()=>nt});var i=l(49338),g=l(2615),p=l(73664),D=l(17705),o=l(5718),e=l(18617),A=l(17094),h=l(89726),d=l(99090),w=l(61577),f=l(83869),F=l(67336),M=l(10438),K=l(89417),j=l(21413),Z=l(59030),ee=l(57786),V=l(5964),Q=l(96354),$=l(99172),ie=l(25558),_e=l(96697),ye=l(56977),se=l(72200),pe=l(69588),Ee=l(31804),L=l(23029),t=l(2709),s=l(39336),m=l(40146),u=l(22466),_=l(71228);const T=["trigger"],P=["panel"],C=[[["mat-select-trigger"]],"*"],a=["mat-select-trigger","*"];function x($e,dt){if(1&$e&&(p.j41(0,"span",4),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.JRh(yt.placeholder)}}function Y($e,dt){1&$e&&p.SdG(0)}function R($e,dt){if(1&$e&&(p.j41(0,"span",11),p.EFF(1),p.k0s()),2&$e){const yt=p.XpG(2);p.R7$(),p.JRh(yt.triggerValue)}}function U($e,dt){if(1&$e&&(p.j41(0,"span",5),p.nVh(1,Y,1,0)(2,R,2,1,"span",11),p.k0s()),2&$e){const yt=p.XpG();p.R7$(),p.vxM(yt.customTrigger?1:2)}}function fe($e,dt){if(1&$e){const yt=p.RV6();p.j41(0,"div",12,1),p.bIt("keydown",function(rt){g.eBV(yt);const Mn=p.XpG();return g.Njj(Mn._handleKeydown(rt))}),p.SdG(2,1),p.k0s()}if(2&$e){const yt=p.XpG();p.HbH(p.VkB("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",yt._getPanelTheme())),p.AVh("mat-select-panel-animations-enabled",!yt._animationsDisabled),p.Y8G("ngClass",yt.panelClass),p.BMQ("id",yt.id+"-panel")("aria-multiselectable",yt.multiple)("aria-label",yt.ariaLabel||null)("aria-labelledby",yt._getPanelAriaLabelledby())}}const ge=new g.nKC("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{const $e=(0,g.WQX)(g.zZn);return()=>(0,i.RH)($e)}}),Re=new g.nKC("MAT_SELECT_CONFIG"),Me={provide:ge,deps:[],useFactory:function ce($e){const dt=(0,g.WQX)(g.zZn);return()=>(0,i.RH)(dt)}},ve=new g.nKC("MatSelectTrigger");class oe{source;value;constructor(dt,yt){this.source=dt,this.value=yt}}let Se=(()=>{class $e{_viewportRuler=(0,g.WQX)(o.Xj);_changeDetectorRef=(0,g.WQX)(D.gRc);_elementRef=(0,g.WQX)(p.aKT);_dir=(0,g.WQX)(w.dS,{optional:!0});_idGenerator=(0,g.WQX)(h.g);_renderer=(0,g.WQX)(p.sFG);_parentFormField=(0,g.WQX)(pe.xb,{optional:!0});ngControl=(0,g.WQX)(K.vO,{self:!0,optional:!0});_liveAnnouncer=(0,g.WQX)(A.Ai);_defaultOptions=(0,g.WQX)(Re,{optional:!0});_animationsDisabled=(0,Ee.Rc)();_initialized=new j.B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(yt){const Et=this.options.toArray()[yt];if(Et){const rt=this.panel.nativeElement,Mn=(0,L.jb)(yt,this.options,this.optionGroups),qt=Et._getHostElement();rt.scrollTop=0===yt&&1===Mn?0:(0,L.TL)(qt.offsetTop,qt.offsetHeight,rt.scrollTop,rt.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(yt){return new oe(this,yt)}_scrollStrategyFactory=(0,g.WQX)(ge);_panelOpen=!1;_compareWith=(yt,Et)=>yt===Et;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new j.B;_errorStateTracker;stateChanges=new j.B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(yt){this._disableRipple.set(yt)}_disableRipple=(0,g.vPA)(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(yt){this._hideSingleSelectionIndicator=yt,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(yt){this._placeholder=yt,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(K.k0.required)??!1}set required(yt){this._required=yt,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(yt){this._multiple=yt}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(yt){this._compareWith=yt,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(yt){this._assignValue(yt)&&this._onChange(yt)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(yt){this._errorStateTracker.matcher=yt}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(yt){this._id=yt||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(yt){this._errorStateTracker.errorState=yt}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=(0,Z.v)(()=>{const yt=this.options;return yt?yt.changes.pipe((0,$.Z)(yt),(0,ie.n)(()=>(0,ee.h)(...yt.map(Et=>Et.onSelectionChange)))):this._initialized.pipe((0,ie.n)(()=>this.optionSelectionChanges))});openedChange=new p.bkB;_openedStream=this.openedChange.pipe((0,V.p)(yt=>yt),(0,Q.T)(()=>{}));_closedStream=this.openedChange.pipe((0,V.p)(yt=>!yt),(0,Q.T)(()=>{}));selectionChange=new p.bkB;valueChange=new p.bkB;constructor(){const yt=(0,g.WQX)(t.e),Et=(0,g.WQX)(K.cV,{optional:!0}),rt=(0,g.WQX)(K.j4,{optional:!0}),Mn=(0,g.WQX)(new D.ES_("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),null!=this._defaultOptions?.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new s.X(yt,this.ngControl,rt,Et,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=null==Mn?0:parseInt(Mn)||0,this.id=this.id}ngOnInit(){this._selectionModel=new f.C(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe((0,ye.Q)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe((0,ye.Q)(this._destroy)).subscribe(yt=>{yt.added.forEach(Et=>Et.select()),yt.removed.forEach(Et=>Et.deselect())}),this.options.changes.pipe((0,$.Z)(null),(0,ye.Q)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const yt=this._getTriggerAriaLabelledby(),Et=this.ngControl;if(yt!==this._triggerAriaLabelledBy){const rt=this._elementRef.nativeElement;this._triggerAriaLabelledBy=yt,yt?rt.setAttribute("aria-labelledby",yt):rt.removeAttribute("aria-labelledby")}Et&&(this._previousControl!==Et.control&&(void 0!==this._previousControl&&null!==Et.disabled&&Et.disabled!==this.disabled&&(this.disabled=Et.disabled),this._previousControl=Et.control),this.updateErrorState())}ngOnChanges(yt){(yt.disabled||yt.userAriaDescribedBy)&&this.stateChanges.next(),yt.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe((0,_e.s)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){const yt=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!yt)return;const Et=`${this.id}-panel`;this._trackedModal&&(0,e.Ae)(this._trackedModal,"aria-owns",Et),(0,e.px)(yt,"aria-owns",Et),this._trackedModal=yt}_clearFromModal(){this._trackedModal&&((0,e.Ae)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel)return void this._detachOverlay();this._cleanupDetach?.(),this._cleanupDetach=()=>{Et(),clearTimeout(rt),this._cleanupDetach=void 0};const yt=this.panel.nativeElement,Et=this._renderer.listen(yt,"animationend",Mn=>{"_mat-select-exit"===Mn.animationName&&(this._cleanupDetach?.(),this._detachOverlay())}),rt=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);yt.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(yt){this._assignValue(yt)}registerOnChange(yt){this._onChange=yt}registerOnTouched(yt){this._onTouched=yt}setDisabledState(yt){this.disabled=yt,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const yt=this._selectionModel.selected.map(Et=>Et.viewValue);return this._isRtl()&&yt.reverse(),yt.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(yt){this.disabled||(this.panelOpen?this._handleOpenKeydown(yt):this._handleClosedKeydown(yt))}_handleClosedKeydown(yt){const Et=yt.keyCode,rt=Et===M.n6||Et===M.i7||Et===M.UQ||Et===M.LE,Mn=Et===M.Fm||Et===M.t6,qt=this._keyManager;if(!qt.isTyping()&&Mn&&!(0,F.rp)(yt)||(this.multiple||yt.altKey)&&rt)yt.preventDefault(),this.open();else if(!this.multiple){const S=this.selected;qt.onKeydown(yt);const Xt=this.selected;Xt&&S!==Xt&&this._liveAnnouncer.announce(Xt.viewValue,1e4)}}_handleOpenKeydown(yt){const Et=this._keyManager,rt=yt.keyCode,Mn=rt===M.n6||rt===M.i7,qt=Et.isTyping();if(Mn&&yt.altKey)yt.preventDefault(),this.close();else if(qt||rt!==M.Fm&&rt!==M.t6||!Et.activeItem||(0,F.rp)(yt))if(!qt&&this._multiple&&rt===M.A&&yt.ctrlKey){yt.preventDefault();const S=this.options.some(Xt=>!Xt.disabled&&!Xt.selected);this.options.forEach(Xt=>{Xt.disabled||(S?Xt.select():Xt.deselect())})}else{const S=Et.activeItemIndex;Et.onKeydown(yt),this._multiple&&Mn&&yt.shiftKey&&Et.activeItem&&Et.activeItemIndex!==S&&Et.activeItem._selectViaInteraction()}else yt.preventDefault(),Et.activeItem._selectViaInteraction()}_handleOverlayKeydown(yt){yt.keyCode===M._f&&!(0,F.rp)(yt)&&(yt.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(yt){if(this.options.forEach(Et=>Et.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&yt)Array.isArray(yt),yt.forEach(Et=>this._selectOptionByValue(Et)),this._sortValues();else{const Et=this._selectOptionByValue(yt);Et?this._keyManager.updateActiveItem(Et):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(yt){const Et=this.options.find(rt=>{if(this._selectionModel.isSelected(rt))return!1;try{return(null!=rt.value||this.canSelectNullableOptions)&&this._compareWith(rt.value,yt)}catch{return!1}});return Et&&this._selectionModel.select(Et),Et}_assignValue(yt){return!!(yt!==this._value||this._multiple&&Array.isArray(yt))&&(this.options&&this._setSelectionByValue(yt),this._value=yt,!0)}_skipPredicate=yt=>!this.panelOpen&&yt.disabled;_getOverlayWidth(yt){return"auto"===this.panelWidth?(yt instanceof i.$Q?yt.elementRef:yt||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}_syncParentProperties(){if(this.options)for(const yt of this.options)yt._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new d.A(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const yt=(0,ee.h)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ye.Q)(yt)).subscribe(Et=>{this._onSelect(Et.source,Et.isUserInput),Et.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ee.h)(...this.options.map(Et=>Et._stateChanges)).pipe((0,ye.Q)(yt)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(yt,Et){const rt=this._selectionModel.isSelected(yt);this.canSelectNullableOptions||null!=yt.value||this._multiple?(rt!==yt.selected&&(yt.selected?this._selectionModel.select(yt):this._selectionModel.deselect(yt)),Et&&this._keyManager.setActiveItem(yt),this.multiple&&(this._sortValues(),Et&&this.focus())):(yt.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(yt.value)),rt!==this._selectionModel.isSelected(yt)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const yt=this.options.toArray();this._selectionModel.sort((Et,rt)=>this.sortComparator?this.sortComparator(Et,rt,yt):yt.indexOf(Et)-yt.indexOf(rt)),this.stateChanges.next()}}_propagateChanges(yt){let Et;Et=this.multiple?this.selected.map(rt=>rt.value):this.selected?this.selected.value:yt,this._value=Et,this.valueChange.emit(Et),this._onChange(Et),this.selectionChange.emit(this._getChangeEvent(Et)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let yt=-1;for(let Et=0;Et0&&!!this._overlayDir}focus(yt){this._elementRef.nativeElement.focus(yt)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const yt=this._parentFormField?.getLabelId()||null;return this.ariaLabelledby?(yt?yt+" ":"")+this.ariaLabelledby:yt}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let yt=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(yt+=" "+this.ariaLabelledby),yt||(yt=this._valueId),yt}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(yt){yt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",yt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(Et){return new(Et||$e)};static \u0275cmp=p.VBU({type:$e,selectors:[["mat-select"]],contentQueries:function(Et,rt,Mn){if(1&Et&&(p.wni(Mn,ve,5),p.wni(Mn,L.wT,5),p.wni(Mn,L.QC,5)),2&Et){let qt;p.mGM(qt=p.lsd())&&(rt.customTrigger=qt.first),p.mGM(qt=p.lsd())&&(rt.options=qt),p.mGM(qt=p.lsd())&&(rt.optionGroups=qt)}},viewQuery:function(Et,rt){if(1&Et&&(p.GBs(T,5),p.GBs(P,5),p.GBs(i.WB,5)),2&Et){let Mn;p.mGM(Mn=p.lsd())&&(rt.trigger=Mn.first),p.mGM(Mn=p.lsd())&&(rt.panel=Mn.first),p.mGM(Mn=p.lsd())&&(rt._overlayDir=Mn.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(Et,rt){1&Et&&p.bIt("keydown",function(qt){return rt._handleKeydown(qt)})("focus",function(){return rt._onFocus()})("blur",function(){return rt._onBlur()}),2&Et&&(p.BMQ("id",rt.id)("tabindex",rt.disabled?-1:rt.tabIndex)("aria-controls",rt.panelOpen?rt.id+"-panel":null)("aria-expanded",rt.panelOpen)("aria-label",rt.ariaLabel||null)("aria-required",rt.required.toString())("aria-disabled",rt.disabled.toString())("aria-invalid",rt.errorState)("aria-activedescendant",rt._getAriaActiveDescendant()),p.AVh("mat-mdc-select-disabled",rt.disabled)("mat-mdc-select-invalid",rt.errorState)("mat-mdc-select-required",rt.required)("mat-mdc-select-empty",rt.empty)("mat-mdc-select-multiple",rt.multiple)("mat-select-open",rt.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",D.L39],disableRipple:[2,"disableRipple","disableRipple",D.L39],tabIndex:[2,"tabIndex","tabIndex",yt=>null==yt?0:(0,D.Udg)(yt)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",D.L39],placeholder:"placeholder",required:[2,"required","required",D.L39],multiple:[2,"multiple","multiple",D.L39],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",D.L39],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",D.Udg],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",D.L39]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[p.Jv_([{provide:pe.qT,useExisting:$e},{provide:L.is,useExisting:$e}]),p.OA$],ngContentSelectors:a,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(Et,rt){if(1&Et){const Mn=p.RV6();p.NAR(C),p.j41(0,"div",2,0),p.bIt("click",function(){return g.eBV(Mn),g.Njj(rt.open())}),p.j41(3,"div",3),p.nVh(4,x,2,1,"span",4)(5,U,3,1,"span",5),p.k0s(),p.j41(6,"div",6)(7,"div",7),g.qSk(),p.j41(8,"svg",8),p.nrm(9,"path",9),p.k0s()()()(),p.DNE(10,fe,3,10,"ng-template",10),p.bIt("detach",function(){return g.eBV(Mn),g.Njj(rt.close())})("backdropClick",function(){return g.eBV(Mn),g.Njj(rt.close())})("overlayKeydown",function(S){return g.eBV(Mn),g.Njj(rt._handleOverlayKeydown(S))})}if(2&Et){const Mn=p.sdS(1);p.R7$(3),p.BMQ("id",rt._valueId),p.R7$(),p.vxM(rt.empty?4:5),p.R7$(6),p.Y8G("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",rt._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",rt._scrollStrategy)("cdkConnectedOverlayOrigin",rt._preferredOverlayOrigin||Mn)("cdkConnectedOverlayPositions",rt._positions)("cdkConnectedOverlayWidth",rt._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[i.$Q,i.WB,se.YU],styles:['@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}\n'],encapsulation:2,changeDetection:0})}return $e})(),be=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275dir=p.FsC({type:$e,selectors:[["mat-select-trigger"]],features:[p.Jv_([{provide:ve,useExisting:$e}])]})}return $e})(),nt=(()=>{class $e{static \u0275fac=function(Et){return new(Et||$e)};static \u0275mod=p.$C({type:$e});static \u0275inj=g.G2t({providers:[Me],imports:[i.z_,m.S,u.y,o.Gj,_.R,m.S,u.y]})}return $e})()},90882(ke,q,l){"use strict";l.d(q,{El:()=>he,LG:()=>Oe,US:()=>ge,vg:()=>ce});var i=l(76838),g=l(17094),p=l(61577),D=l(14085),o=l(67847),e=l(67336),A=l(10438),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(21413),K=l(33726),j=l(57786),Z=l(70152),ee=l(5964),V=l(96354),Q=l(73703),$=l(99172),ie=l(96697),_e=l(56977),ye=l(31804),se=l(22466);const pe=["*"],Ee=["content"],L=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],t=["mat-drawer","mat-drawer-content","*"];function s(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function m(Me,ve){1&Me&&(f.j41(0,"mat-drawer-content"),f.SdG(1,2),f.k0s())}const u=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_=["mat-sidenav","mat-sidenav-content","*"];function T(Me,ve){if(1&Me){const oe=f.RV6();f.j41(0,"div",1),f.bIt("click",function(){w.eBV(oe);const be=f.XpG();return w.Njj(be._onBackdropClicked())}),f.k0s()}if(2&Me){const oe=f.XpG();f.AVh("mat-drawer-shown",oe._isShowingBackdrop())}}function P(Me,ve){1&Me&&(f.j41(0,"mat-sidenav-content"),f.SdG(1,2),f.k0s())}const x=new w.nKC("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function R(){return!1}}),Y=new w.nKC("MAT_DRAWER_CONTAINER");let U=(()=>{class Me extends d.uv{_platform=(0,w.WQX)(h.O);_changeDetectorRef=(0,w.WQX)(F.gRc);_container=(0,w.WQX)(re);constructor(){super((0,w.WQX)(f.aKT),(0,w.WQX)(d.R),(0,w.WQX)(f.SKi))}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;const{start:oe,end:Se}=this._container;return null!=oe&&"over"!==oe.mode&&oe.opened||null!=Se&&"over"!==Se.mode&&Se.opened}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(Se,be){2&Se&&(f.xc7("margin-left",be._container._contentMargins.left,"px")("margin-right",be._container._contentMargins.right,"px"),f.AVh("mat-drawer-content-hidden",be._shouldBeHidden()))},features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),fe=(()=>{class Me{_elementRef=(0,w.WQX)(f.aKT);_focusTrapFactory=(0,w.WQX)(g.GX);_focusMonitor=(0,w.WQX)(i.FN);_platform=(0,w.WQX)(h.O);_ngZone=(0,w.WQX)(f.SKi);_renderer=(0,w.WQX)(f.sFG);_interactivityChecker=(0,w.WQX)(g.Z7);_doc=(0,w.WQX)(w.qQL);_container=(0,w.WQX)(Y,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(oe){(oe="end"===oe?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(oe),this._position=oe,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(oe){this._mode=oe,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(oe){this._disableClose=(0,D.he)(oe)}_disableClose=!1;get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(oe){("true"===oe||"false"===oe||null==oe)&&(oe=(0,D.he)(oe)),this._autoFocus=oe}_autoFocus;get opened(){return this._opened()}set opened(oe){this.toggle((0,D.he)(oe))}_opened=(0,w.vPA)(!1);_openedVia;_animationStarted=new M.B;_animationEnd=new M.B;openedChange=new f.bkB(!0);_openedStream=this.openedChange.pipe((0,ee.p)(oe=>oe),(0,V.T)(()=>{}));openedStart=this._animationStarted.pipe((0,ee.p)(()=>this.opened),(0,Q.u)(void 0));_closedStream=this.openedChange.pipe((0,ee.p)(oe=>!oe),(0,V.T)(()=>{}));closedStart=this._animationStarted.pipe((0,ee.p)(()=>!this.opened),(0,Q.u)(void 0));_destroyed=new M.B;onPositionChanged=new f.bkB;_content;_modeChanged=new M.B;_injector=(0,w.WQX)(w.zZn);_changeDetectorRef=(0,w.WQX)(F.gRc);constructor(){this.openedChange.pipe((0,_e.Q)(this._destroyed)).subscribe(oe=>{oe?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{const oe=this._elementRef.nativeElement;(0,K.R)(oe,"keydown").pipe((0,ee.p)(Se=>Se.keyCode===A._f&&!this.disableClose&&!(0,e.rp)(Se)),(0,_e.Q)(this._destroyed)).subscribe(Se=>this._ngZone.run(()=>{this.close(),Se.stopPropagation(),Se.preventDefault()})),this._eventCleanups=[this._renderer.listen(oe,"transitionrun",this._handleTransitionEvent),this._renderer.listen(oe,"transitionend",this._handleTransitionEvent),this._renderer.listen(oe,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(oe,Se){this._interactivityChecker.isFocusable(oe)||(oe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const be=()=>{nt(),$e(),oe.removeAttribute("tabindex")},nt=this._renderer.listen(oe,"blur",be),$e=this._renderer.listen(oe,"mousedown",be)})),oe.focus(Se)}_focusByCssSelector(oe,Se){let be=this._elementRef.nativeElement.querySelector(oe);be&&this._forceFocus(be,Se)}_takeFocus(){if(!this._focusTrap)return;const oe=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":(0,f.mal)(()=>{!this._focusTrap.focusInitialElement()&&"function"==typeof oe.focus&&oe.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(oe){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,oe):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const oe=this._doc.activeElement;return!!oe&&this._elementRef.nativeElement.contains(oe)}ngAfterViewInit(){this._isAttached=!0,"end"===this._position&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(oe=>oe()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(oe){return this.toggle(!0,oe)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(oe=!this.opened,Se){oe&&Se&&(this._openedVia=Se);const be=this._setOpen(oe,!oe&&this._isFocusWithinDrawer(),this._openedVia||"program");return oe||(this._openedVia=null),be}_setOpen(oe,Se,be){return oe===this.opened?Promise.resolve(oe?"open":"close"):(this._opened.set(oe),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",oe),!oe&&Se&&this._restoreFocus(be),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(nt=>{this.openedChange.pipe((0,ie.s)(1)).subscribe($e=>nt($e?"open":"close"))}))}_setIsAnimating(oe){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",oe)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(oe){if(!this._platform.isBrowser)return;const Se=this._elementRef.nativeElement,be=Se.parentNode;"end"===oe?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),be.insertBefore(this._anchor,Se)),be.appendChild(Se)):this._anchor&&this._anchor.parentNode.insertBefore(Se,this._anchor)}_handleTransitionEvent=oe=>{oe.target===this._elementRef.nativeElement&&this._ngZone.run(()=>{"transitionrun"===oe.type?this._animationStarted.next(oe):("transitionend"===oe.type&&this._setIsAnimating(!1),this._animationEnd.next(oe))})};static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer"]],viewQuery:function(Se,be){if(1&Se&&f.GBs(Ee,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._content=nt.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(Se,be){2&Se&&(f.BMQ("align",null)("tabIndex","side"!==be.mode?"-1":null),f.xc7("visibility",be._container||be.opened?null:"hidden"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),re=(()=>{class Me{_dir=(0,w.WQX)(p.dS,{optional:!0});_element=(0,w.WQX)(f.aKT);_ngZone=(0,w.WQX)(f.SKi);_changeDetectorRef=(0,w.WQX)(F.gRc);_animationDisabled=(0,ye.Rc)();_transitionsEnabled=!1;_allDrawers;_drawers=new f.rOR;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(oe){this._autosize=(0,D.he)(oe)}_autosize=(0,w.WQX)(x);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(oe){this._backdropOverride=null==oe?null:(0,D.he)(oe)}_backdropOverride;backdropClick=new f.bkB;_start;_end;_left;_right;_destroyed=new M.B;_doCheckSubject=new M.B;_contentMargins={left:null,right:null};_contentMarginChanges=new M.B;get scrollable(){return this._userContent||this._content}_injector=(0,w.WQX)(w.zZn);constructor(){const oe=(0,w.WQX)(h.O),Se=(0,w.WQX)(d.Xj);this._dir?.change.pipe((0,_e.Q)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Se.change().pipe((0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&oe.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe((0,$.Z)(this._allDrawers),(0,_e.Q)(this._destroyed)).subscribe(oe=>{this._drawers.reset(oe.filter(Se=>!Se._container||Se._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,$.Z)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(oe=>{this._watchDrawerToggle(oe),this._watchDrawerPosition(oe),this._watchDrawerMode(oe)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Z.B)(10),(0,_e.Q)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(oe=>oe.open())}close(){this._drawers.forEach(oe=>oe.close())}updateContentMargins(){let oe=0,Se=0;if(this._left&&this._left.opened)if("side"==this._left.mode)oe+=this._left._getWidth();else if("push"==this._left.mode){const be=this._left._getWidth();oe+=be,Se-=be}if(this._right&&this._right.opened)if("side"==this._right.mode)Se+=this._right._getWidth();else if("push"==this._right.mode){const be=this._right._getWidth();Se+=be,oe-=be}oe=oe||null,Se=Se||null,(oe!==this._contentMargins.left||Se!==this._contentMargins.right)&&(this._contentMargins={left:oe,right:Se},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(oe){oe._animationStarted.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==oe.mode&&oe.openedChange.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>this._setContainerClass(oe.opened))}_watchDrawerPosition(oe){oe.onPositionChanged.pipe((0,_e.Q)(this._drawers.changes)).subscribe(()=>{(0,f.mal)({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(oe){oe._modeChanged.pipe((0,_e.Q)((0,j.h)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(oe){const Se=this._element.nativeElement.classList,be="mat-drawer-container-has-open";oe?Se.add(be):Se.remove(be)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(oe=>{"end"==oe.position?this._end=oe:this._start=oe}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(oe=>oe&&!oe.disableClose&&this._drawerHasBackdrop(oe)).forEach(oe=>oe._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(oe){return null!=oe&&oe.opened}_drawerHasBackdrop(oe){return null==this._backdropOverride?!!oe&&"side"!==oe.mode:this._backdropOverride}static \u0275fac=function(Se){return new(Se||Me)};static \u0275cmp=f.VBU({type:Me,selectors:[["mat-drawer-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,U,5),f.wni(nt,fe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},viewQuery:function(Se,be){if(1&Se&&f.GBs(U,5),2&Se){let nt;f.mGM(nt=f.lsd())&&(be._userContent=nt.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f.Jv_([{provide:Y,useExisting:Me}])],ngContentSelectors:t,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(L),f.nVh(0,s,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,m,2,0,"mat-drawer-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[U],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),he=(()=>{class Me extends U{static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[f.Jv_([{provide:d.uv,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:1,vars:0,template:function(Se,be){1&Se&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return Me})(),Oe=(()=>{class Me extends fe{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(oe){this._fixedInViewport=(0,D.he)(oe)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(oe){this._fixedTopGap=(0,o.OE)(oe)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(oe){this._fixedBottomGap=(0,o.OE)(oe)}_fixedBottomGap=0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(Se,be){2&Se&&(f.BMQ("tabIndex","side"!==be.mode?"-1":null)("align",null),f.xc7("top",be.fixedInViewport?be.fixedTopGap:null,"px")("bottom",be.fixedInViewport?be.fixedBottomGap:null,"px"),f.AVh("mat-drawer-end","end"===be.position)("mat-drawer-over","over"===be.mode)("mat-drawer-push","push"===be.mode)("mat-drawer-side","side"===be.mode)("mat-sidenav-fixed",be.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.Jv_([{provide:fe,useExisting:Me}]),f.Vt3],ngContentSelectors:pe,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(Se,be){1&Se&&(f.NAR(),f.j41(0,"div",1,0),f.SdG(2),f.k0s())},dependencies:[d.uv],encapsulation:2,changeDetection:0})}return Me})(),ge=(()=>{class Me extends re{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let oe;return function(be){return(oe||(oe=f.xGo(Me)))(be||Me)}})();static \u0275cmp=f.VBU({type:Me,selectors:[["mat-sidenav-container"]],contentQueries:function(Se,be,nt){if(1&Se&&(f.wni(nt,he,5),f.wni(nt,Oe,5)),2&Se){let $e;f.mGM($e=f.lsd())&&(be._content=$e.first),f.mGM($e=f.lsd())&&(be._allDrawers=$e)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Se,be){2&Se&&f.AVh("mat-drawer-container-explicit-backdrop",be._backdropOverride)},exportAs:["matSidenavContainer"],features:[f.Jv_([{provide:Y,useExisting:Me},{provide:re,useExisting:Me}]),f.Vt3],ngContentSelectors:_,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(Se,be){1&Se&&(f.NAR(u),f.nVh(0,T,1,2,"div",0),f.SdG(1),f.SdG(2,1),f.nVh(3,P,2,0,"mat-sidenav-content")),2&Se&&(f.vxM(be.hasBackdrop?0:-1),f.R7$(3),f.vxM(be._content?-1:3))},dependencies:[he],styles:[".mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}\n"],encapsulation:2,changeDetection:0})}return Me})(),ce=(()=>{class Me{static \u0275fac=function(Se){return new(Se||Me)};static \u0275mod=f.$C({type:Me});static \u0275inj=w.G2t({imports:[se.y,d.Gj,d.Gj,se.y]})}return Me})()},30450(ke,q,l){"use strict";l.d(q,{mV:()=>Q,sG:()=>V});var i=l(2615),g=l(73664),p=l(17705),D=l(89417),o=l(76838),e=l(89726),A=l(88968),h=l(31804),d=l(32046),w=l(12496),f=l(53155),F=l(22466);const M=["switch"],K=["*"];function j($,ie){1&$&&(g.j41(0,"span",11),i.qSk(),g.j41(1,"svg",13),g.nrm(2,"path",14),g.k0s(),g.j41(3,"svg",15),g.nrm(4,"path",16),g.k0s()())}const Z=new i.nKC("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})});class ee{source;checked;constructor(ie,_e){this.source=ie,this.checked=_e}}let V=(()=>{class ${_elementRef=(0,i.WQX)(g.aKT);_focusMonitor=(0,i.WQX)(o.FN);_changeDetectorRef=(0,i.WQX)(p.gRc);defaults=(0,i.WQX)(Z);_onChange=_e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(_e){return new ee(this,_e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=(0,h.Rc)();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(_e){this._checked=_e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new g.bkB;toggleChange=new g.bkB;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){(0,i.WQX)(A.l).load(d.A);const _e=(0,i.WQX)(new p.ES_("tabindex"),{optional:!0}),ye=this.defaults;this.tabIndex=null==_e?0:parseInt(_e)||0,this.color=ye.color||"accent",this.id=this._uniqueId=(0,i.WQX)(e.g).getId("mat-mdc-slide-toggle-"),this.hideIcon=ye.hideIcon??!1,this.disabledInteractive=ye.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{"keyboard"===_e||"program"===_e?(this._focused=!0,this._changeDetectorRef.markForCheck()):_e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(_e){_e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(_e){this.checked=!!_e}registerOnChange(_e){this._onChange=_e}registerOnTouched(_e){this._onTouched=_e}validate(_e){return this.required&&!0!==_e.value?{required:!0}:null}registerOnValidatorChange(_e){this._validatorOnChange=_e}setDisabledState(_e){this.disabled=_e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new ee(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(ye){return new(ye||$)};static \u0275cmp=g.VBU({type:$,selectors:[["mat-slide-toggle"]],viewQuery:function(ye,se){if(1&ye&&g.GBs(M,5),2&ye){let pe;g.mGM(pe=g.lsd())&&(se._switchElement=pe.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(ye,se){2&ye&&(g.Avn("id",se.id),g.BMQ("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),g.HbH(se.color?"mat-"+se.color:""),g.AVh("mat-mdc-slide-toggle-focused",se._focused)("mat-mdc-slide-toggle-checked",se.checked)("_mat-animation-noopable",se._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",p.L39],color:"color",disabled:[2,"disabled","disabled",p.L39],disableRipple:[2,"disableRipple","disableRipple",p.L39],tabIndex:[2,"tabIndex","tabIndex",_e=>null==_e?0:(0,p.Udg)(_e)],checked:[2,"checked","checked",p.L39],hideIcon:[2,"hideIcon","hideIcon",p.L39],disabledInteractive:[2,"disabledInteractive","disabledInteractive",p.L39]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[g.Jv_([{provide:D.kq,useExisting:(0,i.Rfq)(()=>$),multi:!0},{provide:D.cz,useExisting:$,multi:!0}]),g.OA$],ngContentSelectors:K,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(ye,se){if(1&ye){const pe=g.RV6();g.NAR(),g.j41(0,"div",1)(1,"button",2,0),g.bIt("click",function(){return i.eBV(pe),i.Njj(se._handleClick())}),g.nrm(3,"div",3)(4,"span",4),g.j41(5,"span",5)(6,"span",6)(7,"span",7),g.nrm(8,"span",8),g.k0s(),g.j41(9,"span",9),g.nrm(10,"span",10),g.k0s(),g.nVh(11,j,5,0,"span",11),g.k0s()()(),g.j41(12,"label",12),g.bIt("click",function(L){return i.eBV(pe),i.Njj(L.stopPropagation())}),g.SdG(13),g.k0s()()}if(2&ye){const pe=g.sdS(2);g.Y8G("labelPosition",se.labelPosition),g.R7$(),g.AVh("mdc-switch--selected",se.checked)("mdc-switch--unselected",!se.checked)("mdc-switch--checked",se.checked)("mdc-switch--disabled",se.disabled)("mat-mdc-slide-toggle-disabled-interactive",se.disabledInteractive),g.Y8G("tabIndex",se.disabled&&!se.disabledInteractive?-1:se.tabIndex)("disabled",se.disabled&&!se.disabledInteractive),g.BMQ("id",se.buttonId)("name",se.name)("aria-label",se.ariaLabel)("aria-labelledby",se._getAriaLabelledBy())("aria-describedby",se.ariaDescribedby)("aria-required",se.required||null)("aria-checked",se.checked)("aria-disabled",se.disabled&&se.disabledInteractive?"true":null),g.R7$(9),g.Y8G("matRippleTrigger",pe)("matRippleDisabled",se.disableRipple||se.disabled)("matRippleCentered",!0),g.R7$(),g.vxM(se.hideIcon?-1:11),g.R7$(),g.Y8G("for",se.buttonId),g.BMQ("id",se._labelId)}},dependencies:[w.r6,f.t],styles:['.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}\n'],encapsulation:2,changeDetection:0})}return $})(),Q=(()=>{class ${static \u0275fac=function(ye){return new(ye||$)};static \u0275mod=g.$C({type:$});static \u0275inj=i.G2t({imports:[V,F.y,F.y]})}return $})()},95416(ke,q,l){"use strict";l.d(q,{UG:()=>T,_T:()=>C,x6:()=>_});var i=l(2615),g=l(73664),p=l(17705),D=l(21413),o=l(7673),e=l(88834),A=l(17094),h=l(89726),d=l(39842),w=l(76939),f=l(31804),F=l(99327),M=l(34330),K=l(49338),j=l(56977),Z=l(22466);function ee(x,Y){if(1&x){const R=g.RV6();g.j41(0,"div",1)(1,"button",2),g.bIt("click",function(){i.eBV(R);const fe=g.XpG();return i.Njj(fe.action())}),g.EFF(2),g.k0s()()}if(2&x){const R=g.XpG();g.R7$(2),g.SpI(" ",R.data.action," ")}}const V=["label"];function Q(x,Y){}const $=Math.pow(2,31)-1;class ie{_overlayRef;instance;containerInstance;_afterDismissed=new D.B;_afterOpened=new D.B;_onAction=new D.B;_durationTimeoutId;_dismissedByAction=!1;constructor(Y,R){this._overlayRef=R,this.containerInstance=Y,Y._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Y,$))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const _e=new i.nKC("MatSnackBarData");class ye{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"}let se=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return x})(),pe=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return x})(),Ee=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275dir=g.FsC({type:x,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return x})(),L=(()=>{class x{snackBarRef=(0,i.WQX)(ie);data=(0,i.WQX)(_e);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(U,fe){1&U&&(g.j41(0,"div",0),g.EFF(1),g.k0s(),g.nVh(2,ee,3,1,"div",1)),2&U&&(g.R7$(),g.SpI(" ",fe.data.message,"\n"),g.R7$(),g.vxM(fe.hasAction?2:-1))},dependencies:[e.$z,se,pe,Ee],styles:[".mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}\n"],encapsulation:2,changeDetection:0})}return x})();const t="_mat-snack-bar-enter",s="_mat-snack-bar-exit";let m=(()=>{class x extends w.lb{_ngZone=(0,i.WQX)(g.SKi);_elementRef=(0,i.WQX)(g.aKT);_changeDetectorRef=(0,i.WQX)(p.gRc);_platform=(0,i.WQX)(d.O);_animationsDisabled=(0,f.Rc)();snackBarConfig=(0,i.WQX)(ye);_document=(0,i.WQX)(i.qQL);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=(0,i.WQX)(i.zZn);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new D.B;_onExit=new D.B;_onEnter=new D.B;_animationState="void";_live;_label;_role;_liveElementId=(0,i.WQX)(h.g).getId("mat-snack-bar-container-live-");constructor(){super();const R=this.snackBarConfig;this._live="assertive"!==R.politeness||R.announcementMessage?"off"===R.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(R){this._assertNotAttached();const U=this._portalOutlet.attachComponentPortal(R);return this._afterPortalAttached(),U}attachTemplatePortal(R){this._assertNotAttached();const U=this._portalOutlet.attachTemplatePortal(R);return this._afterPortalAttached(),U}attachDomPortal=R=>{this._assertNotAttached();const U=this._portalOutlet.attachDomPortal(R);return this._afterPortalAttached(),U};onAnimationEnd(R){R===s?this._completeExit():R===t&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(t)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(t)},200)))}exit(){return this._destroyed?(0,o.of)(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?(0,g.mal)(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(s)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(s),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){const R=this._elementRef.nativeElement,U=this.snackBarConfig.panelClass;U&&(Array.isArray(U)?U.forEach(he=>R.classList.add(he)):R.classList.add(U)),this._exposeToModals();const fe=this._label.nativeElement,re="mdc-snackbar__label";fe.classList.toggle(re,!fe.querySelector(`.${re}`))}_exposeToModals(){const R=this._liveElementId,U=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let fe=0;fe{const U=R.getAttribute("aria-owns");if(U){const fe=U.replace(this._liveElementId,"").trim();fe.length>0?R.setAttribute("aria-owns",fe):R.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;const R=this._elementRef.nativeElement,U=R.querySelector("[aria-hidden]"),fe=R.querySelector("[aria-live]");if(U&&fe){let re=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&U.contains(document.activeElement)&&(re=document.activeElement),U.removeAttribute("aria-hidden"),fe.appendChild(U),re?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=g.VBU({type:x,selectors:[["mat-snack-bar-container"]],viewQuery:function(U,fe){if(1&U&&(g.GBs(w.I3,7),g.GBs(V,7)),2&U){let re;g.mGM(re=g.lsd())&&(fe._portalOutlet=re.first),g.mGM(re=g.lsd())&&(fe._label=re.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(U,fe){1&U&&g.bIt("animationend",function(he){return fe.onAnimationEnd(he.animationName)})("animationcancel",function(he){return fe.onAnimationEnd(he.animationName)}),2&U&&g.AVh("mat-snack-bar-container-enter","visible"===fe._animationState)("mat-snack-bar-container-exit","hidden"===fe._animationState)("mat-snack-bar-container-animations-enabled",!fe._animationsDisabled)},features:[g.Vt3],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(U,fe){1&U&&(g.j41(0,"div",1)(1,"div",2,0)(3,"div",3),g.DNE(4,Q,0,0,"ng-template",4),g.k0s(),g.nrm(5,"div"),g.k0s()()),2&U&&(g.R7$(5),g.BMQ("aria-live",fe._live)("role",fe._role)("id",fe._liveElementId))},dependencies:[w.I3],styles:["@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}\n"],encapsulation:2})}return x})();const _=new i.nKC("mat-snack-bar-default-options",{providedIn:"root",factory:function u(){return new ye}});let T=(()=>{class x{_live=(0,i.WQX)(A.Ai);_injector=(0,i.WQX)(i.zZn);_breakpointObserver=(0,i.WQX)(M.Q);_parentSnackBar=(0,i.WQX)(x,{optional:!0,skipSelf:!0});_defaultConfig=(0,i.WQX)(_);_animationsDisabled=(0,f.Rc)();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=L;snackBarContainerComponent=m;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){const R=this._parentSnackBar;return R?R._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(R){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=R:this._snackBarRefAtThisLevel=R}constructor(){}openFromComponent(R,U){return this._attach(R,U)}openFromTemplate(R,U){return this._attach(R,U)}open(R,U="",fe){const re={...this._defaultConfig,...fe};return re.data={message:R,action:U},re.announcementMessage===R&&(re.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,re)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(R,U){const re=i.zZn.create({parent:U&&U.viewContainerRef&&U.viewContainerRef.injector||this._injector,providers:[{provide:ye,useValue:U}]}),he=new w.A8(this.snackBarContainerComponent,U.viewContainerRef,re),Oe=R.attach(he);return Oe.instance.snackBarConfig=U,Oe.instance}_attach(R,U){const fe={...new ye,...this._defaultConfig,...U},re=this._createOverlay(fe),he=this._attachSnackBarContainer(re,fe),Oe=new ie(he,re);if(R instanceof g.C4Q){const ge=new w.VA(R,null,{$implicit:fe.data,snackBarRef:Oe});Oe.instance=he.attachTemplatePortal(ge)}else{const ge=this._createInjector(fe,Oe),ce=new w.A8(R,void 0,ge),Re=he.attachComponentPortal(ce);Oe.instance=Re.instance}return this._breakpointObserver.observe(F.Rp.HandsetPortrait).pipe((0,j.Q)(re.detachments())).subscribe(ge=>{re.overlayElement.classList.toggle(this.handsetCssClass,ge.matches)}),fe.announcementMessage&&he._onAnnounce.subscribe(()=>{this._live.announce(fe.announcementMessage,fe.politeness)}),this._animateSnackBar(Oe,fe),this._openedSnackBarRef=Oe,this._openedSnackBarRef}_animateSnackBar(R,U){R.afterDismissed().subscribe(()=>{this._openedSnackBarRef==R&&(this._openedSnackBarRef=null),U.announcementMessage&&this._live.clear()}),U.duration&&U.duration>0&&R.afterOpened().subscribe(()=>R._dismissAfter(U.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{R.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):R.containerInstance.enter()}_createOverlay(R){const U=new K.rR;U.direction=R.direction;const fe=(0,K.uA)(this._injector),re="rtl"===R.direction,he="left"===R.horizontalPosition||"start"===R.horizontalPosition&&!re||"end"===R.horizontalPosition&&re,Oe=!he&&"center"!==R.horizontalPosition;return he?fe.left("0"):Oe?fe.right("0"):fe.centerHorizontally(),"top"===R.verticalPosition?fe.top("0"):fe.bottom("0"),U.positionStrategy=fe,U.disableAnimations=this._animationsDisabled,(0,K.Y$)(this._injector,U)}_createInjector(R,U){return i.zZn.create({parent:R&&R.viewContainerRef&&R.viewContainerRef.injector||this._injector,providers:[{provide:ie,useValue:U},{provide:_e,useValue:R.data}]})}static \u0275fac=function(U){return new(U||x)};static \u0275prov=i.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})(),C=(()=>{class x{static \u0275fac=function(U){return new(U||x)};static \u0275mod=g.$C({type:x});static \u0275inj=i.G2t({providers:[T],imports:[K.z_,w.jc,e.Hl,Z.y,L,Z.y]})}return x})()},2042(ke,q,l){"use strict";l.d(q,{B4:()=>_e,NQ:()=>t,aE:()=>L});var i=l(2615),g=l(73664),p=l(17705),D=l(18617),o=l(76838),e=l(10438),A=l(21413),h=l(92771),d=l(57786),w=l(88968),f=l(31804),F=l(32046),M=l(22466);const K=["mat-sort-header",""],j=["*"];function Z(m,u){1&m&&(g.rj2(0,"div",2),i.qSk(),g.rj2(1,"svg",3),g.Hgh(2,"path",4),g.eux()())}const ie=new i.nKC("MAT_SORT_DEFAULT_OPTIONS");let _e=(()=>{class m{_defaultOptions;_initializedStream=new h.m(1);sortables=new Map;_stateChanges=new A.B;active;start="asc";get direction(){return this._direction}set direction(_){this._direction=_}_direction="";disableClear;disabled=!1;sortChange=new g.bkB;initialized=this._initializedStream;constructor(_){this._defaultOptions=_}register(_){this.sortables.set(_.id,_)}deregister(_){this.sortables.delete(_.id)}sort(_){this.active!=_.id?(this.active=_.id,this.direction=_.start?_.start:this.start):this.direction=this.getNextSortDirection(_),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(_){if(!_)return"";let P=function ye(m,u){let _=["asc","desc"];return"desc"==m&&_.reverse(),u||_.push(""),_}(_.start||this.start,_?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),C=P.indexOf(this.direction)+1;return C>=P.length&&(C=0),P[C]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(T){return new(T||m)(g.rXU(ie,8))};static \u0275dir=g.FsC({type:m,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",p.L39],disabled:[2,"matSortDisabled","disabled",p.L39]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[g.OA$]})}return m})(),se=(()=>{class m{changes=new A.B;static \u0275fac=function(T){return new(T||m)};static \u0275prov=i.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})();const Ee={provide:se,deps:[[new g.Xx1,new g.kdw,se]],useFactory:function pe(m){return m||new se}};let L=(()=>{class m{_intl=(0,i.WQX)(se);_sort=(0,i.WQX)(_e,{optional:!0});_columnDef=(0,i.WQX)("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=(0,i.WQX)(p.gRc);_focusMonitor=(0,i.WQX)(o.FN);_elementRef=(0,i.WQX)(g.aKT);_ariaDescriber=(0,i.WQX)(D.vr,{optional:!0});_renderChanges;_animationsDisabled=(0,f.Rc)();_recentlyCleared=(0,i.vPA)(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(_){this._updateSortActionDescription(_)}_sortActionDescription="Sort";disableClear;constructor(){(0,i.WQX)(w.l).load(F.A);const _=(0,i.WQX)(ie,{optional:!0});_?.arrowPosition&&(this.arrowPosition=_?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=(0,d.h)(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){const _=this._isSorted(),T=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(_&&!this._isSorted()?T:null)}}_handleKeydown(_){(_.keyCode===e.t6||_.keyCode===e.Fm)&&(_.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(_){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,_)),this._sortActionDescription=_}static \u0275fac=function(T){return new(T||m)};static \u0275cmp=g.VBU({type:m,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(T,P){1&T&&g.bIt("click",function(){return P._toggleOnInteraction()})("keydown",function(a){return P._handleKeydown(a)})("mouseleave",function(){return P._recentlyCleared.set(null)}),2&T&&(g.BMQ("aria-sort",P._getAriaSortAttribute()),g.AVh("mat-sort-header-disabled",P._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",p.L39],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",p.L39]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:j,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(T,P){1&T&&(g.NAR(),g.rj2(0,"div",0)(1,"div",1),g.SdG(2),g.eux(),g.nVh(3,Z,3,0,"div",2),g.eux()),2&T&&(g.AVh("mat-sort-header-sorted",P._isSorted())("mat-sort-header-position-before","before"===P.arrowPosition)("mat-sort-header-descending","desc"===P._sort.direction)("mat-sort-header-ascending","asc"===P._sort.direction)("mat-sort-header-recently-cleared-ascending","asc"===P._recentlyCleared())("mat-sort-header-recently-cleared-descending","desc"===P._recentlyCleared())("mat-sort-header-animations-disabled",P._animationsDisabled),g.BMQ("tabindex",P._isDisabled()?null:0)("role",P._isDisabled()?null:"button"),g.R7$(3),g.vxM(P._renderArrow()?3:-1))},styles:[".mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}\n"],encapsulation:2,changeDetection:0})}return m})(),t=(()=>{class m{static \u0275fac=function(T){return new(T||m)};static \u0275mod=g.$C({type:m});static \u0275inj=i.G2t({providers:[Ee],imports:[M.y]})}return m})()},36013(ke,q,l){"use strict";l.d(q,{F7:()=>Et,FR:()=>rt,M6:()=>yt,Ti:()=>Me,V5:()=>dt,aP:()=>Mn,xJ:()=>nt});var i=l(76939),g=l(97768),p=l(2615),D=l(73664),o=l(17705),e=l(76838),A=l(21413),h=l(18359),d=l(72200),w=l(49046),f=l(88968),F=l(12629),M=l(32046),K=l(12496),j=l(39842),Z=l(96354),ee=l(99172),V=l(25558),Q=l(56977),$=l(2709),ie=l(31804),_e=l(22466),ye=l(26881);const se=(S,Xt,de)=>({index:S,active:Xt,optional:de});function pe(S,Xt){if(1&S&&D.eu8(0,2),2&S){const de=D.XpG();D.Y8G("ngTemplateOutlet",de.iconOverrides[de.state])("ngTemplateOutletContext",D.sMw(2,se,de.index,de.active,de.optional))}}function Ee(S,Xt){if(1&S&&(D.j41(0,"span",7),D.EFF(1),D.k0s()),2&S){const de=D.XpG(2);D.R7$(),D.JRh(de._getDefaultTextForState(de.state))}}function L(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.completedLabel)}}function t(S,Xt){if(1&S&&(D.j41(0,"span",8),D.EFF(1),D.k0s()),2&S){const de=D.XpG(3);D.R7$(),D.JRh(de._intl.editableLabel)}}function s(S,Xt){if(1&S&&(D.nVh(0,L,2,1,"span",8)(1,t,2,1,"span",8),D.j41(2,"mat-icon",7),D.EFF(3),D.k0s()),2&S){const de=D.XpG(2);D.vxM("done"===de.state?0:"edit"===de.state?1:-1),D.R7$(3),D.JRh(de._getDefaultTextForState(de.state))}}function m(S,Xt){if(1&S&&D.nVh(0,Ee,2,1,"span",7)(1,s,4,2),2&S){let de;const ae=D.XpG();D.vxM("number"===(de=ae.state)?0:1)}}function u(S,Xt){1&S&&(D.j41(0,"div",4),D.eu8(1,9),D.k0s()),2&S&&(D.R7$(),D.Y8G("ngTemplateOutlet",Xt.template))}function _(S,Xt){if(1&S&&(D.j41(0,"div",4),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.label)}}function T(S,Xt){if(1&S&&(D.j41(0,"div",5),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de._intl.optionalLabel)}}function P(S,Xt){if(1&S&&(D.j41(0,"div",6),D.EFF(1),D.k0s()),2&S){const de=D.XpG();D.R7$(),D.JRh(de.errorMessage)}}const C=["*"];function a(S,Xt){}function x(S,Xt){if(1&S&&(D.SdG(0),D.DNE(1,a,0,0,"ng-template",0)),2&S){const de=D.XpG();D.R7$(),D.Y8G("cdkPortalOutlet",de._portal)}}const Y=["animatedContainer"],R=S=>({step:S});function U(S,Xt){1&S&&D.SdG(0)}function fe(S,Xt){1&S&&D.nrm(0,"div",7)}function re(S,Xt){if(1&S&&(D.eu8(0,6),D.nVh(1,fe,1,0,"div",7)),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$count;D.XpG(2);const Le=D.sdS(4);D.Y8G("ngTemplateOutlet",Le)("ngTemplateOutletContext",D.eq3(3,R,de)),D.R7$(),D.vxM(ae!==me-1?1:-1)}}function he(S,Xt){if(1&S&&(D.j41(0,"div",8,1),D.eu8(2,9),D.k0s()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=D.XpG(2);D.HbH("mat-horizontal-stepper-content-"+me._getAnimationDirection(ae)),D.Y8G("id",me._getStepContentId(ae)),D.BMQ("aria-labelledby",me._getStepLabelId(ae))("inert",me.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function Oe(S,Xt){if(1&S&&(D.j41(0,"div",2)(1,"div",3),D.Z7z(2,re,2,5,null,null,D.fX1),D.k0s(),D.j41(4,"div",4),D.Z7z(5,he,3,6,"div",5,D.fX1),D.k0s()()),2&S){const de=D.XpG();D.R7$(2),D.Dyx(de.steps),D.R7$(3),D.Dyx(de.steps)}}function ge(S,Xt){if(1&S&&(D.j41(0,"div",10),D.eu8(1,6),D.j41(2,"div",11,1)(4,"div",12)(5,"div",13),D.eu8(6,9),D.k0s()()()()),2&S){const de=Xt.$implicit,ae=Xt.$index,me=Xt.$index,Le=Xt.$count,et=D.XpG(2),tn=D.sdS(4);D.R7$(),D.Y8G("ngTemplateOutlet",tn)("ngTemplateOutletContext",D.eq3(10,R,de)),D.R7$(),D.AVh("mat-stepper-vertical-line",me!==Le-1)("mat-vertical-content-container-active",et.selectedIndex===ae),D.BMQ("inert",et.selectedIndex===ae?null:""),D.R7$(2),D.Y8G("id",et._getStepContentId(ae)),D.BMQ("aria-labelledby",et._getStepLabelId(ae)),D.R7$(2),D.Y8G("ngTemplateOutlet",de.content)}}function ce(S,Xt){if(1&S&&D.Z7z(0,ge,7,12,"div",10,D.fX1),2&S){const de=D.XpG();D.Dyx(de.steps)}}function Re(S,Xt){if(1&S){const de=D.RV6();D.j41(0,"mat-step-header",14),D.bIt("click",function(){const me=p.eBV(de).step;return p.Njj(me.select())})("keydown",function(me){p.eBV(de);const Le=D.XpG();return p.Njj(Le._onKeydown(me))}),D.k0s()}if(2&S){const de=Xt.step,ae=D.XpG();D.AVh("mat-horizontal-stepper-header","horizontal"===ae.orientation)("mat-vertical-stepper-header","vertical"===ae.orientation),D.Y8G("tabIndex",ae._getFocusIndex()===de.index()?0:-1)("id",ae._getStepLabelId(de.index()))("index",de.index())("state",de.indicatorType())("label",de.stepLabel||de.label)("selected",de.isSelected())("active",de.isNavigable())("optional",de.optional)("errorMessage",de.errorMessage)("iconOverrides",ae._iconOverrides)("disableRipple",ae.disableRipple||!de.isNavigable())("color",de.color||ae.color),D.BMQ("aria-posinset",de.index()+1)("aria-setsize",ae.steps.length)("aria-controls",ae._getStepContentId(de.index()))("aria-selected",de.isSelected())("aria-label",de.ariaLabel||null)("aria-labelledby",!de.ariaLabel&&de.ariaLabelledby?de.ariaLabelledby:null)("aria-disabled",!de.isNavigable()||null)}}let Me=(()=>{class S extends g.nb{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["","matStepLabel",""]],features:[D.Vt3]})}return S})(),ve=(()=>{class S{changes=new A.B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(ae){return new(ae||S)};static \u0275prov=p.jDH({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const Se={provide:ve,deps:[[new D.Xx1,new D.kdw,ve]],useFactory:function oe(S){return S||new ve}};let be=(()=>{class S extends g.oX{_intl=(0,p.WQX)(ve);_focusMonitor=(0,p.WQX)(e.FN);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();const de=(0,p.WQX)(f.l);de.load(M.A),de.load(w.Y);const ae=(0,p.WQX)(o.gRc);this._intlSubscription=this._intl.changes.subscribe(()=>ae.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(de,ae){de?this._focusMonitor.focusVia(this._elementRef,de,ae):this._elementRef.nativeElement.focus(ae)}_stringLabel(){return this.label instanceof Me?null:this.label}_templateLabel(){return this.label instanceof Me?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(de){return"number"==de?`${this.index+1}`:"edit"==de?"create":"error"==de?"warning":de}_hasEmptyLabel(){return!(this._stringLabel()||this._templateLabel()||this._hasOptionalLabel()||this._hasErrorLabel())}_hasOptionalLabel(){return this.optional&&"error"!==this.state}_hasErrorLabel(){return"error"===this.state}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(ae,me){2&ae&&(D.HbH("mat-"+(me.color||"primary")),D.AVh("mat-step-header-empty-label",me._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[D.Vt3],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(ae,me){if(1&ae&&(D.nrm(0,"div",0),D.j41(1,"div")(2,"div",1),D.nVh(3,pe,1,6,"ng-container",2)(4,m,2,1),D.k0s()(),D.j41(5,"div",3),D.nVh(6,u,2,1,"div",4)(7,_,2,1,"div",4),D.nVh(8,T,2,1,"div",5),D.nVh(9,P,2,1,"div",6),D.k0s()),2&ae){let Le;D.Y8G("matRippleTrigger",me._getHostElement())("matRippleDisabled",me.disableRipple),D.R7$(),D.HbH(D.VkB("mat-step-icon-state-",me.state," mat-step-icon")),D.AVh("mat-step-icon-selected",me.selected),D.R7$(2),D.vxM(me.iconOverrides&&me.iconOverrides[me.state]?3:4),D.R7$(2),D.AVh("mat-step-label-active",me.active)("mat-step-label-selected",me.selected)("mat-step-label-error","error"==me.state),D.R7$(),D.vxM((Le=me._templateLabel())?6:me._stringLabel()?7:-1,Le),D.R7$(2),D.vxM(me._hasOptionalLabel()?8:-1),D.R7$(),D.vxM(me._hasErrorLabel()?9:-1)}},dependencies:[K.r6,d.T3,F.An],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}\n'],encapsulation:2,changeDetection:0})}return S})(),nt=(()=>{class S{templateRef=(0,p.WQX)(D.C4Q);name;constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return S})(),$e=(()=>{class S{_template=(0,p.WQX)(D.C4Q);constructor(){}static \u0275fac=function(ae){return new(ae||S)};static \u0275dir=D.FsC({type:S,selectors:[["ng-template","matStepContent",""]]})}return S})(),dt=(()=>{class S extends g.VI{_errorStateMatcher=(0,p.WQX)($.e,{skipSelf:!0});_viewContainerRef=(0,p.WQX)(D.c1b);_isSelected=h.yU.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,V.n)(()=>this._stepper.selectionChange.pipe((0,Z.T)(de=>de.selectedStep===this),(0,ee.Z)(this._stepper.selected===this)))).subscribe(de=>{de&&this._lazyContent&&!this._portal&&(this._portal=new i.VA(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(de,ae){return this._errorStateMatcher.isErrorState(de,ae)||!!(de&&de.invalid&&this.interacted)}static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275cmp=D.VBU({type:S,selectors:[["mat-step"]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,Me,5),D.wni(Le,$e,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me.stepLabel=et.first),D.mGM(et=D.lsd())&&(me._lazyContent=et.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[D.Jv_([{provide:$.e,useExisting:S},{provide:g.VI,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ae,me){1&ae&&(D.NAR(),D.DNE(0,x,2,1,"ng-template"))},dependencies:[i.I3],encapsulation:2,changeDetection:0})}return S})(),yt=(()=>{class S extends g.Up{_ngZone=(0,p.WQX)(D.SKi);_renderer=(0,p.WQX)(D.sFG);_animationsDisabled=(0,ie.Rc)();_cleanupTransition;_isAnimating=(0,p.vPA)(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new D.rOR;_icons;animationDone=new D.bkB;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(de){this._animationDuration=/^\d+$/.test(de)?de+"ms":de}_animationDuration="";_isServer=!(0,p.WQX)(j.O).isBrowser;constructor(){super();const ae=(0,p.WQX)(D.aKT).nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===ae?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:de,templateRef:ae})=>this._iconOverrides[de]=ae),this.steps.changes.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe((0,Q.Q)(this._destroyed)).subscribe(()=>{const de=this._getAnimationDuration();"0ms"===de||"0s"===de?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),"function"==typeof queueMicrotask){let de=!1;this._animatedContainers.changes.pipe((0,ee.Z)(null),(0,Q.Q)(this._destroyed)).subscribe(()=>queueMicrotask(()=>{de||(de=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}_handleTransitionend=de=>{const ae=de.target;if(!ae)return;const me="horizontal"===this.orientation&&"transform"===de.propertyName&&ae.classList.contains("mat-horizontal-stepper-content-current"),Le="vertical"===this.orientation&&"grid-template-rows"===de.propertyName&&ae.classList.contains("mat-vertical-content-container-active");(me||Le)&&this._animatedContainers.find(tn=>tn.nativeElement===ae)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(ae){return new(ae||S)};static \u0275cmp=D.VBU({type:S,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ae,me,Le){if(1&ae&&(D.wni(Le,dt,5),D.wni(Le,nt,5)),2&ae){let et;D.mGM(et=D.lsd())&&(me._steps=et),D.mGM(et=D.lsd())&&(me._icons=et)}},viewQuery:function(ae,me){if(1&ae&&(D.GBs(be,5),D.GBs(Y,5)),2&ae){let Le;D.mGM(Le=D.lsd())&&(me._stepHeader=Le),D.mGM(Le=D.lsd())&&(me._animatedContainers=Le)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(ae,me){2&ae&&(D.BMQ("aria-orientation",me.orientation),D.xc7("--mat-stepper-animation-duration",me._getAnimationDuration()),D.AVh("mat-stepper-horizontal","horizontal"===me.orientation)("mat-stepper-vertical","vertical"===me.orientation)("mat-stepper-label-position-end","horizontal"===me.orientation&&"end"==me.labelPosition)("mat-stepper-label-position-bottom","horizontal"===me.orientation&&"bottom"==me.labelPosition)("mat-stepper-header-position-bottom","bottom"===me.headerPosition)("mat-stepper-animating",me._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[D.Jv_([{provide:g.Up,useExisting:S}]),D.Vt3],ngContentSelectors:C,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(ae,me){if(1&ae&&(D.NAR(),D.nVh(0,U,1,0),D.nVh(1,Oe,7,0,"div",2)(2,ce,2,0),D.DNE(3,Re,1,23,"ng-template",null,0,D.C5r)),2&ae){let Le;D.vxM(me._isServer?0:-1),D.R7$(),D.vxM("horizontal"===(Le=me.orientation)?1:"vertical"===Le?2:-1)}},dependencies:[d.T3,be],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}\n'],encapsulation:2,changeDetection:0})}return S})(),Et=(()=>{class S extends g.v5{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),rt=(()=>{class S extends g.FK{static \u0275fac=(()=>{let de;return function(me){return(de||(de=D.xGo(S)))(me||S)}})();static \u0275dir=D.FsC({type:S,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(ae,me){2&ae&&D.Avn("type",me.type)},features:[D.Vt3]})}return S})(),Mn=(()=>{class S{static \u0275fac=function(ae){return new(ae||S)};static \u0275mod=D.$C({type:S});static \u0275inj=p.G2t({providers:[Se,$.e],imports:[_e.y,i.jc,g.uY,F.m_,ye.p,yt,be,_e.y]})}return S})()},32046(ke,q,l){"use strict";l.d(q,{A:()=>g});var i=l(73664);let g=(()=>{class p{static \u0275fac=function(e){return new(e||p)};static \u0275cmp=i.VBU({type:p,selectors:[["structural-styles"]],decls:0,vars:0,template:function(e,A){},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}}\n'],encapsulation:2,changeDetection:0})}return p})()},19295(ke,q,l){"use strict";l.d(q,{$R:()=>He,YV:()=>Je,cC:()=>Ye,Qo:()=>it,Zq:()=>zt,iF:()=>At,xW:()=>We,KS:()=>st,tL:()=>gt,YZ:()=>St,ji:()=>we,NB:()=>fn,iL:()=>Lt,Zl:()=>ze,I6:()=>Li,tP:()=>In});var i=l(73664),g=l(2615),p=l(17705),D=l(14117),o=l(21413),e=l(84412),A=l(74402),h=l(7673),d=l(56977),f=function(kt){return kt[kt.REPLACED=0]="REPLACED",kt[kt.INSERTED=1]="INSERTED",kt[kt.MOVED=2]="MOVED",kt[kt.REMOVED=3]="REMOVED",kt}(f||{});const F=new g.nKC("_ViewRepeater");class K{applyChanges(Ot,Ze,Ge,Pt,Yt){Ot.forEachOperation((bn,Zn,oi)=>{let Ii,Ei;if(null==bn.previousIndex){const Nt=Ge(bn,Zn,oi);Ii=Ze.createEmbeddedView(Nt.templateRef,Nt.context,Nt.index),Ei=f.INSERTED}else null==oi?(Ze.remove(Zn),Ei=f.REMOVED):(Ii=Ze.get(Zn),Ze.move(Ii,oi),Ei=f.MOVED);Yt&&Yt({context:Ii?.context,operation:Ei,record:bn})})}detach(){}}var j=l(61577),Z=l(39842),ee=l(5718);const V=[[["caption"]],[["colgroup"],["col"]],"*"],Q=["caption","colgroup, col","*"];function $(kt,Ot){1&kt&&i.SdG(0,2)}function ie(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",0),i.eu8(3,2)(4,3),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,4),i.k0s())}function _e(kt,Ot){1&kt&&i.eu8(0,1)(1,2)(2,3)(3,4)}const pe=new g.nKC("CDK_TABLE");let L=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellDef",""]]})}return kt})(),t=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderCellDef",""]]})}return kt})(),s=(()=>{class kt{template=(0,g.WQX)(i.C4Q);constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterCellDef",""]]})}return kt})(),m=(()=>{class kt{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_name;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(Ze){Ze!==this._stickyEnd&&(this._stickyEnd=Ze,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Ze){Ze&&(this._name=Ze,this.cssClassFriendlyName=Ze.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkColumnDef",""]],contentQueries:function(Ge,Pt,Yt){if(1&Ge&&(i.wni(Yt,L,5),i.wni(Yt,t,5),i.wni(Yt,s,5)),2&Ge){let bn;i.mGM(bn=i.lsd())&&(Pt.cell=bn.first),i.mGM(bn=i.lsd())&&(Pt.headerCell=bn.first),i.mGM(bn=i.lsd())&&(Pt.footerCell=bn.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",p.L39],stickyEnd:[2,"stickyEnd","stickyEnd",p.L39]},features:[i.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}])]})}return kt})();class u{constructor(Ot,Ze){Ze.nativeElement.classList.add(...Ot._columnCssClassName)}}let _=(()=>{class kt extends u{constructor(){super((0,g.WQX)(m),(0,g.WQX)(i.aKT))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.Vt3]})}return kt})(),T=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[i.Vt3]})}return kt})(),P=(()=>{class kt extends u{constructor(){const Ze=(0,g.WQX)(m),Ge=(0,g.WQX)(i.aKT);super(Ze,Ge);const Pt=Ze._table?._getCellRole();Pt&&Ge.nativeElement.setAttribute("role",Pt)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.Vt3]})}return kt})(),a=(()=>{class kt{template=(0,g.WQX)(i.C4Q);_differs=(0,g.WQX)(p._q3);columns;_columnsDiffer;constructor(){}ngOnChanges(Ze){if(!this._columnsDiffer){const Ge=Ze.columns&&Ze.columns.currentValue||[];this._columnsDiffer=this._differs.find(Ge).create(),this._columnsDiffer.diff(Ge)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Ze){return this instanceof x?Ze.headerCell.template:this instanceof Y?Ze.footerCell.template:Ze.cell.template}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,features:[i.OA$]})}return kt})(),x=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),Y=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(Ze){Ze!==this._sticky&&(this._sticky=Ze,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}ngOnChanges(Ze){super.ngOnChanges(Ze)}hasStickyChanged(){const Ze=this._hasStickyChanged;return this.resetStickyChanged(),Ze}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",p.L39]},features:[i.Vt3,i.OA$]})}return kt})(),R=(()=>{class kt extends a{_table=(0,g.WQX)(pe,{optional:!0});when;constructor(){super((0,g.WQX)(i.C4Q),(0,g.WQX)(p._q3))}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[i.Vt3]})}return kt})(),U=(()=>{class kt{_viewContainer=(0,g.WQX)(i.c1b);cells;context;static mostRecentCellOutlet=null;constructor(){kt.mostRecentCellOutlet=this}ngOnDestroy(){kt.mostRecentCellOutlet===this&&(kt.mostRecentCellOutlet=null)}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","cdkCellOutlet",""]]})}return kt})(),fe=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),re=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),he=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275cmp=i.VBU({type:kt,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),Oe=(()=>{class kt{templateRef=(0,g.WQX)(i.C4Q);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["ng-template","cdkNoDataRow",""]]})}return kt})();const ge=["top","bottom","left","right"];class ce{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(Ot=>this._updateCachedSizes(Ot)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(Ot,Ze,Ge=!0,Pt=!0,Yt,bn,Zn){this._isNativeHtmlTable=Ot,this._stickCellCss=Ze,this._isBrowser=Ge,this._needsPositionStickyOnElement=Pt,this.direction=Yt,this._positionListener=bn,this._tableInjector=Zn,this._borderCellCss={top:`${Ze}-border-elem-top`,bottom:`${Ze}-border-elem-bottom`,left:`${Ze}-border-elem-left`,right:`${Ze}-border-elem-right`}}clearStickyPositioning(Ot,Ze){(Ze.includes("left")||Ze.includes("right"))&&this._removeFromStickyColumnReplayQueue(Ot);const Ge=[];for(const Pt of Ot)Pt.nodeType===Pt.ELEMENT_NODE&&Ge.push(Pt,...Array.from(Pt.children));(0,i.mal)({write:()=>{for(const Pt of Ge)this._removeStickyStyle(Pt,Ze)}},{injector:this._tableInjector})}updateStickyColumns(Ot,Ze,Ge,Pt=!0,Yt=!0){if(!Ot.length||!this._isBrowser||!Ze.some(Un=>Un)&&!Ge.some(Un=>Un))return this._positionListener?.stickyColumnsUpdated({sizes:[]}),void this._positionListener?.stickyEndColumnsUpdated({sizes:[]});const bn=Ot[0],Zn=bn.children.length,oi="rtl"===this.direction,Ii=oi?"right":"left",Ei=oi?"left":"right",Nt=Ze.lastIndexOf(!0),nn=Ge.indexOf(!0);let en,Nn,jn;Yt&&this._updateStickyColumnReplayQueue({rows:[...Ot],stickyStartStates:[...Ze],stickyEndStates:[...Ge]}),(0,i.mal)({earlyRead:()=>{en=this._getCellWidths(bn,Pt),Nn=this._getStickyStartColumnPositions(en,Ze),jn=this._getStickyEndColumnPositions(en,Ge)},write:()=>{for(const Un of Ot)for(let ui=0;ui!!Un)&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Nt?[]:en.slice(0,Nt+1).map((Un,ui)=>Ze[ui]?Un:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===nn?[]:en.slice(nn).map((Un,ui)=>Ge[ui+nn]?Un:null).reverse()}))}},{injector:this._tableInjector})}stickRows(Ot,Ze,Ge){if(!this._isBrowser)return;const Pt="bottom"===Ge?Ot.slice().reverse():Ot,Yt="bottom"===Ge?Ze.slice().reverse():Ze,bn=[],Zn=[],oi=[];(0,i.mal)({earlyRead:()=>{for(let Ii=0,Ei=0;Ii{const Ii=Yt.lastIndexOf(!0);for(let Ei=0;Ei{const Ge=Ot.querySelector("tfoot");Ge&&(Ze.some(Pt=>!Pt)?this._removeStickyStyle(Ge,["bottom"]):this._addStickyStyle(Ge,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(Ot,Ze){if(Ot.classList.contains(this._stickCellCss)){for(const Pt of Ze)Ot.style[Pt]="",Ot.classList.remove(this._borderCellCss[Pt]);ge.some(Pt=>-1===Ze.indexOf(Pt)&&Ot.style[Pt])?Ot.style.zIndex=this._getCalculatedZIndex(Ot):(Ot.style.zIndex="",this._needsPositionStickyOnElement&&(Ot.style.position=""),Ot.classList.remove(this._stickCellCss))}}_addStickyStyle(Ot,Ze,Ge,Pt){Ot.classList.add(this._stickCellCss),Pt&&Ot.classList.add(this._borderCellCss[Ze]),Ot.style[Ze]=`${Ge}px`,Ot.style.zIndex=this._getCalculatedZIndex(Ot),this._needsPositionStickyOnElement&&(Ot.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Ot){const Ze={top:100,bottom:10,left:1,right:1};let Ge=0;for(const Pt of ge)Ot.style[Pt]&&(Ge+=Ze[Pt]);return Ge?`${Ge}`:""}_getCellWidths(Ot,Ze=!0){if(!Ze&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ge=[],Pt=Ot.children;for(let Yt=0;Yt0;Yt--)Ze[Yt]&&(Ge[Yt]=Pt,Pt+=Ot[Yt]);return Ge}_retrieveElementSize(Ot){const Ze=this._elemSizeCache.get(Ot);if(Ze)return Ze;const Ge=Ot.getBoundingClientRect(),Pt={width:Ge.width,height:Ge.height};return this._resizeObserver&&(this._elemSizeCache.set(Ot,Pt),this._resizeObserver.observe(Ot,{box:"border-box"})),Pt}_updateStickyColumnReplayQueue(Ot){this._removeFromStickyColumnReplayQueue(Ot.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(Ot)}_removeFromStickyColumnReplayQueue(Ot){const Ze=new Set(Ot);for(const Ge of this._updatedStickyColumnsParamsToReplay)Ge.rows=Ge.rows.filter(Pt=>!Ze.has(Pt));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(Ge=>!!Ge.rows.length)}_updateCachedSizes(Ot){let Ze=!1;for(const Ge of Ot){const Pt=Ge.borderBoxSize?.length?{width:Ge.borderBoxSize[0].inlineSize,height:Ge.borderBoxSize[0].blockSize}:{width:Ge.contentRect.width,height:Ge.contentRect.height};Pt.width!==this._elemSizeCache.get(Ge.target)?.width&&Re(Ge.target)&&(Ze=!0),this._elemSizeCache.set(Ge.target,Pt)}Ze&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(const Ge of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(Ge.rows,Ge.stickyStartStates,Ge.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}}function Re(kt){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(Ot=>kt.classList.contains(Ot))}const yt=new g.nKC("CDK_SPL");let rt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._rowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","rowOutlet",""]]})}return kt})(),Mn=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._headerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","headerRowOutlet",""]]})}return kt})(),qt=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._footerRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","footerRowOutlet",""]]})}return kt})(),S=(()=>{class kt{viewContainer=(0,g.WQX)(i.c1b);elementRef=(0,g.WQX)(i.aKT);constructor(){const Ze=(0,g.WQX)(pe);Ze._noDataRowOutlet=this,Ze._outletAssigned()}static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275dir=i.FsC({type:kt,selectors:[["","noDataRowOutlet",""]]})}return kt})(),Xt=(()=>{class kt{_differs=(0,g.WQX)(p._q3);_changeDetectorRef=(0,g.WQX)(p.gRc);_elementRef=(0,g.WQX)(i.aKT);_dir=(0,g.WQX)(j.dS,{optional:!0});_platform=(0,g.WQX)(Z.O);_viewRepeater=(0,g.WQX)(F);_viewportRuler=(0,g.WQX)(ee.Xj);_stickyPositioningListener=(0,g.WQX)(yt,{optional:!0,skipSelf:!0});_document=(0,g.WQX)(g.qQL);_data;_onDestroy=new o.B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(void 0===this._cellRoleInternal){const Ze=this._elementRef.nativeElement.getAttribute("role");return"grid"===Ze||"treegrid"===Ze?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(Ze){this._trackByFn=Ze}_trackByFn;get dataSource(){return this._dataSource}set dataSource(Ze){this._dataSource!==Ze&&this._switchDataSource(Ze)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Ze){this._multiTemplateDataRows=Ze,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(Ze){this._fixedLayout=Ze,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new i.bkB;viewChange=new e.t({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=(0,g.WQX)(g.zZn);constructor(){(0,g.WQX)(new p.ES_("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName,this._dataDiffer=this._differs.find([]).create((Ge,Pt)=>this.trackBy?this.trackBy(Pt.dataIndex,Pt.data):Pt)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe((0,d.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Ze=>{Ze?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Ze=this._dataDiffer.diff(this._renderRows);if(!Ze)return this._updateNoDataRow(),void this.contentChanged.next();const Ge=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Ze,Ge,(Pt,Yt,bn)=>this._getEmbeddedViewArgs(Pt.item,bn),Pt=>Pt.item.data,Pt=>{Pt.operation===f.INSERTED&&Pt.context&&this._renderCellTemplateForItem(Pt.record.item.rowDef,Pt.context)}),this._updateRowIndexContext(),Ze.forEachIdentityChange(Pt=>{Ge.get(Pt.currentIndex).context.$implicit=Pt.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(Ze){this._customColumnDefs.add(Ze)}removeColumnDef(Ze){this._customColumnDefs.delete(Ze)}addRowDef(Ze){this._customRowDefs.add(Ze)}removeRowDef(Ze){this._customRowDefs.delete(Ze)}addHeaderRowDef(Ze){this._customHeaderRowDefs.add(Ze),this._headerRowDefChanged=!0}removeHeaderRowDef(Ze){this._customHeaderRowDefs.delete(Ze),this._headerRowDefChanged=!0}addFooterRowDef(Ze){this._customFooterRowDefs.add(Ze),this._footerRowDefChanged=!0}removeFooterRowDef(Ze){this._customFooterRowDefs.delete(Ze),this._footerRowDefChanged=!0}setNoDataRow(Ze){this._customNoDataRow=Ze}updateStickyHeaderRowStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._headerRowOutlet,"thead");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._headerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["top"]),this._stickyStyler.stickRows(Ze,Ge,"top"),this._headerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyFooterRowStyles(){const Ze=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){const Pt=ae(this._footerRowOutlet,"tfoot");Pt&&(Pt.style.display=Ze.length?"":"none")}const Ge=this._footerRowDefs.map(Pt=>Pt.sticky);this._stickyStyler.clearStickyPositioning(Ze,["bottom"]),this._stickyStyler.stickRows(Ze,Ge,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Ge),this._footerRowDefs.forEach(Pt=>Pt.resetStickyChanged())}updateStickyColumnStyles(){const Ze=this._getRenderedRows(this._headerRowOutlet),Ge=this._getRenderedRows(this._rowOutlet),Pt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Ze,...Ge,...Pt],["left","right"]),this._stickyColumnStylesNeedReset=!1),Ze.forEach((Yt,bn)=>{this._addStickyColumnStyles([Yt],this._headerRowDefs[bn])}),this._rowDefs.forEach(Yt=>{const bn=[];for(let Zn=0;Zn{this._addStickyColumnStyles([Yt],this._footerRowDefs[bn])}),Array.from(this._columnDefsByName.values()).forEach(Yt=>Yt.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs();const Ge=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Ge,this._forceRecalculateCellWidths=Ge,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){const Ze=[],Ge=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return Ze;for(let Pt=0;Pt{const Zn=Pt&&Pt.has(bn)?Pt.get(bn):[];if(Zn.length){const oi=Zn.shift();return oi.dataIndex=Ge,oi}return{data:Ze,rowDef:bn,dataIndex:Ge}})}_cacheColumnDefs(){this._columnDefsByName.clear(),de(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ge=>{this._columnDefsByName.has(Ge.name),this._columnDefsByName.set(Ge.name,Ge)})}_cacheRowDefs(){this._headerRowDefs=de(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=de(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=de(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Ze=this._rowDefs.filter(Ge=>!Ge.when);this._defaultRowDef=Ze[0]}_renderUpdatedColumns(){const Ze=(bn,Zn)=>{const oi=!!Zn.getColumnsDiff();return bn||oi},Ge=this._rowDefs.reduce(Ze,!1);Ge&&this._forceRenderDataRows();const Pt=this._headerRowDefs.reduce(Ze,!1);Pt&&this._forceRenderHeaderRows();const Yt=this._footerRowDefs.reduce(Ze,!1);return Yt&&this._forceRenderFooterRows(),Ge||Pt||Yt}_switchDataSource(Ze){this._data=[],(0,D.y)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Ze||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=Ze}_observeRenderChanges(){if(!this.dataSource)return;let Ze;(0,D.y)(this.dataSource)?Ze=this.dataSource.connect(this):(0,A.A)(this.dataSource)?Ze=this.dataSource:Array.isArray(this.dataSource)&&(Ze=(0,h.of)(this.dataSource)),this._renderChangeSubscription=Ze.pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._data=Ge||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._headerRowOutlet,Ze,Ge)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Ze,Ge)=>this._renderRow(this._footerRowOutlet,Ze,Ge)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Ze,Ge){const Pt=Array.from(Ge?.columns||[]).map(Zn=>this._columnDefsByName.get(Zn)),Yt=Pt.map(Zn=>Zn.sticky),bn=Pt.map(Zn=>Zn.stickyEnd);this._stickyStyler.updateStickyColumns(Ze,Yt,bn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Ze){const Ge=[];for(let Pt=0;Pt!Yt.when||Yt.when(Ge,Ze));else{let Yt=this._rowDefs.find(bn=>bn.when&&bn.when(Ge,Ze))||this._defaultRowDef;Yt&&Pt.push(Yt)}return Pt}_getEmbeddedViewArgs(Ze,Ge){return{templateRef:Ze.rowDef.template,context:{$implicit:Ze.data},index:Ge}}_renderRow(Ze,Ge,Pt,Yt={}){const bn=Ze.viewContainer.createEmbeddedView(Ge.template,Yt,Pt);return this._renderCellTemplateForItem(Ge,Yt),bn}_renderCellTemplateForItem(Ze,Ge){for(let Pt of this._getCellTemplates(Ze))U.mostRecentCellOutlet&&U.mostRecentCellOutlet._viewContainer.createEmbeddedView(Pt,Ge);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Ze=this._rowOutlet.viewContainer;for(let Ge=0,Pt=Ze.length;Ge{const Pt=this._columnDefsByName.get(Ge);return Ze.extractCellTemplate(Pt)}):[]}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Ze=(Ge,Pt)=>Ge||Pt.hasStickyChanged();this._headerRowDefs.reduce(Ze,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Ze,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Ze,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ce(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,this._dir?this._dir.value:"ltr",this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:(0,h.of)()).pipe((0,d.Q)(this._onDestroy)).subscribe(Ge=>{this._stickyStyler.direction=Ge,this.updateStickyColumnStyles()})}_getOwnDefs(Ze){return Ze.filter(Ge=>!Ge._table||Ge._table===this)}_updateNoDataRow(){const Ze=this._customNoDataRow||this._noDataRow;if(!Ze)return;const Ge=0===this._rowOutlet.viewContainer.length;if(Ge===this._isShowingNoDataRow)return;const Pt=this._noDataRowOutlet.viewContainer;if(Ge){const Yt=Pt.createEmbeddedView(Ze.templateRef),bn=Yt.rootNodes[0];if(1===Yt.rootNodes.length&&bn?.nodeType===this._document.ELEMENT_NODE){bn.setAttribute("role","row"),bn.classList.add(...Ze._contentClassNames);const Zn=bn.querySelectorAll(Ze._cellSelector);for(let oi=0;oi{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[ee.E9]})}return kt})();var tn=l(22466),Vt=l(57786),hn=l(84572),En=l(67847),_n=l(96354);const tt=[[["caption"]],[["colgroup"],["col"]],"*"],Fe=["caption","colgroup, col","*"];function Pe(kt,Ot){1&kt&&i.SdG(0,2)}function Ue(kt,Ot){1&kt&&(i.j41(0,"thead",0),i.eu8(1,1),i.k0s(),i.j41(2,"tbody",2),i.eu8(3,3)(4,4),i.k0s(),i.j41(5,"tfoot",0),i.eu8(6,5),i.k0s())}function Qe(kt,Ot){1&kt&&i.eu8(0,1)(1,3)(2,4)(3,5)}let ze=(()=>{class kt extends Xt{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(Ge,Pt){2&Ge&&i.AVh("mdc-table-fixed-layout",Pt.fixedLayout)},exportAs:["matTable"],features:[i.Jv_([{provide:Xt,useExisting:kt},{provide:pe,useExisting:kt},{provide:F,useClass:K},{provide:yt,useValue:null}]),i.Vt3],ngContentSelectors:Fe,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Ge,Pt){1&Ge&&(i.NAR(tt),i.SdG(0),i.SdG(1,1),i.nVh(2,Pe,1,0),i.nVh(3,Ue,7,0)(4,Qe,4,0)),2&Ge&&(i.R7$(2),i.vxM(Pt._isServer?2:-1),i.R7$(),i.vxM(Pt._isNativeHtmlTable?3:4))},dependencies:[Mn,rt,S,qt],styles:[".mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}\n"],encapsulation:2})}return kt})(),Je=(()=>{class kt extends L{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matCellDef",""]],features:[i.Jv_([{provide:L,useExisting:kt}]),i.Vt3]})}return kt})(),gt=(()=>{class kt extends t{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderCellDef",""]],features:[i.Jv_([{provide:t,useExisting:kt}]),i.Vt3]})}return kt})(),zt=(()=>{class kt extends s{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterCellDef",""]],features:[i.Jv_([{provide:s,useExisting:kt}]),i.Vt3]})}return kt})(),Ye=(()=>{class kt extends m{get name(){return this._name}set name(Ze){this._setNameInput(Ze)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[i.Jv_([{provide:m,useExisting:kt},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:kt}]),i.Vt3]})}return kt})(),st=(()=>{class kt extends _{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.Vt3]})}return kt})(),it=(()=>{class kt extends T{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),He=(()=>{class kt extends P{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.Vt3]})}return kt})(),we=(()=>{class kt extends x{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:x,useExisting:kt}]),i.Vt3]})}return kt})(),We=(()=>{class kt extends Y{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",p.L39]},features:[i.Jv_([{provide:Y,useExisting:kt}]),i.Vt3]})}return kt})(),Lt=(()=>{class kt extends R{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275dir=i.FsC({type:kt,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[i.Jv_([{provide:R,useExisting:kt}]),i.Vt3]})}return kt})(),St=(()=>{class kt extends fe{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i.Jv_([{provide:fe,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),At=(()=>{class kt extends re{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[i.Jv_([{provide:re,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),fn=(()=>{class kt extends he{static \u0275fac=(()=>{let Ze;return function(Pt){return(Ze||(Ze=i.xGo(kt)))(Pt||kt)}})();static \u0275cmp=i.VBU({type:kt,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i.Jv_([{provide:he,useExisting:kt}]),i.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Ge,Pt){1&Ge&&i.eu8(0,0)},dependencies:[U],encapsulation:2})}return kt})(),In=(()=>{class kt{static \u0275fac=function(Ge){return new(Ge||kt)};static \u0275mod=i.$C({type:kt});static \u0275inj=g.G2t({imports:[tn.y,et,tn.y]})}return kt})();class Li extends D.q{_data;_renderData=new e.t([]);_filter=new e.t("");_internalPageChanges=new o.B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(Ot){Ot=Array.isArray(Ot)?Ot:[],this._data.next(Ot),this._renderChangesSubscription||this._filterData(Ot)}get filter(){return this._filter.value}set filter(Ot){this._filter.next(Ot),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Ot){this._sort=Ot,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(Ot){this._paginator=Ot,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(Ot,Ze)=>{const Ge=Ot[Ze];if((0,En.o1)(Ge)){const Pt=Number(Ge);return Pt<9007199254740991?Pt:Ge}return Ge};sortData=(Ot,Ze)=>{const Ge=Ze.active,Pt=Ze.direction;return Ge&&""!=Pt?Ot.sort((Yt,bn)=>{let Zn=this.sortingDataAccessor(Yt,Ge),oi=this.sortingDataAccessor(bn,Ge);const Ii=typeof Zn,Ei=typeof oi;Ii!==Ei&&("number"===Ii&&(Zn+=""),"number"===Ei&&(oi+=""));let Nt=0;return null!=Zn&&null!=oi?Zn>oi?Nt=1:Zn{const Ge=Ze.trim().toLowerCase();return Object.values(Ot).some(Pt=>`${Pt}`.toLowerCase().includes(Ge))};constructor(Ot=[]){super(),this._data=new e.t(Ot),this._updateChangeSubscription()}_updateChangeSubscription(){const Ot=this._sort?(0,Vt.h)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Ze=this._paginator?(0,Vt.h)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),Pt=(0,hn.z)([this._data,this._filter]).pipe((0,_n.T)(([Zn])=>this._filterData(Zn))),Yt=(0,hn.z)([Pt,Ot]).pipe((0,_n.T)(([Zn])=>this._orderData(Zn))),bn=(0,hn.z)([Yt,Ze]).pipe((0,_n.T)(([Zn])=>this._pageData(Zn)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=bn.subscribe(Zn=>this._renderData.next(Zn))}_filterData(Ot){return this.filteredData=null==this.filter||""===this.filter?Ot:Ot.filter(Ze=>this.filterPredicate(Ze,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Ot){return this.sort?this.sortData(Ot.slice(),this.sort):Ot}_pageData(Ot){if(!this.paginator)return Ot;const Ze=this.paginator.pageIndex*this.paginator.pageSize;return Ot.slice(Ze,Ze+this.paginator.pageSize)}_updatePaginator(Ot){Promise.resolve().then(()=>{const Ze=this.paginator;if(Ze&&(Ze.length=Ot,Ze.pageIndex>0)){const Ge=Math.ceil(Ze.length/Ze.pageSize)-1||0,Pt=Math.min(Ze.pageIndex,Ge);Pt!==Ze.pageIndex&&(Ze.pageIndex=Pt,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}},96850(ke,q,l){"use strict";l.d(q,{Bu:()=>Ie,ES:()=>rt,Ql:()=>le,RI:()=>ze,T8:()=>Ue,hQ:()=>Ne,mq:()=>qt});var i=l(76838),g=l(89726),p=l(64123),D=l(61577),o=l(67336),e=l(10438),A=l(63610),h=l(39842),d=l(5718),w=l(2615),f=l(73664),F=l(17705),M=l(59295),K=l(71985),j=l(21413),Z=l(84412),ee=l(18359),V=l(57786),Q=l(7673),$=l(1807),ie=l(983),_e=l(70152),ye=l(5964),se=l(65245),pe=l(99172),Ee=l(25558),L=l(56977),t=l(31804),s=l(76939),m=l(88968),u=l(32046),_=l(72318),T=l(12496),P=l(22466);const C=["*"];function a(gt,zt){1>&&f.SdG(0)}const x=["tabListContainer"],Y=["tabList"],R=["tabListInner"],U=["nextPaginator"],fe=["previousPaginator"],re=["content"];function he(gt,zt){}const Oe=["tabBodyWrapper"],ge=["tabHeader"];function ce(gt,zt){}function Re(gt,zt){if(1>&&f.DNE(0,ce,0,0,"ng-template",12),2>){const Ye=f.XpG().$implicit;f.Y8G("cdkPortalOutlet",Ye.templateLabel)}}function Me(gt,zt){if(1>&&f.EFF(0),2>){const Ye=f.XpG().$implicit;f.JRh(Ye.textLabel)}}function ve(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"div",7,2),f.bIt("click",function(){const it=w.eBV(Ye),He=it.$implicit,Wt=it.$index,we=f.XpG(),We=f.sdS(1);return w.Njj(we._handleClick(He,We,Wt))})("cdkFocusChange",function(it){const He=w.eBV(Ye).$index,Wt=f.XpG();return w.Njj(Wt._tabFocusChanged(it,He))}),f.nrm(2,"span",8)(3,"div",9),f.j41(4,"span",10)(5,"span",11),f.nVh(6,Re,1,1,null,12)(7,Me,1,1),f.k0s()()()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.sdS(1),He=f.XpG();f.HbH(Ye.labelClass),f.AVh("mdc-tab--active",He.selectedIndex===st),f.Y8G("id",He._getTabLabelId(Ye,st))("disabled",Ye.disabled)("fitInkBarToContent",He.fitInkBarToContent),f.BMQ("tabIndex",He._getTabIndex(st))("aria-posinset",st+1)("aria-setsize",He._tabs.length)("aria-controls",He._getTabContentId(st))("aria-selected",He.selectedIndex===st)("aria-label",Ye.ariaLabel||null)("aria-labelledby",!Ye.ariaLabel&&Ye.ariaLabelledby?Ye.ariaLabelledby:null),f.R7$(3),f.Y8G("matRippleTrigger",it)("matRippleDisabled",Ye.disabled||He.disableRipple),f.R7$(3),f.vxM(Ye.templateLabel?6:7)}}function oe(gt,zt){1>&&f.SdG(0)}function Se(gt,zt){if(1>){const Ye=f.RV6();f.j41(0,"mat-tab-body",13),f.bIt("_onCentered",function(){w.eBV(Ye);const it=f.XpG();return w.Njj(it._removeTabBodyWrapperHeight())})("_onCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._setTabBodyWrapperHeight(it))})("_beforeCentering",function(it){w.eBV(Ye);const He=f.XpG();return w.Njj(He._bodyCentered(it))}),f.k0s()}if(2>){const Ye=zt.$implicit,st=zt.$index,it=f.XpG();f.HbH(Ye.bodyClass),f.Y8G("id",it._getTabContentId(st))("content",Ye.content)("position",Ye.position)("animationDuration",it.animationDuration)("preserveContent",it.preserveContent),f.BMQ("tabindex",null!=it.contentTabIndex&&it.selectedIndex===st?it.contentTabIndex:null)("aria-labelledby",it._getTabLabelId(Ye,st))("aria-hidden",it.selectedIndex!==st)}}const be=["mat-tab-nav-bar",""],nt=["mat-tab-link",""],$e=new w.nKC("MatTabContent");let dt=(()=>{class gt{template=(0,w.WQX)(f.C4Q);constructor(){}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabContent",""]],features:[f.Jv_([{provide:$e,useExisting:gt}])]})}return gt})();const yt=new w.nKC("MatTabLabel"),Et=new w.nKC("MAT_TAB");let rt=(()=>{class gt extends s.bV{_closestTab=(0,w.WQX)(Et,{optional:!0});static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[f.Jv_([{provide:yt,useExisting:gt}]),f.Vt3]})}return gt})();const Mn=new w.nKC("MAT_TAB_GROUP");let qt=(()=>{class gt{_viewContainerRef=(0,w.WQX)(f.c1b);_closestTabGroup=(0,w.WQX)(Mn,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(Ye){this._setTemplateLabelInput(Ye)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new j.B;position=null;origin=null;isActive=!1;constructor(){(0,w.WQX)(m.l).load(u.A)}ngOnChanges(Ye){(Ye.hasOwnProperty("textLabel")||Ye.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new s.VA(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(Ye){Ye&&Ye._closestTab===this&&(this._templateLabel=Ye)}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab"]],contentQueries:function(st,it,He){if(1&st&&(f.wni(He,rt,5),f.wni(He,dt,7,f.C4Q)),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it.templateLabel=Wt.first),f.mGM(Wt=f.lsd())&&(it._explicitContent=Wt.first)}},viewQuery:function(st,it){if(1&st&&f.GBs(f.C4Q,7),2&st){let He;f.mGM(He=f.lsd())&&(it._implicitContent=He.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("id",null)},inputs:{disabled:[2,"disabled","disabled",F.L39],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[f.Jv_([{provide:Et,useExisting:gt}]),f.OA$],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.PeT(0,a,1,0,"ng-template"))},encapsulation:2})}return gt})();const S="mdc-tab-indicator--active",Xt="mdc-tab-indicator--no-transition";class de{_items;_currentItem;constructor(zt){this._items=zt}hide(){this._items.forEach(zt=>zt.deactivateInkBar()),this._currentItem=void 0}alignToElement(zt){const Ye=this._items.find(it=>it.elementRef.nativeElement===zt),st=this._currentItem;if(Ye!==st&&(st?.deactivateInkBar(),Ye)){const it=st?.elementRef.nativeElement.getBoundingClientRect?.();Ye.activateInkBar(it),this._currentItem=Ye}}}let ae=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Ye){this._fitToContent!==Ye&&(this._fitToContent=Ye,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Ye){const st=this._elementRef.nativeElement;if(!Ye||!st.getBoundingClientRect||!this._inkBarContentElement)return void st.classList.add(S);const it=st.getBoundingClientRect(),He=Ye.width/it.width,Wt=Ye.left-it.left;st.classList.add(Xt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Wt}px) scaleX(${He})`),st.getBoundingClientRect(),st.classList.remove(Xt),st.classList.add(S),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(S)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Ye=this._elementRef.nativeElement.ownerDocument||document,st=this._inkBarElement=Ye.createElement("span"),it=this._inkBarContentElement=Ye.createElement("span");st.className="mdc-tab-indicator",it.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",st.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement).appendChild(this._inkBarElement)}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39]}})}return gt})(),et=(()=>{class gt extends ae{elementRef=(0,w.WQX)(f.aKT);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275dir=f.FsC({type:gt,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(st,it){2&st&&(f.BMQ("aria-disabled",!!it.disabled),f.AVh("mat-mdc-tab-disabled",it.disabled))},inputs:{disabled:[2,"disabled","disabled",F.L39]},features:[f.Vt3]})}return gt})();const tn={passive:!0};let En=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_viewportRuler=(0,w.WQX)(d.Xj);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_platform=(0,w.WQX)(h.O);_sharedResizeObserver=(0,w.WQX)(A.a);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_animationsDisabled=(0,t.Rc)();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new j.B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new j.B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){const st=isNaN(Ye)?0:Ye;this._selectedIndex!=st&&(this._selectedIndexChanged=!0,this._selectedIndex=st,this._keyManager&&this._keyManager.updateActiveItem(st))}_selectedIndex=0;selectFocusedIndex=new f.bkB;indexFocused=new f.bkB;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),tn),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),tn))}ngAfterContentInit(){const Ye=this._dir?this._dir.change:(0,Q.of)("ltr"),st=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe((0,_e.B)(32),(0,L.Q)(this._destroyed)),it=this._viewportRuler.change(150).pipe((0,L.Q)(this._destroyed)),He=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new p.B(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),(0,f.mal)(He,{injector:this._injector}),(0,V.h)(Ye,it,st,this._items.changes,this._itemsResized()).pipe((0,L.Q)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),He()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Wt=>{this.indexFocused.emit(Wt),this._setTabFocus(Wt)})}_itemsResized(){return"function"!=typeof ResizeObserver?ie.w:this._items.changes.pipe((0,pe.Z)(this._items),(0,Ee.n)(Ye=>new K.c(st=>this._ngZone.runOutsideAngular(()=>{const it=new ResizeObserver(He=>st.next(He));return Ye.forEach(He=>it.observe(He.elementRef.nativeElement)),()=>{it.disconnect()}}))),(0,se.i)(1),(0,ye.p)(Ye=>Ye.some(st=>st.contentRect.width>0&&st.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(Ye=>Ye()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(Ye){if(!(0,o.rp)(Ye))switch(Ye.keyCode){case e.Fm:case e.t6:if(this.focusIndex!==this.selectedIndex){const st=this._items.get(this.focusIndex);st&&!st.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(Ye))}break;default:this._keyManager?.onKeydown(Ye)}}_onContentChanges(){const Ye=this._elementRef.nativeElement.textContent;Ye!==this._currentTextContent&&(this._currentTextContent=Ye||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(Ye){!this._isValidIndex(Ye)||this.focusIndex===Ye||!this._keyManager||this._keyManager.setActiveItem(Ye)}_isValidIndex(Ye){return!this._items||!!this._items.toArray()[Ye]}_setTabFocus(Ye){if(this._showPaginationControls&&this._scrollToLabel(Ye),this._items&&this._items.length){this._items.toArray()[Ye].focus();const st=this._tabListContainer.nativeElement;st.scrollLeft="ltr"==this._getLayoutDirection()?0:st.scrollWidth-st.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const Ye=this.scrollDistance,st="ltr"===this._getLayoutDirection()?-Ye:Ye;this._tabList.nativeElement.style.transform=`translateX(${Math.round(st)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(Ye){this._scrollTo(Ye)}_scrollHeader(Ye){return this._scrollTo(this._scrollDistance+("before"==Ye?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(Ye){this._stopInterval(),this._scrollHeader(Ye)}_scrollToLabel(Ye){if(this.disablePagination)return;const st=this._items?this._items.toArray()[Ye]:null;if(!st)return;const it=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:He,offsetWidth:Wt}=st.elementRef.nativeElement;let we,We;"ltr"==this._getLayoutDirection()?(we=He,We=we+Wt):(We=this._tabListInner.nativeElement.offsetWidth-He,we=We-Wt);const Lt=this.scrollDistance,St=this.scrollDistance+it;weSt&&(this.scrollDistance+=Math.min(We-St,we-Lt))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const it=this._tabListInner.nativeElement.scrollWidth-this._elementRef.nativeElement.offsetWidth>=5;it||(this.scrollDistance=0),it!==this._showPaginationControls&&(this._showPaginationControls=it,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const Ye=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,st=Ye?Ye.elementRef.nativeElement:null;st?this._inkBar.alignToElement(st):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(Ye,st){st&&null!=st.button&&0!==st.button||(this._stopInterval(),(0,$.O)(650,100).pipe((0,L.Q)((0,V.h)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:it,distance:He}=this._scrollHeader(Ye);(0===He||He>=it)&&this._stopInterval()}))}_scrollTo(Ye){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const st=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(st,Ye)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:st,distance:this._scrollDistance}}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,inputs:{disablePagination:[2,"disablePagination","disablePagination",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return gt})(),_n=(()=>{class gt extends En{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new de(this._items),super.ngAfterContentInit()}_itemSelected(Ye){Ye.preventDefault()}static \u0275fac=(()=>{let Ye;return function(it){return(Ye||(Ye=f.xGo(gt)))(it||gt)}})();static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-header"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,et,4),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._items=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(x,7),f.GBs(Y,7),f.GBs(R,7),f.GBs(U,5),f.GBs(fe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabListContainer=He.first),f.mGM(He=f.lsd())&&(it._tabList=He.first),f.mGM(He=f.lsd())&&(it._tabListInner=He.first),f.mGM(He=f.lsd())&&(it._nextPaginator=He.first),f.mGM(He=f.lsd())&&(it._previousPaginator=He.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(st,it){2&st&&f.AVh("mat-mdc-tab-header-pagination-controls-enabled",it._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==it._getLayoutDirection())},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",F.L39]},features:[f.Vt3],ngContentSelectors:C,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"div",5,0),f.bIt("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("before"))})("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("before",we))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(2,"div",6),f.k0s(),f.j41(3,"div",7,1),f.bIt("keydown",function(we){return w.eBV(He),w.Njj(it._handleKeydown(we))}),f.j41(5,"div",8,2),f.bIt("cdkObserveContent",function(){return w.eBV(He),w.Njj(it._onContentChanges())}),f.j41(7,"div",9,3),f.SdG(9),f.k0s()()(),f.j41(10,"div",10,4),f.bIt("mousedown",function(we){return w.eBV(He),w.Njj(it._handlePaginatorPress("after",we))})("click",function(){return w.eBV(He),w.Njj(it._handlePaginatorClick("after"))})("touchend",function(){return w.eBV(He),w.Njj(it._stopInterval())}),f.nrm(12,"div",6),f.k0s()}2&st&&(f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollBefore),f.Y8G("matRippleDisabled",it._disableScrollBefore||it.disableRipple),f.R7$(3),f.AVh("_mat-animation-noopable",it._animationsDisabled),f.R7$(2),f.BMQ("aria-label",it.ariaLabel||null)("aria-labelledby",it.ariaLabelledby||null),f.R7$(5),f.AVh("mat-mdc-tab-header-pagination-disabled",it._disableScrollAfter),f.Y8G("matRippleDisabled",it._disableScrollAfter||it.disableRipple))},dependencies:[T.r6,_.Wv],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}\n"],encapsulation:2})}return gt})();const tt=new w.nKC("MAT_TABS_CONFIG");let Fe=(()=>{class gt extends s.I3{_host=(0,w.WQX)(Pe);_ngZone=(0,w.WQX)(f.SKi);_centeringSub=ee.yU.EMPTY;_leavingSub=ee.yU.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,pe.Z)(this._host._isCenterPosition())).subscribe(Ye=>{this._host._content&&Ye&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(st){return new(st||gt)};static \u0275dir=f.FsC({type:gt,selectors:[["","matTabBodyHost",""]],features:[f.Vt3]})}return gt})(),Pe=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_dir=(0,w.WQX)(D.dS,{optional:!0});_ngZone=(0,w.WQX)(f.SKi);_injector=(0,w.WQX)(w.zZn);_renderer=(0,w.WQX)(f.sFG);_diAnimationsDisabled=(0,t.Rc)();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=ee.yU.EMPTY;_position;_previousPosition;_onCentering=new f.bkB;_beforeCentering=new f.bkB;_afterLeavingCenter=new f.bkB;_onCentered=new f.bkB(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(Ye){this._positionIndex=Ye,this._computePositionAnimationState()}constructor(){if(this._dir){const Ye=(0,w.WQX)(F.gRc);this._dirChangeSubscription=this._dir.change.subscribe(st=>{this._computePositionAnimationState(st),Ye.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),"center"===this._position&&(this._setActiveClass(!0),(0,f.mal)(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(Ye=>Ye()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{const Ye=this._elementRef.nativeElement,st=it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),"transitionend"===it.type&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(Ye,"transitionstart",it=>{it.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(Ye,"transitionend",st),this._renderer.listen(Ye,"transitioncancel",st)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);const Ye="center"===this._position;this._beforeCentering.emit(Ye),Ye&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){"center"===this._position?this._onCentered.emit():"center"===this._previousPosition&&this._afterLeavingCenter.emit()}_setActiveClass(Ye){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",Ye)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(){return 0===this._positionIndex}_computePositionAnimationState(Ye=this._getLayoutDirection()){this._previousPosition=this._position,this._position=this._positionIndex<0?"ltr"==Ye?"left":"right":this._positionIndex>0?"ltr"==Ye?"right":"left":"center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&("center"===this._position||"center"===this._previousPosition)&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),(0,f.mal)(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||"0ms"===this.animationDuration||"0s"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-body"]],viewQuery:function(st,it){if(1&st&&(f.GBs(Fe,5),f.GBs(re,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._portalHost=He.first),f.mGM(He=f.lsd())&&(it._contentElement=He.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(st,it){2&st&&f.BMQ("inert","center"===it._position?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(st,it){1&st&&(f.j41(0,"div",1,0),f.DNE(2,he,0,0,"ng-template",2),f.k0s()),2&st&&f.AVh("mat-tab-body-content-left","left"===it._position)("mat-tab-body-content-right","right"===it._position)("mat-tab-body-content-can-animate","center"===it._position||"center"===it._previousPosition)},dependencies:[Fe,d.uv],styles:[".mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}\n"],encapsulation:2})}return gt})(),Ue=(()=>{class gt{_elementRef=(0,w.WQX)(f.aKT);_changeDetectorRef=(0,w.WQX)(F.gRc);_ngZone=(0,w.WQX)(f.SKi);_tabsSubscription=ee.yU.EMPTY;_tabLabelSubscription=ee.yU.EMPTY;_tabBodySubscription=ee.yU.EMPTY;_diAnimationsDisabled=(0,t.Rc)();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new f.rOR;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(Ye){this._fitInkBarToContent=Ye,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(Ye){this._indexToSelect=isNaN(Ye)?null:Ye}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(Ye){this._contentTabIndex=isNaN(Ye)?null:Ye}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new f.bkB;focusChange=new f.bkB;animationDone=new f.bkB;selectedTabChange=new f.bkB(!0);_groupId;_isServer=!(0,w.WQX)(h.O).isBrowser;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});this._groupId=(0,w.WQX)(g.g).getId("mat-tab-group-"),this.animationDuration=Ye&&Ye.animationDuration?Ye.animationDuration:"500ms",this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.dynamicHeight=!(!Ye||null==Ye.dynamicHeight)&&Ye.dynamicHeight,null!=Ye?.contentTabIndex&&(this.contentTabIndex=Ye.contentTabIndex),this.preserveContent=!!Ye?.preserveContent,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs,this.alignTabs=Ye&&null!=Ye.alignTabs?Ye.alignTabs:null}ngAfterContentChecked(){const Ye=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=Ye){const st=null==this._selectedIndex;if(!st){this.selectedTabChange.emit(this._createChangeEvent(Ye));const it=this._tabBodyWrapper.nativeElement;it.style.minHeight=it.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((it,He)=>it.isActive=He===Ye),st||(this.selectedIndexChange.emit(Ye),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((st,it)=>{st.position=it-Ye,null!=this._selectedIndex&&0==st.position&&!st.origin&&(st.origin=Ye-this._selectedIndex)}),this._selectedIndex!==Ye&&(this._selectedIndex=Ye,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const Ye=this._clampTabIndex(this._indexToSelect);if(Ye===this._selectedIndex){const st=this._tabs.toArray();let it;for(let He=0;He{st[Ye].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(Ye))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,pe.Z)(this._allTabs)).subscribe(Ye=>{this._tabs.reset(Ye.filter(st=>st._closestTabGroup===this||!st._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(Ye){const st=this._tabHeader;st&&(st.focusIndex=Ye)}_focusChanged(Ye){this._lastFocusedTabIndex=Ye,this.focusChange.emit(this._createChangeEvent(Ye))}_createChangeEvent(Ye){const st=new Qe;return st.index=Ye,this._tabs&&this._tabs.length&&(st.tab=this._tabs.toArray()[Ye]),st}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,V.h)(...this._tabs.map(Ye=>Ye._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(Ye){return Math.min(this._tabs.length-1,Math.max(Ye||0,0))}_getTabLabelId(Ye,st){return Ye.id||`${this._groupId}-label-${st}`}_getTabContentId(Ye){return`${this._groupId}-content-${Ye}`}_setTabBodyWrapperHeight(Ye){if(!this.dynamicHeight||!this._tabBodyWrapperHeight)return void(this._tabBodyWrapperHeight=Ye);const st=this._tabBodyWrapper.nativeElement;st.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(st.style.height=Ye+"px")}_removeTabBodyWrapperHeight(){const Ye=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=Ye.clientHeight,Ye.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(Ye,st,it){st.focusIndex=it,Ye.disabled||(this.selectedIndex=it)}_getTabIndex(Ye){return Ye===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(Ye,st){Ye&&"mouse"!==Ye&&"touch"!==Ye&&(this._tabHeader.focusIndex=st)}_bodyCentered(Ye){Ye&&this._tabBodies?.forEach((st,it)=>st._setActiveClass(it===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||"0"===this.animationDuration||"0ms"===this.animationDuration}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-group"]],contentQueries:function(st,it,He){if(1&st&&f.wni(He,qt,5),2&st){let Wt;f.mGM(Wt=f.lsd())&&(it._allTabs=Wt)}},viewQuery:function(st,it){if(1&st&&(f.GBs(Oe,5),f.GBs(ge,5),f.GBs(Pe,5)),2&st){let He;f.mGM(He=f.lsd())&&(it._tabBodyWrapper=He.first),f.mGM(He=f.lsd())&&(it._tabHeader=He.first),f.mGM(He=f.lsd())&&(it._tabBodies=He)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(st,it){2&st&&(f.BMQ("mat-align-tabs",it.alignTabs),f.HbH("mat-"+(it.color||"primary")),f.xc7("--mat-tab-animation-duration",it.animationDuration),f.AVh("mat-mdc-tab-group-dynamic-height",it.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===it.headerPosition)("mat-mdc-tab-group-stretch-tabs",it.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",F.L39],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",F.L39],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",F.L39],selectedIndex:[2,"selectedIndex","selectedIndex",F.Udg],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",F.Udg],disablePagination:[2,"disablePagination","disablePagination",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],preserveContent:[2,"preserveContent","preserveContent",F.L39],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[f.Jv_([{provide:Mn,useExisting:gt}])],ngContentSelectors:C,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(st,it){if(1&st){const He=f.RV6();f.NAR(),f.j41(0,"mat-tab-header",3,0),f.bIt("indexFocused",function(we){return w.eBV(He),w.Njj(it._focusChanged(we))})("selectFocusedIndex",function(we){return w.eBV(He),w.Njj(it.selectedIndex=we)}),f.Z7z(2,ve,8,17,"div",4,f.fX1),f.k0s(),f.nVh(4,oe,1,0),f.j41(5,"div",5,1),f.Z7z(7,Se,1,10,"mat-tab-body",6,f.fX1),f.k0s()}2&st&&(f.Y8G("selectedIndex",it.selectedIndex||0)("disableRipple",it.disableRipple)("disablePagination",it.disablePagination),f.jOp("aria-label",it.ariaLabel)("aria-labelledby",it.ariaLabelledby),f.R7$(2),f.Dyx(it._tabs),f.R7$(2),f.vxM(it._isServer?4:-1),f.R7$(),f.AVh("_mat-animation-noopable",it._animationsDisabled()),f.R7$(2),f.Dyx(it._tabs))},dependencies:[_n,et,i.vR,T.r6,s.I3,Pe],styles:['.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}\n'],encapsulation:2})}return gt})();class Qe{index;tab}let Ie=(()=>{class gt extends En{_focusedItem=(0,w.vPA)(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(Ye){this._fitInkBarToContent.next(Ye),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Z.t(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(Ye){const st=Ye+"";this._animationDuration=/^\d+$/.test(st)?Ye+"ms":st}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(Ye){const st=this._elementRef.nativeElement.classList;st.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),Ye&&st.add("mat-tabs-with-background",`mat-background-${Ye}`),this._backgroundColor=Ye}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){const Ye=(0,w.WQX)(tt,{optional:!0});super(),this.disablePagination=!(!Ye||null==Ye.disablePagination)&&Ye.disablePagination,this.fitInkBarToContent=!(!Ye||null==Ye.fitInkBarToContent)&&Ye.fitInkBarToContent,this.stretchTabs=!Ye||null==Ye.stretchTabs||Ye.stretchTabs}_itemSelected(){}ngAfterContentInit(){this._inkBar=new de(this._items),this._items.changes.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe((0,pe.Z)(null),(0,L.Q)(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;const Ye=this._items.toArray();for(let st=0;st.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}\n"],encapsulation:2})}return gt})(),le=(()=>{class gt extends ae{_tabNavBar=(0,w.WQX)(Ie);elementRef=(0,w.WQX)(f.aKT);_focusMonitor=(0,w.WQX)(i.FN);_destroyed=new j.B;_isActive=!1;_tabIndex=(0,M.EW)(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(Ye){Ye!==this._isActive&&(this._isActive=Ye,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(Ye){this._disableRipple.set(Ye)}_disableRipple=(0,w.vPA)(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=(0,w.WQX)(g.g).getId("mat-tab-link-");constructor(){super(),(0,w.WQX)(m.l).load(u.A);const Ye=(0,w.WQX)(T.$E,{optional:!0}),st=(0,w.WQX)(new F.ES_("tabindex"),{optional:!0});this.rippleConfig=Ye||{},this.tabIndex=null==st?0:parseInt(st)||0,(0,t.Rc)()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe((0,L.Q)(this._destroyed)).subscribe(it=>{this.fitInkBarToContent=it})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(Ye){(Ye.keyCode===e.t6||Ye.keyCode===e.Fm)&&(this.disabled?Ye.preventDefault():this._tabNavBar.tabPanel&&(Ye.keyCode===e.t6&&Ye.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(st,it){1&st&&f.bIt("focus",function(){return it._handleFocus()})("keydown",function(Wt){return it._handleKeydown(Wt)}),2&st&&(f.BMQ("aria-controls",it._getAriaControls())("aria-current",it._getAriaCurrent())("aria-disabled",it.disabled)("aria-selected",it._getAriaSelected())("id",it.id)("tabIndex",it._tabIndex())("role",it._getRole()),f.AVh("mat-mdc-tab-disabled",it.disabled)("mdc-tab--active",it.active))},inputs:{active:[2,"active","active",F.L39],disabled:[2,"disabled","disabled",F.L39],disableRipple:[2,"disableRipple","disableRipple",F.L39],tabIndex:[2,"tabIndex","tabIndex",Ye=>null==Ye?0:(0,F.Udg)(Ye)],id:"id"},exportAs:["matTabLink"],features:[f.Vt3],attrs:nt,ngContentSelectors:C,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(st,it){1&st&&(f.NAR(),f.nrm(0,"span",0)(1,"div",1),f.j41(2,"span",2)(3,"span",3),f.SdG(4),f.k0s()()),2&st&&(f.R7$(),f.Y8G("matRippleTrigger",it.elementRef.nativeElement)("matRippleDisabled",it.rippleDisabled))},dependencies:[T.r6],styles:['.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}\n'],encapsulation:2,changeDetection:0})}return gt})(),Ne=(()=>{class gt{id=(0,w.WQX)(g.g).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(st){return new(st||gt)};static \u0275cmp=f.VBU({type:gt,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(st,it){2&st&&f.BMQ("aria-labelledby",it._activeTabId)("id",it.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:C,decls:1,vars:0,template:function(st,it){1&st&&(f.NAR(),f.SdG(0))},encapsulation:2,changeDetection:0})}return gt})(),ze=(()=>{class gt{static \u0275fac=function(st){return new(st||gt)};static \u0275mod=f.$C({type:gt});static \u0275inj=w.G2t({imports:[P.y,P.y]})}return gt})()},55911(ke,q,l){"use strict";l.d(q,{KQ:()=>h,s5:()=>w});var i=l(2615),g=l(73664),p=l(39842),D=l(22466);const o=["*",[["mat-toolbar-row"]]],e=["*","mat-toolbar-row"];let A=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275dir=g.FsC({type:f,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return f})(),h=(()=>{class f{_elementRef=(0,i.WQX)(g.aKT);_platform=(0,i.WQX)(p.O);_document=(0,i.WQX)(i.qQL);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}static \u0275fac=function(K){return new(K||f)};static \u0275cmp=g.VBU({type:f,selectors:[["mat-toolbar"]],contentQueries:function(K,j,Z){if(1&K&&g.wni(Z,A,5),2&K){let ee;g.mGM(ee=g.lsd())&&(j._toolbarRows=ee)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(K,j){2&K&&(g.HbH(j.color?"mat-"+j.color:""),g.AVh("mat-toolbar-multiple-rows",j._toolbarRows.length>0)("mat-toolbar-single-row",0===j._toolbarRows.length))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:e,decls:2,vars:0,template:function(K,j){1&K&&(g.NAR(o),g.SdG(0),g.SdG(1,1))},styles:[".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"],encapsulation:2,changeDetection:0})}return f})(),w=(()=>{class f{static \u0275fac=function(K){return new(K||f)};static \u0275mod=g.$C({type:f});static \u0275inj=i.G2t({imports:[D.y,D.y]})}return f})()},86156(ke,q,l){"use strict";l.d(q,{u:()=>h});var i=l(2615),g=l(73664),p=l(17094),D=l(49338),o=l(5718),e=l(40455),A=l(22466);let h=(()=>{class d{static \u0275fac=function(F){return new(F||d)};static \u0275mod=g.$C({type:d});static \u0275inj=i.G2t({providers:[e.YZ],imports:[p.Pd,D.z_,A.y,A.y,o.Gj]})}return d})()},40455(ke,q,l){"use strict";l.d(q,{YZ:()=>pe,oV:()=>C});var i=l(56977),g=l(14085),p=l(67847),D=l(67336),o=l(10438),e=l(2615),A=l(73664),h=l(17705),d=l(72200),w=l(39842),f=l(83300),F=l(18617),M=l(76838),K=l(61577),j=l(49338),Z=l(5718),ee=l(76939),V=l(21413),Q=l(31804);const $=["tooltip"],ye=new e.nKC("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const x=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(x,{scrollThrottle:20})}}),pe={provide:ye,deps:[],useFactory:function se(x){const Y=(0,e.WQX)(e.zZn);return()=>(0,j.RH)(Y,{scrollThrottle:20})}},L=new e.nKC("mat-tooltip-default-options",{providedIn:"root",factory:function Ee(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),s="tooltip-panel",m=(0,f.B)({passive:!0});let C=(()=>{class x{_elementRef=(0,e.WQX)(A.aKT);_ngZone=(0,e.WQX)(A.SKi);_platform=(0,e.WQX)(w.O);_ariaDescriber=(0,e.WQX)(F.vr);_focusMonitor=(0,e.WQX)(M.FN);_dir=(0,e.WQX)(K.dS);_injector=(0,e.WQX)(e.zZn);_viewContainerRef=(0,e.WQX)(A.c1b);_animationsDisabled=(0,Q.Rc)();_defaultOptions=(0,e.WQX)(L,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=a;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(R){R!==this._position&&(this._position=R,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(R){this._positionAtOrigin=(0,g.he)(R),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(R){const U=(0,g.he)(R);this._disabled!==U&&(this._disabled=U,U?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(R){this._showDelay=(0,p.OE)(R)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(R){this._hideDelay=(0,p.OE)(R),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(R){const U=this._message;this._message=null!=R?String(R).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(U)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(R){this._tooltipClass=R,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new V.B;_isDestroyed=!1;constructor(){const R=this._defaultOptions;R&&(this._showDelay=R.showDelay,this._hideDelay=R.hideDelay,R.position&&(this.position=R.position),R.positionAtOrigin&&(this.positionAtOrigin=R.positionAtOrigin),R.touchGestures&&(this.touchGestures=R.touchGestures),R.tooltipClass&&(this.tooltipClass=R.tooltipClass)),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,i.Q)(this._destroyed)).subscribe(R=>{R?"keyboard"===R&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const R=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([U,fe])=>{R.removeEventListener(U,fe,m)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(R,this.message,"tooltip"),this._focusMonitor.stopMonitoring(R)}show(R=this.showDelay,U){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const fe=this._createOverlay(U);this._detach(),this._portal=this._portal||new ee.A8(this._tooltipComponent,this._viewContainerRef);const re=this._tooltipInstance=fe.attach(this._portal).instance;re._triggerElement=this._elementRef.nativeElement,re._mouseLeaveHideDelay=this._hideDelay,re.afterHidden().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),re.show(R)}hide(R=this.hideDelay){const U=this._tooltipInstance;U&&(U.isVisible()?U.hide(R):(U._cancelPendingAnimations(),this._detach()))}toggle(R){this._isTooltipVisible()?this.hide():this.show(void 0,R)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(R){if(this._overlayRef){const he=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!R)&&he._origin instanceof A.aKT)return this._overlayRef;this._detach()}const U=this._injector.get(Z.R).getAncestorScrollContainers(this._elementRef),fe=`${this._cssClassPrefix}-${s}`,re=(0,j.$M)(this._injector,this.positionAtOrigin&&R||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(U);return re.positionChanges.pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._updateCurrentPositionClass(he.connectionPair),this._tooltipInstance&&he.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=(0,j.Y$)(this._injector,{direction:this._dir,positionStrategy:re,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,fe]:fe,scrollStrategy:this._injector.get(ye)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,i.Q)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,i.Q)(this._destroyed)).subscribe(he=>{this._isTooltipVisible()&&he.keyCode===o._f&&!(0,D.rp)(he)&&(he.preventDefault(),he.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe((0,i.Q)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(R){const U=R.getConfig().positionStrategy,fe=this._getOrigin(),re=this._getOverlayPosition();U.withPositions([this._addOffset({...fe.main,...re.main}),this._addOffset({...fe.fallback,...re.fallback})])}_addOffset(R){const fe=!this._dir||"ltr"==this._dir.value;return"top"===R.originY?R.offsetY=-8:"bottom"===R.originY?R.offsetY=8:"start"===R.originX?R.offsetX=fe?-8:8:"end"===R.originX&&(R.offsetX=fe?8:-8),R}_getOrigin(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U||"below"==U?fe={originX:"center",originY:"above"==U?"top":"bottom"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={originX:"start",originY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={originX:"end",originY:"center"});const{x:re,y:he}=this._invertPosition(fe.originX,fe.originY);return{main:fe,fallback:{originX:re,originY:he}}}_getOverlayPosition(){const R=!this._dir||"ltr"==this._dir.value,U=this.position;let fe;"above"==U?fe={overlayX:"center",overlayY:"bottom"}:"below"==U?fe={overlayX:"center",overlayY:"top"}:"before"==U||"left"==U&&R||"right"==U&&!R?fe={overlayX:"end",overlayY:"center"}:("after"==U||"right"==U&&R||"left"==U&&!R)&&(fe={overlayX:"start",overlayY:"center"});const{x:re,y:he}=this._invertPosition(fe.overlayX,fe.overlayY);return{main:fe,fallback:{overlayX:re,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),(0,A.mal)(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(R){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=R,this._tooltipInstance._markForCheck())}_invertPosition(R,U){return"above"===this.position||"below"===this.position?"top"===U?U="bottom":"bottom"===U&&(U="top"):"end"===R?R="start":"start"===R&&(R="end"),{x:R,y:U}}_updateCurrentPositionClass(R){const{overlayY:U,originX:fe,originY:re}=R;let he;if(he="center"===U?this._dir&&"rtl"===this._dir.value?"end"===fe?"left":"right":"start"===fe?"left":"right":"bottom"===U&&"top"===re?"above":"below",he!==this._currentPosition){const Oe=this._overlayRef;if(Oe){const ge=`${this._cssClassPrefix}-${s}-`;Oe.removePanelClass(ge+this._currentPosition),Oe.addPanelClass(ge+he)}this._currentPosition=he}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",R=>{let U;this._setupPointerExitEventsIfNeeded(),void 0!==R.x&&void 0!==R.y&&(U=R),this.show(void 0,U)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",R=>{const U=R.targetTouches?.[0],fe=U?{x:U.clientX,y:U.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,fe)},this._defaultOptions?.touchLongPressShowDelay??500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const R=[];if(this._platformSupportsMouseEvents())R.push(["mouseleave",U=>{const fe=U.relatedTarget;(!fe||!this._overlayRef?.overlayElement.contains(fe))&&this.hide()}],["wheel",U=>this._wheelListener(U)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const U=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};R.push(["touchend",U],["touchcancel",U])}this._addListeners(R),this._passiveListeners.push(...R)}_addListeners(R){R.forEach(([U,fe])=>{this._elementRef.nativeElement.addEventListener(U,fe,m)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(R){if(this._isTooltipVisible()){const U=this._injector.get(e.qQL).elementFromPoint(R.clientX,R.clientY),fe=this._elementRef.nativeElement;U!==fe&&!fe.contains(U)&&this.hide()}}_disableNativeGesturesIfNecessary(){const R=this.touchGestures;if("off"!==R){const U=this._elementRef.nativeElement,fe=U.style;("on"===R||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName)&&(fe.userSelect=fe.msUserSelect=fe.webkitUserSelect=fe.MozUserSelect="none"),("on"===R||!U.draggable)&&(fe.webkitUserDrag="none"),fe.touchAction="none",fe.webkitTapHighlightColor="transparent"}}_syncAriaDescription(R){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,R,"tooltip"),this._isDestroyed||(0,A.mal)({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(U){return new(U||x)};static \u0275dir=A.FsC({type:x,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(U,fe){2&U&&A.AVh("mat-mdc-tooltip-disabled",fe.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return x})(),a=(()=>{class x{_changeDetectorRef=(0,e.WQX)(h.gRc);_elementRef=(0,e.WQX)(A.aKT);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=(0,Q.Rc)();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new V.B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(R){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},R)}hide(R){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},R)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:R}){(!R||!this._triggerElement.contains(R))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const R=this._elementRef.nativeElement.getBoundingClientRect();return R.height>24&&R.width>=200}_handleAnimationEnd({animationName:R}){(R===this._showAnimation||R===this._hideAnimation)&&this._finalizeAnimation(R===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(R){R?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(R){const U=this._tooltip.nativeElement,fe=this._showAnimation,re=this._hideAnimation;if(U.classList.remove(R?re:fe),U.classList.add(R?fe:re),this._isVisible!==R&&(this._isVisible=R,this._changeDetectorRef.markForCheck()),R&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(U);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}R&&this._onShow(),this._animationsDisabled&&(U.classList.add("_mat-animation-noopable"),this._finalizeAnimation(R))}static \u0275fac=function(U){return new(U||x)};static \u0275cmp=A.VBU({type:x,selectors:[["mat-tooltip-component"]],viewQuery:function(U,fe){if(1&U&&A.GBs($,7),2&U){let re;A.mGM(re=A.lsd())&&(fe._tooltip=re.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(U,fe){1&U&&A.bIt("mouseleave",function(he){return fe._handleMouseLeave(he)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(U,fe){if(1&U){const re=A.RV6();A.j41(0,"div",1,0),A.bIt("animationend",function(Oe){return e.eBV(re),e.Njj(fe._handleAnimationEnd(Oe))}),A.j41(2,"div",2),A.EFF(3),A.k0s()()}2&U&&(A.AVh("mdc-tooltip--multiline",fe._isMultiline),A.Y8G("ngClass",fe.tooltipClass),A.R7$(3),A.JRh(fe.message))},dependencies:[d.YU],styles:['.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}\n'],encapsulation:2,changeDetection:0})}return x})()},47358(ke,q,l){"use strict";l.d(q,{Zh:()=>ye,d6:()=>F,jH:()=>$,lQ:()=>ee,pO:()=>V,q1:()=>K,wx:()=>Z,yI:()=>M});var g=l(72279),p=l(2615),D=l(73664),o=l(17705),e=l(22466),A=l(14117),h=l(84412),d=l(57786),w=l(96354);let F=(()=>{class se extends g.xn{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(Ee){this._tabIndexInputBinding=Ee}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return function f(se){return!!se._isNoopTreeKeyManager}(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}constructor(){super();const Ee=(0,p.WQX)(new o.ES_("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(Ee)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(L,t){1&L&&D.bIt("click",function(){return t._focusItem()}),2&L&&(D.Avn("tabIndex",t._getTabindexAttribute()),D.BMQ("aria-expanded",t._getAriaExpanded())("aria-level",t.level+1)("aria-posinset",t._getPositionInSet())("aria-setsize",t._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",Ee=>null==Ee?0:(0,o.Udg)(Ee)],disabled:[2,"disabled","disabled",o.L39]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[D.Jv_([{provide:g.xn,useExisting:se}]),D.Vt3]})}return se})(),M=(()=>{class se extends g.Sz{data;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[D.Jv_([{provide:g.Sz,useExisting:se}]),D.Vt3]})}return se})(),K=(()=>{class se extends g.s3{node;get disabled(){return this.isDisabled}set disabled(Ee){this.isDisabled=Ee}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(Ee){this._tabIndex=Ee}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",o.L39],tabIndex:[2,"tabIndex","tabIndex",Ee=>null==Ee?0:(0,o.Udg)(Ee)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[D.Jv_([{provide:g.s3,useExisting:se},{provide:g.xn,useExisting:se},{provide:g.kZ,useExisting:se}]),D.Vt3]})}return se})(),Z=(()=>{class se{viewContainer=(0,p.WQX)(D.c1b);_node=(0,p.WQX)(g.kZ,{optional:!0});static \u0275fac=function(L){return new(L||se)};static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeOutlet",""]],features:[D.Jv_([{provide:g.a$,useExisting:se}])]})}return se})(),ee=(()=>{class se extends g.NL{_nodeOutlet=void 0;static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275cmp=D.VBU({type:se,selectors:[["mat-tree"]],viewQuery:function(L,t){if(1&L&&D.GBs(Z,7),2&L){let s;D.mGM(s=D.lsd())&&(t._nodeOutlet=s.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[D.Jv_([{provide:g.NL,useExisting:se}]),D.Vt3],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(L,t){1&L&&D.eu8(0,0)},dependencies:[Z],styles:[".mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}\n"],encapsulation:2})}return se})(),V=(()=>{class se extends g.Hy{static \u0275fac=(()=>{let Ee;return function(t){return(Ee||(Ee=D.xGo(se)))(t||se)}})();static \u0275dir=D.FsC({type:se,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[D.Jv_([{provide:g.Hy,useExisting:se}]),D.Vt3]})}return se})(),$=(()=>{class se{static \u0275fac=function(L){return new(L||se)};static \u0275mod=D.$C({type:se});static \u0275inj=p.G2t({imports:[g.Dc,e.y,e.y]})}return se})();class ye extends A.q{get data(){return this._data.value}set data(pe){this._data.next(pe)}_data=new h.t([]);connect(pe){return(0,d.h)(pe.viewChange,this._data).pipe((0,w.T)(()=>this.data))}disconnect(){}}},93393(ke,q,l){"use strict";l.d(q,{CI:()=>M,EU:()=>A,Hl:()=>D,Q5:()=>e,jd:()=>o,mE:()=>L});var i=l(2615),g=l(57303),p=l(73664);class D{_doc;constructor(a){this._doc=a}manager}let o=(()=>{class C extends D{constructor(x){super(x)}supports(x){return!0}addEventListener(x,Y,R,U){return x.addEventListener(Y,R,U),()=>this.removeEventListener(x,Y,R,U)}removeEventListener(x,Y,R,U){return x.removeEventListener(Y,R,U)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const e=new i.nKC("");let A=(()=>{class C{_zone;_plugins;_eventNameToPlugin=new Map;constructor(x,Y){this._zone=Y,x.forEach(fe=>{fe.manager=this});const R=x.filter(fe=>!(fe instanceof o));this._plugins=R.slice().reverse();const U=x.find(fe=>fe instanceof o);U&&this._plugins.push(U)}addEventListener(x,Y,R,U){return this._findPluginFor(Y).addEventListener(x,Y,R,U)}getZone(){return this._zone}_findPluginFor(x){let Y=this._eventNameToPlugin.get(x);if(Y)return Y;if(Y=this._plugins.find(U=>U.supports(x)),!Y)throw new i.buA(5101,!1);return this._eventNameToPlugin.set(x,Y),Y}static \u0275fac=function(Y){return new(Y||C)(i.KVO(e),i.KVO(p.SKi))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const h="ng-app-id";function d(C){for(const a of C)a.remove()}function w(C,a){const x=a.createElement("style");return x.textContent=C,x}function F(C,a){const x=a.createElement("link");return x.setAttribute("rel","stylesheet"),x.setAttribute("href",C),x}let M=(()=>{class C{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(x,Y,R,U={}){this.doc=x,this.appId=Y,this.nonce=R,function f(C,a,x,Y){const R=C.head?.querySelectorAll(`style[${h}="${a}"],link[${h}="${a}"]`);if(R)for(const U of R)U.removeAttribute(h),U instanceof HTMLLinkElement?Y.set(U.href.slice(U.href.lastIndexOf("/")+1),{usage:0,elements:[U]}):U.textContent&&x.set(U.textContent,{usage:0,elements:[U]})}(x,Y,this.inline,this.external),this.hosts.add(x.head)}addStyles(x,Y){for(const R of x)this.addUsage(R,this.inline,w);Y?.forEach(R=>this.addUsage(R,this.external,F))}removeStyles(x,Y){for(const R of x)this.removeUsage(R,this.inline);Y?.forEach(R=>this.removeUsage(R,this.external))}addUsage(x,Y,R){const U=Y.get(x);U?U.usage++:Y.set(x,{usage:1,elements:[...this.hosts].map(fe=>this.addElement(fe,R(x,this.doc)))})}removeUsage(x,Y){const R=Y.get(x);R&&(R.usage--,R.usage<=0&&(d(R.elements),Y.delete(x)))}ngOnDestroy(){for(const[,{elements:x}]of[...this.inline,...this.external])d(x);this.hosts.clear()}addHost(x){this.hosts.add(x);for(const[Y,{elements:R}]of this.inline)R.push(this.addElement(x,w(Y,this.doc)));for(const[Y,{elements:R}]of this.external)R.push(this.addElement(x,F(Y,this.doc)))}removeHost(x){this.hosts.delete(x)}addElement(x,Y){return this.nonce&&Y.setAttribute("nonce",this.nonce),x.appendChild(Y)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(i.qQL),i.KVO(p.sZ2),i.KVO(p.BIS,8),i.KVO(p.Agw))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();const K={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"},j=/%COMP%/g,V="%COMP%",Q=`_nghost-${V}`,$=`_ngcontent-${V}`,_e=new i.nKC("",{providedIn:"root",factory:()=>!0});function pe(C,a){return a.map(x=>x.replace(j,C))}let L=(()=>{class C{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(x,Y,R,U,fe,re,he=null,Oe=null){this.eventManager=x,this.sharedStylesHost=Y,this.appId=R,this.removeStylesOnCompDestroy=U,this.doc=fe,this.ngZone=re,this.nonce=he,this.tracingService=Oe,this.platformIsServer=!1,this.defaultRenderer=new t(x,fe,re,this.platformIsServer,this.tracingService)}createRenderer(x,Y){if(!x||!Y)return this.defaultRenderer;const R=this.getOrCreateRenderer(x,Y);return R instanceof P?R.applyToHost(x):R instanceof T&&R.applyStyles(),R}getOrCreateRenderer(x,Y){const R=this.rendererByCompId;let U=R.get(Y.id);if(!U){const fe=this.doc,re=this.ngZone,he=this.eventManager,Oe=this.sharedStylesHost,ge=this.removeStylesOnCompDestroy,ce=this.platformIsServer,Re=this.tracingService;switch(Y.encapsulation){case p.gXe.Emulated:U=new P(he,Oe,Y,this.appId,ge,fe,re,ce,Re);break;case p.gXe.ShadowDom:return new _(he,Oe,x,Y,fe,re,this.nonce,ce,Re);default:U=new T(he,Oe,Y,ge,fe,re,ce,Re)}R.set(Y.id,U)}return U}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(x){this.rendererByCompId.delete(x)}static \u0275fac=function(Y){return new(Y||C)(i.KVO(A),i.KVO(M),i.KVO(p.sZ2),i.KVO(_e),i.KVO(i.qQL),i.KVO(p.SKi),i.KVO(p.BIS),i.KVO(p.a8H,8))};static \u0275prov=i.jDH({token:C,factory:C.\u0275fac})}return C})();class t{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(a,x,Y,R,U){this.eventManager=a,this.doc=x,this.ngZone=Y,this.platformIsServer=R,this.tracingService=U}destroy(){}destroyNode=null;createElement(a,x){return x?this.doc.createElementNS(K[x]||x,a):this.doc.createElement(a)}createComment(a){return this.doc.createComment(a)}createText(a){return this.doc.createTextNode(a)}appendChild(a,x){(u(a)?a.content:a).appendChild(x)}insertBefore(a,x,Y){a&&(u(a)?a.content:a).insertBefore(x,Y)}removeChild(a,x){x.remove()}selectRootElement(a,x){let Y="string"==typeof a?this.doc.querySelector(a):a;if(!Y)throw new i.buA(-5104,!1);return x||(Y.textContent=""),Y}parentNode(a){return a.parentNode}nextSibling(a){return a.nextSibling}setAttribute(a,x,Y,R){if(R){x=R+":"+x;const U=K[R];U?a.setAttributeNS(U,x,Y):a.setAttribute(x,Y)}else a.setAttribute(x,Y)}removeAttribute(a,x,Y){if(Y){const R=K[Y];R?a.removeAttributeNS(R,x):a.removeAttribute(`${Y}:${x}`)}else a.removeAttribute(x)}addClass(a,x){a.classList.add(x)}removeClass(a,x){a.classList.remove(x)}setStyle(a,x,Y,R){R&(p.czy.DashCase|p.czy.Important)?a.style.setProperty(x,Y,R&p.czy.Important?"important":""):a.style[x]=Y}removeStyle(a,x,Y){Y&p.czy.DashCase?a.style.removeProperty(x):a.style[x]=""}setProperty(a,x,Y){null!=a&&(a[x]=Y)}setValue(a,x){a.nodeValue=x}listen(a,x,Y,R){if("string"==typeof a&&!(a=(0,g.rb)().getGlobalEventTarget(this.doc,a)))throw new i.buA(5102,!1);let U=this.decoratePreventDefault(Y);return this.tracingService?.wrapEventListener&&(U=this.tracingService.wrapEventListener(a,x,U)),this.eventManager.addEventListener(a,x,U,R)}decoratePreventDefault(a){return x=>{if("__ngUnwrap__"===x)return a;!1===a(x)&&x.preventDefault()}}}function u(C){return"TEMPLATE"===C.tagName&&void 0!==C.content}class _ extends t{sharedStylesHost;hostEl;shadowRoot;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,he,Oe),this.sharedStylesHost=x,this.hostEl=Y,this.shadowRoot=Y.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let ge=R.styles;ge=pe(R.id,ge);for(const Re of ge){const Me=document.createElement("style");re&&Me.setAttribute("nonce",re),Me.textContent=Re,this.shadowRoot.appendChild(Me)}const ce=R.getExternalStyles?.();if(ce)for(const Re of ce){const Me=F(Re,U);re&&Me.setAttribute("nonce",re),this.shadowRoot.appendChild(Me)}}nodeOrShadowRoot(a){return a===this.hostEl?this.shadowRoot:a}appendChild(a,x){return super.appendChild(this.nodeOrShadowRoot(a),x)}insertBefore(a,x,Y){return super.insertBefore(this.nodeOrShadowRoot(a),x,Y)}removeChild(a,x){return super.removeChild(null,x)}parentNode(a){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(a)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class T extends t{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(a,x,Y,R,U,fe,re,he,Oe){super(a,U,fe,re,he),this.sharedStylesHost=x,this.removeStylesOnCompDestroy=R;let ge=Y.styles;this.styles=Oe?pe(Oe,ge):ge,this.styleUrls=Y.getExternalStyles?.(Oe)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===p.DUP.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class P extends T{contentAttr;hostAttr;constructor(a,x,Y,R,U,fe,re,he,Oe){const ge=R+"-"+Y.id;super(a,x,Y,U,fe,re,he,Oe,ge),this.contentAttr=function ye(C){return $.replace(j,C)}(ge),this.hostAttr=function se(C){return Q.replace(j,C)}(ge)}applyToHost(a){this.applyStyles(),this.setAttribute(a,this.hostAttr,"")}createElement(a,x){const Y=super.createElement(a,x);return super.setAttribute(Y,this.contentAttr,""),Y}}},345(ke,q,l){"use strict";l.d(q,{fM:()=>R,hE:()=>pe,up:()=>U});var $=l(2615),ie=l(73664),_e=l(93393);let pe=(()=>{class nt{_doc;constructor(dt){this._doc=dt}getTitle(){return this._doc.title}setTitle(dt){this._doc.title=dt||""}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})();const P={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},C=new $.nKC(""),a=new $.nKC("");let x=(()=>{class nt{events=[];overrides={};options;buildHammer(dt){const yt=new Hammer(dt,this.options);yt.get("pinch").set({enable:!0}),yt.get("rotate").set({enable:!0});for(const Et in this.overrides)yt.get(Et).set(this.overrides[Et]);return yt}static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),Y=(()=>{class nt extends _e.Hl{_config;_injector;loader;_loaderPromise=null;constructor(dt,yt,Et,rt){super(dt),this._config=yt,this._injector=Et,this.loader=rt}supports(dt){return!(!P.hasOwnProperty(dt.toLowerCase())&&!this.isCustomEvent(dt)||!window.Hammer&&!this.loader)}addEventListener(dt,yt,Et){const rt=this.manager.getZone();if(yt=yt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||rt.runOutsideAngular(()=>this.loader());let Mn=!1,qt=()=>{Mn=!0};return rt.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Mn||(qt=this.addEventListener(dt,yt,Et)):qt=()=>{}}).catch(()=>{qt=()=>{}})),()=>{qt()}}return rt.runOutsideAngular(()=>{const Mn=this._config.buildHammer(dt),qt=function(S){rt.runGuarded(function(){Et(S)})};return Mn.on(yt,qt),()=>{Mn.off(yt,qt),"function"==typeof Mn.destroy&&Mn.destroy()}})}isCustomEvent(dt){return this._config.events.indexOf(dt)>-1}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL),$.KVO(C),$.KVO($.zZn),$.KVO(a,8))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac})}return nt})(),R=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275mod=ie.$C({type:nt});static \u0275inj=$.G2t({providers:[{provide:_e.Q5,useClass:Y,multi:!0,deps:[$.qQL,C,$.zZn,[new ie.Xx1,a]]},{provide:C,useClass:x}]})}return nt})(),U=(()=>{class nt{static \u0275fac=function(yt){return new(yt||nt)};static \u0275prov=$.jDH({token:nt,factory:function(yt){let Et=null;return Et=yt?new(yt||nt):$.KVO(fe),Et},providedIn:"root"})}return nt})(),fe=(()=>{class nt extends U{_doc;constructor(dt){super(),this._doc=dt}sanitize(dt,yt){if(null==yt)return null;switch(dt){case ie.WPN.NONE:return yt;case ie.WPN.HTML:return(0,ie.iWE)(yt,"HTML")?(0,ie.aCM)(yt):(0,ie.wr$)(this._doc,String(yt)).toString();case ie.WPN.STYLE:return(0,ie.iWE)(yt,"Style")?(0,ie.aCM)(yt):yt;case ie.WPN.SCRIPT:if((0,ie.iWE)(yt,"Script"))return(0,ie.aCM)(yt);throw new $.buA(5200,!1);case ie.WPN.URL:return(0,ie.iWE)(yt,"URL")?(0,ie.aCM)(yt):(0,ie.gil)(String(yt));case ie.WPN.RESOURCE_URL:if((0,ie.iWE)(yt,"ResourceURL"))return(0,ie.aCM)(yt);throw new $.buA(5201,!1);default:throw new $.buA(5202,!1)}}bypassSecurityTrustHtml(dt){return(0,ie.PYC)(dt)}bypassSecurityTrustStyle(dt){return(0,ie.rAh)(dt)}bypassSecurityTrustScript(dt){return(0,ie.p2i)(dt)}bypassSecurityTrustUrl(dt){return(0,ie.B1s)(dt)}bypassSecurityTrustResourceUrl(dt){return(0,ie.RPW)(dt)}static \u0275fac=function(yt){return new(yt||nt)($.KVO($.qQL))};static \u0275prov=$.jDH({token:nt,factory:nt.\u0275fac,providedIn:"root"})}return nt})()},43694(ke,q,l){"use strict";l.d(q,{nX:()=>vt,Pu:()=>ao,Zp:()=>cn,nU:()=>hn,wU:()=>Nn,c1:()=>hs,XR:()=>Xs,j5:()=>Kn,wF:()=>gn,L6:()=>Xn,lW:()=>ci,mo:()=>kn,Z:()=>ui,J2:()=>ro,J_:()=>wo,bw:()=>mo,gx:()=>dn,tD:()=>zo,Ix:()=>Wo,D$:()=>So,n3:()=>ds,OY:()=>ca,Sd:()=>Vt,bK:()=>$r,gk:()=>wl,Lg:()=>Ss,wO:()=>fn,Us:()=>fi,we:()=>fs});var i=l(2615),g=l(57303),p=l(73664),D=l(17705),o=l(59295),e=l(74402),A=l(22806),h=l(7673),d=l(84412),w=l(84572),f=l(9350),F=l(28793),M=l(59030),K=l(71203),j=l(18810),Z=l(983),ee=l(30017),V=l(21413),Q=l(71985),$=l(18359),ie=l(96354),_e=l(25558),ye=l(96697),se=l(99172),pe=l(5964),Ee=l(31397),L=l(61594),t=l(70274),s=l(88141),m=l(99437),u=l(31943),_=l(39901),T=l(39974),P=l(54360);function C(Te){return Te<=0?()=>Z.w:(0,T.N)((je,Be)=>{let Ke=[];je.subscribe((0,P._)(Be,bt=>{Ke.push(bt),Te{for(const bt of Ke)Be.next(bt);Be.complete()},void 0,()=>{Ke=null}))})}var a=l(93774),x=l(33669),R=l(70980),U=l(99898),fe=l(56977),re=l(345);const he="primary",Oe=Symbol("RouteTitle");class ge{params;constructor(je){this.params=je||{}}has(je){return Object.prototype.hasOwnProperty.call(this.params,je)}get(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be[0]:Be}return null}getAll(je){if(this.has(je)){const Be=this.params[je];return Array.isArray(Be)?Be:[Be]}return[]}get keys(){return Object.keys(this.params)}}function ce(Te){return new ge(Te)}function Re(Te,je,Be){const Ke=Be.path.split("/");if(Ke.length>Te.length||"full"===Be.pathMatch&&(je.hasChildren()||Ke.lengthKe[Ht]===bt)}return Te===je}function be(Te){return Te.length>0?Te[Te.length-1]:null}function nt(Te){return(0,e.A)(Te)?Te:(0,p.yLl)(Te)?(0,A.H)(Promise.resolve(Te)):(0,h.of)(Te)}const $e={exact:function rt(Te,je,Be){if(!et(Te.segments,je.segments)||!Xt(Te.segments,je.segments,Be)||Te.numberOfChildren!==je.numberOfChildren)return!1;for(const Ke in je.children)if(!Te.children[Ke]||!rt(Te.children[Ke],je.children[Ke],Be))return!1;return!0},subset:qt},dt={exact:function Et(Te,je){return ve(Te,je)},subset:function Mn(Te,je){return Object.keys(je).length<=Object.keys(Te).length&&Object.keys(je).every(Be=>Se(Te[Be],je[Be]))},ignored:()=>!0};function yt(Te,je,Be){return $e[Be.paths](Te.root,je.root,Be.matrixParams)&&dt[Be.queryParams](Te.queryParams,je.queryParams)&&!("exact"===Be.fragment&&Te.fragment!==je.fragment)}function qt(Te,je,Be){return S(Te,je,je.segments,Be)}function S(Te,je,Be,Ke){if(Te.segments.length>Be.length){const bt=Te.segments.slice(0,Be.length);return!(!et(bt,Be)||je.hasChildren()||!Xt(bt,Be,Ke))}if(Te.segments.length===Be.length){if(!et(Te.segments,Be)||!Xt(Te.segments,Be,Ke))return!1;for(const bt in je.children)if(!Te.children[bt]||!qt(Te.children[bt],je.children[bt],Ke))return!1;return!0}{const bt=Be.slice(0,Te.segments.length),Ht=Be.slice(Te.segments.length);return!!(et(Te.segments,bt)&&Xt(Te.segments,bt,Ke)&&Te.children[he])&&S(Te.children[he],je,Ht,Ke)}}function Xt(Te,je,Be){return je.every((Ke,bt)=>dt[Be](Te[bt].parameters,Ke.parameters))}class de{root;queryParams;fragment;_queryParamMap;constructor(je=new ae([],{}),Be={},Ke=null){this.root=je,this.queryParams=Be,this.fragment=Ke}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return En.serialize(this)}}class ae{segments;children;parent=null;constructor(je,Be){this.segments=je,this.children=Be,Object.values(Be).forEach(Ke=>Ke.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _n(this)}}class me{path;parameters;_parameterMap;constructor(je,Be){this.path=je,this.parameters=Be}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Ne(this)}}function et(Te,je){return Te.length===je.length&&Te.every((Be,Ke)=>Be.path===je[Ke].path)}let Vt=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>new hn,providedIn:"root"})}return Te})();class hn{parse(je){const Be=new We(je);return new de(Be.parseRootSegment(),Be.parseQueryParams(),Be.parseFragment())}serialize(je){const Be=`/${tt(je.root,!0)}`,Ke=function Je(Te){const je=Object.entries(Te).map(([Be,Ke])=>Array.isArray(Ke)?Ke.map(bt=>`${Pe(Be)}=${Pe(bt)}`).join("&"):`${Pe(Be)}=${Pe(Ke)}`).filter(Be=>Be);return je.length?`?${je.join("&")}`:""}(je.queryParams);return`${Be}${Ke}${"string"==typeof je.fragment?`#${function Ue(Te){return encodeURI(Te)}(je.fragment)}`:""}`}}const En=new hn;function _n(Te){return Te.segments.map(je=>Ne(je)).join("/")}function tt(Te,je){if(!Te.hasChildren())return _n(Te);if(je){const Be=Te.children[he]?tt(Te.children[he],!1):"",Ke=[];return Object.entries(Te.children).forEach(([bt,Ht])=>{bt!==he&&Ke.push(`${bt}:${tt(Ht,!1)}`)}),Ke.length>0?`${Be}(${Ke.join("//")})`:Be}{const Be=function tn(Te,je){let Be=[];return Object.entries(Te.children).forEach(([Ke,bt])=>{Ke===he&&(Be=Be.concat(je(bt,Ke)))}),Object.entries(Te.children).forEach(([Ke,bt])=>{Ke!==he&&(Be=Be.concat(je(bt,Ke)))}),Be}(Te,(Ke,bt)=>bt===he?[tt(Te.children[he],!1)]:[`${bt}:${tt(Ke,!1)}`]);return 1===Object.keys(Te.children).length&&null!=Te.children[he]?`${_n(Te)}/${Be[0]}`:`${_n(Te)}/(${Be.join("//")})`}}function Fe(Te){return encodeURIComponent(Te).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Pe(Te){return Fe(Te).replace(/%3B/gi,";")}function Qe(Te){return Fe(Te).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ie(Te){return decodeURIComponent(Te)}function le(Te){return Ie(Te.replace(/\+/g,"%20"))}function Ne(Te){return`${Qe(Te.path)}${function ze(Te){return Object.entries(Te).map(([je,Be])=>`;${Qe(je)}=${Qe(Be)}`).join("")}(Te.parameters)}`}const gt=/^[^\/()?;#]+/;function zt(Te){const je=Te.match(gt);return je?je[0]:""}const Ye=/^[^\/()?;=#]+/,it=/^[^=?&#]+/,Wt=/^[^&#]+/;class We{url;remaining;constructor(je){this.url=je,this.remaining=je}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const je={};if(this.consumeOptional("?"))do{this.parseQueryParam(je)}while(this.consumeOptional("&"));return je}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const je=[];for(this.peekStartsWith("(")||je.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),je.push(this.parseSegment());let Be={};this.peekStartsWith("/(")&&(this.capture("/"),Be=this.parseParens(!0));let Ke={};return this.peekStartsWith("(")&&(Ke=this.parseParens(!1)),(je.length>0||Object.keys(Be).length>0)&&(Ke[he]=new ae(je,Be)),Ke}parseSegment(){const je=zt(this.remaining);if(""===je&&this.peekStartsWith(";"))throw new i.buA(4009,!1);return this.capture(je),new me(Ie(je),this.parseMatrixParams())}parseMatrixParams(){const je={};for(;this.consumeOptional(";");)this.parseParam(je);return je}parseParam(je){const Be=function st(Te){const je=Te.match(Ye);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const bt=zt(this.remaining);bt&&(Ke=bt,this.capture(Ke))}je[Ie(Be)]=Ie(Ke)}parseQueryParam(je){const Be=function He(Te){const je=Te.match(it);return je?je[0]:""}(this.remaining);if(!Be)return;this.capture(Be);let Ke="";if(this.consumeOptional("=")){const sn=function we(Te){const je=Te.match(Wt);return je?je[0]:""}(this.remaining);sn&&(Ke=sn,this.capture(Ke))}const bt=le(Be),Ht=le(Ke);if(je.hasOwnProperty(bt)){let sn=je[bt];Array.isArray(sn)||(sn=[sn],je[bt]=sn),sn.push(Ht)}else je[bt]=Ht}parseParens(je){const Be={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Ke=zt(this.remaining),bt=this.remaining[Ke.length];if("/"!==bt&&")"!==bt&&";"!==bt)throw new i.buA(4010,!1);let Ht;Ke.indexOf(":")>-1?(Ht=Ke.slice(0,Ke.indexOf(":")),this.capture(Ht),this.capture(":")):je&&(Ht=he);const sn=this.parseChildren();Be[Ht??he]=1===Object.keys(sn).length&&sn[he]?sn[he]:new ae([],sn),this.consumeOptional("//")}return Be}peekStartsWith(je){return this.remaining.startsWith(je)}consumeOptional(je){return!!this.peekStartsWith(je)&&(this.remaining=this.remaining.substring(je.length),!0)}capture(je){if(!this.consumeOptional(je))throw new i.buA(4011,!1)}}function Lt(Te){return Te.segments.length>0?new ae([],{[he]:Te}):Te}function St(Te){const je={};for(const[Ke,bt]of Object.entries(Te.children)){const Ht=St(bt);if(Ke===he&&0===Ht.segments.length&&Ht.hasChildren())for(const[sn,Rn]of Object.entries(Ht.children))je[sn]=Rn;else(Ht.segments.length>0||Ht.hasChildren())&&(je[Ke]=Ht)}return function At(Te){if(1===Te.numberOfChildren&&Te.children[he]){const je=Te.children[he];return new ae(Te.segments.concat(je.segments),je.children)}return Te}(new ae(Te.segments,je))}function fn(Te){return Te instanceof de}function It(Te){let je;const bt=Lt(function Be(Ht){const sn={};for(const di of Ht.children){const ji=Be(di);sn[di.outlet]=ji}const Rn=new ae(Ht.url,sn);return Ht===Te&&(je=Rn),Rn}(Te.root));return je??bt}function wn(Te,je,Be,Ke){let bt=Te;for(;bt.parent;)bt=bt.parent;if(0===je.length)return Li(bt,bt,bt,Be,Ke);const Ht=function Ze(Te){if("string"==typeof Te[0]&&1===Te.length&&"/"===Te[0])return new Ot(!0,0,Te);let je=0,Be=!1;const Ke=Te.reduce((bt,Ht,sn)=>{if("object"==typeof Ht&&null!=Ht){if(Ht.outlets){const Rn={};return Object.entries(Ht.outlets).forEach(([di,ji])=>{Rn[di]="string"==typeof ji?ji.split("/"):ji}),[...bt,{outlets:Rn}]}if(Ht.segmentPath)return[...bt,Ht.segmentPath]}return"string"!=typeof Ht?[...bt,Ht]:0===sn?(Ht.split("/").forEach((Rn,di)=>{0==di&&"."===Rn||(0==di&&""===Rn?Be=!0:".."===Rn?je++:""!=Rn&&bt.push(Rn))}),bt):[...bt,Ht]},[]);return new Ot(Be,je,Ke)}(je);if(Ht.toRoot())return Li(bt,bt,new ae([],{}),Be,Ke);const sn=function Pt(Te,je,Be){if(Te.isAbsolute)return new Ge(je,!0,0);if(!Be)return new Ge(je,!1,NaN);if(null===Be.parent)return new Ge(Be,!0,0);const Ke=In(Te.commands[0])?0:1;return function Yt(Te,je,Be){let Ke=Te,bt=je,Ht=Be;for(;Ht>bt;){if(Ht-=bt,Ke=Ke.parent,!Ke)throw new i.buA(4005,!1);bt=Ke.segments.length}return new Ge(Ke,!1,bt-Ht)}(Be,Be.segments.length-1+Ke,Te.numberOfDoubleDots)}(Ht,bt,Te),Rn=sn.processChildren?oi(sn.segmentGroup,sn.index,Ht.commands):Zn(sn.segmentGroup,sn.index,Ht.commands);return Li(bt,sn.segmentGroup,Rn,Be,Ke)}function In(Te){return"object"==typeof Te&&null!=Te&&!Te.outlets&&!Te.segmentPath}function ei(Te){return"object"==typeof Te&&null!=Te&&Te.outlets}function Li(Te,je,Be,Ke,bt){let sn,Ht={};Ke&&Object.entries(Ke).forEach(([di,ji])=>{Ht[di]=Array.isArray(ji)?ji.map(Ia=>`${Ia}`):`${ji}`}),sn=Te===je?Be:kt(Te,je,Be);const Rn=Lt(St(sn));return new de(Rn,Ht,bt)}function kt(Te,je,Be){const Ke={};return Object.entries(Te.children).forEach(([bt,Ht])=>{Ke[bt]=Ht===je?Be:kt(Ht,je,Be)}),new ae(Te.segments,Ke)}class Ot{isAbsolute;numberOfDoubleDots;commands;constructor(je,Be,Ke){if(this.isAbsolute=je,this.numberOfDoubleDots=Be,this.commands=Ke,je&&Ke.length>0&&In(Ke[0]))throw new i.buA(4003,!1);const bt=Ke.find(ei);if(bt&&bt!==be(Ke))throw new i.buA(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ge{segmentGroup;processChildren;index;constructor(je,Be,Ke){this.segmentGroup=je,this.processChildren=Be,this.index=Ke}}function Zn(Te,je,Be){if(Te??=new ae([],{}),0===Te.segments.length&&Te.hasChildren())return oi(Te,je,Be);const Ke=function Ii(Te,je,Be){let Ke=0,bt=je;const Ht={match:!1,pathIndex:0,commandIndex:0};for(;bt=Be.length)return Ht;const sn=Te.segments[bt],Rn=Be[Ke];if(ei(Rn))break;const di=`${Rn}`,ji=Ke0&&void 0===di)break;if(di&&ji&&"object"==typeof ji&&void 0===ji.outlets){if(!en(di,ji,sn))return Ht;Ke+=2}else{if(!en(di,{},sn))return Ht;Ke++}bt++}return{match:!0,pathIndex:bt,commandIndex:Ke}}(Te,je,Be),bt=Be.slice(Ke.commandIndex);if(Ke.match&&Ke.pathIndexHt!==he)&&Te.children[he]&&1===Te.numberOfChildren&&0===Te.children[he].segments.length){const Ht=oi(Te.children[he],je,Be);return new ae(Te.segments,Ht.children)}return Object.entries(Ke).forEach(([Ht,sn])=>{"string"==typeof sn&&(sn=[sn]),null!==sn&&(bt[Ht]=Zn(Te.children[Ht],je,sn))}),Object.entries(Te.children).forEach(([Ht,sn])=>{void 0===Ke[Ht]&&(bt[Ht]=sn)}),new ae(Te.segments,bt)}}function Ei(Te,je,Be){const Ke=Te.segments.slice(0,je);let bt=0;for(;bt{"string"==typeof Ke&&(Ke=[Ke]),null!==Ke&&(je[Be]=Ei(new ae([],{}),0,Ke))}),je}function nn(Te){const je={};return Object.entries(Te).forEach(([Be,Ke])=>je[Be]=`${Ke}`),je}function en(Te,je,Be){return Te==Be.path&&ve(je,Be.parameters)}const Nn="imperative";var jn=function(Te){return Te[Te.NavigationStart=0]="NavigationStart",Te[Te.NavigationEnd=1]="NavigationEnd",Te[Te.NavigationCancel=2]="NavigationCancel",Te[Te.NavigationError=3]="NavigationError",Te[Te.RoutesRecognized=4]="RoutesRecognized",Te[Te.ResolveStart=5]="ResolveStart",Te[Te.ResolveEnd=6]="ResolveEnd",Te[Te.GuardsCheckStart=7]="GuardsCheckStart",Te[Te.GuardsCheckEnd=8]="GuardsCheckEnd",Te[Te.RouteConfigLoadStart=9]="RouteConfigLoadStart",Te[Te.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",Te[Te.ChildActivationStart=11]="ChildActivationStart",Te[Te.ChildActivationEnd=12]="ChildActivationEnd",Te[Te.ActivationStart=13]="ActivationStart",Te[Te.ActivationEnd=14]="ActivationEnd",Te[Te.Scroll=15]="Scroll",Te[Te.NavigationSkipped=16]="NavigationSkipped",Te}(jn||{});class Un{id;url;constructor(je,Be){this.id=je,this.url=Be}}class ui extends Un{type=jn.NavigationStart;navigationTrigger;restoredState;constructor(je,Be,Ke="imperative",bt=null){super(je,Be),this.navigationTrigger=Ke,this.restoredState=bt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class gn extends Un{urlAfterRedirects;type=jn.NavigationEnd;constructor(je,Be,Ke){super(je,Be),this.urlAfterRedirects=Ke}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var zn=function(Te){return Te[Te.Redirect=0]="Redirect",Te[Te.SupersededByNewNavigation=1]="SupersededByNewNavigation",Te[Te.NoDataFromResolver=2]="NoDataFromResolver",Te[Te.GuardRejected=3]="GuardRejected",Te[Te.Aborted=4]="Aborted",Te}(zn||{}),kn=function(Te){return Te[Te.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",Te[Te.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",Te}(kn||{});class Kn extends Un{reason;code;type=jn.NavigationCancel;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ci extends Un{reason;code;type=jn.NavigationSkipped;constructor(je,Be,Ke,bt){super(je,Be),this.reason=Ke,this.code=bt}}class Xn extends Un{error;target;type=jn.NavigationError;constructor(je,Be,Ke,bt){super(je,Be),this.error=Ke,this.target=bt}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class aa extends Un{urlAfterRedirects;state;type=jn.RoutesRecognized;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sa extends Un{urlAfterRedirects;state;type=jn.GuardsCheckStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pa extends Un{urlAfterRedirects;state;shouldActivate;type=jn.GuardsCheckEnd;constructor(je,Be,Ke,bt,Ht){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt,this.shouldActivate=Ht}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class ha extends Un{urlAfterRedirects;state;type=jn.ResolveStart;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dn extends Un{urlAfterRedirects;state;type=jn.ResolveEnd;constructor(je,Be,Ke,bt){super(je,Be),this.urlAfterRedirects=Ke,this.state=bt}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ln{route;type=jn.RouteConfigLoadStart;constructor(je){this.route=je}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Jn{route;type=jn.RouteConfigLoadEnd;constructor(je){this.route=je}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class hi{snapshot;type=jn.ChildActivationStart;constructor(je){this.snapshot=je}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gn{snapshot;type=jn.ChildActivationEnd;constructor(je){this.snapshot=je}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qn{snapshot;type=jn.ActivationStart;constructor(je){this.snapshot=je}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bi{snapshot;type=jn.ActivationEnd;constructor(je){this.snapshot=je}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ca{routerEvent;position;anchor;type=jn.Scroll;constructor(je,Be,Ke){this.routerEvent=je,this.position=Be,this.anchor=Ke}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Sa{}class un{url;navigationBehaviorOptions;constructor(je,Be){this.url=je,this.navigationBehaviorOptions=Be}}function fi(Te){switch(Te.type){case jn.ActivationEnd:return`ActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ActivationStart:return`ActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationEnd:return`ChildActivationEnd(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.ChildActivationStart:return`ChildActivationStart(path: '${Te.snapshot.routeConfig?.path||""}')`;case jn.GuardsCheckEnd:return`GuardsCheckEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state}, shouldActivate: ${Te.shouldActivate})`;case jn.GuardsCheckStart:return`GuardsCheckStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.NavigationCancel:return`NavigationCancel(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationSkipped:return`NavigationSkipped(id: ${Te.id}, url: '${Te.url}')`;case jn.NavigationEnd:return`NavigationEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}')`;case jn.NavigationError:return`NavigationError(id: ${Te.id}, url: '${Te.url}', error: ${Te.error})`;case jn.NavigationStart:return`NavigationStart(id: ${Te.id}, url: '${Te.url}')`;case jn.ResolveEnd:return`ResolveEnd(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.ResolveStart:return`ResolveStart(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.RouteConfigLoadEnd:return`RouteConfigLoadEnd(path: ${Te.route.path})`;case jn.RouteConfigLoadStart:return`RouteConfigLoadStart(path: ${Te.route.path})`;case jn.RoutesRecognized:return`RoutesRecognized(id: ${Te.id}, url: '${Te.url}', urlAfterRedirects: '${Te.urlAfterRedirects}', state: ${Te.state})`;case jn.Scroll:return`Scroll(anchor: '${Te.anchor}', position: '${Te.position?`${Te.position[0]}, ${Te.position[1]}`:null}')`}}function lt(Te){return Te.outlet||he}function ht(Te){if(!Te)return null;if(Te.routeConfig?._injector)return Te.routeConfig._injector;for(let je=Te.parent;je;je=je.parent){const Be=je.routeConfig;if(Be?._loadedInjector)return Be._loadedInjector;if(Be?._injector)return Be._injector}return null}class Gt{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return ht(this.route?.snapshot)??this.rootInjector}constructor(je){this.rootInjector=je,this.children=new cn(this.rootInjector)}}let cn=(()=>{class Te{rootInjector;contexts=new Map;constructor(Be){this.rootInjector=Be}onChildOutletCreated(Be,Ke){const bt=this.getOrCreateContext(Be);bt.outlet=Ke,this.contexts.set(Be,bt)}onChildOutletDestroyed(Be){const Ke=this.getContext(Be);Ke&&(Ke.outlet=null,Ke.attachRef=null)}onOutletDeactivated(){const Be=this.contexts;return this.contexts=new Map,Be}onOutletReAttached(Be){this.contexts=Be}getOrCreateContext(Be){let Ke=this.getContext(Be);return Ke||(Ke=new Gt(this.rootInjector),this.contexts.set(Be,Ke)),Ke}getContext(Be){return this.contexts.get(Be)||null}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(i.uvJ))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();class si{_root;constructor(je){this._root=je}get root(){return this._root.value}parent(je){const Be=this.pathFromRoot(je);return Be.length>1?Be[Be.length-2]:null}children(je){const Be=pi(je,this._root);return Be?Be.children.map(Ke=>Ke.value):[]}firstChild(je){const Be=pi(je,this._root);return Be&&Be.children.length>0?Be.children[0].value:null}siblings(je){const Be=Oi(je,this._root);return Be.length<2?[]:Be[Be.length-2].children.map(bt=>bt.value).filter(bt=>bt!==je)}pathFromRoot(je){return Oi(je,this._root).map(Be=>Be.value)}}function pi(Te,je){if(Te===je.value)return je;for(const Be of je.children){const Ke=pi(Te,Be);if(Ke)return Ke}return null}function Oi(Te,je){if(Te===je.value)return[je];for(const Be of je.children){const Ke=Oi(Te,Be);if(Ke.length)return Ke.unshift(je),Ke}return[]}class la{value;children;constructor(je,Be){this.value=je,this.children=Be}toString(){return`TreeNode(${this.value})`}}function mn(Te){const je={};return Te&&Te.children.forEach(Be=>je[Be.value.outlet]=Be),je}class li extends si{snapshot;constructor(je,Be){super(je),this.snapshot=Be,va(this,je)}toString(){return this.snapshot.toString()}}function Ce(Te){const je=function xt(Te){const Ht=new Wn([],{},{},"",{},he,Te,null,{});return new Yi("",new la(Ht,[]))}(Te),Be=new d.t([new me("",{})]),Ke=new d.t({}),bt=new d.t({}),Ht=new d.t({}),sn=new d.t(""),Rn=new vt(Be,Ke,Ht,sn,bt,he,Te,je.root);return Rn.snapshot=je.root,new li(new la(Rn,[]),je)}class vt{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(je,Be,Ke,bt,Ht,sn,Rn,di){this.urlSubject=je,this.paramsSubject=Be,this.queryParamsSubject=Ke,this.fragmentSubject=bt,this.dataSubject=Ht,this.outlet=sn,this.component=Rn,this._futureSnapshot=di,this.title=this.dataSubject?.pipe((0,ie.T)(ji=>ji[Oe]))??(0,h.of)(void 0),this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe((0,ie.T)(je=>ce(je))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,ie.T)(je=>ce(je))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function rn(Te,je,Be="emptyOnly"){let Ke;const{routeConfig:bt}=Te;return Ke=null===je||"always"!==Be&&""!==bt?.path&&(je.component||je.routeConfig?.loadComponent)?{params:{...Te.params},data:{...Te.data},resolve:{...Te.data,...Te._resolvedData??{}}}:{params:{...je.params,...Te.params},data:{...je.data,...Te.data},resolve:{...Te.data,...je.data,...bt?.data,...Te._resolvedData}},bt&&Ga(bt)&&(Ke.resolve[Oe]=bt.title),Ke}class Wn{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Oe]}constructor(je,Be,Ke,bt,Ht,sn,Rn,di,ji){this.url=je,this.params=Be,this.queryParams=Ke,this.fragment=bt,this.data=Ht,this.outlet=sn,this.component=Rn,this.routeConfig=di,this._resolve=ji}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Ke=>Ke.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yi extends si{url;constructor(je,Be){super(Be),this.url=je,va(this,Be)}toString(){return Va(this._root)}}function va(Te,je){je.value._routerState=Te,je.children.forEach(Be=>va(Te,Be))}function Va(Te){const je=Te.children.length>0?` { ${Te.children.map(Va).join(", ")} } `:"";return`${Te.value}${je}`}function $a(Te){if(Te.snapshot){const je=Te.snapshot,Be=Te._futureSnapshot;Te.snapshot=Be,ve(je.queryParams,Be.queryParams)||Te.queryParamsSubject.next(Be.queryParams),je.fragment!==Be.fragment&&Te.fragmentSubject.next(Be.fragment),ve(je.params,Be.params)||Te.paramsSubject.next(Be.params),function Me(Te,je){if(Te.length!==je.length)return!1;for(let Be=0;Beve(Be.parameters,je[Ke].parameters))}(Te.url,je.url);return Be&&!(!Te.parent!=!je.parent)&&(!Te.parent||ir(Te.parent,je.parent))}function Ga(Te){return"string"==typeof Te.title||null===Te.title}const Ar=new i.nKC("");let ds=(()=>{class Te{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=he;activateEvents=new p.bkB;deactivateEvents=new p.bkB;attachEvents=new p.bkB;detachEvents=new p.bkB;routerOutletData=(0,D.hFB)();parentContexts=(0,i.WQX)(cn);location=(0,i.WQX)(p.c1b);changeDetector=(0,i.WQX)(D.gRc);inputBinder=(0,i.WQX)(hs,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(Be){if(Be.name){const{firstChange:Ke,previousValue:bt}=Be.name;if(Ke)return;this.isTrackedInParentContexts(bt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(bt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(Be){return this.parentContexts.getContext(Be)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const Be=this.parentContexts.getContext(this.name);Be?.route&&(Be.attachRef?this.attach(Be.attachRef,Be.route):this.activateWith(Be.route,Be.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new i.buA(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new i.buA(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new i.buA(4012,!1);this.location.detach();const Be=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(Be.instance),Be}attach(Be,Ke){this.activated=Be,this._activatedRoute=Ke,this.location.insert(Be.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(Be.instance)}deactivate(){if(this.activated){const Be=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(Be)}}activateWith(Be,Ke){if(this.isActivated)throw new i.buA(4013,!1);this._activatedRoute=Be;const bt=this.location,sn=Be.snapshot.component,Rn=this.parentContexts.getOrCreateContext(this.name).children,di=new us(Be,Rn,bt.injector,this.routerOutletData);this.activated=bt.createComponent(sn,{index:bt.length,injector:di,environmentInjector:Ke}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275dir=p.FsC({type:Te,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[p.OA$]})}return Te})();class us{route;childContexts;parent;outletData;constructor(je,Be,Ke,bt){this.route=je,this.childContexts=Be,this.parent=Ke,this.outletData=bt}get(je,Be){return je===vt?this.route:je===cn?this.childContexts:je===Ar?this.outletData:this.parent.get(je,Be)}}const hs=new i.nKC("");let zo=(()=>{class Te{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(Be){this.unsubscribeFromRouteData(Be),this.subscribeToRouteData(Be)}unsubscribeFromRouteData(Be){this.outletDataSubscriptions.get(Be)?.unsubscribe(),this.outletDataSubscriptions.delete(Be)}subscribeToRouteData(Be){const{activatedRoute:Ke}=Be,bt=(0,w.z)([Ke.queryParams,Ke.params,Ke.data]).pipe((0,_e.n)(([Ht,sn,Rn],di)=>(Rn={...Ht,...sn,...Rn},0===di?(0,h.of)(Rn):Promise.resolve(Rn)))).subscribe(Ht=>{if(!Be.isActivated||!Be.activatedComponentRef||Be.activatedRoute!==Ke||null===Ke.component)return void this.unsubscribeFromRouteData(Be);const sn=(0,D.HJs)(Ke.component);if(sn)for(const{templateName:Rn}of sn.inputs)Be.activatedComponentRef.setInput(Rn,Ht[Rn]);else this.unsubscribeFromRouteData(Be)});this.outletDataSubscriptions.set(Be,bt)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac})}return Te})(),fs=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275cmp=p.VBU({type:Te,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(Ke,bt){1&Ke&&p.nrm(0,"router-outlet")},dependencies:[ds],encapsulation:2})}return Te})();function ms(Te){const je=Te.children&&Te.children.map(ms),Be=je?{...Te,children:je}:{...Te};return!Be.component&&!Be.loadComponent&&(je||Be.loadChildren)&&Be.outlet&&Be.outlet!==he&&(Be.component=fs),Be}function Zr(Te,je,Be){if(Be&&Te.shouldReuseRoute(je.value,Be.value.snapshot)){const Ke=Be.value;Ke._futureSnapshot=je.value;const bt=function js(Te,je,Be){return je.children.map(Ke=>{for(const bt of Be.children)if(Te.shouldReuseRoute(Ke.value,bt.value.snapshot))return Zr(Te,Ke,bt);return Zr(Te,Ke)})}(Te,je,Be);return new la(Ke,bt)}{if(Te.shouldAttach(je.value)){const Ht=Te.retrieve(je.value);if(null!==Ht){const sn=Ht.route;return sn.value._futureSnapshot=je.value,sn.children=je.children.map(Rn=>Zr(Te,Rn)),sn}}const Ke=function Cs(Te){return new vt(new d.t(Te.url),new d.t(Te.params),new d.t(Te.queryParams),new d.t(Te.fragment),new d.t(Te.data),Te.outlet,Te.component,Te)}(je.value),bt=je.children.map(Ht=>Zr(Te,Ht));return new la(Ke,bt)}}class Ka{redirectTo;navigationBehaviorOptions;constructor(je,Be){this.redirectTo=je,this.navigationBehaviorOptions=Be}}const Pr="ngNavigationCancelingError";function Is(Te,je){const{redirectTo:Be,navigationBehaviorOptions:Ke}=fn(je)?{redirectTo:je,navigationBehaviorOptions:void 0}:je,bt=Wr(!1,zn.Redirect);return bt.url=Be,bt.navigationBehaviorOptions=Ke,bt}function Wr(Te,je){const Be=new Error(`NavigationCancelingError: ${Te||""}`);return Be[Pr]=!0,Be.cancellationCode=je,Be}function Js(Te){return!!Te&&Te[Pr]}class xo{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(je,Be,Ke,bt,Ht){this.routeReuseStrategy=je,this.futureState=Be,this.currState=Ke,this.forwardEvent=bt,this.inputBindingEnabled=Ht}activate(je){const Be=this.futureState._root,Ke=this.currState?this.currState._root:null;this.deactivateChildRoutes(Be,Ke,je),$a(this.futureState.root),this.activateChildRoutes(Be,Ke,je)}deactivateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{const sn=Ht.value.outlet;this.deactivateRoutes(Ht,bt[sn],Ke),delete bt[sn]}),Object.values(bt).forEach(Ht=>{this.deactivateRouteAndItsChildren(Ht,Ke)})}deactivateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if(bt===Ht)if(bt.component){const sn=Ke.getContext(bt.outlet);sn&&this.deactivateChildRoutes(je,Be,sn.children)}else this.deactivateChildRoutes(je,Be,Ke);else Ht&&this.deactivateRouteAndItsChildren(Be,Ke)}deactivateRouteAndItsChildren(je,Be){je.value.component&&this.routeReuseStrategy.shouldDetach(je.value.snapshot)?this.detachAndStoreRouteSubtree(je,Be):this.deactivateRouteAndOutlet(je,Be)}detachAndStoreRouteSubtree(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);if(Ke&&Ke.outlet){const sn=Ke.outlet.detach(),Rn=Ke.children.onOutletDeactivated();this.routeReuseStrategy.store(je.value.snapshot,{componentRef:sn,route:je,contexts:Rn})}}deactivateRouteAndOutlet(je,Be){const Ke=Be.getContext(je.value.outlet),bt=Ke&&je.value.component?Ke.children:Be,Ht=mn(je);for(const sn of Object.values(Ht))this.deactivateRouteAndItsChildren(sn,bt);Ke&&(Ke.outlet&&(Ke.outlet.deactivate(),Ke.children.onOutletDeactivated()),Ke.attachRef=null,Ke.route=null)}activateChildRoutes(je,Be,Ke){const bt=mn(Be);je.children.forEach(Ht=>{this.activateRoutes(Ht,bt[Ht.value.outlet],Ke),this.forwardEvent(new Bi(Ht.value.snapshot))}),je.children.length&&this.forwardEvent(new Gn(je.value.snapshot))}activateRoutes(je,Be,Ke){const bt=je.value,Ht=Be?Be.value:null;if($a(bt),bt===Ht)if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);this.activateChildRoutes(je,Be,sn.children)}else this.activateChildRoutes(je,Be,Ke);else if(bt.component){const sn=Ke.getOrCreateContext(bt.outlet);if(this.routeReuseStrategy.shouldAttach(bt.snapshot)){const Rn=this.routeReuseStrategy.retrieve(bt.snapshot);this.routeReuseStrategy.store(bt.snapshot,null),sn.children.onOutletReAttached(Rn.contexts),sn.attachRef=Rn.componentRef,sn.route=Rn.route.value,sn.outlet&&sn.outlet.attach(Rn.componentRef,Rn.route.value),$a(Rn.route.value),this.activateChildRoutes(je,null,sn.children)}else sn.attachRef=null,sn.route=bt,sn.outlet&&sn.outlet.activateWith(bt,sn.injector),this.activateChildRoutes(je,null,sn.children)}else this.activateChildRoutes(je,null,Ke)}}class Jr{path;route;constructor(je){this.path=je,this.route=this.path[this.path.length-1]}}class ps{component;route;constructor(je,Be){this.component=je,this.route=Be}}function lr(Te,je,Be){const Ke=Te._root;return Xr(Ke,je?je._root:null,Be,[Ke.value])}function ar(Te,je){const Be=Symbol(),Ke=je.get(Te,Be);return Ke===Be?"function"!=typeof Te||(0,i.muV)(Te)?je.get(Te):Te:Ke}function Xr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=mn(je);return Te.children.forEach(sn=>{(function Kr(Te,je,Be,Ke,bt={canDeactivateChecks:[],canActivateChecks:[]}){const Ht=Te.value,sn=je?je.value:null,Rn=Be?Be.getContext(Te.value.outlet):null;if(sn&&Ht.routeConfig===sn.routeConfig){const di=function Ms(Te,je,Be){if("function"==typeof Be)return Be(Te,je);switch(Be){case"pathParamsChange":return!et(Te.url,je.url);case"pathParamsOrQueryParamsChange":return!et(Te.url,je.url)||!ve(Te.queryParams,je.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ir(Te,je)||!ve(Te.queryParams,je.queryParams);default:return!ir(Te,je)}}(sn,Ht,Ht.routeConfig.runGuardsAndResolvers);di?bt.canActivateChecks.push(new Jr(Ke)):(Ht.data=sn.data,Ht._resolvedData=sn._resolvedData),Xr(Te,je,Ht.component?Rn?Rn.children:null:Be,Ke,bt),di&&Rn&&Rn.outlet&&Rn.outlet.isActivated&&bt.canDeactivateChecks.push(new ps(Rn.outlet.component,sn))}else sn&&Hi(je,Rn,bt),bt.canActivateChecks.push(new Jr(Ke)),Xr(Te,null,Ht.component?Rn?Rn.children:null:Be,Ke,bt)})(sn,Ht[sn.value.outlet],Be,Ke.concat([sn.value]),bt),delete Ht[sn.value.outlet]}),Object.entries(Ht).forEach(([sn,Rn])=>Hi(Rn,Be.getContext(sn),bt)),bt}function Hi(Te,je,Be){const Ke=mn(Te),bt=Te.value;Object.entries(Ke).forEach(([Ht,sn])=>{Hi(sn,bt.component?je?je.children.getContext(Ht):null:je,Be)}),Be.canDeactivateChecks.push(new ps(bt.component&&je&&je.outlet&&je.outlet.isActivated?je.outlet.component:null,bt))}function Mr(Te){return"function"==typeof Te}function Aa(Te){return Te instanceof f.G||"EmptyError"===Te?.name}const Ha=Symbol("INITIAL_VALUE");function Za(){return(0,_e.n)(Te=>(0,w.z)(Te.map(je=>je.pipe((0,ye.s)(1),(0,se.Z)(Ha)))).pipe((0,ie.T)(je=>{for(const Be of je)if(!0!==Be){if(Be===Ha)return Ha;if(!1===Be||ks(Be))return Be}return!0}),(0,pe.p)(je=>je!==Ha),(0,ye.s)(1)))}function ks(Te){return fn(Te)||Te instanceof Ka}function vn(Te){return(0,K.F)((0,s.M)(je=>{if("boolean"!=typeof je)throw Is(0,je)}),(0,ie.T)(je=>!0===je))}class da{segmentGroup;constructor(je){this.segmentGroup=je||null}}class Er extends Error{urlTree;constructor(je){super(),this.urlTree=je}}function Kt(Te){return(0,j.$)(new da(Te))}function Vn(Te){return(0,j.$)(new i.buA(4e3,!1))}class xn{urlSerializer;urlTree;constructor(je,Be){this.urlSerializer=je,this.urlTree=Be}lineralizeSegments(je,Be){let Ke=[],bt=Be.root;for(;;){if(Ke=Ke.concat(bt.segments),0===bt.numberOfChildren)return(0,h.of)(Ke);if(bt.numberOfChildren>1||!bt.children[he])return Vn();bt=bt.children[he]}}applyRedirectCommands(je,Be,Ke,bt,Ht){return function Bn(Te,je,Be){if("string"==typeof Te)return(0,h.of)(Te);const Ke=Te,{queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,params:ji,data:Ia,title:rr}=je;return nt((0,i.N4e)(Be,()=>Ke({params:ji,data:Ia,queryParams:bt,fragment:Ht,routeConfig:sn,url:Rn,outlet:di,title:rr})))}(Be,bt,Ht).pipe((0,ie.T)(sn=>{if(sn instanceof de)throw new Er(sn);const Rn=this.applyRedirectCreateUrlTree(sn,this.urlSerializer.parse(sn),je,Ke);if("/"===sn[0])throw new Er(Rn);return Rn}))}applyRedirectCreateUrlTree(je,Be,Ke,bt){const Ht=this.createSegmentGroup(je,Be.root,Ke,bt);return new de(Ht,this.createQueryParams(Be.queryParams,this.urlTree.queryParams),Be.fragment)}createQueryParams(je,Be){const Ke={};return Object.entries(je).forEach(([bt,Ht])=>{if("string"==typeof Ht&&":"===Ht[0]){const Rn=Ht.substring(1);Ke[bt]=Be[Rn]}else Ke[bt]=Ht}),Ke}createSegmentGroup(je,Be,Ke,bt){const Ht=this.createSegments(je,Be.segments,Ke,bt);let sn={};return Object.entries(Be.children).forEach(([Rn,di])=>{sn[Rn]=this.createSegmentGroup(je,di,Ke,bt)}),new ae(Ht,sn)}createSegments(je,Be,Ke,bt){return Be.map(Ht=>":"===Ht.path[0]?this.findPosParam(je,Ht,bt):this.findOrReturn(Ht,Ke))}findPosParam(je,Be,Ke){const bt=Ke[Be.path.substring(1)];if(!bt)throw new i.buA(4001,!1);return bt}findOrReturn(je,Be){let Ke=0;for(const bt of Be){if(bt.path===je.path)return Be.splice(Ke),bt;Ke++}return je}}const wi={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ea(Te,je,Be,Ke,bt){const Ht=ur(Te,je,Be);return Ht.matched?(Ke=function Dn(Te,je){return Te.providers&&!Te._injector&&(Te._injector=(0,p.Ol2)(Te.providers,je,`Route: ${Te.path}`)),Te._injector??je}(je,Ke),function Ni(Te,je,Be,Ke){const bt=je.canMatch;if(!bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function Yr(Te){return Te&&Mr(Te.canMatch)}(Rn)?Rn.canMatch(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(Ke,je,Be).pipe((0,ie.T)(sn=>!0===sn?Ht:{...wi}))):(0,h.of)(Ht)}function ur(Te,je,Be){if("**"===je.path)return function eo(Te){return{matched:!0,parameters:Te.length>0?be(Te).parameters:{},consumedSegments:Te,remainingSegments:[],positionalParamSegments:{}}}(Be);if(""===je.path)return"full"===je.pathMatch&&(Te.hasChildren()||Be.length>0)?{...wi}:{matched:!0,consumedSegments:[],remainingSegments:Be,parameters:{},positionalParamSegments:{}};const bt=(je.matcher||Re)(Be,Te,je);if(!bt)return{...wi};const Ht={};Object.entries(bt.posParams??{}).forEach(([Rn,di])=>{Ht[Rn]=di.path});const sn=bt.consumed.length>0?{...Ht,...bt.consumed[bt.consumed.length-1].parameters}:Ht;return{matched:!0,consumedSegments:bt.consumed,remainingSegments:Be.slice(bt.consumed.length),parameters:sn,positionalParamSegments:bt.posParams??{}}}function Co(Te,je,Be,Ke){return Be.length>0&&function yl(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke)&<(Ke)!==he)}(Te,Be,Ke)?{segmentGroup:new ae(je,qo(Ke,new ae(Be,Te.children))),slicedSegments:[]}:0===Be.length&&function Sr(Te,je,Be){return Be.some(Ke=>ts(Te,je,Ke))}(Te,Be,Ke)?{segmentGroup:new ae(Te.segments,wr(Te,Be,Ke,Te.children)),slicedSegments:Be}:{segmentGroup:new ae(Te.segments,Te.children),slicedSegments:Be}}function wr(Te,je,Be,Ke){const bt={};for(const Ht of Be)if(ts(Te,je,Ht)&&!Ke[lt(Ht)]){const sn=new ae([],{});bt[lt(Ht)]=sn}return{...Ke,...bt}}function qo(Te,je){const Be={};Be[he]=je;for(const Ke of Te)if(""===Ke.path&<(Ke)!==he){const bt=new ae([],{});Be[lt(Ke)]=bt}return Be}function ts(Te,je,Be){return(!(Te.hasChildren()||je.length>0)||"full"!==Be.pathMatch)&&""===Be.path}class Eo{}class Bl{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(je,Be,Ke,bt,Ht,sn,Rn){this.injector=je,this.configLoader=Be,this.rootComponentType=Ke,this.config=bt,this.urlTree=Ht,this.paramsInheritanceStrategy=sn,this.urlSerializer=Rn,this.applyRedirects=new xn(this.urlSerializer,this.urlTree)}noMatchError(je){return new i.buA(4002,`'${je.segmentGroup}'`)}recognize(){const je=Co(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(je).pipe((0,ie.T)(({children:Be,rootSnapshot:Ke})=>{const bt=new la(Ke,Be),Ht=new Yi("",bt),sn=function mt(Te,je,Be=null,Ke=null){return wn(It(Te),je,Be,Ke)}(Ke,[],this.urlTree.queryParams,this.urlTree.fragment);return sn.queryParams=this.urlTree.queryParams,Ht.url=this.urlSerializer.serialize(sn),{state:Ht,tree:sn}}))}match(je){const Be=new Wn([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Object.freeze({}),he,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,je,he,Be).pipe((0,ie.T)(Ke=>({children:Ke,rootSnapshot:Be})),(0,m.W)(Ke=>{if(Ke instanceof Er)return this.urlTree=Ke.urlTree,this.match(Ke.urlTree.root);throw Ke instanceof da?this.noMatchError(Ke):Ke}))}processSegmentGroup(je,Be,Ke,bt,Ht){return 0===Ke.segments.length&&Ke.hasChildren()?this.processChildren(je,Be,Ke,Ht):this.processSegment(je,Be,Ke,Ke.segments,bt,!0,Ht).pipe((0,ie.T)(sn=>sn instanceof la?[sn]:[]))}processChildren(je,Be,Ke,bt){const Ht=[];for(const sn of Object.keys(Ke.children))"primary"===sn?Ht.unshift(sn):Ht.push(sn);return(0,A.H)(Ht).pipe((0,t.H)(sn=>{const Rn=Ke.children[sn],di=function an(Te,je){const Be=Te.filter(Ke=>lt(Ke)===je);return Be.push(...Te.filter(Ke=>lt(Ke)!==je)),Be}(Be,sn);return this.processSegmentGroup(je,di,Rn,sn,bt)}),(0,u.S)((sn,Rn)=>(sn.push(...Rn),sn)),(0,_.U)(null),function Y(Te,je){const Be=arguments.length>=2;return Ke=>Ke.pipe(Te?(0,pe.p)((bt,Ht)=>Te(bt,Ht,Ke)):x.D,C(1),Be?(0,_.U)(je):(0,a.v)(()=>new f.G))}(),(0,Ee.Z)(sn=>{if(null===sn)return Kt(Ke);const Rn=vi(sn);return function hr(Te){Te.sort((je,Be)=>je.value.outlet===he?-1:Be.value.outlet===he?1:je.value.outlet.localeCompare(Be.value.outlet))}(Rn),(0,h.of)(Rn)}))}processSegment(je,Be,Ke,bt,Ht,sn,Rn){return(0,A.H)(Be).pipe((0,t.H)(di=>this.processSegmentAgainstRoute(di._injector??je,Be,di,Ke,bt,Ht,sn,Rn).pipe((0,m.W)(ji=>{if(ji instanceof da)return(0,h.of)(null);throw ji}))),(0,L.$)(di=>!!di),(0,m.W)(di=>{if(Aa(di))return function Mo(Te,je,Be){return 0===je.length&&!Te.children[Be]}(Ke,bt,Ht)?(0,h.of)(new Eo):Kt(Ke);throw di}))}processSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn,Rn,di){return lt(Ke)===sn||sn!==he&&ts(bt,Ht,Ke)?void 0===Ke.redirectTo?this.matchSegmentAgainstRoute(je,bt,Ke,Ht,sn,di):this.allowRedirects&&Rn?this.expandSegmentAgainstRouteUsingRedirect(je,bt,Be,Ke,Ht,sn,di):Kt(bt):Kt(bt)}expandSegmentAgainstRouteUsingRedirect(je,Be,Ke,bt,Ht,sn,Rn){const{matched:di,parameters:ji,consumedSegments:Ia,positionalParamSegments:rr,remainingSegments:Fr}=ur(Be,bt,Ht);if(!di)return Kt(Be);"string"==typeof bt.redirectTo&&"/"===bt.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const nl=new Wn(Ht,ji,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(bt),lt(bt),bt.component??bt._loadedComponent??null,bt,fl(bt)),as=rn(nl,Rn,this.paramsInheritanceStrategy);return nl.params=Object.freeze(as.params),nl.data=Object.freeze(as.data),this.applyRedirects.applyRedirectCommands(Ia,bt.redirectTo,rr,nl,je).pipe((0,_e.n)(lo=>this.applyRedirects.lineralizeSegments(bt,lo)),(0,Ee.Z)(lo=>this.processSegment(je,Ke,Be,lo.concat(Fr),sn,!1,Rn)))}matchSegmentAgainstRoute(je,Be,Ke,bt,Ht,sn){const Rn=Ea(Be,Ke,bt,je);return"**"===Ke.path&&(Be.children={}),Rn.pipe((0,_e.n)(di=>di.matched?this.getChildConfig(je=Ke._injector??je,Ke,bt).pipe((0,_e.n)(({routes:ji})=>{const Ia=Ke._loadedInjector??je,{parameters:rr,consumedSegments:Fr,remainingSegments:nl}=di,as=new Wn(Fr,rr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Go(Ke),lt(Ke),Ke.component??Ke._loadedComponent??null,Ke,fl(Ke)),oo=rn(as,sn,this.paramsInheritanceStrategy);as.params=Object.freeze(oo.params),as.data=Object.freeze(oo.data);const{segmentGroup:lo,slicedSegments:Sl}=Co(Be,Fr,nl,ji);if(0===Sl.length&&lo.hasChildren())return this.processChildren(Ia,ji,lo,as).pipe((0,ie.T)(ql=>new la(as,ql)));if(0===ji.length&&0===Sl.length)return(0,h.of)(new la(as,[]));const mc=lt(Ke)===Ht;return this.processSegment(Ia,ji,lo,Sl,mc?he:Ht,!0,as).pipe((0,ie.T)(ql=>new la(as,ql instanceof la?[ql]:[])))})):Kt(Be)))}getChildConfig(je,Be,Ke){return Be.children?(0,h.of)({routes:Be.children,injector:je}):Be.loadChildren?void 0!==Be._loadedRoutes?(0,h.of)({routes:Be._loadedRoutes,injector:Be._loadedInjector}):function Rt(Te,je,Be,Ke){const bt=je.canLoad;if(void 0===bt||0===bt.length)return(0,h.of)(!0);const Ht=bt.map(sn=>{const Rn=ar(sn,Te);return nt(function qr(Te){return Te&&Mr(Te.canLoad)}(Rn)?Rn.canLoad(je,Be):(0,i.N4e)(Te,()=>Rn(je,Be)))});return(0,h.of)(Ht).pipe(Za(),vn())}(je,Be,Ke).pipe((0,Ee.Z)(bt=>bt?this.configLoader.loadChildren(je,Be).pipe((0,s.M)(Ht=>{Be._loadedRoutes=Ht.routes,Be._loadedInjector=Ht.injector})):function _t(){return(0,j.$)(Wr(!1,zn.GuardRejected))}())):(0,h.of)({routes:[],injector:je})}}function ns(Te){const je=Te.value.routeConfig;return je&&""===je.path}function vi(Te){const je=[],Be=new Set;for(const Ke of Te){if(!ns(Ke)){je.push(Ke);continue}const bt=je.find(Ht=>Ke.value.routeConfig===Ht.value.routeConfig);void 0!==bt?(bt.children.push(...Ke.children),Be.add(bt)):je.push(Ke)}for(const Ke of Be){const bt=vi(Ke.children);je.push(new la(Ke.value,bt))}return je.filter(Ke=>!Be.has(Ke))}function Go(Te){return Te.data||{}}function fl(Te){return Te.resolve||{}}function fo(Te){const je=Te.children.map(Be=>fo(Be)).flat();return[Te,...je]}function fr(Te){return(0,_e.n)(je=>{const Be=Te(je);return Be?(0,A.H)(Be).pipe((0,ie.T)(()=>je)):(0,h.of)(je)})}let Cl=(()=>{class Te{buildTitle(Be){let Ke,bt=Be.root;for(;void 0!==bt;)Ke=this.getResolvedTitleForRoute(bt)??Ke,bt=bt.children.find(Ht=>Ht.outlet===he);return Ke}getResolvedTitleForRoute(Be){return Be.data[Oe]}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(to),providedIn:"root"})}return Te})(),to=(()=>{class Te extends Cl{title;constructor(Be){super(),this.title=Be}updateTitle(Be){const Ke=this.buildTitle(Be);void 0!==Ke&&this.title.setTitle(Ke)}static \u0275fac=function(Ke){return new(Ke||Te)(i.KVO(re.hE))};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const wo=new i.nKC("",{providedIn:"root",factory:()=>({})}),mo=new i.nKC("");let So=(()=>{class Te{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=(0,i.WQX)(p.Ql9);loadComponent(Be,Ke){if(this.componentLoaders.get(Ke))return this.componentLoaders.get(Ke);if(Ke._loadedComponent)return(0,h.of)(Ke._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(Ke);const bt=nt((0,i.N4e)(Be,()=>Ke.loadComponent())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,s.M)(sn=>{this.onLoadEndListener&&this.onLoadEndListener(Ke),Ke._loadedComponent=sn}),(0,R.j)(()=>{this.componentLoaders.delete(Ke)})),Ht=new ee.G(bt,()=>new V.B).pipe((0,U.B)());return this.componentLoaders.set(Ke,Ht),Ht}loadChildren(Be,Ke){if(this.childrenLoaders.get(Ke))return this.childrenLoaders.get(Ke);if(Ke._loadedRoutes)return(0,h.of)({routes:Ke._loadedRoutes,injector:Ke._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Ke);const Ht=function jo(Te,je,Be,Ke){return nt((0,i.N4e)(Be,()=>Te.loadChildren())).pipe((0,ie.T)(no),(0,_e.n)(Ml),(0,Ee.Z)(bt=>bt instanceof p.PYt||Array.isArray(bt)?(0,h.of)(bt):(0,A.H)(je.compileModuleAsync(bt))),(0,ie.T)(bt=>{Ke&&Ke(Te);let Ht,sn,Rn=!1;return Array.isArray(bt)?(sn=bt,!0):(Ht=bt.create(Be).injector,sn=Ht.get(mo,[],{optional:!0,self:!0}).flat()),{routes:sn.map(ms),injector:Ht}}))}(Ke,this.compiler,Be,this.onLoadEndListener).pipe((0,R.j)(()=>{this.childrenLoaders.delete(Ke)})),sn=new ee.G(Ht,()=>new V.B).pipe((0,U.B)());return this.childrenLoaders.set(Ke,sn),sn}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function no(Te){return function ml(Te){return Te&&"object"==typeof Te&&"default"in Te}(Te)?Te.default:Te}function Ml(Te){return(0,h.of)(Te)}let io=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(El),providedIn:"root"})}return Te})(),El=(()=>{class Te{shouldProcessUrl(Be){return!0}extract(Be){return Be}merge(Be,Ke){return Be}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();const ao=new i.nKC(""),$r=new i.nKC("");function Ss(Te,je,Be){const Ke=Te.get($r),bt=Te.get(i.qQL);if(!bt.startViewTransition||Ke.skipNextTransition)return Ke.skipNextTransition=!1,new Promise(ji=>setTimeout(ji));let Ht;const sn=new Promise(ji=>{Ht=ji}),Rn=bt.startViewTransition(()=>(Ht(),function mi(Te){return new Promise(je=>{(0,p.mal)({read:()=>setTimeout(je)},{injector:Te})})}(Te)));Rn.ready.catch(ji=>{});const{onViewTransitionCreated:di}=Ke;return di&&(0,i.N4e)(Te,()=>di({transition:Rn,from:je,to:Be})),sn}const Xs=new i.nKC("");let ro=(()=>{class Te{currentNavigation=(0,i.vPA)(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new V.B;transitionAbortWithErrorSubject=new V.B;configLoader=(0,i.WQX)(So);environmentInjector=(0,i.WQX)(i.uvJ);destroyRef=(0,i.WQX)(i.abz);urlSerializer=(0,i.WQX)(Vt);rootContexts=(0,i.WQX)(cn);location=(0,i.WQX)(g.aZ);inputBindingEnabled=null!==(0,i.WQX)(hs,{optional:!0});titleStrategy=(0,i.WQX)(Cl);options=(0,i.WQX)(wo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=(0,i.WQX)(io);createViewTransition=(0,i.WQX)(ao,{optional:!0});navigationErrorHandler=(0,i.WQX)(Xs,{optional:!0});navigationId=0;get hasRequestedNavigation(){return 0!==this.navigationId}transitions;afterPreactivation=()=>(0,h.of)(void 0);rootComponentType=null;destroyed=!1;constructor(){this.configLoader.onLoadEndListener=bt=>this.events.next(new Jn(bt)),this.configLoader.onLoadStartListener=bt=>this.events.next(new Ln(bt)),this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(Be){const Ke=++this.navigationId;(0,o.O8)(()=>{this.transitions?.next({...Be,extractedUrl:this.urlHandlingStrategy.extract(Be.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:Ke})})}setupNavigations(Be){return this.transitions=new d.t(null),this.transitions.pipe((0,pe.p)(Ke=>null!==Ke),(0,_e.n)(Ke=>{let bt=!1;return(0,h.of)(Ke).pipe((0,_e.n)(Ht=>{if(this.navigationId>Ke.id)return this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),Z.w;this.currentTransition=Ke,this.currentNavigation.set({id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,targetBrowserUrl:"string"==typeof Ht.extras.browserUrl?this.urlSerializer.parse(Ht.extras.browserUrl):Ht.extras.browserUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null,abort:()=>Ht.abortController.abort()});const sn=!Be.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!sn&&"reload"!==(Ht.extras.onSameUrlNavigation??Be.onSameUrlNavigation))return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.rawUrl),"",kn.IgnoredSameUrlNavigation)),Ht.resolve(!1),Z.w;if(this.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return(0,h.of)(Ht).pipe((0,_e.n)(di=>(this.events.next(new ui(di.id,this.urlSerializer.serialize(di.extractedUrl),di.source,di.restoredState)),di.id!==this.navigationId?Z.w:Promise.resolve(di))),function ws(Te,je,Be,Ke,bt,Ht){return(0,Ee.Z)(sn=>function bl(Te,je,Be,Ke,bt,Ht,sn="emptyOnly"){return new Bl(Te,je,Be,Ke,bt,sn,Ht).recognize()}(Te,je,Be,Ke,sn.extractedUrl,bt,Ht).pipe((0,ie.T)(({state:Rn,tree:di})=>({...sn,targetSnapshot:Rn,urlAfterRedirects:di}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,Be.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,s.M)(di=>{Ke.targetSnapshot=di.targetSnapshot,Ke.urlAfterRedirects=di.urlAfterRedirects,this.currentNavigation.update(Ia=>(Ia.finalUrl=di.urlAfterRedirects,Ia));const ji=new aa(di.id,this.urlSerializer.serialize(di.extractedUrl),this.urlSerializer.serialize(di.urlAfterRedirects),di.targetSnapshot);this.events.next(ji)}));if(sn&&this.urlHandlingStrategy.shouldProcessUrl(Ht.currentRawUrl)){const{id:di,extractedUrl:ji,source:Ia,restoredState:rr,extras:Fr}=Ht,nl=new ui(di,this.urlSerializer.serialize(ji),Ia,rr);this.events.next(nl);const as=Ce(this.rootComponentType).snapshot;return this.currentTransition=Ke={...Ht,targetSnapshot:as,urlAfterRedirects:ji,extras:{...Fr,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.update(oo=>(oo.finalUrl=ji,oo)),(0,h.of)(Ke)}return this.events.next(new ci(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),"",kn.IgnoredByUrlHandlingStrategy)),Ht.resolve(!1),Z.w}),(0,s.M)(Ht=>{const sn=new sa(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(sn)}),(0,ie.T)(Ht=>(this.currentTransition=Ke={...Ht,guards:lr(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)},Ke)),function Rs(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,currentSnapshot:bt,guards:{canActivateChecks:Ht,canDeactivateChecks:sn}}=Be;return 0===sn.length&&0===Ht.length?(0,h.of)({...Be,guardsResult:!0}):function Nr(Te,je,Be,Ke){return(0,A.H)(Te).pipe((0,Ee.Z)(bt=>function Ve(Te,je,Be,Ke,bt){const Ht=je&&je.routeConfig?je.routeConfig.canDeactivate:null;if(!Ht||0===Ht.length)return(0,h.of)(!0);const sn=Ht.map(Rn=>{const di=ht(je)??bt,ji=ar(Rn,di);return nt(function es(Te){return Te&&Mr(Te.canDeactivate)}(ji)?ji.canDeactivate(Te,je,Be,Ke):(0,i.N4e)(di,()=>ji(Te,je,Be,Ke))).pipe((0,L.$)())});return(0,h.of)(sn).pipe(Za())}(bt.component,bt.route,Be,je,Ke)),(0,L.$)(bt=>!0!==bt,!0))}(sn,Ke,bt,Te).pipe((0,Ee.Z)(Rn=>Rn&&function gs(Te){return"boolean"==typeof Te}(Rn)?function Ws(Te,je,Be,Ke){return(0,A.H)(je).pipe((0,t.H)(bt=>(0,F.x)(function Es(Te,je){return null!==Te&&je&&je(new hi(Te)),(0,h.of)(!0)}(bt.route.parent,Ke),function Qr(Te,je){return null!==Te&&je&&je(new Qn(Te)),(0,h.of)(!0)}(bt.route,Ke),function pt(Te,je,Be){const Ke=je[je.length-1],Ht=je.slice(0,je.length-1).reverse().map(sn=>function dr(Te){const je=Te.routeConfig?Te.routeConfig.canActivateChild:null;return je&&0!==je.length?{node:Te,guards:je}:null}(sn)).filter(sn=>null!==sn).map(sn=>(0,M.v)(()=>{const Rn=sn.guards.map(di=>{const ji=ht(sn.node)??Be,Ia=ar(di,ji);return nt(function _s(Te){return Te&&Mr(Te.canActivateChild)}(Ia)?Ia.canActivateChild(Ke,Te):(0,i.N4e)(ji,()=>Ia(Ke,Te))).pipe((0,L.$)())});return(0,h.of)(Rn).pipe(Za())}));return(0,h.of)(Ht).pipe(Za())}(Te,bt.path,Be),function ct(Te,je,Be){const Ke=je.routeConfig?je.routeConfig.canActivate:null;if(!Ke||0===Ke.length)return(0,h.of)(!0);const bt=Ke.map(Ht=>(0,M.v)(()=>{const sn=ht(je)??Be,Rn=ar(Ht,sn);return nt(function Pa(Te){return Te&&Mr(Te.canActivate)}(Rn)?Rn.canActivate(je,Te):(0,i.N4e)(sn,()=>Rn(je,Te))).pipe((0,L.$)())}));return(0,h.of)(bt).pipe(Za())}(Te,bt.route,Be))),(0,L.$)(bt=>!0!==bt,!0))}(Ke,Ht,Te,je):(0,h.of)(Rn)),(0,ie.T)(Rn=>({...Be,guardsResult:Rn})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,s.M)(Ht=>{if(Ke.guardsResult=Ht.guardsResult,Ht.guardsResult&&"boolean"!=typeof Ht.guardsResult)throw Is(0,Ht.guardsResult);const sn=new pa(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(sn)}),(0,pe.p)(Ht=>!!Ht.guardsResult||(this.cancelNavigationTransition(Ht,"",zn.GuardRejected),!1)),fr(Ht=>{if(0!==Ht.guards.canActivateChecks.length)return(0,h.of)(Ht).pipe((0,s.M)(sn=>{const Rn=new ha(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}),(0,_e.n)(sn=>{let Rn=!1;return(0,h.of)(sn).pipe(function Ho(Te,je){return(0,Ee.Z)(Be=>{const{targetSnapshot:Ke,guards:{canActivateChecks:bt}}=Be;if(!bt.length)return(0,h.of)(Be);const Ht=new Set(bt.map(di=>di.route)),sn=new Set;for(const di of Ht)if(!sn.has(di))for(const ji of fo(di))sn.add(ji);let Rn=0;return(0,A.H)(sn).pipe((0,t.H)(di=>Ht.has(di)?function xl(Te,je,Be,Ke){const bt=Te.routeConfig,Ht=Te._resolve;return void 0!==bt?.title&&!Ga(bt)&&(Ht[Oe]=bt.title),(0,M.v)(()=>(Te.data=rn(Te,Te.parent,Be).resolve,function zl(Te,je,Be,Ke){const bt=oe(Te);if(0===bt.length)return(0,h.of)({});const Ht={};return(0,A.H)(bt).pipe((0,Ee.Z)(sn=>function za(Te,je,Be,Ke){const bt=ht(je)??Ke,Ht=ar(Te,bt);return nt(Ht.resolve?Ht.resolve(je,Be):(0,i.N4e)(bt,()=>Ht(je,Be)))}(Te[sn],je,Be,Ke).pipe((0,L.$)(),(0,s.M)(Rn=>{if(Rn instanceof Ka)throw Is(new hn,Rn);Ht[sn]=Rn}))),C(1),(0,ie.T)(()=>Ht),(0,m.W)(sn=>Aa(sn)?Z.w:(0,j.$)(sn)))}(Ht,Te,je,Ke).pipe((0,ie.T)(sn=>(Te._resolvedData=sn,Te.data={...Te.data,...sn},null)))))}(di,Ke,Te,je):(di.data=rn(di,di.parent,Te).resolve,(0,h.of)(void 0))),(0,s.M)(()=>Rn++),C(1),(0,Ee.Z)(di=>Rn===sn.size?(0,h.of)(Be):Z.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,s.M)({next:()=>Rn=!0,complete:()=>{Rn||this.cancelNavigationTransition(sn,"",zn.NoDataFromResolver)}}))}),(0,s.M)(sn=>{const Rn=new dn(sn.id,this.urlSerializer.serialize(sn.extractedUrl),this.urlSerializer.serialize(sn.urlAfterRedirects),sn.targetSnapshot);this.events.next(Rn)}))}),fr(Ht=>{const sn=Rn=>{const di=[];if(Rn.routeConfig?.loadComponent){const ji=ht(Rn)??this.environmentInjector;di.push(this.configLoader.loadComponent(ji,Rn.routeConfig).pipe((0,s.M)(Ia=>{Rn.component=Ia}),(0,ie.T)(()=>{})))}for(const ji of Rn.children)di.push(...sn(ji));return di};return(0,w.z)(sn(Ht.targetSnapshot.root)).pipe((0,_.U)(null),(0,ye.s)(1))}),fr(()=>this.afterPreactivation()),(0,_e.n)(()=>{const{currentSnapshot:Ht,targetSnapshot:sn}=Ke,Rn=this.createViewTransition?.(this.environmentInjector,Ht.root,sn.root);return Rn?(0,A.H)(Rn).pipe((0,ie.T)(()=>Ke)):(0,h.of)(Ke)}),(0,ie.T)(Ht=>{const sn=function bo(Te,je,Be){const Ke=Zr(Te,je._root,Be?Be._root:void 0);return new li(Ke,je)}(Be.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return this.currentTransition=Ke={...Ht,targetRouterState:sn},this.currentNavigation.update(Rn=>(Rn.targetRouterState=sn,Rn)),Ke}),(0,s.M)(()=>{this.events.next(new Sa)}),((Te,je,Be,Ke)=>(0,ie.T)(bt=>(new xo(je,bt.targetRouterState,bt.currentRouterState,Be,Ke).activate(Te),bt)))(this.rootContexts,Be.routeReuseStrategy,Ht=>this.events.next(Ht),this.inputBindingEnabled),(0,ye.s)(1),(0,fe.Q)(new Q.c(Ht=>{const sn=Ke.abortController.signal,Rn=()=>Ht.next();return sn.addEventListener("abort",Rn),()=>sn.removeEventListener("abort",Rn)}).pipe((0,pe.p)(()=>!bt&&!Ke.targetRouterState),(0,s.M)(()=>{this.cancelNavigationTransition(Ke,Ke.abortController.signal.reason+"",zn.Aborted)}))),(0,s.M)({next:Ht=>{bt=!0,this.lastSuccessfulNavigation=(0,o.O8)(this.currentNavigation),this.events.next(new gn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects))),this.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{bt=!0}}),(0,fe.Q)(this.transitionAbortWithErrorSubject.pipe((0,s.M)(Ht=>{throw Ht}))),(0,R.j)(()=>{bt||this.cancelNavigationTransition(Ke,"",zn.SupersededByNewNavigation),this.currentTransition?.id===Ke.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),(0,m.W)(Ht=>{if(this.destroyed)return Ke.resolve(!1),Z.w;if(bt=!0,Js(Ht))this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht.message,Ht.cancellationCode)),function Uo(Te){return Js(Te)&&fn(Te.url)}(Ht)?this.events.next(new un(Ht.url,Ht.navigationBehaviorOptions)):Ke.resolve(!1);else{const sn=new Xn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),Ht,Ke.targetSnapshot??void 0);try{const Rn=(0,i.N4e)(this.environmentInjector,()=>this.navigationErrorHandler?.(sn));if(!(Rn instanceof Ka))throw this.events.next(sn),Ht;{const{message:di,cancellationCode:ji}=Is(0,Rn);this.events.next(new Kn(Ke.id,this.urlSerializer.serialize(Ke.extractedUrl),di,ji)),this.events.next(new un(Rn.redirectTo,Rn.navigationBehaviorOptions))}}catch(Rn){this.options.resolveNavigationPromiseOnError?Ke.resolve(!1):Ke.reject(Rn)}}return Z.w}))}))}cancelNavigationTransition(Be,Ke,bt){const Ht=new Kn(Be.id,this.urlSerializer.serialize(Be.extractedUrl),Ke,bt);this.events.next(Ht),Be.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){const Be=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),Ke=(0,o.O8)(this.currentNavigation),bt=Ke?.targetBrowserUrl??Ke?.extractedUrl;return Be.toString()!==bt?.toString()&&!Ke?.extras.skipLocationChange}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function Os(Te){return Te!==Nn}let so=(()=>{class Te{static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Ul),providedIn:"root"})}return Te})();class el{shouldDetach(je){return!1}store(je,Be){}shouldAttach(je){return!1}retrieve(je){return null}shouldReuseRoute(je,Be){return je.routeConfig===Be.routeConfig}}let Ul=(()=>{class Te extends el{static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})(),To=(()=>{class Te{urlSerializer=(0,i.WQX)(Vt);options=(0,i.WQX)(wo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new de;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:Be,initialUrl:Ke,targetBrowserUrl:bt}){const Ht=void 0!==Be?this.urlHandlingStrategy.merge(Be,Ke):Ke,sn=bt??Ht;return sn instanceof de?this.urlSerializer.serialize(sn):sn}commitTransition({targetRouterState:Be,finalUrl:Ke,initialUrl:bt}){Ke&&Be?(this.currentUrlTree=Ke,this.rawUrlTree=this.urlHandlingStrategy.merge(Ke,bt),this.routerState=Be):this.rawUrlTree=bt}routerState=Ce(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:Be}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,Be??this.rawUrlTree)}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:()=>(0,i.WQX)(Zl),providedIn:"root"})}return Te})(),Zl=(()=>{class Te extends To{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(Be){return this.location.subscribe(Ke=>{"popstate"===Ke.type&&setTimeout(()=>{Be(Ke.url,Ke.state,"popstate")})})}handleRouterEvent(Be,Ke){Be instanceof ui?this.updateStateMemento():Be instanceof ci?this.commitTransition(Ke):Be instanceof aa?"eager"===this.urlUpdateStrategy&&(Ke.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Sa?(this.commitTransition(Ke),"deferred"===this.urlUpdateStrategy&&!Ke.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(Ke),Ke)):Be instanceof Kn&&Be.code!==zn.SupersededByNewNavigation&&Be.code!==zn.Redirect?this.restoreHistory(Ke):Be instanceof Xn?this.restoreHistory(Ke,!0):Be instanceof gn&&(this.lastSuccessfulId=Be.id,this.currentPageId=this.browserPageId)}setBrowserUrl(Be,{extras:Ke,id:bt}){const{replaceUrl:Ht,state:sn}=Ke;if(this.location.isCurrentPathEqualTo(Be)||Ht){const Rn=this.browserPageId,di={...sn,...this.generateNgRouterState(bt,Rn)};this.location.replaceState(Be,"",di)}else{const Rn={...sn,...this.generateNgRouterState(bt,this.browserPageId+1)};this.location.go(Be,"",Rn)}}restoreHistory(Be,Ke=!1){if("computed"===this.canceledNavigationResolution){const Ht=this.currentPageId-this.browserPageId;0!==Ht?this.location.historyGo(Ht):this.getCurrentUrlTree()===Be.finalUrl&&0===Ht&&(this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Ke&&this.resetInternalState(Be),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(Be,Ke){return"computed"===this.canceledNavigationResolution?{navigationId:Be,\u0275routerPageId:Ke}:{navigationId:Be}}static \u0275fac=(()=>{let Be;return function(bt){return(Be||(Be=p.xGo(Te)))(bt||Te)}})();static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})();function wl(Te,je){Te.events.pipe((0,pe.p)(Be=>Be instanceof gn||Be instanceof Kn||Be instanceof Xn||Be instanceof ci),(0,ie.T)(Be=>Be instanceof gn||Be instanceof ci?0:Be instanceof Kn&&(Be.code===zn.Redirect||Be.code===zn.SupersededByNewNavigation)?2:1),(0,pe.p)(Be=>2!==Be),(0,ye.s)(1)).subscribe(()=>{je()})}const is={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Wo=(()=>{class Te{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=(0,i.WQX)(p.C7A);stateManager=(0,i.WQX)(To);options=(0,i.WQX)(wo,{optional:!0})||{};pendingTasks=(0,i.WQX)(i.rev);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=(0,i.WQX)(ro);urlSerializer=(0,i.WQX)(Vt);location=(0,i.WQX)(g.aZ);urlHandlingStrategy=(0,i.WQX)(io);injector=(0,i.WQX)(i.uvJ);_events=new V.B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=(0,i.WQX)(so);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=(0,i.WQX)(mo,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!(0,i.WQX)(hs,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:Be=>{this.console.warn(Be)}}),this.subscribeToNavigationEvents()}eventsSubscription=new $.yU;subscribeToNavigationEvents(){const Be=this.navigationTransitions.events.subscribe(Ke=>{try{const bt=this.navigationTransitions.currentTransition,Ht=(0,o.O8)(this.navigationTransitions.currentNavigation);if(null!==bt&&null!==Ht)if(this.stateManager.handleRouterEvent(Ke,Ht),Ke instanceof Kn&&Ke.code!==zn.Redirect&&Ke.code!==zn.SupersededByNewNavigation)this.navigated=!0;else if(Ke instanceof gn)this.navigated=!0;else if(Ke instanceof un){const sn=Ke.navigationBehaviorOptions,Rn=this.urlHandlingStrategy.merge(Ke.url,bt.currentRawUrl),di={browserUrl:bt.extras.browserUrl,info:bt.extras.info,skipLocationChange:bt.extras.skipLocationChange,replaceUrl:bt.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Os(bt.source),...sn};this.scheduleNavigation(Rn,Nn,null,di,{resolve:bt.resolve,reject:bt.reject,promise:bt.promise})}(function Sn(Te){return!(Te instanceof Sa||Te instanceof un)})(Ke)&&this._events.next(Ke)}catch(bt){this.navigationTransitions.transitionAbortWithErrorSubject.next(bt)}});this.eventsSubscription.add(Be)}resetRootComponentType(Be){this.routerState.root.component=Be,this.navigationTransitions.rootComponentType=Be}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Nn,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((Be,Ke,bt)=>{this.navigateToSyncWithBrowser(Be,bt,Ke)})}navigateToSyncWithBrowser(Be,Ke,bt){const Ht={replaceUrl:!0},sn=bt?.navigationId?bt:null;if(bt){const di={...bt};delete di.navigationId,delete di.\u0275routerPageId,0!==Object.keys(di).length&&(Ht.state=di)}const Rn=this.parseUrl(Be);this.scheduleNavigation(Rn,Ke,sn,Ht).catch(di=>{this.disposed||this.injector.get(i.ZTf)(di)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return(0,o.O8)(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(Be){this.config=Be.map(ms),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(Be,Ke={}){const{relativeTo:bt,queryParams:Ht,fragment:sn,queryParamsHandling:Rn,preserveFragment:di}=Ke,ji=di?this.currentUrlTree.fragment:sn;let rr,Ia=null;switch(Rn??this.options.defaultQueryParamsHandling){case"merge":Ia={...this.currentUrlTree.queryParams,...Ht};break;case"preserve":Ia=this.currentUrlTree.queryParams;break;default:Ia=Ht||null}null!==Ia&&(Ia=this.removeEmptyProps(Ia));try{rr=It(bt?bt.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof Be[0]||"/"!==Be[0][0])&&(Be=[]),rr=this.currentUrlTree.root}return wn(rr,Be,Ia,ji??null)}navigateByUrl(Be,Ke={skipLocationChange:!1}){const bt=fn(Be)?Be:this.parseUrl(Be),Ht=this.urlHandlingStrategy.merge(bt,this.rawUrlTree);return this.scheduleNavigation(Ht,Nn,null,Ke)}navigate(Be,Ke={skipLocationChange:!1}){return function tl(Te){for(let je=0;je(null!=Ht&&(Ke[bt]=Ht),Ke),{})}scheduleNavigation(Be,Ke,bt,Ht,sn){if(this.disposed)return Promise.resolve(!1);let Rn,di,ji;sn?(Rn=sn.resolve,di=sn.reject,ji=sn.promise):ji=new Promise((rr,Fr)=>{Rn=rr,di=Fr});const Ia=this.pendingTasks.add();return wl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Ia))}),this.navigationTransitions.handleNavigationRequest({source:Ke,restoredState:bt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:Be,extras:Ht,resolve:Rn,reject:di,promise:ji,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ji.catch(rr=>Promise.reject(rr))}static \u0275fac=function(Ke){return new(Ke||Te)};static \u0275prov=i.jDH({token:Te,factory:Te.\u0275fac,providedIn:"root"})}return Te})()},38132(ke,q,l){"use strict";l.d(q,{Wk:()=>C,iI:()=>hn,wQ:()=>a});var Q=l(10467),$=l(57303),ie=l(60177),_e=l(72200),ye=l(17705),se=l(2615),pe=l(73664),Ee=l(59295),L=l(43694),t=l(21413),s=l(22806),m=l(7673),u=l(70274),_=l(5964),T=l(26365),P=l(31397);let C=(()=>{class Ie{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=(0,se.vPA)(null);get href(){return(0,Ee.O8)(this.reactiveHref)}set href(Ne){this.reactiveHref.set(Ne)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new t.B;applicationErrorHandler=(0,se.WQX)(se.ZTf);options=(0,se.WQX)(L.J_,{optional:!0});constructor(Ne,ze,Je,gt,zt,Ye){this.router=Ne,this.route=ze,this.tabIndexAttribute=Je,this.renderer=gt,this.el=zt,this.locationStrategy=Ye,this.reactiveHref.set((0,se.WQX)(new ye.ES_("href"),{optional:!0}));const st=zt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===st||"area"===st||!("object"!=typeof customElements||!customElements.get(st)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(void 0!==this.subscription||!this.isAnchorElement)return;let Ne=this.preserveFragment;const ze=Je=>"merge"===Je||"preserve"===Je;Ne||=ze(this.queryParamsHandling),Ne||=!this.queryParamsHandling&&!ze(this.options?.defaultQueryParamsHandling),Ne&&(this.subscription=this.router.events.subscribe(Je=>{Je instanceof L.wF&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(Ne){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",Ne)}ngOnChanges(Ne){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(Ne){null==Ne?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(this.routerLinkInput=(0,L.wO)(Ne)||Array.isArray(Ne)?Ne:[Ne],this.setTabIndexIfNotOnNativeEl("0"))}onClick(Ne,ze,Je,gt,zt){const Ye=this.urlTree;if(null===Ye||this.isAnchorElement&&(0!==Ne||ze||Je||gt||zt||"string"==typeof this.target&&"_self"!=this.target))return!0;const st={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(Ye,st)?.catch(it=>{this.applicationErrorHandler(it)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const Ne=this.urlTree;this.reactiveHref.set(null!==Ne&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(Ne))??"":null)}applyAttributeValue(Ne,ze){const Je=this.renderer,gt=this.el.nativeElement;null!==ze?Je.setAttribute(gt,Ne,ze):Je.removeAttribute(gt,Ne)}get urlTree(){return null===this.routerLinkInput?null:(0,L.wO)(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(L.nX),pe.kS0("tabindex"),pe.rXU(pe.sFG),pe.rXU(pe.aKT),pe.rXU($.hb))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(ze,Je){1&ze&&pe.bIt("click",function(zt){return Je.onClick(zt.button,zt.ctrlKey,zt.shiftKey,zt.altKey,zt.metaKey)}),2&ze&&pe.BMQ("href",Je.reactiveHref(),pe.n$t)("target",Je.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ye.L39],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ye.L39],replaceUrl:[2,"replaceUrl","replaceUrl",ye.L39],routerLink:"routerLink"},features:[pe.OA$]})}return Ie})(),a=(()=>{class Ie{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new pe.bkB;constructor(Ne,ze,Je,gt,zt){this.router=Ne,this.element=ze,this.renderer=Je,this.cdr=gt,this.link=zt,this.routerEventsSubscription=Ne.events.subscribe(Ye=>{Ye instanceof L.wF&&this.update()})}ngAfterContentInit(){(0,m.of)(this.links.changes,(0,m.of)(null)).pipe((0,T.U)()).subscribe(Ne=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const Ne=[...this.links.toArray(),this.link].filter(ze=>!!ze).map(ze=>ze.onChanges);this.linkInputChangesSubscription=(0,s.H)(Ne).pipe((0,T.U)()).subscribe(ze=>{this._isActive!==this.isLinkActive(this.router)(ze)&&this.update()})}set routerLinkActive(Ne){const ze=Array.isArray(Ne)?Ne:Ne.split(" ");this.classes=ze.filter(Je=>!!Je)}ngOnChanges(Ne){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const Ne=this.hasActiveLinks();this.classes.forEach(ze=>{Ne?this.renderer.addClass(this.element.nativeElement,ze):this.renderer.removeClass(this.element.nativeElement,ze)}),Ne&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==Ne&&(this._isActive=Ne,this.cdr.markForCheck(),this.isActiveChange.emit(Ne))})}isLinkActive(Ne){const ze=function x(Ie){return!!Ie.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return Je=>{const gt=Je.urlTree;return!!gt&&Ne.isActive(gt,ze)}}hasActiveLinks(){const Ne=this.isLinkActive(this.router);return this.link&&Ne(this.link)||this.links.some(Ne)}static \u0275fac=function(ze){return new(ze||Ie)(pe.rXU(L.Ix),pe.rXU(pe.aKT),pe.rXU(pe.sFG),pe.rXU(ye.gRc),pe.rXU(C,8))};static \u0275dir=pe.FsC({type:Ie,selectors:[["","routerLinkActive",""]],contentQueries:function(ze,Je,gt){if(1&ze&&pe.wni(gt,C,5),2&ze){let zt;pe.mGM(zt=pe.lsd())&&(Je.links=zt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[pe.OA$]})}return Ie})();class Y{}let fe=(()=>{class Ie{router;injector;preloadingStrategy;loader;subscription;constructor(Ne,ze,Je,gt){this.router=Ne,this.injector=ze,this.preloadingStrategy=Je,this.loader=gt}setUpPreloading(){this.subscription=this.router.events.pipe((0,_.p)(Ne=>Ne instanceof L.wF),(0,u.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(Ne,ze){const Je=[];for(const gt of ze){gt.providers&&!gt._injector&&(gt._injector=(0,pe.Ol2)(gt.providers,Ne,`Route: ${gt.path}`));const zt=gt._injector??Ne,Ye=gt._loadedInjector??zt;(gt.loadChildren&&!gt._loadedRoutes&&void 0===gt.canLoad||gt.loadComponent&&!gt._loadedComponent)&&Je.push(this.preloadConfig(zt,gt)),(gt.children||gt._loadedRoutes)&&Je.push(this.processRoutes(Ye,gt.children??gt._loadedRoutes))}return(0,s.H)(Je).pipe((0,T.U)())}preloadConfig(Ne,ze){return this.preloadingStrategy.preload(ze,()=>{let Je;Je=ze.loadChildren&&void 0===ze.canLoad?this.loader.loadChildren(Ne,ze):(0,m.of)(null);const gt=Je.pipe((0,P.Z)(zt=>null===zt?(0,m.of)(void 0):(ze._loadedRoutes=zt.routes,ze._loadedInjector=zt.injector,this.processRoutes(zt.injector??Ne,zt.routes))));if(ze.loadComponent&&!ze._loadedComponent){const zt=this.loader.loadComponent(Ne,ze);return(0,s.H)([gt,zt]).pipe((0,T.U)())}return gt})}static \u0275fac=function(ze){return new(ze||Ie)(se.KVO(L.Ix),se.KVO(se.uvJ),se.KVO(Y),se.KVO(L.D$))};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}return Ie})();const re=new se.nKC("");let he=(()=>{class Ie{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=L.wU;restoredId=0;store={};constructor(Ne,ze,Je,gt,zt={}){this.urlSerializer=Ne,this.transitions=ze,this.viewportScroller=Je,this.zone=gt,this.options=zt,zt.scrollPositionRestoration||="disabled",zt.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(Ne=>{Ne instanceof L.Z?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=Ne.navigationTrigger,this.restoredId=Ne.restoredState?Ne.restoredState.navigationId:0):Ne instanceof L.wF?(this.lastId=Ne.id,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.urlAfterRedirects).fragment)):Ne instanceof L.lW&&Ne.code===L.mo.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(Ne,this.urlSerializer.parse(Ne.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(Ne=>{if(!(Ne instanceof L.OY))return;const ze={behavior:"instant"};Ne.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0],ze):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(Ne.position,ze):Ne.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(Ne.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(Ne,ze){var Je=this;this.zone.runOutsideAngular((0,Q.A)(function*(){yield new Promise(gt=>{setTimeout(gt),typeof requestAnimationFrame<"u"&&requestAnimationFrame(gt)}),Je.zone.run(()=>{Je.transitions.events.next(new L.OY(Ne,"popstate"===Je.lastSource?Je.store[Je.restoredId]:null,ze))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(ze){pe.QTQ()};static \u0275prov=se.jDH({token:Ie,factory:Ie.\u0275fac})}return Ie})();function ve(Ie,le){return{\u0275kind:Ie,\u0275providers:le}}function $e(){const Ie=(0,se.WQX)(se.zZn);return le=>{const Ne=Ie.get(pe.o8S);if(le!==Ne.components[0])return;const ze=Ie.get(L.Ix),Je=Ie.get(dt);1===Ie.get(yt)&&ze.initialNavigation(),Ie.get(qt,null,{optional:!0})?.setUpPreloading(),Ie.get(re,null,{optional:!0})?.init(),ze.resetRootComponentType(Ne.componentTypes[0]),Je.closed||(Je.next(),Je.complete(),Je.unsubscribe())}}const dt=new se.nKC("",{factory:()=>new t.B}),yt=new se.nKC("",{providedIn:"root",factory:()=>1}),qt=new se.nKC("");function S(Ie){return ve(0,[{provide:qt,useExisting:fe},{provide:Y,useExisting:Ie}])}function Le(Ie){return(0,pe._jY)("NgRouterViewTransitions"),ve(9,[{provide:L.Pu,useValue:L.Lg},{provide:L.bK,useValue:{skipNextTransition:!!Ie?.skipInitialTransition,...Ie}}])}const Vt=[$.aZ,{provide:L.Sd,useClass:L.nU},L.Ix,L.Zp,{provide:L.nX,useFactory:function Me(Ie){return Ie.routerState.root},deps:[L.Ix]},L.D$,[]];let hn=(()=>{class Ie{constructor(){}static forRoot(Ne,ze){return{ngModule:Ie,providers:[Vt,[],{provide:L.bw,multi:!0,useValue:Ne},[],ze?.errorHandler?{provide:L.XR,useValue:ze.errorHandler}:[],{provide:L.J_,useValue:ze||{}},ze?.useHash?{provide:$.hb,useClass:_e.fw}:{provide:$.hb,useClass:$.Sm},{provide:re,useFactory:()=>{const Ie=(0,se.WQX)(ie.Xr),le=(0,se.WQX)(pe.SKi),Ne=(0,se.WQX)(L.J_),ze=(0,se.WQX)(L.J2),Je=(0,se.WQX)(L.Sd);return Ne.scrollOffset&&Ie.setOffset(Ne.scrollOffset),new he(Je,ze,Ie,le,Ne)}},ze?.preloadingStrategy?S(ze.preloadingStrategy).\u0275providers:[],ze?.initialNavigation?Pe(ze):[],ze?.bindToComponentInputs?ve(8,[L.tD,{provide:L.c1,useExisting:L.tD}]).\u0275providers:[],ze?.enableViewTransitions?Le().\u0275providers:[],[{provide:Ue,useFactory:$e},{provide:pe.iLQ,multi:!0,useExisting:Ue}]]}}static forChild(Ne){return{ngModule:Ie,providers:[{provide:L.bw,multi:!0,useValue:Ne}]}}static \u0275fac=function(ze){return new(ze||Ie)};static \u0275mod=pe.$C({type:Ie});static \u0275inj=se.G2t({})}return Ie})();function Pe(Ie){return["disabled"===Ie.initialNavigation?ve(3,[(0,pe.phd)(()=>{(0,se.WQX)(L.Ix).setUpLocationChangeListener()}),{provide:yt,useValue:2}]).\u0275providers:[],"enabledBlocking"===Ie.initialNavigation?ve(2,[{provide:pe.tvf,useValue:!0},{provide:yt,useValue:0},(0,pe.phd)(()=>{const le=(0,se.WQX)(se.zZn);return le.get($.hj,Promise.resolve()).then(()=>new Promise(ze=>{const Je=le.get(L.Ix),gt=le.get(dt);(0,L.gk)(Je,()=>{ze(!0)}),le.get(L.J2).afterPreactivation=()=>(ze(!0),gt.closed?(0,m.of)(void 0):gt),Je.initialNavigation()}))})]).\u0275providers:[]]}const Ue=new se.nKC("")},20060(ke,q,l){"use strict";l.d(q,{aY:()=>t1,dX:()=>A2});var i=l(2615),g=l(73664),p=l(17705),D=l(59295),o=l(345);function e(qe,Dt){(null==Dt||Dt>qe.length)&&(Dt=qe.length);for(var wt=0,Ft=Array(Dt);wt=qe.length?{done:!0}:{done:!1,value:qe[Ft++]}},e:function(Mt){throw Mt},f:ln}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var An,On=!0,ai=!1;return{s:function(){wt=wt.call(qe)},n:function(){var Mt=wt.next();return On=Mt.done,Mt},e:function(Mt){ai=!0,An=Mt},f:function(){try{On||null==wt.return||wt.return()}finally{if(ai)throw An}}}}function M(qe,Dt,wt){return(Dt=pe(Dt))in qe?Object.defineProperty(qe,Dt,{value:wt,enumerable:!0,configurable:!0,writable:!0}):qe[Dt]=wt,qe}function Q(qe,Dt){var wt=Object.keys(qe);if(Object.getOwnPropertySymbols){var Ft=Object.getOwnPropertySymbols(qe);Dt&&(Ft=Ft.filter(function(ln){return Object.getOwnPropertyDescriptor(qe,ln).enumerable})),wt.push.apply(wt,Ft)}return wt}function $(qe){for(var Dt=1;Dt0;)Dt+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return Dt}function Aa(qe){for(var Dt=[],wt=(qe||[]).length>>>0;wt--;)Dt[wt]=qe[wt];return Dt}function Ha(qe){return qe.classList?Aa(qe.classList):(qe.getAttribute("class")||"").split(" ").filter(function(Dt){return Dt})}function Za(qe){return"".concat(qe).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Rs(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,": ").concat(qe[wt].trim(),";")},"")}function Nr(qe){return qe.size!==Pa.size||qe.x!==Pa.x||qe.y!==Pa.y||qe.rotate!==Pa.rotate||qe.flipX||qe.flipY}function ct(){var Dt=Yi,wt=Hi.cssPrefix,Ft=Hi.replacementClass,ln=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";\n --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";\n --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";\n --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";\n --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";\n --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";\n --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";\n --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";\n --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";\n --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";\n --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";\n --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";\n --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";\n --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";\n --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";\n}\n\n.svg-inline--fa {\n box-sizing: content-box;\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n inset: 0;\n margin: auto;\n position: absolute;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xs {\n font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-sm {\n font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-lg {\n font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-xl {\n font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-2xl {\n font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that\'s relative to the scale\'s 16px base */\n line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it\'s parent */\n vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text\'s descender */\n}\n\n.fa-width-auto {\n --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n --fa-width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-inline-start: var(--fa-li-margin, 2.5em);\n padding-inline-start: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n - This feature will be deprecated in the next major release of Font Awesome (v8)!\n - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it\'s vertical alignment)\n ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.0625em);\n box-sizing: var(--fa-border-box-sizing, content-box);\n padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n float: inline-start;\n margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n float: inline-end;\n margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n .fa-bounce,\n .fa-fade,\n .fa-beat-fade,\n .fa-flip,\n .fa-pulse,\n .fa-shake,\n .fa-spin,\n .fa-spin-pulse {\n animation: none !important;\n transition: none !important;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n line-height: 2em;\n position: relative;\n vertical-align: middle;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n --fa-width: 1.25em;\n height: 1em;\n width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n --fa-width: 2.5em;\n height: 2em;\n width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n inset: 0;\n margin: auto;\n position: absolute;\n z-index: var(--fa-stack-z-index, auto);\n}';if("fa"!==wt||Ft!==Dt){var An=new RegExp("\\.".concat("fa","\\-"),"g"),On=new RegExp("\\--".concat("fa","\\-"),"g"),ai=new RegExp("\\.".concat(Dt),"g");ln=ln.replace(An,".".concat(wt,"-")).replace(On,"--".concat(wt,"-")).replace(ai,".".concat(Ft))}return ln}var pt=!1;function Ve(){Hi.autoAddCss&&!pt&&(function _s(qe){if(qe&&re){var Dt=Y.createElement("style");Dt.setAttribute("type","text/css"),Dt.innerHTML=qe;for(var wt=Y.head.childNodes,Ft=null,ln=wt.length-1;ln>-1;ln--){var An=wt[ln],On=(An.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(On)>-1&&(Ft=An)}Y.head.insertBefore(Dt,Ft)}}(ct()),pt=!0)}var Rt={mixout:function(){return{dom:{css:ct,insertCss:Ve}}},hooks:function(){return{beforeDOMElementCreation:function(){Ve()},beforeI2svg:function(){Ve()}}}},vn=x||{};vn[vt]||(vn[vt]={}),vn[vt].styles||(vn[vt].styles={}),vn[vt].hooks||(vn[vt].hooks={}),vn[vt].shims||(vn[vt].shims=[]);var Ni=vn[vt],da=[],Er=function(){Y.removeEventListener("DOMContentLoaded",Er),Kt=1,da.map(function(Dt){return Dt()})},Kt=!1;function _t(qe){var Dt=qe.tag,wt=qe.attributes,Ft=void 0===wt?{}:wt,ln=qe.children,An=void 0===ln?[]:ln;return"string"==typeof qe?Za(qe):"<".concat(Dt," ").concat(function ks(qe){return Object.keys(qe||{}).reduce(function(Dt,wt){return Dt+"".concat(wt,'="').concat(Za(qe[wt]),'" ')},"").trim()}(Ft),">").concat(An.map(_t).join(""),"")}function xn(qe,Dt,wt){if(qe&&qe[Dt]&&qe[Dt][wt])return{prefix:Dt,iconName:wt,icon:qe[Dt][wt]}}re&&((Kt=(Y.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Y.readyState))||Y.addEventListener("DOMContentLoaded",Er));var wi=function(Dt,wt,Ft,ln){var Mt,zi,Wi,An=Object.keys(Dt),On=An.length,ai=void 0!==ln?function(Dt,wt){return function(Ft,ln,An,On){return Dt.call(wt,Ft,ln,An,On)}}(wt,ln):wt;for(void 0===Ft?(Mt=1,Wi=Dt[An[0]]):(Mt=0,Wi=Ft);Mt2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,ln=void 0!==Ft&&Ft,An=ur(Dt);"function"!=typeof Ni.hooks.addPack||ln?Ni.styles[qe]=$($({},Ni.styles[qe]||{}),An):Ni.hooks.addPack(qe,ur(Dt)),"fas"===qe&&eo("fa",Dt)}var Sr=Ni.styles,ts=Ni.shims,Mo=Object.keys(Ka),Eo=Mo.reduce(function(qe,Dt){return qe[Dt]=Object.keys(Ka[Dt]),qe},{}),bl=null,hl={},Bl={},hr={},ns={},vi={};var fl=function(){var Dt=function(An){return wi(Sr,function(On,ai,Mt){return On[Mt]=wi(ai,An,{}),On},{})};hl=Dt(function(ln,An,On){return An[3]&&(ln[An[3]]=On),An[2]&&An[2].filter(function(Mt){return"number"==typeof Mt}).forEach(function(Mt){ln[Mt.toString(16)]=On}),ln}),Bl=Dt(function(ln,An,On){return ln[On]=On,An[2]&&An[2].filter(function(Mt){return"string"==typeof Mt}).forEach(function(Mt){ln[Mt]=On}),ln}),vi=Dt(function(ln,An,On){var ai=An[2];return ln[On]=On,ai.forEach(function(Mt){ln[Mt]=On}),ln});var wt="far"in Sr||Hi.autoFetchSvg,Ft=wi(ts,function(ln,An){var On=An[0],ai=An[1],Mt=An[2];return"far"===ai&&!wt&&(ai="fas"),"string"==typeof On&&(ln.names[On]={prefix:ai,iconName:Mt}),"number"==typeof On&&(ln.unicodes[On.toString(16)]={prefix:ai,iconName:Mt}),ln},{names:{},unicodes:{}});hr=Ft.names,ns=Ft.unicodes,bl=to(Hi.styleDefault,{family:Hi.familyDefault})};function ws(qe,Dt){return(hl[qe]||{})[Dt]}function fo(qe,Dt){return(vi[qe]||{})[Dt]}function xl(qe){return hr[qe]||{prefix:null,iconName:null}}function za(){return bl}function to(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,Ft=void 0===wt?oe:wt;return Ft!==Se||qe?js[Ft][qe]||js[Ft][bo[Ft][qe]]||(qe in Ni.styles?qe:null)||null:"fad"}function mo(qe){return qe.sort().filter(function(Dt,wt,Ft){return Ft.indexOf(Dt)===wt})}(function gs(qe){Mr.push(qe)})(function(qe){bl=to(qe.styleDefault,{family:Hi.familyDefault})}),fl();var So=pi.concat(Lt);function jo(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,Ft=void 0!==wt&&wt,ln=null,An=mo(qe.filter(function(Fa){return So.includes(Fa)})),On=mo(qe.filter(function(Fa){return!So.includes(Fa)})),zi=_e(An.filter(function(Fa){return ln=Fa,!ve.includes(Fa)}),1)[0],Wi=void 0===zi?null:zi,Zi=function Cl(qe){var Dt=oe,wt=Mo.reduce(function(Ft,ln){return Ft[ln]="".concat(Hi.cssPrefix,"-").concat(ln),Ft},{});return st.forEach(function(Ft){(qe.includes(wt[Ft])||qe.some(function(ln){return Eo[Ft].includes(ln)}))&&(Dt=Ft)}),Dt}(An),Ja=$($({},function wo(qe){var Dt=[],wt=null;return qe.forEach(function(Ft){var ln=function Go(qe,Dt){var wt=Dt.split("-"),Ft=wt[0],ln=wt.slice(1).join("-");return Ft!==qe||""===ln||function Vo(qe){return~ps.indexOf(qe)}(ln)?null:ln}(Hi.cssPrefix,Ft);ln?wt=ln:Ft&&Dt.push(Ft)}),{iconName:wt,rest:Dt}}(On)),{},{prefix:to(Wi,{family:Zi})});return $($($({},Ja),function io(qe){var Dt=qe.values,wt=qe.family,Ft=qe.canonical,ln=qe.givenPrefix,An=void 0===ln?"":ln,On=qe.styles,ai=void 0===On?{}:On,Mt=qe.config,zi=void 0===Mt?{}:Mt,Wi=wt===Se,Zi=Dt.includes("fa-duotone")||Dt.includes("fad");if(!Wi&&(Zi||"duotone"===zi.familyDefault||("fad"===Ft.prefix||"fa-duotone"===Ft.prefix))&&(Ft.prefix="fad"),(Dt.includes("fa-brands")||Dt.includes("fab"))&&(Ft.prefix="fab"),!Ft.prefix&&no.includes(wt)&&(Object.keys(ai).find(function(vr){return Ml.includes(vr)})||zi.autoFetchSvg)){var _r=we.get(wt).defaultShortPrefixId;Ft.prefix=_r,Ft.iconName=fo(Ft.prefix,Ft.iconName)||Ft.iconName}return("fa"===Ft.prefix||"fa"===An)&&(Ft.prefix=za()||"fas"),Ft}({values:qe,family:Zi,styles:Sr,config:Hi,canonical:Ja,givenPrefix:ln})),function ml(qe,Dt,wt){var Ft=wt.prefix,ln=wt.iconName;if(qe||!Ft||!ln)return{prefix:Ft,iconName:ln};var An="fa"===Dt?xl(ln):{},On=fo(Ft,ln);return"far"===(Ft=An.prefix||Ft)&&!Sr.far&&Sr.fas&&!Hi.autoFetchSvg&&(Ft="fas"),{prefix:Ft,iconName:ln=An.iconName||On||ln}}(Ft,ln,Ja))}var no=st.filter(function(qe){return qe!==oe||qe!==Se}),Ml=Object.keys(cn).filter(function(qe){return qe!==oe}).map(function(qe){return Object.keys(cn[qe])}).flat(),El=function(){return function f(qe,Dt,wt){return Dt&&w(qe.prototype,Dt),wt&&w(qe,wt),Object.defineProperty(qe,"prototype",{writable:!1}),qe}(function qe(){(function d(qe,Dt){if(!(qe instanceof Dt))throw new TypeError("Cannot call a class as a function")})(this,qe),this.definitions={}},[{key:"add",value:function(){for(var wt=this,Ft=arguments.length,ln=new Array(Ft),An=0;An0&&Wi.forEach(function(Zi){"string"==typeof Zi&&(wt[ai][Zi]=zi)}),wt[ai][Mt]=zi}),wt}}])}(),ao=[],$r={},Ss={},mi=Object.keys(Ss);function ro(qe,Dt){for(var wt=arguments.length,Ft=new Array(wt>2?wt-2:0),ln=2;ln1?Dt-1:0),Ft=1;Ft0&&void 0!==arguments[0]?arguments[0]:{};return re?(Os("beforeI2svg",Dt),so("pseudoElements2svg",Dt),so("i2svg",Dt)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var Dt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=Dt.autoReplaceSvgRoot;!1===Hi.autoReplaceSvg&&(Hi.autoReplaceSvg=!0),Hi.observeMutations=!0,function Vn(qe){re&&(Kt?setTimeout(qe,0):da.push(qe))}(function(){Jl({autoReplaceSvgRoot:wt}),Os("watch",Dt)})}},is={noAuto:function(){Hi.autoReplaceSvg=!1,Hi.observeMutations=!1,Os("noAuto")},config:Hi,dom:Zl,parse:{icon:function(Dt){if(null===Dt)return null;if("object"===Ee(Dt)&&Dt.prefix&&Dt.iconName)return{prefix:Dt.prefix,iconName:fo(Dt.prefix,Dt.iconName)||Dt.iconName};if(Array.isArray(Dt)&&2===Dt.length){var wt=0===Dt[1].indexOf("fa-")?Dt[1].slice(3):Dt[1],Ft=to(Dt[0]);return{prefix:Ft,iconName:fo(Ft,wt)||wt}}if("string"==typeof Dt&&(Dt.indexOf("".concat(Hi.cssPrefix,"-"))>-1||Dt.match(Wr))){var ln=jo(Dt.split(" "),{skipLookups:!0});return{prefix:ln.prefix||za(),iconName:fo(ln.prefix,ln.iconName)||ln.iconName}}if("string"==typeof Dt){var An=za();return{prefix:An,iconName:fo(An,Dt)||Dt}}}},library:Ul,findIconDefinition:el,toHtml:_t},Jl=function(){var wt=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,Ft=void 0===wt?Y:wt;(Object.keys(Ni.styles).length>0||Hi.autoFetchSvg)&&re&&Hi.autoReplaceSvg&&is.dom.i2svg({node:Ft})};function Wo(qe,Dt){return Object.defineProperty(qe,"abstract",{get:Dt}),Object.defineProperty(qe,"html",{get:function(){return qe.abstract.map(function(Ft){return _t(Ft)})}}),Object.defineProperty(qe,"node",{get:function(){if(re){var Ft=Y.createElement("div");return Ft.innerHTML=qe.html,Ft.children}}}),qe}function Be(qe){var Dt=qe.icons,wt=Dt.main,Ft=Dt.mask,ln=qe.prefix,An=qe.iconName,On=qe.transform,ai=qe.symbol,Mt=qe.maskId,zi=qe.extra,Wi=qe.watchable,Zi=void 0!==Wi&&Wi,Ja=Ft.found?Ft:wt,Fa=Ja.width,Ts=Ja.height,_r=[Hi.replacementClass,An?"".concat(Hi.cssPrefix,"-").concat(An):""].filter(function(rc){return-1===zi.classes.indexOf(rc)}).filter(function(rc){return""!==rc||!!rc}).concat(zi.classes).join(" "),vr={children:[],attributes:$($({},zi.attributes),{},{"data-prefix":ln,"data-icon":An,class:_r,role:zi.attributes.role||"img",viewBox:"0 0 ".concat(Fa," ").concat(Ts)})};!function je(qe){return["aria-label","aria-labelledby","title","role"].some(function(wt){return wt in qe})}(zi.attributes)&&!zi.attributes["aria-hidden"]&&(vr.attributes["aria-hidden"]="true"),Zi&&(vr.attributes[va]="");var yr=$($({},vr),{},{prefix:ln,iconName:An,main:wt,mask:Ft,maskId:Mt,transform:On,symbol:ai,styles:$({},zi.styles)}),Bs=Ft.found&&wt.found?so("generateAbstractMask",yr)||{children:[],attributes:{}}:so("generateAbstractIcon",yr)||{children:[],attributes:{}},Ys=Bs.attributes;return yr.children=Bs.children,yr.attributes=Ys,ai?function Te(qe){var wt=qe.iconName,Ft=qe.children,ln=qe.attributes,An=qe.symbol,On=!0===An?"".concat(qe.prefix,"-").concat(Hi.cssPrefix,"-").concat(wt):An;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:$($({},ln),{},{id:On}),children:Ft}]}]}(yr):function tl(qe){var Dt=qe.children,wt=qe.main,Ft=qe.mask,ln=qe.attributes,An=qe.styles,On=qe.transform;if(Nr(On)&&wt.found&&!Ft.found){var zi={x:wt.width/wt.height/2,y:.5};ln.style=Rs($($({},An),{},{"transform-origin":"".concat(zi.x+On.x/16,"em ").concat(zi.y+On.y/16,"em")}))}return[{tag:"svg",attributes:ln,children:Dt}]}(yr)}function Ke(qe){var Dt=qe.content,wt=qe.width,Ft=qe.height,ln=qe.transform,An=qe.extra,On=qe.watchable,ai=void 0!==On&&On,Mt=$($({},An.attributes),{},{class:An.classes.join(" ")});ai&&(Mt[va]="");var zi=$({},An.styles);Nr(ln)&&(zi.transform=function Qr(qe){var Dt=qe.transform,wt=qe.width,ln=qe.height,An=void 0===ln?16:ln,On=qe.startCentered,ai=void 0!==On&&On,Mt="";return Mt+=ai&&he?"translate(".concat(Dt.x/16-(void 0===wt?16:wt)/2,"em, ").concat(Dt.y/16-An/2,"em) "):ai?"translate(calc(-50% + ".concat(Dt.x/16,"em), calc(-50% + ").concat(Dt.y/16,"em)) "):"translate(".concat(Dt.x/16,"em, ").concat(Dt.y/16,"em) "),(Mt+="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "))+"rotate(".concat(Dt.rotate,"deg) ")}({transform:ln,startCentered:!0,width:wt,height:Ft}),zi["-webkit-transform"]=zi.transform);var Wi=Rs(zi);Wi.length>0&&(Mt.style=Wi);var Zi=[];return Zi.push({tag:"span",attributes:Mt,children:[Dt]}),Zi}var Ht=Ni.styles;function sn(qe){var Dt=qe[0],wt=qe[1],An=_e(qe.slice(4),1)[0];return{found:!0,width:Dt,height:wt,icon:Array.isArray(An)?{tag:"g",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_GROUP)},children:[{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_SECONDARY),fill:"currentColor",d:An[0]}},{tag:"path",attributes:{class:"".concat(Hi.cssPrefix,"-").concat(Jr_PRIMARY),fill:"currentColor",d:An[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:An}}}}var Rn={found:!1,width:512,height:512};function ji(qe,Dt){var wt=Dt;return"fa"===Dt&&null!==Hi.styleDefault&&(Dt=za()),new Promise(function(Ft,ln){if("fa"===wt){var An=xl(qe)||{};qe=An.iconName||qe,Dt=An.prefix||Dt}if(qe&&Dt&&Ht[Dt]&&Ht[Dt][qe])return Ft(sn(Ht[Dt][qe]));(function di(qe,Dt){!zo&&!Hi.showMissingIcons&&qe&&console.error('Icon with name "'.concat(qe,'" and prefix "').concat(Dt,'" is missing.'))})(qe,Dt),Ft($($({},Rn),{},{icon:Hi.showMissingIcons&&qe&&so("missingIconAbstract")||{}}))})}var Ia=function(){},rr=Hi.measurePerformance&&U&&U.mark&&U.measure?U:{mark:Ia,measure:Ia},Fr='FA "7.1.0"',oo_begin=function(Dt){return rr.mark("".concat(Fr," ").concat(Dt," begins")),function(){return function(Dt){rr.mark("".concat(Fr," ").concat(Dt," ends")),rr.measure("".concat(Fr," ").concat(Dt),"".concat(Fr," ").concat(Dt," begins"),"".concat(Fr," ").concat(Dt," ends"))}(Dt)}},lo=function(){};function Sl(qe){return"string"==typeof(qe.getAttribute?qe.getAttribute(va):null)}function qc(qe){return Y.createElementNS("http://www.w3.org/2000/svg",qe)}function po(qe){return Y.createElement(qe)}function pc(qe){var wt=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,Ft=void 0===wt?"svg"===qe.tag?qc:po:wt;if("string"==typeof qe)return Y.createTextNode(qe);var ln=Ft(qe.tag);return Object.keys(qe.attributes||[]).forEach(function(On){ln.setAttribute(On,qe.attributes[On])}),(qe.children||[]).forEach(function(On){ln.appendChild(pc(On,{ceFn:Ft}))}),ln}var Ps={replace:function(Dt){var wt=Dt[0];if(wt.parentNode)if(Dt[1].forEach(function(ln){wt.parentNode.insertBefore(pc(ln),wt)}),null===wt.getAttribute(va)&&Hi.keepOriginalSource){var Ft=Y.createComment(function gc(qe){var Dt=" ".concat(qe.outerHTML," ");return"".concat(Dt,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(Ft,wt)}else wt.remove()},nest:function(Dt){var wt=Dt[0],Ft=Dt[1];if(~Ha(wt).indexOf(Hi.replacementClass))return Ps.replace(Dt);var ln=new RegExp("".concat(Hi.cssPrefix,"-.*"));if(delete Ft[0].attributes.id,Ft[0].attributes.class){var An=Ft[0].attributes.class.split(" ").reduce(function(ai,Mt){return Mt===Hi.replacementClass||Mt.match(ln)?ai.toSvg.push(Mt):ai.toNode.push(Mt),ai},{toNode:[],toSvg:[]});Ft[0].attributes.class=An.toSvg.join(" "),0===An.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",An.toNode.join(" "))}var On=Ft.map(function(ai){return _t(ai)}).join("\n");wt.setAttribute(va,""),wt.innerHTML=On}};function Do(qe){qe()}function e1(qe,Dt){var wt="function"==typeof Dt?Dt:lo;if(0===qe.length)wt();else{var Ft=Do;"async"===Hi.mutateApproach&&(Ft=x.requestAnimationFrame||Do),Ft(function(){var ln=function Tl(){return!0===Hi.autoReplaceSvg?Ps.replace:Ps[Hi.autoReplaceSvg]||Ps.replace}(),An=oo_begin("mutate");qe.map(ln),An(),wt()})}}var Ao=!1;function kc(){Ao=!0}function pl(){Ao=!1}var il=null;function Lo(qe){if(R&&Hi.observeMutations){var Dt=qe.treeCallback,wt=void 0===Dt?lo:Dt,Ft=qe.nodeCallback,ln=void 0===Ft?lo:Ft,An=qe.pseudoElementsCallback,On=void 0===An?lo:An,ai=qe.observeMutationsRoot,Mt=void 0===ai?Y:ai;il=new R(function(zi){if(!Ao){var Wi=za();Aa(zi).forEach(function(Zi){if("childList"===Zi.type&&Zi.addedNodes.length>0&&!Sl(Zi.addedNodes[0])&&(Hi.searchPseudoElements&&On(Zi.target),wt(Zi.target)),"attributes"===Zi.type&&Zi.target.parentNode&&Hi.searchPseudoElements&&On([Zi.target],!0),"attributes"===Zi.type&&Sl(Zi.target)&&~xo.indexOf(Zi.attributeName))if("class"===Zi.attributeName&&function mc(qe){var Dt=qe.getAttribute?qe.getAttribute(ir):null,wt=qe.getAttribute?qe.getAttribute(Ga):null;return Dt&&wt}(Zi.target)){var Ja=jo(Ha(Zi.target)),Ts=Ja.iconName;Zi.target.setAttribute(ir,Ja.prefix||Wi),Ts&&Zi.target.setAttribute(Ga,Ts)}else(function ql(qe){return qe&&qe.classList&&qe.classList.contains&&qe.classList.contains(Hi.replacementClass)})(Zi.target)&&ln(Zi.target)})}}),re&&il.observe(Mt,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Io(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=function Gl(qe){var Dt=qe.getAttribute("data-prefix"),wt=qe.getAttribute("data-icon"),Ft=void 0!==qe.innerText?qe.innerText.trim():"",ln=jo(Ha(qe));return ln.prefix||(ln.prefix=za()),Dt&&wt&&(ln.prefix=Dt,ln.iconName=wt),ln.iconName&&ln.prefix||(ln.prefix&&Ft.length>0&&(ln.iconName=function Ho(qe,Dt){return(Bl[qe]||{})[Dt]}(ln.prefix,qe.innerText)||ws(ln.prefix,Ea(qe.innerText))),!ln.iconName&&Hi.autoFetchSvg&&qe.firstChild&&qe.firstChild.nodeType===Node.TEXT_NODE&&(ln.iconName=qe.firstChild.data)),ln}(qe),Ft=wt.iconName,ln=wt.prefix,An=wt.rest,On=function Hl(qe){return Aa(qe.attributes).reduce(function(wt,Ft){return"class"!==wt.name&&"style"!==wt.name&&(wt[Ft.name]=Ft.value),wt},{})}(qe),ai=ro("parseNodeAttributes",{},qe),Mt=Dt.styleParser?function Vl(qe){var Dt=qe.getAttribute("style"),wt=[];return Dt&&(wt=Dt.split(";").reduce(function(Ft,ln){var An=ln.split(":"),On=An[0],ai=An.slice(1);return On&&ai.length>0&&(Ft[On]=ai.join(":").trim()),Ft},{})),wt}(qe):[];return $({iconName:Ft,prefix:ln,transform:Pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:An,styles:Mt,attributes:On}},ai)}var ko=Ni.styles;function jl(qe){var Dt="nest"===Hi.autoReplaceSvg?Io(qe,{styleParser:!1}):Io(qe);return~Dt.extra.classes.indexOf(Uo)?so("generateLayersText",qe,Dt):so("generateSvgReplacementMutation",qe,Dt)}function Tr(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!re)return Promise.resolve();var wt=Y.documentElement.classList,Ft=function(Zi){return wt.add("".concat(Ar,"-").concat(Zi))},ln=function(Zi){return wt.remove("".concat(Ar,"-").concat(Zi))},An=Hi.autoFetchSvg?function rs(){return[].concat(ye(Lt),ye(pi))}():ve.concat(Object.keys(ko));An.includes("fa")||An.push("fa");var On=[".".concat(Uo,":not([").concat(va,"])")].concat(An.map(function(Wi){return".".concat(Wi,":not([").concat(va,"])")})).join(", ");if(0===On.length)return Promise.resolve();var ai=[];try{ai=Aa(qe.querySelectorAll(On))}catch{}if(!(ai.length>0))return Promise.resolve();Ft("pending"),ln("complete");var Mt=oo_begin("onTree"),zi=ai.reduce(function(Wi,Zi){try{var Ja=jl(Zi);Ja&&Wi.push(Ja)}catch(Fa){zo||"MissingIcon"===Fa.name&&console.error(Fa)}return Wi},[]);return new Promise(function(Wi,Zi){Promise.all(zi).then(function(Ja){e1(Ja,function(){Ft("active"),Ft("complete"),ln("pending"),"function"==typeof Dt&&Dt(),Mt(),Wi()})}).catch(function(Ja){Mt(),Zi(Ja)})})}function Bt(qe){var Dt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;jl(qe).then(function(wt){wt&&e1([wt],Dt)})}var Tt=function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=wt.transform,ln=void 0===Ft?Pa:Ft,An=wt.symbol,On=void 0!==An&&An,ai=wt.mask,Mt=void 0===ai?null:ai,zi=wt.maskId,Wi=void 0===zi?null:zi,Zi=wt.classes,Ja=void 0===Zi?[]:Zi,Fa=wt.attributes,Ts=void 0===Fa?{}:Fa,_r=wt.styles,vr=void 0===_r?{}:_r;if(Dt){var yr=Dt.prefix,Bs=Dt.iconName,rl=Dt.icon;return Wo($({type:"icon"},Dt),function(){return Os("beforeDOMElementCreation",{iconDefinition:Dt,params:wt}),Be({icons:{main:sn(rl),mask:Mt?sn(Mt.icon):{found:!1,width:null,height:null,icon:{}}},prefix:yr,iconName:Bs,transform:$($({},Pa),ln),symbol:On,maskId:Wi,extra:{attributes:Ts,styles:vr,classes:Ja}})})}},on={mixout:function(){return{icon:(qe=Tt,function(Dt){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Ft=(Dt||{}).icon?Dt:el(Dt||{}),ln=wt.mask;return ln&&(ln=(ln||{}).icon?ln:el(ln||{})),qe(Ft,$($({},wt),{},{mask:ln}))})};var qe},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Tr,wt.nodeCallback=Bt,wt}}},provides:function(Dt){Dt.i2svg=function(wt){var Ft=wt.node,An=wt.callback;return Tr(void 0===Ft?Y:Ft,void 0===An?function(){}:An)},Dt.generateSvgReplacementMutation=function(wt,Ft){var ln=Ft.iconName,An=Ft.prefix,On=Ft.transform,ai=Ft.symbol,Mt=Ft.mask,zi=Ft.maskId,Wi=Ft.extra;return new Promise(function(Zi,Ja){Promise.all([ji(ln,An),Mt.iconName?ji(Mt.iconName,Mt.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Fa){var Ts=_e(Fa,2);Zi([wt,Be({icons:{main:Ts[0],mask:Ts[1]},prefix:An,iconName:ln,transform:On,symbol:ai,maskId:zi,extra:Wi,watchable:!0})])}).catch(Ja)})},Dt.generateAbstractIcon=function(wt){var zi,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.transform,Mt=Rs(wt.styles);return Mt.length>0&&(ln.style=Mt),Nr(On)&&(zi=so("generateAbstractTransformGrouping",{main:An,transform:On,containerWidth:An.width,iconWidth:An.width})),Ft.push(zi||An.icon),{children:Ft,attributes:ln}}}},Hn={mixout:function(){return{layer:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.classes,An=void 0===ln?[]:ln;return Wo({type:"layer"},function(){Os("beforeDOMElementCreation",{assembler:wt,params:Ft});var On=[];return wt(function(ai){Array.isArray(ai)?ai.map(function(Mt){On=On.concat(Mt.abstract)}):On=On.concat(ai.abstract)}),[{tag:"span",attributes:{class:["".concat(Hi.cssPrefix,"-layers")].concat(ye(An)).join(" ")},children:On}]})}}}},ni={mixout:function(){return{counter:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.title,An=void 0===ln?null:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"counter",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),function bt(qe){var Dt=qe.content,wt=qe.extra,Ft=$($({},wt.attributes),{},{class:wt.classes.join(" ")}),ln=Rs(wt.styles);ln.length>0&&(Ft.style=ln);var An=[];return An.push({tag:"span",attributes:Ft,children:[Dt]}),An}({content:wt.toString(),title:An,extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-counter")].concat(ye(ai))}})})}}}},Mi={mixout:function(){return{text:function(wt){var Ft=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ln=Ft.transform,An=void 0===ln?Pa:ln,On=Ft.classes,ai=void 0===On?[]:On,Mt=Ft.attributes,zi=void 0===Mt?{}:Mt,Wi=Ft.styles,Zi=void 0===Wi?{}:Wi;return Wo({type:"text",content:wt},function(){return Os("beforeDOMElementCreation",{content:wt,params:Ft}),Ke({content:wt,transform:$($({},Pa),An),extra:{attributes:zi,styles:Zi,classes:["".concat(Hi.cssPrefix,"-layers-text")].concat(ye(ai))}})})}}},provides:function(Dt){Dt.generateLayersText=function(wt,Ft){var ln=Ft.transform,An=Ft.extra,On=null,ai=null;if(he){var Mt=parseInt(getComputedStyle(wt).fontSize,10),zi=wt.getBoundingClientRect();On=zi.width/Mt,ai=zi.height/Mt}return Promise.resolve([wt,Ke({content:wt.innerHTML,width:On,height:ai,transform:ln,extra:An,watchable:!0})])}}},ki=new RegExp('"',"ug"),$i=[1105920,1112319],ra=$($($($({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ba=Object.keys(ra).reduce(function(qe,Dt){return qe[Dt.toLowerCase()]=ra[Dt],qe},{}),oa=Object.keys(ba).reduce(function(qe,Dt){var wt=ba[Dt];return qe[Dt]=wt[900]||ye(Object.entries(wt))[0][1],qe},{});function Ns(qe,Dt){var wt="".concat("data-fa-pseudo-element-pending").concat(Dt.replace(":","-"));return new Promise(function(Ft,ln){if(null!==qe.getAttribute(wt))return Ft();var On=Aa(qe.children).filter(function(sl){return sl.getAttribute(Va)===Dt})[0],ai=x.getComputedStyle(qe,Dt),Mt=ai.getPropertyValue("font-family"),zi=Mt.match(Js),Wi=ai.getPropertyValue("font-weight"),Zi=ai.getPropertyValue("content");if(On&&!zi)return qe.removeChild(On),Ft();if(zi&&"none"!==Zi&&""!==Zi){var Ja=ai.getPropertyValue("content"),Fa=function bi(qe,Dt){var wt=qe.replace(/^['"]|['"]$/g,"").toLowerCase(),Ft=parseInt(Dt),ln=isNaN(Ft)?"normal":Ft;return(ba[wt]||{})[ln]||oa[wt]}(Mt,Wi),Ts=function mr(qe){return Ea(ye(qe.replace(ki,""))[0]||"")}(Ja),_r=zi[0].startsWith("FontAwesome"),vr=function Lr(qe){var Dt=qe.getPropertyValue("font-feature-settings").includes("ss01"),Ft=qe.getPropertyValue("content").replace(ki,""),ln=Ft.codePointAt(0);return ln>=$i[0]&&ln<=$i[1]||2===Ft.length&&Ft[0]===Ft[1]||Dt}(ai),yr=ws(Fa,Ts),Bs=yr;if(_r){var rl=function zl(qe){var Dt=ns[qe],wt=ws("fas",qe);return Dt||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(Ts);rl.iconName&&rl.prefix&&(yr=rl.iconName,Fa=rl.prefix)}if(!yr||vr||On&&On.getAttribute(ir)===Fa&&On.getAttribute(Ga)===Bs)Ft();else{qe.setAttribute(wt,Bs),On&&qe.removeChild(On);var Ys=function Al(){return{iconName:null,prefix:null,transform:Pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),rc=Ys.extra;rc.attributes[Va]=Dt,ji(yr,Fa).then(function(sl){var Sh=Be($($({},Ys),{},{icons:{main:sl,mask:{prefix:null,iconName:null,rest:[]}},prefix:Fa,iconName:Bs,extra:rc,watchable:!0})),xc=Y.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===Dt?qe.insertBefore(xc,qe.firstChild):qe.appendChild(xc),xc.outerHTML=Sh.map(function(t0){return _t(t0)}).join("\n"),qe.removeAttribute(wt),Ft()}).catch(ln)}}else Ft()})}function Fs(qe){return Promise.all([Ns(qe,"::before"),Ns(qe,"::after")])}function Xo(qe){return!(qe.parentNode===document.head||~us.indexOf(qe.tagName.toUpperCase())||qe.getAttribute(Va)||qe.parentNode&&"svg"===qe.parentNode.tagName)}var Ro=function(Dt){return!!Dt&&hs.some(function(wt){return Dt.includes(wt)})},Ll=function(Dt){if(!Dt)return[];var An,wt=new Set,Ft=Dt.split(/,(?![^()]*\))/).map(function(Mt){return Mt.trim()}),ln=F(Ft=Ft.flatMap(function(Mt){return Mt.includes("(")?Mt:Mt.split(",").map(function(zi){return zi.trim()})}));try{for(ln.s();!(An=ln.n()).done;){var On=An.value;if(Ro(On)){var ai=hs.reduce(function(Mt,zi){return Mt.replace(zi,"")},On);""!==ai&&"*"!==ai&&wt.add(ai)}}}catch(Mt){ln.e(Mt)}finally{ln.f()}return wt};function gl(qe){if(re){var wt;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])wt=qe;else if(Hi.searchPseudoElementsFullScan)wt=qe.querySelectorAll("*");else{var An,Ft=new Set,ln=F(document.styleSheets);try{for(ln.s();!(An=ln.n()).done;){var On=An.value;try{var Mt,ai=F(On.cssRules);try{for(ai.s();!(Mt=ai.n()).done;){var Ja,Zi=F(Ll(Mt.value.selectorText));try{for(Zi.s();!(Ja=Zi.n()).done;)Ft.add(Ja.value)}catch(_r){Zi.e(_r)}finally{Zi.f()}}}catch(_r){ai.e(_r)}finally{ai.f()}}catch(_r){Hi.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(On.href," (").concat(_r.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(_r){ln.e(_r)}finally{ln.f()}if(!Ft.size)return;var Ts=Array.from(Ft).join(", ");try{wt=qe.querySelectorAll(Ts)}catch{}}return new Promise(function(_r,vr){var yr=Aa(wt).filter(Xo).map(Fs),Bs=oo_begin("searchPseudoElements");kc(),Promise.all(yr).then(function(){Bs(),pl(),_r()}).catch(function(){Bs(),pl(),vr()})})}}var ec=!1,ed=function(Dt){return Dt.toLowerCase().split(" ").reduce(function(Ft,ln){var An=ln.toLowerCase().split("-"),On=An[0],ai=An.slice(1).join("-");if(On&&"h"===ai)return Ft.flipX=!0,Ft;if(On&&"v"===ai)return Ft.flipY=!0,Ft;if(ai=parseFloat(ai),isNaN(ai))return Ft;switch(On){case"grow":Ft.size=Ft.size+ai;break;case"shrink":Ft.size=Ft.size-ai;break;case"left":Ft.x=Ft.x-ai;break;case"right":Ft.x=Ft.x+ai;break;case"up":Ft.y=Ft.y-ai;break;case"down":Ft.y=Ft.y+ai;break;case"rotate":Ft.rotate=Ft.rotate+ai}return Ft},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},_c={x:0,y:0,width:"100%",height:"100%"};function td(qe){return qe.attributes&&(qe.attributes.fill||!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(qe.attributes.fill="black"),qe}!function Xs(qe,Dt){var wt=Dt.mixoutsTo;ao=qe,$r={},Object.keys(Ss).forEach(function(Ft){-1===mi.indexOf(Ft)&&delete Ss[Ft]}),ao.forEach(function(Ft){var ln=Ft.mixout?Ft.mixout():{};if(Object.keys(ln).forEach(function(On){"function"==typeof ln[On]&&(wt[On]=ln[On]),"object"===Ee(ln[On])&&Object.keys(ln[On]).forEach(function(ai){wt[On]||(wt[On]={}),wt[On][ai]=ln[On][ai]})}),Ft.hooks){var An=Ft.hooks();Object.keys(An).forEach(function(On){$r[On]||($r[On]=[]),$r[On].push(An[On])})}Ft.provides&&Ft.provides(Ss)})}([Rt,on,Hn,ni,Mi,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=gl,wt}}},provides:function(Dt){Dt.pseudoElements2svg=function(wt){var Ft=wt.node;Hi.searchPseudoElements&&gl(void 0===Ft?Y:Ft)}}},{mixout:function(){return{dom:{unwatch:function(){kc(),ec=!0}}}},hooks:function(){return{bootstrap:function(){Lo(ro("mutationObserverCallbacks",{}))},noAuto:function(){!function Dl(){il&&il.disconnect()}()},watch:function(wt){var Ft=wt.observeMutationsRoot;ec?pl():Lo(ro("mutationObserverCallbacks",{observeMutationsRoot:Ft}))}}}},{mixout:function(){return{parse:{transform:function(wt){return ed(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-transform");return ln&&(wt.transform=ed(ln)),wt}}},provides:function(Dt){Dt.generateAbstractTransformGrouping=function(wt){var Ft=wt.main,ln=wt.transform,On=wt.iconWidth,ai={transform:"translate(".concat(wt.containerWidth/2," 256)")},Mt="translate(".concat(32*ln.x,", ").concat(32*ln.y,") "),zi="scale(".concat(ln.size/16*(ln.flipX?-1:1),", ").concat(ln.size/16*(ln.flipY?-1:1),") "),Wi="rotate(".concat(ln.rotate," 0 0)"),Fa={outer:ai,inner:{transform:"".concat(Mt," ").concat(zi," ").concat(Wi)},path:{transform:"translate(".concat(On/2*-1," -256)")}};return{tag:"g",attributes:$({},Fa.outer),children:[{tag:"g",attributes:$({},Fa.inner),children:[{tag:Ft.icon.tag,children:Ft.icon.children,attributes:$($({},Ft.icon.attributes),Fa.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-mask"),An=ln?jo(ln.split(" ").map(function(On){return On.trim()})):{prefix:null,iconName:null,rest:[]};return An.prefix||(An.prefix=za()),wt.mask=An,wt.maskId=Ft.getAttribute("data-fa-mask-id"),wt}}},provides:function(Dt){Dt.generateAbstractMask=function(wt){var qe,Ft=wt.children,ln=wt.attributes,An=wt.main,On=wt.mask,ai=wt.maskId,Wi=An.icon,Ja=On.icon,Fa=function Ws(qe){var Dt=qe.transform,Ft=qe.iconWidth,ln={transform:"translate(".concat(qe.containerWidth/2," 256)")},An="translate(".concat(32*Dt.x,", ").concat(32*Dt.y,") "),On="scale(".concat(Dt.size/16*(Dt.flipX?-1:1),", ").concat(Dt.size/16*(Dt.flipY?-1:1),") "),ai="rotate(".concat(Dt.rotate," 0 0)");return{outer:ln,inner:{transform:"".concat(An," ").concat(On," ").concat(ai)},path:{transform:"translate(".concat(Ft/2*-1," -256)")}}}({transform:wt.transform,containerWidth:On.width,iconWidth:An.width}),Ts={tag:"rect",attributes:$($({},_c),{},{fill:"white"})},_r=Wi.children?{children:Wi.children.map(td)}:{},vr={tag:"g",attributes:$({},Fa.inner),children:[td($({tag:Wi.tag,attributes:$($({},Wi.attributes),Fa.path)},_r))]},yr={tag:"g",attributes:$({},Fa.outer),children:[vr]},Bs="mask-".concat(ai||Yr()),rl="clip-".concat(ai||Yr()),Ys={tag:"mask",attributes:$($({},_c),{},{id:Bs,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Ts,yr]},rc={tag:"defs",children:[{tag:"clipPath",attributes:{id:rl},children:(qe=Ja,"g"===qe.tag?qe.children:[qe])},Ys]};return Ft.push(rc,{tag:"rect",attributes:$({fill:"currentColor","clip-path":"url(#".concat(rl,")"),mask:"url(#".concat(Bs,")")},_c)}),{children:Ft,attributes:ln}}}},{provides:function(Dt){var wt=!1;x.matchMedia&&(wt=x.matchMedia("(prefers-reduced-motion: reduce)").matches),Dt.missingIconAbstract=function(){var Ft=[],ln={fill:"currentColor"},An={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};Ft.push({tag:"path",attributes:$($({},ln),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var On=$($({},An),{},{attributeName:"opacity"}),ai={tag:"circle",attributes:$($({},ln),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||ai.children.push({tag:"animate",attributes:$($({},An),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:$($({},On),{},{values:"1;0;1;1;0;1;"})}),Ft.push(ai),Ft.push({tag:"path",attributes:$($({},ln),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:wt?[]:[{tag:"animate",attributes:$($({},On),{},{values:"1;0;0;0;0;1;"})}]}),wt||Ft.push({tag:"path",attributes:$($({},ln),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:$($({},On),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:Ft}}}},{hooks:function(){return{parseNodeAttributes:function(wt,Ft){var ln=Ft.getAttribute("data-fa-symbol");return wt.symbol=null!==ln&&(""===ln||ln),wt}}}}],{mixoutsTo:is});var Ra=is.config,De=is.dom,at=is.parse,gi=is.icon;const Eh=["*"];let nd=(()=>{class qe{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(wt){Ra.autoAddCss=wt,this._autoAddCss=wt}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})(),vc=(()=>{class qe{definitions={};addIcons(...wt){for(const Ft of wt){Ft.prefix in this.definitions||(this.definitions[Ft.prefix]={}),this.definitions[Ft.prefix][Ft.iconName]=Ft;for(const ln of Ft.icon[2])"string"==typeof ln&&(this.definitions[Ft.prefix][ln]=Ft)}}addIconPacks(...wt){for(const Ft of wt){const ln=Object.keys(Ft).map(An=>Ft[An]);this.addIcons(...ln)}}getIconDefinition(wt,Ft){return wt in this.definitions&&Ft in this.definitions[wt]?this.definitions[wt][Ft]:null}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275prov=i.jDH({token:qe,factory:qe.\u0275fac,providedIn:"root"})}return qe})();const Ko=qe=>null!=qe&&(90===qe||180===qe||270===qe||"90"===qe||"180"===qe||"270"===qe),J1=qe=>{const Dt=Ko(qe.rotate),wt={[`fa-${qe.animation}`]:null!=qe.animation&&!qe.animation.startsWith("spin"),"fa-spin":"spin"===qe.animation||"spin-reverse"===qe.animation,"fa-spin-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-spin-reverse":"spin-reverse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-pulse":"spin-pulse"===qe.animation||"spin-pulse-reverse"===qe.animation,"fa-fw":qe.fixedWidth,"fa-border":qe.border,"fa-inverse":qe.inverse,"fa-layers-counter":qe.counter,"fa-flip-horizontal":"horizontal"===qe.flip||"both"===qe.flip,"fa-flip-vertical":"vertical"===qe.flip||"both"===qe.flip,[`fa-${qe.size}`]:null!==qe.size,[`fa-rotate-${qe.rotate}`]:Dt,"fa-rotate-by":null!=qe.rotate&&!Dt,[`fa-pull-${qe.pull}`]:null!==qe.pull,[`fa-stack-${qe.stackItemSize}`]:null!=qe.stackItemSize};return Object.keys(wt).map(Ft=>wt[Ft]?Ft:null).filter(Ft=>null!=Ft)},Br=new WeakSet,uo="fa-auto-css";let Il=(()=>{class qe{stackItemSize=(0,p.hFB)("1x");size=(0,p.hFB)();_effect=(0,D.QZ)(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275dir=g.FsC({type:qe,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return qe})(),yd=(()=>{class qe{size=(0,p.hFB)();classes=(0,D.EW)(()=>{const wt=this.size();return{...wt?{[`fa-${wt}`]:!0}:{},"fa-stack":!0}});static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&g.HbH(ln.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Eh,decls:1,vars:0,template:function(Ft,ln){1&Ft&&(g.NAR(),g.SdG(0))},encapsulation:2,changeDetection:0})}return qe})(),t1=(()=>{class qe{icon=(0,p.geq)();title=(0,p.geq)();animation=(0,p.geq)();mask=(0,p.geq)();flip=(0,p.geq)();size=(0,p.geq)();pull=(0,p.geq)();border=(0,p.geq)();inverse=(0,p.geq)();symbol=(0,p.geq)();rotate=(0,p.geq)();fixedWidth=(0,p.geq)();transform=(0,p.geq)();a11yRole=(0,p.geq)();renderedIconHTML=(0,D.EW)(()=>{const wt=this.icon()??this.config.fallbackIcon;if(!wt)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})(),"";const Ft=this.findIconDefinition(wt);if(!Ft)return"";const ln=this.buildParams();!function bc(qe,Dt){if(!Dt.autoAddCss||Br.has(qe))return;if(null!=qe.getElementById(uo))return Dt.autoAddCss=!1,void Br.add(qe);const wt=qe.createElement("style");wt.setAttribute("type","text/css"),wt.setAttribute("id",uo),wt.innerHTML=De.css();const Ft=qe.head.childNodes;let ln=null;for(let An=Ft.length-1;An>-1;An--){const On=Ft[An],ai=On.nodeName.toUpperCase();["STYLE","LINK"].indexOf(ai)>-1&&(ln=On)}qe.head.insertBefore(wt,ln),Dt.autoAddCss=!1,Br.add(qe)}(this.document,this.config);const An=gi(Ft,ln);return this.sanitizer.bypassSecurityTrustHtml(An.html.join("\n"))});document=(0,i.WQX)(i.qQL);sanitizer=(0,i.WQX)(o.up);config=(0,i.WQX)(nd);iconLibrary=(0,i.WQX)(vc);stackItem=(0,i.WQX)(Il,{optional:!0});stack=(0,i.WQX)(yd,{optional:!0});constructor(){null!=this.stack&&null==this.stackItem&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(wt){const Ft=((qe,Dt)=>(qe=>void 0!==qe.prefix&&void 0!==qe.iconName)(qe)?qe:Array.isArray(qe)&&2===qe.length?{prefix:qe[0],iconName:qe[1]}:{prefix:Dt,iconName:qe})(wt,this.config.defaultPrefix);return"icon"in Ft?Ft:this.iconLibrary.getIconDefinition(Ft.prefix,Ft.iconName)??((qe=>{throw new Error(`Could not find icon with iconName=${qe.iconName} and prefix=${qe.prefix} in the icon library.`)})(Ft),null)}buildParams(){const wt=this.fixedWidth(),Ft={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:"boolean"==typeof wt?wt:this.config.fixedWidth,stackItemSize:null!=this.stackItem?this.stackItem.stackItemSize():void 0},ln=this.transform(),An="string"==typeof ln?at.transform(ln):ln,On=this.mask(),ai=null!=On?this.findIconDefinition(On):null,Mt={},zi=this.a11yRole();null!=zi&&(Mt.role=zi);const Wi={};return null!=Ft.rotate&&!Ko(Ft.rotate)&&(Wi["--fa-rotate-angle"]=`${Ft.rotate}`),{title:this.title(),transform:An,classes:J1(Ft),mask:ai??void 0,symbol:this.symbol(),attributes:Mt,styles:Wi}}static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275cmp=g.VBU({type:qe,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(Ft,ln){2&Ft&&(g.Avn("innerHTML",ln.renderedIconHTML(),g.npT),g.BMQ("title",ln.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(Ft,ln){},encapsulation:2,changeDetection:0})}return qe})(),A2=(()=>{class qe{static \u0275fac=function(Ft){return new(Ft||qe)};static \u0275mod=g.$C({type:qe});static \u0275inj=i.G2t({})}return qe})()},45383(ke,q,l){"use strict";l.d(q,{$$g:()=>qa,$Fj:()=>E4,$sC:()=>Xb,BA1:()=>zn,C8j:()=>n1,CQO:()=>a2,Ccf:()=>gr,D6w:()=>t8,DW4:()=>Mh,EvL:()=>x,FYJ:()=>We,GR4:()=>ae,GRI:()=>A8,HEq:()=>Pi,If6:()=>en,Int:()=>m6,JKM:()=>od,Kcb:()=>Rp,M29:()=>ub,McB:()=>Nb,Mf0:()=>mc,MjD:()=>vn,Oh6:()=>cx,QLR:()=>Rm,TBz:()=>jb,Tq9:()=>sr,Vpi:()=>F,VwO:()=>w8,W1p:()=>ym,WKo:()=>es,WxX:()=>Yl,Xbc:()=>Vn,_eQ:()=>wo,_qq:()=>E8,aAJ:()=>yo,aFw:()=>P6,cbP:()=>gd,dB:()=>o2,e4L:()=>E6,eGi:()=>Uf,f6_:()=>R4,gdJ:()=>d1,hb3:()=>dc,iW_:()=>xx,iy8:()=>Zo,jPR:()=>oy,jTw:()=>$0,k02:()=>ht,k6j:()=>dg,knH:()=>cf,ld_:()=>Su,njF:()=>qb,nsx:()=>Ub,o97:()=>Oi,pCJ:()=>It,pS3:()=>Te,peG:()=>Np,qFF:()=>Ku,qIE:()=>wx,s5m:()=>U0,vfE:()=>a7,xiI:()=>Vp,ymQ:()=>J,zPk:()=>cd,zjW:()=>S0,zm_:()=>gy,zpE:()=>F_});var F={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M136 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 56 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-114.9 0c-24.9 0-45.1 20.2-45.1 45.1 0 22.5 16.5 41.5 38.7 44.7l91.6 13.1c53.8 7.7 93.7 53.7 93.7 108 0 60.3-48.9 109.1-109.1 109.1l-10.9 0 0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40-72 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l130.9 0c24.9 0 45.1-20.2 45.1-45.1 0-22.5-16.5-41.5-38.7-44.7l-91.6-13.1C55.9 273.5 16 227.4 16 173.1 16 112.9 64.9 64 125.1 64l10.9 0 0-40z"]},x={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M64 160c0-53 43-96 96-96s96 43 96 96c0 42.7-27.9 78.9-66.5 91.4-28.4 9.2-61.5 35.3-61.5 76.6l0 24c0 17.7 14.3 32 32 32s32-14.3 32-32l0-24c0-1.7 .6-4.1 3.5-7.3 3-3.3 7.9-6.5 13.7-8.4 64.3-20.7 110.8-81 110.8-152.3 0-88.4-71.6-160-160-160S0 71.6 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm96 352c22.1 0 40-17.9 40-40s-17.9-40-40-40-40 17.9-40 40 17.9 40 40 40z"]},ae={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L398.4 96c-5.2 25.8-22.9 47.1-46.4 57.3l0 294.7 160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-384 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0 0-294.7c-23.5-10.3-41.2-31.6-46.4-57.3L128 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l128 0c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zm55.6 288L584.4 320 512 195.8 439.6 320zM512 416c-62.9 0-115.2-34-126-78.9-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9zM126.8 195.8L54.4 320 199.3 320 126.8 195.8zM.9 337.1c-2.6-11 1-22.3 6.7-32.1l95.2-163.2c5-8.6 14.2-13.8 24.1-13.8s19.1 5.3 24.1 13.8l95.2 163.2c5.7 9.8 9.3 21.1 6.7 32.1-10.8 44.8-63.1 78.9-126 78.9S11.7 382 .9 337.1z"]},We={prefix:"fas",iconName:"indian-rupee-sign",icon:[320,512,["indian-rupee","inr"],"e1bc","M0 64C0 46.3 14.3 32 32 32l264 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-76.7 0c17.7 19.8 30.1 44.6 34.7 72l42 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-42 0c-10.4 62.2-60.8 110.9-123.8 118.9L274.6 422c14.4 10.3 17.7 30.3 7.4 44.6s-30.3 17.7-44.6 7.4L13.4 314C2.1 306-2.7 291.5 1.5 278.2S18.1 256 32 256l80 0c35.8 0 66.1-23.5 76.3-56L24 200c-13.3 0-24-10.7-24-24s10.7-24 24-24l164.3 0c-10.2-32.5-40.5-56-76.3-56L32 96C14.3 96 0 81.7 0 64z"]},It={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M286 304c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7L78 512c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3l59.4 0zM585.7 105.9c7.8-10.7 22.8-13.1 33.5-5.3s13.1 22.8 5.3 33.5L522.1 274.9c-4.2 5.7-10.7 9.4-17.7 9.8s-14-2.2-18.9-7.3l-46.4-48c-9.2-9.5-9-24.7 .6-33.9 9.5-9.2 24.7-8.9 33.9 .6l26.5 27.4 85.6-117.7zM256.3 248a120 120 0 1 1 0-240 120 120 0 1 1 0 240z"]},en={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[448,512,[],"e4c1","M265.4-6.6c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L285.3 64 352 64c53 0 96 43 96 96l0 32c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-32c0-17.7-14.3-32-32-32l-66.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm-82.7 272l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L162.7 400 96 400c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 481.7 0 464l0-32c0-53 43-96 96-96l66.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM320 368a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM64 160a64 64 0 1 1 0-128 64 64 0 1 1 0 128z"]},zn={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64L72 128c-13.3 0-24-10.7-24-24S58.7 80 72 80l384 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L64 32zM416 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ht={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},Oi={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},es={prefix:"fas",iconName:"percent",icon:[448,512,[62101,62785,"percentage"],"25","M192 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM448 384a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM438.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-384 384c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l384-384z"]},vn={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Vn={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 70.7 176 0c26.5 0 48-21.5 48-48l0-22.7c-28.3-12.3-48-40.5-48-73.3 0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 22.7c0 61.9-50.1 112-112 112l-176 0 0 70.7c28.3 12.3 48 40.5 48 73.3 0 44.2-35.8 80-80 80S0 476.2 0 432c0-32.8 19.7-61 48-73.3l0-205.3C19.7 141 0 112.8 0 80 0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},wo={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M480.5 10.3L259.1 158c-29.1 19.4-47.6 50.9-50.6 85.3 62.3 12.8 111.4 61.9 124.3 124.3 34.5-3 65.9-21.5 85.3-50.6L565.7 95.5c6.7-10.1 10.3-21.9 10.3-34.1 0-33.9-27.5-61.4-61.4-61.4-12.1 0-24 3.6-34.1 10.3zM288 400c0-61.9-50.1-112-112-112S64 338.1 64 400c0 3.9 .2 7.8 .6 11.6 1.8 17.5-10.2 36.4-27.8 36.4L32 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112z"]},Te={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},mc={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6S384 14.6 384 24l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6l-40.4-34.6-40.4 34.6c-9 7.7-22.2 7.7-31.2 0l-40.4-34.6-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM104 136c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0zM80 352c0 13.3 10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0c-13.3 0-24 10.7-24 24zm24-120c-13.3 0-24 10.7-24 24s10.7 24 24 24l176 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-176 0z"]},Pi={prefix:"fas",iconName:"unlock-keyhole",icon:[384,512,["unlock-alt"],"f13e","M192 32c-35.3 0-64 28.7-64 64l0 64 192 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l0-64c0-70.7 57.3-128 128-128 63.5 0 116.1 46.1 126.2 106.7 2.9 17.4-8.8 33.9-26.3 36.9s-33.9-8.8-36.9-26.3C250 55.1 223.7 32 192 32zm40 328c13.3 0 24-10.7 24-24s-10.7-24-24-24l-80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l80 0z"]},n1={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 256c0-88.4 71.6-160 160-160 50.4 0 97.8 23.7 128 64l32 42.7 32-42.7c30.2-40.3 77.6-64 128-64 88.4 0 160 71.6 160 160S568.4 416 480 416c-50.4 0-97.8-23.7-128-64l-32-42.7-32 42.7c-30.2 40.3-77.6 64-128 64-88.4 0-160-71.6-160-160zm280 0l-43.2-57.6c-18.1-24.2-46.6-38.4-76.8-38.4-53 0-96 43-96 96s43 96 96 96c30.2 0 58.7-14.2 76.8-38.4L280 256zm80 0l43.2 57.6c18.1 24.2 46.6 38.4 76.8 38.4 53 0 96-43 96-96s-43-96-96-96c-30.2 0-58.7 14.2-76.8 38.4L360 256z"]},d1={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M320 16a104 104 0 1 1 0 208 104 104 0 1 1 0-208zM96 88a72 72 0 1 1 0 144 72 72 0 1 1 0-144zM0 416c0-70.7 57.3-128 128-128 12.8 0 25.2 1.9 36.9 5.4-32.9 36.8-52.9 85.4-52.9 138.6l0 16c0 11.4 2.4 22.2 6.7 32L32 480c-17.7 0-32-14.3-32-32l0-32zm521.3 64c4.3-9.8 6.7-20.6 6.7-32l0-16c0-53.2-20-101.8-52.9-138.6 11.7-3.5 24.1-5.4 36.9-5.4 70.7 0 128 57.3 128 128l0 32c0 17.7-14.3 32-32 32l-86.7 0zM472 160a72 72 0 1 1 144 0 72 72 0 1 1 -144 0zM160 432c0-88.4 71.6-160 160-160s160 71.6 160 160l0 16c0 17.7-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32l0-16z"]},qa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M404 0c19.2 0 37.6 7.6 51.1 21.2l35.7 35.7C504.4 70.4 512 88.8 512 108s-7.6 37.6-21.2 51.1L445.9 204 308 66.1 352.9 21.2C366.4 7.6 384.8 0 404 0zM58.9 315.1L274.1 100 412 237.9 196.9 453.1c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 511.1c-8.3 2.3-17.3 0-23.4-6.2s-8.5-15.1-6.2-23.4L36.4 353.8c4.1-14.6 11.8-27.9 22.6-38.7zM225.4 80.8L80.8 225.4 11.7 156.3c-15.6-15.6-15.6-40.9 0-56.6l88-88c15.6-15.6 40.9-15.6 56.6 0l5.9 5.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 34.9 34.9zM431.2 286.6l34.9 34.9-56.3 56.3c-7.8 7.8-7.8 20.5 0 28.3s20.5 7.8 28.3 0l56.3-56.3 5.9 5.9c15.6 15.6 15.6 40.9 0 56.6l-88 88c-15.6 15.6-40.9 15.6-56.6 0l-69.1-69.1 144.6-144.6z"]},od={prefix:"fas",iconName:"won-sign",icon:[512,512,[8361,"krw","won"],"f159","M62.4 53.9C56.8 37.1 38.7 28.1 21.9 33.6S-3.9 57.4 1.7 74.1L56.9 240 32 240c-13.3 0-24 10.7-24 24s10.7 24 24 24l40.9 0 56.7 170.1c4.5 13.5 17.4 22.4 31.6 21.9s26.4-10.4 29.8-24.2L233 288 279 288 321 455.8c3.4 13.8 15.6 23.7 29.8 24.2s27.1-8.4 31.6-21.9L439.1 288 480 288c13.3 0 24-10.7 24-24s-10.7-24-24-24l-24.9 0 55.3-165.9c5.6-16.8-3.5-34.9-20.2-40.5s-34.9 3.5-40.5 20.2l-62 186.1-54.6 0-45.9-183.8C283.5 42 270.7 32 256 32s-27.5 10-31 24.2L179 240 124.4 240 62.4 53.9zm78 234.1l26.6 0-11.4 45.6-15.2-45.6zM245 240l11-44.1 11 44.1-22 0zm100 48l26.6 0-15.2 45.6-11.4-45.6z"]},S0={prefix:"fas",iconName:"franc-sign",icon:[320,512,[],"e18f","M80 32C62.3 32 48 46.3 48 64l0 256-24 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l24 0 0 80c0 17.7 14.3 32 32 32s32-14.3 32-32l0-80 88 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-88 0 0-64 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-96 176 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},cf={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M256.4 0c-17.7 0-32 14.3-32 32l0 32-160 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l160 0 0 64-153.4 0c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7l153.4 0 0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96 160 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-160 0 0-64 153.4 0c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7l-153.4 0 0-32c0-17.7-14.3-32-32-32z"]},dc={prefix:"fas",iconName:"turkish-lira-sign",icon:[448,512,["try","turkish-lira"],"e2bb","M160 32c17.7 0 32 14.3 32 32l0 43.6 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 46.1 121.4-34.7c12.7-3.6 26 3.7 29.7 16.5s-3.7 26-16.5 29.7l-134.6 38.5 0 162.5 72 0c53 0 96-43 96-96 0-17.7 14.3-32 32-32s32 14.3 32 32c0 88.4-71.6 160-160 160l-104 0c-17.7 0-32-14.3-32-32l0-176.2-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-46.1-25.4 7.3c-12.7 3.6-26-3.7-29.7-16.5s3.7-26 16.5-29.7l38.6-11 0-61.9c0-17.7 14.3-32 32-32z"]},Su={prefix:"fas",iconName:"user-clock",icon:[576,512,[],"f4fd","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c3.9 0 7.9 .1 11.8 .4-16.2 28.2-25.5 60.8-25.5 95.6 0 41.8 13.4 80.5 36 112L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zM288 400a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-80c-8.8 0-16 7.2-16 16l0 64c0 8.8 7.2 16 16 16l48 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0 0-48c0-8.8-7.2-16-16-16z"]},U0={prefix:"fas",iconName:"euro-sign",icon:[448,512,[8364,"eur","euro"],"f153","M73.3 192C100.8 99.5 186.5 32 288 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-65.6 0-122 39.5-146.7 96L272 192c13.3 0 24 10.7 24 24s-10.7 24-24 24l-143.2 0c-.5 5.3-.8 10.6-.8 16s.3 10.7 .8 16L272 272c13.3 0 24 10.7 24 24s-10.7 24-24 24l-130.7 0c24.7 56.5 81.1 96 146.7 96l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-101.5 0-187.2-67.5-214.7-160L40 320c-13.3 0-24-10.7-24-24s10.7-24 24-24l24.6 0c-.7-10.5-.7-21.5 0-32L40 240c-13.3 0-24-10.7-24-24s10.7-24 24-24l33.3 0z"]},cd={prefix:"fas",iconName:"yen-sign",icon:[384,512,[165,"cny","jpy","rmb","yen"],"f157","M74.9 46.7c-9.6-14.9-29.4-19.2-44.2-9.6S11.5 66.4 21.1 81.3L143.7 272 88 272c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 32-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l72 0 0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0 0-32 72 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-55.7 0 122.6-190.7c9.6-14.9 5.3-34.7-9.6-44.2s-34.7-5.3-44.2 9.6L192 228.8 74.9 46.7z"]},Yl={prefix:"fas",iconName:"angles-down",icon:[384,512,["angle-double-down"],"f103","M214.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 402.7 329.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 210.7 329.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Uf={prefix:"fas",iconName:"network-wired",icon:[576,512,[],"f6ff","M248 88l80 0 0 48-80 0 0-48zm-8-56c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l16 0 0 32-224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 192 0 0 32-16 0c-26.5 0-48 21.5-48 48l0 64c0 26.5 21.5 48 48 48l96 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-16 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-224 0 0-32 16 0c26.5 0 48-21.5 48-48l0-64c0-26.5-21.5-48-48-48l-96 0zM448 376l8 0 0 48-80 0 0-48 72 0zm-256 0l8 0 0 48-80 0 0-48 72 0z"]},$0={prefix:"fas",iconName:"code",icon:[576,512,[],"f121","M360.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm64.6 136.1c-12.5 12.5-12.5 32.8 0 45.3l73.4 73.4-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0zm-274.7 0c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 150.6 182.6c12.5-12.5 12.5-32.8 0-45.3z"]},Ku={prefix:"fas",iconName:"diagram-project",icon:[512,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 16 128 0 0-16c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-16-128 0 0 16c0 7.3-1.7 14.3-4.6 20.5l68.6 91.5 80 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-7.3 1.7-14.3 4.6-20.5L128 224 48 224c-26.5 0-48-21.5-48-48L0 80z"]},J={prefix:"fas",iconName:"money-bill-wave",icon:[512,512,[],"f53a","M0 419.6L0 109.5c0-23.2 24.1-38.6 46.3-32 87.7 26.2 149.7 5.5 212.1-15.3 64.5-21.5 129.4-43.1 223.3-13.1 18.5 5.9 30.3 23.8 30.3 43.3l0 310.1c0 23.2-24.1 38.6-46.2 32-87.7-26.2-149.8-5.5-212.1 15.3-64.5 21.5-129.4 43.1-223.3 13.1-18.5-5.9-30.3-23.8-30.3-43.3zM336 256c0-53-35.8-96-80-96s-80 43-80 96 35.8 96 80 96 80-43 80-96zM120 413.6c4.4 0 7.9-3.8 7.2-8.1-4.6-27.8-27-49.5-55.2-53-4.4-.5-8 3.1-8 7.5l0 39.9c0 3.6 2.4 6.8 6 7.7 17.9 4.2 34.3 6.1 50 6.1zm318.5-51.1c5 .8 9.5-3 9.5-8l0-42.6c0-4.4-3.6-8.1-8-7.5-25.2 3.1-45.9 20.9-53.2 44.6-1.4 4.7 2.3 9.1 7.2 9.2 14.2 .4 29 1.7 44.4 4.3zM448 152l0-39.9c0-3.6-2.5-6.8-6-7.7-17.9-4.2-34.3-6.1-50-6.1-4.4 0-7.9 3.8-7.2 8.1 4.6 27.8 27 49.5 55.2 53 4.4 .5 8-3.1 8-7.5zM125.2 162.9c1.4-4.7-2.3-9.1-7.2-9.2-14.2-.4-29-1.7-44.4-4.3-5-.8-9.5 3-9.5 8L64 200c0 4.4 3.6 8.1 8 7.5 25.2-3.1 45.9-20.9 53.2-44.6z"]},sr={prefix:"fas",iconName:"brazilian-real-sign",icon:[512,512,[],"e46c","M400 16c17.7 0 32 14.3 32 32l0 16 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48.9 0c-26 0-47.1 21.1-47.1 47.1 0 22.5 15.9 41.8 37.9 46.2l32.8 6.6c51.9 10.4 89.3 56 89.3 109 0 50.6-33.8 93.3-80 106.7l0 20.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-16-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64.9 0c26 0 47.1-21.1 47.1-47.1 0-22.5-15.9-41.8-37.9-46.2l-32.8-6.6c-51.9-10.4-89.3-56-89.3-109 0-50.6 33.8-93.2 80-106.7L368 48c0-17.7 14.3-32 32-32zM0 64C0 46.3 14.3 32 32 32l80 0c79.5 0 144 64.5 144 144 0 54.3-30 101.5-74.4 126.1l41 136.7c5.1 16.9-4.5 34.8-21.5 39.8s-34.8-4.5-39.8-21.5L120.1 319.8c-2.7 .1-5.4 .2-8.1 .2l-48 0 0 128c0 17.7-14.3 32-32 32S0 465.7 0 448L0 64zM64 256l48 0c44.2 0 80-35.8 80-80s-35.8-80-80-80l-48 0 0 160z"]},a2={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},o2={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z"]},yo={prefix:"fas",iconName:"user-lock",icon:[576,512,[],"f502","M224 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM194.3 304l59.4 0c29.7 0 57.7 7.3 82.3 20.1l0 4.3c-19.6 17.6-32 43.1-32 71.5l0 96c0 5.5 .5 10.9 1.3 16.1L45.7 512C29.3 512 16 498.7 16 482.3 16 383.8 95.8 304 194.3 304zm301.7 .1c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 47.9 64 0 0-47.9zM352 400c0-20.9 13.4-38.7 32-45.3l0-50.6c0-44.2 35.8-80 80-80s80 35.8 80 80l0 50.6c18.6 6.6 32 24.4 32 45.3l0 96c0 26.5-21.5 48-48 48l-128 0c-26.5 0-48-21.5-48-48l0-96z"]},E4={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 64c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 80l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 112l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Rp={prefix:"fas",iconName:"baht-sign",icon:[320,512,[],"e0ac","M136 0c-13.3 0-24 10.7-24 24l0 40-74.4 0C16.8 64 0 80.8 0 101.6L0 406.3c0 23 18.7 41.7 41.7 41.7l70.3 0 0 40c0 13.3 10.7 24 24 24s24-10.7 24-24l0-40 48 0c61.9 0 112-50.1 112-112 0-40.1-21.1-75.3-52.7-95.1 13.1-18.3 20.7-40.7 20.7-64.9 0-61.9-50.1-112-112-112l-16 0 0-40c0-13.3-10.7-24-24-24zM112 128l0 96-48 0 0-96 48 0zm48 96l0-96 16 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-16 0zm-48 64l0 96-48 0 0-96 48 0zm48 96l0-96 48 0c26.5 0 48 21.5 48 48s-21.5 48-48 48l-48 0z"]},t8={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},Np={prefix:"fas",iconName:"arrows-turn-right",icon:[448,512,[],"e4c0","M313.4-6.6c12.5-12.5 32.8-12.5 45.3 0l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L338.7 128 128 128c-35.3 0-64 28.7-64 64l0 32c0 17.7-14.3 32-32 32S0 241.7 0 224l0-32C0 121.3 57.3 64 128 64l210.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 384 96 384c-17.7 0-32 14.3-32 32l0 32c0 17.7-14.3 32-32 32S0 465.7 0 448l0-32c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3z"]},Vp={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64 0-16.2-6-31.1-16-42.3l69.5-138.9c5.9-11.9 1.1-26.3-10.7-32.2s-26.3-1.1-32.2 10.7L261.1 288.2c-1.7-.1-3.4-.2-5.1-.2-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},E8={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M502.6 150.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 236.9 352 224l0-64-320 0c-17.7 0-32-14.3-32-32S14.3 96 32 96l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zm-397.3 352l-96-96c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 275.1 160 288l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9z"]},w8={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M96 112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 112 256 0 0-112c0-26.5 21.5-48 48-48s48 21.5 48 48l0 16 16 0c26.5 0 48 21.5 48 48l0 48c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 48c0 26.5-21.5 48-48 48l-16 0 0 16c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-112-256 0 0 112c0 26.5-21.5 48-48 48s-48-21.5-48-48l0-16-16 0c-26.5 0-48-21.5-48-48l0-48c-17.7 0-32-14.3-32-32s14.3-32 32-32l0-48c0-26.5 21.5-48 48-48l16 0 0-16z"]},A8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},R4={prefix:"fas",iconName:"ruble-sign",icon:[448,512,[8381,"rouble","rub","ruble"],"f158","M112 32C94.3 32 80 46.3 80 64l0 208-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 48-40 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l40 0 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32 152 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-152 0 0-48 112 0c79.5 0 144-64.5 144-144S335.5 32 256 32L112 32zM256 256l-112 0 0-160 112 0c44.2 0 80 35.8 80 80s-35.8 80-80 80z"]},m6={prefix:"fas",iconName:"clock-rotate-left",icon:[576,512,["history"],"f1da","M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z"]},ym={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},E6={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M461.2 18.9C472.7 24 480 35.4 480 48l0 416c0 12.6-7.3 24-18.8 29.1s-24.8 3.2-34.3-5.1l-46.6-40.7c-43.6-38.1-98.7-60.3-156.4-63l0 95.7c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-96C57.3 384 0 326.7 0 256S57.3 128 128 128l84.5 0c61.8-.2 121.4-22.7 167.9-63.3l46.6-40.7c9.4-8.3 22.9-10.2 34.3-5.1zM224 320l0 .2c70.3 2.7 137.8 28.5 192 73.4l0-275.3c-54.2 44.9-121.7 70.7-192 73.4L224 320z"]},F_={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Mh={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},P6={prefix:"fas",iconName:"window-restore",icon:[576,512,[],"f2d2","M512 96L160 96c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64l-48 0 0-64 48 0 0-192zM0 224c0-35.3 28.7-64 64-64l288 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 224zm64 40c0 13.3 10.7 24 24 24l240 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L88 240c-13.3 0-24 10.7-24 24z"]},gd={prefix:"fas",iconName:"download",icon:[448,512,[],"f019","M256 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 210.7-41.4-41.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 242.7 256 32zM64 320c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-46.9 0-56.6 56.6c-31.2 31.2-81.9 31.2-113.1 0L110.9 320 64 320zm304 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},Rm={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},oy={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-200.6c0-17.4-7.1-34.1-19.7-46.2L370.6 17.8C358.7 6.4 342.8 0 326.3 0L192 0zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-64 0 0 16-192 0 0-256 16 0 0-64-16 0z"]},gr={prefix:"fas",iconName:"money-bill-1",icon:[512,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm192 80a112 112 0 1 1 0 224 112 112 0 1 1 0-224zM64 184l0-48c0-4.4 3.6-8 8-8l48 0c4.4 0 8.1 3.6 7.5 8-3.6 29-26.6 51.9-55.5 55.5-4.4 .5-8-3.1-8-7.5zm0 144c0-4.4 3.6-8.1 8-7.5 29 3.6 51.9 26.6 55.5 55.5 .5 4.4-3.1 8-7.5 8l-48 0c-4.4 0-8-3.6-8-8l0-48zM440 191.5c-29-3.6-51.9-26.6-55.5-55.5-.5-4.4 3.1-8 7.5-8l48 0c4.4 0 8 3.6 8 8l0 48c0 4.4-3.6 8.1-8 7.5zM448 328l0 48c0 4.4-3.6 8-8 8l-48 0c-4.4 0-8.1-3.6-7.5-8 3.6-29 26.6-51.9 55.5-55.5 4.4-.5 8 3.1 8 7.5zM240 188c-11 0-20 9-20 20 0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l48 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0z"]},Zo=gr,dg={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},gy={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M338.8-9.9c11.9 8.6 16.3 24.2 10.9 37.8L271.3 224 416 224c13.5 0 25.5 8.4 30.1 21.1s.7 26.9-9.6 35.5l-288 240c-11.3 9.4-27.4 9.9-39.3 1.3s-16.3-24.2-10.9-37.8L176.7 288 32 288c-13.5 0-25.5-8.4-30.1-21.1s-.7-26.9 9.6-35.5l288-240c11.3-9.4 27.4-9.9 39.3-1.3z"]},ub={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7S-2.3 28 4.2 37.6l112 163.3-99.6 32.3C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4-52.9 100.6c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1l-52.9-100.6 103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8l-106.5-34.5 25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7-34.5-106.5C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6L200.9 116.2 37.6 4.2z"]},Nb={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M256.5 8a120 120 0 1 1 0 240 120 120 0 1 1 0-240zM226.7 304l59.4 0 1.5 0c-12.9 26.8-7.8 58.2 11.5 79.5-20.2 22.3-24.8 55.8-9.4 83.4l22.5 40.4c.9 1.6 1.9 3.2 2.9 4.7l-237 0c-16.4 0-29.7-13.3-29.7-29.7 0-98.5 79.8-178.3 178.3-178.3zm205.9-56.4c0-13.3 10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 6.1c0 18.9 24.1 32.8 40.5 23.4l5-2.9c11.6-6.7 26.5-2.6 33 9.1l22.4 40.2c6.2 11.2 2.6 25.2-8.2 32l-4.7 2.9c-16.2 10.1-16.2 39.9 0 50.1l4.6 2.9c10.8 6.8 14.5 20.8 8.3 32L607 483.8c-6.5 11.7-21.4 15.9-33 9.1l-4.9-2.9c-16.4-9.5-40.5 4.5-40.5 23.4l0 6.1c0 13.3-10.7 24-24 24l-48 0c-13.3 0-24-10.7-24-24l0-5.9c0-19-24.2-33-40.7-23.5l-4.8 2.8c-11.6 6.7-26.4 2.6-33-9.1l-22.6-40.4c-6.2-11.2-2.6-25.3 8.3-32.1l4.4-2.7c16.3-10.1 16.3-40.1 0-50.2l-4.5-2.8c-10.9-6.8-14.5-20.9-8.3-32.1l22.5-40.3c6.5-11.7 21.4-15.8 32.9-9.1l4.8 2.8c16.5 9.5 40.7-4.5 40.7-23.5l0-5.9zm99.9 136.2a52 52 0 1 0 -104 0 52 52 0 1 0 104 0z"]},Ub={prefix:"fas",iconName:"screwdriver-wrench",icon:[576,512,["tools"],"f7d9","M70.8-6.7c5.4-5.4 13.8-6.2 20.2-2L209.9 70.5c8.9 5.9 14.2 15.9 14.2 26.6l0 49.6 90.8 90.8c33.3-15 73.9-8.9 101.2 18.5L542.2 382.1c18.7 18.7 18.7 49.1 0 67.9l-60.1 60.1c-18.7 18.7-49.1 18.7-67.9 0L288.1 384c-27.4-27.4-33.5-67.9-18.5-101.2l-90.8-90.8-49.6 0c-10.7 0-20.7-5.3-26.6-14.2L23.4 58.9c-4.2-6.3-3.4-14.8 2-20.2L70.8-6.7zm145 303.5c-6.3 36.9 2.3 75.9 26.2 107.2l-94.9 95c-28.1 28.1-73.7 28.1-101.8 0s-28.1-73.7 0-101.8l135.4-135.5 35.2 35.1zM384.1 0c20.1 0 39.4 3.7 57.1 10.5 10 3.8 11.8 16.5 4.3 24.1L388.8 91.3c-3 3-4.7 7.1-4.7 11.3l0 41.4c0 8.8 7.2 16 16 16l41.4 0c4.2 0 8.3-1.7 11.3-4.7l56.7-56.7c7.6-7.5 20.3-5.7 24.1 4.3 6.8 17.7 10.5 37 10.5 57.1 0 43.2-17.2 82.3-45 111.1l-49.1-49.1c-33.1-33-78.5-45.7-121.1-38.4l-56.8-56.8 0-29.7-.2-5c-.8-12.4-4.4-24.3-10.5-34.9 29.4-35 73.4-57.2 122.7-57.3z"]},jb={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M512 96c0 50.2-59.1 125.1-84.6 155-3.8 4.4-9.4 6.1-14.5 5L320 256c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c53 0 96 43 96 96s-43 96-96 96l-276.4 0c8.7-9.9 19.3-22.6 30-36.8 6.3-8.4 12.8-17.6 19-27.2L416 448c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-53 0-96-43-96-96s43-96 96-96l39.8 0c-21-31.5-39.8-67.7-39.8-96 0-53 43-96 96-96s96 43 96 96zM117.1 489.1c-3.8 4.3-7.2 8.1-10.1 11.3l-1.8 2-.2-.2c-6 4.6-14.6 4-20-1.8-25.2-27.4-85-97.9-85-148.4 0-53 43-96 96-96s96 43 96 96c0 30-21.1 67-43.5 97.9-10.7 14.7-21.7 28-30.8 38.5l-.6 .7zM128 352a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM416 128a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Xb={prefix:"fas",iconName:"angles-up",icon:[384,512,["angle-double-up"],"f102","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 109.3 329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 329.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},qb={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320L48 320c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48l352 0c26.5 0 48 21.5 48 48s-21.5 48-48 48L48 480c-26.5 0-48-21.5-48-48z"]},cx={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M0 64C0 46.3 14.3 32 32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64zM32 176l448 0 0 240c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-240zm152 64c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]},a7={prefix:"fas",iconName:"sterling-sign",icon:[384,512,[163,"gbp","pound-sign"],"f154","M91.3 288l-34.8 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l21.4 0C37.3 147.3 105.1 42 207.6 42l8.2 0c33.6 0 66.2 11.3 92.5 32.2l16.1 12.7c13.9 11 16.2 31.1 5.2 45s-31.1 16.2-45 5.2l-16.1-12.7c-15-11.9-33.6-18.4-52.8-18.4l-8.2 0c-57.3 0-94.7 59.9-69.7 111.4 3.6 7.4 6.6 14.9 9.1 22.6l149.5 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-141.2 0c1 35.3-8.7 70.6-28.9 100.9l-18.1 27.1 212.2 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-272 0c-11.8 0-22.6-6.5-28.2-16.9s-5-23 1.6-32.9l51.2-76.8c13.1-19.6 19.2-42.6 18.2-65.4z"]},xx={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},wx={prefix:"fas",iconName:"layer-group",icon:[512,512,[],"f5fd","M232.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 149.8C5.4 145.8 0 137.3 0 128s5.4-17.9 13.9-21.8L232.5 5.2zM48.1 218.4l164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 277.8C5.4 273.8 0 265.3 0 256s5.4-17.9 13.9-21.8l34.1-15.8zM13.9 362.2l34.1-15.8 164.3 75.9c27.7 12.8 59.6 12.8 87.3 0l164.3-75.9 34.1 15.8c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L13.9 405.8C5.4 401.8 0 393.3 0 384s5.4-17.9 13.9-21.8z"]}},11747(ke,q,l){"use strict";l.d(q,{En:()=>Re,Vm:()=>Pe,EH:()=>C,gp:()=>Me});var i=l(57786),g=l(71985),p=l(21413),D=l(73557),o=l(983),e=l(7673),A=l(18810),h=l(98071);class w{constructor(Ne,ze,Je){this.kind=Ne,this.value=ze,this.error=Je,this.hasValue="N"===Ne}observe(Ne){return f(this,Ne)}do(Ne,ze,Je){const{kind:gt,value:zt,error:Ye}=this;return"N"===gt?Ne?.(zt):"E"===gt?ze?.(Ye):Je?.()}accept(Ne,ze,Je){var gt;return(0,h.T)(null===(gt=Ne)||void 0===gt?void 0:gt.next)?this.observe(Ne):this.do(Ne,ze,Je)}toObservable(){const{kind:Ne,value:ze,error:Je}=this,gt="N"===Ne?(0,e.of)(ze):"E"===Ne?(0,A.$)(()=>Je):"C"===Ne?o.w:0;if(!gt)throw new TypeError(`Unexpected notification kind ${Ne}`);return gt}static createNext(Ne){return new w("N",Ne)}static createError(Ne){return new w("E",void 0,Ne)}static createComplete(){return w.completeNotification}}function f(le,Ne){var ze,Je,gt;const{kind:zt,value:Ye,error:st}=le;if("string"!=typeof zt)throw new TypeError('Invalid notification, missing "kind"');"N"===zt?null===(ze=Ne.next)||void 0===ze||ze.call(Ne,Ye):"E"===zt?null===(Je=Ne.error)||void 0===Je||Je.call(Ne,st):null===(gt=Ne.complete)||void 0===gt||gt.call(Ne)}w.completeNotification=new w("C");var F=l(39974),M=l(54360),j=l(96354),Z=l(99437),ee=l(5964),V=l(58750);function Q(le,Ne,ze,Je){return(0,F.N)((gt,zt)=>{let Ye;Ne&&"function"!=typeof Ne?({duration:ze,element:Ye,connector:Je}=Ne):Ye=Ne;const st=new Map,it=St=>{st.forEach(St),St(zt)},He=St=>it(At=>At.error(St));let Wt=0,we=!1;const We=new M.H(zt,St=>{try{const At=le(St);let fn=st.get(At);if(!fn){st.set(At,fn=Je?Je():new p.B);const mt=function Lt(St,At){const fn=new g.c(mt=>{Wt++;const It=At.subscribe(mt);return()=>{It.unsubscribe(),0===--Wt&&we&&We.unsubscribe()}});return fn.key=St,fn}(At,fn);if(zt.next(mt),ze){const It=(0,M._)(fn,()=>{fn.complete(),It?.unsubscribe()},void 0,void 0,()=>st.delete(At));We.add((0,V.Tg)(ze(mt)).subscribe(It))}}fn.next(Ye?Ye(St):St)}catch(At){He(At)}},()=>it(St=>St.complete()),He,()=>st.clear(),()=>(we=!0,0===Wt));gt.subscribe(We)})}var $=l(31397);function ie(le,Ne){return Ne?ze=>ze.pipe(ie((Je,gt)=>(0,V.Tg)(le(Je,gt)).pipe((0,j.T)((zt,Ye)=>Ne(Je,zt,gt,Ye))))):(0,F.N)((ze,Je)=>{let gt=0,zt=null,Ye=!1;ze.subscribe((0,M._)(Je,st=>{zt||(zt=(0,M._)(Je,void 0,()=>{zt=null,Ye&&Je.complete()}),(0,V.Tg)(le(st,gt++)).subscribe(zt))},()=>{Ye=!0,!zt&&Je.complete()}))})}var ye=l(96697),se=l(2615),pe=l(73664),Ee=l(59640);const T={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},P="__@ngrx/effects_create__";function C(le,Ne={}){const ze=Ne.functional?le:le(),Je={...T,...Ne};return Object.defineProperty(ze,P,{value:Je}),ze}function R(le){return Object.getPrototypeOf(le)}function fe(le){return"function"==typeof le}function re(le){return le.filter(fe)}function Oe(le,Ne,ze){const Je=R(le),zt=Je&&"Object"!==Je.constructor.name?Je.constructor.name:null,Ye=function Y(le){return function a(le){return Object.getOwnPropertyNames(le).filter(Je=>!(!le[Je]||!le[Je].hasOwnProperty(P))&&le[Je][P].hasOwnProperty("dispatch")).map(Je=>({propertyName:Je,...le[Je][P]}))}(le)}(le).map(({propertyName:st,dispatch:it,useEffectsErrorHandler:He})=>{const Wt="function"==typeof le[st]?le[st]():le[st],we=He?ze(Wt,Ne):Wt;return!1===it?we.pipe((0,D.w)()):we.pipe(function K(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>{Ne.next(w.createNext(ze))},()=>{Ne.next(w.createComplete()),Ne.complete()},ze=>{Ne.next(w.createError(ze)),Ne.complete()}))})}()).pipe((0,j.T)(Lt=>({effect:le[st],notification:Lt,propertyName:st,sourceName:zt,sourceInstance:le})))});return(0,i.h)(...Ye)}function ce(le,Ne,ze=10){return le.pipe((0,Z.W)(Je=>(Ne&&Ne.handleError(Je),ze<=1?le:ce(le,Ne,ze-1))))}let Re=(()=>{var le;class Ne extends g.c{constructor(Je){super(),Je&&(this.source=Je)}lift(Je){const gt=new Ne;return gt.source=this,gt.operator=Je,gt}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Ee.sA))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function Me(...le){return(0,ee.p)(Ne=>le.some(ze=>"string"==typeof ze?ze===Ne.type:ze.type===Ne.type))}const ve=new se.nKC("@ngrx/effects Internal Root Guard"),oe=new se.nKC("@ngrx/effects User Provided Effects"),Se=new se.nKC("@ngrx/effects Internal Root Effects"),be=new se.nKC("@ngrx/effects Internal Root Effects Instances"),nt=new se.nKC("@ngrx/effects Internal Feature Effects"),$e=new se.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),dt=new se.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>ce}),yt="@ngrx/effects/init";function et(le){return tn(le,"ngrxOnInitEffects")}function tn(le,Ne){return le&&Ne in le&&"function"==typeof le[Ne]}(0,Ee.VP)(yt);let Vt=(()=>{var le;class Ne extends p.B{constructor(Je,gt){super(),this.errorHandler=Je,this.effectsErrorHandler=gt}addEffects(Je){this.next(Je)}toActions(){return this.pipe(Q(Je=>function U(le){return!!le.constructor&&"Object"!==le.constructor.name&&"Function"!==le.constructor.name}(Je)?R(Je):Je),(0,$.Z)(Je=>Je.pipe(Q(hn))),(0,$.Z)(Je=>{const gt=Je.pipe(ie(Ye=>function En(le,Ne){return ze=>{const Je=Oe(ze,le,Ne);return function me(le){return tn(le,"ngrxOnRunEffects")}(ze)?ze.ngrxOnRunEffects(Je):Je}}(this.errorHandler,this.effectsErrorHandler)(Ye)),(0,j.T)(Ye=>(function rt(le,Ne){if("N"===le.notification.kind){const ze=le.notification.value;!function Mn(le){return"function"!=typeof le&&le&&le.type&&"string"==typeof le.type}(ze)&&Ne.handleError(new Error(`Effect ${function qt({propertyName:le,sourceInstance:Ne,sourceName:ze}){const Je="function"==typeof Ne[le];return ze?`"${ze}.${String(le)}${Je?"()":""}"`:`"${String(le)}()"`}(le)} dispatched an invalid action: ${function S(le){try{return JSON.stringify(le)}catch{return le}}(ze)}`))}}(Ye,this.errorHandler),Ye.notification)),(0,ee.p)(Ye=>"N"===Ye.kind&&null!=Ye.value),function _e(){return(0,F.N)((le,Ne)=>{le.subscribe((0,M._)(Ne,ze=>f(ze,Ne)))})}()),zt=Je.pipe((0,ye.s)(1),(0,ee.p)(et),(0,j.T)(Ye=>Ye.ngrxOnInitEffects()));return(0,i.h)(gt,zt)}))}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(se.zcH),se.KVO(dt))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})();function hn(le){return function de(le){return tn(le,"ngrxOnIdentifyEffects")}(le)?le.ngrxOnIdentifyEffects():""}let _n=(()=>{var le;class Ne{get isStarted(){return!!this.effectsSubscription}constructor(Je,gt){this.effectSources=Je,this.store=gt,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(Ee.il))},this.\u0275prov=se.jDH({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}))}return le(),Ne})(),tt=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye,st,it,He){this.sources=Je,gt.start();for(const Wt of Ye)Je.addEffects(Wt);zt.dispatch({type:yt})}addEffects(Je){this.sources.addEffects(Je)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(Vt),se.KVO(_n),se.KVO(Ee.il),se.KVO(be),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8),se.KVO(ve,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Fe=(()=>{var le;class Ne{constructor(Je,gt,zt,Ye){const st=gt.flat();for(const it of st)Je.addEffects(it)}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)(se.KVO(tt),se.KVO($e),se.KVO(Ee.wc,8),se.KVO(Ee.ae,8))},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})(),Pe=(()=>{var le;class Ne{static forFeature(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:Fe,providers:[zt,{provide:nt,multi:!0,useValue:gt},{provide:oe,multi:!0,useValue:[]},{provide:$e,multi:!0,useFactory:Ue,deps:[nt,oe]}]}}static forRoot(...Je){const gt=Je.flat(),zt=re(gt);return{ngModule:tt,providers:[zt,{provide:Se,useValue:[gt]},{provide:ve,useFactory:Qe},{provide:oe,multi:!0,useValue:[]},{provide:be,useFactory:Ue,deps:[Se,oe]}]}}static#e=le=()=>(this.\u0275fac=function(gt){return new(gt||Ne)},this.\u0275mod=pe.$C({type:Ne}),this.\u0275inj=se.G2t({}))}return le(),Ne})();function Ue(le,Ne){const ze=[];for(const Je of le)ze.push(...Je);for(const Je of Ne)ze.push(...Je);return ze.map(Je=>function he(le){return le instanceof se.nKC||fe(le)}(Je)?(0,se.WQX)(Je):Je)}function Qe(){const le=(0,se.WQX)(_n,{optional:!0,skipSelf:!0}),Ne=(0,se.WQX)(Se,{self:!0});if((1!==Ne.length||0!==Ne[0].length)&&le)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},59640(ke,q,l){"use strict";l.d(q,{SS:()=>u,Zz:()=>m,N_:()=>C,Bh:()=>Xt,QU:()=>S,sA:()=>Le,h1:()=>tn,il:()=>_n,ae:()=>Qn,md:()=>Bi,wc:()=>Gn,q6:()=>de,VP:()=>Q,UX:()=>In,vy:()=>Sa,Mz:()=>mt,on:()=>ca,xk:()=>$});var i=l(2615),g=l(73664),p=l(59295),D=l(17705),o=l(84412),e=l(71985),A=l(21413),h=l(47242),d=l(40941),w=l(53993),f=l(31943),F=l(96354),K=l(23294),j=l(89079);const ee={};function Q(un,Sn){if(ee[un]=(ee[un]||0)+1,"function"==typeof Sn)return _e(un,(...Dn)=>({...Sn(...Dn),type:un}));switch(Sn?Sn._as:"empty"){case"empty":return _e(un,()=>({type:un}));case"props":return _e(un,Dn=>({...Dn,type:un}));default:throw new Error("Unexpected config.")}}function $(){return{_as:"props",_p:void 0}}function _e(un,Sn){return Object.defineProperty(Sn,"type",{value:un,writable:!1})}const m="@ngrx/store/init";let u=(()=>{var un;class Sn extends o.t{constructor(){super({type:m})}next(Dn){if("function"==typeof Dn)throw new TypeError("\n Dispatch expected an object, instead it received a function.\n If you're using the createAction function, make sure to invoke the function\n before dispatching the action. For example, someAction should be someAction().");if(typeof Dn>"u")throw new TypeError("Actions must be objects");if(typeof Dn.type>"u")throw new TypeError("Actions must have a type property");super.next(Dn)}complete(){}ngOnDestroy(){super.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const _=[u],T=new i.nKC("@ngrx/store Internal Root Guard"),P=new i.nKC("@ngrx/store Internal Initial State"),C=new i.nKC("@ngrx/store Initial State"),a=new i.nKC("@ngrx/store Reducer Factory"),x=new i.nKC("@ngrx/store Internal Reducer Factory Provider"),Y=new i.nKC("@ngrx/store Initial Reducers"),R=new i.nKC("@ngrx/store Internal Initial Reducers"),U=new i.nKC("@ngrx/store Store Features"),fe=new i.nKC("@ngrx/store Internal Store Reducers"),re=new i.nKC("@ngrx/store Internal Feature Reducers"),he=new i.nKC("@ngrx/store Internal Feature Configs"),Oe=new i.nKC("@ngrx/store Internal Store Features"),ge=new i.nKC("@ngrx/store Internal Feature Reducers Token"),ce=new i.nKC("@ngrx/store Feature Reducers"),Re=new i.nKC("@ngrx/store User Provided Meta Reducers"),Me=new i.nKC("@ngrx/store Meta Reducers"),ve=new i.nKC("@ngrx/store Internal Resolved Meta Reducers"),oe=new i.nKC("@ngrx/store User Runtime Checks Config"),Se=new i.nKC("@ngrx/store Internal User Runtime Checks Config"),be=new i.nKC("@ngrx/store Internal Runtime Checks"),nt=new i.nKC("@ngrx/store Check if Action types are unique"),$e=new i.nKC("@ngrx/store Root Store Provider"),dt=new i.nKC("@ngrx/store Feature State Provider");function yt(un,Sn={}){const fi=Object.keys(un),Dn={};for(let Ci=0;CiCi(ti),fi(Sn))}}function Mn(un,Sn){return Array.isArray(Sn)&&Sn.length>0&&(un=rt.apply(null,[...Sn,un])),(fi,Dn)=>{const ti=un(fi);return(Ci,Xi)=>ti(Ci=void 0===Ci?Dn:Ci,Xi)}}class S extends e.c{}class Xt extends u{}const de="@ngrx/store/update-reducers";let ae=(()=>{var un;class Sn extends o.t{get currentReducers(){return this.reducers}constructor(Dn,ti,Ci,Xi){super(Xi(Ci,ti)),this.dispatcher=Dn,this.initialState=ti,this.reducers=Ci,this.reducerFactory=Xi}addFeature(Dn){this.addFeatures([Dn])}addFeatures(Dn){const ti=Dn.reduce((Ci,{reducers:Xi,reducerFactory:Ma,metaReducers:lt,initialState:an,key:ht})=>{const Gt="function"==typeof Xi?function qt(un){const Sn=Array.isArray(un)&&un.length>0?rt(...un):fi=>fi;return(fi,Dn)=>(fi=Sn(fi),(ti,Ci)=>fi(ti=void 0===ti?Dn:ti,Ci))}(lt)(Xi,an):Mn(Ma,lt)(Xi,an);return Ci[ht]=Gt,Ci},{});this.addReducers(ti)}removeFeature(Dn){this.removeFeatures([Dn])}removeFeatures(Dn){this.removeReducers(Dn.map(ti=>ti.key))}addReducer(Dn,ti){this.addReducers({[Dn]:ti})}addReducers(Dn){this.reducers={...this.reducers,...Dn},this.updateReducers(Object.keys(Dn))}removeReducer(Dn){this.removeReducers([Dn])}removeReducers(Dn){Dn.forEach(ti=>{this.reducers=function Et(un,Sn){return Object.keys(un).filter(fi=>fi!==Sn).reduce((fi,Dn)=>Object.assign(fi,{[Dn]:un[Dn]}),{})}(this.reducers,ti)}),this.updateReducers(Dn)}updateReducers(Dn){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:de,features:Dn})}ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Xt),i.KVO(C),i.KVO(Y),i.KVO(a))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const me=[ae,{provide:S,useExisting:ae},{provide:Xt,useExisting:u}];let Le=(()=>{var un;class Sn extends A.B{ngOnDestroy(){this.complete()}static#e=un=()=>(this.\u0275fac=(()=>{let Dn;return function(Ci){return(Dn||(Dn=g.xGo(Sn)))(Ci||Sn)}})(),this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const et=[Le];class tn extends e.c{}let Vt=(()=>{var un;class Sn extends o.t{constructor(Dn,ti,Ci,Xi){super(Xi);const ht=Dn.pipe((0,d.Q)(h.T)).pipe((0,w.E)(ti)).pipe((0,f.S)(hn,{state:Xi}));this.stateSubscription=ht.subscribe(({state:Gt,action:cn})=>{this.next(Gt),Ci.next(cn)}),this.state=(0,j.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static#e=un=()=>(this.INIT=m,this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(C))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();function hn(un={state:void 0},[Sn,fi]){const{state:Dn}=un;return{state:fi(Dn,Sn),action:Sn}}const En=[Vt,{provide:tn,useExisting:Vt}];let _n=(()=>{var un;class Sn extends e.c{constructor(Dn,ti,Ci,Xi){super(),this.actionsObserver=ti,this.reducerManager=Ci,this.injector=Xi,this.source=Dn,this.state=Dn.state}select(Dn,...ti){return Fe.call(null,Dn,...ti)(this)}selectSignal(Dn,ti){return(0,p.EW)(()=>Dn(this.state()),ti)}lift(Dn){const ti=new Sn(this,this.actionsObserver,this.reducerManager);return ti.operator=Dn,ti}dispatch(Dn,ti){if("function"==typeof Dn)return this.processDispatchFn(Dn,ti);this.actionsObserver.next(Dn)}next(Dn){this.actionsObserver.next(Dn)}error(Dn){this.actionsObserver.error(Dn)}complete(){this.actionsObserver.complete()}addReducer(Dn,ti){this.reducerManager.addReducer(Dn,ti)}removeReducer(Dn){this.reducerManager.removeReducer(Dn)}processDispatchFn(Dn,ti){!function pe(un,Sn){if(null==un)throw new Error(`${Sn} must be defined.`)}(this.injector,"Store Injector");const Ci=ti?.injector??function Pe(){try{return(0,i.WQX)(i.zZn)}catch{return}}()??this.injector;return(0,p.QZ)(()=>{const Xi=Dn();(0,p.O8)(()=>this.dispatch(Xi))},{injector:Ci})}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(tn),i.KVO(u),i.KVO(ae),i.KVO(i.zZn))},this.\u0275prov=i.jDH({token:Sn,factory:Sn.\u0275fac}))}return un(),Sn})();const tt=[_n];function Fe(un,Sn,...fi){return function(ti){let Ci;if("string"==typeof un){const Xi=[Sn,...fi].filter(Boolean);Ci=ti.pipe(function M(...un){const Sn=un.length;if(0===Sn)throw new Error("list of properties cannot be empty.");return(0,F.T)(fi=>{let Dn=fi;for(let ti=0;tiun(Xi,Sn)))}return Ci.pipe((0,K.F)())}}const Ue="https://ngrx.io/guide/store/configuration/runtime-checks";function Qe(un){return void 0===un}function Ie(un){return null===un}function le(un){return Array.isArray(un)}function gt(un){return"object"==typeof un&&null!==un}function st(un){return"function"==typeof un}function Lt(un,Sn){return un===Sn}function fn(un,Sn=Lt,fi=Lt){let Ci,Dn=null,ti=null;return{memoized:function an(){if(void 0!==Ci)return Ci.result;if(!Dn)return ti=un.apply(null,arguments),Dn=arguments,ti;if(!function St(un,Sn,fi){for(let Dn=0;Dn"function"==typeof Sn)}(Dn[0])&&(Dn=function Li(un){const Sn=Object.values(un),fi=Object.keys(un);return[...Sn,(...ti)=>fi.reduce((Ci,Xi,Ma)=>({...Ci,[Xi]:ti[Ma]}),{})]}(Dn[0]));const ti=Dn.slice(0,Dn.length-1),Ci=Dn[Dn.length-1],Xi=ti.filter(ht=>ht.release&&"function"==typeof ht.release),Ma=un(function(...ht){return Ci.apply(null,ht)}),lt=fn(function(ht,Gt){return Sn.stateFn.apply(null,[ht,ti,Gt,Ma])});return Object.assign(lt.memoized,{release:function an(){lt.reset(),Ma.reset(),Xi.forEach(ht=>ht.release())},projector:Ma.memoized,setResult:lt.setResult,clearResult:lt.clearResult})}}(fn)(...un)}function It(un,Sn,fi,Dn){if(void 0===fi){const Ci=Sn.map(Xi=>Xi(un));return Dn.memoized.apply(null,Ci)}const ti=Sn.map(Ci=>Ci(un,fi));return Dn.memoized.apply(null,[...ti,fi])}function In(un){return mt(Sn=>{const fi=Sn[un];return(0,D.naY)()&&!(un in Sn)&&console.warn(`@ngrx/store: The feature name "${un}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${un}', ...) or StoreModule.forFeature('${un}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),fi},Sn=>Sn)}function Ge(un){return un instanceof i.nKC?(0,i.WQX)(un):un}function Pt(un,Sn){return Sn.map((fi,Dn)=>{if(un[Dn]instanceof i.nKC){const ti=(0,i.WQX)(un[Dn]);return{key:fi.key,reducerFactory:ti.reducerFactory?ti.reducerFactory:yt,metaReducers:ti.metaReducers?ti.metaReducers:[],initialState:ti.initialState}}return fi})}function Yt(un){return un.map(Sn=>Sn instanceof i.nKC?(0,i.WQX)(Sn):Sn)}function bn(un){return"function"==typeof un?un():un}function Zn(un,Sn){return un.concat(Sn)}function oi(){if((0,i.WQX)(_n,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function Ei(un){Object.freeze(un);const Sn=st(un);return Object.getOwnPropertyNames(un).forEach(fi=>{if(!fi.startsWith("\u0275")&&function He(un,Sn){return Object.prototype.hasOwnProperty.call(un,Sn)}(un,fi)&&(!Sn||"caller"!==fi&&"callee"!==fi&&"arguments"!==fi)){const Dn=un[fi];(gt(Dn)||st(Dn))&&!Object.isFrozen(Dn)&&Ei(Dn)}}),un}function nn(un,Sn=[]){return(Qe(un)||Ie(un))&&0===Sn.length?{path:["root"],value:un}:Object.keys(un).reduce((Dn,ti)=>{if(Dn)return Dn;const Ci=un[ti];return function it(un){return st(un)&&un.hasOwnProperty("\u0275cmp")}(Ci)?Dn:!(Qe(Ci)||Ie(Ci)||function Je(un){return"number"==typeof un}(Ci)||function ze(un){return"boolean"==typeof un}(Ci)||function Ne(un){return"string"==typeof un}(Ci)||le(Ci))&&(function Ye(un){if(!function zt(un){return gt(un)&&!le(un)}(un))return!1;const Sn=Object.getPrototypeOf(un);return Sn===Object.prototype||null===Sn}(Ci)?nn(Ci,[...Sn,ti]):{path:[...Sn,ti],value:Ci})},!1)}function en(un,Sn){if(!1===un)return;const fi=un.path.join("."),Dn=new Error(`Detected unserializable ${Sn} at "${fi}". ${Ue}#strict${Sn}serializability`);throw Dn.value=un.value,Dn.unserializablePath=fi,Dn}function jn(un){return(0,D.naY)()?{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1,...un}:{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Un({strictActionSerializability:un,strictStateSerializability:Sn}){return fi=>un||Sn?function Nt(un,Sn){return function(fi,Dn){Sn.action(Dn)&&en(nn(Dn),"action");const ti=un(fi,Dn);return Sn.state()&&en(nn(ti),"state"),ti}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function ui({strictActionImmutability:un,strictStateImmutability:Sn}){return fi=>un||Sn?function Ii(un,Sn){return function(fi,Dn){const ti=Sn.action(Dn)?Ei(Dn):Dn,Ci=un(fi,ti);return Sn.state()?Ei(Ci):Ci}}(fi,{action:Dn=>un&&!gn(Dn),state:()=>Sn}):fi}function gn(un){return un.type.startsWith("@ngrx")}function zn({strictActionWithinNgZone:un}){return Sn=>un?function Nn(un,Sn){return function(fi,Dn){if(Sn.action(Dn)&&!g.SKi.isInAngularZone())throw new Error(`Action '${Dn.type}' running outside NgZone. ${Ue}#strictactionwithinngzone`);return un(fi,Dn)}}(Sn,{action:fi=>un&&!gn(fi)}):Sn}function kn(un){return[{provide:Se,useValue:un},{provide:oe,useFactory:ci,deps:[Se]},{provide:be,deps:[oe],useFactory:jn},{provide:Me,multi:!0,deps:[be],useFactory:ui},{provide:Me,multi:!0,deps:[be],useFactory:Un},{provide:Me,multi:!0,deps:[be],useFactory:zn}]}function Kn(){return[{provide:nt,multi:!0,deps:[be],useFactory:Xn}]}function ci(un){return un}function Xn(un){if(!un.strictActionTypeUniqueness)return;const Sn=Object.entries(ee).filter(([,fi])=>fi>1).map(([fi])=>fi);if(Sn.length)throw new Error(`Action types are registered more than once, ${Sn.map(fi=>`"${fi}"`).join(", ")}. ${Ue}#strictactiontypeuniqueness`)}function sa(un={},Sn={}){return[{provide:T,useFactory:oi},{provide:P,useValue:Sn.initialState},{provide:C,useFactory:bn,deps:[P]},{provide:R,useValue:un},{provide:fe,useExisting:un instanceof i.nKC?un:R},{provide:Y,deps:[R,[new g.y_5(fe)]],useFactory:Ge},{provide:Re,useValue:Sn.metaReducers?Sn.metaReducers:[]},{provide:ve,deps:[Me,Re],useFactory:Zn},{provide:x,useValue:Sn.reducerFactory?Sn.reducerFactory:yt},{provide:a,deps:[x,ve],useFactory:Mn},_,me,et,En,tt,kn(Sn.runtimeChecks),Kn()]}function hi(un,Sn,fi={}){return[{provide:he,multi:!0,useValue:un instanceof Object?{}:fi},{provide:U,multi:!0,useValue:{key:un instanceof Object?un.name:un,reducerFactory:fi instanceof i.nKC||!fi.reducerFactory?yt:fi.reducerFactory,metaReducers:fi instanceof i.nKC||!fi.metaReducers?[]:fi.metaReducers,initialState:fi instanceof i.nKC||!fi.initialState?void 0:fi.initialState}},{provide:Oe,deps:[he,U],useFactory:Pt},{provide:re,multi:!0,useValue:un instanceof Object?un.reducer:Sn},{provide:ge,multi:!0,useExisting:Sn instanceof i.nKC?Sn:re},{provide:ce,multi:!0,deps:[re,[new g.y_5(ge)]],useFactory:Yt},Kn()]}(0,i.BCV)(()=>(0,i.WQX)($e)),(0,i.BCV)(()=>(0,i.WQX)(dt));let Gn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma,lt){}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(u),i.KVO(S),i.KVO(Le),i.KVO(_n),i.KVO(T,8),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Qn=(()=>{var un;class Sn{constructor(Dn,ti,Ci,Xi,Ma){this.features=Dn,this.featureReducers=ti,this.reducerManager=Ci;const lt=Dn.map((an,ht)=>{const cn=ti.shift()[ht];return{...an,reducers:cn,initialState:bn(an.initialState)}});Ci.addFeatures(lt)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)(i.KVO(Oe),i.KVO(ce),i.KVO(ae),i.KVO(Gn),i.KVO(nt,8))},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})(),Bi=(()=>{var un;class Sn{static forRoot(Dn,ti){return{ngModule:Gn,providers:[...sa(Dn,ti)]}}static forFeature(Dn,ti,Ci={}){return{ngModule:Qn,providers:[...hi(Dn,ti,Ci)]}}static#e=un=()=>(this.\u0275fac=function(ti){return new(ti||Sn)},this.\u0275mod=g.$C({type:Sn}),this.\u0275inj=i.G2t({}))}return un(),Sn})();function ca(...un){return{reducer:un.pop(),types:un.map(Dn=>Dn.type)}}function Sa(un,...Sn){const fi=new Map;for(const Dn of Sn)for(const ti of Dn.types){const Ci=fi.get(ti);fi.set(ti,Ci?(Ma,lt)=>Dn.reducer(Ci(Ma,lt),lt):Dn.reducer)}return function(Dn=un,ti){const Ci=fi.get(ti.type);return Ci?Ci(Dn,ti):Dn}}},51993(ke,q,l){"use strict";l.d(q,{Dl:()=>bp,L8:()=>p4,dV:()=>mh});var i=l(73664),g=l(2615),p=l(17705),D=l(72200),o=l(60177),e=l(31635),A=l(76939),h=l(33726),d=l(70152),w=l(11514);function f(){}function F(v){return null==v?f:function(){return this.querySelector(v)}}function j(){return[]}function Z(v){return null==v?j:function(){return this.querySelectorAll(v)}}function Q(v){return function(){return this.matches(v)}}function $(v){return function(O){return O.matches(v)}}var ie=Array.prototype.find;function ye(){return this.firstElementChild}var pe=Array.prototype.filter;function Ee(){return Array.from(this.children)}function m(v){return new Array(v.length)}function _(v,O){this.ownerDocument=v.ownerDocument,this.namespaceURI=v.namespaceURI,this._next=null,this._parent=v,this.__data__=O}function P(v,O,E,y,B,G){for(var Xe,ue=0,Ut=O.length,Qt=G.length;ueO?1:v>=O?0:NaN}_.prototype={constructor:_,appendChild:function(v){return this._parent.insertBefore(v,this._next)},insertBefore:function(v,O){return this._parent.insertBefore(v,O)},querySelector:function(v){return this._parent.querySelector(v)},querySelectorAll:function(v){return this._parent.querySelectorAll(v)}};var Se="http://www.w3.org/1999/xhtml";const be={svg:"http://www.w3.org/2000/svg",xhtml:Se,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(v){var O=v+="",E=O.indexOf(":");return E>=0&&"xmlns"!==(O=v.slice(0,E))&&(v=v.slice(E+1)),be.hasOwnProperty(O)?{space:be[O],local:v}:v}function $e(v){return function(){this.removeAttribute(v)}}function dt(v){return function(){this.removeAttributeNS(v.space,v.local)}}function yt(v,O){return function(){this.setAttribute(v,O)}}function Et(v,O){return function(){this.setAttributeNS(v.space,v.local,O)}}function rt(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttribute(v):this.setAttribute(v,E)}}function Mn(v,O){return function(){var E=O.apply(this,arguments);null==E?this.removeAttributeNS(v.space,v.local):this.setAttributeNS(v.space,v.local,E)}}function S(v){return v.ownerDocument&&v.ownerDocument.defaultView||v.document&&v||v.defaultView}function Xt(v){return function(){this.style.removeProperty(v)}}function de(v,O,E){return function(){this.style.setProperty(v,O,E)}}function ae(v,O,E){return function(){var y=O.apply(this,arguments);null==y?this.style.removeProperty(v):this.style.setProperty(v,y,E)}}function Le(v,O){return v.style.getPropertyValue(O)||S(v).getComputedStyle(v,null).getPropertyValue(O)}function et(v){return function(){delete this[v]}}function tn(v,O){return function(){this[v]=O}}function Vt(v,O){return function(){var E=O.apply(this,arguments);null==E?delete this[v]:this[v]=E}}function En(v){return v.trim().split(/^|\s+/)}function _n(v){return v.classList||new tt(v)}function tt(v){this._node=v,this._names=En(v.getAttribute("class")||"")}function Fe(v,O){for(var E=_n(v),y=-1,B=O.length;++y=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(v){return this._names.indexOf(v)>=0}};var nn=[null];function en(v,O){this._groups=v,this._parents=O}function Nn(){return new en([[document.documentElement]],nn)}en.prototype=Nn.prototype={constructor:en,select:function M(v){"function"!=typeof v&&(v=F(v));for(var O=this._groups,E=O.length,y=new Array(E),B=0;B=ta&&(ta=ga+1);!(Na=qn[ta])&&++ta=0;)(ue=y[B])&&(G&&4^ue.compareDocumentPosition(G)&&G.parentNode.insertBefore(ue,G),G=ue);return this},sort:function he(v){function O(Pn,Fn){return Pn&&Fn?v(Pn.__data__,Fn.__data__):!Pn-!Fn}v||(v=Oe);for(var E=this._groups,y=E.length,B=new Array(y),G=0;G1?this.each((null==O?Xt:"function"==typeof O?ae:de)(v,O,E??"")):Le(this.node(),v)},property:function hn(v,O){return arguments.length>1?this.each((null==O?et:"function"==typeof O?Vt:tn)(v,O)):this.node()[v]},classed:function le(v,O){var E=En(v+"");if(arguments.length<2){for(var y=_n(this.node()),B=-1,G=E.length;++B=0&&(E=O.slice(y+1),O=O.slice(0,y)),{type:O,name:E}})}(v+""),G=y.length;if(!(arguments.length<2)){for(Xe=O?Yt:Pt,B=0;B{}};function zn(){for(var y,v=0,O=arguments.length,E={};v=0&&(y=E.slice(B+1),E=E.slice(0,B)),E&&!O.hasOwnProperty(E))throw new Error("unknown type: "+E);return{type:E,name:y}})}(v+"",E),G=-1,ue=y.length;if(!(arguments.length<2)){if(null!=O&&"function"!=typeof O)throw new Error("invalid callback: "+O);for(;++G0)for(var B,G,E=new Array(B),y=0;y>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===E?la(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===E?la(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=Dn.exec(v))?new Ce(O[1],O[2],O[3],1):(O=ti.exec(v))?new Ce(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=Ci.exec(v))?la(O[1],O[2],O[3],O[4]):(O=Xi.exec(v))?la(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=Ma.exec(v))?Va(O[1],O[2]/100,O[3]/100,1):(O=lt.exec(v))?Va(O[1],O[2]/100,O[3]/100,O[4]):an.hasOwnProperty(v)?Oi(an[v]):"transparent"===v?new Ce(NaN,NaN,NaN,0):null}function Oi(v){return new Ce(v>>16&255,v>>8&255,255&v,1)}function la(v,O,E,y){return y<=0&&(v=O=E=NaN),new Ce(v,O,E,y)}function li(v,O,E,y){return 1===arguments.length?function mn(v){return v instanceof Qn||(v=pi(v)),v?new Ce((v=v.rgb()).r,v.g,v.b,v.opacity):new Ce}(v):new Ce(v,O,E,y??1)}function Ce(v,O,E,y){this.r=+v,this.g=+O,this.b=+E,this.opacity=+y}function xt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}`}function rn(){const v=Wn(this.opacity);return`${1===v?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${1===v?")":`, ${v})`}`}function Wn(v){return isNaN(v)?1:Math.max(0,Math.min(1,v))}function Yi(v){return Math.max(0,Math.min(255,Math.round(v)||0))}function va(v){return((v=Yi(v))<16?"0":"")+v.toString(16)}function Va(v,O,E,y){return y<=0?v=O=E=NaN:E<=0||E>=1?v=O=NaN:O<=0&&(v=NaN),new Ga(v,O,E,y)}function $a(v){if(v instanceof Ga)return new Ga(v.h,v.s,v.l,v.opacity);if(v instanceof Qn||(v=pi(v)),!v)return new Ga;if(v instanceof Ga)return v;var O=(v=v.rgb()).r/255,E=v.g/255,y=v.b/255,B=Math.min(O,E,y),G=Math.max(O,E,y),ue=NaN,Xe=G-B,Ut=(G+B)/2;return Xe?(ue=O===G?(E-y)/Xe+6*(E0&&Ut<1?0:ue,new Ga(ue,Xe,Ut,v.opacity)}function Ga(v,O,E,y){this.h=+v,this.s=+O,this.l=+E,this.opacity=+y}function Ar(v){return(v=(v||0)%360)<0?v+360:v}function ds(v){return Math.max(0,Math.min(1,v||0))}function us(v,O,E){return 255*(v<60?O+(E-O)*v/60:v<180?E:v<240?O+(E-O)*(240-v)/60:O)}function hs(v,O,E,y,B){var G=v*v,ue=G*v;return((1-3*v+3*G-ue)*O+(4-6*G+3*ue)*E+(1+3*v+3*G-3*ue)*y+ue*B)/6}hi(Qn,pi,{copy(v){return Object.assign(new this.constructor,this,v)},displayable(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function Gt(){return this.rgb().formatHex8()},formatHsl:function cn(){return $a(this).formatHsl()},formatRgb:si,toString:si}),hi(Ce,li,Gn(Qn,{brighter(v){return v=null==v?ca:Math.pow(ca,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ce(this.r*v,this.g*v,this.b*v,this.opacity)},rgb(){return this},clamp(){return new Ce(Yi(this.r),Yi(this.g),Yi(this.b),Wn(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xt,formatHex:xt,formatHex8:function vt(){return`#${va(this.r)}${va(this.g)}${va(this.b)}${va(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:rn,toString:rn})),hi(Ga,function ir(v,O,E,y){return 1===arguments.length?$a(v):new Ga(v,O,E,y??1)},Gn(Qn,{brighter(v){return v=null==v?ca:Math.pow(ca,v),new Ga(this.h,this.s,this.l*v,this.opacity)},darker(v){return v=null==v?.7:Math.pow(.7,v),new Ga(this.h,this.s,this.l*v,this.opacity)},rgb(){var v=this.h%360+360*(this.h<0),O=isNaN(v)||isNaN(this.s)?0:this.s,E=this.l,y=E+(E<.5?E:1-E)*O,B=2*E-y;return new Ce(us(v>=240?v-240:v+120,B,y),us(v,B,y),us(v<120?v+240:v-120,B,y),this.opacity)},clamp(){return new Ga(Ar(this.h),ds(this.s),ds(this.l),Wn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const v=Wn(this.opacity);return`${1===v?"hsl(":"hsla("}${Ar(this.h)}, ${100*ds(this.s)}%, ${100*ds(this.l)}%${1===v?")":`, ${v})`}`}}));const ms=v=>()=>v;function Pr(v,O){var E=O-v;return E?function Zr(v,O){return function(E){return v+E*O}}(v,E):ms(isNaN(v)?O:v)}const Is=function v(O){var E=function Ka(v){return 1==(v=+v)?Pr:function(O,E){return E-O?function js(v,O,E){return v=Math.pow(v,E),O=Math.pow(O,E)-v,E=1/E,function(y){return Math.pow(v+y*O,E)}}(O,E,v):ms(isNaN(O)?E:O)}}(O);function y(B,G){var ue=E((B=li(B)).r,(G=li(G)).r),Xe=E(B.g,G.g),Ut=E(B.b,G.b),Qt=Pr(B.opacity,G.opacity);return function(pn){return B.r=ue(pn),B.g=Xe(pn),B.b=Ut(pn),B.opacity=Qt(pn),B+""}}return y.gamma=v,y}(1);function Wr(v){return function(O){var ue,Xe,E=O.length,y=new Array(E),B=new Array(E),G=new Array(E);for(ue=0;ue=1?(E=1,O-1):Math.floor(E*O),B=v[y],G=v[y+1];return hs((E-y/O)*O,y>0?v[y-1]:2*B-G,B,G,yE&&(G=O.slice(E,G),Xe[ue]?Xe[ue]+=G:Xe[++ue]=G),(y=y[0])===(B=B[0])?Xe[ue]?Xe[ue]+=B:Xe[++ue]=B:(Xe[++ue]=null,Ut.push({i:ue,x:lr(y,B)})),E=Xr.lastIndex;return E=0&&v._call.call(void 0,O),v=v._next;--es}()}finally{es=0,function Er(){for(var v,E,O=Za,y=1/0;O;)O._call?(y>O._time&&(y=O._time),v=O,O=O._next):(E=O._next,O._next=null,O=v?v._next=E:Za=E);ks=v,Kt(y)}(),Nr=0}}function da(){var v=Qr.now(),O=v-Rs;O>1e3&&(Ws-=O,Rs=v)}function Kt(v){es||(Yr&&(Yr=clearTimeout(Yr)),v-Nr>24?(v<1/0&&(Yr=setTimeout(Ni,v-Qr.now()-Ws)),Aa&&(Aa=clearInterval(Aa))):(Aa||(Rs=Qr.now(),Aa=setInterval(da,1e3)),es=1,Es(Ni)))}function Vn(v,O,E){var y=new Ve;return y.restart(B=>{y.stop(),v(B+O)},O=null==O?0:+O,E),y}Ve.prototype=Rt.prototype={constructor:Ve,restart:function(v,O,E){if("function"!=typeof v)throw new TypeError("callback is not a function");E=(null==E?ct():+E)+(null==O?0:+O),!this._next&&ks!==this&&(ks?ks._next=this:Za=this,ks=this),this._call=v,this._time=E,Kt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Kt())}};var _t=aa("start","end","cancel","interrupt"),xn=[];function qo(v,O,E,y,B,G){var ue=v.__transition;if(ue){if(E in ue)return}else v.__transition={};!function Mo(v,O,E){var B,y=v.__transition;function ue(Qt){var pn,Pn,Fn,xi;if(1!==E.state)return Ut();for(pn in y)if((xi=y[pn]).name===E.name){if(3===xi.state)return Vn(ue);4===xi.state?(xi.state=6,xi.timer.stop(),xi.on.call("interrupt",v,v.__data__,xi.index,xi.group),delete y[pn]):+pn0)throw new Error("too late; already scheduled");return E}function Sr(v,O){var E=ts(v,O);if(E.state>3)throw new Error("too late; already running");return E}function ts(v,O){var E=v.__transition;if(!E||!(E=E[O]))throw new Error("transition not found");return E}var ns,hl=180/Math.PI,Bl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hr(v,O,E,y,B,G){var ue,Xe,Ut;return(ue=Math.sqrt(v*v+O*O))&&(v/=ue,O/=ue),(Ut=v*E+O*y)&&(E-=v*Ut,y-=O*Ut),(Xe=Math.sqrt(E*E+y*y))&&(E/=Xe,y/=Xe,Ut/=Xe),v*y180?pn+=360:pn-Qt>180&&(Qt+=360),Fn.push({i:Pn.push(B(Pn)+"rotate(",null,y)-2,x:lr(Qt,pn)})):pn&&Pn.push(B(Pn)+"rotate("+pn+y)}(Qt.rotate,pn.rotate,Pn,Fn),function Xe(Qt,pn,Pn,Fn){Qt!==pn?Fn.push({i:Pn.push(B(Pn)+"skewX(",null,y)-2,x:lr(Qt,pn)}):pn&&Pn.push(B(Pn)+"skewX("+pn+y)}(Qt.skewX,pn.skewX,Pn,Fn),function Ut(Qt,pn,Pn,Fn,xi,yi){if(Qt!==Pn||pn!==Fn){var Ji=xi.push(B(xi)+"scale(",null,",",null,")");yi.push({i:Ji-4,x:lr(Qt,Pn)},{i:Ji-2,x:lr(pn,Fn)})}else(1!==Pn||1!==Fn)&&xi.push(B(xi)+"scale("+Pn+","+Fn+")")}(Qt.scaleX,Qt.scaleY,pn.scaleX,pn.scaleY,Pn,Fn),Qt=pn=null,function(xi){for(var qn,yi=-1,Ji=Fn.length;++yi=0&&(O=O.slice(0,E)),!O||"start"===O})}(O)?yl:Sr;return function(){var ue=G(this,v),Xe=ue.on;Xe!==y&&(B=(y=Xe).copy()).on(O,E),ue.on=B}}(E,v,O))},attr:function jo(v,O){var E=nt(v),y="transform"===E?ws:za;return this.attrTween(v,"function"==typeof O?(E.local?So:mo)(E,y,zl(this,"attr."+v,O)):null==O?(E.local?Cl:fr)(E):(E.local?wo:to)(E,y,O))},attrTween:function El(v,O){var E="attr."+v;if(arguments.length<2)return(E=this.tween(E))&&E._value;if(null==O)return this.tween(E,null);if("function"!=typeof O)throw new Error;var y=nt(v);return this.tween(E,(y.local?Ml:io)(y,O))},style:function ji(v,O,E){var y="transform"==(v+="")?fl:za;return null==O?this.styleTween(v,function bt(v,O){var E,y,B;return function(){var G=Le(this,v),ue=(this.style.removeProperty(v),Le(this,v));return G===ue?null:G===E&&ue===y?B:B=O(E=G,y=ue)}}(v,y)).on("end.style."+v,Ht(v)):"function"==typeof O?this.styleTween(v,function Rn(v,O,E){var y,B,G;return function(){var ue=Le(this,v),Xe=E(this),Ut=Xe+"";return null==Xe&&(this.style.removeProperty(v),Ut=Xe=Le(this,v)),ue===Ut?null:ue===y&&Ut===B?G:(B=Ut,G=O(y=ue,Xe))}}(v,y,zl(this,"style."+v,O))).each(function di(v,O){var E,y,B,Xe,G="style."+O,ue="end."+G;return function(){var Ut=Sr(this,v),Qt=Ut.on,pn=null==Ut.value[G]?Xe||(Xe=Ht(O)):void 0;(Qt!==E||B!==pn)&&(y=(E=Qt).copy()).on(ue,B=pn),Ut.on=y}}(this._id,v)):this.styleTween(v,function sn(v,O,E){var y,G,B=E+"";return function(){var ue=Le(this,v);return ue===B?null:ue===y?G:G=O(y=ue,E)}}(v,y,O),E).on("end.style."+v,null)},styleTween:function Fr(v,O,E){var y="style."+(v+="");if(arguments.length<2)return(y=this.tween(y))&&y._value;if(null==O)return this.tween(y,null);if("function"!=typeof O)throw new Error;return this.tween(y,function rr(v,O,E){var y,B;function G(){var ue=O.apply(this,arguments);return ue!==B&&(y=(B=ue)&&function Ia(v,O,E){return function(y){this.style.setProperty(v,O.call(this,y),E)}}(v,ue,E)),y}return G._value=O,G}(v,O,E??""))},text:function oo(v){return this.tween("text","function"==typeof v?function as(v){return function(){var O=v(this);this.textContent=O??""}}(zl(this,"text",v)):function nl(v){return function(){this.textContent=v}}(null==v?"":v+""))},textTween:function mc(v){var O="text";if(arguments.length<1)return(O=this.tween(O))&&O._value;if(null==v)return this.tween(O,null);if("function"!=typeof v)throw new Error;return this.tween(O,function Sl(v){var O,E;function y(){var B=v.apply(this,arguments);return B!==E&&(O=(E=B)&&function lo(v){return function(O){this.textContent=v.call(this,O)}}(B)),O}return y._value=v,y}(v))},remove:function tl(){return this.on("end.remove",function Wo(v){return function(){var O=this.parentNode;for(var E in this.__transition)if(+E!==v)return;O&&O.removeChild(this)}}(this._id))},tween:function xl(v,O){var E=this._id;if(v+="",arguments.length<2){for(var ue,y=ts(this.node(),E).tween,B=0,G=y.length;B2&&y.state<5,y.state=6,y.timer.stop(),y.on.call(B?"interrupt":"cancel",v,v.__data__,y.index,y.group),delete E[ue]):G=!1;G&&delete v.__transition}}(this,v)})},Un.prototype.transition=function il(v){var O,E;v instanceof po?(O=v._id,v=v._name):(O=gc(),(E=kc).time=ct(),v=null==v?null:v+"");for(var y=this._groups,B=y.length,G=0;GO?1:v>=O?0:NaN}function ec(v,O){return null==v||null==O?NaN:Ov?1:O>=v?0:NaN}function Wl(v){let O,E,y;function B(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<0?Qt=Pn+1:pn=Pn}while(QtKs(v(Xe),Ut),y=(Xe,Ut)=>v(Xe)-Ut):(O=v===Ks||v===ec?v:ed,E=v,y=v),{left:B,center:function ue(Xe,Ut,Qt=0,pn=Xe.length){const Pn=B(Xe,Ut,Qt,pn-1);return Pn>Qt&&y(Xe[Pn-1],Ut)>-y(Xe[Pn],Ut)?Pn-1:Pn},right:function G(Xe,Ut,Qt=0,pn=Xe.length){if(Qt>>1;E(Xe[Pn],Ut)<=0?Qt=Pn+1:pn=Pn}while(Qt=_d?10:G>=_c?5:G>=td?2:1;let Xe,Ut,Qt;return B<0?(Qt=Math.pow(10,-B)/ue,Xe=Math.round(v*Qt),Ut=Math.round(O*Qt),Xe/QtO&&--Ut,Qt=-Qt):(Qt=Math.pow(10,B)*ue,Xe=Math.round(v/Qt),Ut=Math.round(O/Qt),Xe*QtO&&--Ut),Ut(v(G=new Date(+G)),G),B.ceil=G=>(v(G=new Date(G-1)),O(G,1),v(G),G),B.round=G=>{const ue=B(G),Xe=B.ceil(G);return G-ue(O(G=new Date(+G),null==ue?1:Math.floor(ue)),G),B.range=(G,ue,Xe)=>{const Ut=[];if(G=B.ceil(G),Xe=null==Xe?1:Math.floor(Xe),!(G0))return Ut;let Qt;do{Ut.push(Qt=new Date(+G)),O(G,Xe),v(G)}while(QtPi(ue=>{if(ue>=ue)for(;v(ue),!G(ue);)ue.setTime(ue-1)},(ue,Xe)=>{if(ue>=ue)if(Xe<0)for(;++Xe<=0;)for(;O(ue,-1),!G(ue););else for(;--Xe>=0;)for(;O(ue,1),!G(ue););}),E&&(B.count=(G,ue)=>(Yn.setTime(+G),gi.setTime(+ue),v(Yn),v(gi),Math.floor(E(Yn,gi))),B.every=G=>(G=Math.floor(G),isFinite(G)&&G>0?G>1?B.filter(y?ue=>y(ue)%G===0:ue=>B.count(0,ue)%G===0):B:null)),B}const Wa=Pi(()=>{},(v,O)=>{v.setTime(+v+O)},(v,O)=>O-v);Wa.every=v=>(v=Math.floor(v),isFinite(v)&&v>0?v>1?Pi(O=>{O.setTime(Math.floor(O/v)*v)},(O,E)=>{O.setTime(+O+E*v)},(O,E)=>(E-O)/v):Wa:null);const La=Pi(v=>{v.setTime(v-v.getMilliseconds())},(v,O)=>{v.setTime(+v+O*ja)},(v,O)=>(O-v)/ja,v=>v.getUTCSeconds()),tr=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getMinutes()),al=Pi(v=>{v.setUTCSeconds(0,0)},(v,O)=>{v.setTime(+v+O*Ti)},(v,O)=>(O-v)/Ti,v=>v.getUTCMinutes()),go=Pi(v=>{v.setTime(v-v.getMilliseconds()-v.getSeconds()*ja-v.getMinutes()*Ti)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getHours()),Z1=Pi(v=>{v.setUTCMinutes(0,0,0)},(v,O)=>{v.setTime(+v+O*Ra)},(v,O)=>(O-v)/Ra,v=>v.getUTCHours()),nd=Pi(v=>v.setHours(0,0,0,0),(v,O)=>v.setDate(v.getDate()+O),(v,O)=>(O-v-(O.getTimezoneOffset()-v.getTimezoneOffset())*Ti)/cr,v=>v.getDate()-1),Oo=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>v.getUTCDate()-1),Ko=Pi(v=>{v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCDate(v.getUTCDate()+O)},(v,O)=>(O-v)/cr,v=>Math.floor(v/cr));function Br(v){return Pi(O=>{O.setDate(O.getDate()-(O.getDay()+7-v)%7),O.setHours(0,0,0,0)},(O,E)=>{O.setDate(O.getDate()+7*E)},(O,E)=>(E-O-(E.getTimezoneOffset()-O.getTimezoneOffset())*Ti)/De)}const uo=Br(0),bc=Br(1),Il=(Br(2),Br(3),Br(4));function Dt(v){return Pi(O=>{O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-v)%7),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCDate(O.getUTCDate()+7*E)},(O,E)=>(E-O)/De)}Br(5),Br(6);const wt=Dt(0),Ft=Dt(1),On=(Dt(2),Dt(3),Dt(4)),vr=(Dt(5),Dt(6),Pi(v=>{v.setDate(1),v.setHours(0,0,0,0)},(v,O)=>{v.setMonth(v.getMonth()+O)},(v,O)=>O.getMonth()-v.getMonth()+12*(O.getFullYear()-v.getFullYear()),v=>v.getMonth())),Bs=Pi(v=>{v.setUTCDate(1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCMonth(v.getUTCMonth()+O)},(v,O)=>O.getUTCMonth()-v.getUTCMonth()+12*(O.getUTCFullYear()-v.getUTCFullYear()),v=>v.getUTCMonth()),Ys=Pi(v=>{v.setMonth(0,1),v.setHours(0,0,0,0)},(v,O)=>{v.setFullYear(v.getFullYear()+O)},(v,O)=>O.getFullYear()-v.getFullYear(),v=>v.getFullYear());Ys.every=v=>isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setFullYear(Math.floor(O.getFullYear()/v)*v),O.setMonth(0,1),O.setHours(0,0,0,0)},(O,E)=>{O.setFullYear(O.getFullYear()+E*v)}):null;const sl=Pi(v=>{v.setUTCMonth(0,1),v.setUTCHours(0,0,0,0)},(v,O)=>{v.setUTCFullYear(v.getUTCFullYear()+O)},(v,O)=>O.getUTCFullYear()-v.getUTCFullYear(),v=>v.getUTCFullYear());function xc(v,O,E,y,B,G){const ue=[[La,1,ja],[La,5,5e3],[La,15,15e3],[La,30,3e4],[G,1,Ti],[G,5,5*Ti],[G,15,15*Ti],[G,30,30*Ti],[B,1,Ra],[B,3,3*Ra],[B,6,6*Ra],[B,12,12*Ra],[y,1,cr],[y,2,2*cr],[E,1,De],[O,1,at],[O,3,3*at],[v,1,Jt]];function Ut(Qt,pn,Pn){const Fn=Math.abs(pn-Qt)/Pn,xi=Wl(([,,qn])=>qn).right(ue,Fn);if(xi===ue.length)return v.every(co(Qt/Jt,pn/Jt,Pn));if(0===xi)return Wa.every(Math.max(co(Qt,pn,Pn),1));const[yi,Ji]=ue[Fn/ue[xi-1][2]isFinite(v=Math.floor(v))&&v>0?Pi(O=>{O.setUTCFullYear(Math.floor(O.getUTCFullYear()/v)*v),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},(O,E)=>{O.setUTCFullYear(O.getUTCFullYear()+E*v)}):null;const[t0,Nm]=xc(sl,Bs,wt,Ko,Z1,al),[K4,n0]=xc(Ys,vr,uo,nd,go,tr);function i0(v){if(0<=v.y&&v.y<100){var O=new Date(-1,v.m,v.d,v.H,v.M,v.S,v.L);return O.setFullYear(v.y),O}return new Date(v.y,v.m,v.d,v.H,v.M,v.S,v.L)}function n1(v){if(0<=v.y&&v.y<100){var O=new Date(Date.UTC(-1,v.m,v.d,v.H,v.M,v.S,v.L));return O.setUTCFullYear(v.y),O}return new Date(Date.UTC(v.y,v.m,v.d,v.H,v.M,v.S,v.L))}function bd(v,O,E){return{y:v,m:O,d:E,H:0,M:0,S:0,L:0}}var L2={"-":"",_:" ",0:"0"},zs=/^\s*\d+/,I2=/^%/,Dh=/[\\^$*+?|[\]().{}]/g;function Xa(v,O,E){var y=v<0?"-":"",B=(y?-v:v)+"",G=B.length;return y+(G[O.toLowerCase(),E]))}function _o(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.w=+y[0],E+y[0].length):-1}function ss(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.u=+y[0],E+y[0].length):-1}function i1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.U=+y[0],E+y[0].length):-1}function ol(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.V=+y[0],E+y[0].length):-1}function xd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.W=+y[0],E+y[0].length):-1}function a1(v,O,E){var y=zs.exec(O.slice(E,E+4));return y?(v.y=+y[0],E+y[0].length):-1}function r1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.y=+y[0]+(+y[0]>68?1900:2e3),E+y[0].length):-1}function R2(v,O,E){var y=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(E,E+6));return y?(v.Z=y[1]?0:-(y[2]+(y[3]||"00")),E+y[0].length):-1}function a0(v,O,E){var y=zs.exec(O.slice(E,E+1));return y?(v.q=3*y[0]-3,E+y[0].length):-1}function s1(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.m=y[0]-1,E+y[0].length):-1}function Mc(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.d=+y[0],E+y[0].length):-1}function O2(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.m=0,v.d=+y[0],E+y[0].length):-1}function r0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.H=+y[0],E+y[0].length):-1}function Cd(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.M=+y[0],E+y[0].length):-1}function s0(v,O,E){var y=zs.exec(O.slice(E,E+2));return y?(v.S=+y[0],E+y[0].length):-1}function o0(v,O,E){var y=zs.exec(O.slice(E,E+3));return y?(v.L=+y[0],E+y[0].length):-1}function zr(v,O,E){var y=zs.exec(O.slice(E,E+6));return y?(v.L=Math.floor(y[0]/1e3),E+y[0].length):-1}function Ur(v,O,E){var y=I2.exec(O.slice(E,E+1));return y?E+y[0].length:-1}function Ah(v,O,E){var y=zs.exec(O.slice(E));return y?(v.Q=+y[0],E+y[0].length):-1}function Ta(v,O,E){var y=zs.exec(O.slice(E));return y?(v.s=+y[0],E+y[0].length):-1}function sc(v,O){return Xa(v.getDate(),O,2)}function Oc(v,O){return Xa(v.getHours(),O,2)}function o1(v,O){return Xa(v.getHours()%12||12,O,2)}function l1(v,O){return Xa(1+nd.count(Ys(v),v),O,3)}function kl(v,O){return Xa(v.getMilliseconds(),O,3)}function l0(v,O){return kl(v,O)+"000"}function c0(v,O){return Xa(v.getMonth()+1,O,2)}function P2(v,O){return Xa(v.getMinutes(),O,2)}function d0(v,O){return Xa(v.getSeconds(),O,2)}function u0(v){var O=v.getDay();return 0===O?7:O}function Lh(v,O){return Xa(uo.count(Ys(v)-1,v),O,2)}function N2(v){var O=v.getDay();return O>=4||0===O?Il(v):Il.ceil(v)}function Ih(v,O){return v=N2(v),Xa(Il.count(Ys(v),v)+(4===Ys(v).getDay()),O,2)}function F2(v){return v.getDay()}function B2(v,O){return Xa(bc.count(Ys(v)-1,v),O,2)}function Y4(v,O){return Xa(v.getFullYear()%100,O,2)}function Md(v,O){return Xa((v=N2(v)).getFullYear()%100,O,2)}function z2(v,O){return Xa(v.getFullYear()%1e4,O,4)}function c1(v,O){var E=v.getDay();return Xa((v=E>=4||0===E?Il(v):Il.ceil(v)).getFullYear()%1e4,O,4)}function U2(v){var O=v.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+Xa(O/60|0,"0",2)+Xa(O%60,"0",2)}function h0(v,O){return Xa(v.getUTCDate(),O,2)}function kh(v,O){return Xa(v.getUTCHours(),O,2)}function V2(v,O){return Xa(v.getUTCHours()%12||12,O,2)}function Q4(v,O){return Xa(1+Oo.count(sl(v),v),O,3)}function Rh(v,O){return Xa(v.getUTCMilliseconds(),O,3)}function Oh(v,O){return Rh(v,O)+"000"}function Ph(v,O){return Xa(v.getUTCMonth()+1,O,2)}function G2(v,O){return Xa(v.getUTCMinutes(),O,2)}function Nh(v,O){return Xa(v.getUTCSeconds(),O,2)}function H2(v){var O=v.getUTCDay();return 0===O?7:O}function Fh(v,O){return Xa(wt.count(sl(v)-1,v),O,2)}function d1(v){var O=v.getUTCDay();return O>=4||0===O?On(v):On.ceil(v)}function ad(v,O){return v=d1(v),Xa(On.count(sl(v),v)+(4===sl(v).getUTCDay()),O,2)}function Kl(v){return v.getUTCDay()}function j2(v,O){return Xa(Ft.count(sl(v)-1,v),O,2)}function Bh(v,O){return Xa(v.getUTCFullYear()%100,O,2)}function W2(v,O){return Xa((v=d1(v)).getUTCFullYear()%100,O,2)}function $4(v,O){return Xa(v.getUTCFullYear()%1e4,O,4)}function zh(v,O){var E=v.getUTCDay();return Xa((v=E>=4||0===E?On(v):On.ceil(v)).getUTCFullYear()%1e4,O,4)}function u1(){return"+0000"}function Ec(){return"%"}function Pc(v){return+v}function Ya(v){return Math.floor(+v/1e3)}function K2(v){return null===v?NaN:+v}!function Rl(v){(function Th(v){var O=v.dateTime,E=v.date,y=v.time,B=v.periods,G=v.days,ue=v.shortDays,Xe=v.months,Ut=v.shortMonths,Qt=Cc(B),pn=id(B),Pn=Cc(G),Fn=id(G),xi=Cc(ue),yi=id(ue),Ji=Cc(Xe),qn=id(Xe),Gi=Cc(Ut),ga=id(Ut),ta={a:function ls(na){return ue[na.getDay()]},A:function dl(na){return G[na.getDay()]},b:function cs(na){return Ut[na.getMonth()]},B:function or(na){return Xe[na.getMonth()]},c:null,d:sc,e:sc,f:l0,g:Md,G:c1,H:Oc,I:o1,j:l1,L:kl,m:c0,M:P2,p:function Hs(na){return B[+(na.getHours()>=12)]},q:function Ds(na){return 1+~~(na.getMonth()/3)},Q:Pc,s:Ya,S:d0,u:u0,U:Lh,V:Ih,w:F2,W:B2,x:null,X:null,y:Y4,Y:z2,Z:U2,"%":Ec},_a={a:function v2(na){return ue[na.getUTCDay()]},A:function Zc(na){return G[na.getUTCDay()]},b:function Qd(na){return Ut[na.getUTCMonth()]},B:function $d(na){return Xe[na.getUTCMonth()]},c:null,d:h0,e:h0,f:Oh,g:W2,G:zh,H:kh,I:V2,j:Q4,L:Rh,m:Ph,M:G2,p:function Fo(na){return B[+(na.getUTCHours()>=12)]},q:function Zd(na){return 1+~~(na.getUTCMonth()/3)},Q:Pc,s:Ya,S:Nh,u:H2,U:Fh,V:ad,w:Kl,W:j2,x:null,X:null,y:Bh,Y:$4,Z:u1,"%":Ec},Na={a:function xr(na,ka,Qa){var Ri=xi.exec(ka.slice(Qa));return Ri?(na.w=yi.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},A:function jr(na,ka,Qa){var Ri=Pn.exec(ka.slice(Qa));return Ri?(na.w=Fn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},b:function Da(na,ka,Qa){var Ri=Gi.exec(ka.slice(Qa));return Ri?(na.m=ga.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},B:function Or(na,ka,Qa){var Ri=Ji.exec(ka.slice(Qa));return Ri?(na.m=qn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},c:function nr(na,ka,Qa){return Rr(na,O,ka,Qa)},d:Mc,e:Mc,f:zr,g:r1,G:a1,H:r0,I:r0,j:O2,L:o0,m:s1,M:Cd,p:function Po(na,ka,Qa){var Ri=Qt.exec(ka.slice(Qa));return Ri?(na.p=pn.get(Ri[0].toLowerCase()),Qa+Ri[0].length):-1},q:a0,Q:Ah,s:Ta,S:s0,u:ss,U:i1,V:ol,w:_o,W:xd,x:function No(na,ka,Qa){return Rr(na,E,ka,Qa)},X:function bs(na,ka,Qa){return Rr(na,y,ka,Qa)},y:r1,Y:a1,Z:R2,"%":Ur};function qi(na,ka){return function(Qa){var $o,Ca,Ls,Ri=[],As=-1,Cr=0,ul=na.length;for(Qa instanceof Date||(Qa=new Date(+Qa));++As53)return null;"w"in Ri||(Ri.w=1),"Z"in Ri?(ul=(Cr=n1(bd(Ri.y,0,1))).getUTCDay(),Cr=ul>4||0===ul?Ft.ceil(Cr):Ft(Cr),Cr=Oo.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getUTCFullYear(),Ri.m=Cr.getUTCMonth(),Ri.d=Cr.getUTCDate()+(Ri.w+6)%7):(ul=(Cr=i0(bd(Ri.y,0,1))).getDay(),Cr=ul>4||0===ul?bc.ceil(Cr):bc(Cr),Cr=nd.offset(Cr,7*(Ri.V-1)),Ri.y=Cr.getFullYear(),Ri.m=Cr.getMonth(),Ri.d=Cr.getDate()+(Ri.w+6)%7)}else("W"in Ri||"U"in Ri)&&("w"in Ri||(Ri.w="u"in Ri?Ri.u%7:"W"in Ri?1:0),ul="Z"in Ri?n1(bd(Ri.y,0,1)).getUTCDay():i0(bd(Ri.y,0,1)).getDay(),Ri.m=0,Ri.d="W"in Ri?(Ri.w+6)%7+7*Ri.W-(ul+5)%7:Ri.w+7*Ri.U-(ul+6)%7);return"Z"in Ri?(Ri.H+=Ri.Z/100|0,Ri.M+=Ri.Z%100,n1(Ri)):i0(Ri)}}function Rr(na,ka,Qa,Ri){for(var $o,Ca,As=0,Cr=ka.length,ul=Qa.length;As=ul)return-1;if(37===($o=ka.charCodeAt(As++))){if($o=ka.charAt(As++),!(Ca=Na[$o in L2?ka.charAt(As++):$o])||(Ri=Ca(na,Qa,Ri))<0)return-1}else if($o!=Qa.charCodeAt(Ri++))return-1}return Ri}return ta.x=qi(E,ta),ta.X=qi(y,ta),ta.c=qi(O,ta),_a.x=qi(E,_a),_a.X=qi(y,_a),_a.c=qi(O,_a),{format:function(na){var ka=qi(na+="",ta);return ka.toString=function(){return na},ka},parse:function(na){var ka=kr(na+="",!1);return ka.toString=function(){return na},ka},utcFormat:function(na){var ka=qi(na+="",_a);return ka.toString=function(){return na},ka},utcParse:function(na){var ka=kr(na+="",!0);return ka.toString=function(){return na},ka}}})(v)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const Gh=Wl(Ks).right,p0=(Wl(K2),Gh);function Hh(v,O){return v=+v,O=+O,function(E){return Math.round(v*(1-E)+O*E)}}function Wh(v){return+v}var qa=[0,1];function wc(v){return v}function g0(v,O){return(O-=v=+v)?function(E){return(E-v)/O}:function jh(v){return function(){return v}}(isNaN(O)?NaN:.5)}function Ed(v,O,E){var y=v[0],B=v[1],G=O[0],ue=O[1];return BO&&(E=v,v=O,O=E),function(y){return Math.max(v,Math.min(O,y))}}(v[0],v[Fn-1])),Xe=Fn>2?Xh:Ed,Ut=Qt=null,Pn}function Pn(Fn){return null==Fn||isNaN(Fn=+Fn)?G:(Ut||(Ut=Xe(v.map(y),O,E)))(y(ue(Fn)))}return Pn.invert=function(Fn){return ue(B((Qt||(Qt=Xe(O,v.map(y),lr)))(Fn)))},Pn.domain=function(Fn){return arguments.length?(v=Array.from(Fn,Wh),pn()):v.slice()},Pn.range=function(Fn){return arguments.length?(O=Array.from(Fn),pn()):O.slice()},Pn.rangeRound=function(Fn){return O=Array.from(Fn),E=Hh,pn()},Pn.clamp=function(Fn){return arguments.length?(ue=!!Fn||wc,pn()):ue!==wc},Pn.interpolate=function(Fn){return arguments.length?(E=Fn,pn()):E},Pn.unknown=function(Fn){return arguments.length?(G=Fn,Pn):G},function(Fn,xi){return y=Fn,B=xi,pn()}}()(wc,wc)}function rd(v,O){switch(arguments.length){case 0:break;case 1:this.range(v);break;default:this.range(O).domain(v)}return this}var Yo,Yh=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Nc(v){if(!(O=Yh.exec(v)))throw new Error("invalid format: "+v);var O;return new Sc({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function Sc(v){this.fill=void 0===v.fill?" ":v.fill+"",this.align=void 0===v.align?">":v.align+"",this.sign=void 0===v.sign?"-":v.sign+"",this.symbol=void 0===v.symbol?"":v.symbol+"",this.zero=!!v.zero,this.width=void 0===v.width?void 0:+v.width,this.comma=!!v.comma,this.precision=void 0===v.precision?void 0:+v.precision,this.trim=!!v.trim,this.type=void 0===v.type?"":v.type+""}function p1(v,O){if(!isFinite(v)||0===v)return null;var E=(v=O?v.toExponential(O-1):v.toExponential()).indexOf("e"),y=v.slice(0,E);return[y.length>1?y[0]+y.slice(2):y,+v.slice(E+1)]}function Tc(v){return(v=p1(Math.abs(v)))?v[1]:NaN}function Fc(v,O){var E=p1(v,O);if(!E)return v+"";var y=E[0],B=E[1];return B<0?"0."+new Array(-B).join("0")+y:y.length>B+1?y.slice(0,B+1)+"."+y.slice(B+1):y+new Array(B-y.length+2).join("0")}Nc.prototype=Sc.prototype,Sc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const g1={"%":(v,O)=>(100*v).toFixed(O),b:v=>Math.round(v).toString(2),c:v=>v+"",d:function $2(v){return Math.abs(v=Math.round(v))>=1e21?v.toLocaleString("en").replace(/,/g,""):v.toString(10)},e:(v,O)=>v.toExponential(O),f:(v,O)=>v.toFixed(O),g:(v,O)=>v.toPrecision(O),o:v=>Math.round(v).toString(8),p:(v,O)=>Fc(100*v,O),r:Fc,s:function sd(v,O){var E=p1(v,O);if(!E)return Yo=void 0,v.toPrecision(O);var y=E[0],B=E[1],G=B-(Yo=3*Math.max(-8,Math.min(8,Math.floor(B/3))))+1,ue=y.length;return G===ue?y:G>ue?y+new Array(G-ue+1).join("0"):G>0?y.slice(0,G)+"."+y.slice(G):"0."+new Array(1-G).join("0")+p1(v,Math.max(0,O+G-1))[0]},X:v=>Math.round(v).toString(16).toUpperCase(),x:v=>Math.round(v).toString(16)};function Qs(v){return v}var Ld,y0,$h,od=Array.prototype.map,q2=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Jh(v){var O=v.domain;return v.ticks=function(E){var y=O();return function vd(v,O,E){if(!((E=+E)>0))return[];if((v=+v)===(O=+O))return[v];const y=O=B))return[];const Xe=G-B+1,Ut=new Array(Xe);if(y)if(ue<0)for(let Qt=0;Qt0;){if((Qt=nc(ue,Xe,E))===Ut)return y[B]=ue,y[G]=Xe,O(y);if(Qt>0)ue=Math.floor(ue/Qt)*Qt,Xe=Math.ceil(Xe/Qt)*Qt;else{if(!(Qt<0))break;ue=Math.ceil(ue*Qt)/Qt,Xe=Math.floor(Xe*Qt)/Qt}Ut=Qt}return v},v}function cc(){var v=f1();return v.copy=function(){return function wd(v,O){return O.domain(v.domain()).range(v.range()).interpolate(v.interpolate()).clamp(v.clamp()).unknown(v.unknown())}(v,cc())},rd.apply(v,arguments),Jh(v)}function eu(v,O,E){v=+v,O=+O,E=(B=arguments.length)<2?(O=v,v=0,1):B<3?1:+E;for(var y=-1,B=0|Math.max(0,Math.ceil((O-v)/E)),G=new Array(B);++y0&&Xe>0&&(Ut+Xe+1>y&&(Xe=Math.max(1,y-Ut)),G.push(E.substring(B-=Xe,B+Xe)),!((Ut+=Xe+1)>y));)Xe=v[ue=(ue+1)%v.length];return G.reverse().join(O)}}(od.call(v.grouping,Number),v.thousands+""),E=void 0===v.currency?"":v.currency[0]+"",y=void 0===v.currency?"":v.currency[1]+"",B=void 0===v.decimal?".":v.decimal+"",G=void 0===v.numerals?Qs:function v0(v){return function(O){return O.replace(/[0-9]/g,function(E){return v[+E]})}}(od.call(v.numerals,String)),ue=void 0===v.percent?"%":v.percent+"",Xe=void 0===v.minus?"\u2212":v.minus+"",Ut=void 0===v.nan?"NaN":v.nan+"";function Qt(Pn,Fn){var xi=(Pn=Nc(Pn)).fill,yi=Pn.align,Ji=Pn.sign,qn=Pn.symbol,Gi=Pn.zero,ga=Pn.width,ta=Pn.comma,_a=Pn.precision,Na=Pn.trim,qi=Pn.type;"n"===qi?(ta=!0,qi="g"):g1[qi]||(void 0===_a&&(_a=12),Na=!0,qi="g"),(Gi||"0"===xi&&"="===yi)&&(Gi=!0,xi="0",yi="=");var kr=(Fn&&void 0!==Fn.prefix?Fn.prefix:"")+("$"===qn?E:"#"===qn&&/[boxX]/.test(qi)?"0"+qi.toLowerCase():""),Rr=("$"===qn?y:/[%p]/.test(qi)?ue:"")+(Fn&&void 0!==Fn.suffix?Fn.suffix:""),Po=g1[qi],xr=/[defgprs%]/.test(qi);function jr(Da){var No,bs,ls,Or=kr,nr=Rr;if("c"===qi)nr=Po(Da)+nr,Da="";else{var dl=(Da=+Da)<0||1/Da<0;if(Da=isNaN(Da)?Ut:Po(Math.abs(Da),_a),Na&&(Da=function Qh(v){e:for(var B,O=v.length,E=1,y=-1;E0&&(y=0)}return y>0?v.slice(0,y)+v.slice(B+1):v}(Da)),dl&&0==+Da&&"+"!==Ji&&(dl=!1),Or=(dl?"("===Ji?Ji:Xe:"-"===Ji||"("===Ji?"":Ji)+Or,nr=("s"!==qi||isNaN(Da)||void 0===Yo?"":q2[8+Yo/3])+nr+(dl&&"("===Ji?")":""),xr)for(No=-1,bs=Da.length;++No(ls=Da.charCodeAt(No))||ls>57){nr=(46===ls?B+Da.slice(No+1):Da.slice(No))+nr,Da=Da.slice(0,No);break}}ta&&!Gi&&(Da=O(Da,1/0));var cs=Or.length+Da.length+nr.length,or=cs>1)+Or+Da+nr+or.slice(cs);break;default:Da=or+Or+Da+nr}return G(Da)}return _a=void 0===_a?6:/[gprs]/.test(qi)?Math.max(1,Math.min(21,_a)):Math.max(0,Math.min(20,_a)),jr.toString=function(){return Pn+""},jr}return{format:Qt,formatPrefix:function pn(Pn,Fn){var xi=3*Math.max(-8,Math.min(8,Math.floor(Tc(Fn)/3))),yi=Math.pow(10,-xi),Ji=Qt(((Pn=Nc(Pn)).type="f",Pn),{suffix:q2[8+xi/3]});return function(qn){return Ji(yi*qn)}}}}(v),y0=Ld.format,$h=Ld.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class tu extends Map{constructor(O,E=iu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:E}}),null!=O)for(const[y,B]of O)this.set(y,B)}get(O){return super.get(ld(this,O))}has(O){return super.has(ld(this,O))}set(O,E){return super.set(function Bc({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):(v.set(y,E),E)}(this,O),E)}delete(O){return super.delete(function v1({_intern:v,_key:O},E){const y=O(E);return v.has(y)&&(E=v.get(y),v.delete(y)),E}(this,O))}}function ld({_intern:v,_key:O},E){const y=O(E);return v.has(y)?v.get(y):E}function iu(v){return null!==v&&"object"==typeof v?v.valueOf():v}Set;const x0=Symbol("implicit");function y1(){var v=new tu,O=[],E=[],y=x0;function B(G){let ue=v.get(G);if(void 0===ue){if(y!==x0)return y;v.set(G,ue=O.push(G)-1)}return E[ue%E.length]}return B.domain=function(G){if(!arguments.length)return O.slice();O=[],v=new tu;for(const ue of G)v.has(ue)||v.set(ue,O.push(ue)-1);return B},B.range=function(G){return arguments.length?(E=Array.from(G),B):E.slice()},B.unknown=function(G){return arguments.length?(y=G,B):y},B.copy=function(){return y1(O,E).unknown(y)},rd.apply(B,arguments),B}function zc(){var G,ue,v=y1().unknown(void 0),O=v.domain,E=v.range,y=0,B=1,Xe=!1,Ut=0,Qt=0,pn=.5;function Pn(){var Fn=O().length,xi=B=1)return+E(v[y-1],y-1,v);var y,B=(y-1)*O,G=Math.floor(B),ue=+E(v[G],G,v);return ue+(+E(v[G+1],G+1,v)-ue)*(B-G)}}function kd(){var y,v=[],O=[],E=[];function B(){var ue=0,Xe=Math.max(1,O.length);for(E=new Array(Xe-1);++ue0?E[Xe-1]:v[0],Xe({model:v});function a3(v,O){}function yu(v,O){if(1&v&&(i.j41(0,"span"),i.DNE(1,a3,0,0,"ng-template",5),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngTemplateOutlet",E.template)("ngTemplateOutletContext",i.eq3(2,vu,E.context))}}function k0(v,O){if(1&v&&i.nrm(0,"span",6),2&v){const E=i.XpG();i.Y8G("innerHTML",E.title,i.npT)}}function R0(v,O){if(1&v&&(i.j41(0,"header",4)(1,"span",5),i.EFF(2),i.k0s()()),2&v){const E=i.XpG();i.R7$(2),i.JRh(E.title)}}function O0(v,O){if(1&v){const E=i.RV6();i.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),i.bIt("select",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.labelClick.emit(B))})("activate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.activate(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.deactivate(B))}),i.k0s()()}if(2&v){const E=O.$implicit,y=i.XpG();i.R7$(),i.Y8G("label",E.label)("formattedLabel",E.formattedLabel)("color",E.color)("isActive",y.isActive(E))}}const P0=["*"];function uf(v,O){if(1&v&&i.nrm(0,"ngx-charts-scale-legend",4),2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("valueRange",E.legendOptions.domain)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)}}function hf(v,O){if(1&v){const E=i.RV6();i.j41(0,"ngx-charts-legend",5),i.bIt("labelClick",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelClick.emit(B))})("labelActivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelActivate.emit(B))})("labelDeactivate",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.legendLabelDeactivate.emit(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("horizontal",E.legendOptions&&E.legendOptions.position===E.LegendPosition.Below)("data",E.legendOptions.domain)("title",E.legendOptions.title)("colors",E.legendOptions.colors)("height",E.view[1])("width",E.legendWidth)("activeEntries",E.activeEntries)}}const ff=["ngx-charts-axis-label",""],bu=["ticksel"],N0=["ngx-charts-x-axis-ticks",""];function mf(v,O){1&v&&(g.qSk(),i.eu8(0))}function M1(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",12),i.EFF(1),i.k0s()),2&v){const E=O.$implicit;i.BMQ("y",12*O.index),i.R7$(),i.SpI(" ",E," ")}}function pf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,M1,2,2,"tspan",11),i.bVm()),2&v){const E=O.ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function E1(v,O){if(1&v&&i.DNE(0,pf,2,1,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function w1(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function r3(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,mf,1,0,"ng-container",10),i.k0s(),i.DNE(5,E1,1,1,"ng-template",null,1,i.C5r)(7,w1,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.BMQ("text-anchor",G.textAnchor)("transform",G.textTransform),i.R7$(),i.Y8G("ngIf",G.isWrapTicksSupported)("ngIfThen",y)("ngIfElse",B)}}function xu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,r3,9,6,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function Od(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",13),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.BMQ("y1",-E.gridLineHeight)}}function S1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Od,2,2,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.tickTransform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function gf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function F0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",17),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(2),i.SpI(" ",E.name," ")}}function _f(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",16),i.DNE(2,F0,5,2,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("y2",25+y.gridLineHeight)("transform",y.gridLineTransform()),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function T1(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",15),i.DNE(1,_f,3,4,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const vf=["ngx-charts-x-axis",""];function dc(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("rotateTicks",E.rotateTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickStroke",E.tickStroke)("scale",E.xScale)("orient",E.xOrient)("showGridLines",E.showGridLines)("gridLineHeight",E.dims.height)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("width",E.dims.width)("tickValues",E.ticks)("wrapTicks",E.wrapTicks)}}function Gc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.orientation.Bottom)("height",E.dims.height)("width",E.dims.width)}}const s3=["ngx-charts-y-axis-ticks",""];function o3(v,O){1&v&&(g.qSk(),i.eu8(0))}function Pd(v,O){if(1&v&&(g.qSk(),i.j41(0,"tspan",13),i.EFF(1),i.k0s()),2&v){const E=O.$implicit,y=O.index,B=i.XpG(6);i.BMQ("y",y*(8+B.tickSpacing)),i.R7$(),i.SpI(" ",E," ")}}function yf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,Pd,2,2,"tspan",12),i.bVm()),2&v){const E=i.XpG().ngIf;i.R7$(),i.Y8G("ngForOf",E)}}function Cu(v,O){if(1&v&&(g.qSk(),i.qex(0),i.DNE(1,yf,2,1,"ng-container",11),i.bVm()),2&v){const E=O.ngIf;i.XpG(2);const y=i.sdS(8);i.R7$(),i.Y8G("ngIf",E.length>1)("ngIfElse",y)}}function Mu(v,O){if(1&v&&i.DNE(0,Cu,2,2,"ng-container",8),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.Y8G("ngIf",y.tickChunks(E))}}function Eu(v,O){if(1&v&&i.EFF(0),2&v){const E=i.XpG().ngIf,y=i.XpG(2);i.SpI(" ",y.tickTrim(E)," ")}}function bf(v,O){if(1&v&&(g.qSk(),i.qex(0),i.j41(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",9),i.DNE(4,o3,1,0,"ng-container",10),i.k0s(),i.DNE(5,Mu,1,1,"ng-template",null,1,i.C5r)(7,Eu,1,1,"ng-template",null,2,i.C5r),i.bVm()),2&v){const E=O.ngIf,y=i.sdS(6),B=i.sdS(8),G=i.XpG(2);i.R7$(2),i.JRh(E),i.R7$(),i.xc7("font-size","12px"),i.BMQ("dy",G.dy)("x",G.x1)("y",G.y1)("text-anchor",G.textAnchor),i.R7$(),i.Y8G("ngIf",G.wrapTicks)("ngIfThen",y)("ngIfElse",B)}}function wu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",7),i.DNE(1,bf,9,10,"ng-container",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.tickFormat(E))}}function xf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"path",14)),2&v){const E=i.XpG();i.BMQ("d",E.referenceAreaPath)("transform",E.gridLineTransform())}}function Su(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",E.gridLineWidth)}}function Cf(v,O){if(1&v&&(g.qSk(),i.nrm(0,"line",16)),2&v){const E=i.XpG(3);i.BMQ("x2",-E.gridLineWidth)}}function B0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Su,1,1,"line",15)(2,Cf,1,1,"line",15),i.k0s()),2&v){const E=i.XpG(2);i.BMQ("transform",E.gridLineTransform()),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Left),i.R7$(),i.Y8G("ngIf",E.orient===E.Orientation.Right)}}function Fm(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,B0,3,3,"g",8),i.k0s()),2&v){const E=O.$implicit,y=i.XpG();i.BMQ("transform",y.transform(E)),i.R7$(),i.Y8G("ngIf",y.showGridLines)}}function Tu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g")(1,"title"),i.EFF(2),i.k0s(),i.j41(3,"text",19),i.EFF(4),i.k0s()()),2&v){const E=i.XpG(2).$implicit,y=i.XpG();i.R7$(2),i.JRh(y.tickTrim(y.tickFormat(E.value))),i.R7$(),i.BMQ("dy",y.dy)("y",-6)("x",y.gridLineWidth)("text-anchor",y.textAnchor),i.R7$(),i.SpI(" ",E.name," ")}}function l3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.nrm(1,"line",18),i.DNE(2,Tu,5,6,"g",8),i.k0s()),2&v){const E=i.XpG().$implicit,y=i.XpG();i.BMQ("transform",y.transform(E.value)),i.R7$(),i.BMQ("x2",y.gridLineWidth),i.R7$(),i.Y8G("ngIf",y.showRefLabels)}}function z0(v,O){if(1&v&&(g.qSk(),i.j41(0,"g",17),i.DNE(1,l3,3,3,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngIf",E.showRefLines)}}const U0=["ngx-charts-y-axis",""];function ho(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.emitTicksWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("trimTicks",E.trimTicks)("maxTickLength",E.maxTickLength)("tickFormatting",E.tickFormatting)("tickArguments",E.tickArguments)("tickValues",E.ticks)("tickStroke",E.tickStroke)("scale",E.yScale)("orient",E.yOrient)("showGridLines",E.showGridLines)("gridLineWidth",E.dims.width)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("height",E.dims.height)("wrapTicks",E.wrapTicks)}}function Du(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",3)),2&v){const E=i.XpG();i.Y8G("label",E.labelText)("offset",E.labelOffset)("orient",E.yOrient)("height",E.dims.height)("width",E.dims.width)}}const Mf=["ngx-charts-svg-linear-gradient",""];function cd(v,O){if(1&v&&(g.qSk(),i.nrm(0,"stop")),2&v){const E=O.$implicit;i.xc7("stop-color",E.color)("stop-opacity",E.opacity),i.BMQ("offset",E.offset+"%")}}const ku=["ngx-charts-grid-panel",""],Ru=["ngx-charts-grid-panel-series",""];function Hc(v,O){if(1&v&&(g.qSk(),i.nrm(0,"g",1)),2&v){const E=O.$implicit;i.AVh("grid-panel",!0)("odd","odd"===E.class)("even","even"===E.class),i.Y8G("height",E.height)("width",E.width)("x",E.x)("y",E.y)}}const Lf=["tooltipTemplate"],ud=(v,O)=>[v,O],Nu=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",Nf=["ngx-charts-bar",""];function Ff(v,O){if(1&v&&(g.qSk(),i.j41(0,"defs"),i.nrm(1,"g",2),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("orientation",E.orientation)("name",E.gradientId)("stops",E.gradientStops)}}const Bf=["ngx-charts-bar-label",""],q0=["ngx-charts-series-vertical",""];function e2(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("@.disabled",!y.animations)("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function Vu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,e2,1,22,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function y3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",2),i.bIt("select",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.onClick(B))})("activate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.activate.emit(B))})("deactivate",function(B){g.eBV(E);const G=i.XpG(2);return g.Njj(G.deactivate.emit(B))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("width",E.width)("height",E.height)("x",E.x)("y",E.y)("fill",E.color)("stops",E.gradientStops)("data",E.data)("orientation",y.barOrientation.Vertical)("roundEdges",E.roundEdges)("gradient",y.gradient)("ariaLabel",E.ariaLabel)("isActive",y.isActive(E.data))("tooltipDisabled",y.tooltipDisabled)("tooltipPlacement",y.tooltipPlacement)("tooltipType",y.tooltipType)("tooltipTitle",y.tooltipTemplate?void 0:E.tooltipText)("tooltipTemplate",y.tooltipTemplate)("tooltipContext",E.data)("noBarWhenZero",y.noBarWhenZero)("animations",y.animations)}}function b3(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,y3,1,20,"g",1),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.bars)("ngForTrackBy",E.trackBy)}}function Gu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",4),i.bIt("dimensionsChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.dataLabelHeightChanged.emit({size:B,index:G}))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("barX",E.x)("barY",E.y)("barWidth",E.width)("barHeight",E.height)("value",E.total)("valueFormatting",y.dataLabelFormatting)("orientation",y.barOrientation.Vertical)}}function Hu(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Gu,1,7,"g",3),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.barsForDataLabels)("ngForTrackBy",E.trackDataLabelBy)}}function ju(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",5),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.xScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function x3(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.yScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("referenceLines",E.referenceLines)("showRefLines",E.showRefLines)("showRefLabels",E.showRefLabels)("wrapTicks",E.wrapTicks)}}function Wu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",6),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateXAxisHeight(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("xScale",E.groupScale)("dims",E.dims)("showLabel",E.showXAxisLabel)("labelText",E.xAxisLabel)("trimTicks",E.trimXAxisTicks)("rotateTicks",E.rotateXAxisTicks)("maxTickLength",E.maxXAxisTickLength)("tickFormatting",E.xAxisTickFormatting)("ticks",E.xAxisTicks)("xAxisOffset",E.dataLabelMaxHeight.negative)("wrapTicks",E.wrapTicks)}}function Xf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",7),i.bIt("dimensionsChanged",function(B){g.eBV(E);const G=i.XpG();return g.Njj(G.updateYAxisWidth(B))}),i.k0s()}if(2&v){const E=i.XpG();i.Y8G("yScale",E.valueScale)("dims",E.dims)("showGridLines",E.showGridLines)("showLabel",E.showYAxisLabel)("labelText",E.yAxisLabel)("trimTicks",E.trimYAxisTicks)("maxTickLength",E.maxYAxisTickLength)("tickFormatting",E.yAxisTickFormatting)("ticks",E.yAxisTicks)("wrapTicks",E.wrapTicks)}}function Kf(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("@animationState","active")("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Yf(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Kf,1,17,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function Xu(v,O){if(1&v){const E=i.RV6();g.qSk(),i.j41(0,"g",9),i.bIt("select",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onClick(B,G))})("activate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onActivate(B,G))})("deactivate",function(B){const G=g.eBV(E).$implicit,ue=i.XpG(2);return g.Njj(ue.onDeactivate(B,G))})("dataLabelHeightChanged",function(B){const G=g.eBV(E).index,ue=i.XpG(2);return g.Njj(ue.onDataLabelMaxHeightChanged(B,G))}),i.k0s()}if(2&v){const E=O.$implicit,y=i.XpG(2);i.Y8G("activeEntries",y.activeEntries)("xScale",y.innerScale)("yScale",y.valueScale)("colors",y.colors)("series",E.series)("dims",y.dims)("gradient",y.gradient)("tooltipDisabled",y.tooltipDisabled)("tooltipTemplate",y.tooltipTemplate)("showDataLabel",y.showDataLabel)("dataLabelFormatting",y.dataLabelFormatting)("seriesName",E.name)("roundEdges",y.roundEdges)("animations",y.animations)("noBarWhenZero",y.noBarWhenZero),i.BMQ("transform",y.groupTransform(E))}}function Ku(v,O){if(1&v&&(g.qSk(),i.j41(0,"g"),i.DNE(1,Xu,1,16,"g",8),i.k0s()),2&v){const E=i.XpG();i.R7$(),i.Y8G("ngForOf",E.results)("ngForTrackBy",E.trackBy)}}function o2(v,O,E){E=E||{};let y,B,G,ue=null,Xe=0;function Ut(){Xe=!1===E.leading?0:+new Date,ue=null,G=v.apply(y,B)}return function(){const Qt=+new Date;!Xe&&!1===E.leading&&(Xe=Qt);const pn=O-(Qt-Xe);return y=this,B=arguments,pn<=0?(clearTimeout(ue),ue=null,Xe=Qt,G=v.apply(y,B)):!ue&&!1!==E.trailing&&(ue=setTimeout(Ut,pn)),G}}function rp(v,O){return function(y,B,G){return{configurable:!0,enumerable:G.enumerable,get:function(){return Object.defineProperty(this,B,{configurable:!0,enumerable:G.enumerable,value:o2(G.value,v,O)}),this[B]}}}}var Ua=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v.Center="center",v}(Ua||{});function T3(v,O,E){return E===Ua.Top?v.top-7:E===Ua.Bottom?v.top+v.height-O.height+7:E===Ua.Center?v.top+v.height/2-O.height/2:void 0}function i4(v,O,E){return E===Ua.Left?v.left-7:E===Ua.Right?v.left+v.width-O.width+7:E===Ua.Center?v.left+v.width/2-O.width/2:void 0}class Qo{static calculateVerticalAlignment(O,E,y){let B=T3(O,E,y);return B+E.height>window.innerHeight&&(B=window.innerHeight-E.height),B}static calculateVerticalCaret(O,E,y,B){let G;B===Ua.Top&&(G=O.height/2-y.height/2+7),B===Ua.Bottom&&(G=E.height-O.height/2-y.height/2-7),B===Ua.Center&&(G=E.height/2-y.height/2);const ue=T3(O,E,B);return ue+E.height>window.innerHeight&&(G+=ue+E.height-window.innerHeight),G}static calculateHorizontalAlignment(O,E,y){let B=i4(O,E,y);return B+E.width>window.innerWidth&&(B=window.innerWidth-E.width),B}static calculateHorizontalCaret(O,E,y,B){let G;B===Ua.Left&&(G=O.width/2-y.width/2+7),B===Ua.Right&&(G=E.width-O.width/2-y.width/2-7),B===Ua.Center&&(G=E.width/2-y.width/2);const ue=i4(O,E,B);return ue+E.width>window.innerWidth&&(G+=ue+E.width-window.innerWidth),G}static shouldFlip(O,E,y,B){let G=!1;return y===Ua.Right&&O.left+O.width+E.width+B>window.innerWidth&&(G=!0),y===Ua.Left&&O.left-E.width-B<0&&(G=!0),y===Ua.Top&&O.top-E.height-B<0&&(G=!0),y===Ua.Bottom&&O.top+O.height+E.height+B>window.innerHeight&&(G=!0),G}static positionCaret(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=-7,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Left?(Xe=E.width,ue=Qo.calculateVerticalCaret(y,E,B,G)):O===Ua.Top?(ue=E.height,Xe=Qo.calculateHorizontalCaret(y,E,B,G)):O===Ua.Bottom&&(ue=-7,Xe=Qo.calculateHorizontalCaret(y,E,B,G)),{top:ue,left:Xe}}static positionContent(O,E,y,B,G){let ue=0,Xe=0;return O===Ua.Right?(Xe=y.left+y.width+B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Left?(Xe=y.left-E.width-B,ue=Qo.calculateVerticalAlignment(y,E,G)):O===Ua.Top?(ue=y.top-E.height-B,Xe=Qo.calculateHorizontalAlignment(y,E,G)):O===Ua.Bottom&&(ue=y.top+y.height+B,Xe=Qo.calculateHorizontalAlignment(y,E,G)),{top:ue,left:Xe}}static determinePlacement(O,E,y,B){if(Qo.shouldFlip(y,E,O,B)){if(O===Ua.Right)return Ua.Left;if(O===Ua.Left)return Ua.Right;if(O===Ua.Top)return Ua.Bottom;if(O===Ua.Bottom)return Ua.Top}return O}}let sp=(()=>{var v;class O{get cssClasses(){let y="ngx-charts-tooltip-content";return y+=` position-${this.placement}`,y+=` type-${this.type}`,y+=` ${this.cssClass}`,y}constructor(y,B,G){this.element=y,this.renderer=B,this.platformId=G}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,o.UE)(this.platformId))return;const y=this.element.nativeElement,B=this.host.nativeElement.getBoundingClientRect();if(!B.height&&!B.width)return;const G=y.getBoundingClientRect();this.checkFlip(B,G),this.positionContent(y,B,G),this.showCaret&&this.positionCaret(B,G),setTimeout(()=>this.renderer.addClass(y,"animate"),1)}positionContent(y,B,G){const{top:ue,left:Xe}=Qo.positionContent(this.placement,G,B,this.spacing,this.alignment);this.renderer.setStyle(y,"top",`${ue}px`),this.renderer.setStyle(y,"left",`${Xe}px`)}positionCaret(y,B){const G=this.caretElm.nativeElement,ue=G.getBoundingClientRect(),{top:Xe,left:Ut}=Qo.positionCaret(this.placement,B,y,ue,this.alignment);this.renderer.setStyle(G,"top",`${Xe}px`),this.renderer.setStyle(G,"left",`${Ut}px`)}checkFlip(y,B){this.placement=Qo.determinePlacement(this.placement,B,y,this.spacing)}onWindowResize(){this.position()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.sFG),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-tooltip-content"]],viewQuery:function(B,G){if(1&B&&i.GBs(_u,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.caretElm=ue.first)}},hostVars:2,hostBindings:function(B,G){1&B&&i.bIt("resize",function(){return G.onWindowResize()},i.tSv),2&B&&i.HbH(G.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},standalone:!1,decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.nrm(1,"span",1,0),i.j41(3,"div",2),i.DNE(4,yu,2,4,"span",3)(5,k0,1,1,"span",4),i.k0s()()),2&B&&(i.R7$(),i.HbH(i.VkB("tooltip-caret position-",G.placement)),i.Y8G("hidden",!G.showCaret),i.R7$(3),i.Y8G("ngIf",!G.title),i.R7$(),i.Y8G("ngIf",G.title))},dependencies:[D.bT,D.T3],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:#000000bf;font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translateZ(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}))}return v(),(0,e.Cg)([rp(100)],O.prototype,"onWindowResize",null),O})();class D3{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,E){E=this.assignDefaults(E);const y=this.injectComponent(O,E);return this.register(O,y),y}destroy(O){const E=this.components.get(O.componentType);if(E&&E.length){const y=E.indexOf(O);y>-1&&(E[y].destroy(),E.splice(y,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const E=this.components.get(O);if(E&&E.length){let y=E.length-1;for(;y>=0;)this.destroy(E[y--])}}injectComponent(O,E){return this.injectionService.appendComponent(O,E)}assignDefaults(O){const E={...this.defaults.inputs},y={...this.defaults.outputs};return!O.inputs&&!O.outputs&&(O={inputs:O}),E&&(O.inputs={...E,...O.inputs}),y&&(O.outputs={...y,...O.outputs}),O}register(O,E){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(E)}}let Ju=(()=>{var v;class O{static setGlobalRootViewContainer(y){O.globalRootViewContainer=y}constructor(y,B){this.applicationRef=y,this.injector=B}getRootViewContainer(){if(this._container)return this._container;if(O.globalRootViewContainer)return O.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(y){this._container=y}getComponentRootNode(y){return function A3(v){return v.element}(y)?y.element.nativeElement:y.hostView&&y.hostView.rootNodes.length>0?y.hostView.rootNodes[0]:y.location.nativeElement}getRootViewContainerNode(y){return this.getComponentRootNode(y)}projectComponentBindings(y,B){if(B){if(void 0!==B.inputs){const G=Object.getOwnPropertyNames(B.inputs);for(const ue of G)y.instance[ue]=B.inputs[ue]}if(void 0!==B.outputs){const G=Object.getOwnPropertyNames(B.outputs);for(const ue of G)y.instance[ue]=B.outputs[ue]}}return y}appendComponent(y,B={},G){G||(G=this.getRootViewContainer());const ue=this.getComponentRootNode(G),Xe=new A.aI(ue,this.applicationRef,this.injector),Ut=new A.A8(y),Qt=Xe.attach(Ut);return this.projectComponentBindings(Qt,B),Qt}static#e=v=()=>(this.globalRootViewContainer=null,this.\u0275fac=function(B){return new(B||O)(g.KVO(i.o8S),g.KVO(g.zZn))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})(),l2=(()=>{var v;class O extends D3{constructor(y){super(y),this.type=sp}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(g.KVO(Ju))},this.\u0275prov=g.jDH({token:O,factory:O.\u0275fac}))}return v(),O})();var Ic=function(v){return v.Right="right",v.Below="below",v}(Ic||{}),c2=function(v){return v.ScaleLegend="scaleLegend",v.Legend="legend",v}(c2||{}),ma=function(v){return v.Time="time",v.Linear="linear",v.Ordinal="ordinal",v.Quantile="quantile",v}(ma||{});function jd(v){return v instanceof Date?v.toLocaleDateString():v.toLocaleString()}let a4=(()=>{var v;class O{constructor(){this.isActive=!1,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.toggle=new i.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},standalone:!1,decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(B,G){1&B&&(i.j41(0,"span",0),i.bIt("click",function(){return G.select.emit(G.formattedLabel)}),i.j41(1,"span",1),i.bIt("click",function(){return G.toggle.emit(G.formattedLabel)}),i.k0s(),i.j41(2,"span",2),i.EFF(3),i.k0s()()),2&B&&(i.AVh("active",G.isActive),i.Y8G("title",G.formattedLabel),i.R7$(),i.xc7("background-color",G.color),i.R7$(2),i.SpI(" ",G.trimmedLabel," "))},encapsulation:2,changeDetection:0}))}return v(),O})(),r4=(()=>{var v;class O{constructor(y){this.cd=y,this.horizontal=!1,this.labelClick=new i.bkB,this.labelActivate=new i.bkB,this.labelDeactivate=new i.bkB,this.legendEntries=[]}ngOnChanges(y){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const y=[];for(const B of this.data){const G=jd(B);-1===y.findIndex(Xe=>Xe.label===G)&&y.push({label:B,formattedLabel:G,color:this.colors.getColor(B)})}return y}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.label===G.name)}activate(y){this.labelActivate.emit(y)}deactivate(y){this.labelDeactivate.emit(y)}trackBy(y,B){return B.label}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(p.gRc))},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},standalone:!1,features:[i.OA$],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(B,G){1&B&&(i.j41(0,"div"),i.DNE(1,R0,3,1,"header",0),i.j41(2,"div",1)(3,"ul",2),i.DNE(4,O0,2,4,"li",3),i.k0s()()()),2&B&&(i.xc7("width",G.width,"px"),i.R7$(),i.Y8G("ngIf",(null==G.title?null:G.title.length)>0),i.R7$(2),i.xc7("max-height",G.height-45,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(),i.Y8G("ngForOf",G.legendEntries)("ngForTrackBy",G.trackBy))},dependencies:[D.Sq,D.bT,a4],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:#0000000d}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}))}return v(),O})(),L3=(()=>{var v;class O{constructor(){this.horizontal=!1}ngOnChanges(y){const B=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${B})`}gradientString(y,B){B.push(1);const G=[];return y.reverse().forEach((ue,Xe)=>{G.push(`${ue} ${Math.round(100*B[Xe])}%`)}),G.join(", ")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},standalone:!1,features:[i.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(B,G){1&B&&(i.j41(0,"div",0)(1,"div",1)(2,"span"),i.EFF(3),i.k0s()(),i.nrm(4,"div",2),i.j41(5,"div",1)(6,"span"),i.EFF(7),i.k0s()()()),2&B&&(i.xc7("height",G.horizontal?void 0:G.height,"px")("width",G.width,"px"),i.AVh("horizontal-legend",G.horizontal),i.R7$(3),i.JRh(G.valueRange[1].toLocaleString()),i.R7$(),i.xc7("background",G.gradient),i.R7$(3),i.JRh(G.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}))}return v(),O})(),s4=(()=>{var v;class O{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new i.bkB,this.legendLabelActivate=new i.bkB,this.legendLabelDeactivate=new i.bkB,this.LegendPosition=Ic,this.LegendType=c2}ngOnChanges(y){this.update()}update(){let y=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ic.Right)&&(y=this.legendType===c2.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-y)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ic.Right?this.chartWidth:Math.floor(this.view[0]*y/12)}getLegendType(){return this.legendOptions.scaleType===ma.Linear?c2.ScaleLegend:c2.Legend}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},standalone:!1,features:[i.Jv_([l2]),i.OA$],ngContentSelectors:P0,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(B,G){1&B&&(i.NAR(),i.j41(0,"div",0),g.qSk(),i.j41(1,"svg",1),i.SdG(2),i.k0s(),i.DNE(3,uf,1,5,"ngx-charts-scale-legend",2)(4,hf,1,7,"ngx-charts-legend",3),i.k0s()),2&B&&(i.xc7("width",G.view[0],"px")("height",G.view[1],"px"),i.R7$(),i.BMQ("width",G.chartWidth)("height",G.view[1]),i.R7$(2),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.ScaleLegend),i.R7$(),i.Y8G("ngIf",G.showLegend&&G.legendType===G.LegendType.Legend))},dependencies:[D.bT,r4,L3],encapsulation:2,changeDetection:0}))}return v(),O})(),o4=(()=>{var v;class O{constructor(y,B){this.element=y,this.zone=B,this.visible=new i.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const y=()=>{if(!this.element)return;const{offsetHeight:B,offsetWidth:G}=this.element.nativeElement;B&&G?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>y())})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi))},this.\u0275dir=i.FsC({type:O,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1}))}return v(),O})();function eh(v){return"[object Date]"===toString.call(v)}let d2=(()=>{var v;class O{constructor(y,B,G,ue){this.chartElement=y,this.zone=B,this.cd=G,this.platformId=ue,this.scheme="cool",this.schemeType=ma.Ordinal,this.animations=!0,this.select=new i.bkB}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new o4(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(y){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const y=this.getContainerDims();y&&(this.width=y.width,this.height=y.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let y,B;const G=this.chartElement.nativeElement;if((0,o.UE)(this.platformId)&&null!==G.parentNode){const ue=G.parentNode.getBoundingClientRect();y=ue.width,B=ue.height}return y&&B?{width:y,height:B}:null}formatDates(){for(let y=0;y{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=B}cloneData(y){const B=[];for(const G of y){const ue={};if(void 0!==G.name&&(ue.name=G.name),void 0!==G.value&&(ue.value=G.value),void 0!==G.series){ue.series=[];for(const Xe of G.series){const Ut=Object.assign({},Xe);ue.series.push(Ut)}}void 0!==G.extra&&(ue.extra=JSON.parse(JSON.stringify(G.extra))),void 0!==G.source&&(ue.source=G.source),void 0!==G.target&&(ue.target=G.target),B.push(ue)}return B}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT),i.rXU(i.SKi),i.rXU(p.gRc),i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[i.OA$],decls:1,vars:0,template:function(B,G){1&B&&i.nrm(0,"div")},encapsulation:2}))}return v(),O})();var Hr=function(v){return v.Top="top",v.Bottom="bottom",v.Left="left",v.Right="right",v}(Hr||{});let I3=(()=>{var v;class O{constructor(y){this.textHeight=25,this.margin=5,this.element=y.nativeElement}ngOnChanges(y){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Hr.Top:case Hr.Bottom:this.y=this.offset,this.x=this.width/2;break;case Hr.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Hr.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},standalone:!1,features:[i.OA$],attrs:ff,decls:2,vars:6,template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text"),i.EFF(1),i.k0s()),2&B&&(i.BMQ("stroke-width",G.strokeWidth)("x",G.x)("y",G.y)("text-anchor",G.textAnchor)("transform",G.transform),i.R7$(),i.SpI(" ",G.label," "))},encapsulation:2,changeDetection:0}))}return v(),O})();function l4(v,O=16){return"string"!=typeof v?"number"==typeof v?v+"":"":(v=v.trim()).length<=O?v:`${v.slice(0,O)}...`}function k3(v,O){if(v.length>O){const E=[],y=Math.floor(v.length/O);for(let B=0;B{const Xe=(G.pop()||"")+" ";return Xe.length+ue.length>O?[...G,Xe.trim(),ue.trim()]:[...G,Xe+ue]},[]);else{let G=0;for(;GE&&(B=B.splice(0,E),B[B.length-1]+="..."),B}var vl=function(v){return v.Start="start",v.Middle="middle",v.End="end",v}(vl||{});function fc(v,O,E,y,B,[G,ue,Xe,Ut]){let Qt="";return Qt=`M${[v+B,O]}`,Qt+="h"+((E=0===(E=Math.floor(E))?1:E)-2*B),Qt+=ue?`a${[B,B]} 0 0 1 ${[B,B]}`:`h${B}v${B}`,Qt+="v"+((y=0===(y=Math.floor(y))?1:y)-2*B),Qt+=Ut?`a${[B,B]} 0 0 1 ${[-B,B]}`:`v${B}h${-B}`,Qt+="h"+(2*B-E),Qt+=Xe?`a${[B,B]} 0 0 1 ${[-B,-B]}`:`h${-B}v${-B}`,Qt+="v"+(2*B-y),Qt+=G?`a${[B,B]} 0 0 1 ${[B,-B]}`:`v${-B}h${B}`,Qt+="z",Qt}let th=(()=>{var v;class O{get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new i.bkB,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=vl.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16,this.referenceLineLength=0}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);y!==this.height&&(this.height=y,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale;this.adjustedScale=this.scale.bandwidth?function(ue){return this.scale(ue)+.5*this.scale.bandwidth()}:this.scale,this.ticks=this.getTicks();const B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.orient){case Hr.Bottom:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.x2=this.innerTickSize*B,this.x1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.End,this.y2=this.innerTickSize*-B,this.y1=this.tickSpacing*-B,this.dx=".32em";break;case Hr.Top:this.transform=function(ue){return"translate("+this.adjustedScale(ue)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dx=B<0?"0em":".71em";break;case Hr.Right:this.transform=function(ue){return"translate(0,"+this.adjustedScale(ue)+")"},this.textAnchor=vl.Start,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dx=".32em"}this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(ue){return"Date"===ue.constructor.name?ue.toLocaleDateString():ue.toLocaleString()};const G=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.textTransform="",G&&0!==G?(this.textTransform=`rotate(${G})`,this.textAnchor=vl.End,this.verticalSpacing=10):this.textAnchor=vl.Middle,setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(this.refMax,25-this.gridLineHeight,this.refMin-this.refMax,this.gridLineHeight,0,[!1,!1,!1,!1])}getRotationAngle(y){let B=0;this.maxTicksLength=0;for(let Fn=0;Fnthis.maxTicksLength&&(this.maxTicksLength=yi)}const Xe=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let Ut=Xe;const Qt=Math.floor(this.width/y.length);for(;Ut>Qt&&B>-90;)B-=30,Ut=Math.cos(B*(Math.PI/180))*Xe;let pn=14;if(this.isWrapTicksSupported){const Fn=this.ticks.reduce((yi,Ji)=>Ji.length>yi.length?Ji:yi,"");pn=14*(this.tickChunks(Fn).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(Fn)}const Pn=0!==B?Math.max(Math.abs(Math.sin(B*Math.PI/180))*this.maxTickLength*7,10):pn;return this.approxHeight=Math.min(Pn,200),this.showRefLines&&this.referenceLines&&this.setReferencelines(),B}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(100);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.width/y)}tickTransform(y){return"translate("+this.adjustedScale(y)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getMaxPossibleLengthForTick(y){if(this.scale.bandwidth){const G=Math.floor(this.scale.bandwidth()/7),ue=y.slice(0,G);return Math.max(ue.length,this.maxTickLength)}return this.maxTickLength}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){let G=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(G<=1)return[this.tickTrim(y)];let ue=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,o.UE)(this.platformId)||(ue=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),G=Math.min(G,5),c4(y,ue,G<1?1:G)}return[this.tickTrim(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:N0,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"],[1,"reference-area"],[1,"ref-line"],["y1","25",1,"refline-path","gridline-path-vertical"],["transform","rotate(-270) translate(5, -5)",1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,xu,2,2,"g",3),i.k0s(),i.DNE(3,S1,2,2,"g",4)(4,gf,1,2,"path",5)(5,T1,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),nh=(()=>{var v;class O{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Hr.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Hr}ngOnChanges(y){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:y}){const B=y+25+5;B!==this.labelOffset&&(this.labelOffset=B,setTimeout(()=>{this.dimensionsChanged.emit({height:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(th,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:vf,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"dimensionsChanged","trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,dc,1,16,"g",0)(2,Gc,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.xAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,th],encapsulation:2,changeDetection:0}))}return v(),O})(),d4=(()=>{var v;class O{constructor(y){this.platformId=y,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=vl.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Hr}ngOnChanges(y){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,o.UE)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const y=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);y!==this.width&&(this.width=y,this.dimensionsChanged.emit({width:y}),setTimeout(()=>this.updateDims()))}update(){const y=this.scale,B=this.orient===Hr.Top||this.orient===Hr.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:y.tickFormat?y.tickFormat.apply(y,this.tickArguments):function(G){return"Date"===G.constructor.name?G.toLocaleDateString():G.toLocaleString()},this.adjustedScale=y.bandwidth?G=>{const ue=y(G)+.5*y.bandwidth();if(this.wrapTicks&&G.toString().length>this.maxTickLength){const Xe=this.tickChunks(G).length;if(1===Xe)return ue;const pn=.5*y.bandwidth()-8*Xe*.5;return y(G)+pn}return ue}:y,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Hr.Top:case Hr.Bottom:this.transform=function(G){return"translate("+this.adjustedScale(G)+",0)"},this.textAnchor=vl.Middle,this.y2=this.innerTickSize*B,this.y1=this.tickSpacing*B,this.dy=B<0?"0em":".71em";break;case Hr.Left:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.End,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dy=".32em";break;case Hr.Right:this.transform=function(G){return"translate(0,"+this.adjustedScale(G)+")"},this.textAnchor=vl.Start,this.x2=this.innerTickSize*-B,this.x1=this.tickSpacing*-B,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(y=>y.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(y=>y.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=fc(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let y;const B=this.getMaxTicks(20),G=this.getMaxTicks(50);return this.tickValues?y=this.tickValues:this.scale.ticks?y=this.scale.ticks.apply(this.scale,[G]):(y=this.scale.domain(),y=k3(y,B)),y}getMaxTicks(y){return Math.floor(this.height/y)}tickTransform(y){return`translate(${this.adjustedScale(y)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(y){return this.trimTicks?l4(y,this.maxTickLength):y}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(G=>this.tickTrim(this.tickFormat(G)).length))}tickChunks(y){if(y.toString().length>this.maxTickLength&&this.scale.bandwidth){const B=this.maxTickLength,G=Math.floor(this.scale.bandwidth()/15);return G<=1?[this.tickTrim(y)]:c4(y,B,Math.min(G,5))}return[this.tickFormat(y)]}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(B,G){if(1&B&&i.GBs(bu,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksElement=ue.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:s3,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],[1,"ref-line"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g",null,0),i.DNE(2,wu,2,2,"g",3),i.k0s(),i.DNE(3,xf,1,2,"path",4)(4,Fm,2,2,"g",5)(5,z0,2,1,"g",6)),2&B&&(i.R7$(2),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngIf",G.referenceLineLength>1&&G.refMax&&G.refMin&&G.showRefLines),i.R7$(),i.Y8G("ngForOf",G.ticks),i.R7$(),i.Y8G("ngForOf",G.referenceLines))},dependencies:[D.Sq,D.bT],encapsulation:2,changeDetection:0}))}return v(),O})(),u4=(()=>{var v;class O{constructor(){this.showGridLines=!1,this.yOrient=Hr.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new i.bkB,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(y){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Hr.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:y}){y!==this.labelOffset&&this.yOrient===Hr.Right?(this.labelOffset=y+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0)):y!==this.labelOffset&&(this.labelOffset=y,setTimeout(()=>{this.dimensionsChanged.emit({width:y})},0))}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(B,G){if(1&B&&i.GBs(d4,5),2&B){let ue;i.mGM(ue=i.lsd())&&(G.ticksComponent=ue.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:U0,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"dimensionsChanged","trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"g"),i.DNE(1,ho,1,15,"g",0)(2,Du,1,5,"g",1),i.k0s()),2&B&&(i.BMQ("class",G.yAxisClassName)("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.yScale),i.R7$(),i.Y8G("ngIf",G.showLabel))},dependencies:[D.bT,I3,d4],encapsulation:2,changeDetection:0}))}return v(),O})(),R3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD]}))}return v(),O})();var U1=function(v){return v.popover="popover",v.tooltip="tooltip",v}(U1||{}),Wd=function(v){return v[v.all="all"]="all",v[v.focus="focus"]="focus",v[v.mouseover="mouseover"]="mouseover",v}(Wd||{});let u2=(()=>{var v;class O{get listensForFocus(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.focus}get listensForHover(){return this.tooltipShowEvent===Wd.all||this.tooltipShowEvent===Wd.mouseover}constructor(y,B,G){this.tooltipService=y,this.viewContainerRef=B,this.renderer=G,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=Ua.Top,this.tooltipAlignment=Ua.Center,this.tooltipType=U1.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Wd.all,this.tooltipImmediateExit=!1,this.show=new i.bkB,this.hide=new i.bkB}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(y){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(y))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(y){if(this.component||this.tooltipDisabled)return;const B=y?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const G=this.createBoundOptions();this.component=this.tooltipService.create(G),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},B)}addHideListeners(y){this.mouseEnterContentEvent=this.renderer.listen(y,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(y,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",B=>{y.contains(B.target)||this.hideTooltip()}))}hideTooltip(y=!1){if(!this.component)return;const B=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),y?B():this.timeout=setTimeout(B,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(l2),i.rXU(i.c1b),i.rXU(i.sFG))},this.\u0275dir=i.FsC({type:O,selectors:[["","ngx-tooltip",""]],hostBindings:function(B,G){1&B&&i.bIt("focusin",function(){return G.onFocus()})("blur",function(){return G.onBlur()})("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(Xe){return G.onMouseLeave(Xe.target)})("click",function(){return G.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"},standalone:!1}))}return v(),O})(),h4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({providers:[Ju,l2],imports:[D.MD]}))}return v(),O})();const h2={};function f2(){let v=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return v=`a${v}`,h2[v]?f2():(h2[v]=!0,v)}var $s=function(v){return v.Vertical="vertical",v.Horizontal="horizontal",v}($s||{});let V1=(()=>{var v;class O{constructor(){this.orientation=$s.Vertical}ngOnChanges(y){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===$s.Horizontal?this.x2="100%":this.orientation===$s.Vertical&&(this.y1="100%")}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},standalone:!1,features:[i.OA$],attrs:Mf,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"linearGradient",0),i.DNE(1,cd,1,5,"stop",1),i.k0s()),2&B&&(i.Y8G("id",G.name),i.BMQ("x1",G.x1)("y1",G.y1)("x2",G.x2)("y2",G.y2),i.R7$(),i.Y8G("ngForOf",G.stops))},dependencies:[D.Sq],encapsulation:2,changeDetection:0}))}return v(),O})(),Xd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},standalone:!1,attrs:ku,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(B,G){1&B&&(g.qSk(),i.nrm(0,"rect",0)),2&B&&i.BMQ("height",G.height)("width",G.width)("x",G.x)("y",G.y)},encapsulation:2,changeDetection:0}))}return v(),O})();var Qc=function(v){return v.Odd="odd",v.Even="even",v}(Qc||{});let rh,P3=(()=>{var v;class O{ngOnChanges(y){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(y=>{let B,G,ue,Xe,Ut,Qt=Qc.Odd;if(this.orient===$s.Vertical){const pn=this.xScale(y.name);Number.parseInt((pn/this.xScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.xScale.bandwidth()*this.xScale.paddingInner(),G=this.xScale.bandwidth()+B,ue=this.dims.height,Xe=this.xScale(y.name)-B/2,Ut=0}else if(this.orient===$s.Horizontal){const pn=this.yScale(y.name);Number.parseInt((pn/this.yScale.step()).toString(),10)%2==1&&(Qt=Qc.Even),B=this.yScale.bandwidth()*this.yScale.paddingInner(),G=this.dims.width,ue=this.yScale.bandwidth()+B,Xe=0,Ut=this.yScale(y.name)-B/2}return{name:y.name,class:Qt,height:ue,width:G,x:Xe,y:Ut}})}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},standalone:!1,features:[i.OA$],attrs:Ru,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(B,G){1&B&&i.DNE(0,Hc,1,10,"g",0),2&B&&i.Y8G("ngForOf",G.gridPanels)},dependencies:[D.Sq,Xd],encapsulation:2,changeDetection:0}))}return v(),O})();typeof window<"u"?rh=window:typeof global<"u"&&(rh=global);let cl=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[D.MD,R3,h4,D.MD,R3,h4]}))}return v(),O})();function B3({width:v,height:O,margins:E,showXAxis:y=!1,showYAxis:B=!1,xAxisHeight:G=0,yAxisWidth:ue=0,showXLabel:Xe=!1,showYLabel:Ut=!1,showLegend:Qt=!1,legendType:pn=ma.Ordinal,legendPosition:Pn=Ic.Right,columns:Fn=12}){let xi=E[3],yi=v,Ji=O-E[0]-E[2];return Qt&&Pn===Ic.Right&&(Fn-=pn===ma.Ordinal?2:1),yi=yi*Fn/12,yi=yi-E[1]-E[3],y&&(Ji-=5,Ji-=G,Xe&&(Ji-=30)),B&&(yi-=5,yi-=ue,xi+=ue,xi+=10,Ut&&(yi-=30,xi+=30)),yi=Math.max(0,yi),Ji=Math.max(0,Ji),{width:Math.floor(yi),height:Math.floor(Ji),xOffset:Math.floor(xi)}}const hp=[{name:"vivid",selectable:!0,group:ma.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:ma.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:ma.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:ma.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:ma.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:ma.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:ma.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:ma.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:ma.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:ma.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:ma.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:ma.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:ma.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:ma.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:ma.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class lh{constructor(O,E,y,B){"string"==typeof O&&(O=hp.find(G=>G.name===O)),this.colorDomain=O.domain,this.scaleType=E,this.domain=y,this.customColors=B,this.scale=this.generateColorScheme(O,E,this.domain)}generateColorScheme(O,E,y){let B;switch("string"==typeof O&&(O=hp.find(G=>G.name===O)),E){case ma.Quantile:B=kd().range(O.domain).domain(y);break;case ma.Ordinal:B=y1().range(O.domain).domain(y);break;case ma.Linear:{const G=[...O.domain];1===G.length&&(G.push(G[0]),this.colorDomain=G);const ue=eu(0,1,1/G.length);B=cc().range(G).domain(ue)}}return B}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===ma.Linear){const E=cc().domain(this.domain).range([0,1]);return this.scale(E(O))}{if("function"==typeof this.customColors)return this.customColors(O);const E=O.toString();let y;return this.customColors&&this.customColors.length>0&&(y=this.customColors.find(B=>B.name.toLowerCase()===E.toLowerCase())),y?y.value:this.scale(O)}}getLinearGradientStops(O,E){void 0===E&&(E=this.domain[0]);const y=cc().domain(this.domain).range([0,1]),B=zc().domain(this.colorDomain).range([0,1]),G=this.getColor(O),ue=y(E),Xe=this.getColor(E),Ut=y(O);let Qt=1,pn=ue;const Pn=[];for(Pn.push({color:Xe,offset:ue,originalOffset:ue,opacity:1});pn=(Ut-B.bandwidth()).toFixed(4))break;Pn.push({color:Fn,offset:xi,opacity:1}),pn=xi,Qt++}}if(Pn[Pn.length-1].offset<100&&Pn.push({color:G,offset:Ut,opacity:1}),Ut===ue)Pn[0].offset=0,Pn[1].offset=100;else if(100!==Pn[Pn.length-1].offset)for(const Fn of Pn)Fn.offset=(Fn.offset-ue)/(Ut-ue)*100;return Pn}}let U3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),V3=(()=>{var v;class O{constructor(y){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.hasGradient=!1,this.hideBar=!1,this.element=y.nativeElement}ngOnChanges(y){y.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+f2().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const y=ui(this.element).select(".bar"),B=this.getPath();this.animations?y.transition().duration(500).attr("d",B):y.attr("d",B)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let B,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,1,this.height,0,this.edges)):this.orientation===$s.Vertical?B=fc(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===$s.Horizontal&&(B=fc(this.x,this.y,1,this.height,0,this.edges)),B}getPath(){let B,y=this.getRadius();return this.roundEdges?this.orientation===$s.Vertical?(y=Math.min(this.height,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):this.orientation===$s.Horizontal&&(y=Math.min(this.width,y),B=fc(this.x,this.y,this.width,this.height,y,this.edges)):B=fc(this.x,this.y,this.width,this.height,y,this.edges),B}getRadius(){let y=0;return this.roundEdges&&this.height>5&&this.width>5&&(y=Math.floor(Math.min(5,this.height/2,this.width/2))),y}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let y=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===$s.Vertical?y=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===$s.Horizontal&&(y=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),y}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===$s.Vertical&&0===this.height||this.orientation===$s.Horizontal&&0===this.width)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(B,G){1&B&&i.bIt("mouseenter",function(){return G.onMouseEnter()})("mouseleave",function(){return G.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.OA$],attrs:Nf,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(B,G){1&B&&(i.DNE(0,Ff,2,3,"defs",0),g.qSk(),i.j41(1,"path",1),i.bIt("click",function(){return G.select.emit(G.data)}),i.k0s()),2&B&&(i.Y8G("ngIf",G.hasGradient),i.R7$(),i.AVh("active",G.isActive)("hidden",G.hideBar),i.BMQ("d",G.path)("aria-label",G.ariaLabel)("fill",G.hasGradient?G.gradientFill:G.fill))},dependencies:[D.bT,V1],encapsulation:2,changeDetection:0}))}return v(),O})();var $c=function(v){return v.Standard="standard",v.Normalized="normalized",v.Stacked="stacked",v}($c||{}),md=function(v){return v.positive="positive",v.negative="negative",v}(md||{});let ch=(()=>{var v;class O{constructor(y){this.dimensionsChanged=new i.bkB,this.horizontalPadding=2,this.verticalPadding=5,this.element=y.nativeElement}ngOnChanges(y){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):jd(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.aKT))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[i.OA$],attrs:Bf,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(B,G){1&B&&(g.qSk(),i.j41(0,"text",0),i.EFF(1),i.k0s()),2&B&&(i.BMQ("text-anchor",G.textAnchor)("transform",G.transform)("x",G.x)("y",G.y),i.R7$(),i.SpI(" ",G.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}))}return v(),O})(),G3=(()=>{var v;class O{constructor(y){this.platformId=y,this.type=$c.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new i.bkB,this.activate=new i.bkB,this.deactivate=new i.bkB,this.dataLabelHeightChanged=new i.bkB,this.barsForDataLabels=[],this.barOrientation=$s,this.isSSR=!1}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){let y;this.updateTooltipSettings(),this.series.length&&(y=this.xScale.bandwidth()),y=Math.round(y);const B=Math.max(this.yScale.domain()[0],0),G={[md.positive]:0,[md.negative]:0};let Xe,ue=md.positive;this.type===$c.Normalized&&(Xe=this.series.map(Ut=>Ut.value).reduce((Ut,Qt)=>Ut+Qt,0)),this.bars=this.series.map((Ut,Qt)=>{let pn=Ut.value;const Pn=this.getLabel(Ut),Fn=jd(Pn);ue=pn>0?md.positive:md.negative;const yi={value:pn,label:Pn,roundEdges:this.roundEdges,data:Ut,width:y,formattedLabel:Fn,height:0,x:0,y:0};if(this.type===$c.Standard)yi.height=Math.abs(this.yScale(pn)-this.yScale(B)),yi.x=this.xScale(Pn),yi.y=this.yScale(pn<0?0:pn);else if(this.type===$c.Stacked){const qn=G[ue],Gi=qn+pn;G[ue]+=pn,yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi}else if(this.type===$c.Normalized){let qn=G[ue],Gi=qn+pn;G[ue]+=pn,Xe>0?(qn=100*qn/Xe,Gi=100*Gi/Xe):(qn=0,Gi=0),yi.height=this.yScale(qn)-this.yScale(Gi),yi.x=0,yi.y=this.yScale(Gi),yi.offset0=qn,yi.offset1=Gi,pn=(Gi-qn).toFixed(2)+"%"}this.colors.scaleType===ma.Ordinal?yi.color=this.colors.getColor(Pn):this.type===$c.Standard?(yi.color=this.colors.getColor(pn),yi.gradientStops=this.colors.getLinearGradientStops(pn)):(yi.color=this.colors.getColor(yi.offset1),yi.gradientStops=this.colors.getLinearGradientStops(yi.offset1,yi.offset0));let Ji=Fn;return yi.ariaLabel=Fn+" "+pn.toLocaleString(),null!=this.seriesName&&(Ji=`${this.seriesName} \u2022 ${Fn}`,yi.data.series=this.seriesName,yi.ariaLabel=this.seriesName+" "+yi.ariaLabel),yi.tooltipText=this.tooltipDisabled?void 0:`\n ${function qu(v){return v.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(Ji)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(pn):pn.toLocaleString()}\n `,yi}),this.updateDataLabels()}updateDataLabels(){if(this.type===$c.Stacked){this.barsForDataLabels=[];const y={};y.series=this.seriesName;const B=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe>0?ue+Xe:ue,0),G=this.series.map(ue=>ue.value).reduce((ue,Xe)=>Xe<0?ue+Xe:ue,0);y.total=B+G,y.x=0,y.y=0,y.height=this.yScale(y.total>0?B:G),y.width=this.xScale.bandwidth(),this.barsForDataLabels.push(y)}else this.barsForDataLabels=this.series.map(y=>{const B={};return B.series=this.seriesName??y.label,B.total=y.value,B.x=this.xScale(y.label),B.y=this.yScale(0),B.height=this.yScale(B.total)-this.yScale(0),B.width=this.xScale.bandwidth(),B})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:Ua.Top,this.tooltipType=this.tooltipDisabled?void 0:U1.tooltip}isActive(y){return!!this.activeEntries&&void 0!==this.activeEntries.find(G=>y.name===G.name&&y.value===G.value)}onClick(y){this.select.emit(y)}getLabel(y){return y.label?y.label:y.name}trackBy(y,B){return B.label}trackDataLabelBy(y,B){return y+"#"+B.series+"#"+B.total}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)(i.rXU(i.Agw))},this.\u0275cmp=i.VBU({type:O,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},standalone:!1,features:[i.OA$],attrs:q0,decls:3,vars:3,consts:[[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"select","activate","deactivate","width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"dimensionsChanged","barX","barY","barWidth","barHeight","value","valueFormatting","orientation"]],template:function(B,G){1&B&&i.DNE(0,Vu,2,2,"g",0)(1,b3,2,2,"g",0)(2,Hu,2,2,"g",0),2&B&&(i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR),i.R7$(),i.Y8G("ngIf",G.showDataLabel))},dependencies:[D.Sq,D.bT,u2,V3,ch],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1}),(0,w.i0)(500,(0,w.iF)({opacity:0}))])])]},changeDetection:0}))}return v(),O})(),p4=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}ngOnChanges(){this.update()}update(){if(super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=B3({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`,this.showRefLines){const y=ui(this.chartElement.nativeElement).select(".bar-chart").node();ui(this.chartElement.nativeElement).selectAll(".ref-line").nodes().forEach(G=>y.appendChild(G))}}getXScale(){this.xDomain=this.getXDomain();const y=this.xDomain.length/(this.dims.width/this.barPadding+1);return zc().range([0,this.dims.width]).paddingInner(y).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const y=cc().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?y.nice():y}getXDomain(){return this.results.map(y=>y.label)}getYDomain(){const y=this.results.map(ue=>ue.value);let B=this.yScaleMin?Math.min(this.yScaleMin,...y):Math.min(0,...y);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(B=Math.min(B,...this.yAxisTicks));let G=this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(G=Math.max(G,...this.yAxisTicks)),[B,G]}onClick(y){this.select.emit(y)}setColors(){let y;y=this.schemeType===ma.Ordinal?this.xDomain:this.yDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===ma.Ordinal?(y.domain=this.xDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.yDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onDataLabelMaxHeightChanged(y){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),y.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name),!(this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series)>-1)&&(this.activeEntries=[y,...this.activeEntries],this.activate.emit({value:y,entries:this.activeEntries}))}onDeactivate(y,B=!1){y=this.results.find(ue=>B?ue.label===y.name:ue.name===y.name);const G=this.activeEntries.findIndex(ue=>ue.name===y.name&&ue.value===y.value&&ue.series===y.series);this.activeEntries.splice(G,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:y,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3,i.OA$],decls:5,vars:25,consts:[[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activate","deactivate","select","dataLabelHeightChanged","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelClick",function(Xe){return G.onClick(Xe)})("legendLabelActivate",function(Xe){return G.onActivate(Xe,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,!0)}),g.qSk(),i.j41(1,"g",1),i.DNE(2,ju,1,12,"g",2)(3,x3,1,13,"g",3),i.j41(4,"g",4),i.bIt("activate",function(Xe){return G.onActivate(Xe)})("deactivate",function(Xe){return G.onDeactivate(Xe)})("select",function(Xe){return G.onClick(Xe)})("dataLabelHeightChanged",function(Xe){return G.onDataLabelMaxHeightChanged(Xe)}),i.k0s()()()),2&B&&(i.Y8G("view",i.l_i(22,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("xScale",G.xScale)("yScale",G.yScale)("colors",G.colors)("series",G.results)("dims",G.dims)("gradient",G.gradient)("tooltipDisabled",G.tooltipDisabled)("tooltipTemplate",G.tooltipTemplate)("showDataLabel",G.showDataLabel)("dataLabelFormatting",G.dataLabelFormatting)("activeEntries",G.activeEntries)("roundEdges",G.roundEdges)("animations",G.animations)("noBarWhenZero",G.noBarWhenZero))},dependencies:[D.bT,nh,u4,s4,G3],styles:[Nu],encapsulation:2,changeDetection:0}))}return v(),O})(),bp=(()=>{var v;class O extends d2{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ic.Right,this.tooltipDisabled=!1,this.scaleType=ma.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.schemeType=ma.Ordinal,this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new i.bkB,this.deactivate=new i.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=$s,this.trackBy=(y,B)=>B.name}ngOnInit(){(0,o.Vy)(this.platformId)&&(this.isSSR=!0)}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=B3({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(y,B){y.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,y.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,y.size.height),B===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const y=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return zc().rangeRound([0,this.dims.width]).paddingInner(y).paddingOuter(y/2).domain(this.groupDomain)}getInnerScale(){const y=this.groupScale.bandwidth(),B=this.innerDomain.length/(y/this.barPadding+1);return zc().rangeRound([0,y]).paddingInner(B).domain(this.innerDomain)}getValueScale(){const y=cc().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?y.nice():y}getGroupDomain(){const y=[];for(const B of this.results)y.includes(B.label)||y.push(B.label);return y}getInnerDomain(){const y=[];for(const B of this.results)for(const G of B.series)y.includes(G.label)||y.push(G.label);return y}getValueDomain(){const y=[];for(const ue of this.results)for(const Xe of ue.series)y.includes(Xe.value)||y.push(Xe.value);return[Math.min(0,...y),this.yScaleMax?Math.max(this.yScaleMax,...y):Math.max(0,...y)]}groupTransform(y){return`translate(${this.groupScale(y.label)}, 0)`}onClick(y,B){B&&(y.series=B.name),this.select.emit(y)}setColors(){let y;y=this.schemeType===ma.Ordinal?this.innerDomain:this.valueDomain,this.colors=new lh(this.scheme,this.schemeType,y,this.customColors)}getLegendOptions(){const y={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return y.scaleType===ma.Ordinal?(y.domain=this.innerDomain,y.colors=this.colors,y.title=this.legendTitle):(y.domain=this.valueDomain,y.colors=this.colors.scale),y}updateYAxisWidth({width:y}){this.yAxisWidth=y,this.update()}updateXAxisHeight({height:y}){this.xAxisHeight=y,this.update()}onActivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name);const Xe=this.results.map(Ut=>Ut.series).flat().filter(Ut=>G?Ut.label===ue.name:Ut.name===ue.name&&Ut.series===ue.series);this.activeEntries=[...Xe],this.activate.emit({value:ue,entries:this.activeEntries})}onDeactivate(y,B,G=!1){const ue=Object.assign({},y);B&&(ue.series=B.name),this.activeEntries=this.activeEntries.filter(Xe=>G?Xe.label!==ue.name:!(Xe.name===ue.name&&Xe.series===ue.series)),this.deactivate.emit({value:ue,entries:this.activeEntries})}static#e=v=()=>(this.\u0275fac=(()=>{let y;return function(G){return(y||(y=i.xGo(O)))(G||O)}})(),this.\u0275cmp=i.VBU({type:O,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(B,G,ue){if(1&B&&i.wni(ue,Lf,5),2&B){let Xe;i.mGM(Xe=i.lsd())&&(G.tooltipTemplate=Xe.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[i.Vt3],decls:7,vars:18,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"select","activate","deactivate","dataLabelHeightChanged","activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero"]],template:function(B,G){1&B&&(i.j41(0,"ngx-charts-chart",0),i.bIt("legendLabelActivate",function(Xe){return G.onActivate(Xe,void 0,!0)})("legendLabelDeactivate",function(Xe){return G.onDeactivate(Xe,void 0,!0)})("legendLabelClick",function(Xe){return G.onClick(Xe)}),g.qSk(),i.j41(1,"g",1),i.nrm(2,"g",2),i.DNE(3,Wu,1,11,"g",3)(4,Xf,1,10,"g",4)(5,Yf,2,2,"g",5)(6,Ku,2,2,"g",5),i.k0s()()),2&B&&(i.Y8G("view",i.l_i(15,ud,G.width,G.height))("showLegend",G.legend)("legendOptions",G.legendOptions)("activeEntries",G.activeEntries)("animations",G.animations),i.R7$(),i.BMQ("transform",G.transform),i.R7$(),i.Y8G("xScale",G.groupScale)("yScale",G.valueScale)("data",G.results)("dims",G.dims)("orient",G.barOrientation.Vertical),i.R7$(),i.Y8G("ngIf",G.xAxis),i.R7$(),i.Y8G("ngIf",G.yAxis),i.R7$(),i.Y8G("ngIf",!G.isSSR),i.R7$(),i.Y8G("ngIf",G.isSSR))},dependencies:[D.Sq,D.bT,nh,u4,s4,P3,G3],styles:[Nu],encapsulation:2,data:{animation:[(0,w.hZ)("animationState",[(0,w.kY)(":leave",[(0,w.iF)({opacity:1,transform:"*"}),(0,w.i0)(500,(0,w.iF)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}))}return v(),O})(),H3=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),g4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),_4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),y4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Sp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})();Math;let pd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),Tp=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,Sp]}))}return v(),O})(),yo=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),C4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),M4=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,pd,H3]}))}return v(),O})(),Yd=(()=>{var v;class O{static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl]}))}return v(),O})(),mh=(()=>{var v;class O{constructor(){!function E4(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}static#e=v=()=>(this.\u0275fac=function(B){return new(B||O)},this.\u0275mod=i.$C({type:O}),this.\u0275inj=g.G2t({imports:[cl,U3,H3,g4,_4,y4,Yd,Sp,Tp,yo,pd,C4,M4]}))}return v(),O})()},38288(ke,q,l){"use strict";l.d(q,{Um:()=>M,XK:()=>K});var i=l(10467),g=l(72200),p=l(2615),D=l(73664),o=l(17705),e=l(68314);function A(j,Z){if(1&j&&D.nrm(0,"canvas",1),2&j){const ee=D.XpG();D.HbH(ee.styleClass),D.Y8G("qrCode",ee.value)("qrCodeErrorCorrectionLevel",ee.errorCorrectionLevel)("qrCodeCenterImageSrc",ee.centerImageSrc)("qrCodeCenterImageWidth",ee.centerImageSize)("qrCodeCenterImageHeight",ee.centerImageSize)("qrCodeMargin",ee.margin)("qrScale",ee.scale)("qrCodeMaskPattern",ee.maskPattern)("width",ee.size)("height",ee.size)("ngStyle",ee.style)("darkColor",ee.darkColor)("lightColor",ee.lightColor)}}const h=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/,d=/^[0-9.]+$/;let w=(()=>{var j;class Z{constructor(V){this.viewContainerRef=V,this.errorCorrectionLevel=Z.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var V=this;return(0,i.A)(function*(){if(!V.value)return;V.version&&V.version>40?(console.warn("[qrCode] max version is 40, clamping"),V.version=40):V.version&&V.version<1?(console.warn("[qrCode] min version is 1, clamping"),V.version=1):void 0!==V.version&&isNaN(V.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),V.version=void 0);const Q=V.viewContainerRef.element.nativeElement;if(!Q)return;const $=Q.getContext("2d");$&&$.clearRect(0,0,$.canvas.width,$.canvas.height);const ie=V.errorCorrectionLevel??Z.DEFAULT_ERROR_CORRECTION_LEVEL,_e=V.darkColor&&h.test(V.darkColor)?V.darkColor:void 0,ye=V.lightColor&&h.test(V.lightColor)?V.lightColor:void 0;(0,o.naY)()&&(!_e&&V.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ye&&V.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield e.toCanvas(Q,V.value,{version:V.version,errorCorrectionLevel:ie,width:f(V.width),margin:V.margin,scale:V.qrScale,maskPattern:V.qrCodeMaskPattern,color:{dark:_e,light:ye}});const se=V.centerImageSrc,pe=F(V.centerImageWidth,Z.DEFAULT_CENTER_IMAGE_SIZE),Ee=F(V.centerImageHeight,Z.DEFAULT_CENTER_IMAGE_SIZE);if(se&&$){V.centerImage||(V.centerImage=new Image(pe,Ee));const L=V.centerImage;se!==V.centerImage.src&&(L.src=se),pe!==V.centerImage.width&&(L.width=pe),Ee!==V.centerImage.height&&(L.height=Ee);const t=()=>{$.drawImage(L,Q.width/2-pe/2,Q.height/2-Ee/2,pe,Ee)};L.onload=t,L.complete&&t()}})()}static#e=j=()=>(this.DEFAULT_ERROR_CORRECTION_LEVEL="M",this.DEFAULT_CENTER_IMAGE_SIZE=40,this.\u0275fac=function(Q){return new(Q||Z)(D.rXU(D.c1b))},this.\u0275dir=D.FsC({type:Z,selectors:[["canvas","qrCode",""]],inputs:{value:[0,"qrCode","value"],version:[0,"qrCodeVersion","version"],errorCorrectionLevel:[0,"qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:[0,"qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:[0,"qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:[0,"qrCodeCenterImageHeight","centerImageHeight"],margin:[0,"qrCodeMargin","margin"],qrScale:"qrScale",qrCodeMaskPattern:"qrCodeMaskPattern"},features:[D.OA$]}))}return j(),Z})();function f(j){if(void 0!==j&&""!==j){if("string"==typeof j){if(!d.test(j))throw new Error(`'${j}' is not a valid number`);return parseFloat(j)}return j}}function F(j,Z){return void 0===j||""===j?Z:f(j)}let M=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275cmp=D.VBU({type:Z,selectors:[["qr-code"]],inputs:{value:"value",size:"size",style:"style",styleClass:"styleClass",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin",scale:"scale",maskPattern:"maskPattern"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","class","ngStyle","darkColor","lightColor"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","qrScale","qrCodeMaskPattern","width","height","ngStyle","darkColor","lightColor"]],template:function(Q,$){1&Q&&D.nVh(0,A,1,15,"canvas",0),2&Q&&D.vxM($.value?0:-1)},dependencies:[w,g.MD,g.B3],encapsulation:2}))}return j(),Z})(),K=(()=>{var j;class Z{static#e=j=()=>(this.\u0275fac=function(Q){return new(Q||Z)},this.\u0275mod=D.$C({type:Z}),this.\u0275inj=p.G2t({imports:[g.MD,M]}))}return j(),Z})()},10497(ke,q,l){"use strict";l.d(q,{kU:()=>ze,ZF:()=>it,Ld:()=>st,U$:()=>Wt});var i=l(21413),g=l(33726),p=l(57786),D=l(13798),o=l(56977),e=l(23294),A=l(73703),h=l(73664),d=l(17705),w=l(2615),f=l(72200),F=l(60177);function M(we){return getComputedStyle(we)}function K(we,We){for(var Lt in We){var St=We[Lt];"number"==typeof St&&(St+="px"),we.style[Lt]=St}return we}function j(we){var We=document.createElement("div");return We.className=we,We}var Z=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function ee(we,We){if(!Z)throw new Error("No element matching method supported");return Z.call(we,We)}function V(we){we.remove?we.remove():we.parentNode&&we.parentNode.removeChild(we)}function Q(we,We){return Array.prototype.filter.call(we.children,function(Lt){return ee(Lt,We)})}var $_element_thumb=function(we){return"ps__thumb-"+we},$_element_rail=function(we){return"ps__rail-"+we},$_element_consuming="ps__child--consume",$_state_focus="ps--focus",$_state_clicking="ps--clicking",$_state_active=function(we){return"ps--active-"+we},$_state_scrolling=function(we){return"ps--scrolling-"+we},ie={x:null,y:null};function _e(we,We){var Lt=we.element.classList,St=$_state_scrolling(We);Lt.contains(St)?clearTimeout(ie[We]):Lt.add(St)}function ye(we,We){ie[We]=setTimeout(function(){return we.isAlive&&we.element.classList.remove($_state_scrolling(We))},we.settings.scrollingThreshold)}var pe=function(We){this.element=We,this.handlers={}},Ee={isEmpty:{configurable:!0}};pe.prototype.bind=function(We,Lt){typeof this.handlers[We]>"u"&&(this.handlers[We]=[]),this.handlers[We].push(Lt),this.element.addEventListener(We,Lt,!1)},pe.prototype.unbind=function(We,Lt){var St=this;this.handlers[We]=this.handlers[We].filter(function(At){return!(!Lt||At===Lt)||(St.element.removeEventListener(We,At,!1),!1)})},pe.prototype.unbindAll=function(){for(var We in this.handlers)this.unbind(We)},Ee.isEmpty.get=function(){var we=this;return Object.keys(this.handlers).every(function(We){return 0===we.handlers[We].length})},Object.defineProperties(pe.prototype,Ee);var L=function(){this.eventElements=[]};function t(we){if("function"==typeof window.CustomEvent)return new CustomEvent(we);var We=document.createEvent("CustomEvent");return We.initCustomEvent(we,!1,!1,void 0),We}function s(we,We,Lt,St,At){var fn;if(void 0===St&&(St=!0),void 0===At&&(At=!1),"top"===We)fn=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==We)throw new Error("A proper axis should be provided");fn=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function m(we,We,Lt,St,At){var fn=Lt[0],mt=Lt[1],It=Lt[2],wn=Lt[3],In=Lt[4],ei=Lt[5];void 0===St&&(St=!0),void 0===At&&(At=!1);var Li=we.element;we.reach[wn]=null,Li[It]<1&&(we.reach[wn]="start"),Li[It]>we[fn]-we[mt]-1&&(we.reach[wn]="end"),We&&(Li.dispatchEvent(t("ps-scroll-"+wn)),We<0?Li.dispatchEvent(t("ps-scroll-"+In)):We>0&&Li.dispatchEvent(t("ps-scroll-"+ei)),St&&function se(we,We){_e(we,We),ye(we,We)}(we,wn)),we.reach[wn]&&(We||At)&&Li.dispatchEvent(t("ps-"+wn+"-reach-"+we.reach[wn]))}(we,Lt,fn,St,At)}function u(we){return parseInt(we,10)||0}L.prototype.eventElement=function(We){var Lt=this.eventElements.filter(function(St){return St.element===We})[0];return Lt||(Lt=new pe(We),this.eventElements.push(Lt)),Lt},L.prototype.bind=function(We,Lt,St){this.eventElement(We).bind(Lt,St)},L.prototype.unbind=function(We,Lt,St){var At=this.eventElement(We);At.unbind(Lt,St),At.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(At),1)},L.prototype.unbindAll=function(){this.eventElements.forEach(function(We){return We.unbindAll()}),this.eventElements=[]},L.prototype.once=function(We,Lt,St){var At=this.eventElement(We),fn=function(mt){At.unbind(Lt,fn),St(mt)};At.bind(Lt,fn)};var P={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function C(we){var We=we.element,Lt=Math.floor(We.scrollTop),St=We.getBoundingClientRect();we.containerWidth=Math.round(St.width),we.containerHeight=Math.round(St.height),we.contentWidth=We.scrollWidth,we.contentHeight=We.scrollHeight,We.contains(we.scrollbarXRail)||(Q(We,$_element_rail("x")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarXRail)),We.contains(we.scrollbarYRail)||(Q(We,$_element_rail("y")).forEach(function(At){return V(At)}),We.appendChild(we.scrollbarYRail)),!we.settings.suppressScrollX&&we.containerWidth+we.settings.scrollXMarginOffset=we.railXWidth-we.scrollbarXWidth&&(we.scrollbarXLeft=we.railXWidth-we.scrollbarXWidth),we.scrollbarYTop>=we.railYHeight-we.scrollbarYHeight&&(we.scrollbarYTop=we.railYHeight-we.scrollbarYHeight),function x(we,We){var Lt={width:We.railXWidth},St=Math.floor(we.scrollTop);Lt.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+We.containerWidth-We.contentWidth:we.scrollLeft,We.isScrollbarXUsingBottom?Lt.bottom=We.scrollbarXBottom-St:Lt.top=We.scrollbarXTop+St,K(We.scrollbarXRail,Lt);var At={top:St,height:We.railYHeight};We.isScrollbarYUsingRight?At.right=We.isRtl?We.contentWidth-(We.negativeScrollAdjustment+we.scrollLeft)-We.scrollbarYRight-We.scrollbarYOuterWidth-9:We.scrollbarYRight-we.scrollLeft:At.left=We.isRtl?We.negativeScrollAdjustment+we.scrollLeft+2*We.containerWidth-We.contentWidth-We.scrollbarYLeft-We.scrollbarYOuterWidth:We.scrollbarYLeft+we.scrollLeft,K(We.scrollbarYRail,At),K(We.scrollbarX,{left:We.scrollbarXLeft,width:We.scrollbarXWidth-We.railBorderXWidth}),K(We.scrollbarY,{top:We.scrollbarYTop,height:We.scrollbarYHeight-We.railBorderYWidth})}(We,we),we.scrollbarXActive?We.classList.add($_state_active("x")):(We.classList.remove($_state_active("x")),we.scrollbarXWidth=0,we.scrollbarXLeft=0,We.scrollLeft=!0===we.isRtl?we.contentWidth:0),we.scrollbarYActive?We.classList.add($_state_active("y")):(We.classList.remove($_state_active("y")),we.scrollbarYHeight=0,we.scrollbarYTop=0,We.scrollTop=0)}function a(we,We){return we.settings.minScrollbarLength&&(We=Math.max(We,we.settings.minScrollbarLength)),we.settings.maxScrollbarLength&&(We=Math.min(We,we.settings.maxScrollbarLength)),We}function U(we,We){var Lt=We[0],St=We[1],At=We[2],fn=We[3],mt=We[4],It=We[5],wn=We[6],In=We[7],ei=We[8],Li=we.element,kt=null,Ot=null,Ze=null;function Ge(bn){bn.touches&&bn.touches[0]&&(bn[At]=bn.touches[0].pageY),Li[wn]=kt+Ze*(bn[At]-Ot),_e(we,In),C(we),bn.stopPropagation(),bn.type.startsWith("touch")&&bn.changedTouches.length>1&&bn.preventDefault()}function Pt(){ye(we,In),we[ei].classList.remove($_state_clicking),we.event.unbind(we.ownerDocument,"mousemove",Ge)}function Yt(bn,Zn){kt=Li[wn],Zn&&bn.touches&&(bn[At]=bn.touches[0].pageY),Ot=bn[At],Ze=(we[St]-we[Lt])/(we[fn]-we[It]),Zn?we.event.bind(we.ownerDocument,"touchmove",Ge):(we.event.bind(we.ownerDocument,"mousemove",Ge),we.event.once(we.ownerDocument,"mouseup",Pt),bn.preventDefault()),we[ei].classList.add($_state_clicking),bn.stopPropagation()}we.event.bind(we[mt],"mousedown",function(bn){Yt(bn)}),we.event.bind(we[mt],"touchstart",function(bn){Yt(bn,!0)})}var ge={"click-rail":function Y(we){we.event.bind(we.scrollbarY,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarYRail,"mousedown",function(Lt){var St=Lt.pageY-window.pageYOffset-we.scrollbarYRail.getBoundingClientRect().top;we.element.scrollTop+=(St>we.scrollbarYTop?1:-1)*we.containerHeight,C(we),Lt.stopPropagation()}),we.event.bind(we.scrollbarX,"mousedown",function(Lt){return Lt.stopPropagation()}),we.event.bind(we.scrollbarXRail,"mousedown",function(Lt){var St=Lt.pageX-window.pageXOffset-we.scrollbarXRail.getBoundingClientRect().left;we.element.scrollLeft+=(St>we.scrollbarXLeft?1:-1)*we.containerWidth,C(we),Lt.stopPropagation()})},"drag-thumb":function R(we){U(we,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),U(we,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function fe(we){var We=we.element;we.event.bind(we.ownerDocument,"keydown",function(fn){if(!(fn.isDefaultPrevented&&fn.isDefaultPrevented()||fn.defaultPrevented)&&(ee(We,":hover")||ee(we.scrollbarX,":focus")||ee(we.scrollbarY,":focus"))){var mt=document.activeElement?document.activeElement:we.ownerDocument.activeElement;if(mt){if("IFRAME"===mt.tagName)mt=mt.contentDocument.activeElement;else for(;mt.shadowRoot;)mt=mt.shadowRoot.activeElement;if(function _(we){return ee(we,"input,[contenteditable]")||ee(we,"select,[contenteditable]")||ee(we,"textarea,[contenteditable]")||ee(we,"button,[contenteditable]")}(mt))return}var It=0,wn=0;switch(fn.which){case 37:It=fn.metaKey?-we.contentWidth:fn.altKey?-we.containerWidth:-30;break;case 38:wn=fn.metaKey?we.contentHeight:fn.altKey?we.containerHeight:30;break;case 39:It=fn.metaKey?we.contentWidth:fn.altKey?we.containerWidth:30;break;case 40:wn=fn.metaKey?-we.contentHeight:fn.altKey?-we.containerHeight:-30;break;case 32:wn=fn.shiftKey?we.containerHeight:-we.containerHeight;break;case 33:wn=we.containerHeight;break;case 34:wn=-we.containerHeight;break;case 36:wn=we.contentHeight;break;case 35:wn=-we.contentHeight;break;default:return}we.settings.suppressScrollX&&0!==It||we.settings.suppressScrollY&&0!==wn||(We.scrollTop-=wn,We.scrollLeft+=It,C(we),function At(fn,mt){var It=Math.floor(We.scrollTop);if(0===fn){if(!we.scrollbarYActive)return!1;if(0===It&&mt>0||It>=we.contentHeight-we.containerHeight&&mt<0)return!we.settings.wheelPropagation}var wn=We.scrollLeft;if(0===mt){if(!we.scrollbarXActive)return!1;if(0===wn&&fn<0||wn>=we.contentWidth-we.containerWidth&&fn>0)return!we.settings.wheelPropagation}return!0}(It,wn)&&fn.preventDefault())}})},wheel:function re(we){var We=we.element;function fn(mt){var It=function St(mt){var It=mt.deltaX,wn=-1*mt.deltaY;return(typeof It>"u"||typeof wn>"u")&&(It=-1*mt.wheelDeltaX/6,wn=mt.wheelDeltaY/6),mt.deltaMode&&1===mt.deltaMode&&(It*=10,wn*=10),It!=It&&wn!=wn&&(It=0,wn=mt.wheelDelta),mt.shiftKey?[-wn,-It]:[It,wn]}(mt),wn=It[0],In=It[1];if(!function At(mt,It,wn){if(!P.isWebKit&&We.querySelector("select:focus"))return!0;if(!We.contains(mt))return!1;for(var In=mt;In&&In!==We;){if(In.classList.contains($_element_consuming))return!0;var ei=M(In);if(wn&&ei.overflowY.match(/(scroll|auto)/)){var Li=In.scrollHeight-In.clientHeight;if(Li>0&&(In.scrollTop>0&&wn<0||In.scrollTop0))return!0}if(It&&ei.overflowX.match(/(scroll|auto)/)){var kt=In.scrollWidth-In.clientWidth;if(kt>0&&(In.scrollLeft>0&&It<0||In.scrollLeft0))return!0}In=In.parentNode}return!1}(mt.target,wn,In)){var ei=!1;we.settings.useBothWheelAxes?we.scrollbarYActive&&!we.scrollbarXActive?(In?We.scrollTop-=In*we.settings.wheelSpeed:We.scrollTop+=wn*we.settings.wheelSpeed,ei=!0):we.scrollbarXActive&&!we.scrollbarYActive&&(wn?We.scrollLeft+=wn*we.settings.wheelSpeed:We.scrollLeft-=In*we.settings.wheelSpeed,ei=!0):(We.scrollTop-=In*we.settings.wheelSpeed,We.scrollLeft+=wn*we.settings.wheelSpeed),C(we),ei=ei||function Lt(mt,It){var wn=Math.floor(We.scrollTop),In=0===We.scrollTop,ei=wn+We.offsetHeight===We.scrollHeight,Li=0===We.scrollLeft,kt=We.scrollLeft+We.offsetWidth===We.scrollWidth;return!(Math.abs(It)>Math.abs(mt)?In||ei:Li||kt)||!we.settings.wheelPropagation}(wn,In),ei&&!mt.ctrlKey&&(mt.stopPropagation(),mt.preventDefault())}}typeof window.onwheel<"u"?we.event.bind(We,"wheel",fn):typeof window.onmousewheel<"u"&&we.event.bind(We,"mousewheel",fn)},touch:function he(we){if(P.supportsTouch||P.supportsIePointer){var We=we.element,At={},fn=0,mt={},It=null;P.supportsTouch?(we.event.bind(We,"touchstart",ei),we.event.bind(We,"touchmove",kt),we.event.bind(We,"touchend",Ot)):P.supportsIePointer&&(window.PointerEvent?(we.event.bind(We,"pointerdown",ei),we.event.bind(We,"pointermove",kt),we.event.bind(We,"pointerup",Ot)):window.MSPointerEvent&&(we.event.bind(We,"MSPointerDown",ei),we.event.bind(We,"MSPointerMove",kt),we.event.bind(We,"MSPointerUp",Ot)))}function St(Ze,Ge){We.scrollTop-=Ge,We.scrollLeft-=Ze,C(we)}function wn(Ze){return Ze.targetTouches?Ze.targetTouches[0]:Ze}function In(Ze){return!(Ze.pointerType&&"pen"===Ze.pointerType&&0===Ze.buttons||!(Ze.targetTouches&&1===Ze.targetTouches.length||Ze.pointerType&&"mouse"!==Ze.pointerType&&Ze.pointerType!==Ze.MSPOINTER_TYPE_MOUSE))}function ei(Ze){if(In(Ze)){var Ge=wn(Ze);At.pageX=Ge.pageX,At.pageY=Ge.pageY,fn=(new Date).getTime(),null!==It&&clearInterval(It)}}function kt(Ze){if(In(Ze)){var Ge=wn(Ze),Pt={pageX:Ge.pageX,pageY:Ge.pageY},Yt=Pt.pageX-At.pageX,bn=Pt.pageY-At.pageY;if(function Li(Ze,Ge,Pt){if(!We.contains(Ze))return!1;for(var Yt=Ze;Yt&&Yt!==We;){if(Yt.classList.contains($_element_consuming))return!0;var bn=M(Yt);if(Pt&&bn.overflowY.match(/(scroll|auto)/)){var Zn=Yt.scrollHeight-Yt.clientHeight;if(Zn>0&&(Yt.scrollTop>0&&Pt<0||Yt.scrollTop0))return!0}if(Ge&&bn.overflowX.match(/(scroll|auto)/)){var oi=Yt.scrollWidth-Yt.clientWidth;if(oi>0&&(Yt.scrollLeft>0&&Ge<0||Yt.scrollLeft0))return!0}Yt=Yt.parentNode}return!1}(Ze.target,Yt,bn))return;St(Yt,bn),At=Pt;var Zn=(new Date).getTime(),oi=Zn-fn;oi>0&&(mt.x=Yt/oi,mt.y=bn/oi,fn=Zn),function Lt(Ze,Ge){var Pt=Math.floor(We.scrollTop),Yt=We.scrollLeft,bn=Math.abs(Ze),Zn=Math.abs(Ge);if(Zn>bn){if(Ge<0&&Pt===we.contentHeight-we.containerHeight||Ge>0&&0===Pt)return 0===window.scrollY&&Ge>0&&P.isChrome}else if(bn>Zn&&(Ze<0&&Yt===we.contentWidth-we.containerWidth||Ze>0&&0===Yt))return!0;return!0}(Yt,bn)&&Ze.preventDefault()}}function Ot(){we.settings.swipeEasing&&(clearInterval(It),It=setInterval(function(){we.isInitialized?clearInterval(It):mt.x||mt.y?Math.abs(mt.x)<.01&&Math.abs(mt.y)<.01?clearInterval(It):we.element?(St(30*mt.x,30*mt.y),mt.x*=.8,mt.y*=.8):clearInterval(It):clearInterval(It)},10))}}},ce=function(We,Lt){var St=this;if(void 0===Lt&&(Lt={}),"string"==typeof We&&(We=document.querySelector(We)),!We||!We.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var At in this.element=We,We.classList.add("ps"),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},Lt)this.settings[At]=Lt[At];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var ei,In,fn=function(){return We.classList.add($_state_focus)},mt=function(){return We.classList.remove($_state_focus)};this.isRtl="rtl"===M(We).direction,!0===this.isRtl&&We.classList.add("ps__rtl"),this.isNegativeScroll=(In=We.scrollLeft,We.scrollLeft=-1,ei=We.scrollLeft<0,We.scrollLeft=In,ei),this.negativeScrollAdjustment=this.isNegativeScroll?We.scrollWidth-We.clientWidth:0,this.event=new L,this.ownerDocument=We.ownerDocument||document,this.scrollbarXRail=j($_element_rail("x")),We.appendChild(this.scrollbarXRail),this.scrollbarX=j($_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",fn),this.event.bind(this.scrollbarX,"blur",mt),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var It=M(this.scrollbarXRail);this.scrollbarXBottom=parseInt(It.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=u(It.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=u(It.borderLeftWidth)+u(It.borderRightWidth),K(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=u(It.marginLeft)+u(It.marginRight),K(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=j($_element_rail("y")),We.appendChild(this.scrollbarYRail),this.scrollbarY=j($_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",fn),this.event.bind(this.scrollbarY,"blur",mt),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var wn=M(this.scrollbarYRail);this.scrollbarYRight=parseInt(wn.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=u(wn.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function T(we){var We=M(we);return u(We.width)+u(We.paddingLeft)+u(We.paddingRight)+u(We.borderLeftWidth)+u(We.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=u(wn.borderTopWidth)+u(wn.borderBottomWidth),K(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=u(wn.marginTop)+u(wn.marginBottom),K(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:We.scrollLeft<=0?"start":We.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:We.scrollTop<=0?"start":We.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(In){return ge[In](St)}),this.lastScrollTop=Math.floor(We.scrollTop),this.lastScrollLeft=We.scrollLeft,this.event.bind(this.element,"scroll",function(In){return St.onScroll(In)}),C(this)};ce.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,K(this.scrollbarXRail,{display:"block"}),K(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=u(M(this.scrollbarXRail).marginLeft)+u(M(this.scrollbarXRail).marginRight),this.railYMarginHeight=u(M(this.scrollbarYRail).marginTop)+u(M(this.scrollbarYRail).marginBottom),K(this.scrollbarXRail,{display:"none"}),K(this.scrollbarYRail,{display:"none"}),C(this),s(this,"top",0,!1,!0),s(this,"left",0,!1,!0),K(this.scrollbarXRail,{display:""}),K(this.scrollbarYRail,{display:""}))},ce.prototype.onScroll=function(We){this.isAlive&&(C(this),s(this,"top",this.element.scrollTop-this.lastScrollTop),s(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},ce.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),V(this.scrollbarX),V(this.scrollbarY),V(this.scrollbarXRail),V(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},ce.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(We){return!We.match(/^ps([-_].+|)$/)}).join(" ")};const Re=ce;var Me=function(){if(typeof Map<"u")return Map;function we(We,Lt){var St=-1;return We.some(function(At,fn){return At[0]===Lt&&(St=fn,!0)}),St}return function(){function We(){this.__entries__=[]}return Object.defineProperty(We.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),We.prototype.get=function(Lt){var St=we(this.__entries__,Lt),At=this.__entries__[St];return At&&At[1]},We.prototype.set=function(Lt,St){var At=we(this.__entries__,Lt);~At?this.__entries__[At][1]=St:this.__entries__.push([Lt,St])},We.prototype.delete=function(Lt){var St=this.__entries__,At=we(St,Lt);~At&&St.splice(At,1)},We.prototype.has=function(Lt){return!!~we(this.__entries__,Lt)},We.prototype.clear=function(){this.__entries__.splice(0)},We.prototype.forEach=function(Lt,St){void 0===St&&(St=null);for(var At=0,fn=this.__entries__;At0},we.prototype.connect_=function(){!ve||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yt?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},we.prototype.disconnect_=function(){!ve||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},we.prototype.onTransitionEnd_=function(We){var Lt=We.propertyName,St=void 0===Lt?"":Lt;dt.some(function(fn){return!!~St.indexOf(fn)})&&this.refresh()},we.getInstance=function(){return this.instance_||(this.instance_=new we),this.instance_},we.instance_=null,we}(),rt=function(we,We){for(var Lt=0,St=Object.keys(We);Lt"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)||(Lt.set(We,new En(We)),this.controller_.addObserver(this),this.controller_.refresh())}},we.prototype.unobserve=function(We){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(We instanceof Mn(We).Element))throw new TypeError('parameter 1 is not of type "Element".');var Lt=this.observations_;Lt.has(We)&&(Lt.delete(We),Lt.size||this.controller_.removeObserver(this))}},we.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},we.prototype.gatherActive=function(){var We=this;this.clearActive(),this.observations_.forEach(function(Lt){Lt.isActive()&&We.activeObservations_.push(Lt)})},we.prototype.broadcastActive=function(){if(this.hasActive()){var We=this.callbackCtx_,Lt=this.activeObservations_.map(function(St){return new _n(St.target,St.broadcastRect())});this.callback_.call(We,Lt,We),this.clearActive()}},we.prototype.clearActive=function(){this.activeObservations_.splice(0)},we.prototype.hasActive=function(){return this.activeObservations_.length>0},we}(),Fe=typeof WeakMap<"u"?new WeakMap:new Me,Pe=function(){return function we(We){if(!(this instanceof we))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Lt=Et.getInstance(),St=new tt(We,Lt,this);Fe.set(this,St)}}();["observe","unobserve","disconnect"].forEach(function(we){Pe.prototype[we]=function(){var We;return(We=Fe.get(this))[we].apply(We,arguments)}});const Qe=typeof oe.ResizeObserver<"u"?oe.ResizeObserver:Pe,le=["*"];function Ne(we,We){if(1&we&&(h.j41(0,"div",3),h.nrm(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7),h.k0s()),2&we){const Lt=h.XpG();h.AVh("ps-at-top",Lt.states.top)("ps-at-left",Lt.states.left)("ps-at-right",Lt.states.right)("ps-at-bottom",Lt.states.bottom),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorX&&Lt.interaction),h.R7$(),h.AVh("ps-indicator-show",Lt.indicatorY&&Lt.interaction)}}const ze=new w.nKC("PERFECT_SCROLLBAR_CONFIG");class Je{constructor(We,Lt,St,At){this.x=We,this.y=Lt,this.w=St,this.h=At}}class gt{constructor(We,Lt){this.x=We,this.y=Lt}}const zt=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class Ye{constructor(We={}){this.assign(We)}assign(We={}){for(const Lt in We)this[Lt]=We[Lt]}}let st=(()=>{class we{constructor(Lt,St,At,fn,mt){this.zone=Lt,this.differs=St,this.elementRef=At,this.platformId=fn,this.defaults=mt,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new i.B,this.disabled=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){if(!this.disabled&&(0,F.UE)(this.platformId)){const Lt=new Ye(this.defaults);Lt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new Re(this.elementRef.nativeElement,Lt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new Qe(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{zt.forEach(St=>{const At=St.replace(/([A-Z])/g,fn=>`-${fn.toLowerCase()}`);(0,g.R)(this.elementRef.nativeElement,At).pipe((0,D.Z)(20),(0,o.Q)(this.ngDestroy)).subscribe(fn=>{this[St].emit(fn)})})})}}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.complete(),this.ro&&this.ro.disconnect(),this.timeout&&typeof window<"u"&&window.clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.instance&&this.instance.destroy()}),this.instance=null)}ngDoCheck(){!this.disabled&&this.configDiff&&(0,F.UE)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(Lt){Lt.disabled&&!Lt.disabled.isFirstChange()&&(0,F.UE)(this.platformId)&&Lt.disabled.currentValue!==Lt.disabled.previousValue&&(!0===Lt.disabled.currentValue?this.ngOnDestroy():!1===Lt.disabled.currentValue&&this.ngOnInit())}ps(){return this.instance}update(){typeof window<"u"&&(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{if(!this.disabled&&this.configDiff)try{this.zone.runOutsideAngular(()=>{this.instance&&this.instance.update()})}catch{}},0))}geometry(Lt="scroll"){return new Je(this.elementRef.nativeElement[Lt+"Left"],this.elementRef.nativeElement[Lt+"Top"],this.elementRef.nativeElement[Lt+"Width"],this.elementRef.nativeElement[Lt+"Height"])}position(Lt=!1){return!Lt&&this.instance?new gt(this.instance.reach.x||0,this.instance.reach.y||0):new gt(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(Lt="any"){const St=this.elementRef.nativeElement;return"any"===Lt?St.classList.contains("ps--active-x")||St.classList.contains("ps--active-y"):"both"===Lt?St.classList.contains("ps--active-x")&&St.classList.contains("ps--active-y"):St.classList.contains("ps--active-"+Lt)}scrollTo(Lt,St,At){this.disabled||(null==St&&null==At?this.animateScrolling("scrollTop",Lt,At):(null!=Lt&&this.animateScrolling("scrollLeft",Lt,At),null!=St&&this.animateScrolling("scrollTop",St,At)))}scrollToX(Lt,St){this.animateScrolling("scrollLeft",Lt,St)}scrollToY(Lt,St){this.animateScrolling("scrollTop",Lt,St)}scrollToTop(Lt,St){this.animateScrolling("scrollTop",Lt||0,St)}scrollToLeft(Lt,St){this.animateScrolling("scrollLeft",Lt||0,St)}scrollToRight(Lt,St){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(Lt||0),St)}scrollToBottom(Lt,St){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(Lt||0),St)}scrollToElement(Lt,St,At){if("string"==typeof Lt&&(Lt=this.elementRef.nativeElement.querySelector(Lt)),Lt){const fn=Lt.getBoundingClientRect(),mt=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",fn.left-mt.left+this.elementRef.nativeElement.scrollLeft+(St||0),At),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",fn.top-mt.top+this.elementRef.nativeElement.scrollTop+(St||0),At)}}animateScrolling(Lt,St,At){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),!At||typeof window>"u")this.elementRef.nativeElement[Lt]=St;else if(St!==this.elementRef.nativeElement[Lt]){let fn=0,mt=0,It=performance.now(),wn=this.elementRef.nativeElement[Lt];const In=(wn-St)/2,ei=Li=>{mt+=Math.PI/(At/(Li-It)),fn=Math.round(St+In+In*Math.cos(mt)),this.elementRef.nativeElement[Lt]===wn&&(mt>=Math.PI?this.animateScrolling(Lt,St,0):(this.elementRef.nativeElement[Lt]=fn,wn=this.elementRef.nativeElement[Lt],It=Li,this.animation=window.requestAnimationFrame(ei)))};window.requestAnimationFrame(ei)}}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.MKu),h.rXU(h.aKT),h.rXU(h.Agw),h.rXU(ze,8))},we.\u0275dir=h.FsC({type:we,selectors:[["","perfectScrollbar",""]],inputs:{disabled:"disabled",config:[0,"perfectScrollbar","config"]},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,features:[h.OA$]}),we})(),it=(()=>{class we{constructor(Lt,St,At){this.zone=Lt,this.cdRef=St,this.platformId=At,this.states={},this.indicatorX=!1,this.indicatorY=!1,this.interaction=!1,this.scrollPositionX=0,this.scrollPositionY=0,this.scrollDirectionX=0,this.scrollDirectionY=0,this.usePropagationX=!1,this.usePropagationY=!1,this.allowPropagationX=!1,this.allowPropagationY=!1,this.stateTimeout=null,this.ngDestroy=new i.B,this.stateUpdate=new i.B,this.disabled=!1,this.usePSClass=!0,this.autoPropagation=!1,this.scrollIndicators=!1,this.psScrollY=new h.bkB,this.psScrollX=new h.bkB,this.psScrollUp=new h.bkB,this.psScrollDown=new h.bkB,this.psScrollLeft=new h.bkB,this.psScrollRight=new h.bkB,this.psYReachEnd=new h.bkB,this.psYReachStart=new h.bkB,this.psXReachEnd=new h.bkB,this.psXReachStart=new h.bkB}ngOnInit(){(0,F.UE)(this.platformId)&&(this.stateUpdate.pipe((0,o.Q)(this.ngDestroy),(0,e.F)((Lt,St)=>Lt===St&&!this.stateTimeout)).subscribe(Lt=>{this.stateTimeout&&typeof window<"u"&&(window.clearTimeout(this.stateTimeout),this.stateTimeout=null),"x"===Lt||"y"===Lt?(this.interaction=!1,"x"===Lt?(this.indicatorX=!1,this.states.left=!1,this.states.right=!1,this.autoPropagation&&this.usePropagationX&&(this.allowPropagationX=!1)):"y"===Lt&&(this.indicatorY=!1,this.states.top=!1,this.states.bottom=!1,this.autoPropagation&&this.usePropagationY&&(this.allowPropagationY=!1))):("left"===Lt||"right"===Lt?(this.states.left=!1,this.states.right=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationX&&(this.indicatorX=!0)):("top"===Lt||"bottom"===Lt)&&(this.states.top=!1,this.states.bottom=!1,this.states[Lt]=!0,this.autoPropagation&&this.usePropagationY&&(this.indicatorY=!0)),this.autoPropagation&&typeof window<"u"&&(this.stateTimeout=window.setTimeout(()=>{this.indicatorX=!1,this.indicatorY=!1,this.stateTimeout=null,this.interaction&&(this.states.left||this.states.right)&&(this.allowPropagationX=!0),this.interaction&&(this.states.top||this.states.bottom)&&(this.allowPropagationY=!0),this.cdRef.markForCheck()},500))),this.cdRef.markForCheck(),this.cdRef.detectChanges()}),this.zone.runOutsideAngular(()=>{if(this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;(0,g.R)(Lt,"wheel").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&this.autoPropagation&&this.checkPropagation(St,St.deltaX,St.deltaY)}),(0,g.R)(Lt,"touchmove").pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{if(!this.disabled&&this.autoPropagation){const At=St.touches[0].clientX,fn=St.touches[0].clientY;this.checkPropagation(St,At-this.scrollPositionX,fn-this.scrollPositionY),this.scrollPositionX=At,this.scrollPositionY=fn}}),(0,p.h)((0,g.R)(Lt,"ps-scroll-x").pipe((0,A.u)("x")),(0,g.R)(Lt,"ps-scroll-y").pipe((0,A.u)("y")),(0,g.R)(Lt,"ps-x-reach-end").pipe((0,A.u)("right")),(0,g.R)(Lt,"ps-y-reach-end").pipe((0,A.u)("bottom")),(0,g.R)(Lt,"ps-x-reach-start").pipe((0,A.u)("left")),(0,g.R)(Lt,"ps-y-reach-start").pipe((0,A.u)("top"))).pipe((0,o.Q)(this.ngDestroy)).subscribe(St=>{!this.disabled&&(this.autoPropagation||this.scrollIndicators)&&this.stateUpdate.next(St)})}}),window.setTimeout(()=>{zt.forEach(Lt=>{this.directiveRef&&(this.directiveRef[Lt]=this[Lt])})},0))}ngOnDestroy(){(0,F.UE)(this.platformId)&&(this.ngDestroy.next(),this.ngDestroy.unsubscribe(),this.stateTimeout&&typeof window<"u"&&window.clearTimeout(this.stateTimeout))}ngDoCheck(){if((0,F.UE)(this.platformId)&&!this.disabled&&this.autoPropagation&&this.directiveRef){const Lt=this.directiveRef.elementRef.nativeElement;this.usePropagationX=Lt.classList.contains("ps--active-x"),this.usePropagationY=Lt.classList.contains("ps--active-y")}}checkPropagation(Lt,St,At){this.interaction=!0;const fn=St<0?-1:1,mt=At<0?-1:1;(this.usePropagationX&&this.usePropagationY||this.usePropagationX&&(!this.allowPropagationX||this.scrollDirectionX!==fn)||this.usePropagationY&&(!this.allowPropagationY||this.scrollDirectionY!==mt))&&(Lt.preventDefault(),Lt.stopPropagation()),St&&(this.scrollDirectionX=fn),At&&(this.scrollDirectionY=mt),this.stateUpdate.next("interaction"),this.cdRef.detectChanges()}}return we.\u0275fac=function(Lt){return new(Lt||we)(h.rXU(h.SKi),h.rXU(d.gRc),h.rXU(h.Agw))},we.\u0275cmp=h.VBU({type:we,selectors:[["perfect-scrollbar"]],viewQuery:function(Lt,St){if(1&Lt&&h.GBs(st,7),2&Lt){let At;h.mGM(At=h.lsd())&&(St.directiveRef=At.first)}},hostVars:4,hostBindings:function(Lt,St){2&Lt&&h.AVh("ps-show-limits",St.autoPropagation)("ps-show-active",St.scrollIndicators)},inputs:{disabled:"disabled",usePSClass:"usePSClass",autoPropagation:"autoPropagation",scrollIndicators:"scrollIndicators",config:"config"},outputs:{psScrollY:"psScrollY",psScrollX:"psScrollX",psScrollUp:"psScrollUp",psScrollDown:"psScrollDown",psScrollLeft:"psScrollLeft",psScrollRight:"psScrollRight",psYReachEnd:"psYReachEnd",psYReachStart:"psYReachStart",psXReachEnd:"psXReachEnd",psXReachStart:"psXReachStart"},exportAs:["ngxPerfectScrollbar"],standalone:!1,ngContentSelectors:le,decls:4,vars:5,consts:[[2,"position","static",3,"perfectScrollbar","disabled"],[1,"ps-content"],["class","ps-overlay",3,"ps-at-top","ps-at-left","ps-at-right","ps-at-bottom",4,"ngIf"],[1,"ps-overlay"],[1,"ps-indicator-top"],[1,"ps-indicator-left"],[1,"ps-indicator-right"],[1,"ps-indicator-bottom"]],template:function(Lt,St){1&Lt&&(h.NAR(),h.j41(0,"div",0)(1,"div",1),h.SdG(2),h.k0s(),h.DNE(3,Ne,5,16,"div",2),h.k0s()),2&Lt&&(h.AVh("ps",St.usePSClass),h.Y8G("perfectScrollbar",St.config)("disabled",St.disabled),h.R7$(3),h.Y8G("ngIf",St.scrollIndicators))},dependencies:[st,f.bT],styles:["perfect-scrollbar{position:relative;display:block;overflow:hidden;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar[hidden]{display:none}perfect-scrollbar[fxflex]{display:flex;flex-direction:column;height:auto;min-width:0;min-height:0}perfect-scrollbar[fxflex]>.ps{flex:1 1 auto;width:auto;height:auto;min-width:0;min-height:0;-webkit-box-flex:1}perfect-scrollbar[fxlayout]>.ps,perfect-scrollbar[fxlayout]>.ps>.ps-content{display:flex;flex:1 1 auto;flex-direction:inherit;align-items:inherit;align-content:inherit;justify-content:inherit;width:100%;height:100%;-webkit-box-align:inherit;-webkit-box-flex:1;-webkit-box-pack:inherit}perfect-scrollbar[fxlayout=row]>.ps,perfect-scrollbar[fxlayout=row]>.ps>.ps-content{flex-direction:row!important}perfect-scrollbar[fxlayout=column]>.ps,perfect-scrollbar[fxlayout=column]>.ps>.ps-content{flex-direction:column!important}perfect-scrollbar>.ps{position:static;display:block;width:100%;height:100%;max-width:100%;max-height:100%}perfect-scrollbar>.ps textarea{-ms-overflow-style:scrollbar}perfect-scrollbar>.ps>.ps-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:block;overflow:hidden;pointer-events:none}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{position:absolute;opacity:0;transition:opacity .3s ease-in-out}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{left:0;min-width:100%;min-height:24px}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left,perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{top:0;min-width:24px;min-height:100%}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-top{top:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-left{left:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-right{right:0}perfect-scrollbar>.ps>.ps-overlay .ps-indicator-bottom{bottom:0}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y{top:0!important;right:0!important;left:auto!important;width:10px;cursor:default;transition:width .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-y>.ps__rail-y:hover,perfect-scrollbar>.ps.ps--active-y>.ps__rail-y.ps--clicking{width:15px}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x{top:auto!important;bottom:0!important;left:0!important;height:10px;cursor:default;transition:height .2s linear,opacity .2s linear,background-color .2s linear}perfect-scrollbar>.ps.ps--active-x>.ps__rail-x:hover,perfect-scrollbar>.ps.ps--active-x>.ps__rail-x.ps--clicking{height:15px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-y{margin:0 0 10px}perfect-scrollbar>.ps.ps--active-x.ps--active-y>.ps__rail-x{margin:0 10px 0 0}perfect-scrollbar>.ps.ps--scrolling-y>.ps__rail-y,perfect-scrollbar>.ps.ps--scrolling-x>.ps__rail-x{opacity:.9;background-color:#eee}perfect-scrollbar.ps-show-always>.ps.ps--active-y>.ps__rail-y,perfect-scrollbar.ps-show-always>.ps.ps--active-x>.ps__rail-x{opacity:.6}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-top) .ps-indicator-top{opacity:1;background:linear-gradient(to bottom,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-y>.ps-overlay:not(.ps-at-bottom) .ps-indicator-bottom{opacity:1;background:linear-gradient(to top,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-left) .ps-indicator-left{opacity:1;background:linear-gradient(to right,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active>.ps.ps--active-x>.ps-overlay:not(.ps-at-right) .ps-indicator-right{opacity:1;background:linear-gradient(to left,rgba(255,255,255,.5) 0%,rgba(255,255,255,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top{background:linear-gradient(to bottom,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom{background:linear-gradient(to top,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left{background:linear-gradient(to right,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right{background:linear-gradient(to left,rgba(170,170,170,.5) 0%,rgba(170,170,170,0) 100%)}perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-top .ps-indicator-top.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-y>.ps-overlay.ps-at-bottom .ps-indicator-bottom.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-left .ps-indicator-left.ps-indicator-show,perfect-scrollbar.ps-show-active.ps-show-limits>.ps.ps--active-x>.ps-overlay.ps-at-right .ps-indicator-right.ps-indicator-show{opacity:1}\n",".ps{overflow:hidden!important;overflow-anchor:none;-ms-overflow-style:none;touch-action:auto;-ms-touch-action:auto}.ps__rail-x{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;height:15px;bottom:0px;position:absolute}.ps__rail-y{display:none;opacity:0;transition:background-color .2s linear,opacity .2s linear;-webkit-transition:background-color .2s linear,opacity .2s linear;width:15px;right:0;position:absolute}.ps--active-x>.ps__rail-x,.ps--active-y>.ps__rail-y{display:block;background-color:transparent}.ps:hover>.ps__rail-x,.ps:hover>.ps__rail-y,.ps--focus>.ps__rail-x,.ps--focus>.ps__rail-y,.ps--scrolling-x>.ps__rail-x,.ps--scrolling-y>.ps__rail-y{opacity:.6}.ps .ps__rail-x:hover,.ps .ps__rail-y:hover,.ps .ps__rail-x:focus,.ps .ps__rail-y:focus,.ps .ps__rail-x.ps--clicking,.ps .ps__rail-y.ps--clicking{background-color:#eee;opacity:.9}.ps__thumb-x{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,height .2s ease-in-out;-webkit-transition:background-color .2s linear,height .2s ease-in-out;height:6px;bottom:2px;position:absolute}.ps__thumb-y{background-color:#aaa;border-radius:6px;transition:background-color .2s linear,width .2s ease-in-out;-webkit-transition:background-color .2s linear,width .2s ease-in-out;width:6px;right:2px;position:absolute}.ps__rail-x:hover>.ps__thumb-x,.ps__rail-x:focus>.ps__thumb-x,.ps__rail-x.ps--clicking .ps__thumb-x{background-color:#999;height:11px}.ps__rail-y:hover>.ps__thumb-y,.ps__rail-y:focus>.ps__thumb-y,.ps__rail-y.ps--clicking .ps__thumb-y{background-color:#999;width:11px}@supports (-ms-overflow-style: none){.ps{overflow:auto!important}}@media screen and (-ms-high-contrast: active),(-ms-high-contrast: none){.ps{overflow:auto!important}}\n"],encapsulation:2}),we})(),Wt=(()=>{class we{}return we.\u0275fac=function(Lt){return new(Lt||we)},we.\u0275mod=h.$C({type:we}),we.\u0275inj=w.G2t({imports:[[f.MD],f.MD]}),we})()},10467(ke,q,l){"use strict";function i(p,D,o,e,A,h,d){try{var w=p[h](d),f=w.value}catch(F){return void o(F)}w.done?D(f):Promise.resolve(f).then(e,A)}function g(p){return function(){var D=this,o=arguments;return new Promise(function(e,A){var h=p.apply(D,o);function d(f){i(h,e,A,d,w,"next",f)}function w(f){i(h,e,A,d,w,"throw",f)}d(void 0)})}}l.d(q,{A:()=>g})},31635(ke,q,l){"use strict";function o(Y,R,U,fe){var Oe,re=arguments.length,he=re<3?R:null===fe?fe=Object.getOwnPropertyDescriptor(R,U):fe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)he=Reflect.decorate(Y,R,U,fe);else for(var ge=Y.length-1;ge>=0;ge--)(Oe=Y[ge])&&(he=(re<3?Oe(he):re>3?Oe(R,U,he):Oe(R,U))||he);return re>3&&he&&Object.defineProperty(R,U,he),he}function F(Y,R,U,fe){return new(U||(U=Promise))(function(he,Oe){function ge(Me){try{Re(fe.next(Me))}catch(ve){Oe(ve)}}function ce(Me){try{Re(fe.throw(Me))}catch(ve){Oe(ve)}}function Re(Me){Me.done?he(Me.value):function re(he){return he instanceof U?he:new U(function(Oe){Oe(he)})}(Me.value).then(ge,ce)}Re((fe=fe.apply(Y,R||[])).next())})}function ie(Y){return this instanceof ie?(this.v=Y,this):new ie(Y)}function _e(Y,R,U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var re,fe=U.apply(Y,R||[]),he=[];return re=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),ge("next"),ge("throw"),ge("return",function Oe(Se){return function(be){return Promise.resolve(be).then(Se,ve)}}),re[Symbol.asyncIterator]=function(){return this},re;function ge(Se,be){fe[Se]&&(re[Se]=function(nt){return new Promise(function($e,dt){he.push([Se,nt,$e,dt])>1||ce(Se,nt)})},be&&(re[Se]=be(re[Se])))}function ce(Se,be){try{!function Re(Se){Se.value instanceof ie?Promise.resolve(Se.value.v).then(Me,ve):oe(he[0][2],Se)}(fe[Se](be))}catch(nt){oe(he[0][3],nt)}}function Me(Se){ce("next",Se)}function ve(Se){ce("throw",Se)}function oe(Se,be){Se(be),he.shift(),he.length&&ce(he[0][0],he[0][1])}}function se(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,R=Y[Symbol.asyncIterator];return R?R.call(Y):(Y=function Z(Y){var R="function"==typeof Symbol&&Symbol.iterator,U=R&&Y[R],fe=0;if(U)return U.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&fe>=Y.length&&(Y=void 0),{value:Y&&Y[fe++],done:!Y}}};throw new TypeError(R?"Object is not iterable.":"Symbol.iterator is not defined.")}(Y),U={},fe("next"),fe("throw"),fe("return"),U[Symbol.asyncIterator]=function(){return this},U);function fe(he){U[he]=Y[he]&&function(Oe){return new Promise(function(ge,ce){!function re(he,Oe,ge,ce){Promise.resolve(ce).then(function(Re){he({value:Re,done:ge})},Oe)}(ge,ce,(Oe=Y[he](Oe)).done,Oe.value)})}}}l.d(q,{AQ:()=>_e,Cg:()=>o,N3:()=>ie,sH:()=>F,xN:()=>se}),"function"==typeof SuppressedError&&SuppressedError},3219(ke){"use strict";ke.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},62951(ke){"use strict";ke.exports=JSON.parse('{"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/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"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"}}')},64589(ke){"use strict";ke.exports=JSON.parse('{"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"}')},23241(ke){"use strict";ke.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},1636(ke){"use strict";ke.exports={rE:"6.6.1"}},15579(ke){"use strict";ke.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},ke=>{ke(ke.s=67947)}]); \ No newline at end of file diff --git a/frontend/polyfills.17d9756e1f282744.js b/frontend/polyfills.17d9756e1f282744.js new file mode 100644 index 00000000..9aa887bd --- /dev/null +++ b/frontend/polyfills.17d9756e1f282744.js @@ -0,0 +1 @@ +(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[461],{4050(Wt,z,W){window.global=window,window.global.Buffer=window.global.Buffer||W(3838).hp,window.global.process=window.global.process||W(573)},3981(Wt,z){"use strict";z.byteLength=function w(I){var b=Z(I),st=b[1];return 3*(b[0]+st)/4-st},z.toByteArray=function tt(I){var b,gt,q=Z(I),st=q[0],Ct=q[1],dt=new Rt(function u(I,b,q){return 3*(b+q)/4-q}(0,st,Ct)),Pt=0,jt=Ct>0?st-4:st;for(gt=0;gt>16&255,dt[Pt++]=b>>8&255,dt[Pt++]=255&b;return 2===Ct&&(b=N[I.charCodeAt(gt)]<<2|N[I.charCodeAt(gt+1)]>>4,dt[Pt++]=255&b),1===Ct&&(b=N[I.charCodeAt(gt)]<<10|N[I.charCodeAt(gt+1)]<<4|N[I.charCodeAt(gt+2)]>>2,dt[Pt++]=b>>8&255,dt[Pt++]=255&b),dt},z.fromByteArray=function It(I){for(var b,q=I.length,st=q%3,Ct=[],Pt=0,jt=q-st;Ptjt?jt:Pt+16383));return 1===st?Ct.push(W[(b=I[q-1])>>2]+W[b<<4&63]+"=="):2===st&&Ct.push(W[(b=(I[q-2]<<8)+I[q-1])>>10]+W[b>>4&63]+W[b<<2&63]+"="),Ct.join("")};for(var W=[],N=[],Rt=typeof Uint8Array<"u"?Uint8Array:Array,Et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ot=0;ot<64;++ot)W[ot]=Et[ot],N[Et.charCodeAt(ot)]=ot;function Z(I){var b=I.length;if(b%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=I.indexOf("=");return-1===q&&(q=b),[q,q===b?0:4-q%4]}function _t(I){return W[I>>18&63]+W[I>>12&63]+W[I>>6&63]+W[63&I]}function xt(I,b,q){for(var Ct=[],dt=b;dtlt)throw new RangeError('The value "'+r+'" is invalid for option "size"');const t=new Uint8Array(r);return Object.setPrototypeOf(t,u.prototype),t}function u(r,t,e){if("number"==typeof r){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return It(r)}return tt(r,t,e)}function tt(r,t,e){if("string"==typeof r)return function I(r,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|jt(r,t);let n=w(e);const i=n.write(r,t);return i!==e&&(n=n.slice(0,i)),n}(r,t);if(ArrayBuffer.isView(r))return function q(r){if(Ut(r,Uint8Array)){const t=new Uint8Array(r);return st(t.buffer,t.byteOffset,t.byteLength)}return b(r)}(r);if(null==r)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(Ut(r,ArrayBuffer)||r&&Ut(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ut(r,SharedArrayBuffer)||r&&Ut(r.buffer,SharedArrayBuffer)))return st(r,t,e);if("number"==typeof r)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=r.valueOf&&r.valueOf();if(null!=n&&n!==r)return u.from(n,t,e);const i=function Ct(r){if(u.isBuffer(r)){const t=0|dt(r.length),e=w(t);return 0===e.length||r.copy(e,0,0,t),e}return void 0!==r.length?"number"!=typeof r.length||we(r.length)?w(0):b(r):"Buffer"===r.type&&Array.isArray(r.data)?b(r.data):void 0}(r);if(i)return i;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return u.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function _t(r){if("number"!=typeof r)throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function It(r){return _t(r),w(r<0?0:0|dt(r))}function b(r){const t=r.length<0?0:0|dt(r.length),e=w(t);for(let n=0;n=lt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+lt.toString(16)+" bytes");return 0|r}function jt(r,t){if(u.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||Ut(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const e=r.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return he(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return Te(r).length;default:if(i)return n?-1:he(r).length;t=(""+t).toLowerCase(),i=!0}}function gt(r,t,e){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0)||(e>>>=0)<=(t>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ye(this,t,e);case"utf8":case"utf-8":return ae(this,t,e);case"ascii":return Ie(this,t,e);case"latin1":case"binary":return le(this,t,e);case"base64":return Pe(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}function St(r,t,e){const n=r[t];r[t]=r[e],r[e]=n}function Qt(r,t,e,n,i){if(0===r.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),we(e=+e)&&(e=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:se(r,t,e,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):se(r,[t],e,n,i);throw new TypeError("val must be string, number or Buffer")}function se(r,t,e,n,i){let ht,a=1,E=r.length,H=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(r.length<2||t.length<2)return-1;a=2,E/=2,H/=2,e/=2}function mt(Tt,rt){return 1===a?Tt[rt]:Tt.readUInt16BE(rt*a)}if(i){let Tt=-1;for(ht=e;htE&&(e=E-H),ht=e;ht>=0;ht--){let Tt=!0;for(let rt=0;rti&&(n=i):n=i;const a=t.length;let E;for(n>a/2&&(n=a/2),E=0;E>8,i=e%256,a.push(i),a.push(n);return a}(t,r.length-e),r,e,n)}function Pe(r,t,e){return Rt.fromByteArray(0===t&&e===r.length?r:r.slice(t,e))}function ae(r,t,e){e=Math.min(r.length,e);const n=[];let i=t;for(;i239?4:a>223?3:a>191?2:1;if(i+H<=e){let mt,ht,Tt,rt;switch(H){case 1:a<128&&(E=a);break;case 2:mt=r[i+1],128==(192&mt)&&(rt=(31&a)<<6|63&mt,rt>127&&(E=rt));break;case 3:mt=r[i+1],ht=r[i+2],128==(192&mt)&&128==(192&ht)&&(rt=(15&a)<<12|(63&mt)<<6|63&ht,rt>2047&&(rt<55296||rt>57343)&&(E=rt));break;case 4:mt=r[i+1],ht=r[i+2],Tt=r[i+3],128==(192&mt)&&128==(192&ht)&&128==(192&Tt)&&(rt=(15&a)<<18|(63&mt)<<12|(63&ht)<<6|63&Tt,rt>65535&&rt<1114112&&(E=rt))}}null===E?(E=65533,H=1):E>65535&&(E-=65536,n.push(E>>>10&1023|55296),E=56320|1023&E),n.push(E),i+=H}return function xe(r){const t=r.length;if(t<=4096)return String.fromCharCode.apply(String,r);let e="",n=0;for(;nn)&&(e=n);let i="";for(let a=t;ae)throw new RangeError("Trying to access beyond buffer length")}function At(r,t,e,n,i,a){if(!u.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||tr.length)throw new RangeError("Index out of range")}function Ee(r,t,e,n,i){Gt(t,n,i,r,e,7);let a=Number(t&BigInt(4294967295));r[e++]=a,a>>=8,r[e++]=a,a>>=8,r[e++]=a,a>>=8,r[e++]=a;let E=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=E,E>>=8,r[e++]=E,E>>=8,r[e++]=E,E>>=8,r[e++]=E,e}function _e(r,t,e,n,i){Gt(t,n,i,r,e,7);let a=Number(t&BigInt(4294967295));r[e+7]=a,a>>=8,r[e+6]=a,a>>=8,r[e+5]=a,a>>=8,r[e+4]=a;let E=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=E,E>>=8,r[e+2]=E,E>>=8,r[e+1]=E,E>>=8,r[e]=E,e+8}function ge(r,t,e,n,i,a){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Nt(r,t,e,n,i){return t=+t,e>>>=0,i||ge(r,0,e,4),Et.write(r,t,e,n,23,4),e+4}function te(r,t,e,n,i){return t=+t,e>>>=0,i||ge(r,0,e,8),Et.write(r,t,e,n,52,8),e+8}!(u.TYPED_ARRAY_SUPPORT=function Z(){try{const r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),42===r.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&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}}),u.poolSize=8192,u.from=function(r,t,e){return tt(r,t,e)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(r,t,e){return function xt(r,t,e){return _t(r),r<=0?w(r):void 0!==t?"string"==typeof e?w(r).fill(t,e):w(r).fill(t):w(r)}(r,t,e)},u.allocUnsafe=function(r){return It(r)},u.allocUnsafeSlow=function(r){return It(r)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Ut(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Ut(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,i=e.length;for(let a=0,E=Math.min(n,i);ai.length?(u.isBuffer(E)||(E=u.from(E)),E.copy(i,a)):Uint8Array.prototype.set.call(i,E,a);else{if(!u.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(i,a)}a+=E.length}return i},u.byteLength=jt,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""},ot&&(u.prototype[ot]=u.prototype.inspect),u.prototype.compare=function(t,e,n,i,a){if(Ut(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===a&&(a=this.length),e<0||n>t.length||i<0||a>this.length)throw new RangeError("out of range index");if(i>=a&&e>=n)return 0;if(i>=a)return-1;if(e>=n)return 1;if(this===t)return 0;let E=(a>>>=0)-(i>>>=0),H=(n>>>=0)-(e>>>=0);const mt=Math.min(E,H),ht=this.slice(i,a),Tt=t.slice(e,n);for(let rt=0;rt>>=0,isFinite(n)?(n>>>=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}const a=this.length-e;if((void 0===n||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let E=!1;for(;;)switch(i){case"hex":return de(this,t,e,n);case"utf8":case"utf-8":return Q(this,t,e,n);case"ascii":case"latin1":case"binary":return ce(this,t,e,n);case"base64":return ue(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return vt(this,t,e,n);default:if(E)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),E=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||wt(t,e,this.length);let i=this[t],a=1,E=0;for(;++E>>=0,e>>>=0,n||wt(t,e,this.length);let i=this[t+--e],a=1;for(;e>0&&(a*=256);)i+=this[t+--e]*a;return i},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||wt(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||wt(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||wt(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||wt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||wt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Mt(function(t){Yt(t>>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&re(t,this.length-8);const i=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,a=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(i)+(BigInt(a)<>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&re(t,this.length-8);const i=e*2**24+65536*this[++t]+256*this[++t]+this[++t],a=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(i)<>>=0,e>>>=0,n||wt(t,e,this.length);let i=this[t],a=1,E=0;for(;++E=a&&(i-=Math.pow(2,8*e)),i},u.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||wt(t,e,this.length);let i=e,a=1,E=this[t+--i];for(;i>0&&(a*=256);)E+=this[t+--i]*a;return a*=128,E>=a&&(E-=Math.pow(2,8*e)),E},u.prototype.readInt8=function(t,e){return t>>>=0,e||wt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||wt(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){t>>>=0,e||wt(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||wt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||wt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Mt(function(t){Yt(t>>>=0,"offset");const e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&re(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24))<>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&re(t,this.length-8);const i=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(i)<>>=0,e||wt(t,4,this.length),Et.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||wt(t,4,this.length),Et.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||wt(t,8,this.length),Et.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||wt(t,8,this.length),Et.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,n,i){t=+t,e>>>=0,n>>>=0,i||At(this,t,e,n,Math.pow(2,8*n)-1,0);let a=1,E=0;for(this[e]=255&t;++E>>=0,n>>>=0,i||At(this,t,e,n,Math.pow(2,8*n)-1,0);let a=n-1,E=1;for(this[e+a]=255&t;--a>=0&&(E*=256);)this[e+a]=t/E&255;return e+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Mt(function(t,e=0){return Ee(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Mt(function(t,e=0){return _e(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e>>>=0,!i){const mt=Math.pow(2,8*n-1);At(this,t,e,n,mt-1,-mt)}let a=0,E=1,H=0;for(this[e]=255&t;++a>>=0,!i){const mt=Math.pow(2,8*n-1);At(this,t,e,n,mt-1,-mt)}let a=n-1,E=1,H=0;for(this[e+a]=255&t;--a>=0&&(E*=256);)t<0&&0===H&&0!==this[e+a+1]&&(H=1),this[e+a]=(t/E|0)-H&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||At(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Mt(function(t,e=0){return Ee(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Mt(function(t,e=0){return _e(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(t,e,n){return Nt(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return Nt(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return te(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return te(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,i){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&0!==i&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function Gt(r,t,e,n,i,a){if(r>e||r3?0===t||t===BigInt(0)?`>= 0${E} and < 2${E} ** ${8*(a+1)}${E}`:`>= -(2${E} ** ${8*(a+1)-1}${E}) and < 2 ** ${8*(a+1)-1}${E}`:`>= ${t}${E} and <= ${e}${E}`,new ee.ERR_OUT_OF_RANGE("value",H,r)}!function Se(r,t,e){Yt(t,"offset"),(void 0===r[t]||void 0===r[t+e])&&re(t,r.length-(e+1))}(n,i,a)}function Yt(r,t){if("number"!=typeof r)throw new ee.ERR_INVALID_ARG_TYPE(t,"number",r)}function re(r,t,e){throw Math.floor(r)!==r?(Yt(r,e),new ee.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}me("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function(r,t){return`The "${r}" argument must be of type number. Received type ${typeof t}`},TypeError),me("ERR_OUT_OF_RANGE",function(r,t,e){let n=`The value of "${r}" is out of range.`,i=e;return Number.isInteger(e)&&Math.abs(e)>2**32?i=Ht(String(e)):"bigint"==typeof e&&(i=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(i=Ht(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n},RangeError);const Ae=/[^+/0-9A-Za-z-_]/g;function he(r,t){let e;t=t||1/0;const n=r.length;let i=null;const a=[];for(let E=0;E55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(E+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&a.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;a.push(e)}else if(e<2048){if((t-=2)<0)break;a.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;a.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return a}function Te(r){return Rt.toByteArray(function Ot(r){if((r=(r=r.split("=")[0]).trim().replace(Ae,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function fe(r,t,e,n){let i;for(i=0;i=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function Ut(r,t){return r instanceof t||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===t.name}function we(r){return r!=r}const De=function(){const r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const n=16*e;for(let i=0;i<16;++i)t[n+i]=r[e]+r[i]}return t}();function Mt(r){return typeof BigInt>"u"?ne:r}function ne(){throw new Error("BigInt not supported")}},2020(Wt,z){z.read=function(W,N,Rt,Et,ot){var lt,Z,w=8*ot-Et-1,u=(1<>1,_t=-7,xt=Rt?ot-1:0,It=Rt?-1:1,I=W[N+xt];for(xt+=It,lt=I&(1<<-_t)-1,I>>=-_t,_t+=w;_t>0;lt=256*lt+W[N+xt],xt+=It,_t-=8);for(Z=lt&(1<<-_t)-1,lt>>=-_t,_t+=Et;_t>0;Z=256*Z+W[N+xt],xt+=It,_t-=8);if(0===lt)lt=1-tt;else{if(lt===u)return Z?NaN:1/0*(I?-1:1);Z+=Math.pow(2,Et),lt-=tt}return(I?-1:1)*Z*Math.pow(2,lt-Et)},z.write=function(W,N,Rt,Et,ot,lt){var Z,w,u,tt=8*lt-ot-1,_t=(1<>1,It=23===ot?Math.pow(2,-24)-Math.pow(2,-77):0,I=Et?0:lt-1,b=Et?1:-1,q=N<0||0===N&&1/N<0?1:0;for(N=Math.abs(N),isNaN(N)||N===1/0?(w=isNaN(N)?1:0,Z=_t):(Z=Math.floor(Math.log(N)/Math.LN2),N*(u=Math.pow(2,-Z))<1&&(Z--,u*=2),(N+=Z+xt>=1?It/u:It*Math.pow(2,1-xt))*u>=2&&(Z++,u/=2),Z+xt>=_t?(w=0,Z=_t):Z+xt>=1?(w=(N*u-1)*Math.pow(2,ot),Z+=xt):(w=N*Math.pow(2,xt-1)*Math.pow(2,ot),Z=0));ot>=8;W[Rt+I]=255&w,I+=b,w/=256,ot-=8);for(Z=Z<0;W[Rt+I]=255&Z,I+=b,Z/=256,tt-=8);W[Rt+I-b]|=128*q}},573(Wt){var W,N,z=Wt.exports={};function Rt(){throw new Error("setTimeout has not been defined")}function Et(){throw new Error("clearTimeout has not been defined")}function ot(b){if(W===setTimeout)return setTimeout(b,0);if((W===Rt||!W)&&setTimeout)return W=setTimeout,setTimeout(b,0);try{return W(b,0)}catch{try{return W.call(null,b,0)}catch{return W.call(this,b,0)}}}!function(){try{W="function"==typeof setTimeout?setTimeout:Rt}catch{W=Rt}try{N="function"==typeof clearTimeout?clearTimeout:Et}catch{N=Et}}();var u,Z=[],w=!1,tt=-1;function _t(){!w||!u||(w=!1,u.length?Z=u.concat(Z):tt=-1,Z.length&&xt())}function xt(){if(!w){var b=ot(_t);w=!0;for(var q=Z.length;q;){for(u=Z,Z=[];++tt1)for(var st=1;sto in s?Wt(s,o,{enumerable:!0,configurable:!0,writable:!0,value:y}):s[o]=y,lt=(s,o)=>{for(var y in o||(o={}))Rt.call(o,y)&&ot(s,y,o[y]);if(N)for(var y of N(o))Et.call(o,y)&&ot(s,y,o[y]);return s},w=(s,o,y)=>(ot(s,"symbol"!=typeof o?o+"":o,y),y),u=globalThis;function tt(s){return(u.__Zone_symbol_prefix||"__zone_symbol__")+s}var It=Object.getOwnPropertyDescriptor,I=Object.defineProperty,b=Object.getPrototypeOf,q=Object.create,st=Array.prototype.slice,Ct="addEventListener",dt="removeEventListener",Pt=tt(Ct),jt=tt(dt),gt="true",St="false",Qt=tt("");function se(s,o){return Zone.current.wrap(s,o)}function de(s,o,y,c,d){return Zone.current.scheduleMacroTask(s,o,y,c,d)}var Q=tt,ce=typeof window<"u",ue=ce?window:void 0,vt=ce&&ue||globalThis;function ae(s,o){for(let y=s.length-1;y>=0;y--)"function"==typeof s[y]&&(s[y]=se(s[y],o+"_"+y));return s}function xe(s){return!s||!1!==s.writable&&!("function"==typeof s.get&&typeof s.set>"u")}var Ie=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,le=!("nw"in vt)&&typeof vt.process<"u"&&"[object process]"===vt.process.toString(),ye=!le&&!Ie&&!(!ce||!ue.HTMLElement),ve=typeof vt.process<"u"&&"[object process]"===vt.process.toString()&&!Ie&&!(!ce||!ue.HTMLElement),wt={},At=Q("enable_beforeunload"),Ee=function(s){if(!(s=s||vt.event))return;let o=wt[s.type];o||(o=wt[s.type]=Q("ON_PROPERTY"+s.type));const y=this||s.target||vt,c=y[o];let d;return ye&&y===ue&&"error"===s.type?(d=c&&c.call(this,s.message,s.filename,s.lineno,s.colno,s.error),!0===d&&s.preventDefault()):(d=c&&c.apply(this,arguments),"beforeunload"===s.type&&vt[At]&&"string"==typeof d?s.returnValue=d:null!=d&&!d&&s.preventDefault()),d};function _e(s,o,y){let c=It(s,o);if(!c&&y&&It(y,o)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const d=Q("on"+o+"patched");if(s.hasOwnProperty(d)&&s[d])return;delete c.writable,delete c.value;const _=c.get,D=c.set,x=o.slice(2);let S=wt[x];S||(S=wt[x]=Q("ON_PROPERTY"+x)),c.set=function(U){let B=this;!B&&s===vt&&(B=vt),B&&("function"==typeof B[S]&&B.removeEventListener(x,Ee),D?.call(B,null),B[S]=U,"function"==typeof U&&B.addEventListener(x,Ee,!1))},c.get=function(){let U=this;if(!U&&s===vt&&(U=vt),!U)return null;const B=U[S];if(B)return B;if(_){let L=_.call(this);if(L)return c.set.call(this,L),"function"==typeof U.removeAttribute&&U.removeAttribute(o),L}return null},I(s,o,c),s[d]=!0}function ge(s,o,y){if(o)for(let c=0;cfunction(D,x){const S=y(D,x);return S.cbIdx>=0&&"function"==typeof x[S.cbIdx]?de(S.name,x[S.cbIdx],S,d):_.apply(D,x)})}function Gt(s,o){s[Q("OriginalDelegate")]=o}function Yt(s){return"function"==typeof s}function re(s){return"number"==typeof s}var Ae={useG:!0},Ot={},he={},Be=new RegExp("^"+Qt+"(\\w+)(true|false)$"),Re=Q("propagationStopped");function Te(s,o){const y=(o?o(s):s)+St,c=(o?o(s):s)+gt,d=Qt+y,_=Qt+c;Ot[s]={},Ot[s][St]=d,Ot[s][gt]=_}function fe(s,o,y,c){const d=c&&c.add||Ct,_=c&&c.rm||dt,D=c&&c.listeners||"eventListeners",x=c&&c.rmAll||"removeAllListeners",S=Q(d),U="."+d+":",B="prependListener",L="."+B+":",Y=function(P,k,ct){if(P.isRemoved)return;const et=P.callback;let yt;"object"==typeof et&&et.handleEvent&&(P.callback=R=>et.handleEvent(R),P.originalDelegate=et);try{P.invoke(P,k,[ct])}catch(R){yt=R}const ut=P.options;return ut&&"object"==typeof ut&&ut.once&&k[_].call(k,ct.type,P.originalDelegate?P.originalDelegate:P.callback,ut),yt};function K(P,k,ct){if(!(k=k||s.event))return;const et=P||k.target||s,yt=et[Ot[k.type][ct?gt:St]];if(yt){const ut=[];if(1===yt.length){const R=Y(yt[0],et,k);R&&ut.push(R)}else{const R=yt.slice();for(let bt=0;bt{throw bt})}}}const Dt=function(P){return K(this,P,!1)},kt=function(P){return K(this,P,!0)};function Lt(P,k){if(!P)return!1;let ct=!0;k&&void 0!==k.useG&&(ct=k.useG);const et=k&&k.vh;let yt=!0;k&&void 0!==k.chkDup&&(yt=k.chkDup);let ut=!1;k&&void 0!==k.rt&&(ut=k.rt);let R=P;for(;R&&!R.hasOwnProperty(d);)R=b(R);if(!R&&P[d]&&(R=P),!R||R[S])return!1;const bt=k&&k.eventNameToString,j={},M=R[S]=R[d],X=R[Q(_)]=R[_],F=R[Q(D)]=R[D],Ft=R[Q(x)]=R[x];let Zt;k&&k.prepend&&(Zt=R[Q(k.prepend)]=R[k.prepend]);const it=ct?function(p){if(!j.isExisting)return M.call(j.target,j.eventName,j.capture?kt:Dt,j.options)}:function(p){return M.call(j.target,j.eventName,p.invoke,j.options)},J=ct?function(p){if(!p.isRemoved){const m=Ot[p.eventName];let C;m&&(C=m[p.capture?gt:St]);const O=C&&p.target[C];if(O)for(let v=0;vz(s,W({passive:!0})))(lt({},p)):p:{passive:!0}:p}(arguments[2],ie)),oe=$t?.signal;if(oe?.aborted)return;if(Kt)for(let Xt=0;Xtzt.zone.cancelTask(zt);p.call(oe,"abort",Xt,{once:!0}),zt.removeAbortListener=()=>oe.removeEventListener("abort",Xt)}return j.target=null,ke&&(ke.taskData=null),Ue&&(j.options.once=!0),"boolean"!=typeof zt.options&&(zt.options=$t),zt.target=V,zt.capture=Fe,zt.eventName=$,pt&&(zt.originalDelegate=ft),G?pe.unshift(zt):pe.push(zt),v?V:void 0}};return R[d]=g(M,U,it,J,ut),Zt&&(R[B]=g(Zt,L,function(p){return Zt.call(j.target,j.eventName,p.invoke,j.options)},J,ut,!0)),R[_]=function(){const p=this||s;let m=arguments[0];k&&k.transferEventName&&(m=k.transferEventName(m));const C=arguments[2],O=!!C&&("boolean"==typeof C||C.capture),v=arguments[1];if(!v)return X.apply(this,arguments);if(et&&!et(X,v,p,arguments))return;const G=Ot[m];let V;G&&(V=G[O?gt:St]);const $=V&&p[V];if($)for(let ft=0;ft<$.length;ft++){const pt=$[ft];if(Jt(pt,v))return $.splice(ft,1),pt.isRemoved=!0,0!==$.length||(pt.allRemoved=!0,p[V]=null,O||"string"!=typeof m)||(p[Qt+"ON_PROPERTY"+m]=null),pt.zone.cancelTask(pt),ut?p:void 0}return X.apply(this,arguments)},R[D]=function(){const p=this||s;let m=arguments[0];k&&k.transferEventName&&(m=k.transferEventName(m));const C=[],O=Ut(p,bt?bt(m):m);for(let v=0;vfunction(d,_){d[Re]=!0,c&&c.apply(d,_)})}var Mt=Q("zoneTask");function ne(s,o,y,c){let d=null,_=null;y+=c;const D={};function x(U){const B=U.data;B.args[0]=function(){return U.invoke.apply(this,arguments)};const L=d.apply(s,B.args);return re(L)?B.handleId=L:(B.handle=L,B.isRefreshable=Yt(L.refresh)),U}function S(U){const{handle:B,handleId:L}=U.data;return _.call(s,B??L)}d=Ht(s,o+=c,U=>function(B,L){var Y;if(Yt(L[0])){const K={isRefreshable:!1,isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?L[1]||0:void 0,args:L},Dt=L[0];L[0]=function(){try{return Dt.apply(this,arguments)}finally{const{handle:et,handleId:yt,isPeriodic:ut,isRefreshable:R}=K;!ut&&!R&&(yt?delete D[yt]:et&&(et[Mt]=null))}};const kt=de(o,L[0],K,x,S);if(!kt)return kt;const{handleId:Lt,handle:Bt,isRefreshable:P,isPeriodic:k}=kt.data;if(Lt)D[Lt]=kt;else if(Bt&&(Bt[Mt]=kt,P&&!k)){const ct=Bt.refresh;Bt.refresh=function(){const{zone:et,state:yt}=kt;return"notScheduled"===yt?(kt._state="scheduled",et._updateTaskCount(kt,1)):"running"===yt&&(kt._state="scheduling"),ct.call(this)}}return null!=(Y=Bt??Lt)?Y:kt}return U.apply(s,L)}),_=Ht(s,y,U=>function(B,L){const Y=L[0];let K;re(Y)?(K=D[Y],delete D[Y]):(K=Y?.[Mt],K?Y[Mt]=null:K=Y),K?.type?K.cancelFn&&K.zone.cancelTask(K):U.apply(s,L)})}function n(s,o,y){if(!y||0===y.length)return o;const c=y.filter(_=>_.target===s);if(0===c.length)return o;const d=c[0].ignoreProperties;return o.filter(_=>-1===d.indexOf(_))}function i(s,o,y,c){s&&ge(s,n(s,o,y),c)}function a(s){return Object.getOwnPropertyNames(s).filter(o=>o.startsWith("on")&&o.length>2).map(o=>o.substring(2))}function Tt(s,o,y,c,d){const _=Zone.__symbol__(c);if(o[_])return;const D=o[_]=o[c];o[c]=function(x,S,U){return S&&S.prototype&&d.forEach(function(B){const L=`${y}.${c}::`+B,Y=S.prototype;try{if(Y.hasOwnProperty(B)){const K=s.ObjectGetOwnPropertyDescriptor(Y,B);K&&K.value?(K.value=s.wrapWithCurrentZone(K.value,L),s._redefineProperty(S.prototype,B,K)):Y[B]&&(Y[B]=s.wrapWithCurrentZone(Y[B],L))}else Y[B]&&(Y[B]=s.wrapWithCurrentZone(Y[B],L))}catch{}}),D.call(o,x,S,U)},s.attachOriginToPatched(o[c],D)}var Le=function xt(){const o=globalThis,y=!0===o[tt("forceDuplicateZoneCheck")];if(o.Zone&&(y||"function"!=typeof o.Zone.__symbol__))throw new Error("Zone already loaded.");return null!=o.Zone||(o.Zone=function _t(){const s=u.performance;function o(nt){s&&s.mark&&s.mark(nt)}function y(nt,f){s&&s.measure&&s.measure(nt,f)}o("Zone");const c=class Oe{constructor(f,h){w(this,"_parent"),w(this,"_name"),w(this,"_properties"),w(this,"_zoneDelegate"),this._parent=f,this._name=h?h.name||"unnamed":"",this._properties=h&&h.properties||{},this._zoneDelegate=new D(this,this._parent&&this._parent._zoneDelegate,h)}static assertZonePatched(){if(u.Promise!==M.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let f=Oe.current;for(;f.parent;)f=f.parent;return f}static get current(){return F.zone}static get currentTask(){return Ft}static __load_patch(f,h,l=!1){if(M.hasOwnProperty(f)){const A=!0===u[tt("forceDuplicateZoneCheck")];if(!l&&A)throw Error("Already loaded patch: "+f)}else if(!u["__Zone_disable_"+f]){const A="Zone:"+f;o(A),M[f]=h(u,Oe,X),y(A,A)}}get parent(){return this._parent}get name(){return this._name}get(f){const h=this.getZoneWith(f);if(h)return h._properties[f]}getZoneWith(f){let h=this;for(;h;){if(h._properties.hasOwnProperty(f))return h;h=h._parent}return null}fork(f){if(!f)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,f)}wrap(f,h){if("function"!=typeof f)throw new Error("Expecting function got: "+f);const l=this._zoneDelegate.intercept(this,f,h),A=this;return function(){return A.runGuarded(l,this,arguments,h)}}run(f,h,l,A){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,f,h,l,A)}finally{F=F.parent}}runGuarded(f,h=null,l,A){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,f,h,l,A)}catch(it){if(this._zoneDelegate.handleError(this,it))throw it}}finally{F=F.parent}}runTask(f,h,l){if(f.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(f.zone||Bt).name+"; Execution: "+this.name+")");const A=f,{type:it,data:{isPeriodic:J=!1,isRefreshable:qt=!1}={}}=f;if(f.state===P&&(it===j||it===bt))return;const Jt=f.state!=et;Jt&&A._transitionTo(et,ct);const Kt=Ft;Ft=A,F={parent:F,zone:this};try{it==bt&&f.data&&!J&&!qt&&(f.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,A,h,l)}catch(Vt){if(this._zoneDelegate.handleError(this,Vt))throw Vt}}finally{const Vt=f.state;if(Vt!==P&&Vt!==ut)if(it==j||J||qt&&Vt===k)Jt&&A._transitionTo(ct,et,k);else{const T=A._zoneDelegates;this._updateTaskCount(A,-1),Jt&&A._transitionTo(P,et,P),qt&&(A._zoneDelegates=T)}F=F.parent,Ft=Kt}}scheduleTask(f){if(f.zone&&f.zone!==this){let l=this;for(;l;){if(l===f.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${f.zone.name}`);l=l.parent}}f._transitionTo(k,P);const h=[];f._zoneDelegates=h,f._zone=this;try{f=this._zoneDelegate.scheduleTask(this,f)}catch(l){throw f._transitionTo(ut,k,P),this._zoneDelegate.handleError(this,l),l}return f._zoneDelegates===h&&this._updateTaskCount(f,1),f.state==k&&f._transitionTo(ct,k),f}scheduleMicroTask(f,h,l,A){return this.scheduleTask(new x(R,f,h,l,A,void 0))}scheduleMacroTask(f,h,l,A,it){return this.scheduleTask(new x(bt,f,h,l,A,it))}scheduleEventTask(f,h,l,A,it){return this.scheduleTask(new x(j,f,h,l,A,it))}cancelTask(f){if(f.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(f.zone||Bt).name+"; Execution: "+this.name+")");if(f.state===ct||f.state===et){f._transitionTo(yt,ct,et);try{this._zoneDelegate.cancelTask(this,f)}catch(h){throw f._transitionTo(ut,yt),this._zoneDelegate.handleError(this,h),h}return this._updateTaskCount(f,-1),f._transitionTo(P,yt),f.runCount=-1,f}}_updateTaskCount(f,h){const l=f._zoneDelegates;-1==h&&(f._zoneDelegates=null);for(let A=0;Ant.hasTask(h,l),onScheduleTask:(nt,f,h,l)=>nt.scheduleTask(h,l),onInvokeTask:(nt,f,h,l,A,it)=>nt.invokeTask(h,l,A,it),onCancelTask:(nt,f,h,l)=>nt.cancelTask(h,l)};class D{constructor(f,h,l){w(this,"_zone"),w(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),w(this,"_parentDelegate"),w(this,"_forkDlgt"),w(this,"_forkZS"),w(this,"_forkCurrZone"),w(this,"_interceptDlgt"),w(this,"_interceptZS"),w(this,"_interceptCurrZone"),w(this,"_invokeDlgt"),w(this,"_invokeZS"),w(this,"_invokeCurrZone"),w(this,"_handleErrorDlgt"),w(this,"_handleErrorZS"),w(this,"_handleErrorCurrZone"),w(this,"_scheduleTaskDlgt"),w(this,"_scheduleTaskZS"),w(this,"_scheduleTaskCurrZone"),w(this,"_invokeTaskDlgt"),w(this,"_invokeTaskZS"),w(this,"_invokeTaskCurrZone"),w(this,"_cancelTaskDlgt"),w(this,"_cancelTaskZS"),w(this,"_cancelTaskCurrZone"),w(this,"_hasTaskDlgt"),w(this,"_hasTaskDlgtOwner"),w(this,"_hasTaskZS"),w(this,"_hasTaskCurrZone"),this._zone=f,this._parentDelegate=h,this._forkZS=l&&(l&&l.onFork?l:h._forkZS),this._forkDlgt=l&&(l.onFork?h:h._forkDlgt),this._forkCurrZone=l&&(l.onFork?this._zone:h._forkCurrZone),this._interceptZS=l&&(l.onIntercept?l:h._interceptZS),this._interceptDlgt=l&&(l.onIntercept?h:h._interceptDlgt),this._interceptCurrZone=l&&(l.onIntercept?this._zone:h._interceptCurrZone),this._invokeZS=l&&(l.onInvoke?l:h._invokeZS),this._invokeDlgt=l&&(l.onInvoke?h:h._invokeDlgt),this._invokeCurrZone=l&&(l.onInvoke?this._zone:h._invokeCurrZone),this._handleErrorZS=l&&(l.onHandleError?l:h._handleErrorZS),this._handleErrorDlgt=l&&(l.onHandleError?h:h._handleErrorDlgt),this._handleErrorCurrZone=l&&(l.onHandleError?this._zone:h._handleErrorCurrZone),this._scheduleTaskZS=l&&(l.onScheduleTask?l:h._scheduleTaskZS),this._scheduleTaskDlgt=l&&(l.onScheduleTask?h:h._scheduleTaskDlgt),this._scheduleTaskCurrZone=l&&(l.onScheduleTask?this._zone:h._scheduleTaskCurrZone),this._invokeTaskZS=l&&(l.onInvokeTask?l:h._invokeTaskZS),this._invokeTaskDlgt=l&&(l.onInvokeTask?h:h._invokeTaskDlgt),this._invokeTaskCurrZone=l&&(l.onInvokeTask?this._zone:h._invokeTaskCurrZone),this._cancelTaskZS=l&&(l.onCancelTask?l:h._cancelTaskZS),this._cancelTaskDlgt=l&&(l.onCancelTask?h:h._cancelTaskDlgt),this._cancelTaskCurrZone=l&&(l.onCancelTask?this._zone:h._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const A=l&&l.onHasTask;(A||h&&h._hasTaskZS)&&(this._hasTaskZS=A?l:_,this._hasTaskDlgt=h,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,l.onScheduleTask||(this._scheduleTaskZS=_,this._scheduleTaskDlgt=h,this._scheduleTaskCurrZone=this._zone),l.onInvokeTask||(this._invokeTaskZS=_,this._invokeTaskDlgt=h,this._invokeTaskCurrZone=this._zone),l.onCancelTask||(this._cancelTaskZS=_,this._cancelTaskDlgt=h,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(f,h){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,f,h):new d(f,h)}intercept(f,h,l){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,f,h,l):h}invoke(f,h,l,A,it){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,f,h,l,A,it):h.apply(l,A)}handleError(f,h){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,f,h)}scheduleTask(f,h){let l=h;if(this._scheduleTaskZS)this._hasTaskZS&&l._zoneDelegates.push(this._hasTaskDlgtOwner),l=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,f,h),l||(l=h);else if(h.scheduleFn)h.scheduleFn(h);else{if(h.type!=R)throw new Error("Task is missing scheduleFn.");kt(h)}return l}invokeTask(f,h,l,A){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,f,h,l,A):h.callback.apply(l,A)}cancelTask(f,h){let l;if(this._cancelTaskZS)l=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,f,h);else{if(!h.cancelFn)throw Error("Task is not cancelable");l=h.cancelFn(h)}return l}hasTask(f,h){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,f,h)}catch(l){this.handleError(f,l)}}_updateTaskCount(f,h){const l=this._taskCounts,A=l[f],it=l[f]=A+h;if(it<0)throw new Error("More tasks executed then were scheduled.");0!=A&&0!=it||this.hasTask(this._zone,{microTask:l.microTask>0,macroTask:l.macroTask>0,eventTask:l.eventTask>0,change:f})}}class x{constructor(f,h,l,A,it,J){if(w(this,"type"),w(this,"source"),w(this,"invoke"),w(this,"callback"),w(this,"data"),w(this,"scheduleFn"),w(this,"cancelFn"),w(this,"_zone",null),w(this,"runCount",0),w(this,"_zoneDelegates",null),w(this,"_state","notScheduled"),this.type=f,this.source=h,this.data=A,this.scheduleFn=it,this.cancelFn=J,!l)throw new Error("callback is not defined");this.callback=l;const qt=this;this.invoke=f===j&&A&&A.useG?x.invokeTask:function(){return x.invokeTask.call(u,qt,this,arguments)}}static invokeTask(f,h,l){f||(f=this),Zt++;try{return f.runCount++,f.zone.runTask(f,h,l)}finally{1==Zt&&Lt(),Zt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(P,k)}_transitionTo(f,h,l){if(this._state!==h&&this._state!==l)throw new Error(`${this.type} '${this.source}': can not transition to '${f}', expecting state '${h}'${l?" or '"+l+"'":""}, was '${this._state}'.`);this._state=f,f==P&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const S=tt("setTimeout"),U=tt("Promise"),B=tt("then");let K,L=[],Y=!1;function Dt(nt){if(K||u[U]&&(K=u[U].resolve(0)),K){let f=K[B];f||(f=K.then),f.call(K,nt)}else u[S](nt,0)}function kt(nt){0===Zt&&0===L.length&&Dt(Lt),nt&&L.push(nt)}function Lt(){if(!Y){for(Y=!0;L.length;){const nt=L;L=[];for(let f=0;fF,onUnhandledError:at,microtaskDrainDone:at,scheduleMicroTask:kt,showUncaughtError:()=>!d[tt("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:at,patchMethod:()=>at,bindArguments:()=>[],patchThen:()=>at,patchMacroTask:()=>at,patchEventPrototype:()=>at,getGlobalObjects:()=>{},ObjectDefineProperty:()=>at,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>at,wrapWithCurrentZone:()=>at,filterProperties:()=>[],attachOriginToPatched:()=>at,_redefineProperty:()=>at,patchCallbacks:()=>at,nativeScheduleMicroTask:Dt};let F={parent:null,zone:new d(null,null)},Ft=null,Zt=0;function at(){}return y("Zone","Zone"),d}()),o.Zone}();(function Ge(s){(function mt(s){s.__load_patch("ZoneAwarePromise",(o,y,c)=>{const d=Object.getOwnPropertyDescriptor,_=Object.defineProperty,x=c.symbol,S=[],U=!1!==o[x("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],B=x("Promise"),L=x("then");c.onUnhandledError=T=>{if(c.showUncaughtError()){const g=T&&T.rejection;g?console.error("Unhandled Promise rejection:",g instanceof Error?g.message:g,"; Zone:",T.zone.name,"; Task:",T.task&&T.task.source,"; Value:",g,g instanceof Error?g.stack:void 0):console.error(T)}},c.microtaskDrainDone=()=>{for(;S.length;){const T=S.shift();try{T.zone.runGuarded(()=>{throw T.throwOriginal?T.rejection:T})}catch(g){Dt(g)}}};const K=x("unhandledPromiseRejectionHandler");function Dt(T){c.onUnhandledError(T);try{const g=y[K];"function"==typeof g&&g.call(this,T)}catch{}}function kt(T){return T&&"function"==typeof T.then}function Lt(T){return T}function Bt(T){return J.reject(T)}const P=x("state"),k=x("value"),ct=x("finally"),et=x("parentPromiseValue"),yt=x("parentPromiseState"),R=null,j=!1;function X(T,g){return p=>{try{at(T,g,p)}catch(m){at(T,!1,m)}}}const F=function(){let T=!1;return function(p){return function(){T||(T=!0,p.apply(null,arguments))}}},Ft="Promise resolved with itself",Zt=x("currentTaskTrace");function at(T,g,p){const m=F();if(T===p)throw new TypeError(Ft);if(T[P]===R){let C=null;try{("object"==typeof p||"function"==typeof p)&&(C=p&&p.then)}catch(O){return m(()=>{at(T,!1,O)})(),T}if(g!==j&&p instanceof J&&p.hasOwnProperty(P)&&p.hasOwnProperty(k)&&p[P]!==R)f(p),at(T,p[P],p[k]);else if(g!==j&&"function"==typeof C)try{C.call(p,m(X(T,g)),m(X(T,!1)))}catch(O){m(()=>{at(T,!1,O)})()}else{T[P]=g;const O=T[k];if(T[k]=p,T[ct]===ct&&!0===g&&(T[P]=T[yt],T[k]=T[et]),g===j&&p instanceof Error){const v=y.currentTask&&y.currentTask.data&&y.currentTask.data.__creationTrace__;v&&_(p,Zt,{configurable:!0,enumerable:!1,writable:!0,value:v})}for(let v=0;v{try{const G=T[k],V=!!p&&ct===p[ct];V&&(p[et]=G,p[yt]=O);const $=g.run(v,void 0,V&&v!==Bt&&v!==Lt?[]:[G]);at(p,!0,$)}catch(G){at(p,!1,G)}},p)}const A=function(){},it=o.AggregateError;class J{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(g){return g instanceof J?g:at(new this(null),!0,g)}static reject(g){return at(new this(null),j,g)}static withResolvers(){const g={};return g.promise=new J((p,m)=>{g.resolve=p,g.reject=m}),g}static any(g){if(!g||"function"!=typeof g[Symbol.iterator])return Promise.reject(new it([],"All promises were rejected"));const p=[];let m=0;try{for(let v of g)m++,p.push(J.resolve(v))}catch{return Promise.reject(new it([],"All promises were rejected"))}if(0===m)return Promise.reject(new it([],"All promises were rejected"));let C=!1;const O=[];return new J((v,G)=>{for(let V=0;V{C||(C=!0,v($))},$=>{O.push($),m--,0===m&&(C=!0,G(new it(O,"All promises were rejected")))})})}static race(g){let p,m,C=new this((G,V)=>{p=G,m=V});function O(G){p(G)}function v(G){m(G)}for(let G of g)kt(G)||(G=this.resolve(G)),G.then(O,v);return C}static all(g){return J.allWithCallback(g)}static allSettled(g){return(this&&this.prototype instanceof J?this:J).allWithCallback(g,{thenCallback:m=>({status:"fulfilled",value:m}),errorCallback:m=>({status:"rejected",reason:m})})}static allWithCallback(g,p){let m,C,O=new this(($,ft)=>{m=$,C=ft}),v=2,G=0;const V=[];for(let $ of g){kt($)||($=this.resolve($));const ft=G;try{$.then(pt=>{V[ft]=p?p.thenCallback(pt):pt,v--,0===v&&m(V)},pt=>{p?(V[ft]=p.errorCallback(pt),v--,0===v&&m(V)):C(pt)})}catch(pt){C(pt)}v++,G++}return v-=2,0===v&&m(V),O}constructor(g){const p=this;if(!(p instanceof J))throw new Error("Must be an instanceof Promise.");p[P]=R,p[k]=[];try{const m=F();g&&g(m(X(p,!0)),m(X(p,j)))}catch(m){at(p,!1,m)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return J}then(g,p){var m;let C=null==(m=this.constructor)?void 0:m[Symbol.species];(!C||"function"!=typeof C)&&(C=this.constructor||J);const O=new C(A),v=y.current;return this[P]==R?this[k].push(v,O,g,p):h(this,v,O,g,p),O}catch(g){return this.then(null,g)}finally(g){var p;let m=null==(p=this.constructor)?void 0:p[Symbol.species];(!m||"function"!=typeof m)&&(m=J);const C=new m(A);C[ct]=ct;const O=y.current;return this[P]==R?this[k].push(O,C,g,g):h(this,O,C,g,g),C}}J.resolve=J.resolve,J.reject=J.reject,J.race=J.race,J.all=J.all;const qt=o[B]=o.Promise;o.Promise=J;const Jt=x("thenPatched");function Kt(T){const g=T.prototype,p=d(g,"then");if(p&&(!1===p.writable||!p.configurable))return;const m=g.then;g[L]=m,T.prototype.then=function(C,O){return new J((G,V)=>{m.call(this,G,V)}).then(C,O)},T[Jt]=!0}return c.patchThen=Kt,qt&&(Kt(qt),Ht(o,"fetch",T=>function Vt(T){return function(g,p){let m=T.apply(g,p);if(m instanceof J)return m;let C=m.constructor;return C[Jt]||Kt(C),m}}(T))),Promise[y.__symbol__("uncaughtPromiseErrors")]=S,J})})(s),function ht(s){s.__load_patch("toString",o=>{const y=Function.prototype.toString,c=Q("OriginalDelegate"),d=Q("Promise"),_=Q("Error"),D=function(){if("function"==typeof this){const B=this[c];if(B)return"function"==typeof B?y.call(B):Object.prototype.toString.call(B);if(this===Promise){const L=o[d];if(L)return y.call(L)}if(this===Error){const L=o[_];if(L)return y.call(L)}}return y.call(this)};D[c]=y,Function.prototype.toString=D;const x=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":x.call(this)}})}(s),function rt(s){s.__load_patch("util",(o,y,c)=>{const d=a(o);c.patchOnProperties=ge,c.patchMethod=Ht,c.bindArguments=ae,c.patchMacroTask=Se;const _=y.__symbol__("BLACK_LISTED_EVENTS"),D=y.__symbol__("UNPATCHED_EVENTS");o[D]&&(o[_]=o[D]),o[_]&&(y[_]=y[D]=o[_]),c.patchEventPrototype=we,c.patchEventTarget=fe,c.ObjectDefineProperty=I,c.ObjectGetOwnPropertyDescriptor=It,c.ObjectCreate=q,c.ArraySlice=st,c.patchClass=te,c.wrapWithCurrentZone=se,c.filterProperties=n,c.attachOriginToPatched=Gt,c._redefineProperty=Object.defineProperty,c.patchCallbacks=Tt,c.getGlobalObjects=()=>({globalSources:he,zoneSymbolEventNames:Ot,eventNames:d,isBrowser:ye,isMix:ve,isNode:le,TRUE_STR:gt,FALSE_STR:St,ZONE_SYMBOL_PREFIX:Qt,ADD_EVENT_LISTENER_STR:Ct,REMOVE_EVENT_LISTENER_STR:dt})})}(s)})(Le),function H(s){s.__load_patch("timers",o=>{const c="clear";ne(o,"set",c,"Timeout"),ne(o,"set",c,"Interval"),ne(o,"set",c,"Immediate")}),s.__load_patch("requestAnimationFrame",o=>{ne(o,"request","cancel","AnimationFrame"),ne(o,"mozRequest","mozCancel","AnimationFrame"),ne(o,"webkitRequest","webkitCancel","AnimationFrame")}),s.__load_patch("blocking",(o,y)=>{const c=["alert","prompt","confirm"];for(let d=0;dfunction(U,B){return y.current.run(D,o,B,S)})}),s.__load_patch("EventTarget",(o,y,c)=>{(function e(s,o){o.patchEventPrototype(s,o)})(o,c),function t(s,o){if(Zone[o.symbol("patchEventTarget")])return;const{eventNames:y,zoneSymbolEventNames:c,TRUE_STR:d,FALSE_STR:_,ZONE_SYMBOL_PREFIX:D}=o.getGlobalObjects();for(let S=0;S{te("MutationObserver"),te("WebKitMutationObserver")}),s.__load_patch("IntersectionObserver",(o,y,c)=>{te("IntersectionObserver")}),s.__load_patch("FileReader",(o,y,c)=>{te("FileReader")}),s.__load_patch("on_property",(o,y,c)=>{!function E(s,o){if(le&&!ve||Zone[s.symbol("patchEvents")])return;const y=o.__Zone_ignore_on_properties;let c=[];if(ye){const d=window;c=c.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),i(d,a(d),y,b(d))}c=c.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let d=0;d{!function r(s,o){const{isBrowser:y,isMix:c}=o.getGlobalObjects();(y||c)&&s.customElements&&"customElements"in s&&o.patchCallbacks(o,s.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(o,c)}),s.__load_patch("XHR",(o,y)=>{!function U(B){const L=B.XMLHttpRequest;if(!L)return;const Y=L.prototype;let Dt=Y[Pt],kt=Y[jt];if(!Dt){const M=B.XMLHttpRequestEventTarget;if(M){const X=M.prototype;Dt=X[Pt],kt=X[jt]}}const Lt="readystatechange",Bt="scheduled";function P(M){const X=M.data,F=X.target;F[D]=!1,F[S]=!1;const Ft=F[_];Dt||(Dt=F[Pt],kt=F[jt]),Ft&&kt.call(F,Lt,Ft);const Zt=F[_]=()=>{if(F.readyState===F.DONE)if(!X.aborted&&F[D]&&M.state===Bt){const nt=F[y.__symbol__("loadfalse")];if(0!==F.status&&nt&&nt.length>0){const f=M.invoke;M.invoke=function(){const h=F[y.__symbol__("loadfalse")];for(let l=0;lfunction(M,X){return M[d]=0==X[2],M[x]=X[1],et.apply(M,X)}),ut=Q("fetchTaskAborting"),R=Q("fetchTaskScheduling"),bt=Ht(Y,"send",()=>function(M,X){if(!0===y.current[R]||M[d])return bt.apply(M,X);{const F={target:M,url:M[x],isPeriodic:!1,args:X,aborted:!1},Ft=de("XMLHttpRequest.send",k,F,P,ct);M&&!0===M[S]&&!F.aborted&&Ft.state===Bt&&Ft.invoke()}}),j=Ht(Y,"abort",()=>function(M,X){const F=function K(M){return M[c]}(M);if(F&&"string"==typeof F.type){if(null==F.cancelFn||F.data&&F.data.aborted)return;F.zone.cancelTask(F)}else if(!0===y.current[ut])return j.apply(M,X)})}(o);const c=Q("xhrTask"),d=Q("xhrSync"),_=Q("xhrListener"),D=Q("xhrScheduled"),x=Q("xhrURL"),S=Q("xhrErrorBeforeScheduled")}),s.__load_patch("geolocation",o=>{o.navigator&&o.navigator.geolocation&&function be(s,o){const y=s.constructor.name;for(let c=0;c{const S=function(){return x.apply(this,ae(arguments,y+"."+d))};return Gt(S,x),S})(_)}}}(o.navigator.geolocation,["getCurrentPosition","watchPosition"])}),s.__load_patch("PromiseRejectionEvent",(o,y)=>{function c(d){return function(_){Ut(o,d).forEach(x=>{const S=o.PromiseRejectionEvent;if(S){const U=new S(d,{promise:_.promise,reason:_.rejection});x.invoke(U)}})}}o.PromiseRejectionEvent&&(y[Q("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),y[Q("rejectionHandledHandler")]=c("rejectionhandled"))}),s.__load_patch("queueMicrotask",(o,y,c)=>{!function De(s,o){o.patchMethod(s,"queueMicrotask",y=>function(c,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])})}(o,c)})}(Le)}},Wt=>{var z=N=>Wt(Wt.s=N);z(6935),z(4050)}]); \ No newline at end of file diff --git a/frontend/polyfills.8896a5234c2940fd.js b/frontend/polyfills.8896a5234c2940fd.js deleted file mode 100644 index a174ec4f..00000000 --- a/frontend/polyfills.8896a5234c2940fd.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[461],{24050(Wt,j,W){window.global=window,window.global.Buffer=window.global.Buffer||W(83838).Buffer,window.global.process=window.global.process||W(40573)},13981(Wt,j){"use strict";j.byteLength=function i(b){var x=N(b),lt=x[1];return 3*(x[0]+lt)/4-lt},j.toByteArray=function et(b){var x,rt,H=N(b),lt=H[0],vt=H[1],Tt=new bt(function K(b,x,H){return 3*(x+H)/4-H}(0,lt,vt)),Ct=0,Ht=vt>0?lt-4:lt;for(rt=0;rt>16&255,Tt[Ct++]=x>>8&255,Tt[Ct++]=255&x;return 2===vt&&(x=A[b.charCodeAt(rt)]<<2|A[b.charCodeAt(rt+1)]>>4,Tt[Ct++]=255&x),1===vt&&(x=A[b.charCodeAt(rt)]<<10|A[b.charCodeAt(rt+1)]<<4|A[b.charCodeAt(rt+2)]>>2,Tt[Ct++]=x>>8&255,Tt[Ct++]=255&x),Tt},j.fromByteArray=function Rt(b){for(var x,H=b.length,lt=H%3,vt=[],Ct=0,Ht=H-lt;CtHt?Ht:Ct+16383));return 1===lt?vt.push(W[(x=b[H-1])>>2]+W[x<<4&63]+"=="):2===lt&&vt.push(W[(x=(b[H-2]<<8)+b[H-1])>>10]+W[x>>4&63]+W[x<<2&63]+"="),vt.join("")};for(var W=[],A=[],bt=typeof Uint8Array<"u"?Uint8Array:Array,Bt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0;tt<64;++tt)W[tt]=Bt[tt],A[Bt.charCodeAt(tt)]=tt;function N(b){var x=b.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var H=b.indexOf("=");return-1===H&&(H=x),[H,H===x?0:4-H%4]}function mt(b){return W[b>>18&63]+W[b>>12&63]+W[b>>6&63]+W[63&b]}function yt(b,x,H){for(var vt=[],Tt=x;Tttt)throw new RangeError('The value "'+r+'" is invalid for option "size"');const t=new Uint8Array(r);return Object.setPrototypeOf(t,i.prototype),t}function i(r,t,e){if("number"==typeof r){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return yt(r)}return K(r,t,e)}function K(r,t,e){if("string"==typeof r)return function Rt(r,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!i.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const e=0|Ct(r,t);let n=N(e);const o=n.write(r,t);return o!==e&&(n=n.slice(0,o)),n}(r,t);if(ArrayBuffer.isView(r))return function x(r){if(jt(r,Uint8Array)){const t=new Uint8Array(r);return H(t.buffer,t.byteOffset,t.byteLength)}return b(r)}(r);if(null==r)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(jt(r,ArrayBuffer)||r&&jt(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(jt(r,SharedArrayBuffer)||r&&jt(r.buffer,SharedArrayBuffer)))return H(r,t,e);if("number"==typeof r)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=r.valueOf&&r.valueOf();if(null!=n&&n!==r)return i.from(n,t,e);const o=function lt(r){if(i.isBuffer(r)){const t=0|vt(r.length),e=N(t);return 0===e.length||r.copy(e,0,0,t),e}return void 0!==r.length?"number"!=typeof r.length||ue(r.length)?N(0):b(r):"Buffer"===r.type&&Array.isArray(r.data)?b(r.data):void 0}(r);if(o)return o;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof r[Symbol.toPrimitive])return i.from(r[Symbol.toPrimitive]("string"),t,e);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}function et(r){if("number"!=typeof r)throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function yt(r){return et(r),N(r<0?0:0|vt(r))}function b(r){const t=r.length<0?0:0|vt(r.length),e=N(t);for(let n=0;n=tt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+tt.toString(16)+" bytes");return 0|r}function Ct(r,t){if(i.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||jt(r,ArrayBuffer))return r.byteLength;if("string"!=typeof r)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);const e=r.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===e)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":return Dt(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return ge(r).length;default:if(o)return n?-1:Dt(r).length;t=(""+t).toLowerCase(),o=!0}}function Ht(r,t,e){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===e||e>this.length)&&(e=this.length),e<=0)||(e>>>=0)<=(t>>>=0))return"";for(r||(r="utf8");;)switch(r){case"hex":return ce(this,t,e);case"utf8":case"utf-8":return Te(this,t,e);case"ascii":return we(this,t,e);case"latin1":case"binary":return ke(this,t,e);case"base64":return xt(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,t,e);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}function rt(r,t,e){const n=r[t];r[t]=r[e],r[e]=n}function Mt(r,t,e,n,o){if(0===r.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),ue(e=+e)&&(e=o?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(o)return-1;e=r.length-1}else if(e<0){if(!o)return-1;e=0}if("string"==typeof t&&(t=i.from(t,n)),i.isBuffer(t))return 0===t.length?-1:Qt(r,t,e,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):Qt(r,[t],e,n,o);throw new TypeError("val must be string, number or Buffer")}function Qt(r,t,e,n,o){let ht,a=1,E=r.length,G=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(r.length<2||t.length<2)return-1;a=2,E/=2,G/=2,e/=2}function Et(_t,it){return 1===a?_t[it]:_t.readUInt16BE(it*a)}if(o){let _t=-1;for(ht=e;htE&&(e=E-G),ht=e;ht>=0;ht--){let _t=!0;for(let it=0;ito&&(n=o):n=o;const a=t.length;let E;for(n>a/2&&(n=a/2),E=0;E>8,o=e%256,a.push(o),a.push(n);return a}(t,r.length-e),r,e,n)}function xt(r,t,e){return A.fromByteArray(0===t&&e===r.length?r:r.slice(t,e))}function Te(r,t,e){e=Math.min(r.length,e);const n=[];let o=t;for(;o239?4:a>223?3:a>191?2:1;if(o+G<=e){let Et,ht,_t,it;switch(G){case 1:a<128&&(E=a);break;case 2:Et=r[o+1],128==(192&Et)&&(it=(31&a)<<6|63&Et,it>127&&(E=it));break;case 3:Et=r[o+1],ht=r[o+2],128==(192&Et)&&128==(192&ht)&&(it=(15&a)<<12|(63&Et)<<6|63&ht,it>2047&&(it<55296||it>57343)&&(E=it));break;case 4:Et=r[o+1],ht=r[o+2],_t=r[o+3],128==(192&Et)&&128==(192&ht)&&128==(192&_t)&&(it=(15&a)<<18|(63&Et)<<12|(63&ht)<<6|63&_t,it>65535&&it<1114112&&(E=it))}}null===E?(E=65533,G=1):E>65535&&(E-=65536,n.push(E>>>10&1023|55296),E=56320|1023&E),n.push(E),o+=G}return function Pe(r){const t=r.length;if(t<=4096)return String.fromCharCode.apply(String,r);let e="",n=0;for(;nn)&&(e=n);let o="";for(let a=t;ae)throw new RangeError("Trying to access beyond buffer length")}function Pt(r,t,e,n,o,a){if(!i.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||tr.length)throw new RangeError("Index out of range")}function be(r,t,e,n,o){Ie(t,n,o,r,e,7);let a=Number(t&BigInt(4294967295));r[e++]=a,a>>=8,r[e++]=a,a>>=8,r[e++]=a,a>>=8,r[e++]=a;let E=Number(t>>BigInt(32)&BigInt(4294967295));return r[e++]=E,E>>=8,r[e++]=E,E>>=8,r[e++]=E,E>>=8,r[e++]=E,e}function de(r,t,e,n,o){Ie(t,n,o,r,e,7);let a=Number(t&BigInt(4294967295));r[e+7]=a,a>>=8,r[e+6]=a,a>>=8,r[e+5]=a,a>>=8,r[e+4]=a;let E=Number(t>>BigInt(32)&BigInt(4294967295));return r[e+3]=E,E>>=8,r[e+2]=E,E>>=8,r[e+1]=E,E>>=8,r[e]=E,e+8}function ye(r,t,e,n,o,a){if(e+n>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function Ee(r,t,e,n,o){return t=+t,e>>>=0,o||ye(r,0,e,4),bt.write(r,t,e,n,23,4),e+4}function Ot(r,t,e,n,o){return t=+t,e>>>=0,o||ye(r,0,e,8),bt.write(r,t,e,n,52,8),e+8}j.kMaxLength=tt,!(i.TYPED_ARRAY_SUPPORT=function gt(){try{const r=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(r,t),42===r.foo()}catch{return!1}}())&&typeof console<"u"&&"function"==typeof console.error&&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(i.prototype,"parent",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.buffer}}),Object.defineProperty(i.prototype,"offset",{enumerable:!0,get:function(){if(i.isBuffer(this))return this.byteOffset}}),i.poolSize=8192,i.from=function(r,t,e){return K(r,t,e)},Object.setPrototypeOf(i.prototype,Uint8Array.prototype),Object.setPrototypeOf(i,Uint8Array),i.alloc=function(r,t,e){return function mt(r,t,e){return et(r),r<=0?N(r):void 0!==t?"string"==typeof e?N(r).fill(t,e):N(r).fill(t):N(r)}(r,t,e)},i.allocUnsafe=function(r){return yt(r)},i.allocUnsafeSlow=function(r){return yt(r)},i.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==i.prototype},i.compare=function(t,e){if(jt(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),jt(e,Uint8Array)&&(e=i.from(e,e.offset,e.byteLength)),!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,o=e.length;for(let a=0,E=Math.min(n,o);ao.length?(i.isBuffer(E)||(E=i.from(E)),E.copy(o,a)):Uint8Array.prototype.set.call(o,E,a);else{if(!i.isBuffer(E))throw new TypeError('"list" argument must be an Array of Buffers');E.copy(o,a)}a+=E.length}return o},i.byteLength=Ct,i.prototype._isBuffer=!0,i.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;ee&&(t+=" ... "),""},Bt&&(i.prototype[Bt]=i.prototype.inspect),i.prototype.compare=function(t,e,n,o,a){if(jt(t,Uint8Array)&&(t=i.from(t,t.offset,t.byteLength)),!i.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===o&&(o=0),void 0===a&&(a=this.length),e<0||n>t.length||o<0||a>this.length)throw new RangeError("out of range index");if(o>=a&&e>=n)return 0;if(o>=a)return-1;if(e>=n)return 1;if(this===t)return 0;let E=(a>>>=0)-(o>>>=0),G=(n>>>=0)-(e>>>=0);const Et=Math.min(E,G),ht=this.slice(o,a),_t=t.slice(e,n);for(let it=0;it>>=0,isFinite(n)?(n>>>=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}const a=this.length-e;if((void 0===n||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");let E=!1;for(;;)switch(o){case"hex":return he(this,t,e,n);case"utf8":case"utf-8":return fe(this,t,e,n);case"ascii":case"latin1":case"binary":return Q(this,t,e,n);case"base64":return ie(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,t,e,n);default:if(E)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),E=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},i.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||It(t,e,this.length);let o=this[t],a=1,E=0;for(;++E>>=0,e>>>=0,n||It(t,e,this.length);let o=this[t+--e],a=1;for(;e>0&&(a*=256);)o+=this[t+--e]*a;return o},i.prototype.readUint8=i.prototype.readUInt8=function(t,e){return t>>>=0,e||It(t,1,this.length),this[t]},i.prototype.readUint16LE=i.prototype.readUInt16LE=function(t,e){return t>>>=0,e||It(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUint16BE=i.prototype.readUInt16BE=function(t,e){return t>>>=0,e||It(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUint32LE=i.prototype.readUInt32LE=function(t,e){return t>>>=0,e||It(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUint32BE=i.prototype.readUInt32BE=function(t,e){return t>>>=0,e||It(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readBigUInt64LE=qt(function(t){At(t>>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&te(t,this.length-8);const o=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,a=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(o)+(BigInt(a)<>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&te(t,this.length-8);const o=e*2**24+65536*this[++t]+256*this[++t]+this[++t],a=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(o)<>>=0,e>>>=0,n||It(t,e,this.length);let o=this[t],a=1,E=0;for(;++E=a&&(o-=Math.pow(2,8*e)),o},i.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||It(t,e,this.length);let o=e,a=1,E=this[t+--o];for(;o>0&&(a*=256);)E+=this[t+--o]*a;return a*=128,E>=a&&(E-=Math.pow(2,8*e)),E},i.prototype.readInt8=function(t,e){return t>>>=0,e||It(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){t>>>=0,e||It(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){t>>>=0,e||It(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return t>>>=0,e||It(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return t>>>=0,e||It(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readBigInt64LE=qt(function(t){At(t>>>=0,"offset");const e=this[t],n=this[t+7];return(void 0===e||void 0===n)&&te(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24))<>>=0,"offset");const e=this[t],n=this[t+7];(void 0===e||void 0===n)&&te(t,this.length-8);const o=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(o)<>>=0,e||It(t,4,this.length),bt.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return t>>>=0,e||It(t,4,this.length),bt.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return t>>>=0,e||It(t,8,this.length),bt.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return t>>>=0,e||It(t,8,this.length),bt.read(this,t,!1,52,8)},i.prototype.writeUintLE=i.prototype.writeUIntLE=function(t,e,n,o){t=+t,e>>>=0,n>>>=0,o||Pt(this,t,e,n,Math.pow(2,8*n)-1,0);let a=1,E=0;for(this[e]=255&t;++E>>=0,n>>>=0,o||Pt(this,t,e,n,Math.pow(2,8*n)-1,0);let a=n-1,E=1;for(this[e+a]=255&t;--a>=0&&(E*=256);)this[e+a]=t/E&255;return e+n},i.prototype.writeUint8=i.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,1,255,0),this[e]=255&t,e+1},i.prototype.writeUint16LE=i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeUint16BE=i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeUint32LE=i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},i.prototype.writeUint32BE=i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeBigUInt64LE=qt(function(t,e=0){return be(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeBigUInt64BE=qt(function(t,e=0){return de(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),i.prototype.writeIntLE=function(t,e,n,o){if(t=+t,e>>>=0,!o){const Et=Math.pow(2,8*n-1);Pt(this,t,e,n,Et-1,-Et)}let a=0,E=1,G=0;for(this[e]=255&t;++a>>=0,!o){const Et=Math.pow(2,8*n-1);Pt(this,t,e,n,Et-1,-Et)}let a=n-1,E=1,G=0;for(this[e+a]=255&t;--a>=0&&(E*=256);)t<0&&0===G&&0!==this[e+a+1]&&(G=1),this[e+a]=(t/E|0)-G&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||Pt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},i.prototype.writeBigInt64LE=qt(function(t,e=0){return be(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeBigInt64BE=qt(function(t,e=0){return de(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),i.prototype.writeFloatLE=function(t,e,n){return Ee(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return Ee(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return Ot(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return Ot(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,o){if(!i.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),!o&&0!==o&&(o=this.length),e>=t.length&&(e=t.length),e||(e=0),o>0&&o=this.length)throw new RangeError("Index out of range");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a=n+4;e-=3)t=`_${r.slice(e-3,e)}${t}`;return`${r.slice(0,e)}${t}`}function Ie(r,t,e,n,o,a){if(r>e||r3?0===t||t===BigInt(0)?`>= 0${E} and < 2${E} ** ${8*(a+1)}${E}`:`>= -(2${E} ** ${8*(a+1)-1}${E}) and < 2 ** ${8*(a+1)-1}${E}`:`>= ${t}${E} and <= ${e}${E}`,new Zt.ERR_OUT_OF_RANGE("value",G,r)}!function Gt(r,t,e){At(t,"offset"),(void 0===r[t]||void 0===r[t+e])&&te(t,r.length-(e+1))}(n,o,a)}function At(r,t){if("number"!=typeof r)throw new Zt.ERR_INVALID_ARG_TYPE(t,"number",r)}function te(r,t,e){throw Math.floor(r)!==r?(At(r,e),new Zt.ERR_OUT_OF_RANGE(e||"offset","an integer",r)):t<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(e||"offset",`>= ${e?1:0} and <= ${t}`,r)}_e("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),_e("ERR_INVALID_ARG_TYPE",function(r,t){return`The "${r}" argument must be of type number. Received type ${typeof t}`},TypeError),_e("ERR_OUT_OF_RANGE",function(r,t,e){let n=`The value of "${r}" is out of range.`,o=e;return Number.isInteger(e)&&Math.abs(e)>2**32?o=xe(String(e)):"bigint"==typeof e&&(o=String(e),(e>BigInt(2)**BigInt(32)||e<-(BigInt(2)**BigInt(32)))&&(o=xe(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const Be=/[^+/0-9A-Za-z-_]/g;function Dt(r,t){let e;t=t||1/0;const n=r.length;let o=null;const a=[];for(let E=0;E55295&&e<57344){if(!o){if(e>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(E+1===n){(t-=3)>-1&&a.push(239,191,189);continue}o=e;continue}if(e<56320){(t-=3)>-1&&a.push(239,191,189),o=e;continue}e=65536+(o-55296<<10|e-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,e<128){if((t-=1)<0)break;a.push(e)}else if(e<2048){if((t-=2)<0)break;a.push(e>>6|192,63&e|128)}else if(e<65536){if((t-=3)<0)break;a.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return a}function ge(r){return A.toByteArray(function Se(r){if((r=(r=r.split("=")[0]).trim().replace(Be,"")).length<2)return"";for(;r.length%4!=0;)r+="=";return r}(r))}function re(r,t,e,n){let o;for(o=0;o=t.length||o>=r.length);++o)t[o+e]=r[o];return o}function jt(r,t){return r instanceof t||null!=r&&null!=r.constructor&&null!=r.constructor.name&&r.constructor.name===t.name}function ue(r){return r!=r}const Ae=function(){const r="0123456789abcdef",t=new Array(256);for(let e=0;e<16;++e){const n=16*e;for(let o=0;o<16;++o)t[n+o]=r[e]+r[o]}return t}();function qt(r){return typeof BigInt>"u"?ae:r}function ae(){throw new Error("BigInt not supported")}},22020(Wt,j){j.read=function(W,A,bt,Bt,tt){var gt,N,i=8*tt-Bt-1,K=(1<>1,mt=-7,yt=bt?tt-1:0,Rt=bt?-1:1,b=W[A+yt];for(yt+=Rt,gt=b&(1<<-mt)-1,b>>=-mt,mt+=i;mt>0;gt=256*gt+W[A+yt],yt+=Rt,mt-=8);for(N=gt&(1<<-mt)-1,gt>>=-mt,mt+=Bt;mt>0;N=256*N+W[A+yt],yt+=Rt,mt-=8);if(0===gt)gt=1-et;else{if(gt===K)return N?NaN:1/0*(b?-1:1);N+=Math.pow(2,Bt),gt-=et}return(b?-1:1)*N*Math.pow(2,gt-Bt)},j.write=function(W,A,bt,Bt,tt,gt){var N,i,K,et=8*gt-tt-1,mt=(1<>1,Rt=23===tt?Math.pow(2,-24)-Math.pow(2,-77):0,b=Bt?0:gt-1,x=Bt?1:-1,H=A<0||0===A&&1/A<0?1:0;for(A=Math.abs(A),isNaN(A)||A===1/0?(i=isNaN(A)?1:0,N=mt):(N=Math.floor(Math.log(A)/Math.LN2),A*(K=Math.pow(2,-N))<1&&(N--,K*=2),(A+=N+yt>=1?Rt/K:Rt*Math.pow(2,1-yt))*K>=2&&(N++,K/=2),N+yt>=mt?(i=0,N=mt):N+yt>=1?(i=(A*K-1)*Math.pow(2,tt),N+=yt):(i=A*Math.pow(2,yt-1)*Math.pow(2,tt),N=0));tt>=8;W[bt+b]=255&i,b+=x,i/=256,tt-=8);for(N=N<0;W[bt+b]=255&N,b+=x,N/=256,et-=8);W[bt+b-x]|=128*H}},40573(Wt){var W,A,j=Wt.exports={};function bt(){throw new Error("setTimeout has not been defined")}function Bt(){throw new Error("clearTimeout has not been defined")}function tt(x){if(W===setTimeout)return setTimeout(x,0);if((W===bt||!W)&&setTimeout)return W=setTimeout,setTimeout(x,0);try{return W(x,0)}catch{try{return W.call(null,x,0)}catch{return W.call(this,x,0)}}}!function(){try{W="function"==typeof setTimeout?setTimeout:bt}catch{W=bt}try{A="function"==typeof clearTimeout?clearTimeout:Bt}catch{A=Bt}}();var K,N=[],i=!1,et=-1;function mt(){!i||!K||(i=!1,K.length?N=K.concat(N):et=-1,N.length&&yt())}function yt(){if(!i){var x=tt(mt);i=!0;for(var H=N.length;H;){for(K=N,N=[];++et1)for(var lt=1;lts in c?Wt(c,s,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[s]=y,gt=(c,s)=>{for(var y in s||(s={}))bt.call(s,y)&&tt(c,y,s[y]);if(A)for(var y of A(s))Bt.call(s,y)&&tt(c,y,s[y]);return c},i=(c,s,y)=>(tt(c,"symbol"!=typeof s?s+"":s,y),y),K=globalThis;function et(c){return(K.__Zone_symbol_prefix||"__zone_symbol__")+c}var Rt=Object.getOwnPropertyDescriptor,b=Object.defineProperty,x=Object.getPrototypeOf,H=Object.create,lt=Array.prototype.slice,vt="addEventListener",Tt="removeEventListener",Ct=et(vt),Ht=et(Tt),rt="true",Mt="false",Qt=et("");function he(c,s){return Zone.current.wrap(c,s)}function fe(c,s,y,u,d){return Zone.current.scheduleMacroTask(c,s,y,u,d)}var Q=et,ie=typeof window<"u",oe=ie?window:void 0,xt=ie&&oe||globalThis;function se(c,s){for(let y=c.length-1;y>=0;y--)"function"==typeof c[y]&&(c[y]=he(c[y],s+"_"+y));return c}function we(c){return!c||!1!==c.writable&&!("function"==typeof c.get&&typeof c.set>"u")}var ke=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ce=!("nw"in xt)&&typeof xt.process<"u"&&"[object process]"===xt.process.toString(),pe=!ce&&!ke&&!(!ie||!oe.HTMLElement),It=typeof xt.process<"u"&&"[object process]"===xt.process.toString()&&!ke&&!(!ie||!oe.HTMLElement),Pt={},be=Q("enable_beforeunload"),de=function(c){if(!(c=c||xt.event))return;let s=Pt[c.type];s||(s=Pt[c.type]=Q("ON_PROPERTY"+c.type));const y=this||c.target||xt,u=y[s];let d;return pe&&y===oe&&"error"===c.type?(d=u&&u.call(this,c.message,c.filename,c.lineno,c.colno,c.error),!0===d&&c.preventDefault()):(d=u&&u.apply(this,arguments),"beforeunload"===c.type&&xt[be]&&"string"==typeof d?c.returnValue=d:null!=d&&!d&&c.preventDefault()),d};function ye(c,s,y){let u=Rt(c,s);if(!u&&y&&Rt(y,s)&&(u={enumerable:!0,configurable:!0}),!u||!u.configurable)return;const d=Q("on"+s+"patched");if(c.hasOwnProperty(d)&&c[d])return;delete u.writable,delete u.value;const _=u.get,D=u.set,k=s.slice(2);let P=Pt[k];P||(P=Pt[k]=Q("ON_PROPERTY"+k)),u.set=function(U){let B=this;!B&&c===xt&&(B=xt),B&&("function"==typeof B[P]&&B.removeEventListener(k,de),D?.call(B,null),B[P]=U,"function"==typeof U&&B.addEventListener(k,de,!1))},u.get=function(){let U=this;if(!U&&c===xt&&(U=xt),!U)return null;const B=U[P];if(B)return B;if(_){let L=_.call(this);if(L)return u.set.call(this,L),"function"==typeof U.removeAttribute&&U.removeAttribute(s),L}return null},b(c,s,u),c[d]=!0}function Ee(c,s,y){if(s)for(let u=0;ufunction(D,k){const P=y(D,k);return P.cbIdx>=0&&"function"==typeof k[P.cbIdx]?fe(P.name,k[P.cbIdx],P,d):_.apply(D,k)})}function At(c,s){c[Q("OriginalDelegate")]=s}function te(c){return"function"==typeof c}function Be(c){return"number"==typeof c}var Se={useG:!0},Dt={},ve={},Re=new RegExp("^"+Qt+"(\\w+)(true|false)$"),ge=Q("propagationStopped");function re(c,s){const y=(s?s(c):c)+Mt,u=(s?s(c):c)+rt,d=Qt+y,_=Qt+u;Dt[c]={},Dt[c][Mt]=d,Dt[c][rt]=_}function jt(c,s,y,u){const d=u&&u.add||vt,_=u&&u.rm||Tt,D=u&&u.listeners||"eventListeners",k=u&&u.rmAll||"removeAllListeners",P=Q(d),U="."+d+":",B="prependListener",L="."+B+":",X=function(C,w,ct){if(C.isRemoved)return;const nt=C.callback;let dt;"object"==typeof nt&&nt.handleEvent&&(C.callback=v=>nt.handleEvent(v),C.originalDelegate=nt);try{C.invoke(C,w,[ct])}catch(v){dt=v}const ut=C.options;return ut&&"object"==typeof ut&&ut.once&&w[_].call(w,ct.type,C.originalDelegate?C.originalDelegate:C.callback,ut),dt};function J(C,w,ct){if(!(w=w||c.event))return;const nt=C||w.target||c,dt=nt[Dt[w.type][ct?rt:Mt]];if(dt){const ut=[];if(1===dt.length){const v=X(dt[0],nt,w);v&&ut.push(v)}else{const v=dt.slice();for(let kt=0;kt{throw kt})}}}const Ft=function(C){return J(this,C,!1)},wt=function(C){return J(this,C,!0)};function Lt(C,w){if(!C)return!1;let ct=!0;w&&void 0!==w.useG&&(ct=w.useG);const nt=w&&w.vh;let dt=!0;w&&void 0!==w.chkDup&&(dt=w.chkDup);let ut=!1;w&&void 0!==w.rt&&(ut=w.rt);let v=C;for(;v&&!v.hasOwnProperty(d);)v=x(v);if(!v&&C[d]&&(v=C),!v||v[P])return!1;const kt=w&&w.eventNameToString,Z={},M=v[P]=v[d],q=v[Q(_)]=v[_],F=v[Q(D)]=v[D],Nt=v[Q(k)]=v[k];let Ut;w&&w.prepend&&(Ut=v[Q(w.prepend)]=v[w.prepend]);const st=ct?function(p){if(!Z.isExisting)return M.call(Z.target,Z.eventName,Z.capture?wt:Ft,Z.options)}:function(p){return M.call(Z.target,Z.eventName,p.invoke,Z.options)},Y=ct?function(p){if(!p.isRemoved){const m=Dt[p.eventName];let R;m&&(R=m[p.capture?rt:Mt]);const O=R&&p.target[R];if(O)for(let I=0;Ij(c,W({passive:!0})))(gt({},p)):p:{passive:!0}:p}(arguments[2],ee)),ne=$t?.signal;if(ne?.aborted)return;if(Kt)for(let Yt=0;Ytzt.zone.cancelTask(zt);p.call(ne,"abort",Yt,{once:!0}),zt.removeAbortListener=()=>ne.removeEventListener("abort",Yt)}return Z.target=null,me&&(me.taskData=null),Le&&(Z.options.once=!0),"boolean"!=typeof zt.options&&(zt.options=$t),zt.target=$,zt.capture=De,zt.eventName=z,pt&&(zt.originalDelegate=ft),V?le.unshift(zt):le.push(zt),I?$:void 0}};return v[d]=g(M,U,st,Y,ut),Ut&&(v[B]=g(Ut,L,function(p){return Ut.call(Z.target,Z.eventName,p.invoke,Z.options)},Y,ut,!0)),v[_]=function(){const p=this||c;let m=arguments[0];w&&w.transferEventName&&(m=w.transferEventName(m));const R=arguments[2],O=!!R&&("boolean"==typeof R||R.capture),I=arguments[1];if(!I)return q.apply(this,arguments);if(nt&&!nt(q,I,p,arguments))return;const V=Dt[m];let $;V&&($=V[O?rt:Mt]);const z=$&&p[$];if(z)for(let ft=0;ftfunction(d,_){d[ge]=!0,u&&u.apply(d,_)})}var ae=Q("zoneTask");function r(c,s,y,u){let d=null,_=null;y+=u;const D={};function k(U){const B=U.data;B.args[0]=function(){return U.invoke.apply(this,arguments)};const L=d.apply(c,B.args);return Be(L)?B.handleId=L:(B.handle=L,B.isRefreshable=te(L.refresh)),U}function P(U){const{handle:B,handleId:L}=U.data;return _.call(c,B??L)}d=Gt(c,s+=u,U=>function(B,L){var X;if(te(L[0])){const J={isRefreshable:!1,isPeriodic:"Interval"===u,delay:"Timeout"===u||"Interval"===u?L[1]||0:void 0,args:L},Ft=L[0];L[0]=function(){try{return Ft.apply(this,arguments)}finally{const{handle:nt,handleId:dt,isPeriodic:ut,isRefreshable:v}=J;!ut&&!v&&(dt?delete D[dt]:nt&&(nt[ae]=null))}};const wt=fe(s,L[0],J,k,P);if(!wt)return wt;const{handleId:Lt,handle:St,isRefreshable:C,isPeriodic:w}=wt.data;if(Lt)D[Lt]=wt;else if(St&&(St[ae]=wt,C&&!w)){const ct=St.refresh;St.refresh=function(){const{zone:nt,state:dt}=wt;return"notScheduled"===dt?(wt._state="scheduled",nt._updateTaskCount(wt,1)):"running"===dt&&(wt._state="scheduling"),ct.call(this)}}return null!=(X=St??Lt)?X:wt}return U.apply(c,L)}),_=Gt(c,y,U=>function(B,L){const X=L[0];let J;Be(X)?(J=D[X],delete D[X]):(J=X?.[ae],J?X[ae]=null:J=X),J?.type?J.cancelFn&&J.zone.cancelTask(J):U.apply(c,L)})}function o(c,s,y){if(!y||0===y.length)return s;const u=y.filter(_=>_.target===c);if(0===u.length)return s;const d=u[0].ignoreProperties;return s.filter(_=>-1===d.indexOf(_))}function a(c,s,y,u){c&&Ee(c,o(c,s,y),u)}function E(c){return Object.getOwnPropertyNames(c).filter(s=>s.startsWith("on")&&s.length>2).map(s=>s.substring(2))}function it(c,s,y,u,d){const _=Zone.__symbol__(u);if(s[_])return;const D=s[_]=s[u];s[u]=function(k,P,U){return P&&P.prototype&&d.forEach(function(B){const L=`${y}.${u}::`+B,X=P.prototype;try{if(X.hasOwnProperty(B)){const J=c.ObjectGetOwnPropertyDescriptor(X,B);J&&J.value?(J.value=c.wrapWithCurrentZone(J.value,L),c._redefineProperty(P.prototype,B,J)):X[B]&&(X[B]=c.wrapWithCurrentZone(X[B],L))}else X[B]&&(X[B]=c.wrapWithCurrentZone(X[B],L))}catch{}}),D.call(s,k,P,U)},c.attachOriginToPatched(s[u],D)}var Oe=function yt(){const s=globalThis,y=!0===s[et("forceDuplicateZoneCheck")];if(s.Zone&&(y||"function"!=typeof s.Zone.__symbol__))throw new Error("Zone already loaded.");return null!=s.Zone||(s.Zone=function mt(){const c=K.performance;function s(ot){c&&c.mark&&c.mark(ot)}function y(ot,f){c&&c.measure&&c.measure(ot,f)}s("Zone");const u=class Ne{constructor(f,h){i(this,"_parent"),i(this,"_name"),i(this,"_properties"),i(this,"_zoneDelegate"),this._parent=f,this._name=h?h.name||"unnamed":"",this._properties=h&&h.properties||{},this._zoneDelegate=new D(this,this._parent&&this._parent._zoneDelegate,h)}static assertZonePatched(){if(K.Promise!==M.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let f=Ne.current;for(;f.parent;)f=f.parent;return f}static get current(){return F.zone}static get currentTask(){return Nt}static __load_patch(f,h,l=!1){if(M.hasOwnProperty(f)){const S=!0===K[et("forceDuplicateZoneCheck")];if(!l&&S)throw Error("Already loaded patch: "+f)}else if(!K["__Zone_disable_"+f]){const S="Zone:"+f;s(S),M[f]=h(K,Ne,q),y(S,S)}}get parent(){return this._parent}get name(){return this._name}get(f){const h=this.getZoneWith(f);if(h)return h._properties[f]}getZoneWith(f){let h=this;for(;h;){if(h._properties.hasOwnProperty(f))return h;h=h._parent}return null}fork(f){if(!f)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,f)}wrap(f,h){if("function"!=typeof f)throw new Error("Expecting function got: "+f);const l=this._zoneDelegate.intercept(this,f,h),S=this;return function(){return S.runGuarded(l,this,arguments,h)}}run(f,h,l,S){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,f,h,l,S)}finally{F=F.parent}}runGuarded(f,h=null,l,S){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,f,h,l,S)}catch(st){if(this._zoneDelegate.handleError(this,st))throw st}}finally{F=F.parent}}runTask(f,h,l){if(f.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(f.zone||St).name+"; Execution: "+this.name+")");const S=f,{type:st,data:{isPeriodic:Y=!1,isRefreshable:Xt=!1}={}}=f;if(f.state===C&&(st===Z||st===kt))return;const Jt=f.state!=nt;Jt&&S._transitionTo(nt,ct);const Kt=Nt;Nt=S,F={parent:F,zone:this};try{st==kt&&f.data&&!Y&&!Xt&&(f.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,S,h,l)}catch(Vt){if(this._zoneDelegate.handleError(this,Vt))throw Vt}}finally{const Vt=f.state;if(Vt!==C&&Vt!==ut)if(st==Z||Y||Xt&&Vt===w)Jt&&S._transitionTo(ct,nt,w);else{const T=S._zoneDelegates;this._updateTaskCount(S,-1),Jt&&S._transitionTo(C,nt,C),Xt&&(S._zoneDelegates=T)}F=F.parent,Nt=Kt}}scheduleTask(f){if(f.zone&&f.zone!==this){let l=this;for(;l;){if(l===f.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${f.zone.name}`);l=l.parent}}f._transitionTo(w,C);const h=[];f._zoneDelegates=h,f._zone=this;try{f=this._zoneDelegate.scheduleTask(this,f)}catch(l){throw f._transitionTo(ut,w,C),this._zoneDelegate.handleError(this,l),l}return f._zoneDelegates===h&&this._updateTaskCount(f,1),f.state==w&&f._transitionTo(ct,w),f}scheduleMicroTask(f,h,l,S){return this.scheduleTask(new k(v,f,h,l,S,void 0))}scheduleMacroTask(f,h,l,S,st){return this.scheduleTask(new k(kt,f,h,l,S,st))}scheduleEventTask(f,h,l,S,st){return this.scheduleTask(new k(Z,f,h,l,S,st))}cancelTask(f){if(f.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(f.zone||St).name+"; Execution: "+this.name+")");if(f.state===ct||f.state===nt){f._transitionTo(dt,ct,nt);try{this._zoneDelegate.cancelTask(this,f)}catch(h){throw f._transitionTo(ut,dt),this._zoneDelegate.handleError(this,h),h}return this._updateTaskCount(f,-1),f._transitionTo(C,dt),f.runCount=-1,f}}_updateTaskCount(f,h){const l=f._zoneDelegates;-1==h&&(f._zoneDelegates=null);for(let S=0;Sot.hasTask(h,l),onScheduleTask:(ot,f,h,l)=>ot.scheduleTask(h,l),onInvokeTask:(ot,f,h,l,S,st)=>ot.invokeTask(h,l,S,st),onCancelTask:(ot,f,h,l)=>ot.cancelTask(h,l)};class D{constructor(f,h,l){i(this,"_zone"),i(this,"_taskCounts",{microTask:0,macroTask:0,eventTask:0}),i(this,"_parentDelegate"),i(this,"_forkDlgt"),i(this,"_forkZS"),i(this,"_forkCurrZone"),i(this,"_interceptDlgt"),i(this,"_interceptZS"),i(this,"_interceptCurrZone"),i(this,"_invokeDlgt"),i(this,"_invokeZS"),i(this,"_invokeCurrZone"),i(this,"_handleErrorDlgt"),i(this,"_handleErrorZS"),i(this,"_handleErrorCurrZone"),i(this,"_scheduleTaskDlgt"),i(this,"_scheduleTaskZS"),i(this,"_scheduleTaskCurrZone"),i(this,"_invokeTaskDlgt"),i(this,"_invokeTaskZS"),i(this,"_invokeTaskCurrZone"),i(this,"_cancelTaskDlgt"),i(this,"_cancelTaskZS"),i(this,"_cancelTaskCurrZone"),i(this,"_hasTaskDlgt"),i(this,"_hasTaskDlgtOwner"),i(this,"_hasTaskZS"),i(this,"_hasTaskCurrZone"),this._zone=f,this._parentDelegate=h,this._forkZS=l&&(l&&l.onFork?l:h._forkZS),this._forkDlgt=l&&(l.onFork?h:h._forkDlgt),this._forkCurrZone=l&&(l.onFork?this._zone:h._forkCurrZone),this._interceptZS=l&&(l.onIntercept?l:h._interceptZS),this._interceptDlgt=l&&(l.onIntercept?h:h._interceptDlgt),this._interceptCurrZone=l&&(l.onIntercept?this._zone:h._interceptCurrZone),this._invokeZS=l&&(l.onInvoke?l:h._invokeZS),this._invokeDlgt=l&&(l.onInvoke?h:h._invokeDlgt),this._invokeCurrZone=l&&(l.onInvoke?this._zone:h._invokeCurrZone),this._handleErrorZS=l&&(l.onHandleError?l:h._handleErrorZS),this._handleErrorDlgt=l&&(l.onHandleError?h:h._handleErrorDlgt),this._handleErrorCurrZone=l&&(l.onHandleError?this._zone:h._handleErrorCurrZone),this._scheduleTaskZS=l&&(l.onScheduleTask?l:h._scheduleTaskZS),this._scheduleTaskDlgt=l&&(l.onScheduleTask?h:h._scheduleTaskDlgt),this._scheduleTaskCurrZone=l&&(l.onScheduleTask?this._zone:h._scheduleTaskCurrZone),this._invokeTaskZS=l&&(l.onInvokeTask?l:h._invokeTaskZS),this._invokeTaskDlgt=l&&(l.onInvokeTask?h:h._invokeTaskDlgt),this._invokeTaskCurrZone=l&&(l.onInvokeTask?this._zone:h._invokeTaskCurrZone),this._cancelTaskZS=l&&(l.onCancelTask?l:h._cancelTaskZS),this._cancelTaskDlgt=l&&(l.onCancelTask?h:h._cancelTaskDlgt),this._cancelTaskCurrZone=l&&(l.onCancelTask?this._zone:h._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const S=l&&l.onHasTask;(S||h&&h._hasTaskZS)&&(this._hasTaskZS=S?l:_,this._hasTaskDlgt=h,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,l.onScheduleTask||(this._scheduleTaskZS=_,this._scheduleTaskDlgt=h,this._scheduleTaskCurrZone=this._zone),l.onInvokeTask||(this._invokeTaskZS=_,this._invokeTaskDlgt=h,this._invokeTaskCurrZone=this._zone),l.onCancelTask||(this._cancelTaskZS=_,this._cancelTaskDlgt=h,this._cancelTaskCurrZone=this._zone))}get zone(){return this._zone}fork(f,h){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,f,h):new d(f,h)}intercept(f,h,l){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,f,h,l):h}invoke(f,h,l,S,st){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,f,h,l,S,st):h.apply(l,S)}handleError(f,h){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,f,h)}scheduleTask(f,h){let l=h;if(this._scheduleTaskZS)this._hasTaskZS&&l._zoneDelegates.push(this._hasTaskDlgtOwner),l=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,f,h),l||(l=h);else if(h.scheduleFn)h.scheduleFn(h);else{if(h.type!=v)throw new Error("Task is missing scheduleFn.");wt(h)}return l}invokeTask(f,h,l,S){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,f,h,l,S):h.callback.apply(l,S)}cancelTask(f,h){let l;if(this._cancelTaskZS)l=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,f,h);else{if(!h.cancelFn)throw Error("Task is not cancelable");l=h.cancelFn(h)}return l}hasTask(f,h){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,f,h)}catch(l){this.handleError(f,l)}}_updateTaskCount(f,h){const l=this._taskCounts,S=l[f],st=l[f]=S+h;if(st<0)throw new Error("More tasks executed then were scheduled.");0!=S&&0!=st||this.hasTask(this._zone,{microTask:l.microTask>0,macroTask:l.macroTask>0,eventTask:l.eventTask>0,change:f})}}class k{constructor(f,h,l,S,st,Y){if(i(this,"type"),i(this,"source"),i(this,"invoke"),i(this,"callback"),i(this,"data"),i(this,"scheduleFn"),i(this,"cancelFn"),i(this,"_zone",null),i(this,"runCount",0),i(this,"_zoneDelegates",null),i(this,"_state","notScheduled"),this.type=f,this.source=h,this.data=S,this.scheduleFn=st,this.cancelFn=Y,!l)throw new Error("callback is not defined");this.callback=l;const Xt=this;this.invoke=f===Z&&S&&S.useG?k.invokeTask:function(){return k.invokeTask.call(K,Xt,this,arguments)}}static invokeTask(f,h,l){f||(f=this),Ut++;try{return f.runCount++,f.zone.runTask(f,h,l)}finally{1==Ut&&Lt(),Ut--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(C,w)}_transitionTo(f,h,l){if(this._state!==h&&this._state!==l)throw new Error(`${this.type} '${this.source}': can not transition to '${f}', expecting state '${h}'${l?" or '"+l+"'":""}, was '${this._state}'.`);this._state=f,f==C&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const P=et("setTimeout"),U=et("Promise"),B=et("then");let J,L=[],X=!1;function Ft(ot){if(J||K[U]&&(J=K[U].resolve(0)),J){let f=J[B];f||(f=J.then),f.call(J,ot)}else K[P](ot,0)}function wt(ot){0===Ut&&0===L.length&&Ft(Lt),ot&&L.push(ot)}function Lt(){if(!X){for(X=!0;L.length;){const ot=L;L=[];for(let f=0;fF,onUnhandledError:at,microtaskDrainDone:at,scheduleMicroTask:wt,showUncaughtError:()=>!d[et("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:at,patchMethod:()=>at,bindArguments:()=>[],patchThen:()=>at,patchMacroTask:()=>at,patchEventPrototype:()=>at,getGlobalObjects:()=>{},ObjectDefineProperty:()=>at,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>at,wrapWithCurrentZone:()=>at,filterProperties:()=>[],attachOriginToPatched:()=>at,_redefineProperty:()=>at,patchCallbacks:()=>at,nativeScheduleMicroTask:Ft};let F={parent:null,zone:new d(null,null)},Nt=null,Ut=0;function at(){}return y("Zone","Zone"),d}()),s.Zone}();(function Ge(c){(function ht(c){c.__load_patch("ZoneAwarePromise",(s,y,u)=>{const d=Object.getOwnPropertyDescriptor,_=Object.defineProperty,k=u.symbol,P=[],U=!1!==s[k("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],B=k("Promise"),L=k("then");u.onUnhandledError=T=>{if(u.showUncaughtError()){const g=T&&T.rejection;g?console.error("Unhandled Promise rejection:",g instanceof Error?g.message:g,"; Zone:",T.zone.name,"; Task:",T.task&&T.task.source,"; Value:",g,g instanceof Error?g.stack:void 0):console.error(T)}},u.microtaskDrainDone=()=>{for(;P.length;){const T=P.shift();try{T.zone.runGuarded(()=>{throw T.throwOriginal?T.rejection:T})}catch(g){Ft(g)}}};const J=k("unhandledPromiseRejectionHandler");function Ft(T){u.onUnhandledError(T);try{const g=y[J];"function"==typeof g&&g.call(this,T)}catch{}}function wt(T){return T&&"function"==typeof T.then}function Lt(T){return T}function St(T){return Y.reject(T)}const C=k("state"),w=k("value"),ct=k("finally"),nt=k("parentPromiseValue"),dt=k("parentPromiseState"),v=null,Z=!1;function q(T,g){return p=>{try{at(T,g,p)}catch(m){at(T,!1,m)}}}const F=function(){let T=!1;return function(p){return function(){T||(T=!0,p.apply(null,arguments))}}},Nt="Promise resolved with itself",Ut=k("currentTaskTrace");function at(T,g,p){const m=F();if(T===p)throw new TypeError(Nt);if(T[C]===v){let R=null;try{("object"==typeof p||"function"==typeof p)&&(R=p&&p.then)}catch(O){return m(()=>{at(T,!1,O)})(),T}if(g!==Z&&p instanceof Y&&p.hasOwnProperty(C)&&p.hasOwnProperty(w)&&p[C]!==v)f(p),at(T,p[C],p[w]);else if(g!==Z&&"function"==typeof R)try{R.call(p,m(q(T,g)),m(q(T,!1)))}catch(O){m(()=>{at(T,!1,O)})()}else{T[C]=g;const O=T[w];if(T[w]=p,T[ct]===ct&&!0===g&&(T[C]=T[dt],T[w]=T[nt]),g===Z&&p instanceof Error){const I=y.currentTask&&y.currentTask.data&&y.currentTask.data.__creationTrace__;I&&_(p,Ut,{configurable:!0,enumerable:!1,writable:!0,value:I})}for(let I=0;I{try{const V=T[w],$=!!p&&ct===p[ct];$&&(p[nt]=V,p[dt]=O);const z=g.run(I,void 0,$&&I!==St&&I!==Lt?[]:[V]);at(p,!0,z)}catch(V){at(p,!1,V)}},p)}const S=function(){},st=s.AggregateError;class Y{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(g){return g instanceof Y?g:at(new this(null),!0,g)}static reject(g){return at(new this(null),Z,g)}static withResolvers(){const g={};return g.promise=new Y((p,m)=>{g.resolve=p,g.reject=m}),g}static any(g){if(!g||"function"!=typeof g[Symbol.iterator])return Promise.reject(new st([],"All promises were rejected"));const p=[];let m=0;try{for(let I of g)m++,p.push(Y.resolve(I))}catch{return Promise.reject(new st([],"All promises were rejected"))}if(0===m)return Promise.reject(new st([],"All promises were rejected"));let R=!1;const O=[];return new Y((I,V)=>{for(let $=0;${R||(R=!0,I(z))},z=>{O.push(z),m--,0===m&&(R=!0,V(new st(O,"All promises were rejected")))})})}static race(g){let p,m,R=new this((V,$)=>{p=V,m=$});function O(V){p(V)}function I(V){m(V)}for(let V of g)wt(V)||(V=this.resolve(V)),V.then(O,I);return R}static all(g){return Y.allWithCallback(g)}static allSettled(g){return(this&&this.prototype instanceof Y?this:Y).allWithCallback(g,{thenCallback:m=>({status:"fulfilled",value:m}),errorCallback:m=>({status:"rejected",reason:m})})}static allWithCallback(g,p){let m,R,O=new this((z,ft)=>{m=z,R=ft}),I=2,V=0;const $=[];for(let z of g){wt(z)||(z=this.resolve(z));const ft=V;try{z.then(pt=>{$[ft]=p?p.thenCallback(pt):pt,I--,0===I&&m($)},pt=>{p?($[ft]=p.errorCallback(pt),I--,0===I&&m($)):R(pt)})}catch(pt){R(pt)}I++,V++}return I-=2,0===I&&m($),O}constructor(g){const p=this;if(!(p instanceof Y))throw new Error("Must be an instanceof Promise.");p[C]=v,p[w]=[];try{const m=F();g&&g(m(q(p,!0)),m(q(p,Z)))}catch(m){at(p,!1,m)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Y}then(g,p){var m;let R=null==(m=this.constructor)?void 0:m[Symbol.species];(!R||"function"!=typeof R)&&(R=this.constructor||Y);const O=new R(S),I=y.current;return this[C]==v?this[w].push(I,O,g,p):h(this,I,O,g,p),O}catch(g){return this.then(null,g)}finally(g){var p;let m=null==(p=this.constructor)?void 0:p[Symbol.species];(!m||"function"!=typeof m)&&(m=Y);const R=new m(S);R[ct]=ct;const O=y.current;return this[C]==v?this[w].push(O,R,g,g):h(this,O,R,g,g),R}}Y.resolve=Y.resolve,Y.reject=Y.reject,Y.race=Y.race,Y.all=Y.all;const Xt=s[B]=s.Promise;s.Promise=Y;const Jt=k("thenPatched");function Kt(T){const g=T.prototype,p=d(g,"then");if(p&&(!1===p.writable||!p.configurable))return;const m=g.then;g[L]=m,T.prototype.then=function(R,O){return new Y((V,$)=>{m.call(this,V,$)}).then(R,O)},T[Jt]=!0}return u.patchThen=Kt,Xt&&(Kt(Xt),Gt(s,"fetch",T=>function Vt(T){return function(g,p){let m=T.apply(g,p);if(m instanceof Y)return m;let R=m.constructor;return R[Jt]||Kt(R),m}}(T))),Promise[y.__symbol__("uncaughtPromiseErrors")]=P,Y})})(c),function _t(c){c.__load_patch("toString",s=>{const y=Function.prototype.toString,u=Q("OriginalDelegate"),d=Q("Promise"),_=Q("Error"),D=function(){if("function"==typeof this){const B=this[u];if(B)return"function"==typeof B?y.call(B):Object.prototype.toString.call(B);if(this===Promise){const L=s[d];if(L)return y.call(L)}if(this===Error){const L=s[_];if(L)return y.call(L)}}return y.call(this)};D[u]=y,Function.prototype.toString=D;const k=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":k.call(this)}})}(c),function He(c){c.__load_patch("util",(s,y,u)=>{const d=E(s);u.patchOnProperties=Ee,u.patchMethod=Gt,u.bindArguments=se,u.patchMacroTask=Ie;const _=y.__symbol__("BLACK_LISTED_EVENTS"),D=y.__symbol__("UNPATCHED_EVENTS");s[D]&&(s[_]=s[D]),s[_]&&(y[_]=y[D]=s[_]),u.patchEventPrototype=Ae,u.patchEventTarget=jt,u.ObjectDefineProperty=b,u.ObjectGetOwnPropertyDescriptor=Rt,u.ObjectCreate=H,u.ArraySlice=lt,u.patchClass=Zt,u.wrapWithCurrentZone=he,u.filterProperties=o,u.attachOriginToPatched=At,u._redefineProperty=Object.defineProperty,u.patchCallbacks=it,u.getGlobalObjects=()=>({globalSources:ve,zoneSymbolEventNames:Dt,eventNames:d,isBrowser:pe,isMix:It,isNode:ce,TRUE_STR:rt,FALSE_STR:Mt,ZONE_SYMBOL_PREFIX:Qt,ADD_EVENT_LISTENER_STR:vt,REMOVE_EVENT_LISTENER_STR:Tt})})}(c)})(Oe),function Et(c){c.__load_patch("timers",s=>{const u="clear";r(s,"set",u,"Timeout"),r(s,"set",u,"Interval"),r(s,"set",u,"Immediate")}),c.__load_patch("requestAnimationFrame",s=>{r(s,"request","cancel","AnimationFrame"),r(s,"mozRequest","mozCancel","AnimationFrame"),r(s,"webkitRequest","webkitCancel","AnimationFrame")}),c.__load_patch("blocking",(s,y)=>{const u=["alert","prompt","confirm"];for(let d=0;dfunction(U,B){return y.current.run(D,s,B,P)})}),c.__load_patch("EventTarget",(s,y,u)=>{(function n(c,s){s.patchEventPrototype(c,s)})(s,u),function e(c,s){if(Zone[s.symbol("patchEventTarget")])return;const{eventNames:y,zoneSymbolEventNames:u,TRUE_STR:d,FALSE_STR:_,ZONE_SYMBOL_PREFIX:D}=s.getGlobalObjects();for(let P=0;P{Zt("MutationObserver"),Zt("WebKitMutationObserver")}),c.__load_patch("IntersectionObserver",(s,y,u)=>{Zt("IntersectionObserver")}),c.__load_patch("FileReader",(s,y,u)=>{Zt("FileReader")}),c.__load_patch("on_property",(s,y,u)=>{!function G(c,s){if(ce&&!It||Zone[c.symbol("patchEvents")])return;const y=s.__Zone_ignore_on_properties;let u=[];if(pe){const d=window;u=u.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]),a(d,E(d),y,x(d))}u=u.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let d=0;d{!function t(c,s){const{isBrowser:y,isMix:u}=s.getGlobalObjects();(y||u)&&c.customElements&&"customElements"in c&&s.patchCallbacks(s,c.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(s,u)}),c.__load_patch("XHR",(s,y)=>{!function U(B){const L=B.XMLHttpRequest;if(!L)return;const X=L.prototype;let Ft=X[Ct],wt=X[Ht];if(!Ft){const M=B.XMLHttpRequestEventTarget;if(M){const q=M.prototype;Ft=q[Ct],wt=q[Ht]}}const Lt="readystatechange",St="scheduled";function C(M){const q=M.data,F=q.target;F[D]=!1,F[P]=!1;const Nt=F[_];Ft||(Ft=F[Ct],wt=F[Ht]),Nt&&wt.call(F,Lt,Nt);const Ut=F[_]=()=>{if(F.readyState===F.DONE)if(!q.aborted&&F[D]&&M.state===St){const ot=F[y.__symbol__("loadfalse")];if(0!==F.status&&ot&&ot.length>0){const f=M.invoke;M.invoke=function(){const h=F[y.__symbol__("loadfalse")];for(let l=0;lfunction(M,q){return M[d]=0==q[2],M[k]=q[1],nt.apply(M,q)}),ut=Q("fetchTaskAborting"),v=Q("fetchTaskScheduling"),kt=Gt(X,"send",()=>function(M,q){if(!0===y.current[v]||M[d])return kt.apply(M,q);{const F={target:M,url:M[k],isPeriodic:!1,args:q,aborted:!1},Nt=fe("XMLHttpRequest.send",w,F,C,ct);M&&!0===M[P]&&!F.aborted&&Nt.state===St&&Nt.invoke()}}),Z=Gt(X,"abort",()=>function(M,q){const F=function J(M){return M[u]}(M);if(F&&"string"==typeof F.type){if(null==F.cancelFn||F.data&&F.data.aborted)return;F.zone.cancelTask(F)}else if(!0===y.current[ut])return Z.apply(M,q)})}(s);const u=Q("xhrTask"),d=Q("xhrSync"),_=Q("xhrListener"),D=Q("xhrScheduled"),k=Q("xhrURL"),P=Q("xhrErrorBeforeScheduled")}),c.__load_patch("geolocation",s=>{s.navigator&&s.navigator.geolocation&&function Pe(c,s){const y=c.constructor.name;for(let u=0;u{const P=function(){return k.apply(this,se(arguments,y+"."+d))};return At(P,k),P})(_)}}}(s.navigator.geolocation,["getCurrentPosition","watchPosition"])}),c.__load_patch("PromiseRejectionEvent",(s,y)=>{function u(d){return function(_){ue(s,d).forEach(k=>{const P=s.PromiseRejectionEvent;if(P){const U=new P(d,{promise:_.promise,reason:_.rejection});k.invoke(U)}})}}s.PromiseRejectionEvent&&(y[Q("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),y[Q("rejectionHandledHandler")]=u("rejectionhandled"))}),c.__load_patch("queueMicrotask",(s,y,u)=>{!function qt(c,s){s.patchMethod(c,"queueMicrotask",y=>function(u,d){Zone.current.scheduleMicroTask("queueMicrotask",d[0])})}(s,u)})}(Oe)}},Wt=>{var j=A=>Wt(Wt.s=A);j(96935),j(24050)}]); \ No newline at end of file diff --git a/frontend/runtime.785eb15c327b373a.js b/frontend/runtime.785eb15c327b373a.js new file mode 100644 index 00000000..fda6f4e7 --- /dev/null +++ b/frontend/runtime.785eb15c327b373a.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},m={};function r(e){var o=m[e];if(void 0!==o)return o.exports;var t=m[e]={exports:{}};return v[e].call(t.exports,t,t.exports,r),t.exports}r.m=v,e=[],r.O=(o,t,i,f)=>{if(!t){var a=1/0;for(n=0;n=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,f0&&e[n-1][2]>f;n--)e[n]=e[n-1];e[n]=[t,i,f]},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((o,t)=>(r.f[t](e,o),o),[])),r.u=e=>e+"."+{17:"da5e0b6abb96d103",190:"0e6572086349bd7c",193:"5eec0042e2c6f1a7",853:"e46ed60b577aec33"}[e]+".js",r.miniCssF=e=>{},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),(()=>{var e={},o="RTLApp:";r.l=(t,i,f,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==f)for(var u=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(_=>_(b)),h)return h(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:o=>o},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,f)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)f.push(n[2]);else if(121!=i){var a=new Promise((l,c)=>n=e[i]=[l,c]);f.push(n[2]=a);var s=r.p+r.u(i),u=new Error;r.l(s,l=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,n[1](u)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var o=(i,f)=>{var u,d,[n,a,s]=f,l=0;if(n.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(i&&i(f);l{"use strict";var e,b={},h={};function r(e){var f=h[e];if(void 0!==f)return f.exports;var t=h[e]={id:e,loaded:!1,exports:{}};return b[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=b,e=[],r.O=(f,t,i,o)=>{if(!t){var a=1/0;for(n=0;n=o)&&Object.keys(r.O).every(v=>r.O[v](t[l]))?t.splice(l--,1):(s=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[t,i,o]},r.d=(e,f)=>{for(var t in f)r.o(f,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:f[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((f,t)=>(r.f[t](e,f),f),[])),r.u=e=>e+"."+{17:"6019ad086792cc08",190:"496d0a0b94483d54",193:"b6974b544ca80922",853:"8e8db9dc1adcdad0"}[e]+".js",r.miniCssF=e=>{},r.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="RTLApp:";r.l=(t,i,o,n)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d{a.onerror=a.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),g&&g.forEach(_=>_(v)),m)return m(v)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(i,o)=>{var n=r.o(e,i)?e[i]:void 0;if(0!==n)if(n)o.push(n[2]);else if(121!=i){var a=new Promise((u,c)=>n=e[i]=[u,c]);o.push(n[2]=a);var s=r.p+r.u(i),l=new Error;r.l(s,u=>{if(r.o(e,i)&&(0!==(n=e[i])&&(e[i]=void 0),n)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;l.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",l.name="ChunkLoadError",l.type=c,l.request=p,n[1](l)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var f=(i,o)=>{var l,d,[n,a,s]=o,u=0;if(n.some(p=>0!==e[p])){for(l in a)r.o(a,l)&&(r.m[l]=a[l]);if(s)var c=s(r)}for(i&&i(o);u= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", @@ -8029,12 +7994,6 @@ "node": ">=6.9.x" } }, - "node_modules/bn.js": { - "version": "5.2.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.5.tgz", - "integrity": "sha512-Vq886eXykuP5E6HcKSSStP3bJgrE6In5WKxVUvJ8XGpWWYs2xZHWqUwzCtGgEtBcxyd57KBFDPFoUfNzdaHCNg==", - "license": "MIT" - }, "node_modules/body-parser": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.3.0.tgz", @@ -8149,12 +8108,6 @@ "node": ">=8" } }, - "node_modules/brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", - "license": "MIT" - }, "node_modules/brotli": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/brotli/-/brotli-1.3.3.tgz", @@ -8164,77 +8117,6 @@ "base64-js": "^1.1.2" } }, - "node_modules/browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "license": "MIT", - "dependencies": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/browserify-cipher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", - "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", - "license": "MIT", - "dependencies": { - "browserify-aes": "^1.0.4", - "browserify-des": "^1.0.0", - "evp_bytestokey": "^1.0.0" - } - }, - "node_modules/browserify-des": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", - "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.1", - "des.js": "^1.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/browserify-rsa": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.1.tgz", - "integrity": "sha512-YBjSAiTqM04ZVei6sXighu679a3SqWORA3qZTEqZImnlkDIFtKc6pNutpjyZ8RJTjQtuYfeetkxM11GwoYXMIQ==", - "license": "MIT", - "dependencies": { - "bn.js": "^5.2.1", - "randombytes": "^2.1.0", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/browserify-sign": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.6.tgz", - "integrity": "sha512-sd+Q65fjlWCYWtZKXiKfrUc8d+4jtp/8f0W2NkwzLtoW4bI6UDnWusLWIurHnmurW0XShIRxpwiOX4EoPtXUAg==", - "license": "ISC", - "dependencies": { - "bn.js": "^5.2.3", - "browserify-rsa": "^4.1.1", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "elliptic": "^6.6.1", - "inherits": "^2.0.4", - "parse-asn1": "^5.1.9", - "readable-stream": "^2.3.8", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/browserify-zlib": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", @@ -8362,12 +8244,6 @@ "dev": true, "license": "MIT" }, - "node_modules/buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", - "license": "MIT" - }, "node_modules/bundle-name": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.0.tgz", @@ -8492,24 +8368,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/call-bind": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.9.tgz", - "integrity": "sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "get-intrinsic": "^1.3.0", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/call-bind-apply-helpers": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", @@ -8646,20 +8504,6 @@ "node": ">=6.0" } }, - "node_modules/cipher-base": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz", - "integrity": "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.2" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/cli-cursor": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-5.0.0.tgz", @@ -9136,6 +8980,7 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "dev": true, "license": "MIT" }, "node_modules/cors": { @@ -9183,49 +9028,6 @@ } } }, - "node_modules/create-ecdh": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", - "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "elliptic": "^6.5.3" - } - }, - "node_modules/create-ecdh/node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, - "node_modules/create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "node_modules/create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "license": "MIT", - "dependencies": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, "node_modules/create-require": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", @@ -9248,32 +9050,6 @@ "node": ">= 8" } }, - "node_modules/crypto-browserify": { - "version": "3.12.1", - "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.1.tgz", - "integrity": "sha512-r4ESw/IlusD17lgQi1O20Fa3qNnsckR126TdUuBgAu7GBYSIPvdNyONd3Zrxh0xCwA4+6w/TDArBPsMvhur+KQ==", - "license": "MIT", - "dependencies": { - "browserify-cipher": "^1.0.1", - "browserify-sign": "^4.2.3", - "create-ecdh": "^4.0.4", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "diffie-hellman": "^5.0.3", - "hash-base": "~3.0.4", - "inherits": "^2.0.4", - "pbkdf2": "^3.1.2", - "public-encrypt": "^4.0.3", - "randombytes": "^2.1.0", - "randomfill": "^1.0.4" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/csrf-csrf": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/csrf-csrf/-/csrf-csrf-4.0.3.tgz", @@ -9726,23 +9502,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/define-lazy-prop": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz", @@ -9807,16 +9566,6 @@ "node": ">= 0.8" } }, - "node_modules/des.js": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.1.0.tgz", - "integrity": "sha512-r17GxjhUCjSRy8aiJpr8/UadFIzMzJGexI3Nmz4ADi9LYSFx4gTBp80+NaX/YsXWWLhpZ7v/v/ubEc/bCNfKwg==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.1", - "minimalistic-assert": "^1.0.0" - } - }, "node_modules/destroy": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", @@ -9869,23 +9618,6 @@ "node": ">=0.3.1" } }, - "node_modules/diffie-hellman": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", - "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "miller-rabin": "^4.0.0", - "randombytes": "^2.0.0" - } - }, - "node_modules/diffie-hellman/node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, "node_modules/dijkstrajs": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/dijkstrajs/-/dijkstrajs-1.0.3.tgz", @@ -10050,27 +9782,6 @@ "dev": true, "license": "ISC" }, - "node_modules/elliptic": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", - "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, "node_modules/emoji-regex": { "version": "10.6.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", @@ -10911,16 +10622,6 @@ "node": ">=18.0.0" } }, - "node_modules/evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "license": "MIT", - "dependencies": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" - } - }, "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", @@ -11341,21 +11042,6 @@ "unicode-trie": "^2.0.0" } }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", @@ -11767,18 +11453,6 @@ "node": ">=8" } }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "license": "MIT", - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/has-symbols": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", @@ -11806,29 +11480,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hash-base": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.5.tgz", - "integrity": "sha512-vXm0l45VbcHEVlTCzs8M+s0VeYsB2lnlAaThoLKGXr3bE/VWDOelNUnycUPEhKEaXARL2TEFjBOyUiM6+55KBg==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, "node_modules/hasown": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", @@ -11841,17 +11492,6 @@ "node": ">= 0.4" } }, - "node_modules/hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", - "license": "MIT", - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, "node_modules/hocon-parser": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/hocon-parser/-/hocon-parser-1.0.1.tgz", @@ -12300,18 +11940,6 @@ "node": ">=8" } }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-core-module": { "version": "2.13.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.0.tgz", @@ -12516,21 +12144,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -12578,6 +12191,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "dev": true, "license": "MIT" }, "node_modules/isbinaryfile": { @@ -14117,17 +13731,6 @@ "node": ">= 0.4" } }, - "node_modules/md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "license": "MIT", - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, "node_modules/media-typer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", @@ -14233,25 +13836,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/miller-rabin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", - "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.0.0", - "brorand": "^1.0.1" - }, - "bin": { - "miller-rabin": "bin/miller-rabin" - } - }, - "node_modules/miller-rabin/node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, "node_modules/mime": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", @@ -14328,14 +13912,9 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", + "dev": true, "license": "ISC" }, - "node_modules/minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", - "license": "MIT" - }, "node_modules/minimatch": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", @@ -15372,22 +14951,6 @@ "node": ">=6" } }, - "node_modules/parse-asn1": { - "version": "5.1.9", - "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.9.tgz", - "integrity": "sha512-fIYNuZ/HastSb80baGOuPRo1O9cf4baWw5WsAp7dBuUzeTD/BoaG8sVTdlPFksBE2lF21dN+A1AnrpIjSWqHHg==", - "license": "ISC", - "dependencies": { - "asn1.js": "^4.10.1", - "browserify-aes": "^1.2.0", - "evp_bytestokey": "^1.0.3", - "pbkdf2": "^3.1.5", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/parse-json": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", @@ -15590,23 +15153,6 @@ "node": ">=8" } }, - "node_modules/pbkdf2": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.6.tgz", - "integrity": "sha512-BT6eelPB1EyGHo8pC0o9Bl6k6SYVhKO1jEbd3lcTrtr7XHdjP8BW1YpfCV3G9Kwkxgattk+S5q2/RvuttCsS1g==", - "license": "MIT", - "dependencies": { - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "ripemd160": "^2.0.3", - "safe-buffer": "^5.2.1", - "sha.js": "^2.4.12", - "to-buffer": "^1.2.2" - }, - "engines": { - "node": ">= 0.10" - } - }, "node_modules/pdfkit": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/pdfkit/-/pdfkit-0.19.1.tgz", @@ -15772,15 +15318,6 @@ "node": ">=10.13.0" } }, - "node_modules/possible-typed-array-names": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz", - "integrity": "sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/postcss": { "version": "8.5.12", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.12.tgz", @@ -15966,6 +15503,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", + "dev": true, "license": "MIT" }, "node_modules/protractor": { @@ -16224,26 +15762,6 @@ "dev": true, "license": "MIT" }, - "node_modules/public-encrypt": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", - "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", - "license": "MIT", - "dependencies": { - "bn.js": "^4.1.0", - "browserify-rsa": "^4.0.0", - "create-hash": "^1.1.0", - "parse-asn1": "^5.0.0", - "randombytes": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/public-encrypt/node_modules/bn.js": { - "version": "4.12.5", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.5.tgz", - "integrity": "sha512-3aRg6/JxfffFD+OlOjOFR3Vo79l39ooBTFucxx+MT3dhCtzn3EmiUPQo+6/OZuI2jbXi3YKgmiTFBgChQMwIRQ==", - "license": "MIT" - }, "node_modules/punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", @@ -16489,25 +16007,6 @@ "node": ">= 0.8" } }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "license": "MIT", - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/randomfill": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", - "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", - "license": "MIT", - "dependencies": { - "randombytes": "^2.0.5", - "safe-buffer": "^5.1.0" - } - }, "node_modules/range-parser": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.3.0.tgz", @@ -16575,6 +16074,7 @@ "version": "2.3.8", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "dev": true, "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", @@ -16590,6 +16090,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, "license": "MIT" }, "node_modules/readdirp": { @@ -16938,34 +16439,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/ripemd160": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.3.tgz", - "integrity": "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA==", - "license": "MIT", - "dependencies": { - "hash-base": "^3.1.2", - "inherits": "^2.0.4" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/ripemd160/node_modules/hash-base": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.2.tgz", - "integrity": "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.4", - "readable-stream": "^2.3.8", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.1" - }, - "engines": { - "node": ">= 0.8" - } - }, "node_modules/roboto-fontface": { "version": "0.10.0", "resolved": "https://registry.npmjs.org/roboto-fontface/-/roboto-fontface-0.10.0.tgz", @@ -17602,23 +17075,6 @@ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", "license": "ISC" }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -17626,26 +17082,6 @@ "dev": true, "license": "MIT" }, - "node_modules/sha.js": { - "version": "2.4.12", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", - "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", - "license": "(MIT AND BSD-3-Clause)", - "dependencies": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.0" - }, - "bin": { - "sha.js": "bin.js" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/sha256": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/sha256/-/sha256-0.2.0.tgz", @@ -18237,30 +17673,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/stream-browserify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-3.0.0.tgz", - "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", - "license": "MIT", - "dependencies": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - } - }, - "node_modules/stream-browserify/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/streamroller": { "version": "3.1.5", "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-3.1.5.tgz", @@ -18280,6 +17692,7 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, "license": "MIT", "dependencies": { "safe-buffer": "~5.1.0" @@ -18289,6 +17702,7 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, "license": "MIT" }, "node_modules/string-width": { @@ -18562,26 +17976,6 @@ "node": ">=14.14" } }, - "node_modules/to-buffer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", - "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", - "license": "MIT", - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/to-buffer/node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "license": "MIT" - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -18818,20 +18212,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/typed-assert": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/typed-assert/-/typed-assert-1.0.9.tgz", @@ -19060,6 +18440,7 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, "license": "MIT" }, "node_modules/utils-merge": { @@ -19223,12 +18604,6 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/vm-browserify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", - "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", - "license": "MIT" - }, "node_modules/void-elements": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", @@ -20112,27 +19487,6 @@ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==", "license": "ISC" }, - "node_modules/which-typed-array": { - "version": "1.1.22", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", - "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.9", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/wildcard": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/wildcard/-/wildcard-2.0.1.tgz", diff --git a/package.json b/package.json index 50a06727..4da6f30e 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "axios": "1.16.0", "buffer": "6.0.3", "cookie-parser": "1.4.7", - "crypto-browserify": "3.12.1", "csrf-csrf": "4.0.3", "express": "5.2.1", "express-session": "1.18.2", @@ -44,9 +43,7 @@ "rxjs": "7.8.2", "sha256": "0.2.0", "socket.io-client": "4.8.3", - "stream-browserify": "3.0.0", "tslib": "2.8.1", - "vm-browserify": "1.1.2", "ws": "8.21.0", "zone.js": "0.16.0" }, diff --git a/release-notes/Release-notes-0.15.9.md b/release-notes/Release-notes-0.15.9.md index 46a2a747..32bfa4de 100644 --- a/release-notes/Release-notes-0.15.9.md +++ b/release-notes/Release-notes-0.15.9.md @@ -203,6 +203,28 @@ this release should add its entry under the appropriate section below. If a token goes stale (destroyed or expired session, or an RTL restart), the 403 response re-mints fresh `XSRF-TOKEN`/`_csrf` cookies, so retrying with the new token succeeds. +- **Drop the `crypto-browserify` polyfill chain by moving 2FA TOTP to WebCrypto** + ([#TBD](https://github.com/Ride-The-Lightning/RTL/pull/TBD), closes + [#1634](https://github.com/Ride-The-Lightning/RTL/issues/1634)). + The frontend build pulled in the browser polyfills `crypto-browserify`, `stream-browserify` + and `vm-browserify` (mapped in via `tsconfig.json` `paths`) solely because `otplib`'s + `@otplib/plugin-crypto` requires Node's `crypto`. That chain carried the last remaining + production `npm audit` findings — the `elliptic` advisory (GHSA-848j-6mx2-7j84, no fixed + release) plus `browserify-sign`/`create-ecdh`. The two-factor-auth settings dialog — the only + browser consumer of `otplib` — now uses a small WebCrypto-based TOTP service + (`src/app/shared/services/totp.service.ts`, RFC 6238: HMAC-SHA1, 6 digits, 30s step) instead, + so `otplib` is no longer bundled and the three polyfills and their `tsconfig` path mappings are + removed. The backend still verifies login tokens with `otplib`, and the new service is a + byte-for-byte match for it (verified against otplib and the RFC 6238 test vectors), so existing + authenticator enrollments keep working unchanged. `token.check()` becomes async (WebCrypto's + digest API is promise-based); the dialog's verify handler was updated accordingly. **Production + `npm audit` now reports zero vulnerabilities** (down from 13, incl. 2 critical, at the start of + this dependency-cleanup series). Verified against the docker regtest fixture: enrolling a 2FA + secret generated by the new service, confirming the backend's `otplib` accepts a token it + produces at login, and rejecting wrong/absent tokens — plus a unit spec covering the RFC 6238 + vectors, `keyuri` parity, and base32 round-tripping, both API suites, and the full frontend + spec suite (204 specs). + - **Rebuild the compiled CLN channels controller to match its source** ([#1631](https://github.com/Ride-The-Lightning/RTL/pull/1631)). The #1606 fix updated `server/controllers/cln/channels.ts` to mirror `peer_connected` onto the diff --git a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts index bfa5fd26..073a3c8e 100644 --- a/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts +++ b/src/app/shared/components/data-modal/two-factor-auth/two-factor-auth.component.ts @@ -7,7 +7,6 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { MatSnackBar } from '@angular/material/snack-bar'; import { MatStepper } from '@angular/material/stepper'; import { faInfoCircle, faCopy, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'; -import { authenticator } from 'otplib'; import * as sha256 from 'sha256'; import { RTLConfiguration } from '../../../models/RTLconfig'; @@ -15,6 +14,7 @@ import { AuthConfig } from '../../../models/alertData'; import { RTLEffects } from '../../../../store/rtl.effects'; import { RTLState } from '../../../../store/rtl.state'; import { isAuthorized, updateApplicationSettings } from '../../../../store/rtl.actions'; +import { TotpService } from '../../../services/totp.service'; @Component({ standalone: false, @@ -51,7 +51,7 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { disableFormGroup: UntypedFormGroup = this.formBuilder.group({}); unSubs: Array> = [new Subject(), new Subject()]; - constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: AuthConfig, private store: Store, private formBuilder: UntypedFormBuilder, private rtlEffects: RTLEffects, private snackBar: MatSnackBar) { } + constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: AuthConfig, private store: Store, private formBuilder: UntypedFormBuilder, private rtlEffects: RTLEffects, private snackBar: MatSnackBar, private totpService: TotpService) { } ngOnInit() { this.appConfig = this.data.appConfig || null; @@ -62,8 +62,8 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { } generateSecret() { - const secret2fa = authenticator.generateSecret(); - this.otpauth = authenticator.keyuri('', 'Ride The Lightning (RTL)', secret2fa); + const secret2fa = this.totpService.generateSecret(); + this.otpauth = this.totpService.keyuri('', 'Ride The Lightning (RTL)', secret2fa); return secret2fa; } @@ -101,15 +101,19 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { if (!this.tokenFormGroup.controls.token.value) { return true; } - this.isTokenValid = authenticator.check(this.tokenFormGroup.controls.token.value, this.secretFormGroup.controls.secret.value); - if (!this.isTokenValid) { - this.tokenFormGroup.controls.token.setErrors({ notValid: true }); - return true; - } - this.appConfig.enable2FA = true; - this.appConfig.secret2FA = this.secretFormGroup.controls.secret.value; - this.store.dispatch(updateApplicationSettings({ payload: { showSnackBar: false, message: 'Two factor authentication enabled successfully.', config: this.appConfig } })); - this.tokenFormGroup.controls.token.setValue(''); + this.totpService.check(this.tokenFormGroup.controls.token.value, this.secretFormGroup.controls.secret.value).then((isTokenValid) => { + this.isTokenValid = isTokenValid; + if (!isTokenValid) { + this.tokenFormGroup.controls.token.setErrors({ notValid: true }); + return; + } + this.appConfig.enable2FA = true; + this.appConfig.secret2FA = this.secretFormGroup.controls.secret.value; + this.store.dispatch(updateApplicationSettings({ payload: { showSnackBar: false, message: 'Two factor authentication enabled successfully.', config: this.appConfig } })); + this.tokenFormGroup.controls.token.setValue(''); + this.flgValidated = true; + }); + return; } this.flgValidated = true; } diff --git a/src/app/shared/services/totp.service.spec.ts b/src/app/shared/services/totp.service.spec.ts new file mode 100644 index 00000000..3ff0476f --- /dev/null +++ b/src/app/shared/services/totp.service.spec.ts @@ -0,0 +1,50 @@ +import { TestBed } from '@angular/core/testing'; + +import { TotpService } from './totp.service'; + +describe('TotpService', () => { + let service: TotpService; + // RFC 6238 appendix B secret ("12345678901234567890" ascii) in base32. + const rfcSecret = 'GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ'; + + beforeEach(() => { + TestBed.configureTestingModule({ providers: [TotpService] }); + service = TestBed.inject(TotpService); + }); + + it('should generate RFC 6238 SHA1 test-vector tokens (matching otplib)', async () => { + // 6-digit truncations of the appendix B vectors; verified identical to + // otplib.authenticator.generate() at the same epochs. + expect(await service.generate(rfcSecret, 59000)).toBe('287082'); + expect(await service.generate(rfcSecret, 1111111109000)).toBe('081804'); + expect(await service.generate(rfcSecret, 1234567890000)).toBe('005924'); + expect(await service.generate(rfcSecret, 2000000000000)).toBe('279037'); + }); + + it('should check tokens against the same epoch window', async () => { + expect(await service.check('287082', rfcSecret, 59000)).toBe(true); + expect(await service.check('287082', rfcSecret, 2000000000000)).toBe(false); + expect(await service.check('123456', rfcSecret, 59000)).toBe(false); + expect(await service.check('28708a', rfcSecret, 59000)).toBe(false); + expect(await service.check('', rfcSecret, 59000)).toBe(false); + }); + + it('should reject an invalid base32 secret instead of throwing', async () => { + expect(await service.check('287082', 'not!base32', 59000)).toBe(false); + }); + + it('should generate 16 character base32 secrets', () => { + const secret = service.generateSecret(); + expect(secret.length).toBe(16); + expect(secret).toMatch(/^[A-Z2-7]+$/); + expect(service.generateSecret()).not.toBe(secret); + }); + + it('should build the same keyuri as otplib.authenticator.keyuri', () => { + // Exact output of authenticator.keyuri('', 'Ride The Lightning (RTL)', secret). + expect(service.keyuri('', 'Ride The Lightning (RTL)', rfcSecret)).toBe( + 'otpauth://totp/Ride%20The%20Lightning%20(RTL):?secret=' + rfcSecret + + '&period=30&digits=6&algorithm=SHA1&issuer=Ride%20The%20Lightning%20(RTL)' + ); + }); +}); diff --git a/src/app/shared/services/totp.service.ts b/src/app/shared/services/totp.service.ts new file mode 100644 index 00000000..26eb93a3 --- /dev/null +++ b/src/app/shared/services/totp.service.ts @@ -0,0 +1,95 @@ +import { Injectable } from '@angular/core'; + +/** + * RFC 6238 TOTP (SHA1, 6 digits, 30 second step, window 0) implemented with + * WebCrypto, replacing otplib in the browser bundle so the crypto-browserify + * polyfill chain can be dropped. The backend still verifies login tokens with + * otplib, so the parameters here must stay in sync with + * server/controllers/shared/authenticate.ts (otplib authenticator defaults). + */ +@Injectable({ providedIn: 'root' }) +export class TotpService { + + private base32Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'; + + generateSecret(numberOfBytes: number = 10): string { + const bytes = new Uint8Array(numberOfBytes); + window.crypto.getRandomValues(bytes); + return this.base32Encode(bytes); + } + + keyuri(accountName: string, issuer: string, secret: string): string { + return 'otpauth://totp/' + encodeURIComponent(issuer) + ':' + encodeURIComponent(accountName) + + '?secret=' + secret + '&period=30&digits=6&algorithm=SHA1&issuer=' + encodeURIComponent(issuer); + } + + check(token: string, secret: string, epochMs?: number): Promise { + if (!((/^\d+$/).test(token))) { return Promise.resolve(false); } + return this.generate(secret, epochMs).then((expectedToken) => expectedToken === token).catch(() => false); + } + + async generate(secret: string, epochMs?: number): Promise { + const counter = Math.floor((epochMs ?? Date.now()) / 30 / 1000); + const counterBytes = new Uint8Array(8); + let remaining = counter; + for (let i = 7; i >= 0; i--) { + counterBytes[i] = remaining & 0xff; + remaining = Math.floor(remaining / 256); + } + const hmacKey = this.createHmacKey(this.base32Decode(secret)); + const cryptoKey = await window.crypto.subtle.importKey('raw', hmacKey, { name: 'HMAC', hash: 'SHA-1' }, false, ['sign']); + const digest = new Uint8Array(await window.crypto.subtle.sign('HMAC', cryptoKey, counterBytes)); + const offset = digest[digest.length - 1] & 0xf; + const binary = ((digest[offset] & 0x7f) << 24) | ((digest[offset + 1] & 0xff) << 16) | ((digest[offset + 2] & 0xff) << 8) | (digest[offset + 3] & 0xff); + return String(binary % (10 ** 6)).padStart(6, '0'); + } + + // Mirrors otplib's totpPadSecret for SHA1: secrets shorter than 10 bytes are + // repeated up to 20 bytes. Never triggers for the 10 byte secrets generated + // above; kept for exact parity with the backend's token derivation. + private createHmacKey(secretBytes: Uint8Array): Uint8Array { + if (secretBytes.length * 2 >= 20) { return secretBytes; } + const padded = new Uint8Array(20); + for (let i = 0; i < padded.length; i++) { + padded[i] = secretBytes[i % secretBytes.length]; + } + return padded; + } + + private base32Encode(bytes: Uint8Array): string { + let bits = 0; + let value = 0; + let encoded = ''; + for (const byte of bytes) { + value = (value << 8) | byte; + bits += 8; + while (bits >= 5) { + encoded += this.base32Chars[(value >>> (bits - 5)) & 31]; + bits -= 5; + } + } + if (bits > 0) { + encoded += this.base32Chars[(value << (5 - bits)) & 31]; + } + return encoded; + } + + private base32Decode(secret: string): Uint8Array { + const normalized = secret.toUpperCase().replace(/[=]+$/, ''); + let bits = 0; + let value = 0; + const bytes: number[] = []; + for (const char of normalized) { + const index = this.base32Chars.indexOf(char); + if (index < 0) { throw new Error('Invalid base32 character in secret.'); } + value = (value << 5) | index; + bits += 5; + if (bits >= 8) { + bytes.push((value >>> (bits - 8)) & 0xff); + bits -= 8; + } + } + return Uint8Array.from(bytes); + } + +} diff --git a/tsconfig.json b/tsconfig.json index 0ce7fd1e..6a6dd493 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,13 +24,7 @@ "lib": [ "ES2022", "dom" - ], - "paths": { - "crypto": ["node_modules/crypto-browserify"], - "stream": ["node_modules/stream-browserify"], - "vm": ["node_modules/vm-browserify"], - "process": ["node_modules/process/browser"] - } + ] }, "include": [ "./server/**/*",